@airalogy/aimd-editor 1.12.0 → 1.13.1

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.
Files changed (41) hide show
  1. package/README.md +24 -0
  2. package/README.zh-CN.md +24 -0
  3. package/dist/AimdEditorTopBar.vue_vue_type_script_setup_true_lang-x8F65dCh.js +2277 -0
  4. package/dist/{AimdSourceEditor.vue_vue_type_script_setup_true_lang-CJJTlVZ7.js → AimdSourceEditor.vue_vue_type_script_setup_true_lang-m07PHAyw.js} +29 -27
  5. package/dist/{AimdWysiwygEditor.vue_vue_type_script_setup_true_lang-Dme3UQEf.js → AimdWysiwygEditor.vue_vue_type_script_setup_true_lang-8nbo78nG.js} +6118 -5822
  6. package/dist/aimd-editor.css +1 -1
  7. package/dist/authoring.js +15 -8
  8. package/dist/embedded.js +2 -2
  9. package/dist/fields-DZsN-S-N.js +51 -0
  10. package/dist/fig-DzERhLmG.js +219 -0
  11. package/dist/index.js +54 -45
  12. package/dist/{index-BqB8Xukp.js → lexer-Dj-IVtCT.js} +932 -1053
  13. package/dist/vue.js +28 -26
  14. package/dist/wysiwyg.js +1 -1
  15. package/package.json +4 -3
  16. package/src/__tests__/check-authoring.test.ts +46 -0
  17. package/src/__tests__/code-block-metadata.test.ts +40 -0
  18. package/src/__tests__/input-authoring.test.ts +93 -0
  19. package/src/__tests__/input-dialog-layout.test.ts +52 -0
  20. package/src/__tests__/input-toolbar.test.ts +88 -0
  21. package/src/__tests__/multiline-field-roundtrip.test.ts +70 -0
  22. package/src/__tests__/quoted-inline-roundtrip.test.ts +80 -0
  23. package/src/__tests__/step-authoring.test.ts +62 -0
  24. package/src/__tests__/type-picker.test.ts +48 -0
  25. package/src/authoring/fields.ts +86 -0
  26. package/src/authoring/index.ts +1 -0
  27. package/src/vue/AimdEditor.vue +112 -0
  28. package/src/vue/AimdEditorToolbar.vue +4 -1
  29. package/src/vue/AimdFieldDialog.vue +14 -9
  30. package/src/vue/AimdInputFieldDialog.vue +166 -0
  31. package/src/vue/AimdInputToolbar.vue +77 -0
  32. package/src/vue/AimdStepFieldDialog.vue +112 -0
  33. package/src/vue/AimdTypePicker.vue +42 -0
  34. package/src/vue/AimdWysiwygEditor.vue +24 -2
  35. package/src/vue/aimdInlineMarkdownNormalization.ts +37 -5
  36. package/src/vue/index.ts +2 -0
  37. package/src/vue/locales.ts +94 -7
  38. package/src/vue/milkdown-aimd-plugin.ts +148 -16
  39. package/src/vue/milkdown-code-block-metadata.ts +46 -0
  40. package/src/vue/types.ts +6 -4
  41. package/dist/AimdEditorTopBar.vue_vue_type_script_setup_true_lang-BXsn4cFX.js +0 -1171
@@ -1,75 +1,91 @@
1
- const Bi = /* @__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"},"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."},"CurrentProtocolId":{"type_name":"CurrentProtocolId","import_from":"airalogy.types","storage_kind":"scalar","type":"string","description":"The ID of the current Airalogy Protocol."},"CurrentRecordId":{"type_name":"CurrentRecordId","import_from":"airalogy.types","storage_kind":"scalar","type":"string","description":"The ID of the current Airalogy Record."},"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."},"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."},"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."},"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."},"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-"]},"ChineseEducationLevel":{"type_name":"ChineseEducationLevel","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"文化程度","description":"中国居民信息登记中常用的文化程度分类。","enum":["无学历","小学","初中","高中","中专","大专","本科","硕士","博士"]},"ChineseEthnicGroup":{"type_name":"ChineseEthnicGroup","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"民族","description":"中国国务院公布的 56 个法定民族之一。","enum":["汉族","蒙古族","回族","藏族","维吾尔族","苗族","彝族","壮族","布依族","朝鲜族","满族","侗族","瑶族","白族","土家族","哈尼族","哈萨克族","傣族","黎族","傈僳族","佤族","畲族","高山族","拉祜族","水族","东乡族","纳西族","景颇族","柯尔克孜族","土族","达斡尔族","仫佬族","羌族","布朗族","撒拉族","毛南族","仡佬族","锡伯族","阿昌族","普米族","塔吉克族","怒族","乌孜别克族","俄罗斯族","鄂温克族","德昂族","保安族","裕固族","京族","塔塔尔族","独龙族","鄂伦春族","赫哲族","门巴族","珞巴族","基诺族"]},"ChineseGender":{"type_name":"ChineseGender","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"性别","description":"中国居民信息登记中常用的性别分类。","enum":["男","女"]},"ChineseMaritalStatus":{"type_name":"ChineseMaritalStatus","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"婚姻状况","description":"中国居民信息登记中常用的婚姻状况分类。","enum":["未婚","已婚","丧偶","离婚","再婚"]},"ChineseProvinceLevelRegion":{"type_name":"ChineseProvinceLevelRegion","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"省级行政区","description":"中国现行省级行政区(省、自治区、直辖市、特别行政区)。","enum":["北京","天津","上海","重庆","河北","山西","辽宁","吉林","黑龙江","江苏","浙江","安徽","福建","江西","山东","河南","湖北","湖南","广东","海南","四川","贵州","云南","陕西","甘肃","青海","台湾","西藏","内蒙古","广西","宁夏","新疆","香港","澳门"]},"AiralogyMarkdown":{"type_name":"AiralogyMarkdown","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"markdown","type":"string","description":"An Airalogy Markdown string"},"RecordId":{"type_name":"RecordId","import_from":"airalogy.types","storage_kind":"scalar","type":"string"},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"Recommended":{"type_name":"Recommended","import_from":"airalogy.types","storage_kind":"scalar","type":"object"},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"ATCG":{"type_name":"ATCG","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"dna-text","type":"string"},"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."},"SnakeStr":{"type_name":"SnakeStr","import_from":"airalogy.types","storage_kind":"scalar","type":"string"},"VersionStr":{"type_name":"VersionStr","import_from":"airalogy.types","storage_kind":"scalar","type":"string"},"ProtocolId":{"type_name":"ProtocolId","import_from":"airalogy.types","storage_kind":"scalar","type":"string"}}'), Mi = {
2
- types: Bi
3
- }, ji = Mi, $i = Object.fromEntries(
4
- Object.values(ji.types).flatMap((e) => [
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
+ types: Ji
3
+ }, Hi = /* @__PURE__ */ new Set(["none", "nonetype", "null", "undefined"]);
4
+ function Vt(e, t) {
5
+ const i = [];
6
+ let s = 0, r = 0, n = "", o = !1;
7
+ for (let u = 0; u < e.length; u += 1) {
8
+ const l = e[u];
9
+ n ? o ? o = !1 : l === "\\" ? o = !0 : l === n && (n = "") : l === '"' || l === "'" ? n = l : "[({".includes(l) ? r += 1 : "])}".includes(l) ? r -= 1 : l === t && r === 0 && (i.push(e.slice(s, u).trim()), s = u + 1);
10
+ }
11
+ return i.push(e.slice(s).trim()), i;
12
+ }
13
+ function Wt(e) {
14
+ const t = Vt(e, "|");
15
+ if (t.length > 1) return { union: t };
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 };
18
+ }
19
+ function Kt(e) {
20
+ return Hi.has(e.toLowerCase());
21
+ }
22
+ function mt(e) {
23
+ let t = typeof e == "string" ? e.trim() : "";
24
+ for (let i = 0; i < 32; i += 1) {
25
+ const { optional: s, union: r } = Wt(t);
26
+ if (s !== void 0 && s !== t) {
27
+ t = s;
28
+ continue;
29
+ }
30
+ const n = r.filter((o) => !Kt(o));
31
+ if (r.length > 1 && n.length === 1 && n[0]) {
32
+ t = n[0];
33
+ continue;
34
+ }
35
+ break;
36
+ }
37
+ return t;
38
+ }
39
+ function wr(e) {
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);
43
+ }
44
+ const zt = Qi, Lt = Object.fromEntries(
45
+ Object.values(zt.types).flatMap((e) => [
5
46
  [e.type_name, e],
6
47
  ...(e.aliases ?? []).map((t) => [t, e])
7
48
  ])
8
- ), Ui = /* @__PURE__ */ new Set(["None", "none", "null", "Null", "undefined"]);
9
- function qi(e) {
49
+ );
50
+ function Xi(e) {
10
51
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null;
11
52
  }
