@temperlang/std 0.5.0 → 0.6.0

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/regex.js CHANGED
@@ -1,46 +1,46 @@
1
1
  import {
2
- type as type__10, requireInstanceOf as requireInstanceOf__134, pairConstructor as pairConstructor_88, mapConstructor as mapConstructor_87, regexCompileFormatted as regexCompileFormatted_100, regexCompiledFound as regexCompiledFound_104, regexCompiledFind as regexCompiledFind_109, regexCompiledReplace as regexCompiledReplace_114, regexCompiledSplit as regexCompiledSplit_117, listedGet as listedGet_169, stringFromCodePoint as stringFromCodePoint_171, regexFormatterPushCodeTo as regexFormatterPushCodeTo_172, stringGet as stringGet_180, stringNext as stringNext_181, regexFormatterAdjustCodeSet as regexFormatterAdjustCodeSet_195, listBuilderAdd as listBuilderAdd_304, listBuilderToList as listBuilderToList_305
2
+ type as type__735, requireInstanceOf as requireInstanceOf__859, pairConstructor as pairConstructor_813, mapConstructor as mapConstructor_812, regexCompileFormatted as regexCompileFormatted_825, regexCompiledFound as regexCompiledFound_829, regexCompiledFind as regexCompiledFind_834, regexCompiledReplace as regexCompiledReplace_839, regexCompiledSplit as regexCompiledSplit_842, listedGet as listedGet_894, stringFromCodePoint as stringFromCodePoint_896, regexFormatterPushCodeTo as regexFormatterPushCodeTo_897, stringGet as stringGet_905, stringNext as stringNext_906, regexFormatterAdjustCodeSet as regexFormatterAdjustCodeSet_920, listBuilderAdd as listBuilderAdd_1029, listBuilderToList as listBuilderToList_1030
3
3
  } from "@temperlang/core";
