@airalogy/aimd-editor 1.13.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.
- package/dist/{AimdEditorTopBar.vue_vue_type_script_setup_true_lang-DF2y70yv.js → AimdEditorTopBar.vue_vue_type_script_setup_true_lang-x8F65dCh.js} +4 -4
- package/dist/{AimdSourceEditor.vue_vue_type_script_setup_true_lang-BO9WFdXW.js → AimdSourceEditor.vue_vue_type_script_setup_true_lang-m07PHAyw.js} +2 -2
- package/dist/{AimdWysiwygEditor.vue_vue_type_script_setup_true_lang-ZL9sYztW.js → AimdWysiwygEditor.vue_vue_type_script_setup_true_lang-8nbo78nG.js} +3359 -3319
- package/dist/authoring.js +2 -2
- package/dist/embedded.js +2 -2
- package/dist/{fields-XXsn5a8D.js → fields-DZsN-S-N.js} +1 -1
- package/dist/{fig-C5iwVPzh.js → fig-DzERhLmG.js} +1 -1
- package/dist/index.js +5 -5
- package/dist/{lexer-CgImjRcS.js → lexer-Dj-IVtCT.js} +315 -315
- package/dist/vue.js +3 -3
- package/dist/wysiwyg.js +1 -1
- package/package.json +2 -2
- package/src/__tests__/code-block-metadata.test.ts +40 -0
- package/src/vue/AimdWysiwygEditor.vue +2 -0
- package/src/vue/milkdown-code-block-metadata.ts +46 -0
|
@@ -1,6 +1,6 @@
|
|
|
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"},"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"}}'), zi = {
|
|
1
|
+
const Ji = /* @__PURE__ */ JSON.parse('{"UserName":{"type_name":"UserName","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"current-user","type":"string","description":"The user name of the current Airalogy user","preview":{"kind":"skip"}},"CurrentTime":{"type_name":"CurrentTime","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"current-time","type":"string","description":"The current time. The timezone is based on the user\'s browser.","preview":{"kind":"skip"}},"CurrentProtocolId":{"type_name":"CurrentProtocolId","import_from":"airalogy.types","storage_kind":"scalar","type":"string","description":"The ID of the current Airalogy Protocol.","preview":{"kind":"skip"}},"CurrentRecordId":{"type_name":"CurrentRecordId","import_from":"airalogy.types","storage_kind":"scalar","type":"string","description":"The ID of the current Airalogy Record.","preview":{"kind":"skip"}},"EntityRef":{"type_name":"EntityRef","import_from":"airalogy.types","storage_kind":"reference","ui_kind":"entity-ref","type":"object","title":"EntityRef","description":"Reference to a named entity in a connector-backed source.\\n\\n`entity` is the entity namespace, such as plasmid or strain. `id` is the\\nstable identifier inside that namespace/source. Extra fields are allowed so\\nhosts can retain display snapshots or source-specific reference metadata.","preview":{"kind":"skip"}},"ResourceRef":{"type_name":"ResourceRef","import_from":"airalogy.types","storage_kind":"reference","ui_kind":"resource-ref","type":"object","title":"ResourceRef","description":"Stable reference to a Platform-managed resource.\\n\\nQuantities are represented by :class:`~decimal.Decimal` in Python and are\\nserialized as strings so a Record never loses precision while crossing a\\nJSON or JavaScript boundary.","preview":{"kind":"skip"}},"Observation":{"type_name":"Observation","import_from":"airalogy.types","storage_kind":"structured","ui_kind":"observation","type":"object","title":"Observation","description":"A typed value with observation time, receipt time, and provenance.","preview":{"kind":"skip"}},"ObservationSeriesRef":{"type_name":"ObservationSeriesRef","import_from":"airalogy.types","storage_kind":"reference","ui_kind":"observation-series","type":"object","title":"ObservationSeriesRef","description":"Reference to a file-backed high-volume observation series.","preview":{"kind":"skip"}},"BloodType":{"type_name":"BloodType","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"Blood type","description":"Common ABO blood group values. Values such as A+ or A- combine an ABO group with Rh positive or Rh negative status. Rh+ and Rh- are allowed when only Rh factor is recorded.","enum":["A","B","AB","O","A+","A-","B+","B-","AB+","AB-","O+","O-","Rh+","Rh-"],"preview":{"kind":"enum"}},"ChineseEducationLevel":{"type_name":"ChineseEducationLevel","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"文化程度","description":"中国居民信息登记中常用的文化程度分类。","enum":["无学历","小学","初中","高中","中专","大专","本科","硕士","博士"],"preview":{"kind":"enum"}},"ChineseEthnicGroup":{"type_name":"ChineseEthnicGroup","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"民族","description":"中国国务院公布的 56 个法定民族之一。","enum":["汉族","蒙古族","回族","藏族","维吾尔族","苗族","彝族","壮族","布依族","朝鲜族","满族","侗族","瑶族","白族","土家族","哈尼族","哈萨克族","傣族","黎族","傈僳族","佤族","畲族","高山族","拉祜族","水族","东乡族","纳西族","景颇族","柯尔克孜族","土族","达斡尔族","仫佬族","羌族","布朗族","撒拉族","毛南族","仡佬族","锡伯族","阿昌族","普米族","塔吉克族","怒族","乌孜别克族","俄罗斯族","鄂温克族","德昂族","保安族","裕固族","京族","塔塔尔族","独龙族","鄂伦春族","赫哲族","门巴族","珞巴族","基诺族"],"preview":{"kind":"enum"}},"ChineseGender":{"type_name":"ChineseGender","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"性别","description":"中国居民信息登记中常用的性别分类。","enum":["男","女"],"preview":{"kind":"enum"}},"ChineseMaritalStatus":{"type_name":"ChineseMaritalStatus","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"婚姻状况","description":"中国居民信息登记中常用的婚姻状况分类。","enum":["未婚","已婚","丧偶","离婚","再婚"],"preview":{"kind":"enum"}},"ChineseProvinceLevelRegion":{"type_name":"ChineseProvinceLevelRegion","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"省级行政区","description":"中国现行省级行政区(省、自治区、直辖市、特别行政区)。","enum":["北京","天津","上海","重庆","河北","山西","辽宁","吉林","黑龙江","江苏","浙江","安徽","福建","江西","山东","河南","湖北","湖南","广东","海南","四川","贵州","云南","陕西","甘肃","青海","台湾","西藏","内蒙古","广西","宁夏","新疆","香港","澳门"],"preview":{"kind":"enum"}},"AiralogyMarkdown":{"type_name":"AiralogyMarkdown","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"markdown","type":"string","description":"An Airalogy Markdown string","preview":{"kind":"examples","values":[]}},"RecordId":{"type_name":"RecordId","import_from":"airalogy.types","storage_kind":"scalar","type":"string","preview":{"kind":"skip"}},"FileIdPNG":{"type_name":"FileIdPNG","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdPNG. This type allows users to upload a .png file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdJPG":{"type_name":"FileIdJPG","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdJPG. This type allows users to upload a .jpg file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdSVG":{"type_name":"FileIdSVG","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdSVG. This type allows users to upload a .svg file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdWEBP":{"type_name":"FileIdWEBP","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdWEBP. This type allows users to upload a .webp file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdTIFF":{"type_name":"FileIdTIFF","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdTIFF. This type allows users to upload a .tiff file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdMP4":{"type_name":"FileIdMP4","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdMP4. This type allows users to upload a .mp4 file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdMP3":{"type_name":"FileIdMP3","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdMP3. This type allows users to upload a .mp3 file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdAIMD":{"type_name":"FileIdAIMD","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdAIMD. This type allows users to upload a .aimd file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdMD":{"type_name":"FileIdMD","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdMD. This type allows users to upload a .md file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdTXT":{"type_name":"FileIdTXT","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdTXT. This type allows users to upload a .txt file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdCSV":{"type_name":"FileIdCSV","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdCSV. This type allows users to upload a .csv file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdJSON":{"type_name":"FileIdJSON","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdJSON. This type allows users to upload a .json file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdDOCX":{"type_name":"FileIdDOCX","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdDOCX. This type allows users to upload a .docx file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdXLSX":{"type_name":"FileIdXLSX","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdXLSX. This type allows users to upload a .xlsx file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdPPTX":{"type_name":"FileIdPPTX","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdPPTX. This type allows users to upload a .pptx file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdPDF":{"type_name":"FileIdPDF","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdPDF. This type allows users to upload a .pdf file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdDNA":{"type_name":"FileIdDNA","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdDNA. This type allows users to upload a .dna file and inject it into the related data field.","preview":{"kind":"skip"}},"Recommended":{"type_name":"Recommended","import_from":"airalogy.types","storage_kind":"scalar","type":"object","preview":{"kind":"skip"}},"IgnoreStr":{"type_name":"IgnoreStr","import_from":"airalogy.types","storage_kind":"scalar","type":"string","description":"In an Airalogy Field of this type, a user may provide a string; however, when the Airalogy Record is submitted, the string is not persisted. This is intended for sensitive input (such as an API key) that the Airalogy Protocol Assigner can consume during processing but that should never be stored in the final Record.","preview":{"kind":"skip"}},"CodeStr":{"type_name":"CodeStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (plaintext). Strings of this type contain language-agnostic code or structured text and are rendered in a plain code editor.","preview":{"kind":"examples","values":[]}},"PyStr":{"type_name":"PyStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (python). Strings of this type contain python source code and are rendered in an editor with python syntax highlighting.","preview":{"kind":"examples","values":[]}},"JsStr":{"type_name":"JsStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (javascript). Strings of this type contain javascript source code and are rendered in an editor with javascript syntax highlighting.","preview":{"kind":"examples","values":[]}},"TsStr":{"type_name":"TsStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (typescript). Strings of this type contain typescript source code and are rendered in an editor with typescript syntax highlighting.","preview":{"kind":"examples","values":[]}},"JsonStr":{"type_name":"JsonStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (json). Strings of this type contain json source code and are rendered in an editor with json syntax highlighting.","preview":{"kind":"examples","values":[]}},"TomlStr":{"type_name":"TomlStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (toml). Strings of this type contain toml source code and are rendered in an editor with toml syntax highlighting.","preview":{"kind":"examples","values":[]}},"YamlStr":{"type_name":"YamlStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (yaml). Strings of this type contain yaml source code and are rendered in an editor with yaml syntax highlighting.","preview":{"kind":"examples","values":[]}},"ATCG":{"type_name":"ATCG","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"dna-text","type":"string","preview":{"kind":"examples","values":["ATCG"]},"pattern":"^[ATCG]*$"},"DNASequence":{"type_name":"DNASequence","import_from":"airalogy.types","storage_kind":"structured","ui_kind":"dna-sequence","type":"object","title":"DNASequence","description":"Structured DNA sequence value used by Airalogy\'s dedicated sequence editor.\\n\\nThis model intentionally stays simpler than full GenBank flatfiles while\\npreserving the core pieces needed for practical import/export alignment:\\nmulti-segment feature locations, partial flags, and qualifier rows.","preview":{"kind":"skip"}},"SnakeStr":{"type_name":"SnakeStr","import_from":"airalogy.types","storage_kind":"scalar","type":"string","preview":{"kind":"examples","values":["example_sample"]},"pattern":"^(?!.*__)[a-z](?:[a-z\\\\d_]*[a-z\\\\d])?$"},"VersionStr":{"type_name":"VersionStr","import_from":"airalogy.types","storage_kind":"scalar","type":"string","preview":{"kind":"examples","values":["0.1.0"]},"pattern":"^\\\\d+\\\\.\\\\d+\\\\.\\\\d+$"},"ProtocolId":{"type_name":"ProtocolId","import_from":"airalogy.types","storage_kind":"scalar","type":"string","preview":{"kind":"skip"}}}'), Qi = {
|
|
2
2
|
types: Ji
|
|
3
|
-
},
|
|
3
|
+
}, Hi = /* @__PURE__ */ new Set(["none", "nonetype", "null", "undefined"]);
|
|
4
4
|
function Vt(e, t) {
|
|
5
5
|
const i = [];
|
|
6
6
|
let s = 0, r = 0, n = "", o = !1;
|
|
@@ -16,8 +16,8 @@ function Wt(e) {
|
|
|
16
16
|
const i = e.match(/^(?:(?:typing|typing_extensions)\.)?(Optional|Union)\s*\[([\s\S]*)\]$/i);
|
|
17
17
|
return i?.[1].toLowerCase() === "optional" ? { optional: i[2].trim(), union: [] } : { union: i ? Vt(i[2], ",") : t };
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
return
|
|
19
|
+
function Kt(e) {
|
|
20
|
+
return Hi.has(e.toLowerCase());
|
|
21
21
|
}
|
|
22
22
|
function mt(e) {
|
|
23
23
|
let t = typeof e == "string" ? e.trim() : "";
|
|
@@ -27,7 +27,7 @@ function mt(e) {
|
|
|
27
27
|
t = s;
|
|
28
28
|
continue;
|
|
29
29
|
}
|
|
30
|
-
const n = r.filter((o) => !
|
|
30
|
+
const n = r.filter((o) => !Kt(o));
|
|
31
31
|
if (r.length > 1 && n.length === 1 && n[0]) {
|
|
32
32
|
t = n[0];
|
|
33
33
|
continue;
|
|
@@ -39,10 +39,10 @@ function mt(e) {
|
|
|
39
39
|
function wr(e) {
|
|
40
40
|
if (typeof e != "string") return !1;
|
|
41
41
|
const { optional: t, union: i } = Wt(e.trim());
|
|
42
|
-
return t !== void 0 || i.length > 1 && i.some(
|
|
42
|
+
return t !== void 0 || i.length > 1 && i.some(Kt);
|
|
43
43
|
}
|
|
44
|
-
const
|
|
45
|
-
Object.values(
|
|
44
|
+
const zt = Qi, Lt = Object.fromEntries(
|
|
45
|
+
Object.values(zt.types).flatMap((e) => [
|
|
46
46
|
[e.type_name, e],
|
|
47
47
|
...(e.aliases ?? []).map((t) => [t, e])
|
|
48
48
|
])
|
|
@@ -66,15 +66,15 @@ function es(e) {
|
|
|
66
66
|
}
|
|
67
67
|
function ts(e) {
|
|
68
68
|
const t = es(e);
|
|
69
|
-
return t ?
|
|
69
|
+
return t && Object.prototype.hasOwnProperty.call(Lt, t) ? Lt[t] : void 0;
|
|
70
70
|
}
|
|
71
71
|
function Cr() {
|
|
72
|
-
return Object.keys(
|
|
72
|
+
return Object.keys(zt.types);
|
|
73
73
|
}
|
|
74
74
|
function is(e) {
|
|
75
75
|
return Yi(ts(e)?.enum);
|
|
76
76
|
}
|
|
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_・",
|
|
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 = {
|
|
78
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",
|
|
79
79
|
5: "class enum extends super const export import",
|
|
80
80
|
6: "enum",
|
|
@@ -84,7 +84,7 @@ var ss = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166,
|
|
|
84
84
|
5: it,
|
|
85
85
|
"5module": it + " export import",
|
|
86
86
|
6: it + " const class extends export import super"
|
|
87
|
-
}, as = /^in(stanceof)?$/, os = new RegExp("[" +
|
|
87
|
+
}, as = /^in(stanceof)?$/, os = new RegExp("[" + Qt + "]"), us = new RegExp("[" + Qt + rs + "]");
|
|
88
88
|
function ut(e, t) {
|
|
89
89
|
for (var i = 65536, s = 0; s < t.length; s += 2) {
|
|
90
90
|
if (i += t[s], i > e)
|
|
@@ -94,48 +94,48 @@ function ut(e, t) {
|
|
|
94
94
|
}
|
|
95
95
|
return !1;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function J(e, t) {
|
|
98
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);
|
|
99
99
|
}
|
|
100
100
|
function se(e, t) {
|
|
101
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);
|
|
102
102
|
}
|
|
103
|
-
var
|
|
103
|
+
var S = function(t, i) {
|
|
104
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;
|
|
105
105
|
};
|
|
106
106
|
function j(e, t) {
|
|
107
|
-
return new
|
|
107
|
+
return new S(e, { beforeExpr: !0, binop: t });
|
|
108
108
|
}
|
|
109
109
|
var U = { beforeExpr: !0 }, D = { startsExpr: !0 }, gt = {};
|
|
110
|
-
function
|
|
111
|
-
return t === void 0 && (t = {}), t.keyword = e, gt[e] = new
|
|
110
|
+
function k(e, t) {
|
|
111
|
+
return t === void 0 && (t = {}), t.keyword = e, gt[e] = new S(e, t);
|
|
112
112
|
}
|
|
113
113
|
var a = {
|
|
114
|
-
num: new
|
|
115
|
-
regexp: new
|
|
116
|
-
string: new
|
|
117
|
-
name: new
|
|
118
|
-
privateId: new
|
|
119
|
-
eof: new
|
|
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"),
|
|
120
120
|
// Punctuation token types.
|
|
121
|
-
bracketL: new
|
|
122
|
-
bracketR: new
|
|
123
|
-
braceL: new
|
|
124
|
-
braceR: new
|
|
125
|
-
parenL: new
|
|
126
|
-
parenR: new
|
|
127
|
-
comma: new
|
|
128
|
-
semi: new
|
|
129
|
-
colon: new
|
|
130
|
-
dot: new
|
|
131
|
-
question: new
|
|
132
|
-
questionDot: new
|
|
133
|
-
arrow: new
|
|
134
|
-
template: new
|
|
135
|
-
invalidTemplate: new
|
|
136
|
-
ellipsis: new
|
|
137
|
-
backQuote: new
|
|
138
|
-
dollarBraceL: new
|
|
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 }),
|
|
139
139
|
// Operators. These carry several kinds of properties to help the
|
|
140
140
|
// parser use them properly (the presence of these properties is
|
|
141
141
|
// what categorizes them as operators).
|
|
@@ -149,10 +149,10 @@ var a = {
|
|
|
149
149
|
// `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as
|
|
150
150
|
// binary operators with a very low precedence, that should result
|
|
151
151
|
// in AssignmentExpression nodes.
|
|
152
|
-
eq: new
|
|
153
|
-
assign: new
|
|
154
|
-
incDec: new
|
|
155
|
-
prefix: new
|
|
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 }),
|
|
156
156
|
logicalOR: j("||", 1),
|
|
157
157
|
logicalAND: j("&&", 2),
|
|
158
158
|
bitwiseOR: j("|", 3),
|
|
@@ -161,53 +161,53 @@ var a = {
|
|
|
161
161
|
equality: j("==/!=/===/!==", 6),
|
|
162
162
|
relational: j("</>/<=/>=", 7),
|
|
163
163
|
bitShift: j("<</>>/>>>", 8),
|
|
164
|
-
plusMin: new
|
|
164
|
+
plusMin: new S("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }),
|
|
165
165
|
modulo: j("%", 10),
|
|
166
166
|
star: j("*", 10),
|
|
167
167
|
slash: j("/", 10),
|
|
168
|
-
starstar: new
|
|
168
|
+
starstar: new S("**", { beforeExpr: !0 }),
|
|
169
169
|
coalesce: j("??", 1),
|
|
170
170
|
// Keyword token types.
|
|
171
|
-
_break:
|
|
172
|
-
_case:
|
|
173
|
-
_catch:
|
|
174
|
-
_continue:
|
|
175
|
-
_debugger:
|
|
176
|
-
_default:
|
|
177
|
-
_do:
|
|
178
|
-
_else:
|
|
179
|
-
_finally:
|
|
180
|
-
_for:
|
|
181
|
-
_function:
|
|
182
|
-
_if:
|
|
183
|
-
_return:
|
|
184
|
-
_switch:
|
|
185
|
-
_throw:
|
|
186
|
-
_try:
|
|
187
|
-
_var:
|
|
188
|
-
_const:
|
|
189
|
-
_while:
|
|
190
|
-
_with:
|
|
191
|
-
_new:
|
|
192
|
-
_this:
|
|
193
|
-
_super:
|
|
194
|
-
_class:
|
|
195
|
-
_extends:
|
|
196
|
-
_export:
|
|
197
|
-
_import:
|
|
198
|
-
_null:
|
|
199
|
-
_true:
|
|
200
|
-
_false:
|
|
201
|
-
_in:
|
|
202
|
-
_instanceof:
|
|
203
|
-
_typeof:
|
|
204
|
-
_void:
|
|
205
|
-
_delete:
|
|
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
206
|
}, B = /\r\n?|\n|\u2028|\u2029/, ls = new RegExp(B.source, "g");
|
|
207
207
|
function ge(e) {
|
|
208
208
|
return e === 10 || e === 13 || e === 8232 || e === 8233;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Ht(e, t, i) {
|
|
211
211
|
i === void 0 && (i = e.length);
|
|
212
212
|
for (var s = t; s < i; s++) {
|
|
213
213
|
var r = e.charCodeAt(s);
|
|
@@ -216,13 +216,13 @@ function Qt(e, t, i) {
|
|
|
216
216
|
}
|
|
217
217
|
return -1;
|
|
218
218
|
}
|
|
219
|
-
var
|
|
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
220
|
return cs.call(e, t);
|
|
221
|
-
}),
|
|
221
|
+
}), Rt = Array.isArray || (function(e) {
|
|
222
222
|
return hs.call(e) === "[object Array]";
|
|
223
|
-
}),
|
|
223
|
+
}), Ft = /* @__PURE__ */ Object.create(null);
|
|
224
224
|
function ie(e) {
|
|
225
|
-
return
|
|
225
|
+
return Ft[e] || (Ft[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
|
|
226
226
|
}
|
|
227
227
|
function Z(e) {
|
|
228
228
|
return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
|
|
@@ -233,12 +233,12 @@ var fs = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\u
|
|
|
233
233
|
Ce.prototype.offset = function(t) {
|
|
234
234
|
return new Ce(this.line, this.column + t);
|
|
235
235
|
};
|
|
236
|
-
var
|
|
236
|
+
var Ge = function(t, i, s) {
|
|
237
237
|
this.start = i, this.end = s, t.sourceFile !== null && (this.source = t.sourceFile);
|
|
238
238
|
};
|
|
239
|
-
function
|
|
239
|
+
function Zt(e, t) {
|
|
240
240
|
for (var i = 1, s = 0; ; ) {
|
|
241
|
-
var r =
|
|
241
|
+
var r = Ht(e, s, t);
|
|
242
242
|
if (r < 0)
|
|
243
243
|
return new Ce(i, t - s);
|
|
244
244
|
++i, s = r;
|
|
@@ -340,19 +340,19 @@ var lt = {
|
|
|
340
340
|
// When enabled, parenthesized expressions are represented by
|
|
341
341
|
// (non-standard) ParenthesizedExpression nodes
|
|
342
342
|
preserveParens: !1
|
|
343
|
-
},
|
|
343
|
+
}, Dt = !1;
|
|
344
344
|
function ps(e) {
|
|
345
345
|
var t = {};
|
|
346
346
|
for (var i in lt)
|
|
347
347
|
t[i] = e && ye(e, i) ? e[i] : lt[i];
|
|
348
|
-
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!
|
|
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),
|
|
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)) {
|
|
350
350
|
var s = t.onToken;
|
|
351
351
|
t.onToken = function(r) {
|
|
352
352
|
return s.push(r);
|
|
353
353
|
};
|
|
354
354
|
}
|
|
355
|
-
return
|
|
355
|
+
return Rt(t.onComment) && (t.onComment = ds(t, t.onComment)), t;
|
|
356
356
|
}
|
|
357
357
|
function ds(e, t) {
|
|
358
358
|
return function(i, s, r, n, o, u) {
|
|
@@ -362,14 +362,14 @@ function ds(e, t) {
|
|
|
362
362
|
start: r,
|
|
363
363
|
end: n
|
|
364
364
|
};
|
|
365
|
-
e.locations && (l.loc = new
|
|
365
|
+
e.locations && (l.loc = new Ge(this, o, u)), e.ranges && (l.range = [r, n]), t.push(l);
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
|
-
var Ae = 1, be = 2, yt = 4,
|
|
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
369
|
function xt(e, t) {
|
|
370
|
-
return be | (e ? yt : 0) | (t ?
|
|
370
|
+
return be | (e ? yt : 0) | (t ? ei : 0);
|
|
371
371
|
}
|
|
372
|
-
var Fe = 0, vt = 1, te = 2,
|
|
372
|
+
var Fe = 0, vt = 1, te = 2, si = 3, ri = 4, ni = 5, O = function(t, i, s) {
|
|
373
373
|
this.options = t = ps(t), this.sourceFile = t.sourceFile, this.keywords = ie(ns[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
|
|
374
374
|
var r = "";
|
|
375
375
|
t.allowReserved !== !0 && (r = tt[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (r += " await")), this.reservedWords = ie(r);
|
|
@@ -385,7 +385,7 @@ Q.inFunction.get = function() {
|
|
|
385
385
|
return (this.currentVarScope().flags & be) > 0;
|
|
386
386
|
};
|
|
387
387
|
Q.inGenerator.get = function() {
|
|
388
|
-
return (this.currentVarScope().flags &
|
|
388
|
+
return (this.currentVarScope().flags & ei) > 0;
|
|
389
389
|
};
|
|
390
390
|
Q.inAsync.get = function() {
|
|
391
391
|
return (this.currentVarScope().flags & yt) > 0;
|
|
@@ -402,10 +402,10 @@ Q.canAwait.get = function() {
|
|
|
402
402
|
};
|
|
403
403
|
Q.allowSuper.get = function() {
|
|
404
404
|
var e = this.currentThisScope(), t = e.flags;
|
|
405
|
-
return (t &
|
|
405
|
+
return (t & We) > 0 || this.options.allowSuperOutsideMethod;
|
|
406
406
|
};
|
|
407
407
|
Q.allowDirectSuper.get = function() {
|
|
408
|
-
return (this.currentThisScope().flags &
|
|
408
|
+
return (this.currentThisScope().flags & ii) > 0;
|
|
409
409
|
};
|
|
410
410
|
Q.treatFunctionsAsVar.get = function() {
|
|
411
411
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
@@ -487,7 +487,7 @@ F.expect = function(e) {
|
|
|
487
487
|
F.unexpected = function(e) {
|
|
488
488
|
this.raise(e ?? this.start, "Unexpected token");
|
|
489
489
|
};
|
|
490
|
-
var
|
|
490
|
+
var ze = function() {
|
|
491
491
|
this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
|
|
492
492
|
};
|
|
493
493
|
F.checkPatternErrors = function(e, t) {
|
|
@@ -537,7 +537,7 @@ g.isLet = function(e) {
|
|
|
537
537
|
return !1;
|
|
538
538
|
if (s === 123 || s > 55295 && s < 56320)
|
|
539
539
|
return !0;
|
|
540
|
-
if (
|
|
540
|
+
if (J(s, !0)) {
|
|
541
541
|
for (var r = i + 1; se(s = this.input.charCodeAt(r), !0); )
|
|
542
542
|
++r;
|
|
543
543
|
if (s === 92 || s > 55295 && s < 56320)
|
|
@@ -577,7 +577,7 @@ g.isUsingKeyword = function(e, t) {
|
|
|
577
577
|
return !1;
|
|
578
578
|
}
|
|
579
579
|
var c = this.input.charCodeAt(s);
|
|
580
|
-
return
|
|
580
|
+
return J(c, !0) || c === 92;
|
|
581
581
|
};
|
|
582
582
|
g.isAwaitUsing = function(e) {
|
|
583
583
|
return this.isUsingKeyword(!0, e);
|
|
@@ -677,14 +677,14 @@ g.parseForStatement = function(e) {
|
|
|
677
677
|
var l = this.startNode();
|
|
678
678
|
return this.next(), u === "await using" && this.next(), this.parseVar(l, !0, u), this.finishNode(l, "VariableDeclaration"), this.parseForAfterInit(e, l, t);
|
|
679
679
|
}
|
|
680
|
-
var c = this.containsEsc, p = new
|
|
680
|
+
var c = this.containsEsc, p = new ze(), f = this.start, d = t > -1 ? this.parseExprSubscripts(p, "await") : this.parseExpression(!0, p);
|
|
681
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));
|
|
682
682
|
};
|
|
683
683
|
g.parseForAfterInit = function(e, t, i) {
|
|
684
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));
|
|
685
685
|
};
|
|
686
686
|
g.parseFunctionStatement = function(e, t, i) {
|
|
687
|
-
return this.next(), this.parseFunction(e,
|
|
687
|
+
return this.next(), this.parseFunction(e, ke | (i ? 0 : ct), !1, t);
|
|
688
688
|
};
|
|
689
689
|
g.parseIfStatement = function(e) {
|
|
690
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");
|
|
@@ -708,7 +708,7 @@ g.parseThrowStatement = function(e) {
|
|
|
708
708
|
var ys = [];
|
|
709
709
|
g.parseCatchClauseParam = function() {
|
|
710
710
|
var e = this.parseBindingAtom(), t = e.type === "Identifier";
|
|
711
|
-
return this.enterScope(t ?
|
|
711
|
+
return this.enterScope(t ? ti : 0), this.checkLValPattern(e, t ? ri : te), this.expect(a.parenR), e;
|
|
712
712
|
};
|
|
713
713
|
g.parseTryStatement = function(e) {
|
|
714
714
|
if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === a._catch) {
|
|
@@ -774,11 +774,11 @@ g.parseVar = function(e, t, i, s) {
|
|
|
774
774
|
g.parseVarId = function(e, t) {
|
|
775
775
|
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? vt : te, !1);
|
|
776
776
|
};
|
|
777
|
-
var
|
|
777
|
+
var ke = 1, ct = 2, ai = 4;
|
|
778
778
|
g.parseFunction = function(e, t, i, s, r) {
|
|
779
|
-
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s) && (this.type === a.star && t & ct && this.unexpected(), e.generator = this.eat(a.star)), this.options.ecmaVersion >= 8 && (e.async = !!s), t &
|
|
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));
|
|
780
780
|
var n = this.yieldPos, o = this.awaitPos, u = this.awaitIdentPos;
|
|
781
|
-
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(xt(e.async, e.generator)), t &
|
|
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");
|
|
782
782
|
};
|
|
783
783
|
g.parseFunctionParams = function(e) {
|
|
784
784
|
this.expect(a.parenL), e.params = this.parseBindingList(a.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
|
|
@@ -827,12 +827,12 @@ g.parseClassMethod = function(e, t, i, s) {
|
|
|
827
827
|
return e.kind === "get" && n.params.length !== 0 && this.raiseRecoverable(n.start, "getter should have no params"), e.kind === "set" && n.params.length !== 1 && this.raiseRecoverable(n.start, "setter should have exactly one param"), e.kind === "set" && n.params[0].type === "RestElement" && this.raiseRecoverable(n.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
|
|
828
828
|
};
|
|
829
829
|
g.parseClassField = function(e) {
|
|
830
|
-
return De(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && De(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(a.eq) ? (this.enterScope(Ee |
|
|
830
|
+
return De(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && De(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(a.eq) ? (this.enterScope(Ee | We), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
|
|
831
831
|
};
|
|
832
832
|
g.parseClassStaticBlock = function(e) {
|
|
833
833
|
e.body = [];
|
|
834
834
|
var t = this.labels;
|
|
835
|
-
for (this.labels = [], this.enterScope(ce |
|
|
835
|
+
for (this.labels = [], this.enterScope(ce | We); this.type !== a.braceR; ) {
|
|
836
836
|
var i = this.parseStatement(null);
|
|
837
837
|
e.body.push(i);
|
|
838
838
|
}
|
|
@@ -895,7 +895,7 @@ g.parseExportDefaultDeclaration = function() {
|
|
|
895
895
|
var e;
|
|
896
896
|
if (this.type === a._function || (e = this.isAsyncFunction())) {
|
|
897
897
|
var t = this.startNode();
|
|
898
|
-
return this.next(), e && this.next(), this.parseFunction(t,
|
|
898
|
+
return this.next(), e && this.next(), this.parseFunction(t, ke | ai, !1, e);
|
|
899
899
|
} else if (this.type === a._class) {
|
|
900
900
|
var i = this.startNode();
|
|
901
901
|
return this.parseClass(i, "nullableID");
|
|
@@ -1126,7 +1126,7 @@ q.checkLValSimple = function(e, t, i) {
|
|
|
1126
1126
|
var s = t !== Fe;
|
|
1127
1127
|
switch (e.type) {
|
|
1128
1128
|
case "Identifier":
|
|
1129
|
-
this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (s ? "Binding " : "Assigning to ") + e.name + " in strict mode"), s && (t === te && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), i && (ye(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = !0), t !==
|
|
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));
|
|
1130
1130
|
break;
|
|
1131
1131
|
case "ChainExpression":
|
|
1132
1132
|
this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
|
|
@@ -1173,21 +1173,21 @@ q.checkLValInnerPattern = function(e, t, i) {
|
|
|
1173
1173
|
this.checkLValPattern(e, t, i);
|
|
1174
1174
|
}
|
|
1175
1175
|
};
|
|
1176
|
-
var
|
|
1176
|
+
var W = function(t, i, s, r, n) {
|
|
1177
1177
|
this.token = t, this.isExpr = !!i, this.preserveSpace = !!s, this.override = r, this.generator = !!n;
|
|
1178
1178
|
}, I = {
|
|
1179
|
-
b_stat: new
|
|
1180
|
-
b_expr: new
|
|
1181
|
-
b_tmpl: new
|
|
1182
|
-
p_stat: new
|
|
1183
|
-
p_expr: new
|
|
1184
|
-
q_tmpl: new
|
|
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) {
|
|
1185
1185
|
return e.tryReadTemplateToken();
|
|
1186
1186
|
}),
|
|
1187
|
-
f_stat: new
|
|
1188
|
-
f_expr: new
|
|
1189
|
-
f_expr_gen: new
|
|
1190
|
-
f_gen: new
|
|
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
1191
|
}, xe = O.prototype;
|
|
1192
1192
|
xe.initialContext = function() {
|
|
1193
1193
|
return [I.b_stat];
|
|
@@ -1304,7 +1304,7 @@ v.parseMaybeAssign = function(e, t, i) {
|
|
|
1304
1304
|
this.exprAllowed = !1;
|
|
1305
1305
|
}
|
|
1306
1306
|
var s = !1, r = -1, n = -1, o = -1;
|
|
1307
|
-
t ? (r = t.parenthesizedAssign, n = t.trailingComma, o = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new
|
|
1307
|
+
t ? (r = t.parenthesizedAssign, n = t.trailingComma, o = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new ze(), s = !0);
|
|
1308
1308
|
var u = this.start, l = this.startLoc;
|
|
1309
1309
|
(this.type === a.parenL || this.type === a.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
|
|
1310
1310
|
var c = this.parseMaybeConditional(e, t);
|
|
@@ -1352,7 +1352,7 @@ v.parseMaybeUnary = function(e, t, i, s) {
|
|
|
1352
1352
|
o = this.parseAwait(s), t = !0;
|
|
1353
1353
|
else if (this.type.prefix) {
|
|
1354
1354
|
var u = this.startNode(), l = this.type === a.incDec;
|
|
1355
|
-
u.operator = this.value, u.prefix = !0, this.next(), u.argument = this.parseMaybeUnary(null, !0, l, s), this.checkExpressionErrors(e, !0), l ? this.checkLValSimple(u.argument) : this.strict && u.operator === "delete" &&
|
|
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");
|
|
1356
1356
|
} else if (!t && this.type === a.privateId)
|
|
1357
1357
|
(s || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), o = this.parsePrivateIdent(), this.type !== a._in && this.unexpected();
|
|
1358
1358
|
else {
|
|
@@ -1371,8 +1371,8 @@ v.parseMaybeUnary = function(e, t, i, s) {
|
|
|
1371
1371
|
else
|
|
1372
1372
|
return o;
|
|
1373
1373
|
};
|
|
1374
|
-
function
|
|
1375
|
-
return e.type === "Identifier" || e.type === "ParenthesizedExpression" &&
|
|
1374
|
+
function oi(e) {
|
|
1375
|
+
return e.type === "Identifier" || e.type === "ParenthesizedExpression" && oi(e.expression);
|
|
1376
1376
|
}
|
|
1377
1377
|
function ht(e) {
|
|
1378
1378
|
return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && ht(e.expression) || e.type === "ParenthesizedExpression" && ht(e.expression);
|
|
@@ -1411,7 +1411,7 @@ v.parseSubscript = function(e, t, i, s, r, n, o) {
|
|
|
1411
1411
|
var p = this.startNodeAt(t, i);
|
|
1412
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");
|
|
1413
1413
|
} else if (!s && this.eat(a.parenL)) {
|
|
1414
|
-
var f = new
|
|
1414
|
+
var f = new ze(), d = this.yieldPos, y = this.awaitPos, x = this.awaitIdentPos;
|
|
1415
1415
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
1416
1416
|
var h = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, !1, f);
|
|
1417
1417
|
if (r && !l && this.shouldParseAsyncArrow())
|
|
@@ -1519,7 +1519,7 @@ v.parseParenAndDistinguishExpression = function(e, t) {
|
|
|
1519
1519
|
var i = this.start, s = this.startLoc, r, n = this.options.ecmaVersion >= 8;
|
|
1520
1520
|
if (this.options.ecmaVersion >= 6) {
|
|
1521
1521
|
this.next();
|
|
1522
|
-
var o = this.start, u = this.startLoc, l = [], c = !0, p = !1, f = new
|
|
1522
|
+
var o = this.start, u = this.startLoc, l = [], c = !0, p = !1, f = new ze(), d = this.yieldPos, y = this.awaitPos, x;
|
|
1523
1523
|
for (this.yieldPos = 0, this.awaitPos = 0; this.type !== a.parenR; )
|
|
1524
1524
|
if (c ? c = !1 : this.expect(a.comma), n && this.afterTrailingComma(a.parenR, !0)) {
|
|
1525
1525
|
p = !0;
|
|
@@ -1635,7 +1635,7 @@ v.initFunction = function(e) {
|
|
|
1635
1635
|
};
|
|
1636
1636
|
v.parseMethod = function(e, t, i) {
|
|
1637
1637
|
var s = this.startNode(), r = this.yieldPos, n = this.awaitPos, o = this.awaitIdentPos;
|
|
1638
|
-
return this.initFunction(s), this.options.ecmaVersion >= 6 && (s.generator = e), this.options.ecmaVersion >= 8 && (s.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(xt(t, s.generator) |
|
|
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");
|
|
1639
1639
|
};
|
|
1640
1640
|
v.parseArrowExpression = function(e, t, i, s) {
|
|
1641
1641
|
var r = this.yieldPos, n = this.awaitPos, o = this.awaitIdentPos;
|
|
@@ -1649,7 +1649,7 @@ v.parseFunctionBody = function(e, t, i, s) {
|
|
|
1649
1649
|
var u = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
|
|
1650
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"));
|
|
1651
1651
|
var l = this.labels;
|
|
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,
|
|
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;
|
|
1653
1653
|
}
|
|
1654
1654
|
this.exitScope();
|
|
1655
1655
|
};
|
|
@@ -1709,7 +1709,7 @@ v.parseAwait = function(e) {
|
|
|
1709
1709
|
};
|
|
1710
1710
|
var Be = O.prototype;
|
|
1711
1711
|
Be.raise = function(e, t) {
|
|
1712
|
-
var i =
|
|
1712
|
+
var i = Zt(this.input, e);
|
|
1713
1713
|
t += " (" + i.line + ":" + i.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
|
|
1714
1714
|
var s = new SyntaxError(t);
|
|
1715
1715
|
throw s.pos = e, s.loc = i, s.raisedAt = this.pos, s;
|
|
@@ -1736,16 +1736,16 @@ ne.declareName = function(e, t, i) {
|
|
|
1736
1736
|
if (t === te) {
|
|
1737
1737
|
var r = this.currentScope();
|
|
1738
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];
|
|
1739
|
-
} else if (t ===
|
|
1739
|
+
} else if (t === ri) {
|
|
1740
1740
|
var n = this.currentScope();
|
|
1741
1741
|
n.lexical.push(e);
|
|
1742
|
-
} else if (t ===
|
|
1742
|
+
} else if (t === si) {
|
|
1743
1743
|
var o = this.currentScope();
|
|
1744
1744
|
this.treatFunctionsAsVar ? s = o.lexical.indexOf(e) > -1 : s = o.lexical.indexOf(e) > -1 || o.var.indexOf(e) > -1, o.functions.push(e);
|
|
1745
1745
|
} else
|
|
1746
1746
|
for (var u = this.scopeStack.length - 1; u >= 0; --u) {
|
|
1747
1747
|
var l = this.scopeStack[u];
|
|
1748
|
-
if (l.lexical.indexOf(e) > -1 && !(l.flags &
|
|
1748
|
+
if (l.lexical.indexOf(e) > -1 && !(l.flags & ti && l.lexical[0] === e) || !this.treatFunctionsAsVarInScope(l) && l.functions.indexOf(e) > -1) {
|
|
1749
1749
|
s = !0;
|
|
1750
1750
|
break;
|
|
1751
1751
|
}
|
|
@@ -1774,37 +1774,37 @@ ne.currentThisScope = function() {
|
|
|
1774
1774
|
return t;
|
|
1775
1775
|
}
|
|
1776
1776
|
};
|
|
1777
|
-
var
|
|
1778
|
-
this.type = "", this.start = i, this.end = 0, t.options.locations && (this.loc = new
|
|
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
1779
|
}, Pe = O.prototype;
|
|
1780
1780
|
Pe.startNode = function() {
|
|
1781
|
-
return new
|
|
1781
|
+
return new Je(this, this.start, this.startLoc);
|
|
1782
1782
|
};
|
|
1783
1783
|
Pe.startNodeAt = function(e, t) {
|
|
1784
|
-
return new
|
|
1784
|
+
return new Je(this, e, t);
|
|
1785
1785
|
};
|
|
1786
|
-
function
|
|
1786
|
+
function ui(e, t, i, s) {
|
|
1787
1787
|
return e.type = t, e.end = i, this.options.locations && (e.loc.end = s), this.options.ranges && (e.range[1] = i), e;
|
|
1788
1788
|
}
|
|
1789
1789
|
Pe.finishNode = function(e, t) {
|
|
1790
|
-
return
|
|
1790
|
+
return ui.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
|
|
1791
1791
|
};
|
|
1792
1792
|
Pe.finishNodeAt = function(e, t, i, s) {
|
|
1793
|
-
return
|
|
1793
|
+
return ui.call(this, e, t, i, s);
|
|
1794
1794
|
};
|
|
1795
1795
|
Pe.copyNode = function(e) {
|
|
1796
|
-
var t = new
|
|
1796
|
+
var t = new Je(this, e.start, this.startLoc);
|
|
1797
1797
|
for (var i in e)
|
|
1798
1798
|
t[i] = e[i];
|
|
1799
1799
|
return t;
|
|
1800
1800
|
};
|
|
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",
|
|
1802
|
-
9:
|
|
1803
|
-
10:
|
|
1804
|
-
11:
|
|
1805
|
-
12:
|
|
1806
|
-
13:
|
|
1807
|
-
14:
|
|
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
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 = {
|
|
1809
1809
|
9: "",
|
|
1810
1810
|
10: "",
|
|
@@ -1812,27 +1812,27 @@ var _s = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai
|
|
|
1812
1812
|
12: "",
|
|
1813
1813
|
13: "",
|
|
1814
1814
|
14: ws
|
|
1815
|
-
},
|
|
1816
|
-
9:
|
|
1817
|
-
10:
|
|
1818
|
-
11:
|
|
1819
|
-
12:
|
|
1820
|
-
13:
|
|
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
1821
|
14: As
|
|
1822
|
-
},
|
|
1822
|
+
}, xi = {};
|
|
1823
1823
|
function Es(e) {
|
|
1824
|
-
var t =
|
|
1825
|
-
binary: ie(
|
|
1824
|
+
var t = xi[e] = {
|
|
1825
|
+
binary: ie(Ss[e] + " " + Bt),
|
|
1826
1826
|
binaryOfStrings: ie(Cs[e]),
|
|
1827
1827
|
nonBinary: {
|
|
1828
|
-
General_Category: ie(
|
|
1828
|
+
General_Category: ie(Bt),
|
|
1829
1829
|
Script: ie(Is[e])
|
|
1830
1830
|
}
|
|
1831
1831
|
};
|
|
1832
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;
|
|
1833
1833
|
}
|
|
1834
|
-
for (var st = 0,
|
|
1835
|
-
var Ps =
|
|
1834
|
+
for (var st = 0, Mt = [9, 10, 11, 12, 13, 14]; st < Mt.length; st += 1) {
|
|
1835
|
+
var Ps = Mt[st];
|
|
1836
1836
|
Es(Ps);
|
|
1837
1837
|
}
|
|
1838
1838
|
var m = O.prototype, Me = function(t, i) {
|
|
@@ -1849,7 +1849,7 @@ Me.prototype.sibling = function() {
|
|
|
1849
1849
|
return new Me(this.parent, this.base);
|
|
1850
1850
|
};
|
|
1851
1851
|
var H = function(t) {
|
|
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 =
|
|
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;
|
|
1853
1853
|
};
|
|
1854
1854
|
H.prototype.reset = function(t, i, s) {
|
|
1855
1855
|
var r = s.indexOf("v") !== -1, n = s.indexOf("u") !== -1;
|
|
@@ -2132,13 +2132,13 @@ m.regexp_eatInvalidBracedQuantifier = function(e) {
|
|
|
2132
2132
|
};
|
|
2133
2133
|
m.regexp_eatSyntaxCharacter = function(e) {
|
|
2134
2134
|
var t = e.current();
|
|
2135
|
-
return
|
|
2135
|
+
return vi(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
|
|
2136
2136
|
};
|
|
2137
|
-
function
|
|
2137
|
+
function vi(e) {
|
|
2138
2138
|
return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
|
|
2139
2139
|
}
|
|
2140
2140
|
m.regexp_eatPatternCharacters = function(e) {
|
|
2141
|
-
for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !
|
|
2141
|
+
for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !vi(i); )
|
|
2142
2142
|
e.advance();
|
|
2143
2143
|
return e.pos !== t;
|
|
2144
2144
|
};
|
|
@@ -2191,7 +2191,7 @@ m.regexp_eatRegExpIdentifierStart = function(e) {
|
|
|
2191
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);
|
|
2192
2192
|
};
|
|
2193
2193
|
function Os(e) {
|
|
2194
|
-
return
|
|
2194
|
+
return J(e, !0) || e === 36 || e === 95;
|
|
2195
2195
|
}
|
|
2196
2196
|
m.regexp_eatRegExpIdentifierPart = function(e) {
|
|
2197
2197
|
var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
|
|
@@ -2250,9 +2250,9 @@ m.regexp_eatControlEscape = function(e) {
|
|
|
2250
2250
|
};
|
|
2251
2251
|
m.regexp_eatControlLetter = function(e) {
|
|
2252
2252
|
var t = e.current();
|
|
2253
|
-
return
|
|
2253
|
+
return _i(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
|
|
2254
2254
|
};
|
|
2255
|
-
function
|
|
2255
|
+
function _i(e) {
|
|
2256
2256
|
return e >= 65 && e <= 90 || e >= 97 && e <= 122;
|
|
2257
2257
|
}
|
|
2258
2258
|
m.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
|
|
@@ -2316,7 +2316,7 @@ m.regexp_eatDecimalEscape = function(e) {
|
|
|
2316
2316
|
}
|
|
2317
2317
|
return !1;
|
|
2318
2318
|
};
|
|
2319
|
-
var
|
|
2319
|
+
var ki = 0, ee = 1, $ = 2;
|
|
2320
2320
|
m.regexp_eatCharacterClassEscape = function(e) {
|
|
2321
2321
|
var t = e.current();
|
|
2322
2322
|
if (Rs(t))
|
|
@@ -2335,7 +2335,7 @@ m.regexp_eatCharacterClassEscape = function(e) {
|
|
|
2335
2335
|
return i && s === $ && e.raise("Invalid property name"), s;
|
|
2336
2336
|
e.raise("Invalid property name");
|
|
2337
2337
|
}
|
|
2338
|
-
return
|
|
2338
|
+
return ki;
|
|
2339
2339
|
};
|
|
2340
2340
|
function Rs(e) {
|
|
2341
2341
|
return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
|
|
@@ -2356,7 +2356,7 @@ m.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
|
2356
2356
|
var r = e.lastStringValue;
|
|
2357
2357
|
return this.regexp_validateUnicodePropertyNameOrValue(e, r);
|
|
2358
2358
|
}
|
|
2359
|
-
return
|
|
2359
|
+
return ki;
|
|
2360
2360
|
};
|
|
2361
2361
|
m.regexp_validateUnicodePropertyNameAndValue = function(e, t, i) {
|
|
2362
2362
|
ye(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(i) || e.raise("Invalid property value");
|
|
@@ -2375,7 +2375,7 @@ m.regexp_eatUnicodePropertyName = function(e) {
|
|
|
2375
2375
|
return e.lastStringValue !== "";
|
|
2376
2376
|
};
|
|
2377
2377
|
function Si(e) {
|
|
2378
|
-
return
|
|
2378
|
+
return _i(e) || e === 95;
|
|
2379
2379
|
}
|
|
2380
2380
|
m.regexp_eatUnicodePropertyValue = function(e) {
|
|
2381
2381
|
var t = 0;
|
|
@@ -2430,7 +2430,7 @@ m.regexp_eatClassAtom = function(e) {
|
|
|
2430
2430
|
return !0;
|
|
2431
2431
|
if (e.switchU) {
|
|
2432
2432
|
var i = e.current();
|
|
2433
|
-
(i === 99 ||
|
|
2433
|
+
(i === 99 || Ai(i)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
|
|
2434
2434
|
}
|
|
2435
2435
|
e.pos = t;
|
|
2436
2436
|
}
|
|
@@ -2625,14 +2625,14 @@ function Qe(e) {
|
|
|
2625
2625
|
}
|
|
2626
2626
|
m.regexp_eatHexDigits = function(e) {
|
|
2627
2627
|
var t = e.pos, i = 0;
|
|
2628
|
-
for (e.lastIntValue = 0;
|
|
2629
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
2628
|
+
for (e.lastIntValue = 0; wi(i = e.current()); )
|
|
2629
|
+
e.lastIntValue = 16 * e.lastIntValue + Ci(i), e.advance();
|
|
2630
2630
|
return e.pos !== t;
|
|
2631
2631
|
};
|
|
2632
|
-
function
|
|
2632
|
+
function wi(e) {
|
|
2633
2633
|
return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
|
|
2634
2634
|
}
|
|
2635
|
-
function
|
|
2635
|
+
function Ci(e) {
|
|
2636
2636
|
return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
|
|
2637
2637
|
}
|
|
2638
2638
|
m.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
@@ -2649,9 +2649,9 @@ m.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
|
2649
2649
|
};
|
|
2650
2650
|
m.regexp_eatOctalDigit = function(e) {
|
|
2651
2651
|
var t = e.current();
|
|
2652
|
-
return
|
|
2652
|
+
return Ai(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
|
|
2653
2653
|
};
|
|
2654
|
-
function
|
|
2654
|
+
function Ai(e) {
|
|
2655
2655
|
return e >= 48 && e <= 55;
|
|
2656
2656
|
}
|
|
2657
2657
|
m.regexp_eatFixedHexDigits = function(e, t) {
|
|
@@ -2659,20 +2659,20 @@ m.regexp_eatFixedHexDigits = function(e, t) {
|
|
|
2659
2659
|
e.lastIntValue = 0;
|
|
2660
2660
|
for (var s = 0; s < t; ++s) {
|
|
2661
2661
|
var r = e.current();
|
|
2662
|
-
if (!
|
|
2662
|
+
if (!wi(r))
|
|
2663
2663
|
return e.pos = i, !1;
|
|
2664
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
2664
|
+
e.lastIntValue = 16 * e.lastIntValue + Ci(r), e.advance();
|
|
2665
2665
|
}
|
|
2666
2666
|
return !0;
|
|
2667
2667
|
};
|
|
2668
|
-
var
|
|
2669
|
-
this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new
|
|
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
2670
|
}, _ = O.prototype;
|
|
2671
2671
|
_.next = function(e) {
|
|
2672
|
-
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new
|
|
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();
|
|
2673
2673
|
};
|
|
2674
2674
|
_.getToken = function() {
|
|
2675
|
-
return this.next(), new
|
|
2675
|
+
return this.next(), new kt(this);
|
|
2676
2676
|
};
|
|
2677
2677
|
typeof Symbol < "u" && (_[Symbol.iterator] = function() {
|
|
2678
2678
|
var e = this;
|
|
@@ -2695,7 +2695,7 @@ _.nextToken = function() {
|
|
|
2695
2695
|
this.readToken(this.fullCharCodeAtPos());
|
|
2696
2696
|
};
|
|
2697
2697
|
_.readToken = function(e) {
|
|
2698
|
-
return
|
|
2698
|
+
return J(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
|
|
2699
2699
|
};
|
|
2700
2700
|
_.fullCharCodeAtPos = function() {
|
|
2701
2701
|
var e = this.input.charCodeAt(this.pos);
|
|
@@ -2707,7 +2707,7 @@ _.fullCharCodeAtPos = function() {
|
|
|
2707
2707
|
_.skipBlockComment = function() {
|
|
2708
2708
|
var e = this.options.onComment && this.curPosition(), t = this.pos, i = this.input.indexOf("*/", this.pos += 2);
|
|
2709
2709
|
if (i === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = i + 2, this.options.locations)
|
|
2710
|
-
for (var s = void 0, r = t; (s =
|
|
2710
|
+
for (var s = void 0, r = t; (s = Ht(this.input, r, this.pos)) > -1; )
|
|
2711
2711
|
++this.curLine, r = this.lineStart = s;
|
|
2712
2712
|
this.options.onComment && this.options.onComment(
|
|
2713
2713
|
!0,
|
|
@@ -2758,7 +2758,7 @@ _.skipSpace = function() {
|
|
|
2758
2758
|
}
|
|
2759
2759
|
break;
|
|
2760
2760
|
default:
|
|
2761
|
-
if (e > 8 && e < 14 || e >= 5760 &&
|
|
2761
|
+
if (e > 8 && e < 14 || e >= 5760 && Xt.test(String.fromCharCode(e)))
|
|
2762
2762
|
++this.pos;
|
|
2763
2763
|
else
|
|
2764
2764
|
break e;
|
|
@@ -2835,7 +2835,7 @@ _.readToken_question = function() {
|
|
|
2835
2835
|
};
|
|
2836
2836
|
_.readToken_numberSign = function() {
|
|
2837
2837
|
var e = this.options.ecmaVersion, t = 35;
|
|
2838
|
-
if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(),
|
|
2838
|
+
if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), J(t, !0) || t === 92))
|
|
2839
2839
|
return this.finishToken(a.privateId, this.readWord1());
|
|
2840
2840
|
this.raise(this.pos, "Unexpected character '" + Z(t) + "'");
|
|
2841
2841
|
};
|
|
@@ -2976,14 +2976,14 @@ _.readInt = function(e, t, i) {
|
|
|
2976
2976
|
function js(e, t) {
|
|
2977
2977
|
return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
|
|
2978
2978
|
}
|
|
2979
|
-
function
|
|
2979
|
+
function Ii(e) {
|
|
2980
2980
|
return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
|
|
2981
2981
|
}
|
|
2982
2982
|
_.readRadixNumber = function(e) {
|
|
2983
2983
|
var t = this.pos;
|
|
2984
2984
|
this.pos += 2;
|
|
2985
2985
|
var i = this.readInt(e);
|
|
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 =
|
|
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);
|
|
2987
2987
|
};
|
|
2988
2988
|
_.readNumber = function(e) {
|
|
2989
2989
|
var t = this.pos;
|
|
@@ -2992,10 +2992,10 @@ _.readNumber = function(e) {
|
|
|
2992
2992
|
i && this.strict && this.raise(t, "Invalid number");
|
|
2993
2993
|
var s = this.input.charCodeAt(this.pos);
|
|
2994
2994
|
if (!i && !e && this.options.ecmaVersion >= 11 && s === 110) {
|
|
2995
|
-
var r =
|
|
2996
|
-
return ++this.pos,
|
|
2995
|
+
var r = Ii(this.input.slice(t, this.pos));
|
|
2996
|
+
return ++this.pos, J(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, r);
|
|
2997
2997
|
}
|
|
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")),
|
|
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");
|
|
2999
2999
|
var n = js(this.input.slice(t, this.pos), i);
|
|
3000
3000
|
return this.finishToken(a.num, n);
|
|
3001
3001
|
};
|
|
@@ -3019,13 +3019,13 @@ _.readString = function(e) {
|
|
|
3019
3019
|
}
|
|
3020
3020
|
return t += this.input.slice(i, this.pos++), this.finishToken(a.string, t);
|
|
3021
3021
|
};
|
|
3022
|
-
var
|
|
3022
|
+
var Ei = {};
|
|
3023
3023
|
_.tryReadTemplateToken = function() {
|
|
3024
3024
|
this.inTemplateElement = !0;
|
|
3025
3025
|
try {
|
|
3026
3026
|
this.readTmplToken();
|
|
3027
3027
|
} catch (e) {
|
|
3028
|
-
if (e ===
|
|
3028
|
+
if (e === Ei)
|
|
3029
3029
|
this.readInvalidTemplateToken();
|
|
3030
3030
|
else
|
|
3031
3031
|
throw e;
|
|
@@ -3034,7 +3034,7 @@ _.tryReadTemplateToken = function() {
|
|
|
3034
3034
|
};
|
|
3035
3035
|
_.invalidStringToken = function(e, t) {
|
|
3036
3036
|
if (this.inTemplateElement && this.options.ecmaVersion >= 9)
|
|
3037
|
-
throw
|
|
3037
|
+
throw Ei;
|
|
3038
3038
|
this.raise(e, t);
|
|
3039
3039
|
};
|
|
3040
3040
|
_.readTmplToken = function() {
|
|
@@ -3158,7 +3158,7 @@ _.readWord1 = function() {
|
|
|
3158
3158
|
var n = this.pos;
|
|
3159
3159
|
this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
|
|
3160
3160
|
var o = this.readCodePoint();
|
|
3161
|
-
(t ?
|
|
3161
|
+
(t ? J : se)(o, s) || this.invalidStringToken(n, "Invalid Unicode escape"), e += Z(o), i = this.pos;
|
|
3162
3162
|
} else
|
|
3163
3163
|
break;
|
|
3164
3164
|
t = !1;
|
|
@@ -3175,21 +3175,21 @@ O.acorn = {
|
|
|
3175
3175
|
version: Us,
|
|
3176
3176
|
defaultOptions: lt,
|
|
3177
3177
|
Position: Ce,
|
|
3178
|
-
SourceLocation:
|
|
3179
|
-
getLineInfo:
|
|
3180
|
-
Node:
|
|
3181
|
-
TokenType:
|
|
3178
|
+
SourceLocation: Ge,
|
|
3179
|
+
getLineInfo: Zt,
|
|
3180
|
+
Node: Je,
|
|
3181
|
+
TokenType: S,
|
|
3182
3182
|
tokTypes: a,
|
|
3183
3183
|
keywordTypes: gt,
|
|
3184
|
-
TokContext:
|
|
3184
|
+
TokContext: W,
|
|
3185
3185
|
tokContexts: I,
|
|
3186
3186
|
isIdentifierChar: se,
|
|
3187
|
-
isIdentifierStart:
|
|
3188
|
-
Token:
|
|
3187
|
+
isIdentifierStart: J,
|
|
3188
|
+
Token: kt,
|
|
3189
3189
|
isNewLine: ge,
|
|
3190
3190
|
lineBreak: B,
|
|
3191
3191
|
lineBreakG: ls,
|
|
3192
|
-
nonASCIIwhitespace:
|
|
3192
|
+
nonASCIIwhitespace: Xt
|
|
3193
3193
|
};
|
|
3194
3194
|
function re(e) {
|
|
3195
3195
|
const t = [];
|
|
@@ -3244,7 +3244,7 @@ function re(e) {
|
|
|
3244
3244
|
function $s(e, t) {
|
|
3245
3245
|
return e.replace(/\\\\/g, "\\").replace(t === '"' ? /\\"/g : /\\'/g, t);
|
|
3246
3246
|
}
|
|
3247
|
-
function
|
|
3247
|
+
function St(e) {
|
|
3248
3248
|
const t = e.trim();
|
|
3249
3249
|
if (!t)
|
|
3250
3250
|
return "";
|
|
@@ -3257,7 +3257,7 @@ function kt(e) {
|
|
|
3257
3257
|
}
|
|
3258
3258
|
if (t.startsWith("[") && t.endsWith("]")) {
|
|
3259
3259
|
const s = t.slice(1, -1).trim();
|
|
3260
|
-
return s ? re(s).map(
|
|
3260
|
+
return s ? re(s).map(St) : [];
|
|
3261
3261
|
}
|
|
3262
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;
|
|
3263
3263
|
}
|
|
@@ -3265,40 +3265,40 @@ function je(e) {
|
|
|
3265
3265
|
const t = {};
|
|
3266
3266
|
for (const i of re(e)) {
|
|
3267
3267
|
const s = i.match(/^(\w+)\s*=\s*([\s\S]+)$/);
|
|
3268
|
-
s && (t[s[1]] =
|
|
3268
|
+
s && (t[s[1]] = St(s[2]));
|
|
3269
3269
|
}
|
|
3270
3270
|
return t;
|
|
3271
3271
|
}
|
|
3272
3272
|
function qs(e) {
|
|
3273
3273
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null;
|
|
3274
3274
|
}
|
|
3275
|
-
function
|
|
3275
|
+
function Pi(e) {
|
|
3276
3276
|
return Array.isArray(e) ? e.filter(qs) : [];
|
|
3277
3277
|
}
|
|
3278
|
-
function
|
|
3278
|
+
function Gs(e) {
|
|
3279
3279
|
const t = mt(e).match(/^(?:(?:typing|typing_extensions)\.)?Literal\s*\[([\s\S]*)\]$/);
|
|
3280
|
-
return t ?
|
|
3281
|
-
re(t[1]).map(
|
|
3280
|
+
return t ? Pi(
|
|
3281
|
+
re(t[1]).map(St)
|
|
3282
3282
|
) : [];
|
|
3283
3283
|
}
|
|
3284
|
-
function
|
|
3285
|
-
const i =
|
|
3284
|
+
function Ni(e, t) {
|
|
3285
|
+
const i = Pi(t?.enum);
|
|
3286
3286
|
if (i.length > 0)
|
|
3287
3287
|
return i;
|
|
3288
|
-
const s =
|
|
3288
|
+
const s = Gs(e);
|
|
3289
3289
|
return s.length > 0 ? s : is(e);
|
|
3290
3290
|
}
|
|
3291
3291
|
function Ar(e) {
|
|
3292
3292
|
const t = mt(e), i = t.match(/^(?:(?:typing|typing_extensions)\.)?(?:list|List)\s*\[/);
|
|
3293
3293
|
if (!i) return [];
|
|
3294
3294
|
const s = i[0].length - 1;
|
|
3295
|
-
return
|
|
3295
|
+
return Ti(t, s) !== t.length - 1 ? [] : Ni(t.slice(s + 1, -1));
|
|
3296
3296
|
}
|
|
3297
3297
|
function rt(e) {
|
|
3298
|
-
const t =
|
|
3298
|
+
const t = Ni(e.type, e.kwargs);
|
|
3299
3299
|
return t.length > 0 && (e.enum = t), e;
|
|
3300
3300
|
}
|
|
3301
|
-
function
|
|
3301
|
+
function Ti(e, t) {
|
|
3302
3302
|
let i = null, s = !1, r = 0;
|
|
3303
3303
|
for (let n = t; n < e.length; n += 1) {
|
|
3304
3304
|
const o = e[n];
|
|
@@ -3323,8 +3323,8 @@ function Ni(e, t) {
|
|
|
3323
3323
|
}
|
|
3324
3324
|
return -1;
|
|
3325
3325
|
}
|
|
3326
|
-
const nt = /(\d+(?:\.\d+)?)\s*(ms|s|m|h|d)/gi,
|
|
3327
|
-
function
|
|
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
3328
|
return e !== void 0 && Ks.has(e.toLowerCase());
|
|
3329
3329
|
}
|
|
3330
3330
|
function Qs(e) {
|
|
@@ -3356,7 +3356,7 @@ function Xs(e) {
|
|
|
3356
3356
|
if (typeof e != "string")
|
|
3357
3357
|
return;
|
|
3358
3358
|
const t = e.trim().toLowerCase();
|
|
3359
|
-
if (
|
|
3359
|
+
if (Ws.has(t))
|
|
3360
3360
|
return t;
|
|
3361
3361
|
}
|
|
3362
3362
|
function Ir(e) {
|
|
@@ -3369,13 +3369,13 @@ function Ir(e) {
|
|
|
3369
3369
|
continue;
|
|
3370
3370
|
}
|
|
3371
3371
|
const h = je(x);
|
|
3372
|
-
"check" in h && (n = !!h.check), /^title\s*=/.test(x) && (o =
|
|
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
3373
|
}
|
|
3374
3374
|
r = Math.max(1, Math.min(3, r));
|
|
3375
3375
|
const p = je(t), f = Hs(p), d = Xs(p.timer);
|
|
3376
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
3377
|
}
|
|
3378
|
-
function
|
|
3378
|
+
function Oi(e, t) {
|
|
3379
3379
|
const i = e.slice(e.indexOf("=") + 1).trim();
|
|
3380
3380
|
if (!/^(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1$/.test(i))
|
|
3381
3381
|
throw new Error(`${t} title must be a quoted string`);
|
|
@@ -3386,7 +3386,7 @@ function Er(e) {
|
|
|
3386
3386
|
const t = e.trim(), i = re(t), s = i[0].trim();
|
|
3387
3387
|
let r, n;
|
|
3388
3388
|
for (let o = 1; o < i.length; o++) {
|
|
3389
|
-
/^title\s*=/.test(i[o].trim()) && (n =
|
|
3389
|
+
/^title\s*=/.test(i[o].trim()) && (n = Oi(i[o], "Checkpoint"));
|
|
3390
3390
|
const u = je(i[o]);
|
|
3391
3391
|
"checked_message" in u && (r = String(u.checked_message));
|
|
3392
3392
|
}
|
|
@@ -3398,7 +3398,7 @@ function Pr(e) {
|
|
|
3398
3398
|
if (i !== -1) {
|
|
3399
3399
|
const u = t.indexOf("[", i);
|
|
3400
3400
|
if (u !== -1) {
|
|
3401
|
-
const l =
|
|
3401
|
+
const l = Ti(t, u);
|
|
3402
3402
|
l !== -1 && (s = t.slice(u + 1, l));
|
|
3403
3403
|
}
|
|
3404
3404
|
}
|
|
@@ -3407,18 +3407,18 @@ function Pr(e) {
|
|
|
3407
3407
|
r = {};
|
|
3408
3408
|
for (const l of u)
|
|
3409
3409
|
if (/^var\s*\(/.test(l) || /^[A-Za-z_]\w*\s*[:=]/.test(l)) {
|
|
3410
|
-
const c =
|
|
3410
|
+
const c = jt(l);
|
|
3411
3411
|
r[c.id] = c;
|
|
3412
3412
|
} else
|
|
3413
3413
|
r[l] = { id: l };
|
|
3414
3414
|
}
|
|
3415
|
-
const n = re(t).filter((u) => !/^subvars\s*=/.test(u)).join(", "), o =
|
|
3415
|
+
const n = re(t).filter((u) => !/^subvars\s*=/.test(u)).join(", "), o = jt(n);
|
|
3416
3416
|
return r ? {
|
|
3417
3417
|
...o,
|
|
3418
3418
|
subvars: r
|
|
3419
3419
|
} : o;
|
|
3420
3420
|
}
|
|
3421
|
-
function
|
|
3421
|
+
function jt(e) {
|
|
3422
3422
|
let t = e.trim();
|
|
3423
3423
|
t.startsWith("var(") && t.endsWith(")") ? t = t.slice(4, -1).trim() : t.startsWith("var (") && t.endsWith(")") && (t = t.slice(5, -1).trim());
|
|
3424
3424
|
const i = re(t), s = (i[0] || "").trim(), r = i.slice(1).filter((x) => /^\w+\s*=/.test(x)), n = je(r.join(", "));
|
|
@@ -3427,7 +3427,7 @@ function Mt(e) {
|
|
|
3427
3427
|
if (x > 0) {
|
|
3428
3428
|
const b = s.slice(x + 1).trim(), w = {
|
|
3429
3429
|
id: s.slice(0, x).trim(),
|
|
3430
|
-
default:
|
|
3430
|
+
default: Ut(b),
|
|
3431
3431
|
defaultRaw: b
|
|
3432
3432
|
};
|
|
3433
3433
|
return Object.keys(n).length > 0 && (w.kwargs = n), rt(w);
|
|
@@ -3437,11 +3437,11 @@ function Mt(e) {
|
|
|
3437
3437
|
}
|
|
3438
3438
|
const o = s.indexOf(":"), u = s.slice(0, o).trim(), l = s.slice(o + 1).trim(), c = l.indexOf("=");
|
|
3439
3439
|
let p, f, d;
|
|
3440
|
-
c > 0 ? (p = l.slice(0, c).trim(), d = l.slice(c + 1).trim(), f =
|
|
3440
|
+
c > 0 ? (p = l.slice(0, c).trim(), d = l.slice(c + 1).trim(), f = Ut(d)) : p = l.trim();
|
|
3441
3441
|
const y = { id: u, type: p };
|
|
3442
3442
|
return f !== void 0 && (y.default = f, y.defaultRaw = d), Object.keys(n).length > 0 && (y.kwargs = n), rt(y);
|
|
3443
3443
|
}
|
|
3444
|
-
function
|
|
3444
|
+
function Ut(e) {
|
|
3445
3445
|
const t = e.trim();
|
|
3446
3446
|
if (t === "true" || t === "True")
|
|
3447
3447
|
return !0;
|
|
@@ -3490,13 +3490,13 @@ function Ys(e) {
|
|
|
3490
3490
|
}
|
|
3491
3491
|
return t;
|
|
3492
3492
|
}
|
|
3493
|
-
function
|
|
3493
|
+
function Vi(e) {
|
|
3494
3494
|
const t = [], i = e.kwargs, s = e.type?.toLowerCase();
|
|
3495
3495
|
if (i) {
|
|
3496
|
-
const r =
|
|
3496
|
+
const r = zs.filter(
|
|
3497
3497
|
(n) => Object.prototype.hasOwnProperty.call(i, n)
|
|
3498
3498
|
);
|
|
3499
|
-
if (r.length > 0 && !
|
|
3499
|
+
if (r.length > 0 && !Js(s)) {
|
|
3500
3500
|
const n = s ?? "untyped";
|
|
3501
3501
|
t.push(
|
|
3502
3502
|
`"${e.id}": numeric constraints (${r.join(", ")}) only apply to int/integer/float/number variables, not ${n}`
|
|
@@ -3509,23 +3509,23 @@ function Oi(e) {
|
|
|
3509
3509
|
}
|
|
3510
3510
|
if (e.subvars)
|
|
3511
3511
|
for (const r of Object.values(e.subvars))
|
|
3512
|
-
t.push(...
|
|
3512
|
+
t.push(...Vi(r));
|
|
3513
3513
|
return t;
|
|
3514
3514
|
}
|
|
3515
|
-
function
|
|
3515
|
+
function Li(e) {
|
|
3516
3516
|
const t = Ys(e);
|
|
3517
3517
|
if (e.subvars)
|
|
3518
3518
|
for (const i of Object.values(e.subvars))
|
|
3519
|
-
t.push(...
|
|
3519
|
+
t.push(...Li(i));
|
|
3520
3520
|
return t;
|
|
3521
3521
|
}
|
|
3522
3522
|
function Nr(e) {
|
|
3523
3523
|
return [
|
|
3524
|
-
...
|
|
3525
|
-
...
|
|
3524
|
+
...Li(e),
|
|
3525
|
+
...Vi(e)
|
|
3526
3526
|
];
|
|
3527
3527
|
}
|
|
3528
|
-
function
|
|
3528
|
+
function $t(e) {
|
|
3529
3529
|
const t = e.trim();
|
|
3530
3530
|
if (t.length >= 2) {
|
|
3531
3531
|
const i = t[0];
|
|
@@ -3548,13 +3548,13 @@ function Zs(e) {
|
|
|
3548
3548
|
continue;
|
|
3549
3549
|
const l = u.match(/^(\w+):\s*(.*)$/);
|
|
3550
3550
|
if (l) {
|
|
3551
|
-
s && (i[s] =
|
|
3551
|
+
s && (i[s] = $t(r)), s = l[1];
|
|
3552
3552
|
const c = l[2];
|
|
3553
3553
|
c === "|" ? (n = !0, r = "") : (n = !1, r = c);
|
|
3554
3554
|
} else s && (n || u) && (r ? r += `
|
|
3555
3555
|
${o}` : r = o);
|
|
3556
3556
|
}
|
|
3557
|
-
return s && (i[s] =
|
|
3557
|
+
return s && (i[s] = $t(r)), i;
|
|
3558
3558
|
}
|
|
3559
3559
|
function Tr(e) {
|
|
3560
3560
|
const t = [], i = /* @__PURE__ */ new Set();
|
|
@@ -3565,14 +3565,14 @@ function Tr(e) {
|
|
|
3565
3565
|
return t;
|
|
3566
3566
|
}
|
|
3567
3567
|
const er = ["video", "audio", "file"];
|
|
3568
|
-
function
|
|
3568
|
+
function Ri(e) {
|
|
3569
3569
|
return (e || "file").trim().toLowerCase() || "file";
|
|
3570
3570
|
}
|
|
3571
3571
|
function tr(e) {
|
|
3572
|
-
return er.includes(
|
|
3572
|
+
return er.includes(Ri(e));
|
|
3573
3573
|
}
|
|
3574
3574
|
function Or(e) {
|
|
3575
|
-
const t =
|
|
3575
|
+
const t = Ri(e.kind);
|
|
3576
3576
|
return tr(t) ? [] : [
|
|
3577
3577
|
`media "${e.id}": unsupported kind "${e.kind}". Supported media kinds are video, audio, and file; static images must use a fig block.`
|
|
3578
3578
|
];
|
|
@@ -3590,7 +3590,7 @@ function Vr(e) {
|
|
|
3590
3590
|
}
|
|
3591
3591
|
new TextEncoder();
|
|
3592
3592
|
new TextDecoder();
|
|
3593
|
-
const wt = /* @__PURE__ */ Symbol.for("yaml.alias"), ir = /* @__PURE__ */ Symbol.for("yaml.document"), le = /* @__PURE__ */ Symbol.for("yaml.map"),
|
|
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;
|
|
3594
3594
|
function M(e) {
|
|
3595
3595
|
if (e && typeof e == "object")
|
|
3596
3596
|
switch (e[X]) {
|
|
@@ -3611,14 +3611,14 @@ function R(e) {
|
|
|
3611
3611
|
}
|
|
3612
3612
|
return !1;
|
|
3613
3613
|
}
|
|
3614
|
-
const
|
|
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
3615
|
function Xe(e, t) {
|
|
3616
3616
|
const i = rr(t);
|
|
3617
|
-
He(e) ? pe(null, e.contents, i, Object.freeze([e])) ===
|
|
3617
|
+
He(e) ? pe(null, e.contents, i, Object.freeze([e])) === Se && (e.contents = null) : pe(null, e, i, Object.freeze([]));
|
|
3618
3618
|
}
|
|
3619
3619
|
Xe.BREAK = oe;
|
|
3620
3620
|
Xe.SKIP = sr;
|
|
3621
|
-
Xe.REMOVE =
|
|
3621
|
+
Xe.REMOVE = Se;
|
|
3622
3622
|
function pe(e, t, i, s) {
|
|
3623
3623
|
const r = nr(e, t, i, s);
|
|
3624
3624
|
if (R(r) || V(r))
|
|
@@ -3633,7 +3633,7 @@ function pe(e, t, i, s) {
|
|
|
3633
3633
|
else {
|
|
3634
3634
|
if (o === oe)
|
|
3635
3635
|
return oe;
|
|
3636
|
-
o ===
|
|
3636
|
+
o === Se && (t.items.splice(n, 1), n -= 1);
|
|
3637
3637
|
}
|
|
3638
3638
|
}
|
|
3639
3639
|
} else if (V(t)) {
|
|
@@ -3641,11 +3641,11 @@ function pe(e, t, i, s) {
|
|
|
3641
3641
|
const n = pe("key", t.key, i, s);
|
|
3642
3642
|
if (n === oe)
|
|
3643
3643
|
return oe;
|
|
3644
|
-
n ===
|
|
3644
|
+
n === Se && (t.key = null);
|
|
3645
3645
|
const o = pe("value", t.value, i, s);
|
|
3646
3646
|
if (o === oe)
|
|
3647
3647
|
return oe;
|
|
3648
|
-
o ===
|
|
3648
|
+
o === Se && (t.value = null);
|
|
3649
3649
|
}
|
|
3650
3650
|
}
|
|
3651
3651
|
return r;
|
|
@@ -3668,7 +3668,7 @@ function rr(e) {
|
|
|
3668
3668
|
function nr(e, t, i, s) {
|
|
3669
3669
|
if (typeof i == "function")
|
|
3670
3670
|
return i(e, t, s);
|
|
3671
|
-
if (
|
|
3671
|
+
if (Di(t))
|
|
3672
3672
|
return i.Map?.(e, t, s);
|
|
3673
3673
|
if (At(t))
|
|
3674
3674
|
return i.Seq?.(e, t, s);
|
|
@@ -3692,7 +3692,7 @@ function ar(e, t, i) {
|
|
|
3692
3692
|
throw new Error(`Cannot replace node with ${r} parent`);
|
|
3693
3693
|
}
|
|
3694
3694
|
}
|
|
3695
|
-
function
|
|
3695
|
+
function Mi(e) {
|
|
3696
3696
|
if (/[\x00-\x19\s,[\]{}]/.test(e)) {
|
|
3697
3697
|
const i = `Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;
|
|
3698
3698
|
throw new Error(i);
|
|
@@ -3727,7 +3727,7 @@ function K(e, t, i) {
|
|
|
3727
3727
|
if (Array.isArray(e))
|
|
3728
3728
|
return e.map((s, r) => K(s, String(r), i));
|
|
3729
3729
|
if (e && typeof e.toJSON == "function") {
|
|
3730
|
-
if (!i || !
|
|
3730
|
+
if (!i || !Bi(e))
|
|
3731
3731
|
return e.toJSON(t, i);
|
|
3732
3732
|
const s = { aliasCount: 0, count: 1, res: void 0 };
|
|
3733
3733
|
i.anchors.set(e, s), i.onCreate = (n) => {
|
|
@@ -3781,7 +3781,7 @@ class or extends It {
|
|
|
3781
3781
|
let s;
|
|
3782
3782
|
i?.aliasResolveCache ? s = i.aliasResolveCache : (s = [], Xe(t, {
|
|
3783
3783
|
Node: (n, o) => {
|
|
3784
|
-
(he(o) ||
|
|
3784
|
+
(he(o) || Bi(o)) && s.push(o);
|
|
3785
3785
|
}
|
|
3786
3786
|
}), i && (i.aliasResolveCache = s));
|
|
3787
3787
|
let r;
|
|
@@ -3814,7 +3814,7 @@ class or extends It {
|
|
|
3814
3814
|
toString(t, i, s) {
|
|
3815
3815
|
const r = `*${this.source}`;
|
|
3816
3816
|
if (t) {
|
|
3817
|
-
if (
|
|
3817
|
+
if (Mi(this.source), t.options.verifyAliasOrder && !t.anchors.has(this.source)) {
|
|
3818
3818
|
const n = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
|
|
3819
3819
|
throw new Error(n);
|
|
3820
3820
|
}
|
|
@@ -3841,7 +3841,7 @@ function Ve(e, t, i) {
|
|
|
3841
3841
|
}
|
|
3842
3842
|
return 1;
|
|
3843
3843
|
}
|
|
3844
|
-
const
|
|
3844
|
+
const ji = (e) => !e || typeof e != "function" && typeof e != "object";
|
|
3845
3845
|
class P extends It {
|
|
3846
3846
|
constructor(t) {
|
|
3847
3847
|
super(Ct), this.value = t;
|
|
@@ -3888,7 +3888,7 @@ function Ue(e, t, i) {
|
|
|
3888
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
3889
|
return c.default || (p.tag = c.tag), l && (l.node = p), p;
|
|
3890
3890
|
}
|
|
3891
|
-
function
|
|
3891
|
+
function qt(e, t, i) {
|
|
3892
3892
|
let s = i;
|
|
3893
3893
|
for (let r = t.length - 1; r >= 0; --r) {
|
|
3894
3894
|
const n = t[r];
|
|
@@ -3909,7 +3909,7 @@ function $t(e, t, i) {
|
|
|
3909
3909
|
});
|
|
3910
3910
|
}
|
|
3911
3911
|
const lr = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next().done;
|
|
3912
|
-
class
|
|
3912
|
+
class Ui extends It {
|
|
3913
3913
|
constructor(t, i) {
|
|
3914
3914
|
super(t), Object.defineProperty(this, "schema", {
|
|
3915
3915
|
value: i,
|
|
@@ -3940,7 +3940,7 @@ class ji extends It {
|
|
|
3940
3940
|
if (M(n))
|
|
3941
3941
|
n.addIn(r, i);
|
|
3942
3942
|
else if (n === void 0 && this.schema)
|
|
3943
|
-
this.set(s,
|
|
3943
|
+
this.set(s, qt(this.schema, r, i));
|
|
3944
3944
|
else
|
|
3945
3945
|
throw new Error(`Expected YAML collection at ${s}. Remaining path: ${r}`);
|
|
3946
3946
|
}
|
|
@@ -3998,7 +3998,7 @@ class ji extends It {
|
|
|
3998
3998
|
if (M(n))
|
|
3999
3999
|
n.setIn(r, i);
|
|
4000
4000
|
else if (n === void 0 && this.schema)
|
|
4001
|
-
this.set(s,
|
|
4001
|
+
this.set(s, qt(this.schema, r, i));
|
|
4002
4002
|
else
|
|
4003
4003
|
throw new Error(`Expected YAML collection at ${s}. Remaining path: ${r}`);
|
|
4004
4004
|
}
|
|
@@ -4011,7 +4011,7 @@ function Ie(e, t) {
|
|
|
4011
4011
|
const de = (e, t, i) => e.endsWith(`
|
|
4012
4012
|
`) ? Ie(i, t) : i.includes(`
|
|
4013
4013
|
`) ? `
|
|
4014
|
-
` + Ie(i, t) : (e.endsWith(" ") ? "" : " ") + i,
|
|
4014
|
+
` + Ie(i, t) : (e.endsWith(" ") ? "" : " ") + i, $i = "flow", ft = "block", Le = "quoted";
|
|
4015
4015
|
function Ye(e, t, i = "flow", { indentAtStart: s, lineWidth: r = 80, minContentWidth: n = 20, onFold: o, onOverflow: u } = {}) {
|
|
4016
4016
|
if (!r || r < 0)
|
|
4017
4017
|
return e;
|
|
@@ -4023,7 +4023,7 @@ function Ye(e, t, i = "flow", { indentAtStart: s, lineWidth: r = 80, minContentW
|
|
|
4023
4023
|
let f = r - t.length;
|
|
4024
4024
|
typeof s == "number" && (s > r - Math.max(2, n) ? c.push(0) : f = r - s);
|
|
4025
4025
|
let d, y, x = !1, h = -1, b = -1, w = -1;
|
|
4026
|
-
i === ft && (h =
|
|
4026
|
+
i === ft && (h = Gt(e, h, t.length), h !== -1 && (f = h + l));
|
|
4027
4027
|
for (let A; A = e[h += 1]; ) {
|
|
4028
4028
|
if (i === Le && A === "\\") {
|
|
4029
4029
|
switch (b = h, e[h + 1]) {
|
|
@@ -4043,7 +4043,7 @@ function Ye(e, t, i = "flow", { indentAtStart: s, lineWidth: r = 80, minContentW
|
|
|
4043
4043
|
}
|
|
4044
4044
|
if (A === `
|
|
4045
4045
|
`)
|
|
4046
|
-
i === ft && (h =
|
|
4046
|
+
i === ft && (h = Gt(e, h, t.length)), f = h + t.length + l, d = void 0;
|
|
4047
4047
|
else {
|
|
4048
4048
|
if (A === " " && y && y !== " " && y !== `
|
|
4049
4049
|
` && y !== " ") {
|
|
@@ -4078,7 +4078,7 @@ ${t}${e.slice(E + 1, N)}`);
|
|
|
4078
4078
|
}
|
|
4079
4079
|
return C;
|
|
4080
4080
|
}
|
|
4081
|
-
function
|
|
4081
|
+
function Gt(e, t, i) {
|
|
4082
4082
|
let s = t, r = t + 1, n = e[r];
|
|
4083
4083
|
for (; n === " " || n === " "; )
|
|
4084
4084
|
if (t < r + i)
|
|
@@ -4180,7 +4180,7 @@ function pt(e, t) {
|
|
|
4180
4180
|
return we(e, t);
|
|
4181
4181
|
const i = t.indent || (et(e) ? " " : ""), s = "'" + e.replace(/'/g, "''").replace(/\n+/g, `$&
|
|
4182
4182
|
${i}`) + "'";
|
|
4183
|
-
return t.implicitKey ? s : Ye(s, i,
|
|
4183
|
+
return t.implicitKey ? s : Ye(s, i, $i, Ze(t, !1));
|
|
4184
4184
|
}
|
|
4185
4185
|
function me(e, t) {
|
|
4186
4186
|
const { singleQuote: i } = t.options;
|
|
@@ -4240,13 +4240,13 @@ function Re({ comment: e, type: t, value: i }, s, r, n) {
|
|
|
4240
4240
|
if (e && (E += " " + u(e.replace(/ ?[\r\n]+/g, " ")), r && r()), !p) {
|
|
4241
4241
|
const N = i.replace(/\n+/g, `
|
|
4242
4242
|
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${c}`);
|
|
4243
|
-
let
|
|
4244
|
-
const
|
|
4245
|
-
o !== "folded" && t !== P.BLOCK_FOLDED && (
|
|
4246
|
-
|
|
4243
|
+
let G = !1;
|
|
4244
|
+
const z = Ze(s, !0);
|
|
4245
|
+
o !== "folded" && t !== P.BLOCK_FOLDED && (z.onOverflow = () => {
|
|
4246
|
+
G = !0;
|
|
4247
4247
|
});
|
|
4248
|
-
const ve = Ye(`${C}${N}${y}`, c, ft,
|
|
4249
|
-
if (!
|
|
4248
|
+
const ve = Ye(`${C}${N}${y}`, c, ft, z);
|
|
4249
|
+
if (!G)
|
|
4250
4250
|
return `>${E}
|
|
4251
4251
|
${c}${ve}`;
|
|
4252
4252
|
}
|
|
@@ -4277,7 +4277,7 @@ ${l}`);
|
|
|
4277
4277
|
if (x.some(d) || y?.some(d))
|
|
4278
4278
|
return me(n, t);
|
|
4279
4279
|
}
|
|
4280
|
-
return u ? f : Ye(f, l,
|
|
4280
|
+
return u ? f : Ye(f, l, $i, Ze(t, !1));
|
|
4281
4281
|
}
|
|
4282
4282
|
function pr(e, t, i, s) {
|
|
4283
4283
|
const { implicitKey: r, inFlow: n } = t, o = typeof e.value == "string" ? e : Object.assign({}, e, { value: String(e.value) });
|
|
@@ -4374,7 +4374,7 @@ function gr(e, t, { anchors: i, doc: s }) {
|
|
|
4374
4374
|
if (!s.directives)
|
|
4375
4375
|
return "";
|
|
4376
4376
|
const r = [], n = (T(e) || M(e)) && e.anchor;
|
|
4377
|
-
n &&
|
|
4377
|
+
n && Mi(n) && (i.add(n), r.push(`&${n}`));
|
|
4378
4378
|
const o = e.tag ?? (t.default ? null : t.tag);
|
|
4379
4379
|
return o && r.push(s.directives.tagString(o)), r.join(" ");
|
|
4380
4380
|
}
|
|
@@ -4404,8 +4404,8 @@ function yr({ key: e, value: t }, i, s, r) {
|
|
|
4404
4404
|
if (d)
|
|
4405
4405
|
throw new Error("With simple keys, key nodes cannot have comments");
|
|
4406
4406
|
if (M(e) || !R(e) && typeof e == "object") {
|
|
4407
|
-
const
|
|
4408
|
-
throw new Error(
|
|
4407
|
+
const z = "With simple keys, collection cannot be used as a key value";
|
|
4408
|
+
throw new Error(z);
|
|
4409
4409
|
}
|
|
4410
4410
|
}
|
|
4411
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"));
|
|
@@ -4431,34 +4431,34 @@ ${u}:`) : (b = `${b}:`, d && (b += de(b, i.indent, c(d))));
|
|
|
4431
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));
|
|
4432
4432
|
let E = !1;
|
|
4433
4433
|
const N = $e(t, i, () => E = !0, () => h = !0);
|
|
4434
|
-
let
|
|
4434
|
+
let G = " ";
|
|
4435
4435
|
if (d || w || C) {
|
|
4436
|
-
if (
|
|
4436
|
+
if (G = w ? `
|
|
4437
4437
|
` : "", C) {
|
|
4438
|
-
const
|
|
4439
|
-
|
|
4440
|
-
${Ie(
|
|
4438
|
+
const z = c(C);
|
|
4439
|
+
G += `
|
|
4440
|
+
${Ie(z, i.indent)}`;
|
|
4441
4441
|
}
|
|
4442
|
-
N === "" && !i.inFlow ?
|
|
4443
|
-
` && A && (
|
|
4442
|
+
N === "" && !i.inFlow ? G === `
|
|
4443
|
+
` && A && (G = `
|
|
4444
4444
|
|
|
4445
|
-
`) :
|
|
4445
|
+
`) : G += `
|
|
4446
4446
|
${i.indent}`;
|
|
4447
4447
|
} else if (!y && M(t)) {
|
|
4448
|
-
const
|
|
4449
|
-
`), Tt = ve !== -1,
|
|
4450
|
-
if (Tt || !
|
|
4448
|
+
const z = N[0], ve = N.indexOf(`
|
|
4449
|
+
`), Tt = ve !== -1, zi = i.inFlow ?? t.flow ?? t.items.length === 0;
|
|
4450
|
+
if (Tt || !zi) {
|
|
4451
4451
|
let Ot = !1;
|
|
4452
|
-
if (Tt && (
|
|
4452
|
+
if (Tt && (z === "&" || z === "!")) {
|
|
4453
4453
|
let ae = N.indexOf(" ");
|
|
4454
|
-
|
|
4454
|
+
z === "&" && ae !== -1 && ae < ve && N[ae + 1] === "!" && (ae = N.indexOf(" ", ae + 1)), (ae === -1 || ve < ae) && (Ot = !0);
|
|
4455
4455
|
}
|
|
4456
|
-
Ot || (
|
|
4456
|
+
Ot || (G = `
|
|
4457
4457
|
${i.indent}`);
|
|
4458
4458
|
}
|
|
4459
4459
|
} else (N === "" || N[0] === `
|
|
4460
|
-
`) && (
|
|
4461
|
-
return b +=
|
|
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;
|
|
4462
4462
|
}
|
|
4463
4463
|
function br(e, t) {
|
|
4464
4464
|
(e === "debug" || e === "warn") && console.warn(t);
|
|
@@ -4469,11 +4469,11 @@ const Te = "<<", at = {
|
|
|
4469
4469
|
tag: "tag:yaml.org,2002:merge",
|
|
4470
4470
|
test: /^<<$/,
|
|
4471
4471
|
resolve: () => Object.assign(new P(Symbol(Te)), {
|
|
4472
|
-
addToJSMap:
|
|
4472
|
+
addToJSMap: qi
|
|
4473
4473
|
}),
|
|
4474
4474
|
stringify: () => Te
|
|
4475
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
|
|
4476
|
+
function qi(e, t, i) {
|
|
4477
4477
|
if (i = e && he(i) ? i.resolve(e.doc) : i, At(i))
|
|
4478
4478
|
for (const s of i.items)
|
|
4479
4479
|
ot(e, t, s);
|
|
@@ -4485,7 +4485,7 @@ function $i(e, t, i) {
|
|
|
4485
4485
|
}
|
|
4486
4486
|
function ot(e, t, i) {
|
|
4487
4487
|
const s = e && he(i) ? i.resolve(e.doc) : i;
|
|
4488
|
-
if (!
|
|
4488
|
+
if (!Di(s))
|
|
4489
4489
|
throw new Error("Merge sources must be maps or map aliases");
|
|
4490
4490
|
const r = s.toJSON(null, e, Map);
|
|
4491
4491
|
for (const [n, o] of r)
|
|
@@ -4497,11 +4497,11 @@ function ot(e, t, i) {
|
|
|
4497
4497
|
});
|
|
4498
4498
|
return t;
|
|
4499
4499
|
}
|
|
4500
|
-
function
|
|
4500
|
+
function Gi(e, t, { key: i, value: s }) {
|
|
4501
4501
|
if (R(i) && i.addToJSMap)
|
|
4502
4502
|
i.addToJSMap(e, t, s);
|
|
4503
4503
|
else if (xr(e, i))
|
|
4504
|
-
|
|
4504
|
+
qi(e, t, s);
|
|
4505
4505
|
else {
|
|
4506
4506
|
const r = K(i, "", e);
|
|
4507
4507
|
if (t instanceof Map)
|
|
@@ -4546,7 +4546,7 @@ function Et(e, t, i) {
|
|
|
4546
4546
|
}
|
|
4547
4547
|
class Y {
|
|
4548
4548
|
constructor(t, i = null) {
|
|
4549
|
-
Object.defineProperty(this, X, { value:
|
|
4549
|
+
Object.defineProperty(this, X, { value: Fi }), this.key = t, this.value = i;
|
|
4550
4550
|
}
|
|
4551
4551
|
clone(t) {
|
|
4552
4552
|
let { key: i, value: s } = this;
|
|
@@ -4554,14 +4554,14 @@ class Y {
|
|
|
4554
4554
|
}
|
|
4555
4555
|
toJSON(t, i) {
|
|
4556
4556
|
const s = i?.mapAsMap ? /* @__PURE__ */ new Map() : {};
|
|
4557
|
-
return
|
|
4557
|
+
return Gi(i, s, this);
|
|
4558
4558
|
}
|
|
4559
4559
|
toString(t, i, s) {
|
|
4560
4560
|
return t?.doc ? yr(this, t, i, s) : JSON.stringify(this);
|
|
4561
4561
|
}
|
|
4562
4562
|
}
|
|
4563
4563
|
function Wi(e, t, i) {
|
|
4564
|
-
return (t.inFlow ?? e.flow ?
|
|
4564
|
+
return (t.inFlow ?? e.flow ? kr : _r)(e, t, i);
|
|
4565
4565
|
}
|
|
4566
4566
|
function _r({ comment: e, items: t }, i, { blockItemPrefix: s, flowChars: r, itemIndent: n, onChompKeep: o, onComment: u }) {
|
|
4567
4567
|
const { indent: l, options: { commentString: c } } = i, p = Object.assign({}, i, { indent: n, type: null });
|
|
@@ -4595,7 +4595,7 @@ ${l}${h}` : `
|
|
|
4595
4595
|
return e ? (y += `
|
|
4596
4596
|
` + Ie(c(e), l), u && u()) : f && o && o(), y;
|
|
4597
4597
|
}
|
|
4598
|
-
function
|
|
4598
|
+
function kr({ items: e }, t, { flowChars: i, itemIndent: s }) {
|
|
4599
4599
|
const { indent: r, indentStep: n, flowCollectionPadding: o, options: { commentString: u } } = t;
|
|
4600
4600
|
s += n;
|
|
4601
4601
|
const l = Object.assign({}, t, {
|
|
@@ -4651,7 +4651,7 @@ function ue(e, t) {
|
|
|
4651
4651
|
if (V(s) && (s.key === t || s.key === i || T(s.key) && s.key.value === i))
|
|
4652
4652
|
return s;
|
|
4653
4653
|
}
|
|
4654
|
-
class fe extends
|
|
4654
|
+
class fe extends Ui {
|
|
4655
4655
|
static get tagName() {
|
|
4656
4656
|
return "tag:yaml.org,2002:map";
|
|
4657
4657
|
}
|
|
@@ -4691,7 +4691,7 @@ class fe extends ji {
|
|
|
4691
4691
|
if (r) {
|
|
4692
4692
|
if (!i)
|
|
4693
4693
|
throw new Error(`Key ${s.key} already set`);
|
|
4694
|
-
T(r.value) &&
|
|
4694
|
+
T(r.value) && ji(s.value) ? r.value.value = s.value : r.value = s.value;
|
|
4695
4695
|
} else if (n) {
|
|
4696
4696
|
const o = this.items.findIndex((u) => n(s, u) < 0);
|
|
4697
4697
|
o === -1 ? this.items.push(s) : this.items.splice(o, 0, s);
|
|
@@ -4721,7 +4721,7 @@ class fe extends ji {
|
|
|
4721
4721
|
const r = s ? new s() : i?.mapAsMap ? /* @__PURE__ */ new Map() : {};
|
|
4722
4722
|
i?.onCreate && i.onCreate(r);
|
|
4723
4723
|
for (const n of this.items)
|
|
4724
|
-
|
|
4724
|
+
Gi(i, r, n);
|
|
4725
4725
|
return r;
|
|
4726
4726
|
}
|
|
4727
4727
|
toString(t, i, s) {
|
|
@@ -4739,7 +4739,7 @@ class fe extends ji {
|
|
|
4739
4739
|
});
|
|
4740
4740
|
}
|
|
4741
4741
|
}
|
|
4742
|
-
class
|
|
4742
|
+
class Ki extends Ui {
|
|
4743
4743
|
static get tagName() {
|
|
4744
4744
|
return "tag:yaml.org,2002:seq";
|
|
4745
4745
|
}
|
|
@@ -4790,7 +4790,7 @@ class Gi extends ji {
|
|
|
4790
4790
|
if (typeof s != "number")
|
|
4791
4791
|
throw new Error(`Expected a valid index, not ${t}.`);
|
|
4792
4792
|
const r = this.items[s];
|
|
4793
|
-
T(r) &&
|
|
4793
|
+
T(r) && ji(i) ? r.value = i : this.items[s] = i;
|
|
4794
4794
|
}
|
|
4795
4795
|
toJSON(t, i) {
|
|
4796
4796
|
const s = [];
|
|
@@ -4828,8 +4828,8 @@ function Oe(e) {
|
|
|
4828
4828
|
let t = T(e) ? e.value : e;
|
|
4829
4829
|
return t && typeof t == "string" && (t = Number(t)), typeof t == "number" && Number.isInteger(t) && t >= 0 ? t : null;
|
|
4830
4830
|
}
|
|
4831
|
-
function
|
|
4832
|
-
const { replacer: s } = i, r = new
|
|
4831
|
+
function Sr(e, t, i) {
|
|
4832
|
+
const { replacer: s } = i, r = new Ki(e);
|
|
4833
4833
|
r.tag = "tag:yaml.org,2002:pairs";
|
|
4834
4834
|
let n = 0;
|
|
4835
4835
|
if (t && Symbol.iterator in Object(t))
|
|
@@ -4853,7 +4853,7 @@ function kr(e, t, i) {
|
|
|
4853
4853
|
}
|
|
4854
4854
|
return r;
|
|
4855
4855
|
}
|
|
4856
|
-
class Pt extends
|
|
4856
|
+
class Pt extends Ki {
|
|
4857
4857
|
constructor() {
|
|
4858
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;
|
|
4859
4859
|
}
|
|
@@ -4875,7 +4875,7 @@ class Pt extends Gi {
|
|
|
4875
4875
|
return s;
|
|
4876
4876
|
}
|
|
4877
4877
|
static from(t, i, s) {
|
|
4878
|
-
const r =
|
|
4878
|
+
const r = Sr(t, i, s), n = new this();
|
|
4879
4879
|
return n.items = r.items, n;
|
|
4880
4880
|
}
|
|
4881
4881
|
}
|