@airalogy/aimd-editor 1.13.1 → 1.14.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.
@@ -1,7 +1,7 @@
1
1
  const Ji = /* @__PURE__ */ JSON.parse('{"UserName":{"type_name":"UserName","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"current-user","type":"string","description":"The user name of the current Airalogy user","preview":{"kind":"skip"}},"CurrentTime":{"type_name":"CurrentTime","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"current-time","type":"string","description":"The current time. The timezone is based on the user\'s browser.","preview":{"kind":"skip"}},"CurrentProtocolId":{"type_name":"CurrentProtocolId","import_from":"airalogy.types","storage_kind":"scalar","type":"string","description":"The ID of the current Airalogy Protocol.","preview":{"kind":"skip"}},"CurrentRecordId":{"type_name":"CurrentRecordId","import_from":"airalogy.types","storage_kind":"scalar","type":"string","description":"The ID of the current Airalogy Record.","preview":{"kind":"skip"}},"EntityRef":{"type_name":"EntityRef","import_from":"airalogy.types","storage_kind":"reference","ui_kind":"entity-ref","type":"object","title":"EntityRef","description":"Reference to a named entity in a connector-backed source.\\n\\n`entity` is the entity namespace, such as plasmid or strain. `id` is the\\nstable identifier inside that namespace/source. Extra fields are allowed so\\nhosts can retain display snapshots or source-specific reference metadata.","preview":{"kind":"skip"}},"ResourceRef":{"type_name":"ResourceRef","import_from":"airalogy.types","storage_kind":"reference","ui_kind":"resource-ref","type":"object","title":"ResourceRef","description":"Stable reference to a Platform-managed resource.\\n\\nQuantities are represented by :class:`~decimal.Decimal` in Python and are\\nserialized as strings so a Record never loses precision while crossing a\\nJSON or JavaScript boundary.","preview":{"kind":"skip"}},"Observation":{"type_name":"Observation","import_from":"airalogy.types","storage_kind":"structured","ui_kind":"observation","type":"object","title":"Observation","description":"A typed value with observation time, receipt time, and provenance.","preview":{"kind":"skip"}},"ObservationSeriesRef":{"type_name":"ObservationSeriesRef","import_from":"airalogy.types","storage_kind":"reference","ui_kind":"observation-series","type":"object","title":"ObservationSeriesRef","description":"Reference to a file-backed high-volume observation series.","preview":{"kind":"skip"}},"BloodType":{"type_name":"BloodType","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"Blood type","description":"Common ABO blood group values. Values such as A+ or A- combine an ABO group with Rh positive or Rh negative status. Rh+ and Rh- are allowed when only Rh factor is recorded.","enum":["A","B","AB","O","A+","A-","B+","B-","AB+","AB-","O+","O-","Rh+","Rh-"],"preview":{"kind":"enum"}},"ChineseEducationLevel":{"type_name":"ChineseEducationLevel","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"文化程度","description":"中国居民信息登记中常用的文化程度分类。","enum":["无学历","小学","初中","高中","中专","大专","本科","硕士","博士"],"preview":{"kind":"enum"}},"ChineseEthnicGroup":{"type_name":"ChineseEthnicGroup","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"民族","description":"中国国务院公布的 56 个法定民族之一。","enum":["汉族","蒙古族","回族","藏族","维吾尔族","苗族","彝族","壮族","布依族","朝鲜族","满族","侗族","瑶族","白族","土家族","哈尼族","哈萨克族","傣族","黎族","傈僳族","佤族","畲族","高山族","拉祜族","水族","东乡族","纳西族","景颇族","柯尔克孜族","土族","达斡尔族","仫佬族","羌族","布朗族","撒拉族","毛南族","仡佬族","锡伯族","阿昌族","普米族","塔吉克族","怒族","乌孜别克族","俄罗斯族","鄂温克族","德昂族","保安族","裕固族","京族","塔塔尔族","独龙族","鄂伦春族","赫哲族","门巴族","珞巴族","基诺族"],"preview":{"kind":"enum"}},"ChineseGender":{"type_name":"ChineseGender","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"性别","description":"中国居民信息登记中常用的性别分类。","enum":["男","女"],"preview":{"kind":"enum"}},"ChineseMaritalStatus":{"type_name":"ChineseMaritalStatus","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"婚姻状况","description":"中国居民信息登记中常用的婚姻状况分类。","enum":["未婚","已婚","丧偶","离婚","再婚"],"preview":{"kind":"enum"}},"ChineseProvinceLevelRegion":{"type_name":"ChineseProvinceLevelRegion","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"省级行政区","description":"中国现行省级行政区(省、自治区、直辖市、特别行政区)。","enum":["北京","天津","上海","重庆","河北","山西","辽宁","吉林","黑龙江","江苏","浙江","安徽","福建","江西","山东","河南","湖北","湖南","广东","海南","四川","贵州","云南","陕西","甘肃","青海","台湾","西藏","内蒙古","广西","宁夏","新疆","香港","澳门"],"preview":{"kind":"enum"}},"AiralogyMarkdown":{"type_name":"AiralogyMarkdown","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"markdown","type":"string","description":"An Airalogy Markdown string","preview":{"kind":"examples","values":[]}},"RecordId":{"type_name":"RecordId","import_from":"airalogy.types","storage_kind":"scalar","type":"string","preview":{"kind":"skip"}},"FileIdPNG":{"type_name":"FileIdPNG","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdPNG. This type allows users to upload a .png file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdJPG":{"type_name":"FileIdJPG","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdJPG. This type allows users to upload a .jpg file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdSVG":{"type_name":"FileIdSVG","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdSVG. This type allows users to upload a .svg file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdWEBP":{"type_name":"FileIdWEBP","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdWEBP. This type allows users to upload a .webp file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdTIFF":{"type_name":"FileIdTIFF","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdTIFF. This type allows users to upload a .tiff file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdMP4":{"type_name":"FileIdMP4","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdMP4. This type allows users to upload a .mp4 file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdMP3":{"type_name":"FileIdMP3","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdMP3. This type allows users to upload a .mp3 file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdAIMD":{"type_name":"FileIdAIMD","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdAIMD. This type allows users to upload a .aimd file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdMD":{"type_name":"FileIdMD","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdMD. This type allows users to upload a .md file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdTXT":{"type_name":"FileIdTXT","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdTXT. This type allows users to upload a .txt file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdCSV":{"type_name":"FileIdCSV","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdCSV. This type allows users to upload a .csv file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdJSON":{"type_name":"FileIdJSON","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdJSON. This type allows users to upload a .json file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdDOCX":{"type_name":"FileIdDOCX","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdDOCX. This type allows users to upload a .docx file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdXLSX":{"type_name":"FileIdXLSX","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdXLSX. This type allows users to upload a .xlsx file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdPPTX":{"type_name":"FileIdPPTX","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdPPTX. This type allows users to upload a .pptx file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdPDF":{"type_name":"FileIdPDF","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdPDF. This type allows users to upload a .pdf file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdDNA":{"type_name":"FileIdDNA","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdDNA. This type allows users to upload a .dna file and inject it into the related data field.","preview":{"kind":"skip"}},"Recommended":{"type_name":"Recommended","import_from":"airalogy.types","storage_kind":"scalar","type":"object","preview":{"kind":"skip"}},"IgnoreStr":{"type_name":"IgnoreStr","import_from":"airalogy.types","storage_kind":"scalar","type":"string","description":"In an Airalogy Field of this type, a user may provide a string; however, when the Airalogy Record is submitted, the string is not persisted. This is intended for sensitive input (such as an API key) that the Airalogy Protocol Assigner can consume during processing but that should never be stored in the final Record.","preview":{"kind":"skip"}},"CodeStr":{"type_name":"CodeStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (plaintext). Strings of this type contain language-agnostic code or structured text and are rendered in a plain code editor.","preview":{"kind":"examples","values":[]}},"PyStr":{"type_name":"PyStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (python). Strings of this type contain python source code and are rendered in an editor with python syntax highlighting.","preview":{"kind":"examples","values":[]}},"JsStr":{"type_name":"JsStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (javascript). Strings of this type contain javascript source code and are rendered in an editor with javascript syntax highlighting.","preview":{"kind":"examples","values":[]}},"TsStr":{"type_name":"TsStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (typescript). Strings of this type contain typescript source code and are rendered in an editor with typescript syntax highlighting.","preview":{"kind":"examples","values":[]}},"JsonStr":{"type_name":"JsonStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (json). Strings of this type contain json source code and are rendered in an editor with json syntax highlighting.","preview":{"kind":"examples","values":[]}},"TomlStr":{"type_name":"TomlStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (toml). Strings of this type contain toml source code and are rendered in an editor with toml syntax highlighting.","preview":{"kind":"examples","values":[]}},"YamlStr":{"type_name":"YamlStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (yaml). Strings of this type contain yaml source code and are rendered in an editor with yaml syntax highlighting.","preview":{"kind":"examples","values":[]}},"ATCG":{"type_name":"ATCG","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"dna-text","type":"string","preview":{"kind":"examples","values":["ATCG"]},"pattern":"^[ATCG]*$"},"DNASequence":{"type_name":"DNASequence","import_from":"airalogy.types","storage_kind":"structured","ui_kind":"dna-sequence","type":"object","title":"DNASequence","description":"Structured DNA sequence value used by Airalogy\'s dedicated sequence editor.\\n\\nThis model intentionally stays simpler than full GenBank flatfiles while\\npreserving the core pieces needed for practical import/export alignment:\\nmulti-segment feature locations, partial flags, and qualifier rows.","preview":{"kind":"skip"}},"SnakeStr":{"type_name":"SnakeStr","import_from":"airalogy.types","storage_kind":"scalar","type":"string","preview":{"kind":"examples","values":["example_sample"]},"pattern":"^(?!.*__)[a-z](?:[a-z\\\\d_]*[a-z\\\\d])?$"},"VersionStr":{"type_name":"VersionStr","import_from":"airalogy.types","storage_kind":"scalar","type":"string","preview":{"kind":"examples","values":["0.1.0"]},"pattern":"^\\\\d+\\\\.\\\\d+\\\\.\\\\d+$"},"ProtocolId":{"type_name":"ProtocolId","import_from":"airalogy.types","storage_kind":"scalar","type":"string","preview":{"kind":"skip"}}}'), Qi = {
2
2
  types: Ji
3
3
  }, Hi = /* @__PURE__ */ new Set(["none", "nonetype", "null", "undefined"]);