4
- export class RegexNode extends type__10() {
4
+ export class RegexNode extends type__735() {
5
5
  /** @returns {Regex} */
6
6
  compiled() {
7
7
  return new Regex(this);
8
8
  }
9
9
  /**
10
- * @param {string} text_2
10
+ * @param {string} text_727
11
11
  * @returns {boolean}
12
12
  */
13
- found(text_2) {
14
- return this.compiled().found(text_2);
13
+ found(text_727) {
14
+ return this.compiled().found(text_727);
15
15
  }
16
16
  /**
17
- * @param {string} text_4
17
+ * @param {string} text_729
18
18
  * @returns {Match}
19
19
  */
20
- find(text_4) {
21
- return this.compiled().find(text_4);
20
+ find(text_729) {
21
+ return this.compiled().find(text_729);
22
22
  }
23
23
  /**
24
- * @param {string} text_6
25
- * @param {(arg0: Match) => string} format_7
24
+ * @param {string} text_731
25
+ * @param {(arg0: Match) => string} format_732
26
26
  * @returns {string}
27
27
  */
28
- replace(text_6, format_7) {
29
- return this.compiled().replace(text_6, format_7);
28
+ replace(text_731, format_732) {
29
+ return this.compiled().replace(text_731, format_732);
30
30
  }
31
31
  /**
32
- * @param {string} text_9
32
+ * @param {string} text_734
33
33
  * @returns {Array<string>}
34
34
  */
35
- split(text_9) {
36
- return this.compiled().split(text_9);
35
+ split(text_734) {
36
+ return this.compiled().split(text_734);
37
37
  }
38
38
  };
39
- export class Capture extends type__10(RegexNode) {
39
+ export class Capture extends type__735(RegexNode) {
40
40
  /** @type {string} */
41
- #name_11;
41
+ #name_736;
42
42
  /** @type {RegexNode} */
43
- #item_12;
43
+ #item_737;
44
44
  /**
45
45
  * @param {{
46
46
  * name: string, item: RegexNode
@@ -52,49 +52,49 @@ export class Capture extends type__10(RegexNode) {
52
52
  return new Capture(props.name, props.item);
53
53
  }
54
54
  /**
55
- * @param {string} name_13
56
- * @param {RegexNode} item_14
55
+ * @param {string} name_738
56
+ * @param {RegexNode} item_739
57
57
  */
58
- constructor(name_13, item_14) {
58
+ constructor(name_738, item_739) {
59
59
  super ();
60
- this.#name_11 = name_13;
61
- this.#item_12 = item_14;
60
+ this.#name_736 = name_738;
61
+ this.#item_737 = item_739;
62
62
  return;
63
63
  }
64
64
  /** @returns {string} */
65
65
  get name() {
66
- return this.#name_11;
66
+ return this.#name_736;
67
67
  }
68
68
  /** @returns {RegexNode} */
69
69
  get item() {
70
- return this.#item_12;
70
+ return this.#item_737;
71
71
  }
72
72
  };
73
- export class CodePart extends type__10(RegexNode) {
73
+ export class CodePart extends type__735(RegexNode) {
74
74
  };
75
- export class CodePoints extends type__10(CodePart) {
75
+ export class CodePoints extends type__735(CodePart) {
76
76
  /** @type {string} */
77
- #value_17;
78
- /** @param {string} value_18 */
79
- constructor(value_18) {
77
+ #value_742;
78
+ /** @param {string} value_743 */
79
+ constructor(value_743) {
80
80
  super ();
81
- this.#value_17 = value_18;
81
+ this.#value_742 = value_743;
82
82
  return;
83
83
  }
84
84
  /** @returns {string} */
85
85
  get value() {
86
- return this.#value_17;
86
+ return this.#value_742;
87
87
  }
88
88
  };
89
- export class Special extends type__10(RegexNode) {
89
+ export class Special extends type__735(RegexNode) {
90
90
  };
91
- export class SpecialSet extends type__10(CodePart, Special) {
91
+ export class SpecialSet extends type__735(CodePart, Special) {
92
92
  };
93
- export class CodeRange extends type__10(CodePart) {
93
+ export class CodeRange extends type__735(CodePart) {
94
94
  /** @type {number} */
95
- #min_20;
95
+ #min_745;
96
96
  /** @type {number} */
97
- #max_21;
97
+ #max_746;
98
98
  /**
99
99
  * @param {{
100
100
  * min: number, max: number
@@ -106,29 +106,29 @@ export class CodeRange extends type__10(CodePart) {
106
106
  return new CodeRange(props.min, props.max);
107
107
  }
108
108
  /**
109
- * @param {number} min_22
110
- * @param {number} max_23
109
+ * @param {number} min_747
110
+ * @param {number} max_748
111
111
  */
112
- constructor(min_22, max_23) {
112
+ constructor(min_747, max_748) {
113
113
  super ();
114
- this.#min_20 = min_22;
115
- this.#max_21 = max_23;
114
+ this.#min_745 = min_747;
115
+ this.#max_746 = max_748;
116
116
  return;
117
117
  }
118
118
  /** @returns {number} */
119
119
  get min() {
120
- return this.#min_20;
120
+ return this.#min_745;
121
121
  }
122
122
  /** @returns {number} */
123
123
  get max() {
124
- return this.#max_21;
124
+ return this.#max_746;
125
125
  }
126
126
  };
127
- export class CodeSet extends type__10(RegexNode) {
127
+ export class CodeSet extends type__735(RegexNode) {
128
128
  /** @type {Array<CodePart>} */
129
- #items_26;
129
+ #items_751;
130
130
  /** @type {boolean} */
131
- #negated_27;
131
+ #negated_752;
132
132
  /**
133
133
  * @param {{
134
134
  * items: Array<CodePart>, negated ?: boolean | null
@@ -140,53 +140,53 @@ export class CodeSet extends type__10(RegexNode) {
140
140
  return new CodeSet(props.items, props.negated);
141
141
  }
142
142
  /**
143
- * @param {Array<CodePart>} items_28
144
- * @param {boolean | null} [negated_29]
143
+ * @param {Array<CodePart>} items_753
144
+ * @param {boolean | null} [negated_754]
145
145
  */
146
- constructor(items_28, negated_29) {
146
+ constructor(items_753, negated_754) {
147
147
  super ();
148
- let negated_30;
149
- if (negated_29 == null) {
150
- negated_30 = false;
148
+ let negated_755;
149
+ if (negated_754 == null) {
150
+ negated_755 = false;
151
151
  } else {
152
- negated_30 = negated_29;
152
+ negated_755 = negated_754;
153
153
  }
154
- this.#items_26 = items_28;
155
- this.#negated_27 = negated_30;
154
+ this.#items_751 = items_753;
155
+ this.#negated_752 = negated_755;
156
156
  return;
157
157
  }
158
158
  /** @returns {Array<CodePart>} */
159
159
  get items() {
160
- return this.#items_26;
160
+ return this.#items_751;
161
161
  }
162
162
  /** @returns {boolean} */
163
163
  get negated() {
164
- return this.#negated_27;
164
+ return this.#negated_752;
165
165
  }
166
166
  };
167
- export class Or extends type__10(RegexNode) {
167
+ export class Or extends type__735(RegexNode) {
168
168
  /** @type {Array<RegexNode>} */
169
- #items_33;
170
- /** @param {Array<RegexNode>} items_34 */
171
- constructor(items_34) {
169
+ #items_758;
170
+ /** @param {Array<RegexNode>} items_759 */
171
+ constructor(items_759) {
172
172
  super ();
173
- this.#items_33 = items_34;
173
+ this.#items_758 = items_759;
174
174
  return;
175
175
  }
176
176
  /** @returns {Array<RegexNode>} */
177
177
  get items() {
178
- return this.#items_33;
178
+ return this.#items_758;
179
179
  }
180
180
  };
181
- export class Repeat extends type__10(RegexNode) {
181
+ export class Repeat extends type__735(RegexNode) {
182
182
  /** @type {RegexNode} */
183
- #item_36;
183
+ #item_761;
184
184
  /** @type {number} */
185
- #min_37;
185
+ #min_762;
186
186
  /** @type {number | null} */
187
- #max_38;
187
+ #max_763;
188
188
  /** @type {boolean} */
189
- #reluctant_39;
189
+ #reluctant_764;
190
190
  /**
191
191
  * @param {{
192
192
  * item: RegexNode, min: number, max: number | null, reluctant ?: boolean | null
@@ -198,61 +198,61 @@ export class Repeat extends type__10(RegexNode) {
198
198
  return new Repeat(props.item, props.min, props.max, props.reluctant);
199
199
  }
200
200
  /**
201
- * @param {RegexNode} item_40
202
- * @param {number} min_41
203
- * @param {number | null} max_42
204
- * @param {boolean | null} [reluctant_43]
201
+ * @param {RegexNode} item_765
202
+ * @param {number} min_766
203
+ * @param {number | null} max_767
204
+ * @param {boolean | null} [reluctant_768]
205
205
  */
206
- constructor(item_40, min_41, max_42, reluctant_43) {
206
+ constructor(item_765, min_766, max_767, reluctant_768) {
207
207
  super ();
208
- let reluctant_44;
209
- if (reluctant_43 == null) {
210
- reluctant_44 = false;
208
+ let reluctant_769;
209
+ if (reluctant_768 == null) {
210
+ reluctant_769 = false;
211
211
  } else {
212
- reluctant_44 = reluctant_43;
212
+ reluctant_769 = reluctant_768;
213
213
  }
214
- this.#item_36 = item_40;
215
- this.#min_37 = min_41;
216
- this.#max_38 = max_42;
217
- this.#reluctant_39 = reluctant_44;
214
+ this.#item_761 = item_765;
215
+ this.#min_762 = min_766;
216
+ this.#max_763 = max_767;
217
+ this.#reluctant_764 = reluctant_769;
218
218
  return;
219
219
  }
220
220
  /** @returns {RegexNode} */
221
221
  get item() {
222
- return this.#item_36;
222
+ return this.#item_761;
223
223
  }
224
224
  /** @returns {number} */
225
225
  get min() {
226
- return this.#min_37;
226
+ return this.#min_762;
227
227
  }
228
228
  /** @returns {number | null} */
229
229
  get max() {
230
- return this.#max_38;
230
+ return this.#max_763;
231
231
  }
232
232
  /** @returns {boolean} */
233
233
  get reluctant() {
234
- return this.#reluctant_39;
234
+ return this.#reluctant_764;
235
235
  }
236
236
  };
237
- export class Sequence extends type__10(RegexNode) {
237
+ export class Sequence extends type__735(RegexNode) {
238
238
  /** @type {Array<RegexNode>} */
239
- #items_49;
240
- /** @param {Array<RegexNode>} items_50 */
241
- constructor(items_50) {
239
+ #items_774;
240
+ /** @param {Array<RegexNode>} items_775 */
241
+ constructor(items_775) {
242
242
  super ();
243
- this.#items_49 = items_50;
243
+ this.#items_774 = items_775;
244
244
  return;
245
245
  }
246
246
  /** @returns {Array<RegexNode>} */
247
247
  get items() {
248
- return this.#items_49;
248
+ return this.#items_774;
249
249
  }
250
250
  };
251
- export class Match extends type__10() {
251
+ export class Match extends type__735() {
252
252
  /** @type {Group} */
253
- #full_52;
253
+ #full_777;
254
254
  /** @type {Map<string, Group>} */
255
- #groups_53;
255
+ #groups_778;
256
256
  /**
257
257
  * @param {{
258
258
  * full: Group, groups: Map<string, Group>
@@ -264,33 +264,33 @@ export class Match extends type__10() {
264
264
  return new Match(props.full, props.groups);
265
265
  }
266
266
  /**
267
- * @param {Group} full_54
268
- * @param {Map<string, Group>} groups_55
267
+ * @param {Group} full_779
268
+ * @param {Map<string, Group>} groups_780
269
269
  */
270
- constructor(full_54, groups_55) {
270
+ constructor(full_779, groups_780) {
271
271
  super ();
272
- this.#full_52 = full_54;
273
- this.#groups_53 = groups_55;
272
+ this.#full_777 = full_779;
273
+ this.#groups_778 = groups_780;
274
274
  return;
275
275
  }
276
276
  /** @returns {Group} */
277
277
  get full() {
278
- return this.#full_52;
278
+ return this.#full_777;
279
279
  }
280
280
  /** @returns {Map<string, Group>} */
281
281
  get groups() {
282
- return this.#groups_53;
282
+ return this.#groups_778;
283
283
  }
284
284
  };
285
- export class Group extends type__10() {
285
+ export class Group extends type__735() {
286
286
  /** @type {string} */
287
- #name_58;
287
+ #name_783;
288
288
  /** @type {string} */
289
- #value_59;
289
+ #value_784;
290
290
  /** @type {globalThis.number} */
291
- #begin_60;
291
+ #begin_785;
292
292
  /** @type {globalThis.number} */
293
- #end_61;
293
+ #end_786;
294
294
  /**
295
295
  * @param {{
296
296
  * name: string, value: string, begin: globalThis.number, end: globalThis.number
@@ -302,1048 +302,1048 @@ export class Group extends type__10() {
302
302
  return new Group(props.name, props.value, props.begin, props.end);
303
303
  }
304
304
  /**
305
- * @param {string} name_62
306
- * @param {string} value_63
307
- * @param {globalThis.number} begin_64
308
- * @param {globalThis.number} end_65
305
+ * @param {string} name_787
306
+ * @param {string} value_788
307
+ * @param {globalThis.number} begin_789
308
+ * @param {globalThis.number} end_790
309
309
  */
310
- constructor(name_62, value_63, begin_64, end_65) {
310
+ constructor(name_787, value_788, begin_789, end_790) {
311
311
  super ();
312
- this.#name_58 = name_62;
313
- this.#value_59 = value_63;
314
- this.#begin_60 = begin_64;
315
- this.#end_61 = end_65;
312
+ this.#name_783 = name_787;
313
+ this.#value_784 = value_788;
314
+ this.#begin_785 = begin_789;
315
+ this.#end_786 = end_790;
316
316
  return;
317
317
  }
318
318
  /** @returns {string} */
319
319
  get name() {
320
- return this.#name_58;
320
+ return this.#name_783;
321
321
  }
322
322
  /** @returns {string} */
323
323
  get value() {
324
- return this.#value_59;
324
+ return this.#value_784;
325
325
  }
326
326
  /** @returns {globalThis.number} */
327
327
  get begin() {
328
- return this.#begin_60;
328
+ return this.#begin_785;
329
329
  }
330
330
  /** @returns {globalThis.number} */
331
331
  get end() {
332
- return this.#end_61;
332
+ return this.#end_786;
333
333
  }
334
334
  };
335
- class RegexRefs_70 extends type__10() {
335
+ class RegexRefs_795 extends type__735() {
336
336
  /** @type {CodePoints} */
337
- #codePoints_71;
337
+ #codePoints_796;
338
338
  /** @type {Group} */
339
- #group_72;
339
+ #group_797;
340
340
  /** @type {Match} */
341
- #match_73;
341
+ #match_798;
342
342
  /** @type {Or} */
343
- #orObject_74;
343
+ #orObject_799;
344
344
  /**
345
345
  * @param {{
346
346
  * codePoints ?: CodePoints | null, group ?: Group | null, match ?: Match | null, orObject ?: Or | null
347
347
  * }}
348
348
  * props
349
- * @returns {RegexRefs_70}
349
+ * @returns {RegexRefs_795}
350
350
  */
351
351
  static["new"](props) {
352
- return new RegexRefs_70(props.codePoints, props.group, props.match, props.orObject);
352
+ return new RegexRefs_795(props.codePoints, props.group, props.match, props.orObject);
353
353
  }
354
354
  /**
355
- * @param {CodePoints | null} [codePoints_75]
356
- * @param {Group | null} [group_76]
357
- * @param {Match | null} [match_77]
358
- * @param {Or | null} [orObject_78]
355
+ * @param {CodePoints | null} [codePoints_800]
356
+ * @param {Group | null} [group_801]
357
+ * @param {Match | null} [match_802]
358
+ * @param {Or | null} [orObject_803]
359
359
  */
360
- constructor(codePoints_75, group_76, match_77, orObject_78) {
360
+ constructor(codePoints_800, group_801, match_802, orObject_803) {
361
361
  super ();
362
- let t_79;
363
- let t_80;
364
- let t_81;
365
- let t_82;
366
- let t_83;
367
- let codePoints_84;
368
- if (codePoints_75 == null) {
369
- t_79 = new CodePoints("");
370
- codePoints_84 = t_79;
362
+ let t_804;
363
+ let t_805;
364
+ let t_806;
365
+ let t_807;
366
+ let t_808;
367
+ let codePoints_809;
368
+ if (codePoints_800 == null) {
369
+ t_804 = new CodePoints("");
370
+ codePoints_809 = t_804;
371
371
  } else {
372
- codePoints_84 = codePoints_75;
372
+ codePoints_809 = codePoints_800;
373
373
  }
374
- let group_85;
375
- if (group_76 == null) {
376
- t_80 = new Group("", "", 0, 0);
377
- group_85 = t_80;
374
+ let group_810;
375
+ if (group_801 == null) {
376
+ t_805 = new Group("", "", 0, 0);
377
+ group_810 = t_805;
378
378
  } else {
379
- group_85 = group_76;
379
+ group_810 = group_801;
380
380
  }
381
- let match_86;
382
- if (match_77 == null) {
383
- t_81 = mapConstructor_87(Object.freeze([pairConstructor_88("", group_85)]));
384
- t_82 = new Match(group_85, t_81);
385
- match_86 = t_82;
381
+ let match_811;
382
+ if (match_802 == null) {
383
+ t_806 = mapConstructor_812(Object.freeze([pairConstructor_813("", group_810)]));
384
+ t_807 = new Match(group_810, t_806);
385
+ match_811 = t_807;
386
386
  } else {
387
- match_86 = match_77;
387
+ match_811 = match_802;
388
388
  }
389
- let orObject_89;
390
- if (orObject_78 == null) {
391
- t_83 = new Or(Object.freeze([]));
392
- orObject_89 = t_83;
389
+ let orObject_814;
390
+ if (orObject_803 == null) {
391
+ t_808 = new Or(Object.freeze([]));
392
+ orObject_814 = t_808;
393
393
  } else {
394
- orObject_89 = orObject_78;
394
+ orObject_814 = orObject_803;
395
395
  }
396
- this.#codePoints_71 = codePoints_84;
397
- this.#group_72 = group_85;
398
- this.#match_73 = match_86;
399
- this.#orObject_74 = orObject_89;
396
+ this.#codePoints_796 = codePoints_809;
397
+ this.#group_797 = group_810;
398
+ this.#match_798 = match_811;
399
+ this.#orObject_799 = orObject_814;
400
400
  return;
401
401
  }
402
402
  /** @returns {CodePoints} */
403
403
  get codePoints() {
404
- return this.#codePoints_71;
404
+ return this.#codePoints_796;
405
405
  }
406
406
  /** @returns {Group} */
407
407
  get group() {
408
- return this.#group_72;
408
+ return this.#group_797;
409
409
  }
410
410
  /** @returns {Match} */
411
411
  get match() {
412
- return this.#match_73;
412
+ return this.#match_798;
413
413
  }
414
414
  /** @returns {Or} */
415
415
  get orObject() {
416
- return this.#orObject_74;
416
+ return this.#orObject_799;
417
417
  }
418
418
  }
419
- export class Regex extends type__10() {
419
+ export class Regex extends type__735() {
420
420
  /** @type {RegexNode} */
421
- #data_94;
422
- /** @param {RegexNode} data_95 */
423
- constructor(data_95) {
421
+ #data_819;
422
+ /** @param {RegexNode} data_820 */
423
+ constructor(data_820) {
424
424
  super ();
425
- const t_96 = data_95;
426
- this.#data_94 = t_96;
427
- const formatted_97 = RegexFormatter_98.regexFormat(data_95);
428
- let t_99 = regexCompileFormatted_100(data_95, formatted_97);
429
- this.#compiled_101 = t_99;
425
+ const t_821 = data_820;
426
+ this.#data_819 = t_821;
427
+ const formatted_822 = RegexFormatter_823.regexFormat(data_820);
428
+ let t_824 = regexCompileFormatted_825(data_820, formatted_822);
429
+ this.#compiled_826 = t_824;
430
430
  return;
431
431
  }
432
432
  /**
433
- * @param {string} text_103
433
+ * @param {string} text_828
434
434
  * @returns {boolean}
435
435
  */
436
- found(text_103) {
437
- return regexCompiledFound_104(this, this.#compiled_101, text_103);
436
+ found(text_828) {
437
+ return regexCompiledFound_829(this, this.#compiled_826, text_828);
438
438
  }
439
439
  /**
440
- * @param {string} text_106
441
- * @param {globalThis.number | null} [begin_107]
440
+ * @param {string} text_831
441
+ * @param {globalThis.number | null} [begin_832]
442
442
  * @returns {Match}
443
443
  */
444
- find(text_106, begin_107) {
445
- let begin_108;
446
- if (begin_107 == null) {
447
- begin_108 = 0;
444
+ find(text_831, begin_832) {
445
+ let begin_833;
446
+ if (begin_832 == null) {
447
+ begin_833 = 0;
448
448
  } else {
449
- begin_108 = begin_107;
449
+ begin_833 = begin_832;
450
450
  }
451
- return regexCompiledFind_109(this, this.#compiled_101, text_106, begin_108, regexRefs_110);
451
+ return regexCompiledFind_834(this, this.#compiled_826, text_831, begin_833, regexRefs_835);
452
452
  }
453
453
  /**
454
- * @param {string} text_112
455
- * @param {(arg0: Match) => string} format_113
454
+ * @param {string} text_837
455
+ * @param {(arg0: Match) => string} format_838
456
456
  * @returns {string}
457
457
  */
458
- replace(text_112, format_113) {
459
- return regexCompiledReplace_114(this, this.#compiled_101, text_112, format_113, regexRefs_110);
458
+ replace(text_837, format_838) {
459
+ return regexCompiledReplace_839(this, this.#compiled_826, text_837, format_838, regexRefs_835);
460
460
  }
461
461
  /**
462
- * @param {string} text_116
462
+ * @param {string} text_841
463
463
  * @returns {Array<string>}
464
464
  */
465
- split(text_116) {
466
- return regexCompiledSplit_117(this, this.#compiled_101, text_116, regexRefs_110);
465
+ split(text_841) {
466
+ return regexCompiledSplit_842(this, this.#compiled_826, text_841, regexRefs_835);
467
467
  }
468
468
  /** @type {unknown} */
469
- #compiled_101;
469
+ #compiled_826;
470
470
  /** @returns {RegexNode} */
471
471
  get data() {
472
- return this.#data_94;
472
+ return this.#data_819;
473
473
  }
474
474
  };
475
- class RegexFormatter_98 extends type__10() {
475
+ class RegexFormatter_823 extends type__735() {
476
476
  /** @type {globalThis.Array<string>} */
477
- #out_119;
477
+ #out_844;
478
478
  /**
479
- * @param {RegexNode} data_121
479
+ * @param {RegexNode} data_846
480
480
  * @returns {string}
481
481
  */
482
- static regexFormat(data_121) {
483
- return new RegexFormatter_98().format(data_121);
482
+ static regexFormat(data_846) {
483
+ return new RegexFormatter_823().format(data_846);
484
484
  }
485
485
  /**
486
- * @param {RegexNode} regex_123
486
+ * @param {RegexNode} regex_848
487
487
  * @returns {string}
488
488
  */
489
- format(regex_123) {
490
- this.#pushRegex_124(regex_123);
491
- return this.#out_119[0];
492
- }
493
- /** @param {RegexNode} regex_126 */
494
- #pushRegex_124(regex_126) {
495
- let t_127;
496
- let t_128;
497
- let t_129;
498
- let t_130;
499
- let t_131;
500
- let t_132;
501
- let t_133;
502
- if (regex_126 instanceof Capture) {
503
- t_127 = requireInstanceOf__134(regex_126, Capture);
504
- this.#pushCapture_135(t_127);
505
- } else if (regex_126 instanceof CodePoints) {
506
- t_128 = requireInstanceOf__134(regex_126, CodePoints);
507
- this.#pushCodePoints_136(t_128, false);
508
- } else if (regex_126 instanceof CodeRange) {
509
- t_129 = requireInstanceOf__134(regex_126, CodeRange);
510
- this.#pushCodeRange_137(t_129);
511
- } else if (regex_126 instanceof CodeSet) {
512
- t_130 = requireInstanceOf__134(regex_126, CodeSet);
513
- this.#pushCodeSet_138(t_130);
514
- } else if (regex_126 instanceof Or) {
515
- t_131 = requireInstanceOf__134(regex_126, Or);
516
- this.#pushOr_139(t_131);
517
- } else if (regex_126 instanceof Repeat) {
518
- t_132 = requireInstanceOf__134(regex_126, Repeat);
519
- this.#pushRepeat_140(t_132);
520
- } else if (regex_126 instanceof Sequence) {
521
- t_133 = requireInstanceOf__134(regex_126, Sequence);
522
- this.#pushSequence_141(t_133);
523
- } else if (Object.is(regex_126, Begin)) {
524
- this.#out_119[0] += "^";
525
- } else if (Object.is(regex_126, Dot)) {
526
- this.#out_119[0] += ".";
527
- } else if (Object.is(regex_126, End)) {
528
- this.#out_119[0] += "\u0024";
529
- } else if (Object.is(regex_126, WordBoundary)) {
530
- this.#out_119[0] += "\\b";
531
- } else if (Object.is(regex_126, Digit)) {
532
- this.#out_119[0] += "\\d";
533
- } else if (Object.is(regex_126, Space)) {
534
- this.#out_119[0] += "\\s";
535
- } else if (Object.is(regex_126, Word)) {
536
- this.#out_119[0] += "\\w";
489
+ format(regex_848) {
490
+ this.#pushRegex_849(regex_848);
491
+ return this.#out_844[0];
492
+ }
493
+ /** @param {RegexNode} regex_851 */
494
+ #pushRegex_849(regex_851) {
495
+ let t_852;
496
+ let t_853;
497
+ let t_854;
498
+ let t_855;
499
+ let t_856;
500
+ let t_857;
501
+ let t_858;
502
+ if (regex_851 instanceof Capture) {
503
+ t_852 = requireInstanceOf__859(regex_851, Capture);
504
+ this.#pushCapture_860(t_852);
505
+ } else if (regex_851 instanceof CodePoints) {
506
+ t_853 = requireInstanceOf__859(regex_851, CodePoints);
507
+ this.#pushCodePoints_861(t_853, false);
508
+ } else if (regex_851 instanceof CodeRange) {
509
+ t_854 = requireInstanceOf__859(regex_851, CodeRange);
510
+ this.#pushCodeRange_862(t_854);
511
+ } else if (regex_851 instanceof CodeSet) {
512
+ t_855 = requireInstanceOf__859(regex_851, CodeSet);
513
+ this.#pushCodeSet_863(t_855);
514
+ } else if (regex_851 instanceof Or) {
515
+ t_856 = requireInstanceOf__859(regex_851, Or);
516
+ this.#pushOr_864(t_856);
517
+ } else if (regex_851 instanceof Repeat) {
518
+ t_857 = requireInstanceOf__859(regex_851, Repeat);
519
+ this.#pushRepeat_865(t_857);
520
+ } else if (regex_851 instanceof Sequence) {
521
+ t_858 = requireInstanceOf__859(regex_851, Sequence);
522
+ this.#pushSequence_866(t_858);
523
+ } else if (Object.is(regex_851, Begin)) {
524
+ this.#out_844[0] += "^";
525
+ } else if (Object.is(regex_851, Dot)) {
526
+ this.#out_844[0] += ".";
527
+ } else if (Object.is(regex_851, End)) {
528
+ this.#out_844[0] += "\u0024";
529
+ } else if (Object.is(regex_851, WordBoundary)) {
530
+ this.#out_844[0] += "\\b";
531
+ } else if (Object.is(regex_851, Digit)) {
532
+ this.#out_844[0] += "\\d";
533
+ } else if (Object.is(regex_851, Space)) {
534
+ this.#out_844[0] += "\\s";
535
+ } else if (Object.is(regex_851, Word)) {
536
+ this.#out_844[0] += "\\w";
537
537
  }
538
538
  return;
539
539
  }
540
- /** @param {Capture} capture_143 */
541
- #pushCapture_135(capture_143) {
542
- this.#out_119[0] += "(";
543
- let t_144 = this.#out_119;
544
- let t_145 = capture_143.name;
545
- this.#pushCaptureName_146(t_144, t_145);
546
- let t_147 = capture_143.item;
547
- this.#pushRegex_124(t_147);
548
- this.#out_119[0] += ")";
540
+ /** @param {Capture} capture_868 */
541
+ #pushCapture_860(capture_868) {
542
+ this.#out_844[0] += "(";
543
+ let t_869 = this.#out_844;
544
+ let t_870 = capture_868.name;
545
+ this.#pushCaptureName_871(t_869, t_870);
546
+ let t_872 = capture_868.item;
547
+ this.#pushRegex_849(t_872);
548
+ this.#out_844[0] += ")";
549
549
  return;
550
550
  }
551
551
  /**
552
- * @param {globalThis.Array<string>} out_149
553
- * @param {string} name_150
552
+ * @param {globalThis.Array<string>} out_874
553
+ * @param {string} name_875
554
554
  */
555
- #pushCaptureName_146(out_149, name_150) {
556
- out_149[0] += "?\u003c" + name_150 + "\u003e";
555
+ #pushCaptureName_871(out_874, name_875) {
556
+ out_874[0] += "?\u003c" + name_875 + "\u003e";
557
557
  return;
558
558
  }
559
559
  /**
560
- * @param {number} code_153
561
- * @param {boolean} insideCodeSet_154
560
+ * @param {number} code_878
561
+ * @param {boolean} insideCodeSet_879
562
562
  */
563
- #pushCode_152(code_153, insideCodeSet_154) {
564
- let return_155;
565
- let t_156;
566
- let t_157;
567
- let t_158;
568
- let t_159;
569
- let t_160;
570
- let t_161;
571
- let t_162;
572
- let t_163;
573
- let t_164;
574
- fn_165: {
563
+ #pushCode_877(code_878, insideCodeSet_879) {
564
+ let return_880;
565
+ let t_881;
566
+ let t_882;
567
+ let t_883;
568
+ let t_884;
569
+ let t_885;
570
+ let t_886;
571
+ let t_887;
572
+ let t_888;
573
+ let t_889;
574
+ fn_890: {
575
575
  try {
576
- let specialEscape_166;
577
- if (code_153 === Codes_167.carriageReturn) {
578
- specialEscape_166 = "r";
579
- } else if (code_153 === Codes_167.newline) {
580
- specialEscape_166 = "n";
581
- } else if (code_153 === Codes_167.tab) {
582
- specialEscape_166 = "t";
576
+ let specialEscape_891;
577
+ if (code_878 === Codes_892.carriageReturn) {
578
+ specialEscape_891 = "r";
579
+ } else if (code_878 === Codes_892.newline) {
580
+ specialEscape_891 = "n";
581
+ } else if (code_878 === Codes_892.tab) {
582
+ specialEscape_891 = "t";
583
583
  } else {
584
- specialEscape_166 = "";
584
+ specialEscape_891 = "";
585
585
  }
586
- if (specialEscape_166 !== "") {
587
- this.#out_119[0] += "\\";
588
- this.#out_119[0] += specialEscape_166;
589
- return_155 = void 0;
590
- break fn_165;
586
+ if (specialEscape_891 !== "") {
587
+ this.#out_844[0] += "\\";
588
+ this.#out_844[0] += specialEscape_891;
589
+ return_880 = void 0;
590
+ break fn_890;
591
591
  }
592
- if (code_153 <= 127) {
593
- const escapeNeed_168 = listedGet_169(escapeNeeds_170, code_153);
594
- if (escapeNeed_168 === 2) {
595
- t_157 = true;
592
+ if (code_878 <= 127) {
593
+ const escapeNeed_893 = listedGet_894(escapeNeeds_895, code_878);
594
+ if (escapeNeed_893 === 2) {
595
+ t_882 = true;
596
596
  } else {
597
- if (insideCodeSet_154) {
598
- t_156 = code_153 === Codes_167.dash;
597
+ if (insideCodeSet_879) {
598
+ t_881 = code_878 === Codes_892.dash;
599
599
  } else {
600
- t_156 = false;
600
+ t_881 = false;
601
601
  }
602
- t_157 = t_156;
602
+ t_882 = t_881;
603
603
  }
604
- if (t_157) {
605
- this.#out_119[0] += "\\";
606
- t_158 = stringFromCodePoint_171(code_153);
607
- this.#out_119[0] += t_158;
608
- return_155 = void 0;
609
- break fn_165;
610
- } else if (escapeNeed_168 === 0) {
611
- t_159 = stringFromCodePoint_171(code_153);
612
- this.#out_119[0] += t_159;
613
- return_155 = void 0;
614
- break fn_165;
604
+ if (t_882) {
605
+ this.#out_844[0] += "\\";
606
+ t_883 = stringFromCodePoint_896(code_878);
607
+ this.#out_844[0] += t_883;
608
+ return_880 = void 0;
609
+ break fn_890;
610
+ } else if (escapeNeed_893 === 0) {
611
+ t_884 = stringFromCodePoint_896(code_878);
612
+ this.#out_844[0] += t_884;
613
+ return_880 = void 0;
614
+ break fn_890;
615
615
  }
616
616
  }
617
- if (code_153 >= Codes_167.supplementalMin) {
618
- t_163 = true;
617
+ if (code_878 >= Codes_892.supplementalMin) {
618
+ t_888 = true;
619
619
  } else {
620
- if (code_153 > Codes_167.highControlMax) {
621
- if (Codes_167.surrogateMin <= code_153) {
622
- t_160 = code_153 <= Codes_167.surrogateMax;
620
+ if (code_878 > Codes_892.highControlMax) {
621
+ if (Codes_892.surrogateMin <= code_878) {
622
+ t_885 = code_878 <= Codes_892.surrogateMax;
623
623
  } else {
624
- t_160 = false;
624
+ t_885 = false;
625
625
  }
626
- if (t_160) {
627
- t_161 = true;
626
+ if (t_885) {
627
+ t_886 = true;
628
628
  } else {
629
- t_161 = code_153 === Codes_167.uint16Max;
629
+ t_886 = code_878 === Codes_892.uint16Max;
630
630
  }
631
- t_162 = ! t_161;
631
+ t_887 = ! t_886;
632
632
  } else {
633
- t_162 = false;
633
+ t_887 = false;
634
634
  }
635
- t_163 = t_162;
635
+ t_888 = t_887;
636
636
  }
637
- if (t_163) {
638
- t_164 = stringFromCodePoint_171(code_153);
639
- this.#out_119[0] += t_164;
637
+ if (t_888) {
638
+ t_889 = stringFromCodePoint_896(code_878);
639
+ this.#out_844[0] += t_889;
640
640
  } else {
641
- regexFormatterPushCodeTo_172(this, this.#out_119, code_153, insideCodeSet_154);
641
+ regexFormatterPushCodeTo_897(this, this.#out_844, code_878, insideCodeSet_879);
642
642
  }
643
643
  } catch {
644
644
  throw Error();
645
645
  }
646
- return_155 = void 0;
646
+ return_880 = void 0;
647
647
  }
648
- return return_155;
648
+ return return_880;
649
649
  }
650
650
  /**
651
- * @param {CodePoints} codePoints_174
652
- * @param {boolean} insideCodeSet_175
651
+ * @param {CodePoints} codePoints_899
652
+ * @param {boolean} insideCodeSet_900
653
653
  */
654
- #pushCodePoints_136(codePoints_174, insideCodeSet_175) {
655
- let t_176;
656
- let t_177;
657
- const value_178 = codePoints_174.value;
658
- let index_179 = 0;
654
+ #pushCodePoints_861(codePoints_899, insideCodeSet_900) {
655
+ let t_901;
656
+ let t_902;
657
+ const value_903 = codePoints_899.value;
658
+ let index_904 = 0;
659
659
  while (true) {
660
- if (!(value_178.length > index_179)) {
660
+ if (!(value_903.length > index_904)) {
661
661
  break;
662
662
  }
663
- t_176 = stringGet_180(value_178, index_179);
664
- this.#pushCode_152(t_176, insideCodeSet_175);
665
- t_177 = stringNext_181(value_178, index_179);
666
- index_179 = t_177;
663
+ t_901 = stringGet_905(value_903, index_904);
664
+ this.#pushCode_877(t_901, insideCodeSet_900);
665
+ t_902 = stringNext_906(value_903, index_904);
666
+ index_904 = t_902;
667
667
  }
668
668
  return;
669
669
  }
670
- /** @param {CodeRange} codeRange_183 */
671
- #pushCodeRange_137(codeRange_183) {
672
- this.#out_119[0] += "[";
673
- this.#pushCodeRangeUnwrapped_184(codeRange_183);
674
- this.#out_119[0] += "]";
670
+ /** @param {CodeRange} codeRange_908 */
671
+ #pushCodeRange_862(codeRange_908) {
672
+ this.#out_844[0] += "[";
673
+ this.#pushCodeRangeUnwrapped_909(codeRange_908);
674
+ this.#out_844[0] += "]";
675
675
  return;
676
676
  }
677
- /** @param {CodeRange} codeRange_186 */
678
- #pushCodeRangeUnwrapped_184(codeRange_186) {
679
- let t_187 = codeRange_186.min;
680
- this.#pushCode_152(t_187, true);
681
- this.#out_119[0] += "-";
682
- let t_188 = codeRange_186.max;
683
- this.#pushCode_152(t_188, true);
677
+ /** @param {CodeRange} codeRange_911 */
678
+ #pushCodeRangeUnwrapped_909(codeRange_911) {
679
+ let t_912 = codeRange_911.min;
680
+ this.#pushCode_877(t_912, true);
681
+ this.#out_844[0] += "-";
682
+ let t_913 = codeRange_911.max;
683
+ this.#pushCode_877(t_913, true);
684
684
  return;
685
685
  }
686
- /** @param {CodeSet} codeSet_190 */
687
- #pushCodeSet_138(codeSet_190) {
688
- let t_191;
689
- let t_192;
690
- let t_193;
691
- const adjusted_194 = regexFormatterAdjustCodeSet_195(this, codeSet_190, regexRefs_110);
692
- if (adjusted_194 instanceof CodeSet) {
693
- t_193 = requireInstanceOf__134(adjusted_194, CodeSet);
694
- this.#out_119[0] += "[";
695
- if (t_193.negated) {
696
- this.#out_119[0] += "^";
686
+ /** @param {CodeSet} codeSet_915 */
687
+ #pushCodeSet_863(codeSet_915) {
688
+ let t_916;
689
+ let t_917;
690
+ let t_918;
691
+ const adjusted_919 = regexFormatterAdjustCodeSet_920(this, codeSet_915, regexRefs_835);
692
+ if (adjusted_919 instanceof CodeSet) {
693
+ t_918 = requireInstanceOf__859(adjusted_919, CodeSet);
694
+ this.#out_844[0] += "[";
695
+ if (t_918.negated) {
696
+ this.#out_844[0] += "^";
697
697
  }
698
- let i_196 = 0;
698
+ let i_921 = 0;
699
699
  while (true) {
700
- t_191 = t_193.items.length;
701
- if (!(i_196 < t_191)) {
700
+ t_916 = t_918.items.length;
701
+ if (!(i_921 < t_916)) {
702
702
  break;
703
703
  }
704
- t_192 = listedGet_169(t_193.items, i_196);
705
- this.#pushCodeSetItem_197(t_192);
706
- i_196 = i_196 + 1;
704
+ t_917 = listedGet_894(t_918.items, i_921);
705
+ this.#pushCodeSetItem_922(t_917);
706
+ i_921 = i_921 + 1 | 0;
707
707
  }
708
- this.#out_119[0] += "]";
708
+ this.#out_844[0] += "]";
709
709
  } else {
710
- this.#pushRegex_124(adjusted_194);
710
+ this.#pushRegex_849(adjusted_919);
711
711
  }
712
712
  return;
713
713
  }
714
- /** @param {CodePart} codePart_199 */
715
- #pushCodeSetItem_197(codePart_199) {
716
- let t_200;
717
- let t_201;
718
- let t_202;
719
- if (codePart_199 instanceof CodePoints) {
720
- t_200 = requireInstanceOf__134(codePart_199, CodePoints);
721
- this.#pushCodePoints_136(t_200, true);
722
- } else if (codePart_199 instanceof CodeRange) {
723
- t_201 = requireInstanceOf__134(codePart_199, CodeRange);
724
- this.#pushCodeRangeUnwrapped_184(t_201);
725
- } else if (codePart_199 instanceof SpecialSet) {
726
- t_202 = requireInstanceOf__134(codePart_199, SpecialSet);
727
- this.#pushRegex_124(t_202);
714
+ /** @param {CodePart} codePart_924 */
715
+ #pushCodeSetItem_922(codePart_924) {
716
+ let t_925;
717
+ let t_926;
718
+ let t_927;
719
+ if (codePart_924 instanceof CodePoints) {
720
+ t_925 = requireInstanceOf__859(codePart_924, CodePoints);
721
+ this.#pushCodePoints_861(t_925, true);
722
+ } else if (codePart_924 instanceof CodeRange) {
723
+ t_926 = requireInstanceOf__859(codePart_924, CodeRange);
724
+ this.#pushCodeRangeUnwrapped_909(t_926);
725
+ } else if (codePart_924 instanceof SpecialSet) {
726
+ t_927 = requireInstanceOf__859(codePart_924, SpecialSet);
727
+ this.#pushRegex_849(t_927);
728
728
  }
729
729
  return;
730
730
  }
731
- /** @param {Or} or_204 */
732
- #pushOr_139(or_204) {
733
- let t_205;
734
- let t_206;
735
- let t_207;
736
- if (! ! or_204.items.length) {
737
- this.#out_119[0] += "(?:";
738
- t_205 = listedGet_169(or_204.items, 0);
739
- this.#pushRegex_124(t_205);
740
- let i_208 = 1;
731
+ /** @param {Or} or_929 */
732
+ #pushOr_864(or_929) {
733
+ let t_930;
734
+ let t_931;
735
+ let t_932;
736
+ if (! ! or_929.items.length) {
737
+ this.#out_844[0] += "(?:";
738
+ t_930 = listedGet_894(or_929.items, 0);
739
+ this.#pushRegex_849(t_930);
740
+ let i_933 = 1;
741
741
  while (true) {
742
- t_206 = or_204.items.length;
743
- if (!(i_208 < t_206)) {
742
+ t_931 = or_929.items.length;
743
+ if (!(i_933 < t_931)) {
744
744
  break;
745
745
  }
746
- this.#out_119[0] += "|";
747
- t_207 = listedGet_169(or_204.items, i_208);
748
- this.#pushRegex_124(t_207);
749
- i_208 = i_208 + 1;
746
+ this.#out_844[0] += "|";
747
+ t_932 = listedGet_894(or_929.items, i_933);
748
+ this.#pushRegex_849(t_932);
749
+ i_933 = i_933 + 1 | 0;
750
750
  }
751
- this.#out_119[0] += ")";
751
+ this.#out_844[0] += ")";
752
752
  }
753
753
  return;
754
754
  }
755
- /** @param {Repeat} repeat_210 */
756
- #pushRepeat_140(repeat_210) {
757
- let t_211;
758
- let t_212;
759
- let t_213;
760
- let t_214;
761
- let t_215;
762
- this.#out_119[0] += "(?:";
763
- let t_216 = repeat_210.item;
764
- this.#pushRegex_124(t_216);
765
- this.#out_119[0] += ")";
766
- const min_217 = repeat_210.min;
767
- const max_218 = repeat_210.max;
768
- if (min_217 === 0) {
769
- t_213 = max_218 === 1;
755
+ /** @param {Repeat} repeat_935 */
756
+ #pushRepeat_865(repeat_935) {
757
+ let t_936;
758
+ let t_937;
759
+ let t_938;
760
+ let t_939;
761
+ let t_940;
762
+ this.#out_844[0] += "(?:";
763
+ let t_941 = repeat_935.item;
764
+ this.#pushRegex_849(t_941);
765
+ this.#out_844[0] += ")";
766
+ const min_942 = repeat_935.min;
767
+ const max_943 = repeat_935.max;
768
+ if (min_942 === 0) {
769
+ t_938 = max_943 === 1;
770
770
  } else {
771
- t_213 = false;
771
+ t_938 = false;
772
772
  }
773
- if (t_213) {
774
- this.#out_119[0] += "?";
773
+ if (t_938) {
774
+ this.#out_844[0] += "?";
775
775
  } else {
776
- if (min_217 === 0) {
777
- t_214 = max_218 == null;
776
+ if (min_942 === 0) {
777
+ t_939 = max_943 == null;
778
778
  } else {
779
- t_214 = false;
779
+ t_939 = false;
780
780
  }
781
- if (t_214) {
782
- this.#out_119[0] += "*";
781
+ if (t_939) {
782
+ this.#out_844[0] += "*";
783
783
  } else {
784
- if (min_217 === 1) {
785
- t_215 = max_218 == null;
784
+ if (min_942 === 1) {
785
+ t_940 = max_943 == null;
786
786
  } else {
787
- t_215 = false;
787
+ t_940 = false;
788
788
  }
789
- if (t_215) {
790
- this.#out_119[0] += "+";
789
+ if (t_940) {
790
+ this.#out_844[0] += "+";
791
791
  } else {
792
- t_211 = min_217.toString();
793
- this.#out_119[0] += "{" + t_211;
794
- if (min_217 !== max_218) {
795
- this.#out_119[0] += ",";
796
- if (!(max_218 == null)) {
797
- t_212 = max_218.toString();
798
- this.#out_119[0] += t_212;
792
+ t_936 = min_942.toString();
793
+ this.#out_844[0] += "{" + t_936;
794
+ if (min_942 !== max_943) {
795
+ this.#out_844[0] += ",";
796
+ if (!(max_943 == null)) {
797
+ t_937 = max_943.toString();
798
+ this.#out_844[0] += t_937;
799
799
  }
800
800
  }
801
- this.#out_119[0] += "}";
801
+ this.#out_844[0] += "}";
802
802
  }
803
803
  }
804
804
  }
805
- if (repeat_210.reluctant) {
806
- this.#out_119[0] += "?";
805
+ if (repeat_935.reluctant) {
806
+ this.#out_844[0] += "?";
807
807
  }
808
808
  return;
809
809
  }
810
- /** @param {Sequence} sequence_220 */
811
- #pushSequence_141(sequence_220) {
812
- let t_221;
813
- let t_222;
814
- let i_223 = 0;
810
+ /** @param {Sequence} sequence_945 */
811
+ #pushSequence_866(sequence_945) {
812
+ let t_946;
813
+ let t_947;
814
+ let i_948 = 0;
815
815
  while (true) {
816
- t_221 = sequence_220.items.length;
817
- if (!(i_223 < t_221)) {
816
+ t_946 = sequence_945.items.length;
817
+ if (!(i_948 < t_946)) {
818
818
  break;
819
819
  }
820
- t_222 = listedGet_169(sequence_220.items, i_223);
821
- this.#pushRegex_124(t_222);
822
- i_223 = i_223 + 1;
820
+ t_947 = listedGet_894(sequence_945.items, i_948);
821
+ this.#pushRegex_849(t_947);
822
+ i_948 = i_948 + 1 | 0;
823
823
  }
824
824
  return;
825
825
  }
826
826
  /**
827
- * @param {CodePart} codePart_225
827
+ * @param {CodePart} codePart_950
828
828
  * @returns {number | null}
829
829
  */
830
- maxCode(codePart_225) {
831
- let return_226;
832
- let t_227;
833
- let t_228;
834
- if (codePart_225 instanceof CodePoints) {
835
- t_228 = requireInstanceOf__134(codePart_225, CodePoints);
836
- const value_229 = t_228.value;
837
- if (! value_229) {
838
- return_226 = null;
830
+ maxCode(codePart_950) {
831
+ let return_951;
832
+ let t_952;
833
+ let t_953;
834
+ if (codePart_950 instanceof CodePoints) {
835
+ t_953 = requireInstanceOf__859(codePart_950, CodePoints);
836
+ const value_954 = t_953.value;
837
+ if (! value_954) {
838
+ return_951 = null;
839
839
  } else {
840
- let max_230 = 0;
841
- let index_231 = 0;
840
+ let max_955 = 0;
841
+ let index_956 = 0;
842
842
  while (true) {
843
- if (!(value_229.length > index_231)) {
843
+ if (!(value_954.length > index_956)) {
844
844
  break;
845
845
  }
846
- const next_232 = stringGet_180(value_229, index_231);
847
- if (next_232 > max_230) {
848
- max_230 = next_232;
846
+ const next_957 = stringGet_905(value_954, index_956);
847
+ if (next_957 > max_955) {
848
+ max_955 = next_957;
849
849
  }
850
- t_227 = stringNext_181(value_229, index_231);
851
- index_231 = t_227;
850
+ t_952 = stringNext_906(value_954, index_956);
851
+ index_956 = t_952;
852
852
  }
853
- return_226 = max_230;
853
+ return_951 = max_955;
854
854
  }
855
- } else if (codePart_225 instanceof CodeRange) {
856
- return_226 = requireInstanceOf__134(codePart_225, CodeRange).max;
857
- } else if (Object.is(codePart_225, Digit)) {
858
- return_226 = Codes_167.digit9;
859
- } else if (Object.is(codePart_225, Space)) {
860
- return_226 = Codes_167.space;
861
- } else if (Object.is(codePart_225, Word)) {
862
- return_226 = Codes_167.lowerZ;
855
+ } else if (codePart_950 instanceof CodeRange) {
856
+ return_951 = requireInstanceOf__859(codePart_950, CodeRange).max;
857
+ } else if (Object.is(codePart_950, Digit)) {
858
+ return_951 = Codes_892.digit9;
859
+ } else if (Object.is(codePart_950, Space)) {
860
+ return_951 = Codes_892.space;
861
+ } else if (Object.is(codePart_950, Word)) {
862
+ return_951 = Codes_892.lowerZ;
863
863
  } else {
864
- return_226 = null;
864
+ return_951 = null;
865
865
  }
866
- return return_226;
866
+ return return_951;
867
867
  }
868
868
  constructor() {
869
869
  super ();
870
- let t_233 = [""];
871
- this.#out_119 = t_233;
870
+ let t_958 = [""];
871
+ this.#out_844 = t_958;
872
872
  return;
873
873
  }
874
874
  }
875
- class Codes_167 extends type__10() {
875
+ class Codes_892 extends type__735() {
876
876
  /** @type {number} */
877
- static #ampersand_234 = 38;
877
+ static #ampersand_959 = 38;
878
878
  /** @returns {number} */
879
879
  static get ampersand() {
880
- return this.#ampersand_234;
880
+ return this.#ampersand_959;
881
881
  }
882
882
  /** @type {number} */
883
- static #backslash_235 = 92;
883
+ static #backslash_960 = 92;
884
884
  /** @returns {number} */
885
885
  static get backslash() {
886
- return this.#backslash_235;
886
+ return this.#backslash_960;
887
887
  }
888
888
  /** @type {number} */
889
- static #caret_236 = 94;
889
+ static #caret_961 = 94;
890
890
  /** @returns {number} */
891
891
  static get caret() {
892
- return this.#caret_236;
892
+ return this.#caret_961;
893
893
  }
894
894
  /** @type {number} */
895
- static #carriageReturn_237 = 13;
895
+ static #carriageReturn_962 = 13;
896
896
  /** @returns {number} */
897
897
  static get carriageReturn() {
898
- return this.#carriageReturn_237;
898
+ return this.#carriageReturn_962;
899
899
  }
900
900
  /** @type {number} */
901
- static #curlyLeft_238 = 123;
901
+ static #curlyLeft_963 = 123;
902
902
  /** @returns {number} */
903
903
  static get curlyLeft() {
904
- return this.#curlyLeft_238;
904
+ return this.#curlyLeft_963;
905
905
  }
906
906
  /** @type {number} */
907
- static #curlyRight_239 = 125;
907
+ static #curlyRight_964 = 125;
908
908
  /** @returns {number} */
909
909
  static get curlyRight() {
910
- return this.#curlyRight_239;
910
+ return this.#curlyRight_964;
911
911
  }
912
912
  /** @type {number} */
913
- static #dash_240 = 45;
913
+ static #dash_965 = 45;
914
914
  /** @returns {number} */
915
915
  static get dash() {
916
- return this.#dash_240;
916
+ return this.#dash_965;
917
917
  }
918
918
  /** @type {number} */
919
- static #dot_241 = 46;
919
+ static #dot_966 = 46;
920
920
  /** @returns {number} */
921
921
  static get dot() {
922
- return this.#dot_241;
922
+ return this.#dot_966;
923
923
  }
924
924
  /** @type {number} */
925
- static #highControlMin_242 = 127;
925
+ static #highControlMin_967 = 127;
926
926
  /** @returns {number} */
927
927
  static get highControlMin() {
928
- return this.#highControlMin_242;
928
+ return this.#highControlMin_967;
929
929
  }
930
930
  /** @type {number} */
931
- static #highControlMax_243 = 159;
931
+ static #highControlMax_968 = 159;
932
932
  /** @returns {number} */
933
933
  static get highControlMax() {
934
- return this.#highControlMax_243;
934
+ return this.#highControlMax_968;
935
935
  }
936
936
  /** @type {number} */
937
- static #digit0_244 = 48;
937
+ static #digit0_969 = 48;
938
938
  /** @returns {number} */
939
939
  static get digit0() {
940
- return this.#digit0_244;
940
+ return this.#digit0_969;
941
941
  }
942
942
  /** @type {number} */
943
- static #digit9_245 = 57;
943
+ static #digit9_970 = 57;
944
944
  /** @returns {number} */
945
945
  static get digit9() {
946
- return this.#digit9_245;
946
+ return this.#digit9_970;
947
947
  }
948
948
  /** @type {number} */
949
- static #lowerA_246 = 97;
949
+ static #lowerA_971 = 97;
950
950
  /** @returns {number} */
951
951
  static get lowerA() {
952
- return this.#lowerA_246;
952
+ return this.#lowerA_971;
953
953
  }
954
954
  /** @type {number} */
955
- static #lowerZ_247 = 122;
955
+ static #lowerZ_972 = 122;
956
956
  /** @returns {number} */
957
957
  static get lowerZ() {
958
- return this.#lowerZ_247;
958
+ return this.#lowerZ_972;
959
959
  }
960
960
  /** @type {number} */
961
- static #newline_248 = 10;
961
+ static #newline_973 = 10;
962
962
  /** @returns {number} */
963
963
  static get newline() {
964
- return this.#newline_248;
964
+ return this.#newline_973;
965
965
  }
966
966
  /** @type {number} */
967
- static #peso_249 = 36;
967
+ static #peso_974 = 36;
968
968
  /** @returns {number} */
969
969
  static get peso() {
970
- return this.#peso_249;
970
+ return this.#peso_974;
971
971
  }
972
972
  /** @type {number} */
973
- static #pipe_250 = 124;
973
+ static #pipe_975 = 124;
974
974
  /** @returns {number} */
975
975
  static get pipe() {
976
- return this.#pipe_250;
976
+ return this.#pipe_975;
977
977
  }
978
978
  /** @type {number} */
979
- static #plus_251 = 43;
979
+ static #plus_976 = 43;
980
980
  /** @returns {number} */
981
981
  static get plus() {
982
- return this.#plus_251;
982
+ return this.#plus_976;
983
983
  }
984
984
  /** @type {number} */
985
- static #question_252 = 63;
985
+ static #question_977 = 63;
986
986
  /** @returns {number} */
987
987
  static get question() {
988
- return this.#question_252;
988
+ return this.#question_977;
989
989
  }
990
990
  /** @type {number} */
991
- static #roundLeft_253 = 40;
991
+ static #roundLeft_978 = 40;
992
992
  /** @returns {number} */
993
993
  static get roundLeft() {
994
- return this.#roundLeft_253;
994
+ return this.#roundLeft_978;
995
995
  }
996
996
  /** @type {number} */
997
- static #roundRight_254 = 41;
997
+ static #roundRight_979 = 41;
998
998
  /** @returns {number} */
999
999
  static get roundRight() {
1000
- return this.#roundRight_254;
1000
+ return this.#roundRight_979;
1001
1001
  }
1002
1002
  /** @type {number} */
1003
- static #slash_255 = 47;
1003
+ static #slash_980 = 47;
1004
1004
  /** @returns {number} */
1005
1005
  static get slash() {
1006
- return this.#slash_255;
1006
+ return this.#slash_980;
1007
1007
  }
1008
1008
  /** @type {number} */
1009
- static #squareLeft_256 = 91;
1009
+ static #squareLeft_981 = 91;
1010
1010
  /** @returns {number} */
1011
1011
  static get squareLeft() {
1012
- return this.#squareLeft_256;
1012
+ return this.#squareLeft_981;
1013
1013
  }
1014
1014
  /** @type {number} */
1015
- static #squareRight_257 = 93;
1015
+ static #squareRight_982 = 93;
1016
1016
  /** @returns {number} */
1017
1017
  static get squareRight() {
1018
- return this.#squareRight_257;
1018
+ return this.#squareRight_982;
1019
1019
  }
1020
1020
  /** @type {number} */
1021
- static #star_258 = 42;
1021
+ static #star_983 = 42;
1022
1022
  /** @returns {number} */
1023
1023
  static get star() {
1024
- return this.#star_258;
1024
+ return this.#star_983;
1025
1025
  }
1026
1026
  /** @type {number} */
1027
- static #tab_259 = 9;
1027
+ static #tab_984 = 9;
1028
1028
  /** @returns {number} */
1029
1029
  static get tab() {
1030
- return this.#tab_259;
1030
+ return this.#tab_984;
1031
1031
  }
1032
1032
  /** @type {number} */
1033
- static #tilde_260 = 42;
1033
+ static #tilde_985 = 42;
1034
1034
  /** @returns {number} */
1035
1035
  static get tilde() {
1036
- return this.#tilde_260;
1036
+ return this.#tilde_985;
1037
1037
  }
1038
1038
  /** @type {number} */
1039
- static #upperA_261 = 65;
1039
+ static #upperA_986 = 65;
1040
1040
  /** @returns {number} */
1041
1041
  static get upperA() {
1042
- return this.#upperA_261;
1042
+ return this.#upperA_986;
1043
1043
  }
1044
1044
  /** @type {number} */
1045
- static #upperZ_262 = 90;
1045
+ static #upperZ_987 = 90;
1046
1046
  /** @returns {number} */
1047
1047
  static get upperZ() {
1048
- return this.#upperZ_262;
1048
+ return this.#upperZ_987;
1049
1049
  }
1050
1050
  /** @type {number} */
1051
- static #space_263 = 32;
1051
+ static #space_988 = 32;
1052
1052
  /** @returns {number} */
1053
1053
  static get space() {
1054
- return this.#space_263;
1054
+ return this.#space_988;
1055
1055
  }
1056
1056
  /** @type {number} */
1057
- static #surrogateMin_264 = 55296;
1057
+ static #surrogateMin_989 = 55296;
1058
1058
  /** @returns {number} */
1059
1059
  static get surrogateMin() {
1060
- return this.#surrogateMin_264;
1060
+ return this.#surrogateMin_989;
1061
1061
  }
1062
1062
  /** @type {number} */
1063
- static #surrogateMax_265 = 57343;
1063
+ static #surrogateMax_990 = 57343;
1064
1064
  /** @returns {number} */
1065
1065
  static get surrogateMax() {
1066
- return this.#surrogateMax_265;
1066
+ return this.#surrogateMax_990;
1067
1067
  }
1068
1068
  /** @type {number} */
1069
- static #supplementalMin_266 = 65536;
1069
+ static #supplementalMin_991 = 65536;
1070
1070
  /** @returns {number} */
1071
1071
  static get supplementalMin() {
1072
- return this.#supplementalMin_266;
1072
+ return this.#supplementalMin_991;
1073
1073
  }
1074
1074
  /** @type {number} */
1075
- static #uint16Max_267 = 65535;
1075
+ static #uint16Max_992 = 65535;
1076
1076
  /** @returns {number} */
1077
1077
  static get uint16Max() {
1078
- return this.#uint16Max_267;
1078
+ return this.#uint16Max_992;
1079
1079
  }
1080
1080
  /** @type {number} */
1081
- static #underscore_268 = 95;
1081
+ static #underscore_993 = 95;
1082
1082
  /** @returns {number} */
1083
1083
  static get underscore() {
1084
- return this.#underscore_268;
1084
+ return this.#underscore_993;
1085
1085
  }
1086
1086
  constructor() {
1087
1087
  super ();
1088
1088
  return;
1089
1089
  }
1090
1090
  }
1091
- class Begin_269 extends type__10(Special) {
1091
+ class Begin_994 extends type__735(Special) {
1092
1092
  constructor() {
1093
1093
  super ();
1094
1094
  return;
1095
1095
  }
1096
1096
  }
1097
1097
  /** @type {Special} */
1098
- export const Begin = new Begin_269();
1099
- class Dot_270 extends type__10(Special) {
1098
+ export const Begin = new Begin_994();
1099
+ class Dot_995 extends type__735(Special) {
1100
1100
  constructor() {
1101
1101
  super ();
1102
1102
  return;
1103
1103
  }
1104
1104
  }
1105
1105
  /** @type {Special} */
1106
- export const Dot = new Dot_270();
1107
- class End_271 extends type__10(Special) {
1106
+ export const Dot = new Dot_995();
1107
+ class End_996 extends type__735(Special) {
1108
1108
  constructor() {
1109
1109
  super ();
1110
1110
  return;
1111
1111
  }
1112
1112
  }
1113
1113
  /** @type {Special} */
1114
- export const End = new End_271();
1115
- class WordBoundary_272 extends type__10(Special) {
1114
+ export const End = new End_996();
1115
+ class WordBoundary_997 extends type__735(Special) {
1116
1116
  constructor() {
1117
1117
  super ();
1118
1118
  return;
1119
1119
  }
1120
1120
  }
1121
1121
  /** @type {Special} */
1122
- export const WordBoundary = new WordBoundary_272();
1123
- class Digit_273 extends type__10(SpecialSet) {
1122
+ export const WordBoundary = new WordBoundary_997();
1123
+ class Digit_998 extends type__735(SpecialSet) {
1124
1124
  constructor() {
1125
1125
  super ();
1126
1126
  return;
1127
1127
  }
1128
1128
  }
1129
1129
  /** @type {SpecialSet} */
1130
- export const Digit = new Digit_273();
1131
- class Space_274 extends type__10(SpecialSet) {
1130
+ export const Digit = new Digit_998();
1131
+ class Space_999 extends type__735(SpecialSet) {
1132
1132
  constructor() {
1133
1133
  super ();
1134
1134
  return;
1135
1135
  }
1136
1136
  }
1137
1137
  /** @type {SpecialSet} */
1138
- export const Space = new Space_274();
1139
- class Word_275 extends type__10(SpecialSet) {
1138
+ export const Space = new Space_999();
1139
+ class Word_1000 extends type__735(SpecialSet) {
1140
1140
  constructor() {
1141
1141
  super ();
1142
1142
  return;
1143
1143
  }
1144
1144
  }
1145
1145
  /** @type {SpecialSet} */
1146
- export const Word = new Word_275();
1146
+ export const Word = new Word_1000();
1147
1147
  /** @returns {Array<number>} */
1148
- function buildEscapeNeeds_276() {
1149
- let t_277;
1150
- let t_278;
1151
- let t_279;
1152
- let t_280;
1153
- let t_281;
1154
- let t_282;
1155
- let t_283;
1156
- let t_284;
1157
- let t_285;
1158
- let t_286;
1159
- let t_287;
1160
- let t_288;
1161
- let t_289;
1162
- let t_290;
1163
- let t_291;
1164
- let t_292;
1165
- let t_293;
1166
- let t_294;
1167
- let t_295;
1168
- let t_296;
1169
- let t_297;
1170
- let t_298;
1171
- let t_299;
1172
- let t_300;
1173
- let t_301;
1174
- const escapeNeeds_302 = [];
1175
- let code_303 = 0;
1176
- while (code_303 < 127) {
1177
- if (code_303 === Codes_167.dash) {
1178
- t_284 = true;
1148
+ function buildEscapeNeeds_1001() {
1149
+ let t_1002;
1150
+ let t_1003;
1151
+ let t_1004;
1152
+ let t_1005;
1153
+ let t_1006;
1154
+ let t_1007;
1155
+ let t_1008;
1156
+ let t_1009;
1157
+ let t_1010;
1158
+ let t_1011;
1159
+ let t_1012;
1160
+ let t_1013;
1161
+ let t_1014;
1162
+ let t_1015;
1163
+ let t_1016;
1164
+ let t_1017;
1165
+ let t_1018;
1166
+ let t_1019;
1167
+ let t_1020;
1168
+ let t_1021;
1169
+ let t_1022;
1170
+ let t_1023;
1171
+ let t_1024;
1172
+ let t_1025;
1173
+ let t_1026;
1174
+ const escapeNeeds_1027 = [];
1175
+ let code_1028 = 0;
1176
+ while (code_1028 < 127) {
1177
+ if (code_1028 === Codes_892.dash) {
1178
+ t_1009 = true;
1179
1179
  } else {
1180
- if (code_303 === Codes_167.space) {
1181
- t_283 = true;
1180
+ if (code_1028 === Codes_892.space) {
1181
+ t_1008 = true;
1182
1182
  } else {
1183
- if (code_303 === Codes_167.underscore) {
1184
- t_282 = true;
1183
+ if (code_1028 === Codes_892.underscore) {
1184
+ t_1007 = true;
1185
1185
  } else {
1186
- if (Codes_167.digit0 <= code_303) {
1187
- t_277 = code_303 <= Codes_167.digit9;
1186
+ if (Codes_892.digit0 <= code_1028) {
1187
+ t_1002 = code_1028 <= Codes_892.digit9;
1188
1188
  } else {
1189
- t_277 = false;
1189
+ t_1002 = false;
1190
1190
  }
1191
- if (t_277) {
1192
- t_281 = true;
1191
+ if (t_1002) {
1192
+ t_1006 = true;
1193
1193
  } else {
1194
- if (Codes_167.upperA <= code_303) {
1195
- t_278 = code_303 <= Codes_167.upperZ;
1194
+ if (Codes_892.upperA <= code_1028) {
1195
+ t_1003 = code_1028 <= Codes_892.upperZ;
1196
1196
  } else {
1197
- t_278 = false;
1197
+ t_1003 = false;
1198
1198
  }
1199
- if (t_278) {
1200
- t_280 = true;
1199
+ if (t_1003) {
1200
+ t_1005 = true;
1201
1201
  } else {
1202
- if (Codes_167.lowerA <= code_303) {
1203
- t_279 = code_303 <= Codes_167.lowerZ;
1202
+ if (Codes_892.lowerA <= code_1028) {
1203
+ t_1004 = code_1028 <= Codes_892.lowerZ;
1204
1204
  } else {
1205
- t_279 = false;
1205
+ t_1004 = false;
1206
1206
  }
1207
- t_280 = t_279;
1207
+ t_1005 = t_1004;
1208
1208
  }
1209
- t_281 = t_280;
1209
+ t_1006 = t_1005;
1210
1210
  }
1211
- t_282 = t_281;
1211
+ t_1007 = t_1006;
1212
1212
  }
1213
- t_283 = t_282;
1213
+ t_1008 = t_1007;
1214
1214
  }
1215
- t_284 = t_283;
1215
+ t_1009 = t_1008;
1216
1216
  }
1217
- if (t_284) {
1218
- t_301 = 0;
1217
+ if (t_1009) {
1218
+ t_1026 = 0;
1219
1219
  } else {
1220
- if (code_303 === Codes_167.ampersand) {
1221
- t_300 = true;
1220
+ if (code_1028 === Codes_892.ampersand) {
1221
+ t_1025 = true;
1222
1222
  } else {
1223
- if (code_303 === Codes_167.backslash) {
1224
- t_299 = true;
1223
+ if (code_1028 === Codes_892.backslash) {
1224
+ t_1024 = true;
1225
1225
  } else {
1226
- if (code_303 === Codes_167.caret) {
1227
- t_298 = true;
1226
+ if (code_1028 === Codes_892.caret) {
1227
+ t_1023 = true;
1228
1228
  } else {
1229
- if (code_303 === Codes_167.curlyLeft) {
1230
- t_297 = true;
1229
+ if (code_1028 === Codes_892.curlyLeft) {
1230
+ t_1022 = true;
1231
1231
  } else {
1232
- if (code_303 === Codes_167.curlyRight) {
1233
- t_296 = true;
1232
+ if (code_1028 === Codes_892.curlyRight) {
1233
+ t_1021 = true;
1234
1234
  } else {
1235
- if (code_303 === Codes_167.dot) {
1236
- t_295 = true;
1235
+ if (code_1028 === Codes_892.dot) {
1236
+ t_1020 = true;
1237
1237
  } else {
1238
- if (code_303 === Codes_167.peso) {
1239
- t_294 = true;
1238
+ if (code_1028 === Codes_892.peso) {
1239
+ t_1019 = true;
1240
1240
  } else {
1241
- if (code_303 === Codes_167.pipe) {
1242
- t_293 = true;
1241
+ if (code_1028 === Codes_892.pipe) {
1242
+ t_1018 = true;
1243
1243
  } else {
1244
- if (code_303 === Codes_167.plus) {
1245
- t_292 = true;
1244
+ if (code_1028 === Codes_892.plus) {
1245
+ t_1017 = true;
1246
1246
  } else {
1247
- if (code_303 === Codes_167.question) {
1248
- t_291 = true;
1247
+ if (code_1028 === Codes_892.question) {
1248
+ t_1016 = true;
1249
1249
  } else {
1250
- if (code_303 === Codes_167.roundLeft) {
1251
- t_290 = true;
1250
+ if (code_1028 === Codes_892.roundLeft) {
1251
+ t_1015 = true;
1252
1252
  } else {
1253
- if (code_303 === Codes_167.roundRight) {
1254
- t_289 = true;
1253
+ if (code_1028 === Codes_892.roundRight) {
1254
+ t_1014 = true;
1255
1255
  } else {
1256
- if (code_303 === Codes_167.slash) {
1257
- t_288 = true;
1256
+ if (code_1028 === Codes_892.slash) {
1257
+ t_1013 = true;
1258
1258
  } else {
1259
- if (code_303 === Codes_167.squareLeft) {
1260
- t_287 = true;
1259
+ if (code_1028 === Codes_892.squareLeft) {
1260
+ t_1012 = true;
1261
1261
  } else {
1262
- if (code_303 === Codes_167.squareRight) {
1263
- t_286 = true;
1262
+ if (code_1028 === Codes_892.squareRight) {
1263
+ t_1011 = true;
1264
1264
  } else {
1265
- if (code_303 === Codes_167.star) {
1266
- t_285 = true;
1265
+ if (code_1028 === Codes_892.star) {
1266
+ t_1010 = true;
1267
1267
  } else {
1268
- t_285 = code_303 === Codes_167.tilde;
1268
+ t_1010 = code_1028 === Codes_892.tilde;
1269
1269
  }
1270
- t_286 = t_285;
1270
+ t_1011 = t_1010;
1271
1271
  }
1272
- t_287 = t_286;
1272
+ t_1012 = t_1011;
1273
1273
  }
1274
- t_288 = t_287;
1274
+ t_1013 = t_1012;
1275
1275
  }
1276
- t_289 = t_288;
1276
+ t_1014 = t_1013;
1277
1277
  }
1278
- t_290 = t_289;
1278
+ t_1015 = t_1014;
1279
1279
  }
1280
- t_291 = t_290;
1280
+ t_1016 = t_1015;
1281
1281
  }
1282
- t_292 = t_291;
1282
+ t_1017 = t_1016;
1283
1283
  }
1284
- t_293 = t_292;
1284
+ t_1018 = t_1017;
1285
1285
  }
1286
- t_294 = t_293;
1286
+ t_1019 = t_1018;
1287
1287
  }
1288
- t_295 = t_294;
1288
+ t_1020 = t_1019;
1289
1289
  }
1290
- t_296 = t_295;
1290
+ t_1021 = t_1020;
1291
1291
  }
1292
- t_297 = t_296;
1292
+ t_1022 = t_1021;
1293
1293
  }
1294
- t_298 = t_297;
1294
+ t_1023 = t_1022;
1295
1295
  }
1296
- t_299 = t_298;
1296
+ t_1024 = t_1023;
1297
1297
  }
1298
- t_300 = t_299;
1298
+ t_1025 = t_1024;
1299
1299
  }
1300
- if (t_300) {
1301
- t_301 = 2;
1300
+ if (t_1025) {
1301
+ t_1026 = 2;
1302
1302
  } else {
1303
- t_301 = 1;
1303
+ t_1026 = 1;
1304
1304
  }
1305
1305
  }
1306
- listBuilderAdd_304(escapeNeeds_302, t_301);
1307
- code_303 = code_303 + 1;
1306
+ listBuilderAdd_1029(escapeNeeds_1027, t_1026);
1307
+ code_1028 = code_1028 + 1 | 0;
1308
1308
  }
1309
- return listBuilderToList_305(escapeNeeds_302);
1309
+ return listBuilderToList_1030(escapeNeeds_1027);
1310
1310
  }
1311
1311
  /** @type {Array<number>} */
1312
- const escapeNeeds_170 = buildEscapeNeeds_276();
1313
- /** @type {RegexRefs_70} */
1314
- const regexRefs_110 = new RegexRefs_70();
1312
+ const escapeNeeds_895 = buildEscapeNeeds_1001();
1313
+ /** @type {RegexRefs_795} */
1314
+ const regexRefs_835 = new RegexRefs_795();
1315
1315
  /**
1316
- * @param {RegexNode} item_306
1316
+ * @param {RegexNode} item_1031
1317
1317
  * @returns {RegexNode}
1318
1318
  */
1319
- export function entire(item_306) {
1320
- return new Sequence(Object.freeze([Begin, item_306, End]));
1319
+ export function entire(item_1031) {
1320
+ return new Sequence(Object.freeze([Begin, item_1031, End]));
1321
1321
  };
1322
1322
  /**
1323
- * @param {RegexNode} item_307
1324
- * @param {boolean | null} [reluctant_308]
1323
+ * @param {RegexNode} item_1032
1324
+ * @param {boolean | null} [reluctant_1033]
1325
1325
  * @returns {Repeat}
1326
1326
  */
1327
- export function oneOrMore(item_307, reluctant_308) {
1328
- let reluctant_309;
1329
- if (reluctant_308 == null) {
1330
- reluctant_309 = false;
1327
+ export function oneOrMore(item_1032, reluctant_1033) {
1328
+ let reluctant_1034;
1329
+ if (reluctant_1033 == null) {
1330
+ reluctant_1034 = false;
1331
1331
  } else {
1332
- reluctant_309 = reluctant_308;
1332
+ reluctant_1034 = reluctant_1033;
1333
1333
  }
1334
- return new Repeat(item_307, 1, null, reluctant_309);
1334
+ return new Repeat(item_1032, 1, null, reluctant_1034);
1335
1335
  };
1336
1336
  /**
1337
- * @param {RegexNode} item_310
1338
- * @param {boolean | null} [reluctant_311]
1337
+ * @param {RegexNode} item_1035
1338
+ * @param {boolean | null} [reluctant_1036]
1339
1339
  * @returns {Repeat}
1340
1340
  */
1341
- export function optional(item_310, reluctant_311) {
1342
- let reluctant_312;
1343
- if (reluctant_311 == null) {
1344
- reluctant_312 = false;
1341
+ export function optional(item_1035, reluctant_1036) {
1342
+ let reluctant_1037;
1343
+ if (reluctant_1036 == null) {
1344
+ reluctant_1037 = false;
1345
1345
  } else {
1346
- reluctant_312 = reluctant_311;
1346
+ reluctant_1037 = reluctant_1036;
1347
1347
  }
1348
- return new Repeat(item_310, 0, 1, reluctant_312);
1348
+ return new Repeat(item_1035, 0, 1, reluctant_1037);
1349
1349
  };