@txgw/payout-components 0.5.2 → 0.6.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 (356) hide show
  1. package/dist/{AMIS-C5eEfOtM.js → AMIS--SZXSfKF.js} +6 -6
  2. package/dist/Action-D7O1nxY2.js +10 -0
  3. package/dist/{Action-CErPyqhd.js → Action-DpRShNiD.js} +21 -22
  4. package/dist/{Alert-CL6AxX9W.js → Alert-sakO0sgo.js} +8 -10
  5. package/dist/{AnchorNav-BQgaqBoy.js → AnchorNav-1OrNpCPU.js} +8 -10
  6. package/dist/App-mzRv6t1L.js +213 -0
  7. package/dist/{Audio-XJ-ya7eJ.js → Audio-CmGRzA8C.js} +8 -10
  8. package/dist/{Avatar-QQXB9S3Q.js → Avatar-C0g_Dcsr.js} +8 -10
  9. package/dist/{BarCode-Ddyw9A94.js → BarCode-Bgr2-a69.js} +7 -7
  10. package/dist/{BarCode-B3PHYs21.js → BarCode-f_fuunrs.js} +10 -10
  11. package/dist/{Breadcrumb-CbrEDG1L.js → Breadcrumb-3pb8787J.js} +8 -10
  12. package/dist/{ButtonGroup-Bc6JSoXR.js → ButtonGroup-DBJgP_U6.js} +7 -7
  13. package/dist/{ButtonGroupSelect-7uctYLWK.js → ButtonGroupSelect-BV8FHgm0.js} +9 -9
  14. package/dist/ButtonGroupSelect-Cl2irnYh.js +8 -0
  15. package/dist/{ButtonToolbar-EWvVGJ7N.js → ButtonToolbar-DMCBgh9w.js} +6 -6
  16. package/dist/{CRUD-C4gXxs8g.js → CRUD-DFP1DIcc.js} +44 -46
  17. package/dist/{CRUD2-L5l1_8In.js → CRUD2-BGpsdJ3D.js} +21 -23
  18. package/dist/{Calendar-DhRJvxTd.js → Calendar-D_aFq70_.js} +9 -11
  19. package/dist/Card-C54K-VRd.js +14 -0
  20. package/dist/{Card-BcxXrhE8.js → Card-FmRg7dLO.js} +26 -26
  21. package/dist/{Card2-RbgvR51k.js → Card2-Blr9gGoC.js} +8 -10
  22. package/dist/Cards-B7J3bYtx.js +485 -0
  23. package/dist/{Carousel-Crf07aHf.js → Carousel-Ba4JeK7n.js} +9 -11
  24. package/dist/{ChainedSelect-CFsJF5y3.js → ChainedSelect-CUU7qCFQ.js} +15 -17
  25. package/dist/{Chart-CYLdl6k0.js → Chart-BmOD9NEG.js} +11 -11
  26. package/dist/{ChartRadios-DlJuRNrx.js → ChartRadios-Bm7pnICh.js} +7 -7
  27. package/dist/{Checkbox-Cf_mVMHF.js → Checkbox-CcjG9Mv4.js} +5 -5
  28. package/dist/Checkbox-yvPZaH8N.js +10 -0
  29. package/dist/{Checkboxes-Dl2pbr1w.js → Checkboxes-Babxqar9.js} +13 -15
  30. package/dist/{Code-BIDd8kXb.js → Code-B7FhTic-.js} +10 -10
  31. package/dist/{Collapse-Bd9jyO8r.js → Collapse-BYdoEOZ2.js} +5 -5
  32. package/dist/Collapse-C9riUcKK.js +9 -0
  33. package/dist/{CollapseGroup-C35H5tbk.js → CollapseGroup-B7DmpWY1.js} +8 -10
  34. package/dist/{Color-CIbFLrBz.js → Color-BM1Qa0C1.js} +6 -6
  35. package/dist/{ColorPicker-DI5bOtYt.js → ColorPicker-BXmi_OWm.js} +30 -50
  36. package/dist/{ColumnToggler-fr1rfdSO.js → ColumnToggler-3QYyVjVf.js} +5 -5
  37. package/dist/ColumnToggler-D0NlxwMq.js +10 -0
  38. package/dist/{ColumnToggler-B13Y3e57.js → ColumnToggler-DLFwzPef.js} +11 -12
  39. package/dist/{Combo-CDtsyRSt.js → Combo-BsouWVHB.js} +37 -38
  40. package/dist/Combo-Cabifvbg.js +9 -0
  41. package/dist/{ConditionBuilder-CBl4Jioc.js → ConditionBuilder-BacjsaTh.js} +8 -10
  42. package/dist/{Container-B28GA5ym.js → Container-C5-66abH.js} +10 -12
  43. package/dist/{Control-BIDzpbuX.js → Control-krTArjIv.js} +6 -6
  44. package/dist/{Custom-6j0e0K6V.js → Custom-DawY4LgO.js} +6 -6
  45. package/dist/{Date-jzCX5NLQ.js → Date-C9Kib09x.js} +8 -8
  46. package/dist/{DateRange-ChlEtQuv.js → DateRange-D2lKQT_J.js} +6 -6
  47. package/dist/Dialog-oNlQLXnk.js +508 -0
  48. package/dist/{DiffEditor-fyqXITH0.js → DiffEditor-DY8XdtJS.js} +8 -10
  49. package/dist/{Divider-kXNT8Kpb.js → Divider-BgpLhaqf.js} +6 -6
  50. package/dist/{Drawer-DftiktlX.js → Drawer-DslUxLot.js} +24 -26
  51. package/dist/{DropDownButton-DQUNUwC3.js → DropDownButton-BIuAagmC.js} +9 -11
  52. package/dist/{Each-CgFfmNjU.js → Each-CA8gaJkL.js} +6 -6
  53. package/dist/{FieldSet-CpPow_4p.js → FieldSet-Cg1pE5gA.js} +4 -4
  54. package/dist/FieldSet-DVAa2H_Q.js +10 -0
  55. package/dist/{Flex-zWosUfSI.js → Flex-Baz4bI9u.js} +6 -6
  56. package/dist/{Formula-Djn7fCCV.js → Formula-ABhgdx_Q.js} +6 -6
  57. package/dist/{Grid2D-C79HuAFZ.js → Grid2D-DmdOVnhu.js} +8 -8
  58. package/dist/{GridNav-CE6lQbai.js → GridNav-lHAunT1M.js} +8 -10
  59. package/dist/{Group-kIPmyKmJ.js → Group-7sGnjMli.js} +13 -13
  60. package/dist/HBox-DxchKWfv.js +7 -0
  61. package/dist/{HBox-DEkb4cam.js → HBox-s88aG83B.js} +4 -4
  62. package/dist/{Hidden-DeRVSV3K.js → Hidden-BrTWoL8d.js} +6 -6
  63. package/dist/{IFrame-9oEnVjDw.js → IFrame-DaZ1v2-9.js} +6 -6
  64. package/dist/{Icon-CLZR3aiB.js → Icon-DNbdrsn8.js} +8 -10
  65. package/dist/{IconPicker-eyVR_kSQ.js → IconPicker-DqNlu5Zd.js} +13 -15
  66. package/dist/{IconSelect-CX-y4dt9.js → IconSelect-CvBITEcy.js} +9 -11
  67. package/dist/{IconSelectStore-6_CnklYA.js → IconSelectStore-CTqJPujB.js} +2 -2
  68. package/dist/{Image-Ba6YDbFB.js → Image-BBs8tnny.js} +11 -11
  69. package/dist/Image-DM9_Ii2b.js +9 -0
  70. package/dist/{Images-C_0GsHXi.js → Images-cRmH380W.js} +9 -11
  71. package/dist/{InputArray-DNhgr7Im.js → InputArray-Dov-RBrP.js} +9 -11
  72. package/dist/{InputCity-D-mfLobT.js → InputCity-owVpsIaD.js} +10 -12
  73. package/dist/{InputColor-DJRDQXkw.js → InputColor-DhVJhPp6.js} +8 -8
  74. package/dist/{InputDate-CgSiKBtx.js → InputDate-DLOwHbwT.js} +9 -11
  75. package/dist/InputDate-DWaIvnAp.js +292 -0
  76. package/dist/InputDateRange-CnGNwIFe.js +10 -0
  77. package/dist/InputDateRange-Diqw3JLp.js +170 -0
  78. package/dist/InputExcel-BjWNYvnN.js +427 -0
  79. package/dist/{InputFile-De-y47_A.js → InputFile-89BOwWJE.js} +31 -32
  80. package/dist/InputFile-DOym0HDc.js +10 -0
  81. package/dist/{InputFormula-BQ_TLuJU.js → InputFormula-CV5j31Ow.js} +8 -10
  82. package/dist/{InputGroup-CSy_Oi7L.js → InputGroup-C7O2ba0g.js} +6 -6
  83. package/dist/InputImage-BF7DAF8L.js +12 -0
  84. package/dist/{InputImage-Dk5CE1jT.js → InputImage-DcsVQf7c.js} +16 -17
  85. package/dist/{InputMonthRange-DU8TlVfr.js → InputMonthRange-BjD3hmwp.js} +10 -12
  86. package/dist/InputNumber-DKMOkba-.js +255 -0
  87. package/dist/{InputQuarterRange-CAkb2TQ0.js → InputQuarterRange-DZKnkZ_s.js} +10 -12
  88. package/dist/{InputRange-_k9JA4Ez.js → InputRange-DiHKf3tP.js} +9 -11
  89. package/dist/{InputRating-Cyewk6xh.js → InputRating-Bc8Od5b8.js} +9 -11
  90. package/dist/{InputRepeat-BhWIVzBa.js → InputRepeat-BhF5KVB2.js} +8 -10
  91. package/dist/InputRichText-BBBdDFA2.js +7 -0
  92. package/dist/InputRichText-CieHn0fO.js +198 -0
  93. package/dist/{InputSignature-D0qET_Np.js → InputSignature-CbfGjJlU.js} +8 -10
  94. package/dist/InputSubForm-BkM_3Rjg.js +236 -0
  95. package/dist/InputTable-CgOqC6Pc.js +900 -0
  96. package/dist/InputTag-35kCFM5X.js +464 -0
  97. package/dist/{InputText-CNHLKdgJ.js → InputText-BbEjGBtv.js} +59 -61
  98. package/dist/{InputTree-COEe1VLr.js → InputTree-DchkyMbL.js} +42 -44
  99. package/dist/{InputVerificationCode-B_Pt9Ykt.js → InputVerificationCode-kMxc8wW7.js} +8 -10
  100. package/dist/{InputYearRange-Aqp87FUU.js → InputYearRange-WJKJeloR.js} +10 -12
  101. package/dist/{JSONSchema-CNZcSSTE.js → JSONSchema-Bs0EWcHb.js} +8 -10
  102. package/dist/{JSONSchemaEditor-Dhu7duy-.js → JSONSchemaEditor-BoAK9FOL.js} +8 -10
  103. package/dist/{Json-2q0fMUg1.js → Json-DFjy1HRw.js} +7 -7
  104. package/dist/Link-nYGLB6gy.js +57 -0
  105. package/dist/List-D3183f4Z.js +14 -0
  106. package/dist/{List-xzPGRAx6.js → List-W3IAZR_6.js} +20 -21
  107. package/dist/{ListSelect-DmnMCqJK.js → ListSelect-DWGbHVxd.js} +7 -7
  108. package/dist/{LocationPicker-BXLzlI_f.js → LocationPicker-2G9yOxtm.js} +9 -11
  109. package/dist/{Log-DJEArjlY.js → Log-D6VU702y.js} +11 -13
  110. package/dist/{Mapping-DdrG3Ztj.js → Mapping-BATMD_xR.js} +12 -14
  111. package/dist/{Markdown-CuqQU4CA.js → Markdown-Baxbu8lV.js} +7 -7
  112. package/dist/{Markdown-DJBaZlcc.js → Markdown-Cg-xahnQ.js} +2 -2
  113. package/dist/{MatrixCheckboxes-f-7KmMUU.js → MatrixCheckboxes-B9hmFakW.js} +12 -14
  114. package/dist/{MultilineText-BmZvDSK_.js → MultilineText-0fMQhUCY.js} +8 -10
  115. package/dist/{Nav-5b-3S31N.js → Nav-DHIehZOG.js} +35 -37
  116. package/dist/NestedSelect-tQztH4PI.js +517 -0
  117. package/dist/{Number-cMwAUHkr.js → Number-Cndoqeyx.js} +6 -6
  118. package/dist/{OfficeViewer-CF4PyOxB.js → OfficeViewer-BVD_e5eZ.js} +10 -12
  119. package/dist/{Operation-CufqCpnG.js → Operation-DIv6n9dT.js} +6 -6
  120. package/dist/{Page-DCnma03q.js → Page-WoZtIIfk.js} +8 -10
  121. package/dist/{Pagination-UOrn4c0P.js → Pagination-DHvYHd_3.js} +8 -10
  122. package/dist/{PaginationWrapper-B-j0uFhf.js → PaginationWrapper-CtIJOXdw.js} +6 -6
  123. package/dist/{Panel-CdZuyRjC.js → Panel-Dt4KQrKa.js} +10 -12
  124. package/dist/{Password-DklNUFUB.js → Password-Wjfq7MSA.js} +8 -10
  125. package/dist/{Picker-5cxnpnwV.js → Picker-Cu52ukRg.js} +13 -15
  126. package/dist/{Plain-CPFHDxkg.js → Plain-DIlG753a.js} +6 -6
  127. package/dist/{Spinner-BSnTm3TK.js → PopUp-Bgkvnd4X.js} +356 -44
  128. package/dist/{Portlet-9v4hDYGt.js → Portlet-3Nh2cWeq.js} +8 -10
  129. package/dist/{Progress-CiHMdfZl.js → Progress-Dh2FTsky.js} +8 -10
  130. package/dist/{Property-BnEjeZVl.js → Property-DRSklFlT.js} +6 -6
  131. package/dist/{QRCode-BUFMyD3p.js → QRCode-BeUD-g8-.js} +10 -10
  132. package/dist/{Radio-ccx7KeaP.js → Radio-DrJJfNFI.js} +9 -11
  133. package/dist/{Radios-BlIx8v_G.js → Radios-CL3mreXa.js} +31 -33
  134. package/dist/{Remark-800xur3N.js → Remark-Cmo-r6dp.js} +4 -5
  135. package/dist/Remark-DuAbEmCW.js +9 -0
  136. package/dist/{RichText-CFya1zyE.js → RichText-jkERm8rC.js} +3 -3
  137. package/dist/{SearchBox-yVg7P7NW.js → SearchBox-CTxSMcV2.js} +8 -10
  138. package/dist/{Select-niHiH7nS.js → Select-D3LTuHwe.js} +20 -22
  139. package/dist/Service-CN2v_Z9z.js +347 -0
  140. package/dist/{Shape-DGcW-OLJ.js → Shape-Bi93tLCN.js} +8 -10
  141. package/dist/{Slider-C87MpqPU.js → Slider-C0jqeBGt.js} +8 -10
  142. package/dist/{SparkLine-Bc2KqhrP.js → SparkLine-Ce6-mdqG.js} +8 -10
  143. package/dist/{Spinner-3hXPV1FN.js → Spinner-DZDEct1A.js} +8 -10
  144. package/dist/{StaticHoc-DIk0DX4D.js → StaticHoc-BAdofX5w.js} +3 -3
  145. package/dist/Status-CDC2e2_o.js +93 -0
  146. package/dist/{Steps-DJRoyvU0.js → Steps-CGyTaaVI.js} +15 -17
  147. package/dist/{Switch-DJ1dcPVX.js → Switch-QA0l7uEg.js} +9 -11
  148. package/dist/{SwitchContainer-D3dNc78M.js → SwitchContainer-zXvaPFlG.js} +6 -6
  149. package/dist/Table-B8tWpiPU.js +13 -0
  150. package/dist/{Table-BbLdIOwp.js → Table-DzGbNFxu.js} +473 -474
  151. package/dist/Table2-CQZ3und9.js +1198 -0
  152. package/dist/{TableView-IVH5o169.js → TableView-nlFBhvL1.js} +10 -10
  153. package/dist/{Tabs-CC5ITl4F.js → Tabs-XleB-2Mc.js} +41 -43
  154. package/dist/{TabsTransfer-BoFtWaFp.js → TabsTransfer-CLLGXAkP.js} +24 -24
  155. package/dist/TabsTransfer-Cs_Rg0TU.js +11 -0
  156. package/dist/{TabsTransferPicker-DIlgk3ei.js → TabsTransferPicker-VA3Vlla-.js} +11 -13
  157. package/dist/{Tag-BQHuKVQ1.js → Tag-tr5RKBfl.js} +8 -10
  158. package/dist/{Tasks-6kY93Am4.js → Tasks-C2-ayUd-.js} +17 -19
  159. package/dist/{Textarea-Lhz3n5BX.js → Textarea-_KbIxQet.js} +9 -11
  160. package/dist/{Timeline-D2j_CiFR.js → Timeline-CctoJRQo.js} +8 -10
  161. package/dist/{TooltipWrapper-yKnGGKt7.js → TooltipWrapper-BGNr8U2K.js} +8 -10
  162. package/dist/Tpl-C28lpITc.js +152 -0
  163. package/dist/Transfer-Hjc9zR8W.js +288 -0
  164. package/dist/Transfer-tYS9Rx8U.js +10 -0
  165. package/dist/{TransferPicker-CoMThimo.js → TransferPicker-C7Wzyuct.js} +10 -12
  166. package/dist/{TreeSelect-DJCdycVn.js → TreeSelect-DAlWCEqs.js} +21 -23
  167. package/dist/{UUID-CyCEB9U4.js → UUID-B5UZnlxW.js} +6 -6
  168. package/dist/{UserSelect-DQzTWNEb.js → UserSelect-DqZZQB83.js} +20 -22
  169. package/dist/{VBox-jpFiQClW.js → VBox-C1OZZT8-.js} +6 -6
  170. package/dist/{Video-D_LLCdU7.js → Video-C1FRwLLL.js} +136 -136
  171. package/dist/{WebComponent-DiKfJl3_.js → WebComponent-g8Zc9zXp.js} +6 -6
  172. package/dist/{Wizard-B0z3wr80.js → Wizard-DkqCsGz-.js} +34 -36
  173. package/dist/{Words-B4Munegf.js → Words-DUuKqyIf.js} +16 -18
  174. package/dist/{Wrapper-HYrWbYb6.js → Wrapper-DmZ78GYG.js} +6 -6
  175. package/dist/{_createAssigner-Bm5lVWE-.js → _getTag-CWmGzIun.js} +41 -22
  176. package/dist/beneficiary-form-DCl2L16P.js +3773 -0
  177. package/dist/{client-Blt2XYIL.js → client-BEyTOBXT.js} +3 -3
  178. package/dist/crypto-js-DUFYRUag.js +3694 -0
  179. package/dist/{doc-CN4Z162V.js → doc-B-Im0Knb.js} +2 -2
  180. package/dist/{es-DK1r3YUJ.js → es-CsUppg1O.js} +3 -3
  181. package/dist/{esm-ChS65zTd.js → esm-Cj_BRpNI.js} +1246 -1190
  182. package/dist/{esm-DufZUL0t.js → esm-DEyK_c3W.js} +45 -35
  183. package/dist/{esm-CCV9JQyG.js → esm-SCCPj-cs.js} +3 -3
  184. package/dist/{function-Dbcnxw2H.js → function-CNJMA2ft.js} +2 -2
  185. package/dist/index.css +1 -1
  186. package/dist/index.d.ts +4 -3
  187. package/dist/index.js +5 -4
  188. package/dist/{isEqual-B1XgbWvm.js → isEqual-E2NjjS0_.js} +1 -1
  189. package/dist/{main-Dy7FH0sS.js → main-Bf7MY24z.js} +2 -2
  190. package/dist/mi18n-react.esm-y-nzmW0A.js +1138 -0
  191. package/dist/{objectSpread2-Dh0ABAXt.js → objectSpread2-smpSKONV.js} +2 -2
  192. package/dist/{omitBy-BBeQc7XG.js → omitBy-CD5n2TA7.js} +3 -3
  193. package/dist/{papaparse.min-ChqWm6yK.js → papaparse.min-3xa9r8Qi.js} +1 -1
  194. package/dist/{react-CHA_DGKo.js → react-RxxVsDMo.js} +1 -1
  195. package/dist/{react-cropper.es-O79UQPZ6.js → react-cropper.es-anJ2KE7h.js} +2 -2
  196. package/dist/{react-dom-tGNlN-2_.js → react-dom-D1mxcNoQ.js} +2 -2
  197. package/dist/react-g40aymqL.js +2 -0
  198. package/dist/xor-D-ggRBpm.js +20 -0
  199. package/package.json +13 -9
  200. package/dist/Action-BD84dQm7.js +0 -12
  201. package/dist/App-BjMDDfGp.js +0 -215
  202. package/dist/ButtonGroupSelect-Cxk8s81t.js +0 -8
  203. package/dist/Card-DP8rtHME.js +0 -16
  204. package/dist/Cards-DmOZWmYb.js +0 -487
  205. package/dist/Checkbox-DRgpdqR5.js +0 -12
  206. package/dist/CityDB-De7mzIWs.js +0 -3912
  207. package/dist/Collapse-DuyoxLtz.js +0 -11
  208. package/dist/ColumnToggler-DwURF6Gb.js +0 -12
  209. package/dist/Combo-mV4e8GoD.js +0 -11
  210. package/dist/Dialog-BAyLX0mi.js +0 -510
  211. package/dist/FieldSet-CTGWoAvC.js +0 -12
  212. package/dist/HBox-DdghBtxG.js +0 -7
  213. package/dist/Image-DYN6XwCv.js +0 -11
  214. package/dist/Input-CCDZqV8p.js +0 -52
  215. package/dist/InputDate-DSHN3zU4.js +0 -292
  216. package/dist/InputDateRange-CbpsnaCe.js +0 -12
  217. package/dist/InputDateRange-D6ELYD-x.js +0 -170
  218. package/dist/InputExcel-DjBIVGLo.js +0 -429
  219. package/dist/InputFile-b23f0dU0.js +0 -12
  220. package/dist/InputImage-DAUcgoKE.js +0 -14
  221. package/dist/InputNumber-p2UxlJX6.js +0 -257
  222. package/dist/InputRichText-C0NpxT6H.js +0 -7
  223. package/dist/InputRichText-CI2mXkzF.js +0 -198
  224. package/dist/InputSubForm-BtYTSrB4.js +0 -238
  225. package/dist/InputTable-CGMRFZUr.js +0 -902
  226. package/dist/InputTag-DXvCPL8J.js +0 -466
  227. package/dist/Link-B8iRSer9.js +0 -59
  228. package/dist/List-BKMt5KwT.js +0 -16
  229. package/dist/NestedSelect-CHnw2quX.js +0 -519
  230. package/dist/PdfViewer-BjkhimjY.js +0 -12607
  231. package/dist/PdfViewer-CkLbk1Th.js +0 -175
  232. package/dist/PopUp-reEZw5g2.js +0 -320
  233. package/dist/Remark-Df6vguZu.js +0 -11
  234. package/dist/Service-DIFAk9JU.js +0 -349
  235. package/dist/Status-BWasOOK9.js +0 -95
  236. package/dist/Table-BaCrZbR5.js +0 -15
  237. package/dist/Table2-MEQHOl_4.js +0 -1200
  238. package/dist/TabsTransfer-BXtj0vE-.js +0 -13
  239. package/dist/Tinymce-k7uU44j9.js +0 -63587
  240. package/dist/Tpl-C8SFSbv-.js +0 -154
  241. package/dist/Transfer-BDiet-S3.js +0 -12
  242. package/dist/Transfer-CoTV9nws.js +0 -288
  243. package/dist/__vite-browser-external-C1LsZvBw.js +0 -5
  244. package/dist/abap-CvDIJoq4.js +0 -122
  245. package/dist/apex-DJH2mRfT.js +0 -170
  246. package/dist/azcli-ChomlZy5.js +0 -53
  247. package/dist/bat-CmdEL5vQ.js +0 -123
  248. package/dist/beneficiary-form-DN5LSPin.js +0 -2130
  249. package/dist/bicep-CwtEaRi-.js +0 -221
  250. package/dist/bmap-BGH_bIhJ.js +0 -163
  251. package/dist/cameligo-mvwpGYSL.js +0 -189
  252. package/dist/clojure-DWgwR_x3.js +0 -146
  253. package/dist/codemirror-10K4F0d6.js +0 -5607
  254. package/dist/codemirror-CVXFHKur.js +0 -2
  255. package/dist/coffee-1AL9EmdD.js +0 -260
  256. package/dist/cpp-BAX9fjE6.js +0 -240
  257. package/dist/csharp-CFXvbZbk.js +0 -260
  258. package/dist/csp-DkenAN-1.js +0 -46
  259. package/dist/css-D0qiRMVz.js +0 -284
  260. package/dist/cssMode-31Qcr_YV.js +0 -1388
  261. package/dist/dart-CDGtSHr2.js +0 -236
  262. package/dist/dataTool-8juTlvT3.js +0 -127
  263. package/dist/dockerfile-CSknzC0F.js +0 -191
  264. package/dist/echarts-DYeQ7frz.js +0 -2
  265. package/dist/echarts-ioNbC02k.js +0 -40645
  266. package/dist/echarts-stat-DZqjnVuR.js +0 -758
  267. package/dist/echarts-wordcloud-CUlo6Bhd.js +0 -41196
  268. package/dist/ecl-HK8mA97g.js +0 -226
  269. package/dist/editor.api-DJvvWnxi.js +0 -52799
  270. package/dist/editor.main-B4dfb_aD.js +0 -25006
  271. package/dist/elixir-D9yfDUre.js +0 -502
  272. package/dist/exceljs.min-nuhAzUL9.js +0 -32053
  273. package/dist/flow9-kyy_2-D4.js +0 -176
  274. package/dist/fsharp-QJQUokTY.js +0 -147
  275. package/dist/go-Cq-NPpAC.js +0 -165
  276. package/dist/graphql-DSnjTp0n.js +0 -174
  277. package/dist/handlebars-sJdKcL8O.js +0 -411
  278. package/dist/hcl-RK8WN3Ur.js +0 -219
  279. package/dist/hls-DLPj3KFH.js +0 -11744
  280. package/dist/html-KRygywuV.js +0 -324
  281. package/dist/htmlMode-DNoCXiyS.js +0 -1315
  282. package/dist/htmlmixed-C2cKuIw-.js +0 -752
  283. package/dist/ini-CEgsI8Mb.js +0 -94
  284. package/dist/java-BBQ3kncu.js +0 -173
  285. package/dist/javascript-CWijH8KU.js +0 -3
  286. package/dist/javascript-CpPvjWyU.js +0 -20
  287. package/dist/javascript-z3V1O3DL.js +0 -644
  288. package/dist/jsonMode-DZXtN-nK.js +0 -1732
  289. package/dist/jsx-runtime-Bj1H-jyL.js +0 -483
  290. package/dist/julia-Cv1I7dyz.js +0 -414
  291. package/dist/kotlin-BYSXt0U8.js +0 -183
  292. package/dist/less-DqJSumRC.js +0 -242
  293. package/dist/lexon-DetymABe.js +0 -185
  294. package/dist/liquid-DQQKpMld.js +0 -198
  295. package/dist/lua-DAbeykJS.js +0 -200
  296. package/dist/m3-CXUxQdad.js +0 -193
  297. package/dist/markdown-qE4QfNoY.js +0 -262
  298. package/dist/mi18n-react.esm-m9XBudzT.js +0 -1131
  299. package/dist/mips-2NqZOK30.js +0 -128
  300. package/dist/monaco-editor-core-CDGnFY-Z.js +0 -0
  301. package/dist/monaco-editor-core-CK7t9yq3.js +0 -0
  302. package/dist/monaco-editor-core-CxtO33k4.js +0 -0
  303. package/dist/monaco-editor-core-D11wn0Vr.js +0 -0
  304. package/dist/monaco.contribution-Cr8Vbcwg.js +0 -143
  305. package/dist/mpegts-BTpx1WVy.js +0 -8265
  306. package/dist/msdax-DE7X9pbi.js +0 -156
  307. package/dist/multiplex-CsNuufkn.js +0 -87
  308. package/dist/mysql-AWNf5THv.js +0 -167
  309. package/dist/objective-c-BGe6xR-Y.js +0 -144
  310. package/dist/pascal-D-y7r-4l.js +0 -176
  311. package/dist/pascaligo-qL5heFeC.js +0 -201
  312. package/dist/perl-DzKQDF4r.js +0 -316
  313. package/dist/pgsql-Ci2RUqhT.js +0 -158
  314. package/dist/php-PNEASzvZ.js +0 -471
  315. package/dist/pla-CXNCf5pc.js +0 -146
  316. package/dist/placeholder-C7cTLPU8.js +0 -51
  317. package/dist/postiats-DkKv8Z8y.js +0 -504
  318. package/dist/powerquery-D97XJ_Ls.js +0 -190
  319. package/dist/powershell-BenhISae.js +0 -211
  320. package/dist/protobuf-DDlDyjNL.js +0 -655
  321. package/dist/pug-BPLU_T3S.js +0 -300
  322. package/dist/python-DV8AFCx6.js +0 -193
  323. package/dist/qsharp-BbxHsJRN.js +0 -126
  324. package/dist/r-C_bVYF4d.js +0 -189
  325. package/dist/razor-DJab8AU0.js +0 -518
  326. package/dist/react-C8icmfXK.js +0 -2
  327. package/dist/redis-24lhqnEF.js +0 -123
  328. package/dist/redshift-BA-vs3-a.js +0 -158
  329. package/dist/restructuredtext-DZvLRfxd.js +0 -287
  330. package/dist/ruby-DIOUuTge.js +0 -527
  331. package/dist/rust-DEGENBgy.js +0 -178
  332. package/dist/sb-YqQRy1Aj.js +0 -143
  333. package/dist/scala-CJaYjW7T.js +0 -551
  334. package/dist/scheme-Behwu3d2.js +0 -170
  335. package/dist/scss-DWPywJva.js +0 -417
  336. package/dist/shell-BuaejZUe.js +0 -220
  337. package/dist/simple-XEv7ggwt.js +0 -159
  338. package/dist/solidity-DwtWGZKw.js +0 -147
  339. package/dist/sophia-B_rmISO8.js +0 -147
  340. package/dist/sparql-4CH2wq-R.js +0 -124
  341. package/dist/sql-KrQAp8jb.js +0 -171
  342. package/dist/st-BdgF2Ved.js +0 -476
  343. package/dist/swift-DPhf5yMV.js +0 -227
  344. package/dist/systemverilog-D-r12h5g.js +0 -298
  345. package/dist/tcl-B1JtbBR-.js +0 -223
  346. package/dist/tsMode-DN-aeyWM.js +0 -988
  347. package/dist/twig-DKeEvrnL.js +0 -388
  348. package/dist/typescript-BPg7EmrG.js +0 -255
  349. package/dist/typescript-eArQtZ8F.js +0 -4
  350. package/dist/vb-cBZKS6-O.js +0 -260
  351. package/dist/xlsx-C-JaSvuM.js +0 -19361
  352. package/dist/xml-DlMwoWd-.js +0 -129
  353. package/dist/xor-D1jDwNN7.js +0 -20
  354. package/dist/yaml-ByFeqOGo.js +0 -216
  355. /package/dist/{IconPickerIcons-BjNW_Tas.js → IconPickerIcons-dHFcDHrv.js} +0 -0
  356. /package/dist/{chunk-BztcrWZM.js → rolldown-runtime-DwW8Tac2.js} +0 -0