4
- function Vt(e, t) {
4
+ function Rt(e, t) {
5
5
  const i = [];
6
6
  let s = 0, r = 0, n = "", o = !1;
7
7
  for (let u = 0; u < e.length; u += 1) {
@@ -10,24 +10,24 @@ function Vt(e, t) {
10
10
  }
11
11
  return i.push(e.slice(s).trim()), i;
12
12
  }
13
- function Wt(e) {
14
- const t = Vt(e, "|");
13
+ function yt(e) {
14
+ const t = Rt(e, "|");
15
15
  if (t.length > 1) return { union: t };
16
16
  const i = e.match(/^(?:(?:typing|typing_extensions)\.)?(Optional|Union)\s*\[([\s\S]*)\]$/i);
17
- return i?.[1].toLowerCase() === "optional" ? { optional: i[2].trim(), union: [] } : { union: i ? Vt(i[2], ",") : t };
17
+ return i?.[1].toLowerCase() === "optional" ? { optional: i[2].trim(), union: [] } : { union: i ? Rt(i[2], ",") : t };
18
18
  }
19
- function Kt(e) {
19
+ function bt(e) {
20
20
  return Hi.has(e.toLowerCase());
21
21
  }
22
- function mt(e) {
22
+ function Ee(e) {
23
23
  let t = typeof e == "string" ? e.trim() : "";
24
24
  for (let i = 0; i < 32; i += 1) {
25
- const { optional: s, union: r } = Wt(t);
25
+ const { optional: s, union: r } = yt(t);
26
26
  if (s !== void 0 && s !== t) {
27
27
  t = s;
28
28
  continue;
29
29
  }
30
- const n = r.filter((o) => !Kt(o));
30
+ const n = r.filter((o) => !bt(o));
31
31
  if (r.length > 1 && n.length === 1 && n[0]) {
32
32
  t = n[0];
33
33
  continue;
@@ -36,56 +36,63 @@ function mt(e) {
36
36
  }
37
37
  return t;
38
38
  }
39
- function wr(e) {
39
+ function Xi(e) {
40
40
  if (typeof e != "string") return !1;
41
- const { optional: t, union: i } = Wt(e.trim());
42
- return t !== void 0 || i.length > 1 && i.some(Kt);
41
+ const { optional: t, union: i } = yt(e.trim());
42
+ return t !== void 0 || i.length > 1 && i.some(bt);
43
+ }
44
+ function Yi(e, t) {
45
+ const i = e.trim() || "str";
46
+ if (Xi(i) === t) return i;
47
+ if (t) return `${i} | None`;
48
+ const { optional: s, union: r } = yt(i);
49
+ return s ? Yi(s, !1) : r.filter((n) => !bt(n)).join(" | ");
43
50
  }
44
- const zt = Qi, Lt = Object.fromEntries(
51
+ const zt = Qi, Ft = Object.fromEntries(
45
52
  Object.values(zt.types).flatMap((e) => [
46
53
  [e.type_name, e],
47
54
  ...(e.aliases ?? []).map((t) => [t, e])
48
55
  ])
49
56
  );
50
- function Xi(e) {
57
+ function Zi(e) {
51
58
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null;
52
59
  }
53
- function Yi(e) {
54
- return Array.isArray(e) ? e.filter(Xi) : [];
60
+ function es(e) {
61
+ return Array.isArray(e) ? e.filter(Zi) : [];
55
62
  }
56
- function Zi(e) {
63
+ function ts(e) {
57
64
  const t = e.trim();
58
65
  if (!/^(?:(?:typing|typing_extensions|airalogy\.types)\.)?[A-Za-z_][A-Za-z0-9_]*$/.test(t))
59
66
  return;
60
67
  const i = t.split(".");
61
68
  return i[i.length - 1];
62
69
  }
63
- function es(e) {
70
+ function is(e) {
64
71
  if (e)
65
- return Zi(mt(e));
72
+ return ts(Ee(e));
66
73
  }
67
- function ts(e) {
68
- const t = es(e);
69
- return t && Object.prototype.hasOwnProperty.call(Lt, t) ? Lt[t] : void 0;
74
+ function ss(e) {
75
+ const t = is(e);
76
+ return t && Object.prototype.hasOwnProperty.call(Ft, t) ? Ft[t] : void 0;
70
77
  }
71
- function Cr() {
78
+ function Ar() {
72
79
  return Object.keys(zt.types);
73
80
  }
74
- function is(e) {
75
- return Yi(ts(e)?.enum);
81
+ function rs(e) {
82
+ return es(ss(e)?.enum);
76
83
  }
77
- var ss = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], Jt = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], rs = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Qt = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", tt = {
84
+ var ns = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], Jt = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], as = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Qt = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", st = {
78
85
  3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
79
86
  5: "class enum extends super const export import",
80
87
  6: "enum",
81
88
  strict: "implements interface let package private protected public static yield",
82
89
  strictBind: "eval arguments"
83
- }, it = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", ns = {
84
- 5: it,
85
- "5module": it + " export import",
86
- 6: it + " const class extends export import super"
87
- }, as = /^in(stanceof)?$/, os = new RegExp("[" + Qt + "]"), us = new RegExp("[" + Qt + rs + "]");
88
- function ut(e, t) {
90
+ }, rt = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", os = {
91
+ 5: rt,
92
+ "5module": rt + " export import",
93
+ 6: rt + " const class extends export import super"
94
+ }, us = /^in(stanceof)?$/, ls = new RegExp("[" + Qt + "]"), cs = new RegExp("[" + Qt + as + "]");
95
+ function ct(e, t) {
89
96
  for (var i = 65536, s = 0; s < t.length; s += 2) {
90
97
  if (i += t[s], i > e)
91
98
  return !1;
@@ -95,10 +102,10 @@ function ut(e, t) {
95
102
  return !1;
96
103
  }
97
104
  function J(e, t) {
98
- return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && os.test(String.fromCharCode(e)) : t === !1 ? !1 : ut(e, Jt);
105
+ return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && ls.test(String.fromCharCode(e)) : t === !1 ? !1 : ct(e, Jt);
99
106
  }
100
- function se(e, t) {
101
- return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && us.test(String.fromCharCode(e)) : t === !1 ? !1 : ut(e, Jt) || ut(e, ss);
107
+ function re(e, t) {
108
+ return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && cs.test(String.fromCharCode(e)) : t === !1 ? !1 : ct(e, Jt) || ct(e, ns);
102
109
  }
103
110
  var S = function(t, i) {
104
111
  i === void 0 && (i = {}), this.label = t, this.keyword = i.keyword, this.beforeExpr = !!i.beforeExpr, this.startsExpr = !!i.startsExpr, this.isLoop = !!i.isLoop, this.isAssign = !!i.isAssign, this.prefix = !!i.prefix, this.postfix = !!i.postfix, this.binop = i.binop || null, this.updateContext = null;
@@ -106,9 +113,9 @@ var S = function(t, i) {
106
113
  function j(e, t) {
107
114
  return new S(e, { beforeExpr: !0, binop: t });
108
115
  }
109
- var U = { beforeExpr: !0 }, D = { startsExpr: !0 }, gt = {};
116
+ var U = { beforeExpr: !0 }, D = { startsExpr: !0 }, xt = {};
110
117
  function k(e, t) {
111
- return t === void 0 && (t = {}), t.keyword = e, gt[e] = new S(e, t);
118
+ return t === void 0 && (t = {}), t.keyword = e, xt[e] = new S(e, t);
112
119
  }
113
120
  var a = {
114
121
  num: new S("num", D),
@@ -203,7 +210,7 @@ var a = {
203
210
  _typeof: k("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
204
211
  _void: k("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
205
212
  _delete: k("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
206
- }, B = /\r\n?|\n|\u2028|\u2029/, ls = new RegExp(B.source, "g");
213
+ }, B = /\r\n?|\n|\u2028|\u2029/, hs = new RegExp(B.source, "g");
207
214
  function ge(e) {
208
215
  return e === 10 || e === 13 || e === 8232 || e === 8233;
209
216
  }
@@ -216,18 +223,18 @@ function Ht(e, t, i) {
216
223
  }
217
224
  return -1;
218
225
  }
219
- var Xt = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, L = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Yt = Object.prototype, cs = Yt.hasOwnProperty, hs = Yt.toString, ye = Object.hasOwn || (function(e, t) {
220
- return cs.call(e, t);
221
- }), Rt = Array.isArray || (function(e) {
222
- return hs.call(e) === "[object Array]";
223
- }), Ft = /* @__PURE__ */ Object.create(null);
224
- function ie(e) {
225
- return Ft[e] || (Ft[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
226
+ var Xt = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, L = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Yt = Object.prototype, fs = Yt.hasOwnProperty, ps = Yt.toString, ye = Object.hasOwn || (function(e, t) {
227
+ return fs.call(e, t);
228
+ }), Dt = Array.isArray || (function(e) {
229
+ return ps.call(e) === "[object Array]";
230
+ }), Bt = /* @__PURE__ */ Object.create(null);
231
+ function se(e) {
232
+ return Bt[e] || (Bt[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
226
233
  }
227
234
  function Z(e) {
228
235
  return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
229
236
  }
230
- var fs = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, Ce = function(t, i) {
237
+ var ds = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, Ce = function(t, i) {
231
238
  this.line = t, this.column = i;
232
239
  };
233
240
  Ce.prototype.offset = function(t) {
@@ -244,7 +251,7 @@ function Zt(e, t) {
244
251
  ++i, s = r;
245
252
  }
246
253
  }
247
- var lt = {
254
+ var ht = {
248
255
  // `ecmaVersion` indicates the ECMAScript version to parse. Must be
249
256
  // either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
250
257
  // (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"`
@@ -340,21 +347,21 @@ var lt = {
340
347
  // When enabled, parenthesized expressions are represented by
341
348
  // (non-standard) ParenthesizedExpression nodes
342
349
  preserveParens: !1
343
- }, Dt = !1;
344
- function ps(e) {
350
+ }, Mt = !1;
351
+ function ms(e) {
345
352
  var t = {};
346
- for (var i in lt)
347
- t[i] = e && ye(e, i) ? e[i] : lt[i];
348
- if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!Dt && typeof console == "object" && console.warn && (Dt = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
349
- Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14), Rt(t.onToken)) {
353
+ for (var i in ht)
354
+ t[i] = e && ye(e, i) ? e[i] : ht[i];
355
+ if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!Mt && typeof console == "object" && console.warn && (Mt = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
356
+ Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14), Dt(t.onToken)) {
350
357
  var s = t.onToken;
351
358
  t.onToken = function(r) {
352
359
  return s.push(r);
353
360
  };
354
361
  }
355
- return Rt(t.onComment) && (t.onComment = ds(t, t.onComment)), t;
362
+ return Dt(t.onComment) && (t.onComment = gs(t, t.onComment)), t;
356
363
  }
357
- function ds(e, t) {
364
+ function gs(e, t) {
358
365
  return function(i, s, r, n, o, u) {
359
366
  var l = {
360
367
  type: i ? "Block" : "Line",
@@ -365,16 +372,16 @@ function ds(e, t) {
365
372
  e.locations && (l.loc = new Ge(this, o, u)), e.ranges && (l.range = [r, n]), t.push(l);
366
373
  };
367
374
  }
368
- var Ae = 1, be = 2, yt = 4, ei = 8, bt = 16, ti = 32, We = 64, ii = 128, ce = 256, Ee = 512, Ke = Ae | be | ce;
369
- function xt(e, t) {
370
- return be | (e ? yt : 0) | (t ? ei : 0);
375
+ var Ae = 1, be = 2, vt = 4, ei = 8, _t = 16, ti = 32, Ke = 64, ii = 128, ce = 256, Pe = 512, ze = Ae | be | ce;
376
+ function kt(e, t) {
377
+ return be | (e ? vt : 0) | (t ? ei : 0);
371
378
  }
372
- var Fe = 0, vt = 1, te = 2, si = 3, ri = 4, ni = 5, O = function(t, i, s) {
373
- this.options = t = ps(t), this.sourceFile = t.sourceFile, this.keywords = ie(ns[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
379
+ var De = 0, St = 1, ie = 2, si = 3, ri = 4, ni = 5, O = function(t, i, s) {
380
+ this.options = t = ms(t), this.sourceFile = t.sourceFile, this.keywords = se(os[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
374
381
  var r = "";
375
- t.allowReserved !== !0 && (r = tt[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (r += " await")), this.reservedWords = ie(r);
376
- var n = (r ? r + " " : "") + tt.strict;
377
- this.reservedWordsStrict = ie(n), this.reservedWordsStrictBind = ie(n + " " + tt.strictBind), this.input = String(i), this.containsEsc = !1, s ? (this.pos = s, this.lineStart = this.input.lastIndexOf(`
382
+ t.allowReserved !== !0 && (r = st[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (r += " await")), this.reservedWords = se(r);
383
+ var n = (r ? r + " " : "") + st.strict;
384
+ this.reservedWordsStrict = se(n), this.reservedWordsStrictBind = se(n + " " + st.strictBind), this.input = String(i), this.containsEsc = !1, s ? (this.pos = s, this.lineStart = this.input.lastIndexOf(`
378
385
  `, s - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(B).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = a.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(Ae), this.regexpState = null, this.privateNameStack = [];
379
386
  }, Q = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } };
380
387
  O.prototype.parse = function() {
@@ -388,21 +395,21 @@ Q.inGenerator.get = function() {
388
395
  return (this.currentVarScope().flags & ei) > 0;
389
396
  };
390
397
  Q.inAsync.get = function() {
391
- return (this.currentVarScope().flags & yt) > 0;
398
+ return (this.currentVarScope().flags & vt) > 0;
392
399
  };
393
400
  Q.canAwait.get = function() {
394
401
  for (var e = this.scopeStack.length - 1; e >= 0; e--) {
395
402
  var t = this.scopeStack[e], i = t.flags;
396
- if (i & (ce | Ee))
403
+ if (i & (ce | Pe))
397
404
  return !1;
398
405
  if (i & be)
399
- return (i & yt) > 0;
406
+ return (i & vt) > 0;
400
407
  }
401
408
  return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
402
409
  };
403
410
  Q.allowSuper.get = function() {
404
411
  var e = this.currentThisScope(), t = e.flags;
405
- return (t & We) > 0 || this.options.allowSuperOutsideMethod;
412
+ return (t & Ke) > 0 || this.options.allowSuperOutsideMethod;
406
413
  };
407
414
  Q.allowDirectSuper.get = function() {
408
415
  return (this.currentThisScope().flags & ii) > 0;
@@ -413,7 +420,7 @@ Q.treatFunctionsAsVar.get = function() {
413
420
  Q.allowNewDotTarget.get = function() {
414
421
  for (var e = this.scopeStack.length - 1; e >= 0; e--) {
415
422
  var t = this.scopeStack[e], i = t.flags;
416
- if (i & (ce | Ee) || i & be && !(i & bt))
423
+ if (i & (ce | Pe) || i & be && !(i & _t))
417
424
  return !0;
418
425
  }
419
426
  return !1;
@@ -438,13 +445,13 @@ O.tokenizer = function(t, i) {
438
445
  return new this(i, t);
439
446
  };
440
447
  Object.defineProperties(O.prototype, Q);
441
- var F = O.prototype, ms = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
448
+ var F = O.prototype, ys = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
442
449
  F.strictDirective = function(e) {
443
450
  if (this.options.ecmaVersion < 5)
444
451
  return !1;
445
452
  for (; ; ) {
446
453
  L.lastIndex = e, e += L.exec(this.input)[0].length;
447
- var t = ms.exec(this.input.slice(e));
454
+ var t = ys.exec(this.input.slice(e));
448
455
  if (!t)
449
456
  return !1;
450
457
  if ((t[1] || t[2]) === "use strict") {
@@ -487,7 +494,7 @@ F.expect = function(e) {
487
494
  F.unexpected = function(e) {
488
495
  this.raise(e ?? this.start, "Unexpected token");
489
496
  };
490
- var ze = function() {
497
+ var Je = function() {
491
498
  this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
492
499
  };
493
500
  F.checkPatternErrors = function(e, t) {
@@ -525,7 +532,7 @@ g.parseTopLevel = function(e) {
525
532
  }
526
533
  return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType, this.finishNode(e, "Program");
527
534
  };
528
- var _t = { kind: "loop" }, gs = { kind: "switch" };
535
+ var wt = { kind: "loop" }, bs = { kind: "switch" };
529
536
  g.isLet = function(e) {
530
537
  if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
531
538
  return !1;
@@ -538,12 +545,12 @@ g.isLet = function(e) {
538
545
  if (s === 123 || s > 55295 && s < 56320)
539
546
  return !0;
540
547
  if (J(s, !0)) {
541
- for (var r = i + 1; se(s = this.input.charCodeAt(r), !0); )
548
+ for (var r = i + 1; re(s = this.input.charCodeAt(r), !0); )
542
549
  ++r;
543
550
  if (s === 92 || s > 55295 && s < 56320)
544
551
  return !0;
545
552
  var n = this.input.slice(i, r);
546
- if (!as.test(n))
553
+ if (!us.test(n))
547
554
  return !0;
548
555
  }
549
556
  return !1;
@@ -553,7 +560,7 @@ g.isAsyncFunction = function() {
553
560
  return !1;
554
561
  L.lastIndex = this.pos;
555
562
  var e = L.exec(this.input), t = this.pos + e[0].length, i;
556
- return !B.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(se(i = this.input.charCodeAt(t + 8)) || i > 55295 && i < 56320));
563
+ return !B.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(re(i = this.input.charCodeAt(t + 8)) || i > 55295 && i < 56320));
557
564
  };
558
565
  g.isUsingKeyword = function(e, t) {
559
566
  if (this.options.ecmaVersion < 17 || !this.isContextual(e ? "await" : "using"))
@@ -564,7 +571,7 @@ g.isUsingKeyword = function(e, t) {
564
571
  return !1;
565
572
  if (e) {
566
573
  var r = s + 5, n;
567
- if (this.input.slice(s, r) !== "using" || r === this.input.length || se(n = this.input.charCodeAt(r)) || n > 55295 && n < 56320)
574
+ if (this.input.slice(s, r) !== "using" || r === this.input.length || re(n = this.input.charCodeAt(r)) || n > 55295 && n < 56320)
568
575
  return !1;
569
576
  L.lastIndex = r;
570
577
  var o = L.exec(this.input);
@@ -573,7 +580,7 @@ g.isUsingKeyword = function(e, t) {
573
580
  }
574
581
  if (t) {
575
582
  var u = s + 2, l;
576
- if (this.input.slice(s, u) === "of" && (u === this.input.length || !se(l = this.input.charCodeAt(u)) && !(l > 55295 && l < 56320)))
583
+ if (this.input.slice(s, u) === "of" && (u === this.input.length || !re(l = this.input.charCodeAt(u)) && !(l > 55295 && l < 56320)))
577
584
  return !1;
578
585
  }
579
586
  var c = this.input.charCodeAt(s);
@@ -642,8 +649,8 @@ g.parseStatement = function(e, t, i) {
642
649
  var c = this.isAwaitUsing(!1) ? "await using" : this.isUsing(!1) ? "using" : null;
643
650
  if (c)
644
651
  return t && this.options.sourceType === "script" && this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script`"), c === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(r, !1, c), this.semicolon(), this.finishNode(r, "VariableDeclaration");
645
- var p = this.value, f = this.parseExpression();
646
- return s === a.name && f.type === "Identifier" && this.eat(a.colon) ? this.parseLabeledStatement(r, p, f, e) : this.parseExpressionStatement(r, f);
652
+ var h = this.value, p = this.parseExpression();
653
+ return s === a.name && p.type === "Identifier" && this.eat(a.colon) ? this.parseLabeledStatement(r, h, p, e) : this.parseExpressionStatement(r, p);
647
654
  }
648
655
  };
649
656
  g.parseBreakContinueStatement = function(e, t) {
@@ -660,12 +667,12 @@ g.parseDebuggerStatement = function(e) {
660
667
  return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
661
668
  };
662
669
  g.parseDoStatement = function(e) {
663
- return this.next(), this.labels.push(_t), e.body = this.parseStatement("do"), this.labels.pop(), this.expect(a._while), e.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(a.semi) : this.semicolon(), this.finishNode(e, "DoWhileStatement");
670
+ return this.next(), this.labels.push(wt), e.body = this.parseStatement("do"), this.labels.pop(), this.expect(a._while), e.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(a.semi) : this.semicolon(), this.finishNode(e, "DoWhileStatement");
664
671
  };
665
672
  g.parseForStatement = function(e) {
666
673
  this.next();
667
674
  var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
668
- if (this.labels.push(_t), this.enterScope(0), this.expect(a.parenL), this.type === a.semi)
675
+ if (this.labels.push(wt), this.enterScope(0), this.expect(a.parenL), this.type === a.semi)
669
676
  return t > -1 && this.unexpected(t), this.parseFor(e, null);
670
677
  var i = this.isLet();
671
678
  if (this.type === a._var || this.type === a._const || i) {
@@ -677,14 +684,14 @@ g.parseForStatement = function(e) {
677
684
  var l = this.startNode();
678
685
  return this.next(), u === "await using" && this.next(), this.parseVar(l, !0, u), this.finishNode(l, "VariableDeclaration"), this.parseForAfterInit(e, l, t);
679
686
  }
680
- var c = this.containsEsc, p = new ze(), f = this.start, d = t > -1 ? this.parseExprSubscripts(p, "await") : this.parseExpression(!0, p);
681
- return this.type === a._in || (o = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === a._in && this.unexpected(t), e.await = !0) : o && this.options.ecmaVersion >= 8 && (d.start === f && !c && d.type === "Identifier" && d.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = !1)), n && o && this.raise(d.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(d, !1, p), this.checkLValPattern(d), this.parseForIn(e, d)) : (this.checkExpressionErrors(p, !0), t > -1 && this.unexpected(t), this.parseFor(e, d));
687
+ var c = this.containsEsc, h = new Je(), p = this.start, d = t > -1 ? this.parseExprSubscripts(h, "await") : this.parseExpression(!0, h);
688
+ return this.type === a._in || (o = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === a._in && this.unexpected(t), e.await = !0) : o && this.options.ecmaVersion >= 8 && (d.start === p && !c && d.type === "Identifier" && d.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = !1)), n && o && this.raise(d.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(d, !1, h), this.checkLValPattern(d), this.parseForIn(e, d)) : (this.checkExpressionErrors(h, !0), t > -1 && this.unexpected(t), this.parseFor(e, d));
682
689
  };
683
690
  g.parseForAfterInit = function(e, t, i) {
684
691
  return (this.type === a._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && t.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === a._in ? i > -1 && this.unexpected(i) : e.await = i > -1), this.parseForIn(e, t)) : (i > -1 && this.unexpected(i), this.parseFor(e, t));
685
692
  };
686
693
  g.parseFunctionStatement = function(e, t, i) {
687
- return this.next(), this.parseFunction(e, ke | (i ? 0 : ct), !1, t);
694
+ return this.next(), this.parseFunction(e, ke | (i ? 0 : ft), !1, t);
688
695
  };
689
696
  g.parseIfStatement = function(e) {
690
697
  return this.next(), e.test = this.parseParenExpression(), e.consequent = this.parseStatement("if"), e.alternate = this.eat(a._else) ? this.parseStatement("if") : null, this.finishNode(e, "IfStatement");
@@ -693,7 +700,7 @@ g.parseReturnStatement = function(e) {
693
700
  return !this.inFunction && !this.options.allowReturnOutsideFunction && this.raise(this.start, "'return' outside of function"), this.next(), this.eat(a.semi) || this.insertSemicolon() ? e.argument = null : (e.argument = this.parseExpression(), this.semicolon()), this.finishNode(e, "ReturnStatement");
694
701
  };
695
702
  g.parseSwitchStatement = function(e) {
696
- this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(a.braceL), this.labels.push(gs), this.enterScope(0);
703
+ this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(a.braceL), this.labels.push(bs), this.enterScope(0);
697
704
  for (var t, i = !1; this.type !== a.braceR; )
698
705
  if (this.type === a._case || this.type === a._default) {
699
706
  var s = this.type === a._case;
@@ -705,10 +712,10 @@ g.parseSwitchStatement = function(e) {
705
712
  g.parseThrowStatement = function(e) {
706
713
  return this.next(), B.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), e.argument = this.parseExpression(), this.semicolon(), this.finishNode(e, "ThrowStatement");
707
714
  };
708
- var ys = [];
715
+ var xs = [];
709
716
  g.parseCatchClauseParam = function() {
710
717
  var e = this.parseBindingAtom(), t = e.type === "Identifier";
711
- return this.enterScope(t ? ti : 0), this.checkLValPattern(e, t ? ri : te), this.expect(a.parenR), e;
718
+ return this.enterScope(t ? ti : 0), this.checkLValPattern(e, t ? ri : ie), this.expect(a.parenR), e;
712
719
  };
713
720
  g.parseTryStatement = function(e) {
714
721
  if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === a._catch) {
@@ -721,7 +728,7 @@ g.parseVarStatement = function(e, t, i) {
721
728
  return this.next(), this.parseVar(e, !1, t, i), this.semicolon(), this.finishNode(e, "VariableDeclaration");
722
729
  };
723
730
  g.parseWhileStatement = function(e) {
724
- return this.next(), e.test = this.parseParenExpression(), this.labels.push(_t), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
731
+ return this.next(), e.test = this.parseParenExpression(), this.labels.push(wt), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
725
732
  };
726
733
  g.parseWithStatement = function(e) {
727
734
  return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), e.object = this.parseParenExpression(), e.body = this.parseStatement("with"), this.finishNode(e, "WithStatement");
@@ -772,13 +779,13 @@ g.parseVar = function(e, t, i, s) {
772
779
  return e;
773
780
  };
774
781
  g.parseVarId = function(e, t) {
775
- e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? vt : te, !1);
782
+ e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? St : ie, !1);
776
783
  };
777
- var ke = 1, ct = 2, ai = 4;
784
+ var ke = 1, ft = 2, ai = 4;
778
785
  g.parseFunction = function(e, t, i, s, r) {
779
- this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s) && (this.type === a.star && t & ct && this.unexpected(), e.generator = this.eat(a.star)), this.options.ecmaVersion >= 8 && (e.async = !!s), t & ke && (e.id = t & ai && this.type !== a.name ? null : this.parseIdent(), e.id && !(t & ct) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? vt : te : si));
786
+ this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s) && (this.type === a.star && t & ft && this.unexpected(), e.generator = this.eat(a.star)), this.options.ecmaVersion >= 8 && (e.async = !!s), t & ke && (e.id = t & ai && this.type !== a.name ? null : this.parseIdent(), e.id && !(t & ft) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? St : ie : si));
780
787
  var n = this.yieldPos, o = this.awaitPos, u = this.awaitIdentPos;
781
- return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(xt(e.async, e.generator)), t & ke || (e.id = this.type === a.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, i, !1, r), this.yieldPos = n, this.awaitPos = o, this.awaitIdentPos = u, this.finishNode(e, t & ke ? "FunctionDeclaration" : "FunctionExpression");
788
+ return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(kt(e.async, e.generator)), t & ke || (e.id = this.type === a.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, i, !1, r), this.yieldPos = n, this.awaitPos = o, this.awaitIdentPos = u, this.finishNode(e, t & ke ? "FunctionDeclaration" : "FunctionExpression");
782
789
  };
783
790
  g.parseFunctionParams = function(e) {
784
791
  this.expect(a.parenL), e.params = this.parseBindingList(a.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
@@ -790,7 +797,7 @@ g.parseClass = function(e, t) {
790
797
  var s = this.enterClassBody(), r = this.startNode(), n = !1;
791
798
  for (r.body = [], this.expect(a.braceL); this.type !== a.braceR; ) {
792
799
  var o = this.parseClassElement(e.superClass !== null);
793
- o && (r.body.push(o), o.type === "MethodDefinition" && o.kind === "constructor" ? (n && this.raiseRecoverable(o.start, "Duplicate constructor in the same class"), n = !0) : o.key && o.key.type === "PrivateIdentifier" && bs(s, o) && this.raiseRecoverable(o.key.start, "Identifier '#" + o.key.name + "' has already been declared"));
800
+ o && (r.body.push(o), o.type === "MethodDefinition" && o.kind === "constructor" ? (n && this.raiseRecoverable(o.start, "Duplicate constructor in the same class"), n = !0) : o.key && o.key.type === "PrivateIdentifier" && vs(s, o) && this.raiseRecoverable(o.key.start, "Identifier '#" + o.key.name + "' has already been declared"));
794
801
  }
795
802
  return this.strict = i, this.next(), e.body = this.finishNode(r, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
796
803
  };
@@ -808,8 +815,8 @@ g.parseClassElement = function(e) {
808
815
  (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? o = l : s = l);
809
816
  }
810
817
  if (s ? (i.computed = !1, i.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), i.key.name = s, this.finishNode(i.key, "Identifier")) : this.parseClassElementName(i), t < 13 || this.type === a.parenL || o !== "method" || r || n) {
811
- var c = !i.static && De(i, "constructor"), p = c && e;
812
- c && o !== "method" && this.raise(i.key.start, "Constructor can't have get/set modifier"), i.kind = c ? "constructor" : o, this.parseClassMethod(i, r, n, p);
818
+ var c = !i.static && Be(i, "constructor"), h = c && e;
819
+ c && o !== "method" && this.raise(i.key.start, "Constructor can't have get/set modifier"), i.kind = c ? "constructor" : o, this.parseClassMethod(i, r, n, h);
813
820
  } else
814
821
  this.parseClassField(i);
815
822
  return i;
@@ -822,24 +829,24 @@ g.parseClassElementName = function(e) {
822
829
  };
823
830
  g.parseClassMethod = function(e, t, i, s) {
824
831
  var r = e.key;
825
- e.kind === "constructor" ? (t && this.raise(r.start, "Constructor can't be a generator"), i && this.raise(r.start, "Constructor can't be an async method")) : e.static && De(e, "prototype") && this.raise(r.start, "Classes may not have a static property named prototype");
832
+ e.kind === "constructor" ? (t && this.raise(r.start, "Constructor can't be a generator"), i && this.raise(r.start, "Constructor can't be an async method")) : e.static && Be(e, "prototype") && this.raise(r.start, "Classes may not have a static property named prototype");
826
833
  var n = e.value = this.parseMethod(t, i, s);
827
834
  return e.kind === "get" && n.params.length !== 0 && this.raiseRecoverable(n.start, "getter should have no params"), e.kind === "set" && n.params.length !== 1 && this.raiseRecoverable(n.start, "setter should have exactly one param"), e.kind === "set" && n.params[0].type === "RestElement" && this.raiseRecoverable(n.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
828
835
  };
829
836
  g.parseClassField = function(e) {
830
- return De(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && De(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(a.eq) ? (this.enterScope(Ee | We), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
837
+ return Be(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && Be(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(a.eq) ? (this.enterScope(Pe | Ke), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
831
838
  };
832
839
  g.parseClassStaticBlock = function(e) {
833
840
  e.body = [];
834
841
  var t = this.labels;
835
- for (this.labels = [], this.enterScope(ce | We); this.type !== a.braceR; ) {
842
+ for (this.labels = [], this.enterScope(ce | Ke); this.type !== a.braceR; ) {
836
843
  var i = this.parseStatement(null);
837
844
  e.body.push(i);
838
845
  }
839
846
  return this.next(), this.exitScope(), this.labels = t, this.finishNode(e, "StaticBlock");
840
847
  };
841
848
  g.parseClassId = function(e, t) {
842
- this.type === a.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, te, !1)) : (t === !0 && this.unexpected(), e.id = null);
849
+ this.type === a.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, ie, !1)) : (t === !0 && this.unexpected(), e.id = null);
843
850
  };
844
851
  g.parseClassSuper = function(e) {
845
852
  e.superClass = this.eat(a._extends) ? this.parseExprSubscripts(null, !1) : null;
@@ -856,11 +863,11 @@ g.exitClassBody = function() {
856
863
  ye(t, o.name) || (r ? r.used.push(o) : this.raiseRecoverable(o.start, "Private field '#" + o.name + "' must be declared in an enclosing class"));
857
864
  }
858
865
  };
859
- function bs(e, t) {
866
+ function vs(e, t) {
860
867
  var i = t.key.name, s = e[i], r = "true";
861
868
  return t.type === "MethodDefinition" && (t.kind === "get" || t.kind === "set") && (r = (t.static ? "s" : "i") + t.kind), s === "iget" && r === "iset" || s === "iset" && r === "iget" || s === "sget" && r === "sset" || s === "sset" && r === "sget" ? (e[i] = "true", !1) : s ? !0 : (e[i] = r, !1);
862
869
  }
863
- function De(e, t) {
870
+ function Be(e, t) {
864
871
  var i = e.computed, s = e.key;
865
872
  return !i && (s.type === "Identifier" && s.name === t || s.type === "Literal" && s.value === t);
866
873
  }
@@ -953,19 +960,19 @@ g.parseExportSpecifiers = function(e) {
953
960
  return t;
954
961
  };
955
962
  g.parseImport = function(e) {
956
- return this.next(), this.type === a.string ? (e.specifiers = ys, e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === a.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ImportDeclaration");
963
+ return this.next(), this.type === a.string ? (e.specifiers = xs, e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === a.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ImportDeclaration");
957
964
  };
958
965
  g.parseImportSpecifier = function() {
959
966
  var e = this.startNode();
960
- return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported), e.local = e.imported), this.checkLValSimple(e.local, te), this.finishNode(e, "ImportSpecifier");
967
+ return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported), e.local = e.imported), this.checkLValSimple(e.local, ie), this.finishNode(e, "ImportSpecifier");
961
968
  };
962
969
  g.parseImportDefaultSpecifier = function() {
963
970
  var e = this.startNode();
964
- return e.local = this.parseIdent(), this.checkLValSimple(e.local, te), this.finishNode(e, "ImportDefaultSpecifier");
971
+ return e.local = this.parseIdent(), this.checkLValSimple(e.local, ie), this.finishNode(e, "ImportDefaultSpecifier");
965
972
  };
966
973
  g.parseImportNamespaceSpecifier = function() {
967
974
  var e = this.startNode();
968
- return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local, te), this.finishNode(e, "ImportNamespaceSpecifier");
975
+ return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local, ie), this.finishNode(e, "ImportNamespaceSpecifier");
969
976
  };
970
977
  g.parseImportSpecifiers = function() {
971
978
  var e = [], t = !0;
@@ -1004,7 +1011,7 @@ g.parseImportAttribute = function() {
1004
1011
  g.parseModuleExportName = function() {
1005
1012
  if (this.options.ecmaVersion >= 13 && this.type === a.string) {
1006
1013
  var e = this.parseLiteral(this.value);
1007
- return fs.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
1014
+ return ds.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
1008
1015
  }
1009
1016
  return this.parseIdent(!0);
1010
1017
  };
@@ -1122,11 +1129,11 @@ q.parseMaybeDefault = function(e, t, i) {
1122
1129
  return s.left = i, s.right = this.parseMaybeAssign(), this.finishNode(s, "AssignmentPattern");
1123
1130
  };
1124
1131
  q.checkLValSimple = function(e, t, i) {
1125
- t === void 0 && (t = Fe);
1126
- var s = t !== Fe;
1132
+ t === void 0 && (t = De);
1133
+ var s = t !== De;
1127
1134
  switch (e.type) {
1128
1135
  case "Identifier":
1129
- this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (s ? "Binding " : "Assigning to ") + e.name + " in strict mode"), s && (t === te && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), i && (ye(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = !0), t !== ni && this.declareName(e.name, t, e.start));
1136
+ this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (s ? "Binding " : "Assigning to ") + e.name + " in strict mode"), s && (t === ie && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), i && (ye(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = !0), t !== ni && this.declareName(e.name, t, e.start));
1130
1137
  break;
1131
1138
  case "ChainExpression":
1132
1139
  this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
@@ -1141,7 +1148,7 @@ q.checkLValSimple = function(e, t, i) {
1141
1148
  }
1142
1149
  };
1143
1150
  q.checkLValPattern = function(e, t, i) {
1144
- switch (t === void 0 && (t = Fe), e.type) {
1151
+ switch (t === void 0 && (t = De), e.type) {
1145
1152
  case "ObjectPattern":
1146
1153
  for (var s = 0, r = e.properties; s < r.length; s += 1) {
1147
1154
  var n = r[s];
@@ -1159,7 +1166,7 @@ q.checkLValPattern = function(e, t, i) {
1159
1166
  }
1160
1167
  };
1161
1168
  q.checkLValInnerPattern = function(e, t, i) {
1162
- switch (t === void 0 && (t = Fe), e.type) {
1169
+ switch (t === void 0 && (t = De), e.type) {
1163
1170
  case "Property":
1164
1171
  this.checkLValInnerPattern(e.value, t, i);
1165
1172
  break;
@@ -1173,21 +1180,21 @@ q.checkLValInnerPattern = function(e, t, i) {
1173
1180
  this.checkLValPattern(e, t, i);
1174
1181
  }
1175
1182
  };
1176
- var W = function(t, i, s, r, n) {
1183
+ var G = function(t, i, s, r, n) {
1177
1184
  this.token = t, this.isExpr = !!i, this.preserveSpace = !!s, this.override = r, this.generator = !!n;
1178
1185
  }, I = {
1179
- b_stat: new W("{", !1),
1180
- b_expr: new W("{", !0),
1181
- b_tmpl: new W("${", !1),
1182
- p_stat: new W("(", !1),
1183
- p_expr: new W("(", !0),
1184
- q_tmpl: new W("`", !0, !0, function(e) {
1186
+ b_stat: new G("{", !1),
1187
+ b_expr: new G("{", !0),
1188
+ b_tmpl: new G("${", !1),
1189
+ p_stat: new G("(", !1),
1190
+ p_expr: new G("(", !0),
1191
+ q_tmpl: new G("`", !0, !0, function(e) {
1185
1192
  return e.tryReadTemplateToken();
1186
1193
  }),
1187
- f_stat: new W("function", !1),
1188
- f_expr: new W("function", !0),
1189
- f_expr_gen: new W("function", !0, !1, null, !0),
1190
- f_gen: new W("function", !1, !1, null, !0)
1194
+ f_stat: new G("function", !1),
1195
+ f_expr: new G("function", !0),
1196
+ f_expr_gen: new G("function", !0, !1, null, !0),
1197
+ f_gen: new G("function", !1, !1, null, !0)
1191
1198
  }, xe = O.prototype;
1192
1199
  xe.initialContext = function() {
1193
1200
  return [I.b_stat];
@@ -1304,13 +1311,13 @@ v.parseMaybeAssign = function(e, t, i) {
1304
1311
  this.exprAllowed = !1;
1305
1312
  }
1306
1313
  var s = !1, r = -1, n = -1, o = -1;
1307
- t ? (r = t.parenthesizedAssign, n = t.trailingComma, o = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new ze(), s = !0);
1314
+ t ? (r = t.parenthesizedAssign, n = t.trailingComma, o = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new Je(), s = !0);
1308
1315
  var u = this.start, l = this.startLoc;
1309
1316
  (this.type === a.parenL || this.type === a.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
1310
1317
  var c = this.parseMaybeConditional(e, t);
1311
1318
  if (i && (c = i.call(this, c, u, l)), this.type.isAssign) {
1312
- var p = this.startNodeAt(u, l);
1313
- return p.operator = this.value, this.type === a.eq && (c = this.toAssignable(c, !1, t)), s || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= c.start && (t.shorthandAssign = -1), this.type === a.eq ? this.checkLValPattern(c) : this.checkLValSimple(c), p.left = c, this.next(), p.right = this.parseMaybeAssign(e), o > -1 && (t.doubleProto = o), this.finishNode(p, "AssignmentExpression");
1319
+ var h = this.startNodeAt(u, l);
1320
+ return h.operator = this.value, this.type === a.eq && (c = this.toAssignable(c, !1, t)), s || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= c.start && (t.shorthandAssign = -1), this.type === a.eq ? this.checkLValPattern(c) : this.checkLValSimple(c), h.left = c, this.next(), h.right = this.parseMaybeAssign(e), o > -1 && (t.doubleProto = o), this.finishNode(h, "AssignmentExpression");
1314
1321
  } else
1315
1322
  s && this.checkExpressionErrors(t, !0);
1316
1323
  return r > -1 && (t.parenthesizedAssign = r), n > -1 && (t.trailingComma = n), c;
@@ -1336,7 +1343,7 @@ v.parseExprOp = function(e, t, i, s, r) {
1336
1343
  u && (n = a.logicalAND.binop);
1337
1344
  var l = this.value;
1338
1345
  this.next();
1339
- var c = this.start, p = this.startLoc, f = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, r), c, p, n, r), d = this.buildBinary(t, i, e, f, l, o || u);
1346
+ var c = this.start, h = this.startLoc, p = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, r), c, h, n, r), d = this.buildBinary(t, i, e, p, l, o || u);
1340
1347
  return (o && this.type === a.coalesce || u && (this.type === a.logicalOR || this.type === a.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(d, t, i, s, r);
1341
1348
  }
1342
1349
  return e;
@@ -1352,7 +1359,7 @@ v.parseMaybeUnary = function(e, t, i, s) {
1352
1359
  o = this.parseAwait(s), t = !0;
1353
1360
  else if (this.type.prefix) {
1354
1361
  var u = this.startNode(), l = this.type === a.incDec;
1355
- u.operator = this.value, u.prefix = !0, this.next(), u.argument = this.parseMaybeUnary(null, !0, l, s), this.checkExpressionErrors(e, !0), l ? this.checkLValSimple(u.argument) : this.strict && u.operator === "delete" && oi(u.argument) ? this.raiseRecoverable(u.start, "Deleting local variable in strict mode") : u.operator === "delete" && ht(u.argument) ? this.raiseRecoverable(u.start, "Private fields can not be deleted") : t = !0, o = this.finishNode(u, l ? "UpdateExpression" : "UnaryExpression");
1362
+ u.operator = this.value, u.prefix = !0, this.next(), u.argument = this.parseMaybeUnary(null, !0, l, s), this.checkExpressionErrors(e, !0), l ? this.checkLValSimple(u.argument) : this.strict && u.operator === "delete" && oi(u.argument) ? this.raiseRecoverable(u.start, "Deleting local variable in strict mode") : u.operator === "delete" && pt(u.argument) ? this.raiseRecoverable(u.start, "Private fields can not be deleted") : t = !0, o = this.finishNode(u, l ? "UpdateExpression" : "UnaryExpression");
1356
1363
  } else if (!t && this.type === a.privateId)
1357
1364
  (s || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), o = this.parsePrivateIdent(), this.type !== a._in && this.unexpected();
1358
1365
  else {
@@ -1374,8 +1381,8 @@ v.parseMaybeUnary = function(e, t, i, s) {
1374
1381
  function oi(e) {
1375
1382
  return e.type === "Identifier" || e.type === "ParenthesizedExpression" && oi(e.expression);
1376
1383
  }
1377
- function ht(e) {
1378
- return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && ht(e.expression) || e.type === "ParenthesizedExpression" && ht(e.expression);
1384
+ function pt(e) {
1385
+ return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && pt(e.expression) || e.type === "ParenthesizedExpression" && pt(e.expression);
1379
1386
  }
1380
1387
  v.parseExprSubscripts = function(e, t) {
1381
1388
  var i = this.start, s = this.startLoc, r = this.parseExprAtom(e, t);
@@ -1408,17 +1415,17 @@ v.parseSubscript = function(e, t, i, s, r, n, o) {
1408
1415
  s && l && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
1409
1416
  var c = this.eat(a.bracketL);
1410
1417
  if (c || l && this.type !== a.parenL && this.type !== a.backQuote || this.eat(a.dot)) {
1411
- var p = this.startNodeAt(t, i);
1412
- p.object = e, c ? (p.property = this.parseExpression(), this.expect(a.bracketR)) : this.type === a.privateId && e.type !== "Super" ? p.property = this.parsePrivateIdent() : p.property = this.parseIdent(this.options.allowReserved !== "never"), p.computed = !!c, u && (p.optional = l), e = this.finishNode(p, "MemberExpression");
1418
+ var h = this.startNodeAt(t, i);
1419
+ h.object = e, c ? (h.property = this.parseExpression(), this.expect(a.bracketR)) : this.type === a.privateId && e.type !== "Super" ? h.property = this.parsePrivateIdent() : h.property = this.parseIdent(this.options.allowReserved !== "never"), h.computed = !!c, u && (h.optional = l), e = this.finishNode(h, "MemberExpression");
1413
1420
  } else if (!s && this.eat(a.parenL)) {
1414
- var f = new ze(), d = this.yieldPos, y = this.awaitPos, x = this.awaitIdentPos;
1421
+ var p = new Je(), d = this.yieldPos, b = this.awaitPos, x = this.awaitIdentPos;
1415
1422
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
1416
- var h = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, !1, f);
1423
+ var f = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, !1, p);
1417
1424
  if (r && !l && this.shouldParseAsyncArrow())
1418
- return this.checkPatternErrors(f, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = d, this.awaitPos = y, this.awaitIdentPos = x, this.parseSubscriptAsyncArrow(t, i, h, o);
1419
- this.checkExpressionErrors(f, !0), this.yieldPos = d || this.yieldPos, this.awaitPos = y || this.awaitPos, this.awaitIdentPos = x || this.awaitIdentPos;
1420
- var b = this.startNodeAt(t, i);
1421
- b.callee = e, b.arguments = h, u && (b.optional = l), e = this.finishNode(b, "CallExpression");
1425
+ return this.checkPatternErrors(p, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = d, this.awaitPos = b, this.awaitIdentPos = x, this.parseSubscriptAsyncArrow(t, i, f, o);
1426
+ this.checkExpressionErrors(p, !0), this.yieldPos = d || this.yieldPos, this.awaitPos = b || this.awaitPos, this.awaitIdentPos = x || this.awaitIdentPos;
1427
+ var y = this.startNodeAt(t, i);
1428
+ y.callee = e, y.arguments = f, u && (y.optional = l), e = this.finishNode(y, "CallExpression");
1422
1429
  } else if (this.type === a.backQuote) {
1423
1430
  (l || n) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
1424
1431
  var w = this.startNodeAt(t, i);
@@ -1456,8 +1463,8 @@ v.parseExprAtom = function(e, t, i) {
1456
1463
  case a._false:
1457
1464
  return s = this.startNode(), s.value = this.type === a._null ? null : this.type === a._true, s.raw = this.type.keyword, this.next(), this.finishNode(s, "Literal");
1458
1465
  case a.parenL:
1459
- var p = this.start, f = this.parseParenAndDistinguishExpression(r, t);
1460
- return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(f) && (e.parenthesizedAssign = p), e.parenthesizedBind < 0 && (e.parenthesizedBind = p)), f;
1466
+ var h = this.start, p = this.parseParenAndDistinguishExpression(r, t);
1467
+ return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(p) && (e.parenthesizedAssign = h), e.parenthesizedBind < 0 && (e.parenthesizedBind = h)), p;
1461
1468
  case a.bracketL:
1462
1469
  return s = this.startNode(), this.next(), s.elements = this.parseExprList(a.bracketR, !0, !0, e), this.finishNode(s, "ArrayExpression");
1463
1470
  case a.braceL:
@@ -1519,10 +1526,10 @@ v.parseParenAndDistinguishExpression = function(e, t) {
1519
1526
  var i = this.start, s = this.startLoc, r, n = this.options.ecmaVersion >= 8;
1520
1527
  if (this.options.ecmaVersion >= 6) {
1521
1528
  this.next();
1522
- var o = this.start, u = this.startLoc, l = [], c = !0, p = !1, f = new ze(), d = this.yieldPos, y = this.awaitPos, x;
1529
+ var o = this.start, u = this.startLoc, l = [], c = !0, h = !1, p = new Je(), d = this.yieldPos, b = this.awaitPos, x;
1523
1530
  for (this.yieldPos = 0, this.awaitPos = 0; this.type !== a.parenR; )
1524
1531
  if (c ? c = !1 : this.expect(a.comma), n && this.afterTrailingComma(a.parenR, !0)) {
1525
- p = !0;
1532
+ h = !0;
1526
1533
  break;
1527
1534
  } else if (this.type === a.ellipsis) {
1528
1535
  x = this.start, l.push(this.parseParenItem(this.parseRestBinding())), this.type === a.comma && this.raiseRecoverable(
@@ -1531,11 +1538,11 @@ v.parseParenAndDistinguishExpression = function(e, t) {
1531
1538
  );
1532
1539
  break;
1533
1540
  } else
1534
- l.push(this.parseMaybeAssign(!1, f, this.parseParenItem));
1535
- var h = this.lastTokEnd, b = this.lastTokEndLoc;
1541
+ l.push(this.parseMaybeAssign(!1, p, this.parseParenItem));
1542
+ var f = this.lastTokEnd, y = this.lastTokEndLoc;
1536
1543
  if (this.expect(a.parenR), e && this.shouldParseArrow(l) && this.eat(a.arrow))
1537
- return this.checkPatternErrors(f, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = d, this.awaitPos = y, this.parseParenArrowList(i, s, l, t);
1538
- (!l.length || p) && this.unexpected(this.lastTokStart), x && this.unexpected(x), this.checkExpressionErrors(f, !0), this.yieldPos = d || this.yieldPos, this.awaitPos = y || this.awaitPos, l.length > 1 ? (r = this.startNodeAt(o, u), r.expressions = l, this.finishNodeAt(r, "SequenceExpression", h, b)) : r = l[0];
1544
+ return this.checkPatternErrors(p, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = d, this.awaitPos = b, this.parseParenArrowList(i, s, l, t);
1545
+ (!l.length || h) && this.unexpected(this.lastTokStart), x && this.unexpected(x), this.checkExpressionErrors(p, !0), this.yieldPos = d || this.yieldPos, this.awaitPos = b || this.awaitPos, l.length > 1 ? (r = this.startNodeAt(o, u), r.expressions = l, this.finishNodeAt(r, "SequenceExpression", f, y)) : r = l[0];
1539
1546
  } else
1540
1547
  r = this.parseParenExpression();
1541
1548
  if (this.options.preserveParens) {
@@ -1550,7 +1557,7 @@ v.parseParenItem = function(e) {
1550
1557
  v.parseParenArrowList = function(e, t, i, s) {
1551
1558
  return this.parseArrowExpression(this.startNodeAt(e, t), i, !1, s);
1552
1559
  };
1553
- var xs = [];
1560
+ var _s = [];
1554
1561
  v.parseNew = function() {
1555
1562
  this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
1556
1563
  var e = this.startNode();
@@ -1561,7 +1568,7 @@ v.parseNew = function() {
1561
1568
  return e.property = this.parseIdent(!0), e.property.name !== "target" && this.raiseRecoverable(e.property.start, "The only valid meta property for new is 'new.target'"), i && this.raiseRecoverable(e.start, "'new.target' must not contain escaped characters"), this.allowNewDotTarget || this.raiseRecoverable(e.start, "'new.target' can only be used in functions and class static block"), this.finishNode(e, "MetaProperty");
1562
1569
  }
1563
1570
  var s = this.start, r = this.startLoc;
1564
- return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), s, r, !0, !1), this.eat(a.parenL) ? e.arguments = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments = xs, this.finishNode(e, "NewExpression");
1571
+ return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), s, r, !0, !1), this.eat(a.parenL) ? e.arguments = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments = _s, this.finishNode(e, "NewExpression");
1565
1572
  };
1566
1573
  v.parseTemplateElement = function(e) {
1567
1574
  var t = e.isTagged, i = this.startNode();
@@ -1635,11 +1642,11 @@ v.initFunction = function(e) {
1635
1642
  };
1636
1643
  v.parseMethod = function(e, t, i) {
1637
1644
  var s = this.startNode(), r = this.yieldPos, n = this.awaitPos, o = this.awaitIdentPos;
1638
- return this.initFunction(s), this.options.ecmaVersion >= 6 && (s.generator = e), this.options.ecmaVersion >= 8 && (s.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(xt(t, s.generator) | We | (i ? ii : 0)), this.expect(a.parenL), s.params = this.parseBindingList(a.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(s, !1, !0, !1), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = o, this.finishNode(s, "FunctionExpression");
1645
+ return this.initFunction(s), this.options.ecmaVersion >= 6 && (s.generator = e), this.options.ecmaVersion >= 8 && (s.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(kt(t, s.generator) | Ke | (i ? ii : 0)), this.expect(a.parenL), s.params = this.parseBindingList(a.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(s, !1, !0, !1), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = o, this.finishNode(s, "FunctionExpression");
1639
1646
  };
1640
1647
  v.parseArrowExpression = function(e, t, i, s) {
1641
1648
  var r = this.yieldPos, n = this.awaitPos, o = this.awaitIdentPos;
1642
- return this.enterScope(xt(i, !1) | bt), this.initFunction(e), this.options.ecmaVersion >= 8 && (e.async = !!i), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, e.params = this.toAssignableList(t, !0), this.parseFunctionBody(e, !0, !1, s), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = o, this.finishNode(e, "ArrowFunctionExpression");
1649
+ return this.enterScope(kt(i, !1) | _t), this.initFunction(e), this.options.ecmaVersion >= 8 && (e.async = !!i), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, e.params = this.toAssignableList(t, !0), this.parseFunctionBody(e, !0, !1, s), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = o, this.finishNode(e, "ArrowFunctionExpression");
1643
1650
  };
1644
1651
  v.parseFunctionBody = function(e, t, i, s) {
1645
1652
  var r = t && this.type !== a.braceL, n = this.strict, o = !1;
@@ -1664,7 +1671,7 @@ v.isSimpleParamList = function(e) {
1664
1671
  v.checkParams = function(e, t) {
1665
1672
  for (var i = /* @__PURE__ */ Object.create(null), s = 0, r = e.params; s < r.length; s += 1) {
1666
1673
  var n = r[s];
1667
- this.checkLValInnerPattern(n, vt, t ? null : i);
1674
+ this.checkLValInnerPattern(n, St, t ? null : i);
1668
1675
  }
1669
1676
  };
1670
1677
  v.parseExprList = function(e, t, i, s) {
@@ -1680,7 +1687,7 @@ v.parseExprList = function(e, t, i, s) {
1680
1687
  };
1681
1688
  v.checkUnreserved = function(e) {
1682
1689
  var t = e.start, i = e.end, s = e.name;
1683
- if (this.inGenerator && s === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && s === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags & Ke) && s === "arguments" && this.raiseRecoverable(t, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (s === "arguments" || s === "await") && this.raise(t, "Cannot use " + s + " in class static initialization block"), this.keywords.test(s) && this.raise(t, "Unexpected keyword '" + s + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(t, i).indexOf("\\") !== -1)) {
1690
+ if (this.inGenerator && s === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && s === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags & ze) && s === "arguments" && this.raiseRecoverable(t, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (s === "arguments" || s === "await") && this.raise(t, "Cannot use " + s + " in class static initialization block"), this.keywords.test(s) && this.raise(t, "Unexpected keyword '" + s + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(t, i).indexOf("\\") !== -1)) {
1684
1691
  var r = this.strict ? this.reservedWordsStrict : this.reservedWords;
1685
1692
  r.test(s) && (!this.inAsync && s === "await" && this.raiseRecoverable(t, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(t, "The keyword '" + s + "' is reserved"));
1686
1693
  }
@@ -1707,23 +1714,23 @@ v.parseAwait = function(e) {
1707
1714
  var t = this.startNode();
1708
1715
  return this.next(), t.argument = this.parseMaybeUnary(null, !0, !1, e), this.finishNode(t, "AwaitExpression");
1709
1716
  };
1710
- var Be = O.prototype;
1711
- Be.raise = function(e, t) {
1717
+ var Me = O.prototype;
1718
+ Me.raise = function(e, t) {
1712
1719
  var i = Zt(this.input, e);
1713
1720
  t += " (" + i.line + ":" + i.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
1714
1721
  var s = new SyntaxError(t);
1715
1722
  throw s.pos = e, s.loc = i, s.raisedAt = this.pos, s;
1716
1723
  };
1717
- Be.raiseRecoverable = Be.raise;
1718
- Be.curPosition = function() {
1724
+ Me.raiseRecoverable = Me.raise;
1725
+ Me.curPosition = function() {
1719
1726
  if (this.options.locations)
1720
1727
  return new Ce(this.curLine, this.pos - this.lineStart);
1721
1728
  };
1722
- var ne = O.prototype, vs = function(t) {
1729
+ var ne = O.prototype, ks = function(t) {
1723
1730
  this.flags = t, this.var = [], this.lexical = [], this.functions = [];
1724
1731
  };
1725
1732
  ne.enterScope = function(e) {
1726
- this.scopeStack.push(new vs(e));
1733
+ this.scopeStack.push(new ks(e));
1727
1734
  };
1728
1735
  ne.exitScope = function() {
1729
1736
  this.scopeStack.pop();
@@ -1733,7 +1740,7 @@ ne.treatFunctionsAsVarInScope = function(e) {
1733
1740
  };
1734
1741
  ne.declareName = function(e, t, i) {
1735
1742
  var s = !1;
1736
- if (t === te) {
1743
+ if (t === ie) {
1737
1744
  var r = this.currentScope();
1738
1745
  s = r.lexical.indexOf(e) > -1 || r.functions.indexOf(e) > -1 || r.var.indexOf(e) > -1, r.lexical.push(e), this.inModule && r.flags & Ae && delete this.undefinedExports[e];
1739
1746
  } else if (t === ri) {
@@ -1749,7 +1756,7 @@ ne.declareName = function(e, t, i) {
1749
1756
  s = !0;
1750
1757
  break;
1751
1758
  }
1752
- if (l.var.push(e), this.inModule && l.flags & Ae && delete this.undefinedExports[e], l.flags & Ke)
1759
+ if (l.var.push(e), this.inModule && l.flags & Ae && delete this.undefinedExports[e], l.flags & ze)
1753
1760
  break;
1754
1761
  }
1755
1762
  s && this.raiseRecoverable(i, "Identifier '" + e + "' has already been declared");
@@ -1763,90 +1770,90 @@ ne.currentScope = function() {
1763
1770
  ne.currentVarScope = function() {
1764
1771
  for (var e = this.scopeStack.length - 1; ; e--) {
1765
1772
  var t = this.scopeStack[e];
1766
- if (t.flags & (Ke | Ee | ce))
1773
+ if (t.flags & (ze | Pe | ce))
1767
1774
  return t;
1768
1775
  }
1769
1776
  };
1770
1777
  ne.currentThisScope = function() {
1771
1778
  for (var e = this.scopeStack.length - 1; ; e--) {
1772
1779
  var t = this.scopeStack[e];
1773
- if (t.flags & (Ke | Ee | ce) && !(t.flags & bt))
1780
+ if (t.flags & (ze | Pe | ce) && !(t.flags & _t))
1774
1781
  return t;
1775
1782
  }
1776
1783
  };
1777
- var Je = function(t, i, s) {
1784
+ var Qe = function(t, i, s) {
1778
1785
  this.type = "", this.start = i, this.end = 0, t.options.locations && (this.loc = new Ge(t, s)), t.options.directSourceFile && (this.sourceFile = t.options.directSourceFile), t.options.ranges && (this.range = [i, 0]);
1779
- }, Pe = O.prototype;
1780
- Pe.startNode = function() {
1781
- return new Je(this, this.start, this.startLoc);
1786
+ }, Ne = O.prototype;
1787
+ Ne.startNode = function() {
1788
+ return new Qe(this, this.start, this.startLoc);
1782
1789
  };
1783
- Pe.startNodeAt = function(e, t) {
1784
- return new Je(this, e, t);
1790
+ Ne.startNodeAt = function(e, t) {
1791
+ return new Qe(this, e, t);
1785
1792
  };
1786
1793
  function ui(e, t, i, s) {
1787
1794
  return e.type = t, e.end = i, this.options.locations && (e.loc.end = s), this.options.ranges && (e.range[1] = i), e;
1788
1795
  }
1789
- Pe.finishNode = function(e, t) {
1796
+ Ne.finishNode = function(e, t) {
1790
1797
  return ui.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
1791
1798
  };
1792
- Pe.finishNodeAt = function(e, t, i, s) {
1799
+ Ne.finishNodeAt = function(e, t, i, s) {
1793
1800
  return ui.call(this, e, t, i, s);
1794
1801
  };
1795
- Pe.copyNode = function(e) {
1796
- var t = new Je(this, e.start, this.startLoc);
1802
+ Ne.copyNode = function(e) {
1803
+ var t = new Qe(this, e.start, this.startLoc);
1797
1804
  for (var i in e)
1798
1805
  t[i] = e[i];
1799
1806
  return t;
1800
1807
  };
1801
- var _s = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz", li = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", ci = li + " Extended_Pictographic", hi = ci, fi = hi + " EBase EComp EMod EPres ExtPict", pi = fi, ks = pi, Ss = {
1808
+ var Ss = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz", li = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", ci = li + " Extended_Pictographic", hi = ci, fi = hi + " EBase EComp EMod EPres ExtPict", pi = fi, ws = pi, Cs = {
1802
1809
  9: li,
1803
1810
  10: ci,
1804
1811
  11: hi,
1805
1812
  12: fi,
1806
1813
  13: pi,
1807
- 14: ks
1808
- }, ws = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", Cs = {
1814
+ 14: ws
1815
+ }, As = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", Is = {
1809
1816
  9: "",
1810
1817
  10: "",
1811
1818
  11: "",
1812
1819
  12: "",
1813
1820
  13: "",
1814
- 14: ws
1815
- }, Bt = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", di = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", mi = di + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", gi = mi + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", yi = gi + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", bi = yi + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", As = bi + " " + _s, Is = {
1821
+ 14: As
1822
+ }, jt = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", di = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", mi = di + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", gi = mi + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", yi = gi + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", bi = yi + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", Es = bi + " " + Ss, Ps = {
1816
1823
  9: di,
1817
1824
  10: mi,
1818
1825
  11: gi,
1819
1826
  12: yi,
1820
1827
  13: bi,
1821
- 14: As
1828
+ 14: Es
1822
1829
  }, xi = {};
1823
- function Es(e) {
1830
+ function Ns(e) {
1824
1831
  var t = xi[e] = {
1825
- binary: ie(Ss[e] + " " + Bt),
1826
- binaryOfStrings: ie(Cs[e]),
1832
+ binary: se(Cs[e] + " " + jt),
1833
+ binaryOfStrings: se(Is[e]),
1827
1834
  nonBinary: {
1828
- General_Category: ie(Bt),
1829
- Script: ie(Is[e])
1835
+ General_Category: se(jt),
1836
+ Script: se(Ps[e])
1830
1837
  }
1831
1838
  };
1832
1839
  t.nonBinary.Script_Extensions = t.nonBinary.Script, t.nonBinary.gc = t.nonBinary.General_Category, t.nonBinary.sc = t.nonBinary.Script, t.nonBinary.scx = t.nonBinary.Script_Extensions;
1833
1840
  }
1834
- for (var st = 0, Mt = [9, 10, 11, 12, 13, 14]; st < Mt.length; st += 1) {
1835
- var Ps = Mt[st];
1836
- Es(Ps);
1841
+ for (var nt = 0, Ut = [9, 10, 11, 12, 13, 14]; nt < Ut.length; nt += 1) {
1842
+ var Ts = Ut[nt];
1843
+ Ns(Ts);
1837
1844
  }
1838
- var m = O.prototype, Me = function(t, i) {
1845
+ var m = O.prototype, je = function(t, i) {
1839
1846
  this.parent = t, this.base = i || this;
1840
1847
  };
1841
- Me.prototype.separatedFrom = function(t) {
1848
+ je.prototype.separatedFrom = function(t) {
1842
1849
  for (var i = this; i; i = i.parent)
1843
1850
  for (var s = t; s; s = s.parent)
1844
1851
  if (i.base === s.base && i !== s)
1845
1852
  return !0;
1846
1853
  return !1;
1847
1854
  };
1848
- Me.prototype.sibling = function() {
1849
- return new Me(this.parent, this.base);
1855
+ je.prototype.sibling = function() {
1856
+ return new je(this.parent, this.base);
1850
1857
  };
1851
1858
  var H = function(t) {
1852
1859
  this.parser = t, this.validFlags = "gim" + (t.options.ecmaVersion >= 6 ? "uy" : "") + (t.options.ecmaVersion >= 9 ? "s" : "") + (t.options.ecmaVersion >= 13 ? "d" : "") + (t.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = xi[t.options.ecmaVersion >= 14 ? 14 : t.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchV = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
@@ -1906,13 +1913,13 @@ m.validateRegExpFlags = function(e) {
1906
1913
  }
1907
1914
  this.options.ecmaVersion >= 15 && s && r && this.raise(e.start, "Invalid regular expression flag");
1908
1915
  };
1909
- function Ns(e) {
1916
+ function Os(e) {
1910
1917
  for (var t in e)
1911
1918
  return !0;
1912
1919
  return !1;
1913
1920
  }
1914
1921
  m.validateRegExpPattern = function(e) {
1915
- this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && Ns(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
1922
+ this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && Os(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
1916
1923
  };
1917
1924
  m.regexp_pattern = function(e) {
1918
1925
  e.pos = 0, e.lastIntValue = 0, e.lastStringValue = "", e.lastAssertionIsQuantifiable = !1, e.numCapturingParens = 0, e.maxBackReference = 0, e.groupNames = /* @__PURE__ */ Object.create(null), e.backReferenceNames.length = 0, e.branchID = null, this.regexp_disjunction(e), e.pos !== e.source.length && (e.eat(
@@ -1932,7 +1939,7 @@ m.regexp_pattern = function(e) {
1932
1939
  };
1933
1940
  m.regexp_disjunction = function(e) {
1934
1941
  var t = this.options.ecmaVersion >= 16;
1935
- for (t && (e.branchID = new Me(e.branchID, null)), this.regexp_alternative(e); e.eat(
1942
+ for (t && (e.branchID = new je(e.branchID, null)), this.regexp_alternative(e); e.eat(
1936
1943
  124
1937
1944
  /* | */
1938
1945
  ); )
@@ -2114,11 +2121,11 @@ m.regexp_eatCapturingGroup = function(e) {
2114
2121
  return !1;
2115
2122
  };
2116
2123
  m.regexp_eatModifiers = function(e) {
2117
- for (var t = "", i = 0; (i = e.current()) !== -1 && Ts(i); )
2124
+ for (var t = "", i = 0; (i = e.current()) !== -1 && Vs(i); )
2118
2125
  t += Z(i), e.advance();
2119
2126
  return t;
2120
2127
  };
2121
- function Ts(e) {
2128
+ function Vs(e) {
2122
2129
  return e === 105 || e === 109 || e === 115;
2123
2130
  }
2124
2131
  m.regexp_eatExtendedAtom = function(e) {
@@ -2188,17 +2195,17 @@ m.regexp_eatRegExpIdentifierName = function(e) {
2188
2195
  };
2189
2196
  m.regexp_eatRegExpIdentifierStart = function(e) {
2190
2197
  var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
2191
- return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), Os(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
2198
+ return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), Ls(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
2192
2199
  };
2193
- function Os(e) {
2200
+ function Ls(e) {
2194
2201
  return J(e, !0) || e === 36 || e === 95;
2195
2202
  }
2196
2203
  m.regexp_eatRegExpIdentifierPart = function(e) {
2197
2204
  var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
2198
- return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), Vs(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
2205
+ return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), Rs(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
2199
2206
  };
2200
- function Vs(e) {
2201
- return se(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
2207
+ function Rs(e) {
2208
+ return re(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
2202
2209
  }
2203
2210
  m.regexp_eatAtomEscape = function(e) {
2204
2211
  return this.regexp_eatBackReference(e) || this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e) || e.switchN && this.regexp_eatKGroupName(e) ? !0 : (e.switchU && (e.current() === 99 && e.raise("Invalid unicode escape"), e.raise("Invalid escape")), !1);
@@ -2242,7 +2249,7 @@ m.regexp_eatCControlLetter = function(e) {
2242
2249
  return !1;
2243
2250
  };
2244
2251
  m.regexp_eatZero = function(e) {
2245
- return e.current() === 48 && !Qe(e.lookahead()) ? (e.lastIntValue = 0, e.advance(), !0) : !1;
2252
+ return e.current() === 48 && !He(e.lookahead()) ? (e.lastIntValue = 0, e.advance(), !0) : !1;
2246
2253
  };
2247
2254
  m.regexp_eatControlEscape = function(e) {
2248
2255
  var t = e.current();
@@ -2287,13 +2294,13 @@ m.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
2287
2294
  ) && this.regexp_eatHexDigits(e) && e.eat(
2288
2295
  125
2289
2296
  /* } */
2290
- ) && Ls(e.lastIntValue))
2297
+ ) && Fs(e.lastIntValue))
2291
2298
  return !0;
2292
2299
  s && e.raise("Invalid unicode escape"), e.pos = i;
2293
2300
  }
2294
2301
  return !1;
2295
2302
  };
2296
- function Ls(e) {
2303
+ function Fs(e) {
2297
2304
  return e >= 0 && e <= 1114111;
2298
2305
  }
2299
2306
  m.regexp_eatIdentityEscape = function(e) {
@@ -2319,7 +2326,7 @@ m.regexp_eatDecimalEscape = function(e) {
2319
2326
  var ki = 0, ee = 1, $ = 2;
2320
2327
  m.regexp_eatCharacterClassEscape = function(e) {
2321
2328
  var t = e.current();
2322
- if (Rs(t))
2329
+ if (Ds(t))
2323
2330
  return e.lastIntValue = -1, e.advance(), ee;
2324
2331
  var i = !1;
2325
2332
  if (e.switchU && this.options.ecmaVersion >= 9 && ((i = t === 80) || t === 112)) {
@@ -2337,7 +2344,7 @@ m.regexp_eatCharacterClassEscape = function(e) {
2337
2344
  }
2338
2345
  return ki;
2339
2346
  };
2340
- function Rs(e) {
2347
+ function Ds(e) {
2341
2348
  return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
2342
2349
  }
2343
2350
  m.regexp_eatUnicodePropertyValueExpression = function(e) {
@@ -2379,12 +2386,12 @@ function Si(e) {
2379
2386
  }
2380
2387
  m.regexp_eatUnicodePropertyValue = function(e) {
2381
2388
  var t = 0;
2382
- for (e.lastStringValue = ""; Fs(t = e.current()); )
2389
+ for (e.lastStringValue = ""; Bs(t = e.current()); )
2383
2390
  e.lastStringValue += Z(t), e.advance();
2384
2391
  return e.lastStringValue !== "";
2385
2392
  };
2386
- function Fs(e) {
2387
- return Si(e) || Qe(e);
2393
+ function Bs(e) {
2394
+ return Si(e) || He(e);
2388
2395
  }
2389
2396
  m.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2390
2397
  return this.regexp_eatUnicodePropertyValue(e);
@@ -2583,24 +2590,24 @@ m.regexp_eatClassSetCharacter = function(e) {
2583
2590
  /* b */
2584
2591
  ) ? (e.lastIntValue = 8, !0) : (e.pos = t, !1);
2585
2592
  var i = e.current();
2586
- return i < 0 || i === e.lookahead() && Ds(i) || Bs(i) ? !1 : (e.advance(), e.lastIntValue = i, !0);
2593
+ return i < 0 || i === e.lookahead() && Ms(i) || js(i) ? !1 : (e.advance(), e.lastIntValue = i, !0);
2587
2594
  };
2588
- function Ds(e) {
2595
+ function Ms(e) {
2589
2596
  return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126;
2590
2597
  }
2591
- function Bs(e) {
2598
+ function js(e) {
2592
2599
  return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
2593
2600
  }
2594
2601
  m.regexp_eatClassSetReservedPunctuator = function(e) {
2595
2602
  var t = e.current();
2596
- return Ms(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2603
+ return Us(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2597
2604
  };
2598
- function Ms(e) {
2605
+ function Us(e) {
2599
2606
  return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
2600
2607
  }
2601
2608
  m.regexp_eatClassControlLetter = function(e) {
2602
2609
  var t = e.current();
2603
- return Qe(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2610
+ return He(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2604
2611
  };
2605
2612
  m.regexp_eatHexEscapeSequence = function(e) {
2606
2613
  var t = e.pos;
@@ -2616,11 +2623,11 @@ m.regexp_eatHexEscapeSequence = function(e) {
2616
2623
  };
2617
2624
  m.regexp_eatDecimalDigits = function(e) {
2618
2625
  var t = e.pos, i = 0;
2619
- for (e.lastIntValue = 0; Qe(i = e.current()); )
2626
+ for (e.lastIntValue = 0; He(i = e.current()); )
2620
2627
  e.lastIntValue = 10 * e.lastIntValue + (i - 48), e.advance();
2621
2628
  return e.pos !== t;
2622
2629
  };
2623
- function Qe(e) {
2630
+ function He(e) {
2624
2631
  return e >= 48 && e <= 57;
2625
2632
  }
2626
2633
  m.regexp_eatHexDigits = function(e) {
@@ -2665,14 +2672,14 @@ m.regexp_eatFixedHexDigits = function(e, t) {
2665
2672
  }
2666
2673
  return !0;
2667
2674
  };
2668
- var kt = function(t) {
2675
+ var Ct = function(t) {
2669
2676
  this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new Ge(t, t.startLoc, t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
2670
2677
  }, _ = O.prototype;
2671
2678
  _.next = function(e) {
2672
- !e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new kt(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
2679
+ !e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Ct(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
2673
2680
  };
2674
2681
  _.getToken = function() {
2675
- return this.next(), new kt(this);
2682
+ return this.next(), new Ct(this);
2676
2683
  };
2677
2684
  typeof Symbol < "u" && (_[Symbol.iterator] = function() {
2678
2685
  var e = this;
@@ -2962,18 +2969,18 @@ _.readRegexp = function() {
2962
2969
  };
2963
2970
  _.readInt = function(e, t, i) {
2964
2971
  for (var s = this.options.ecmaVersion >= 12 && t === void 0, r = i && this.input.charCodeAt(this.pos) === 48, n = this.pos, o = 0, u = 0, l = 0, c = t ?? 1 / 0; l < c; ++l, ++this.pos) {
2965
- var p = this.input.charCodeAt(this.pos), f = void 0;
2966
- if (s && p === 95) {
2967
- r && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), u === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), l === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), u = p;
2972
+ var h = this.input.charCodeAt(this.pos), p = void 0;
2973
+ if (s && h === 95) {
2974
+ r && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), u === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), l === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), u = h;
2968
2975
  continue;
2969
2976
  }
2970
- if (p >= 97 ? f = p - 97 + 10 : p >= 65 ? f = p - 65 + 10 : p >= 48 && p <= 57 ? f = p - 48 : f = 1 / 0, f >= e)
2977
+ if (h >= 97 ? p = h - 97 + 10 : h >= 65 ? p = h - 65 + 10 : h >= 48 && h <= 57 ? p = h - 48 : p = 1 / 0, p >= e)
2971
2978
  break;
2972
- u = p, o = o * e + f;
2979
+ u = h, o = o * e + p;
2973
2980
  }
2974
2981
  return s && u === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === n || t != null && this.pos - n !== t ? null : o;
2975
2982
  };
2976
- function js(e, t) {
2983
+ function $s(e, t) {
2977
2984
  return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
2978
2985
  }
2979
2986
  function Ii(e) {
@@ -2996,7 +3003,7 @@ _.readNumber = function(e) {
2996
3003
  return ++this.pos, J(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, r);
2997
3004
  }
2998
3005
  i && /[89]/.test(this.input.slice(t, this.pos)) && (i = !1), s === 46 && !i && (++this.pos, this.readInt(10), s = this.input.charCodeAt(this.pos)), (s === 69 || s === 101) && !i && (s = this.input.charCodeAt(++this.pos), (s === 43 || s === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), J(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
2999
- var n = js(this.input.slice(t, this.pos), i);
3006
+ var n = $s(this.input.slice(t, this.pos), i);
3000
3007
  return this.finishToken(a.num, n);
3001
3008
  };
3002
3009
  _.readCodePoint = function() {
@@ -3151,14 +3158,14 @@ _.readWord1 = function() {
3151
3158
  this.containsEsc = !1;
3152
3159
  for (var e = "", t = !0, i = this.pos, s = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
3153
3160
  var r = this.fullCharCodeAtPos();
3154
- if (se(r, s))
3161
+ if (re(r, s))
3155
3162
  this.pos += r <= 65535 ? 1 : 2;
3156
3163
  else if (r === 92) {
3157
3164
  this.containsEsc = !0, e += this.input.slice(i, this.pos);
3158
3165
  var n = this.pos;
3159
3166
  this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
3160
3167
  var o = this.readCodePoint();
3161
- (t ? J : se)(o, s) || this.invalidStringToken(n, "Invalid Unicode escape"), e += Z(o), i = this.pos;
3168
+ (t ? J : re)(o, s) || this.invalidStringToken(n, "Invalid Unicode escape"), e += Z(o), i = this.pos;
3162
3169
  } else
3163
3170
  break;
3164
3171
  t = !1;
@@ -3167,84 +3174,84 @@ _.readWord1 = function() {
3167
3174
  };
3168
3175
  _.readWord = function() {
3169
3176
  var e = this.readWord1(), t = a.name;
3170
- return this.keywords.test(e) && (t = gt[e]), this.finishToken(t, e);
3177
+ return this.keywords.test(e) && (t = xt[e]), this.finishToken(t, e);
3171
3178
  };
3172
- var Us = "8.15.0";
3179
+ var qs = "8.15.0";
3173
3180
  O.acorn = {
3174
3181
  Parser: O,
3175
- version: Us,
3176
- defaultOptions: lt,
3182
+ version: qs,
3183
+ defaultOptions: ht,
3177
3184
  Position: Ce,
3178
3185
  SourceLocation: Ge,
3179
3186
  getLineInfo: Zt,
3180
- Node: Je,
3187
+ Node: Qe,
3181
3188
  TokenType: S,
3182
3189
  tokTypes: a,
3183
- keywordTypes: gt,
3184
- TokContext: W,
3190
+ keywordTypes: xt,
3191
+ TokContext: G,
3185
3192
  tokContexts: I,
3186
- isIdentifierChar: se,
3193
+ isIdentifierChar: re,
3187
3194
  isIdentifierStart: J,
3188
- Token: kt,
3195
+ Token: Ct,
3189
3196
  isNewLine: ge,
3190
3197
  lineBreak: B,
3191
- lineBreakG: ls,
3198
+ lineBreakG: hs,
3192
3199
  nonASCIIwhitespace: Xt
3193
3200
  };
3194
- function re(e) {
3195
- const t = [];
3196
- let i = "", s = null, r = !1, n = 0, o = 0, u = 0;
3197
- for (const c of e) {
3198
- if (r) {
3199
- i += c, r = !1;
3201
+ function te(e, t = ",") {
3202
+ const i = [];
3203
+ let s = "", r = null, n = !1, o = 0, u = 0, l = 0;
3204
+ for (const h of e) {
3205
+ if (n) {
3206
+ s += h, n = !1;
3200
3207
  continue;
3201
3208
  }
3202
- if (s) {
3203
- i += c, c === "\\" ? r = !0 : c === s && (s = null);
3209
+ if (r) {
3210
+ s += h, h === "\\" ? n = !0 : h === r && (r = null);
3204
3211
  continue;
3205
3212
  }
3206
- if (c === '"' || c === "'") {
3207
- s = c, i += c;
3213
+ if (h === '"' || h === "'") {
3214
+ r = h, s += h;
3208
3215
  continue;
3209
3216
  }
3210
- if (c === "(") {
3211
- n += 1, i += c;
3217
+ if (h === "(") {
3218
+ o += 1, s += h;
3212
3219
  continue;
3213
3220
  }
3214
- if (c === ")") {
3215
- n = Math.max(0, n - 1), i += c;
3221
+ if (h === ")") {
3222
+ o = Math.max(0, o - 1), s += h;
3216
3223
  continue;
3217
3224
  }
3218
- if (c === "[") {
3219
- o += 1, i += c;
3225
+ if (h === "[") {
3226
+ u += 1, s += h;
3220
3227
  continue;
3221
3228
  }
3222
- if (c === "]") {
3223
- o = Math.max(0, o - 1), i += c;
3229
+ if (h === "]") {
3230
+ u = Math.max(0, u - 1), s += h;
3224
3231
  continue;
3225
3232
  }
3226
- if (c === "{") {
3227
- u += 1, i += c;
3233
+ if (h === "{") {
3234
+ l += 1, s += h;
3228
3235
  continue;
3229
3236
  }
3230
- if (c === "}") {
3231
- u = Math.max(0, u - 1), i += c;
3237
+ if (h === "}") {
3238
+ l = Math.max(0, l - 1), s += h;
3232
3239
  continue;
3233
3240
  }
3234
- if (c === "," && n === 0 && o === 0 && u === 0) {
3235
- const p = i.trim();
3236
- p && t.push(p), i = "";
3241
+ if (h === t && o === 0 && u === 0 && l === 0) {
3242
+ const p = s.trim();
3243
+ p && i.push(p), s = "";
3237
3244
  continue;
3238
3245
  }
3239
- i += c;
3246
+ s += h;
3240
3247
  }
3241
- const l = i.trim();
3242
- return l && t.push(l), t;
3248
+ const c = s.trim();
3249
+ return c && i.push(c), i;
3243
3250
  }
3244
- function $s(e, t) {
3251
+ function Ws(e, t) {
3245
3252
  return e.replace(/\\\\/g, "\\").replace(t === '"' ? /\\"/g : /\\'/g, t);
3246
3253
  }
3247
- function St(e) {
3254
+ function Xe(e) {
3248
3255
  const t = e.trim();
3249
3256
  if (!t)
3250
3257
  return "";
@@ -3253,48 +3260,48 @@ function St(e) {
3253
3260
  return i[2];
3254
3261
  if (t.startsWith('"') && t.endsWith('"') || t.startsWith("'") && t.endsWith("'")) {
3255
3262
  const s = t[0];
3256
- return $s(t.slice(1, -1), s);
3263
+ return Ws(t.slice(1, -1), s);
3257
3264
  }
3258
3265
  if (t.startsWith("[") && t.endsWith("]")) {
3259
3266
  const s = t.slice(1, -1).trim();
3260
- return s ? re(s).map(St) : [];
3267
+ return s ? te(s).map(Xe) : [];
3261
3268
  }
3262
3269
  return t === "True" || t === "true" ? !0 : t === "False" || t === "false" ? !1 : t === "None" || t === "null" ? null : /^-?\d+$/.test(t) ? Number.parseInt(t, 10) : /^-?(?:\d+\.\d*|\.\d+)(?:[eE][+-]?\d+)?$/.test(t) || /^-?\d+[eE][+-]?\d+$/.test(t) ? Number.parseFloat(t) : t;
3263
3270
  }
3264
- function je(e) {
3271
+ function Ue(e) {
3265
3272
  const t = {};
3266
- for (const i of re(e)) {
3273
+ for (const i of te(e)) {
3267
3274
  const s = i.match(/^(\w+)\s*=\s*([\s\S]+)$/);
3268
- s && (t[s[1]] = St(s[2]));
3275
+ s && (t[s[1]] = Xe(s[2]));
3269
3276
  }
3270
3277
  return t;
3271
3278
  }
3272
- function qs(e) {
3279
+ function Gs(e) {
3273
3280
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null;
3274
3281
  }
3275
3282
  function Pi(e) {
3276
- return Array.isArray(e) ? e.filter(qs) : [];
3283
+ return Array.isArray(e) ? e.filter(Gs) : [];
3277
3284
  }
3278
- function Gs(e) {
3279
- const t = mt(e).match(/^(?:(?:typing|typing_extensions)\.)?Literal\s*\[([\s\S]*)\]$/);
3285
+ function Ks(e) {
3286
+ const t = Ee(e).match(/^(?:(?:typing|typing_extensions)\.)?Literal\s*\[([\s\S]*)\]$/);
3280
3287
  return t ? Pi(
3281
- re(t[1]).map(St)
3288
+ te(t[1]).map(Xe)
3282
3289
  ) : [];
3283
3290
  }
3284
3291
  function Ni(e, t) {
3285
3292
  const i = Pi(t?.enum);
3286
3293
  if (i.length > 0)
3287
3294
  return i;
3288
- const s = Gs(e);
3289
- return s.length > 0 ? s : is(e);
3295
+ const s = Ks(e);
3296
+ return s.length > 0 ? s : rs(e);
3290
3297
  }
3291
- function Ar(e) {
3292
- const t = mt(e), i = t.match(/^(?:(?:typing|typing_extensions)\.)?(?:list|List)\s*\[/);
3298
+ function Ir(e) {
3299
+ const t = Ee(e), i = t.match(/^(?:(?:typing|typing_extensions)\.)?(?:list|List)\s*\[/);
3293
3300
  if (!i) return [];
3294
3301
  const s = i[0].length - 1;
3295
3302
  return Ti(t, s) !== t.length - 1 ? [] : Ni(t.slice(s + 1, -1));
3296
3303
  }
3297
- function rt(e) {
3304
+ function at(e) {
3298
3305
  const t = Ni(e.type, e.kwargs);
3299
3306
  return t.length > 0 && (e.enum = t), e;
3300
3307
  }
@@ -3323,57 +3330,57 @@ function Ti(e, t) {
3323
3330
  }
3324
3331
  return -1;
3325
3332
  }
3326
- const nt = /(\d+(?:\.\d+)?)\s*(ms|s|m|h|d)/gi, Ws = /* @__PURE__ */ new Set(["elapsed", "countdown", "both"]), Ks = /* @__PURE__ */ new Set(["int", "integer", "float", "number"]), zs = ["gt", "ge", "lt", "le", "multiple_of"];
3327
- function Js(e) {
3328
- return e !== void 0 && Ks.has(e.toLowerCase());
3333
+ const ot = /(\d+(?:\.\d+)?)\s*(ms|s|m|h|d)/gi, zs = /* @__PURE__ */ new Set(["elapsed", "countdown", "both"]), Js = /* @__PURE__ */ new Set(["int", "integer", "float", "number"]), Qs = ["gt", "ge", "lt", "le", "multiple_of"];
3334
+ function Hs(e) {
3335
+ return Js.has(Ee(e).toLowerCase());
3329
3336
  }
3330
- function Qs(e) {
3337
+ function Xs(e) {
3331
3338
  if (typeof e != "string")
3332
3339
  return;
3333
3340
  const t = e.trim();
3334
3341
  if (!t)
3335
3342
  return;
3336
- nt.lastIndex = 0;
3337
- let i = 0, s = 0, r = !1, n = nt.exec(t);
3343
+ ot.lastIndex = 0;
3344
+ let i = 0, s = 0, r = !1, n = ot.exec(t);
3338
3345
  for (; n !== null; ) {
3339
3346
  if (t.slice(s, n.index).trim())
3340
3347
  return;
3341
3348
  r = !0;
3342
3349
  const o = Number.parseFloat(n[1]), u = n[2].toLowerCase(), l = u === "d" ? 1440 * 60 * 1e3 : u === "h" ? 3600 * 1e3 : u === "m" ? 60 * 1e3 : u === "s" ? 1e3 : 1;
3343
- i += o * l, s = n.index + n[0].length, n = nt.exec(t);
3350
+ i += o * l, s = n.index + n[0].length, n = ot.exec(t);
3344
3351
  }
3345
3352
  if (!(!r || t.slice(s).trim()))
3346
3353
  return Math.round(i);
3347
3354
  }
3348
- function Hs(e) {
3355
+ function Ys(e) {
3349
3356
  if ("duration" in e) {
3350
- const t = Qs(e.duration);
3357
+ const t = Xs(e.duration);
3351
3358
  if (t !== void 0)
3352
3359
  return t;
3353
3360
  }
3354
3361
  }
3355
- function Xs(e) {
3362
+ function Zs(e) {
3356
3363
  if (typeof e != "string")
3357
3364
  return;
3358
3365
  const t = e.trim().toLowerCase();
3359
- if (Ws.has(t))
3366
+ if (zs.has(t))
3360
3367
  return t;
3361
3368
  }
3362
- function Ir(e) {
3363
- const t = e.trim(), i = re(t), s = i[0].trim();
3369
+ function Er(e) {
3370
+ const t = e.trim(), i = te(t), s = i[0].trim();
3364
3371
  let r = 1, n = !1, o, u, l, c = !1;
3365
- for (let y = 1; y < i.length; y++) {
3366
- const x = i[y].trim();
3372
+ for (let b = 1; b < i.length; b++) {
3373
+ const x = i[b].trim();
3367
3374
  if (/^\d+$/.test(x)) {
3368
3375
  r = Number.parseInt(x, 10);
3369
3376
  continue;
3370
3377
  }
3371
- const h = je(x);
3372
- "check" in h && (n = !!h.check), /^title\s*=/.test(x) && (o = Oi(x, "Step")), "subtitle" in h && (u = String(h.subtitle)), "checked_message" in h && (l = String(h.checked_message)), "result" in h && (c = !!h.result), "level" in h && (r = Number(h.level));
3378
+ const f = Ue(x);
3379
+ "check" in f && (n = !!f.check), /^title\s*=/.test(x) && (o = Oi(x, "Step")), "subtitle" in f && (u = String(f.subtitle)), "checked_message" in f && (l = String(f.checked_message)), "result" in f && (c = !!f.result), "level" in f && (r = Number(f.level));
3373
3380
  }
3374
3381
  r = Math.max(1, Math.min(3, r));
3375
- const p = je(t), f = Hs(p), d = Xs(p.timer);
3376
- return { id: s, level: r, check: n, title: o, subtitle: u, checked_message: l, estimated_duration_ms: f, timer_mode: d, result: c, props: p };
3382
+ const h = Ue(t), p = Ys(h), d = Zs(h.timer);
3383
+ return { id: s, level: r, check: n, title: o, subtitle: u, checked_message: l, estimated_duration_ms: p, timer_mode: d, result: c, props: h };
3377
3384
  }
3378
3385
  function Oi(e, t) {
3379
3386
  const i = e.slice(e.indexOf("=") + 1).trim();
@@ -3382,17 +3389,17 @@ function Oi(e, t) {
3382
3389
  return (i.startsWith('"') ? JSON.parse(i) : i.slice(1, -1).replace(/\\(\\|'|"|n|r|t)/g, (s, r) => ({ n: `
3383
3390
  `, r: "\r", t: " " })[r] ?? r)).trim() || void 0;
3384
3391
  }
3385
- function Er(e) {
3386
- const t = e.trim(), i = re(t), s = i[0].trim();
3392
+ function Pr(e) {
3393
+ const t = e.trim(), i = te(t), s = i[0].trim();
3387
3394
  let r, n;
3388
3395
  for (let o = 1; o < i.length; o++) {
3389
3396
  /^title\s*=/.test(i[o].trim()) && (n = Oi(i[o], "Checkpoint"));
3390
- const u = je(i[o]);
3397
+ const u = Ue(i[o]);
3391
3398
  "checked_message" in u && (r = String(u.checked_message));
3392
3399
  }
3393
3400
  return { id: s, ...n ? { title: n } : {}, checked_message: r, label: n ?? s };
3394
3401
  }
3395
- function Pr(e) {
3402
+ function Nr(e) {
3396
3403
  const t = e.trim(), i = t.indexOf("subvars");
3397
3404
  let s, r;
3398
3405
  if (i !== -1) {
@@ -3403,45 +3410,45 @@ function Pr(e) {
3403
3410
  }
3404
3411
  }
3405
3412
  if (s) {
3406
- const u = re(s);
3413
+ const u = te(s);
3407
3414
  r = {};
3408
3415
  for (const l of u)
3409
3416
  if (/^var\s*\(/.test(l) || /^[A-Za-z_]\w*\s*[:=]/.test(l)) {
3410
- const c = jt(l);
3417
+ const c = $t(l);
3411
3418
  r[c.id] = c;
3412
3419
  } else
3413
3420
  r[l] = { id: l };
3414
3421
  }
3415
- const n = re(t).filter((u) => !/^subvars\s*=/.test(u)).join(", "), o = jt(n);
3422
+ const n = te(t).filter((u) => !/^subvars\s*=/.test(u)).join(", "), o = $t(n);
3416
3423
  return r ? {
3417
3424
  ...o,
3418
3425
  subvars: r
3419
3426
  } : o;
3420
3427
  }
3421
- function jt(e) {
3428
+ function $t(e) {
3422
3429
  let t = e.trim();
3423
3430
  t.startsWith("var(") && t.endsWith(")") ? t = t.slice(4, -1).trim() : t.startsWith("var (") && t.endsWith(")") && (t = t.slice(5, -1).trim());
3424
- const i = re(t), s = (i[0] || "").trim(), r = i.slice(1).filter((x) => /^\w+\s*=/.test(x)), n = je(r.join(", "));
3431
+ const i = te(t), s = (i[0] || "").trim(), r = i.slice(1).filter((f) => /^\w+\s*=/.test(f)), n = Ue(r.join(", "));
3425
3432
  if (!s.includes(":")) {
3426
- const x = s.indexOf("=");
3427
- if (x > 0) {
3428
- const b = s.slice(x + 1).trim(), w = {
3429
- id: s.slice(0, x).trim(),
3430
- default: Ut(b),
3431
- defaultRaw: b
3433
+ const f = s.indexOf("=");
3434
+ if (f > 0) {
3435
+ const w = s.slice(f + 1).trim(), C = {
3436
+ id: s.slice(0, f).trim(),
3437
+ default: qt(w),
3438
+ defaultRaw: w
3432
3439
  };
3433
- return Object.keys(n).length > 0 && (w.kwargs = n), rt(w);
3440
+ return Object.keys(n).length > 0 && (C.kwargs = n), at(C);
3434
3441
  }
3435
- const h = { id: s.split(/\s/)[0].trim() };
3436
- return Object.keys(n).length > 0 && (h.kwargs = n), rt(h);
3442
+ const y = { id: s.split(/\s/)[0].trim() };
3443
+ return Object.keys(n).length > 0 && (y.kwargs = n), at(y);
3437
3444
  }
3438
- const o = s.indexOf(":"), u = s.slice(0, o).trim(), l = s.slice(o + 1).trim(), c = l.indexOf("=");
3439
- let p, f, d;
3440
- c > 0 ? (p = l.slice(0, c).trim(), d = l.slice(c + 1).trim(), f = Ut(d)) : p = l.trim();
3441
- const y = { id: u, type: p };
3442
- return f !== void 0 && (y.default = f, y.defaultRaw = d), Object.keys(n).length > 0 && (y.kwargs = n), rt(y);
3445
+ const o = s.indexOf(":"), u = s.slice(0, o).trim(), l = s.slice(o + 1).trim(), [c, ...h] = te(l, "=");
3446
+ let p, d, b;
3447
+ h.length > 0 ? (p = c, b = h.join("="), d = qt(b)) : p = l.trim();
3448
+ const x = { id: u, type: p };
3449
+ return d !== void 0 && (x.default = d, x.defaultRaw = b), Object.keys(n).length > 0 && (x.kwargs = n), at(x);
3443
3450
  }
3444
- function Ut(e) {
3451
+ function qt(e) {
3445
3452
  const t = e.trim();
3446
3453
  if (t === "true" || t === "True")
3447
3454
  return !0;
@@ -3453,19 +3460,26 @@ function Ut(e) {
3453
3460
  return Number.parseInt(t, 10);
3454
3461
  if (/^-?\d+\.\d+$/.test(t))
3455
3462
  return Number.parseFloat(t);
3456
- if (t.startsWith('"') && t.endsWith('"') || t.startsWith("'") && t.endsWith("'"))
3463
+ if (t.startsWith('"') && t.endsWith('"') || t.startsWith("'") && t.endsWith("'")) {
3464
+ if (t.startsWith('"'))
3465
+ try {
3466
+ return JSON.parse(t);
3467
+ } catch {
3468
+ }
3457
3469
  return t.slice(1, -1);
3470
+ }
3458
3471
  if (t.startsWith("[") && t.endsWith("]") || t.startsWith("{") && t.endsWith("}"))
3459
3472
  try {
3460
3473
  return JSON.parse(t);
3461
3474
  } catch {
3475
+ if (t.startsWith("[")) return Xe(t);
3462
3476
  }
3463
3477
  return t;
3464
3478
  }
3465
- function Ys(e) {
3479
+ function er(e) {
3466
3480
  if (e.type === void 0 || e.default === void 0 || e.default === null)
3467
3481
  return [];
3468
- const t = [], i = e.type.toLowerCase(), s = e.default;
3482
+ const t = [], i = Ee(e.type).toLowerCase(), s = e.default;
3469
3483
  switch (i) {
3470
3484
  case "int":
3471
3485
  case "integer":
@@ -3493,10 +3507,10 @@ function Ys(e) {
3493
3507
  function Vi(e) {
3494
3508
  const t = [], i = e.kwargs, s = e.type?.toLowerCase();
3495
3509
  if (i) {
3496
- const r = zs.filter(
3510
+ const r = Qs.filter(
3497
3511
  (n) => Object.prototype.hasOwnProperty.call(i, n)
3498
3512
  );
3499
- if (r.length > 0 && !Js(s)) {
3513
+ if (r.length > 0 && !Hs(s)) {
3500
3514
  const n = s ?? "untyped";
3501
3515
  t.push(
3502
3516
  `"${e.id}": numeric constraints (${r.join(", ")}) only apply to int/integer/float/number variables, not ${n}`
@@ -3513,19 +3527,19 @@ function Vi(e) {
3513
3527
  return t;
3514
3528
  }
3515
3529
  function Li(e) {
3516
- const t = Ys(e);
3530
+ const t = er(e);
3517
3531
  if (e.subvars)
3518
3532
  for (const i of Object.values(e.subvars))
3519
3533
  t.push(...Li(i));
3520
3534
  return t;
3521
3535
  }
3522
- function Nr(e) {
3536
+ function Tr(e) {
3523
3537
  return [
3524
3538
  ...Li(e),
3525
3539
  ...Vi(e)
3526
3540
  ];
3527
3541
  }
3528
- function $t(e) {
3542
+ function Wt(e) {
3529
3543
  const t = e.trim();
3530
3544
  if (t.length >= 2) {
3531
3545
  const i = t[0];
@@ -3538,7 +3552,7 @@ function $t(e) {
3538
3552
  }
3539
3553
  return t;
3540
3554
  }
3541
- function Zs(e) {
3555
+ function tr(e) {
3542
3556
  const t = e.split(`
3543
3557
  `), i = {};
3544
3558
  let s = null, r = "", n = !1;
@@ -3548,15 +3562,15 @@ function Zs(e) {
3548
3562
  continue;
3549
3563
  const l = u.match(/^(\w+):\s*(.*)$/);
3550
3564
  if (l) {
3551
- s && (i[s] = $t(r)), s = l[1];
3565
+ s && (i[s] = Wt(r)), s = l[1];
3552
3566
  const c = l[2];
3553
3567
  c === "|" ? (n = !0, r = "") : (n = !1, r = c);
3554
3568
  } else s && (n || u) && (r ? r += `
3555
3569
  ${o}` : r = o);
3556
3570
  }
3557
- return s && (i[s] = $t(r)), i;
3571
+ return s && (i[s] = Wt(r)), i;
3558
3572
  }
3559
- function Tr(e) {
3573
+ function Or(e) {
3560
3574
  const t = [], i = /* @__PURE__ */ new Set();
3561
3575
  for (const [s, r] of e.entries()) {
3562
3576
  const n = r.id?.trim() ?? "", o = r.src?.trim() ?? "", u = n ? `fig "${n}"` : `fig block ${s + 1}`;
@@ -3564,21 +3578,21 @@ function Tr(e) {
3564
3578
  }
3565
3579
  return t;
3566
3580
  }
3567
- const er = ["video", "audio", "file"];
3581
+ const ir = ["video", "audio", "file"];
3568
3582
  function Ri(e) {
3569
3583
  return (e || "file").trim().toLowerCase() || "file";
3570
3584
  }
3571
- function tr(e) {
3572
- return er.includes(Ri(e));
3585
+ function sr(e) {
3586
+ return ir.includes(Ri(e));
3573
3587
  }
3574
- function Or(e) {
3588
+ function Vr(e) {
3575
3589
  const t = Ri(e.kind);
3576
- return tr(t) ? [] : [
3590
+ return sr(t) ? [] : [
3577
3591
  `media "${e.id}": unsupported kind "${e.kind}". Supported media kinds are video, audio, and file; static images must use a fig block.`
3578
3592
  ];
3579
3593
  }
3580
- function Vr(e) {
3581
- const t = Zs(e);
3594
+ function Lr(e) {
3595
+ const t = tr(e);
3582
3596
  if (!t.id || !t.src)
3583
3597
  throw new Error('media block must have "id" and "src" fields');
3584
3598
  const i = {
@@ -3590,12 +3604,12 @@ function Vr(e) {
3590
3604
  }
3591
3605
  new TextEncoder();
3592
3606
  new TextDecoder();
3593
- const wt = /* @__PURE__ */ Symbol.for("yaml.alias"), ir = /* @__PURE__ */ Symbol.for("yaml.document"), le = /* @__PURE__ */ Symbol.for("yaml.map"), Fi = /* @__PURE__ */ Symbol.for("yaml.pair"), Ct = /* @__PURE__ */ Symbol.for("yaml.scalar"), Ne = /* @__PURE__ */ Symbol.for("yaml.seq"), X = /* @__PURE__ */ Symbol.for("yaml.node.type"), he = (e) => !!e && typeof e == "object" && e[X] === wt, He = (e) => !!e && typeof e == "object" && e[X] === ir, Di = (e) => !!e && typeof e == "object" && e[X] === le, V = (e) => !!e && typeof e == "object" && e[X] === Fi, T = (e) => !!e && typeof e == "object" && e[X] === Ct, At = (e) => !!e && typeof e == "object" && e[X] === Ne;
3607
+ const At = /* @__PURE__ */ Symbol.for("yaml.alias"), rr = /* @__PURE__ */ Symbol.for("yaml.document"), le = /* @__PURE__ */ Symbol.for("yaml.map"), Fi = /* @__PURE__ */ Symbol.for("yaml.pair"), It = /* @__PURE__ */ Symbol.for("yaml.scalar"), Te = /* @__PURE__ */ Symbol.for("yaml.seq"), X = /* @__PURE__ */ Symbol.for("yaml.node.type"), he = (e) => !!e && typeof e == "object" && e[X] === At, Ye = (e) => !!e && typeof e == "object" && e[X] === rr, Di = (e) => !!e && typeof e == "object" && e[X] === le, V = (e) => !!e && typeof e == "object" && e[X] === Fi, T = (e) => !!e && typeof e == "object" && e[X] === It, Et = (e) => !!e && typeof e == "object" && e[X] === Te;
3594
3608
  function M(e) {
3595
3609
  if (e && typeof e == "object")
3596
3610
  switch (e[X]) {
3597
3611
  case le:
3598
- case Ne:
3612
+ case Te:
3599
3613
  return !0;
3600
3614
  }
3601
3615
  return !1;
@@ -3603,26 +3617,26 @@ function M(e) {
3603
3617
  function R(e) {
3604
3618
  if (e && typeof e == "object")
3605
3619
  switch (e[X]) {
3606
- case wt:
3620
+ case At:
3607
3621
  case le:
3608
- case Ct:
3609
- case Ne:
3622
+ case It:
3623
+ case Te:
3610
3624
  return !0;
3611
3625
  }
3612
3626
  return !1;
3613
3627
  }
3614
- const Bi = (e) => (T(e) || M(e)) && !!e.anchor, oe = /* @__PURE__ */ Symbol("break visit"), sr = /* @__PURE__ */ Symbol("skip children"), Se = /* @__PURE__ */ Symbol("remove node");
3615
- function Xe(e, t) {
3616
- const i = rr(t);
3617
- He(e) ? pe(null, e.contents, i, Object.freeze([e])) === Se && (e.contents = null) : pe(null, e, i, Object.freeze([]));
3628
+ const Bi = (e) => (T(e) || M(e)) && !!e.anchor, oe = /* @__PURE__ */ Symbol("break visit"), nr = /* @__PURE__ */ Symbol("skip children"), Se = /* @__PURE__ */ Symbol("remove node");
3629
+ function Ze(e, t) {
3630
+ const i = ar(t);
3631
+ Ye(e) ? pe(null, e.contents, i, Object.freeze([e])) === Se && (e.contents = null) : pe(null, e, i, Object.freeze([]));
3618
3632
  }
3619
- Xe.BREAK = oe;
3620
- Xe.SKIP = sr;
3621
- Xe.REMOVE = Se;
3633
+ Ze.BREAK = oe;
3634
+ Ze.SKIP = nr;
3635
+ Ze.REMOVE = Se;
3622
3636
  function pe(e, t, i, s) {
3623
- const r = nr(e, t, i, s);
3637
+ const r = or(e, t, i, s);
3624
3638
  if (R(r) || V(r))
3625
- return ar(e, s, r), pe(e, r, i, s);
3639
+ return ur(e, s, r), pe(e, r, i, s);
3626
3640
  if (typeof r != "symbol") {
3627
3641
  if (M(t)) {
3628
3642
  s = Object.freeze(s.concat(t));
@@ -3650,7 +3664,7 @@ function pe(e, t, i, s) {
3650
3664
  }
3651
3665
  return r;
3652
3666
  }
3653
- function rr(e) {
3667
+ function ar(e) {
3654
3668
  return typeof e == "object" && (e.Collection || e.Node || e.Value) ? Object.assign({
3655
3669
  Alias: e.Node,
3656
3670
  Map: e.Node,
@@ -3665,12 +3679,12 @@ function rr(e) {
3665
3679
  Seq: e.Collection
3666
3680
  }, e) : e;
3667
3681
  }
3668
- function nr(e, t, i, s) {
3682
+ function or(e, t, i, s) {
3669
3683
  if (typeof i == "function")
3670
3684
  return i(e, t, s);
3671
3685
  if (Di(t))
3672
3686
  return i.Map?.(e, t, s);
3673
- if (At(t))
3687
+ if (Et(t))
3674
3688
  return i.Seq?.(e, t, s);
3675
3689
  if (V(t))
3676
3690
  return i.Pair?.(e, t, s);
@@ -3679,13 +3693,13 @@ function nr(e, t, i, s) {
3679
3693
  if (he(t))
3680
3694
  return i.Alias?.(e, t, s);
3681
3695
  }
3682
- function ar(e, t, i) {
3696
+ function ur(e, t, i) {
3683
3697
  const s = t[t.length - 1];
3684
3698
  if (M(s))
3685
3699
  s.items[e] = i;
3686
3700
  else if (V(s))
3687
3701
  e === "key" ? s.key = i : s.value = i;
3688
- else if (He(s))
3702
+ else if (Ye(s))
3689
3703
  s.contents = i;
3690
3704
  else {
3691
3705
  const r = he(s) ? "alias" : "scalar";
@@ -3738,7 +3752,7 @@ function K(e, t, i) {
3738
3752
  }
3739
3753
  return typeof e == "bigint" && !i?.keep ? Number(e) : e;
3740
3754
  }
3741
- class It {
3755
+ class Pt {
3742
3756
  constructor(t) {
3743
3757
  Object.defineProperty(this, X, { value: t });
3744
3758
  }
@@ -3749,7 +3763,7 @@ class It {
3749
3763
  }
3750
3764
  /** A plain JavaScript representation of this node. */
3751
3765
  toJS(t, { mapAsMap: i, maxAliasCount: s, onAnchor: r, reviver: n } = {}) {
3752
- if (!He(t))
3766
+ if (!Ye(t))
3753
3767
  throw new TypeError("A document argument is required");
3754
3768
  const o = {
3755
3769
  anchors: /* @__PURE__ */ new Map(),
@@ -3765,9 +3779,9 @@ class It {
3765
3779
  return typeof n == "function" ? _e(n, { "": u }, "", u) : u;
3766
3780
  }
3767
3781
  }
3768
- class or extends It {
3782
+ class lr extends Pt {
3769
3783
  constructor(t) {
3770
- super(wt), this.source = t, Object.defineProperty(this, "tag", {
3784
+ super(At), this.source = t, Object.defineProperty(this, "tag", {
3771
3785
  set() {
3772
3786
  throw new Error("Alias nodes cannot have tags");
3773
3787
  }
@@ -3779,7 +3793,7 @@ class or extends It {
3779
3793
  */
3780
3794
  resolve(t, i) {
3781
3795
  let s;
3782
- i?.aliasResolveCache ? s = i.aliasResolveCache : (s = [], Xe(t, {
3796
+ i?.aliasResolveCache ? s = i.aliasResolveCache : (s = [], Ze(t, {
3783
3797
  Node: (n, o) => {
3784
3798
  (he(o) || Bi(o)) && s.push(o);
3785
3799
  }
@@ -3805,7 +3819,7 @@ class or extends It {
3805
3819
  const l = "This should not happen: Alias anchor was not resolved?";
3806
3820
  throw new ReferenceError(l);
3807
3821
  }
3808
- if (n >= 0 && (u.count += 1, u.aliasCount === 0 && (u.aliasCount = Ve(r, o, s)), u.count * u.aliasCount > n)) {
3822
+ if (n >= 0 && (u.count += 1, u.aliasCount === 0 && (u.aliasCount = Le(r, o, s)), u.count * u.aliasCount > n)) {
3809
3823
  const l = "Excessive alias count indicates a resource exhaustion attack";
3810
3824
  throw new ReferenceError(l);
3811
3825
  }
@@ -3824,27 +3838,27 @@ class or extends It {
3824
3838
  return r;
3825
3839
  }
3826
3840
  }
3827
- function Ve(e, t, i) {
3841
+ function Le(e, t, i) {
3828
3842
  if (he(t)) {
3829
3843
  const s = t.resolve(e), r = i && s && i.get(s);
3830
3844
  return r ? r.count * r.aliasCount : 0;
3831
3845
  } else if (M(t)) {
3832
3846
  let s = 0;
3833
3847
  for (const r of t.items) {
3834
- const n = Ve(e, r, i);
3848
+ const n = Le(e, r, i);
3835
3849
  n > s && (s = n);
3836
3850
  }
3837
3851
  return s;
3838
3852
  } else if (V(t)) {
3839
- const s = Ve(e, t.key, i), r = Ve(e, t.value, i);
3853
+ const s = Le(e, t.key, i), r = Le(e, t.value, i);
3840
3854
  return Math.max(s, r);
3841
3855
  }
3842
3856
  return 1;
3843
3857
  }
3844
3858
  const ji = (e) => !e || typeof e != "function" && typeof e != "object";
3845
- class P extends It {
3859
+ class P extends Pt {
3846
3860
  constructor(t) {
3847
- super(Ct), this.value = t;
3861
+ super(It), this.value = t;
3848
3862
  }
3849
3863
  toJSON(t, i) {
3850
3864
  return i?.keep ? this.value : K(this.value, t, i);
@@ -3858,37 +3872,37 @@ P.BLOCK_LITERAL = "BLOCK_LITERAL";
3858
3872
  P.PLAIN = "PLAIN";
3859
3873
  P.QUOTE_DOUBLE = "QUOTE_DOUBLE";
3860
3874
  P.QUOTE_SINGLE = "QUOTE_SINGLE";
3861
- function ur(e, t, i) {
3875
+ function cr(e, t, i) {
3862
3876
  return i.find((s) => s.identify?.(e) && !s.format);
3863
3877
  }
3864
- function Ue(e, t, i) {
3865
- if (He(e) && (e = e.contents), R(e))
3878
+ function $e(e, t, i) {
3879
+ if (Ye(e) && (e = e.contents), R(e))
3866
3880
  return e;
3867
3881
  if (V(e)) {
3868
- const f = i.schema[le].createNode?.(i.schema, null, i);
3869
- return f.items.push(e), f;
3882
+ const p = i.schema[le].createNode?.(i.schema, null, i);
3883
+ return p.items.push(e), p;
3870
3884
  }
3871
3885
  (e instanceof String || e instanceof Number || e instanceof Boolean || typeof BigInt < "u" && e instanceof BigInt) && (e = e.valueOf());
3872
3886
  const { aliasDuplicateObjects: s, onAnchor: r, onTagObj: n, schema: o, sourceObjects: u } = i;
3873
3887
  let l;
3874
3888
  if (s && e && typeof e == "object") {
3875
3889
  if (l = u.get(e), l)
3876
- return l.anchor ?? (l.anchor = r(e)), new or(l.anchor);
3890
+ return l.anchor ?? (l.anchor = r(e)), new lr(l.anchor);
3877
3891
  l = { anchor: null, node: null }, u.set(e, l);
3878
3892
  }
3879
- let c = ur(e, t, o.tags);
3893
+ let c = cr(e, t, o.tags);
3880
3894
  if (!c) {
3881
3895
  if (e && typeof e.toJSON == "function" && (e = e.toJSON()), !e || typeof e != "object") {
3882
- const f = new P(e);
3883
- return l && (l.node = f), f;
3896
+ const p = new P(e);
3897
+ return l && (l.node = p), p;
3884
3898
  }
3885
- c = e instanceof Map ? o[le] : Symbol.iterator in Object(e) ? o[Ne] : o[le];
3899
+ c = e instanceof Map ? o[le] : Symbol.iterator in Object(e) ? o[Te] : o[le];
3886
3900
  }
3887
3901
  n && (n(c), delete i.onTagObj);
3888
- const p = c?.createNode ? c.createNode(i.schema, e, i) : typeof c?.nodeClass?.from == "function" ? c.nodeClass.from(i.schema, e, i) : new P(e);
3889
- return c.default || (p.tag = c.tag), l && (l.node = p), p;
3902
+ const h = c?.createNode ? c.createNode(i.schema, e, i) : typeof c?.nodeClass?.from == "function" ? c.nodeClass.from(i.schema, e, i) : new P(e);
3903
+ return c.default || (h.tag = c.tag), l && (l.node = h), h;
3890
3904
  }
3891
- function qt(e, t, i) {
3905
+ function Gt(e, t, i) {
3892
3906
  let s = i;
3893
3907
  for (let r = t.length - 1; r >= 0; --r) {
3894
3908
  const n = t[r];
@@ -3898,7 +3912,7 @@ function qt(e, t, i) {
3898
3912
  } else
3899
3913
  s = /* @__PURE__ */ new Map([[n, s]]);
3900
3914
  }
3901
- return Ue(s, void 0, {
3915
+ return $e(s, void 0, {
3902
3916
  aliasDuplicateObjects: !1,
3903
3917
  keepUndefined: !1,
3904
3918
  onAnchor: () => {
@@ -3908,8 +3922,8 @@ function qt(e, t, i) {
3908
3922
  sourceObjects: /* @__PURE__ */ new Map()
3909
3923
  });
3910
3924
  }
3911
- const lr = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next().done;
3912
- class Ui extends It {
3925
+ const hr = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next().done;
3926
+ class Ui extends Pt {
3913
3927
  constructor(t, i) {
3914
3928
  super(t), Object.defineProperty(this, "schema", {
3915
3929
  value: i,
@@ -3933,14 +3947,14 @@ class Ui extends It {
3933
3947
  * that already exists in the map.
3934
3948
  */
3935
3949
  addIn(t, i) {
3936
- if (lr(t))
3950
+ if (hr(t))
3937
3951
  this.add(i);
3938
3952
  else {
3939
3953
  const [s, ...r] = t, n = this.get(s, !0);
3940
3954
  if (M(n))
3941
3955
  n.addIn(r, i);
3942
3956
  else if (n === void 0 && this.schema)
3943
- this.set(s, qt(this.schema, r, i));
3957
+ this.set(s, Gt(this.schema, r, i));
3944
3958
  else
3945
3959
  throw new Error(`Expected YAML collection at ${s}. Remaining path: ${r}`);
3946
3960
  }
@@ -3998,73 +4012,73 @@ class Ui extends It {
3998
4012
  if (M(n))
3999
4013
  n.setIn(r, i);
4000
4014
  else if (n === void 0 && this.schema)
4001
- this.set(s, qt(this.schema, r, i));
4015
+ this.set(s, Gt(this.schema, r, i));
4002
4016
  else
4003
4017
  throw new Error(`Expected YAML collection at ${s}. Remaining path: ${r}`);
4004
4018
  }
4005
4019
  }
4006
4020
  }
4007
- const cr = (e) => e.replace(/^(?!$)(?: $)?/gm, "#");
4021
+ const fr = (e) => e.replace(/^(?!$)(?: $)?/gm, "#");
4008
4022
  function Ie(e, t) {
4009
4023
  return /^\n+$/.test(e) ? e.substring(1) : t ? e.replace(/^(?! *$)/gm, t) : e;
4010
4024
  }
4011
4025
  const de = (e, t, i) => e.endsWith(`
4012
4026
  `) ? Ie(i, t) : i.includes(`
4013
4027
  `) ? `
4014
- ` + Ie(i, t) : (e.endsWith(" ") ? "" : " ") + i, $i = "flow", ft = "block", Le = "quoted";
4015
- function Ye(e, t, i = "flow", { indentAtStart: s, lineWidth: r = 80, minContentWidth: n = 20, onFold: o, onOverflow: u } = {}) {
4028
+ ` + Ie(i, t) : (e.endsWith(" ") ? "" : " ") + i, $i = "flow", dt = "block", Re = "quoted";
4029
+ function et(e, t, i = "flow", { indentAtStart: s, lineWidth: r = 80, minContentWidth: n = 20, onFold: o, onOverflow: u } = {}) {
4016
4030
  if (!r || r < 0)
4017
4031
  return e;
4018
4032
  r < n && (n = 0);
4019
4033
  const l = Math.max(1 + n, 1 + r - t.length);
4020
4034
  if (e.length <= l)
4021
4035
  return e;
4022
- const c = [], p = {};
4023
- let f = r - t.length;
4024
- typeof s == "number" && (s > r - Math.max(2, n) ? c.push(0) : f = r - s);
4025
- let d, y, x = !1, h = -1, b = -1, w = -1;
4026
- i === ft && (h = Gt(e, h, t.length), h !== -1 && (f = h + l));
4027
- for (let A; A = e[h += 1]; ) {
4028
- if (i === Le && A === "\\") {
4029
- switch (b = h, e[h + 1]) {
4036
+ const c = [], h = {};
4037
+ let p = r - t.length;
4038
+ typeof s == "number" && (s > r - Math.max(2, n) ? c.push(0) : p = r - s);
4039
+ let d, b, x = !1, f = -1, y = -1, w = -1;
4040
+ i === dt && (f = Kt(e, f, t.length), f !== -1 && (p = f + l));
4041
+ for (let A; A = e[f += 1]; ) {
4042
+ if (i === Re && A === "\\") {
4043
+ switch (y = f, e[f + 1]) {
4030
4044
  case "x":
4031
- h += 3;
4045
+ f += 3;
4032
4046
  break;
4033
4047
  case "u":
4034
- h += 5;
4048
+ f += 5;
4035
4049
  break;
4036
4050
  case "U":
4037
- h += 9;
4051
+ f += 9;
4038
4052
  break;
4039
4053
  default:
4040
- h += 1;
4054
+ f += 1;
4041
4055
  }
4042
- w = h;
4056
+ w = f;
4043
4057
  }
4044
4058
  if (A === `
4045
4059
  `)
4046
- i === ft && (h = Gt(e, h, t.length)), f = h + t.length + l, d = void 0;
4060
+ i === dt && (f = Kt(e, f, t.length)), p = f + t.length + l, d = void 0;
4047
4061
  else {
4048
- if (A === " " && y && y !== " " && y !== `
4049
- ` && y !== " ") {
4050
- const E = e[h + 1];
4062
+ if (A === " " && b && b !== " " && b !== `
4063
+ ` && b !== " ") {
4064
+ const E = e[f + 1];
4051
4065
  E && E !== " " && E !== `
4052
- ` && E !== " " && (d = h);
4066
+ ` && E !== " " && (d = f);
4053
4067
  }
4054
- if (h >= f)
4068
+ if (f >= p)
4055
4069
  if (d)
4056
- c.push(d), f = d + l, d = void 0;
4057
- else if (i === Le) {
4058
- for (; y === " " || y === " "; )
4059
- y = A, A = e[h += 1], x = !0;
4060
- const E = h > w + 1 ? h - 2 : b - 1;
4061
- if (p[E])
4070
+ c.push(d), p = d + l, d = void 0;
4071
+ else if (i === Re) {
4072
+ for (; b === " " || b === " "; )
4073
+ b = A, A = e[f += 1], x = !0;
4074
+ const E = f > w + 1 ? f - 2 : y - 1;
4075
+ if (h[E])
4062
4076
  return e;
4063
- c.push(E), p[E] = !0, f = E + l, d = void 0;
4077
+ c.push(E), h[E] = !0, p = E + l, d = void 0;
4064
4078
  } else
4065
4079
  x = !0;
4066
4080
  }
4067
- y = A;
4081
+ b = A;
4068
4082
  }
4069
4083
  if (x && u && u(), c.length === 0)
4070
4084
  return e;
@@ -4073,12 +4087,12 @@ function Ye(e, t, i = "flow", { indentAtStart: s, lineWidth: r = 80, minContentW
4073
4087
  for (let A = 0; A < c.length; ++A) {
4074
4088
  const E = c[A], N = c[A + 1] || e.length;
4075
4089
  E === 0 ? C = `
4076
- ${t}${e.slice(0, N)}` : (i === Le && p[E] && (C += `${e[E]}\\`), C += `
4090
+ ${t}${e.slice(0, N)}` : (i === Re && h[E] && (C += `${e[E]}\\`), C += `
4077
4091
  ${t}${e.slice(E + 1, N)}`);
4078
4092
  }
4079
4093
  return C;
4080
4094
  }
4081
- function Gt(e, t, i) {
4095
+ function Kt(e, t, i) {
4082
4096
  let s = t, r = t + 1, n = e[r];
4083
4097
  for (; n === " " || n === " "; )
4084
4098
  if (t < r + i)
@@ -4092,12 +4106,12 @@ function Gt(e, t, i) {
4092
4106
  }
4093
4107
  return s;
4094
4108
  }
4095
- const Ze = (e, t) => ({
4109
+ const tt = (e, t) => ({
4096
4110
  indentAtStart: t ? e.indent.length : e.indentAtStart,
4097
4111
  lineWidth: e.options.lineWidth,
4098
4112
  minContentWidth: e.options.minContentWidth
4099
- }), et = (e) => /^(%|---|\.\.\.)/m.test(e);
4100
- function hr(e, t, i) {
4113
+ }), it = (e) => /^(%|---|\.\.\.)/m.test(e);
4114
+ function pr(e, t, i) {
4101
4115
  if (!t || t < 0)
4102
4116
  return !1;
4103
4117
  const s = t - i, r = e.length;
@@ -4117,7 +4131,7 @@ function we(e, t) {
4117
4131
  const i = JSON.stringify(e);
4118
4132
  if (t.options.doubleQuotedAsJSON)
4119
4133
  return i;
4120
- const { implicitKey: s } = t, r = t.options.doubleQuotedMinMultiLineLength, n = t.indent || (et(e) ? " " : "");
4134
+ const { implicitKey: s } = t, r = t.options.doubleQuotedMinMultiLineLength, n = t.indent || (it(e) ? " " : "");
4121
4135
  let o = "", u = 0;
4122
4136
  for (let l = 0, c = i[l]; c; c = i[++l])
4123
4137
  if (c === " " && i[l + 1] === "\\" && i[l + 2] === "n" && (o += i.slice(u, l) + "\\ ", l += 1, u = l, c = "\\"), c === "\\")
@@ -4125,8 +4139,8 @@ function we(e, t) {
4125
4139
  case "u":
4126
4140
  {
4127
4141
  o += i.slice(u, l);
4128
- const p = i.substr(l + 2, 4);
4129
- switch (p) {
4142
+ const h = i.substr(l + 2, 4);
4143
+ switch (h) {
4130
4144
  case "0000":
4131
4145
  o += "\\0";
4132
4146
  break;
@@ -4152,7 +4166,7 @@ function we(e, t) {
4152
4166
  o += "\\P";
4153
4167
  break;
4154
4168
  default:
4155
- p.substr(0, 2) === "00" ? o += "\\x" + p.substr(2) : o += i.substr(l, 6);
4169
+ h.substr(0, 2) === "00" ? o += "\\x" + h.substr(2) : o += i.substr(l, 6);
4156
4170
  }
4157
4171
  l += 5, u = l + 1;
4158
4172
  }
@@ -4172,15 +4186,15 @@ function we(e, t) {
4172
4186
  default:
4173
4187
  l += 1;
4174
4188
  }
4175
- return o = u ? o + i.slice(u) : i, s ? o : Ye(o, n, Le, Ze(t, !1));
4189
+ return o = u ? o + i.slice(u) : i, s ? o : et(o, n, Re, tt(t, !1));
4176
4190
  }
4177
- function pt(e, t) {
4191
+ function mt(e, t) {
4178
4192
  if (t.options.singleQuote === !1 || t.implicitKey && e.includes(`
4179
4193
  `) || /[ \t]\n|\n[ \t]/.test(e))
4180
4194
  return we(e, t);
4181
- const i = t.indent || (et(e) ? " " : ""), s = "'" + e.replace(/'/g, "''").replace(/\n+/g, `$&
4195
+ const i = t.indent || (it(e) ? " " : ""), s = "'" + e.replace(/'/g, "''").replace(/\n+/g, `$&
4182
4196
  ${i}`) + "'";
4183
- return t.implicitKey ? s : Ye(s, i, $i, Ze(t, !1));
4197
+ return t.implicitKey ? s : et(s, i, $i, tt(t, !1));
4184
4198
  }
4185
4199
  function me(e, t) {
4186
4200
  const { singleQuote: i } = t.options;
@@ -4189,127 +4203,127 @@ function me(e, t) {
4189
4203
  s = we;
4190
4204
  else {
4191
4205
  const r = e.includes('"'), n = e.includes("'");
4192
- r && !n ? s = pt : n && !r ? s = we : s = i ? pt : we;
4206
+ r && !n ? s = mt : n && !r ? s = we : s = i ? mt : we;
4193
4207
  }
4194
4208
  return s(e, t);
4195
4209
  }
4196
- let dt;
4210
+ let gt;
4197
4211
  try {
4198
- dt = new RegExp(`(^|(?<!
4212
+ gt = new RegExp(`(^|(?<!
4199
4213
  ))
4200
4214
  +(?!
4201
4215
  |$)`, "g");
4202
4216
  } catch {
4203
- dt = /\n+(?!\n|$)/g;
4217
+ gt = /\n+(?!\n|$)/g;
4204
4218
  }
4205
- function Re({ comment: e, type: t, value: i }, s, r, n) {
4219
+ function Fe({ comment: e, type: t, value: i }, s, r, n) {
4206
4220
  const { blockQuote: o, commentString: u, lineWidth: l } = s.options;
4207
4221
  if (!o || /\n[\t ]+$/.test(i))
4208
4222
  return me(i, s);
4209
- const c = s.indent || (s.forceBlockIndent || et(i) ? " " : ""), p = o === "literal" ? !0 : o === "folded" || t === P.BLOCK_FOLDED ? !1 : t === P.BLOCK_LITERAL ? !0 : !hr(i, l, c.length);
4223
+ const c = s.indent || (s.forceBlockIndent || it(i) ? " " : ""), h = o === "literal" ? !0 : o === "folded" || t === P.BLOCK_FOLDED ? !1 : t === P.BLOCK_LITERAL ? !0 : !pr(i, l, c.length);
4210
4224
  if (!i)
4211
- return p ? `|
4225
+ return h ? `|
4212
4226
  ` : `>
4213
4227
  `;
4214
- let f, d;
4228
+ let p, d;
4215
4229
  for (d = i.length; d > 0; --d) {
4216
4230
  const N = i[d - 1];
4217
4231
  if (N !== `
4218
4232
  ` && N !== " " && N !== " ")
4219
4233
  break;
4220
4234
  }
4221
- let y = i.substring(d);
4222
- const x = y.indexOf(`
4235
+ let b = i.substring(d);
4236
+ const x = b.indexOf(`
4223
4237
  `);
4224
- x === -1 ? f = "-" : i === y || x !== y.length - 1 ? (f = "+", n && n()) : f = "", y && (i = i.slice(0, -y.length), y[y.length - 1] === `
4225
- ` && (y = y.slice(0, -1)), y = y.replace(dt, `$&${c}`));
4226
- let h = !1, b, w = -1;
4227
- for (b = 0; b < i.length; ++b) {
4228
- const N = i[b];
4238
+ x === -1 ? p = "-" : i === b || x !== b.length - 1 ? (p = "+", n && n()) : p = "", b && (i = i.slice(0, -b.length), b[b.length - 1] === `
4239
+ ` && (b = b.slice(0, -1)), b = b.replace(gt, `$&${c}`));
4240
+ let f = !1, y, w = -1;
4241
+ for (y = 0; y < i.length; ++y) {
4242
+ const N = i[y];
4229
4243
  if (N === " ")
4230
- h = !0;
4244
+ f = !0;
4231
4245
  else if (N === `
4232
4246
  `)
4233
- w = b;
4247
+ w = y;
4234
4248
  else
4235
4249
  break;
4236
4250
  }
4237
- let C = i.substring(0, w < b ? w + 1 : b);
4251
+ let C = i.substring(0, w < y ? w + 1 : y);
4238
4252
  C && (i = i.substring(C.length), C = C.replace(/\n+/g, `$&${c}`));
4239
- let E = (h ? c ? "2" : "1" : "") + f;
4240
- if (e && (E += " " + u(e.replace(/ ?[\r\n]+/g, " ")), r && r()), !p) {
4253
+ let E = (f ? c ? "2" : "1" : "") + p;
4254
+ if (e && (E += " " + u(e.replace(/ ?[\r\n]+/g, " ")), r && r()), !h) {
4241
4255
  const N = i.replace(/\n+/g, `
4242
4256
  $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${c}`);
4243
- let G = !1;
4244
- const z = Ze(s, !0);
4257
+ let W = !1;
4258
+ const z = tt(s, !0);
4245
4259
  o !== "folded" && t !== P.BLOCK_FOLDED && (z.onOverflow = () => {
4246
- G = !0;
4260
+ W = !0;
4247
4261
  });
4248
- const ve = Ye(`${C}${N}${y}`, c, ft, z);
4249
- if (!G)
4262
+ const ve = et(`${C}${N}${b}`, c, dt, z);
4263
+ if (!W)
4250
4264
  return `>${E}
4251
4265
  ${c}${ve}`;
4252
4266
  }
4253
4267
  return i = i.replace(/\n+/g, `$&${c}`), `|${E}
4254
- ${c}${C}${i}${y}`;
4268
+ ${c}${C}${i}${b}`;
4255
4269
  }
4256
- function fr(e, t, i, s) {
4257
- const { type: r, value: n } = e, { actualString: o, implicitKey: u, indent: l, indentStep: c, inFlow: p } = t;
4270
+ function dr(e, t, i, s) {
4271
+ const { type: r, value: n } = e, { actualString: o, implicitKey: u, indent: l, indentStep: c, inFlow: h } = t;
4258
4272
  if (u && n.includes(`
4259
- `) || p && /[[\]{},]/.test(n))
4273
+ `) || h && /[[\]{},]/.test(n))
4260
4274
  return me(n, t);
4261
4275
  if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(n))
4262
- return u || p || !n.includes(`
4263
- `) ? me(n, t) : Re(e, t, i, s);
4264
- if (!u && !p && r !== P.PLAIN && n.includes(`
4276
+ return u || h || !n.includes(`
4277
+ `) ? me(n, t) : Fe(e, t, i, s);
4278
+ if (!u && !h && r !== P.PLAIN && n.includes(`
4265
4279
  `))
4266
- return Re(e, t, i, s);
4267
- if (et(n)) {
4280
+ return Fe(e, t, i, s);
4281
+ if (it(n)) {
4268
4282
  if (l === "")
4269
- return t.forceBlockIndent = !0, Re(e, t, i, s);
4283
+ return t.forceBlockIndent = !0, Fe(e, t, i, s);
4270
4284
  if (u && l === c)
4271
4285
  return me(n, t);
4272
4286
  }
4273
- const f = n.replace(/\n+/g, `$&
4287
+ const p = n.replace(/\n+/g, `$&
4274
4288
  ${l}`);
4275
4289
  if (o) {
4276
- const d = (h) => h.default && h.tag !== "tag:yaml.org,2002:str" && h.test?.test(f), { compat: y, tags: x } = t.doc.schema;
4277
- if (x.some(d) || y?.some(d))
4290
+ const d = (f) => f.default && f.tag !== "tag:yaml.org,2002:str" && f.test?.test(p), { compat: b, tags: x } = t.doc.schema;
4291
+ if (x.some(d) || b?.some(d))
4278
4292
  return me(n, t);
4279
4293
  }
4280
- return u ? f : Ye(f, l, $i, Ze(t, !1));
4294
+ return u ? p : et(p, l, $i, tt(t, !1));
4281
4295
  }
4282
- function pr(e, t, i, s) {
4296
+ function mr(e, t, i, s) {
4283
4297
  const { implicitKey: r, inFlow: n } = t, o = typeof e.value == "string" ? e : Object.assign({}, e, { value: String(e.value) });
4284
4298
  let { type: u } = e;
4285
4299
  u !== P.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (u = P.QUOTE_DOUBLE);
4286
- const l = (p) => {
4287
- switch (p) {
4300
+ const l = (h) => {
4301
+ switch (h) {
4288
4302
  case P.BLOCK_FOLDED:
4289
4303
  case P.BLOCK_LITERAL:
4290
- return r || n ? me(o.value, t) : Re(o, t, i, s);
4304
+ return r || n ? me(o.value, t) : Fe(o, t, i, s);
4291
4305
  case P.QUOTE_DOUBLE:
4292
4306
  return we(o.value, t);
4293
4307
  case P.QUOTE_SINGLE:
4294
- return pt(o.value, t);
4308
+ return mt(o.value, t);
4295
4309
  case P.PLAIN:
4296
- return fr(o, t, i, s);
4310
+ return dr(o, t, i, s);
4297
4311
  default:
4298
4312
  return null;
4299
4313
  }
4300
4314
  };
4301
4315
  let c = l(u);
4302
4316
  if (c === null) {
4303
- const { defaultKeyType: p, defaultStringType: f } = t.options, d = r && p || f;
4317
+ const { defaultKeyType: h, defaultStringType: p } = t.options, d = r && h || p;
4304
4318
  if (c = l(d), c === null)
4305
4319
  throw new Error(`Unsupported default string type ${d}`);
4306
4320
  }
4307
4321
  return c;
4308
4322
  }
4309
- function dr(e, t) {
4323
+ function gr(e, t) {
4310
4324
  const i = Object.assign({
4311
4325
  blockQuote: !0,
4312
- commentString: cr,
4326
+ commentString: fr,
4313
4327
  defaultKeyType: null,
4314
4328
  defaultStringType: "PLAIN",
4315
4329
  directives: null,
@@ -4347,7 +4361,7 @@ function dr(e, t) {
4347
4361
  options: i
4348
4362
  };
4349
4363
  }
4350
- function mr(e, t) {
4364
+ function yr(e, t) {
4351
4365
  if (t.tag) {
4352
4366
  const r = e.filter((n) => n.tag === t.tag);
4353
4367
  if (r.length > 0)
@@ -4370,7 +4384,7 @@ function mr(e, t) {
4370
4384
  }
4371
4385
  return i;
4372
4386
  }
4373
- function gr(e, t, { anchors: i, doc: s }) {
4387
+ function br(e, t, { anchors: i, doc: s }) {
4374
4388
  if (!s.directives)
4375
4389
  return "";
4376
4390
  const r = [], n = (T(e) || M(e)) && e.anchor;
@@ -4378,7 +4392,7 @@ function gr(e, t, { anchors: i, doc: s }) {
4378
4392
  const o = e.tag ?? (t.default ? null : t.tag);
4379
4393
  return o && r.push(s.directives.tagString(o)), r.join(" ");
4380
4394
  }
4381
- function $e(e, t, i, s) {
4395
+ function qe(e, t, i, s) {
4382
4396
  if (V(e))
4383
4397
  return e.toString(t, i, s);
4384
4398
  if (he(e)) {
@@ -4390,17 +4404,17 @@ function $e(e, t, i, s) {
4390
4404
  }
4391
4405
  let r;
4392
4406
  const n = R(e) ? e : t.doc.createNode(e, { onTagObj: (l) => r = l });
4393
- r ?? (r = mr(t.doc.schema.tags, n));
4394
- const o = gr(n, r, t);
4407
+ r ?? (r = yr(t.doc.schema.tags, n));
4408
+ const o = br(n, r, t);
4395
4409
  o.length > 0 && (t.indentAtStart = (t.indentAtStart ?? 0) + o.length + 1);
4396
- const u = typeof r.stringify == "function" ? r.stringify(n, t, i, s) : T(n) ? pr(n, t, i, s) : n.toString(t, i, s);
4410
+ const u = typeof r.stringify == "function" ? r.stringify(n, t, i, s) : T(n) ? mr(n, t, i, s) : n.toString(t, i, s);
4397
4411
  return o ? T(n) || u[0] === "{" || u[0] === "[" ? `${o} ${u}` : `${o}
4398
4412
  ${t.indent}${u}` : u;
4399
4413
  }
4400
- function yr({ key: e, value: t }, i, s, r) {
4401
- const { allNullValues: n, doc: o, indent: u, indentStep: l, options: { commentString: c, indentSeq: p, simpleKeys: f } } = i;
4414
+ function xr({ key: e, value: t }, i, s, r) {
4415
+ const { allNullValues: n, doc: o, indent: u, indentStep: l, options: { commentString: c, indentSeq: h, simpleKeys: p } } = i;
4402
4416
  let d = R(e) && e.comment || null;
4403
- if (f) {
4417
+ if (p) {
4404
4418
  if (d)
4405
4419
  throw new Error("With simple keys, key nodes cannot have comments");
4406
4420
  if (M(e) || !R(e) && typeof e == "object") {
@@ -4408,82 +4422,82 @@ function yr({ key: e, value: t }, i, s, r) {
4408
4422
  throw new Error(z);
4409
4423
  }
4410
4424
  }
4411
- let y = !f && (!e || d && t == null && !i.inFlow || M(e) || (T(e) ? e.type === P.BLOCK_FOLDED || e.type === P.BLOCK_LITERAL : typeof e == "object"));
4425
+ let b = !p && (!e || d && t == null && !i.inFlow || M(e) || (T(e) ? e.type === P.BLOCK_FOLDED || e.type === P.BLOCK_LITERAL : typeof e == "object"));
4412
4426
  i = Object.assign({}, i, {
4413
4427
  allNullValues: !1,
4414
- implicitKey: !y && (f || !n),
4428
+ implicitKey: !b && (p || !n),
4415
4429
  indent: u + l
4416
4430
  });
4417
- let x = !1, h = !1, b = $e(e, i, () => x = !0, () => h = !0);
4418
- if (!y && !i.inFlow && b.length > 1024) {
4419
- if (f)
4431
+ let x = !1, f = !1, y = qe(e, i, () => x = !0, () => f = !0);
4432
+ if (!b && !i.inFlow && y.length > 1024) {
4433
+ if (p)
4420
4434
  throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
4421
- y = !0;
4435
+ b = !0;
4422
4436
  }
4423
4437
  if (i.inFlow) {
4424
4438
  if (n || t == null)
4425
- return x && s && s(), b === "" ? "?" : y ? `? ${b}` : b;
4426
- } else if (n && !f || t == null && y)
4427
- return b = `? ${b}`, d && !x ? b += de(b, i.indent, c(d)) : h && r && r(), b;
4428
- x && (d = null), y ? (d && (b += de(b, i.indent, c(d))), b = `? ${b}
4429
- ${u}:`) : (b = `${b}:`, d && (b += de(b, i.indent, c(d))));
4439
+ return x && s && s(), y === "" ? "?" : b ? `? ${y}` : y;
4440
+ } else if (n && !p || t == null && b)
4441
+ return y = `? ${y}`, d && !x ? y += de(y, i.indent, c(d)) : f && r && r(), y;
4442
+ x && (d = null), b ? (d && (y += de(y, i.indent, c(d))), y = `? ${y}
4443
+ ${u}:`) : (y = `${y}:`, d && (y += de(y, i.indent, c(d))));
4430
4444
  let w, C, A;
4431
- R(t) ? (w = !!t.spaceBefore, C = t.commentBefore, A = t.comment) : (w = !1, C = null, A = null, t && typeof t == "object" && (t = o.createNode(t))), i.implicitKey = !1, !y && !d && T(t) && (i.indentAtStart = b.length + 1), h = !1, !p && l.length >= 2 && !i.inFlow && !y && At(t) && !t.flow && !t.tag && !t.anchor && (i.indent = i.indent.substring(2));
4445
+ R(t) ? (w = !!t.spaceBefore, C = t.commentBefore, A = t.comment) : (w = !1, C = null, A = null, t && typeof t == "object" && (t = o.createNode(t))), i.implicitKey = !1, !b && !d && T(t) && (i.indentAtStart = y.length + 1), f = !1, !h && l.length >= 2 && !i.inFlow && !b && Et(t) && !t.flow && !t.tag && !t.anchor && (i.indent = i.indent.substring(2));
4432
4446
  let E = !1;
4433
- const N = $e(t, i, () => E = !0, () => h = !0);
4434
- let G = " ";
4447
+ const N = qe(t, i, () => E = !0, () => f = !0);
4448
+ let W = " ";
4435
4449
  if (d || w || C) {
4436
- if (G = w ? `
4450
+ if (W = w ? `
4437
4451
  ` : "", C) {
4438
4452
  const z = c(C);
4439
- G += `
4453
+ W += `
4440
4454
  ${Ie(z, i.indent)}`;
4441
4455
  }
4442
- N === "" && !i.inFlow ? G === `
4443
- ` && A && (G = `
4456
+ N === "" && !i.inFlow ? W === `
4457
+ ` && A && (W = `
4444
4458
 
4445
- `) : G += `
4459
+ `) : W += `
4446
4460
  ${i.indent}`;
4447
- } else if (!y && M(t)) {
4461
+ } else if (!b && M(t)) {
4448
4462
  const z = N[0], ve = N.indexOf(`
4449
- `), Tt = ve !== -1, zi = i.inFlow ?? t.flow ?? t.items.length === 0;
4450
- if (Tt || !zi) {
4451
- let Ot = !1;
4452
- if (Tt && (z === "&" || z === "!")) {
4463
+ `), Vt = ve !== -1, zi = i.inFlow ?? t.flow ?? t.items.length === 0;
4464
+ if (Vt || !zi) {
4465
+ let Lt = !1;
4466
+ if (Vt && (z === "&" || z === "!")) {
4453
4467
  let ae = N.indexOf(" ");
4454
- z === "&" && ae !== -1 && ae < ve && N[ae + 1] === "!" && (ae = N.indexOf(" ", ae + 1)), (ae === -1 || ve < ae) && (Ot = !0);
4468
+ z === "&" && ae !== -1 && ae < ve && N[ae + 1] === "!" && (ae = N.indexOf(" ", ae + 1)), (ae === -1 || ve < ae) && (Lt = !0);
4455
4469
  }
4456
- Ot || (G = `
4470
+ Lt || (W = `
4457
4471
  ${i.indent}`);
4458
4472
  }
4459
4473
  } else (N === "" || N[0] === `
4460
- `) && (G = "");
4461
- return b += G + N, i.inFlow ? E && s && s() : A && !E ? b += de(b, i.indent, c(A)) : h && r && r(), b;
4474
+ `) && (W = "");
4475
+ return y += W + N, i.inFlow ? E && s && s() : A && !E ? y += de(y, i.indent, c(A)) : f && r && r(), y;
4462
4476
  }
4463
- function br(e, t) {
4477
+ function vr(e, t) {
4464
4478
  (e === "debug" || e === "warn") && console.warn(t);
4465
4479
  }
4466
- const Te = "<<", at = {
4467
- identify: (e) => e === Te || typeof e == "symbol" && e.description === Te,
4480
+ const Oe = "<<", ut = {
4481
+ identify: (e) => e === Oe || typeof e == "symbol" && e.description === Oe,
4468
4482
  default: "key",
4469
4483
  tag: "tag:yaml.org,2002:merge",
4470
4484
  test: /^<<$/,
4471
- resolve: () => Object.assign(new P(Symbol(Te)), {
4485
+ resolve: () => Object.assign(new P(Symbol(Oe)), {
4472
4486
  addToJSMap: qi
4473
4487
  }),
4474
- stringify: () => Te
4475
- }, xr = (e, t) => (at.identify(t) || T(t) && (!t.type || t.type === P.PLAIN) && at.identify(t.value)) && e?.doc.schema.tags.some((i) => i.tag === at.tag && i.default);
4488
+ stringify: () => Oe
4489
+ }, _r = (e, t) => (ut.identify(t) || T(t) && (!t.type || t.type === P.PLAIN) && ut.identify(t.value)) && e?.doc.schema.tags.some((i) => i.tag === ut.tag && i.default);
4476
4490
  function qi(e, t, i) {
4477
- if (i = e && he(i) ? i.resolve(e.doc) : i, At(i))
4491
+ if (i = e && he(i) ? i.resolve(e.doc) : i, Et(i))
4478
4492
  for (const s of i.items)
4479
- ot(e, t, s);
4493
+ lt(e, t, s);
4480
4494
  else if (Array.isArray(i))
4481
4495
  for (const s of i)
4482
- ot(e, t, s);
4496
+ lt(e, t, s);
4483
4497
  else
4484
- ot(e, t, i);
4498
+ lt(e, t, i);
4485
4499
  }
4486
- function ot(e, t, i) {
4500
+ function lt(e, t, i) {
4487
4501
  const s = e && he(i) ? i.resolve(e.doc) : i;
4488
4502
  if (!Di(s))
4489
4503
  throw new Error("Merge sources must be maps or map aliases");
@@ -4497,10 +4511,10 @@ function ot(e, t, i) {
4497
4511
  });
4498
4512
  return t;
4499
4513
  }
4500
- function Gi(e, t, { key: i, value: s }) {
4514
+ function Wi(e, t, { key: i, value: s }) {
4501
4515
  if (R(i) && i.addToJSMap)
4502
4516
  i.addToJSMap(e, t, s);
4503
- else if (xr(e, i))
4517
+ else if (_r(e, i))
4504
4518
  qi(e, t, s);
4505
4519
  else {
4506
4520
  const r = K(i, "", e);
@@ -4509,7 +4523,7 @@ function Gi(e, t, { key: i, value: s }) {
4509
4523
  else if (t instanceof Set)
4510
4524
  t.add(r);
4511
4525
  else {
4512
- const n = vr(i, r, e), o = K(s, n, e);
4526
+ const n = kr(i, r, e), o = K(s, n, e);
4513
4527
  n in t ? Object.defineProperty(t, n, {
4514
4528
  value: o,
4515
4529
  writable: !0,
@@ -4520,13 +4534,13 @@ function Gi(e, t, { key: i, value: s }) {
4520
4534
  }
4521
4535
  return t;
4522
4536
  }
4523
- function vr(e, t, i) {
4537
+ function kr(e, t, i) {
4524
4538
  if (t === null)
4525
4539
  return "";
4526
4540
  if (typeof t != "object")
4527
4541
  return String(t);
4528
4542
  if (R(e) && i?.doc) {
4529
- const s = dr(i.doc, {});
4543
+ const s = gr(i.doc, {});
4530
4544
  s.anchors = /* @__PURE__ */ new Set();
4531
4545
  for (const n of i.anchors.keys())
4532
4546
  s.anchors.add(n.anchor);
@@ -4534,14 +4548,14 @@ function vr(e, t, i) {
4534
4548
  const r = e.toString(s);
4535
4549
  if (!i.mapKeyWarned) {
4536
4550
  let n = JSON.stringify(r);
4537
- n.length > 40 && (n = n.substring(0, 36) + '..."'), br(i.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${n}. Set mapAsMap: true to use object keys.`), i.mapKeyWarned = !0;
4551
+ n.length > 40 && (n = n.substring(0, 36) + '..."'), vr(i.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${n}. Set mapAsMap: true to use object keys.`), i.mapKeyWarned = !0;
4538
4552
  }
4539
4553
  return r;
4540
4554
  }
4541
4555
  return JSON.stringify(t);
4542
4556
  }
4543
- function Et(e, t, i) {
4544
- const s = Ue(e, void 0, i), r = Ue(t, void 0, i);
4557
+ function Nt(e, t, i) {
4558
+ const s = $e(e, void 0, i), r = $e(t, void 0, i);
4545
4559
  return new Y(s, r);
4546
4560
  }
4547
4561
  class Y {
@@ -4554,48 +4568,48 @@ class Y {
4554
4568
  }
4555
4569
  toJSON(t, i) {
4556
4570
  const s = i?.mapAsMap ? /* @__PURE__ */ new Map() : {};
4557
- return Gi(i, s, this);
4571
+ return Wi(i, s, this);
4558
4572
  }
4559
4573
  toString(t, i, s) {
4560
- return t?.doc ? yr(this, t, i, s) : JSON.stringify(this);
4574
+ return t?.doc ? xr(this, t, i, s) : JSON.stringify(this);
4561
4575
  }
4562
4576
  }
4563
- function Wi(e, t, i) {
4564
- return (t.inFlow ?? e.flow ? kr : _r)(e, t, i);
4577
+ function Gi(e, t, i) {
4578
+ return (t.inFlow ?? e.flow ? wr : Sr)(e, t, i);
4565
4579
  }
4566
- function _r({ comment: e, items: t }, i, { blockItemPrefix: s, flowChars: r, itemIndent: n, onChompKeep: o, onComment: u }) {
4567
- const { indent: l, options: { commentString: c } } = i, p = Object.assign({}, i, { indent: n, type: null });
4568
- let f = !1;
4580
+ function Sr({ comment: e, items: t }, i, { blockItemPrefix: s, flowChars: r, itemIndent: n, onChompKeep: o, onComment: u }) {
4581
+ const { indent: l, options: { commentString: c } } = i, h = Object.assign({}, i, { indent: n, type: null });
4582
+ let p = !1;
4569
4583
  const d = [];
4570
4584
  for (let x = 0; x < t.length; ++x) {
4571
- const h = t[x];
4572
- let b = null;
4573
- if (R(h))
4574
- !f && h.spaceBefore && d.push(""), qe(i, d, h.commentBefore, f), h.comment && (b = h.comment);
4575
- else if (V(h)) {
4576
- const C = R(h.key) ? h.key : null;
4577
- C && (!f && C.spaceBefore && d.push(""), qe(i, d, C.commentBefore, f));
4585
+ const f = t[x];
4586
+ let y = null;
4587
+ if (R(f))
4588
+ !p && f.spaceBefore && d.push(""), We(i, d, f.commentBefore, p), f.comment && (y = f.comment);
4589
+ else if (V(f)) {
4590
+ const C = R(f.key) ? f.key : null;
4591
+ C && (!p && C.spaceBefore && d.push(""), We(i, d, C.commentBefore, p));
4578
4592
  }
4579
- f = !1;
4580
- let w = $e(h, p, () => b = null, () => f = !0);
4581
- b && (w += de(w, n, c(b))), f && b && (f = !1), d.push(s + w);
4593
+ p = !1;
4594
+ let w = qe(f, h, () => y = null, () => p = !0);
4595
+ y && (w += de(w, n, c(y))), p && y && (p = !1), d.push(s + w);
4582
4596
  }
4583
- let y;
4597
+ let b;
4584
4598
  if (d.length === 0)
4585
- y = r.start + r.end;
4599
+ b = r.start + r.end;
4586
4600
  else {
4587
- y = d[0];
4601
+ b = d[0];
4588
4602
  for (let x = 1; x < d.length; ++x) {
4589
- const h = d[x];
4590
- y += h ? `
4591
- ${l}${h}` : `
4603
+ const f = d[x];
4604
+ b += f ? `
4605
+ ${l}${f}` : `
4592
4606
  `;
4593
4607
  }
4594
4608
  }
4595
- return e ? (y += `
4596
- ` + Ie(c(e), l), u && u()) : f && o && o(), y;
4609
+ return e ? (b += `
4610
+ ` + Ie(c(e), l), u && u()) : p && o && o(), b;
4597
4611
  }
4598
- function kr({ items: e }, t, { flowChars: i, itemIndent: s }) {
4612
+ function wr({ items: e }, t, { flowChars: i, itemIndent: s }) {
4599
4613
  const { indent: r, indentStep: n, flowCollectionPadding: o, options: { commentString: u } } = t;
4600
4614
  s += n;
4601
4615
  const l = Object.assign({}, t, {
@@ -4603,43 +4617,43 @@ function kr({ items: e }, t, { flowChars: i, itemIndent: s }) {
4603
4617
  inFlow: !0,
4604
4618
  type: null
4605
4619
  });
4606
- let c = !1, p = 0;
4607
- const f = [];
4620
+ let c = !1, h = 0;
4621
+ const p = [];
4608
4622
  for (let x = 0; x < e.length; ++x) {
4609
- const h = e[x];
4610
- let b = null;
4611
- if (R(h))
4612
- h.spaceBefore && f.push(""), qe(t, f, h.commentBefore, !1), h.comment && (b = h.comment);
4613
- else if (V(h)) {
4614
- const C = R(h.key) ? h.key : null;
4615
- C && (C.spaceBefore && f.push(""), qe(t, f, C.commentBefore, !1), C.comment && (c = !0));
4616
- const A = R(h.value) ? h.value : null;
4617
- A ? (A.comment && (b = A.comment), A.commentBefore && (c = !0)) : h.value == null && C?.comment && (b = C.comment);
4623
+ const f = e[x];
4624
+ let y = null;
4625
+ if (R(f))
4626
+ f.spaceBefore && p.push(""), We(t, p, f.commentBefore, !1), f.comment && (y = f.comment);
4627
+ else if (V(f)) {
4628
+ const C = R(f.key) ? f.key : null;
4629
+ C && (C.spaceBefore && p.push(""), We(t, p, C.commentBefore, !1), C.comment && (c = !0));
4630
+ const A = R(f.value) ? f.value : null;
4631
+ A ? (A.comment && (y = A.comment), A.commentBefore && (c = !0)) : f.value == null && C?.comment && (y = C.comment);
4618
4632
  }
4619
- b && (c = !0);
4620
- let w = $e(h, l, () => b = null);
4621
- x < e.length - 1 && (w += ","), b && (w += de(w, s, u(b))), !c && (f.length > p || w.includes(`
4622
- `)) && (c = !0), f.push(w), p = f.length;
4623
- }
4624
- const { start: d, end: y } = i;
4625
- if (f.length === 0)
4626
- return d + y;
4633
+ y && (c = !0);
4634
+ let w = qe(f, l, () => y = null);
4635
+ x < e.length - 1 && (w += ","), y && (w += de(w, s, u(y))), !c && (p.length > h || w.includes(`
4636
+ `)) && (c = !0), p.push(w), h = p.length;
4637
+ }
4638
+ const { start: d, end: b } = i;
4639
+ if (p.length === 0)
4640
+ return d + b;
4627
4641
  if (!c) {
4628
- const x = f.reduce((h, b) => h + b.length + 2, 2);
4642
+ const x = p.reduce((f, y) => f + y.length + 2, 2);
4629
4643
  c = t.options.lineWidth > 0 && x > t.options.lineWidth;
4630
4644
  }
4631
4645
  if (c) {
4632
4646
  let x = d;
4633
- for (const h of f)
4634
- x += h ? `
4635
- ${n}${r}${h}` : `
4647
+ for (const f of p)
4648
+ x += f ? `
4649
+ ${n}${r}${f}` : `
4636
4650
  `;
4637
4651
  return `${x}
4638
- ${r}${y}`;
4652
+ ${r}${b}`;
4639
4653
  } else
4640
- return `${d}${o}${f.join(" ")}${o}${y}`;
4654
+ return `${d}${o}${p.join(" ")}${o}${b}`;
4641
4655
  }
4642
- function qe({ indent: e, options: { commentString: t } }, i, s, r) {
4656
+ function We({ indent: e, options: { commentString: t } }, i, s, r) {
4643
4657
  if (s && r && (s = s.replace(/^\n+/, "")), s) {
4644
4658
  const n = Ie(t(s), e);
4645
4659
  i.push(n.trimStart());
@@ -4668,7 +4682,7 @@ class fe extends Ui {
4668
4682
  c = n.call(i, l, c);
4669
4683
  else if (Array.isArray(n) && !n.includes(l))
4670
4684
  return;
4671
- (c !== void 0 || r) && o.items.push(Et(l, c, s));
4685
+ (c !== void 0 || r) && o.items.push(Nt(l, c, s));
4672
4686
  };
4673
4687
  if (i instanceof Map)
4674
4688
  for (const [l, c] of i)
@@ -4721,7 +4735,7 @@ class fe extends Ui {
4721
4735
  const r = s ? new s() : i?.mapAsMap ? /* @__PURE__ */ new Map() : {};
4722
4736
  i?.onCreate && i.onCreate(r);
4723
4737
  for (const n of this.items)
4724
- Gi(i, r, n);
4738
+ Wi(i, r, n);
4725
4739
  return r;
4726
4740
  }
4727
4741
  toString(t, i, s) {
@@ -4730,7 +4744,7 @@ class fe extends Ui {
4730
4744
  for (const r of this.items)
4731
4745
  if (!V(r))
4732
4746
  throw new Error(`Map items must all be pairs; found ${JSON.stringify(r)} instead`);
4733
- return !t.allNullValues && this.hasAllNullValues(!1) && (t = Object.assign({}, t, { allNullValues: !0 })), Wi(this, t, {
4747
+ return !t.allNullValues && this.hasAllNullValues(!1) && (t = Object.assign({}, t, { allNullValues: !0 })), Gi(this, t, {
4734
4748
  blockItemPrefix: "",
4735
4749
  flowChars: { start: "{", end: "}" },
4736
4750
  itemIndent: t.indent || "",
@@ -4744,7 +4758,7 @@ class Ki extends Ui {
4744
4758
  return "tag:yaml.org,2002:seq";
4745
4759
  }
4746
4760
  constructor(t) {
4747
- super(Ne, t), this.items = [];
4761
+ super(Te, t), this.items = [];
4748
4762
  }
4749
4763
  add(t) {
4750
4764
  this.items.push(t);
@@ -4758,11 +4772,11 @@ class Ki extends Ui {
4758
4772
  * @returns `true` if the item was found and removed.
4759
4773
  */
4760
4774
  delete(t) {
4761
- const i = Oe(t);
4775
+ const i = Ve(t);
4762
4776
  return typeof i != "number" ? !1 : this.items.splice(i, 1).length > 0;
4763
4777
  }
4764
4778
  get(t, i) {
4765
- const s = Oe(t);
4779
+ const s = Ve(t);
4766
4780
  if (typeof s != "number")
4767
4781
  return;
4768
4782
  const r = this.items[s];
@@ -4775,7 +4789,7 @@ class Ki extends Ui {
4775
4789
  * It may be wrapped in a `Scalar`.
4776
4790
  */
4777
4791
  has(t) {
4778
- const i = Oe(t);
4792
+ const i = Ve(t);
4779
4793
  return typeof i == "number" && i < this.items.length;
4780
4794
  }
4781
4795
  /**
@@ -4786,7 +4800,7 @@ class Ki extends Ui {
4786
4800
  * It may be wrapped in a `Scalar`.
4787
4801
  */
4788
4802
  set(t, i) {
4789
- const s = Oe(t);
4803
+ const s = Ve(t);
4790
4804
  if (typeof s != "number")
4791
4805
  throw new Error(`Expected a valid index, not ${t}.`);
4792
4806
  const r = this.items[s];
@@ -4801,7 +4815,7 @@ class Ki extends Ui {
4801
4815
  return s;
4802
4816
  }
4803
4817
  toString(t, i, s) {
4804
- return t ? Wi(this, t, {
4818
+ return t ? Gi(this, t, {
4805
4819
  blockItemPrefix: "- ",
4806
4820
  flowChars: { start: "[", end: "]" },
4807
4821
  itemIndent: (t.indent || "") + " ",
@@ -4818,17 +4832,17 @@ class Ki extends Ui {
4818
4832
  const l = i instanceof Set ? u : String(o++);
4819
4833
  u = r.call(i, l, u);
4820
4834
  }
4821
- n.items.push(Ue(u, void 0, s));
4835
+ n.items.push($e(u, void 0, s));
4822
4836
  }
4823
4837
  }
4824
4838
  return n;
4825
4839
  }
4826
4840
  }
4827
- function Oe(e) {
4841
+ function Ve(e) {
4828
4842
  let t = T(e) ? e.value : e;
4829
4843
  return t && typeof t == "string" && (t = Number(t)), typeof t == "number" && Number.isInteger(t) && t >= 0 ? t : null;
4830
4844
  }
4831
- function Sr(e, t, i) {
4845
+ function Cr(e, t, i) {
4832
4846
  const { replacer: s } = i, r = new Ki(e);
4833
4847
  r.tag = "tag:yaml.org,2002:pairs";
4834
4848
  let n = 0;
@@ -4849,13 +4863,13 @@ function Sr(e, t, i) {
4849
4863
  throw new TypeError(`Expected tuple with one key, not ${c.length} keys`);
4850
4864
  } else
4851
4865
  u = o;
4852
- r.items.push(Et(u, l, i));
4866
+ r.items.push(Nt(u, l, i));
4853
4867
  }
4854
4868
  return r;
4855
4869
  }
4856
- class Pt extends Ki {
4870
+ class Tt extends Ki {
4857
4871
  constructor() {
4858
- super(), this.add = fe.prototype.add.bind(this), this.delete = fe.prototype.delete.bind(this), this.get = fe.prototype.get.bind(this), this.has = fe.prototype.has.bind(this), this.set = fe.prototype.set.bind(this), this.tag = Pt.tag;
4872
+ super(), this.add = fe.prototype.add.bind(this), this.delete = fe.prototype.delete.bind(this), this.get = fe.prototype.get.bind(this), this.has = fe.prototype.has.bind(this), this.set = fe.prototype.set.bind(this), this.tag = Tt.tag;
4859
4873
  }
4860
4874
  /**
4861
4875
  * If `ctx` is given, the return type is actually `Map<unknown, unknown>`,
@@ -4875,14 +4889,14 @@ class Pt extends Ki {
4875
4889
  return s;
4876
4890
  }
4877
4891
  static from(t, i, s) {
4878
- const r = Sr(t, i, s), n = new this();
4892
+ const r = Cr(t, i, s), n = new this();
4879
4893
  return n.items = r.items, n;
4880
4894
  }
4881
4895
  }
4882
- Pt.tag = "tag:yaml.org,2002:omap";
4883
- class Nt extends fe {
4896
+ Tt.tag = "tag:yaml.org,2002:omap";
4897
+ class Ot extends fe {
4884
4898
  constructor(t) {
4885
- super(t), this.tag = Nt.tag;
4899
+ super(t), this.tag = Ot.tag;
4886
4900
  }
4887
4901
  add(t) {
4888
4902
  let i;
@@ -4916,27 +4930,29 @@ class Nt extends fe {
4916
4930
  const { replacer: r } = s, n = new this(t);
4917
4931
  if (i && Symbol.iterator in Object(i))
4918
4932
  for (let o of i)
4919
- typeof r == "function" && (o = r.call(i, o, o)), n.items.push(Et(o, null, s));
4933
+ typeof r == "function" && (o = r.call(i, o, o)), n.items.push(Nt(o, null, s));
4920
4934
  return n;
4921
4935
  }
4922
4936
  }
4923
- Nt.tag = "tag:yaml.org,2002:set";
4937
+ Ot.tag = "tag:yaml.org,2002:set";
4924
4938
  new Set("0123456789ABCDEFabcdef");
4925
4939
  new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");
4926
4940
  new Set(",[]{}");
4927
4941
  new Set(` ,[]{}
4928
4942
  \r `);
4929
4943
  export {
4930
- Pr as a,
4931
- Ir as b,
4932
- Nr as c,
4933
- Or as d,
4934
- Vr as e,
4935
- Cr as f,
4936
- ts as g,
4937
- Ar as h,
4938
- wr as i,
4939
- Er as p,
4940
- mt as u,
4941
- Tr as v
4944
+ Nr as a,
4945
+ Er as b,
4946
+ Tr as c,
4947
+ Vr as d,
4948
+ Lr as e,
4949
+ Ar as f,
4950
+ ss as g,
4951
+ qt as h,
4952
+ Xi as i,
4953
+ Ir as j,
4954
+ Pr as p,
4955
+ Yi as s,
4956
+ Ee as u,
4957
+ Or as v
4942
4958
  };