@duxweb/dvha-pro 0.0.8 → 1.0.14

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 (287) hide show
  1. package/dist/cjs/component.cjs +1 -1
  2. package/dist/cjs/components/card/card.cjs +1 -1
  3. package/dist/cjs/components/card/store.cjs +1 -0
  4. package/dist/cjs/components/chart/echart.cjs +1 -1
  5. package/dist/cjs/components/crop/imageCrop.cjs +1 -0
  6. package/dist/cjs/components/crop/imageCropModal.cjs +1 -0
  7. package/dist/cjs/components/dashboard/helloBig.cjs +1 -1
  8. package/dist/cjs/components/data/dynamicData.cjs +1 -0
  9. package/dist/cjs/components/data/dynamicSelect.cjs +1 -0
  10. package/dist/cjs/components/data/selectModal.cjs +1 -0
  11. package/dist/cjs/components/dialog/dialog.cjs +1 -1
  12. package/dist/cjs/components/drawer/drawer.cjs +1 -1
  13. package/dist/cjs/components/editor/aiEditor.cjs +1 -0
  14. package/dist/cjs/components/form/modalForm.cjs +1 -1
  15. package/dist/cjs/components/form/pageForm.cjs +1 -1
  16. package/dist/cjs/components/form/settingForm.cjs +1 -1
  17. package/dist/cjs/components/layout/list.cjs +1 -1
  18. package/dist/cjs/components/layout/table.cjs +1 -1
  19. package/dist/cjs/components/level/level.cjs +1 -0
  20. package/dist/cjs/components/media/media.cjs +1 -1
  21. package/dist/cjs/components/modal/modal.cjs +1 -1
  22. package/dist/cjs/components/modal/modalPage.cjs +1 -1
  23. package/dist/cjs/components/panel/setting.cjs +1 -1
  24. package/dist/cjs/components/stats/number.cjs +1 -0
  25. package/dist/cjs/components/stats/realTime.cjs +1 -0
  26. package/dist/cjs/components/status/blockEmpty.cjs +1 -1
  27. package/dist/cjs/components/upload/file.cjs +1 -0
  28. package/dist/cjs/components/upload/image.cjs +1 -0
  29. package/dist/cjs/components/upload/manage/item.cjs +1 -0
  30. package/dist/cjs/components/upload/manager.cjs +1 -0
  31. package/dist/cjs/components/widget/avatar.cjs +1 -0
  32. package/dist/cjs/components/widget/connect.cjs +1 -1
  33. package/dist/cjs/components/widget/image.cjs +1 -0
  34. package/dist/cjs/components/widget/placeholder.cjs +1 -0
  35. package/dist/cjs/config/uno.cjs +1 -1
  36. package/dist/cjs/config/validate.cjs +1 -1
  37. package/dist/cjs/hooks/action.cjs +1 -1
  38. package/dist/cjs/hooks/dialog.cjs +1 -1
  39. package/dist/cjs/hooks/download.cjs +1 -0
  40. package/dist/cjs/hooks/drawer.cjs +1 -1
  41. package/dist/cjs/hooks/echart.cjs +1 -1
  42. package/dist/cjs/hooks/image.cjs +1 -0
  43. package/dist/cjs/hooks/level.cjs +1 -0
  44. package/dist/cjs/hooks/modal.cjs +1 -1
  45. package/dist/cjs/hooks/table/copy.cjs +1 -1
  46. package/dist/cjs/hooks/table/image.cjs +1 -1
  47. package/dist/cjs/hooks/table/input.cjs +1 -1
  48. package/dist/cjs/hooks/table/media.cjs +1 -1
  49. package/dist/cjs/hooks/table.cjs +1 -1
  50. package/dist/cjs/index.cjs +1 -1
  51. package/dist/cjs/langs/en-US.json.cjs +1 -1
  52. package/dist/cjs/langs/zh-CN.json.cjs +1 -1
  53. package/dist/cjs/main.cjs +1 -1
  54. package/dist/cjs/pages/authLayout.cjs +1 -1
  55. package/dist/cjs/pages/layout/global.cjs +1 -1
  56. package/dist/cjs/pages/layout/page.cjs +1 -1
  57. package/dist/cjs/pages/login.cjs +1 -1
  58. package/dist/cjs/pages/menu/avatar.cjs +1 -1
  59. package/dist/cjs/pages/menu/button.cjs +1 -1
  60. package/dist/cjs/pages/menu/cmd.cjs +1 -1
  61. package/dist/cjs/pages/menu/main.cjs +1 -1
  62. package/dist/cjs/pages/menu/mobile.cjs +1 -1
  63. package/dist/cjs/pages/page.cjs +1 -1
  64. package/dist/cjs/pages/page404.cjs +1 -1
  65. package/dist/cjs/pages/pageStatus.cjs +1 -1
  66. package/dist/cjs/static/images/icon/audio.svg.cjs +1 -0
  67. package/dist/cjs/static/images/icon/excel.svg.cjs +1 -0
  68. package/dist/cjs/static/images/icon/file.svg.cjs +1 -0
  69. package/dist/cjs/static/images/icon/folder.svg.cjs +1 -0
  70. package/dist/cjs/static/images/icon/pdf.svg.cjs +1 -0
  71. package/dist/cjs/static/images/icon/ppt.svg.cjs +1 -0
  72. package/dist/cjs/static/images/icon/video.svg.cjs +1 -0
  73. package/dist/cjs/static/images/icon/word.svg.cjs +1 -0
  74. package/dist/cjs/stores/ui.cjs +1 -1
  75. package/dist/cjs/theme/uno.css.cjs +108 -12
  76. package/dist/esm/component.js +64 -47
  77. package/dist/esm/components/card/card.js +22 -21
  78. package/dist/esm/components/card/store.js +64 -0
  79. package/dist/esm/components/chart/echart.js +29 -16
  80. package/dist/esm/components/crop/imageCrop.js +105 -0
  81. package/dist/esm/components/crop/imageCropModal.js +118 -0
  82. package/dist/esm/components/dashboard/helloBig.js +3 -2
  83. package/dist/esm/components/data/dynamicData.js +145 -0
  84. package/dist/esm/components/data/dynamicSelect.js +109 -0
  85. package/dist/esm/components/data/selectModal.js +135 -0
  86. package/dist/esm/components/dialog/dialog.js +50 -38
  87. package/dist/esm/components/drawer/drawer.js +14 -12
  88. package/dist/esm/components/editor/aiEditor.js +127 -0
  89. package/dist/esm/components/form/modalForm.js +66 -40
  90. package/dist/esm/components/form/pageForm.js +31 -21
  91. package/dist/esm/components/form/settingForm.js +31 -21
  92. package/dist/esm/components/layout/list.js +67 -57
  93. package/dist/esm/components/layout/table.js +59 -49
  94. package/dist/esm/components/level/level.js +103 -0
  95. package/dist/esm/components/media/media.js +18 -16
  96. package/dist/esm/components/modal/modal.js +27 -21
  97. package/dist/esm/components/modal/modalPage.js +7 -7
  98. package/dist/esm/components/panel/setting.js +9 -6
  99. package/dist/esm/components/stats/number.js +49 -0
  100. package/dist/esm/components/stats/realTime.js +99 -0
  101. package/dist/esm/components/status/blockEmpty.js +136 -57
  102. package/dist/esm/components/upload/file.js +258 -0
  103. package/dist/esm/components/upload/image.js +189 -0
  104. package/dist/esm/components/upload/manage/item.js +178 -0
  105. package/dist/esm/components/upload/manager.js +378 -0
  106. package/dist/esm/components/widget/avatar.js +59 -0
  107. package/dist/esm/components/widget/connect.js +6 -4
  108. package/dist/esm/components/widget/image.js +67 -0
  109. package/dist/esm/components/widget/placeholder.js +83 -0
  110. package/dist/esm/config/uno.js +6 -6
  111. package/dist/esm/config/validate.js +2 -2
  112. package/dist/esm/hooks/action.js +34 -34
  113. package/dist/esm/hooks/dialog.js +13 -3
  114. package/dist/esm/hooks/download.js +100 -0
  115. package/dist/esm/hooks/drawer.js +13 -3
  116. package/dist/esm/hooks/echart.js +292 -246
  117. package/dist/esm/hooks/image.js +23 -0
  118. package/dist/esm/hooks/level.js +75 -0
  119. package/dist/esm/hooks/modal.js +14 -4
  120. package/dist/esm/hooks/table/copy.js +14 -11
  121. package/dist/esm/hooks/table/image.js +55 -17
  122. package/dist/esm/hooks/table/input.js +35 -33
  123. package/dist/esm/hooks/table/media.js +17 -7
  124. package/dist/esm/hooks/table.js +41 -25
  125. package/dist/esm/index.js +198 -160
  126. package/dist/esm/langs/en-US.json.js +6 -4
  127. package/dist/esm/langs/zh-CN.json.js +5 -3
  128. package/dist/esm/main.js +8 -6
  129. package/dist/esm/pages/authLayout.js +24 -18
  130. package/dist/esm/pages/layout/global.js +29 -23
  131. package/dist/esm/pages/layout/page.js +26 -16
  132. package/dist/esm/pages/login.js +33 -23
  133. package/dist/esm/pages/menu/avatar.js +122 -93
  134. package/dist/esm/pages/menu/button.js +23 -13
  135. package/dist/esm/pages/menu/cmd.js +41 -31
  136. package/dist/esm/pages/menu/main.js +38 -28
  137. package/dist/esm/pages/menu/mobile.js +20 -10
  138. package/dist/esm/pages/page.js +21 -14
  139. package/dist/esm/pages/page404.js +15 -5
  140. package/dist/esm/pages/pageStatus.js +22 -12
  141. package/dist/esm/static/images/icon/audio.svg.js +4 -0
  142. package/dist/esm/static/images/icon/excel.svg.js +4 -0
  143. package/dist/esm/static/images/icon/file.svg.js +4 -0
  144. package/dist/esm/static/images/icon/folder.svg.js +4 -0
  145. package/dist/esm/static/images/icon/pdf.svg.js +4 -0
  146. package/dist/esm/static/images/icon/ppt.svg.js +4 -0
  147. package/dist/esm/static/images/icon/video.svg.js +4 -0
  148. package/dist/esm/static/images/icon/word.svg.js +4 -0
  149. package/dist/esm/stores/ui.js +10 -10
  150. package/dist/esm/theme/uno.css.js +108 -12
  151. package/dist/types/components/card/index.d.ts +1 -0
  152. package/dist/types/components/card/store.d.ts +16 -0
  153. package/dist/types/components/chart/echart.d.ts +2 -2
  154. package/dist/types/components/crop/imageCrop.d.ts +40 -0
  155. package/dist/types/components/crop/imageCropModal.d.ts +7 -0
  156. package/dist/types/components/crop/index.d.ts +2 -0
  157. package/dist/types/components/data/dynamicData.d.ts +56 -0
  158. package/dist/types/components/data/dynamicSelect.d.ts +49 -0
  159. package/dist/types/components/data/index.d.ts +3 -0
  160. package/dist/types/components/data/selectModal.d.ts +61 -0
  161. package/dist/types/components/dialog/dialog.d.ts +2 -0
  162. package/dist/types/components/editor/aiEditor.d.ts +26 -0
  163. package/dist/types/components/editor/index.d.ts +1 -0
  164. package/dist/types/components/index.d.ts +7 -0
  165. package/dist/types/components/level/index.d.ts +1 -0
  166. package/dist/types/components/level/level.d.ts +60 -0
  167. package/dist/types/components/modal/index.d.ts +2 -2
  168. package/dist/types/components/modal/modal.d.ts +1 -4
  169. package/dist/types/components/stats/index.d.ts +2 -0
  170. package/dist/types/components/stats/number.d.ts +50 -0
  171. package/dist/types/components/stats/realTime.d.ts +56 -0
  172. package/dist/types/components/upload/file.d.ts +9 -0
  173. package/dist/types/components/upload/image.d.ts +99 -0
  174. package/dist/types/components/upload/index.d.ts +4 -0
  175. package/dist/types/components/upload/manage/item.d.ts +22 -0
  176. package/dist/types/components/upload/manager.d.ts +37 -0
  177. package/dist/types/components/widget/avatar.d.ts +159 -0
  178. package/dist/types/components/widget/image.d.ts +257 -0
  179. package/dist/types/components/widget/index.d.ts +2 -0
  180. package/dist/types/components/widget/placeholder.d.ts +22 -0
  181. package/dist/types/hooks/dialog.d.ts +1 -0
  182. package/dist/types/hooks/download.d.ts +31 -0
  183. package/dist/types/hooks/echart.d.ts +14 -0
  184. package/dist/types/hooks/image.d.ts +3 -0
  185. package/dist/types/hooks/index.d.ts +3 -0
  186. package/dist/types/hooks/level.d.ts +19 -0
  187. package/dist/types/main.d.ts +12 -0
  188. package/dist/types/static/images/icon/index.d.ts +8 -0
  189. package/package.json +9 -3
  190. package/dist/cjs/_virtual/_commonjsHelpers.cjs +0 -1
  191. package/dist/cjs/_virtual/browser.cjs +0 -1
  192. package/dist/cjs/_virtual/browser2.cjs +0 -1
  193. package/dist/cjs/_virtual/sourcemap-codec.umd.cjs +0 -1
  194. package/dist/cjs/_virtual/sourcemap-codec.umd2.cjs +0 -1
  195. package/dist/cjs/node_modules/.pnpm/@iconify-json_tabler@1.2.19/node_modules/@iconify-json/tabler/icons.json.cjs +0 -1
  196. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.cjs +0 -1
  197. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.cjs +0 -1
  198. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.cjs +0 -1
  199. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.cjs +0 -1
  200. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.cjs +0 -1
  201. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.cjs +0 -1
  202. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/custom.cjs +0 -1
  203. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/loader.cjs +0 -1
  204. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/modern.cjs +0 -1
  205. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/utils.cjs +0 -1
  206. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.cjs +0 -1
  207. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.cjs +0 -1
  208. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.cjs +0 -1
  209. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.cjs +0 -1
  210. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/trim.cjs +0 -1
  211. package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/url.cjs +0 -1
  212. package/dist/cjs/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.cjs +0 -1
  213. package/dist/cjs/node_modules/.pnpm/@unocss_core@66.2.3/node_modules/@unocss/core/dist/index.cjs +0 -1
  214. package/dist/cjs/node_modules/.pnpm/@unocss_extractor-arbitrary-variants@66.2.3/node_modules/@unocss/extractor-arbitrary-variants/dist/index.cjs +0 -1
  215. package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/browser.cjs +0 -1
  216. package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/core.cjs +0 -1
  217. package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/shared/preset-icons.DE2iazBM.cjs +0 -1
  218. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/colors.cjs +0 -1
  219. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/index.cjs +0 -391
  220. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/postprocess.cjs +0 -1
  221. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BgkAsChl.cjs +0 -1
  222. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BwwuP5Yw.cjs +0 -1
  223. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CYAfjDEV.cjs +0 -1
  224. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CgvxUQFi.cjs +0 -1
  225. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.dDC8WtZ5.cjs +0 -1
  226. package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/theme.cjs +0 -1
  227. package/dist/cjs/node_modules/.pnpm/@unocss_rule-utils@66.2.3/node_modules/@unocss/rule-utils/dist/index.cjs +0 -1
  228. package/dist/cjs/node_modules/.pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate/i18n/dist/locale/en.json.cjs +0 -1
  229. package/dist/cjs/node_modules/.pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate/i18n/dist/locale/zh_CN.json.cjs +0 -1
  230. package/dist/cjs/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.cjs +0 -1
  231. package/dist/cjs/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.cjs +0 -1
  232. package/dist/cjs/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +0 -1
  233. package/dist/cjs/node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.cjs +0 -10
  234. package/dist/cjs/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.cjs +0 -1
  235. package/dist/cjs/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/index.cjs +0 -1
  236. package/dist/cjs/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/shared/ofetch.03887fc3.cjs +0 -1
  237. package/dist/cjs/node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.cjs +0 -1
  238. package/dist/cjs/static/images/placeholder.png.cjs +0 -1
  239. package/dist/esm/_virtual/_commonjsHelpers.js +0 -6
  240. package/dist/esm/_virtual/browser.js +0 -7
  241. package/dist/esm/_virtual/browser2.js +0 -4
  242. package/dist/esm/_virtual/sourcemap-codec.umd.js +0 -5
  243. package/dist/esm/_virtual/sourcemap-codec.umd2.js +0 -4
  244. package/dist/esm/node_modules/.pnpm/@iconify-json_tabler@1.2.19/node_modules/@iconify-json/tabler/icons.json.js +0 -17
  245. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.js +0 -14
  246. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.js +0 -25
  247. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.js +0 -11
  248. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.js +0 -9
  249. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.js +0 -23
  250. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.js +0 -17
  251. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/custom.js +0 -40
  252. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/loader.js +0 -46
  253. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/modern.js +0 -55
  254. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/utils.js +0 -38
  255. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.js +0 -69
  256. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.js +0 -29
  257. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +0 -14
  258. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.js +0 -27
  259. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/trim.js +0 -6
  260. package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/url.js +0 -6
  261. package/dist/esm/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +0 -255
  262. package/dist/esm/node_modules/.pnpm/@unocss_core@66.2.3/node_modules/@unocss/core/dist/index.js +0 -88
  263. package/dist/esm/node_modules/.pnpm/@unocss_extractor-arbitrary-variants@66.2.3/node_modules/@unocss/extractor-arbitrary-variants/dist/index.js +0 -51
  264. package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/browser.js +0 -17
  265. package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/core.js +0 -151
  266. package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/shared/preset-icons.DE2iazBM.js +0 -8
  267. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/colors.js +0 -322
  268. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/index.js +0 -547
  269. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/postprocess.js +0 -32
  270. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BgkAsChl.js +0 -2307
  271. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BwwuP5Yw.js +0 -627
  272. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CYAfjDEV.js +0 -7
  273. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CgvxUQFi.js +0 -588
  274. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.dDC8WtZ5.js +0 -51
  275. package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/theme.js +0 -553
  276. package/dist/esm/node_modules/.pnpm/@unocss_rule-utils@66.2.3/node_modules/@unocss/rule-utils/dist/index.js +0 -632
  277. package/dist/esm/node_modules/.pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate/i18n/dist/locale/en.json.js +0 -9
  278. package/dist/esm/node_modules/.pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate/i18n/dist/locale/zh_CN.json.js +0 -9
  279. package/dist/esm/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js +0 -146
  280. package/dist/esm/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js +0 -97
  281. package/dist/esm/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.js +0 -56
  282. package/dist/esm/node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js +0 -608
  283. package/dist/esm/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js +0 -85
  284. package/dist/esm/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/index.js +0 -23
  285. package/dist/esm/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/shared/ofetch.03887fc3.js +0 -219
  286. package/dist/esm/node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.js +0 -153
  287. package/dist/esm/static/images/placeholder.png.js +0 -4