@@ -1,1315 +0,0 @@
1
- import { c as Range, f as Uri, m as languages, p as editor } from "./editor.api-DJvvWnxi.js";
2
- import "./monaco-editor-core-CK7t9yq3.js";
3
- var STOP_WHEN_IDLE_FOR = 120 * 1e3, WorkerManager = function() {
4
- function p(p) {
5
- var H = this;
6
- this._defaults = p, this._worker = null, this._idleCheckInterval = window.setInterval(function() {
7
- return H._checkIfIdle();
8
- }, 30 * 1e3), this._lastUsedTime = 0, this._configChangeListener = this._defaults.onDidChange(function() {
9
- return H._stopWorker();
10
- });
11
- }
12
- return p.prototype._stopWorker = function() {
13
- this._worker &&= (this._worker.dispose(), null), this._client = null;
14
- }, p.prototype.dispose = function() {
15
- clearInterval(this._idleCheckInterval), this._configChangeListener.dispose(), this._stopWorker();
16
- }, p.prototype._checkIfIdle = function() {
17
- this._worker && Date.now() - this._lastUsedTime > STOP_WHEN_IDLE_FOR && this._stopWorker();
18
- }, p.prototype._getClient = function() {
19
- return this._lastUsedTime = Date.now(), this._client ||= (this._worker = editor.createWebWorker({
20
- moduleId: "vs/language/html/htmlWorker",
21
- createData: {
22
- languageSettings: this._defaults.options,
23
- languageId: this._defaults.languageId
24
- },
25
- label: this._defaults.languageId
26
- }), this._worker.getProxy()), this._client;
27
- }, p.prototype.getLanguageServiceWorker = function() {
28
- for (var p = this, H = [], U = 0; U < arguments.length; U++) H[U] = arguments[U];
29
- var W;
30
- return this._getClient().then(function(p) {
31
- W = p;
32
- }).then(function(U) {
33
- if (p._worker) return p._worker.withSyncedResources(H);
34
- }).then(function(p) {
35
- return W;
36
- });
37
- }, p;
38
- }(), integer;
39
- (function(p) {
40
- p.MIN_VALUE = -2147483648, p.MAX_VALUE = 2147483647;
41
- })(integer ||= {});
42
- var uinteger;
43
- (function(p) {
44
- p.MIN_VALUE = 0, p.MAX_VALUE = 2147483647;
45
- })(uinteger ||= {});
46
- var Position;
47
- (function(p) {
48
- function H(p, H) {
49
- return p === Number.MAX_VALUE && (p = uinteger.MAX_VALUE), H === Number.MAX_VALUE && (H = uinteger.MAX_VALUE), {
50
- line: p,
51
- character: H
52
- };
53
- }
54
- p.create = H;
55
- function U(p) {
56
- var H = p;
57
- return Is.objectLiteral(H) && Is.uinteger(H.line) && Is.uinteger(H.character);
58
- }
59
- p.is = U;
60
- })(Position ||= {});
61
- var Range$1;
62
- (function(p) {
63
- function H(p, H, U, W) {
64
- if (Is.uinteger(p) && Is.uinteger(H) && Is.uinteger(U) && Is.uinteger(W)) return {
65
- start: Position.create(p, H),
66
- end: Position.create(U, W)
67
- };
68
- if (Position.is(p) && Position.is(H)) return {
69
- start: p,
70
- end: H
71
- };
72
- throw Error("Range#create called with invalid arguments[" + p + ", " + H + ", " + U + ", " + W + "]");
73
- }
74
- p.create = H;
75
- function U(p) {
76
- var H = p;
77
- return Is.objectLiteral(H) && Position.is(H.start) && Position.is(H.end);
78
- }
79
- p.is = U;
80
- })(Range$1 ||= {});
81
- var Location;
82
- (function(p) {
83
- function H(p, H) {
84
- return {
85
- uri: p,
86
- range: H
87
- };
88
- }
89
- p.create = H;
90
- function U(p) {
91
- var H = p;
92
- return Is.defined(H) && Range$1.is(H.range) && (Is.string(H.uri) || Is.undefined(H.uri));
93
- }
94
- p.is = U;
95
- })(Location ||= {});
96
- var LocationLink;
97
- (function(p) {
98
- function H(p, H, U, W) {
99
- return {
100
- targetUri: p,
101
- targetRange: H,
102
- targetSelectionRange: U,
103
- originSelectionRange: W
104
- };
105
- }
106
- p.create = H;
107
- function U(p) {
108
- var H = p;
109
- return Is.defined(H) && Range$1.is(H.targetRange) && Is.string(H.targetUri) && (Range$1.is(H.targetSelectionRange) || Is.undefined(H.targetSelectionRange)) && (Range$1.is(H.originSelectionRange) || Is.undefined(H.originSelectionRange));
110
- }
111
- p.is = U;
112
- })(LocationLink ||= {});
113
- var Color;
114
- (function(p) {
115
- function H(p, H, U, W) {
116
- return {
117
- red: p,
118
- green: H,
119
- blue: U,
120
- alpha: W
121
- };
122
- }
123
- p.create = H;
124
- function U(p) {
125
- var H = p;
126
- return Is.numberRange(H.red, 0, 1) && Is.numberRange(H.green, 0, 1) && Is.numberRange(H.blue, 0, 1) && Is.numberRange(H.alpha, 0, 1);
127
- }
128
- p.is = U;
129
- })(Color ||= {});
130
- var ColorInformation;
131
- (function(p) {
132
- function H(p, H) {
133
- return {
134
- range: p,
135
- color: H
136
- };
137
- }
138
- p.create = H;
139
- function U(p) {
140
- var H = p;
141
- return Range$1.is(H.range) && Color.is(H.color);
142
- }
143
- p.is = U;
144
- })(ColorInformation ||= {});
145
- var ColorPresentation;
146
- (function(p) {
147
- function H(p, H, U) {
148
- return {
149
- label: p,
150
- textEdit: H,
151
- additionalTextEdits: U
152
- };
153
- }
154
- p.create = H;
155
- function U(p) {
156
- var H = p;
157
- return Is.string(H.label) && (Is.undefined(H.textEdit) || TextEdit.is(H)) && (Is.undefined(H.additionalTextEdits) || Is.typedArray(H.additionalTextEdits, TextEdit.is));
158
- }
159
- p.is = U;
160
- })(ColorPresentation ||= {});
161
- var FoldingRangeKind;
162
- (function(p) {
163
- p.Comment = "comment", p.Imports = "imports", p.Region = "region";
164
- })(FoldingRangeKind ||= {});
165
- var FoldingRange;
166
- (function(p) {
167
- function H(p, H, U, W, G) {
168
- var K = {
169
- startLine: p,
170
- endLine: H
171
- };
172
- return Is.defined(U) && (K.startCharacter = U), Is.defined(W) && (K.endCharacter = W), Is.defined(G) && (K.kind = G), K;
173
- }
174
- p.create = H;
175
- function U(p) {
176
- var H = p;
177
- return Is.uinteger(H.startLine) && Is.uinteger(H.startLine) && (Is.undefined(H.startCharacter) || Is.uinteger(H.startCharacter)) && (Is.undefined(H.endCharacter) || Is.uinteger(H.endCharacter)) && (Is.undefined(H.kind) || Is.string(H.kind));
178
- }
179
- p.is = U;
180
- })(FoldingRange ||= {});
181
- var DiagnosticRelatedInformation;
182
- (function(p) {
183
- function H(p, H) {
184
- return {
185
- location: p,
186
- message: H
187
- };
188
- }
189
- p.create = H;
190
- function U(p) {
191
- var H = p;
192
- return Is.defined(H) && Location.is(H.location) && Is.string(H.message);
193
- }
194
- p.is = U;
195
- })(DiagnosticRelatedInformation ||= {});
196
- var DiagnosticSeverity;
197
- (function(p) {
198
- p.Error = 1, p.Warning = 2, p.Information = 3, p.Hint = 4;
199
- })(DiagnosticSeverity ||= {});
200
- var DiagnosticTag;
201
- (function(p) {
202
- p.Unnecessary = 1, p.Deprecated = 2;
203
- })(DiagnosticTag ||= {});
204
- var CodeDescription;
205
- (function(p) {
206
- function H(p) {
207
- var H = p;
208
- return H != null && Is.string(H.href);
209
- }
210
- p.is = H;
211
- })(CodeDescription ||= {});
212
- var Diagnostic;
213
- (function(p) {
214
- function H(p, H, U, W, G, K) {
215
- var q = {
216
- range: p,
217
- message: H
218
- };
219
- return Is.defined(U) && (q.severity = U), Is.defined(W) && (q.code = W), Is.defined(G) && (q.source = G), Is.defined(K) && (q.relatedInformation = K), q;
220
- }
221
- p.create = H;
222
- function U(p) {
223
- var H = p;
224
- return Is.defined(H) && Range$1.is(H.range) && Is.string(H.message) && (Is.number(H.severity) || Is.undefined(H.severity)) && (Is.integer(H.code) || Is.string(H.code) || Is.undefined(H.code)) && (Is.undefined(H.codeDescription) || Is.string(H.codeDescription?.href)) && (Is.string(H.source) || Is.undefined(H.source)) && (Is.undefined(H.relatedInformation) || Is.typedArray(H.relatedInformation, DiagnosticRelatedInformation.is));
225
- }
226
- p.is = U;
227
- })(Diagnostic ||= {});
228
- var Command;
229
- (function(p) {
230
- function H(p, H) {
231
- var U = [...arguments].slice(2), W = {
232
- title: p,
233
- command: H
234
- };
235
- return Is.defined(U) && U.length > 0 && (W.arguments = U), W;
236
- }
237
- p.create = H;
238
- function U(p) {
239
- var H = p;
240
- return Is.defined(H) && Is.string(H.title) && Is.string(H.command);
241
- }
242
- p.is = U;
243
- })(Command ||= {});
244
- var TextEdit;
245
- (function(p) {
246
- function H(p, H) {
247
- return {
248
- range: p,
249
- newText: H
250
- };
251
- }
252
- p.replace = H;
253
- function U(p, H) {
254
- return {
255
- range: {
256
- start: p,
257
- end: p
258
- },
259
- newText: H
260
- };
261
- }
262
- p.insert = U;
263
- function W(p) {
264
- return {
265
- range: p,
266
- newText: ""
267
- };
268
- }
269
- p.del = W;
270
- function G(p) {
271
- var H = p;
272
- return Is.objectLiteral(H) && Is.string(H.newText) && Range$1.is(H.range);
273
- }
274
- p.is = G;
275
- })(TextEdit ||= {});
276
- var ChangeAnnotation;
277
- (function(p) {
278
- function H(p, H, U) {
279
- var W = { label: p };
280
- return H !== void 0 && (W.needsConfirmation = H), U !== void 0 && (W.description = U), W;
281
- }
282
- p.create = H;
283
- function U(p) {
284
- var H = p;
285
- return H !== void 0 && Is.objectLiteral(H) && Is.string(H.label) && (Is.boolean(H.needsConfirmation) || H.needsConfirmation === void 0) && (Is.string(H.description) || H.description === void 0);
286
- }
287
- p.is = U;
288
- })(ChangeAnnotation ||= {});
289
- var ChangeAnnotationIdentifier;
290
- (function(p) {
291
- function H(p) {
292
- return typeof p == "string";
293
- }
294
- p.is = H;
295
- })(ChangeAnnotationIdentifier ||= {});
296
- var AnnotatedTextEdit;
297
- (function(p) {
298
- function H(p, H, U) {
299
- return {
300
- range: p,
301
- newText: H,
302
- annotationId: U
303
- };
304
- }
305
- p.replace = H;
306
- function U(p, H, U) {
307
- return {
308
- range: {
309
- start: p,
310
- end: p
311
- },
312
- newText: H,
313
- annotationId: U
314
- };
315
- }
316
- p.insert = U;
317
- function W(p, H) {
318
- return {
319
- range: p,
320
- newText: "",
321
- annotationId: H
322
- };
323
- }
324
- p.del = W;
325
- function G(p) {
326
- var H = p;
327
- return TextEdit.is(H) && (ChangeAnnotation.is(H.annotationId) || ChangeAnnotationIdentifier.is(H.annotationId));
328
- }
329
- p.is = G;
330
- })(AnnotatedTextEdit ||= {});
331
- var TextDocumentEdit;
332
- (function(p) {
333
- function H(p, H) {
334
- return {
335
- textDocument: p,
336
- edits: H
337
- };
338
- }
339
- p.create = H;
340
- function U(p) {
341
- var H = p;
342
- return Is.defined(H) && OptionalVersionedTextDocumentIdentifier.is(H.textDocument) && Array.isArray(H.edits);
343
- }
344
- p.is = U;
345
- })(TextDocumentEdit ||= {});
346
- var CreateFile;
347
- (function(p) {
348
- function H(p, H, U) {
349
- var W = {
350
- kind: "create",
351
- uri: p
352
- };
353
- return H !== void 0 && (H.overwrite !== void 0 || H.ignoreIfExists !== void 0) && (W.options = H), U !== void 0 && (W.annotationId = U), W;
354
- }
355
- p.create = H;
356
- function U(p) {
357
- var H = p;
358
- return H && H.kind === "create" && Is.string(H.uri) && (H.options === void 0 || (H.options.overwrite === void 0 || Is.boolean(H.options.overwrite)) && (H.options.ignoreIfExists === void 0 || Is.boolean(H.options.ignoreIfExists))) && (H.annotationId === void 0 || ChangeAnnotationIdentifier.is(H.annotationId));
359
- }
360
- p.is = U;
361
- })(CreateFile ||= {});
362
- var RenameFile;
363
- (function(p) {
364
- function H(p, H, U, W) {
365
- var G = {
366
- kind: "rename",
367
- oldUri: p,
368
- newUri: H
369
- };
370
- return U !== void 0 && (U.overwrite !== void 0 || U.ignoreIfExists !== void 0) && (G.options = U), W !== void 0 && (G.annotationId = W), G;
371
- }
372
- p.create = H;
373
- function U(p) {
374
- var H = p;
375
- return H && H.kind === "rename" && Is.string(H.oldUri) && Is.string(H.newUri) && (H.options === void 0 || (H.options.overwrite === void 0 || Is.boolean(H.options.overwrite)) && (H.options.ignoreIfExists === void 0 || Is.boolean(H.options.ignoreIfExists))) && (H.annotationId === void 0 || ChangeAnnotationIdentifier.is(H.annotationId));
376
- }
377
- p.is = U;
378
- })(RenameFile ||= {});
379
- var DeleteFile;
380
- (function(p) {
381
- function H(p, H, U) {
382
- var W = {
383
- kind: "delete",
384
- uri: p
385
- };
386
- return H !== void 0 && (H.recursive !== void 0 || H.ignoreIfNotExists !== void 0) && (W.options = H), U !== void 0 && (W.annotationId = U), W;
387
- }
388
- p.create = H;
389
- function U(p) {
390
- var H = p;
391
- return H && H.kind === "delete" && Is.string(H.uri) && (H.options === void 0 || (H.options.recursive === void 0 || Is.boolean(H.options.recursive)) && (H.options.ignoreIfNotExists === void 0 || Is.boolean(H.options.ignoreIfNotExists))) && (H.annotationId === void 0 || ChangeAnnotationIdentifier.is(H.annotationId));
392
- }
393
- p.is = U;
394
- })(DeleteFile ||= {});
395
- var WorkspaceEdit;
396
- (function(p) {
397
- function H(p) {
398
- var H = p;
399
- return H && (H.changes !== void 0 || H.documentChanges !== void 0) && (H.documentChanges === void 0 || H.documentChanges.every(function(p) {
400
- return Is.string(p.kind) ? CreateFile.is(p) || RenameFile.is(p) || DeleteFile.is(p) : TextDocumentEdit.is(p);
401
- }));
402
- }
403
- p.is = H;
404
- })(WorkspaceEdit ||= {});
405
- var TextEditChangeImpl = function() {
406
- function p(p, H) {
407
- this.edits = p, this.changeAnnotations = H;
408
- }
409
- return p.prototype.insert = function(p, H, U) {
410
- var W, G;
411
- if (U === void 0 ? W = TextEdit.insert(p, H) : ChangeAnnotationIdentifier.is(U) ? (G = U, W = AnnotatedTextEdit.insert(p, H, U)) : (this.assertChangeAnnotations(this.changeAnnotations), G = this.changeAnnotations.manage(U), W = AnnotatedTextEdit.insert(p, H, G)), this.edits.push(W), G !== void 0) return G;
412
- }, p.prototype.replace = function(p, H, U) {
413
- var W, G;
414
- if (U === void 0 ? W = TextEdit.replace(p, H) : ChangeAnnotationIdentifier.is(U) ? (G = U, W = AnnotatedTextEdit.replace(p, H, U)) : (this.assertChangeAnnotations(this.changeAnnotations), G = this.changeAnnotations.manage(U), W = AnnotatedTextEdit.replace(p, H, G)), this.edits.push(W), G !== void 0) return G;
415
- }, p.prototype.delete = function(p, H) {
416
- var U, W;
417
- if (H === void 0 ? U = TextEdit.del(p) : ChangeAnnotationIdentifier.is(H) ? (W = H, U = AnnotatedTextEdit.del(p, H)) : (this.assertChangeAnnotations(this.changeAnnotations), W = this.changeAnnotations.manage(H), U = AnnotatedTextEdit.del(p, W)), this.edits.push(U), W !== void 0) return W;
418
- }, p.prototype.add = function(p) {
419
- this.edits.push(p);
420
- }, p.prototype.all = function() {
421
- return this.edits;
422
- }, p.prototype.clear = function() {
423
- this.edits.splice(0, this.edits.length);
424
- }, p.prototype.assertChangeAnnotations = function(p) {
425
- if (p === void 0) throw Error("Text edit change is not configured to manage change annotations.");
426
- }, p;
427
- }(), ChangeAnnotations = function() {
428
- function p(p) {
429
- this._annotations = p === void 0 ? Object.create(null) : p, this._counter = 0, this._size = 0;
430
- }
431
- return p.prototype.all = function() {
432
- return this._annotations;
433
- }, Object.defineProperty(p.prototype, "size", {
434
- get: function() {
435
- return this._size;
436
- },
437
- enumerable: !1,
438
- configurable: !0
439
- }), p.prototype.manage = function(p, H) {
440
- var U;
441
- if (ChangeAnnotationIdentifier.is(p) ? U = p : (U = this.nextId(), H = p), this._annotations[U] !== void 0) throw Error("Id " + U + " is already in use.");
442
- if (H === void 0) throw Error("No annotation provided for id " + U);
443
- return this._annotations[U] = H, this._size++, U;
444
- }, p.prototype.nextId = function() {
445
- return this._counter++, this._counter.toString();
446
- }, p;
447
- }();
448
- (function() {
449
- function p(p) {
450
- var H = this;
451
- this._textEditChanges = Object.create(null), p === void 0 ? this._workspaceEdit = {} : (this._workspaceEdit = p, p.documentChanges ? (this._changeAnnotations = new ChangeAnnotations(p.changeAnnotations), p.changeAnnotations = this._changeAnnotations.all(), p.documentChanges.forEach(function(p) {
452
- if (TextDocumentEdit.is(p)) {
453
- var U = new TextEditChangeImpl(p.edits, H._changeAnnotations);
454
- H._textEditChanges[p.textDocument.uri] = U;
455
- }
456
- })) : p.changes && Object.keys(p.changes).forEach(function(U) {
457
- var W = new TextEditChangeImpl(p.changes[U]);
458
- H._textEditChanges[U] = W;
459
- }));
460
- }
461
- return Object.defineProperty(p.prototype, "edit", {
462
- get: function() {
463
- return this.initDocumentChanges(), this._changeAnnotations !== void 0 && (this._changeAnnotations.size === 0 ? this._workspaceEdit.changeAnnotations = void 0 : this._workspaceEdit.changeAnnotations = this._changeAnnotations.all()), this._workspaceEdit;
464
- },
465
- enumerable: !1,
466
- configurable: !0
467
- }), p.prototype.getTextEditChange = function(p) {
468
- if (OptionalVersionedTextDocumentIdentifier.is(p)) {
469
- if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) throw Error("Workspace edit is not configured for document changes.");
470
- var H = {
471
- uri: p.uri,
472
- version: p.version
473
- }, U = this._textEditChanges[H.uri];
474
- if (!U) {
475
- var W = [], G = {
476
- textDocument: H,
477
- edits: W
478
- };
479
- this._workspaceEdit.documentChanges.push(G), U = new TextEditChangeImpl(W, this._changeAnnotations), this._textEditChanges[H.uri] = U;
480
- }
481
- return U;
482
- } else {
483
- if (this.initChanges(), this._workspaceEdit.changes === void 0) throw Error("Workspace edit is not configured for normal text edit changes.");
484
- var U = this._textEditChanges[p];
485
- if (!U) {
486
- var W = [];
487
- this._workspaceEdit.changes[p] = W, U = new TextEditChangeImpl(W), this._textEditChanges[p] = U;
488
- }
489
- return U;
490
- }
491
- }, p.prototype.initDocumentChanges = function() {
492
- this._workspaceEdit.documentChanges === void 0 && this._workspaceEdit.changes === void 0 && (this._changeAnnotations = new ChangeAnnotations(), this._workspaceEdit.documentChanges = [], this._workspaceEdit.changeAnnotations = this._changeAnnotations.all());
493
- }, p.prototype.initChanges = function() {
494
- this._workspaceEdit.documentChanges === void 0 && this._workspaceEdit.changes === void 0 && (this._workspaceEdit.changes = Object.create(null));
495
- }, p.prototype.createFile = function(p, H, U) {
496
- if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) throw Error("Workspace edit is not configured for document changes.");
497
- var W;
498
- ChangeAnnotation.is(H) || ChangeAnnotationIdentifier.is(H) ? W = H : U = H;
499
- var G, K;
500
- if (W === void 0 ? G = CreateFile.create(p, U) : (K = ChangeAnnotationIdentifier.is(W) ? W : this._changeAnnotations.manage(W), G = CreateFile.create(p, U, K)), this._workspaceEdit.documentChanges.push(G), K !== void 0) return K;
501
- }, p.prototype.renameFile = function(p, H, U, W) {
502
- if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) throw Error("Workspace edit is not configured for document changes.");
503
- var G;
504
- ChangeAnnotation.is(U) || ChangeAnnotationIdentifier.is(U) ? G = U : W = U;
505
- var K, q;
506
- if (G === void 0 ? K = RenameFile.create(p, H, W) : (q = ChangeAnnotationIdentifier.is(G) ? G : this._changeAnnotations.manage(G), K = RenameFile.create(p, H, W, q)), this._workspaceEdit.documentChanges.push(K), q !== void 0) return q;
507
- }, p.prototype.deleteFile = function(p, H, U) {
508
- if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) throw Error("Workspace edit is not configured for document changes.");
509
- var W;
510
- ChangeAnnotation.is(H) || ChangeAnnotationIdentifier.is(H) ? W = H : U = H;
511
- var G, K;
512
- if (W === void 0 ? G = DeleteFile.create(p, U) : (K = ChangeAnnotationIdentifier.is(W) ? W : this._changeAnnotations.manage(W), G = DeleteFile.create(p, U, K)), this._workspaceEdit.documentChanges.push(G), K !== void 0) return K;
513
- }, p;
514
- })();
515
- var TextDocumentIdentifier;
516
- (function(p) {
517
- function H(p) {
518
- return { uri: p };
519
- }
520
- p.create = H;
521
- function U(p) {
522
- var H = p;
523
- return Is.defined(H) && Is.string(H.uri);
524
- }
525
- p.is = U;
526
- })(TextDocumentIdentifier ||= {});
527
- var VersionedTextDocumentIdentifier;
528
- (function(p) {
529
- function H(p, H) {
530
- return {
531
- uri: p,
532
- version: H
533
- };
534
- }
535
- p.create = H;
536
- function U(p) {
537
- var H = p;
538
- return Is.defined(H) && Is.string(H.uri) && Is.integer(H.version);
539
- }
540
- p.is = U;
541
- })(VersionedTextDocumentIdentifier ||= {});
542
- var OptionalVersionedTextDocumentIdentifier;
543
- (function(p) {
544
- function H(p, H) {
545
- return {
546
- uri: p,
547
- version: H
548
- };
549
- }
550
- p.create = H;
551
- function U(p) {
552
- var H = p;
553
- return Is.defined(H) && Is.string(H.uri) && (H.version === null || Is.integer(H.version));
554
- }
555
- p.is = U;
556
- })(OptionalVersionedTextDocumentIdentifier ||= {});
557
- var TextDocumentItem;
558
- (function(p) {
559
- function H(p, H, U, W) {
560
- return {
561
- uri: p,
562
- languageId: H,
563
- version: U,
564
- text: W
565
- };
566
- }
567
- p.create = H;
568
- function U(p) {
569
- var H = p;
570
- return Is.defined(H) && Is.string(H.uri) && Is.string(H.languageId) && Is.integer(H.version) && Is.string(H.text);
571
- }
572
- p.is = U;
573
- })(TextDocumentItem ||= {});
574
- var MarkupKind;
575
- (function(p) {
576
- p.PlainText = "plaintext", p.Markdown = "markdown";
577
- })(MarkupKind ||= {}), (function(p) {
578
- function H(H) {
579
- var U = H;
580
- return U === p.PlainText || U === p.Markdown;
581
- }
582
- p.is = H;
583
- })(MarkupKind ||= {});
584
- var MarkupContent;
585
- (function(p) {
586
- function H(p) {
587
- var H = p;
588
- return Is.objectLiteral(p) && MarkupKind.is(H.kind) && Is.string(H.value);
589
- }
590
- p.is = H;
591
- })(MarkupContent ||= {});
592
- var CompletionItemKind;
593
- (function(p) {
594
- p.Text = 1, p.Method = 2, p.Function = 3, p.Constructor = 4, p.Field = 5, p.Variable = 6, p.Class = 7, p.Interface = 8, p.Module = 9, p.Property = 10, p.Unit = 11, p.Value = 12, p.Enum = 13, p.Keyword = 14, p.Snippet = 15, p.Color = 16, p.File = 17, p.Reference = 18, p.Folder = 19, p.EnumMember = 20, p.Constant = 21, p.Struct = 22, p.Event = 23, p.Operator = 24, p.TypeParameter = 25;
595
- })(CompletionItemKind ||= {});
596
- var InsertTextFormat;
597
- (function(p) {
598
- p.PlainText = 1, p.Snippet = 2;
599
- })(InsertTextFormat ||= {});
600
- var CompletionItemTag;
601
- (function(p) {
602
- p.Deprecated = 1;
603
- })(CompletionItemTag ||= {});
604
- var InsertReplaceEdit;
605
- (function(p) {
606
- function H(p, H, U) {
607
- return {
608
- newText: p,
609
- insert: H,
610
- replace: U
611
- };
612
- }
613
- p.create = H;
614
- function U(p) {
615
- var H = p;
616
- return H && Is.string(H.newText) && Range$1.is(H.insert) && Range$1.is(H.replace);
617
- }
618
- p.is = U;
619
- })(InsertReplaceEdit ||= {});
620
- var InsertTextMode;
621
- (function(p) {
622
- p.asIs = 1, p.adjustIndentation = 2;
623
- })(InsertTextMode ||= {});
624
- var CompletionItem;
625
- (function(p) {
626
- function H(p) {
627
- return { label: p };
628
- }
629
- p.create = H;
630
- })(CompletionItem ||= {});
631
- var CompletionList;
632
- (function(p) {
633
- function H(p, H) {
634
- return {
635
- items: p || [],
636
- isIncomplete: !!H
637
- };
638
- }
639
- p.create = H;
640
- })(CompletionList ||= {});
641
- var MarkedString;
642
- (function(p) {
643
- function H(p) {
644
- return p.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&");
645
- }
646
- p.fromPlainText = H;
647
- function U(p) {
648
- var H = p;
649
- return Is.string(H) || Is.objectLiteral(H) && Is.string(H.language) && Is.string(H.value);
650
- }
651
- p.is = U;
652
- })(MarkedString ||= {});
653
- var Hover;
654
- (function(p) {
655
- function H(p) {
656
- var H = p;
657
- return !!H && Is.objectLiteral(H) && (MarkupContent.is(H.contents) || MarkedString.is(H.contents) || Is.typedArray(H.contents, MarkedString.is)) && (p.range === void 0 || Range$1.is(p.range));
658
- }
659
- p.is = H;
660
- })(Hover ||= {});
661
- var ParameterInformation;
662
- (function(p) {
663
- function H(p, H) {
664
- return H ? {
665
- label: p,
666
- documentation: H
667
- } : { label: p };
668
- }
669
- p.create = H;
670
- })(ParameterInformation ||= {});
671
- var SignatureInformation;
672
- (function(p) {
673
- function H(p, H) {
674
- var U = [...arguments].slice(2), W = { label: p };
675
- return Is.defined(H) && (W.documentation = H), Is.defined(U) ? W.parameters = U : W.parameters = [], W;
676
- }
677
- p.create = H;
678
- })(SignatureInformation ||= {});
679
- var DocumentHighlightKind;
680
- (function(p) {
681
- p.Text = 1, p.Read = 2, p.Write = 3;
682
- })(DocumentHighlightKind ||= {});
683
- var DocumentHighlight;
684
- (function(p) {
685
- function H(p, H) {
686
- var U = { range: p };
687
- return Is.number(H) && (U.kind = H), U;
688
- }
689
- p.create = H;
690
- })(DocumentHighlight ||= {});
691
- var SymbolKind;
692
- (function(p) {
693
- p.File = 1, p.Module = 2, p.Namespace = 3, p.Package = 4, p.Class = 5, p.Method = 6, p.Property = 7, p.Field = 8, p.Constructor = 9, p.Enum = 10, p.Interface = 11, p.Function = 12, p.Variable = 13, p.Constant = 14, p.String = 15, p.Number = 16, p.Boolean = 17, p.Array = 18, p.Object = 19, p.Key = 20, p.Null = 21, p.EnumMember = 22, p.Struct = 23, p.Event = 24, p.Operator = 25, p.TypeParameter = 26;
694
- })(SymbolKind ||= {});
695
- var SymbolTag;
696
- (function(p) {
697
- p.Deprecated = 1;
698
- })(SymbolTag ||= {});
699
- var SymbolInformation;
700
- (function(p) {
701
- function H(p, H, U, W, G) {
702
- var K = {
703
- name: p,
704
- kind: H,
705
- location: {
706
- uri: W,
707
- range: U
708
- }
709
- };
710
- return G && (K.containerName = G), K;
711
- }
712
- p.create = H;
713
- })(SymbolInformation ||= {});
714
- var DocumentSymbol;
715
- (function(p) {
716
- function H(p, H, U, W, G, K) {
717
- var q = {
718
- name: p,
719
- detail: H,
720
- kind: U,
721
- range: W,
722
- selectionRange: G
723
- };
724
- return K !== void 0 && (q.children = K), q;
725
- }
726
- p.create = H;
727
- function U(p) {
728
- var H = p;
729
- return H && Is.string(H.name) && Is.number(H.kind) && Range$1.is(H.range) && Range$1.is(H.selectionRange) && (H.detail === void 0 || Is.string(H.detail)) && (H.deprecated === void 0 || Is.boolean(H.deprecated)) && (H.children === void 0 || Array.isArray(H.children)) && (H.tags === void 0 || Array.isArray(H.tags));
730
- }
731
- p.is = U;
732
- })(DocumentSymbol ||= {});
733
- var CodeActionKind;
734
- (function(p) {
735
- p.Empty = "", p.QuickFix = "quickfix", p.Refactor = "refactor", p.RefactorExtract = "refactor.extract", p.RefactorInline = "refactor.inline", p.RefactorRewrite = "refactor.rewrite", p.Source = "source", p.SourceOrganizeImports = "source.organizeImports", p.SourceFixAll = "source.fixAll";
736
- })(CodeActionKind ||= {});
737
- var CodeActionContext;
738
- (function(p) {
739
- function H(p, H) {
740
- var U = { diagnostics: p };
741
- return H != null && (U.only = H), U;
742
- }
743
- p.create = H;
744
- function U(p) {
745
- var H = p;
746
- return Is.defined(H) && Is.typedArray(H.diagnostics, Diagnostic.is) && (H.only === void 0 || Is.typedArray(H.only, Is.string));
747
- }
748
- p.is = U;
749
- })(CodeActionContext ||= {});
750
- var CodeAction;
751
- (function(p) {
752
- function H(p, H, U) {
753
- var W = { title: p }, G = !0;
754
- return typeof H == "string" ? (G = !1, W.kind = H) : Command.is(H) ? W.command = H : W.edit = H, G && U !== void 0 && (W.kind = U), W;
755
- }
756
- p.create = H;
757
- function U(p) {
758
- var H = p;
759
- return H && Is.string(H.title) && (H.diagnostics === void 0 || Is.typedArray(H.diagnostics, Diagnostic.is)) && (H.kind === void 0 || Is.string(H.kind)) && (H.edit !== void 0 || H.command !== void 0) && (H.command === void 0 || Command.is(H.command)) && (H.isPreferred === void 0 || Is.boolean(H.isPreferred)) && (H.edit === void 0 || WorkspaceEdit.is(H.edit));
760
- }
761
- p.is = U;
762
- })(CodeAction ||= {});
763
- var CodeLens;
764
- (function(p) {
765
- function H(p, H) {
766
- var U = { range: p };
767
- return Is.defined(H) && (U.data = H), U;
768
- }
769
- p.create = H;
770
- function U(p) {
771
- var H = p;
772
- return Is.defined(H) && Range$1.is(H.range) && (Is.undefined(H.command) || Command.is(H.command));
773
- }
774
- p.is = U;
775
- })(CodeLens ||= {});
776
- var FormattingOptions;
777
- (function(p) {
778
- function H(p, H) {
779
- return {
780
- tabSize: p,
781
- insertSpaces: H
782
- };
783
- }
784
- p.create = H;
785
- function U(p) {
786
- var H = p;
787
- return Is.defined(H) && Is.uinteger(H.tabSize) && Is.boolean(H.insertSpaces);
788
- }
789
- p.is = U;
790
- })(FormattingOptions ||= {});
791
- var DocumentLink;
792
- (function(p) {
793
- function H(p, H, U) {
794
- return {
795
- range: p,
796
- target: H,
797
- data: U
798
- };
799
- }
800
- p.create = H;
801
- function U(p) {
802
- var H = p;
803
- return Is.defined(H) && Range$1.is(H.range) && (Is.undefined(H.target) || Is.string(H.target));
804
- }
805
- p.is = U;
806
- })(DocumentLink ||= {});
807
- var SelectionRange;
808
- (function(p) {
809
- function H(p, H) {
810
- return {
811
- range: p,
812
- parent: H
813
- };
814
- }
815
- p.create = H;
816
- function U(H) {
817
- var U = H;
818
- return U !== void 0 && Range$1.is(U.range) && (U.parent === void 0 || p.is(U.parent));
819
- }
820
- p.is = U;
821
- })(SelectionRange ||= {});
822
- var TextDocument;
823
- (function(p) {
824
- function H(p, H, U, W) {
825
- return new FullTextDocument(p, H, U, W);
826
- }
827
- p.create = H;
828
- function U(p) {
829
- var H = p;
830
- return !!(Is.defined(H) && Is.string(H.uri) && (Is.undefined(H.languageId) || Is.string(H.languageId)) && Is.uinteger(H.lineCount) && Is.func(H.getText) && Is.func(H.positionAt) && Is.func(H.offsetAt));
831
- }
832
- p.is = U;
833
- function W(p, H) {
834
- for (var U = p.getText(), W = G(H, function(p, H) {
835
- var U = p.range.start.line - H.range.start.line;
836
- return U === 0 ? p.range.start.character - H.range.start.character : U;
837
- }), K = U.length, q = W.length - 1; q >= 0; q--) {
838
- var J = W[q], Y = p.offsetAt(J.range.start), X = p.offsetAt(J.range.end);
839
- if (X <= K) U = U.substring(0, Y) + J.newText + U.substring(X, U.length);
840
- else throw Error("Overlapping edit");
841
- K = Y;
842
- }
843
- return U;
844
- }
845
- p.applyEdits = W;
846
- function G(p, H) {
847
- if (p.length <= 1) return p;
848
- var U = p.length / 2 | 0, W = p.slice(0, U), K = p.slice(U);
849
- G(W, H), G(K, H);
850
- for (var q = 0, J = 0, Y = 0; q < W.length && J < K.length;) H(W[q], K[J]) <= 0 ? p[Y++] = W[q++] : p[Y++] = K[J++];
851
- for (; q < W.length;) p[Y++] = W[q++];
852
- for (; J < K.length;) p[Y++] = K[J++];
853
- return p;
854
- }
855
- })(TextDocument ||= {});
856
- var FullTextDocument = function() {
857
- function p(p, H, U, W) {
858
- this._uri = p, this._languageId = H, this._version = U, this._content = W, this._lineOffsets = void 0;
859
- }
860
- return Object.defineProperty(p.prototype, "uri", {
861
- get: function() {
862
- return this._uri;
863
- },
864
- enumerable: !1,
865
- configurable: !0
866
- }), Object.defineProperty(p.prototype, "languageId", {
867
- get: function() {
868
- return this._languageId;
869
- },
870
- enumerable: !1,
871
- configurable: !0
872
- }), Object.defineProperty(p.prototype, "version", {
873
- get: function() {
874
- return this._version;
875
- },
876
- enumerable: !1,
877
- configurable: !0
878
- }), p.prototype.getText = function(p) {
879
- if (p) {
880
- var H = this.offsetAt(p.start), U = this.offsetAt(p.end);
881
- return this._content.substring(H, U);
882
- }
883
- return this._content;
884
- }, p.prototype.update = function(p, H) {
885
- this._content = p.text, this._version = H, this._lineOffsets = void 0;
886
- }, p.prototype.getLineOffsets = function() {
887
- if (this._lineOffsets === void 0) {
888
- for (var p = [], H = this._content, U = !0, W = 0; W < H.length; W++) {
889
- U &&= (p.push(W), !1);
890
- var G = H.charAt(W);
891
- U = G === "\r" || G === "\n", G === "\r" && W + 1 < H.length && H.charAt(W + 1) === "\n" && W++;
892
- }
893
- U && H.length > 0 && p.push(H.length), this._lineOffsets = p;
894
- }
895
- return this._lineOffsets;
896
- }, p.prototype.positionAt = function(p) {
897
- p = Math.max(Math.min(p, this._content.length), 0);
898
- var H = this.getLineOffsets(), U = 0, W = H.length;
899
- if (W === 0) return Position.create(0, p);
900
- for (; U < W;) {
901
- var G = Math.floor((U + W) / 2);
902
- H[G] > p ? W = G : U = G + 1;
903
- }
904
- var K = U - 1;
905
- return Position.create(K, p - H[K]);
906
- }, p.prototype.offsetAt = function(p) {
907
- var H = this.getLineOffsets();
908
- if (p.line >= H.length) return this._content.length;
909
- if (p.line < 0) return 0;
910
- var U = H[p.line], W = p.line + 1 < H.length ? H[p.line + 1] : this._content.length;
911
- return Math.max(Math.min(U + p.character, W), U);
912
- }, Object.defineProperty(p.prototype, "lineCount", {
913
- get: function() {
914
- return this.getLineOffsets().length;
915
- },
916
- enumerable: !1,
917
- configurable: !0
918
- }), p;
919
- }(), Is;
920
- (function(p) {
921
- var H = Object.prototype.toString;
922
- function U(p) {
923
- return p !== void 0;
924
- }
925
- p.defined = U;
926
- function W(p) {
927
- return p === void 0;
928
- }
929
- p.undefined = W;
930
- function G(p) {
931
- return p === !0 || p === !1;
932
- }
933
- p.boolean = G;
934
- function K(p) {
935
- return H.call(p) === "[object String]";
936
- }
937
- p.string = K;
938
- function q(p) {
939
- return H.call(p) === "[object Number]";
940
- }
941
- p.number = q;
942
- function J(p, U, W) {
943
- return H.call(p) === "[object Number]" && U <= p && p <= W;
944
- }
945
- p.numberRange = J;
946
- function Y(p) {
947
- return H.call(p) === "[object Number]" && -2147483648 <= p && p <= 2147483647;
948
- }
949
- p.integer = Y;
950
- function X(p) {
951
- return H.call(p) === "[object Number]" && 0 <= p && p <= 2147483647;
952
- }
953
- p.uinteger = X;
954
- function Z(p) {
955
- return H.call(p) === "[object Function]";
956
- }
957
- p.func = Z;
958
- function Q(p) {
959
- return typeof p == "object" && !!p;
960
- }
961
- p.objectLiteral = Q;
962
- function $(p, H) {
963
- return Array.isArray(p) && p.every(H);
964
- }
965
- p.typedArray = $;
966
- })(Is ||= {});
967
- function fromPosition(p) {
968
- if (p) return {
969
- character: p.column - 1,
970
- line: p.lineNumber - 1
971
- };
972
- }
973
- function fromRange(p) {
974
- if (p) return {
975
- start: fromPosition(p.getStartPosition()),
976
- end: fromPosition(p.getEndPosition())
977
- };
978
- }
979
- function toRange(H) {
980
- if (H) return new Range(H.start.line + 1, H.start.character + 1, H.end.line + 1, H.end.character + 1);
981
- }
982
- function isInsertReplaceEdit(p) {
983
- return p.insert !== void 0 && p.replace !== void 0;
984
- }
985
- function toCompletionItemKind(p) {
986
- var H = languages.CompletionItemKind;
987
- switch (p) {
988
- case CompletionItemKind.Text: return H.Text;
989
- case CompletionItemKind.Method: return H.Method;
990
- case CompletionItemKind.Function: return H.Function;
991
- case CompletionItemKind.Constructor: return H.Constructor;
992
- case CompletionItemKind.Field: return H.Field;
993
- case CompletionItemKind.Variable: return H.Variable;
994
- case CompletionItemKind.Class: return H.Class;
995
- case CompletionItemKind.Interface: return H.Interface;
996
- case CompletionItemKind.Module: return H.Module;
997
- case CompletionItemKind.Property: return H.Property;
998
- case CompletionItemKind.Unit: return H.Unit;
999
- case CompletionItemKind.Value: return H.Value;
1000
- case CompletionItemKind.Enum: return H.Enum;
1001
- case CompletionItemKind.Keyword: return H.Keyword;
1002
- case CompletionItemKind.Snippet: return H.Snippet;
1003
- case CompletionItemKind.Color: return H.Color;
1004
- case CompletionItemKind.File: return H.File;
1005
- case CompletionItemKind.Reference: return H.Reference;
1006
- }
1007
- return H.Property;
1008
- }
1009
- function toTextEdit(p) {
1010
- if (p) return {
1011
- range: toRange(p.range),
1012
- text: p.newText
1013
- };
1014
- }
1015
- function toCommand(p) {
1016
- return p && p.command === "editor.action.triggerSuggest" ? {
1017
- id: p.command,
1018
- title: p.title,
1019
- arguments: p.arguments
1020
- } : void 0;
1021
- }
1022
- var CompletionAdapter = function() {
1023
- function H(p) {
1024
- this._worker = p;
1025
- }
1026
- return Object.defineProperty(H.prototype, "triggerCharacters", {
1027
- get: function() {
1028
- return [
1029
- ".",
1030
- ":",
1031
- "<",
1032
- "\"",
1033
- "=",
1034
- "/"
1035
- ];
1036
- },
1037
- enumerable: !1,
1038
- configurable: !0
1039
- }), H.prototype.provideCompletionItems = function(H, W, G, K) {
1040
- var q = H.uri;
1041
- return this._worker(q).then(function(p) {
1042
- return p.doComplete(q.toString(), fromPosition(W));
1043
- }).then(function(G) {
1044
- if (G) {
1045
- var K = H.getWordUntilPosition(W), q = new Range(W.lineNumber, K.startColumn, W.lineNumber, K.endColumn), J = G.items.map(function(p) {
1046
- var H = {
1047
- label: p.label,
1048
- insertText: p.insertText || p.label,
1049
- sortText: p.sortText,
1050
- filterText: p.filterText,
1051
- documentation: p.documentation,
1052
- command: toCommand(p.command),
1053
- detail: p.detail,
1054
- range: q,
1055
- kind: toCompletionItemKind(p.kind)
1056
- };
1057
- return p.textEdit && (isInsertReplaceEdit(p.textEdit) ? H.range = {
1058
- insert: toRange(p.textEdit.insert),
1059
- replace: toRange(p.textEdit.replace)
1060
- } : H.range = toRange(p.textEdit.range), H.insertText = p.textEdit.newText), p.additionalTextEdits && (H.additionalTextEdits = p.additionalTextEdits.map(toTextEdit)), p.insertTextFormat === InsertTextFormat.Snippet && (H.insertTextRules = languages.CompletionItemInsertTextRule.InsertAsSnippet), H;
1061
- });
1062
- return {
1063
- isIncomplete: G.isIncomplete,
1064
- suggestions: J
1065
- };
1066
- }
1067
- });
1068
- }, H;
1069
- }();
1070
- function isMarkupContent(p) {
1071
- return p && typeof p == "object" && typeof p.kind == "string";
1072
- }
1073
- function toMarkdownString(p) {
1074
- return typeof p == "string" ? { value: p } : isMarkupContent(p) ? p.kind === "plaintext" ? { value: p.value.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&") } : { value: p.value } : { value: "```" + p.language + "\n" + p.value + "\n```\n" };
1075
- }
1076
- function toMarkedStringArray(p) {
1077
- if (p) return Array.isArray(p) ? p.map(toMarkdownString) : [toMarkdownString(p)];
1078
- }
1079
- var HoverAdapter = function() {
1080
- function p(p) {
1081
- this._worker = p;
1082
- }
1083
- return p.prototype.provideHover = function(p, H, U) {
1084
- var W = p.uri;
1085
- return this._worker(W).then(function(p) {
1086
- return p.doHover(W.toString(), fromPosition(H));
1087
- }).then(function(p) {
1088
- if (p) return {
1089
- range: toRange(p.range),
1090
- contents: toMarkedStringArray(p.contents)
1091
- };
1092
- });
1093
- }, p;
1094
- }();
1095
- function toHighlighKind(p) {
1096
- var H = languages.DocumentHighlightKind;
1097
- switch (p) {
1098
- case DocumentHighlightKind.Read: return H.Read;
1099
- case DocumentHighlightKind.Write: return H.Write;
1100
- case DocumentHighlightKind.Text: return H.Text;
1101
- }
1102
- return H.Text;
1103
- }
1104
- var DocumentHighlightAdapter = function() {
1105
- function p(p) {
1106
- this._worker = p;
1107
- }
1108
- return p.prototype.provideDocumentHighlights = function(p, H, U) {
1109
- var W = p.uri;
1110
- return this._worker(W).then(function(p) {
1111
- return p.findDocumentHighlights(W.toString(), fromPosition(H));
1112
- }).then(function(p) {
1113
- if (p) return p.map(function(p) {
1114
- return {
1115
- range: toRange(p.range),
1116
- kind: toHighlighKind(p.kind)
1117
- };
1118
- });
1119
- });
1120
- }, p;
1121
- }();
1122
- function toSymbolKind(p) {
1123
- var H = languages.SymbolKind;
1124
- switch (p) {
1125
- case SymbolKind.File: return H.Array;
1126
- case SymbolKind.Module: return H.Module;
1127
- case SymbolKind.Namespace: return H.Namespace;
1128
- case SymbolKind.Package: return H.Package;
1129
- case SymbolKind.Class: return H.Class;
1130
- case SymbolKind.Method: return H.Method;
1131
- case SymbolKind.Property: return H.Property;
1132
- case SymbolKind.Field: return H.Field;
1133
- case SymbolKind.Constructor: return H.Constructor;
1134
- case SymbolKind.Enum: return H.Enum;
1135
- case SymbolKind.Interface: return H.Interface;
1136
- case SymbolKind.Function: return H.Function;
1137
- case SymbolKind.Variable: return H.Variable;
1138
- case SymbolKind.Constant: return H.Constant;
1139
- case SymbolKind.String: return H.String;
1140
- case SymbolKind.Number: return H.Number;
1141
- case SymbolKind.Boolean: return H.Boolean;
1142
- case SymbolKind.Array: return H.Array;
1143
- }
1144
- return H.Function;
1145
- }
1146
- var DocumentSymbolAdapter = function() {
1147
- function p(p) {
1148
- this._worker = p;
1149
- }
1150
- return p.prototype.provideDocumentSymbols = function(p, H) {
1151
- var U = p.uri;
1152
- return this._worker(U).then(function(p) {
1153
- return p.findDocumentSymbols(U.toString());
1154
- }).then(function(p) {
1155
- if (p) return p.map(function(p) {
1156
- return {
1157
- name: p.name,
1158
- detail: "",
1159
- containerName: p.containerName,
1160
- kind: toSymbolKind(p.kind),
1161
- tags: [],
1162
- range: toRange(p.location.range),
1163
- selectionRange: toRange(p.location.range)
1164
- };
1165
- });
1166
- });
1167
- }, p;
1168
- }(), DocumentLinkAdapter = function() {
1169
- function p(p) {
1170
- this._worker = p;
1171
- }
1172
- return p.prototype.provideLinks = function(p, H) {
1173
- var U = p.uri;
1174
- return this._worker(U).then(function(p) {
1175
- return p.findDocumentLinks(U.toString());
1176
- }).then(function(p) {
1177
- if (p) return { links: p.map(function(p) {
1178
- return {
1179
- range: toRange(p.range),
1180
- url: p.target
1181
- };
1182
- }) };
1183
- });
1184
- }, p;
1185
- }();
1186
- function fromFormattingOptions(p) {
1187
- return {
1188
- tabSize: p.tabSize,
1189
- insertSpaces: p.insertSpaces
1190
- };
1191
- }
1192
- var DocumentFormattingEditProvider = function() {
1193
- function p(p) {
1194
- this._worker = p;
1195
- }
1196
- return p.prototype.provideDocumentFormattingEdits = function(p, H, U) {
1197
- var W = p.uri;
1198
- return this._worker(W).then(function(p) {
1199
- return p.format(W.toString(), null, fromFormattingOptions(H)).then(function(p) {
1200
- if (!(!p || p.length === 0)) return p.map(toTextEdit);
1201
- });
1202
- });
1203
- }, p;
1204
- }(), DocumentRangeFormattingEditProvider = function() {
1205
- function p(p) {
1206
- this._worker = p;
1207
- }
1208
- return p.prototype.provideDocumentRangeFormattingEdits = function(p, H, U, W) {
1209
- var G = p.uri;
1210
- return this._worker(G).then(function(p) {
1211
- return p.format(G.toString(), fromRange(H), fromFormattingOptions(U)).then(function(p) {
1212
- if (!(!p || p.length === 0)) return p.map(toTextEdit);
1213
- });
1214
- });
1215
- }, p;
1216
- }(), RenameAdapter = function() {
1217
- function p(p) {
1218
- this._worker = p;
1219
- }
1220
- return p.prototype.provideRenameEdits = function(p, H, U, W) {
1221
- var G = p.uri;
1222
- return this._worker(G).then(function(p) {
1223
- return p.doRename(G.toString(), fromPosition(H), U);
1224
- }).then(function(p) {
1225
- return toWorkspaceEdit(p);
1226
- });
1227
- }, p;
1228
- }();
1229
- function toWorkspaceEdit(p) {
1230
- if (!(!p || !p.changes)) {
1231
- var U = [];
1232
- for (var W in p.changes) for (var G = Uri.parse(W), K = 0, q = p.changes[W]; K < q.length; K++) {
1233
- var J = q[K];
1234
- U.push({
1235
- resource: G,
1236
- edit: {
1237
- range: toRange(J.range),
1238
- text: J.newText
1239
- }
1240
- });
1241
- }
1242
- return { edits: U };
1243
- }
1244
- }
1245
- var FoldingRangeAdapter = function() {
1246
- function p(p) {
1247
- this._worker = p;
1248
- }
1249
- return p.prototype.provideFoldingRanges = function(p, H, U) {
1250
- var W = p.uri;
1251
- return this._worker(W).then(function(p) {
1252
- return p.getFoldingRanges(W.toString(), H);
1253
- }).then(function(p) {
1254
- if (p) return p.map(function(p) {
1255
- var H = {
1256
- start: p.startLine + 1,
1257
- end: p.endLine + 1
1258
- };
1259
- return p.kind !== void 0 && (H.kind = toFoldingRangeKind(p.kind)), H;
1260
- });
1261
- });
1262
- }, p;
1263
- }();
1264
- function toFoldingRangeKind(p) {
1265
- switch (p) {
1266
- case FoldingRangeKind.Comment: return languages.FoldingRangeKind.Comment;
1267
- case FoldingRangeKind.Imports: return languages.FoldingRangeKind.Imports;
1268
- case FoldingRangeKind.Region: return languages.FoldingRangeKind.Region;
1269
- }
1270
- }
1271
- var SelectionRangeAdapter = function() {
1272
- function p(p) {
1273
- this._worker = p;
1274
- }
1275
- return p.prototype.provideSelectionRanges = function(p, H, U) {
1276
- var W = p.uri;
1277
- return this._worker(W).then(function(p) {
1278
- return p.getSelectionRanges(W.toString(), H.map(fromPosition));
1279
- }).then(function(p) {
1280
- if (p) return p.map(function(p) {
1281
- for (var H = []; p;) H.push({ range: toRange(p.range) }), p = p.parent;
1282
- return H;
1283
- });
1284
- });
1285
- }, p;
1286
- }();
1287
- function setupMode1(p) {
1288
- var H = new WorkerManager(p), W = function() {
1289
- var p = [...arguments];
1290
- return H.getLanguageServiceWorker.apply(H, p);
1291
- }, G = p.languageId;
1292
- languages.registerCompletionItemProvider(G, new CompletionAdapter(W)), languages.registerHoverProvider(G, new HoverAdapter(W)), languages.registerDocumentHighlightProvider(G, new DocumentHighlightAdapter(W)), languages.registerLinkProvider(G, new DocumentLinkAdapter(W)), languages.registerFoldingRangeProvider(G, new FoldingRangeAdapter(W)), languages.registerDocumentSymbolProvider(G, new DocumentSymbolAdapter(W)), languages.registerSelectionRangeProvider(G, new SelectionRangeAdapter(W)), languages.registerRenameProvider(G, new RenameAdapter(W)), G === "html" && (languages.registerDocumentFormattingEditProvider(G, new DocumentFormattingEditProvider(W)), languages.registerDocumentRangeFormattingEditProvider(G, new DocumentRangeFormattingEditProvider(W)));
1293
- }
1294
- function setupMode(p) {
1295
- var H = [], W = [], G = new WorkerManager(p);
1296
- H.push(G);
1297
- var q = function() {
1298
- var p = [...arguments];
1299
- return G.getLanguageServiceWorker.apply(G, p);
1300
- };
1301
- function J() {
1302
- var H = p.languageId, G = p.modeConfiguration;
1303
- disposeAll(W), G.completionItems && W.push(languages.registerCompletionItemProvider(H, new CompletionAdapter(q))), G.hovers && W.push(languages.registerHoverProvider(H, new HoverAdapter(q))), G.documentHighlights && W.push(languages.registerDocumentHighlightProvider(H, new DocumentHighlightAdapter(q))), G.links && W.push(languages.registerLinkProvider(H, new DocumentLinkAdapter(q))), G.documentSymbols && W.push(languages.registerDocumentSymbolProvider(H, new DocumentSymbolAdapter(q))), G.rename && W.push(languages.registerRenameProvider(H, new RenameAdapter(q))), G.foldingRanges && W.push(languages.registerFoldingRangeProvider(H, new FoldingRangeAdapter(q))), G.selectionRanges && W.push(languages.registerSelectionRangeProvider(H, new SelectionRangeAdapter(q))), G.documentFormattingEdits && W.push(languages.registerDocumentFormattingEditProvider(H, new DocumentFormattingEditProvider(q))), G.documentRangeFormattingEdits && W.push(languages.registerDocumentRangeFormattingEditProvider(H, new DocumentRangeFormattingEditProvider(q)));
1304
- }
1305
- return J(), H.push(asDisposable(W)), asDisposable(H);
1306
- }
1307
- function asDisposable(p) {
1308
- return { dispose: function() {
1309
- return disposeAll(p);
1310
- } };
1311
- }
1312
- function disposeAll(p) {
1313
- for (; p.length;) p.pop().dispose();
1314
- }
1315
- export { setupMode, setupMode1 };