@vector-im/matrix-wysiwyg 2.38.2 → 2.38.4

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.
@@ -4,23 +4,38 @@ export function __wbg_set_wasm(val) {
4
4
  }
5
5
 
6
6
 
7
- const heap = new Array(128).fill(undefined);
7
+ function isLikeNone(x) {
8
+ return x === undefined || x === null;
9
+ }
8
10
 
9
- heap.push(undefined, null, true, false);
11
+ function addToExternrefTable0(obj) {
12
+ const idx = wasm.__externref_table_alloc();
13
+ wasm.__wbindgen_export_1.set(idx, obj);
14
+ return idx;
15
+ }
10
16
 
11
- function getObject(idx) { return heap[idx]; }
17
+ const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
12
18
 
13
- let WASM_VECTOR_LEN = 0;
19
+ let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
20
+
21
+ cachedTextDecoder.decode();
14
22
 
15
- let cachedUint8Memory0 = null;
23
+ let cachedUint8ArrayMemory0 = null;
16
24
 
17
- function getUint8Memory0() {
18
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
19
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
25
+ function getUint8ArrayMemory0() {
26
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
27
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
20
28
  }
21
- return cachedUint8Memory0;
29
+ return cachedUint8ArrayMemory0;
22
30
  }
23
31
 
32
+ function getStringFromWasm0(ptr, len) {
33
+ ptr = ptr >>> 0;
34
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
35
+ }
36
+
37
+ let WASM_VECTOR_LEN = 0;
38
+
24
39
  const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
25
40
 
26
41
  let cachedTextEncoder = new lTextEncoder('utf-8');
