@airalogy/aimd-recorder 1.24.4 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -1
- package/README.zh-CN.md +13 -1
- package/dist/{AimdDnaSequenceField-Opgy07Gt.js → AimdDnaSequenceField-BHV1_c2o.js} +1 -1
- package/dist/{AimdEditor.vue_vue_type_style_index_0_lang-DHckC0bq.js → AimdEditor.vue_vue_type_style_index_0_lang-phvUVTHV.js} +643 -605
- package/dist/AimdEntityRefField-COzwbHwr.js +4 -0
- package/dist/{AimdEntityRefField-GA6-mhGU.js → AimdEntityRefField.vue_vue_type_script_setup_true_lang-BIvUuZFV.js} +2 -2
- package/dist/{AimdMarkdownField-jagZIbKc.js → AimdMarkdownField-t8hqazDv.js} +3 -3
- package/dist/{AimdMarkdownNoteField-BUq4fRcZ.js → AimdMarkdownNoteField-BGjkSXEY.js} +2 -2
- package/dist/AimdResourceRefField-BBaRSLcL.js +264 -0
- package/dist/aimd-recorder.css +1 -1
- package/dist/{arc-CR1cpc2k.js → arc-CsBMJYPv.js} +1 -1
- package/dist/{architectureDiagram-3BPJPVTR-B8OoiHF6.js → architectureDiagram-3BPJPVTR-BeKUSqHO.js} +2 -2
- package/dist/{blockDiagram-GPEHLZMM-Ddq40SrW.js → blockDiagram-GPEHLZMM-CJeAC_1p.js} +4 -4
- package/dist/{c4Diagram-AAUBKEIU-Cf3cjJMq.js → c4Diagram-AAUBKEIU-LoQMp4kW.js} +2 -2
- package/dist/{channel-C8Vd7nOK.js → channel-BoLQO6Dk.js} +1 -1
- package/dist/{chunk-2J33WTMH-Ck31ftjD.js → chunk-2J33WTMH-D1vw38h5.js} +1 -1
- package/dist/{chunk-4BX2VUAB-BJOkbq4i.js → chunk-4BX2VUAB-BFSVnsyi.js} +1 -1
- package/dist/{chunk-55IACEB6-lNZxrJyO.js → chunk-55IACEB6-D13UaCP1.js} +1 -1
- package/dist/{chunk-727SXJPM-mEDRtdd4.js → chunk-727SXJPM-BCcz4POX.js} +5 -5
- package/dist/{chunk-AQP2D5EJ-C1MU-m_K.js → chunk-AQP2D5EJ-DTOfpg2m.js} +3 -3
- package/dist/{chunk-FMBD7UC4-Pmfg_1nq.js → chunk-FMBD7UC4-XGRN-sFg.js} +1 -1
- package/dist/{chunk-ND2GUHAM-CipPchY0.js → chunk-ND2GUHAM-DSgp1I9F.js} +1 -1
- package/dist/{chunk-QZHKN3VN-BvE9EC7r.js → chunk-QZHKN3VN-DQl3-kKo.js} +1 -1
- package/dist/{classDiagram-v2-Q7XG4LA2-BM5OaktU.js → classDiagram-4FO5ZUOK-CI-4bhme.js} +2 -2
- package/dist/{classDiagram-4FO5ZUOK-BM5OaktU.js → classDiagram-v2-Q7XG4LA2-CI-4bhme.js} +2 -2
- package/dist/components.js +2222 -2110
- package/dist/composables.js +2 -2
- package/dist/{cose-bilkent-S5V4N54A-nmO7LFhz.js → cose-bilkent-S5V4N54A-CU1K-fx3.js} +1 -1
- package/dist/{dagre-BM42HDAG-D3xhjRxX.js → dagre-BM42HDAG-HIHsvvPF.js} +3 -3
- package/dist/{diagram-2AECGRRQ-kCJcuZOT.js → diagram-2AECGRRQ-XlYRVMia.js} +2 -2
- package/dist/{diagram-5GNKFQAL-Bdr1oGkv.js → diagram-5GNKFQAL-BeA9dVE2.js} +3 -3
- package/dist/{diagram-KO2AKTUF-CeBpcrbw.js → diagram-KO2AKTUF-D501LuyG.js} +2 -2
- package/dist/{diagram-LMA3HP47-C5oYYzCp.js → diagram-LMA3HP47-ClkmdOf_.js} +2 -2
- package/dist/{diagram-OG6HWLK6-CNzZuxZL.js → diagram-OG6HWLK6-30O5epks.js} +3 -3
- package/dist/{erDiagram-TEJ5UH35-MWNh4yWB.js → erDiagram-TEJ5UH35-Dk5azNFu.js} +4 -4
- package/dist/{flowDiagram-I6XJVG4X-DcREbXha.js → flowDiagram-I6XJVG4X-C4K9bB2d.js} +6 -6
- package/dist/{ganttDiagram-6RSMTGT7-DGZUsfa4.js → ganttDiagram-6RSMTGT7-sFuSkRH3.js} +2 -2
- package/dist/{gitGraphDiagram-PVQCEYII-DhpcTOAS.js → gitGraphDiagram-PVQCEYII-CC4Kf_0S.js} +3 -3
- package/dist/{graph-CXU7Rv38.js → graph-BBr12s4M.js} +1 -1
- package/dist/index.js +124 -122
- package/dist/{infoDiagram-5YYISTIA-CVZBlZ8R.js → infoDiagram-5YYISTIA-PObcwLKW.js} +1 -1
- package/dist/{ishikawaDiagram-YF4QCWOH-Bjyc47Lv.js → ishikawaDiagram-YF4QCWOH-B93dpm60.js} +1 -1
- package/dist/{journeyDiagram-JHISSGLW-e2G_PVGF.js → journeyDiagram-JHISSGLW-Z0_jIQ5z.js} +4 -4
- package/dist/{kanban-definition-UN3LZRKU-CKOBjcK9.js → kanban-definition-UN3LZRKU-BicW7pfZ.js} +2 -2
- package/dist/{layout-CBS27QDo.js → layout-jm5q2dTB.js} +2 -2
- package/dist/{linear-UyXZcrYY.js → linear-Bv4EbUf4.js} +1 -1
- package/dist/{mermaid.core-BeKK51C9.js → mermaid.core-BN0BM26i.js} +34 -34
- package/dist/{mindmap-definition-RKZ34NQL-T6_bnhal.js → mindmap-definition-RKZ34NQL-Ba85mo62.js} +3 -3
- package/dist/{pieDiagram-4H26LBE5-GGANuPvf.js → pieDiagram-4H26LBE5-CfU3ahlI.js} +3 -3
- package/dist/{quadrantDiagram-W4KKPZXB-BAtVKEgW.js → quadrantDiagram-W4KKPZXB-BPTjR1PA.js} +2 -2
- package/dist/record.js +2 -2
- package/dist/{requirementDiagram-4Y6WPE33-C2oozBsJ.js → requirementDiagram-4Y6WPE33-DVfyUAUL.js} +3 -3
- package/dist/{sankeyDiagram-5OEKKPKP-Bfc4Y-JM.js → sankeyDiagram-5OEKKPKP-B_9c0VJt.js} +1 -1
- package/dist/{sequenceDiagram-3UESZ5HK-e9yMBU3K.js → sequenceDiagram-3UESZ5HK-BFSDCMig.js} +3 -3
- package/dist/{stateDiagram-AJRCARHV-D1vciiPs.js → stateDiagram-AJRCARHV-DNCya3UT.js} +4 -4
- package/dist/{stateDiagram-v2-BHNVJYJU-DMXm3rUm.js → stateDiagram-v2-BHNVJYJU-BlmsFnk2.js} +2 -2
- package/dist/{timeline-definition-PNZ67QCA-Cg7TL_0Q.js → timeline-definition-PNZ67QCA-B297WQKg.js} +2 -2
- package/dist/{useFieldRendering-JFnqNEWH.js → useFieldRendering-DQN_MbSg.js} +1 -1
- package/dist/{useVarHelpers-CQQ-zhL0.js → useVarHelpers-D00Za8e6.js} +978 -932
- package/dist/validation-Dn_j1py1.js +5712 -0
- package/dist/{vennDiagram-CIIHVFJN-BEJdgPK5.js → vennDiagram-CIIHVFJN-gDmDgx6K.js} +1 -1
- package/dist/{wardleyDiagram-YWT4CUSO-DLxpx6Lm.js → wardleyDiagram-YWT4CUSO-ek5B-FUl.js} +2 -2
- package/dist/{xychartDiagram-2RQKCTM6-CG-K6knD.js → xychartDiagram-2RQKCTM6-DRtlxacH.js} +2 -2
- package/package.json +4 -4
- package/src/__tests__/record-validation.test.ts +121 -0
- package/src/__tests__/required-marker.test.ts +14 -0
- package/src/__tests__/resource-form.test.ts +20 -0
- package/src/__tests__/resource-ref-field.test.ts +125 -0
- package/src/__tests__/var-field-render.test.ts +87 -1
- package/src/components/AimdRecorder.vue +11 -1
- package/src/components/AimdRecorderEditor.vue +5 -0
- package/src/components/AimdRecorderWysiwygFieldHost.vue +1 -0
- package/src/components/AimdRecorderWysiwygSurface.vue +5 -0
- package/src/components/AimdResourceForm.vue +129 -0
- package/src/components/AimdResourceRefField.vue +393 -0
- package/src/components/AimdVarField.vue +41 -3
- package/src/components/index.ts +4 -0
- package/src/components/recorderMilkdownPlugin.ts +2 -0
- package/src/composables/__tests__/useVarHelpers.test.ts +96 -0
- package/src/composables/useVarHelpers.ts +91 -4
- package/src/index.ts +12 -1
- package/src/locales.ts +57 -0
- package/src/record/validation.ts +145 -11
- package/src/styles/recorder.css +8 -0
- package/src/types.ts +30 -1
- package/dist/validation-DSn_Ttx_.js +0 -5629
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
const mn = /* @__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."},"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"}}'), gn = {
|
|
3
|
-
types:
|
|
4
|
-
},
|
|
5
|
-
Object.values(
|
|
1
|
+
import { defineAsyncComponent as Mt, h as gt } from "vue";
|
|
2
|
+
const hn = /* @__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"}}'), bn = {
|
|
3
|
+
types: hn
|
|
4
|
+
}, _n = bn, Sn = Object.fromEntries(
|
|
5
|
+
Object.values(_n.types).flatMap((e) => [
|
|
6
6
|
[e.type_name, e],
|
|
7
7
|
...(e.aliases ?? []).map((t) => [t, e])
|
|
8
8
|
])
|
|
9
|
-
),
|
|
10
|
-
function
|
|
9
|
+
), An = /* @__PURE__ */ new Set(["None", "none", "null", "Null", "undefined"]);
|
|
10
|
+
function Ct(e) {
|
|
11
11
|
return typeof e == "string" && e.trim() ? e.trim() : void 0;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function yt(e) {
|
|
14
14
|
return Array.isArray(e) ? e.filter((t) => t != null) : e == null || e === "" ? [] : [e];
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function wn(e) {
|
|
17
17
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
return Array.isArray(e) ? e.filter(
|
|
19
|
+
function Ue(e) {
|
|
20
|
+
return Array.isArray(e) ? e.filter(wn) : [];
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function kn(e) {
|
|
23
23
|
const t = e.trim();
|
|
24
24
|
if (!/^(?:(?:typing|typing_extensions|airalogy\.types)\.)?[A-Za-z_][A-Za-z0-9_]*$/.test(t))
|
|
25
25
|
return;
|
|
26
26
|
const n = t.split(".");
|
|
27
27
|
return n[n.length - 1];
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function En(e) {
|
|
30
30
|
const t = [];
|
|
31
31
|
let n = "", i = 0;
|
|
32
32
|
for (const o of e) {
|
|
@@ -48,47 +48,47 @@ function An(e) {
|
|
|
48
48
|
const r = n.trim();
|
|
49
49
|
return r && t.push(r), t;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function In(e) {
|
|
52
52
|
const t = e.trim().match(/^(?:(?:typing|typing_extensions)\.)?Optional\s*\[([\s\S]+)\]$/);
|
|
53
53
|
return t ? t[1].trim() : e.trim();
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Tn(e) {
|
|
56
56
|
if (!e)
|
|
57
57
|
return;
|
|
58
|
-
const t =
|
|
58
|
+
const t = In(e), n = En(t), i = (n.length > 0 ? n : [t]).map(kn).filter((r) => typeof r == "string" && !An.has(r));
|
|
59
59
|
return i.length === 1 ? i[0] : void 0;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
const t =
|
|
63
|
-
return t ?
|
|
61
|
+
function Nn(e) {
|
|
62
|
+
const t = Tn(e);
|
|
63
|
+
return t ? Sn[t] : void 0;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
return
|
|
65
|
+
function On(e) {
|
|
66
|
+
return Ue(Nn(e)?.enum);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
return
|
|
68
|
+
function $n(e) {
|
|
69
|
+
return Ct(e?.kwargs?.title);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
return
|
|
71
|
+
function Sr(e) {
|
|
72
|
+
return Ct(e?.kwargs?.description);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Ar(e) {
|
|
75
75
|
const t = e?.kwargs;
|
|
76
76
|
if (!t)
|
|
77
77
|
return [];
|
|
78
|
-
const n =
|
|
79
|
-
return n.length > 0 ? n :
|
|
78
|
+
const n = yt(t.examples);
|
|
79
|
+
return n.length > 0 ? n : yt(t.example);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
const t =
|
|
81
|
+
function wr(e) {
|
|
82
|
+
const t = Ue(e?.enum);
|
|
83
83
|
if (t.length > 0)
|
|
84
84
|
return t;
|
|
85
|
-
const n =
|
|
86
|
-
return n.length > 0 ? n :
|
|
85
|
+
const n = Ue(e?.kwargs?.enum);
|
|
86
|
+
return n.length > 0 ? n : On(e?.type);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
88
|
+
function kr(e, t) {
|
|
89
|
+
return $n(t) ?? e;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Er(e) {
|
|
92
92
|
if (typeof e == "string")
|
|
93
93
|
return e;
|
|
94
94
|
if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint")
|
|
@@ -101,7 +101,7 @@ function Sr(e) {
|
|
|
101
101
|
return String(e);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
const
|
|
104
|
+
const jn = ["var", "var_table", "step", "check", "quiz"], Re = {
|
|
105
105
|
file: "FILE",
|
|
106
106
|
image: "IMG",
|
|
107
107
|
audio: "AUD",
|
|
@@ -109,7 +109,7 @@ const Nn = ["var", "var_table", "step", "check", "quiz"], xe = {
|
|
|
109
109
|
csv: "CSV",
|
|
110
110
|
text: "TXT",
|
|
111
111
|
document: "DOC"
|
|
112
|
-
},
|
|
112
|
+
}, Lt = {
|
|
113
113
|
csv: "csv",
|
|
114
114
|
png: "image",
|
|
115
115
|
jpg: "image",
|
|
@@ -132,7 +132,7 @@ const Nn = ["var", "var_table", "step", "check", "quiz"], xe = {
|
|
|
132
132
|
docx: "document",
|
|
133
133
|
xlsx: "document",
|
|
134
134
|
pptx: "document"
|
|
135
|
-
},
|
|
135
|
+
}, Pt = {
|
|
136
136
|
csv: "text/csv",
|
|
137
137
|
png: "image/png",
|
|
138
138
|
jpg: "image/jpeg",
|
|
@@ -155,7 +155,7 @@ const Nn = ["var", "var_table", "step", "check", "quiz"], xe = {
|
|
|
155
155
|
docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
156
156
|
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
157
157
|
pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation"
|
|
158
|
-
},
|
|
158
|
+
}, Rt = {
|
|
159
159
|
file: { kind: "file", badge: "FILE" },
|
|
160
160
|
upload: { kind: "file", badge: "FILE" },
|
|
161
161
|
csv: { kind: "csv", accept: ".csv,text/csv", badge: "CSV" },
|
|
@@ -179,48 +179,48 @@ const Nn = ["var", "var_table", "step", "check", "quiz"], xe = {
|
|
|
179
179
|
fileidxlsx: { kind: "document", accept: ".xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", badge: "XLS" },
|
|
180
180
|
fileidpptx: { kind: "document", accept: ".pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation", badge: "PPT" },
|
|
181
181
|
fileidpdf: { kind: "document", accept: ".pdf,application/pdf", badge: "PDF" }
|
|
182
|
-
},
|
|
183
|
-
function
|
|
182
|
+
}, Dn = /^airalogy\.id\.file\.[^\s]+$/i, Fn = ["id", "file_id", "fileId", "src"], Mn = ["id", "file_id", "fileId", "blob_id", "blobId", "src", "url", "href"];
|
|
183
|
+
function v(e) {
|
|
184
184
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function P(e, t = "str") {
|
|
187
187
|
return typeof e != "string" ? t : e.trim().toLowerCase().replace(/[^a-z0-9]/g, "") || t;
|
|
188
188
|
}
|
|
189
189
|
function $(e) {
|
|
190
|
-
return
|
|
190
|
+
return P(e, "");
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function pe(e) {
|
|
193
193
|
return typeof e == "string" && e.trim() ? e.trim() : void 0;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function tt(e, t) {
|
|
196
196
|
if (e)
|
|
197
197
|
for (const n of t) {
|
|
198
|
-
const i =
|
|
198
|
+
const i = pe(e[n]);
|
|
199
199
|
if (i)
|
|
200
200
|
return i;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
function
|
|
204
|
-
return
|
|
203
|
+
function Cn(e) {
|
|
204
|
+
return v(e) && v(e.data) ? e.data : e;
|
|
205
205
|
}
|
|
206
206
|
function Oe(e) {
|
|
207
|
-
return
|
|
207
|
+
return v(e) && "value" in e ? e.value : e;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
const t =
|
|
211
|
-
if (!
|
|
209
|
+
function Ir(e) {
|
|
210
|
+
const t = Cn(e), n = {};
|
|
211
|
+
if (!v(t))
|
|
212
212
|
return n;
|
|
213
|
-
for (const i of
|
|
213
|
+
for (const i of jn) {
|
|
214
214
|
const r = t[i];
|
|
215
|
-
n[i] =
|
|
215
|
+
n[i] = v(r) ? { ...r } : {};
|
|
216
216
|
}
|
|
217
217
|
return n;
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function xt(e) {
|
|
220
220
|
return Oe(e);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
if (!
|
|
222
|
+
function Ln(e) {
|
|
223
|
+
if (!v(e))
|
|
224
224
|
return;
|
|
225
225
|
const t = e.toNumber, n = e.toString;
|
|
226
226
|
if (!(typeof t != "function" || typeof n != "function"))
|
|
@@ -232,8 +232,8 @@ function Fn(e) {
|
|
|
232
232
|
return;
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
const t =
|
|
235
|
+
function Pn(e) {
|
|
236
|
+
const t = xt(e);
|
|
237
237
|
if (t == null)
|
|
238
238
|
return "";
|
|
239
239
|
if (typeof t == "string")
|
|
@@ -241,8 +241,8 @@ function Mn(e) {
|
|
|
241
241
|
if (typeof t == "number" || typeof t == "boolean")
|
|
242
242
|
return String(t);
|
|
243
243
|
if (Array.isArray(t))
|
|
244
|
-
return t.map((i) =>
|
|
245
|
-
const n =
|
|
244
|
+
return t.map((i) => Pn(i)).filter(Boolean).join(", ");
|
|
245
|
+
const n = Ln(t);
|
|
246
246
|
if (n !== void 0)
|
|
247
247
|
return n;
|
|
248
248
|
try {
|
|
@@ -251,8 +251,8 @@ function Mn(e) {
|
|
|
251
251
|
return String(t);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
function
|
|
255
|
-
const t =
|
|
254
|
+
function Rn(e) {
|
|
255
|
+
const t = xt(e);
|
|
256
256
|
if (typeof t == "boolean") return t;
|
|
257
257
|
if (typeof t == "number") return t !== 0;
|
|
258
258
|
if (typeof t == "string") {
|
|
@@ -264,41 +264,41 @@ function Cn(e) {
|
|
|
264
264
|
}
|
|
265
265
|
return !!t;
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function K(e) {
|
|
268
268
|
if (typeof e != "string")
|
|
269
269
|
return;
|
|
270
270
|
const t = e.trim().toLowerCase();
|
|
271
271
|
if (!(!t || t === "*"))
|
|
272
272
|
return t.replace(/^\./, "");
|
|
273
273
|
}
|
|
274
|
-
function
|
|
275
|
-
const n =
|
|
276
|
-
return n || (
|
|
274
|
+
function nt(e, t) {
|
|
275
|
+
const n = K(t?.fileExtension);
|
|
276
|
+
return n || (K(e?.file_extension) ?? K(e?.fileExtension) ?? K(e?.extension));
|
|
277
277
|
}
|
|
278
|
-
function
|
|
279
|
-
const t =
|
|
278
|
+
function ht(e) {
|
|
279
|
+
const t = pe(e);
|
|
280
280
|
if (!t)
|
|
281
281
|
return;
|
|
282
282
|
const i = (t.split(/[?#]/, 1)[0] ?? t).match(/\.([A-Za-z0-9]+)$/);
|
|
283
|
-
return
|
|
283
|
+
return K(i?.[1]);
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
const t = e.replace(/^\./, "").toLowerCase(), n =
|
|
285
|
+
function bt(e) {
|
|
286
|
+
const t = e.replace(/^\./, "").toLowerCase(), n = Pt[t];
|
|
287
287
|
return n ? `.${t},${n}` : `.${t}`;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
const t =
|
|
291
|
-
return t ?
|
|
289
|
+
function ae(e) {
|
|
290
|
+
const t = K(e);
|
|
291
|
+
return t ? Lt[t] : void 0;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function zt(e) {
|
|
294
294
|
const t = $(e);
|
|
295
295
|
if (!t.startsWith("fileid") || t.length <= 6)
|
|
296
296
|
return;
|
|
297
|
-
const n =
|
|
297
|
+
const n = K(t.slice(6));
|
|
298
298
|
if (n)
|
|
299
|
-
return
|
|
299
|
+
return Lt[n] || Pt[n] ? n : void 0;
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function xn(e) {
|
|
302
302
|
if (!e)
|
|
303
303
|
return;
|
|
304
304
|
const t = e.toLowerCase();
|
|
@@ -309,7 +309,7 @@ function Ln(e) {
|
|
|
309
309
|
if (t.startsWith("text/") || t.includes("json") || t.includes("markdown")) return "text";
|
|
310
310
|
if (t.includes("pdf") || t.includes("word") || t.includes("spreadsheet") || t.includes("presentation")) return "document";
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function zn(e, t, n) {
|
|
313
313
|
const i = $(n?.inputType ?? t?.input_type ?? t?.inputType), r = $(e), o = i || r;
|
|
314
314
|
if (!o)
|
|
315
315
|
return;
|
|
@@ -325,20 +325,20 @@ function Pn(e, t, n) {
|
|
|
325
325
|
return "text";
|
|
326
326
|
if (o.startsWith("fileidpdf") || o.startsWith("fileiddocx") || o.startsWith("fileidxlsx") || o.startsWith("fileidpptx"))
|
|
327
327
|
return "document";
|
|
328
|
-
const s =
|
|
329
|
-
return a || (o === "file" || o === "upload" || o.startsWith("fileid") ? "file" :
|
|
328
|
+
const s = zt(o), a = ae(s);
|
|
329
|
+
return a || (o === "file" || o === "upload" || o.startsWith("fileid") ? "file" : ae(nt(t, n)));
|
|
330
330
|
}
|
|
331
331
|
function Ee(e) {
|
|
332
|
-
return e ? !!
|
|
332
|
+
return e ? !!Rt[e] || e.startsWith("fileid") : !1;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
335
|
-
const i = $(n?.inputType), r = Ee(i) ? i :
|
|
334
|
+
function Bn(e, t, n) {
|
|
335
|
+
const i = $(n?.inputType), r = Ee(i) ? i : P(e), o = nt(t, n), s = pe(n?.accept) ?? tt(t, ["accept", "file_accept", "fileAccept"]), a = Rt[r], l = zt(r);
|
|
336
336
|
if (o) {
|
|
337
|
-
const
|
|
337
|
+
const c = ae(o) ?? "file";
|
|
338
338
|
return {
|
|
339
|
-
kind:
|
|
340
|
-
accept: s ??
|
|
341
|
-
badge: a?.badge ??
|
|
339
|
+
kind: c,
|
|
340
|
+
accept: s ?? bt(o),
|
|
341
|
+
badge: a?.badge ?? Re[c]
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
344
|
if (a)
|
|
@@ -347,39 +347,39 @@ function xn(e, t, n) {
|
|
|
347
347
|
accept: s ?? a.accept
|
|
348
348
|
};
|
|
349
349
|
if (l) {
|
|
350
|
-
const
|
|
350
|
+
const c = ae(l) ?? "file";
|
|
351
351
|
return {
|
|
352
|
-
kind:
|
|
353
|
-
accept: s ??
|
|
354
|
-
badge:
|
|
352
|
+
kind: c,
|
|
353
|
+
accept: s ?? bt(l),
|
|
354
|
+
badge: Re[c]
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
357
|
return {
|
|
358
358
|
kind: "file",
|
|
359
359
|
accept: s,
|
|
360
|
-
badge:
|
|
360
|
+
badge: Re.file
|
|
361
361
|
};
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
const i =
|
|
365
|
-
return Ee(i) || Ee(r) || !!
|
|
363
|
+
function vn(e, t, n) {
|
|
364
|
+
const i = P(e), r = $(n?.inputType);
|
|
365
|
+
return Ee(i) || Ee(r) || !!nt(t, n) || !!pe(n?.accept);
|
|
366
366
|
}
|
|
367
|
-
function Bt(e, t =
|
|
367
|
+
function Bt(e, t = Fn) {
|
|
368
368
|
const n = Oe(e);
|
|
369
369
|
if (typeof n == "string")
|
|
370
370
|
return n.trim() || void 0;
|
|
371
|
-
if (
|
|
372
|
-
return
|
|
371
|
+
if (v(n))
|
|
372
|
+
return tt(n, t);
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
return typeof e == "string" &&
|
|
374
|
+
function vt(e) {
|
|
375
|
+
return typeof e == "string" && Dn.test(e);
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
const i =
|
|
377
|
+
function Vn(e, t, n = {}) {
|
|
378
|
+
const i = pe(t?.name ?? t?.filename ?? t?.downloadName);
|
|
379
379
|
if (i)
|
|
380
380
|
return i;
|
|
381
381
|
const r = Oe(e);
|
|
382
|
-
return typeof r == "string" ? n.hideAiralogyFileIds &&
|
|
382
|
+
return typeof r == "string" ? n.hideAiralogyFileIds && vt(r) ? "" : r : v(r) ? tt(r, n.keys ?? [
|
|
383
383
|
"name",
|
|
384
384
|
"fileName",
|
|
385
385
|
"file_name",
|
|
@@ -393,92 +393,92 @@ function Rn(e, t, n = {}) {
|
|
|
393
393
|
"url"
|
|
394
394
|
]) ?? "" : "";
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
return e?.kind ??
|
|
396
|
+
function Tr(e, t, n, i, r) {
|
|
397
|
+
return e?.kind ?? xn(e?.mimeType) ?? zn(n, i, r) ?? ae(ht(e?.filename ?? e?.name ?? e?.downloadName)) ?? ae(ht(Bt(t, Mn))) ?? "file";
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function Wn(e) {
|
|
400
400
|
return !!(e && /^(blob:|data:|https?:|file:|\/|\.\/|\.\.\/)/i.test(e));
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
return e?.url ? e.url :
|
|
402
|
+
function Nr(e) {
|
|
403
|
+
return e?.url ? e.url : Wn(e?.href) ? e?.href : void 0;
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function Or(e, t, n) {
|
|
406
406
|
const i = $(n?.inputType ?? t?.input_type ?? t?.inputType) || $(e);
|
|
407
407
|
return i === "md" || i === "markdown" || i === "airalogymarkdown";
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function $r(e, t, n) {
|
|
410
410
|
const i = $(n?.inputType ?? t?.input_type ?? t?.inputType) || $(e);
|
|
411
411
|
return i === "code" || i === "codestr" || i === "pystr" || i === "pythoncode" || i === "javascriptcode";
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function jr(e, t, n) {
|
|
414
414
|
const i = $(n?.inputType ?? t?.input_type ?? t?.inputType) || $(e);
|
|
415
415
|
return i === "dna" || i === "dnasequence";
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function Dr(e, t, n) {
|
|
418
418
|
const i = $(n?.inputType ?? t?.input_type ?? t?.inputType) || $(e);
|
|
419
419
|
return i === "bool" || i === "boolean" || i === "checkbox";
|
|
420
420
|
}
|
|
421
|
-
const
|
|
421
|
+
const it = /* @__PURE__ */ Symbol.for("yaml.alias"), qn = /* @__PURE__ */ Symbol.for("yaml.document"), Q = /* @__PURE__ */ Symbol.for("yaml.map"), Vt = /* @__PURE__ */ Symbol.for("yaml.pair"), rt = /* @__PURE__ */ Symbol.for("yaml.scalar"), me = /* @__PURE__ */ Symbol.for("yaml.seq"), R = /* @__PURE__ */ Symbol.for("yaml.node.type"), H = (e) => !!e && typeof e == "object" && e[R] === it, $e = (e) => !!e && typeof e == "object" && e[R] === qn, Wt = (e) => !!e && typeof e == "object" && e[R] === Q, T = (e) => !!e && typeof e == "object" && e[R] === Vt, I = (e) => !!e && typeof e == "object" && e[R] === rt, ot = (e) => !!e && typeof e == "object" && e[R] === me;
|
|
422
422
|
function O(e) {
|
|
423
423
|
if (e && typeof e == "object")
|
|
424
|
-
switch (e[
|
|
425
|
-
case
|
|
426
|
-
case
|
|
424
|
+
switch (e[R]) {
|
|
425
|
+
case Q:
|
|
426
|
+
case me:
|
|
427
427
|
return !0;
|
|
428
428
|
}
|
|
429
429
|
return !1;
|
|
430
430
|
}
|
|
431
431
|
function N(e) {
|
|
432
432
|
if (e && typeof e == "object")
|
|
433
|
-
switch (e[
|
|
434
|
-
case
|
|
435
|
-
case
|
|
436
|
-
case
|
|
437
|
-
case
|
|
433
|
+
switch (e[R]) {
|
|
434
|
+
case it:
|
|
435
|
+
case Q:
|
|
436
|
+
case rt:
|
|
437
|
+
case me:
|
|
438
438
|
return !0;
|
|
439
439
|
}
|
|
440
440
|
return !1;
|
|
441
441
|
}
|
|
442
|
-
const
|
|
442
|
+
const qt = (e) => (I(e) || O(e)) && !!e.anchor, J = /* @__PURE__ */ Symbol("break visit"), Jn = /* @__PURE__ */ Symbol("skip children"), fe = /* @__PURE__ */ Symbol("remove node");
|
|
443
443
|
function je(e, t) {
|
|
444
|
-
const n =
|
|
445
|
-
$e(e) ?
|
|
444
|
+
const n = Kn(t);
|
|
445
|
+
$e(e) ? ie(null, e.contents, n, Object.freeze([e])) === fe && (e.contents = null) : ie(null, e, n, Object.freeze([]));
|
|
446
446
|
}
|
|
447
|
-
je.BREAK =
|
|
448
|
-
je.SKIP =
|
|
447
|
+
je.BREAK = J;
|
|
448
|
+
je.SKIP = Jn;
|
|
449
449
|
je.REMOVE = fe;
|
|
450
|
-
function
|
|
451
|
-
const r =
|
|
450
|
+
function ie(e, t, n, i) {
|
|
451
|
+
const r = Un(e, t, n, i);
|
|
452
452
|
if (N(r) || T(r))
|
|
453
|
-
return
|
|
453
|
+
return Gn(e, i, r), ie(e, r, n, i);
|
|
454
454
|
if (typeof r != "symbol") {
|
|
455
455
|
if (O(t)) {
|
|
456
456
|
i = Object.freeze(i.concat(t));
|
|
457
457
|
for (let o = 0; o < t.items.length; ++o) {
|
|
458
|
-
const s =
|
|
458
|
+
const s = ie(o, t.items[o], n, i);
|
|
459
459
|
if (typeof s == "number")
|
|
460
460
|
o = s - 1;
|
|
461
461
|
else {
|
|
462
|
-
if (s ===
|
|
463
|
-
return
|
|
462
|
+
if (s === J)
|
|
463
|
+
return J;
|
|
464
464
|
s === fe && (t.items.splice(o, 1), o -= 1);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
} else if (T(t)) {
|
|
468
468
|
i = Object.freeze(i.concat(t));
|
|
469
|
-
const o =
|
|
470
|
-
if (o ===
|
|
471
|
-
return
|
|
469
|
+
const o = ie("key", t.key, n, i);
|
|
470
|
+
if (o === J)
|
|
471
|
+
return J;
|
|
472
472
|
o === fe && (t.key = null);
|
|
473
|
-
const s =
|
|
474
|
-
if (s ===
|
|
475
|
-
return
|
|
473
|
+
const s = ie("value", t.value, n, i);
|
|
474
|
+
if (s === J)
|
|
475
|
+
return J;
|
|
476
476
|
s === fe && (t.value = null);
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
return r;
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function Kn(e) {
|
|
482
482
|
return typeof e == "object" && (e.Collection || e.Node || e.Value) ? Object.assign({
|
|
483
483
|
Alias: e.Node,
|
|
484
484
|
Map: e.Node,
|
|
@@ -493,21 +493,21 @@ function Wn(e) {
|
|
|
493
493
|
Seq: e.Collection
|
|
494
494
|
}, e) : e;
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function Un(e, t, n, i) {
|
|
497
497
|
if (typeof n == "function")
|
|
498
498
|
return n(e, t, i);
|
|
499
|
-
if (
|
|
499
|
+
if (Wt(t))
|
|
500
500
|
return n.Map?.(e, t, i);
|
|
501
|
-
if (
|
|
501
|
+
if (ot(t))
|
|
502
502
|
return n.Seq?.(e, t, i);
|
|
503
503
|
if (T(t))
|
|
504
504
|
return n.Pair?.(e, t, i);
|
|
505
505
|
if (I(t))
|
|
506
506
|
return n.Scalar?.(e, t, i);
|
|
507
|
-
if (
|
|
507
|
+
if (H(t))
|
|
508
508
|
return n.Alias?.(e, t, i);
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function Gn(e, t, n) {
|
|
511
511
|
const i = t[t.length - 1];
|
|
512
512
|
if (O(i))
|
|
513
513
|
i.items[e] = n;
|
|
@@ -516,46 +516,46 @@ function qn(e, t, n) {
|
|
|
516
516
|
else if ($e(i))
|
|
517
517
|
i.contents = n;
|
|
518
518
|
else {
|
|
519
|
-
const r =
|
|
519
|
+
const r = H(i) ? "alias" : "scalar";
|
|
520
520
|
throw new Error(`Cannot replace node with ${r} parent`);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function Jt(e) {
|
|
524
524
|
if (/[\x00-\x19\s,[\]{}]/.test(e)) {
|
|
525
525
|
const n = `Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;
|
|
526
526
|
throw new Error(n);
|
|
527
527
|
}
|
|
528
528
|
return !0;
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function ce(e, t, n, i) {
|
|
531
531
|
if (i && typeof i == "object")
|
|
532
532
|
if (Array.isArray(i))
|
|
533
533
|
for (let r = 0, o = i.length; r < o; ++r) {
|
|
534
|
-
const s = i[r], a =
|
|
534
|
+
const s = i[r], a = ce(e, i, String(r), s);
|
|
535
535
|
a === void 0 ? delete i[r] : a !== s && (i[r] = a);
|
|
536
536
|
}
|
|
537
537
|
else if (i instanceof Map)
|
|
538
538
|
for (const r of Array.from(i.keys())) {
|
|
539
|
-
const o = i.get(r), s =
|
|
539
|
+
const o = i.get(r), s = ce(e, i, r, o);
|
|
540
540
|
s === void 0 ? i.delete(r) : s !== o && i.set(r, s);
|
|
541
541
|
}
|
|
542
542
|
else if (i instanceof Set)
|
|
543
543
|
for (const r of Array.from(i)) {
|
|
544
|
-
const o =
|
|
544
|
+
const o = ce(e, i, r, r);
|
|
545
545
|
o === void 0 ? i.delete(r) : o !== r && (i.delete(r), i.add(o));
|
|
546
546
|
}
|
|
547
547
|
else
|
|
548
548
|
for (const [r, o] of Object.entries(i)) {
|
|
549
|
-
const s =
|
|
549
|
+
const s = ce(e, i, r, o);
|
|
550
550
|
s === void 0 ? delete i[r] : s !== o && (i[r] = s);
|
|
551
551
|
}
|
|
552
552
|
return e.call(t, n, i);
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function M(e, t, n) {
|
|
555
555
|
if (Array.isArray(e))
|
|
556
|
-
return e.map((i, r) =>
|
|
556
|
+
return e.map((i, r) => M(i, String(r), n));
|
|
557
557
|
if (e && typeof e.toJSON == "function") {
|
|
558
|
-
if (!n || !
|
|
558
|
+
if (!n || !qt(e))
|
|
559
559
|
return e.toJSON(t, n);
|
|
560
560
|
const i = { aliasCount: 0, count: 1, res: void 0 };
|
|
561
561
|
n.anchors.set(e, i), n.onCreate = (o) => {
|
|
@@ -566,9 +566,9 @@ function F(e, t, n) {
|
|
|
566
566
|
}
|
|
567
567
|
return typeof e == "bigint" && !n?.keep ? Number(e) : e;
|
|
568
568
|
}
|
|
569
|
-
class
|
|
569
|
+
class st {
|
|
570
570
|
constructor(t) {
|
|
571
|
-
Object.defineProperty(this,
|
|
571
|
+
Object.defineProperty(this, R, { value: t });
|
|
572
572
|
}
|
|
573
573
|
/** Create a copy of this node. */
|
|
574
574
|
clone() {
|
|
@@ -586,16 +586,16 @@ class rt {
|
|
|
586
586
|
mapAsMap: n === !0,
|
|
587
587
|
mapKeyWarned: !1,
|
|
588
588
|
maxAliasCount: typeof i == "number" ? i : 100
|
|
589
|
-
}, a =
|
|
589
|
+
}, a = M(this, "", s);
|
|
590
590
|
if (typeof r == "function")
|
|
591
|
-
for (const { count: l, res:
|
|
592
|
-
r(
|
|
593
|
-
return typeof o == "function" ?
|
|
591
|
+
for (const { count: l, res: c } of s.anchors.values())
|
|
592
|
+
r(c, l);
|
|
593
|
+
return typeof o == "function" ? ce(o, { "": a }, "", a) : a;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
class
|
|
596
|
+
class Qn extends st {
|
|
597
597
|
constructor(t) {
|
|
598
|
-
super(
|
|
598
|
+
super(it), this.source = t, Object.defineProperty(this, "tag", {
|
|
599
599
|
set() {
|
|
600
600
|
throw new Error("Alias nodes cannot have tags");
|
|
601
601
|
}
|
|
@@ -609,7 +609,7 @@ class Kn extends rt {
|
|
|
609
609
|
let i;
|
|
610
610
|
n?.aliasResolveCache ? i = n.aliasResolveCache : (i = [], je(t, {
|
|
611
611
|
Node: (o, s) => {
|
|
612
|
-
(
|
|
612
|
+
(H(s) || qt(s)) && i.push(s);
|
|
613
613
|
}
|
|
614
614
|
}), n && (n.aliasResolveCache = i));
|
|
615
615
|
let r;
|
|
@@ -629,7 +629,7 @@ class Kn extends rt {
|
|
|
629
629
|
throw new ReferenceError(l);
|
|
630
630
|
}
|
|
631
631
|
let a = i.get(s);
|
|
632
|
-
if (a || (
|
|
632
|
+
if (a || (M(s, null, n), a = i.get(s)), a?.res === void 0) {
|
|
633
633
|
const l = "This should not happen: Alias anchor was not resolved?";
|
|
634
634
|
throw new ReferenceError(l);
|
|
635
635
|
}
|
|
@@ -642,7 +642,7 @@ class Kn extends rt {
|
|
|
642
642
|
toString(t, n, i) {
|
|
643
643
|
const r = `*${this.source}`;
|
|
644
644
|
if (t) {
|
|
645
|
-
if (
|
|
645
|
+
if (Jt(this.source), t.options.verifyAliasOrder && !t.anchors.has(this.source)) {
|
|
646
646
|
const o = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
|
|
647
647
|
throw new Error(o);
|
|
648
648
|
}
|
|
@@ -653,7 +653,7 @@ class Kn extends rt {
|
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
function Se(e, t, n) {
|
|
656
|
-
if (
|
|
656
|
+
if (H(t)) {
|
|
657
657
|
const i = t.resolve(e), r = n && i && n.get(i);
|
|
658
658
|
return r ? r.count * r.aliasCount : 0;
|
|
659
659
|
} else if (O(t)) {
|
|
@@ -669,13 +669,13 @@ function Se(e, t, n) {
|
|
|
669
669
|
}
|
|
670
670
|
return 1;
|
|
671
671
|
}
|
|
672
|
-
const
|
|
673
|
-
class w extends
|
|
672
|
+
const Kt = (e) => !e || typeof e != "function" && typeof e != "object";
|
|
673
|
+
class w extends st {
|
|
674
674
|
constructor(t) {
|
|
675
|
-
super(
|
|
675
|
+
super(rt), this.value = t;
|
|
676
676
|
}
|
|
677
677
|
toJSON(t, n) {
|
|
678
|
-
return n?.keep ? this.value :
|
|
678
|
+
return n?.keep ? this.value : M(this.value, t, n);
|
|
679
679
|
}
|
|
680
680
|
toString() {
|
|
681
681
|
return String(this.value);
|
|
@@ -686,37 +686,37 @@ w.BLOCK_LITERAL = "BLOCK_LITERAL";
|
|
|
686
686
|
w.PLAIN = "PLAIN";
|
|
687
687
|
w.QUOTE_DOUBLE = "QUOTE_DOUBLE";
|
|
688
688
|
w.QUOTE_SINGLE = "QUOTE_SINGLE";
|
|
689
|
-
function
|
|
689
|
+
function Yn(e, t, n) {
|
|
690
690
|
return n.find((i) => i.identify?.(e) && !i.format);
|
|
691
691
|
}
|
|
692
692
|
function Ie(e, t, n) {
|
|
693
693
|
if ($e(e) && (e = e.contents), N(e))
|
|
694
694
|
return e;
|
|
695
695
|
if (T(e)) {
|
|
696
|
-
const
|
|
697
|
-
return
|
|
696
|
+
const f = n.schema[Q].createNode?.(n.schema, null, n);
|
|
697
|
+
return f.items.push(e), f;
|
|
698
698
|
}
|
|
699
699
|
(e instanceof String || e instanceof Number || e instanceof Boolean || typeof BigInt < "u" && e instanceof BigInt) && (e = e.valueOf());
|
|
700
700
|
const { aliasDuplicateObjects: i, onAnchor: r, onTagObj: o, schema: s, sourceObjects: a } = n;
|
|
701
701
|
let l;
|
|
702
702
|
if (i && e && typeof e == "object") {
|
|
703
703
|
if (l = a.get(e), l)
|
|
704
|
-
return l.anchor ?? (l.anchor = r(e)), new
|
|
704
|
+
return l.anchor ?? (l.anchor = r(e)), new Qn(l.anchor);
|
|
705
705
|
l = { anchor: null, node: null }, a.set(e, l);
|
|
706
706
|
}
|
|
707
|
-
let
|
|
708
|
-
if (!
|
|
707
|
+
let c = Yn(e, t, s.tags);
|
|
708
|
+
if (!c) {
|
|
709
709
|
if (e && typeof e.toJSON == "function" && (e = e.toJSON()), !e || typeof e != "object") {
|
|
710
|
-
const
|
|
711
|
-
return l && (l.node =
|
|
710
|
+
const f = new w(e);
|
|
711
|
+
return l && (l.node = f), f;
|
|
712
712
|
}
|
|
713
|
-
|
|
713
|
+
c = e instanceof Map ? s[Q] : Symbol.iterator in Object(e) ? s[me] : s[Q];
|
|
714
714
|
}
|
|
715
|
-
o && (o(
|
|
716
|
-
const d =
|
|
717
|
-
return
|
|
715
|
+
o && (o(c), delete n.onTagObj);
|
|
716
|
+
const d = c?.createNode ? c.createNode(n.schema, e, n) : typeof c?.nodeClass?.from == "function" ? c.nodeClass.from(n.schema, e, n) : new w(e);
|
|
717
|
+
return c.default || (d.tag = c.tag), l && (l.node = d), d;
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function _t(e, t, n) {
|
|
720
720
|
let i = n;
|
|
721
721
|
for (let r = t.length - 1; r >= 0; --r) {
|
|
722
722
|
const o = t[r];
|
|
@@ -736,8 +736,8 @@ function ht(e, t, n) {
|
|
|
736
736
|
sourceObjects: /* @__PURE__ */ new Map()
|
|
737
737
|
});
|
|
738
738
|
}
|
|
739
|
-
const
|
|
740
|
-
class
|
|
739
|
+
const Xn = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next().done;
|
|
740
|
+
class Ut extends st {
|
|
741
741
|
constructor(t, n) {
|
|
742
742
|
super(t), Object.defineProperty(this, "schema", {
|
|
743
743
|
value: n,
|
|
@@ -761,14 +761,14 @@ class qt extends rt {
|
|
|
761
761
|
* that already exists in the map.
|
|
762
762
|
*/
|
|
763
763
|
addIn(t, n) {
|
|
764
|
-
if (
|
|
764
|
+
if (Xn(t))
|
|
765
765
|
this.add(n);
|
|
766
766
|
else {
|
|
767
767
|
const [i, ...r] = t, o = this.get(i, !0);
|
|
768
768
|
if (O(o))
|
|
769
769
|
o.addIn(r, n);
|
|
770
770
|
else if (o === void 0 && this.schema)
|
|
771
|
-
this.set(i,
|
|
771
|
+
this.set(i, _t(this.schema, r, n));
|
|
772
772
|
else
|
|
773
773
|
throw new Error(`Expected YAML collection at ${i}. Remaining path: ${r}`);
|
|
774
774
|
}
|
|
@@ -826,20 +826,20 @@ class qt extends rt {
|
|
|
826
826
|
if (O(o))
|
|
827
827
|
o.setIn(r, n);
|
|
828
828
|
else if (o === void 0 && this.schema)
|
|
829
|
-
this.set(i,
|
|
829
|
+
this.set(i, _t(this.schema, r, n));
|
|
830
830
|
else
|
|
831
831
|
throw new Error(`Expected YAML collection at ${i}. Remaining path: ${r}`);
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
|
-
const
|
|
836
|
-
function
|
|
835
|
+
const Hn = (e) => e.replace(/^(?!$)(?: $)?/gm, "#");
|
|
836
|
+
function de(e, t) {
|
|
837
837
|
return /^\n+$/.test(e) ? e.substring(1) : t ? e.replace(/^(?! *$)/gm, t) : e;
|
|
838
838
|
}
|
|
839
|
-
const
|
|
840
|
-
`) ?
|
|
839
|
+
const re = (e, t, n) => e.endsWith(`
|
|
840
|
+
`) ? de(n, t) : n.includes(`
|
|
841
841
|
`) ? `
|
|
842
|
-
` +
|
|
842
|
+
` + de(n, t) : (e.endsWith(" ") ? "" : " ") + n, Gt = "flow", Ge = "block", Ae = "quoted";
|
|
843
843
|
function De(e, t, n = "flow", { indentAtStart: i, lineWidth: r = 80, minContentWidth: o = 20, onFold: s, onOverflow: a } = {}) {
|
|
844
844
|
if (!r || r < 0)
|
|
845
845
|
return e;
|
|
@@ -847,11 +847,11 @@ function De(e, t, n = "flow", { indentAtStart: i, lineWidth: r = 80, minContentW
|
|
|
847
847
|
const l = Math.max(1 + o, 1 + r - t.length);
|
|
848
848
|
if (e.length <= l)
|
|
849
849
|
return e;
|
|
850
|
-
const
|
|
851
|
-
let
|
|
852
|
-
typeof i == "number" && (i > r - Math.max(2, o) ?
|
|
850
|
+
const c = [], d = {};
|
|
851
|
+
let f = r - t.length;
|
|
852
|
+
typeof i == "number" && (i > r - Math.max(2, o) ? c.push(0) : f = r - i);
|
|
853
853
|
let m, g, y = !1, u = -1, p = -1, b = -1;
|
|
854
|
-
n ===
|
|
854
|
+
n === Ge && (u = St(e, u, t.length), u !== -1 && (f = u + l));
|
|
855
855
|
for (let _; _ = e[u += 1]; ) {
|
|
856
856
|
if (n === Ae && _ === "\\") {
|
|
857
857
|
switch (p = u, e[u + 1]) {
|
|
@@ -871,7 +871,7 @@ function De(e, t, n = "flow", { indentAtStart: i, lineWidth: r = 80, minContentW
|
|
|
871
871
|
}
|
|
872
872
|
if (_ === `
|
|
873
873
|
`)
|
|
874
|
-
n ===
|
|
874
|
+
n === Ge && (u = St(e, u, t.length)), f = u + t.length + l, m = void 0;
|
|
875
875
|
else {
|
|
876
876
|
if (_ === " " && g && g !== " " && g !== `
|
|
877
877
|
` && g !== " ") {
|
|
@@ -879,34 +879,34 @@ function De(e, t, n = "flow", { indentAtStart: i, lineWidth: r = 80, minContentW
|
|
|
879
879
|
S && S !== " " && S !== `
|
|
880
880
|
` && S !== " " && (m = u);
|
|
881
881
|
}
|
|
882
|
-
if (u >=
|
|
882
|
+
if (u >= f)
|
|
883
883
|
if (m)
|
|
884
|
-
|
|
884
|
+
c.push(m), f = m + l, m = void 0;
|
|
885
885
|
else if (n === Ae) {
|
|
886
886
|
for (; g === " " || g === " "; )
|
|
887
887
|
g = _, _ = e[u += 1], y = !0;
|
|
888
888
|
const S = u > b + 1 ? u - 2 : p - 1;
|
|
889
889
|
if (d[S])
|
|
890
890
|
return e;
|
|
891
|
-
|
|
891
|
+
c.push(S), d[S] = !0, f = S + l, m = void 0;
|
|
892
892
|
} else
|
|
893
893
|
y = !0;
|
|
894
894
|
}
|
|
895
895
|
g = _;
|
|
896
896
|
}
|
|
897
|
-
if (y && a && a(),
|
|
897
|
+
if (y && a && a(), c.length === 0)
|
|
898
898
|
return e;
|
|
899
899
|
s && s();
|
|
900
|
-
let h = e.slice(0,
|
|
901
|
-
for (let _ = 0; _ <
|
|
902
|
-
const S =
|
|
900
|
+
let h = e.slice(0, c[0]);
|
|
901
|
+
for (let _ = 0; _ < c.length; ++_) {
|
|
902
|
+
const S = c[_], k = c[_ + 1] || e.length;
|
|
903
903
|
S === 0 ? h = `
|
|
904
904
|
${t}${e.slice(0, k)}` : (n === Ae && d[S] && (h += `${e[S]}\\`), h += `
|
|
905
905
|
${t}${e.slice(S + 1, k)}`);
|
|
906
906
|
}
|
|
907
907
|
return h;
|
|
908
908
|
}
|
|
909
|
-
function
|
|
909
|
+
function St(e, t, n) {
|
|
910
910
|
let i = t, r = t + 1, o = e[r];
|
|
911
911
|
for (; o === " " || o === " "; )
|
|
912
912
|
if (t < r + n)
|
|
@@ -925,7 +925,7 @@ const Fe = (e, t) => ({
|
|
|
925
925
|
lineWidth: e.options.lineWidth,
|
|
926
926
|
minContentWidth: e.options.minContentWidth
|
|
927
927
|
}), Me = (e) => /^(%|---|\.\.\.)/m.test(e);
|
|
928
|
-
function
|
|
928
|
+
function Zn(e, t, n) {
|
|
929
929
|
if (!t || t < 0)
|
|
930
930
|
return !1;
|
|
931
931
|
const i = t - n, r = e.length;
|
|
@@ -941,14 +941,14 @@ function Yn(e, t, n) {
|
|
|
941
941
|
}
|
|
942
942
|
return !0;
|
|
943
943
|
}
|
|
944
|
-
function
|
|
944
|
+
function ue(e, t) {
|
|
945
945
|
const n = JSON.stringify(e);
|
|
946
946
|
if (t.options.doubleQuotedAsJSON)
|
|
947
947
|
return n;
|
|
948
948
|
const { implicitKey: i } = t, r = t.options.doubleQuotedMinMultiLineLength, o = t.indent || (Me(e) ? " " : "");
|
|
949
949
|
let s = "", a = 0;
|
|
950
|
-
for (let l = 0,
|
|
951
|
-
if (
|
|
950
|
+
for (let l = 0, c = n[l]; c; c = n[++l])
|
|
951
|
+
if (c === " " && n[l + 1] === "\\" && n[l + 2] === "n" && (s += n.slice(a, l) + "\\ ", l += 1, a = l, c = "\\"), c === "\\")
|
|
952
952
|
switch (n[l + 1]) {
|
|
953
953
|
case "u":
|
|
954
954
|
{
|
|
@@ -1002,44 +1002,44 @@ function ce(e, t) {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
return s = a ? s + n.slice(a) : n, i ? s : De(s, o, Ae, Fe(t, !1));
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1005
|
+
function Qe(e, t) {
|
|
1006
1006
|
if (t.options.singleQuote === !1 || t.implicitKey && e.includes(`
|
|
1007
1007
|
`) || /[ \t]\n|\n[ \t]/.test(e))
|
|
1008
|
-
return
|
|
1008
|
+
return ue(e, t);
|
|
1009
1009
|
const n = t.indent || (Me(e) ? " " : ""), i = "'" + e.replace(/'/g, "''").replace(/\n+/g, `$&
|
|
1010
1010
|
${n}`) + "'";
|
|
1011
|
-
return t.implicitKey ? i : De(i, n,
|
|
1011
|
+
return t.implicitKey ? i : De(i, n, Gt, Fe(t, !1));
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1013
|
+
function oe(e, t) {
|
|
1014
1014
|
const { singleQuote: n } = t.options;
|
|
1015
1015
|
let i;
|
|
1016
1016
|
if (n === !1)
|
|
1017
|
-
i =
|
|
1017
|
+
i = ue;
|
|
1018
1018
|
else {
|
|
1019
1019
|
const r = e.includes('"'), o = e.includes("'");
|
|
1020
|
-
r && !o ? i =
|
|
1020
|
+
r && !o ? i = Qe : o && !r ? i = ue : i = n ? Qe : ue;
|
|
1021
1021
|
}
|
|
1022
1022
|
return i(e, t);
|
|
1023
1023
|
}
|
|
1024
|
-
let
|
|
1024
|
+
let Ye;
|
|
1025
1025
|
try {
|
|
1026
|
-
|
|
1026
|
+
Ye = new RegExp(`(^|(?<!
|
|
1027
1027
|
))
|
|
1028
1028
|
+(?!
|
|
1029
1029
|
|$)`, "g");
|
|
1030
1030
|
} catch {
|
|
1031
|
-
|
|
1031
|
+
Ye = /\n+(?!\n|$)/g;
|
|
1032
1032
|
}
|
|
1033
1033
|
function we({ comment: e, type: t, value: n }, i, r, o) {
|
|
1034
1034
|
const { blockQuote: s, commentString: a, lineWidth: l } = i.options;
|
|
1035
1035
|
if (!s || /\n[\t ]+$/.test(n))
|
|
1036
|
-
return
|
|
1037
|
-
const
|
|
1036
|
+
return oe(n, i);
|
|
1037
|
+
const c = i.indent || (i.forceBlockIndent || Me(n) ? " " : ""), d = s === "literal" ? !0 : s === "folded" || t === w.BLOCK_FOLDED ? !1 : t === w.BLOCK_LITERAL ? !0 : !Zn(n, l, c.length);
|
|
1038
1038
|
if (!n)
|
|
1039
1039
|
return d ? `|
|
|
1040
1040
|
` : `>
|
|
1041
1041
|
`;
|
|
1042
|
-
let
|
|
1042
|
+
let f, m;
|
|
1043
1043
|
for (m = n.length; m > 0; --m) {
|
|
1044
1044
|
const k = n[m - 1];
|
|
1045
1045
|
if (k !== `
|
|
@@ -1049,8 +1049,8 @@ function we({ comment: e, type: t, value: n }, i, r, o) {
|
|
|
1049
1049
|
let g = n.substring(m);
|
|
1050
1050
|
const y = g.indexOf(`
|
|
1051
1051
|
`);
|
|
1052
|
-
y === -1 ?
|
|
1053
|
-
` && (g = g.slice(0, -1)), g = g.replace(
|
|
1052
|
+
y === -1 ? f = "-" : n === g || y !== g.length - 1 ? (f = "+", o && o()) : f = "", g && (n = n.slice(0, -g.length), g[g.length - 1] === `
|
|
1053
|
+
` && (g = g.slice(0, -1)), g = g.replace(Ye, `$&${c}`));
|
|
1054
1054
|
let u = !1, p, b = -1;
|
|
1055
1055
|
for (p = 0; p < n.length; ++p) {
|
|
1056
1056
|
const k = n[p];
|
|
@@ -1063,51 +1063,51 @@ function we({ comment: e, type: t, value: n }, i, r, o) {
|
|
|
1063
1063
|
break;
|
|
1064
1064
|
}
|
|
1065
1065
|
let h = n.substring(0, b < p ? b + 1 : p);
|
|
1066
|
-
h && (n = n.substring(h.length), h = h.replace(/\n+/g, `$&${
|
|
1067
|
-
let S = (u ?
|
|
1066
|
+
h && (n = n.substring(h.length), h = h.replace(/\n+/g, `$&${c}`));
|
|
1067
|
+
let S = (u ? c ? "2" : "1" : "") + f;
|
|
1068
1068
|
if (e && (S += " " + a(e.replace(/ ?[\r\n]+/g, " ")), r && r()), !d) {
|
|
1069
1069
|
const k = n.replace(/\n+/g, `
|
|
1070
|
-
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${
|
|
1071
|
-
let
|
|
1072
|
-
const
|
|
1073
|
-
s !== "folded" && t !== w.BLOCK_FOLDED && (
|
|
1074
|
-
|
|
1070
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${c}`);
|
|
1071
|
+
let D = !1;
|
|
1072
|
+
const C = Fe(i, !0);
|
|
1073
|
+
s !== "folded" && t !== w.BLOCK_FOLDED && (C.onOverflow = () => {
|
|
1074
|
+
D = !0;
|
|
1075
1075
|
});
|
|
1076
|
-
const
|
|
1077
|
-
if (!
|
|
1076
|
+
const le = De(`${h}${k}${g}`, c, Ge, C);
|
|
1077
|
+
if (!D)
|
|
1078
1078
|
return `>${S}
|
|
1079
|
-
${
|
|
1079
|
+
${c}${le}`;
|
|
1080
1080
|
}
|
|
1081
|
-
return n = n.replace(/\n+/g, `$&${
|
|
1082
|
-
${
|
|
1081
|
+
return n = n.replace(/\n+/g, `$&${c}`), `|${S}
|
|
1082
|
+
${c}${h}${n}${g}`;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1085
|
-
const { type: r, value: o } = e, { actualString: s, implicitKey: a, indent: l, indentStep:
|
|
1084
|
+
function ei(e, t, n, i) {
|
|
1085
|
+
const { type: r, value: o } = e, { actualString: s, implicitKey: a, indent: l, indentStep: c, inFlow: d } = t;
|
|
1086
1086
|
if (a && o.includes(`
|
|
1087
1087
|
`) || d && /[[\]{},]/.test(o))
|
|
1088
|
-
return
|
|
1088
|
+
return oe(o, t);
|
|
1089
1089
|
if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))
|
|
1090
1090
|
return a || d || !o.includes(`
|
|
1091
|
-
`) ?
|
|
1091
|
+
`) ? oe(o, t) : we(e, t, n, i);
|
|
1092
1092
|
if (!a && !d && r !== w.PLAIN && o.includes(`
|
|
1093
1093
|
`))
|
|
1094
1094
|
return we(e, t, n, i);
|
|
1095
1095
|
if (Me(o)) {
|
|
1096
1096
|
if (l === "")
|
|
1097
1097
|
return t.forceBlockIndent = !0, we(e, t, n, i);
|
|
1098
|
-
if (a && l ===
|
|
1099
|
-
return
|
|
1098
|
+
if (a && l === c)
|
|
1099
|
+
return oe(o, t);
|
|
1100
1100
|
}
|
|
1101
|
-
const
|
|
1101
|
+
const f = o.replace(/\n+/g, `$&
|
|
1102
1102
|
${l}`);
|
|
1103
1103
|
if (s) {
|
|
1104
|
-
const m = (u) => u.default && u.tag !== "tag:yaml.org,2002:str" && u.test?.test(
|
|
1104
|
+
const m = (u) => u.default && u.tag !== "tag:yaml.org,2002:str" && u.test?.test(f), { compat: g, tags: y } = t.doc.schema;
|
|
1105
1105
|
if (y.some(m) || g?.some(m))
|
|
1106
|
-
return
|
|
1106
|
+
return oe(o, t);
|
|
1107
1107
|
}
|
|
1108
|
-
return a ?
|
|
1108
|
+
return a ? f : De(f, l, Gt, Fe(t, !1));
|
|
1109
1109
|
}
|
|
1110
|
-
function
|
|
1110
|
+
function ti(e, t, n, i) {
|
|
1111
1111
|
const { implicitKey: r, inFlow: o } = t, s = typeof e.value == "string" ? e : Object.assign({}, e, { value: String(e.value) });
|
|
1112
1112
|
let { type: a } = e;
|
|
1113
1113
|
a !== w.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value) && (a = w.QUOTE_DOUBLE);
|
|
@@ -1115,29 +1115,29 @@ function Hn(e, t, n, i) {
|
|
|
1115
1115
|
switch (d) {
|
|
1116
1116
|
case w.BLOCK_FOLDED:
|
|
1117
1117
|
case w.BLOCK_LITERAL:
|
|
1118
|
-
return r || o ?
|
|
1118
|
+
return r || o ? oe(s.value, t) : we(s, t, n, i);
|
|
1119
1119
|
case w.QUOTE_DOUBLE:
|
|
1120
|
-
return
|
|
1120
|
+
return ue(s.value, t);
|
|
1121
1121
|
case w.QUOTE_SINGLE:
|
|
1122
|
-
return
|
|
1122
|
+
return Qe(s.value, t);
|
|
1123
1123
|
case w.PLAIN:
|
|
1124
|
-
return
|
|
1124
|
+
return ei(s, t, n, i);
|
|
1125
1125
|
default:
|
|
1126
1126
|
return null;
|
|
1127
1127
|
}
|
|
1128
1128
|
};
|
|
1129
|
-
let
|
|
1130
|
-
if (
|
|
1131
|
-
const { defaultKeyType: d, defaultStringType:
|
|
1132
|
-
if (
|
|
1129
|
+
let c = l(a);
|
|
1130
|
+
if (c === null) {
|
|
1131
|
+
const { defaultKeyType: d, defaultStringType: f } = t.options, m = r && d || f;
|
|
1132
|
+
if (c = l(m), c === null)
|
|
1133
1133
|
throw new Error(`Unsupported default string type ${m}`);
|
|
1134
1134
|
}
|
|
1135
|
-
return
|
|
1135
|
+
return c;
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1137
|
+
function ni(e, t) {
|
|
1138
1138
|
const n = Object.assign({
|
|
1139
1139
|
blockQuote: !0,
|
|
1140
|
-
commentString:
|
|
1140
|
+
commentString: Hn,
|
|
1141
1141
|
defaultKeyType: null,
|
|
1142
1142
|
defaultStringType: "PLAIN",
|
|
1143
1143
|
directives: null,
|
|
@@ -1175,7 +1175,7 @@ function Zn(e, t) {
|
|
|
1175
1175
|
options: n
|
|
1176
1176
|
};
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1178
|
+
function ii(e, t) {
|
|
1179
1179
|
if (t.tag) {
|
|
1180
1180
|
const r = e.filter((o) => o.tag === t.tag);
|
|
1181
1181
|
if (r.length > 0)
|
|
@@ -1198,18 +1198,18 @@ function ei(e, t) {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
return n;
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function ri(e, t, { anchors: n, doc: i }) {
|
|
1202
1202
|
if (!i.directives)
|
|
1203
1203
|
return "";
|
|
1204
1204
|
const r = [], o = (I(e) || O(e)) && e.anchor;
|
|
1205
|
-
o &&
|
|
1205
|
+
o && Jt(o) && (n.add(o), r.push(`&${o}`));
|
|
1206
1206
|
const s = e.tag ?? (t.default ? null : t.tag);
|
|
1207
1207
|
return s && r.push(i.directives.tagString(s)), r.join(" ");
|
|
1208
1208
|
}
|
|
1209
1209
|
function Te(e, t, n, i) {
|
|
1210
1210
|
if (T(e))
|
|
1211
1211
|
return e.toString(t, n, i);
|
|
1212
|
-
if (
|
|
1212
|
+
if (H(e)) {
|
|
1213
1213
|
if (t.doc.directives)
|
|
1214
1214
|
return e.toString(t);
|
|
1215
1215
|
if (t.resolvedAliases?.has(e))
|
|
@@ -1218,102 +1218,102 @@ function Te(e, t, n, i) {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
let r;
|
|
1220
1220
|
const o = N(e) ? e : t.doc.createNode(e, { onTagObj: (l) => r = l });
|
|
1221
|
-
r ?? (r =
|
|
1222
|
-
const s =
|
|
1221
|
+
r ?? (r = ii(t.doc.schema.tags, o));
|
|
1222
|
+
const s = ri(o, r, t);
|
|
1223
1223
|
s.length > 0 && (t.indentAtStart = (t.indentAtStart ?? 0) + s.length + 1);
|
|
1224
|
-
const a = typeof r.stringify == "function" ? r.stringify(o, t, n, i) : I(o) ?
|
|
1224
|
+
const a = typeof r.stringify == "function" ? r.stringify(o, t, n, i) : I(o) ? ti(o, t, n, i) : o.toString(t, n, i);
|
|
1225
1225
|
return s ? I(o) || a[0] === "{" || a[0] === "[" ? `${s} ${a}` : `${s}
|
|
1226
1226
|
${t.indent}${a}` : a;
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1229
|
-
const { allNullValues: o, doc: s, indent: a, indentStep: l, options: { commentString:
|
|
1228
|
+
function oi({ key: e, value: t }, n, i, r) {
|
|
1229
|
+
const { allNullValues: o, doc: s, indent: a, indentStep: l, options: { commentString: c, indentSeq: d, simpleKeys: f } } = n;
|
|
1230
1230
|
let m = N(e) && e.comment || null;
|
|
1231
|
-
if (
|
|
1231
|
+
if (f) {
|
|
1232
1232
|
if (m)
|
|
1233
1233
|
throw new Error("With simple keys, key nodes cannot have comments");
|
|
1234
1234
|
if (O(e) || !N(e) && typeof e == "object") {
|
|
1235
|
-
const
|
|
1236
|
-
throw new Error(
|
|
1235
|
+
const C = "With simple keys, collection cannot be used as a key value";
|
|
1236
|
+
throw new Error(C);
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
|
-
let g = !
|
|
1239
|
+
let g = !f && (!e || m && t == null && !n.inFlow || O(e) || (I(e) ? e.type === w.BLOCK_FOLDED || e.type === w.BLOCK_LITERAL : typeof e == "object"));
|
|
1240
1240
|
n = Object.assign({}, n, {
|
|
1241
1241
|
allNullValues: !1,
|
|
1242
|
-
implicitKey: !g && (
|
|
1242
|
+
implicitKey: !g && (f || !o),
|
|
1243
1243
|
indent: a + l
|
|
1244
1244
|
});
|
|
1245
1245
|
let y = !1, u = !1, p = Te(e, n, () => y = !0, () => u = !0);
|
|
1246
1246
|
if (!g && !n.inFlow && p.length > 1024) {
|
|
1247
|
-
if (
|
|
1247
|
+
if (f)
|
|
1248
1248
|
throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
|
1249
1249
|
g = !0;
|
|
1250
1250
|
}
|
|
1251
1251
|
if (n.inFlow) {
|
|
1252
1252
|
if (o || t == null)
|
|
1253
1253
|
return y && i && i(), p === "" ? "?" : g ? `? ${p}` : p;
|
|
1254
|
-
} else if (o && !
|
|
1255
|
-
return p = `? ${p}`, m && !y ? p +=
|
|
1256
|
-
y && (m = null), g ? (m && (p +=
|
|
1257
|
-
${a}:`) : (p = `${p}:`, m && (p +=
|
|
1254
|
+
} else if (o && !f || t == null && g)
|
|
1255
|
+
return p = `? ${p}`, m && !y ? p += re(p, n.indent, c(m)) : u && r && r(), p;
|
|
1256
|
+
y && (m = null), g ? (m && (p += re(p, n.indent, c(m))), p = `? ${p}
|
|
1257
|
+
${a}:`) : (p = `${p}:`, m && (p += re(p, n.indent, c(m))));
|
|
1258
1258
|
let b, h, _;
|
|
1259
|
-
N(t) ? (b = !!t.spaceBefore, h = t.commentBefore, _ = t.comment) : (b = !1, h = null, _ = null, t && typeof t == "object" && (t = s.createNode(t))), n.implicitKey = !1, !g && !m && I(t) && (n.indentAtStart = p.length + 1), u = !1, !d && l.length >= 2 && !n.inFlow && !g &&
|
|
1259
|
+
N(t) ? (b = !!t.spaceBefore, h = t.commentBefore, _ = t.comment) : (b = !1, h = null, _ = null, t && typeof t == "object" && (t = s.createNode(t))), n.implicitKey = !1, !g && !m && I(t) && (n.indentAtStart = p.length + 1), u = !1, !d && l.length >= 2 && !n.inFlow && !g && ot(t) && !t.flow && !t.tag && !t.anchor && (n.indent = n.indent.substring(2));
|
|
1260
1260
|
let S = !1;
|
|
1261
1261
|
const k = Te(t, n, () => S = !0, () => u = !0);
|
|
1262
|
-
let
|
|
1262
|
+
let D = " ";
|
|
1263
1263
|
if (m || b || h) {
|
|
1264
|
-
if (
|
|
1264
|
+
if (D = b ? `
|
|
1265
1265
|
` : "", h) {
|
|
1266
|
-
const
|
|
1267
|
-
|
|
1268
|
-
${
|
|
1266
|
+
const C = c(h);
|
|
1267
|
+
D += `
|
|
1268
|
+
${de(C, n.indent)}`;
|
|
1269
1269
|
}
|
|
1270
|
-
k === "" && !n.inFlow ?
|
|
1271
|
-
` && _ && (
|
|
1270
|
+
k === "" && !n.inFlow ? D === `
|
|
1271
|
+
` && _ && (D = `
|
|
1272
1272
|
|
|
1273
|
-
`) :
|
|
1273
|
+
`) : D += `
|
|
1274
1274
|
${n.indent}`;
|
|
1275
1275
|
} else if (!g && O(t)) {
|
|
1276
|
-
const
|
|
1277
|
-
`),
|
|
1278
|
-
if (
|
|
1279
|
-
let
|
|
1280
|
-
if (
|
|
1281
|
-
let
|
|
1282
|
-
|
|
1276
|
+
const C = k[0], le = k.indexOf(`
|
|
1277
|
+
`), pt = le !== -1, yn = n.inFlow ?? t.flow ?? t.items.length === 0;
|
|
1278
|
+
if (pt || !yn) {
|
|
1279
|
+
let mt = !1;
|
|
1280
|
+
if (pt && (C === "&" || C === "!")) {
|
|
1281
|
+
let q = k.indexOf(" ");
|
|
1282
|
+
C === "&" && q !== -1 && q < le && k[q + 1] === "!" && (q = k.indexOf(" ", q + 1)), (q === -1 || le < q) && (mt = !0);
|
|
1283
1283
|
}
|
|
1284
|
-
|
|
1284
|
+
mt || (D = `
|
|
1285
1285
|
${n.indent}`);
|
|
1286
1286
|
}
|
|
1287
1287
|
} else (k === "" || k[0] === `
|
|
1288
|
-
`) && (
|
|
1289
|
-
return p +=
|
|
1288
|
+
`) && (D = "");
|
|
1289
|
+
return p += D + k, n.inFlow ? S && i && i() : _ && !S ? p += re(p, n.indent, c(_)) : u && r && r(), p;
|
|
1290
1290
|
}
|
|
1291
|
-
function
|
|
1291
|
+
function si(e, t) {
|
|
1292
1292
|
(e === "debug" || e === "warn") && console.warn(t);
|
|
1293
1293
|
}
|
|
1294
|
-
const
|
|
1295
|
-
identify: (e) => e ===
|
|
1294
|
+
const he = "<<", xe = {
|
|
1295
|
+
identify: (e) => e === he || typeof e == "symbol" && e.description === he,
|
|
1296
1296
|
default: "key",
|
|
1297
1297
|
tag: "tag:yaml.org,2002:merge",
|
|
1298
1298
|
test: /^<<$/,
|
|
1299
|
-
resolve: () => Object.assign(new w(Symbol(
|
|
1300
|
-
addToJSMap:
|
|
1299
|
+
resolve: () => Object.assign(new w(Symbol(he)), {
|
|
1300
|
+
addToJSMap: Qt
|
|
1301
1301
|
}),
|
|
1302
|
-
stringify: () =>
|
|
1303
|
-
},
|
|
1304
|
-
function
|
|
1305
|
-
if (n = e &&
|
|
1302
|
+
stringify: () => he
|
|
1303
|
+
}, ai = (e, t) => (xe.identify(t) || I(t) && (!t.type || t.type === w.PLAIN) && xe.identify(t.value)) && e?.doc.schema.tags.some((n) => n.tag === xe.tag && n.default);
|
|
1304
|
+
function Qt(e, t, n) {
|
|
1305
|
+
if (n = e && H(n) ? n.resolve(e.doc) : n, ot(n))
|
|
1306
1306
|
for (const i of n.items)
|
|
1307
|
-
|
|
1307
|
+
ze(e, t, i);
|
|
1308
1308
|
else if (Array.isArray(n))
|
|
1309
1309
|
for (const i of n)
|
|
1310
|
-
|
|
1310
|
+
ze(e, t, i);
|
|
1311
1311
|
else
|
|
1312
|
-
|
|
1312
|
+
ze(e, t, n);
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1315
|
-
const i = e &&
|
|
1316
|
-
if (!
|
|
1314
|
+
function ze(e, t, n) {
|
|
1315
|
+
const i = e && H(n) ? n.resolve(e.doc) : n;
|
|
1316
|
+
if (!Wt(i))
|
|
1317
1317
|
throw new Error("Merge sources must be maps or map aliases");
|
|
1318
1318
|
const r = i.toJSON(null, e, Map);
|
|
1319
1319
|
for (const [o, s] of r)
|
|
@@ -1325,19 +1325,19 @@ function Re(e, t, n) {
|
|
|
1325
1325
|
});
|
|
1326
1326
|
return t;
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1328
|
+
function Yt(e, t, { key: n, value: i }) {
|
|
1329
1329
|
if (N(n) && n.addToJSMap)
|
|
1330
1330
|
n.addToJSMap(e, t, i);
|
|
1331
|
-
else if (
|
|
1332
|
-
|
|
1331
|
+
else if (ai(e, n))
|
|
1332
|
+
Qt(e, t, i);
|
|
1333
1333
|
else {
|
|
1334
|
-
const r =
|
|
1334
|
+
const r = M(n, "", e);
|
|
1335
1335
|
if (t instanceof Map)
|
|
1336
|
-
t.set(r,
|
|
1336
|
+
t.set(r, M(i, r, e));
|
|
1337
1337
|
else if (t instanceof Set)
|
|
1338
1338
|
t.add(r);
|
|
1339
1339
|
else {
|
|
1340
|
-
const o =
|
|
1340
|
+
const o = li(n, r, e), s = M(i, o, e);
|
|
1341
1341
|
o in t ? Object.defineProperty(t, o, {
|
|
1342
1342
|
value: s,
|
|
1343
1343
|
writable: !0,
|
|
@@ -1348,13 +1348,13 @@ function Gt(e, t, { key: n, value: i }) {
|
|
|
1348
1348
|
}
|
|
1349
1349
|
return t;
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1351
|
+
function li(e, t, n) {
|
|
1352
1352
|
if (t === null)
|
|
1353
1353
|
return "";
|
|
1354
1354
|
if (typeof t != "object")
|
|
1355
1355
|
return String(t);
|
|
1356
1356
|
if (N(e) && n?.doc) {
|
|
1357
|
-
const i =
|
|
1357
|
+
const i = ni(n.doc, {});
|
|
1358
1358
|
i.anchors = /* @__PURE__ */ new Set();
|
|
1359
1359
|
for (const o of n.anchors.keys())
|
|
1360
1360
|
i.anchors.add(o.anchor);
|
|
@@ -1362,51 +1362,51 @@ function oi(e, t, n) {
|
|
|
1362
1362
|
const r = e.toString(i);
|
|
1363
1363
|
if (!n.mapKeyWarned) {
|
|
1364
1364
|
let o = JSON.stringify(r);
|
|
1365
|
-
o.length > 40 && (o = o.substring(0, 36) + '..."'),
|
|
1365
|
+
o.length > 40 && (o = o.substring(0, 36) + '..."'), si(n.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${o}. Set mapAsMap: true to use object keys.`), n.mapKeyWarned = !0;
|
|
1366
1366
|
}
|
|
1367
1367
|
return r;
|
|
1368
1368
|
}
|
|
1369
1369
|
return JSON.stringify(t);
|
|
1370
1370
|
}
|
|
1371
|
-
function
|
|
1371
|
+
function at(e, t, n) {
|
|
1372
1372
|
const i = Ie(e, void 0, n), r = Ie(t, void 0, n);
|
|
1373
|
-
return new
|
|
1373
|
+
return new z(i, r);
|
|
1374
1374
|
}
|
|
1375
|
-
class
|
|
1375
|
+
class z {
|
|
1376
1376
|
constructor(t, n = null) {
|
|
1377
|
-
Object.defineProperty(this,
|
|
1377
|
+
Object.defineProperty(this, R, { value: Vt }), this.key = t, this.value = n;
|
|
1378
1378
|
}
|
|
1379
1379
|
clone(t) {
|
|
1380
1380
|
let { key: n, value: i } = this;
|
|
1381
|
-
return N(n) && (n = n.clone(t)), N(i) && (i = i.clone(t)), new
|
|
1381
|
+
return N(n) && (n = n.clone(t)), N(i) && (i = i.clone(t)), new z(n, i);
|
|
1382
1382
|
}
|
|
1383
1383
|
toJSON(t, n) {
|
|
1384
1384
|
const i = n?.mapAsMap ? /* @__PURE__ */ new Map() : {};
|
|
1385
|
-
return
|
|
1385
|
+
return Yt(n, i, this);
|
|
1386
1386
|
}
|
|
1387
1387
|
toString(t, n, i) {
|
|
1388
|
-
return t?.doc ?
|
|
1388
|
+
return t?.doc ? oi(this, t, n, i) : JSON.stringify(this);
|
|
1389
1389
|
}
|
|
1390
1390
|
}
|
|
1391
|
-
function
|
|
1392
|
-
return (t.inFlow ?? e.flow ?
|
|
1391
|
+
function Xt(e, t, n) {
|
|
1392
|
+
return (t.inFlow ?? e.flow ? fi : ci)(e, t, n);
|
|
1393
1393
|
}
|
|
1394
|
-
function
|
|
1395
|
-
const { indent: l, options: { commentString:
|
|
1396
|
-
let
|
|
1394
|
+
function ci({ comment: e, items: t }, n, { blockItemPrefix: i, flowChars: r, itemIndent: o, onChompKeep: s, onComment: a }) {
|
|
1395
|
+
const { indent: l, options: { commentString: c } } = n, d = Object.assign({}, n, { indent: o, type: null });
|
|
1396
|
+
let f = !1;
|
|
1397
1397
|
const m = [];
|
|
1398
1398
|
for (let y = 0; y < t.length; ++y) {
|
|
1399
1399
|
const u = t[y];
|
|
1400
1400
|
let p = null;
|
|
1401
1401
|
if (N(u))
|
|
1402
|
-
!
|
|
1402
|
+
!f && u.spaceBefore && m.push(""), Ne(n, m, u.commentBefore, f), u.comment && (p = u.comment);
|
|
1403
1403
|
else if (T(u)) {
|
|
1404
1404
|
const h = N(u.key) ? u.key : null;
|
|
1405
|
-
h && (!
|
|
1405
|
+
h && (!f && h.spaceBefore && m.push(""), Ne(n, m, h.commentBefore, f));
|
|
1406
1406
|
}
|
|
1407
|
-
|
|
1408
|
-
let b = Te(u, d, () => p = null, () =>
|
|
1409
|
-
p && (b +=
|
|
1407
|
+
f = !1;
|
|
1408
|
+
let b = Te(u, d, () => p = null, () => f = !0);
|
|
1409
|
+
p && (b += re(b, o, c(p))), f && p && (f = !1), m.push(i + b);
|
|
1410
1410
|
}
|
|
1411
1411
|
let g;
|
|
1412
1412
|
if (m.length === 0)
|
|
@@ -1421,9 +1421,9 @@ ${l}${u}` : `
|
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
1423
1423
|
return e ? (g += `
|
|
1424
|
-
` +
|
|
1424
|
+
` + de(c(e), l), a && a()) : f && s && s(), g;
|
|
1425
1425
|
}
|
|
1426
|
-
function
|
|
1426
|
+
function fi({ items: e }, t, { flowChars: n, itemIndent: i }) {
|
|
1427
1427
|
const { indent: r, indentStep: o, flowCollectionPadding: s, options: { commentString: a } } = t;
|
|
1428
1428
|
i += o;
|
|
1429
1429
|
const l = Object.assign({}, t, {
|
|
@@ -1431,76 +1431,76 @@ function ai({ items: e }, t, { flowChars: n, itemIndent: i }) {
|
|
|
1431
1431
|
inFlow: !0,
|
|
1432
1432
|
type: null
|
|
1433
1433
|
});
|
|
1434
|
-
let
|
|
1435
|
-
const
|
|
1434
|
+
let c = !1, d = 0;
|
|
1435
|
+
const f = [];
|
|
1436
1436
|
for (let y = 0; y < e.length; ++y) {
|
|
1437
1437
|
const u = e[y];
|
|
1438
1438
|
let p = null;
|
|
1439
1439
|
if (N(u))
|
|
1440
|
-
u.spaceBefore &&
|
|
1440
|
+
u.spaceBefore && f.push(""), Ne(t, f, u.commentBefore, !1), u.comment && (p = u.comment);
|
|
1441
1441
|
else if (T(u)) {
|
|
1442
1442
|
const h = N(u.key) ? u.key : null;
|
|
1443
|
-
h && (h.spaceBefore &&
|
|
1443
|
+
h && (h.spaceBefore && f.push(""), Ne(t, f, h.commentBefore, !1), h.comment && (c = !0));
|
|
1444
1444
|
const _ = N(u.value) ? u.value : null;
|
|
1445
|
-
_ ? (_.comment && (p = _.comment), _.commentBefore && (
|
|
1445
|
+
_ ? (_.comment && (p = _.comment), _.commentBefore && (c = !0)) : u.value == null && h?.comment && (p = h.comment);
|
|
1446
1446
|
}
|
|
1447
|
-
p && (
|
|
1447
|
+
p && (c = !0);
|
|
1448
1448
|
let b = Te(u, l, () => p = null);
|
|
1449
|
-
y < e.length - 1 && (b += ","), p && (b +=
|
|
1450
|
-
`)) && (
|
|
1449
|
+
y < e.length - 1 && (b += ","), p && (b += re(b, i, a(p))), !c && (f.length > d || b.includes(`
|
|
1450
|
+
`)) && (c = !0), f.push(b), d = f.length;
|
|
1451
1451
|
}
|
|
1452
1452
|
const { start: m, end: g } = n;
|
|
1453
|
-
if (
|
|
1453
|
+
if (f.length === 0)
|
|
1454
1454
|
return m + g;
|
|
1455
|
-
if (!
|
|
1456
|
-
const y =
|
|
1457
|
-
|
|
1455
|
+
if (!c) {
|
|
1456
|
+
const y = f.reduce((u, p) => u + p.length + 2, 2);
|
|
1457
|
+
c = t.options.lineWidth > 0 && y > t.options.lineWidth;
|
|
1458
1458
|
}
|
|
1459
|
-
if (
|
|
1459
|
+
if (c) {
|
|
1460
1460
|
let y = m;
|
|
1461
|
-
for (const u of
|
|
1461
|
+
for (const u of f)
|
|
1462
1462
|
y += u ? `
|
|
1463
1463
|
${o}${r}${u}` : `
|
|
1464
1464
|
`;
|
|
1465
1465
|
return `${y}
|
|
1466
1466
|
${r}${g}`;
|
|
1467
1467
|
} else
|
|
1468
|
-
return `${m}${s}${
|
|
1468
|
+
return `${m}${s}${f.join(" ")}${s}${g}`;
|
|
1469
1469
|
}
|
|
1470
1470
|
function Ne({ indent: e, options: { commentString: t } }, n, i, r) {
|
|
1471
1471
|
if (i && r && (i = i.replace(/^\n+/, "")), i) {
|
|
1472
|
-
const o =
|
|
1472
|
+
const o = de(t(i), e);
|
|
1473
1473
|
n.push(o.trimStart());
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
|
-
function
|
|
1476
|
+
function U(e, t) {
|
|
1477
1477
|
const n = I(t) ? t.value : t;
|
|
1478
1478
|
for (const i of e)
|
|
1479
1479
|
if (T(i) && (i.key === t || i.key === n || I(i.key) && i.key.value === n))
|
|
1480
1480
|
return i;
|
|
1481
1481
|
}
|
|
1482
|
-
class
|
|
1482
|
+
class te extends Ut {
|
|
1483
1483
|
static get tagName() {
|
|
1484
1484
|
return "tag:yaml.org,2002:map";
|
|
1485
1485
|
}
|
|
1486
1486
|
constructor(t) {
|
|
1487
|
-
super(
|
|
1487
|
+
super(Q, t), this.items = [];
|
|
1488
1488
|
}
|
|
1489
1489
|
/**
|
|
1490
1490
|
* A generic collection parsing method that can be extended
|
|
1491
1491
|
* to other node classes that inherit from YAMLMap
|
|
1492
1492
|
*/
|
|
1493
1493
|
static from(t, n, i) {
|
|
1494
|
-
const { keepUndefined: r, replacer: o } = i, s = new this(t), a = (l,
|
|
1494
|
+
const { keepUndefined: r, replacer: o } = i, s = new this(t), a = (l, c) => {
|
|
1495
1495
|
if (typeof o == "function")
|
|
1496
|
-
|
|
1496
|
+
c = o.call(n, l, c);
|
|
1497
1497
|
else if (Array.isArray(o) && !o.includes(l))
|
|
1498
1498
|
return;
|
|
1499
|
-
(
|
|
1499
|
+
(c !== void 0 || r) && s.items.push(at(l, c, i));
|
|
1500
1500
|
};
|
|
1501
1501
|
if (n instanceof Map)
|
|
1502
|
-
for (const [l,
|
|
1503
|
-
a(l,
|
|
1502
|
+
for (const [l, c] of n)
|
|
1503
|
+
a(l, c);
|
|
1504
1504
|
else if (n && typeof n == "object")
|
|
1505
1505
|
for (const l of Object.keys(n))
|
|
1506
1506
|
a(l, n[l]);
|
|
@@ -1514,12 +1514,12 @@ class X extends qt {
|
|
|
1514
1514
|
*/
|
|
1515
1515
|
add(t, n) {
|
|
1516
1516
|
let i;
|
|
1517
|
-
T(t) ? i = t : !t || typeof t != "object" || !("key" in t) ? i = new
|
|
1518
|
-
const r =
|
|
1517
|
+
T(t) ? i = t : !t || typeof t != "object" || !("key" in t) ? i = new z(t, t?.value) : i = new z(t.key, t.value);
|
|
1518
|
+
const r = U(this.items, i.key), o = this.schema?.sortMapEntries;
|
|
1519
1519
|
if (r) {
|
|
1520
1520
|
if (!n)
|
|
1521
1521
|
throw new Error(`Key ${i.key} already set`);
|
|
1522
|
-
I(r.value) &&
|
|
1522
|
+
I(r.value) && Kt(i.value) ? r.value.value = i.value : r.value = i.value;
|
|
1523
1523
|
} else if (o) {
|
|
1524
1524
|
const s = this.items.findIndex((a) => o(i, a) < 0);
|
|
1525
1525
|
s === -1 ? this.items.push(i) : this.items.splice(s, 0, i);
|
|
@@ -1527,18 +1527,18 @@ class X extends qt {
|
|
|
1527
1527
|
this.items.push(i);
|
|
1528
1528
|
}
|
|
1529
1529
|
delete(t) {
|
|
1530
|
-
const n =
|
|
1530
|
+
const n = U(this.items, t);
|
|
1531
1531
|
return n ? this.items.splice(this.items.indexOf(n), 1).length > 0 : !1;
|
|
1532
1532
|
}
|
|
1533
1533
|
get(t, n) {
|
|
1534
|
-
const r =
|
|
1534
|
+
const r = U(this.items, t)?.value;
|
|
1535
1535
|
return (!n && I(r) ? r.value : r) ?? void 0;
|
|
1536
1536
|
}
|
|
1537
1537
|
has(t) {
|
|
1538
|
-
return !!
|
|
1538
|
+
return !!U(this.items, t);
|
|
1539
1539
|
}
|
|
1540
1540
|
set(t, n) {
|
|
1541
|
-
this.add(new
|
|
1541
|
+
this.add(new z(t, n), !0);
|
|
1542
1542
|
}
|
|
1543
1543
|
/**
|
|
1544
1544
|
* @param ctx - Conversion context, originally set in Document#toJS()
|
|
@@ -1549,7 +1549,7 @@ class X extends qt {
|
|
|
1549
1549
|
const r = i ? new i() : n?.mapAsMap ? /* @__PURE__ */ new Map() : {};
|
|
1550
1550
|
n?.onCreate && n.onCreate(r);
|
|
1551
1551
|
for (const o of this.items)
|
|
1552
|
-
|
|
1552
|
+
Yt(n, r, o);
|
|
1553
1553
|
return r;
|
|
1554
1554
|
}
|
|
1555
1555
|
toString(t, n, i) {
|
|
@@ -1558,7 +1558,7 @@ class X extends qt {
|
|
|
1558
1558
|
for (const r of this.items)
|
|
1559
1559
|
if (!T(r))
|
|
1560
1560
|
throw new Error(`Map items must all be pairs; found ${JSON.stringify(r)} instead`);
|
|
1561
|
-
return !t.allNullValues && this.hasAllNullValues(!1) && (t = Object.assign({}, t, { allNullValues: !0 })),
|
|
1561
|
+
return !t.allNullValues && this.hasAllNullValues(!1) && (t = Object.assign({}, t, { allNullValues: !0 })), Xt(this, t, {
|
|
1562
1562
|
blockItemPrefix: "",
|
|
1563
1563
|
flowChars: { start: "{", end: "}" },
|
|
1564
1564
|
itemIndent: t.indent || "",
|
|
@@ -1567,12 +1567,12 @@ class X extends qt {
|
|
|
1567
1567
|
});
|
|
1568
1568
|
}
|
|
1569
1569
|
}
|
|
1570
|
-
class
|
|
1570
|
+
class Ht extends Ut {
|
|
1571
1571
|
static get tagName() {
|
|
1572
1572
|
return "tag:yaml.org,2002:seq";
|
|
1573
1573
|
}
|
|
1574
1574
|
constructor(t) {
|
|
1575
|
-
super(
|
|
1575
|
+
super(me, t), this.items = [];
|
|
1576
1576
|
}
|
|
1577
1577
|
add(t) {
|
|
1578
1578
|
this.items.push(t);
|
|
@@ -1586,11 +1586,11 @@ class Yt extends qt {
|
|
|
1586
1586
|
* @returns `true` if the item was found and removed.
|
|
1587
1587
|
*/
|
|
1588
1588
|
delete(t) {
|
|
1589
|
-
const n =
|
|
1589
|
+
const n = be(t);
|
|
1590
1590
|
return typeof n != "number" ? !1 : this.items.splice(n, 1).length > 0;
|
|
1591
1591
|
}
|
|
1592
1592
|
get(t, n) {
|
|
1593
|
-
const i =
|
|
1593
|
+
const i = be(t);
|
|
1594
1594
|
if (typeof i != "number")
|
|
1595
1595
|
return;
|
|
1596
1596
|
const r = this.items[i];
|
|
@@ -1603,7 +1603,7 @@ class Yt extends qt {
|
|
|
1603
1603
|
* It may be wrapped in a `Scalar`.
|
|
1604
1604
|
*/
|
|
1605
1605
|
has(t) {
|
|
1606
|
-
const n =
|
|
1606
|
+
const n = be(t);
|
|
1607
1607
|
return typeof n == "number" && n < this.items.length;
|
|
1608
1608
|
}
|
|
1609
1609
|
/**
|
|
@@ -1614,22 +1614,22 @@ class Yt extends qt {
|
|
|
1614
1614
|
* It may be wrapped in a `Scalar`.
|
|
1615
1615
|
*/
|
|
1616
1616
|
set(t, n) {
|
|
1617
|
-
const i =
|
|
1617
|
+
const i = be(t);
|
|
1618
1618
|
if (typeof i != "number")
|
|
1619
1619
|
throw new Error(`Expected a valid index, not ${t}.`);
|
|
1620
1620
|
const r = this.items[i];
|
|
1621
|
-
I(r) &&
|
|
1621
|
+
I(r) && Kt(n) ? r.value = n : this.items[i] = n;
|
|
1622
1622
|
}
|
|
1623
1623
|
toJSON(t, n) {
|
|
1624
1624
|
const i = [];
|
|
1625
1625
|
n?.onCreate && n.onCreate(i);
|
|
1626
1626
|
let r = 0;
|
|
1627
1627
|
for (const o of this.items)
|
|
1628
|
-
i.push(
|
|
1628
|
+
i.push(M(o, String(r++), n));
|
|
1629
1629
|
return i;
|
|
1630
1630
|
}
|
|
1631
1631
|
toString(t, n, i) {
|
|
1632
|
-
return t ?
|
|
1632
|
+
return t ? Xt(this, t, {
|
|
1633
1633
|
blockItemPrefix: "- ",
|
|
1634
1634
|
flowChars: { start: "[", end: "]" },
|
|
1635
1635
|
itemIndent: (t.indent || "") + " ",
|
|
@@ -1652,12 +1652,12 @@ class Yt extends qt {
|
|
|
1652
1652
|
return o;
|
|
1653
1653
|
}
|
|
1654
1654
|
}
|
|
1655
|
-
function
|
|
1655
|
+
function be(e) {
|
|
1656
1656
|
let t = I(e) ? e.value : e;
|
|
1657
1657
|
return t && typeof t == "string" && (t = Number(t)), typeof t == "number" && Number.isInteger(t) && t >= 0 ? t : null;
|
|
1658
1658
|
}
|
|
1659
|
-
function
|
|
1660
|
-
const { replacer: i } = n, r = new
|
|
1659
|
+
function ui(e, t, n) {
|
|
1660
|
+
const { replacer: i } = n, r = new Ht(e);
|
|
1661
1661
|
r.tag = "tag:yaml.org,2002:pairs";
|
|
1662
1662
|
let o = 0;
|
|
1663
1663
|
if (t && Symbol.iterator in Object(t))
|
|
@@ -1670,20 +1670,20 @@ function li(e, t, n) {
|
|
|
1670
1670
|
else
|
|
1671
1671
|
throw new TypeError(`Expected [key, value] tuple: ${s}`);
|
|
1672
1672
|
else if (s && s instanceof Object) {
|
|
1673
|
-
const
|
|
1674
|
-
if (
|
|
1675
|
-
a =
|
|
1673
|
+
const c = Object.keys(s);
|
|
1674
|
+
if (c.length === 1)
|
|
1675
|
+
a = c[0], l = s[a];
|
|
1676
1676
|
else
|
|
1677
|
-
throw new TypeError(`Expected tuple with one key, not ${
|
|
1677
|
+
throw new TypeError(`Expected tuple with one key, not ${c.length} keys`);
|
|
1678
1678
|
} else
|
|
1679
1679
|
a = s;
|
|
1680
|
-
r.items.push(
|
|
1680
|
+
r.items.push(at(a, l, n));
|
|
1681
1681
|
}
|
|
1682
1682
|
return r;
|
|
1683
1683
|
}
|
|
1684
|
-
class
|
|
1684
|
+
class lt extends Ht {
|
|
1685
1685
|
constructor() {
|
|
1686
|
-
super(), this.add =
|
|
1686
|
+
super(), this.add = te.prototype.add.bind(this), this.delete = te.prototype.delete.bind(this), this.get = te.prototype.get.bind(this), this.has = te.prototype.has.bind(this), this.set = te.prototype.set.bind(this), this.tag = lt.tag;
|
|
1687
1687
|
}
|
|
1688
1688
|
/**
|
|
1689
1689
|
* If `ctx` is given, the return type is actually `Map<unknown, unknown>`,
|
|
@@ -1696,39 +1696,39 @@ class st extends Yt {
|
|
|
1696
1696
|
n?.onCreate && n.onCreate(i);
|
|
1697
1697
|
for (const r of this.items) {
|
|
1698
1698
|
let o, s;
|
|
1699
|
-
if (T(r) ? (o =
|
|
1699
|
+
if (T(r) ? (o = M(r.key, "", n), s = M(r.value, o, n)) : o = M(r, "", n), i.has(o))
|
|
1700
1700
|
throw new Error("Ordered maps must not include duplicate keys");
|
|
1701
1701
|
i.set(o, s);
|
|
1702
1702
|
}
|
|
1703
1703
|
return i;
|
|
1704
1704
|
}
|
|
1705
1705
|
static from(t, n, i) {
|
|
1706
|
-
const r =
|
|
1706
|
+
const r = ui(t, n, i), o = new this();
|
|
1707
1707
|
return o.items = r.items, o;
|
|
1708
1708
|
}
|
|
1709
1709
|
}
|
|
1710
|
-
|
|
1711
|
-
class
|
|
1710
|
+
lt.tag = "tag:yaml.org,2002:omap";
|
|
1711
|
+
class ct extends te {
|
|
1712
1712
|
constructor(t) {
|
|
1713
|
-
super(t), this.tag =
|
|
1713
|
+
super(t), this.tag = ct.tag;
|
|
1714
1714
|
}
|
|
1715
1715
|
add(t) {
|
|
1716
1716
|
let n;
|
|
1717
|
-
T(t) ? n = t : t && typeof t == "object" && "key" in t && "value" in t && t.value === null ? n = new
|
|
1717
|
+
T(t) ? n = t : t && typeof t == "object" && "key" in t && "value" in t && t.value === null ? n = new z(t.key, null) : n = new z(t, null), U(this.items, n.key) || this.items.push(n);
|
|
1718
1718
|
}
|
|
1719
1719
|
/**
|
|
1720
1720
|
* If `keepPair` is `true`, returns the Pair matching `key`.
|
|
1721
1721
|
* Otherwise, returns the value of that Pair's key.
|
|
1722
1722
|
*/
|
|
1723
1723
|
get(t, n) {
|
|
1724
|
-
const i =
|
|
1724
|
+
const i = U(this.items, t);
|
|
1725
1725
|
return !n && T(i) ? I(i.key) ? i.key.value : i.key : i;
|
|
1726
1726
|
}
|
|
1727
1727
|
set(t, n) {
|
|
1728
1728
|
if (typeof n != "boolean")
|
|
1729
1729
|
throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);
|
|
1730
|
-
const i =
|
|
1731
|
-
i && !n ? this.items.splice(this.items.indexOf(i), 1) : !i && n && this.items.push(new
|
|
1730
|
+
const i = U(this.items, t);
|
|
1731
|
+
i && !n ? this.items.splice(this.items.indexOf(i), 1) : !i && n && this.items.push(new z(t));
|
|
1732
1732
|
}
|
|
1733
1733
|
toJSON(t, n) {
|
|
1734
1734
|
return super.toJSON(t, n, Set);
|
|
@@ -1744,25 +1744,25 @@ class at extends X {
|
|
|
1744
1744
|
const { replacer: r } = i, o = new this(t);
|
|
1745
1745
|
if (n && Symbol.iterator in Object(n))
|
|
1746
1746
|
for (let s of n)
|
|
1747
|
-
typeof r == "function" && (s = r.call(n, s, s)), o.items.push(
|
|
1747
|
+
typeof r == "function" && (s = r.call(n, s, s)), o.items.push(at(s, null, i));
|
|
1748
1748
|
return o;
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
|
-
|
|
1751
|
+
ct.tag = "tag:yaml.org,2002:set";
|
|
1752
1752
|
new Set("0123456789ABCDEFabcdef");
|
|
1753
1753
|
new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");
|
|
1754
1754
|
new Set(",[]{}");
|
|
1755
1755
|
new Set(` ,[]{}
|
|
1756
1756
|
\r `);
|
|
1757
|
-
var
|
|
1758
|
-
function
|
|
1757
|
+
var Y = 1e6, At = 1e6, ge = "[big.js] ", ye = ge + "Invalid ", Ce = ye + "decimal places", di = ye + "rounding mode", Zt = ge + "Division by zero", A = {}, B = void 0;
|
|
1758
|
+
function Z(e, t, n, i) {
|
|
1759
1759
|
var r = e.c;
|
|
1760
|
-
if (n ===
|
|
1761
|
-
throw Error(
|
|
1760
|
+
if (n === B && (n = e.constructor.RM), n !== 0 && n !== 1 && n !== 2 && n !== 3)
|
|
1761
|
+
throw Error(di);
|
|
1762
1762
|
if (t < 1)
|
|
1763
|
-
i = n === 3 && (i || !!r[0]) || t === 0 && (n === 1 && r[0] >= 5 || n === 2 && (r[0] > 5 || r[0] === 5 && (i || r[1] !==
|
|
1763
|
+
i = n === 3 && (i || !!r[0]) || t === 0 && (n === 1 && r[0] >= 5 || n === 2 && (r[0] > 5 || r[0] === 5 && (i || r[1] !== B))), r.length = 1, i ? (e.e = e.e - t + 1, r[0] = 1) : r[0] = e.e = 0;
|
|
1764
1764
|
else if (t < r.length) {
|
|
1765
|
-
if (i = n === 1 && r[t] >= 5 || n === 2 && (r[t] > 5 || r[t] === 5 && (i || r[t + 1] !==
|
|
1765
|
+
if (i = n === 1 && r[t] >= 5 || n === 2 && (r[t] > 5 || r[t] === 5 && (i || r[t + 1] !== B || r[t - 1] & 1)) || n === 3 && (i || !!r[0]), r.length = t, i) {
|
|
1766
1766
|
for (; ++r[--t] > 9; )
|
|
1767
1767
|
if (r[t] = 0, t === 0) {
|
|
1768
1768
|
++e.e, r.unshift(1);
|
|
@@ -1773,7 +1773,7 @@ function Q(e, t, n, i) {
|
|
|
1773
1773
|
}
|
|
1774
1774
|
return e;
|
|
1775
1775
|
}
|
|
1776
|
-
function
|
|
1776
|
+
function ee(e, t, n) {
|
|
1777
1777
|
var i = e.e, r = e.c.join(""), o = r.length;
|
|
1778
1778
|
if (t)
|
|
1779
1779
|
r = r.charAt(0) + (o > 1 ? "." + r.slice(1) : "") + (i < 0 ? "e" : "e+") + i;
|
|
@@ -1802,29 +1802,29 @@ A.cmp = function(e) {
|
|
|
1802
1802
|
};
|
|
1803
1803
|
A.div = function(e) {
|
|
1804
1804
|
var t = this, n = t.constructor, i = t.c, r = (e = new n(e)).c, o = t.s == e.s ? 1 : -1, s = n.DP;
|
|
1805
|
-
if (s !== ~~s || s < 0 || s >
|
|
1805
|
+
if (s !== ~~s || s < 0 || s > Y)
|
|
1806
1806
|
throw Error(Ce);
|
|
1807
1807
|
if (!r[0])
|
|
1808
|
-
throw Error(
|
|
1808
|
+
throw Error(Zt);
|
|
1809
1809
|
if (!i[0])
|
|
1810
1810
|
return e.s = o, e.c = [e.e = 0], e;
|
|
1811
|
-
var a, l,
|
|
1811
|
+
var a, l, c, d, f, m = r.slice(), g = a = r.length, y = i.length, u = i.slice(0, a), p = u.length, b = e, h = b.c = [], _ = 0, S = s + (b.e = t.e - e.e) + 1;
|
|
1812
1812
|
for (b.s = o, o = S < 0 ? 0 : S, m.unshift(0); p++ < a; ) u.push(0);
|
|
1813
1813
|
do {
|
|
1814
|
-
for (
|
|
1814
|
+
for (c = 0; c < 10; c++) {
|
|
1815
1815
|
if (a != (p = u.length))
|
|
1816
1816
|
d = a > p ? 1 : -1;
|
|
1817
1817
|
else
|
|
1818
|
-
for (
|
|
1819
|
-
if (r[
|
|
1820
|
-
d = r[
|
|
1818
|
+
for (f = -1, d = 0; ++f < a; )
|
|
1819
|
+
if (r[f] != u[f]) {
|
|
1820
|
+
d = r[f] > u[f] ? 1 : -1;
|
|
1821
1821
|
break;
|
|
1822
1822
|
}
|
|
1823
1823
|
if (d < 0) {
|
|
1824
1824
|
for (l = p == a ? r : m; p; ) {
|
|
1825
1825
|
if (u[--p] < l[p]) {
|
|
1826
|
-
for (
|
|
1827
|
-
--u[
|
|
1826
|
+
for (f = p; f && !u[--f]; ) u[f] = 9;
|
|
1827
|
+
--u[f], u[p] += 10;
|
|
1828
1828
|
}
|
|
1829
1829
|
u[p] -= l[p];
|
|
1830
1830
|
}
|
|
@@ -1832,9 +1832,9 @@ A.div = function(e) {
|
|
|
1832
1832
|
} else
|
|
1833
1833
|
break;
|
|
1834
1834
|
}
|
|
1835
|
-
h[_++] = d ?
|
|
1836
|
-
} while ((g++ < y || u[0] !==
|
|
1837
|
-
return !h[0] && _ != 1 && (h.shift(), b.e--, S--), _ > S &&
|
|
1835
|
+
h[_++] = d ? c : ++c, u[0] && d ? u[p] = i[g] || 0 : u = [i[g]];
|
|
1836
|
+
} while ((g++ < y || u[0] !== B) && o--);
|
|
1837
|
+
return !h[0] && _ != 1 && (h.shift(), b.e--, S--), _ > S && Z(b, S, n.RM, u[0] !== B), b;
|
|
1838
1838
|
};
|
|
1839
1839
|
A.eq = function(e) {
|
|
1840
1840
|
return this.cmp(e) === 0;
|
|
@@ -1855,35 +1855,35 @@ A.minus = A.sub = function(e) {
|
|
|
1855
1855
|
var t, n, i, r, o = this, s = o.constructor, a = o.s, l = (e = new s(e)).s;
|
|
1856
1856
|
if (a != l)
|
|
1857
1857
|
return e.s = -l, o.plus(e);
|
|
1858
|
-
var
|
|
1859
|
-
if (!
|
|
1860
|
-
return
|
|
1858
|
+
var c = o.c.slice(), d = o.e, f = e.c, m = e.e;
|
|
1859
|
+
if (!c[0] || !f[0])
|
|
1860
|
+
return f[0] ? e.s = -l : c[0] ? e = new s(o) : e.s = 1, e;
|
|
1861
1861
|
if (a = d - m) {
|
|
1862
|
-
for ((r = a < 0) ? (a = -a, i =
|
|
1862
|
+
for ((r = a < 0) ? (a = -a, i = c) : (m = d, i = f), i.reverse(), l = a; l--; ) i.push(0);
|
|
1863
1863
|
i.reverse();
|
|
1864
1864
|
} else
|
|
1865
|
-
for (n = ((r =
|
|
1866
|
-
if (
|
|
1867
|
-
r =
|
|
1865
|
+
for (n = ((r = c.length < f.length) ? c : f).length, a = l = 0; l < n; l++)
|
|
1866
|
+
if (c[l] != f[l]) {
|
|
1867
|
+
r = c[l] < f[l];
|
|
1868
1868
|
break;
|
|
1869
1869
|
}
|
|
1870
|
-
if (r && (i =
|
|
1870
|
+
if (r && (i = c, c = f, f = i, e.s = -e.s), (l = (n = f.length) - (t = c.length)) > 0) for (; l--; ) c[t++] = 0;
|
|
1871
1871
|
for (l = t; n > a; ) {
|
|
1872
|
-
if (
|
|
1873
|
-
for (t = n; t && !
|
|
1874
|
-
--
|
|
1872
|
+
if (c[--n] < f[n]) {
|
|
1873
|
+
for (t = n; t && !c[--t]; ) c[t] = 9;
|
|
1874
|
+
--c[t], c[n] += 10;
|
|
1875
1875
|
}
|
|
1876
|
-
|
|
1876
|
+
c[n] -= f[n];
|
|
1877
1877
|
}
|
|
1878
|
-
for (;
|
|
1879
|
-
for (;
|
|
1880
|
-
|
|
1881
|
-
return
|
|
1878
|
+
for (; c[--l] === 0; ) c.pop();
|
|
1879
|
+
for (; c[0] === 0; )
|
|
1880
|
+
c.shift(), --m;
|
|
1881
|
+
return c[0] || (e.s = 1, c = [m = 0]), e.c = c, e.e = m, e;
|
|
1882
1882
|
};
|
|
1883
1883
|
A.mod = function(e) {
|
|
1884
1884
|
var t, n = this, i = n.constructor, r = n.s, o = (e = new i(e)).s;
|
|
1885
1885
|
if (!e.c[0])
|
|
1886
|
-
throw Error(
|
|
1886
|
+
throw Error(Zt);
|
|
1887
1887
|
return n.s = e.s = 1, t = e.cmp(n) == 1, n.s = r, e.s = o, t ? new i(n) : (r = i.DP, o = i.RM, i.DP = i.RM = 0, n = n.div(e), i.DP = r, i.RM = o, this.minus(n.times(e)));
|
|
1888
1888
|
};
|
|
1889
1889
|
A.neg = function() {
|
|
@@ -1894,104 +1894,104 @@ A.plus = A.add = function(e) {
|
|
|
1894
1894
|
var t, n, i, r = this, o = r.constructor;
|
|
1895
1895
|
if (e = new o(e), r.s != e.s)
|
|
1896
1896
|
return e.s = -e.s, r.minus(e);
|
|
1897
|
-
var s = r.e, a = r.c, l = e.e,
|
|
1898
|
-
if (!a[0] || !
|
|
1899
|
-
return
|
|
1897
|
+
var s = r.e, a = r.c, l = e.e, c = e.c;
|
|
1898
|
+
if (!a[0] || !c[0])
|
|
1899
|
+
return c[0] || (a[0] ? e = new o(r) : e.s = r.s), e;
|
|
1900
1900
|
if (a = a.slice(), t = s - l) {
|
|
1901
|
-
for (t > 0 ? (l = s, i =
|
|
1901
|
+
for (t > 0 ? (l = s, i = c) : (t = -t, i = a), i.reverse(); t--; ) i.push(0);
|
|
1902
1902
|
i.reverse();
|
|
1903
1903
|
}
|
|
1904
|
-
for (a.length -
|
|
1904
|
+
for (a.length - c.length < 0 && (i = c, c = a, a = i), t = c.length, n = 0; t; a[t] %= 10) n = (a[--t] = a[t] + c[t] + n) / 10 | 0;
|
|
1905
1905
|
for (n && (a.unshift(n), ++l), t = a.length; a[--t] === 0; ) a.pop();
|
|
1906
1906
|
return e.c = a, e.e = l, e;
|
|
1907
1907
|
};
|
|
1908
1908
|
A.pow = function(e) {
|
|
1909
1909
|
var t = this, n = new t.constructor("1"), i = n, r = e < 0;
|
|
1910
|
-
if (e !== ~~e || e < -
|
|
1911
|
-
throw Error(
|
|
1910
|
+
if (e !== ~~e || e < -At || e > At)
|
|
1911
|
+
throw Error(ye + "exponent");
|
|
1912
1912
|
for (r && (e = -e); e & 1 && (i = i.times(t)), e >>= 1, !!e; )
|
|
1913
1913
|
t = t.times(t);
|
|
1914
1914
|
return r ? n.div(i) : i;
|
|
1915
1915
|
};
|
|
1916
1916
|
A.prec = function(e, t) {
|
|
1917
|
-
if (e !== ~~e || e < 1 || e >
|
|
1918
|
-
throw Error(
|
|
1919
|
-
return
|
|
1917
|
+
if (e !== ~~e || e < 1 || e > Y)
|
|
1918
|
+
throw Error(ye + "precision");
|
|
1919
|
+
return Z(new this.constructor(this), e, t);
|
|
1920
1920
|
};
|
|
1921
1921
|
A.round = function(e, t) {
|
|
1922
|
-
if (e ===
|
|
1923
|
-
else if (e !== ~~e || e < -
|
|
1922
|
+
if (e === B) e = 0;
|
|
1923
|
+
else if (e !== ~~e || e < -Y || e > Y)
|
|
1924
1924
|
throw Error(Ce);
|
|
1925
|
-
return
|
|
1925
|
+
return Z(new this.constructor(this), e + this.e + 1, t);
|
|
1926
1926
|
};
|
|
1927
1927
|
A.sqrt = function() {
|
|
1928
1928
|
var e, t, n, i = this, r = i.constructor, o = i.s, s = i.e, a = new r("0.5");
|
|
1929
1929
|
if (!i.c[0]) return new r(i);
|
|
1930
1930
|
if (o < 0)
|
|
1931
|
-
throw Error(
|
|
1932
|
-
o = Math.sqrt(+
|
|
1931
|
+
throw Error(ge + "No square root");
|
|
1932
|
+
o = Math.sqrt(+ee(i, !0, !0)), o === 0 || o === 1 / 0 ? (t = i.c.join(""), t.length + s & 1 || (t += "0"), o = Math.sqrt(t), s = ((s + 1) / 2 | 0) - (s < 0 || s & 1), e = new r((o == 1 / 0 ? "5e" : (o = o.toExponential()).slice(0, o.indexOf("e") + 1)) + s)) : e = new r(o + ""), s = e.e + (r.DP += 4);
|
|
1933
1933
|
do
|
|
1934
1934
|
n = e, e = a.times(n.plus(i.div(n)));
|
|
1935
1935
|
while (n.c.slice(0, s).join("") !== e.c.slice(0, s).join(""));
|
|
1936
|
-
return
|
|
1936
|
+
return Z(e, (r.DP -= 4) + e.e + 1, r.RM);
|
|
1937
1937
|
};
|
|
1938
1938
|
A.times = A.mul = function(e) {
|
|
1939
|
-
var t, n = this, i = n.constructor, r = n.c, o = (e = new i(e)).c, s = r.length, a = o.length, l = n.e,
|
|
1939
|
+
var t, n = this, i = n.constructor, r = n.c, o = (e = new i(e)).c, s = r.length, a = o.length, l = n.e, c = e.e;
|
|
1940
1940
|
if (e.s = n.s == e.s ? 1 : -1, !r[0] || !o[0])
|
|
1941
1941
|
return e.c = [e.e = 0], e;
|
|
1942
|
-
for (e.e = l +
|
|
1942
|
+
for (e.e = l + c, s < a && (t = r, r = o, o = t, c = s, s = a, a = c), t = new Array(c = s + a); c--; ) t[c] = 0;
|
|
1943
1943
|
for (l = a; l--; ) {
|
|
1944
|
-
for (a = 0,
|
|
1945
|
-
a = t[
|
|
1946
|
-
t[
|
|
1944
|
+
for (a = 0, c = s + l; c > l; )
|
|
1945
|
+
a = t[c] + o[l] * r[c - l - 1] + a, t[c--] = a % 10, a = a / 10 | 0;
|
|
1946
|
+
t[c] = a;
|
|
1947
1947
|
}
|
|
1948
1948
|
for (a ? ++e.e : t.shift(), l = t.length; !t[--l]; ) t.pop();
|
|
1949
1949
|
return e.c = t, e;
|
|
1950
1950
|
};
|
|
1951
1951
|
A.toExponential = function(e, t) {
|
|
1952
1952
|
var n = this, i = n.c[0];
|
|
1953
|
-
if (e !==
|
|
1954
|
-
if (e !== ~~e || e < 0 || e >
|
|
1953
|
+
if (e !== B) {
|
|
1954
|
+
if (e !== ~~e || e < 0 || e > Y)
|
|
1955
1955
|
throw Error(Ce);
|
|
1956
|
-
for (n =
|
|
1956
|
+
for (n = Z(new n.constructor(n), ++e, t); n.c.length < e; ) n.c.push(0);
|
|
1957
1957
|
}
|
|
1958
|
-
return
|
|
1958
|
+
return ee(n, !0, !!i);
|
|
1959
1959
|
};
|
|
1960
1960
|
A.toFixed = function(e, t) {
|
|
1961
1961
|
var n = this, i = n.c[0];
|
|
1962
|
-
if (e !==
|
|
1963
|
-
if (e !== ~~e || e < 0 || e >
|
|
1962
|
+
if (e !== B) {
|
|
1963
|
+
if (e !== ~~e || e < 0 || e > Y)
|
|
1964
1964
|
throw Error(Ce);
|
|
1965
|
-
for (n =
|
|
1965
|
+
for (n = Z(new n.constructor(n), e + n.e + 1, t), e = e + n.e + 1; n.c.length < e; ) n.c.push(0);
|
|
1966
1966
|
}
|
|
1967
|
-
return
|
|
1967
|
+
return ee(n, !1, !!i);
|
|
1968
1968
|
};
|
|
1969
1969
|
A[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = A.toJSON = A.toString = function() {
|
|
1970
1970
|
var e = this, t = e.constructor;
|
|
1971
|
-
return
|
|
1971
|
+
return ee(e, e.e <= t.NE || e.e >= t.PE, !!e.c[0]);
|
|
1972
1972
|
};
|
|
1973
1973
|
A.toNumber = function() {
|
|
1974
|
-
var e = +
|
|
1974
|
+
var e = +ee(this, !0, !0);
|
|
1975
1975
|
if (this.constructor.strict === !0 && !this.eq(e.toString()))
|
|
1976
|
-
throw Error(
|
|
1976
|
+
throw Error(ge + "Imprecise conversion");
|
|
1977
1977
|
return e;
|
|
1978
1978
|
};
|
|
1979
1979
|
A.toPrecision = function(e, t) {
|
|
1980
1980
|
var n = this, i = n.constructor, r = n.c[0];
|
|
1981
|
-
if (e !==
|
|
1982
|
-
if (e !== ~~e || e < 1 || e >
|
|
1983
|
-
throw Error(
|
|
1984
|
-
for (n =
|
|
1981
|
+
if (e !== B) {
|
|
1982
|
+
if (e !== ~~e || e < 1 || e > Y)
|
|
1983
|
+
throw Error(ye + "precision");
|
|
1984
|
+
for (n = Z(new i(n), e, t); n.c.length < e; ) n.c.push(0);
|
|
1985
1985
|
}
|
|
1986
|
-
return
|
|
1986
|
+
return ee(n, e <= n.e || n.e <= i.NE || n.e >= i.PE, !!r);
|
|
1987
1987
|
};
|
|
1988
1988
|
A.valueOf = function() {
|
|
1989
1989
|
var e = this, t = e.constructor;
|
|
1990
1990
|
if (t.strict === !0)
|
|
1991
|
-
throw Error(
|
|
1992
|
-
return
|
|
1991
|
+
throw Error(ge + "valueOf disallowed");
|
|
1992
|
+
return ee(e, e.e <= t.NE || e.e >= t.PE, !0);
|
|
1993
1993
|
};
|
|
1994
|
-
function
|
|
1994
|
+
function pi() {
|
|
1995
1995
|
return {
|
|
1996
1996
|
var: {},
|
|
1997
1997
|
step: {},
|
|
@@ -1999,15 +1999,15 @@ function ci() {
|
|
|
1999
1999
|
quiz: {}
|
|
2000
2000
|
};
|
|
2001
2001
|
}
|
|
2002
|
-
function
|
|
2002
|
+
function ft() {
|
|
2003
2003
|
return {
|
|
2004
2004
|
checked: !1,
|
|
2005
2005
|
annotation: ""
|
|
2006
2006
|
};
|
|
2007
2007
|
}
|
|
2008
|
-
function
|
|
2008
|
+
function en() {
|
|
2009
2009
|
return {
|
|
2010
|
-
...
|
|
2010
|
+
...ft(),
|
|
2011
2011
|
elapsed_ms: 0,
|
|
2012
2012
|
timer_started_at_ms: null,
|
|
2013
2013
|
started_at_ms: null,
|
|
@@ -2030,39 +2030,39 @@ function Pe(e, t = Date.now()) {
|
|
|
2030
2030
|
const i = x(e.timer_started_at_ms, null);
|
|
2031
2031
|
return i == null ? n : n + Math.max(0, t - i);
|
|
2032
2032
|
}
|
|
2033
|
-
function
|
|
2033
|
+
function Fr(e, t = Date.now()) {
|
|
2034
2034
|
return Le(e) ? !1 : (e.started_at_ms == null && (e.started_at_ms = t), e.timer_started_at_ms = t, e.ended_at_ms = null, !0);
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2036
|
+
function mi(e, t = Date.now()) {
|
|
2037
2037
|
return Le(e) ? (e.elapsed_ms = Pe(e, t), e.timer_started_at_ms = null, e.started_at_ms == null && (e.started_at_ms = t), e.ended_at_ms = t, !0) : !1;
|
|
2038
2038
|
}
|
|
2039
|
-
function
|
|
2039
|
+
function Mr(e) {
|
|
2040
2040
|
const t = e.elapsed_ms > 0 || e.timer_started_at_ms != null || e.started_at_ms != null || e.ended_at_ms != null;
|
|
2041
2041
|
return e.elapsed_ms = 0, e.timer_started_at_ms = null, e.started_at_ms = null, e.ended_at_ms = null, t;
|
|
2042
2042
|
}
|
|
2043
|
-
function
|
|
2044
|
-
t && Le(e) &&
|
|
2043
|
+
function Cr(e, t, n = Date.now()) {
|
|
2044
|
+
t && Le(e) && mi(e, n);
|
|
2045
2045
|
const i = e.checked !== t;
|
|
2046
2046
|
return e.checked = t, i;
|
|
2047
2047
|
}
|
|
2048
|
-
function
|
|
2048
|
+
function Lr(e, t) {
|
|
2049
2049
|
const n = Math.max(0, Math.round(e / 1e3)), i = Math.floor(n / (24 * 3600)), r = Math.floor(n % (24 * 3600) / 3600), o = Math.floor(n % 3600 / 60), s = n % 60, a = t?.toLowerCase().startsWith("zh"), l = [];
|
|
2050
2050
|
return i > 0 && l.push(a ? `${i}天` : `${i}d`), r > 0 && l.push(a ? `${r}小时` : `${r}h`), o > 0 && l.push(a ? `${o}分` : `${o}m`), (s > 0 || l.length === 0) && l.push(a ? `${s}秒` : `${s}s`), a ? l.join("") : l.join(" ");
|
|
2051
2051
|
}
|
|
2052
|
-
function
|
|
2052
|
+
function Pr(e) {
|
|
2053
2053
|
const t = e.timer_mode ?? "elapsed", n = x(e.estimated_duration_ms, null);
|
|
2054
2054
|
return (t === "countdown" || t === "both") && (n == null || n <= 0) ? "elapsed" : t;
|
|
2055
2055
|
}
|
|
2056
|
-
function
|
|
2056
|
+
function Rr(e, t, n = Date.now()) {
|
|
2057
2057
|
const i = x(t, null);
|
|
2058
2058
|
if (!(i == null || i <= 0))
|
|
2059
2059
|
return i - Pe(e, n);
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2061
|
+
function xr(e, t) {
|
|
2062
2062
|
const n = x(t, null);
|
|
2063
2063
|
return n == null || n <= 0 || e == null || e <= 0 ? !1 : e <= 1e4 || e / n <= 0.2;
|
|
2064
2064
|
}
|
|
2065
|
-
function
|
|
2065
|
+
function zr(e) {
|
|
2066
2066
|
if (!e?.length)
|
|
2067
2067
|
return 0;
|
|
2068
2068
|
const t = new Map(e.map((i) => [i.id, i]));
|
|
@@ -2085,13 +2085,13 @@ function Lr(e) {
|
|
|
2085
2085
|
}
|
|
2086
2086
|
return n;
|
|
2087
2087
|
}
|
|
2088
|
-
function
|
|
2088
|
+
function Br(e, t = Date.now()) {
|
|
2089
2089
|
return Object.values(e).reduce((n, i) => n + Pe(i, t), 0);
|
|
2090
2090
|
}
|
|
2091
|
-
function
|
|
2091
|
+
function vr(e) {
|
|
2092
2092
|
return Pe(e) > 0 || e.started_at_ms != null || e.ended_at_ms != null;
|
|
2093
2093
|
}
|
|
2094
|
-
function
|
|
2094
|
+
function gi(e) {
|
|
2095
2095
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
2096
2096
|
return {
|
|
2097
2097
|
elapsed_ms: 0,
|
|
@@ -2107,61 +2107,61 @@ function di(e) {
|
|
|
2107
2107
|
ended_at_ms: o
|
|
2108
2108
|
};
|
|
2109
2109
|
}
|
|
2110
|
-
function
|
|
2110
|
+
function Vr(e) {
|
|
2111
2111
|
return JSON.parse(JSON.stringify(e));
|
|
2112
2112
|
}
|
|
2113
|
-
function
|
|
2114
|
-
return e == null || typeof e != "object" ? JSON.stringify(e) : Array.isArray(e) ? `[${e.map((n) =>
|
|
2113
|
+
function Xe(e) {
|
|
2114
|
+
return e == null || typeof e != "object" ? JSON.stringify(e) : Array.isArray(e) ? `[${e.map((n) => Xe(n)).join(",")}]` : `{${Object.entries(e).sort(([n], [i]) => n.localeCompare(i)).map(([n, i]) => `${JSON.stringify(n)}:${Xe(i)}`).join(",")}}`;
|
|
2115
2115
|
}
|
|
2116
|
-
function
|
|
2117
|
-
return
|
|
2116
|
+
function Wr(e) {
|
|
2117
|
+
return Xe(tn(e));
|
|
2118
2118
|
}
|
|
2119
|
-
function
|
|
2119
|
+
function yi(e) {
|
|
2120
2120
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
2121
|
-
return
|
|
2121
|
+
return ft();
|
|
2122
2122
|
const t = e;
|
|
2123
2123
|
return {
|
|
2124
2124
|
checked: !!t.checked,
|
|
2125
2125
|
annotation: typeof t.annotation == "string" ? t.annotation : ""
|
|
2126
2126
|
};
|
|
2127
2127
|
}
|
|
2128
|
-
function
|
|
2128
|
+
function hi(e) {
|
|
2129
2129
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
2130
|
-
return
|
|
2130
|
+
return en();
|
|
2131
2131
|
const t = e;
|
|
2132
2132
|
return {
|
|
2133
2133
|
checked: !!t.checked,
|
|
2134
2134
|
annotation: typeof t.annotation == "string" ? t.annotation : "",
|
|
2135
|
-
...
|
|
2135
|
+
...gi(t)
|
|
2136
2136
|
};
|
|
2137
2137
|
}
|
|
2138
|
-
function
|
|
2139
|
-
const t =
|
|
2138
|
+
function tn(e) {
|
|
2139
|
+
const t = pi();
|
|
2140
2140
|
if (!e || typeof e != "object")
|
|
2141
2141
|
return t;
|
|
2142
2142
|
if (e.var && typeof e.var == "object" && (t.var = { ...e.var }), e.quiz && typeof e.quiz == "object" && (t.quiz = { ...e.quiz }), e.step && typeof e.step == "object")
|
|
2143
2143
|
for (const [n, i] of Object.entries(e.step))
|
|
2144
|
-
t.step[n] =
|
|
2144
|
+
t.step[n] = hi(i);
|
|
2145
2145
|
if (e.check && typeof e.check == "object")
|
|
2146
2146
|
for (const [n, i] of Object.entries(e.check))
|
|
2147
|
-
t.check[n] =
|
|
2147
|
+
t.check[n] = yi(i);
|
|
2148
2148
|
return t;
|
|
2149
2149
|
}
|
|
2150
|
-
function
|
|
2150
|
+
function _e(e, t) {
|
|
2151
2151
|
for (const n of Object.keys(e))
|
|
2152
2152
|
delete e[n];
|
|
2153
2153
|
Object.assign(e, t);
|
|
2154
2154
|
}
|
|
2155
|
-
function
|
|
2156
|
-
|
|
2155
|
+
function bi(e, t) {
|
|
2156
|
+
_e(e.var, t.var), _e(e.step, t.step), _e(e.check, t.check), _e(e.quiz, t.quiz);
|
|
2157
2157
|
}
|
|
2158
|
-
function
|
|
2159
|
-
|
|
2158
|
+
function qr(e, t) {
|
|
2159
|
+
bi(e, tn(t));
|
|
2160
2160
|
}
|
|
2161
|
-
function
|
|
2161
|
+
function _i(e) {
|
|
2162
2162
|
return Array.isArray(e) ? e.map((t) => typeof t == "string" && t.trim() ? { name: t.trim() } : t && typeof t == "object" && typeof t.name == "string" ? { name: t.name } : null).filter((t) => t !== null) : [];
|
|
2163
2163
|
}
|
|
2164
|
-
function
|
|
2164
|
+
function Si(e) {
|
|
2165
2165
|
if (!Array.isArray(e))
|
|
2166
2166
|
return [];
|
|
2167
2167
|
const t = [];
|
|
@@ -2181,16 +2181,16 @@ function hi(e) {
|
|
|
2181
2181
|
}
|
|
2182
2182
|
return t;
|
|
2183
2183
|
}
|
|
2184
|
-
function
|
|
2184
|
+
function Ai(e) {
|
|
2185
2185
|
return Array.isArray(e) ? e.filter((t) => !!t && typeof t == "object" && typeof t.id == "string" && typeof t.type == "string" && typeof t.stem == "string") : [];
|
|
2186
2186
|
}
|
|
2187
|
-
function
|
|
2187
|
+
function wi(e) {
|
|
2188
2188
|
return Array.isArray(e) ? e.filter((t) => !!t && typeof t == "object" && typeof t.id == "string" && Array.isArray(t.subvars)) : [];
|
|
2189
2189
|
}
|
|
2190
|
-
function
|
|
2190
|
+
function wt(e) {
|
|
2191
2191
|
return (e.type === "choice" || e.type === "true_false") && Array.isArray(e.options) && e.options.some((t) => Array.isArray(t.followups) && t.followups.length > 0);
|
|
2192
2192
|
}
|
|
2193
|
-
function
|
|
2193
|
+
function Be(e, t) {
|
|
2194
2194
|
const n = new Set(t), i = {};
|
|
2195
2195
|
for (const r of e.options || []) {
|
|
2196
2196
|
if (!n.has(r.key) || !Array.isArray(r.followups))
|
|
@@ -2202,27 +2202,27 @@ function ze(e, t) {
|
|
|
2202
2202
|
}
|
|
2203
2203
|
return i;
|
|
2204
2204
|
}
|
|
2205
|
-
function
|
|
2205
|
+
function ki(e) {
|
|
2206
2206
|
if (e.type === "choice") {
|
|
2207
|
-
const t = new Set((e.options || []).map((r) => r.key)), n =
|
|
2207
|
+
const t = new Set((e.options || []).map((r) => r.key)), n = wt(e);
|
|
2208
2208
|
if (e.mode === "multiple") {
|
|
2209
2209
|
let r = [];
|
|
2210
2210
|
return Array.isArray(e.default) && (r = e.default.filter((o) => typeof o == "string" && t.has(o))), n ? {
|
|
2211
2211
|
selected: r,
|
|
2212
|
-
followups:
|
|
2212
|
+
followups: Be(e, r)
|
|
2213
2213
|
} : r;
|
|
2214
2214
|
}
|
|
2215
2215
|
let i = "";
|
|
2216
2216
|
return typeof e.default == "string" && t.has(e.default) && (i = e.default), n ? {
|
|
2217
2217
|
selected: i,
|
|
2218
|
-
followups:
|
|
2218
|
+
followups: Be(e, i ? [i] : [])
|
|
2219
2219
|
} : i;
|
|
2220
2220
|
}
|
|
2221
2221
|
if (e.type === "true_false") {
|
|
2222
2222
|
const t = typeof e.default == "boolean" ? e.default : null;
|
|
2223
|
-
return t !== null &&
|
|
2223
|
+
return t !== null && wt(e) ? {
|
|
2224
2224
|
selected: t,
|
|
2225
|
-
followups:
|
|
2225
|
+
followups: Be(e, [String(t)])
|
|
2226
2226
|
} : t;
|
|
2227
2227
|
}
|
|
2228
2228
|
if (e.type === "blank") {
|
|
@@ -2258,7 +2258,7 @@ function ke(e) {
|
|
|
2258
2258
|
t[n] = "";
|
|
2259
2259
|
return t;
|
|
2260
2260
|
}
|
|
2261
|
-
function
|
|
2261
|
+
function kt(e, t) {
|
|
2262
2262
|
if (!Array.isArray(e))
|
|
2263
2263
|
return [ke(t)];
|
|
2264
2264
|
const n = e.map((i) => {
|
|
@@ -2273,10 +2273,10 @@ function At(e, t) {
|
|
|
2273
2273
|
});
|
|
2274
2274
|
return n.length === 0 && n.push(ke(t)), n;
|
|
2275
2275
|
}
|
|
2276
|
-
function
|
|
2276
|
+
function Et(e, t) {
|
|
2277
2277
|
return e.length !== 1 ? !1 : t.every((n) => e[0]?.[n] === "");
|
|
2278
2278
|
}
|
|
2279
|
-
function
|
|
2279
|
+
function Jr(e) {
|
|
2280
2280
|
if (e === "")
|
|
2281
2281
|
return [];
|
|
2282
2282
|
const n = e.replace(/\r\n?/g, `
|
|
@@ -2286,14 +2286,14 @@ function Vr(e) {
|
|
|
2286
2286
|
n.pop();
|
|
2287
2287
|
return n.map((i) => i.split(" "));
|
|
2288
2288
|
}
|
|
2289
|
-
function
|
|
2289
|
+
function Kr(e, t, n, i, r, o) {
|
|
2290
2290
|
const s = [];
|
|
2291
2291
|
if (t.length === 0 || r.length === 0 || n < 0 || i < 0)
|
|
2292
2292
|
return { rowsAdded: 0, changedCells: s };
|
|
2293
2293
|
const a = new Set(o?.disabledColumns ?? []);
|
|
2294
2294
|
let l = 0;
|
|
2295
|
-
for (const [
|
|
2296
|
-
const
|
|
2295
|
+
for (const [c, d] of r.entries()) {
|
|
2296
|
+
const f = n + c, m = d.map((y, u) => ({
|
|
2297
2297
|
value: y,
|
|
2298
2298
|
columnIndex: i + u
|
|
2299
2299
|
})).filter(({ columnIndex: y }) => y >= 0 && y < t.length).map(({ value: y, columnIndex: u }) => ({
|
|
@@ -2302,29 +2302,29 @@ function vr(e, t, n, i, r, o) {
|
|
|
2302
2302
|
})).filter(({ column: y }) => !a.has(y));
|
|
2303
2303
|
if (m.length === 0)
|
|
2304
2304
|
continue;
|
|
2305
|
-
for (;
|
|
2305
|
+
for (; f >= e.length; )
|
|
2306
2306
|
e.push(ke(t)), l += 1;
|
|
2307
|
-
const g = e[
|
|
2307
|
+
const g = e[f];
|
|
2308
2308
|
for (const { column: y, value: u } of m)
|
|
2309
|
-
g[y] !== u && (g[y] = u, s.push({ rowIndex:
|
|
2309
|
+
g[y] !== u && (g[y] = u, s.push({ rowIndex: f, column: y, value: u }));
|
|
2310
2310
|
}
|
|
2311
2311
|
return { rowsAdded: l, changedCells: s };
|
|
2312
2312
|
}
|
|
2313
|
-
function
|
|
2313
|
+
function Ur(e, t) {
|
|
2314
2314
|
let n = !1;
|
|
2315
|
-
for (const i of
|
|
2316
|
-
const r = i.subvars.map((
|
|
2315
|
+
for (const i of wi(t.var_table)) {
|
|
2316
|
+
const r = i.subvars.map((f) => f.id), o = i.id in e.var, s = Array.isArray(i.default) && i.default.length > 0 ? kt(i.default, r) : void 0, a = o ? e.var[i.id] : s ?? i.default, l = kt(a, r), d = !!(o && s && Et(l, r) && !Et(s, r)) && s ? s : l;
|
|
2317
2317
|
(!o || JSON.stringify(d) !== JSON.stringify(a)) && (e.var[i.id] = d, n = !0);
|
|
2318
2318
|
}
|
|
2319
|
-
for (const i of
|
|
2320
|
-
i.name in e.step || (e.step[i.name] =
|
|
2321
|
-
for (const i of
|
|
2322
|
-
i.name in e.check || (e.check[i.name] =
|
|
2323
|
-
for (const i of
|
|
2324
|
-
i.id in e.quiz || (e.quiz[i.id] =
|
|
2319
|
+
for (const i of _i(t.step))
|
|
2320
|
+
i.name in e.step || (e.step[i.name] = en(), n = !0);
|
|
2321
|
+
for (const i of Si(t.check))
|
|
2322
|
+
i.name in e.check || (e.check[i.name] = ft(), n = !0);
|
|
2323
|
+
for (const i of Ai(t.quiz))
|
|
2324
|
+
i.id in e.quiz || (e.quiz[i.id] = ki(i), n = !0);
|
|
2325
2325
|
return n;
|
|
2326
2326
|
}
|
|
2327
|
-
const
|
|
2327
|
+
const Ei = {
|
|
2328
2328
|
codestr: "plaintext",
|
|
2329
2329
|
pystr: "python",
|
|
2330
2330
|
jsstr: "javascript",
|
|
@@ -2332,7 +2332,7 @@ const Ai = {
|
|
|
2332
2332
|
jsonstr: "json",
|
|
2333
2333
|
yamlstr: "yaml",
|
|
2334
2334
|
tomlstr: "ini"
|
|
2335
|
-
},
|
|
2335
|
+
}, Ii = {
|
|
2336
2336
|
code: "plaintext",
|
|
2337
2337
|
plaintext: "plaintext",
|
|
2338
2338
|
py: "python",
|
|
@@ -2356,7 +2356,7 @@ const Ai = {
|
|
|
2356
2356
|
scss: "scss",
|
|
2357
2357
|
less: "less",
|
|
2358
2358
|
xml: "xml"
|
|
2359
|
-
},
|
|
2359
|
+
}, Ti = [
|
|
2360
2360
|
"CodeStr",
|
|
2361
2361
|
"PyStr",
|
|
2362
2362
|
"JsStr",
|
|
@@ -2365,49 +2365,49 @@ const Ai = {
|
|
|
2365
2365
|
"TomlStr",
|
|
2366
2366
|
"YamlStr"
|
|
2367
2367
|
];
|
|
2368
|
-
function
|
|
2368
|
+
function He(e) {
|
|
2369
2369
|
if (typeof e != "string" || !e.trim())
|
|
2370
2370
|
return null;
|
|
2371
|
-
const t =
|
|
2372
|
-
return
|
|
2371
|
+
const t = P(e);
|
|
2372
|
+
return Ei[t] ?? Ii[t] ?? null;
|
|
2373
2373
|
}
|
|
2374
|
-
function
|
|
2375
|
-
return typeof e != "string" || !e.trim() ? null :
|
|
2374
|
+
function Ni(e) {
|
|
2375
|
+
return typeof e != "string" || !e.trim() ? null : P(e) === "text" ? "plaintext" : He(e) ?? e.trim().toLowerCase();
|
|
2376
2376
|
}
|
|
2377
|
-
function
|
|
2378
|
-
const n =
|
|
2377
|
+
function Oi(e, t) {
|
|
2378
|
+
const n = Ni(t?.codeLanguage);
|
|
2379
2379
|
if (n)
|
|
2380
2380
|
return n;
|
|
2381
|
-
const i =
|
|
2382
|
-
return i ||
|
|
2381
|
+
const i = He(t?.inputType);
|
|
2382
|
+
return i || He(e);
|
|
2383
2383
|
}
|
|
2384
|
-
function
|
|
2385
|
-
return
|
|
2384
|
+
function nn(e, t) {
|
|
2385
|
+
return Oi(e, t) !== null;
|
|
2386
2386
|
}
|
|
2387
|
-
const
|
|
2388
|
-
function
|
|
2387
|
+
const ve = "airalogy_dna_v1", $i = new Set("ACGTRYSWKMBDHVN".split("")), ji = ["JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"];
|
|
2388
|
+
function It(e, t) {
|
|
2389
2389
|
const n = typeof e == "string" ? e.trim() : String(e ?? ""), i = Number.parseInt(n, 10);
|
|
2390
2390
|
return Number.isFinite(i) && i > 0 ? i : t;
|
|
2391
2391
|
}
|
|
2392
|
-
function
|
|
2392
|
+
function Tt(e) {
|
|
2393
2393
|
return e === !0 || e === "true" || e === 1 || e === "1";
|
|
2394
2394
|
}
|
|
2395
|
-
function
|
|
2395
|
+
function Di(e) {
|
|
2396
2396
|
return e === -1 || e === "-1" ? -1 : 1;
|
|
2397
2397
|
}
|
|
2398
|
-
function
|
|
2398
|
+
function Ze(e) {
|
|
2399
2399
|
return typeof e != "string" ? "" : e.toUpperCase().replace(/\s+/g, "");
|
|
2400
2400
|
}
|
|
2401
|
-
function
|
|
2401
|
+
function et(e) {
|
|
2402
2402
|
return typeof e != "string" ? "" : e.replace(/\s+/g, " ").trim();
|
|
2403
2403
|
}
|
|
2404
|
-
function
|
|
2404
|
+
function Gr(e) {
|
|
2405
2405
|
const t = /* @__PURE__ */ new Set();
|
|
2406
2406
|
for (const n of e.toUpperCase())
|
|
2407
|
-
|
|
2407
|
+
$i.has(n) || t.add(n);
|
|
2408
2408
|
return [...t];
|
|
2409
2409
|
}
|
|
2410
|
-
function
|
|
2410
|
+
function rn() {
|
|
2411
2411
|
return {
|
|
2412
2412
|
start: 1,
|
|
2413
2413
|
end: 1,
|
|
@@ -2415,44 +2415,44 @@ function tn() {
|
|
|
2415
2415
|
partial_end: !1
|
|
2416
2416
|
};
|
|
2417
2417
|
}
|
|
2418
|
-
function
|
|
2418
|
+
function Fi(e = "note") {
|
|
2419
2419
|
return {
|
|
2420
2420
|
key: e,
|
|
2421
2421
|
value: ""
|
|
2422
2422
|
};
|
|
2423
2423
|
}
|
|
2424
|
-
function
|
|
2424
|
+
function Mi(e = "ann_1") {
|
|
2425
2425
|
return {
|
|
2426
2426
|
id: e,
|
|
2427
2427
|
name: "Feature",
|
|
2428
2428
|
type: "misc_feature",
|
|
2429
2429
|
strand: 1,
|
|
2430
2430
|
color: "#2563eb",
|
|
2431
|
-
segments: [
|
|
2431
|
+
segments: [rn()],
|
|
2432
2432
|
qualifiers: []
|
|
2433
2433
|
};
|
|
2434
2434
|
}
|
|
2435
|
-
function
|
|
2435
|
+
function Qr(e) {
|
|
2436
2436
|
const t = new Set(e.map((i) => i.id));
|
|
2437
2437
|
let n = 1;
|
|
2438
2438
|
for (; t.has(`ann_${n}`); )
|
|
2439
2439
|
n += 1;
|
|
2440
2440
|
return `ann_${n}`;
|
|
2441
2441
|
}
|
|
2442
|
-
function
|
|
2443
|
-
const t =
|
|
2442
|
+
function Nt(e) {
|
|
2443
|
+
const t = rn();
|
|
2444
2444
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
2445
2445
|
return t;
|
|
2446
|
-
const n = e, i =
|
|
2446
|
+
const n = e, i = It(n.start, t.start), r = It(n.end, Math.max(i, t.end));
|
|
2447
2447
|
return {
|
|
2448
2448
|
start: i,
|
|
2449
2449
|
end: r,
|
|
2450
|
-
partial_start:
|
|
2451
|
-
partial_end:
|
|
2450
|
+
partial_start: Tt(n.partial_start),
|
|
2451
|
+
partial_end: Tt(n.partial_end)
|
|
2452
2452
|
};
|
|
2453
2453
|
}
|
|
2454
|
-
function
|
|
2455
|
-
const n =
|
|
2454
|
+
function Ci(e, t = 0) {
|
|
2455
|
+
const n = Fi(t === 0 ? "note" : "qualifier");
|
|
2456
2456
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
2457
2457
|
return n;
|
|
2458
2458
|
const i = e;
|
|
@@ -2461,7 +2461,7 @@ function Di(e, t = 0) {
|
|
|
2461
2461
|
value: typeof i.value == "string" ? i.value : String(i.value ?? "")
|
|
2462
2462
|
};
|
|
2463
2463
|
}
|
|
2464
|
-
function
|
|
2464
|
+
function Li(e, t) {
|
|
2465
2465
|
return Array.isArray(t) ? t.map((n) => ({
|
|
2466
2466
|
key: e,
|
|
2467
2467
|
value: typeof n == "string" ? n : String(n ?? "")
|
|
@@ -2470,25 +2470,25 @@ function Fi(e, t) {
|
|
|
2470
2470
|
value: typeof t == "string" ? t : String(t ?? "")
|
|
2471
2471
|
}];
|
|
2472
2472
|
}
|
|
2473
|
-
function
|
|
2473
|
+
function Pi(e, t) {
|
|
2474
2474
|
const n = [];
|
|
2475
2475
|
if (Array.isArray(e))
|
|
2476
|
-
n.push(...e.map((i, r) =>
|
|
2476
|
+
n.push(...e.map((i, r) => Ci(i, r)));
|
|
2477
2477
|
else if (e && typeof e == "object")
|
|
2478
2478
|
for (const [i, r] of Object.entries(e)) {
|
|
2479
2479
|
const o = i.trim();
|
|
2480
|
-
o && n.push(...
|
|
2480
|
+
o && n.push(...Li(o, r));
|
|
2481
2481
|
}
|
|
2482
2482
|
return t != null && String(t).trim() && n.push({
|
|
2483
2483
|
key: "note",
|
|
2484
2484
|
value: typeof t == "string" ? t : String(t)
|
|
2485
2485
|
}), n;
|
|
2486
2486
|
}
|
|
2487
|
-
function
|
|
2488
|
-
const n =
|
|
2487
|
+
function Ri(e, t = 0) {
|
|
2488
|
+
const n = Mi(`ann_${t + 1}`);
|
|
2489
2489
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
2490
2490
|
return n;
|
|
2491
|
-
const i = e, r = Array.isArray(i.segments) && i.segments.length > 0 ? i.segments.map((o) =>
|
|
2491
|
+
const i = e, r = Array.isArray(i.segments) && i.segments.length > 0 ? i.segments.map((o) => Nt(o)) : "start" in i || "end" in i ? [Nt({
|
|
2492
2492
|
start: i.start,
|
|
2493
2493
|
end: i.end,
|
|
2494
2494
|
partial_start: i.partial_start,
|
|
@@ -2498,24 +2498,24 @@ function Ci(e, t = 0) {
|
|
|
2498
2498
|
id: typeof i.id == "string" && i.id.trim() ? i.id.trim() : n.id,
|
|
2499
2499
|
name: typeof i.name == "string" && i.name.trim() ? i.name.trim() : n.name,
|
|
2500
2500
|
type: typeof i.type == "string" && i.type.trim() ? i.type.trim() : n.type,
|
|
2501
|
-
strand:
|
|
2501
|
+
strand: Di(i.strand),
|
|
2502
2502
|
color: typeof i.color == "string" && i.color.trim() ? i.color.trim() : n.color,
|
|
2503
2503
|
segments: r,
|
|
2504
|
-
qualifiers:
|
|
2504
|
+
qualifiers: Pi(i.qualifiers, i.note)
|
|
2505
2505
|
};
|
|
2506
2506
|
}
|
|
2507
|
-
function
|
|
2507
|
+
function Ot(e) {
|
|
2508
2508
|
if (typeof e == "string")
|
|
2509
2509
|
return {
|
|
2510
|
-
format:
|
|
2510
|
+
format: ve,
|
|
2511
2511
|
name: "",
|
|
2512
|
-
sequence:
|
|
2512
|
+
sequence: Ze(e),
|
|
2513
2513
|
topology: "linear",
|
|
2514
2514
|
annotations: []
|
|
2515
2515
|
};
|
|
2516
2516
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
2517
2517
|
return {
|
|
2518
|
-
format:
|
|
2518
|
+
format: ve,
|
|
2519
2519
|
name: "",
|
|
2520
2520
|
sequence: "",
|
|
2521
2521
|
topology: "linear",
|
|
@@ -2523,30 +2523,30 @@ function Tt(e) {
|
|
|
2523
2523
|
};
|
|
2524
2524
|
const t = e;
|
|
2525
2525
|
return {
|
|
2526
|
-
format:
|
|
2527
|
-
name:
|
|
2528
|
-
sequence:
|
|
2526
|
+
format: ve,
|
|
2527
|
+
name: et(t.name),
|
|
2528
|
+
sequence: Ze(t.sequence),
|
|
2529
2529
|
topology: t.topology === "circular" ? "circular" : "linear",
|
|
2530
|
-
annotations: Array.isArray(t.annotations) ? t.annotations.map((n, i) =>
|
|
2530
|
+
annotations: Array.isArray(t.annotations) ? t.annotations.map((n, i) => Ri(n, i)) : []
|
|
2531
2531
|
};
|
|
2532
2532
|
}
|
|
2533
|
-
function
|
|
2533
|
+
function Yr(e) {
|
|
2534
2534
|
let t = 0, n = 0;
|
|
2535
2535
|
for (const i of e.toUpperCase())
|
|
2536
2536
|
(i === "A" || i === "T" || i === "C" || i === "G") && (t += 1, (i === "C" || i === "G") && (n += 1));
|
|
2537
2537
|
return t === 0 ? null : n / t * 100;
|
|
2538
2538
|
}
|
|
2539
|
-
function
|
|
2539
|
+
function Xr(e, t) {
|
|
2540
2540
|
return e.end < e.start ? "range" : t <= 0 ? "requires_sequence" : e.end > t ? "out_of_bounds" : null;
|
|
2541
2541
|
}
|
|
2542
|
-
function
|
|
2542
|
+
function xi(e) {
|
|
2543
2543
|
return e.trim().replace(/\s+/g, "_").replace(/[^A-Za-z0-9_.-]/g, "_") || "DNA_SEQUENCE";
|
|
2544
2544
|
}
|
|
2545
|
-
function
|
|
2546
|
-
const t = String(e.getDate()).padStart(2, "0"), n =
|
|
2545
|
+
function zi(e = /* @__PURE__ */ new Date()) {
|
|
2546
|
+
const t = String(e.getDate()).padStart(2, "0"), n = ji[e.getMonth()] ?? "JAN", i = String(e.getFullYear());
|
|
2547
2547
|
return `${t}-${n}-${i}`;
|
|
2548
2548
|
}
|
|
2549
|
-
function
|
|
2549
|
+
function on(e, t, n = e, i = 79) {
|
|
2550
2550
|
const r = t.replace(/\s+/g, " ").trim();
|
|
2551
2551
|
if (!r)
|
|
2552
2552
|
return [e.trimEnd()];
|
|
@@ -2558,36 +2558,36 @@ function nn(e, t, n = e, i = 79) {
|
|
|
2558
2558
|
o.push(`${a}${s}`);
|
|
2559
2559
|
break;
|
|
2560
2560
|
}
|
|
2561
|
-
let
|
|
2562
|
-
|
|
2561
|
+
let c = s.lastIndexOf(" ", l);
|
|
2562
|
+
c <= 0 && (c = l), o.push(`${a}${s.slice(0, c)}`), s = s.slice(c).trimStart(), a = n;
|
|
2563
2563
|
}
|
|
2564
2564
|
return o;
|
|
2565
2565
|
}
|
|
2566
|
-
function
|
|
2566
|
+
function Bi(e) {
|
|
2567
2567
|
const t = `${e.partial_start ? "<" : ""}${e.start}`, n = `${e.partial_end ? ">" : ""}${e.end}`;
|
|
2568
2568
|
return `${t}..${n}`;
|
|
2569
2569
|
}
|
|
2570
|
-
function
|
|
2571
|
-
const t = e.segments.map(
|
|
2570
|
+
function vi(e) {
|
|
2571
|
+
const t = e.segments.map(Bi).join(","), n = e.segments.length > 1 ? `join(${t})` : t;
|
|
2572
2572
|
return e.strand === -1 ? `complement(${n})` : n;
|
|
2573
2573
|
}
|
|
2574
|
-
function
|
|
2574
|
+
function Vi(e, t) {
|
|
2575
2575
|
const n = e.trim() || "note", i = t.replace(/"/g, "'").trim();
|
|
2576
|
-
return i ?
|
|
2576
|
+
return i ? on(
|
|
2577
2577
|
" ",
|
|
2578
2578
|
`/${n}="${i}"`,
|
|
2579
2579
|
" "
|
|
2580
2580
|
) : [` /${n}`];
|
|
2581
2581
|
}
|
|
2582
|
-
function
|
|
2582
|
+
function Wi(e) {
|
|
2583
2583
|
const t = [...e.qualifiers];
|
|
2584
2584
|
return !t.some((i) => i.key.trim().toLowerCase() === "label") && e.name.trim() && t.unshift({
|
|
2585
2585
|
key: "label",
|
|
2586
2586
|
value: e.name.trim()
|
|
2587
2587
|
}), t;
|
|
2588
2588
|
}
|
|
2589
|
-
function
|
|
2590
|
-
const n =
|
|
2589
|
+
function Hr(e, t) {
|
|
2590
|
+
const n = Ze(e.sequence), i = et(e.name) || et(t?.name) || "DNA_SEQUENCE", r = xi(i), o = r.slice(0, 16) || "DNA_SEQUENCE", s = e.topology === "circular" ? "circular" : "linear", a = t?.definition?.trim() || i || `${r} exported from Airalogy AIMD recorder.`, c = [
|
|
2591
2591
|
[
|
|
2592
2592
|
"LOCUS".padEnd(12, " "),
|
|
2593
2593
|
o.padEnd(16, " "),
|
|
@@ -2595,9 +2595,9 @@ function Gr(e, t) {
|
|
|
2595
2595
|
"bp".padEnd(6, " "),
|
|
2596
2596
|
"DNA".padEnd(8, " "),
|
|
2597
2597
|
s.padEnd(9, " "),
|
|
2598
|
-
|
|
2598
|
+
zi(t?.date)
|
|
2599
2599
|
].join(""),
|
|
2600
|
-
...
|
|
2600
|
+
...on("DEFINITION ", a, " "),
|
|
2601
2601
|
`ACCESSION ${o}`,
|
|
2602
2602
|
`VERSION ${o}.1`,
|
|
2603
2603
|
"KEYWORDS .",
|
|
@@ -2607,35 +2607,35 @@ function Gr(e, t) {
|
|
|
2607
2607
|
"FEATURES Location/Qualifiers"
|
|
2608
2608
|
];
|
|
2609
2609
|
for (const d of e.annotations) {
|
|
2610
|
-
|
|
2611
|
-
for (const
|
|
2612
|
-
|
|
2610
|
+
c.push(` ${(d.type.trim() || "misc_feature").slice(0, 16).padEnd(16, " ")}${vi(d)}`);
|
|
2611
|
+
for (const f of Wi(d))
|
|
2612
|
+
c.push(...Vi(f.key, f.value));
|
|
2613
2613
|
}
|
|
2614
|
-
|
|
2614
|
+
c.push("ORIGIN");
|
|
2615
2615
|
for (let d = 0; d < n.length; d += 60) {
|
|
2616
|
-
const
|
|
2617
|
-
|
|
2616
|
+
const f = n.slice(d, d + 60).toLowerCase(), m = f.match(/.{1,10}/g)?.join(" ") ?? f;
|
|
2617
|
+
c.push(`${String(d + 1).padStart(9, " ")} ${m}`);
|
|
2618
2618
|
}
|
|
2619
|
-
return
|
|
2619
|
+
return c.push("//"), `${c.join(`
|
|
2620
2620
|
`)}
|
|
2621
2621
|
`;
|
|
2622
2622
|
}
|
|
2623
|
-
const
|
|
2623
|
+
const qi = Mt(() => import("./AimdDnaSequenceField-BHV1_c2o.js")), Ji = Mt(() => import("./AimdMarkdownField-t8hqazDv.js")), Ki = Ti.map((e) => ({
|
|
2624
2624
|
type: e,
|
|
2625
2625
|
inputKind: "code"
|
|
2626
2626
|
}));
|
|
2627
|
-
function
|
|
2627
|
+
function se(e) {
|
|
2628
2628
|
return String(e).padStart(2, "0");
|
|
2629
2629
|
}
|
|
2630
|
-
function
|
|
2630
|
+
function Ui(e) {
|
|
2631
2631
|
const t = -e.getTimezoneOffset(), n = t >= 0 ? "+" : "-", i = Math.abs(t), r = Math.floor(i / 60), o = i % 60;
|
|
2632
|
-
return `${n}${
|
|
2632
|
+
return `${n}${se(r)}:${se(o)}`;
|
|
2633
2633
|
}
|
|
2634
|
-
function
|
|
2635
|
-
const t = e.getFullYear(), n =
|
|
2636
|
-
return `${t}-${n}-${i}T${r}:${o}${
|
|
2634
|
+
function Gi(e) {
|
|
2635
|
+
const t = e.getFullYear(), n = se(e.getMonth() + 1), i = se(e.getDate()), r = se(e.getHours()), o = se(e.getMinutes());
|
|
2636
|
+
return `${t}-${n}-${i}T${r}:${o}${Ui(e)}`;
|
|
2637
2637
|
}
|
|
2638
|
-
function
|
|
2638
|
+
function Qi(e) {
|
|
2639
2639
|
if (e instanceof Date)
|
|
2640
2640
|
return Number.isNaN(e.getTime()) ? /* @__PURE__ */ new Date() : e;
|
|
2641
2641
|
if (typeof e == "string" || typeof e == "number") {
|
|
@@ -2645,12 +2645,12 @@ function Ki(e) {
|
|
|
2645
2645
|
}
|
|
2646
2646
|
return /* @__PURE__ */ new Date();
|
|
2647
2647
|
}
|
|
2648
|
-
const
|
|
2649
|
-
...
|
|
2648
|
+
const Yi = [
|
|
2649
|
+
...Ki,
|
|
2650
2650
|
{
|
|
2651
2651
|
type: "CurrentTime",
|
|
2652
2652
|
inputKind: "datetime",
|
|
2653
|
-
getInitialValue: ({ now: e }) =>
|
|
2653
|
+
getInitialValue: ({ now: e }) => Gi(Qi(e))
|
|
2654
2654
|
},
|
|
2655
2655
|
{
|
|
2656
2656
|
type: "UserName",
|
|
@@ -2670,10 +2670,10 @@ const Ui = [
|
|
|
2670
2670
|
extraClasses: s,
|
|
2671
2671
|
assignerControl: a,
|
|
2672
2672
|
assignerStatus: l,
|
|
2673
|
-
assignerError:
|
|
2673
|
+
assignerError: c,
|
|
2674
2674
|
emitChange: d,
|
|
2675
|
-
emitBlur:
|
|
2676
|
-
}) =>
|
|
2675
|
+
emitBlur: f
|
|
2676
|
+
}) => gt(Ji, {
|
|
2677
2677
|
class: s,
|
|
2678
2678
|
varId: e.id,
|
|
2679
2679
|
modelValue: t,
|
|
@@ -2683,16 +2683,16 @@ const Ui = [
|
|
|
2683
2683
|
messages: o,
|
|
2684
2684
|
assignerControl: a,
|
|
2685
2685
|
assignerStatus: l,
|
|
2686
|
-
assignerError:
|
|
2686
|
+
assignerError: c,
|
|
2687
2687
|
"onUpdate:modelValue": (m) => d(m),
|
|
2688
|
-
onBlur:
|
|
2688
|
+
onBlur: f
|
|
2689
2689
|
})
|
|
2690
2690
|
},
|
|
2691
2691
|
{
|
|
2692
2692
|
type: "DNASequence",
|
|
2693
2693
|
inputKind: "dna",
|
|
2694
|
-
getInitialValue: () =>
|
|
2695
|
-
normalizeValue: ({ value: e }) =>
|
|
2694
|
+
getInitialValue: () => Ot(void 0),
|
|
2695
|
+
normalizeValue: ({ value: e }) => Ot(e),
|
|
2696
2696
|
renderField: ({
|
|
2697
2697
|
node: e,
|
|
2698
2698
|
value: t,
|
|
@@ -2703,7 +2703,7 @@ const Ui = [
|
|
|
2703
2703
|
extraClasses: s,
|
|
2704
2704
|
emitChange: a,
|
|
2705
2705
|
emitBlur: l
|
|
2706
|
-
}) =>
|
|
2706
|
+
}) => gt(qi, {
|
|
2707
2707
|
class: s,
|
|
2708
2708
|
varId: e.id,
|
|
2709
2709
|
modelValue: t,
|
|
@@ -2711,27 +2711,27 @@ const Ui = [
|
|
|
2711
2711
|
required: i,
|
|
2712
2712
|
placeholder: r,
|
|
2713
2713
|
messages: o,
|
|
2714
|
-
"onUpdate:modelValue": (
|
|
2714
|
+
"onUpdate:modelValue": (c) => a(c),
|
|
2715
2715
|
onBlur: l
|
|
2716
2716
|
})
|
|
2717
2717
|
}
|
|
2718
2718
|
];
|
|
2719
|
-
function
|
|
2719
|
+
function sn(e, t) {
|
|
2720
2720
|
if (!t?.length)
|
|
2721
2721
|
return;
|
|
2722
|
-
const n =
|
|
2723
|
-
return t.find((i) =>
|
|
2722
|
+
const n = P(e);
|
|
2723
|
+
return t.find((i) => P(i.type) === n ? !0 : (i.aliases ?? []).some((r) => P(r) === n));
|
|
2724
2724
|
}
|
|
2725
|
-
function
|
|
2726
|
-
return [...e ?? [], ...
|
|
2727
|
-
}
|
|
2728
|
-
function Yr(e, t, n) {
|
|
2729
|
-
return xn(e, t, n);
|
|
2725
|
+
function Zr(e) {
|
|
2726
|
+
return [...e ?? [], ...Yi];
|
|
2730
2727
|
}
|
|
2731
|
-
function
|
|
2728
|
+
function eo(e, t, n) {
|
|
2732
2729
|
return Bn(e, t, n);
|
|
2733
2730
|
}
|
|
2734
|
-
function
|
|
2731
|
+
function Xi(e, t, n) {
|
|
2732
|
+
return vn(e, t, n);
|
|
2733
|
+
}
|
|
2734
|
+
function to(e) {
|
|
2735
2735
|
return {
|
|
2736
2736
|
format: "airalogy_selected_file_v1",
|
|
2737
2737
|
name: e.name,
|
|
@@ -2740,14 +2740,14 @@ function Xr(e) {
|
|
|
2740
2740
|
lastModified: e.lastModified
|
|
2741
2741
|
};
|
|
2742
2742
|
}
|
|
2743
|
-
function
|
|
2744
|
-
return
|
|
2743
|
+
function no(e) {
|
|
2744
|
+
return vt(e);
|
|
2745
2745
|
}
|
|
2746
|
-
function
|
|
2746
|
+
function io(e) {
|
|
2747
2747
|
return Bt(e);
|
|
2748
2748
|
}
|
|
2749
|
-
function
|
|
2750
|
-
return
|
|
2749
|
+
function Hi(e) {
|
|
2750
|
+
return Vn(e, void 0, {
|
|
2751
2751
|
hideAiralogyFileIds: !0,
|
|
2752
2752
|
keys: [
|
|
2753
2753
|
"name",
|
|
@@ -2763,8 +2763,8 @@ function Qi(e) {
|
|
|
2763
2763
|
]
|
|
2764
2764
|
});
|
|
2765
2765
|
}
|
|
2766
|
-
function
|
|
2767
|
-
const n =
|
|
2766
|
+
function ro(e, t) {
|
|
2767
|
+
const n = W(t), i = e.findIndex((r) => Object.is(r.value, n));
|
|
2768
2768
|
if (i >= 0)
|
|
2769
2769
|
return String(i);
|
|
2770
2770
|
if (n != null) {
|
|
@@ -2774,14 +2774,14 @@ function eo(e, t) {
|
|
|
2774
2774
|
}
|
|
2775
2775
|
return "";
|
|
2776
2776
|
}
|
|
2777
|
-
function
|
|
2777
|
+
function oo(e, t, n = "") {
|
|
2778
2778
|
const i = Number.parseInt(t, 10);
|
|
2779
2779
|
return Number.isInteger(i) && i >= 0 && i < e.length ? e[i].value : n;
|
|
2780
2780
|
}
|
|
2781
|
-
function
|
|
2782
|
-
if (
|
|
2781
|
+
function Zi(e, t) {
|
|
2782
|
+
if (nn(void 0, { inputType: e, codeLanguage: t }))
|
|
2783
2783
|
return "code";
|
|
2784
|
-
const n =
|
|
2784
|
+
const n = P(e);
|
|
2785
2785
|
if (n) {
|
|
2786
2786
|
if (n === "float" || n === "int" || n === "integer" || n === "number")
|
|
2787
2787
|
return "number";
|
|
@@ -2799,6 +2799,8 @@ function Yi(e, t) {
|
|
|
2799
2799
|
return "scalar-list";
|
|
2800
2800
|
if (n === "entityref" || n === "entityreference" || n === "entity-ref")
|
|
2801
2801
|
return "entity-ref";
|
|
2802
|
+
if (n === "resourceref" || n === "resource-ref")
|
|
2803
|
+
return "resource-ref";
|
|
2802
2804
|
if (n === "dna")
|
|
2803
2805
|
return "dna";
|
|
2804
2806
|
if (Ee(n))
|
|
@@ -2807,10 +2809,10 @@ function Yi(e, t) {
|
|
|
2807
2809
|
return "text";
|
|
2808
2810
|
}
|
|
2809
2811
|
}
|
|
2810
|
-
function
|
|
2811
|
-
return
|
|
2812
|
+
function X(e) {
|
|
2813
|
+
return P(e);
|
|
2812
2814
|
}
|
|
2813
|
-
function
|
|
2815
|
+
function an(e) {
|
|
2814
2816
|
const t = [];
|
|
2815
2817
|
let n = 0, i = null, r = "";
|
|
2816
2818
|
for (let o = 0; o < e.length; o += 1) {
|
|
@@ -2839,21 +2841,21 @@ function on(e) {
|
|
|
2839
2841
|
}
|
|
2840
2842
|
return r.trim() && t.push(r.trim()), t.length > 0 ? t : [e.trim()];
|
|
2841
2843
|
}
|
|
2842
|
-
function
|
|
2844
|
+
function j(e) {
|
|
2843
2845
|
return typeof e == "string" ? e.trim().replace(/\s+/g, "").toLowerCase() : "";
|
|
2844
2846
|
}
|
|
2845
|
-
function
|
|
2847
|
+
function V(e) {
|
|
2846
2848
|
let t = typeof e == "string" ? e.trim() : "";
|
|
2847
2849
|
for (let n = 0; n < 4; n += 1) {
|
|
2848
|
-
const r =
|
|
2850
|
+
const r = j(t).match(/^(?:typing\.)?optional\[(.*)\]$/);
|
|
2849
2851
|
if (r) {
|
|
2850
2852
|
t = r[1];
|
|
2851
2853
|
continue;
|
|
2852
2854
|
}
|
|
2853
|
-
const o =
|
|
2855
|
+
const o = an(t);
|
|
2854
2856
|
if (o.length > 1) {
|
|
2855
2857
|
const s = o.filter((a) => {
|
|
2856
|
-
const l =
|
|
2858
|
+
const l = j(a);
|
|
2857
2859
|
return l !== "none" && l !== "null" && l !== "undefined";
|
|
2858
2860
|
});
|
|
2859
2861
|
if (s.length === 1) {
|
|
@@ -2865,25 +2867,29 @@ function se(e) {
|
|
|
2865
2867
|
}
|
|
2866
2868
|
return t;
|
|
2867
2869
|
}
|
|
2868
|
-
function
|
|
2870
|
+
function ln(e) {
|
|
2869
2871
|
const t = typeof e == "string" ? e.trim() : "";
|
|
2870
2872
|
if (!t)
|
|
2871
2873
|
return !1;
|
|
2872
|
-
const n =
|
|
2874
|
+
const n = j(t);
|
|
2873
2875
|
if (/^(?:typing\.)?optional\[.*\]$/.test(n))
|
|
2874
2876
|
return !0;
|
|
2875
|
-
const i =
|
|
2877
|
+
const i = an(t);
|
|
2876
2878
|
return i.length > 1 && i.some((r) => {
|
|
2877
|
-
const o =
|
|
2879
|
+
const o = j(r);
|
|
2878
2880
|
return o === "none" || o === "null" || o === "undefined";
|
|
2879
2881
|
});
|
|
2880
2882
|
}
|
|
2881
|
-
function
|
|
2882
|
-
const t =
|
|
2883
|
+
function er(e) {
|
|
2884
|
+
const t = X(V(e));
|
|
2883
2885
|
return t === "float" || t === "int" || t === "integer" || t === "number";
|
|
2884
2886
|
}
|
|
2885
|
-
function
|
|
2886
|
-
const t =
|
|
2887
|
+
function so(e) {
|
|
2888
|
+
const t = X(V(e));
|
|
2889
|
+
return t === "int" || t === "integer";
|
|
2890
|
+
}
|
|
2891
|
+
function $t(e) {
|
|
2892
|
+
const t = j(e).replace(/^typing\./, "");
|
|
2887
2893
|
if (t === "str" || t === "string" || t === "builtins.str")
|
|
2888
2894
|
return "string";
|
|
2889
2895
|
if (t === "int" || t === "integer" || t === "builtins.int")
|
|
@@ -2891,73 +2897,109 @@ function Nt(e) {
|
|
|
2891
2897
|
if (t === "float" || t === "number" || t === "builtins.float")
|
|
2892
2898
|
return "float";
|
|
2893
2899
|
}
|
|
2894
|
-
function
|
|
2900
|
+
function L(e) {
|
|
2895
2901
|
return typeof e != "string" ? void 0 : e.trim() || void 0;
|
|
2896
2902
|
}
|
|
2897
|
-
function
|
|
2903
|
+
function cn(e) {
|
|
2898
2904
|
if (!e)
|
|
2899
2905
|
return;
|
|
2900
2906
|
const t = e.trim();
|
|
2901
2907
|
return t.startsWith('"') && t.endsWith('"') || t.startsWith("'") && t.endsWith("'") ? t.slice(1, -1).trim() || void 0 : t || void 0;
|
|
2902
2908
|
}
|
|
2903
|
-
function
|
|
2904
|
-
const n =
|
|
2905
|
-
return n ?
|
|
2909
|
+
function Ve(e) {
|
|
2910
|
+
const n = j(e).replace(/^typing\./, "").match(/^(?:airalogy\.types\.)?entityref(?:\[(.*)\])?$/);
|
|
2911
|
+
return n ? cn(n[1]) : void 0;
|
|
2906
2912
|
}
|
|
2907
2913
|
function We(e) {
|
|
2908
|
-
const
|
|
2914
|
+
const n = j(e).replace(/^typing\./, "").match(/^(?:airalogy\.types\.)?resourceref(?:\[(.*)\])?$/);
|
|
2915
|
+
return n ? cn(n[1]) : void 0;
|
|
2916
|
+
}
|
|
2917
|
+
function qe(e) {
|
|
2918
|
+
const t = j(e).replace(/^typing\./, "");
|
|
2909
2919
|
return /^(?:airalogy\.types\.)?entityref(?:\[.*\])?$/.test(t);
|
|
2910
2920
|
}
|
|
2911
|
-
function
|
|
2912
|
-
const
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2921
|
+
function Je(e) {
|
|
2922
|
+
const t = j(e).replace(/^typing\./, "");
|
|
2923
|
+
return /^(?:airalogy\.types\.)?resourceref(?:\[.*\])?$/.test(t);
|
|
2924
|
+
}
|
|
2925
|
+
function tr(e, t, n) {
|
|
2926
|
+
const i = V(e), r = j(i).replace(/^typing\./, "");
|
|
2927
|
+
let o = !1, s = We(i), a = Je(i);
|
|
2928
|
+
const l = r.match(/^(?:list|array)\[(.*)\]$/);
|
|
2929
|
+
if (l)
|
|
2930
|
+
o = !0, s = We(l[1]), a = Je(l[1]);
|
|
2931
|
+
else if (r.endsWith("[]")) {
|
|
2932
|
+
o = !0;
|
|
2933
|
+
const f = r.slice(0, -2);
|
|
2934
|
+
s = We(f), a = Je(f);
|
|
2935
|
+
}
|
|
2936
|
+
if (!a) return;
|
|
2937
|
+
const c = n?.resource_role ?? t?.resource_role, d = ["input", "output", "reference", "equipment"].includes(String(c)) ? c : "reference";
|
|
2938
|
+
return {
|
|
2939
|
+
multiple: o,
|
|
2940
|
+
entity: L(n?.entity) ?? L(t?.entity) ?? s,
|
|
2941
|
+
source: L(n?.source) ?? L(t?.source),
|
|
2942
|
+
role: d,
|
|
2943
|
+
quantityField: L(n?.quantity_field) ?? L(t?.quantity_field),
|
|
2944
|
+
containerRequired: n?.container_required === !0 || t?.container_required === !0,
|
|
2945
|
+
bookingRequired: n?.booking_required === !0 || t?.booking_required === !0
|
|
2946
|
+
};
|
|
2947
|
+
}
|
|
2948
|
+
function nr(e, t, n) {
|
|
2949
|
+
return tr(e, t, n) !== void 0;
|
|
2950
|
+
}
|
|
2951
|
+
function ir(e, t, n) {
|
|
2952
|
+
const i = V(e), r = j(i).replace(/^typing\./, ""), o = Ve(i);
|
|
2953
|
+
let s = !1, a = o, l = qe(i);
|
|
2954
|
+
const c = r.match(/^(?:list|array)\[(.*)\]$/);
|
|
2955
|
+
if (c)
|
|
2956
|
+
s = !0, a = Ve(c[1]), l = qe(c[1]);
|
|
2917
2957
|
else if (r.endsWith("[]")) {
|
|
2918
2958
|
s = !0;
|
|
2919
2959
|
const d = r.slice(0, -2);
|
|
2920
|
-
a =
|
|
2960
|
+
a = Ve(d), l = qe(d);
|
|
2921
2961
|
}
|
|
2922
2962
|
if (l)
|
|
2923
2963
|
return {
|
|
2924
2964
|
multiple: s,
|
|
2925
|
-
entity:
|
|
2926
|
-
source:
|
|
2965
|
+
entity: L(n?.entity) ?? L(t?.entity) ?? a,
|
|
2966
|
+
source: L(n?.source) ?? L(t?.source)
|
|
2927
2967
|
};
|
|
2928
2968
|
}
|
|
2929
|
-
function
|
|
2930
|
-
return
|
|
2969
|
+
function rr(e, t, n) {
|
|
2970
|
+
return ir(e, t, n) !== void 0;
|
|
2931
2971
|
}
|
|
2932
|
-
function
|
|
2933
|
-
const t =
|
|
2972
|
+
function ut(e) {
|
|
2973
|
+
const t = j(V(e)).replace(/^typing\./, "");
|
|
2934
2974
|
if (t.endsWith("[]"))
|
|
2935
|
-
return
|
|
2975
|
+
return $t(t.slice(0, -2));
|
|
2936
2976
|
const n = t.match(/^(?:list|array)\[(.*)\]$/);
|
|
2937
|
-
return n ?
|
|
2977
|
+
return n ? $t(n[1]) : void 0;
|
|
2938
2978
|
}
|
|
2939
|
-
function
|
|
2940
|
-
return
|
|
2979
|
+
function or(e) {
|
|
2980
|
+
return ut(e) !== void 0;
|
|
2941
2981
|
}
|
|
2942
|
-
function
|
|
2943
|
-
const t =
|
|
2982
|
+
function dt(e) {
|
|
2983
|
+
const t = V(e), n = j(t).replace(/^typing\./, ""), i = X(t);
|
|
2944
2984
|
return i === "json" || i === "list" || n.startsWith("list[") || i === "array" || n.startsWith("array[") || i === "dict" || n.startsWith("dict[") || i === "map" || n.startsWith("map[") || i === "object" || i === "record";
|
|
2945
2985
|
}
|
|
2946
|
-
function
|
|
2947
|
-
const n =
|
|
2986
|
+
function ao(e, t = {}) {
|
|
2987
|
+
const n = Zi(t.inputType, t.codeLanguage);
|
|
2948
2988
|
if (n)
|
|
2949
2989
|
return n;
|
|
2950
|
-
const i = t.typePlugin ??
|
|
2990
|
+
const i = t.typePlugin ?? sn(e, t.typePlugins);
|
|
2951
2991
|
if (i?.inputKind)
|
|
2952
2992
|
return i.inputKind;
|
|
2953
|
-
if (
|
|
2993
|
+
if (nr(e, t.kwargs, t.fieldMeta))
|
|
2994
|
+
return "resource-ref";
|
|
2995
|
+
if (rr(e, t.kwargs, t.fieldMeta))
|
|
2954
2996
|
return "entity-ref";
|
|
2955
|
-
if (
|
|
2997
|
+
if (or(e))
|
|
2956
2998
|
return "scalar-list";
|
|
2957
|
-
const r =
|
|
2958
|
-
return o === "float" || o === "int" || o === "integer" || o === "number" ? "number" : o === "bool" || o === "boolean" || o === "checkbox" ?
|
|
2999
|
+
const r = V(e), o = X(r);
|
|
3000
|
+
return o === "float" || o === "int" || o === "integer" || o === "number" ? "number" : o === "bool" || o === "boolean" || o === "checkbox" ? ln(e) ? "boolean-select" : "checkbox" : o === "date" ? "date" : o === "datetime" || o === "currenttime" ? "datetime" : o === "time" || o === "duration" ? "time" : o === "dnasequence" ? "dna" : o === "md" || o === "markdown" || o === "airalogymarkdown" || dt(e) ? "textarea" : Xi(r, t.kwargs, t.fieldMeta) ? "file" : nn(r, { codeLanguage: t.codeLanguage }) ? "code" : "text";
|
|
2959
3001
|
}
|
|
2960
|
-
function
|
|
3002
|
+
function sr(e) {
|
|
2961
3003
|
if (typeof e == "string")
|
|
2962
3004
|
return e;
|
|
2963
3005
|
if (e === null || typeof e > "u")
|
|
@@ -2968,15 +3010,15 @@ function nr(e) {
|
|
|
2968
3010
|
return String(e);
|
|
2969
3011
|
}
|
|
2970
3012
|
}
|
|
2971
|
-
function
|
|
3013
|
+
function ar(e, t) {
|
|
2972
3014
|
const n = Number(e);
|
|
2973
3015
|
return !Number.isFinite(n) || t === "int" && !Number.isInteger(n) ? e : n;
|
|
2974
3016
|
}
|
|
2975
|
-
function
|
|
2976
|
-
return e.map((n) => n === null || typeof n > "u" ? "" : String(n).trim()).filter((n) => n.length > 0).map((n) => t === "string" ? n :
|
|
3017
|
+
function fn(e, t = "string") {
|
|
3018
|
+
return e.map((n) => n === null || typeof n > "u" ? "" : String(n).trim()).filter((n) => n.length > 0).map((n) => t === "string" ? n : ar(n, t));
|
|
2977
3019
|
}
|
|
2978
|
-
function
|
|
2979
|
-
const t =
|
|
3020
|
+
function un(e) {
|
|
3021
|
+
const t = W(e);
|
|
2980
3022
|
if (Array.isArray(t))
|
|
2981
3023
|
return t.map((n) => n === null || typeof n > "u" ? "" : String(n));
|
|
2982
3024
|
if (typeof t == "string") {
|
|
@@ -2995,8 +3037,8 @@ function ln(e) {
|
|
|
2995
3037
|
}
|
|
2996
3038
|
return t === null || typeof t > "u" ? [] : [String(t)];
|
|
2997
3039
|
}
|
|
2998
|
-
function
|
|
2999
|
-
const t =
|
|
3040
|
+
function jt(e) {
|
|
3041
|
+
const t = W(e);
|
|
3000
3042
|
if (typeof t == "string")
|
|
3001
3043
|
return t.trim();
|
|
3002
3044
|
if (!t || typeof t != "object" || Array.isArray(t))
|
|
@@ -3004,11 +3046,11 @@ function Ot(e) {
|
|
|
3004
3046
|
const n = t, i = n.label ?? n.name ?? n.title, r = n.id ?? n.value ?? n.key, o = typeof i == "string" ? i.trim() : "", s = typeof r == "string" || typeof r == "number" ? String(r).trim() : "";
|
|
3005
3047
|
return o && s && o !== s ? `${o} (${s})` : o || s;
|
|
3006
3048
|
}
|
|
3007
|
-
function
|
|
3008
|
-
const t =
|
|
3009
|
-
return Array.isArray(t) ? t.map((n) =>
|
|
3049
|
+
function lr(e) {
|
|
3050
|
+
const t = W(e);
|
|
3051
|
+
return Array.isArray(t) ? t.map((n) => jt(n)).filter(Boolean).join(", ") : jt(t);
|
|
3010
3052
|
}
|
|
3011
|
-
function
|
|
3053
|
+
function ne(e) {
|
|
3012
3054
|
if (typeof e == "number")
|
|
3013
3055
|
return Number.isFinite(e) ? e : void 0;
|
|
3014
3056
|
if (typeof e == "string" && e.trim()) {
|
|
@@ -3016,25 +3058,25 @@ function H(e) {
|
|
|
3016
3058
|
return Number.isFinite(t) ? t : void 0;
|
|
3017
3059
|
}
|
|
3018
3060
|
}
|
|
3019
|
-
function
|
|
3020
|
-
if (!
|
|
3061
|
+
function dn(e, t) {
|
|
3062
|
+
if (!er(e) || !t)
|
|
3021
3063
|
return {};
|
|
3022
|
-
const n = {}, i =
|
|
3064
|
+
const n = {}, i = ne(t.gt), r = ne(t.ge), o = ne(t.lt), s = ne(t.le), a = ne(t.multiple_of);
|
|
3023
3065
|
return i !== void 0 && (n.gt = i), r !== void 0 && (n.ge = r), o !== void 0 && (n.lt = o), s !== void 0 && (n.le = s), a !== void 0 && a > 0 && (n.multiple_of = a), n;
|
|
3024
3066
|
}
|
|
3025
|
-
function
|
|
3026
|
-
const n =
|
|
3067
|
+
function lo(e, t) {
|
|
3068
|
+
const n = dn(e, t), i = [n.gt, n.ge].filter((o) => o !== void 0), r = [n.lt, n.le].filter((o) => o !== void 0);
|
|
3027
3069
|
return {
|
|
3028
3070
|
min: i.length ? Math.max(...i) : void 0,
|
|
3029
3071
|
max: r.length ? Math.min(...r) : void 0,
|
|
3030
3072
|
step: n.multiple_of
|
|
3031
3073
|
};
|
|
3032
3074
|
}
|
|
3033
|
-
function
|
|
3034
|
-
const i =
|
|
3075
|
+
function co(e, t, n) {
|
|
3076
|
+
const i = dn(t, n);
|
|
3035
3077
|
if (Object.keys(i).length === 0 || e === null || typeof e > "u" || typeof e == "string" && e.trim() === "")
|
|
3036
3078
|
return null;
|
|
3037
|
-
const r =
|
|
3079
|
+
const r = ne(e);
|
|
3038
3080
|
if (r === void 0)
|
|
3039
3081
|
return null;
|
|
3040
3082
|
if (i.gt !== void 0 && !(r > i.gt))
|
|
@@ -3052,14 +3094,14 @@ function ro(e, t, n) {
|
|
|
3052
3094
|
}
|
|
3053
3095
|
return null;
|
|
3054
3096
|
}
|
|
3055
|
-
function
|
|
3097
|
+
function W(e) {
|
|
3056
3098
|
return Oe(e);
|
|
3057
3099
|
}
|
|
3058
|
-
function
|
|
3059
|
-
return
|
|
3100
|
+
function fo(e) {
|
|
3101
|
+
return Rn(e);
|
|
3060
3102
|
}
|
|
3061
|
-
function
|
|
3062
|
-
const t =
|
|
3103
|
+
function pn(e) {
|
|
3104
|
+
const t = W(e);
|
|
3063
3105
|
if (t instanceof Date)
|
|
3064
3106
|
return Number.isNaN(t.getTime()) ? null : t;
|
|
3065
3107
|
if (typeof t == "number") {
|
|
@@ -3072,19 +3114,19 @@ function cn(e) {
|
|
|
3072
3114
|
}
|
|
3073
3115
|
return null;
|
|
3074
3116
|
}
|
|
3075
|
-
function
|
|
3117
|
+
function F(e) {
|
|
3076
3118
|
return String(e).padStart(2, "0");
|
|
3077
3119
|
}
|
|
3078
|
-
function
|
|
3120
|
+
function cr(e) {
|
|
3079
3121
|
const t = -e.getTimezoneOffset(), n = t >= 0 ? "+" : "-", i = Math.abs(t), r = Math.floor(i / 60), o = i % 60;
|
|
3080
|
-
return `${n}${
|
|
3122
|
+
return `${n}${F(r)}:${F(o)}`;
|
|
3081
3123
|
}
|
|
3082
|
-
function
|
|
3083
|
-
const t = e.getFullYear(), n =
|
|
3084
|
-
return `${t}-${n}-${i}T${r}:${o}${
|
|
3124
|
+
function Dt(e) {
|
|
3125
|
+
const t = e.getFullYear(), n = F(e.getMonth() + 1), i = F(e.getDate()), r = F(e.getHours()), o = F(e.getMinutes());
|
|
3126
|
+
return `${t}-${n}-${i}T${r}:${o}${cr(e)}`;
|
|
3085
3127
|
}
|
|
3086
|
-
function
|
|
3087
|
-
const t =
|
|
3128
|
+
function fr(e) {
|
|
3129
|
+
const t = W(e);
|
|
3088
3130
|
if (typeof t == "string") {
|
|
3089
3131
|
const i = t.trim();
|
|
3090
3132
|
if (!i)
|
|
@@ -3093,39 +3135,39 @@ function sr(e) {
|
|
|
3093
3135
|
if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/.test(r))
|
|
3094
3136
|
return r;
|
|
3095
3137
|
const o = new Date(r);
|
|
3096
|
-
return Number.isNaN(o.getTime()) ? e :
|
|
3138
|
+
return Number.isNaN(o.getTime()) ? e : Dt(o);
|
|
3097
3139
|
}
|
|
3098
3140
|
if (t === null || typeof t > "u")
|
|
3099
3141
|
return "";
|
|
3100
|
-
const n =
|
|
3101
|
-
return n ?
|
|
3142
|
+
const n = pn(t);
|
|
3143
|
+
return n ? Dt(n) : e;
|
|
3102
3144
|
}
|
|
3103
|
-
function
|
|
3104
|
-
const n =
|
|
3145
|
+
function ur(e, t) {
|
|
3146
|
+
const n = W(e);
|
|
3105
3147
|
if (typeof n == "string" && n.trim()) {
|
|
3106
3148
|
const d = n.trim();
|
|
3107
3149
|
if (t === "date" && /^\d{4}-\d{2}-\d{2}/.test(d))
|
|
3108
3150
|
return d.slice(0, 10);
|
|
3109
3151
|
if (t === "datetime") {
|
|
3110
|
-
const
|
|
3111
|
-
if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/.test(
|
|
3112
|
-
return
|
|
3152
|
+
const f = d.replace(" ", "T");
|
|
3153
|
+
if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/.test(f))
|
|
3154
|
+
return f.slice(0, 16);
|
|
3113
3155
|
}
|
|
3114
3156
|
if (t === "time" && /^\d{2}:\d{2}/.test(d))
|
|
3115
3157
|
return d.slice(0, 8);
|
|
3116
3158
|
}
|
|
3117
|
-
const i =
|
|
3159
|
+
const i = pn(n);
|
|
3118
3160
|
if (!i)
|
|
3119
3161
|
return "";
|
|
3120
|
-
const r = i.getFullYear(), o =
|
|
3121
|
-
return t === "date" ? `${r}-${o}-${s}` : t === "time" ? `${a}:${l}:${
|
|
3162
|
+
const r = i.getFullYear(), o = F(i.getMonth() + 1), s = F(i.getDate()), a = F(i.getHours()), l = F(i.getMinutes()), c = F(i.getSeconds());
|
|
3163
|
+
return t === "date" ? `${r}-${o}-${s}` : t === "time" ? `${a}:${l}:${c}` : `${r}-${o}-${s}T${a}:${l}`;
|
|
3122
3164
|
}
|
|
3123
|
-
function
|
|
3165
|
+
function uo(e, t, n = {}) {
|
|
3124
3166
|
const i = n.typePlugin;
|
|
3125
3167
|
if (i?.getDisplayValue) {
|
|
3126
3168
|
const o = {
|
|
3127
3169
|
type: n.type || "str",
|
|
3128
|
-
normalizedType:
|
|
3170
|
+
normalizedType: X(n.type),
|
|
3129
3171
|
fieldKey: n.nodeFieldKey ?? "",
|
|
3130
3172
|
node: {},
|
|
3131
3173
|
value: e,
|
|
@@ -3134,9 +3176,9 @@ function so(e, t, n = {}) {
|
|
|
3134
3176
|
};
|
|
3135
3177
|
return i.getDisplayValue(o);
|
|
3136
3178
|
}
|
|
3137
|
-
const r =
|
|
3179
|
+
const r = W(e);
|
|
3138
3180
|
if (t === "date" || t === "datetime" || t === "time")
|
|
3139
|
-
return
|
|
3181
|
+
return ur(r, t);
|
|
3140
3182
|
if (t === "number")
|
|
3141
3183
|
return typeof r == "number" || typeof r == "string" ? r : "";
|
|
3142
3184
|
if (t === "boolean-select") {
|
|
@@ -3151,17 +3193,17 @@ function so(e, t, n = {}) {
|
|
|
3151
3193
|
}
|
|
3152
3194
|
return "";
|
|
3153
3195
|
}
|
|
3154
|
-
return t === "dna" ? typeof r == "string" ? r : JSON.stringify(r) : t === "file" ?
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
)) : t === "entity-ref" ?
|
|
3196
|
+
return t === "dna" ? typeof r == "string" ? r : JSON.stringify(r) : t === "file" ? Hi(r) : t === "scalar-list" ? JSON.stringify(fn(
|
|
3197
|
+
un(r),
|
|
3198
|
+
ut(n.type) ?? "string"
|
|
3199
|
+
)) : t === "entity-ref" || t === "resource-ref" ? lr(r) : dt(n.type) ? sr(r) : typeof r == "string" ? r : r === null || typeof r > "u" ? "" : String(r);
|
|
3158
3200
|
}
|
|
3159
|
-
function
|
|
3160
|
-
const r = i.typePlugin ??
|
|
3201
|
+
function po(e, t, n, i = {}) {
|
|
3202
|
+
const r = i.typePlugin ?? sn(t, i.typePlugins);
|
|
3161
3203
|
if (r?.parseInputValue) {
|
|
3162
3204
|
const a = {
|
|
3163
3205
|
type: t || "str",
|
|
3164
|
-
normalizedType:
|
|
3206
|
+
normalizedType: X(t),
|
|
3165
3207
|
fieldKey: i.nodeFieldKey ?? "",
|
|
3166
3208
|
node: {},
|
|
3167
3209
|
rawValue: e,
|
|
@@ -3170,11 +3212,11 @@ function ao(e, t, n, i = {}) {
|
|
|
3170
3212
|
};
|
|
3171
3213
|
return r.parseInputValue(a);
|
|
3172
3214
|
}
|
|
3173
|
-
const o =
|
|
3215
|
+
const o = ln(t), s = X(V(t));
|
|
3174
3216
|
if ((n === "date" || n === "datetime" || n === "time") && o && e.trim() === "")
|
|
3175
3217
|
return null;
|
|
3176
3218
|
if (n === "datetime")
|
|
3177
|
-
return
|
|
3219
|
+
return fr(e);
|
|
3178
3220
|
if (n === "number") {
|
|
3179
3221
|
const a = e.trim();
|
|
3180
3222
|
if (!a)
|
|
@@ -3183,15 +3225,15 @@ function ao(e, t, n, i = {}) {
|
|
|
3183
3225
|
return Number.isNaN(l) ? e : l;
|
|
3184
3226
|
}
|
|
3185
3227
|
if (n === "scalar-list")
|
|
3186
|
-
return
|
|
3187
|
-
|
|
3188
|
-
|
|
3228
|
+
return fn(
|
|
3229
|
+
un(e),
|
|
3230
|
+
ut(t) ?? "string"
|
|
3189
3231
|
);
|
|
3190
3232
|
if (n === "boolean-select") {
|
|
3191
3233
|
const a = e.trim().toLowerCase();
|
|
3192
3234
|
return a ? a === "true" ? !0 : a === "false" ? !1 : e : null;
|
|
3193
3235
|
}
|
|
3194
|
-
if (
|
|
3236
|
+
if (dt(t)) {
|
|
3195
3237
|
const a = e.trim();
|
|
3196
3238
|
if (!a)
|
|
3197
3239
|
return o ? null : "";
|
|
@@ -3203,7 +3245,7 @@ function ao(e, t, n, i = {}) {
|
|
|
3203
3245
|
}
|
|
3204
3246
|
return o && e.trim() === "" ? null : e;
|
|
3205
3247
|
}
|
|
3206
|
-
function
|
|
3248
|
+
function mn(e) {
|
|
3207
3249
|
switch (e) {
|
|
3208
3250
|
case "textarea":
|
|
3209
3251
|
case "dna":
|
|
@@ -3211,12 +3253,13 @@ function un(e) {
|
|
|
3211
3253
|
case "file":
|
|
3212
3254
|
case "scalar-list":
|
|
3213
3255
|
case "entity-ref":
|
|
3214
|
-
|
|
3256
|
+
case "resource-ref":
|
|
3257
|
+
return e === "scalar-list" || e === "entity-ref" || e === "resource-ref" ? 220 : 160;
|
|
3215
3258
|
default:
|
|
3216
3259
|
return 0;
|
|
3217
3260
|
}
|
|
3218
3261
|
}
|
|
3219
|
-
function
|
|
3262
|
+
function dr(e) {
|
|
3220
3263
|
switch (e) {
|
|
3221
3264
|
case "datetime":
|
|
3222
3265
|
return 36;
|
|
@@ -3228,12 +3271,13 @@ function lr(e) {
|
|
|
3228
3271
|
return 24;
|
|
3229
3272
|
case "scalar-list":
|
|
3230
3273
|
case "entity-ref":
|
|
3274
|
+
case "resource-ref":
|
|
3231
3275
|
return 16;
|
|
3232
3276
|
default:
|
|
3233
3277
|
return 4;
|
|
3234
3278
|
}
|
|
3235
3279
|
}
|
|
3236
|
-
function
|
|
3280
|
+
function pr(e) {
|
|
3237
3281
|
if (!e?.classList.contains("aimd-rec-inline__file-control"))
|
|
3238
3282
|
return 0;
|
|
3239
3283
|
switch (e.dataset.fileKind) {
|
|
@@ -3245,69 +3289,69 @@ function fr(e) {
|
|
|
3245
3289
|
return 220;
|
|
3246
3290
|
}
|
|
3247
3291
|
}
|
|
3248
|
-
function
|
|
3249
|
-
const n = Math.max(e.length + 7, 10), o = Math.round(n * 8 + 16), s =
|
|
3292
|
+
function mo(e, t) {
|
|
3293
|
+
const n = Math.max(e.length + 7, 10), o = Math.round(n * 8 + 16), s = mn(t);
|
|
3250
3294
|
return `${Math.max(s, o)}px`;
|
|
3251
3295
|
}
|
|
3252
3296
|
function E(e) {
|
|
3253
3297
|
const t = Number.parseFloat(e);
|
|
3254
3298
|
return Number.isFinite(t) ? t : 0;
|
|
3255
3299
|
}
|
|
3256
|
-
let
|
|
3257
|
-
function
|
|
3258
|
-
return typeof window > "u" ? null : (
|
|
3300
|
+
let Ke = null;
|
|
3301
|
+
function gn() {
|
|
3302
|
+
return typeof window > "u" ? null : (Ke || (Ke = document.createElement("canvas")), Ke.getContext("2d"));
|
|
3259
3303
|
}
|
|
3260
|
-
function
|
|
3261
|
-
const n =
|
|
3304
|
+
function mr(e, t) {
|
|
3305
|
+
const n = gn();
|
|
3262
3306
|
if (!n)
|
|
3263
3307
|
return 0;
|
|
3264
3308
|
const i = t.fontSize || "16px", r = t.fontFamily || "sans-serif", o = t.fontWeight || "400", s = t.fontStyle || "normal";
|
|
3265
3309
|
return n.font = `${s} ${o} ${i} ${r}`, n.measureText(e).width;
|
|
3266
3310
|
}
|
|
3267
|
-
function
|
|
3311
|
+
function G(e) {
|
|
3268
3312
|
if (typeof window > "u")
|
|
3269
3313
|
return e.scrollWidth;
|
|
3270
|
-
const t = window.getComputedStyle(e), n = (e.textContent || "").trim(), i =
|
|
3314
|
+
const t = window.getComputedStyle(e), n = (e.textContent || "").trim(), i = mr(n, t), r = E(t.paddingLeft) + E(t.paddingRight) + E(t.borderLeftWidth) + E(t.borderRightWidth) + E(t.marginLeft) + E(t.marginRight);
|
|
3271
3315
|
return i + r;
|
|
3272
3316
|
}
|
|
3273
|
-
function
|
|
3317
|
+
function gr(e) {
|
|
3274
3318
|
if (typeof window > "u")
|
|
3275
3319
|
return 0;
|
|
3276
3320
|
const t = window.getComputedStyle(e);
|
|
3277
3321
|
return E(t.paddingLeft) + E(t.paddingRight) + E(t.borderLeftWidth) + E(t.borderRightWidth) + E(t.marginLeft) + E(t.marginRight);
|
|
3278
3322
|
}
|
|
3279
|
-
function
|
|
3280
|
-
const t = e.querySelector(".aimd-field__title"), n = e.querySelector(".aimd-field__key"), i = Math.max(
|
|
3281
|
-
|
|
3282
|
-
n ?
|
|
3323
|
+
function yr(e) {
|
|
3324
|
+
const t = e.querySelector(".aimd-field__title"), n = e.querySelector(".aimd-field__key"), i = e.querySelector(".aimd-field__required-marker"), r = (t ? G(t) : 0) + (i ? G(i) : 0), o = Math.max(
|
|
3325
|
+
r,
|
|
3326
|
+
n ? G(n) : 0
|
|
3283
3327
|
);
|
|
3284
|
-
return
|
|
3328
|
+
return o > 0 ? o + gr(e) : G(e);
|
|
3285
3329
|
}
|
|
3286
|
-
function
|
|
3330
|
+
function hr(e) {
|
|
3287
3331
|
const t = e.querySelector(".aimd-field__scope--var"), n = e.querySelector(".aimd-field__name"), i = e.querySelector(".aimd-field__id");
|
|
3288
3332
|
if (t && n)
|
|
3289
|
-
return
|
|
3333
|
+
return G(t) + yr(n) + 4;
|
|
3290
3334
|
if (t && i)
|
|
3291
|
-
return
|
|
3335
|
+
return G(t) + G(i) + 4;
|
|
3292
3336
|
const r = e.querySelector(".aimd-field__label");
|
|
3293
3337
|
return r ? r.scrollWidth + 2 : 0;
|
|
3294
3338
|
}
|
|
3295
|
-
function
|
|
3339
|
+
function br(e) {
|
|
3296
3340
|
if (typeof window > "u")
|
|
3297
3341
|
return e.scrollWidth;
|
|
3298
|
-
const t =
|
|
3342
|
+
const t = gn();
|
|
3299
3343
|
if (!t)
|
|
3300
3344
|
return e.scrollWidth;
|
|
3301
3345
|
const n = window.getComputedStyle(e), i = n.fontSize || "16px", r = n.fontFamily || "sans-serif", o = n.fontWeight || "400", s = n.fontStyle || "normal";
|
|
3302
3346
|
t.font = `${s} ${o} ${i} ${r}`;
|
|
3303
|
-
const a = "value" in e ? e.value || e.placeholder || "" : (e.textContent || "").trim(), l = t.measureText(a).width,
|
|
3304
|
-
return l +
|
|
3347
|
+
const a = "value" in e ? e.value || e.placeholder || "" : (e.textContent || "").trim(), l = t.measureText(a).width, c = E(n.paddingLeft) + E(n.paddingRight);
|
|
3348
|
+
return l + c + 2;
|
|
3305
3349
|
}
|
|
3306
|
-
function
|
|
3350
|
+
function Ft(e, t, n) {
|
|
3307
3351
|
const i = e.querySelector(t);
|
|
3308
3352
|
return i ? i.offsetWidth || n : 0;
|
|
3309
3353
|
}
|
|
3310
|
-
function
|
|
3354
|
+
function go(e) {
|
|
3311
3355
|
if (typeof window > "u")
|
|
3312
3356
|
return;
|
|
3313
3357
|
const t = e.classList.contains("aimd-rec-inline__textarea--stacked-text");
|
|
@@ -3320,11 +3364,11 @@ function fo(e) {
|
|
|
3320
3364
|
const r = E(n.borderTopWidth) + E(n.borderBottomWidth), o = Math.max(i, e.scrollHeight + r);
|
|
3321
3365
|
e.style.height = `${Math.ceil(o)}px`;
|
|
3322
3366
|
}
|
|
3323
|
-
function
|
|
3367
|
+
function yo(e, t) {
|
|
3324
3368
|
const n = e.closest(".aimd-rec-inline--var-stacked");
|
|
3325
3369
|
if (!n || typeof window > "u")
|
|
3326
3370
|
return;
|
|
3327
|
-
if (t === "scalar-list" || t === "entity-ref") {
|
|
3371
|
+
if (t === "scalar-list" || t === "entity-ref" || t === "resource-ref") {
|
|
3328
3372
|
n.style.width = "100%", n.style.maxWidth = "100%";
|
|
3329
3373
|
return;
|
|
3330
3374
|
}
|
|
@@ -3332,147 +3376,149 @@ function co(e, t) {
|
|
|
3332
3376
|
n.style.width = "max-content", n.style.maxWidth = "min(680px, 100%)";
|
|
3333
3377
|
return;
|
|
3334
3378
|
}
|
|
3335
|
-
const i =
|
|
3379
|
+
const i = hr(n);
|
|
3336
3380
|
let r = 0;
|
|
3337
|
-
const o = n.querySelector(".aimd-rec-inline__input--stacked, .aimd-rec-inline__textarea--stacked-text, .aimd-rec-inline__file-control, .aimd-rec-inline__scalar-list"), s = Math.max(
|
|
3338
|
-
o && (r =
|
|
3381
|
+
const o = n.querySelector(".aimd-rec-inline__input--stacked, .aimd-rec-inline__textarea--stacked-text, .aimd-rec-inline__file-control, .aimd-rec-inline__scalar-list"), s = Math.max(mn(t), pr(o));
|
|
3382
|
+
o && (r = br(o) + dr(t)), n.querySelector(".aimd-rec-inline__control-row") && (r += Ft(n, ".aimd-rec-inline__assigner-prefix", 36) + Ft(n, ".aimd-rec-inline__assigner-status", 30));
|
|
3339
3383
|
const a = Math.max(s, i, r);
|
|
3340
3384
|
n.style.width = `${Math.ceil(a)}px`, n.style.maxWidth = "100%";
|
|
3341
3385
|
}
|
|
3342
3386
|
export {
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3387
|
+
_i as $,
|
|
3388
|
+
ve as A,
|
|
3389
|
+
ut as B,
|
|
3346
3390
|
Pe as C,
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3391
|
+
Rr as D,
|
|
3392
|
+
ro as E,
|
|
3393
|
+
oo as F,
|
|
3394
|
+
uo as G,
|
|
3395
|
+
ao as H,
|
|
3396
|
+
vr as I,
|
|
3397
|
+
Xi as J,
|
|
3398
|
+
or as K,
|
|
3355
3399
|
Le as L,
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3400
|
+
xr as M,
|
|
3401
|
+
dt as N,
|
|
3402
|
+
br as O,
|
|
3403
|
+
hr as P,
|
|
3404
|
+
Si as Q,
|
|
3405
|
+
yi as R,
|
|
3406
|
+
fr as S,
|
|
3407
|
+
Ri as T,
|
|
3408
|
+
Ci as U,
|
|
3409
|
+
Nt as V,
|
|
3410
|
+
Ze as W,
|
|
3411
|
+
Ot as X,
|
|
3412
|
+
tn as Y,
|
|
3413
|
+
Ai as Z,
|
|
3414
|
+
fn as _,
|
|
3415
|
+
qr as a,
|
|
3416
|
+
Zr as a$,
|
|
3417
|
+
hi as a0,
|
|
3418
|
+
gi as a1,
|
|
3419
|
+
wi as a2,
|
|
3420
|
+
kt as a3,
|
|
3421
|
+
X as a4,
|
|
3422
|
+
po as a5,
|
|
3423
|
+
mi as a6,
|
|
3424
|
+
_e as a7,
|
|
3425
|
+
Mr as a8,
|
|
3426
|
+
Pr as a9,
|
|
3427
|
+
xn as aA,
|
|
3428
|
+
zn as aB,
|
|
3385
3429
|
Bt as aC,
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3430
|
+
tt as aD,
|
|
3431
|
+
Wr as aE,
|
|
3432
|
+
Tr as aF,
|
|
3433
|
+
vt as aG,
|
|
3434
|
+
Dr as aH,
|
|
3435
|
+
$r as aI,
|
|
3436
|
+
jr as aJ,
|
|
3437
|
+
Wn as aK,
|
|
3438
|
+
vn as aL,
|
|
3439
|
+
Or as aM,
|
|
3440
|
+
v as aN,
|
|
3397
3441
|
Ee as aO,
|
|
3398
|
-
|
|
3442
|
+
K as aP,
|
|
3399
3443
|
$ as aQ,
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3444
|
+
Ir as aR,
|
|
3445
|
+
pe as aS,
|
|
3446
|
+
P as aT,
|
|
3447
|
+
et as aU,
|
|
3448
|
+
Jr as aV,
|
|
3449
|
+
Cn as aW,
|
|
3450
|
+
Pn as aX,
|
|
3451
|
+
Rn as aY,
|
|
3408
3452
|
Oe as aZ,
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3453
|
+
Yi as a_,
|
|
3454
|
+
Hr as aa,
|
|
3455
|
+
Cr as ab,
|
|
3456
|
+
Fr as ac,
|
|
3457
|
+
go as ad,
|
|
3458
|
+
fo as ae,
|
|
3459
|
+
pn as af,
|
|
3460
|
+
W as ag,
|
|
3461
|
+
Dn as ah,
|
|
3462
|
+
Re as ai,
|
|
3463
|
+
Fn as aj,
|
|
3464
|
+
Rt as ak,
|
|
3465
|
+
Lt as al,
|
|
3466
|
+
Mn as am,
|
|
3467
|
+
Pt as an,
|
|
3468
|
+
jn as ao,
|
|
3469
|
+
Kr as ap,
|
|
3470
|
+
pi as aq,
|
|
3471
|
+
bt as ar,
|
|
3472
|
+
Nr as as,
|
|
3473
|
+
nt as at,
|
|
3474
|
+
xt as au,
|
|
3475
|
+
Vn as av,
|
|
3476
|
+
ht as aw,
|
|
3477
|
+
zt as ax,
|
|
3478
|
+
Bn as ay,
|
|
3479
|
+
ae as az,
|
|
3480
|
+
bi as b,
|
|
3481
|
+
sn as b0,
|
|
3482
|
+
io as b1,
|
|
3483
|
+
no as b2,
|
|
3484
|
+
er as b3,
|
|
3485
|
+
co as b4,
|
|
3486
|
+
Ar as b5,
|
|
3487
|
+
Er as b6,
|
|
3488
|
+
ln as b7,
|
|
3489
|
+
kr as b8,
|
|
3490
|
+
so as b9,
|
|
3491
|
+
Oi as ba,
|
|
3492
|
+
lo as bb,
|
|
3493
|
+
ir as bc,
|
|
3494
|
+
tr as bd,
|
|
3495
|
+
$n as be,
|
|
3496
|
+
Sr as bf,
|
|
3497
|
+
wr as bg,
|
|
3498
|
+
Nn as bh,
|
|
3499
|
+
On as bi,
|
|
3500
|
+
yo as c,
|
|
3501
|
+
Yr as d,
|
|
3502
|
+
mo as e,
|
|
3503
|
+
Vr as f,
|
|
3504
|
+
Gr as g,
|
|
3505
|
+
ft as h,
|
|
3506
|
+
Mi as i,
|
|
3507
|
+
Fi as j,
|
|
3508
|
+
rn as k,
|
|
3509
|
+
en as l,
|
|
3464
3510
|
ke as m,
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3511
|
+
to as n,
|
|
3512
|
+
Ur as o,
|
|
3513
|
+
ur as p,
|
|
3514
|
+
Dt as q,
|
|
3515
|
+
Lr as r,
|
|
3516
|
+
Xr as s,
|
|
3517
|
+
Hi as t,
|
|
3518
|
+
eo as u,
|
|
3519
|
+
Qr as v,
|
|
3520
|
+
zr as w,
|
|
3521
|
+
Br as x,
|
|
3522
|
+
ki as y,
|
|
3523
|
+
un as z
|
|
3478
3524
|
};
|