12
- function Wi(e) {
13
- return Array.isArray(e) ? e.filter(qi) : [];
53
+ function Yi(e) {
54
+ return Array.isArray(e) ? e.filter(Xi) : [];
14
55
  }
15
- function Gi(e) {
56
+ function Zi(e) {
16
57
  const t = e.trim();
17
58
  if (!/^(?:(?:typing|typing_extensions|airalogy\.types)\.)?[A-Za-z_][A-Za-z0-9_]*$/.test(t))
18
59
  return;
19
60
  const i = t.split(".");
20
61
  return i[i.length - 1];
21
62
  }
22
- function Ki(e) {
23
- const t = [];
24
- let i = "", s = 0;
25
- for (const n of e) {
26
- if (n === "[") {
27
- s += 1, i += n;
28
- continue;
29
- }
30
- if (n === "]") {
31
- s = Math.max(0, s - 1), i += n;
32
- continue;
33
- }
34
- if (n === "|" && s === 0) {
35
- const o = i.trim();
36
- o && t.push(o), i = "";
37
- continue;
38
- }
39
- i += n;
40
- }
41
- const r = i.trim();
42
- return r && t.push(r), t;
43
- }
44
- function zi(e) {
45
- const t = e.trim().match(/^(?:(?:typing|typing_extensions)\.)?Optional\s*\[([\s\S]+)\]$/);
46
- return t ? t[1].trim() : e.trim();
63
+ function es(e) {
64
+ if (e)
65
+ return Zi(mt(e));
47
66
  }
48
- function Ji(e) {
49
- if (!e)
50
- return;
51
- const t = zi(e), i = Ki(t), s = (i.length > 0 ? i : [t]).map(Gi).filter((r) => typeof r == "string" && !Ui.has(r));
52
- return s.length === 1 ? s[0] : void 0;
67
+ function ts(e) {
68
+ const t = es(e);
69
+ return t && Object.prototype.hasOwnProperty.call(Lt, t) ? Lt[t] : void 0;
53
70
  }
54
- function Qi(e) {
55
- const t = Ji(e);
56
- return t ? $i[t] : void 0;
71
+ function Cr() {
72
+ return Object.keys(zt.types);
57
73
  }
58
- function Hi(e) {
59
- return Wi(Qi(e)?.enum);
74
+ function is(e) {
75
+ return Yi(ts(e)?.enum);
60
76
  }
61
- var Xi = [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], $t = [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], Yi = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Ut = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", et = {
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 = {
62
78
  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",
63
79
  5: "class enum extends super const export import",
64
80
  6: "enum",
65
81
  strict: "implements interface let package private protected public static yield",
66
82
  strictBind: "eval arguments"
67
- }, tt = "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", Zi = {
68
- 5: tt,
69
- "5module": tt + " export import",
70
- 6: tt + " const class extends export import super"
71
- }, es = /^in(stanceof)?$/, ts = new RegExp("[" + Ut + "]"), is = new RegExp("[" + Ut + Yi + "]");
72
- function at(e, t) {
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) {
73
89
  for (var i = 65536, s = 0; s < t.length; s += 2) {
74
90
  if (i += t[s], i > e)
75
91
  return !1;
@@ -79,47 +95,47 @@ function at(e, t) {
79
95
  return !1;
80
96
  }
81
97
  function J(e, t) {
82
- return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && ts.test(String.fromCharCode(e)) : t === !1 ? !1 : at(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);
83
99
  }
84
100
  function se(e, t) {
85
- 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 && is.test(String.fromCharCode(e)) : t === !1 ? !1 : at(e, $t) || at(e, Xi);
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);
86
102
  }
87
- var k = function(t, i) {
103
+ var S = function(t, i) {
88
104
  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;
89
105
  };
90
106
  function j(e, t) {
91
- return new k(e, { beforeExpr: !0, binop: t });
107
+ return new S(e, { beforeExpr: !0, binop: t });
92
108
  }
93
- var $ = { beforeExpr: !0 }, D = { startsExpr: !0 }, pt = {};
94
- function S(e, t) {
95
- return t === void 0 && (t = {}), t.keyword = e, pt[e] = new k(e, t);
109
+ var U = { beforeExpr: !0 }, D = { startsExpr: !0 }, gt = {};
110
+ function k(e, t) {
111
+ return t === void 0 && (t = {}), t.keyword = e, gt[e] = new S(e, t);
96
112
  }
97
113
  var a = {
98
- num: new k("num", D),
99
- regexp: new k("regexp", D),
100
- string: new k("string", D),
101
- name: new k("name", D),
102
- privateId: new k("privateId", D),
103
- eof: new k("eof"),
114
+ num: new S("num", D),
115
+ regexp: new S("regexp", D),
116
+ string: new S("string", D),
117
+ name: new S("name", D),
118
+ privateId: new S("privateId", D),
119
+ eof: new S("eof"),
104
120
  // Punctuation token types.
105
- bracketL: new k("[", { beforeExpr: !0, startsExpr: !0 }),
106
- bracketR: new k("]"),
107
- braceL: new k("{", { beforeExpr: !0, startsExpr: !0 }),
108
- braceR: new k("}"),
109
- parenL: new k("(", { beforeExpr: !0, startsExpr: !0 }),
110
- parenR: new k(")"),
111
- comma: new k(",", $),
112
- semi: new k(";", $),
113
- colon: new k(":", $),
114
- dot: new k("."),
115
- question: new k("?", $),
116
- questionDot: new k("?."),
117
- arrow: new k("=>", $),
118
- template: new k("template"),
119
- invalidTemplate: new k("invalidTemplate"),
120
- ellipsis: new k("...", $),
121
- backQuote: new k("`", D),
122
- dollarBraceL: new k("${", { beforeExpr: !0, startsExpr: !0 }),
121
+ bracketL: new S("[", { beforeExpr: !0, startsExpr: !0 }),
122
+ bracketR: new S("]"),
123
+ braceL: new S("{", { beforeExpr: !0, startsExpr: !0 }),
124
+ braceR: new S("}"),
125
+ parenL: new S("(", { beforeExpr: !0, startsExpr: !0 }),
126
+ parenR: new S(")"),
127
+ comma: new S(",", U),
128
+ semi: new S(";", U),
129
+ colon: new S(":", U),
130
+ dot: new S("."),
131
+ question: new S("?", U),
132
+ questionDot: new S("?."),
133
+ arrow: new S("=>", U),
134
+ template: new S("template"),
135
+ invalidTemplate: new S("invalidTemplate"),
136
+ ellipsis: new S("...", U),
137
+ backQuote: new S("`", D),
138
+ dollarBraceL: new S("${", { beforeExpr: !0, startsExpr: !0 }),
123
139
  // Operators. These carry several kinds of properties to help the
124
140
  // parser use them properly (the presence of these properties is
125
141
  // what categorizes them as operators).
@@ -133,10 +149,10 @@ var a = {
133
149
  // `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as
134
150
  // binary operators with a very low precedence, that should result
135
151
  // in AssignmentExpression nodes.
136
- eq: new k("=", { beforeExpr: !0, isAssign: !0 }),
137
- assign: new k("_=", { beforeExpr: !0, isAssign: !0 }),
138
- incDec: new k("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }),
139
- prefix: new k("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
152
+ eq: new S("=", { beforeExpr: !0, isAssign: !0 }),
153
+ assign: new S("_=", { beforeExpr: !0, isAssign: !0 }),
154
+ incDec: new S("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }),
155
+ prefix: new S("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
140
156
  logicalOR: j("||", 1),
141
157
  logicalAND: j("&&", 2),
142
158
  bitwiseOR: j("|", 3),
@@ -145,53 +161,53 @@ var a = {
145
161
  equality: j("==/!=/===/!==", 6),
146
162
  relational: j("</>/<=/>=", 7),
147
163
  bitShift: j("<</>>/>>>", 8),
148
- plusMin: new k("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }),
164
+ plusMin: new S("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }),
149
165
  modulo: j("%", 10),
150
166
  star: j("*", 10),
151
167
  slash: j("/", 10),
152
- starstar: new k("**", { beforeExpr: !0 }),
168
+ starstar: new S("**", { beforeExpr: !0 }),
153
169
  coalesce: j("??", 1),
154
170
  // Keyword token types.
155
- _break: S("break"),
156
- _case: S("case", $),
157
- _catch: S("catch"),
158
- _continue: S("continue"),
159
- _debugger: S("debugger"),
160
- _default: S("default", $),
161
- _do: S("do", { isLoop: !0, beforeExpr: !0 }),
162
- _else: S("else", $),
163
- _finally: S("finally"),
164
- _for: S("for", { isLoop: !0 }),
165
- _function: S("function", D),
166
- _if: S("if"),
167
- _return: S("return", $),
168
- _switch: S("switch"),
169
- _throw: S("throw", $),
170
- _try: S("try"),
171
- _var: S("var"),
172
- _const: S("const"),
173
- _while: S("while", { isLoop: !0 }),
174
- _with: S("with"),
175
- _new: S("new", { beforeExpr: !0, startsExpr: !0 }),
176
- _this: S("this", D),
177
- _super: S("super", D),
178
- _class: S("class", D),
179
- _extends: S("extends", $),
180
- _export: S("export"),
181
- _import: S("import", D),
182
- _null: S("null", D),
183
- _true: S("true", D),
184
- _false: S("false", D),
185
- _in: S("in", { beforeExpr: !0, binop: 7 }),
186
- _instanceof: S("instanceof", { beforeExpr: !0, binop: 7 }),
187
- _typeof: S("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
188
- _void: S("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
189
- _delete: S("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
190
- }, B = /\r\n?|\n|\u2028|\u2029/, ss = new RegExp(B.source, "g");
171
+ _break: k("break"),
172
+ _case: k("case", U),
173
+ _catch: k("catch"),
174
+ _continue: k("continue"),
175
+ _debugger: k("debugger"),
176
+ _default: k("default", U),
177
+ _do: k("do", { isLoop: !0, beforeExpr: !0 }),
178
+ _else: k("else", U),
179
+ _finally: k("finally"),
180
+ _for: k("for", { isLoop: !0 }),
181
+ _function: k("function", D),
182
+ _if: k("if"),
183
+ _return: k("return", U),
184
+ _switch: k("switch"),
185
+ _throw: k("throw", U),
186
+ _try: k("try"),
187
+ _var: k("var"),
188
+ _const: k("const"),
189
+ _while: k("while", { isLoop: !0 }),
190
+ _with: k("with"),
191
+ _new: k("new", { beforeExpr: !0, startsExpr: !0 }),
192
+ _this: k("this", D),
193
+ _super: k("super", D),
194
+ _class: k("class", D),
195
+ _extends: k("extends", U),
196
+ _export: k("export"),
197
+ _import: k("import", D),
198
+ _null: k("null", D),
199
+ _true: k("true", D),
200
+ _false: k("false", D),
201
+ _in: k("in", { beforeExpr: !0, binop: 7 }),
202
+ _instanceof: k("instanceof", { beforeExpr: !0, binop: 7 }),
203
+ _typeof: k("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
204
+ _void: k("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
205
+ _delete: k("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
206
+ }, B = /\r\n?|\n|\u2028|\u2029/, ls = new RegExp(B.source, "g");
191
207
  function ge(e) {
192
208
  return e === 10 || e === 13 || e === 8232 || e === 8233;
193
209
  }
194
- function qt(e, t, i) {
210
+ function Ht(e, t, i) {
195
211
  i === void 0 && (i = e.length);
196
212
  for (var s = t; s < i; s++) {
197
213
  var r = e.charCodeAt(s);
@@ -200,35 +216,35 @@ function qt(e, t, i) {
200
216
  }
201
217
  return -1;
202
218
  }
203
- var Wt = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, L = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Gt = Object.prototype, rs = Gt.hasOwnProperty, ns = Gt.toString, ye = Object.hasOwn || (function(e, t) {
204
- return rs.call(e, t);
205
- }), Ot = Array.isArray || (function(e) {
206
- return ns.call(e) === "[object Array]";
207
- }), Tt = /* @__PURE__ */ Object.create(null);
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);
208
224
  function ie(e) {
209
- return Tt[e] || (Tt[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
225
+ return Ft[e] || (Ft[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
210
226
  }
211
227
  function Z(e) {
212
228
  return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
213
229
  }
214
- var as = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, Ce = function(t, i) {
230
+ var fs = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, Ce = function(t, i) {
215
231
  this.line = t, this.column = i;
216
232
  };
217
233
  Ce.prototype.offset = function(t) {
218
234
  return new Ce(this.line, this.column + t);
219
235
  };
220
- var qe = function(t, i, s) {
236
+ var Ge = function(t, i, s) {
221
237
  this.start = i, this.end = s, t.sourceFile !== null && (this.source = t.sourceFile);
222
238
  };
223
- function Kt(e, t) {
239
+ function Zt(e, t) {
224
240
  for (var i = 1, s = 0; ; ) {
225
- var r = qt(e, s, t);
241
+ var r = Ht(e, s, t);
226
242
  if (r < 0)
227
243
  return new Ce(i, t - s);
228
244
  ++i, s = r;
229
245
  }
230
246
  }
231
- var ot = {
247
+ var lt = {
232
248
  // `ecmaVersion` indicates the ECMAScript version to parse. Must be
233
249
  // either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
234
250
  // (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"`
@@ -324,21 +340,21 @@ var ot = {
324
340
  // When enabled, parenthesized expressions are represented by
325
341
  // (non-standard) ParenthesizedExpression nodes
326
342
  preserveParens: !1
327
- }, Vt = !1;
328
- function os(e) {
343
+ }, Dt = !1;
344
+ function ps(e) {
329
345
  var t = {};
330
- for (var i in ot)
331
- t[i] = e && ye(e, i) ? e[i] : ot[i];
332
- if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!Vt && typeof console == "object" && console.warn && (Vt = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
333
- 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), Ot(t.onToken)) {
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)) {
334
350
  var s = t.onToken;
335
351
  t.onToken = function(r) {
336
352
  return s.push(r);
337
353
  };
338
354
  }
339
- return Ot(t.onComment) && (t.onComment = us(t, t.onComment)), t;
355
+ return Rt(t.onComment) && (t.onComment = ds(t, t.onComment)), t;
340
356
  }
341
- function us(e, t) {
357
+ function ds(e, t) {
342
358
  return function(i, s, r, n, o, u) {
343
359
  var l = {
344
360
  type: i ? "Block" : "Line",
@@ -346,22 +362,22 @@ function us(e, t) {
346
362
  start: r,
347
363
  end: n
348
364
  };
349
- e.locations && (l.loc = new qe(this, o, u)), e.ranges && (l.range = [r, n]), t.push(l);
365
+ e.locations && (l.loc = new Ge(this, o, u)), e.ranges && (l.range = [r, n]), t.push(l);
350
366
  };
351
367
  }
352
- var Ae = 1, be = 2, dt = 4, zt = 8, mt = 16, Jt = 32, We = 64, Qt = 128, le = 256, Ee = 512, Ge = Ae | be | le;
353
- function gt(e, t) {
354
- return be | (e ? dt : 0) | (t ? zt : 0);
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);
355
371
  }
356
- var Fe = 0, yt = 1, te = 2, Ht = 3, Xt = 4, Yt = 5, T = function(t, i, s) {
357
- this.options = t = os(t), this.sourceFile = t.sourceFile, this.keywords = ie(Zi[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
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]);
358
374
  var r = "";
359
- t.allowReserved !== !0 && (r = et[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (r += " await")), this.reservedWords = ie(r);
360
- var n = (r ? r + " " : "") + et.strict;
361
- this.reservedWordsStrict = ie(n), this.reservedWordsStrictBind = ie(n + " " + et.strictBind), this.input = String(i), this.containsEsc = !1, s ? (this.pos = s, this.lineStart = this.input.lastIndexOf(`
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(`
362
378
  `, 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 = [];
363
379
  }, 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 } };
364
- T.prototype.parse = function() {
380
+ O.prototype.parse = function() {
365
381
  var t = this.options.program || this.startNode();
366
382
  return this.nextToken(), this.parseTopLevel(t);
367
383
  };
@@ -369,18 +385,18 @@ Q.inFunction.get = function() {
369
385
  return (this.currentVarScope().flags & be) > 0;
370
386
  };
371
387
  Q.inGenerator.get = function() {
372
- return (this.currentVarScope().flags & zt) > 0;
388
+ return (this.currentVarScope().flags & ei) > 0;
373
389
  };
374
390
  Q.inAsync.get = function() {
375
- return (this.currentVarScope().flags & dt) > 0;
391
+ return (this.currentVarScope().flags & yt) > 0;
376
392
  };
377
393
  Q.canAwait.get = function() {
378
394
  for (var e = this.scopeStack.length - 1; e >= 0; e--) {
379
395
  var t = this.scopeStack[e], i = t.flags;
380
- if (i & (le | Ee))
396
+ if (i & (ce | Ee))
381
397
  return !1;
382
398
  if (i & be)
383
- return (i & dt) > 0;
399
+ return (i & yt) > 0;
384
400
  }
385
401
  return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
386
402
  };
@@ -389,7 +405,7 @@ Q.allowSuper.get = function() {
389
405
  return (t & We) > 0 || this.options.allowSuperOutsideMethod;
390
406
  };
391
407
  Q.allowDirectSuper.get = function() {
392
- return (this.currentThisScope().flags & Qt) > 0;
408
+ return (this.currentThisScope().flags & ii) > 0;
393
409
  };
394
410
  Q.treatFunctionsAsVar.get = function() {
395
411
  return this.treatFunctionsAsVarInScope(this.currentScope());
@@ -397,38 +413,38 @@ Q.treatFunctionsAsVar.get = function() {
397
413
  Q.allowNewDotTarget.get = function() {
398
414
  for (var e = this.scopeStack.length - 1; e >= 0; e--) {
399
415
  var t = this.scopeStack[e], i = t.flags;
400
- if (i & (le | Ee) || i & be && !(i & mt))
416
+ if (i & (ce | Ee) || i & be && !(i & bt))
401
417
  return !0;
402
418
  }
403
419
  return !1;
404
420
  };
405
421
  Q.inClassStaticBlock.get = function() {
406
- return (this.currentVarScope().flags & le) > 0;
422
+ return (this.currentVarScope().flags & ce) > 0;
407
423
  };
408
- T.extend = function() {
424
+ O.extend = function() {
409
425
  for (var t = [], i = arguments.length; i--; ) t[i] = arguments[i];
410
426
  for (var s = this, r = 0; r < t.length; r++)
411
427
  s = t[r](s);
412
428
  return s;
413
429
  };
414
- T.parse = function(t, i) {
430
+ O.parse = function(t, i) {
415
431
  return new this(i, t).parse();
416
432
  };
417
- T.parseExpressionAt = function(t, i, s) {
433
+ O.parseExpressionAt = function(t, i, s) {
418
434
  var r = new this(s, t, i);
419
435
  return r.nextToken(), r.parseExpression();
420
436
  };
421
- T.tokenizer = function(t, i) {
437
+ O.tokenizer = function(t, i) {
422
438
  return new this(i, t);
423
439
  };
424
- Object.defineProperties(T.prototype, Q);
425
- var F = T.prototype, ls = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
440
+ Object.defineProperties(O.prototype, Q);
441
+ var F = O.prototype, ms = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
426
442
  F.strictDirective = function(e) {
427
443
  if (this.options.ecmaVersion < 5)
428
444
  return !1;
429
445
  for (; ; ) {
430
446
  L.lastIndex = e, e += L.exec(this.input)[0].length;
431
- var t = ls.exec(this.input.slice(e));
447
+ var t = ms.exec(this.input.slice(e));
432
448
  if (!t)
433
449
  return !1;
434
450
  if ((t[1] || t[2]) === "use strict") {
@@ -471,7 +487,7 @@ F.expect = function(e) {
471
487
  F.unexpected = function(e) {
472
488
  this.raise(e ?? this.start, "Unexpected token");
473
489
  };
474
- var Ke = function() {
490
+ var ze = function() {
475
491
  this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
476
492
  };
477
493
  F.checkPatternErrors = function(e, t) {
@@ -495,7 +511,7 @@ F.checkYieldAwaitInDefaultParams = function() {
495
511
  F.isSimpleAssignTarget = function(e) {
496
512
  return e.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(e.expression) : e.type === "Identifier" || e.type === "MemberExpression";
497
513
  };
498
- var g = T.prototype;
514
+ var g = O.prototype;
499
515
  g.parseTopLevel = function(e) {
500
516
  var t = /* @__PURE__ */ Object.create(null);
501
517
  for (e.body || (e.body = []); this.type !== a.eof; ) {
@@ -509,7 +525,7 @@ g.parseTopLevel = function(e) {
509
525
  }
510
526
  return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType, this.finishNode(e, "Program");
511
527
  };
512
- var bt = { kind: "loop" }, cs = { kind: "switch" };
528
+ var _t = { kind: "loop" }, gs = { kind: "switch" };
513
529
  g.isLet = function(e) {
514
530
  if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
515
531
  return !1;
@@ -527,7 +543,7 @@ g.isLet = function(e) {
527
543
  if (s === 92 || s > 55295 && s < 56320)
528
544
  return !0;
529
545
  var n = this.input.slice(i, r);
530
- if (!es.test(n))
546
+ if (!as.test(n))
531
547
  return !0;
532
548
  }
533
549
  return !1;
@@ -626,8 +642,8 @@ g.parseStatement = function(e, t, i) {
626
642
  var c = this.isAwaitUsing(!1) ? "await using" : this.isUsing(!1) ? "using" : null;
627
643
  if (c)
628
644
  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");
629
- var f = this.value, h = this.parseExpression();
630
- return s === a.name && h.type === "Identifier" && this.eat(a.colon) ? this.parseLabeledStatement(r, f, h, e) : this.parseExpressionStatement(r, h);
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);
631
647
  }
632
648
  };
633
649
  g.parseBreakContinueStatement = function(e, t) {
@@ -644,12 +660,12 @@ g.parseDebuggerStatement = function(e) {
644
660
  return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
645
661
  };
646
662
  g.parseDoStatement = function(e) {
647
- return this.next(), this.labels.push(bt), 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");
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");
648
664
  };
649
665
  g.parseForStatement = function(e) {
650
666
  this.next();
651
667
  var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
652
- if (this.labels.push(bt), this.enterScope(0), this.expect(a.parenL), this.type === a.semi)
668
+ if (this.labels.push(_t), this.enterScope(0), this.expect(a.parenL), this.type === a.semi)
653
669
  return t > -1 && this.unexpected(t), this.parseFor(e, null);
654
670
  var i = this.isLet();
655
671
  if (this.type === a._var || this.type === a._const || i) {
@@ -661,14 +677,14 @@ g.parseForStatement = function(e) {
661
677
  var l = this.startNode();
662
678
  return this.next(), u === "await using" && this.next(), this.parseVar(l, !0, u), this.finishNode(l, "VariableDeclaration"), this.parseForAfterInit(e, l, t);
663
679
  }
664
- var c = this.containsEsc, f = new Ke(), h = this.start, d = t > -1 ? this.parseExprSubscripts(f, "await") : this.parseExpression(!0, f);
665
- 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 === h && !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, f), this.checkLValPattern(d), this.parseForIn(e, d)) : (this.checkExpressionErrors(f, !0), t > -1 && this.unexpected(t), this.parseFor(e, d));
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));
666
682
  };
667
683
  g.parseForAfterInit = function(e, t, i) {
668
684
  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));
669
685
  };
670
686
  g.parseFunctionStatement = function(e, t, i) {
671
- return this.next(), this.parseFunction(e, Se | (i ? 0 : ut), !1, t);
687
+ return this.next(), this.parseFunction(e, ke | (i ? 0 : ct), !1, t);
672
688
  };
673
689
  g.parseIfStatement = function(e) {
674
690
  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");
@@ -677,7 +693,7 @@ g.parseReturnStatement = function(e) {
677
693
  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");
678
694
  };
679
695
  g.parseSwitchStatement = function(e) {
680
- this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(a.braceL), this.labels.push(cs), this.enterScope(0);
696
+ this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(a.braceL), this.labels.push(gs), this.enterScope(0);
681
697
  for (var t, i = !1; this.type !== a.braceR; )
682
698
  if (this.type === a._case || this.type === a._default) {
683
699
  var s = this.type === a._case;
@@ -689,10 +705,10 @@ g.parseSwitchStatement = function(e) {
689
705
  g.parseThrowStatement = function(e) {
690
706
  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");
691
707
  };
692
- var hs = [];
708
+ var ys = [];
693
709
  g.parseCatchClauseParam = function() {
694
710
  var e = this.parseBindingAtom(), t = e.type === "Identifier";
695
- return this.enterScope(t ? Jt : 0), this.checkLValPattern(e, t ? Xt : te), this.expect(a.parenR), e;
711
+ return this.enterScope(t ? ti : 0), this.checkLValPattern(e, t ? ri : te), this.expect(a.parenR), e;
696
712
  };
697
713
  g.parseTryStatement = function(e) {
698
714
  if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === a._catch) {
@@ -705,7 +721,7 @@ g.parseVarStatement = function(e, t, i) {
705
721
  return this.next(), this.parseVar(e, !1, t, i), this.semicolon(), this.finishNode(e, "VariableDeclaration");
706
722
  };
707
723
  g.parseWhileStatement = function(e) {
708
- return this.next(), e.test = this.parseParenExpression(), this.labels.push(bt), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
724
+ return this.next(), e.test = this.parseParenExpression(), this.labels.push(_t), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
709
725
  };
710
726
  g.parseWithStatement = function(e) {
711
727
  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");
@@ -756,13 +772,13 @@ g.parseVar = function(e, t, i, s) {
756
772
  return e;
757
773
  };
758
774
  g.parseVarId = function(e, t) {
759
- e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? yt : te, !1);
775
+ e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? vt : te, !1);
760
776
  };
761
- var Se = 1, ut = 2, Zt = 4;
777
+ var ke = 1, ct = 2, ai = 4;
762
778
  g.parseFunction = function(e, t, i, s, r) {
763
- this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s) && (this.type === a.star && t & ut && this.unexpected(), e.generator = this.eat(a.star)), this.options.ecmaVersion >= 8 && (e.async = !!s), t & Se && (e.id = t & Zt && this.type !== a.name ? null : this.parseIdent(), e.id && !(t & ut) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? yt : te : Ht));
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));
764
780
  var n = this.yieldPos, o = this.awaitPos, u = this.awaitIdentPos;
765
- return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(gt(e.async, e.generator)), t & Se || (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 & Se ? "FunctionDeclaration" : "FunctionExpression");
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");
766
782
  };
767
783
  g.parseFunctionParams = function(e) {
768
784
  this.expect(a.parenL), e.params = this.parseBindingList(a.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
@@ -774,7 +790,7 @@ g.parseClass = function(e, t) {
774
790
  var s = this.enterClassBody(), r = this.startNode(), n = !1;
775
791
  for (r.body = [], this.expect(a.braceL); this.type !== a.braceR; ) {
776
792
  var o = this.parseClassElement(e.superClass !== null);
777
- 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" && fs(s, o) && this.raiseRecoverable(o.key.start, "Identifier '#" + o.key.name + "' has already been declared"));
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"));
778
794
  }
779
795
  return this.strict = i, this.next(), e.body = this.finishNode(r, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
780
796
  };
@@ -792,8 +808,8 @@ g.parseClassElement = function(e) {
792
808
  (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? o = l : s = l);
793
809
  }
794
810
  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) {
795
- var c = !i.static && De(i, "constructor"), f = c && e;
796
- 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, f);
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);
797
813
  } else
798
814
  this.parseClassField(i);
799
815
  return i;
@@ -816,7 +832,7 @@ g.parseClassField = function(e) {
816
832
  g.parseClassStaticBlock = function(e) {
817
833
  e.body = [];
818
834
  var t = this.labels;
819
- for (this.labels = [], this.enterScope(le | We); this.type !== a.braceR; ) {
835
+ for (this.labels = [], this.enterScope(ce | We); this.type !== a.braceR; ) {
820
836
  var i = this.parseStatement(null);
821
837
  e.body.push(i);
822
838
  }
@@ -840,7 +856,7 @@ g.exitClassBody = function() {
840
856
  ye(t, o.name) || (r ? r.used.push(o) : this.raiseRecoverable(o.start, "Private field '#" + o.name + "' must be declared in an enclosing class"));
841
857
  }
842
858
  };
843
- function fs(e, t) {
859
+ function bs(e, t) {
844
860
  var i = t.key.name, s = e[i], r = "true";
845
861
  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);
846
862
  }
@@ -879,7 +895,7 @@ g.parseExportDefaultDeclaration = function() {
879
895
  var e;
880
896
  if (this.type === a._function || (e = this.isAsyncFunction())) {
881
897
  var t = this.startNode();
882
- return this.next(), e && this.next(), this.parseFunction(t, Se | Zt, !1, e);
898
+ return this.next(), e && this.next(), this.parseFunction(t, ke | ai, !1, e);
883
899
  } else if (this.type === a._class) {
884
900
  var i = this.startNode();
885
901
  return this.parseClass(i, "nullableID");
@@ -937,7 +953,7 @@ g.parseExportSpecifiers = function(e) {
937
953
  return t;
938
954
  };
939
955
  g.parseImport = function(e) {
940
- return this.next(), this.type === a.string ? (e.specifiers = hs, 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");
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");
941
957
  };
942
958
  g.parseImportSpecifier = function() {
943
959
  var e = this.startNode();
@@ -988,7 +1004,7 @@ g.parseImportAttribute = function() {
988
1004
  g.parseModuleExportName = function() {
989
1005
  if (this.options.ecmaVersion >= 13 && this.type === a.string) {
990
1006
  var e = this.parseLiteral(this.value);
991
- return as.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
1007
+ return fs.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
992
1008
  }
993
1009
  return this.parseIdent(!0);
994
1010
  };
@@ -1000,7 +1016,7 @@ g.isDirectiveCandidate = function(e) {
1000
1016
  return this.options.ecmaVersion >= 5 && e.type === "ExpressionStatement" && e.expression.type === "Literal" && typeof e.expression.value == "string" && // Reject parenthesized strings.
1001
1017
  (this.input[e.start] === '"' || this.input[e.start] === "'");
1002
1018
  };
1003
- var q = T.prototype;
1019
+ var q = O.prototype;
1004
1020
  q.toAssignable = function(e, t, i) {
1005
1021
  if (this.options.ecmaVersion >= 6 && e)
1006
1022
  switch (e.type) {
@@ -1110,7 +1126,7 @@ q.checkLValSimple = function(e, t, i) {
1110
1126
  var s = t !== Fe;
1111
1127
  switch (e.type) {
1112
1128
  case "Identifier":
1113
- 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 !== Yt && this.declareName(e.name, t, e.start));
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));
1114
1130
  break;
1115
1131
  case "ChainExpression":
1116
1132
  this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
@@ -1157,22 +1173,22 @@ q.checkLValInnerPattern = function(e, t, i) {
1157
1173
  this.checkLValPattern(e, t, i);
1158
1174
  }
1159
1175
  };
1160
- var G = function(t, i, s, r, n) {
1176
+ var W = function(t, i, s, r, n) {
1161
1177
  this.token = t, this.isExpr = !!i, this.preserveSpace = !!s, this.override = r, this.generator = !!n;
1162
1178
  }, I = {
1163
- b_stat: new G("{", !1),
1164
- b_expr: new G("{", !0),
1165
- b_tmpl: new G("${", !1),
1166
- p_stat: new G("(", !1),
1167
- p_expr: new G("(", !0),
1168
- q_tmpl: new G("`", !0, !0, function(e) {
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) {
1169
1185
  return e.tryReadTemplateToken();
1170
1186
  }),
1171
- f_stat: new G("function", !1),
1172
- f_expr: new G("function", !0),
1173
- f_expr_gen: new G("function", !0, !1, null, !0),
1174
- f_gen: new G("function", !1, !1, null, !0)
1175
- }, xe = T.prototype;
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)
1191
+ }, xe = O.prototype;
1176
1192
  xe.initialContext = function() {
1177
1193
  return [I.b_stat];
1178
1194
  };
@@ -1238,8 +1254,8 @@ a.name.updateContext = function(e) {
1238
1254
  var t = !1;
1239
1255
  this.options.ecmaVersion >= 6 && e !== a.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (t = !0), this.exprAllowed = t;
1240
1256
  };
1241
- var x = T.prototype;
1242
- x.checkPropClash = function(e, t, i) {
1257
+ var v = O.prototype;
1258
+ v.checkPropClash = function(e, t, i) {
1243
1259
  if (!(this.options.ecmaVersion >= 9 && e.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (e.computed || e.method || e.shorthand))) {
1244
1260
  var s = e.key, r;
1245
1261
  switch (s.type) {
@@ -1271,7 +1287,7 @@ x.checkPropClash = function(e, t, i) {
1271
1287
  o[n] = !0;
1272
1288
  }
1273
1289
  };
1274
- x.parseExpression = function(e, t) {
1290
+ v.parseExpression = function(e, t) {
1275
1291
  var i = this.start, s = this.startLoc, r = this.parseMaybeAssign(e, t);
1276
1292
  if (this.type === a.comma) {
1277
1293
  var n = this.startNodeAt(i, s);
@@ -1281,25 +1297,25 @@ x.parseExpression = function(e, t) {
1281
1297
  }
1282
1298
  return r;
1283
1299
  };
1284
- x.parseMaybeAssign = function(e, t, i) {
1300
+ v.parseMaybeAssign = function(e, t, i) {
1285
1301
  if (this.isContextual("yield")) {
1286
1302
  if (this.inGenerator)
1287
1303
  return this.parseYield(e);
1288
1304
  this.exprAllowed = !1;
1289
1305
  }
1290
1306
  var s = !1, r = -1, n = -1, o = -1;
1291
- t ? (r = t.parenthesizedAssign, n = t.trailingComma, o = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new Ke(), s = !0);
1307
+ t ? (r = t.parenthesizedAssign, n = t.trailingComma, o = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new ze(), s = !0);
1292
1308
  var u = this.start, l = this.startLoc;
1293
1309
  (this.type === a.parenL || this.type === a.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
1294
1310
  var c = this.parseMaybeConditional(e, t);
1295
1311
  if (i && (c = i.call(this, c, u, l)), this.type.isAssign) {
1296
- var f = this.startNodeAt(u, l);
1297
- return f.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), f.left = c, this.next(), f.right = this.parseMaybeAssign(e), o > -1 && (t.doubleProto = o), this.finishNode(f, "AssignmentExpression");
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");
1298
1314
  } else
1299
1315
  s && this.checkExpressionErrors(t, !0);
1300
1316
  return r > -1 && (t.parenthesizedAssign = r), n > -1 && (t.trailingComma = n), c;
1301
1317
  };
1302
- x.parseMaybeConditional = function(e, t) {
1318
+ v.parseMaybeConditional = function(e, t) {
1303
1319
  var i = this.start, s = this.startLoc, r = this.parseExprOps(e, t);
1304
1320
  if (this.checkExpressionErrors(t))
1305
1321
  return r;
@@ -1309,34 +1325,34 @@ x.parseMaybeConditional = function(e, t) {
1309
1325
  }
1310
1326
  return r;
1311
1327
  };
1312
- x.parseExprOps = function(e, t) {
1328
+ v.parseExprOps = function(e, t) {
1313
1329
  var i = this.start, s = this.startLoc, r = this.parseMaybeUnary(t, !1, !1, e);
1314
1330
  return this.checkExpressionErrors(t) || r.start === i && r.type === "ArrowFunctionExpression" ? r : this.parseExprOp(r, i, s, -1, e);
1315
1331
  };
1316
- x.parseExprOp = function(e, t, i, s, r) {
1332
+ v.parseExprOp = function(e, t, i, s, r) {
1317
1333
  var n = this.type.binop;
1318
1334
  if (n != null && (!r || this.type !== a._in) && n > s) {
1319
1335
  var o = this.type === a.logicalOR || this.type === a.logicalAND, u = this.type === a.coalesce;
1320
1336
  u && (n = a.logicalAND.binop);
1321
1337
  var l = this.value;
1322
1338
  this.next();
1323
- var c = this.start, f = this.startLoc, h = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, r), c, f, n, r), d = this.buildBinary(t, i, e, h, l, o || u);
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);
1324
1340
  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);
1325
1341
  }
1326
1342
  return e;
1327
1343
  };
1328
- x.buildBinary = function(e, t, i, s, r, n) {
1344
+ v.buildBinary = function(e, t, i, s, r, n) {
1329
1345
  s.type === "PrivateIdentifier" && this.raise(s.start, "Private identifier can only be left side of binary expression");
1330
1346
  var o = this.startNodeAt(e, t);
1331
1347
  return o.left = i, o.operator = r, o.right = s, this.finishNode(o, n ? "LogicalExpression" : "BinaryExpression");
1332
1348
  };
1333
- x.parseMaybeUnary = function(e, t, i, s) {
1349
+ v.parseMaybeUnary = function(e, t, i, s) {
1334
1350
  var r = this.start, n = this.startLoc, o;
1335
1351
  if (this.isContextual("await") && this.canAwait)
1336
1352
  o = this.parseAwait(s), t = !0;
1337
1353
  else if (this.type.prefix) {
1338
1354
  var u = this.startNode(), l = this.type === a.incDec;
1339
- 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" && ei(u.argument) ? this.raiseRecoverable(u.start, "Deleting local variable in strict mode") : u.operator === "delete" && lt(u.argument) ? this.raiseRecoverable(u.start, "Private fields can not be deleted") : t = !0, o = this.finishNode(u, l ? "UpdateExpression" : "UnaryExpression");
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");
1340
1356
  } else if (!t && this.type === a.privateId)
1341
1357
  (s || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), o = this.parsePrivateIdent(), this.type !== a._in && this.unexpected();
1342
1358
  else {
@@ -1355,20 +1371,20 @@ x.parseMaybeUnary = function(e, t, i, s) {
1355
1371
  else
1356
1372
  return o;
1357
1373
  };
1358
- function ei(e) {
1359
- return e.type === "Identifier" || e.type === "ParenthesizedExpression" && ei(e.expression);
1374
+ function oi(e) {
1375
+ return e.type === "Identifier" || e.type === "ParenthesizedExpression" && oi(e.expression);
1360
1376
  }
1361
- function lt(e) {
1362
- return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && lt(e.expression) || e.type === "ParenthesizedExpression" && lt(e.expression);
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);
1363
1379
  }
1364
- x.parseExprSubscripts = function(e, t) {
1380
+ v.parseExprSubscripts = function(e, t) {
1365
1381
  var i = this.start, s = this.startLoc, r = this.parseExprAtom(e, t);
1366
1382
  if (r.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")")
1367
1383
  return r;
1368
1384
  var n = this.parseSubscripts(r, i, s, !1, t);
1369
1385
  return e && n.type === "MemberExpression" && (e.parenthesizedAssign >= n.start && (e.parenthesizedAssign = -1), e.parenthesizedBind >= n.start && (e.parenthesizedBind = -1), e.trailingComma >= n.start && (e.trailingComma = -1)), n;
1370
1386
  };
1371
- x.parseSubscripts = function(e, t, i, s, r) {
1387
+ v.parseSubscripts = function(e, t, i, s, r) {
1372
1388
  for (var n = this.options.ecmaVersion >= 8 && e.type === "Identifier" && e.name === "async" && this.lastTokEnd === e.end && !this.canInsertSemicolon() && e.end - e.start === 5 && this.potentialArrowAt === e.start, o = !1; ; ) {
1373
1389
  var u = this.parseSubscript(e, t, i, s, n, o, r);
1374
1390
  if (u.optional && (o = !0), u === e || u.type === "ArrowFunctionExpression") {
@@ -1381,28 +1397,28 @@ x.parseSubscripts = function(e, t, i, s, r) {
1381
1397
  e = u;
1382
1398
  }
1383
1399
  };
1384
- x.shouldParseAsyncArrow = function() {
1400
+ v.shouldParseAsyncArrow = function() {
1385
1401
  return !this.canInsertSemicolon() && this.eat(a.arrow);
1386
1402
  };
1387
- x.parseSubscriptAsyncArrow = function(e, t, i, s) {
1403
+ v.parseSubscriptAsyncArrow = function(e, t, i, s) {
1388
1404
  return this.parseArrowExpression(this.startNodeAt(e, t), i, !0, s);
1389
1405
  };
1390
- x.parseSubscript = function(e, t, i, s, r, n, o) {
1406
+ v.parseSubscript = function(e, t, i, s, r, n, o) {
1391
1407
  var u = this.options.ecmaVersion >= 11, l = u && this.eat(a.questionDot);
1392
1408
  s && l && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
1393
1409
  var c = this.eat(a.bracketL);
1394
1410
  if (c || l && this.type !== a.parenL && this.type !== a.backQuote || this.eat(a.dot)) {
1395
- var f = this.startNodeAt(t, i);
1396
- f.object = e, c ? (f.property = this.parseExpression(), this.expect(a.bracketR)) : this.type === a.privateId && e.type !== "Super" ? f.property = this.parsePrivateIdent() : f.property = this.parseIdent(this.options.allowReserved !== "never"), f.computed = !!c, u && (f.optional = l), e = this.finishNode(f, "MemberExpression");
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");
1397
1413
  } else if (!s && this.eat(a.parenL)) {
1398
- var h = new Ke(), d = this.yieldPos, b = this.awaitPos, v = this.awaitIdentPos;
1414
+ var f = new ze(), d = this.yieldPos, y = this.awaitPos, x = this.awaitIdentPos;
1399
1415
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
1400
- var p = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, !1, h);
1416
+ var h = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, !1, f);
1401
1417
  if (r && !l && this.shouldParseAsyncArrow())
1402
- return this.checkPatternErrors(h, !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 = v, this.parseSubscriptAsyncArrow(t, i, p, o);
1403
- this.checkExpressionErrors(h, !0), this.yieldPos = d || this.yieldPos, this.awaitPos = b || this.awaitPos, this.awaitIdentPos = v || this.awaitIdentPos;
1404
- var y = this.startNodeAt(t, i);
1405
- y.callee = e, y.arguments = p, u && (y.optional = l), e = this.finishNode(y, "CallExpression");
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");
1406
1422
  } else if (this.type === a.backQuote) {
1407
1423
  (l || n) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
1408
1424
  var w = this.startNodeAt(t, i);
@@ -1410,7 +1426,7 @@ x.parseSubscript = function(e, t, i, s, r, n, o) {
1410
1426
  }
1411
1427
  return e;
1412
1428
  };
1413
- x.parseExprAtom = function(e, t, i) {
1429
+ v.parseExprAtom = function(e, t, i) {
1414
1430
  this.type === a.slash && this.readRegexp();
1415
1431
  var s, r = this.potentialArrowAt === this.start;
1416
1432
  switch (this.type) {
@@ -1440,8 +1456,8 @@ x.parseExprAtom = function(e, t, i) {
1440
1456
  case a._false:
1441
1457
  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");
1442
1458
  case a.parenL:
1443
- var f = this.start, h = this.parseParenAndDistinguishExpression(r, t);
1444
- return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(h) && (e.parenthesizedAssign = f), e.parenthesizedBind < 0 && (e.parenthesizedBind = f)), h;
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;
1445
1461
  case a.bracketL:
1446
1462
  return s = this.startNode(), this.next(), s.elements = this.parseExprList(a.bracketR, !0, !0, e), this.finishNode(s, "ArrayExpression");
1447
1463
  case a.braceL:
@@ -1460,10 +1476,10 @@ x.parseExprAtom = function(e, t, i) {
1460
1476
  return this.parseExprAtomDefault();
1461
1477
  }
1462
1478
  };
1463
- x.parseExprAtomDefault = function() {
1479
+ v.parseExprAtomDefault = function() {
1464
1480
  this.unexpected();
1465
1481
  };
1466
- x.parseExprImport = function(e) {
1482
+ v.parseExprImport = function(e) {
1467
1483
  var t = this.startNode();
1468
1484
  if (this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import"), this.next(), this.type === a.parenL && !e)
1469
1485
  return this.parseDynamicImport(t);
@@ -1473,7 +1489,7 @@ x.parseExprImport = function(e) {
1473
1489
  } else
1474
1490
  this.unexpected();
1475
1491
  };
1476
- x.parseDynamicImport = function(e) {
1492
+ v.parseDynamicImport = function(e) {
1477
1493
  if (this.next(), e.source = this.parseMaybeAssign(), this.options.ecmaVersion >= 16)
1478
1494
  this.eat(a.parenR) ? e.options = null : (this.expect(a.comma), this.afterTrailingComma(a.parenR) ? e.options = null : (e.options = this.parseMaybeAssign(), this.eat(a.parenR) || (this.expect(a.comma), this.afterTrailingComma(a.parenR) || this.unexpected())));
1479
1495
  else if (!this.eat(a.parenR)) {
@@ -1482,44 +1498,44 @@ x.parseDynamicImport = function(e) {
1482
1498
  }
1483
1499
  return this.finishNode(e, "ImportExpression");
1484
1500
  };
1485
- x.parseImportMeta = function(e) {
1501
+ v.parseImportMeta = function(e) {
1486
1502
  this.next();
1487
1503
  var t = this.containsEsc;
1488
1504
  return e.property = this.parseIdent(!0), e.property.name !== "meta" && this.raiseRecoverable(e.property.start, "The only valid meta property for import is 'import.meta'"), t && this.raiseRecoverable(e.start, "'import.meta' must not contain escaped characters"), this.options.sourceType !== "module" && !this.options.allowImportExportEverywhere && this.raiseRecoverable(e.start, "Cannot use 'import.meta' outside a module"), this.finishNode(e, "MetaProperty");
1489
1505
  };
1490
- x.parseLiteral = function(e) {
1506
+ v.parseLiteral = function(e) {
1491
1507
  var t = this.startNode();
1492
1508
  return t.value = e, t.raw = this.input.slice(this.start, this.end), t.raw.charCodeAt(t.raw.length - 1) === 110 && (t.bigint = t.value != null ? t.value.toString() : t.raw.slice(0, -1).replace(/_/g, "")), this.next(), this.finishNode(t, "Literal");
1493
1509
  };
1494
- x.parseParenExpression = function() {
1510
+ v.parseParenExpression = function() {
1495
1511
  this.expect(a.parenL);
1496
1512
  var e = this.parseExpression();
1497
1513
  return this.expect(a.parenR), e;
1498
1514
  };
1499
- x.shouldParseArrow = function(e) {
1515
+ v.shouldParseArrow = function(e) {
1500
1516
  return !this.canInsertSemicolon();
1501
1517
  };
1502
- x.parseParenAndDistinguishExpression = function(e, t) {
1518
+ v.parseParenAndDistinguishExpression = function(e, t) {
1503
1519
  var i = this.start, s = this.startLoc, r, n = this.options.ecmaVersion >= 8;
1504
1520
  if (this.options.ecmaVersion >= 6) {
1505
1521
  this.next();
1506
- var o = this.start, u = this.startLoc, l = [], c = !0, f = !1, h = new Ke(), d = this.yieldPos, b = this.awaitPos, v;
1522
+ var o = this.start, u = this.startLoc, l = [], c = !0, p = !1, f = new ze(), d = this.yieldPos, y = this.awaitPos, x;
1507
1523
  for (this.yieldPos = 0, this.awaitPos = 0; this.type !== a.parenR; )
1508
1524
  if (c ? c = !1 : this.expect(a.comma), n && this.afterTrailingComma(a.parenR, !0)) {
1509
- f = !0;
1525
+ p = !0;
1510
1526
  break;
1511
1527
  } else if (this.type === a.ellipsis) {
1512
- v = this.start, l.push(this.parseParenItem(this.parseRestBinding())), this.type === a.comma && this.raiseRecoverable(
1528
+ x = this.start, l.push(this.parseParenItem(this.parseRestBinding())), this.type === a.comma && this.raiseRecoverable(
1513
1529
  this.start,
1514
1530
  "Comma is not permitted after the rest element"
1515
1531
  );
1516
1532
  break;
1517
1533
  } else
1518
- l.push(this.parseMaybeAssign(!1, h, this.parseParenItem));
1519
- var p = this.lastTokEnd, y = this.lastTokEndLoc;
1534
+ l.push(this.parseMaybeAssign(!1, f, this.parseParenItem));
1535
+ var h = this.lastTokEnd, b = this.lastTokEndLoc;
1520
1536
  if (this.expect(a.parenR), e && this.shouldParseArrow(l) && this.eat(a.arrow))
1521
- return this.checkPatternErrors(h, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = d, this.awaitPos = b, this.parseParenArrowList(i, s, l, t);
1522
- (!l.length || f) && this.unexpected(this.lastTokStart), v && this.unexpected(v), this.checkExpressionErrors(h, !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", p, y)) : r = l[0];
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];
1523
1539
  } else
1524
1540
  r = this.parseParenExpression();
1525
1541
  if (this.options.preserveParens) {
@@ -1528,14 +1544,14 @@ x.parseParenAndDistinguishExpression = function(e, t) {
1528
1544
  } else
1529
1545
  return r;
1530
1546
  };
1531
- x.parseParenItem = function(e) {
1547
+ v.parseParenItem = function(e) {
1532
1548
  return e;
1533
1549
  };
1534
- x.parseParenArrowList = function(e, t, i, s) {
1550
+ v.parseParenArrowList = function(e, t, i, s) {
1535
1551
  return this.parseArrowExpression(this.startNodeAt(e, t), i, !1, s);
1536
1552
  };
1537
- var ps = [];
1538
- x.parseNew = function() {
1553
+ var xs = [];
1554
+ v.parseNew = function() {
1539
1555
  this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
1540
1556
  var e = this.startNode();
1541
1557
  if (this.next(), this.options.ecmaVersion >= 6 && this.type === a.dot) {
@@ -1545,9 +1561,9 @@ x.parseNew = function() {
1545
1561
  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");
1546
1562
  }
1547
1563
  var s = this.start, r = this.startLoc;
1548
- 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 = ps, this.finishNode(e, "NewExpression");
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");
1549
1565
  };
1550
- x.parseTemplateElement = function(e) {
1566
+ v.parseTemplateElement = function(e) {
1551
1567
  var t = e.isTagged, i = this.startNode();
1552
1568
  return this.type === a.invalidTemplate ? (t || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), i.value = {
1553
1569
  raw: this.value.replace(/\r\n?/g, `
@@ -1559,7 +1575,7 @@ x.parseTemplateElement = function(e) {
1559
1575
  cooked: this.value
1560
1576
  }, this.next(), i.tail = this.type === a.backQuote, this.finishNode(i, "TemplateElement");
1561
1577
  };
1562
- x.parseTemplate = function(e) {
1578
+ v.parseTemplate = function(e) {
1563
1579
  e === void 0 && (e = {});
1564
1580
  var t = e.isTagged;
1565
1581
  t === void 0 && (t = !1);
@@ -1570,10 +1586,10 @@ x.parseTemplate = function(e) {
1570
1586
  this.type === a.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(a.dollarBraceL), i.expressions.push(this.parseExpression()), this.expect(a.braceR), i.quasis.push(s = this.parseTemplateElement({ isTagged: t }));
1571
1587
  return this.next(), this.finishNode(i, "TemplateLiteral");
1572
1588
  };
1573
- x.isAsyncProp = function(e) {
1589
+ v.isAsyncProp = function(e) {
1574
1590
  return !e.computed && e.key.type === "Identifier" && e.key.name === "async" && (this.type === a.name || this.type === a.num || this.type === a.string || this.type === a.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === a.star) && !B.test(this.input.slice(this.lastTokEnd, this.start));
1575
1591
  };
1576
- x.parseObj = function(e, t) {
1592
+ v.parseObj = function(e, t) {
1577
1593
  var i = this.startNode(), s = !0, r = {};
1578
1594
  for (i.properties = [], this.next(); !this.eat(a.braceR); ) {
1579
1595
  if (s)
@@ -1585,7 +1601,7 @@ x.parseObj = function(e, t) {
1585
1601
  }
1586
1602
  return this.finishNode(i, e ? "ObjectPattern" : "ObjectExpression");
1587
1603
  };
1588
- x.parseProperty = function(e, t) {
1604
+ v.parseProperty = function(e, t) {
1589
1605
  var i = this.startNode(), s, r, n, o;
1590
1606
  if (this.options.ecmaVersion >= 9 && this.eat(a.ellipsis))
1591
1607
  return e ? (i.argument = this.parseIdent(!1), this.type === a.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.finishNode(i, "RestElement")) : (i.argument = this.parseMaybeAssign(!1, t), this.type === a.comma && t && t.trailingComma < 0 && (t.trailingComma = this.start), this.finishNode(i, "SpreadElement"));
@@ -1593,7 +1609,7 @@ x.parseProperty = function(e, t) {
1593
1609
  var u = this.containsEsc;
1594
1610
  return this.parsePropertyName(i), !e && !u && this.options.ecmaVersion >= 8 && !s && this.isAsyncProp(i) ? (r = !0, s = this.options.ecmaVersion >= 9 && this.eat(a.star), this.parsePropertyName(i)) : r = !1, this.parsePropertyValue(i, e, s, r, n, o, t, u), this.finishNode(i, "Property");
1595
1611
  };
1596
- x.parseGetterSetter = function(e) {
1612
+ v.parseGetterSetter = function(e) {
1597
1613
  var t = e.key.name;
1598
1614
  this.parsePropertyName(e), e.value = this.parseMethod(!1), e.kind = t;
1599
1615
  var i = e.kind === "get" ? 0 : 1;
@@ -1603,10 +1619,10 @@ x.parseGetterSetter = function(e) {
1603
1619
  } else
1604
1620
  e.kind === "set" && e.value.params[0].type === "RestElement" && this.raiseRecoverable(e.value.params[0].start, "Setter cannot use rest params");
1605
1621
  };
1606
- x.parsePropertyValue = function(e, t, i, s, r, n, o, u) {
1622
+ v.parsePropertyValue = function(e, t, i, s, r, n, o, u) {
1607
1623
  (i || s) && this.type === a.colon && this.unexpected(), this.eat(a.colon) ? (e.value = t ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(!1, o), e.kind = "init") : this.options.ecmaVersion >= 6 && this.type === a.parenL ? (t && this.unexpected(), e.method = !0, e.value = this.parseMethod(i, s), e.kind = "init") : !t && !u && this.options.ecmaVersion >= 5 && !e.computed && e.key.type === "Identifier" && (e.key.name === "get" || e.key.name === "set") && this.type !== a.comma && this.type !== a.braceR && this.type !== a.eq ? ((i || s) && this.unexpected(), this.parseGetterSetter(e)) : this.options.ecmaVersion >= 6 && !e.computed && e.key.type === "Identifier" ? ((i || s) && this.unexpected(), this.checkUnreserved(e.key), e.key.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = r), t ? e.value = this.parseMaybeDefault(r, n, this.copyNode(e.key)) : this.type === a.eq && o ? (o.shorthandAssign < 0 && (o.shorthandAssign = this.start), e.value = this.parseMaybeDefault(r, n, this.copyNode(e.key))) : e.value = this.copyNode(e.key), e.kind = "init", e.shorthand = !0) : this.unexpected();
1608
1624
  };
1609
- x.parsePropertyName = function(e) {
1625
+ v.parsePropertyName = function(e) {
1610
1626
  if (this.options.ecmaVersion >= 6) {
1611
1627
  if (this.eat(a.bracketL))
1612
1628
  return e.computed = !0, e.key = this.parseMaybeAssign(), this.expect(a.bracketR), e.key;
@@ -1614,18 +1630,18 @@ x.parsePropertyName = function(e) {
1614
1630
  }
1615
1631
  return e.key = this.type === a.num || this.type === a.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
1616
1632
  };
1617
- x.initFunction = function(e) {
1633
+ v.initFunction = function(e) {
1618
1634
  e.id = null, this.options.ecmaVersion >= 6 && (e.generator = e.expression = !1), this.options.ecmaVersion >= 8 && (e.async = !1);
1619
1635
  };
1620
- x.parseMethod = function(e, t, i) {
1636
+ v.parseMethod = function(e, t, i) {
1621
1637
  var s = this.startNode(), r = this.yieldPos, n = this.awaitPos, o = this.awaitIdentPos;
1622
- 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(gt(t, s.generator) | We | (i ? Qt : 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");
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");
1623
1639
  };
1624
- x.parseArrowExpression = function(e, t, i, s) {
1640
+ v.parseArrowExpression = function(e, t, i, s) {
1625
1641
  var r = this.yieldPos, n = this.awaitPos, o = this.awaitIdentPos;
1626
- return this.enterScope(gt(i, !1) | mt), 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");
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");
1627
1643
  };
1628
- x.parseFunctionBody = function(e, t, i, s) {
1644
+ v.parseFunctionBody = function(e, t, i, s) {
1629
1645
  var r = t && this.type !== a.braceL, n = this.strict, o = !1;
1630
1646
  if (r)
1631
1647
  e.body = this.parseMaybeAssign(s), e.expression = !0, this.checkParams(e, !1);
@@ -1633,11 +1649,11 @@ x.parseFunctionBody = function(e, t, i, s) {
1633
1649
  var u = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
1634
1650
  (!n || u) && (o = this.strictDirective(this.end), o && u && this.raiseRecoverable(e.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
1635
1651
  var l = this.labels;
1636
- this.labels = [], o && (this.strict = !0), this.checkParams(e, !n && !o && !t && !i && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id, Yt), e.body = this.parseBlock(!1, void 0, o && !n), e.expression = !1, this.adaptDirectivePrologue(e.body.body), this.labels = l;
1652
+ this.labels = [], o && (this.strict = !0), this.checkParams(e, !n && !o && !t && !i && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id, ni), e.body = this.parseBlock(!1, void 0, o && !n), e.expression = !1, this.adaptDirectivePrologue(e.body.body), this.labels = l;
1637
1653
  }
1638
1654
  this.exitScope();
1639
1655
  };
1640
- x.isSimpleParamList = function(e) {
1656
+ v.isSimpleParamList = function(e) {
1641
1657
  for (var t = 0, i = e; t < i.length; t += 1) {
1642
1658
  var s = i[t];
1643
1659
  if (s.type !== "Identifier")
@@ -1645,13 +1661,13 @@ x.isSimpleParamList = function(e) {
1645
1661
  }
1646
1662
  return !0;
1647
1663
  };
1648
- x.checkParams = function(e, t) {
1664
+ v.checkParams = function(e, t) {
1649
1665
  for (var i = /* @__PURE__ */ Object.create(null), s = 0, r = e.params; s < r.length; s += 1) {
1650
1666
  var n = r[s];
1651
- this.checkLValInnerPattern(n, yt, t ? null : i);
1667
+ this.checkLValInnerPattern(n, vt, t ? null : i);
1652
1668
  }
1653
1669
  };
1654
- x.parseExprList = function(e, t, i, s) {
1670
+ v.parseExprList = function(e, t, i, s) {
1655
1671
  for (var r = [], n = !0; !this.eat(e); ) {
1656
1672
  if (n)
1657
1673
  n = !1;
@@ -1662,38 +1678,38 @@ x.parseExprList = function(e, t, i, s) {
1662
1678
  }
1663
1679
  return r;
1664
1680
  };
1665
- x.checkUnreserved = function(e) {
1681
+ v.checkUnreserved = function(e) {
1666
1682
  var t = e.start, i = e.end, s = e.name;
1667
- 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 & Ge) && 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)) {
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)) {
1668
1684
  var r = this.strict ? this.reservedWordsStrict : this.reservedWords;
1669
1685
  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"));
1670
1686
  }
1671
1687
  };
1672
- x.parseIdent = function(e) {
1688
+ v.parseIdent = function(e) {
1673
1689
  var t = this.parseIdentNode();
1674
1690
  return this.next(!!e), this.finishNode(t, "Identifier"), e || (this.checkUnreserved(t), t.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = t.start)), t;
1675
1691
  };
1676
- x.parseIdentNode = function() {
1692
+ v.parseIdentNode = function() {
1677
1693
  var e = this.startNode();
1678
1694
  return this.type === a.name ? e.name = this.value : this.type.keyword ? (e.name = this.type.keyword, (e.name === "class" || e.name === "function") && (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46) && this.context.pop(), this.type = a.name) : this.unexpected(), e;
1679
1695
  };
1680
- x.parsePrivateIdent = function() {
1696
+ v.parsePrivateIdent = function() {
1681
1697
  var e = this.startNode();
1682
1698
  return this.type === a.privateId ? e.name = this.value : this.unexpected(), this.next(), this.finishNode(e, "PrivateIdentifier"), this.options.checkPrivateFields && (this.privateNameStack.length === 0 ? this.raise(e.start, "Private field '#" + e.name + "' must be declared in an enclosing class") : this.privateNameStack[this.privateNameStack.length - 1].used.push(e)), e;
1683
1699
  };
1684
- x.parseYield = function(e) {
1700
+ v.parseYield = function(e) {
1685
1701
  this.yieldPos || (this.yieldPos = this.start);
1686
1702
  var t = this.startNode();
1687
1703
  return this.next(), this.type === a.semi || this.canInsertSemicolon() || this.type !== a.star && !this.type.startsExpr ? (t.delegate = !1, t.argument = null) : (t.delegate = this.eat(a.star), t.argument = this.parseMaybeAssign(e)), this.finishNode(t, "YieldExpression");
1688
1704
  };
1689
- x.parseAwait = function(e) {
1705
+ v.parseAwait = function(e) {
1690
1706
  this.awaitPos || (this.awaitPos = this.start);
1691
1707
  var t = this.startNode();
1692
1708
  return this.next(), t.argument = this.parseMaybeUnary(null, !0, !1, e), this.finishNode(t, "AwaitExpression");
1693
1709
  };
1694
- var Be = T.prototype;
1710
+ var Be = O.prototype;
1695
1711
  Be.raise = function(e, t) {
1696
- var i = Kt(this.input, e);
1712
+ var i = Zt(this.input, e);
1697
1713
  t += " (" + i.line + ":" + i.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
1698
1714
  var s = new SyntaxError(t);
1699
1715
  throw s.pos = e, s.loc = i, s.raisedAt = this.pos, s;
@@ -1703,123 +1719,123 @@ Be.curPosition = function() {
1703
1719
  if (this.options.locations)
1704
1720
  return new Ce(this.curLine, this.pos - this.lineStart);
1705
1721
  };
1706
- var re = T.prototype, ds = function(t) {
1722
+ var ne = O.prototype, vs = function(t) {
1707
1723
  this.flags = t, this.var = [], this.lexical = [], this.functions = [];
1708
1724
  };
1709
- re.enterScope = function(e) {
1710
- this.scopeStack.push(new ds(e));
1725
+ ne.enterScope = function(e) {
1726
+ this.scopeStack.push(new vs(e));
1711
1727
  };
1712
- re.exitScope = function() {
1728
+ ne.exitScope = function() {
1713
1729
  this.scopeStack.pop();
1714
1730
  };
1715
- re.treatFunctionsAsVarInScope = function(e) {
1731
+ ne.treatFunctionsAsVarInScope = function(e) {
1716
1732
  return e.flags & be || !this.inModule && e.flags & Ae;
1717
1733
  };
1718
- re.declareName = function(e, t, i) {
1734
+ ne.declareName = function(e, t, i) {
1719
1735
  var s = !1;
1720
1736
  if (t === te) {
1721
1737
  var r = this.currentScope();
1722
1738
  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];
1723
- } else if (t === Xt) {
1739
+ } else if (t === ri) {
1724
1740
  var n = this.currentScope();
1725
1741
  n.lexical.push(e);
1726
- } else if (t === Ht) {
1742
+ } else if (t === si) {
1727
1743
  var o = this.currentScope();
1728
1744
  this.treatFunctionsAsVar ? s = o.lexical.indexOf(e) > -1 : s = o.lexical.indexOf(e) > -1 || o.var.indexOf(e) > -1, o.functions.push(e);
1729
1745
  } else
1730
1746
  for (var u = this.scopeStack.length - 1; u >= 0; --u) {
1731
1747
  var l = this.scopeStack[u];
1732
- if (l.lexical.indexOf(e) > -1 && !(l.flags & Jt && l.lexical[0] === e) || !this.treatFunctionsAsVarInScope(l) && l.functions.indexOf(e) > -1) {
1748
+ if (l.lexical.indexOf(e) > -1 && !(l.flags & ti && l.lexical[0] === e) || !this.treatFunctionsAsVarInScope(l) && l.functions.indexOf(e) > -1) {
1733
1749
  s = !0;
1734
1750
  break;
1735
1751
  }
1736
- if (l.var.push(e), this.inModule && l.flags & Ae && delete this.undefinedExports[e], l.flags & Ge)
1752
+ if (l.var.push(e), this.inModule && l.flags & Ae && delete this.undefinedExports[e], l.flags & Ke)
1737
1753
  break;
1738
1754
  }
1739
1755
  s && this.raiseRecoverable(i, "Identifier '" + e + "' has already been declared");
1740
1756
  };
1741
- re.checkLocalExport = function(e) {
1757
+ ne.checkLocalExport = function(e) {
1742
1758
  this.scopeStack[0].lexical.indexOf(e.name) === -1 && this.scopeStack[0].var.indexOf(e.name) === -1 && (this.undefinedExports[e.name] = e);
1743
1759
  };
1744
- re.currentScope = function() {
1760
+ ne.currentScope = function() {
1745
1761
  return this.scopeStack[this.scopeStack.length - 1];
1746
1762
  };
1747
- re.currentVarScope = function() {
1763
+ ne.currentVarScope = function() {
1748
1764
  for (var e = this.scopeStack.length - 1; ; e--) {
1749
1765
  var t = this.scopeStack[e];
1750
- if (t.flags & (Ge | Ee | le))
1766
+ if (t.flags & (Ke | Ee | ce))
1751
1767
  return t;
1752
1768
  }
1753
1769
  };
1754
- re.currentThisScope = function() {
1770
+ ne.currentThisScope = function() {
1755
1771
  for (var e = this.scopeStack.length - 1; ; e--) {
1756
1772
  var t = this.scopeStack[e];
1757
- if (t.flags & (Ge | Ee | le) && !(t.flags & mt))
1773
+ if (t.flags & (Ke | Ee | ce) && !(t.flags & bt))
1758
1774
  return t;
1759
1775
  }
1760
1776
  };
1761
- var ze = function(t, i, s) {
1762
- this.type = "", this.start = i, this.end = 0, t.options.locations && (this.loc = new qe(t, s)), t.options.directSourceFile && (this.sourceFile = t.options.directSourceFile), t.options.ranges && (this.range = [i, 0]);
1763
- }, Pe = T.prototype;
1777
+ var Je = function(t, i, s) {
1778
+ 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;
1764
1780
  Pe.startNode = function() {
1765
- return new ze(this, this.start, this.startLoc);
1781
+ return new Je(this, this.start, this.startLoc);
1766
1782
  };
1767
1783
  Pe.startNodeAt = function(e, t) {
1768
- return new ze(this, e, t);
1784
+ return new Je(this, e, t);
1769
1785
  };
1770
- function ti(e, t, i, s) {
1786
+ function ui(e, t, i, s) {
1771
1787
  return e.type = t, e.end = i, this.options.locations && (e.loc.end = s), this.options.ranges && (e.range[1] = i), e;
1772
1788
  }
1773
1789
  Pe.finishNode = function(e, t) {
1774
- return ti.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
1790
+ return ui.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
1775
1791
  };
1776
1792
  Pe.finishNodeAt = function(e, t, i, s) {
1777
- return ti.call(this, e, t, i, s);
1793
+ return ui.call(this, e, t, i, s);
1778
1794
  };
1779
1795
  Pe.copyNode = function(e) {
1780
- var t = new ze(this, e.start, this.startLoc);
1796
+ var t = new Je(this, e.start, this.startLoc);
1781
1797
  for (var i in e)
1782
1798
  t[i] = e[i];
1783
1799
  return t;
1784
1800
  };
1785
- var ms = "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", ii = "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", si = ii + " Extended_Pictographic", ri = si, ni = ri + " EBase EComp EMod EPres ExtPict", ai = ni, gs = ai, ys = {
1786
- 9: ii,
1787
- 10: si,
1788
- 11: ri,
1789
- 12: ni,
1790
- 13: ai,
1791
- 14: gs
1792
- }, bs = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", xs = {
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 = {
1802
+ 9: li,
1803
+ 10: ci,
1804
+ 11: hi,
1805
+ 12: fi,
1806
+ 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 = {
1793
1809
  9: "",
1794
1810
  10: "",
1795
1811
  11: "",
1796
1812
  12: "",
1797
1813
  13: "",
1798
- 14: bs
1799
- }, Lt = "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", oi = "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", ui = oi + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", li = ui + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", ci = li + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", hi = ci + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", vs = hi + " " + ms, _s = {
1800
- 9: oi,
1801
- 10: ui,
1802
- 11: li,
1803
- 12: ci,
1804
- 13: hi,
1805
- 14: vs
1806
- }, fi = {};
1807
- function Ss(e) {
1808
- var t = fi[e] = {
1809
- binary: ie(ys[e] + " " + Lt),
1810
- binaryOfStrings: ie(xs[e]),
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 = {
1816
+ 9: di,
1817
+ 10: mi,
1818
+ 11: gi,
1819
+ 12: yi,
1820
+ 13: bi,
1821
+ 14: As
1822
+ }, xi = {};
1823
+ function Es(e) {
1824
+ var t = xi[e] = {
1825
+ binary: ie(Ss[e] + " " + Bt),
1826
+ binaryOfStrings: ie(Cs[e]),
1811
1827
  nonBinary: {
1812
- General_Category: ie(Lt),
1813
- Script: ie(_s[e])
1828
+ General_Category: ie(Bt),
1829
+ Script: ie(Is[e])
1814
1830
  }
1815
1831
  };
1816
1832
  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;
1817
1833
  }
1818
- for (var it = 0, Rt = [9, 10, 11, 12, 13, 14]; it < Rt.length; it += 1) {
1819
- var ks = Rt[it];
1820
- Ss(ks);
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);
1821
1837
  }
1822
- var m = T.prototype, Me = function(t, i) {
1838
+ var m = O.prototype, Me = function(t, i) {
1823
1839
  this.parent = t, this.base = i || this;
1824
1840
  };
1825
1841
  Me.prototype.separatedFrom = function(t) {
@@ -1833,7 +1849,7 @@ Me.prototype.sibling = function() {
1833
1849
  return new Me(this.parent, this.base);
1834
1850
  };
1835
1851
  var H = function(t) {
1836
- 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 = fi[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;
1852
+ 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;
1837
1853
  };
1838
1854
  H.prototype.reset = function(t, i, s) {
1839
1855
  var r = s.indexOf("v") !== -1, n = s.indexOf("u") !== -1;
@@ -1890,13 +1906,13 @@ m.validateRegExpFlags = function(e) {
1890
1906
  }
1891
1907
  this.options.ecmaVersion >= 15 && s && r && this.raise(e.start, "Invalid regular expression flag");
1892
1908
  };
1893
- function ws(e) {
1909
+ function Ns(e) {
1894
1910
  for (var t in e)
1895
1911
  return !0;
1896
1912
  return !1;
1897
1913
  }
1898
1914
  m.validateRegExpPattern = function(e) {
1899
- this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && ws(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
1915
+ this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && Ns(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
1900
1916
  };
1901
1917
  m.regexp_pattern = function(e) {
1902
1918
  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(
@@ -2098,11 +2114,11 @@ m.regexp_eatCapturingGroup = function(e) {
2098
2114
  return !1;
2099
2115
  };
2100
2116
  m.regexp_eatModifiers = function(e) {
2101
- for (var t = "", i = 0; (i = e.current()) !== -1 && Cs(i); )
2117
+ for (var t = "", i = 0; (i = e.current()) !== -1 && Ts(i); )
2102
2118
  t += Z(i), e.advance();
2103
2119
  return t;
2104
2120
  };
2105
- function Cs(e) {
2121
+ function Ts(e) {
2106
2122
  return e === 105 || e === 109 || e === 115;
2107
2123
  }
2108
2124
  m.regexp_eatExtendedAtom = function(e) {
@@ -2116,13 +2132,13 @@ m.regexp_eatInvalidBracedQuantifier = function(e) {
2116
2132
  };
2117
2133
  m.regexp_eatSyntaxCharacter = function(e) {
2118
2134
  var t = e.current();
2119
- return pi(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2135
+ return vi(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2120
2136
  };
2121
- function pi(e) {
2137
+ function vi(e) {
2122
2138
  return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
2123
2139
  }
2124
2140
  m.regexp_eatPatternCharacters = function(e) {
2125
- for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !pi(i); )
2141
+ for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !vi(i); )
2126
2142
  e.advance();
2127
2143
  return e.pos !== t;
2128
2144
  };
@@ -2172,16 +2188,16 @@ m.regexp_eatRegExpIdentifierName = function(e) {
2172
2188
  };
2173
2189
  m.regexp_eatRegExpIdentifierStart = function(e) {
2174
2190
  var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
2175
- return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), As(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
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);
2176
2192
  };
2177
- function As(e) {
2193
+ function Os(e) {
2178
2194
  return J(e, !0) || e === 36 || e === 95;
2179
2195
  }
2180
2196
  m.regexp_eatRegExpIdentifierPart = function(e) {
2181
2197
  var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
2182
- return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), Is(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
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);
2183
2199
  };
2184
- function Is(e) {
2200
+ function Vs(e) {
2185
2201
  return se(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
2186
2202
  }
2187
2203
  m.regexp_eatAtomEscape = function(e) {
@@ -2226,7 +2242,7 @@ m.regexp_eatCControlLetter = function(e) {
2226
2242
  return !1;
2227
2243
  };
2228
2244
  m.regexp_eatZero = function(e) {
2229
- return e.current() === 48 && !Je(e.lookahead()) ? (e.lastIntValue = 0, e.advance(), !0) : !1;
2245
+ return e.current() === 48 && !Qe(e.lookahead()) ? (e.lastIntValue = 0, e.advance(), !0) : !1;
2230
2246
  };
2231
2247
  m.regexp_eatControlEscape = function(e) {
2232
2248
  var t = e.current();
@@ -2234,9 +2250,9 @@ m.regexp_eatControlEscape = function(e) {
2234
2250
  };
2235
2251
  m.regexp_eatControlLetter = function(e) {
2236
2252
  var t = e.current();
2237
- return di(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2253
+ return _i(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2238
2254
  };
2239
- function di(e) {
2255
+ function _i(e) {
2240
2256
  return e >= 65 && e <= 90 || e >= 97 && e <= 122;
2241
2257
  }
2242
2258
  m.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
@@ -2271,13 +2287,13 @@ m.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
2271
2287
  ) && this.regexp_eatHexDigits(e) && e.eat(
2272
2288
  125
2273
2289
  /* } */
2274
- ) && Es(e.lastIntValue))
2290
+ ) && Ls(e.lastIntValue))
2275
2291
  return !0;
2276
2292
  s && e.raise("Invalid unicode escape"), e.pos = i;
2277
2293
  }
2278
2294
  return !1;
2279
2295
  };
2280
- function Es(e) {
2296
+ function Ls(e) {
2281
2297
  return e >= 0 && e <= 1114111;
2282
2298
  }
2283
2299
  m.regexp_eatIdentityEscape = function(e) {
@@ -2300,10 +2316,10 @@ m.regexp_eatDecimalEscape = function(e) {
2300
2316
  }
2301
2317
  return !1;
2302
2318
  };
2303
- var mi = 0, ee = 1, U = 2;
2319
+ var ki = 0, ee = 1, $ = 2;
2304
2320
  m.regexp_eatCharacterClassEscape = function(e) {
2305
2321
  var t = e.current();
2306
- if (Ps(t))
2322
+ if (Rs(t))
2307
2323
  return e.lastIntValue = -1, e.advance(), ee;
2308
2324
  var i = !1;
2309
2325
  if (e.switchU && this.options.ecmaVersion >= 9 && ((i = t === 80) || t === 112)) {
@@ -2316,12 +2332,12 @@ m.regexp_eatCharacterClassEscape = function(e) {
2316
2332
  125
2317
2333
  /* } */
2318
2334
  ))
2319
- return i && s === U && e.raise("Invalid property name"), s;
2335
+ return i && s === $ && e.raise("Invalid property name"), s;
2320
2336
  e.raise("Invalid property name");
2321
2337
  }
2322
- return mi;
2338
+ return ki;
2323
2339
  };
2324
- function Ps(e) {
2340
+ function Rs(e) {
2325
2341
  return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
2326
2342
  }
2327
2343
  m.regexp_eatUnicodePropertyValueExpression = function(e) {
@@ -2340,7 +2356,7 @@ m.regexp_eatUnicodePropertyValueExpression = function(e) {
2340
2356
  var r = e.lastStringValue;
2341
2357
  return this.regexp_validateUnicodePropertyNameOrValue(e, r);
2342
2358
  }
2343
- return mi;
2359
+ return ki;
2344
2360
  };
2345
2361
  m.regexp_validateUnicodePropertyNameAndValue = function(e, t, i) {
2346
2362
  ye(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(i) || e.raise("Invalid property value");
@@ -2349,26 +2365,26 @@ m.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
2349
2365
  if (e.unicodeProperties.binary.test(t))
2350
2366
  return ee;
2351
2367
  if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t))
2352
- return U;
2368
+ return $;
2353
2369
  e.raise("Invalid property name");
2354
2370
  };
2355
2371
  m.regexp_eatUnicodePropertyName = function(e) {
2356
2372
  var t = 0;
2357
- for (e.lastStringValue = ""; gi(t = e.current()); )
2373
+ for (e.lastStringValue = ""; Si(t = e.current()); )
2358
2374
  e.lastStringValue += Z(t), e.advance();
2359
2375
  return e.lastStringValue !== "";
2360
2376
  };
2361
- function gi(e) {
2362
- return di(e) || e === 95;
2377
+ function Si(e) {
2378
+ return _i(e) || e === 95;
2363
2379
  }
2364
2380
  m.regexp_eatUnicodePropertyValue = function(e) {
2365
2381
  var t = 0;
2366
- for (e.lastStringValue = ""; Ns(t = e.current()); )
2382
+ for (e.lastStringValue = ""; Fs(t = e.current()); )
2367
2383
  e.lastStringValue += Z(t), e.advance();
2368
2384
  return e.lastStringValue !== "";
2369
2385
  };
2370
- function Ns(e) {
2371
- return gi(e) || Je(e);
2386
+ function Fs(e) {
2387
+ return Si(e) || Qe(e);
2372
2388
  }
2373
2389
  m.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2374
2390
  return this.regexp_eatUnicodePropertyValue(e);
@@ -2385,7 +2401,7 @@ m.regexp_eatCharacterClass = function(e) {
2385
2401
  return e.eat(
2386
2402
  93
2387
2403
  /* ] */
2388
- ) || e.raise("Unterminated character class"), t && i === U && e.raise("Negated character class may contain strings"), !0;
2404
+ ) || e.raise("Unterminated character class"), t && i === $ && e.raise("Negated character class may contain strings"), !0;
2389
2405
  }
2390
2406
  return !1;
2391
2407
  };
@@ -2414,7 +2430,7 @@ m.regexp_eatClassAtom = function(e) {
2414
2430
  return !0;
2415
2431
  if (e.switchU) {
2416
2432
  var i = e.current();
2417
- (i === 99 || xi(i)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
2433
+ (i === 99 || Ai(i)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
2418
2434
  }
2419
2435
  e.pos = t;
2420
2436
  }
@@ -2446,13 +2462,13 @@ m.regexp_eatClassEscape = function(e) {
2446
2462
  m.regexp_classSetExpression = function(e) {
2447
2463
  var t = ee, i;
2448
2464
  if (!this.regexp_eatClassSetRange(e)) if (i = this.regexp_eatClassSetOperand(e)) {
2449
- i === U && (t = U);
2465
+ i === $ && (t = $);
2450
2466
  for (var s = e.pos; e.eatChars(
2451
2467
  [38, 38]
2452
2468
  /* && */
2453
2469
  ); ) {
2454
2470
  if (e.current() !== 38 && (i = this.regexp_eatClassSetOperand(e))) {
2455
- i !== U && (t = ee);
2471
+ i !== $ && (t = ee);
2456
2472
  continue;
2457
2473
  }
2458
2474
  e.raise("Invalid character in character class");
@@ -2472,7 +2488,7 @@ m.regexp_classSetExpression = function(e) {
2472
2488
  if (!this.regexp_eatClassSetRange(e)) {
2473
2489
  if (i = this.regexp_eatClassSetOperand(e), !i)
2474
2490
  return t;
2475
- i === U && (t = U);
2491
+ i === $ && (t = $);
2476
2492
  }
2477
2493
  };
2478
2494
  m.regexp_eatClassSetRange = function(e) {
@@ -2507,7 +2523,7 @@ m.regexp_eatNestedClass = function(e) {
2507
2523
  93
2508
2524
  /* ] */
2509
2525
  ))
2510
- return i && s === U && e.raise("Negated character class may contain strings"), s;
2526
+ return i && s === $ && e.raise("Negated character class may contain strings"), s;
2511
2527
  e.pos = t;
2512
2528
  }
2513
2529
  if (e.eat(
@@ -2548,13 +2564,13 @@ m.regexp_classStringDisjunctionContents = function(e) {
2548
2564
  124
2549
2565
  /* | */
2550
2566
  ); )
2551
- this.regexp_classString(e) === U && (t = U);
2567
+ this.regexp_classString(e) === $ && (t = $);
2552
2568
  return t;
2553
2569
  };
2554
2570
  m.regexp_classString = function(e) {
2555
2571
  for (var t = 0; this.regexp_eatClassSetCharacter(e); )
2556
2572
  t++;
2557
- return t === 1 ? ee : U;
2573
+ return t === 1 ? ee : $;
2558
2574
  };
2559
2575
  m.regexp_eatClassSetCharacter = function(e) {
2560
2576
  var t = e.pos;
@@ -2567,24 +2583,24 @@ m.regexp_eatClassSetCharacter = function(e) {
2567
2583
  /* b */
2568
2584
  ) ? (e.lastIntValue = 8, !0) : (e.pos = t, !1);
2569
2585
  var i = e.current();
2570
- return i < 0 || i === e.lookahead() && Os(i) || Ts(i) ? !1 : (e.advance(), e.lastIntValue = i, !0);
2586
+ return i < 0 || i === e.lookahead() && Ds(i) || Bs(i) ? !1 : (e.advance(), e.lastIntValue = i, !0);
2571
2587
  };
2572
- function Os(e) {
2588
+ function Ds(e) {
2573
2589
  return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126;
2574
2590
  }
2575
- function Ts(e) {
2591
+ function Bs(e) {
2576
2592
  return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
2577
2593
  }
2578
2594
  m.regexp_eatClassSetReservedPunctuator = function(e) {
2579
2595
  var t = e.current();
2580
- return Vs(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2596
+ return Ms(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2581
2597
  };
2582
- function Vs(e) {
2598
+ function Ms(e) {
2583
2599
  return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
2584
2600
  }
2585
2601
  m.regexp_eatClassControlLetter = function(e) {
2586
2602
  var t = e.current();
2587
- return Je(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2603
+ return Qe(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2588
2604
  };
2589
2605
  m.regexp_eatHexEscapeSequence = function(e) {
2590
2606
  var t = e.pos;
@@ -2600,23 +2616,23 @@ m.regexp_eatHexEscapeSequence = function(e) {
2600
2616
  };
2601
2617
  m.regexp_eatDecimalDigits = function(e) {
2602
2618
  var t = e.pos, i = 0;
2603
- for (e.lastIntValue = 0; Je(i = e.current()); )
2619
+ for (e.lastIntValue = 0; Qe(i = e.current()); )
2604
2620
  e.lastIntValue = 10 * e.lastIntValue + (i - 48), e.advance();
2605
2621
  return e.pos !== t;
2606
2622
  };
2607
- function Je(e) {
2623
+ function Qe(e) {
2608
2624
  return e >= 48 && e <= 57;
2609
2625
  }
2610
2626
  m.regexp_eatHexDigits = function(e) {
2611
2627
  var t = e.pos, i = 0;
2612
- for (e.lastIntValue = 0; yi(i = e.current()); )
2613
- e.lastIntValue = 16 * e.lastIntValue + bi(i), e.advance();
2628
+ for (e.lastIntValue = 0; wi(i = e.current()); )
2629
+ e.lastIntValue = 16 * e.lastIntValue + Ci(i), e.advance();
2614
2630
  return e.pos !== t;
2615
2631
  };
2616
- function yi(e) {
2632
+ function wi(e) {
2617
2633
  return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
2618
2634
  }
2619
- function bi(e) {
2635
+ function Ci(e) {
2620
2636
  return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
2621
2637
  }
2622
2638
  m.regexp_eatLegacyOctalEscapeSequence = function(e) {
@@ -2633,9 +2649,9 @@ m.regexp_eatLegacyOctalEscapeSequence = function(e) {
2633
2649
  };
2634
2650
  m.regexp_eatOctalDigit = function(e) {
2635
2651
  var t = e.current();
2636
- return xi(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
2652
+ return Ai(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
2637
2653
  };
2638
- function xi(e) {
2654
+ function Ai(e) {
2639
2655
  return e >= 48 && e <= 55;
2640
2656
  }
2641
2657
  m.regexp_eatFixedHexDigits = function(e, t) {
@@ -2643,20 +2659,20 @@ m.regexp_eatFixedHexDigits = function(e, t) {
2643
2659
  e.lastIntValue = 0;
2644
2660
  for (var s = 0; s < t; ++s) {
2645
2661
  var r = e.current();
2646
- if (!yi(r))
2662
+ if (!wi(r))
2647
2663
  return e.pos = i, !1;
2648
- e.lastIntValue = 16 * e.lastIntValue + bi(r), e.advance();
2664
+ e.lastIntValue = 16 * e.lastIntValue + Ci(r), e.advance();
2649
2665
  }
2650
2666
  return !0;
2651
2667
  };
2652
- var xt = function(t) {
2653
- this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new qe(t, t.startLoc, t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
2654
- }, _ = T.prototype;
2668
+ var kt = function(t) {
2669
+ 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
+ }, _ = O.prototype;
2655
2671
  _.next = function(e) {
2656
- !e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new xt(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
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();
2657
2673
  };
2658
2674
  _.getToken = function() {
2659
- return this.next(), new xt(this);
2675
+ return this.next(), new kt(this);
2660
2676
  };
2661
2677
  typeof Symbol < "u" && (_[Symbol.iterator] = function() {
2662
2678
  var e = this;
@@ -2691,7 +2707,7 @@ _.fullCharCodeAtPos = function() {
2691
2707
  _.skipBlockComment = function() {
2692
2708
  var e = this.options.onComment && this.curPosition(), t = this.pos, i = this.input.indexOf("*/", this.pos += 2);
2693
2709
  if (i === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = i + 2, this.options.locations)
2694
- for (var s = void 0, r = t; (s = qt(this.input, r, this.pos)) > -1; )
2710
+ for (var s = void 0, r = t; (s = Ht(this.input, r, this.pos)) > -1; )
2695
2711
  ++this.curLine, r = this.lineStart = s;
2696
2712
  this.options.onComment && this.options.onComment(
2697
2713
  !0,
@@ -2742,7 +2758,7 @@ _.skipSpace = function() {
2742
2758
  }
2743
2759
  break;
2744
2760
  default:
2745
- if (e > 8 && e < 14 || e >= 5760 && Wt.test(String.fromCharCode(e)))
2761
+ if (e > 8 && e < 14 || e >= 5760 && Xt.test(String.fromCharCode(e)))
2746
2762
  ++this.pos;
2747
2763
  else
2748
2764
  break e;
@@ -2946,28 +2962,28 @@ _.readRegexp = function() {
2946
2962
  };
2947
2963
  _.readInt = function(e, t, i) {
2948
2964
  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) {
2949
- var f = this.input.charCodeAt(this.pos), h = void 0;
2950
- if (s && f === 95) {
2951
- 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 = f;
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;
2952
2968
  continue;
2953
2969
  }
2954
- if (f >= 97 ? h = f - 97 + 10 : f >= 65 ? h = f - 65 + 10 : f >= 48 && f <= 57 ? h = f - 48 : h = 1 / 0, h >= e)
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)
2955
2971
  break;
2956
- u = f, o = o * e + h;
2972
+ u = p, o = o * e + f;
2957
2973
  }
2958
2974
  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;
2959
2975
  };
2960
- function Ls(e, t) {
2976
+ function js(e, t) {
2961
2977
  return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
2962
2978
  }
2963
- function vi(e) {
2979
+ function Ii(e) {
2964
2980
  return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
2965
2981
  }
2966
2982
  _.readRadixNumber = function(e) {
2967
2983
  var t = this.pos;
2968
2984
  this.pos += 2;
2969
2985
  var i = this.readInt(e);
2970
- return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = vi(this.input.slice(t, this.pos)), ++this.pos) : J(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, i);
2986
+ return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = Ii(this.input.slice(t, this.pos)), ++this.pos) : J(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, i);
2971
2987
  };
2972
2988
  _.readNumber = function(e) {
2973
2989
  var t = this.pos;
@@ -2976,11 +2992,11 @@ _.readNumber = function(e) {
2976
2992
  i && this.strict && this.raise(t, "Invalid number");
2977
2993
  var s = this.input.charCodeAt(this.pos);
2978
2994
  if (!i && !e && this.options.ecmaVersion >= 11 && s === 110) {
2979
- var r = vi(this.input.slice(t, this.pos));
2995
+ var r = Ii(this.input.slice(t, this.pos));
2980
2996
  return ++this.pos, J(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, r);
2981
2997
  }
2982
2998
  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");
2983
- var n = Ls(this.input.slice(t, this.pos), i);
2999
+ var n = js(this.input.slice(t, this.pos), i);
2984
3000
  return this.finishToken(a.num, n);
2985
3001
  };
2986
3002
  _.readCodePoint = function() {
@@ -3003,13 +3019,13 @@ _.readString = function(e) {
3003
3019
  }
3004
3020
  return t += this.input.slice(i, this.pos++), this.finishToken(a.string, t);
3005
3021
  };
3006
- var _i = {};
3022
+ var Ei = {};
3007
3023
  _.tryReadTemplateToken = function() {
3008
3024
  this.inTemplateElement = !0;
3009
3025
  try {
3010
3026
  this.readTmplToken();
3011
3027
  } catch (e) {
3012
- if (e === _i)
3028
+ if (e === Ei)
3013
3029
  this.readInvalidTemplateToken();
3014
3030
  else
3015
3031
  throw e;
@@ -3018,7 +3034,7 @@ _.tryReadTemplateToken = function() {
3018
3034
  };
3019
3035
  _.invalidStringToken = function(e, t) {
3020
3036
  if (this.inTemplateElement && this.options.ecmaVersion >= 9)
3021
- throw _i;
3037
+ throw Ei;
3022
3038
  this.raise(e, t);
3023
3039
  };
3024
3040
  _.readTmplToken = function() {
@@ -3151,31 +3167,31 @@ _.readWord1 = function() {
3151
3167
  };
3152
3168
  _.readWord = function() {
3153
3169
  var e = this.readWord1(), t = a.name;
3154
- return this.keywords.test(e) && (t = pt[e]), this.finishToken(t, e);
3170
+ return this.keywords.test(e) && (t = gt[e]), this.finishToken(t, e);
3155
3171
  };
3156
- var Rs = "8.15.0";
3157
- T.acorn = {
3158
- Parser: T,
3159
- version: Rs,
3160
- defaultOptions: ot,
3172
+ var Us = "8.15.0";
3173
+ O.acorn = {
3174
+ Parser: O,
3175
+ version: Us,
3176
+ defaultOptions: lt,
3161
3177
  Position: Ce,
3162
- SourceLocation: qe,
3163
- getLineInfo: Kt,
3164
- Node: ze,
3165
- TokenType: k,
3178
+ SourceLocation: Ge,
3179
+ getLineInfo: Zt,
3180
+ Node: Je,
3181
+ TokenType: S,
3166
3182
  tokTypes: a,
3167
- keywordTypes: pt,
3168
- TokContext: G,
3183
+ keywordTypes: gt,
3184
+ TokContext: W,
3169
3185
  tokContexts: I,
3170
3186
  isIdentifierChar: se,
3171
3187
  isIdentifierStart: J,
3172
- Token: xt,
3188
+ Token: kt,
3173
3189
  isNewLine: ge,
3174
3190
  lineBreak: B,
3175
- lineBreakG: ss,
3176
- nonASCIIwhitespace: Wt
3191
+ lineBreakG: ls,
3192
+ nonASCIIwhitespace: Xt
3177
3193
  };
3178
- function me(e) {
3194
+ function re(e) {
3179
3195
  const t = [];
3180
3196
  let i = "", s = null, r = !1, n = 0, o = 0, u = 0;
3181
3197
  for (const c of e) {
@@ -3216,8 +3232,8 @@ function me(e) {
3216
3232
  continue;
3217
3233
  }
3218
3234
  if (c === "," && n === 0 && o === 0 && u === 0) {
3219
- const f = i.trim();
3220
- f && t.push(f), i = "";
3235
+ const p = i.trim();
3236
+ p && t.push(p), i = "";
3221
3237
  continue;
3222
3238
  }
3223
3239
  i += c;
@@ -3225,10 +3241,10 @@ function me(e) {
3225
3241
  const l = i.trim();
3226
3242
  return l && t.push(l), t;
3227
3243
  }
3228
- function Fs(e, t) {
3244
+ function $s(e, t) {
3229
3245
  return e.replace(/\\\\/g, "\\").replace(t === '"' ? /\\"/g : /\\'/g, t);
3230
3246
  }
3231
- function vt(e) {
3247
+ function St(e) {
3232
3248
  const t = e.trim();
3233
3249
  if (!t)
3234
3250
  return "";
@@ -3237,46 +3253,52 @@ function vt(e) {
3237
3253
  return i[2];
3238
3254
  if (t.startsWith('"') && t.endsWith('"') || t.startsWith("'") && t.endsWith("'")) {
3239
3255
  const s = t[0];
3240
- return Fs(t.slice(1, -1), s);
3256
+ return $s(t.slice(1, -1), s);
3241
3257
  }
3242
3258
  if (t.startsWith("[") && t.endsWith("]")) {
3243
3259
  const s = t.slice(1, -1).trim();
3244
- return s ? me(s).map(vt) : [];
3260
+ return s ? re(s).map(St) : [];
3245
3261
  }
3246
3262
  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;
3247
3263
  }
3248
- function Ds(e) {
3264
+ function je(e) {
3249
3265
  const t = {};
3250
- for (const i of me(e)) {
3266
+ for (const i of re(e)) {
3251
3267
  const s = i.match(/^(\w+)\s*=\s*([\s\S]+)$/);
3252
- s && (t[s[1]] = vt(s[2]));
3268
+ s && (t[s[1]] = St(s[2]));
3253
3269
  }
3254
3270
  return t;
3255
3271
  }
3256
- function Bs(e) {
3272
+ function qs(e) {
3257
3273
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null;
3258
3274
  }
3259
- function Si(e) {
3260
- return Array.isArray(e) ? e.filter(Bs) : [];
3275
+ function Pi(e) {
3276
+ return Array.isArray(e) ? e.filter(qs) : [];
3261
3277
  }
3262
- function Ms(e) {
3263
- const t = e?.trim().match(/^(?:(?:typing|typing_extensions)\.)?Literal\s*\[([\s\S]*)\]$/);
3264
- return t ? Si(
3265
- me(t[1]).map(vt)
3278
+ function Gs(e) {
3279
+ const t = mt(e).match(/^(?:(?:typing|typing_extensions)\.)?Literal\s*\[([\s\S]*)\]$/);
3280
+ return t ? Pi(
3281
+ re(t[1]).map(St)
3266
3282
  ) : [];
3267
3283
  }
3268
- function js(e, t) {
3269
- const i = Si(t?.enum);
3284
+ function Ni(e, t) {
3285
+ const i = Pi(t?.enum);
3270
3286
  if (i.length > 0)
3271
3287
  return i;
3272
- const s = Ms(e);
3273
- return s.length > 0 ? s : Hi(e);
3288
+ const s = Gs(e);
3289
+ return s.length > 0 ? s : is(e);
3290
+ }
3291
+ function Ar(e) {
3292
+ const t = mt(e), i = t.match(/^(?:(?:typing|typing_extensions)\.)?(?:list|List)\s*\[/);
3293
+ if (!i) return [];
3294
+ const s = i[0].length - 1;
3295
+ return Ti(t, s) !== t.length - 1 ? [] : Ni(t.slice(s + 1, -1));
3274
3296
  }
3275
- function st(e) {
3276
- const t = js(e.type, e.kwargs);
3297
+ function rt(e) {
3298
+ const t = Ni(e.type, e.kwargs);
3277
3299
  return t.length > 0 && (e.enum = t), e;
3278
3300
  }
3279
- function $s(e, t) {
3301
+ function Ti(e, t) {
3280
3302
  let i = null, s = !1, r = 0;
3281
3303
  for (let n = t; n < e.length; n += 1) {
3282
3304
  const o = e[n];
@@ -3301,60 +3323,125 @@ function $s(e, t) {
3301
3323
  }
3302
3324
  return -1;
3303
3325
  }
3304
- const Us = /* @__PURE__ */ new Set(["int", "integer", "float", "number"]), qs = ["gt", "ge", "lt", "le", "multiple_of"];
3305
- function Ws(e) {
3306
- return e !== void 0 && Us.has(e.toLowerCase());
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());
3307
3329
  }
3308
- function Tr(e) {
3330
+ function Qs(e) {
3331
+ if (typeof e != "string")
3332
+ return;
3333
+ const t = e.trim();
3334
+ if (!t)
3335
+ return;
3336
+ nt.lastIndex = 0;
3337
+ let i = 0, s = 0, r = !1, n = nt.exec(t);
3338
+ for (; n !== null; ) {
3339
+ if (t.slice(s, n.index).trim())
3340
+ return;
3341
+ r = !0;
3342
+ 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);
3344
+ }
3345
+ if (!(!r || t.slice(s).trim()))
3346
+ return Math.round(i);
3347
+ }
3348
+ function Hs(e) {
3349
+ if ("duration" in e) {
3350
+ const t = Qs(e.duration);
3351
+ if (t !== void 0)
3352
+ return t;
3353
+ }
3354
+ }
3355
+ function Xs(e) {
3356
+ if (typeof e != "string")
3357
+ return;
3358
+ const t = e.trim().toLowerCase();
3359
+ if (Ws.has(t))
3360
+ return t;
3361
+ }
3362
+ function Ir(e) {
3363
+ const t = e.trim(), i = re(t), s = i[0].trim();
3364
+ 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();
3367
+ if (/^\d+$/.test(x)) {
3368
+ r = Number.parseInt(x, 10);
3369
+ continue;
3370
+ }
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));
3373
+ }
3374
+ 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 };
3377
+ }
3378
+ function Oi(e, t) {
3379
+ const i = e.slice(e.indexOf("=") + 1).trim();
3380
+ if (!/^(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1$/.test(i))
3381
+ throw new Error(`${t} title must be a quoted string`);
3382
+ return (i.startsWith('"') ? JSON.parse(i) : i.slice(1, -1).replace(/\\(\\|'|"|n|r|t)/g, (s, r) => ({ n: `
3383
+ `, r: "\r", t: " " })[r] ?? r)).trim() || void 0;
3384
+ }
3385
+ function Er(e) {
3386
+ const t = e.trim(), i = re(t), s = i[0].trim();
3387
+ let r, n;
3388
+ for (let o = 1; o < i.length; o++) {
3389
+ /^title\s*=/.test(i[o].trim()) && (n = Oi(i[o], "Checkpoint"));
3390
+ const u = je(i[o]);
3391
+ "checked_message" in u && (r = String(u.checked_message));
3392
+ }
3393
+ return { id: s, ...n ? { title: n } : {}, checked_message: r, label: n ?? s };
3394
+ }
3395
+ function Pr(e) {
3309
3396
  const t = e.trim(), i = t.indexOf("subvars");
3310
3397
  let s, r;
3311
3398
  if (i !== -1) {
3312
3399
  const u = t.indexOf("[", i);
3313
3400
  if (u !== -1) {
3314
- const l = $s(t, u);
3401
+ const l = Ti(t, u);
3315
3402
  l !== -1 && (s = t.slice(u + 1, l));
3316
3403
  }
3317
3404
  }
3318
3405
  if (s) {
3319
- const u = me(s);
3406
+ const u = re(s);
3320
3407
  r = {};
3321
3408
  for (const l of u)
3322
3409
  if (/^var\s*\(/.test(l) || /^[A-Za-z_]\w*\s*[:=]/.test(l)) {
3323
- const c = Ft(l);
3410
+ const c = jt(l);
3324
3411
  r[c.id] = c;
3325
3412
  } else
3326
3413
  r[l] = { id: l };
3327
3414
  }
3328
- const n = me(t).filter((u) => !/^subvars\s*=/.test(u)).join(", "), o = Ft(n);
3415
+ const n = re(t).filter((u) => !/^subvars\s*=/.test(u)).join(", "), o = jt(n);
3329
3416
  return r ? {
3330
3417
  ...o,
3331
3418
  subvars: r
3332
3419
  } : o;
3333
3420
  }
3334
- function Ft(e) {
3421
+ function jt(e) {
3335
3422
  let t = e.trim();
3336
3423
  t.startsWith("var(") && t.endsWith(")") ? t = t.slice(4, -1).trim() : t.startsWith("var (") && t.endsWith(")") && (t = t.slice(5, -1).trim());
3337
- const i = me(t), s = (i[0] || "").trim(), r = i.slice(1).filter((v) => /^\w+\s*=/.test(v)), n = Ds(r.join(", "));
3424
+ const i = re(t), s = (i[0] || "").trim(), r = i.slice(1).filter((x) => /^\w+\s*=/.test(x)), n = je(r.join(", "));
3338
3425
  if (!s.includes(":")) {
3339
- const v = s.indexOf("=");
3340
- if (v > 0) {
3341
- const y = s.slice(v + 1).trim(), w = {
3342
- id: s.slice(0, v).trim(),
3343
- default: Dt(y),
3344
- defaultRaw: y
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
3345
3432
  };
3346
- return Object.keys(n).length > 0 && (w.kwargs = n), st(w);
3433
+ return Object.keys(n).length > 0 && (w.kwargs = n), rt(w);
3347
3434
  }
3348
- const p = { id: s.split(/\s/)[0].trim() };
3349
- return Object.keys(n).length > 0 && (p.kwargs = n), st(p);
3435
+ const h = { id: s.split(/\s/)[0].trim() };
3436
+ return Object.keys(n).length > 0 && (h.kwargs = n), rt(h);
3350
3437
  }
3351
3438
  const o = s.indexOf(":"), u = s.slice(0, o).trim(), l = s.slice(o + 1).trim(), c = l.indexOf("=");
3352
- let f, h, d;
3353
- c > 0 ? (f = l.slice(0, c).trim(), d = l.slice(c + 1).trim(), h = Dt(d)) : f = l.trim();
3354
- const b = { id: u, type: f };
3355
- return h !== void 0 && (b.default = h, b.defaultRaw = d), Object.keys(n).length > 0 && (b.kwargs = n), st(b);
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);
3356
3443
  }
3357
- function Dt(e) {
3444
+ function Ut(e) {
3358
3445
  const t = e.trim();
3359
3446
  if (t === "true" || t === "True")
3360
3447
  return !0;
@@ -3375,7 +3462,7 @@ function Dt(e) {
3375
3462
  }
3376
3463
  return t;
3377
3464
  }
3378
- function Gs(e) {
3465
+ function Ys(e) {
3379
3466
  if (e.type === void 0 || e.default === void 0 || e.default === null)
3380
3467
  return [];
3381
3468
  const t = [], i = e.type.toLowerCase(), s = e.default;
@@ -3403,13 +3490,13 @@ function Gs(e) {
3403
3490
  }
3404
3491
  return t;
3405
3492
  }
3406
- function ki(e) {
3493
+ function Vi(e) {
3407
3494
  const t = [], i = e.kwargs, s = e.type?.toLowerCase();
3408
3495
  if (i) {
3409
- const r = qs.filter(
3496
+ const r = zs.filter(
3410
3497
  (n) => Object.prototype.hasOwnProperty.call(i, n)
3411
3498
  );
3412
- if (r.length > 0 && !Ws(s)) {
3499
+ if (r.length > 0 && !Js(s)) {
3413
3500
  const n = s ?? "untyped";
3414
3501
  t.push(
3415
3502
  `"${e.id}": numeric constraints (${r.join(", ")}) only apply to int/integer/float/number variables, not ${n}`
@@ -3422,23 +3509,23 @@ function ki(e) {
3422
3509
  }
3423
3510
  if (e.subvars)
3424
3511
  for (const r of Object.values(e.subvars))
3425
- t.push(...ki(r));
3512
+ t.push(...Vi(r));
3426
3513
  return t;
3427
3514
  }
3428
- function wi(e) {
3429
- const t = Gs(e);
3515
+ function Li(e) {
3516
+ const t = Ys(e);
3430
3517
  if (e.subvars)
3431
3518
  for (const i of Object.values(e.subvars))
3432
- t.push(...wi(i));
3519
+ t.push(...Li(i));
3433
3520
  return t;
3434
3521
  }
3435
- function Vr(e) {
3522
+ function Nr(e) {
3436
3523
  return [
3437
- ...wi(e),
3438
- ...ki(e)
3524
+ ...Li(e),
3525
+ ...Vi(e)
3439
3526
  ];
3440
3527
  }
3441
- function Bt(e) {
3528
+ function $t(e) {
3442
3529
  const t = e.trim();
3443
3530
  if (t.length >= 2) {
3444
3531
  const i = t[0];
@@ -3451,7 +3538,7 @@ function Bt(e) {
3451
3538
  }
3452
3539
  return t;
3453
3540
  }
3454
- function Ks(e) {
3541
+ function Zs(e) {
3455
3542
  const t = e.split(`
3456
3543
  `), i = {};
3457
3544
  let s = null, r = "", n = !1;
@@ -3461,15 +3548,15 @@ function Ks(e) {
3461
3548
  continue;
3462
3549
  const l = u.match(/^(\w+):\s*(.*)$/);
3463
3550
  if (l) {
3464
- s && (i[s] = Bt(r)), s = l[1];
3551
+ s && (i[s] = $t(r)), s = l[1];
3465
3552
  const c = l[2];
3466
3553
  c === "|" ? (n = !0, r = "") : (n = !1, r = c);
3467
3554
  } else s && (n || u) && (r ? r += `
3468
3555
  ${o}` : r = o);
3469
3556
  }
3470
- return s && (i[s] = Bt(r)), i;
3557
+ return s && (i[s] = $t(r)), i;
3471
3558
  }
3472
- function zs(e) {
3559
+ function Tr(e) {
3473
3560
  const t = [], i = /* @__PURE__ */ new Set();
3474
3561
  for (const [s, r] of e.entries()) {
3475
3562
  const n = r.id?.trim() ?? "", o = r.src?.trim() ?? "", u = n ? `fig "${n}"` : `fig block ${s + 1}`;
@@ -3477,21 +3564,21 @@ function zs(e) {
3477
3564
  }
3478
3565
  return t;
3479
3566
  }
3480
- const Js = ["video", "audio", "file"];
3481
- function Ci(e) {
3567
+ const er = ["video", "audio", "file"];
3568
+ function Ri(e) {
3482
3569
  return (e || "file").trim().toLowerCase() || "file";
3483
3570
  }
3484
- function Qs(e) {
3485
- return Js.includes(Ci(e));
3571
+ function tr(e) {
3572
+ return er.includes(Ri(e));
3486
3573
  }
3487
- function Lr(e) {
3488
- const t = Ci(e.kind);
3489
- return Qs(t) ? [] : [
3574
+ function Or(e) {
3575
+ const t = Ri(e.kind);
3576
+ return tr(t) ? [] : [
3490
3577
  `media "${e.id}": unsupported kind "${e.kind}". Supported media kinds are video, audio, and file; static images must use a fig block.`
3491
3578
  ];
3492
3579
  }
3493
- function Rr(e) {
3494
- const t = Ks(e);
3580
+ function Vr(e) {
3581
+ const t = Zs(e);
3495
3582
  if (!t.id || !t.src)
3496
3583
  throw new Error('media block must have "id" and "src" fields');
3497
3584
  const i = {
@@ -3503,11 +3590,11 @@ function Rr(e) {
3503
3590
  }
3504
3591
  new TextEncoder();
3505
3592
  new TextDecoder();
3506
- const _t = /* @__PURE__ */ Symbol.for("yaml.alias"), Hs = /* @__PURE__ */ Symbol.for("yaml.document"), ue = /* @__PURE__ */ Symbol.for("yaml.map"), Ai = /* @__PURE__ */ Symbol.for("yaml.pair"), St = /* @__PURE__ */ Symbol.for("yaml.scalar"), Ne = /* @__PURE__ */ Symbol.for("yaml.seq"), X = /* @__PURE__ */ Symbol.for("yaml.node.type"), ce = (e) => !!e && typeof e == "object" && e[X] === _t, Qe = (e) => !!e && typeof e == "object" && e[X] === Hs, Ii = (e) => !!e && typeof e == "object" && e[X] === ue, V = (e) => !!e && typeof e == "object" && e[X] === Ai, O = (e) => !!e && typeof e == "object" && e[X] === St, kt = (e) => !!e && typeof e == "object" && e[X] === Ne;
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;
3507
3594
  function M(e) {
3508
3595
  if (e && typeof e == "object")
3509
3596
  switch (e[X]) {
3510
- case ue:
3597
+ case le:
3511
3598
  case Ne:
3512
3599
  return !0;
3513
3600
  }
@@ -3516,54 +3603,54 @@ function M(e) {
3516
3603
  function R(e) {
3517
3604
  if (e && typeof e == "object")
3518
3605
  switch (e[X]) {
3519
- case _t:
3520
- case ue:
3521
- case St:
3606
+ case wt:
3607
+ case le:
3608
+ case Ct:
3522
3609
  case Ne:
3523
3610
  return !0;
3524
3611
  }
3525
3612
  return !1;
3526
3613
  }
3527
- const Ei = (e) => (O(e) || M(e)) && !!e.anchor, ae = /* @__PURE__ */ Symbol("break visit"), Xs = /* @__PURE__ */ Symbol("skip children"), ke = /* @__PURE__ */ Symbol("remove node");
3528
- function He(e, t) {
3529
- const i = Ys(t);
3530
- Qe(e) ? fe(null, e.contents, i, Object.freeze([e])) === ke && (e.contents = null) : fe(null, e, i, Object.freeze([]));
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([]));
3531
3618
  }
3532
- He.BREAK = ae;
3533
- He.SKIP = Xs;
3534
- He.REMOVE = ke;
3535
- function fe(e, t, i, s) {
3536
- const r = Zs(e, t, i, s);
3619
+ Xe.BREAK = oe;
3620
+ Xe.SKIP = sr;
3621
+ Xe.REMOVE = Se;
3622
+ function pe(e, t, i, s) {
3623
+ const r = nr(e, t, i, s);
3537
3624
  if (R(r) || V(r))
3538
- return er(e, s, r), fe(e, r, i, s);
3625
+ return ar(e, s, r), pe(e, r, i, s);
3539
3626
  if (typeof r != "symbol") {
3540
3627
  if (M(t)) {
3541
3628
  s = Object.freeze(s.concat(t));
3542
3629
  for (let n = 0; n < t.items.length; ++n) {
3543
- const o = fe(n, t.items[n], i, s);
3630
+ const o = pe(n, t.items[n], i, s);
3544
3631
  if (typeof o == "number")
3545
3632
  n = o - 1;
3546
3633
  else {
3547
- if (o === ae)
3548
- return ae;
3549
- o === ke && (t.items.splice(n, 1), n -= 1);
3634
+ if (o === oe)
3635
+ return oe;
3636
+ o === Se && (t.items.splice(n, 1), n -= 1);
3550
3637
  }
3551
3638
  }
3552
3639
  } else if (V(t)) {
3553
3640
  s = Object.freeze(s.concat(t));
3554
- const n = fe("key", t.key, i, s);
3555
- if (n === ae)
3556
- return ae;
3557
- n === ke && (t.key = null);
3558
- const o = fe("value", t.value, i, s);
3559
- if (o === ae)
3560
- return ae;
3561
- o === ke && (t.value = null);
3641
+ const n = pe("key", t.key, i, s);
3642
+ if (n === oe)
3643
+ return oe;
3644
+ n === Se && (t.key = null);
3645
+ const o = pe("value", t.value, i, s);
3646
+ if (o === oe)
3647
+ return oe;
3648
+ o === Se && (t.value = null);
3562
3649
  }
3563
3650
  }
3564
3651
  return r;
3565
3652
  }
3566
- function Ys(e) {
3653
+ function rr(e) {
3567
3654
  return typeof e == "object" && (e.Collection || e.Node || e.Value) ? Object.assign({
3568
3655
  Alias: e.Node,
3569
3656
  Map: e.Node,
@@ -3578,34 +3665,34 @@ function Ys(e) {
3578
3665
  Seq: e.Collection
3579
3666
  }, e) : e;
3580
3667
  }
3581
- function Zs(e, t, i, s) {
3668
+ function nr(e, t, i, s) {
3582
3669
  if (typeof i == "function")
3583
3670
  return i(e, t, s);
3584
- if (Ii(t))
3671
+ if (Di(t))
3585
3672
  return i.Map?.(e, t, s);
3586
- if (kt(t))
3673
+ if (At(t))
3587
3674
  return i.Seq?.(e, t, s);
3588
3675
  if (V(t))
3589
3676
  return i.Pair?.(e, t, s);
3590
- if (O(t))
3677
+ if (T(t))
3591
3678
  return i.Scalar?.(e, t, s);
3592
- if (ce(t))
3679
+ if (he(t))
3593
3680
  return i.Alias?.(e, t, s);
3594
3681
  }
3595
- function er(e, t, i) {
3682
+ function ar(e, t, i) {
3596
3683
  const s = t[t.length - 1];
3597
3684
  if (M(s))
3598
3685
  s.items[e] = i;
3599
3686
  else if (V(s))
3600
3687
  e === "key" ? s.key = i : s.value = i;
3601
- else if (Qe(s))
3688
+ else if (He(s))
3602
3689
  s.contents = i;
3603
3690
  else {
3604
- const r = ce(s) ? "alias" : "scalar";
3691
+ const r = he(s) ? "alias" : "scalar";
3605
3692
  throw new Error(`Cannot replace node with ${r} parent`);
3606
3693
  }
3607
3694
  }
3608
- function Pi(e) {
3695
+ function Mi(e) {
3609
3696
  if (/[\x00-\x19\s,[\]{}]/.test(e)) {
3610
3697
  const i = `Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;
3611
3698
  throw new Error(i);
@@ -3640,7 +3727,7 @@ function K(e, t, i) {
3640
3727
  if (Array.isArray(e))
3641
3728
  return e.map((s, r) => K(s, String(r), i));
3642
3729
  if (e && typeof e.toJSON == "function") {
3643
- if (!i || !Ei(e))
3730
+ if (!i || !Bi(e))
3644
3731
  return e.toJSON(t, i);
3645
3732
  const s = { aliasCount: 0, count: 1, res: void 0 };
3646
3733
  i.anchors.set(e, s), i.onCreate = (n) => {
@@ -3651,7 +3738,7 @@ function K(e, t, i) {
3651
3738
  }
3652
3739
  return typeof e == "bigint" && !i?.keep ? Number(e) : e;
3653
3740
  }
3654
- class wt {
3741
+ class It {
3655
3742
  constructor(t) {
3656
3743
  Object.defineProperty(this, X, { value: t });
3657
3744
  }
@@ -3662,7 +3749,7 @@ class wt {
3662
3749
  }
3663
3750
  /** A plain JavaScript representation of this node. */
3664
3751
  toJS(t, { mapAsMap: i, maxAliasCount: s, onAnchor: r, reviver: n } = {}) {
3665
- if (!Qe(t))
3752
+ if (!He(t))
3666
3753
  throw new TypeError("A document argument is required");
3667
3754
  const o = {
3668
3755
  anchors: /* @__PURE__ */ new Map(),
@@ -3678,9 +3765,9 @@ class wt {
3678
3765
  return typeof n == "function" ? _e(n, { "": u }, "", u) : u;
3679
3766
  }
3680
3767
  }
3681
- class tr extends wt {
3768
+ class or extends It {
3682
3769
  constructor(t) {
3683
- super(_t), this.source = t, Object.defineProperty(this, "tag", {
3770
+ super(wt), this.source = t, Object.defineProperty(this, "tag", {
3684
3771
  set() {
3685
3772
  throw new Error("Alias nodes cannot have tags");
3686
3773
  }
@@ -3692,9 +3779,9 @@ class tr extends wt {
3692
3779
  */
3693
3780
  resolve(t, i) {
3694
3781
  let s;
3695
- i?.aliasResolveCache ? s = i.aliasResolveCache : (s = [], He(t, {
3782
+ i?.aliasResolveCache ? s = i.aliasResolveCache : (s = [], Xe(t, {
3696
3783
  Node: (n, o) => {
3697
- (ce(o) || Ei(o)) && s.push(o);
3784
+ (he(o) || Bi(o)) && s.push(o);
3698
3785
  }
3699
3786
  }), i && (i.aliasResolveCache = s));
3700
3787
  let r;
@@ -3727,7 +3814,7 @@ class tr extends wt {
3727
3814
  toString(t, i, s) {
3728
3815
  const r = `*${this.source}`;
3729
3816
  if (t) {
3730
- if (Pi(this.source), t.options.verifyAliasOrder && !t.anchors.has(this.source)) {
3817
+ if (Mi(this.source), t.options.verifyAliasOrder && !t.anchors.has(this.source)) {
3731
3818
  const n = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
3732
3819
  throw new Error(n);
3733
3820
  }
@@ -3738,7 +3825,7 @@ class tr extends wt {
3738
3825
  }
3739
3826
  }
3740
3827
  function Ve(e, t, i) {
3741
- if (ce(t)) {
3828
+ if (he(t)) {
3742
3829
  const s = t.resolve(e), r = i && s && i.get(s);
3743
3830
  return r ? r.count * r.aliasCount : 0;
3744
3831
  } else if (M(t)) {
@@ -3754,10 +3841,10 @@ function Ve(e, t, i) {
3754
3841
  }
3755
3842
  return 1;
3756
3843
  }
3757
- const Ni = (e) => !e || typeof e != "function" && typeof e != "object";
3758
- class P extends wt {
3844
+ const ji = (e) => !e || typeof e != "function" && typeof e != "object";
3845
+ class P extends It {
3759
3846
  constructor(t) {
3760
- super(St), this.value = t;
3847
+ super(Ct), this.value = t;
3761
3848
  }
3762
3849
  toJSON(t, i) {
3763
3850
  return i?.keep ? this.value : K(this.value, t, i);
@@ -3771,37 +3858,37 @@ P.BLOCK_LITERAL = "BLOCK_LITERAL";
3771
3858
  P.PLAIN = "PLAIN";
3772
3859
  P.QUOTE_DOUBLE = "QUOTE_DOUBLE";
3773
3860
  P.QUOTE_SINGLE = "QUOTE_SINGLE";
3774
- function ir(e, t, i) {
3861
+ function ur(e, t, i) {
3775
3862
  return i.find((s) => s.identify?.(e) && !s.format);
3776
3863
  }
3777
- function je(e, t, i) {
3778
- if (Qe(e) && (e = e.contents), R(e))
3864
+ function Ue(e, t, i) {
3865
+ if (He(e) && (e = e.contents), R(e))
3779
3866
  return e;
3780
3867
  if (V(e)) {
3781
- const h = i.schema[ue].createNode?.(i.schema, null, i);
3782
- return h.items.push(e), h;
3868
+ const f = i.schema[le].createNode?.(i.schema, null, i);
3869
+ return f.items.push(e), f;
3783
3870
  }
3784
3871
  (e instanceof String || e instanceof Number || e instanceof Boolean || typeof BigInt < "u" && e instanceof BigInt) && (e = e.valueOf());
3785
3872
  const { aliasDuplicateObjects: s, onAnchor: r, onTagObj: n, schema: o, sourceObjects: u } = i;
3786
3873
  let l;
3787
3874
  if (s && e && typeof e == "object") {
3788
3875
  if (l = u.get(e), l)
3789
- return l.anchor ?? (l.anchor = r(e)), new tr(l.anchor);
3876
+ return l.anchor ?? (l.anchor = r(e)), new or(l.anchor);
3790
3877
  l = { anchor: null, node: null }, u.set(e, l);
3791
3878
  }
3792
- let c = ir(e, t, o.tags);
3879
+ let c = ur(e, t, o.tags);
3793
3880
  if (!c) {
3794
3881
  if (e && typeof e.toJSON == "function" && (e = e.toJSON()), !e || typeof e != "object") {
3795
- const h = new P(e);
3796
- return l && (l.node = h), h;
3882
+ const f = new P(e);
3883
+ return l && (l.node = f), f;
3797
3884
  }
3798
- c = e instanceof Map ? o[ue] : Symbol.iterator in Object(e) ? o[Ne] : o[ue];
3885
+ c = e instanceof Map ? o[le] : Symbol.iterator in Object(e) ? o[Ne] : o[le];
3799
3886
  }
3800
3887
  n && (n(c), delete i.onTagObj);
3801
- const f = c?.createNode ? c.createNode(i.schema, e, i) : typeof c?.nodeClass?.from == "function" ? c.nodeClass.from(i.schema, e, i) : new P(e);
3802
- return c.default || (f.tag = c.tag), l && (l.node = f), f;
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;
3803
3890
  }
3804
- function Mt(e, t, i) {
3891
+ function qt(e, t, i) {
3805
3892
  let s = i;
3806
3893
  for (let r = t.length - 1; r >= 0; --r) {
3807
3894
  const n = t[r];
@@ -3811,7 +3898,7 @@ function Mt(e, t, i) {
3811
3898
  } else
3812
3899
  s = /* @__PURE__ */ new Map([[n, s]]);
3813
3900
  }
3814
- return je(s, void 0, {
3901
+ return Ue(s, void 0, {
3815
3902
  aliasDuplicateObjects: !1,
3816
3903
  keepUndefined: !1,
3817
3904
  onAnchor: () => {
@@ -3821,8 +3908,8 @@ function Mt(e, t, i) {
3821
3908
  sourceObjects: /* @__PURE__ */ new Map()
3822
3909
  });
3823
3910
  }
3824
- const sr = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next().done;
3825
- class Oi extends wt {
3911
+ const lr = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next().done;
3912
+ class Ui extends It {
3826
3913
  constructor(t, i) {
3827
3914
  super(t), Object.defineProperty(this, "schema", {
3828
3915
  value: i,
@@ -3846,14 +3933,14 @@ class Oi extends wt {
3846
3933
  * that already exists in the map.
3847
3934
  */
3848
3935
  addIn(t, i) {
3849
- if (sr(t))
3936
+ if (lr(t))
3850
3937
  this.add(i);
3851
3938
  else {
3852
3939
  const [s, ...r] = t, n = this.get(s, !0);
3853
3940
  if (M(n))
3854
3941
  n.addIn(r, i);
3855
3942
  else if (n === void 0 && this.schema)
3856
- this.set(s, Mt(this.schema, r, i));
3943
+ this.set(s, qt(this.schema, r, i));
3857
3944
  else
3858
3945
  throw new Error(`Expected YAML collection at ${s}. Remaining path: ${r}`);
3859
3946
  }
@@ -3878,14 +3965,14 @@ class Oi extends wt {
3878
3965
  */
3879
3966
  getIn(t, i) {
3880
3967
  const [s, ...r] = t, n = this.get(s, !0);
3881
- return r.length === 0 ? !i && O(n) ? n.value : n : M(n) ? n.getIn(r, i) : void 0;
3968
+ return r.length === 0 ? !i && T(n) ? n.value : n : M(n) ? n.getIn(r, i) : void 0;
3882
3969
  }
3883
3970
  hasAllNullValues(t) {
3884
3971
  return this.items.every((i) => {
3885
3972
  if (!V(i))
3886
3973
  return !1;
3887
3974
  const s = i.value;
3888
- return s == null || t && O(s) && s.value == null && !s.commentBefore && !s.comment && !s.tag;
3975
+ return s == null || t && T(s) && s.value == null && !s.commentBefore && !s.comment && !s.tag;
3889
3976
  });
3890
3977
  }
3891
3978
  /**
@@ -3911,87 +3998,87 @@ class Oi extends wt {
3911
3998
  if (M(n))
3912
3999
  n.setIn(r, i);
3913
4000
  else if (n === void 0 && this.schema)
3914
- this.set(s, Mt(this.schema, r, i));
4001
+ this.set(s, qt(this.schema, r, i));
3915
4002
  else
3916
4003
  throw new Error(`Expected YAML collection at ${s}. Remaining path: ${r}`);
3917
4004
  }
3918
4005
  }
3919
4006
  }
3920
- const rr = (e) => e.replace(/^(?!$)(?: $)?/gm, "#");
4007
+ const cr = (e) => e.replace(/^(?!$)(?: $)?/gm, "#");
3921
4008
  function Ie(e, t) {
3922
4009
  return /^\n+$/.test(e) ? e.substring(1) : t ? e.replace(/^(?! *$)/gm, t) : e;
3923
4010
  }
3924
- const pe = (e, t, i) => e.endsWith(`
4011
+ const de = (e, t, i) => e.endsWith(`
3925
4012
  `) ? Ie(i, t) : i.includes(`
3926
4013
  `) ? `
3927
- ` + Ie(i, t) : (e.endsWith(" ") ? "" : " ") + i, Ti = "flow", ct = "block", Le = "quoted";
3928
- function Xe(e, t, i = "flow", { indentAtStart: s, lineWidth: r = 80, minContentWidth: n = 20, onFold: o, onOverflow: u } = {}) {
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 } = {}) {
3929
4016
  if (!r || r < 0)
3930
4017
  return e;
3931
4018
  r < n && (n = 0);
3932
4019
  const l = Math.max(1 + n, 1 + r - t.length);
3933
4020
  if (e.length <= l)
3934
4021
  return e;
3935
- const c = [], f = {};
3936
- let h = r - t.length;
3937
- typeof s == "number" && (s > r - Math.max(2, n) ? c.push(0) : h = r - s);
3938
- let d, b, v = !1, p = -1, y = -1, w = -1;
3939
- i === ct && (p = jt(e, p, t.length), p !== -1 && (h = p + l));
3940
- for (let A; A = e[p += 1]; ) {
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]; ) {
3941
4028
  if (i === Le && A === "\\") {
3942
- switch (y = p, e[p + 1]) {
4029
+ switch (b = h, e[h + 1]) {
3943
4030
  case "x":
3944
- p += 3;
4031
+ h += 3;
3945
4032
  break;
3946
4033
  case "u":
3947
- p += 5;
4034
+ h += 5;
3948
4035
  break;
3949
4036
  case "U":
3950
- p += 9;
4037
+ h += 9;
3951
4038
  break;
3952
4039
  default:
3953
- p += 1;
4040
+ h += 1;
3954
4041
  }
3955
- w = p;
4042
+ w = h;
3956
4043
  }
3957
4044
  if (A === `
3958
4045
  `)
3959
- i === ct && (p = jt(e, p, t.length)), h = p + t.length + l, d = void 0;
4046
+ i === ft && (h = Gt(e, h, t.length)), f = h + t.length + l, d = void 0;
3960
4047
  else {
3961
- if (A === " " && b && b !== " " && b !== `
3962
- ` && b !== " ") {
3963
- const E = e[p + 1];
4048
+ if (A === " " && y && y !== " " && y !== `
4049
+ ` && y !== " ") {
4050
+ const E = e[h + 1];
3964
4051
  E && E !== " " && E !== `
3965
- ` && E !== " " && (d = p);
4052
+ ` && E !== " " && (d = h);
3966
4053
  }
3967
- if (p >= h)
4054
+ if (h >= f)
3968
4055
  if (d)
3969
- c.push(d), h = d + l, d = void 0;
4056
+ c.push(d), f = d + l, d = void 0;
3970
4057
  else if (i === Le) {
3971
- for (; b === " " || b === " "; )
3972
- b = A, A = e[p += 1], v = !0;
3973
- const E = p > w + 1 ? p - 2 : y - 1;
3974
- if (f[E])
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])
3975
4062
  return e;
3976
- c.push(E), f[E] = !0, h = E + l, d = void 0;
4063
+ c.push(E), p[E] = !0, f = E + l, d = void 0;
3977
4064
  } else
3978
- v = !0;
4065
+ x = !0;
3979
4066
  }
3980
- b = A;
4067
+ y = A;
3981
4068
  }
3982
- if (v && u && u(), c.length === 0)
4069
+ if (x && u && u(), c.length === 0)
3983
4070
  return e;
3984
4071
  o && o();
3985
4072
  let C = e.slice(0, c[0]);
3986
4073
  for (let A = 0; A < c.length; ++A) {
3987
4074
  const E = c[A], N = c[A + 1] || e.length;
3988
4075
  E === 0 ? C = `
3989
- ${t}${e.slice(0, N)}` : (i === Le && f[E] && (C += `${e[E]}\\`), C += `
4076
+ ${t}${e.slice(0, N)}` : (i === Le && p[E] && (C += `${e[E]}\\`), C += `
3990
4077
  ${t}${e.slice(E + 1, N)}`);
3991
4078
  }
3992
4079
  return C;
3993
4080
  }
3994
- function jt(e, t, i) {
4081
+ function Gt(e, t, i) {
3995
4082
  let s = t, r = t + 1, n = e[r];
3996
4083
  for (; n === " " || n === " "; )
3997
4084
  if (t < r + i)
@@ -4005,12 +4092,12 @@ function jt(e, t, i) {
4005
4092
  }
4006
4093
  return s;
4007
4094
  }
4008
- const Ye = (e, t) => ({
4095
+ const Ze = (e, t) => ({
4009
4096
  indentAtStart: t ? e.indent.length : e.indentAtStart,
4010
4097
  lineWidth: e.options.lineWidth,
4011
4098
  minContentWidth: e.options.minContentWidth
4012
- }), Ze = (e) => /^(%|---|\.\.\.)/m.test(e);
4013
- function nr(e, t, i) {
4099
+ }), et = (e) => /^(%|---|\.\.\.)/m.test(e);
4100
+ function hr(e, t, i) {
4014
4101
  if (!t || t < 0)
4015
4102
  return !1;
4016
4103
  const s = t - i, r = e.length;
@@ -4030,7 +4117,7 @@ function we(e, t) {
4030
4117
  const i = JSON.stringify(e);
4031
4118
  if (t.options.doubleQuotedAsJSON)
4032
4119
  return i;
4033
- const { implicitKey: s } = t, r = t.options.doubleQuotedMinMultiLineLength, n = t.indent || (Ze(e) ? " " : "");
4120
+ const { implicitKey: s } = t, r = t.options.doubleQuotedMinMultiLineLength, n = t.indent || (et(e) ? " " : "");
4034
4121
  let o = "", u = 0;
4035
4122
  for (let l = 0, c = i[l]; c; c = i[++l])
4036
4123
  if (c === " " && i[l + 1] === "\\" && i[l + 2] === "n" && (o += i.slice(u, l) + "\\ ", l += 1, u = l, c = "\\"), c === "\\")
@@ -4038,8 +4125,8 @@ function we(e, t) {
4038
4125
  case "u":
4039
4126
  {
4040
4127
  o += i.slice(u, l);
4041
- const f = i.substr(l + 2, 4);
4042
- switch (f) {
4128
+ const p = i.substr(l + 2, 4);
4129
+ switch (p) {
4043
4130
  case "0000":
4044
4131
  o += "\\0";
4045
4132
  break;
@@ -4065,7 +4152,7 @@ function we(e, t) {
4065
4152
  o += "\\P";
4066
4153
  break;
4067
4154
  default:
4068
- f.substr(0, 2) === "00" ? o += "\\x" + f.substr(2) : o += i.substr(l, 6);
4155
+ p.substr(0, 2) === "00" ? o += "\\x" + p.substr(2) : o += i.substr(l, 6);
4069
4156
  }
4070
4157
  l += 5, u = l + 1;
4071
4158
  }
@@ -4085,144 +4172,144 @@ function we(e, t) {
4085
4172
  default:
4086
4173
  l += 1;
4087
4174
  }
4088
- return o = u ? o + i.slice(u) : i, s ? o : Xe(o, n, Le, Ye(t, !1));
4175
+ return o = u ? o + i.slice(u) : i, s ? o : Ye(o, n, Le, Ze(t, !1));
4089
4176
  }
4090
- function ht(e, t) {
4177
+ function pt(e, t) {
4091
4178
  if (t.options.singleQuote === !1 || t.implicitKey && e.includes(`
4092
4179
  `) || /[ \t]\n|\n[ \t]/.test(e))
4093
4180
  return we(e, t);
4094
- const i = t.indent || (Ze(e) ? " " : ""), s = "'" + e.replace(/'/g, "''").replace(/\n+/g, `$&
4181
+ const i = t.indent || (et(e) ? " " : ""), s = "'" + e.replace(/'/g, "''").replace(/\n+/g, `$&
4095
4182
  ${i}`) + "'";
4096
- return t.implicitKey ? s : Xe(s, i, Ti, Ye(t, !1));
4183
+ return t.implicitKey ? s : Ye(s, i, $i, Ze(t, !1));
4097
4184
  }
4098
- function de(e, t) {
4185
+ function me(e, t) {
4099
4186
  const { singleQuote: i } = t.options;
4100
4187
  let s;
4101
4188
  if (i === !1)
4102
4189
  s = we;
4103
4190
  else {
4104
4191
  const r = e.includes('"'), n = e.includes("'");
4105
- r && !n ? s = ht : n && !r ? s = we : s = i ? ht : we;
4192
+ r && !n ? s = pt : n && !r ? s = we : s = i ? pt : we;
4106
4193
  }
4107
4194
  return s(e, t);
4108
4195
  }
4109
- let ft;
4196
+ let dt;
4110
4197
  try {
4111
- ft = new RegExp(`(^|(?<!
4198
+ dt = new RegExp(`(^|(?<!
4112
4199
  ))
4113
4200
  +(?!
4114
4201
  |$)`, "g");
4115
4202
  } catch {
4116
- ft = /\n+(?!\n|$)/g;
4203
+ dt = /\n+(?!\n|$)/g;
4117
4204
  }
4118
4205
  function Re({ comment: e, type: t, value: i }, s, r, n) {
4119
4206
  const { blockQuote: o, commentString: u, lineWidth: l } = s.options;
4120
4207
  if (!o || /\n[\t ]+$/.test(i))
4121
- return de(i, s);
4122
- const c = s.indent || (s.forceBlockIndent || Ze(i) ? " " : ""), f = o === "literal" ? !0 : o === "folded" || t === P.BLOCK_FOLDED ? !1 : t === P.BLOCK_LITERAL ? !0 : !nr(i, l, c.length);
4208
+ 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);
4123
4210
  if (!i)
4124
- return f ? `|
4211
+ return p ? `|
4125
4212
  ` : `>
4126
4213
  `;
4127
- let h, d;
4214
+ let f, d;
4128
4215
  for (d = i.length; d > 0; --d) {
4129
4216
  const N = i[d - 1];
4130
4217
  if (N !== `
4131
4218
  ` && N !== " " && N !== " ")
4132
4219
  break;
4133
4220
  }
4134
- let b = i.substring(d);
4135
- const v = b.indexOf(`
4221
+ let y = i.substring(d);
4222
+ const x = y.indexOf(`
4136
4223
  `);
4137
- v === -1 ? h = "-" : i === b || v !== b.length - 1 ? (h = "+", n && n()) : h = "", b && (i = i.slice(0, -b.length), b[b.length - 1] === `
4138
- ` && (b = b.slice(0, -1)), b = b.replace(ft, `$&${c}`));
4139
- let p = !1, y, w = -1;
4140
- for (y = 0; y < i.length; ++y) {
4141
- const N = i[y];
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];
4142
4229
  if (N === " ")
4143
- p = !0;
4230
+ h = !0;
4144
4231
  else if (N === `
4145
4232
  `)
4146
- w = y;
4233
+ w = b;
4147
4234
  else
4148
4235
  break;
4149
4236
  }
4150
- let C = i.substring(0, w < y ? w + 1 : y);
4237
+ let C = i.substring(0, w < b ? w + 1 : b);
4151
4238
  C && (i = i.substring(C.length), C = C.replace(/\n+/g, `$&${c}`));
4152
- let E = (p ? c ? "2" : "1" : "") + h;
4153
- if (e && (E += " " + u(e.replace(/ ?[\r\n]+/g, " ")), r && r()), !f) {
4239
+ let E = (h ? c ? "2" : "1" : "") + f;
4240
+ if (e && (E += " " + u(e.replace(/ ?[\r\n]+/g, " ")), r && r()), !p) {
4154
4241
  const N = i.replace(/\n+/g, `
4155
4242
  $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${c}`);
4156
- let W = !1;
4157
- const z = Ye(s, !0);
4243
+ let G = !1;
4244
+ const z = Ze(s, !0);
4158
4245
  o !== "folded" && t !== P.BLOCK_FOLDED && (z.onOverflow = () => {
4159
- W = !0;
4246
+ G = !0;
4160
4247
  });
4161
- const ve = Xe(`${C}${N}${b}`, c, ct, z);
4162
- if (!W)
4248
+ const ve = Ye(`${C}${N}${y}`, c, ft, z);
4249
+ if (!G)
4163
4250
  return `>${E}
4164
4251
  ${c}${ve}`;
4165
4252
  }
4166
4253
  return i = i.replace(/\n+/g, `$&${c}`), `|${E}
4167
- ${c}${C}${i}${b}`;
4254
+ ${c}${C}${i}${y}`;
4168
4255
  }
4169
- function ar(e, t, i, s) {
4170
- const { type: r, value: n } = e, { actualString: o, implicitKey: u, indent: l, indentStep: c, inFlow: f } = t;
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;
4171
4258
  if (u && n.includes(`
4172
- `) || f && /[[\]{},]/.test(n))
4173
- return de(n, t);
4259
+ `) || p && /[[\]{},]/.test(n))
4260
+ return me(n, t);
4174
4261
  if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(n))
4175
- return u || f || !n.includes(`
4176
- `) ? de(n, t) : Re(e, t, i, s);
4177
- if (!u && !f && r !== P.PLAIN && n.includes(`
4262
+ return u || p || !n.includes(`
4263
+ `) ? me(n, t) : Re(e, t, i, s);
4264
+ if (!u && !p && r !== P.PLAIN && n.includes(`
4178
4265
  `))
4179
4266
  return Re(e, t, i, s);
4180
- if (Ze(n)) {
4267
+ if (et(n)) {
4181
4268
  if (l === "")
4182
4269
  return t.forceBlockIndent = !0, Re(e, t, i, s);
4183
4270
  if (u && l === c)
4184
- return de(n, t);
4271
+ return me(n, t);
4185
4272
  }
4186
- const h = n.replace(/\n+/g, `$&
4273
+ const f = n.replace(/\n+/g, `$&
4187
4274
  ${l}`);
4188
4275
  if (o) {
4189
- const d = (p) => p.default && p.tag !== "tag:yaml.org,2002:str" && p.test?.test(h), { compat: b, tags: v } = t.doc.schema;
4190
- if (v.some(d) || b?.some(d))
4191
- return de(n, t);
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))
4278
+ return me(n, t);
4192
4279
  }
4193
- return u ? h : Xe(h, l, Ti, Ye(t, !1));
4280
+ return u ? f : Ye(f, l, $i, Ze(t, !1));
4194
4281
  }
4195
- function or(e, t, i, s) {
4282
+ function pr(e, t, i, s) {
4196
4283
  const { implicitKey: r, inFlow: n } = t, o = typeof e.value == "string" ? e : Object.assign({}, e, { value: String(e.value) });
4197
4284
  let { type: u } = e;
4198
4285
  u !== P.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (u = P.QUOTE_DOUBLE);
4199
- const l = (f) => {
4200
- switch (f) {
4286
+ const l = (p) => {
4287
+ switch (p) {
4201
4288
  case P.BLOCK_FOLDED:
4202
4289
  case P.BLOCK_LITERAL:
4203
- return r || n ? de(o.value, t) : Re(o, t, i, s);
4290
+ return r || n ? me(o.value, t) : Re(o, t, i, s);
4204
4291
  case P.QUOTE_DOUBLE:
4205
4292
  return we(o.value, t);
4206
4293
  case P.QUOTE_SINGLE:
4207
- return ht(o.value, t);
4294
+ return pt(o.value, t);
4208
4295
  case P.PLAIN:
4209
- return ar(o, t, i, s);
4296
+ return fr(o, t, i, s);
4210
4297
  default:
4211
4298
  return null;
4212
4299
  }
4213
4300
  };
4214
4301
  let c = l(u);
4215
4302
  if (c === null) {
4216
- const { defaultKeyType: f, defaultStringType: h } = t.options, d = r && f || h;
4303
+ const { defaultKeyType: p, defaultStringType: f } = t.options, d = r && p || f;
4217
4304
  if (c = l(d), c === null)
4218
4305
  throw new Error(`Unsupported default string type ${d}`);
4219
4306
  }
4220
4307
  return c;
4221
4308
  }
4222
- function ur(e, t) {
4309
+ function dr(e, t) {
4223
4310
  const i = Object.assign({
4224
4311
  blockQuote: !0,
4225
- commentString: rr,
4312
+ commentString: cr,
4226
4313
  defaultKeyType: null,
4227
4314
  defaultStringType: "PLAIN",
4228
4315
  directives: null,
@@ -4260,14 +4347,14 @@ function ur(e, t) {
4260
4347
  options: i
4261
4348
  };
4262
4349
  }
4263
- function lr(e, t) {
4350
+ function mr(e, t) {
4264
4351
  if (t.tag) {
4265
4352
  const r = e.filter((n) => n.tag === t.tag);
4266
4353
  if (r.length > 0)
4267
4354
  return r.find((n) => n.format === t.format) ?? r[0];
4268
4355
  }
4269
4356
  let i, s;
4270
- if (O(t)) {
4357
+ if (T(t)) {
4271
4358
  s = t.value;
4272
4359
  let r = e.filter((n) => n.identify?.(s));
4273
4360
  if (r.length > 1) {
@@ -4283,18 +4370,18 @@ function lr(e, t) {
4283
4370
  }
4284
4371
  return i;
4285
4372
  }
4286
- function cr(e, t, { anchors: i, doc: s }) {
4373
+ function gr(e, t, { anchors: i, doc: s }) {
4287
4374
  if (!s.directives)
4288
4375
  return "";
4289
- const r = [], n = (O(e) || M(e)) && e.anchor;
4290
- n && Pi(n) && (i.add(n), r.push(`&${n}`));
4376
+ const r = [], n = (T(e) || M(e)) && e.anchor;
4377
+ n && Mi(n) && (i.add(n), r.push(`&${n}`));
4291
4378
  const o = e.tag ?? (t.default ? null : t.tag);
4292
4379
  return o && r.push(s.directives.tagString(o)), r.join(" ");
4293
4380
  }
4294
4381
  function $e(e, t, i, s) {
4295
4382
  if (V(e))
4296
4383
  return e.toString(t, i, s);
4297
- if (ce(e)) {
4384
+ if (he(e)) {
4298
4385
  if (t.doc.directives)
4299
4386
  return e.toString(t);
4300
4387
  if (t.resolvedAliases?.has(e))
@@ -4303,17 +4390,17 @@ function $e(e, t, i, s) {
4303
4390
  }
4304
4391
  let r;
4305
4392
  const n = R(e) ? e : t.doc.createNode(e, { onTagObj: (l) => r = l });
4306
- r ?? (r = lr(t.doc.schema.tags, n));
4307
- const o = cr(n, r, t);
4393
+ r ?? (r = mr(t.doc.schema.tags, n));
4394
+ const o = gr(n, r, t);
4308
4395
  o.length > 0 && (t.indentAtStart = (t.indentAtStart ?? 0) + o.length + 1);
4309
- const u = typeof r.stringify == "function" ? r.stringify(n, t, i, s) : O(n) ? or(n, t, i, s) : n.toString(t, i, s);
4310
- return o ? O(n) || u[0] === "{" || u[0] === "[" ? `${o} ${u}` : `${o}
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);
4397
+ return o ? T(n) || u[0] === "{" || u[0] === "[" ? `${o} ${u}` : `${o}
4311
4398
  ${t.indent}${u}` : u;
4312
4399
  }
4313
- function hr({ key: e, value: t }, i, s, r) {
4314
- const { allNullValues: n, doc: o, indent: u, indentStep: l, options: { commentString: c, indentSeq: f, simpleKeys: h } } = i;
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;
4315
4402
  let d = R(e) && e.comment || null;
4316
- if (h) {
4403
+ if (f) {
4317
4404
  if (d)
4318
4405
  throw new Error("With simple keys, key nodes cannot have comments");
4319
4406
  if (M(e) || !R(e) && typeof e == "object") {
@@ -4321,84 +4408,84 @@ function hr({ key: e, value: t }, i, s, r) {
4321
4408
  throw new Error(z);
4322
4409
  }
4323
4410
  }
4324
- let b = !h && (!e || d && t == null && !i.inFlow || M(e) || (O(e) ? e.type === P.BLOCK_FOLDED || e.type === P.BLOCK_LITERAL : typeof e == "object"));
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"));
4325
4412
  i = Object.assign({}, i, {
4326
4413
  allNullValues: !1,
4327
- implicitKey: !b && (h || !n),
4414
+ implicitKey: !y && (f || !n),
4328
4415
  indent: u + l
4329
4416
  });
4330
- let v = !1, p = !1, y = $e(e, i, () => v = !0, () => p = !0);
4331
- if (!b && !i.inFlow && y.length > 1024) {
4332
- if (h)
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)
4333
4420
  throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
4334
- b = !0;
4421
+ y = !0;
4335
4422
  }
4336
4423
  if (i.inFlow) {
4337
4424
  if (n || t == null)
4338
- return v && s && s(), y === "" ? "?" : b ? `? ${y}` : y;
4339
- } else if (n && !h || t == null && b)
4340
- return y = `? ${y}`, d && !v ? y += pe(y, i.indent, c(d)) : p && r && r(), y;
4341
- v && (d = null), b ? (d && (y += pe(y, i.indent, c(d))), y = `? ${y}
4342
- ${u}:`) : (y = `${y}:`, d && (y += pe(y, i.indent, c(d))));
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))));
4343
4430
  let w, C, A;
4344
- 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 && O(t) && (i.indentAtStart = y.length + 1), p = !1, !f && l.length >= 2 && !i.inFlow && !b && kt(t) && !t.flow && !t.tag && !t.anchor && (i.indent = i.indent.substring(2));
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));
4345
4432
  let E = !1;
4346
- const N = $e(t, i, () => E = !0, () => p = !0);
4347
- let W = " ";
4433
+ const N = $e(t, i, () => E = !0, () => h = !0);
4434
+ let G = " ";
4348
4435
  if (d || w || C) {
4349
- if (W = w ? `
4436
+ if (G = w ? `
4350
4437
  ` : "", C) {
4351
4438
  const z = c(C);
4352
- W += `
4439
+ G += `
4353
4440
  ${Ie(z, i.indent)}`;
4354
4441
  }
4355
- N === "" && !i.inFlow ? W === `
4356
- ` && A && (W = `
4442
+ N === "" && !i.inFlow ? G === `
4443
+ ` && A && (G = `
4357
4444
 
4358
- `) : W += `
4445
+ `) : G += `
4359
4446
  ${i.indent}`;
4360
- } else if (!b && M(t)) {
4447
+ } else if (!y && M(t)) {
4361
4448
  const z = N[0], ve = N.indexOf(`
4362
- `), Pt = ve !== -1, Di = i.inFlow ?? t.flow ?? t.items.length === 0;
4363
- if (Pt || !Di) {
4364
- let Nt = !1;
4365
- if (Pt && (z === "&" || z === "!")) {
4366
- let ne = N.indexOf(" ");
4367
- z === "&" && ne !== -1 && ne < ve && N[ne + 1] === "!" && (ne = N.indexOf(" ", ne + 1)), (ne === -1 || ve < ne) && (Nt = !0);
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 === "!")) {
4453
+ let ae = N.indexOf(" ");
4454
+ z === "&" && ae !== -1 && ae < ve && N[ae + 1] === "!" && (ae = N.indexOf(" ", ae + 1)), (ae === -1 || ve < ae) && (Ot = !0);
4368
4455
  }
4369
- Nt || (W = `
4456
+ Ot || (G = `
4370
4457
  ${i.indent}`);
4371
4458
  }
4372
4459
  } else (N === "" || N[0] === `
4373
- `) && (W = "");
4374
- return y += W + N, i.inFlow ? E && s && s() : A && !E ? y += pe(y, i.indent, c(A)) : p && r && r(), y;
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;
4375
4462
  }
4376
- function fr(e, t) {
4463
+ function br(e, t) {
4377
4464
  (e === "debug" || e === "warn") && console.warn(t);
4378
4465
  }
4379
- const Oe = "<<", rt = {
4380
- identify: (e) => e === Oe || typeof e == "symbol" && e.description === Oe,
4466
+ const Te = "<<", at = {
4467
+ identify: (e) => e === Te || typeof e == "symbol" && e.description === Te,
4381
4468
  default: "key",
4382
4469
  tag: "tag:yaml.org,2002:merge",
4383
4470
  test: /^<<$/,
4384
- resolve: () => Object.assign(new P(Symbol(Oe)), {
4385
- addToJSMap: Vi
4471
+ resolve: () => Object.assign(new P(Symbol(Te)), {
4472
+ addToJSMap: qi
4386
4473
  }),
4387
- stringify: () => Oe
4388
- }, pr = (e, t) => (rt.identify(t) || O(t) && (!t.type || t.type === P.PLAIN) && rt.identify(t.value)) && e?.doc.schema.tags.some((i) => i.tag === rt.tag && i.default);
4389
- function Vi(e, t, i) {
4390
- if (i = e && ce(i) ? i.resolve(e.doc) : i, kt(i))
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);
4476
+ function qi(e, t, i) {
4477
+ if (i = e && he(i) ? i.resolve(e.doc) : i, At(i))
4391
4478
  for (const s of i.items)
4392
- nt(e, t, s);
4479
+ ot(e, t, s);
4393
4480
  else if (Array.isArray(i))
4394
4481
  for (const s of i)
4395
- nt(e, t, s);
4482
+ ot(e, t, s);
4396
4483
  else
4397
- nt(e, t, i);
4484
+ ot(e, t, i);
4398
4485
  }
4399
- function nt(e, t, i) {
4400
- const s = e && ce(i) ? i.resolve(e.doc) : i;
4401
- if (!Ii(s))
4486
+ function ot(e, t, i) {
4487
+ const s = e && he(i) ? i.resolve(e.doc) : i;
4488
+ if (!Di(s))
4402
4489
  throw new Error("Merge sources must be maps or map aliases");
4403
4490
  const r = s.toJSON(null, e, Map);
4404
4491
  for (const [n, o] of r)
@@ -4410,11 +4497,11 @@ function nt(e, t, i) {
4410
4497
  });
4411
4498
  return t;
4412
4499
  }
4413
- function Li(e, t, { key: i, value: s }) {
4500
+ function Gi(e, t, { key: i, value: s }) {
4414
4501
  if (R(i) && i.addToJSMap)
4415
4502
  i.addToJSMap(e, t, s);
4416
- else if (pr(e, i))
4417
- Vi(e, t, s);
4503
+ else if (xr(e, i))
4504
+ qi(e, t, s);
4418
4505
  else {
4419
4506
  const r = K(i, "", e);
4420
4507
  if (t instanceof Map)
@@ -4422,7 +4509,7 @@ function Li(e, t, { key: i, value: s }) {
4422
4509
  else if (t instanceof Set)
4423
4510
  t.add(r);
4424
4511
  else {
4425
- const n = dr(i, r, e), o = K(s, n, e);
4512
+ const n = vr(i, r, e), o = K(s, n, e);
4426
4513
  n in t ? Object.defineProperty(t, n, {
4427
4514
  value: o,
4428
4515
  writable: !0,
@@ -4433,13 +4520,13 @@ function Li(e, t, { key: i, value: s }) {
4433
4520
  }
4434
4521
  return t;
4435
4522
  }
4436
- function dr(e, t, i) {
4523
+ function vr(e, t, i) {
4437
4524
  if (t === null)
4438
4525
  return "";
4439
4526
  if (typeof t != "object")
4440
4527
  return String(t);
4441
4528
  if (R(e) && i?.doc) {
4442
- const s = ur(i.doc, {});
4529
+ const s = dr(i.doc, {});
4443
4530
  s.anchors = /* @__PURE__ */ new Set();
4444
4531
  for (const n of i.anchors.keys())
4445
4532
  s.anchors.add(n.anchor);
@@ -4447,19 +4534,19 @@ function dr(e, t, i) {
4447
4534
  const r = e.toString(s);
4448
4535
  if (!i.mapKeyWarned) {
4449
4536
  let n = JSON.stringify(r);
4450
- n.length > 40 && (n = n.substring(0, 36) + '..."'), fr(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;
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;
4451
4538
  }
4452
4539
  return r;
4453
4540
  }
4454
4541
  return JSON.stringify(t);
4455
4542
  }
4456
- function Ct(e, t, i) {
4457
- const s = je(e, void 0, i), r = je(t, void 0, i);
4543
+ function Et(e, t, i) {
4544
+ const s = Ue(e, void 0, i), r = Ue(t, void 0, i);
4458
4545
  return new Y(s, r);
4459
4546
  }
4460
4547
  class Y {
4461
4548
  constructor(t, i = null) {
4462
- Object.defineProperty(this, X, { value: Ai }), this.key = t, this.value = i;
4549
+ Object.defineProperty(this, X, { value: Fi }), this.key = t, this.value = i;
4463
4550
  }
4464
4551
  clone(t) {
4465
4552
  let { key: i, value: s } = this;
@@ -4467,48 +4554,48 @@ class Y {
4467
4554
  }
4468
4555
  toJSON(t, i) {
4469
4556
  const s = i?.mapAsMap ? /* @__PURE__ */ new Map() : {};
4470
- return Li(i, s, this);
4557
+ return Gi(i, s, this);
4471
4558
  }
4472
4559
  toString(t, i, s) {
4473
- return t?.doc ? hr(this, t, i, s) : JSON.stringify(this);
4560
+ return t?.doc ? yr(this, t, i, s) : JSON.stringify(this);
4474
4561
  }
4475
4562
  }
4476
- function Ri(e, t, i) {
4477
- return (t.inFlow ?? e.flow ? gr : mr)(e, t, i);
4563
+ function Wi(e, t, i) {
4564
+ return (t.inFlow ?? e.flow ? kr : _r)(e, t, i);
4478
4565
  }
4479
- function mr({ comment: e, items: t }, i, { blockItemPrefix: s, flowChars: r, itemIndent: n, onChompKeep: o, onComment: u }) {
4480
- const { indent: l, options: { commentString: c } } = i, f = Object.assign({}, i, { indent: n, type: null });
4481
- let h = !1;
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;
4482
4569
  const d = [];
4483
- for (let v = 0; v < t.length; ++v) {
4484
- const p = t[v];
4485
- let y = null;
4486
- if (R(p))
4487
- !h && p.spaceBefore && d.push(""), Ue(i, d, p.commentBefore, h), p.comment && (y = p.comment);
4488
- else if (V(p)) {
4489
- const C = R(p.key) ? p.key : null;
4490
- C && (!h && C.spaceBefore && d.push(""), Ue(i, d, C.commentBefore, h));
4570
+ 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));
4491
4578
  }
4492
- h = !1;
4493
- let w = $e(p, f, () => y = null, () => h = !0);
4494
- y && (w += pe(w, n, c(y))), h && y && (h = !1), d.push(s + w);
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);
4495
4582
  }
4496
- let b;
4583
+ let y;
4497
4584
  if (d.length === 0)
4498
- b = r.start + r.end;
4585
+ y = r.start + r.end;
4499
4586
  else {
4500
- b = d[0];
4501
- for (let v = 1; v < d.length; ++v) {
4502
- const p = d[v];
4503
- b += p ? `
4504
- ${l}${p}` : `
4587
+ y = d[0];
4588
+ for (let x = 1; x < d.length; ++x) {
4589
+ const h = d[x];
4590
+ y += h ? `
4591
+ ${l}${h}` : `
4505
4592
  `;
4506
4593
  }
4507
4594
  }
4508
- return e ? (b += `
4509
- ` + Ie(c(e), l), u && u()) : h && o && o(), b;
4595
+ return e ? (y += `
4596
+ ` + Ie(c(e), l), u && u()) : f && o && o(), y;
4510
4597
  }
4511
- function gr({ items: e }, t, { flowChars: i, itemIndent: s }) {
4598
+ function kr({ items: e }, t, { flowChars: i, itemIndent: s }) {
4512
4599
  const { indent: r, indentStep: n, flowCollectionPadding: o, options: { commentString: u } } = t;
4513
4600
  s += n;
4514
4601
  const l = Object.assign({}, t, {
@@ -4516,60 +4603,60 @@ function gr({ items: e }, t, { flowChars: i, itemIndent: s }) {
4516
4603
  inFlow: !0,
4517
4604
  type: null
4518
4605
  });
4519
- let c = !1, f = 0;
4520
- const h = [];
4521
- for (let v = 0; v < e.length; ++v) {
4522
- const p = e[v];
4523
- let y = null;
4524
- if (R(p))
4525
- p.spaceBefore && h.push(""), Ue(t, h, p.commentBefore, !1), p.comment && (y = p.comment);
4526
- else if (V(p)) {
4527
- const C = R(p.key) ? p.key : null;
4528
- C && (C.spaceBefore && h.push(""), Ue(t, h, C.commentBefore, !1), C.comment && (c = !0));
4529
- const A = R(p.value) ? p.value : null;
4530
- A ? (A.comment && (y = A.comment), A.commentBefore && (c = !0)) : p.value == null && C?.comment && (y = C.comment);
4606
+ let c = !1, p = 0;
4607
+ const f = [];
4608
+ 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);
4531
4618
  }
4532
- y && (c = !0);
4533
- let w = $e(p, l, () => y = null);
4534
- v < e.length - 1 && (w += ","), y && (w += pe(w, s, u(y))), !c && (h.length > f || w.includes(`
4535
- `)) && (c = !0), h.push(w), f = h.length;
4536
- }
4537
- const { start: d, end: b } = i;
4538
- if (h.length === 0)
4539
- return d + b;
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;
4540
4627
  if (!c) {
4541
- const v = h.reduce((p, y) => p + y.length + 2, 2);
4542
- c = t.options.lineWidth > 0 && v > t.options.lineWidth;
4628
+ const x = f.reduce((h, b) => h + b.length + 2, 2);
4629
+ c = t.options.lineWidth > 0 && x > t.options.lineWidth;
4543
4630
  }
4544
4631
  if (c) {
4545
- let v = d;
4546
- for (const p of h)
4547
- v += p ? `
4548
- ${n}${r}${p}` : `
4632
+ let x = d;
4633
+ for (const h of f)
4634
+ x += h ? `
4635
+ ${n}${r}${h}` : `
4549
4636
  `;
4550
- return `${v}
4551
- ${r}${b}`;
4637
+ return `${x}
4638
+ ${r}${y}`;
4552
4639
  } else
4553
- return `${d}${o}${h.join(" ")}${o}${b}`;
4640
+ return `${d}${o}${f.join(" ")}${o}${y}`;
4554
4641
  }
4555
- function Ue({ indent: e, options: { commentString: t } }, i, s, r) {
4642
+ function qe({ indent: e, options: { commentString: t } }, i, s, r) {
4556
4643
  if (s && r && (s = s.replace(/^\n+/, "")), s) {
4557
4644
  const n = Ie(t(s), e);
4558
4645
  i.push(n.trimStart());
4559
4646
  }
4560
4647
  }
4561
- function oe(e, t) {
4562
- const i = O(t) ? t.value : t;
4648
+ function ue(e, t) {
4649
+ const i = T(t) ? t.value : t;
4563
4650
  for (const s of e)
4564
- if (V(s) && (s.key === t || s.key === i || O(s.key) && s.key.value === i))
4651
+ if (V(s) && (s.key === t || s.key === i || T(s.key) && s.key.value === i))
4565
4652
  return s;
4566
4653
  }
4567
- class he extends Oi {
4654
+ class fe extends Ui {
4568
4655
  static get tagName() {
4569
4656
  return "tag:yaml.org,2002:map";
4570
4657
  }
4571
4658
  constructor(t) {
4572
- super(ue, t), this.items = [];
4659
+ super(le, t), this.items = [];
4573
4660
  }
4574
4661
  /**
4575
4662
  * A generic collection parsing method that can be extended
@@ -4581,7 +4668,7 @@ class he extends Oi {
4581
4668
  c = n.call(i, l, c);
4582
4669
  else if (Array.isArray(n) && !n.includes(l))
4583
4670
  return;
4584
- (c !== void 0 || r) && o.items.push(Ct(l, c, s));
4671
+ (c !== void 0 || r) && o.items.push(Et(l, c, s));
4585
4672
  };
4586
4673
  if (i instanceof Map)
4587
4674
  for (const [l, c] of i)
@@ -4600,11 +4687,11 @@ class he extends Oi {
4600
4687
  add(t, i) {
4601
4688
  let s;
4602
4689
  V(t) ? s = t : !t || typeof t != "object" || !("key" in t) ? s = new Y(t, t?.value) : s = new Y(t.key, t.value);
4603
- const r = oe(this.items, s.key), n = this.schema?.sortMapEntries;
4690
+ const r = ue(this.items, s.key), n = this.schema?.sortMapEntries;
4604
4691
  if (r) {
4605
4692
  if (!i)
4606
4693
  throw new Error(`Key ${s.key} already set`);
4607
- O(r.value) && Ni(s.value) ? r.value.value = s.value : r.value = s.value;
4694
+ T(r.value) && ji(s.value) ? r.value.value = s.value : r.value = s.value;
4608
4695
  } else if (n) {
4609
4696
  const o = this.items.findIndex((u) => n(s, u) < 0);
4610
4697
  o === -1 ? this.items.push(s) : this.items.splice(o, 0, s);
@@ -4612,15 +4699,15 @@ class he extends Oi {
4612
4699
  this.items.push(s);
4613
4700
  }
4614
4701
  delete(t) {
4615
- const i = oe(this.items, t);
4702
+ const i = ue(this.items, t);
4616
4703
  return i ? this.items.splice(this.items.indexOf(i), 1).length > 0 : !1;
4617
4704
  }
4618
4705
  get(t, i) {
4619
- const r = oe(this.items, t)?.value;
4620
- return (!i && O(r) ? r.value : r) ?? void 0;
4706
+ const r = ue(this.items, t)?.value;
4707
+ return (!i && T(r) ? r.value : r) ?? void 0;
4621
4708
  }
4622
4709
  has(t) {
4623
- return !!oe(this.items, t);
4710
+ return !!ue(this.items, t);
4624
4711
  }
4625
4712
  set(t, i) {
4626
4713
  this.add(new Y(t, i), !0);
@@ -4634,7 +4721,7 @@ class he extends Oi {
4634
4721
  const r = s ? new s() : i?.mapAsMap ? /* @__PURE__ */ new Map() : {};
4635
4722
  i?.onCreate && i.onCreate(r);
4636
4723
  for (const n of this.items)
4637
- Li(i, r, n);
4724
+ Gi(i, r, n);
4638
4725
  return r;
4639
4726
  }
4640
4727
  toString(t, i, s) {
@@ -4643,7 +4730,7 @@ class he extends Oi {
4643
4730
  for (const r of this.items)
4644
4731
  if (!V(r))
4645
4732
  throw new Error(`Map items must all be pairs; found ${JSON.stringify(r)} instead`);
4646
- return !t.allNullValues && this.hasAllNullValues(!1) && (t = Object.assign({}, t, { allNullValues: !0 })), Ri(this, t, {
4733
+ return !t.allNullValues && this.hasAllNullValues(!1) && (t = Object.assign({}, t, { allNullValues: !0 })), Wi(this, t, {
4647
4734
  blockItemPrefix: "",
4648
4735
  flowChars: { start: "{", end: "}" },
4649
4736
  itemIndent: t.indent || "",
@@ -4652,7 +4739,7 @@ class he extends Oi {
4652
4739
  });
4653
4740
  }
4654
4741
  }
4655
- class Fi extends Oi {
4742
+ class Ki extends Ui {
4656
4743
  static get tagName() {
4657
4744
  return "tag:yaml.org,2002:seq";
4658
4745
  }
@@ -4671,15 +4758,15 @@ class Fi extends Oi {
4671
4758
  * @returns `true` if the item was found and removed.
4672
4759
  */
4673
4760
  delete(t) {
4674
- const i = Te(t);
4761
+ const i = Oe(t);
4675
4762
  return typeof i != "number" ? !1 : this.items.splice(i, 1).length > 0;
4676
4763
  }
4677
4764
  get(t, i) {
4678
- const s = Te(t);
4765
+ const s = Oe(t);
4679
4766
  if (typeof s != "number")
4680
4767
  return;
4681
4768
  const r = this.items[s];
4682
- return !i && O(r) ? r.value : r;
4769
+ return !i && T(r) ? r.value : r;
4683
4770
  }
4684
4771
  /**
4685
4772
  * Checks if the collection includes a value with the key `key`.
@@ -4688,7 +4775,7 @@ class Fi extends Oi {
4688
4775
  * It may be wrapped in a `Scalar`.
4689
4776
  */
4690
4777
  has(t) {
4691
- const i = Te(t);
4778
+ const i = Oe(t);
4692
4779
  return typeof i == "number" && i < this.items.length;
4693
4780
  }
4694
4781
  /**
@@ -4699,11 +4786,11 @@ class Fi extends Oi {
4699
4786
  * It may be wrapped in a `Scalar`.
4700
4787
  */
4701
4788
  set(t, i) {
4702
- const s = Te(t);
4789
+ const s = Oe(t);
4703
4790
  if (typeof s != "number")
4704
4791
  throw new Error(`Expected a valid index, not ${t}.`);
4705
4792
  const r = this.items[s];
4706
- O(r) && Ni(i) ? r.value = i : this.items[s] = i;
4793
+ T(r) && ji(i) ? r.value = i : this.items[s] = i;
4707
4794
  }
4708
4795
  toJSON(t, i) {
4709
4796
  const s = [];
@@ -4714,7 +4801,7 @@ class Fi extends Oi {
4714
4801
  return s;
4715
4802
  }
4716
4803
  toString(t, i, s) {
4717
- return t ? Ri(this, t, {
4804
+ return t ? Wi(this, t, {
4718
4805
  blockItemPrefix: "- ",
4719
4806
  flowChars: { start: "[", end: "]" },
4720
4807
  itemIndent: (t.indent || "") + " ",
@@ -4731,18 +4818,18 @@ class Fi extends Oi {
4731
4818
  const l = i instanceof Set ? u : String(o++);
4732
4819
  u = r.call(i, l, u);
4733
4820
  }
4734
- n.items.push(je(u, void 0, s));
4821
+ n.items.push(Ue(u, void 0, s));
4735
4822
  }
4736
4823
  }
4737
4824
  return n;
4738
4825
  }
4739
4826
  }
4740
- function Te(e) {
4741
- let t = O(e) ? e.value : e;
4827
+ function Oe(e) {
4828
+ let t = T(e) ? e.value : e;
4742
4829
  return t && typeof t == "string" && (t = Number(t)), typeof t == "number" && Number.isInteger(t) && t >= 0 ? t : null;
4743
4830
  }
4744
- function yr(e, t, i) {
4745
- const { replacer: s } = i, r = new Fi(e);
4831
+ function Sr(e, t, i) {
4832
+ const { replacer: s } = i, r = new Ki(e);
4746
4833
  r.tag = "tag:yaml.org,2002:pairs";
4747
4834
  let n = 0;
4748
4835
  if (t && Symbol.iterator in Object(t))
@@ -4762,13 +4849,13 @@ function yr(e, t, i) {
4762
4849
  throw new TypeError(`Expected tuple with one key, not ${c.length} keys`);
4763
4850
  } else
4764
4851
  u = o;
4765
- r.items.push(Ct(u, l, i));
4852
+ r.items.push(Et(u, l, i));
4766
4853
  }
4767
4854
  return r;
4768
4855
  }
4769
- class At extends Fi {
4856
+ class Pt extends Ki {
4770
4857
  constructor() {
4771
- super(), this.add = he.prototype.add.bind(this), this.delete = he.prototype.delete.bind(this), this.get = he.prototype.get.bind(this), this.has = he.prototype.has.bind(this), this.set = he.prototype.set.bind(this), this.tag = At.tag;
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;
4772
4859
  }
4773
4860
  /**
4774
4861
  * If `ctx` is given, the return type is actually `Map<unknown, unknown>`,
@@ -4788,31 +4875,31 @@ class At extends Fi {
4788
4875
  return s;
4789
4876
  }
4790
4877
  static from(t, i, s) {
4791
- const r = yr(t, i, s), n = new this();
4878
+ const r = Sr(t, i, s), n = new this();
4792
4879
  return n.items = r.items, n;
4793
4880
  }
4794
4881
  }
4795
- At.tag = "tag:yaml.org,2002:omap";
4796
- class It extends he {
4882
+ Pt.tag = "tag:yaml.org,2002:omap";
4883
+ class Nt extends fe {
4797
4884
  constructor(t) {
4798
- super(t), this.tag = It.tag;
4885
+ super(t), this.tag = Nt.tag;
4799
4886
  }
4800
4887
  add(t) {
4801
4888
  let i;
4802
- V(t) ? i = t : t && typeof t == "object" && "key" in t && "value" in t && t.value === null ? i = new Y(t.key, null) : i = new Y(t, null), oe(this.items, i.key) || this.items.push(i);
4889
+ V(t) ? i = t : t && typeof t == "object" && "key" in t && "value" in t && t.value === null ? i = new Y(t.key, null) : i = new Y(t, null), ue(this.items, i.key) || this.items.push(i);
4803
4890
  }
4804
4891
  /**
4805
4892
  * If `keepPair` is `true`, returns the Pair matching `key`.
4806
4893
  * Otherwise, returns the value of that Pair's key.
4807
4894
  */
4808
4895
  get(t, i) {
4809
- const s = oe(this.items, t);
4810
- return !i && V(s) ? O(s.key) ? s.key.value : s.key : s;
4896
+ const s = ue(this.items, t);
4897
+ return !i && V(s) ? T(s.key) ? s.key.value : s.key : s;
4811
4898
  }
4812
4899
  set(t, i) {
4813
4900
  if (typeof i != "boolean")
4814
4901
  throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof i}`);
4815
- const s = oe(this.items, t);
4902
+ const s = ue(this.items, t);
4816
4903
  s && !i ? this.items.splice(this.items.indexOf(s), 1) : !s && i && this.items.push(new Y(t));
4817
4904
  }
4818
4905
  toJSON(t, i) {
@@ -4829,235 +4916,27 @@ class It extends he {
4829
4916
  const { replacer: r } = s, n = new this(t);
4830
4917
  if (i && Symbol.iterator in Object(i))
4831
4918
  for (let o of i)
4832
- typeof r == "function" && (o = r.call(i, o, o)), n.items.push(Ct(o, null, s));
4919
+ typeof r == "function" && (o = r.call(i, o, o)), n.items.push(Et(o, null, s));
4833
4920
  return n;
4834
4921
  }
4835
4922
  }
4836
- It.tag = "tag:yaml.org,2002:set";
4923
+ Nt.tag = "tag:yaml.org,2002:set";
4837
4924
  new Set("0123456789ABCDEFabcdef");
4838
4925
  new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");
4839
4926
  new Set(",[]{}");
4840
4927
  new Set(` ,[]{}
4841
4928
  \r `);
4842
- const Fr = /^[A-Za-z_][A-Za-z0-9_]*$/;
4843
- class br extends Error {
4844
- constructor(t) {
4845
- super(t.join("; ")), this.name = "AimdFormalOutputError", this.issues = t;
4846
- }
4847
- }
4848
- function xr(e) {
4849
- const t = [];
4850
- let i = 0;
4851
- for (; i < e.length; ) {
4852
- let s = i;
4853
- for (; s < e.length && e[s] !== `
4854
- ` && e[s] !== "\r"; )
4855
- s += 1;
4856
- let r = s, n = "";
4857
- e[r] === "\r" && e[r + 1] === `
4858
- ` ? (r += 2, n = `\r
4859
- `) : (e[r] === "\r" || e[r] === `
4860
- `) && (n = e[r], r += 1), t.push({
4861
- startOffset: i,
4862
- endOffset: r,
4863
- textEndOffset: s,
4864
- text: e.slice(i, s),
4865
- lineEnding: n
4866
- }), i = r;
4867
- }
4868
- return t;
4869
- }
4870
- function vr(e) {
4871
- const t = e.match(/^([ \t]{0,3})(`{3,}|~{3,})[ \t]*([^ \t]*)[^\r\n]*$/);
4872
- return t ? {
4873
- indentation: t[1],
4874
- marker: t[2],
4875
- language: t[3].trim().toLowerCase()
4876
- } : null;
4877
- }
4878
- function _r(e, t) {
4879
- const i = e.match(/^[ \t]{0,3}(`{3,}|~{3,})[ \t]*$/);
4880
- return !!(i && i[1][0] === t[0] && i[1].length >= t.length);
4881
- }
4882
- function Sr(e) {
4883
- let t = null, i = !1;
4884
- for (let s = 0; s < e.length; s += 1) {
4885
- const r = e[s];
4886
- if (i) {
4887
- i = !1;
4888
- continue;
4889
- }
4890
- if (t) {
4891
- r === "\\" && t === '"' ? i = !0 : r === t && (t = null);
4892
- continue;
4893
- }
4894
- if (r === '"' || r === "'") {
4895
- t = r;
4896
- continue;
4897
- }
4898
- if (r === "#" && (s === 0 || /\s/.test(e[s - 1])))
4899
- return e.slice(0, s);
4900
- }
4901
- return e;
4902
- }
4903
- function kr(e) {
4904
- const t = Sr(e).trim();
4905
- if (!t) return "";
4906
- if (t.startsWith('"') && t.endsWith('"'))
4907
- try {
4908
- const i = JSON.parse(t);
4909
- return typeof i == "string" ? i : t;
4910
- } catch {
4911
- return t.slice(1, -1);
4912
- }
4913
- return t.startsWith("'") && t.endsWith("'") ? t.slice(1, -1).replace(/''/g, "'") : t;
4914
- }
4915
- function wr(e) {
4916
- const t = e.text.match(/^([ \t]*)(id|src)[ \t]*:[ \t]*(.*)$/i);
4917
- return t ? {
4918
- key: t[2].toLowerCase(),
4919
- field: {
4920
- value: kr(t[3]),
4921
- lineStartOffset: e.startOffset,
4922
- lineEndOffset: e.textEndOffset,
4923
- indentation: t[1]
4924
- }
4925
- } : null;
4926
- }
4927
- function Et(e) {
4928
- const t = xr(e), i = [];
4929
- for (let s = 0; s < t.length; ) {
4930
- const r = vr(t[s].text);
4931
- if (!r) {
4932
- s += 1;
4933
- continue;
4934
- }
4935
- let n = s + 1;
4936
- for (; n < t.length && !_r(t[n].text, r.marker); )
4937
- n += 1;
4938
- if (n >= t.length)
4939
- break;
4940
- if (r.language === "fig") {
4941
- let o, u;
4942
- for (let l = s + 1; l < n; l += 1) {
4943
- const c = wr(t[l]);
4944
- c?.key === "id" && (o = c.field), c?.key === "src" && (u = c.field);
4945
- }
4946
- i.push({
4947
- startOffset: t[s].startOffset,
4948
- endOffset: t[n].textEndOffset,
4949
- bodyStartOffset: t[s].endOffset,
4950
- bodyEndOffset: t[n].startOffset,
4951
- indentation: r.indentation,
4952
- lineEnding: t[s].lineEnding,
4953
- id: o,
4954
- src: u
4955
- });
4956
- }
4957
- s = n + 1;
4958
- }
4959
- return i;
4960
- }
4961
- function Cr(e) {
4962
- let t = 2166136261;
4963
- for (let i = 0; i < e.length; i += 1)
4964
- t ^= e.charCodeAt(i), t = Math.imul(t, 16777619);
4965
- return (t >>> 0).toString(16).padStart(8, "0").slice(0, 6);
4966
- }
4967
- function Ar(e) {
4968
- let t = e.trim();
4969
- try {
4970
- t = new URL(t).pathname;
4971
- } catch {
4972
- t = t.split(/[?#]/, 1)[0];
4973
- }
4974
- const i = t.replace(/\\/g, "/").split("/").filter(Boolean).pop() ?? "";
4975
- let s = i;
4976
- try {
4977
- s = decodeURIComponent(i);
4978
- } catch {
4979
- }
4980
- const r = s.lastIndexOf(".");
4981
- return r > 0 ? s.slice(0, r) : s;
4982
- }
4983
- function Ir(e, t = []) {
4984
- let i = Ar(e).normalize("NFKD").replace(/[\u0300-\u036f]/g, "").replace(/[^A-Za-z0-9_]+/g, "_").replace(/^_+|_+$/g, "").toLowerCase();
4985
- i ? /^[0-9]/.test(i) && (i = `fig_${i}`) : i = `fig_${Cr(e || "figure")}`;
4986
- const s = new Set(t);
4987
- let r = i, n = 2;
4988
- for (; s.has(r); )
4989
- r = `${i}_${n}`, n += 1;
4990
- return r;
4991
- }
4992
- function Dr(e) {
4993
- return Et(e).map((t) => t.id?.value ?? "").filter(Boolean);
4994
- }
4995
- function Er(e) {
4996
- return e.includes(`\r
4997
- `) ? `\r
4998
- ` : `
4999
- `;
5000
- }
5001
- function Pr(e, t, i) {
5002
- if (t.id)
5003
- return {
5004
- startOffset: t.id.lineStartOffset,
5005
- endOffset: t.id.lineEndOffset,
5006
- text: `${t.id.indentation}id: ${i}`
5007
- };
5008
- const s = t.lineEnding || Er(e);
5009
- return {
5010
- startOffset: t.bodyStartOffset,
5011
- endOffset: t.bodyStartOffset,
5012
- text: `${t.src?.indentation ?? t.indentation}id: ${i}${s}`
5013
- };
5014
- }
5015
- function Nr(e, t) {
5016
- return [...t].sort((i, s) => s.startOffset - i.startOffset).reduce(
5017
- (i, s) => `${i.slice(0, s.startOffset)}${s.text}${i.slice(s.endOffset)}`,
5018
- e
5019
- );
5020
- }
5021
- function Or(e) {
5022
- const t = Et(e), i = new Set(
5023
- t.map((n) => n.id?.value ?? "").filter(Boolean)
5024
- ), s = [];
5025
- for (const n of t) {
5026
- const o = n.src?.value ?? "";
5027
- if (n.id?.value || !o) continue;
5028
- const u = Ir(o, i);
5029
- i.add(u), s.push({
5030
- id: u,
5031
- src: o,
5032
- blockStartOffset: n.startOffset,
5033
- edit: Pr(e, n, u)
5034
- });
5035
- }
5036
- return {
5037
- content: Nr(e, s.map((n) => n.edit)),
5038
- changed: s.length > 0,
5039
- generated: s
5040
- };
5041
- }
5042
- function Br(e) {
5043
- const t = Or(e), i = Et(t.content).map((r) => ({
5044
- id: r.id?.value,
5045
- src: r.src?.value
5046
- })), s = zs(i);
5047
- if (s.length > 0)
5048
- throw new br(s);
5049
- return t;
5050
- }
5051
4929
  export {
5052
- Fr as A,
5053
- br as a,
4930
+ Pr as a,
5054
4931
  Ir as b,
5055
- Dr as c,
5056
- Tr as d,
5057
- Lr as e,
5058
- Rr as f,
5059
- Or as n,
5060
- Br as p,
5061
- Et as s,
5062
- Vr as v
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
5063
4942
  };