@@ -1,608 +0,0 @@
1
- import { s as b } from "../../../../../../_virtual/sourcemap-codec.umd.js";
2
- class d {
3
- constructor(t) {
4
- this.bits = t instanceof d ? t.bits.slice() : [];
5
- }
6
- add(t) {
7
- this.bits[t >> 5] |= 1 << (t & 31);
8
- }
9
- has(t) {
10
- return !!(this.bits[t >> 5] & 1 << (t & 31));
11
- }
12
- }
13
- class g {
14
- constructor(t, e, i) {
15
- this.start = t, this.end = e, this.original = i, this.intro = "", this.outro = "", this.content = i, this.storeName = !1, this.edited = !1, this.previous = null, this.next = null;
16
- }
17
- appendLeft(t) {
18
- this.outro += t;
19
- }
20
- appendRight(t) {
21
- this.intro = this.intro + t;
22
- }
23
- clone() {
24
- const t = new g(this.start, this.end, this.original);
25
- return t.intro = this.intro, t.outro = this.outro, t.content = this.content, t.storeName = this.storeName, t.edited = this.edited, t;
26
- }
27
- contains(t) {
28
- return this.start < t && t < this.end;
29
- }
30
- eachNext(t) {
31
- let e = this;
32
- for (; e; )
33
- t(e), e = e.next;
34
- }
35
- eachPrevious(t) {
36
- let e = this;
37
- for (; e; )
38
- t(e), e = e.previous;
39
- }
40
- edit(t, e, i) {
41
- return this.content = t, i || (this.intro = "", this.outro = ""), this.storeName = e, this.edited = !0, this;
42
- }
43
- prependLeft(t) {
44
- this.outro = t + this.outro;
45
- }
46
- prependRight(t) {
47
- this.intro = t + this.intro;
48
- }
49
- reset() {
50
- this.intro = "", this.outro = "", this.edited && (this.content = this.original, this.storeName = !1, this.edited = !1);
51
- }
52
- split(t) {
53
- const e = t - this.start, i = this.original.slice(0, e), n = this.original.slice(e);
54
- this.original = i;
55
- const r = new g(t, this.end, n);
56
- return r.outro = this.outro, this.outro = "", this.end = t, this.edited ? (r.edit("", !1), this.content = "") : this.content = i, r.next = this.next, r.next && (r.next.previous = r), r.previous = this, this.next = r, r;
57
- }
58
- toString() {
59
- return this.intro + this.content + this.outro;
60
- }
61
- trimEnd(t) {
62
- if (this.outro = this.outro.replace(t, ""), this.outro.length) return !0;
63
- const e = this.content.replace(t, "");
64
- if (e.length)
65
- return e !== this.content && (this.split(this.start + e.length).edit("", void 0, !0), this.edited && this.edit(e, this.storeName, !0)), !0;
66
- if (this.edit("", void 0, !0), this.intro = this.intro.replace(t, ""), this.intro.length) return !0;
67
- }
68
- trimStart(t) {
69
- if (this.intro = this.intro.replace(t, ""), this.intro.length) return !0;
70
- const e = this.content.replace(t, "");
71
- if (e.length) {
72
- if (e !== this.content) {
73
- const i = this.split(this.end - e.length);
74
- this.edited && i.edit(e, this.storeName, !0), this.edit("", void 0, !0);
75
- }
76
- return !0;
77
- } else if (this.edit("", void 0, !0), this.outro = this.outro.replace(t, ""), this.outro.length) return !0;
78
- }
79
- }
80
- function C() {
81
- return typeof globalThis < "u" && typeof globalThis.btoa == "function" ? (u) => globalThis.btoa(unescape(encodeURIComponent(u))) : typeof Buffer == "function" ? (u) => Buffer.from(u, "utf-8").toString("base64") : () => {
82
- throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.");
83
- };
84
- }
85
- const S = /* @__PURE__ */ C();
86
- class y {
87
- constructor(t) {
88
- this.version = 3, this.file = t.file, this.sources = t.sources, this.sourcesContent = t.sourcesContent, this.names = t.names, this.mappings = b.encode(t.mappings), typeof t.x_google_ignoreList < "u" && (this.x_google_ignoreList = t.x_google_ignoreList), typeof t.debugId < "u" && (this.debugId = t.debugId);
89
- }
90
- toString() {
91
- return JSON.stringify(this);
92
- }
93
- toUrl() {
94
- return "data:application/json;charset=utf-8;base64," + S(this.toString());
95
- }
96
- }
97
- function v(u) {
98
- const t = u.split(`
99
- `), e = t.filter((r) => /^\t+/.test(r)), i = t.filter((r) => /^ {2,}/.test(r));
100
- if (e.length === 0 && i.length === 0)
101
- return null;
102
- if (e.length >= i.length)
103
- return " ";
104
- const n = i.reduce((r, s) => {
105
- const h = /^ +/.exec(s)[0].length;
106
- return Math.min(h, r);
107
- }, 1 / 0);
108
- return new Array(n + 1).join(" ");
109
- }
110
- function E(u, t) {
111
- const e = u.split(/[/\\]/), i = t.split(/[/\\]/);
112
- for (e.pop(); e[0] === i[0]; )
113
- e.shift(), i.shift();
114
- if (e.length) {
115
- let n = e.length;
116
- for (; n--; ) e[n] = "..";
117
- }
118
- return e.concat(i).join("/");
119
- }
120
- const x = Object.prototype.toString;
121
- function k(u) {
122
- return x.call(u) === "[object Object]";
123
- }
124
- function w(u) {
125
- const t = u.split(`
126
- `), e = [];
127
- for (let i = 0, n = 0; i < t.length; i++)
128
- e.push(n), n += t[i].length + 1;
129
- return function(n) {
130
- let r = 0, s = e.length;
131
- for (; r < s; ) {
132
- const l = r + s >> 1;
133
- n < e[l] ? s = l : r = l + 1;
134
- }
135
- const h = r - 1, o = n - e[h];
136
- return { line: h, column: o };
137
- };
138
- }
139
- const L = /\w/;
140
- class R {
141
- constructor(t) {
142
- this.hires = t, this.generatedCodeLine = 0, this.generatedCodeColumn = 0, this.raw = [], this.rawSegments = this.raw[this.generatedCodeLine] = [], this.pending = null;
143
- }
144
- addEdit(t, e, i, n) {
145
- if (e.length) {
146
- const r = e.length - 1;
147
- let s = e.indexOf(`
148
- `, 0), h = -1;
149
- for (; s >= 0 && r > s; ) {
150
- const l = [this.generatedCodeColumn, t, i.line, i.column];
151
- n >= 0 && l.push(n), this.rawSegments.push(l), this.generatedCodeLine += 1, this.raw[this.generatedCodeLine] = this.rawSegments = [], this.generatedCodeColumn = 0, h = s, s = e.indexOf(`
152
- `, s + 1);
153
- }
154
- const o = [this.generatedCodeColumn, t, i.line, i.column];
155
- n >= 0 && o.push(n), this.rawSegments.push(o), this.advance(e.slice(h + 1));
156
- } else this.pending && (this.rawSegments.push(this.pending), this.advance(e));
157
- this.pending = null;
158
- }
159
- addUneditedChunk(t, e, i, n, r) {
160
- let s = e.start, h = !0, o = !1;
161
- for (; s < e.end; ) {
162
- if (i[s] === `
163
- `)
164
- n.line += 1, n.column = 0, this.generatedCodeLine += 1, this.raw[this.generatedCodeLine] = this.rawSegments = [], this.generatedCodeColumn = 0, h = !0, o = !1;
165
- else {
166
- if (this.hires || h || r.has(s)) {
167
- const l = [this.generatedCodeColumn, t, n.line, n.column];
168
- this.hires === "boundary" ? L.test(i[s]) ? o || (this.rawSegments.push(l), o = !0) : (this.rawSegments.push(l), o = !1) : this.rawSegments.push(l);
169
- }
170
- n.column += 1, this.generatedCodeColumn += 1, h = !1;
171
- }
172
- s += 1;
173
- }
174
- this.pending = null;
175
- }
176
- advance(t) {
177
- if (!t) return;
178
- const e = t.split(`
179
- `);
180
- if (e.length > 1) {
181
- for (let i = 0; i < e.length - 1; i++)
182
- this.generatedCodeLine++, this.raw[this.generatedCodeLine] = this.rawSegments = [];
183
- this.generatedCodeColumn = 0;
184
- }
185
- this.generatedCodeColumn += e[e.length - 1].length;
186
- }
187
- }
188
- const c = `
189
- `, a = {
190
- insertLeft: !1,
191
- insertRight: !1,
192
- storeName: !1
193
- };
194
- class m {
195
- constructor(t, e = {}) {
196
- const i = new g(0, t.length, t);
197
- Object.defineProperties(this, {
198
- original: { writable: !0, value: t },
199
- outro: { writable: !0, value: "" },
200
- intro: { writable: !0, value: "" },
201
- firstChunk: { writable: !0, value: i },
202
- lastChunk: { writable: !0, value: i },
203
- lastSearchedChunk: { writable: !0, value: i },
204
- byStart: { writable: !0, value: {} },
205
- byEnd: { writable: !0, value: {} },
206
- filename: { writable: !0, value: e.filename },
207
- indentExclusionRanges: { writable: !0, value: e.indentExclusionRanges },
208
- sourcemapLocations: { writable: !0, value: new d() },
209
- storedNames: { writable: !0, value: {} },
210
- indentStr: { writable: !0, value: void 0 },
211
- ignoreList: { writable: !0, value: e.ignoreList },
212
- offset: { writable: !0, value: e.offset || 0 }
213
- }), this.byStart[0] = i, this.byEnd[t.length] = i;
214
- }
215
- addSourcemapLocation(t) {
216
- this.sourcemapLocations.add(t);
217
- }
218
- append(t) {
219
- if (typeof t != "string") throw new TypeError("outro content must be a string");
220
- return this.outro += t, this;
221
- }
222
- appendLeft(t, e) {
223
- if (t = t + this.offset, typeof e != "string") throw new TypeError("inserted content must be a string");
224
- this._split(t);
225
- const i = this.byEnd[t];
226
- return i ? i.appendLeft(e) : this.intro += e, this;
227
- }
228
- appendRight(t, e) {
229
- if (t = t + this.offset, typeof e != "string") throw new TypeError("inserted content must be a string");
230
- this._split(t);
231
- const i = this.byStart[t];
232
- return i ? i.appendRight(e) : this.outro += e, this;
233
- }
234
- clone() {
235
- const t = new m(this.original, { filename: this.filename, offset: this.offset });
236
- let e = this.firstChunk, i = t.firstChunk = t.lastSearchedChunk = e.clone();
237
- for (; e; ) {
238
- t.byStart[i.start] = i, t.byEnd[i.end] = i;
239
- const n = e.next, r = n && n.clone();
240
- r && (i.next = r, r.previous = i, i = r), e = n;
241
- }
242
- return t.lastChunk = i, this.indentExclusionRanges && (t.indentExclusionRanges = this.indentExclusionRanges.slice()), t.sourcemapLocations = new d(this.sourcemapLocations), t.intro = this.intro, t.outro = this.outro, t;
243
- }
244
- generateDecodedMap(t) {
245
- t = t || {};
246
- const e = 0, i = Object.keys(this.storedNames), n = new R(t.hires), r = w(this.original);
247
- return this.intro && n.advance(this.intro), this.firstChunk.eachNext((s) => {
248
- const h = r(s.start);
249
- s.intro.length && n.advance(s.intro), s.edited ? n.addEdit(
250
- e,
251
- s.content,
252
- h,
253
- s.storeName ? i.indexOf(s.original) : -1
254
- ) : n.addUneditedChunk(e, s, this.original, h, this.sourcemapLocations), s.outro.length && n.advance(s.outro);
255
- }), {
256
- file: t.file ? t.file.split(/[/\\]/).pop() : void 0,
257
- sources: [
258
- t.source ? E(t.file || "", t.source) : t.file || ""
259
- ],
260
- sourcesContent: t.includeContent ? [this.original] : void 0,
261
- names: i,
262
- mappings: n.raw,
263
- x_google_ignoreList: this.ignoreList ? [e] : void 0
264
- };
265
- }
266
- generateMap(t) {
267
- return new y(this.generateDecodedMap(t));
268
- }
269
- _ensureindentStr() {
270
- this.indentStr === void 0 && (this.indentStr = v(this.original));
271
- }
272
- _getRawIndentString() {
273
- return this._ensureindentStr(), this.indentStr;
274
- }
275
- getIndentString() {
276
- return this._ensureindentStr(), this.indentStr === null ? " " : this.indentStr;
277
- }
278
- indent(t, e) {
279
- const i = /^[^\r\n]/gm;
280
- if (k(t) && (e = t, t = void 0), t === void 0 && (this._ensureindentStr(), t = this.indentStr || " "), t === "") return this;
281
- e = e || {};
282
- const n = {};
283
- e.exclude && (typeof e.exclude[0] == "number" ? [e.exclude] : e.exclude).forEach((f) => {
284
- for (let p = f[0]; p < f[1]; p += 1)
285
- n[p] = !0;
286
- });
287
- let r = e.indentStart !== !1;
288
- const s = (l) => r ? `${t}${l}` : (r = !0, l);
289
- this.intro = this.intro.replace(i, s);
290
- let h = 0, o = this.firstChunk;
291
- for (; o; ) {
292
- const l = o.end;
293
- if (o.edited)
294
- n[h] || (o.content = o.content.replace(i, s), o.content.length && (r = o.content[o.content.length - 1] === `
295
- `));
296
- else
297
- for (h = o.start; h < l; ) {
298
- if (!n[h]) {
299
- const f = this.original[h];
300
- f === `
301
- ` ? r = !0 : f !== "\r" && r && (r = !1, h === o.start || (this._splitChunk(o, h), o = o.next), o.prependRight(t));
302
- }
303
- h += 1;
304
- }
305
- h = o.end, o = o.next;
306
- }
307
- return this.outro = this.outro.replace(i, s), this;
308
- }
309
- insert() {
310
- throw new Error(
311
- "magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)"
312
- );
313
- }
314
- insertLeft(t, e) {
315
- return a.insertLeft || (console.warn(
316
- "magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"
317
- ), a.insertLeft = !0), this.appendLeft(t, e);
318
- }
319
- insertRight(t, e) {
320
- return a.insertRight || (console.warn(
321
- "magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"
322
- ), a.insertRight = !0), this.prependRight(t, e);
323
- }
324
- move(t, e, i) {
325
- if (t = t + this.offset, e = e + this.offset, i = i + this.offset, i >= t && i <= e) throw new Error("Cannot move a selection inside itself");
326
- this._split(t), this._split(e), this._split(i);
327
- const n = this.byStart[t], r = this.byEnd[e], s = n.previous, h = r.next, o = this.byStart[i];
328
- if (!o && r === this.lastChunk) return this;
329
- const l = o ? o.previous : this.lastChunk;
330
- return s && (s.next = h), h && (h.previous = s), l && (l.next = n), o && (o.previous = r), n.previous || (this.firstChunk = r.next), r.next || (this.lastChunk = n.previous, this.lastChunk.next = null), n.previous = l, r.next = o || null, l || (this.firstChunk = n), o || (this.lastChunk = r), this;
331
- }
332
- overwrite(t, e, i, n) {
333
- return n = n || {}, this.update(t, e, i, { ...n, overwrite: !n.contentOnly });
334
- }
335
- update(t, e, i, n) {
336
- if (t = t + this.offset, e = e + this.offset, typeof i != "string") throw new TypeError("replacement content must be a string");
337
- if (this.original.length !== 0) {
338
- for (; t < 0; ) t += this.original.length;
339
- for (; e < 0; ) e += this.original.length;
340
- }
341
- if (e > this.original.length) throw new Error("end is out of bounds");
342
- if (t === e)
343
- throw new Error(
344
- "Cannot overwrite a zero-length range – use appendLeft or prependRight instead"
345
- );
346
- this._split(t), this._split(e), n === !0 && (a.storeName || (console.warn(
347
- "The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"
348
- ), a.storeName = !0), n = { storeName: !0 });
349
- const r = n !== void 0 ? n.storeName : !1, s = n !== void 0 ? n.overwrite : !1;
350
- if (r) {
351
- const l = this.original.slice(t, e);
352
- Object.defineProperty(this.storedNames, l, {
353
- writable: !0,
354
- value: !0,
355
- enumerable: !0
356
- });
357
- }
358
- const h = this.byStart[t], o = this.byEnd[e];
359
- if (h) {
360
- let l = h;
361
- for (; l !== o; ) {
362
- if (l.next !== this.byStart[l.end])
363
- throw new Error("Cannot overwrite across a split point");
364
- l = l.next, l.edit("", !1);
365
- }
366
- h.edit(i, r, !s);
367
- } else {
368
- const l = new g(t, e, "").edit(i, r);
369
- o.next = l, l.previous = o;
370
- }
371
- return this;
372
- }
373
- prepend(t) {
374
- if (typeof t != "string") throw new TypeError("outro content must be a string");
375
- return this.intro = t + this.intro, this;
376
- }
377
- prependLeft(t, e) {
378
- if (t = t + this.offset, typeof e != "string") throw new TypeError("inserted content must be a string");
379
- this._split(t);
380
- const i = this.byEnd[t];
381
- return i ? i.prependLeft(e) : this.intro = e + this.intro, this;
382
- }
383
- prependRight(t, e) {
384
- if (t = t + this.offset, typeof e != "string") throw new TypeError("inserted content must be a string");
385
- this._split(t);
386
- const i = this.byStart[t];
387
- return i ? i.prependRight(e) : this.outro = e + this.outro, this;
388
- }
389
- remove(t, e) {
390
- if (t = t + this.offset, e = e + this.offset, this.original.length !== 0) {
391
- for (; t < 0; ) t += this.original.length;
392
- for (; e < 0; ) e += this.original.length;
393
- }
394
- if (t === e) return this;
395
- if (t < 0 || e > this.original.length) throw new Error("Character is out of bounds");
396
- if (t > e) throw new Error("end must be greater than start");
397
- this._split(t), this._split(e);
398
- let i = this.byStart[t];
399
- for (; i; )
400
- i.intro = "", i.outro = "", i.edit(""), i = e > i.end ? this.byStart[i.end] : null;
401
- return this;
402
- }
403
- reset(t, e) {
404
- if (t = t + this.offset, e = e + this.offset, this.original.length !== 0) {
405
- for (; t < 0; ) t += this.original.length;
406
- for (; e < 0; ) e += this.original.length;
407
- }
408
- if (t === e) return this;
409
- if (t < 0 || e > this.original.length) throw new Error("Character is out of bounds");
410
- if (t > e) throw new Error("end must be greater than start");
411
- this._split(t), this._split(e);
412
- let i = this.byStart[t];
413
- for (; i; )
414
- i.reset(), i = e > i.end ? this.byStart[i.end] : null;
415
- return this;
416
- }
417
- lastChar() {
418
- if (this.outro.length) return this.outro[this.outro.length - 1];
419
- let t = this.lastChunk;
420
- do {
421
- if (t.outro.length) return t.outro[t.outro.length - 1];
422
- if (t.content.length) return t.content[t.content.length - 1];
423
- if (t.intro.length) return t.intro[t.intro.length - 1];
424
- } while (t = t.previous);
425
- return this.intro.length ? this.intro[this.intro.length - 1] : "";
426
- }
427
- lastLine() {
428
- let t = this.outro.lastIndexOf(c);
429
- if (t !== -1) return this.outro.substr(t + 1);
430
- let e = this.outro, i = this.lastChunk;
431
- do {
432
- if (i.outro.length > 0) {
433
- if (t = i.outro.lastIndexOf(c), t !== -1) return i.outro.substr(t + 1) + e;
434
- e = i.outro + e;
435
- }
436
- if (i.content.length > 0) {
437
- if (t = i.content.lastIndexOf(c), t !== -1) return i.content.substr(t + 1) + e;
438
- e = i.content + e;
439
- }
440
- if (i.intro.length > 0) {
441
- if (t = i.intro.lastIndexOf(c), t !== -1) return i.intro.substr(t + 1) + e;
442
- e = i.intro + e;
443
- }
444
- } while (i = i.previous);
445
- return t = this.intro.lastIndexOf(c), t !== -1 ? this.intro.substr(t + 1) + e : this.intro + e;
446
- }
447
- slice(t = 0, e = this.original.length - this.offset) {
448
- if (t = t + this.offset, e = e + this.offset, this.original.length !== 0) {
449
- for (; t < 0; ) t += this.original.length;
450
- for (; e < 0; ) e += this.original.length;
451
- }
452
- let i = "", n = this.firstChunk;
453
- for (; n && (n.start > t || n.end <= t); ) {
454
- if (n.start < e && n.end >= e)
455
- return i;
456
- n = n.next;
457
- }
458
- if (n && n.edited && n.start !== t)
459
- throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);
460
- const r = n;
461
- for (; n; ) {
462
- n.intro && (r !== n || n.start === t) && (i += n.intro);
463
- const s = n.start < e && n.end >= e;
464
- if (s && n.edited && n.end !== e)
465
- throw new Error(`Cannot use replaced character ${e} as slice end anchor.`);
466
- const h = r === n ? t - n.start : 0, o = s ? n.content.length + e - n.end : n.content.length;
467
- if (i += n.content.slice(h, o), n.outro && (!s || n.end === e) && (i += n.outro), s)
468
- break;
469
- n = n.next;
470
- }
471
- return i;
472
- }
473
- // TODO deprecate this? not really very useful
474
- snip(t, e) {
475
- const i = this.clone();
476
- return i.remove(0, t), i.remove(e, i.original.length), i;
477
- }
478
- _split(t) {
479
- if (this.byStart[t] || this.byEnd[t]) return;
480
- let e = this.lastSearchedChunk;
481
- const i = t > e.end;
482
- for (; e; ) {
483
- if (e.contains(t)) return this._splitChunk(e, t);
484
- e = i ? this.byStart[e.end] : this.byEnd[e.start];
485
- }
486
- }
487
- _splitChunk(t, e) {
488
- if (t.edited && t.content.length) {
489
- const n = w(this.original)(e);
490
- throw new Error(
491
- `Cannot split a chunk that has already been edited (${n.line}:${n.column} – "${t.original}")`
492
- );
493
- }
494
- const i = t.split(e);
495
- return this.byEnd[e] = t, this.byStart[e] = i, this.byEnd[i.end] = i, t === this.lastChunk && (this.lastChunk = i), this.lastSearchedChunk = t, !0;
496
- }
497
- toString() {
498
- let t = this.intro, e = this.firstChunk;
499
- for (; e; )
500
- t += e.toString(), e = e.next;
501
- return t + this.outro;
502
- }
503
- isEmpty() {
504
- let t = this.firstChunk;
505
- do
506
- if (t.intro.length && t.intro.trim() || t.content.length && t.content.trim() || t.outro.length && t.outro.trim())
507
- return !1;
508
- while (t = t.next);
509
- return !0;
510
- }
511
- length() {
512
- let t = this.firstChunk, e = 0;
513
- do
514
- e += t.intro.length + t.content.length + t.outro.length;
515
- while (t = t.next);
516
- return e;
517
- }
518
- trimLines() {
519
- return this.trim("[\\r\\n]");
520
- }
521
- trim(t) {
522
- return this.trimStart(t).trimEnd(t);
523
- }
524
- trimEndAborted(t) {
525
- const e = new RegExp((t || "\\s") + "+$");
526
- if (this.outro = this.outro.replace(e, ""), this.outro.length) return !0;
527
- let i = this.lastChunk;
528
- do {
529
- const n = i.end, r = i.trimEnd(e);
530
- if (i.end !== n && (this.lastChunk === i && (this.lastChunk = i.next), this.byEnd[i.end] = i, this.byStart[i.next.start] = i.next, this.byEnd[i.next.end] = i.next), r) return !0;
531
- i = i.previous;
532
- } while (i);
533
- return !1;
534
- }
535
- trimEnd(t) {
536
- return this.trimEndAborted(t), this;
537
- }
538
- trimStartAborted(t) {
539
- const e = new RegExp("^" + (t || "\\s") + "+");
540
- if (this.intro = this.intro.replace(e, ""), this.intro.length) return !0;
541
- let i = this.firstChunk;
542
- do {
543
- const n = i.end, r = i.trimStart(e);
544
- if (i.end !== n && (i === this.lastChunk && (this.lastChunk = i.next), this.byEnd[i.end] = i, this.byStart[i.next.start] = i.next, this.byEnd[i.next.end] = i.next), r) return !0;
545
- i = i.next;
546
- } while (i);
547
- return !1;
548
- }
549
- trimStart(t) {
550
- return this.trimStartAborted(t), this;
551
- }
552
- hasChanged() {
553
- return this.original !== this.toString();
554
- }
555
- _replaceRegexp(t, e) {
556
- function i(r, s) {
557
- return typeof e == "string" ? e.replace(/\$(\$|&|\d+)/g, (h, o) => o === "$" ? "$" : o === "&" ? r[0] : +o < r.length ? r[+o] : `$${o}`) : e(...r, r.index, s, r.groups);
558
- }
559
- function n(r, s) {
560
- let h;
561
- const o = [];
562
- for (; h = r.exec(s); )
563
- o.push(h);
564
- return o;
565
- }
566
- if (t.global)
567
- n(t, this.original).forEach((s) => {
568
- if (s.index != null) {
569
- const h = i(s, this.original);
570
- h !== s[0] && this.overwrite(s.index, s.index + s[0].length, h);
571
- }
572
- });
573
- else {
574
- const r = this.original.match(t);
575
- if (r && r.index != null) {
576
- const s = i(r, this.original);
577
- s !== r[0] && this.overwrite(r.index, r.index + r[0].length, s);
578
- }
579
- }
580
- return this;
581
- }
582
- _replaceString(t, e) {
583
- const { original: i } = this, n = i.indexOf(t);
584
- return n !== -1 && this.overwrite(n, n + t.length, e), this;
585
- }
586
- replace(t, e) {
587
- return typeof t == "string" ? this._replaceString(t, e) : this._replaceRegexp(t, e);
588
- }
589
- _replaceAllString(t, e) {
590
- const { original: i } = this, n = t.length;
591
- for (let r = i.indexOf(t); r !== -1; r = i.indexOf(t, r + n))
592
- i.slice(r, r + n) !== e && this.overwrite(r, r + n, e);
593
- return this;
594
- }
595
- replaceAll(t, e) {
596
- if (typeof t == "string")
597
- return this._replaceAllString(t, e);
598
- if (!t.global)
599
- throw new TypeError(
600
- "MagicString.prototype.replaceAll called with a non-global RegExp argument"
601
- );
602
- return this._replaceRegexp(t, e);
603
- }
604
- }
605
- export {
606
- y as SourceMap,
607
- m as default
608
- };
@@ -1,85 +0,0 @@
1
- var o, d;
2
- function w() {
3
- if (d) return o;
4
- d = 1;
5
- var n = 1e3, t = n * 60, c = t * 60, a = c * 24, f = a * 7, h = a * 365.25;
6
- o = function(e, r) {
7
- r = r || {};
8
- var s = typeof e;
9
- if (s === "string" && e.length > 0)
10
- return m(e);
11
- if (s === "number" && isFinite(e))
12
- return r.long ? l(e) : y(e);
13
- throw new Error(
14
- "val is not a non-empty string or a valid number. val=" + JSON.stringify(e)
15
- );
16
- };
17
- function m(e) {
18
- if (e = String(e), !(e.length > 100)) {
19
- var r = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
20
- e
21
- );
22
- if (r) {
23
- var s = parseFloat(r[1]), i = (r[2] || "ms").toLowerCase();
24
- switch (i) {
25
- case "years":
26
- case "year":
27
- case "yrs":
28
- case "yr":
29
- case "y":
30
- return s * h;
31
- case "weeks":
32
- case "week":
33
- case "w":
34
- return s * f;
35
- case "days":
36
- case "day":
37
- case "d":
38
- return s * a;
39
- case "hours":
40
- case "hour":
41
- case "hrs":
42
- case "hr":
43
- case "h":
44
- return s * c;
45
- case "minutes":
46
- case "minute":
47
- case "mins":
48
- case "min":
49
- case "m":
50
- return s * t;
51
- case "seconds":
52
- case "second":
53
- case "secs":
54
- case "sec":
55
- case "s":
56
- return s * n;
57
- case "milliseconds":
58
- case "millisecond":
59
- case "msecs":
60
- case "msec":
61
- case "ms":
62
- return s;
63
- default:
64
- return;
65
- }
66
- }
67
- }
68
- }
69
- function y(e) {
70
- var r = Math.abs(e);
71
- return r >= a ? Math.round(e / a) + "d" : r >= c ? Math.round(e / c) + "h" : r >= t ? Math.round(e / t) + "m" : r >= n ? Math.round(e / n) + "s" : e + "ms";
72
- }
73
- function l(e) {
74
- var r = Math.abs(e);
75
- return r >= a ? u(e, r, a, "day") : r >= c ? u(e, r, c, "hour") : r >= t ? u(e, r, t, "minute") : r >= n ? u(e, r, n, "second") : e + " ms";
76
- }
77
- function u(e, r, s, i) {
78
- var v = r >= s * 1.5;
79
- return Math.round(e / s) + " " + i + (v ? "s" : "");
80
- }
81
- return o;
82
- }
83
- export {
84
- w as __require
85
- };