@@ -43,7 +58,7 @@ function passStringToWasm0(arg, malloc, realloc) {
43
58
  if (realloc === undefined) {
44
59
  const buf = cachedTextEncoder.encode(arg);
45
60
  const ptr = malloc(buf.length, 1) >>> 0;
46
- getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
61
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
47
62
  WASM_VECTOR_LEN = buf.length;
48
63
  return ptr;
49
64
  }
@@ -51,7 +66,7 @@ function passStringToWasm0(arg, malloc, realloc) {
51
66
  let len = arg.length;
52
67
  let ptr = malloc(len, 1) >>> 0;
53
68
 
54
- const mem = getUint8Memory0();
69
+ const mem = getUint8ArrayMemory0();
55
70
 
56
71
  let offset = 0;
57
72
 
@@ -66,7 +81,7 @@ function passStringToWasm0(arg, malloc, realloc) {
66
81
  arg = arg.slice(offset);
67
82
  }
68
83
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
69
- const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
84
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
70
85
  const ret = encodeString(arg, view);
71
86
 
72
87
  offset += ret.written;
@@ -77,72 +92,42 @@ function passStringToWasm0(arg, malloc, realloc) {
77
92
  return ptr;
78
93
  }
79
94
 
80
- function isLikeNone(x) {
81
- return x === undefined || x === null;
82
- }
83
-
84
- let cachedInt32Memory0 = null;
95
+ let cachedDataViewMemory0 = null;
85
96
 
86
- function getInt32Memory0() {
87
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
88
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
97
+ function getDataViewMemory0() {
98
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
99
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
89
100
  }
90
- return cachedInt32Memory0;
91
- }
92
-
93
- let heap_next = heap.length;
94
-
95
- function dropObject(idx) {
96
- if (idx < 132) return;
97
- heap[idx] = heap_next;
98
- heap_next = idx;
99
- }
100
-
101
- function takeObject(idx) {
102
- const ret = getObject(idx);
103
- dropObject(idx);
104
- return ret;
101
+ return cachedDataViewMemory0;
105
102
  }
106
103
 
107
- const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
108
-
109
- let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
110
-
111
- cachedTextDecoder.decode();
112
-
113
- function getStringFromWasm0(ptr, len) {
114
- ptr = ptr >>> 0;
115
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
104
+ function handleError(f, args) {
105
+ try {
106
+ return f.apply(this, args);
107
+ } catch (e) {
108
+ const idx = addToExternrefTable0(e);
109
+ wasm.__wbindgen_exn_store(idx);
110
+ }
116
111
  }
117
112
 
118
- function addHeapObject(obj) {
119
- if (heap_next === heap.length) heap.push(heap.length + 1);
120
- const idx = heap_next;
121
- heap_next = heap[idx];
122
-
123
- heap[idx] = obj;
124
- return idx;
125
- }
126
- /**
127
- */
128
113
  export function start() {
129
114
  wasm.start();
130
115
  }
131
116
 
132
117
  /**
133
- * @returns {ComposerModel}
134
- */
118
+ * @returns {ComposerModel}
119
+ */
135
120
  export function new_composer_model() {
136
121
  const ret = wasm.composermodel_new();
137
122
  return ComposerModel.__wrap(ret);
138
123
  }
139
124
 
140
125
  /**
141
- * @param {string} html
142
- * @param {number} start_utf16_codeunit
143
- * @param {number} end_utf16_codeunit
144
- * @returns {ComposerModel}
145
- */
126
+ * @param {string} html
127
+ * @param {number} start_utf16_codeunit
128
+ * @param {number} end_utf16_codeunit
129
+ * @returns {ComposerModel}
130
+ */
146
131
  export function new_composer_model_from_html(html, start_utf16_codeunit, end_utf16_codeunit) {
147
132
  const ptr0 = passStringToWasm0(html, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
148
133
  const len0 = WASM_VECTOR_LEN;
@@ -154,55 +139,82 @@ function _assertClass(instance, klass) {
154
139
  if (!(instance instanceof klass)) {
155
140
  throw new Error(`expected instance of ${klass.name}`);
156
141
  }
157
- return instance.ptr;
158
- }
159
- function __wbg_adapter_121(arg0, arg1, arg2, arg3, arg4) {
160
- wasm.wasm_bindgen__convert__closures__invoke3_mut__h755216c79df6c7d9(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4));
161
142
  }
162
143
 
163
- function __wbg_adapter_124(arg0, arg1, arg2, arg3) {
164
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h5427b2b10c47063d(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
144
+ function takeFromExternrefTable0(idx) {
145
+ const value = wasm.__wbindgen_export_1.get(idx);
146
+ wasm.__externref_table_dealloc(idx);
147
+ return value;
148
+ }
149
+ function __wbg_adapter_123(arg0, arg1, arg2, arg3, arg4) {
150
+ wasm.closure98_externref_shim(arg0, arg1, arg2, arg3, arg4);
165
151
  }
166
152
 
167
- function handleError(f, args) {
168
- try {
169
- return f.apply(this, args);
170
- } catch (e) {
171
- wasm.__wbindgen_exn_store(addHeapObject(e));
172
- }
153
+ function __wbg_adapter_126(arg0, arg1, arg2, arg3) {
154
+ wasm.closure101_externref_shim(arg0, arg1, arg2, arg3);
173
155
  }
156
+
174
157
  /**
175
- */
176
- export const PatternKeyType = Object.freeze({ At:0,"0":"At",Hash:1,"1":"Hash",Slash:2,"2":"Slash",Custom:3,"3":"Custom", });
177
- /**
178
- */
179
- export const DomCreationError = Object.freeze({ HtmlParseError:0,"0":"HtmlParseError",MarkdownParseError:1,"1":"MarkdownParseError", });
180
- /**
181
- */
182
- export const ComposerAction = Object.freeze({ Bold:0,"0":"Bold",Italic:1,"1":"Italic",StrikeThrough:2,"2":"StrikeThrough",Underline:3,"3":"Underline",InlineCode:4,"4":"InlineCode",Link:5,"5":"Link",Undo:6,"6":"Undo",Redo:7,"7":"Redo",OrderedList:8,"8":"OrderedList",UnorderedList:9,"9":"UnorderedList",Indent:10,"10":"Indent",Unindent:11,"11":"Unindent",CodeBlock:12,"12":"CodeBlock",Quote:13,"13":"Quote", });
183
- /**
184
- */
158
+ * @enum {0 | 1 | 2}
159
+ */
185
160
  export const ActionState = Object.freeze({
161
+ /**
162
+ * The button can be clicked, and will perform its normal action
163
+ * e.g. make something bold
164
+ */
165
+ Enabled: 0, "0": "Enabled",
166
+ /**
167
+ * The button can be clicked, and will perform the reverse of its
168
+ * normal action e.g. stop something being bold
169
+ */
170
+ Reversed: 1, "1": "Reversed",
171
+ /**
172
+ * The button cannot be clicked
173
+ */
174
+ Disabled: 2, "2": "Disabled",
175
+ });
186
176
  /**
187
- * The button can be clicked, and will perform its normal action
188
- * e.g. make something bold
189
- */
190
- Enabled:0,"0":"Enabled",
177
+ * @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13}
178
+ */
179
+ export const ComposerAction = Object.freeze({
180
+ Bold: 0, "0": "Bold",
181
+ Italic: 1, "1": "Italic",
182
+ StrikeThrough: 2, "2": "StrikeThrough",
183
+ Underline: 3, "3": "Underline",
184
+ InlineCode: 4, "4": "InlineCode",
185
+ Link: 5, "5": "Link",
186
+ Undo: 6, "6": "Undo",
187
+ Redo: 7, "7": "Redo",
188
+ OrderedList: 8, "8": "OrderedList",
189
+ UnorderedList: 9, "9": "UnorderedList",
190
+ Indent: 10, "10": "Indent",
191
+ Unindent: 11, "11": "Unindent",
192
+ CodeBlock: 12, "12": "CodeBlock",
193
+ Quote: 13, "13": "Quote",
194
+ });
191
195
  /**
192
- * The button can be clicked, and will perform the reverse of its
193
- * normal action e.g. stop something being bold
194
- */
195
- Reversed:1,"1":"Reversed",
196
+ * @enum {0 | 1}
197
+ */
198
+ export const DomCreationError = Object.freeze({
199
+ HtmlParseError: 0, "0": "HtmlParseError",
200
+ MarkdownParseError: 1, "1": "MarkdownParseError",
201
+ });
196
202
  /**
197
- * The button cannot be clicked
198
- */
199
- Disabled:2,"2":"Disabled", });
203
+ * @enum {0 | 1 | 2 | 3}
204
+ */
205
+ export const PatternKeyType = Object.freeze({
206
+ At: 0, "0": "At",
207
+ Hash: 1, "1": "Hash",
208
+ Slash: 2, "2": "Slash",
209
+ Custom: 3, "3": "Custom",
210
+ });
211
+
212
+ const __wbindgen_enum_SupportedType = ["text/html", "text/xml", "application/xml", "application/xhtml+xml", "image/svg+xml"];
200
213
 
201
214
  const ComposerModelFinalization = (typeof FinalizationRegistry === 'undefined')
202
215
  ? { register: () => {}, unregister: () => {} }
203
- : new FinalizationRegistry(ptr => wasm.__wbg_composermodel_free(ptr >>> 0));
204
- /**
205
- */
216
+ : new FinalizationRegistry(ptr => wasm.__wbg_composermodel_free(ptr >>> 0, 1));
217
+
206
218
  export class ComposerModel {
207
219
 
208
220
  static __wrap(ptr) {
@@ -222,19 +234,19 @@ export class ComposerModel {
222
234
 
223
235
  free() {
224
236
  const ptr = this.__destroy_into_raw();
225
- wasm.__wbg_composermodel_free(ptr);
237
+ wasm.__wbg_composermodel_free(ptr, 0);
226
238
  }
227
239
  /**
228
- * @returns {ComposerModel}
229
- */
240
+ * @returns {ComposerModel}
241
+ */
230
242
  static new() {
231
243
  const ret = wasm.composermodel_new();
232
244
  return ComposerModel.__wrap(ret);
233
245
  }
234
246
  /**
235
- * @param {string} text
236
- * @returns {ComposerModel}
237
- */
247
+ * @param {string} text
248
+ * @returns {ComposerModel}
249
+ */
238
250
  static from_example_format(text) {
239
251
  const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
240
252
  const len0 = WASM_VECTOR_LEN;
@@ -242,160 +254,136 @@ export class ComposerModel {
242
254
  return ComposerModel.__wrap(ret);
243
255
  }
244
256
  /**
245
- * @returns {string}
246
- */
257
+ * @returns {string}
258
+ */
247
259
  to_example_format() {
248
260
  let deferred1_0;
249
261
  let deferred1_1;
250
262
  try {
251
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
252
- wasm.composermodel_to_example_format(retptr, this.__wbg_ptr);
253
- var r0 = getInt32Memory0()[retptr / 4 + 0];
254
- var r1 = getInt32Memory0()[retptr / 4 + 1];
255
- deferred1_0 = r0;
256
- deferred1_1 = r1;
257
- return getStringFromWasm0(r0, r1);
263
+ const ret = wasm.composermodel_to_example_format(this.__wbg_ptr);
264
+ deferred1_0 = ret[0];
265
+ deferred1_1 = ret[1];
266
+ return getStringFromWasm0(ret[0], ret[1]);
258
267
  } finally {
259
- wasm.__wbindgen_add_to_stack_pointer(16);
260
268
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
261
269
  }
262
270
  }
263
271
  /**
264
- * @returns {string}
265
- */
272
+ * @returns {string}
273
+ */
266
274
  get_content_as_html() {
267
275
  let deferred1_0;
268
276
  let deferred1_1;
269
277
  try {
270
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
271
- wasm.composermodel_get_content_as_html(retptr, this.__wbg_ptr);
272
- var r0 = getInt32Memory0()[retptr / 4 + 0];
273
- var r1 = getInt32Memory0()[retptr / 4 + 1];
274
- deferred1_0 = r0;
275
- deferred1_1 = r1;
276
- return getStringFromWasm0(r0, r1);
278
+ const ret = wasm.composermodel_get_content_as_html(this.__wbg_ptr);
279
+ deferred1_0 = ret[0];
280
+ deferred1_1 = ret[1];
281
+ return getStringFromWasm0(ret[0], ret[1]);
277
282
  } finally {
278
- wasm.__wbindgen_add_to_stack_pointer(16);
279
283
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
280
284
  }
281
285
  }
282
286
  /**
283
- * @returns {string}
284
- */
287
+ * @returns {string}
288
+ */
285
289
  get_content_as_message_html() {
286
290
  let deferred1_0;
287
291
  let deferred1_1;
288
292
  try {
289
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
290
- wasm.composermodel_get_content_as_message_html(retptr, this.__wbg_ptr);
291
- var r0 = getInt32Memory0()[retptr / 4 + 0];
292
- var r1 = getInt32Memory0()[retptr / 4 + 1];
293
- deferred1_0 = r0;
294
- deferred1_1 = r1;
295
- return getStringFromWasm0(r0, r1);
293
+ const ret = wasm.composermodel_get_content_as_message_html(this.__wbg_ptr);
294
+ deferred1_0 = ret[0];
295
+ deferred1_1 = ret[1];
296
+ return getStringFromWasm0(ret[0], ret[1]);
296
297
  } finally {
297
- wasm.__wbindgen_add_to_stack_pointer(16);
298
298
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
299
299
  }
300
300
  }
301
301
  /**
302
- * @returns {string}
303
- */
302
+ * @returns {string}
303
+ */
304
304
  get_content_as_markdown() {
305
305
  let deferred1_0;
306
306
  let deferred1_1;
307
307
  try {
308
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
309
- wasm.composermodel_get_content_as_markdown(retptr, this.__wbg_ptr);
310
- var r0 = getInt32Memory0()[retptr / 4 + 0];
311
- var r1 = getInt32Memory0()[retptr / 4 + 1];
312
- deferred1_0 = r0;
313
- deferred1_1 = r1;
314
- return getStringFromWasm0(r0, r1);
308
+ const ret = wasm.composermodel_get_content_as_markdown(this.__wbg_ptr);
309
+ deferred1_0 = ret[0];
310
+ deferred1_1 = ret[1];
311
+ return getStringFromWasm0(ret[0], ret[1]);
315
312
  } finally {
316
- wasm.__wbindgen_add_to_stack_pointer(16);
317
313
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
318
314
  }
319
315
  }
320
316
  /**
321
- * @returns {string}
322
- */
317
+ * @returns {string}
318
+ */
323
319
  get_content_as_message_markdown() {
324
320
  let deferred1_0;
325
321
  let deferred1_1;
326
322
  try {
327
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
328
- wasm.composermodel_get_content_as_message_markdown(retptr, this.__wbg_ptr);
329
- var r0 = getInt32Memory0()[retptr / 4 + 0];
330
- var r1 = getInt32Memory0()[retptr / 4 + 1];
331
- deferred1_0 = r0;
332
- deferred1_1 = r1;
333
- return getStringFromWasm0(r0, r1);
323
+ const ret = wasm.composermodel_get_content_as_message_markdown(this.__wbg_ptr);
324
+ deferred1_0 = ret[0];
325
+ deferred1_1 = ret[1];
326
+ return getStringFromWasm0(ret[0], ret[1]);
334
327
  } finally {
335
- wasm.__wbindgen_add_to_stack_pointer(16);
336
328
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
337
329
  }
338
330
  }
339
331
  /**
340
- * @returns {string}
341
- */
332
+ * @returns {string}
333
+ */
342
334
  get_content_as_plain_text() {
343
335
  let deferred1_0;
344
336
  let deferred1_1;
345
337
  try {
346
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
347
- wasm.composermodel_get_content_as_plain_text(retptr, this.__wbg_ptr);
348
- var r0 = getInt32Memory0()[retptr / 4 + 0];
349
- var r1 = getInt32Memory0()[retptr / 4 + 1];
350
- deferred1_0 = r0;
351
- deferred1_1 = r1;
352
- return getStringFromWasm0(r0, r1);
338
+ const ret = wasm.composermodel_get_content_as_plain_text(this.__wbg_ptr);
339
+ deferred1_0 = ret[0];
340
+ deferred1_1 = ret[1];
341
+ return getStringFromWasm0(ret[0], ret[1]);
353
342
  } finally {
354
- wasm.__wbindgen_add_to_stack_pointer(16);
355
343
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
356
344
  }
357
345
  }
358
346
  /**
359
- * @returns {DomHandle}
360
- */
347
+ * @returns {DomHandle}
348
+ */
361
349
  document() {
362
350
  const ret = wasm.composermodel_document(this.__wbg_ptr);
363
351
  return DomHandle.__wrap(ret);
364
352
  }
365
353
  /**
366
- * @returns {Map<any, any>}
367
- */
354
+ * @returns {Map<any, any>}
355
+ */
368
356
  action_states() {
369
357
  const ret = wasm.composermodel_action_states(this.__wbg_ptr);
370
- return takeObject(ret);
358
+ return ret;
371
359
  }
372
360
  /**
373
- * @param {number} start_utf16_codeunit
374
- * @param {number} end_utf16_codeunit
375
- * @returns {ComposerUpdate}
376
- */
361
+ * @param {number} start_utf16_codeunit
362
+ * @param {number} end_utf16_codeunit
363
+ * @returns {ComposerUpdate}
364
+ */
377
365
  select(start_utf16_codeunit, end_utf16_codeunit) {
378
366
  const ret = wasm.composermodel_select(this.__wbg_ptr, start_utf16_codeunit, end_utf16_codeunit);
379
367
  return ComposerUpdate.__wrap(ret);
380
368
  }
381
369
  /**
382
- * @returns {number}
383
- */
370
+ * @returns {number}
371
+ */
384
372
  selection_start() {
385
373
  const ret = wasm.composermodel_selection_start(this.__wbg_ptr);
386
374
  return ret >>> 0;
387
375
  }
388
376
  /**
389
- * @returns {number}
390
- */
377
+ * @returns {number}
378
+ */
391
379
  selection_end() {
392
380
  const ret = wasm.composermodel_selection_end(this.__wbg_ptr);
393
381
  return ret >>> 0;
394
382
  }
395
383
  /**
396
- * @param {string} new_text
397
- * @returns {ComposerUpdate}
398
- */
384
+ * @param {string} new_text
385
+ * @returns {ComposerUpdate}
386
+ */
399
387
  replace_text(new_text) {
400
388
  const ptr0 = passStringToWasm0(new_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
401
389
  const len0 = WASM_VECTOR_LEN;
@@ -403,11 +391,11 @@ export class ComposerModel {
403
391
  return ComposerUpdate.__wrap(ret);
404
392
  }
405
393
  /**
406
- * @param {string} new_text
407
- * @param {SuggestionPattern} suggestion
408
- * @param {boolean} append_space
409
- * @returns {ComposerUpdate}
410
- */
394
+ * @param {string} new_text
395
+ * @param {SuggestionPattern} suggestion
396
+ * @param {boolean} append_space
397
+ * @returns {ComposerUpdate}
398
+ */
411
399
  replace_text_suggestion(new_text, suggestion, append_space) {
412
400
  const ptr0 = passStringToWasm0(new_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
413
401
  const len0 = WASM_VECTOR_LEN;
@@ -416,275 +404,259 @@ export class ComposerModel {
416
404
  return ComposerUpdate.__wrap(ret);
417
405
  }
418
406
  /**
419
- * @param {string} text
420
- * @returns {ComposerUpdate}
421
- */
407
+ * @param {string} text
408
+ * @returns {ComposerUpdate}
409
+ */
422
410
  set_content_from_html(text) {
423
- try {
424
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
425
- const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
426
- const len0 = WASM_VECTOR_LEN;
427
- wasm.composermodel_set_content_from_html(retptr, this.__wbg_ptr, ptr0, len0);
428
- var r0 = getInt32Memory0()[retptr / 4 + 0];
429
- var r1 = getInt32Memory0()[retptr / 4 + 1];
430
- var r2 = getInt32Memory0()[retptr / 4 + 2];
431
- if (r2) {
432
- throw takeObject(r1);
433
- }
434
- return ComposerUpdate.__wrap(r0);
435
- } finally {
436
- wasm.__wbindgen_add_to_stack_pointer(16);
411
+ const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
412
+ const len0 = WASM_VECTOR_LEN;
413
+ const ret = wasm.composermodel_set_content_from_html(this.__wbg_ptr, ptr0, len0);
414
+ if (ret[2]) {
415
+ throw takeFromExternrefTable0(ret[1]);
437
416
  }
417
+ return ComposerUpdate.__wrap(ret[0]);
438
418
  }
439
419
  /**
440
- * @param {string} text
441
- * @returns {ComposerUpdate}
442
- */
420
+ * @param {string} text
421
+ * @returns {ComposerUpdate}
422
+ */
443
423
  set_content_from_markdown(text) {
444
- try {
445
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
446
- const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
447
- const len0 = WASM_VECTOR_LEN;
448
- wasm.composermodel_set_content_from_markdown(retptr, this.__wbg_ptr, ptr0, len0);
449
- var r0 = getInt32Memory0()[retptr / 4 + 0];
450
- var r1 = getInt32Memory0()[retptr / 4 + 1];
451
- var r2 = getInt32Memory0()[retptr / 4 + 2];
452
- if (r2) {
453
- throw takeObject(r1);
454
- }
455
- return ComposerUpdate.__wrap(r0);
456
- } finally {
457
- wasm.__wbindgen_add_to_stack_pointer(16);
424
+ const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
425
+ const len0 = WASM_VECTOR_LEN;
426
+ const ret = wasm.composermodel_set_content_from_markdown(this.__wbg_ptr, ptr0, len0);
427
+ if (ret[2]) {
428
+ throw takeFromExternrefTable0(ret[1]);
458
429
  }
430
+ return ComposerUpdate.__wrap(ret[0]);
459
431
  }
460
432
  /**
461
- * @returns {ComposerUpdate}
462
- */
433
+ * @returns {ComposerUpdate}
434
+ */
463
435
  clear() {
464
436
  const ret = wasm.composermodel_clear(this.__wbg_ptr);
465
437
  return ComposerUpdate.__wrap(ret);
466
438
  }
467
439
  /**
468
- * @returns {ComposerUpdate}
469
- */
440
+ * @returns {ComposerUpdate}
441
+ */
470
442
  enter() {
471
443
  const ret = wasm.composermodel_enter(this.__wbg_ptr);
472
444
  return ComposerUpdate.__wrap(ret);
473
445
  }
474
446
  /**
475
- * @returns {ComposerUpdate}
476
- */
447
+ * @returns {ComposerUpdate}
448
+ */
477
449
  backspace() {
478
450
  const ret = wasm.composermodel_backspace(this.__wbg_ptr);
479
451
  return ComposerUpdate.__wrap(ret);
480
452
  }
481
453
  /**
482
- * @returns {ComposerUpdate}
483
- */
454
+ * @returns {ComposerUpdate}
455
+ */
484
456
  backspace_word() {
485
457
  const ret = wasm.composermodel_backspace_word(this.__wbg_ptr);
486
458
  return ComposerUpdate.__wrap(ret);
487
459
  }
488
460
  /**
489
- * @returns {ComposerUpdate}
490
- */
461
+ * @returns {ComposerUpdate}
462
+ */
491
463
  delete() {
492
464
  const ret = wasm.composermodel_delete(this.__wbg_ptr);
493
465
  return ComposerUpdate.__wrap(ret);
494
466
  }
495
467
  /**
496
- * @returns {ComposerUpdate}
497
- */
468
+ * @returns {ComposerUpdate}
469
+ */
498
470
  delete_word() {
499
471
  const ret = wasm.composermodel_delete_word(this.__wbg_ptr);
500
472
  return ComposerUpdate.__wrap(ret);
501
473
  }
502
474
  /**
503
- * @returns {ComposerUpdate}
504
- */
475
+ * @returns {ComposerUpdate}
476
+ */
505
477
  bold() {
506
478
  const ret = wasm.composermodel_bold(this.__wbg_ptr);
507
479
  return ComposerUpdate.__wrap(ret);
508
480
  }
509
481
  /**
510
- * @returns {ComposerUpdate}
511
- */
482
+ * @returns {ComposerUpdate}
483
+ */
512
484
  italic() {
513
485
  const ret = wasm.composermodel_italic(this.__wbg_ptr);
514
486
  return ComposerUpdate.__wrap(ret);
515
487
  }
516
488
  /**
517
- * @returns {ComposerUpdate}
518
- */
489
+ * @returns {ComposerUpdate}
490
+ */
519
491
  strike_through() {
520
492
  const ret = wasm.composermodel_strike_through(this.__wbg_ptr);
521
493
  return ComposerUpdate.__wrap(ret);
522
494
  }
523
495
  /**
524
- * @returns {ComposerUpdate}
525
- */
496
+ * @returns {ComposerUpdate}
497
+ */
526
498
  underline() {
527
499
  const ret = wasm.composermodel_underline(this.__wbg_ptr);
528
500
  return ComposerUpdate.__wrap(ret);
529
501
  }
530
502
  /**
531
- * @returns {ComposerUpdate}
532
- */
503
+ * @returns {ComposerUpdate}
504
+ */
533
505
  quote() {
534
506
  const ret = wasm.composermodel_quote(this.__wbg_ptr);
535
507
  return ComposerUpdate.__wrap(ret);
536
508
  }
537
509
  /**
538
- * @returns {ComposerUpdate}
539
- */
510
+ * @returns {ComposerUpdate}
511
+ */
540
512
  inline_code() {
541
513
  const ret = wasm.composermodel_inline_code(this.__wbg_ptr);
542
514
  return ComposerUpdate.__wrap(ret);
543
515
  }
544
516
  /**
545
- * @returns {ComposerUpdate}
546
- */
517
+ * @returns {ComposerUpdate}
518
+ */
547
519
  code_block() {
548
520
  const ret = wasm.composermodel_code_block(this.__wbg_ptr);
549
521
  return ComposerUpdate.__wrap(ret);
550
522
  }
551
523
  /**
552
- * @returns {ComposerUpdate}
553
- */
524
+ * @returns {ComposerUpdate}
525
+ */
554
526
  undo() {
555
527
  const ret = wasm.composermodel_undo(this.__wbg_ptr);
556
528
  return ComposerUpdate.__wrap(ret);
557
529
  }
558
530
  /**
559
- * @returns {ComposerUpdate}
560
- */
531
+ * @returns {ComposerUpdate}
532
+ */
561
533
  redo() {
562
534
  const ret = wasm.composermodel_redo(this.__wbg_ptr);
563
535
  return ComposerUpdate.__wrap(ret);
564
536
  }
565
537
  /**
566
- * @returns {ComposerUpdate}
567
- */
538
+ * @returns {ComposerUpdate}
539
+ */
568
540
  ordered_list() {
569
541
  const ret = wasm.composermodel_ordered_list(this.__wbg_ptr);
570
542
  return ComposerUpdate.__wrap(ret);
571
543
  }
572
544
  /**
573
- * @returns {ComposerUpdate}
574
- */
545
+ * @returns {ComposerUpdate}
546
+ */
575
547
  unordered_list() {
576
548
  const ret = wasm.composermodel_unordered_list(this.__wbg_ptr);
577
549
  return ComposerUpdate.__wrap(ret);
578
550
  }
579
551
  /**
580
- * @returns {ComposerUpdate}
581
- */
552
+ * @returns {ComposerUpdate}
553
+ */
582
554
  indent() {
583
555
  const ret = wasm.composermodel_indent(this.__wbg_ptr);
584
556
  return ComposerUpdate.__wrap(ret);
585
557
  }
586
558
  /**
587
- * @returns {ComposerUpdate}
588
- */
559
+ * @returns {ComposerUpdate}
560
+ */
589
561
  unindent() {
590
562
  const ret = wasm.composermodel_unindent(this.__wbg_ptr);
591
563
  return ComposerUpdate.__wrap(ret);
592
564
  }
593
565
  /**
594
- * @returns {LinkAction}
595
- */
566
+ * @returns {LinkAction}
567
+ */
596
568
  get_link_action() {
597
569
  const ret = wasm.composermodel_get_link_action(this.__wbg_ptr);
598
570
  return LinkAction.__wrap(ret);
599
571
  }
600
572
  /**
601
- * @param {string} url
602
- * @param {Map<any, any>} attributes
603
- * @returns {ComposerUpdate}
604
- */
573
+ * @param {string} url
574
+ * @param {Map<any, any>} attributes
575
+ * @returns {ComposerUpdate}
576
+ */
605
577
  set_link(url, attributes) {
606
578
  const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
607
579
  const len0 = WASM_VECTOR_LEN;
608
- const ret = wasm.composermodel_set_link(this.__wbg_ptr, ptr0, len0, addHeapObject(attributes));
580
+ const ret = wasm.composermodel_set_link(this.__wbg_ptr, ptr0, len0, attributes);
609
581
  return ComposerUpdate.__wrap(ret);
610
582
  }
611
583
  /**
612
- * @param {string} url
613
- * @param {string} text
614
- * @param {Map<any, any>} attributes
615
- * @returns {ComposerUpdate}
616
- */
584
+ * @param {string} url
585
+ * @param {string} text
586
+ * @param {Map<any, any>} attributes
587
+ * @returns {ComposerUpdate}
588
+ */
617
589
  set_link_with_text(url, text, attributes) {
618
590
  const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
619
591
  const len0 = WASM_VECTOR_LEN;
620
592
  const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
621
593
  const len1 = WASM_VECTOR_LEN;
622
- const ret = wasm.composermodel_set_link_with_text(this.__wbg_ptr, ptr0, len0, ptr1, len1, addHeapObject(attributes));
594
+ const ret = wasm.composermodel_set_link_with_text(this.__wbg_ptr, ptr0, len0, ptr1, len1, attributes);
623
595
  return ComposerUpdate.__wrap(ret);
624
596
  }
625
597
  /**
626
- * @param {Array<any>} custom_suggestion_patterns
627
- */
598
+ * @param {Array<any>} custom_suggestion_patterns
599
+ */
628
600
  set_custom_suggestion_patterns(custom_suggestion_patterns) {
629
- wasm.composermodel_set_custom_suggestion_patterns(this.__wbg_ptr, addHeapObject(custom_suggestion_patterns));
601
+ wasm.composermodel_set_custom_suggestion_patterns(this.__wbg_ptr, custom_suggestion_patterns);
630
602
  }
631
603
  /**
632
- * Creates an at-room mention node and inserts it into the composer at the current selection
633
- * @param {Map<any, any>} attributes
634
- * @returns {ComposerUpdate}
635
- */
604
+ * Creates an at-room mention node and inserts it into the composer at the current selection
605
+ * @param {Map<any, any>} attributes
606
+ * @returns {ComposerUpdate}
607
+ */
636
608
  insert_at_room_mention(attributes) {
637
- const ret = wasm.composermodel_insert_at_room_mention(this.__wbg_ptr, addHeapObject(attributes));
609
+ const ret = wasm.composermodel_insert_at_room_mention(this.__wbg_ptr, attributes);
638
610
  return ComposerUpdate.__wrap(ret);
639
611
  }
640
612
  /**
641
- * Creates a mention node and inserts it into the composer at the current selection
642
- * @param {string} url
643
- * @param {string} text
644
- * @param {Map<any, any>} attributes
645
- * @returns {ComposerUpdate}
646
- */
613
+ * Creates a mention node and inserts it into the composer at the current selection
614
+ * @param {string} url
615
+ * @param {string} text
616
+ * @param {Map<any, any>} attributes
617
+ * @returns {ComposerUpdate}
618
+ */
647
619
  insert_mention(url, text, attributes) {
648
620
  const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
649
621
  const len0 = WASM_VECTOR_LEN;
650
622
  const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
651
623
  const len1 = WASM_VECTOR_LEN;
652
- const ret = wasm.composermodel_insert_mention(this.__wbg_ptr, ptr0, len0, ptr1, len1, addHeapObject(attributes));
624
+ const ret = wasm.composermodel_insert_mention(this.__wbg_ptr, ptr0, len0, ptr1, len1, attributes);
653
625
  return ComposerUpdate.__wrap(ret);
654
626
  }
655
627
  /**
656
- * Creates an at-room mention node and inserts it into the composer, replacing the
657
- * text content defined by the suggestion
658
- * @param {SuggestionPattern} suggestion
659
- * @param {Map<any, any>} attributes
660
- * @returns {ComposerUpdate}
661
- */
628
+ * Creates an at-room mention node and inserts it into the composer, replacing the
629
+ * text content defined by the suggestion
630
+ * @param {SuggestionPattern} suggestion
631
+ * @param {Map<any, any>} attributes
632
+ * @returns {ComposerUpdate}
633
+ */
662
634
  insert_at_room_mention_at_suggestion(suggestion, attributes) {
663
635
  _assertClass(suggestion, SuggestionPattern);
664
- const ret = wasm.composermodel_insert_at_room_mention_at_suggestion(this.__wbg_ptr, suggestion.__wbg_ptr, addHeapObject(attributes));
636
+ const ret = wasm.composermodel_insert_at_room_mention_at_suggestion(this.__wbg_ptr, suggestion.__wbg_ptr, attributes);
665
637
  return ComposerUpdate.__wrap(ret);
666
638
  }
667
639
  /**
668
- * Creates a mention node and inserts it into the composer, replacing the
669
- * text content defined by the suggestion
670
- * @param {string} url
671
- * @param {string} text
672
- * @param {SuggestionPattern} suggestion
673
- * @param {Map<any, any>} attributes
674
- * @returns {ComposerUpdate}
675
- */
640
+ * Creates a mention node and inserts it into the composer, replacing the
641
+ * text content defined by the suggestion
642
+ * @param {string} url
643
+ * @param {string} text
644
+ * @param {SuggestionPattern} suggestion
645
+ * @param {Map<any, any>} attributes
646
+ * @returns {ComposerUpdate}
647
+ */
676
648
  insert_mention_at_suggestion(url, text, suggestion, attributes) {
677
649
  const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
678
650
  const len0 = WASM_VECTOR_LEN;
679
651
  const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
680
652
  const len1 = WASM_VECTOR_LEN;
681
653
  _assertClass(suggestion, SuggestionPattern);
682
- const ret = wasm.composermodel_insert_mention_at_suggestion(this.__wbg_ptr, ptr0, len0, ptr1, len1, suggestion.__wbg_ptr, addHeapObject(attributes));
654
+ const ret = wasm.composermodel_insert_mention_at_suggestion(this.__wbg_ptr, ptr0, len0, ptr1, len1, suggestion.__wbg_ptr, attributes);
683
655
  return ComposerUpdate.__wrap(ret);
684
656
  }
685
657
  /**
686
- * @returns {ComposerUpdate}
687
- */
658
+ * @returns {ComposerUpdate}
659
+ */
688
660
  remove_links() {
689
661
  const ret = wasm.composermodel_remove_links(this.__wbg_ptr);
690
662
  return ComposerUpdate.__wrap(ret);
@@ -693,9 +665,8 @@ export class ComposerModel {
693
665
 
694
666
  const ComposerUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
695
667
  ? { register: () => {}, unregister: () => {} }
696
- : new FinalizationRegistry(ptr => wasm.__wbg_composerupdate_free(ptr >>> 0));
697
- /**
698
- */
668
+ : new FinalizationRegistry(ptr => wasm.__wbg_composerupdate_free(ptr >>> 0, 1));
669
+
699
670
  export class ComposerUpdate {
700
671
 
701
672
  static __wrap(ptr) {
@@ -715,25 +686,25 @@ export class ComposerUpdate {
715
686
 
716
687
  free() {
717
688
  const ptr = this.__destroy_into_raw();
718
- wasm.__wbg_composerupdate_free(ptr);
689
+ wasm.__wbg_composerupdate_free(ptr, 0);
719
690
  }
720
691
  /**
721
- * @returns {TextUpdate}
722
- */
692
+ * @returns {TextUpdate}
693
+ */
723
694
  text_update() {
724
695
  const ret = wasm.composerupdate_text_update(this.__wbg_ptr);
725
696
  return TextUpdate.__wrap(ret);
726
697
  }
727
698
  /**
728
- * @returns {MenuState}
729
- */
699
+ * @returns {MenuState}
700
+ */
730
701
  menu_state() {
731
702
  const ret = wasm.composerupdate_menu_state(this.__wbg_ptr);
732
703
  return MenuState.__wrap(ret);
733
704
  }
734
705
  /**
735
- * @returns {MenuAction}
736
- */
706
+ * @returns {MenuAction}
707
+ */
737
708
  menu_action() {
738
709
  const ret = wasm.composerupdate_menu_action(this.__wbg_ptr);
739
710
  return MenuAction.__wrap(ret);
@@ -742,9 +713,8 @@ export class ComposerUpdate {
742
713
 
743
714
  const CreateFinalization = (typeof FinalizationRegistry === 'undefined')
744
715
  ? { register: () => {}, unregister: () => {} }
745
- : new FinalizationRegistry(ptr => wasm.__wbg_create_free(ptr >>> 0));
746
- /**
747
- */
716
+ : new FinalizationRegistry(ptr => wasm.__wbg_create_free(ptr >>> 0, 1));
717
+
748
718
  export class Create {
749
719
 
750
720
  static __wrap(ptr) {
@@ -764,15 +734,14 @@ export class Create {
764
734
 
765
735
  free() {
766
736
  const ptr = this.__destroy_into_raw();
767
- wasm.__wbg_create_free(ptr);
737
+ wasm.__wbg_create_free(ptr, 0);
768
738
  }
769
739
  }
770
740
 
771
741
  const CreateWithTextFinalization = (typeof FinalizationRegistry === 'undefined')
772
742
  ? { register: () => {}, unregister: () => {} }
773
- : new FinalizationRegistry(ptr => wasm.__wbg_createwithtext_free(ptr >>> 0));
774
- /**
775
- */
743
+ : new FinalizationRegistry(ptr => wasm.__wbg_createwithtext_free(ptr >>> 0, 1));
744
+
776
745
  export class CreateWithText {
777
746
 
778
747
  static __wrap(ptr) {
@@ -792,15 +761,14 @@ export class CreateWithText {
792
761
 
793
762
  free() {
794
763
  const ptr = this.__destroy_into_raw();
795
- wasm.__wbg_createwithtext_free(ptr);
764
+ wasm.__wbg_createwithtext_free(ptr, 0);
796
765
  }
797
766
  }
798
767
 
799
768
  const DisabledFinalization = (typeof FinalizationRegistry === 'undefined')
800
769
  ? { register: () => {}, unregister: () => {} }
801
- : new FinalizationRegistry(ptr => wasm.__wbg_disabled_free(ptr >>> 0));
802
- /**
803
- */
770
+ : new FinalizationRegistry(ptr => wasm.__wbg_disabled_free(ptr >>> 0, 1));
771
+
804
772
  export class Disabled {
805
773
 
806
774
  static __wrap(ptr) {
@@ -820,17 +788,17 @@ export class Disabled {
820
788
 
821
789
  free() {
822
790
  const ptr = this.__destroy_into_raw();
823
- wasm.__wbg_disabled_free(ptr);
791
+ wasm.__wbg_disabled_free(ptr, 0);
824
792
  }
825
793
  }
826
794
 
827
795
  const DomChildrenFinalization = (typeof FinalizationRegistry === 'undefined')
828
796
  ? { register: () => {}, unregister: () => {} }
829
- : new FinalizationRegistry(ptr => wasm.__wbg_domchildren_free(ptr >>> 0));
797
+ : new FinalizationRegistry(ptr => wasm.__wbg_domchildren_free(ptr >>> 0, 1));
830
798
  /**
831
- * An iterator-like view of a DomHandle's children, written to work around
832
- * the lack of support for returning Vec<T> in wasm_bindgen.
833
- */
799
+ * An iterator-like view of a DomHandle's children, written to work around
800
+ * the lack of support for returning Vec<T> in wasm_bindgen.
801
+ */
834
802
  export class DomChildren {
835
803
 
836
804
  static __wrap(ptr) {
@@ -850,11 +818,11 @@ export class DomChildren {
850
818
 
851
819
  free() {
852
820
  const ptr = this.__destroy_into_raw();
853
- wasm.__wbg_domchildren_free(ptr);
821
+ wasm.__wbg_domchildren_free(ptr, 0);
854
822
  }
855
823
  /**
856
- * @returns {DomHandle | undefined}
857
- */
824
+ * @returns {DomHandle | undefined}
825
+ */
858
826
  next_child() {
859
827
  const ret = wasm.domchildren_next_child(this.__wbg_ptr);
860
828
  return ret === 0 ? undefined : DomHandle.__wrap(ret);
@@ -863,10 +831,10 @@ export class DomChildren {
863
831
 
864
832
  const DomHandleFinalization = (typeof FinalizationRegistry === 'undefined')
865
833
  ? { register: () => {}, unregister: () => {} }
866
- : new FinalizationRegistry(ptr => wasm.__wbg_domhandle_free(ptr >>> 0));
834
+ : new FinalizationRegistry(ptr => wasm.__wbg_domhandle_free(ptr >>> 0, 1));
867
835
  /**
868
- * Refers to a node in the composer model.
869
- */
836
+ * Refers to a node in the composer model.
837
+ */
870
838
  export class DomHandle {
871
839
 
872
840
  static __wrap(ptr) {
@@ -886,96 +854,84 @@ export class DomHandle {
886
854
 
887
855
  free() {
888
856
  const ptr = this.__destroy_into_raw();
889
- wasm.__wbg_domhandle_free(ptr);
857
+ wasm.__wbg_domhandle_free(ptr, 0);
890
858
  }
891
859
  /**
892
- * Returns "container", "line_break", "text" or "zwsp" depending on the type of
893
- * node we refer to.
894
- * Panics if we are not a valid reference (because the model has changed
895
- * since we were created, or because you passed in a different model
896
- * from the one that created us.)
897
- * @param {ComposerModel} model
898
- * @returns {string}
899
- */
860
+ * Returns "container", "line_break", "text" or "zwsp" depending on the type of
861
+ * node we refer to.
862
+ * Panics if we are not a valid reference (because the model has changed
863
+ * since we were created, or because you passed in a different model
864
+ * from the one that created us.)
865
+ * @param {ComposerModel} model
866
+ * @returns {string}
867
+ */
900
868
  node_type(model) {
901
869
  let deferred1_0;
902
870
  let deferred1_1;
903
871
  try {
904
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
905
872
  _assertClass(model, ComposerModel);
906
- wasm.domhandle_node_type(retptr, this.__wbg_ptr, model.__wbg_ptr);
907
- var r0 = getInt32Memory0()[retptr / 4 + 0];
908
- var r1 = getInt32Memory0()[retptr / 4 + 1];
909
- deferred1_0 = r0;
910
- deferred1_1 = r1;
911
- return getStringFromWasm0(r0, r1);
873
+ const ret = wasm.domhandle_node_type(this.__wbg_ptr, model.__wbg_ptr);
874
+ deferred1_0 = ret[0];
875
+ deferred1_1 = ret[1];
876
+ return getStringFromWasm0(ret[0], ret[1]);
912
877
  } finally {
913
- wasm.__wbindgen_add_to_stack_pointer(16);
914
878
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
915
879
  }
916
880
  }
917
881
  /**
918
- * Returns a list of our children nodes, or an empty list if we refer
919
- * to a text or line break node.
920
- * Panics if we are not a valid reference (because the model has changed
921
- * since we were created, or because you passed in a different model
922
- * from the one that created us.)
923
- * @param {ComposerModel} model
924
- * @returns {DomChildren}
925
- */
882
+ * Returns a list of our children nodes, or an empty list if we refer
883
+ * to a text or line break node.
884
+ * Panics if we are not a valid reference (because the model has changed
885
+ * since we were created, or because you passed in a different model
886
+ * from the one that created us.)
887
+ * @param {ComposerModel} model
888
+ * @returns {DomChildren}
889
+ */
926
890
  children(model) {
927
891
  _assertClass(model, ComposerModel);
928
892
  const ret = wasm.domhandle_children(this.__wbg_ptr, model.__wbg_ptr);
929
893
  return DomChildren.__wrap(ret);
930
894
  }
931
895
  /**
932
- * Returns the text of this node, or an empty string if this is a
933
- * container or line break.
934
- * Panics if we are not a valid reference (because the model has changed
935
- * since we were created, or because you passed in a different model
936
- * from the one that created us.)
937
- * @param {ComposerModel} model
938
- * @returns {string}
939
- */
896
+ * Returns the text of this node, or an empty string if this is a
897
+ * container or line break.
898
+ * Panics if we are not a valid reference (because the model has changed
899
+ * since we were created, or because you passed in a different model
900
+ * from the one that created us.)
901
+ * @param {ComposerModel} model
902
+ * @returns {string}
903
+ */
940
904
  text(model) {
941
905
  let deferred1_0;
942
906
  let deferred1_1;
943
907
  try {
944
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
945
908
  _assertClass(model, ComposerModel);
946
- wasm.domhandle_text(retptr, this.__wbg_ptr, model.__wbg_ptr);
947
- var r0 = getInt32Memory0()[retptr / 4 + 0];
948
- var r1 = getInt32Memory0()[retptr / 4 + 1];
949
- deferred1_0 = r0;
950
- deferred1_1 = r1;
951
- return getStringFromWasm0(r0, r1);
909
+ const ret = wasm.domhandle_text(this.__wbg_ptr, model.__wbg_ptr);
910
+ deferred1_0 = ret[0];
911
+ deferred1_1 = ret[1];
912
+ return getStringFromWasm0(ret[0], ret[1]);
952
913
  } finally {
953
- wasm.__wbindgen_add_to_stack_pointer(16);
954
914
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
955
915
  }
956
916
  }
957
917
  /**
958
- * Returns our tagname, or "-text-"/"-zwsp-" if we are a text/zwsp node.
959
- * Panics if we are not a valid reference (because the model has changed
960
- * since we were created, or because you passed in a different model
961
- * from the one that created us.)
962
- * @param {ComposerModel} model
963
- * @returns {string}
964
- */
918
+ * Returns our tagname, or "-text-"/"-zwsp-" if we are a text/zwsp node.
919
+ * Panics if we are not a valid reference (because the model has changed
920
+ * since we were created, or because you passed in a different model
921
+ * from the one that created us.)
922
+ * @param {ComposerModel} model
923
+ * @returns {string}
924
+ */
965
925
  tag(model) {
966
926
  let deferred1_0;
967
927
  let deferred1_1;
968
928
  try {
969
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
970
929
  _assertClass(model, ComposerModel);
971
- wasm.domhandle_tag(retptr, this.__wbg_ptr, model.__wbg_ptr);
972
- var r0 = getInt32Memory0()[retptr / 4 + 0];
973
- var r1 = getInt32Memory0()[retptr / 4 + 1];
974
- deferred1_0 = r0;
975
- deferred1_1 = r1;
976
- return getStringFromWasm0(r0, r1);
930
+ const ret = wasm.domhandle_tag(this.__wbg_ptr, model.__wbg_ptr);
931
+ deferred1_0 = ret[0];
932
+ deferred1_1 = ret[1];
933
+ return getStringFromWasm0(ret[0], ret[1]);
977
934
  } finally {
978
- wasm.__wbindgen_add_to_stack_pointer(16);
979
935
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
980
936
  }
981
937
  }
@@ -983,9 +939,8 @@ export class DomHandle {
983
939
 
984
940
  const EditFinalization = (typeof FinalizationRegistry === 'undefined')
985
941
  ? { register: () => {}, unregister: () => {} }
986
- : new FinalizationRegistry(ptr => wasm.__wbg_edit_free(ptr >>> 0));
987
- /**
988
- */
942
+ : new FinalizationRegistry(ptr => wasm.__wbg_edit_free(ptr >>> 0, 1));
943
+
989
944
  export class Edit {
990
945
 
991
946
  static __wrap(ptr) {
@@ -1005,30 +960,26 @@ export class Edit {
1005
960
 
1006
961
  free() {
1007
962
  const ptr = this.__destroy_into_raw();
1008
- wasm.__wbg_edit_free(ptr);
963
+ wasm.__wbg_edit_free(ptr, 0);
1009
964
  }
1010
965
  /**
1011
- * @returns {string}
1012
- */
966
+ * @returns {string}
967
+ */
1013
968
  get url() {
1014
969
  let deferred1_0;
1015
970
  let deferred1_1;
1016
971
  try {
1017
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1018
- wasm.__wbg_get_edit_url(retptr, this.__wbg_ptr);
1019
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1020
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1021
- deferred1_0 = r0;
1022
- deferred1_1 = r1;
1023
- return getStringFromWasm0(r0, r1);
972
+ const ret = wasm.__wbg_get_edit_url(this.__wbg_ptr);
973
+ deferred1_0 = ret[0];
974
+ deferred1_1 = ret[1];
975
+ return getStringFromWasm0(ret[0], ret[1]);
1024
976
  } finally {
1025
- wasm.__wbindgen_add_to_stack_pointer(16);
1026
977
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1027
978
  }
1028
979
  }
1029
980
  /**
1030
- * @param {string} arg0
1031
- */
981
+ * @param {string} arg0
982
+ */
1032
983
  set url(arg0) {
1033
984
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1034
985
  const len0 = WASM_VECTOR_LEN;
@@ -1038,9 +989,8 @@ export class Edit {
1038
989
 
1039
990
  const KeepFinalization = (typeof FinalizationRegistry === 'undefined')
1040
991
  ? { register: () => {}, unregister: () => {} }
1041
- : new FinalizationRegistry(ptr => wasm.__wbg_keep_free(ptr >>> 0));
1042
- /**
1043
- */
992
+ : new FinalizationRegistry(ptr => wasm.__wbg_keep_free(ptr >>> 0, 1));
993
+
1044
994
  export class Keep {
1045
995
 
1046
996
  static __wrap(ptr) {
@@ -1060,15 +1010,14 @@ export class Keep {
1060
1010
 
1061
1011
  free() {
1062
1012
  const ptr = this.__destroy_into_raw();
1063
- wasm.__wbg_keep_free(ptr);
1013
+ wasm.__wbg_keep_free(ptr, 0);
1064
1014
  }
1065
1015
  }
1066
1016
 
1067
1017
  const LinkActionFinalization = (typeof FinalizationRegistry === 'undefined')
1068
1018
  ? { register: () => {}, unregister: () => {} }
1069
- : new FinalizationRegistry(ptr => wasm.__wbg_linkaction_free(ptr >>> 0));
1070
- /**
1071
- */
1019
+ : new FinalizationRegistry(ptr => wasm.__wbg_linkaction_free(ptr >>> 0, 1));
1020
+
1072
1021
  export class LinkAction {
1073
1022
 
1074
1023
  static __wrap(ptr) {
@@ -1088,18 +1037,18 @@ export class LinkAction {
1088
1037
 
1089
1038
  free() {
1090
1039
  const ptr = this.__destroy_into_raw();
1091
- wasm.__wbg_linkaction_free(ptr);
1040
+ wasm.__wbg_linkaction_free(ptr, 0);
1092
1041
  }
1093
1042
  /**
1094
- * @returns {CreateWithText | undefined}
1095
- */
1043
+ * @returns {CreateWithText | undefined}
1044
+ */
1096
1045
  get create_with_text() {
1097
1046
  const ret = wasm.__wbg_get_linkaction_create_with_text(this.__wbg_ptr);
1098
1047
  return ret === 0 ? undefined : CreateWithText.__wrap(ret);
1099
1048
  }
1100
1049
  /**
1101
- * @param {CreateWithText | undefined} [arg0]
1102
- */
1050
+ * @param {CreateWithText | null} [arg0]
1051
+ */
1103
1052
  set create_with_text(arg0) {
1104
1053
  let ptr0 = 0;
1105
1054
  if (!isLikeNone(arg0)) {
@@ -1109,15 +1058,15 @@ export class LinkAction {
1109
1058
  wasm.__wbg_set_linkaction_create_with_text(this.__wbg_ptr, ptr0);
1110
1059
  }
1111
1060
  /**
1112
- * @returns {Create | undefined}
1113
- */
1061
+ * @returns {Create | undefined}
1062
+ */
1114
1063
  get create() {
1115
1064
  const ret = wasm.__wbg_get_linkaction_create(this.__wbg_ptr);
1116
1065
  return ret === 0 ? undefined : Create.__wrap(ret);
1117
1066
  }
1118
1067
  /**
1119
- * @param {Create | undefined} [arg0]
1120
- */
1068
+ * @param {Create | null} [arg0]
1069
+ */
1121
1070
  set create(arg0) {
1122
1071
  let ptr0 = 0;
1123
1072
  if (!isLikeNone(arg0)) {
@@ -1127,15 +1076,15 @@ export class LinkAction {
1127
1076
  wasm.__wbg_set_linkaction_create(this.__wbg_ptr, ptr0);
1128
1077
  }
1129
1078
  /**
1130
- * @returns {Edit | undefined}
1131
- */
1079
+ * @returns {Edit | undefined}
1080
+ */
1132
1081
  get edit_link() {
1133
1082
  const ret = wasm.__wbg_get_linkaction_edit_link(this.__wbg_ptr);
1134
1083
  return ret === 0 ? undefined : Edit.__wrap(ret);
1135
1084
  }
1136
1085
  /**
1137
- * @param {Edit | undefined} [arg0]
1138
- */
1086
+ * @param {Edit | null} [arg0]
1087
+ */
1139
1088
  set edit_link(arg0) {
1140
1089
  let ptr0 = 0;
1141
1090
  if (!isLikeNone(arg0)) {
@@ -1145,15 +1094,15 @@ export class LinkAction {
1145
1094
  wasm.__wbg_set_linkaction_edit_link(this.__wbg_ptr, ptr0);
1146
1095
  }
1147
1096
  /**
1148
- * @returns {Disabled | undefined}
1149
- */
1097
+ * @returns {Disabled | undefined}
1098
+ */
1150
1099
  get disabled() {
1151
1100
  const ret = wasm.__wbg_get_linkaction_disabled(this.__wbg_ptr);
1152
1101
  return ret === 0 ? undefined : Disabled.__wrap(ret);
1153
1102
  }
1154
1103
  /**
1155
- * @param {Disabled | undefined} [arg0]
1156
- */
1104
+ * @param {Disabled | null} [arg0]
1105
+ */
1157
1106
  set disabled(arg0) {
1158
1107
  let ptr0 = 0;
1159
1108
  if (!isLikeNone(arg0)) {
@@ -1166,9 +1115,8 @@ export class LinkAction {
1166
1115
 
1167
1116
  const MenuActionFinalization = (typeof FinalizationRegistry === 'undefined')
1168
1117
  ? { register: () => {}, unregister: () => {} }
1169
- : new FinalizationRegistry(ptr => wasm.__wbg_menuaction_free(ptr >>> 0));
1170
- /**
1171
- */
1118
+ : new FinalizationRegistry(ptr => wasm.__wbg_menuaction_free(ptr >>> 0, 1));
1119
+
1172
1120
  export class MenuAction {
1173
1121
 
1174
1122
  static __wrap(ptr) {
@@ -1188,25 +1136,25 @@ export class MenuAction {
1188
1136
 
1189
1137
  free() {
1190
1138
  const ptr = this.__destroy_into_raw();
1191
- wasm.__wbg_menuaction_free(ptr);
1139
+ wasm.__wbg_menuaction_free(ptr, 0);
1192
1140
  }
1193
1141
  /**
1194
- * @returns {boolean}
1195
- */
1142
+ * @returns {boolean}
1143
+ */
1196
1144
  keep() {
1197
1145
  const ret = wasm.menuaction_keep(this.__wbg_ptr);
1198
1146
  return ret !== 0;
1199
1147
  }
1200
1148
  /**
1201
- * @returns {boolean}
1202
- */
1149
+ * @returns {boolean}
1150
+ */
1203
1151
  none() {
1204
1152
  const ret = wasm.menuaction_none(this.__wbg_ptr);
1205
1153
  return ret !== 0;
1206
1154
  }
1207
1155
  /**
1208
- * @returns {MenuActionSuggestion | undefined}
1209
- */
1156
+ * @returns {MenuActionSuggestion | undefined}
1157
+ */
1210
1158
  suggestion() {
1211
1159
  const ret = wasm.menuaction_suggestion(this.__wbg_ptr);
1212
1160
  return ret === 0 ? undefined : MenuActionSuggestion.__wrap(ret);
@@ -1215,9 +1163,8 @@ export class MenuAction {
1215
1163
 
1216
1164
  const MenuActionSuggestionFinalization = (typeof FinalizationRegistry === 'undefined')
1217
1165
  ? { register: () => {}, unregister: () => {} }
1218
- : new FinalizationRegistry(ptr => wasm.__wbg_menuactionsuggestion_free(ptr >>> 0));
1219
- /**
1220
- */
1166
+ : new FinalizationRegistry(ptr => wasm.__wbg_menuactionsuggestion_free(ptr >>> 0, 1));
1167
+
1221
1168
  export class MenuActionSuggestion {
1222
1169
 
1223
1170
  static __wrap(ptr) {
@@ -1237,18 +1184,18 @@ export class MenuActionSuggestion {
1237
1184
 
1238
1185
  free() {
1239
1186
  const ptr = this.__destroy_into_raw();
1240
- wasm.__wbg_menuactionsuggestion_free(ptr);
1187
+ wasm.__wbg_menuactionsuggestion_free(ptr, 0);
1241
1188
  }
1242
1189
  /**
1243
- * @returns {SuggestionPattern}
1244
- */
1190
+ * @returns {SuggestionPattern}
1191
+ */
1245
1192
  get suggestion_pattern() {
1246
1193
  const ret = wasm.__wbg_get_menuactionsuggestion_suggestion_pattern(this.__wbg_ptr);
1247
1194
  return SuggestionPattern.__wrap(ret);
1248
1195
  }
1249
1196
  /**
1250
- * @param {SuggestionPattern} arg0
1251
- */
1197
+ * @param {SuggestionPattern} arg0
1198
+ */
1252
1199
  set suggestion_pattern(arg0) {
1253
1200
  _assertClass(arg0, SuggestionPattern);
1254
1201
  var ptr0 = arg0.__destroy_into_raw();
@@ -1258,9 +1205,8 @@ export class MenuActionSuggestion {
1258
1205
 
1259
1206
  const MenuStateFinalization = (typeof FinalizationRegistry === 'undefined')
1260
1207
  ? { register: () => {}, unregister: () => {} }
1261
- : new FinalizationRegistry(ptr => wasm.__wbg_menustate_free(ptr >>> 0));
1262
- /**
1263
- */
1208
+ : new FinalizationRegistry(ptr => wasm.__wbg_menustate_free(ptr >>> 0, 1));
1209
+
1264
1210
  export class MenuState {
1265
1211
 
1266
1212
  static __wrap(ptr) {
@@ -1280,18 +1226,18 @@ export class MenuState {
1280
1226
 
1281
1227
  free() {
1282
1228
  const ptr = this.__destroy_into_raw();
1283
- wasm.__wbg_menustate_free(ptr);
1229
+ wasm.__wbg_menustate_free(ptr, 0);
1284
1230
  }
1285
1231
  /**
1286
- * @returns {boolean}
1287
- */
1232
+ * @returns {boolean}
1233
+ */
1288
1234
  keep() {
1289
1235
  const ret = wasm.menustate_keep(this.__wbg_ptr);
1290
1236
  return ret !== 0;
1291
1237
  }
1292
1238
  /**
1293
- * @returns {MenuStateUpdate | undefined}
1294
- */
1239
+ * @returns {MenuStateUpdate | undefined}
1240
+ */
1295
1241
  update() {
1296
1242
  const ret = wasm.menustate_update(this.__wbg_ptr);
1297
1243
  return ret === 0 ? undefined : MenuStateUpdate.__wrap(ret);
@@ -1300,9 +1246,8 @@ export class MenuState {
1300
1246
 
1301
1247
  const MenuStateUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
1302
1248
  ? { register: () => {}, unregister: () => {} }
1303
- : new FinalizationRegistry(ptr => wasm.__wbg_menustateupdate_free(ptr >>> 0));
1304
- /**
1305
- */
1249
+ : new FinalizationRegistry(ptr => wasm.__wbg_menustateupdate_free(ptr >>> 0, 1));
1250
+
1306
1251
  export class MenuStateUpdate {
1307
1252
 
1308
1253
  static __wrap(ptr) {
@@ -1322,28 +1267,27 @@ export class MenuStateUpdate {
1322
1267
 
1323
1268
  free() {
1324
1269
  const ptr = this.__destroy_into_raw();
1325
- wasm.__wbg_menustateupdate_free(ptr);
1270
+ wasm.__wbg_menustateupdate_free(ptr, 0);
1326
1271
  }
1327
1272
  /**
1328
- * @returns {Map<any, any>}
1329
- */
1273
+ * @returns {Map<any, any>}
1274
+ */
1330
1275
  get action_states() {
1331
1276
  const ret = wasm.__wbg_get_menustateupdate_action_states(this.__wbg_ptr);
1332
- return takeObject(ret);
1277
+ return ret;
1333
1278
  }
1334
1279
  /**
1335
- * @param {Map<any, any>} arg0
1336
- */
1280
+ * @param {Map<any, any>} arg0
1281
+ */
1337
1282
  set action_states(arg0) {
1338
- wasm.__wbg_set_menustateupdate_action_states(this.__wbg_ptr, addHeapObject(arg0));
1283
+ wasm.__wbg_set_menustateupdate_action_states(this.__wbg_ptr, arg0);
1339
1284
  }
1340
1285
  }
1341
1286
 
1342
1287
  const PatternKeyFinalization = (typeof FinalizationRegistry === 'undefined')
1343
1288
  ? { register: () => {}, unregister: () => {} }
1344
- : new FinalizationRegistry(ptr => wasm.__wbg_patternkey_free(ptr >>> 0));
1345
- /**
1346
- */
1289
+ : new FinalizationRegistry(ptr => wasm.__wbg_patternkey_free(ptr >>> 0, 1));
1290
+
1347
1291
  export class PatternKey {
1348
1292
 
1349
1293
  static __wrap(ptr) {
@@ -1363,43 +1307,36 @@ export class PatternKey {
1363
1307
 
1364
1308
  free() {
1365
1309
  const ptr = this.__destroy_into_raw();
1366
- wasm.__wbg_patternkey_free(ptr);
1310
+ wasm.__wbg_patternkey_free(ptr, 0);
1367
1311
  }
1368
1312
  /**
1369
- * @returns {PatternKeyType}
1370
- */
1313
+ * @returns {PatternKeyType}
1314
+ */
1371
1315
  get key_type() {
1372
1316
  const ret = wasm.__wbg_get_patternkey_key_type(this.__wbg_ptr);
1373
1317
  return ret;
1374
1318
  }
1375
1319
  /**
1376
- * @param {PatternKeyType} arg0
1377
- */
1320
+ * @param {PatternKeyType} arg0
1321
+ */
1378
1322
  set key_type(arg0) {
1379
1323
  wasm.__wbg_set_patternkey_key_type(this.__wbg_ptr, arg0);
1380
1324
  }
1381
1325
  /**
1382
- * @returns {string | undefined}
1383
- */
1326
+ * @returns {string | undefined}
1327
+ */
1384
1328
  get custom_key_value() {
1385
- try {
1386
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1387
- wasm.__wbg_get_patternkey_custom_key_value(retptr, this.__wbg_ptr);
1388
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1389
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1390
- let v1;
1391
- if (r0 !== 0) {
1392
- v1 = getStringFromWasm0(r0, r1).slice();
1393
- wasm.__wbindgen_free(r0, r1 * 1, 1);
1394
- }
1395
- return v1;
1396
- } finally {
1397
- wasm.__wbindgen_add_to_stack_pointer(16);
1329
+ const ret = wasm.__wbg_get_patternkey_custom_key_value(this.__wbg_ptr);
1330
+ let v1;
1331
+ if (ret[0] !== 0) {
1332
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
1333
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1398
1334
  }
1335
+ return v1;
1399
1336
  }
1400
1337
  /**
1401
- * @param {string | undefined} [arg0]
1402
- */
1338
+ * @param {string | null} [arg0]
1339
+ */
1403
1340
  set custom_key_value(arg0) {
1404
1341
  var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1405
1342
  var len0 = WASM_VECTOR_LEN;
@@ -1409,9 +1346,8 @@ export class PatternKey {
1409
1346
 
1410
1347
  const ReplaceAllFinalization = (typeof FinalizationRegistry === 'undefined')
1411
1348
  ? { register: () => {}, unregister: () => {} }
1412
- : new FinalizationRegistry(ptr => wasm.__wbg_replaceall_free(ptr >>> 0));
1413
- /**
1414
- */
1349
+ : new FinalizationRegistry(ptr => wasm.__wbg_replaceall_free(ptr >>> 0, 1));
1350
+
1415
1351
  export class ReplaceAll {
1416
1352
 
1417
1353
  static __wrap(ptr) {
@@ -1431,58 +1367,54 @@ export class ReplaceAll {
1431
1367
 
1432
1368
  free() {
1433
1369
  const ptr = this.__destroy_into_raw();
1434
- wasm.__wbg_replaceall_free(ptr);
1370
+ wasm.__wbg_replaceall_free(ptr, 0);
1435
1371
  }
1436
1372
  /**
1437
- * @returns {string}
1438
- */
1373
+ * @returns {string}
1374
+ */
1439
1375
  get replacement_html() {
1440
1376
  let deferred1_0;
1441
1377
  let deferred1_1;
1442
1378
  try {
1443
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1444
- wasm.__wbg_get_edit_url(retptr, this.__wbg_ptr);
1445
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1446
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1447
- deferred1_0 = r0;
1448
- deferred1_1 = r1;
1449
- return getStringFromWasm0(r0, r1);
1379
+ const ret = wasm.__wbg_get_replaceall_replacement_html(this.__wbg_ptr);
1380
+ deferred1_0 = ret[0];
1381
+ deferred1_1 = ret[1];
1382
+ return getStringFromWasm0(ret[0], ret[1]);
1450
1383
  } finally {
1451
- wasm.__wbindgen_add_to_stack_pointer(16);
1452
1384
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1453
1385
  }
1454
1386
  }
1455
1387
  /**
1456
- * @param {string} arg0
1457
- */
1388
+ * @param {string} arg0
1389
+ */
1458
1390
  set replacement_html(arg0) {
1459
1391
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1460
1392
  const len0 = WASM_VECTOR_LEN;
1461
1393
  wasm.__wbg_set_edit_url(this.__wbg_ptr, ptr0, len0);
1462
1394
  }
1463
1395
  /**
1464
- * @returns {number}
1465
- */
1396
+ * @returns {number}
1397
+ */
1466
1398
  get start_utf16_codeunit() {
1467
1399
  const ret = wasm.__wbg_get_replaceall_start_utf16_codeunit(this.__wbg_ptr);
1468
1400
  return ret >>> 0;
1469
1401
  }
1470
1402
  /**
1471
- * @param {number} arg0
1472
- */
1403
+ * @param {number} arg0
1404
+ */
1473
1405
  set start_utf16_codeunit(arg0) {
1474
1406
  wasm.__wbg_set_replaceall_start_utf16_codeunit(this.__wbg_ptr, arg0);
1475
1407
  }
1476
1408
  /**
1477
- * @returns {number}
1478
- */
1409
+ * @returns {number}
1410
+ */
1479
1411
  get end_utf16_codeunit() {
1480
1412
  const ret = wasm.__wbg_get_replaceall_end_utf16_codeunit(this.__wbg_ptr);
1481
1413
  return ret >>> 0;
1482
1414
  }
1483
1415
  /**
1484
- * @param {number} arg0
1485
- */
1416
+ * @param {number} arg0
1417
+ */
1486
1418
  set end_utf16_codeunit(arg0) {
1487
1419
  wasm.__wbg_set_replaceall_end_utf16_codeunit(this.__wbg_ptr, arg0);
1488
1420
  }
@@ -1490,9 +1422,8 @@ export class ReplaceAll {
1490
1422
 
1491
1423
  const SelectionFinalization = (typeof FinalizationRegistry === 'undefined')
1492
1424
  ? { register: () => {}, unregister: () => {} }
1493
- : new FinalizationRegistry(ptr => wasm.__wbg_selection_free(ptr >>> 0));
1494
- /**
1495
- */
1425
+ : new FinalizationRegistry(ptr => wasm.__wbg_selection_free(ptr >>> 0, 1));
1426
+
1496
1427
  export class Selection {
1497
1428
 
1498
1429
  static __wrap(ptr) {
@@ -1512,31 +1443,31 @@ export class Selection {
1512
1443
 
1513
1444
  free() {
1514
1445
  const ptr = this.__destroy_into_raw();
1515
- wasm.__wbg_selection_free(ptr);
1446
+ wasm.__wbg_selection_free(ptr, 0);
1516
1447
  }
1517
1448
  /**
1518
- * @returns {number}
1519
- */
1449
+ * @returns {number}
1450
+ */
1520
1451
  get start_utf16_codeunit() {
1521
1452
  const ret = wasm.__wbg_get_selection_start_utf16_codeunit(this.__wbg_ptr);
1522
1453
  return ret >>> 0;
1523
1454
  }
1524
1455
  /**
1525
- * @param {number} arg0
1526
- */
1456
+ * @param {number} arg0
1457
+ */
1527
1458
  set start_utf16_codeunit(arg0) {
1528
1459
  wasm.__wbg_set_selection_start_utf16_codeunit(this.__wbg_ptr, arg0);
1529
1460
  }
1530
1461
  /**
1531
- * @returns {number}
1532
- */
1462
+ * @returns {number}
1463
+ */
1533
1464
  get end_utf16_codeunit() {
1534
1465
  const ret = wasm.__wbg_get_selection_end_utf16_codeunit(this.__wbg_ptr);
1535
1466
  return ret >>> 0;
1536
1467
  }
1537
1468
  /**
1538
- * @param {number} arg0
1539
- */
1469
+ * @param {number} arg0
1470
+ */
1540
1471
  set end_utf16_codeunit(arg0) {
1541
1472
  wasm.__wbg_set_selection_end_utf16_codeunit(this.__wbg_ptr, arg0);
1542
1473
  }
@@ -1544,9 +1475,8 @@ export class Selection {
1544
1475
 
1545
1476
  const SuggestionPatternFinalization = (typeof FinalizationRegistry === 'undefined')
1546
1477
  ? { register: () => {}, unregister: () => {} }
1547
- : new FinalizationRegistry(ptr => wasm.__wbg_suggestionpattern_free(ptr >>> 0));
1548
- /**
1549
- */
1478
+ : new FinalizationRegistry(ptr => wasm.__wbg_suggestionpattern_free(ptr >>> 0, 1));
1479
+
1550
1480
  export class SuggestionPattern {
1551
1481
 
1552
1482
  static __wrap(ptr) {
@@ -1566,73 +1496,69 @@ export class SuggestionPattern {
1566
1496
 
1567
1497
  free() {
1568
1498
  const ptr = this.__destroy_into_raw();
1569
- wasm.__wbg_suggestionpattern_free(ptr);
1499
+ wasm.__wbg_suggestionpattern_free(ptr, 0);
1570
1500
  }
1571
1501
  /**
1572
- * @returns {PatternKey}
1573
- */
1502
+ * @returns {PatternKey}
1503
+ */
1574
1504
  get key() {
1575
1505
  const ret = wasm.__wbg_get_suggestionpattern_key(this.__wbg_ptr);
1576
1506
  return PatternKey.__wrap(ret);
1577
1507
  }
1578
1508
  /**
1579
- * @param {PatternKey} arg0
1580
- */
1509
+ * @param {PatternKey} arg0
1510
+ */
1581
1511
  set key(arg0) {
1582
1512
  _assertClass(arg0, PatternKey);
1583
1513
  var ptr0 = arg0.__destroy_into_raw();
1584
1514
  wasm.__wbg_set_suggestionpattern_key(this.__wbg_ptr, ptr0);
1585
1515
  }
1586
1516
  /**
1587
- * @returns {string}
1588
- */
1517
+ * @returns {string}
1518
+ */
1589
1519
  get text() {
1590
1520
  let deferred1_0;
1591
1521
  let deferred1_1;
1592
1522
  try {
1593
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1594
- wasm.__wbg_get_edit_url(retptr, this.__wbg_ptr);
1595
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1596
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1597
- deferred1_0 = r0;
1598
- deferred1_1 = r1;
1599
- return getStringFromWasm0(r0, r1);
1523
+ const ret = wasm.__wbg_get_suggestionpattern_text(this.__wbg_ptr);
1524
+ deferred1_0 = ret[0];
1525
+ deferred1_1 = ret[1];
1526
+ return getStringFromWasm0(ret[0], ret[1]);
1600
1527
  } finally {
1601
- wasm.__wbindgen_add_to_stack_pointer(16);
1602
1528
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1603
1529
  }
1604
1530
  }
1605
1531
  /**
1606
- * @param {string} arg0
1607
- */
1532
+ * @param {string} arg0
1533
+ */
1608
1534
  set text(arg0) {
1609
1535
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1610
1536
  const len0 = WASM_VECTOR_LEN;
1611
1537
  wasm.__wbg_set_edit_url(this.__wbg_ptr, ptr0, len0);
1612
1538
  }
1613
1539
  /**
1614
- * @returns {number}
1615
- */
1540
+ * @returns {number}
1541
+ */
1616
1542
  get start() {
1617
1543
  const ret = wasm.__wbg_get_suggestionpattern_start(this.__wbg_ptr);
1618
1544
  return ret >>> 0;
1619
1545
  }
1620
1546
  /**
1621
- * @param {number} arg0
1622
- */
1547
+ * @param {number} arg0
1548
+ */
1623
1549
  set start(arg0) {
1624
1550
  wasm.__wbg_set_suggestionpattern_start(this.__wbg_ptr, arg0);
1625
1551
  }
1626
1552
  /**
1627
- * @returns {number}
1628
- */
1553
+ * @returns {number}
1554
+ */
1629
1555
  get end() {
1630
1556
  const ret = wasm.__wbg_get_suggestionpattern_end(this.__wbg_ptr);
1631
1557
  return ret >>> 0;
1632
1558
  }
1633
1559
  /**
1634
- * @param {number} arg0
1635
- */
1560
+ * @param {number} arg0
1561
+ */
1636
1562
  set end(arg0) {
1637
1563
  wasm.__wbg_set_suggestionpattern_end(this.__wbg_ptr, arg0);
1638
1564
  }
@@ -1640,9 +1566,8 @@ export class SuggestionPattern {
1640
1566
 
1641
1567
  const TextUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
1642
1568
  ? { register: () => {}, unregister: () => {} }
1643
- : new FinalizationRegistry(ptr => wasm.__wbg_textupdate_free(ptr >>> 0));
1644
- /**
1645
- */
1569
+ : new FinalizationRegistry(ptr => wasm.__wbg_textupdate_free(ptr >>> 0, 1));
1570
+
1646
1571
  export class TextUpdate {
1647
1572
 
1648
1573
  static __wrap(ptr) {
@@ -1662,18 +1587,18 @@ export class TextUpdate {
1662
1587
 
1663
1588
  free() {
1664
1589
  const ptr = this.__destroy_into_raw();
1665
- wasm.__wbg_textupdate_free(ptr);
1590
+ wasm.__wbg_textupdate_free(ptr, 0);
1666
1591
  }
1667
1592
  /**
1668
- * @returns {Keep | undefined}
1669
- */
1593
+ * @returns {Keep | undefined}
1594
+ */
1670
1595
  get keep() {
1671
1596
  const ret = wasm.__wbg_get_textupdate_keep(this.__wbg_ptr);
1672
1597
  return ret === 0 ? undefined : Keep.__wrap(ret);
1673
1598
  }
1674
1599
  /**
1675
- * @param {Keep | undefined} [arg0]
1676
- */
1600
+ * @param {Keep | null} [arg0]
1601
+ */
1677
1602
  set keep(arg0) {
1678
1603
  let ptr0 = 0;
1679
1604
  if (!isLikeNone(arg0)) {
@@ -1683,15 +1608,15 @@ export class TextUpdate {
1683
1608
  wasm.__wbg_set_textupdate_keep(this.__wbg_ptr, ptr0);
1684
1609
  }
1685
1610
  /**
1686
- * @returns {ReplaceAll | undefined}
1687
- */
1611
+ * @returns {ReplaceAll | undefined}
1612
+ */
1688
1613
  get replace_all() {
1689
1614
  const ret = wasm.__wbg_get_textupdate_replace_all(this.__wbg_ptr);
1690
1615
  return ret === 0 ? undefined : ReplaceAll.__wrap(ret);
1691
1616
  }
1692
1617
  /**
1693
- * @param {ReplaceAll | undefined} [arg0]
1694
- */
1618
+ * @param {ReplaceAll | null} [arg0]
1619
+ */
1695
1620
  set replace_all(arg0) {
1696
1621
  let ptr0 = 0;
1697
1622
  if (!isLikeNone(arg0)) {
@@ -1701,15 +1626,15 @@ export class TextUpdate {
1701
1626
  wasm.__wbg_set_textupdate_replace_all(this.__wbg_ptr, ptr0);
1702
1627
  }
1703
1628
  /**
1704
- * @returns {Selection | undefined}
1705
- */
1629
+ * @returns {Selection | undefined}
1630
+ */
1706
1631
  get select() {
1707
1632
  const ret = wasm.__wbg_get_textupdate_select(this.__wbg_ptr);
1708
1633
  return ret === 0 ? undefined : Selection.__wrap(ret);
1709
1634
  }
1710
1635
  /**
1711
- * @param {Selection | undefined} [arg0]
1712
- */
1636
+ * @param {Selection | null} [arg0]
1637
+ */
1713
1638
  set select(arg0) {
1714
1639
  let ptr0 = 0;
1715
1640
  if (!isLikeNone(arg0)) {
@@ -1720,170 +1645,172 @@ export class TextUpdate {
1720
1645
  }
1721
1646
  }
1722
1647
 
1723
- export function __wbindgen_string_get(arg0, arg1) {
1724
- const obj = getObject(arg1);
1725
- const ret = typeof(obj) === 'string' ? obj : undefined;
1726
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1727
- var len1 = WASM_VECTOR_LEN;
1728
- getInt32Memory0()[arg0 / 4 + 1] = len1;
1729
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1730
- };
1731
-
1732
- export function __wbindgen_object_drop_ref(arg0) {
1733
- takeObject(arg0);
1734
- };
1735
-
1736
- export function __wbg_new_d9bc3a0147634640() {
1737
- const ret = new Map();
1738
- return addHeapObject(ret);
1648
+ export function __wbg_body_942ea927546a04ba(arg0) {
1649
+ const ret = arg0.body;
1650
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1739
1651
  };
1740
1652
 
1741
- export function __wbindgen_string_new(arg0, arg1) {
1742
- const ret = getStringFromWasm0(arg0, arg1);
1743
- return addHeapObject(ret);
1653
+ export function __wbg_childNodes_c4423003f3a9441f(arg0) {
1654
+ const ret = arg0.childNodes;
1655
+ return ret;
1744
1656
  };
1745
1657
 
1746
- export function __wbg_set_8417257aaedc936b(arg0, arg1, arg2) {
1747
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
1748
- return addHeapObject(ret);
1658
+ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
1659
+ let deferred0_0;
1660
+ let deferred0_1;
1661
+ try {
1662
+ deferred0_0 = arg0;
1663
+ deferred0_1 = arg1;
1664
+ console.error(getStringFromWasm0(arg0, arg1));
1665
+ } finally {
1666
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1667
+ }
1749
1668
  };
1750
1669
 
1751
- export function __wbg_forEach_4cee849ec749be17(arg0, arg1, arg2) {
1670
+ export function __wbg_forEach_d6a05ca96422eff9(arg0, arg1, arg2) {
1752
1671
  try {
1753
1672
  var state0 = {a: arg1, b: arg2};
1754
- var cb0 = (arg0, arg1) => {
1673
+ var cb0 = (arg0, arg1, arg2) => {
1755
1674
  const a = state0.a;
1756
1675
  state0.a = 0;
1757
1676
  try {
1758
- return __wbg_adapter_124(a, state0.b, arg0, arg1);
1677
+ return __wbg_adapter_123(a, state0.b, arg0, arg1, arg2);
1759
1678
  } finally {
1760
1679
  state0.a = a;
1761
1680
  }
1762
1681
  };
1763
- getObject(arg0).forEach(cb0);
1682
+ arg0.forEach(cb0);
1764
1683
  } finally {
1765
1684
  state0.a = state0.b = 0;
1766
1685
  }
1767
1686
  };
1768
1687
 
1769
- export function __wbindgen_number_new(arg0) {
1770
- const ret = arg0;
1771
- return addHeapObject(ret);
1772
- };
1773
-
1774
- export function __wbg_forEach_2be8de7347d63332(arg0, arg1, arg2) {
1688
+ export function __wbg_forEach_e1cf6f7c8ecb7dae(arg0, arg1, arg2) {
1775
1689
  try {
1776
1690
  var state0 = {a: arg1, b: arg2};
1777
- var cb0 = (arg0, arg1, arg2) => {
1691
+ var cb0 = (arg0, arg1) => {
1778
1692
  const a = state0.a;
1779
1693
  state0.a = 0;
1780
1694
  try {
1781
- return __wbg_adapter_121(a, state0.b, arg0, arg1, arg2);
1695
+ return __wbg_adapter_126(a, state0.b, arg0, arg1);
1782
1696
  } finally {
1783
1697
  state0.a = a;
1784
1698
  }
1785
1699
  };
1786
- getObject(arg0).forEach(cb0);
1700
+ arg0.forEach(cb0);
1787
1701
  } finally {
1788
1702
  state0.a = state0.b = 0;
1789
1703
  }
1790
1704
  };
1791
1705
 
1792
- export function __wbindgen_object_clone_ref(arg0) {
1793
- const ret = getObject(arg0);
1794
- return addHeapObject(ret);
1706
+ export function __wbg_getAttribute_ea5166be2deba45e(arg0, arg1, arg2, arg3) {
1707
+ const ret = arg1.getAttribute(getStringFromWasm0(arg2, arg3));
1708
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1709
+ var len1 = WASM_VECTOR_LEN;
1710
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1711
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1795
1712
  };
1796
1713
 
1797
- export function __wbg_new_abda76e883ba8a5f() {
1798
- const ret = new Error();
1799
- return addHeapObject(ret);
1714
+ export function __wbg_get_e27dfaeb6f46bd45(arg0, arg1) {
1715
+ const ret = arg0[arg1 >>> 0];
1716
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1800
1717
  };
1801
1718
 
1802
- export function __wbg_stack_658279fe44541cf6(arg0, arg1) {
1803
- const ret = getObject(arg1).stack;
1804
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1805
- const len1 = WASM_VECTOR_LEN;
1806
- getInt32Memory0()[arg0 / 4 + 1] = len1;
1807
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1719
+ export function __wbg_hasAttribute_db31090c2e646f57(arg0, arg1, arg2) {
1720
+ const ret = arg0.hasAttribute(getStringFromWasm0(arg1, arg2));
1721
+ return ret;
1808
1722
  };
1809
1723
 
1810
- export function __wbg_error_f851667af71bcfc6(arg0, arg1) {
1811
- let deferred0_0;
1812
- let deferred0_1;
1813
- try {
1814
- deferred0_0 = arg0;
1815
- deferred0_1 = arg1;
1816
- console.error(getStringFromWasm0(arg0, arg1));
1817
- } finally {
1818
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1819
- }
1724
+ export function __wbg_length_49b2ba67f0897e97(arg0) {
1725
+ const ret = arg0.length;
1726
+ return ret;
1820
1727
  };
1821
1728
 
1822
- export function __wbindgen_throw(arg0, arg1) {
1823
- throw new Error(getStringFromWasm0(arg0, arg1));
1729
+ export function __wbg_new_363ae9575a2aba54() { return handleError(function () {
1730
+ const ret = new DOMParser();
1731
+ return ret;
1732
+ }, arguments) };
1733
+
1734
+ export function __wbg_new_5e0be73521bc8c17() {
1735
+ const ret = new Map();
1736
+ return ret;
1824
1737
  };
1825
1738
 
1826
- export function __wbg_getAttribute_99bddb29274b29b9(arg0, arg1, arg2, arg3) {
1827
- const ret = getObject(arg1).getAttribute(getStringFromWasm0(arg2, arg3));
1828
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1829
- var len1 = WASM_VECTOR_LEN;
1830
- getInt32Memory0()[arg0 / 4 + 1] = len1;
1831
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1739
+ export function __wbg_new_8a6f238a6ece86ea() {
1740
+ const ret = new Error();
1741
+ return ret;
1742
+ };
1743
+
1744
+ export function __wbg_nodeName_ff3aa439a5af6311(arg0, arg1) {
1745
+ const ret = arg1.nodeName;
1746
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1747
+ const len1 = WASM_VECTOR_LEN;
1748
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1749
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1832
1750
  };
1833
1751
 
1834
- export function __wbg_nodeValue_0b5f7b2274265747(arg0, arg1) {
1835
- const ret = getObject(arg1).nodeValue;
1752
+ export function __wbg_nodeType_5e1153141daac26a(arg0) {
1753
+ const ret = arg0.nodeType;
1754
+ return ret;
1755
+ };
1756
+
1757
+ export function __wbg_nodeValue_6ff4f14870c43bd9(arg0, arg1) {
1758
+ const ret = arg1.nodeValue;
1836
1759
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1837
1760
  var len1 = WASM_VECTOR_LEN;
1838
- getInt32Memory0()[arg0 / 4 + 1] = len1;
1839
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1761
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1762
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1840
1763
  };
1841
1764
 
1842
- export function __wbg_new_aec969a21ad2fc71() { return handleError(function () {
1843
- const ret = new DOMParser();
1844
- return addHeapObject(ret);
1845
- }, arguments) };
1846
-
1847
- export function __wbg_parseFromString_656e5773ad0b3845() { return handleError(function (arg0, arg1, arg2, arg3) {
1848
- const ret = getObject(arg0).parseFromString(getStringFromWasm0(arg1, arg2), takeObject(arg3));
1849
- return addHeapObject(ret);
1765
+ export function __wbg_parseFromString_91cbec9ba27a222a() { return handleError(function (arg0, arg1, arg2, arg3) {
1766
+ const ret = arg0.parseFromString(getStringFromWasm0(arg1, arg2), __wbindgen_enum_SupportedType[arg3]);
1767
+ return ret;
1850
1768
  }, arguments) };
1851
1769
 
1852
- export function __wbg_body_edb1908d3ceff3a1(arg0) {
1853
- const ret = getObject(arg0).body;
1854
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
1770
+ export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
1771
+ const ret = arg0.set(arg1, arg2);
1772
+ return ret;
1855
1773
  };
1856
1774
 
1857
- export function __wbg_childNodes_118168e8b23bcb9b(arg0) {
1858
- const ret = getObject(arg0).childNodes;
1859
- return addHeapObject(ret);
1775
+ export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
1776
+ const ret = arg1.stack;
1777
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1778
+ const len1 = WASM_VECTOR_LEN;
1779
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1780
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1860
1781
  };
1861
1782
 
1862
- export function __wbg_length_d0a802565d17eec4(arg0) {
1863
- const ret = getObject(arg0).length;
1864
- return ret;
1783
+ export function __wbindgen_init_externref_table() {
1784
+ const table = wasm.__wbindgen_export_1;
1785
+ const offset = table.grow(4);
1786
+ table.set(0, undefined);
1787
+ table.set(offset + 0, undefined);
1788
+ table.set(offset + 1, null);
1789
+ table.set(offset + 2, true);
1790
+ table.set(offset + 3, false);
1791
+ ;
1865
1792
  };
1866
1793
 
1867
- export function __wbg_get_8cd5eba00ab6304f(arg0, arg1) {
1868
- const ret = getObject(arg0)[arg1 >>> 0];
1869
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
1794
+ export function __wbindgen_number_new(arg0) {
1795
+ const ret = arg0;
1796
+ return ret;
1870
1797
  };
1871
1798
 
1872
- export function __wbg_nodeName_149f7e29f80d1338(arg0, arg1) {
1873
- const ret = getObject(arg1).nodeName;
1874
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1875
- const len1 = WASM_VECTOR_LEN;
1876
- getInt32Memory0()[arg0 / 4 + 1] = len1;
1877
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1799
+ export function __wbindgen_string_get(arg0, arg1) {
1800
+ const obj = arg1;
1801
+ const ret = typeof(obj) === 'string' ? obj : undefined;
1802
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1803
+ var len1 = WASM_VECTOR_LEN;
1804
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1805
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1878
1806
  };
1879
1807
 
1880
- export function __wbg_hasAttribute_8340e1a2a46f10f3(arg0, arg1, arg2) {
1881
- const ret = getObject(arg0).hasAttribute(getStringFromWasm0(arg1, arg2));
1808
+ export function __wbindgen_string_new(arg0, arg1) {
1809
+ const ret = getStringFromWasm0(arg0, arg1);
1882
1810
  return ret;
1883
1811
  };
1884
1812
 
1885
- export function __wbg_nodeType_9dd609af1b555b54(arg0) {
1886
- const ret = getObject(arg0).nodeType;
1887
- return ret;
1813
+ export function __wbindgen_throw(arg0, arg1) {
1814
+ throw new Error(getStringFromWasm0(arg0, arg1));
1888
1815
  };
1889
1816