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