bkui-vue 0.0.1-beta.3 → 0.0.1-beta.32

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 (453) hide show
  1. package/README.md +31 -19
  2. package/README_EN.md +93 -0
  3. package/dist/bkui-vue.cjs.js +18095 -2770
  4. package/dist/bkui-vue.esm.js +18052 -2776
  5. package/dist/bkui-vue.umd.js +18097 -2772
  6. package/dist/style.css +4114 -259
  7. package/lib/alert/alert.d.ts +24 -15
  8. package/lib/alert/alert.variable.css +32 -0
  9. package/lib/alert/index.d.ts +180 -0
  10. package/lib/alert/index.js +1 -1
  11. package/lib/animate-number/animate-number.d.ts +12 -7
  12. package/lib/animate-number/index.d.ts +97 -0
  13. package/lib/animate-number/index.js +1 -1
  14. package/lib/backtop/backtop.d.ts +27 -13
  15. package/lib/backtop/backtop.variable.css +32 -0
  16. package/lib/backtop/index.d.ts +166 -0
  17. package/lib/backtop/index.js +10 -1
  18. package/lib/badge/badge.d.ts +40 -19
  19. package/lib/badge/badge.variable.css +32 -0
  20. package/lib/badge/index.d.ts +217 -0
  21. package/lib/badge/index.js +1 -1
  22. package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
  23. package/lib/breadcrumb/breadcrumb.css +10 -1
  24. package/lib/breadcrumb/breadcrumb.d.ts +37 -9
  25. package/lib/breadcrumb/breadcrumb.less +13 -2
  26. package/lib/breadcrumb/breadcrumb.variable.css +42 -1
  27. package/lib/breadcrumb/index.d.ts +194 -0
  28. package/lib/breadcrumb/index.js +1 -1
  29. package/lib/button/button-group.d.ts +3 -5
  30. package/lib/button/button.css +9 -0
  31. package/lib/button/button.d.ts +57 -28
  32. package/lib/button/button.less +23 -15
  33. package/lib/button/button.variable.css +41 -0
  34. package/lib/button/index.d.ts +226 -0
  35. package/lib/button/index.js +1 -1
  36. package/lib/card/card.d.ts +30 -15
  37. package/lib/card/card.variable.css +32 -0
  38. package/lib/card/index.d.ts +187 -0
  39. package/lib/card/index.js +1 -1
  40. package/lib/checkbox/checkbox-group.d.ts +13 -9
  41. package/lib/checkbox/checkbox.d.ts +31 -22
  42. package/lib/checkbox/checkbox.variable.css +32 -0
  43. package/lib/checkbox/common.d.ts +1 -1
  44. package/lib/checkbox/index.d.ts +261 -0
  45. package/lib/checkbox/index.js +1 -1
  46. package/lib/checkbox/type.d.ts +7 -6
  47. package/lib/code-diff/code-diff.css +186 -0
  48. package/lib/code-diff/code-diff.d.ts +80 -0
  49. package/lib/code-diff/code-diff.less +238 -0
  50. package/lib/code-diff/code-diff.variable.css +279 -0
  51. package/lib/code-diff/index.d.ts +154 -0
  52. package/lib/code-diff/index.js +1 -0
  53. package/lib/collapse/collapse.css +8 -0
  54. package/lib/collapse/collapse.d.ts +50 -18
  55. package/lib/collapse/collapse.less +10 -0
  56. package/lib/collapse/collapse.variable.css +8 -0
  57. package/lib/collapse/index.d.ts +166 -0
  58. package/lib/collapse/index.js +1 -1
  59. package/lib/components.d.ts +39 -0
  60. package/lib/date-picker/date-picker.css +407 -0
  61. package/lib/date-picker/date-picker.d.ts +294 -0
  62. package/lib/date-picker/date-picker.less +526 -0
  63. package/lib/date-picker/date-picker.variable.css +500 -0
  64. package/lib/date-picker/fecha.d.ts +6 -0
  65. package/lib/date-picker/index.d.ts +713 -0
  66. package/lib/date-picker/index.js +1 -0
  67. package/lib/date-picker/interface.d.ts +22 -0
  68. package/lib/date-picker/props.d.ts +111 -0
  69. package/lib/date-picker/utils.d.ts +97 -0
  70. package/lib/dialog/dialog.d.ts +57 -27
  71. package/lib/dialog/index.d.ts +286 -0
  72. package/lib/dialog/index.js +1 -1
  73. package/lib/directives/clickoutside.d.ts +3 -0
  74. package/lib/directives/index.d.ts +3 -0
  75. package/lib/directives/index.js +14 -14
  76. package/lib/directives/tooltips.d.ts +17 -0
  77. package/lib/divider/divider.css +38 -0
  78. package/lib/divider/divider.d.ts +48 -0
  79. package/lib/divider/divider.less +53 -0
  80. package/lib/divider/divider.variable.css +131 -0
  81. package/lib/divider/index.d.ts +142 -0
  82. package/lib/divider/index.js +1 -0
  83. package/lib/divider/props.d.ts +21 -0
  84. package/lib/dropdown/dropdown-item.d.ts +19 -0
  85. package/lib/dropdown/dropdown-menu.d.ts +16 -0
  86. package/lib/dropdown/dropdown.css +43 -0
  87. package/lib/dropdown/dropdown.d.ts +61 -0
  88. package/lib/dropdown/dropdown.less +54 -0
  89. package/lib/dropdown/dropdown.variable.css +136 -0
  90. package/lib/dropdown/index.d.ts +192 -0
  91. package/lib/dropdown/index.js +1 -0
  92. package/lib/exception/exception.d.ts +11 -9
  93. package/lib/exception/exception.variable.css +32 -0
  94. package/lib/exception/index.d.ts +96 -0
  95. package/lib/exception/index.js +1 -1
  96. package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
  97. package/lib/fixed-navbar/fixed-navbar.variable.css +32 -0
  98. package/lib/fixed-navbar/index.d.ts +112 -0
  99. package/lib/fixed-navbar/index.js +1 -1
  100. package/lib/form/common.d.ts +3 -0
  101. package/lib/form/form-item.d.ts +145 -0
  102. package/lib/form/form.css +48 -0
  103. package/lib/form/form.d.ts +64 -0
  104. package/lib/form/form.less +63 -0
  105. package/lib/form/form.variable.css +48 -0
  106. package/lib/form/index.d.ts +246 -0
  107. package/lib/form/index.js +1 -0
  108. package/lib/form/type.d.ts +21 -0
  109. package/lib/form/validator.d.ts +8 -0
  110. package/lib/icon/angle-double-down-line.d.ts +4 -0
  111. package/lib/icon/angle-double-down-line.js +15 -0
  112. package/lib/icon/angle-double-left-line.d.ts +4 -0
  113. package/lib/icon/angle-double-left-line.js +15 -0
  114. package/lib/icon/angle-double-left.d.ts +4 -0
  115. package/lib/icon/angle-double-left.js +15 -0
  116. package/lib/icon/angle-double-right-line.d.ts +4 -0
  117. package/lib/icon/angle-double-right-line.js +15 -0
  118. package/lib/icon/angle-double-right.d.ts +4 -0
  119. package/lib/icon/angle-double-right.js +15 -0
  120. package/lib/icon/angle-double-up-line.d.ts +4 -0
  121. package/lib/icon/angle-double-up-line.js +15 -0
  122. package/lib/icon/angle-down-fill.d.ts +4 -0
  123. package/lib/icon/angle-down-fill.js +15 -0
  124. package/lib/icon/angle-down-line.d.ts +4 -0
  125. package/lib/icon/angle-down-line.js +15 -0
  126. package/lib/icon/angle-down.d.ts +4 -0
  127. package/lib/icon/angle-down.js +15 -0
  128. package/lib/icon/angle-left.d.ts +4 -0
  129. package/lib/icon/angle-left.js +15 -0
  130. package/lib/icon/angle-right.d.ts +4 -0
  131. package/lib/icon/angle-right.js +15 -0
  132. package/lib/icon/angle-up-fill.d.ts +4 -0
  133. package/lib/icon/angle-up-fill.js +15 -0
  134. package/lib/icon/angle-up.d.ts +4 -0
  135. package/lib/icon/angle-up.js +15 -0
  136. package/lib/icon/arrows-left.d.ts +4 -0
  137. package/lib/icon/arrows-left.js +15 -0
  138. package/lib/icon/arrows-right.d.ts +4 -0
  139. package/lib/icon/arrows-right.js +15 -0
  140. package/lib/icon/bk.d.ts +4 -0
  141. package/lib/icon/bk.js +15 -0
  142. package/lib/icon/circle.d.ts +4 -0
  143. package/lib/icon/circle.js +15 -0
  144. package/lib/icon/close.d.ts +4 -0
  145. package/lib/icon/close.js +15 -0
  146. package/lib/icon/code.d.ts +4 -0
  147. package/lib/icon/code.js +15 -0
  148. package/lib/icon/cog-shape.d.ts +4 -0
  149. package/lib/icon/cog-shape.js +15 -0
  150. package/lib/icon/collapse-left.d.ts +4 -0
  151. package/lib/icon/collapse-left.js +15 -0
  152. package/lib/icon/copy.d.ts +4 -0
  153. package/lib/icon/copy.js +15 -0
  154. package/lib/icon/done.d.ts +4 -0
  155. package/lib/icon/done.js +15 -0
  156. package/lib/icon/down-shape.d.ts +4 -0
  157. package/lib/icon/down-shape.js +15 -0
  158. package/lib/icon/down-small.d.ts +4 -0
  159. package/lib/icon/down-small.js +15 -0
  160. package/lib/icon/ellipsis.d.ts +4 -0
  161. package/lib/icon/ellipsis.js +15 -0
  162. package/lib/icon/error.d.ts +4 -0
  163. package/lib/icon/error.js +15 -0
  164. package/lib/icon/eye.d.ts +4 -0
  165. package/lib/icon/eye.js +15 -0
  166. package/lib/icon/folder-open.d.ts +4 -0
  167. package/lib/icon/folder-open.js +15 -0
  168. package/lib/icon/folder-shape-open.d.ts +4 -0
  169. package/lib/icon/folder-shape-open.js +15 -0
  170. package/lib/icon/folder-shape.d.ts +4 -0
  171. package/lib/icon/folder-shape.js +15 -0
  172. package/lib/icon/folder.d.ts +4 -0
  173. package/lib/icon/folder.js +15 -0
  174. package/lib/icon/help-document-fill.d.ts +4 -0
  175. package/lib/icon/help-document-fill.js +15 -0
  176. package/lib/icon/help-fill.d.ts +4 -0
  177. package/lib/icon/help-fill.js +15 -0
  178. package/lib/icon/help.d.ts +4 -0
  179. package/lib/icon/help.js +15 -0
  180. package/lib/icon/icon.d.ts +12 -0
  181. package/lib/icon/icon.js +15 -0
  182. package/lib/icon/index.d.ts +53 -0
  183. package/lib/icon/index.js +1 -1
  184. package/lib/icon/info-line.d.ts +4 -0
  185. package/lib/icon/info-line.js +15 -0
  186. package/lib/icon/info.d.ts +4 -0
  187. package/lib/icon/info.js +15 -0
  188. package/lib/icon/left-shape.d.ts +4 -0
  189. package/lib/icon/left-shape.js +15 -0
  190. package/lib/icon/play-shape.d.ts +4 -0
  191. package/lib/icon/play-shape.js +15 -0
  192. package/lib/icon/plus.d.ts +4 -0
  193. package/lib/icon/plus.js +15 -0
  194. package/lib/icon/qq.d.ts +4 -0
  195. package/lib/icon/qq.js +15 -0
  196. package/lib/icon/right-shape.d.ts +4 -0
  197. package/lib/icon/right-shape.js +15 -0
  198. package/lib/icon/search.d.ts +4 -0
  199. package/lib/icon/search.js +15 -0
  200. package/lib/icon/share.d.ts +4 -0
  201. package/lib/icon/share.js +15 -0
  202. package/lib/icon/spinner.d.ts +4 -0
  203. package/lib/icon/spinner.js +15 -0
  204. package/lib/icon/success.d.ts +4 -0
  205. package/lib/icon/success.js +15 -0
  206. package/lib/icon/switcher-loading.d.ts +4 -0
  207. package/lib/icon/switcher-loading.js +15 -0
  208. package/lib/icon/text-file.d.ts +4 -0
  209. package/lib/icon/text-file.js +15 -0
  210. package/lib/icon/tree-application-shape.d.ts +4 -0
  211. package/lib/icon/tree-application-shape.js +15 -0
  212. package/lib/icon/unvisible.d.ts +4 -0
  213. package/lib/icon/unvisible.js +15 -0
  214. package/lib/icon/up-shape.d.ts +4 -0
  215. package/lib/icon/up-shape.js +15 -0
  216. package/lib/icon/warn.d.ts +4 -0
  217. package/lib/icon/warn.js +15 -0
  218. package/lib/icon/weixin.d.ts +4 -0
  219. package/lib/icon/weixin.js +15 -0
  220. package/lib/index.d.ts +4 -0
  221. package/lib/input/index.d.ts +417 -0
  222. package/lib/input/index.js +2 -2
  223. package/lib/input/input.css +20 -2
  224. package/lib/input/input.d.ts +97 -45
  225. package/lib/input/input.less +28 -5
  226. package/lib/input/input.variable.css +52 -2
  227. package/lib/link/index.d.ts +164 -0
  228. package/lib/link/index.js +1 -1
  229. package/lib/link/link.d.ts +25 -13
  230. package/lib/link/link.variable.css +32 -0
  231. package/lib/loading/index.d.ts +164 -0
  232. package/lib/loading/index.js +1 -1
  233. package/lib/loading/loading.css +108 -73
  234. package/lib/loading/loading.d.ts +61 -20
  235. package/lib/loading/loading.less +73 -58
  236. package/lib/loading/loading.variable.css +140 -73
  237. package/lib/menu/index.d.ts +188 -0
  238. package/lib/menu/index.js +1 -0
  239. package/lib/menu/menu-group.d.ts +14 -0
  240. package/lib/menu/menu-item.d.ts +16 -0
  241. package/lib/menu/menu.css +182 -0
  242. package/lib/menu/menu.d.ts +64 -0
  243. package/lib/menu/menu.less +180 -0
  244. package/lib/menu/menu.variable.css +275 -0
  245. package/lib/menu/submenu.css +3 -0
  246. package/lib/menu/submenu.d.ts +22 -0
  247. package/lib/menu/submenu.less +5 -0
  248. package/lib/menu/submenu.variable.css +96 -0
  249. package/lib/menu/utils.d.ts +41 -0
  250. package/lib/message/index.d.ts +2 -0
  251. package/lib/message/index.js +1 -0
  252. package/lib/message/message.css +53 -0
  253. package/lib/message/message.less +61 -0
  254. package/lib/message/message.variable.css +146 -0
  255. package/lib/message/messageConstructor.d.ts +73 -0
  256. package/lib/modal/index.d.ts +214 -0
  257. package/lib/modal/index.js +1 -1
  258. package/lib/modal/modal.d.ts +33 -15
  259. package/lib/modal/props.mixin.d.ts +5 -1
  260. package/lib/navigation/index.d.ts +2 -0
  261. package/lib/navigation/index.js +1 -0
  262. package/lib/navigation/navigation-title.d.ts +25 -0
  263. package/lib/navigation/navigation.css +184 -0
  264. package/lib/navigation/navigation.d.ts +111 -0
  265. package/lib/navigation/navigation.less +210 -0
  266. package/lib/navigation/navigation.variable.css +277 -0
  267. package/lib/notify/index.d.ts +2 -0
  268. package/lib/notify/index.js +1 -0
  269. package/lib/notify/notify.css +49 -0
  270. package/lib/notify/notify.less +58 -0
  271. package/lib/notify/notify.variable.css +142 -0
  272. package/lib/notify/notifyConstructor.d.ts +91 -0
  273. package/lib/pagination/index.d.ts +395 -0
  274. package/lib/pagination/index.js +1 -0
  275. package/lib/pagination/pagination.css +179 -0
  276. package/lib/pagination/pagination.d.ts +220 -0
  277. package/lib/pagination/pagination.less +201 -0
  278. package/lib/pagination/pagination.variable.css +272 -0
  279. package/lib/pagination/type.d.ts +6 -0
  280. package/lib/pagination/use-limit.d.ts +8 -0
  281. package/lib/pagination/use-list.d.ts +8 -0
  282. package/lib/pagination/use-small-list.d.ts +5 -0
  283. package/lib/pagination/use-total.d.ts +5 -0
  284. package/lib/popover/index.d.ts +287 -0
  285. package/lib/popover/index.js +1 -1
  286. package/lib/popover/popover.css +23 -14
  287. package/lib/popover/popover.d.ts +75 -46
  288. package/lib/popover/popover.less +57 -46
  289. package/lib/popover/popover.variable.css +55 -14
  290. package/lib/popover/props.d.ts +77 -0
  291. package/lib/preset.d.ts +7 -0
  292. package/lib/process/index.d.ts +205 -0
  293. package/lib/process/index.js +15 -0
  294. package/lib/process/process.css +138 -0
  295. package/lib/process/process.d.ts +131 -0
  296. package/lib/process/process.less +178 -0
  297. package/lib/process/process.variable.css +231 -0
  298. package/lib/progress/index.d.ts +398 -0
  299. package/lib/progress/index.js +1 -1
  300. package/lib/progress/progress.css +0 -3
  301. package/lib/progress/progress.d.ts +88 -35
  302. package/lib/progress/progress.less +0 -4
  303. package/lib/progress/progress.variable.css +32 -3
  304. package/lib/radio/common.d.ts +1 -1
  305. package/lib/radio/index.d.ts +277 -0
  306. package/lib/radio/index.js +1 -1
  307. package/lib/radio/radio-button.d.ts +24 -16
  308. package/lib/radio/radio-group.d.ts +11 -10
  309. package/lib/radio/radio.css +8 -2
  310. package/lib/radio/radio.d.ts +23 -13
  311. package/lib/radio/radio.less +9 -2
  312. package/lib/radio/radio.variable.css +40 -2
  313. package/lib/radio/type.d.ts +1 -1
  314. package/lib/rate/index.d.ts +113 -0
  315. package/lib/rate/index.js +1 -1
  316. package/lib/rate/rate.d.ts +13 -10
  317. package/lib/rate/star.d.ts +33 -16
  318. package/lib/resize-layout/index.d.ts +336 -0
  319. package/lib/resize-layout/index.js +1 -0
  320. package/lib/resize-layout/resize-layout.css +189 -0
  321. package/lib/resize-layout/resize-layout.d.ts +127 -0
  322. package/lib/resize-layout/resize-layout.less +233 -0
  323. package/lib/resize-layout/resize-layout.variable.css +282 -0
  324. package/lib/select/common.d.ts +23 -17
  325. package/lib/select/index.d.ts +1347 -0
  326. package/lib/select/index.js +15 -1
  327. package/lib/select/option.d.ts +12 -19
  328. package/lib/select/optionGroup.d.ts +54 -0
  329. package/lib/select/select.css +243 -17
  330. package/lib/select/select.d.ts +268 -155
  331. package/lib/select/select.less +245 -46
  332. package/lib/select/select.variable.css +275 -17
  333. package/lib/select/type.d.ts +31 -0
  334. package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
  335. package/lib/shared/index.d.ts +51 -0
  336. package/lib/shared/index.js +1 -1
  337. package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +32 -3
  338. package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +8 -1
  339. package/lib/shared/{bk-popover.d.ts → popover.d.ts} +57 -6
  340. package/lib/shared/utils.d.ts +6 -0
  341. package/lib/shared/vue-types.d.ts +8 -7
  342. package/lib/shared/z-index-manager.d.ts +6 -1
  343. package/lib/sideslider/index.d.ts +206 -0
  344. package/lib/sideslider/index.js +1 -1
  345. package/lib/sideslider/sideslider.d.ts +39 -18
  346. package/lib/sideslider/sideslider.variable.css +32 -0
  347. package/{changelog.config.js → lib/slider/index.d.ts} +2 -8
  348. package/lib/slider/index.js +15 -0
  349. package/lib/slider/slider-button.d.ts +80 -0
  350. package/lib/slider/slider.css +149 -0
  351. package/lib/slider/slider.d.ts +201 -0
  352. package/lib/slider/slider.less +179 -0
  353. package/lib/slider/slider.variable.css +242 -0
  354. package/lib/steps/index.d.ts +250 -0
  355. package/lib/steps/index.js +15 -0
  356. package/lib/steps/steps.css +288 -0
  357. package/lib/steps/steps.d.ts +161 -0
  358. package/lib/steps/steps.less +324 -0
  359. package/lib/steps/steps.variable.css +381 -0
  360. package/lib/styles/index.d.ts +47 -0
  361. package/lib/styles/index.js +1 -1
  362. package/lib/styles/mixins/popper.css +43 -0
  363. package/lib/styles/mixins/popper.less +52 -0
  364. package/lib/styles/mixins/popper.variable.css +43 -0
  365. package/lib/styles/mixins/size.less +9 -0
  366. package/lib/styles/reset.css +273 -0
  367. package/lib/styles/reset.less +313 -0
  368. package/lib/styles/reset.variable.css +273 -0
  369. package/lib/styles/themes/themes.less +52 -2
  370. package/lib/swiper/index.d.ts +181 -0
  371. package/lib/swiper/index.js +1 -0
  372. package/lib/swiper/swiper.css +91 -0
  373. package/lib/swiper/swiper.d.ts +65 -0
  374. package/lib/swiper/swiper.less +107 -0
  375. package/lib/swiper/swiper.variable.css +91 -0
  376. package/lib/switcher/index.d.ts +286 -0
  377. package/lib/switcher/index.js +1 -1
  378. package/lib/switcher/switcher.css +149 -135
  379. package/lib/switcher/switcher.d.ts +48 -32
  380. package/lib/switcher/switcher.less +210 -154
  381. package/lib/switcher/switcher.variable.css +181 -135
  382. package/lib/tab/index.d.ts +443 -0
  383. package/lib/tab/index.js +1 -0
  384. package/lib/tab/props.d.ts +191 -0
  385. package/lib/tab/tab-nav.d.ts +165 -0
  386. package/lib/tab/tab-panel.d.ts +73 -0
  387. package/lib/tab/tab.css +148 -0
  388. package/lib/tab/tab.d.ts +140 -0
  389. package/lib/tab/tab.less +222 -0
  390. package/lib/tab/tab.variable.css +241 -0
  391. package/lib/table/const.d.ts +4 -0
  392. package/lib/table/index.d.ts +278 -0
  393. package/lib/table/index.js +10 -1
  394. package/lib/table/props.d.ts +117 -0
  395. package/lib/table/render.d.ts +82 -0
  396. package/lib/table/table.css +90 -0
  397. package/lib/table/table.d.ts +83 -37
  398. package/lib/table/table.less +116 -1
  399. package/lib/table/table.variable.css +122 -0
  400. package/lib/table/utils.d.ts +69 -0
  401. package/lib/tag/index.d.ts +229 -0
  402. package/lib/tag/index.js +1 -1
  403. package/lib/tag/tag.css +97 -0
  404. package/lib/tag/tag.d.ts +83 -53
  405. package/lib/tag/tag.less +110 -2
  406. package/lib/tag/tag.variable.css +129 -0
  407. package/lib/tag-input/common.d.ts +24 -0
  408. package/lib/tag-input/index.d.ts +2 -0
  409. package/lib/tag-input/index.js +1 -0
  410. package/lib/tag-input/list-tag-render.d.ts +47 -0
  411. package/lib/tag-input/tag-input.css +208 -0
  412. package/lib/tag-input/tag-input.d.ts +374 -0
  413. package/lib/tag-input/tag-input.less +250 -0
  414. package/lib/tag-input/tag-input.variable.css +301 -0
  415. package/lib/tag-input/tag-props.d.ts +131 -0
  416. package/lib/tag-input/tag-render.d.ts +38 -0
  417. package/lib/timeline/index.d.ts +129 -0
  418. package/lib/timeline/index.js +1 -0
  419. package/lib/timeline/timeline.css +235 -0
  420. package/lib/timeline/timeline.d.ts +81 -0
  421. package/lib/timeline/timeline.less +239 -0
  422. package/lib/timeline/timeline.variable.css +328 -0
  423. package/lib/transfer/index.d.ts +351 -0
  424. package/lib/transfer/index.js +1 -0
  425. package/lib/transfer/transfer.css +158 -0
  426. package/lib/transfer/transfer.d.ts +185 -0
  427. package/lib/transfer/transfer.less +171 -0
  428. package/lib/transfer/transfer.variable.css +251 -0
  429. package/lib/tree/index.d.ts +279 -0
  430. package/lib/tree/index.js +1 -0
  431. package/lib/tree/props.d.ts +89 -0
  432. package/lib/tree/tree.css +50 -0
  433. package/lib/tree/tree.d.ts +121 -0
  434. package/lib/tree/tree.less +63 -0
  435. package/lib/tree/tree.variable.css +143 -0
  436. package/lib/tree/util.d.ts +70 -0
  437. package/lib/use-form.d.ts +3 -0
  438. package/lib/use-message.d.ts +2 -0
  439. package/lib/virtual-render/index.d.ts +556 -0
  440. package/lib/virtual-render/index.js +10 -0
  441. package/lib/virtual-render/props.d.ts +157 -0
  442. package/lib/virtual-render/v-virtual-render.d.ts +7 -0
  443. package/lib/virtual-render/virtual-render.css +40 -0
  444. package/lib/virtual-render/virtual-render.d.ts +244 -0
  445. package/lib/virtual-render/virtual-render.less +51 -0
  446. package/lib/virtual-render/virtual-render.variable.css +40 -0
  447. package/package.json +71 -54
  448. package/lib/checkbox-group/index.js +0 -1
  449. package/lib/radio-button/index.js +0 -1
  450. package/lib/radio-group/index.js +0 -1
  451. package/lib/table/common.d.ts +0 -3
  452. package/lib/table/table-layout.d.ts +0 -14
  453. package/lib/table/type.d.ts +0 -12
@@ -0,0 +1 @@
1
+ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("../shared"),require("vue"),require("vue-types")):"function"==typeof define&&define.amd?define(["exports","../shared","vue","vue-types"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Shared,e.Vue,e["vue-types"])}(this,(function(e,n,t,i){"use strict";function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var o={exports:{}},a={exports:{}};!function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports}(a);var s={exports:{}};!function(e){e.exports=function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,r,o=[],a=!0,s=!1;try{for(t=t.call(e);!(a=(i=t.next()).done)&&(o.push(i.value),!n||o.length!==n);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==t.return||t.return()}finally{if(s)throw r}}return o}},e.exports.__esModule=!0,e.exports.default=e.exports}(s);var l={exports:{}},u={exports:{}};!function(e){e.exports=function(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i},e.exports.__esModule=!0,e.exports.default=e.exports}(u),function(e){var n=u.exports;e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(l);var c={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(c),function(e){var n=a.exports,t=s.exports,i=l.exports,r=c.exports;e.exports=function(e,o){return n(e)||t(e,o)||i(e,o)||r()},e.exports.__esModule=!0,e.exports.default=e.exports}(o);var f=r(o.exports);function d(){}function p(e,n,t,i,r){for(var o=0,a=n.length,s=0,l=0;o<a;o++){var u=n[o];if(u.removed){if(u.value=e.join(i.slice(l,l+u.count)),l+=u.count,o&&n[o-1].added){var c=n[o-1];n[o-1]=n[o],n[o]=c}}else{if(!u.added&&r){var f=t.slice(s,s+u.count);f=f.map((function(e,n){var t=i[l+n];return t.length>e.length?t:e})),u.value=e.join(f)}else u.value=e.join(t.slice(s,s+u.count));s+=u.count,u.added||(l+=u.count)}}var d=n[a-1];return a>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(n[a-2].value+=d.value,n.pop()),n}function h(e){return{newPos:e.newPos,components:e.components.slice(0)}}d.prototype={diff:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.callback;"function"==typeof t&&(i=t,t={}),this.options=t;var r=this;function o(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),n=this.castInput(n),e=this.removeEmpty(this.tokenize(e));var a=(n=this.removeEmpty(this.tokenize(n))).length,s=e.length,l=1,u=a+s,c=[{newPos:-1,components:[]}],f=this.extractCommon(c[0],n,e,0);if(c[0].newPos+1>=a&&f+1>=s)return o([{value:this.join(n),count:n.length}]);function d(){for(var t=-1*l;t<=l;t+=2){var i=void 0,u=c[t-1],f=c[t+1],d=(f?f.newPos:0)-t;u&&(c[t-1]=void 0);var b=u&&u.newPos+1<a,g=f&&0<=d&&d<s;if(b||g){if(!b||g&&u.newPos<f.newPos?(i=h(f),r.pushComponent(i.components,void 0,!0)):((i=u).newPos++,r.pushComponent(i.components,!0,void 0)),d=r.extractCommon(i,n,e,t),i.newPos+1>=a&&d+1>=s)return o(p(r,i.components,n,e,r.useLongestToken));c[t]=i}else c[t]=void 0}l++}if(i)!function e(){setTimeout((function(){if(l>u)return i();d()||e()}),0)}();else for(;l<=u;){var b=d();if(b)return b}},pushComponent:function(e,n,t){var i=e[e.length-1];i&&i.added===n&&i.removed===t?e[e.length-1]={count:i.count+1,added:n,removed:t}:e.push({count:1,added:n,removed:t})},extractCommon:function(e,n,t,i){for(var r=n.length,o=t.length,a=e.newPos,s=a-i,l=0;a+1<r&&s+1<o&&this.equals(n[a+1],t[s+1]);)a++,s++,l++;return l&&e.components.push({count:l}),e.newPos=a,s},equals:function(e,n){return this.options.comparator?this.options.comparator(e,n):e===n||this.options.ignoreCase&&e.toLowerCase()===n.toLowerCase()},removeEmpty:function(e){for(var n=[],t=0;t<e.length;t++)e[t]&&n.push(e[t]);return n},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var b=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,g=/\S/,v=new d;v.equals=function(e,n){return this.options.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n||this.options.ignoreWhitespace&&!g.test(e)&&!g.test(n)},v.tokenize=function(e){for(var n=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<n.length-1;t++)!n[t+1]&&n[t+2]&&b.test(n[t])&&b.test(n[t+2])&&(n[t]+=n[t+2],n.splice(t+1,2),t--);return n};var m=new d;function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function w(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return x(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return x(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}m.tokenize=function(e){var n=[],t=e.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var i=0;i<t.length;i++){var r=t[i];i%2&&!this.options.newlineIsToken?n[n.length-1]+=r:(this.options.ignoreWhitespace&&(r=r.trim()),n.push(r))}return n},(new d).tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)},(new d).tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var N=Object.prototype.toString,C=new d;function T(e,n,t,i,r){var o,a;for(n=n||[],t=t||[],i&&(e=i(r,e)),o=0;o<n.length;o+=1)if(n[o]===e)return t[o];if("[object Array]"===N.call(e)){for(n.push(e),a=new Array(e.length),t.push(a),o=0;o<e.length;o+=1)a[o]=T(e[o],n,t,i,r);return n.pop(),t.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),"object"===y(e)&&null!==e){n.push(e),a={},t.push(a);var s,l=[];for(s in e)e.hasOwnProperty(s)&&l.push(s);for(l.sort(),o=0;o<l.length;o+=1)a[s=l[o]]=T(e[s],n,t,i,s);n.pop(),t.pop()}else a=e;return a}C.useLongestToken=!0,C.tokenize=m.tokenize,C.castInput=function(e){var n=this.options,t=n.undefinedReplacement,i=n.stringifyReplacer,r=void 0===i?function(e,n){return void 0===n?t:n}:i;return"string"==typeof e?e:JSON.stringify(T(e,null,null,r),r," ")},C.equals=function(e,n){return d.prototype.equals.call(C,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};var S,E=new d;function L(e,n,t,i,r,o,a){a||(a={}),void 0===a.context&&(a.context=4);var s=function(e,n,t){return m.diff(e,n,t)}(t,i,a);function l(e){return e.map((function(e){return" "+e}))}s.push({value:"",lines:[]});for(var u=[],c=0,f=0,d=[],p=1,h=1,b=function(e){var n=s[e],r=n.lines||n.value.replace(/\n$/,"").split("\n");if(n.lines=r,n.added||n.removed){var o;if(!c){var b=s[e-1];c=p,f=h,b&&(d=a.context>0?l(b.lines.slice(-a.context)):[],c-=d.length,f-=d.length)}(o=d).push.apply(o,w(r.map((function(e){return(n.added?"+":"-")+e})))),n.added?h+=r.length:p+=r.length}else{if(c)if(r.length<=2*a.context&&e<s.length-2){var g;(g=d).push.apply(g,w(l(r)))}else{var v,m=Math.min(r.length,a.context);(v=d).push.apply(v,w(l(r.slice(0,m))));var y={oldStart:c,oldLines:p-c+m,newStart:f,newLines:h-f+m,lines:d};if(e>=s.length-2&&r.length<=a.context){var x=/\n$/.test(t),N=/\n$/.test(i),C=0==r.length&&d.length>y.oldLines;!x&&C&&t.length>0&&d.splice(y.oldLines,0,"\"),(x||C)&&N||d.push("\")}u.push(y),c=0,f=0,d=[]}p+=r.length,h+=r.length}},g=0;g<s.length;g++)b(g);return{oldFileName:e,newFileName:n,oldHeader:r,newHeader:o,hunks:u}}function k(e,n,t,i,r,o){return function(e,n,t,i,r,o,a){return function(e){var n=[];e.oldFileName==e.newFileName&&n.push("Index: "+e.oldFileName),n.push("==================================================================="),n.push("--- "+e.oldFileName+(void 0===e.oldHeader?"":"\t"+e.oldHeader)),n.push("+++ "+e.newFileName+(void 0===e.newHeader?"":"\t"+e.newHeader));for(var t=0;t<e.hunks.length;t++){var i=e.hunks[t];0===i.oldLines&&(i.oldStart-=1),0===i.newLines&&(i.newStart-=1),n.push("@@ -"+i.oldStart+","+i.oldLines+" +"+i.newStart+","+i.newLines+" @@"),n.push.apply(n,i.lines)}return n.join("\n")+"\n"}(L(e,n,t,i,r,o,a))}(e,e,n,t,i,r,o)}E.tokenize=function(e){return e.slice()},E.join=E.removeEmpty=function(e){return e},function(e){e.INSERT="insert",e.DELETE="delete",e.CONTEXT="context"}(S||(S={}));var H=RegExp("["+["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"].join("\\")+"]","g");function I(e){return e?e.replace(/\\/g,"/"):e}var j=function(e,n,t){if(t||2===arguments.length)for(var i,r=0,o=n.length;r<o;r++)!i&&r in n||(i||(i=Array.prototype.slice.call(n,0,r)),i[r]=n[r]);return e.concat(i||Array.prototype.slice.call(n))};function O(e,n){var t=e.split(".");return t.length>1?t[t.length-1]:n}function A(e,n){return n.reduce((function(n,t){return n||e.startsWith(t)}),!1)}var M=["a/","b/","i/","w/","c/","o/"];function P(e,n,t){var i=void 0!==t?j(j([],M,!0),[t],!1):M,r=((n?new RegExp("^"+(n.replace(H,"\\$&")+' "?(.+?)"?$')):new RegExp('^"?(.+?)"?$')).exec(e)||[])[1],o=void 0===r?"":r,a=i.find((function(e){return 0===o.indexOf(e)}));return(a?o.slice(a.length):o).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function z(e,n){void 0===n&&(n={});var t=[],i=null,r=null,o=null,a=null,s=null,l=null,u=null,c="--- ",f="+++ ",d="@@",p=/^old mode (\d{6})/,h=/^new mode (\d{6})/,b=/^deleted file mode (\d{6})/,g=/^new file mode (\d{6})/,v=/^copy from "?(.+)"?/,m=/^copy to "?(.+)"?/,y=/^rename from "?(.+)"?/,w=/^rename to "?(.+)"?/,x=/^similarity index (\d+)%/,N=/^dissimilarity index (\d+)%/,C=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,T=/^Binary files (.*) and (.*) differ/,E=/^GIT binary patch/,L=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,k=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,H=/^new file mode (\d{6})/,I=/^deleted file mode (\d{6}),(\d{6})/,j=e.replace(/\/g,"").replace(/\r\n?/g,"\n").split("\n");function M(){null!==r&&null!==i&&(i.blocks.push(r),r=null)}function z(){null!==i&&(i.oldName||null===l||(i.oldName=l),i.newName||null===u||(i.newName=u),i.newName&&(t.push(i),i=null)),l=null,u=null}function F(){M(),z(),i={blocks:[],deletedLines:0,addedLines:0}}function D(e){var n;M(),null!==i&&((n=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(e))?(i.isCombined=!1,o=parseInt(n[1],10),s=parseInt(n[2],10)):(n=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(e))?(i.isCombined=!0,o=parseInt(n[1],10),a=parseInt(n[2],10),s=parseInt(n[3],10)):(e.startsWith(d)&&console.error("Failed to parse lines, starting in 0!"),o=0,s=0,i.isCombined=!1)),r={lines:[],oldStartLine:o,oldStartLine2:a,newStartLine:s,header:e}}return j.forEach((function(e,a){if(e&&!e.startsWith("*")){var M,z=j[a-1],W=j[a+1],_=j[a+2];if(e.startsWith("diff")){F();if((M=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(e))&&(l=P(M[1],void 0,n.dstPrefix),u=P(M[2],void 0,n.srcPrefix)),null===i)throw new Error("Where is my file !!!");i.isGitDiff=!0}else if((!i||!i.isGitDiff&&i&&e.startsWith(c)&&W.startsWith(f)&&_.startsWith(d))&&F(),!(null==i?void 0:i.isTooBig)){if(i&&("number"==typeof n.diffMaxChanges&&i.addedLines+i.deletedLines>n.diffMaxChanges||"number"==typeof n.diffMaxLineLength&&e.length>n.diffMaxLineLength))return i.isTooBig=!0,i.addedLines=0,i.deletedLines=0,i.blocks=[],r=null,void D("function"==typeof n.diffTooBigMessage?n.diffTooBigMessage(t.length):"Diff too big to be displayed");if(e.startsWith(c)&&W.startsWith(f)||e.startsWith(f)&&z.startsWith(c)){if(i&&!i.oldName&&e.startsWith("--- ")&&(M=function(e,n){return P(e,"---",n)}(e,n.srcPrefix)))return i.oldName=M,void(i.language=O(i.oldName,i.language));if(i&&!i.newName&&e.startsWith("+++ ")&&(M=function(e,n){return P(e,"+++",n)}(e,n.dstPrefix)))return i.newName=M,void(i.language=O(i.newName,i.language))}if(i&&(e.startsWith(d)||i.isGitDiff&&i.oldName&&i.newName&&!r))D(e);else if(r&&(e.startsWith("+")||e.startsWith("-")||e.startsWith(" ")))!function(e){if(null!==i&&null!==r&&null!==o&&null!==s){var n={content:e},t=i.isCombined?["+ "," +","++"]:["+"],a=i.isCombined?["- "," -","--"]:["-"];A(e,t)?(i.addedLines++,n.type=S.INSERT,n.oldNumber=void 0,n.newNumber=s++):A(e,a)?(i.deletedLines++,n.type=S.DELETE,n.oldNumber=o++,n.newNumber=void 0):(n.type=S.CONTEXT,n.oldNumber=o++,n.newNumber=s++),r.lines.push(n)}}(e);else{var R=!function(e,n){for(var t=n;t<j.length-3;){if(e.startsWith("diff"))return!1;if(j[t].startsWith(c)&&j[t+1].startsWith(f)&&j[t+2].startsWith(d))return!0;t++}return!1}(e,a);if(null===i)throw new Error("Where is my file !!!");(M=p.exec(e))?i.oldMode=M[1]:(M=h.exec(e))?i.newMode=M[1]:(M=b.exec(e))?(i.deletedFileMode=M[1],i.isDeleted=!0):(M=g.exec(e))?(i.newFileMode=M[1],i.isNew=!0):(M=v.exec(e))?(R&&(i.oldName=M[1]),i.isCopy=!0):(M=m.exec(e))?(R&&(i.newName=M[1]),i.isCopy=!0):(M=y.exec(e))?(R&&(i.oldName=M[1]),i.isRename=!0):(M=w.exec(e))?(R&&(i.newName=M[1]),i.isRename=!0):(M=T.exec(e))?(i.isBinary=!0,i.oldName=P(M[1],void 0,n.srcPrefix),i.newName=P(M[2],void 0,n.dstPrefix),D("Binary file")):E.test(e)?(i.isBinary=!0,D(e)):(M=x.exec(e))?i.unchangedPercentage=parseInt(M[1],10):(M=N.exec(e))?i.changedPercentage=parseInt(M[1],10):(M=C.exec(e))?(i.checksumBefore=M[1],i.checksumAfter=M[2],M[3]&&(i.mode=M[3])):(M=L.exec(e))?(i.checksumBefore=[M[2],M[3]],i.checksumAfter=M[1]):(M=k.exec(e))?(i.oldMode=[M[2],M[3]],i.newMode=M[1]):(M=H.exec(e))?(i.newFileMode=M[1],i.isNew=!0):(M=I.exec(e))&&(i.deletedFileMode=M[1],i.isDeleted=!0)}}}})),M(),z(),t}function F(){}function D(e,n,t,i,r){for(var o=0,a=n.length,s=0,l=0;o<a;o++){var u=n[o];if(u.removed){if(u.value=e.join(i.slice(l,l+u.count)),l+=u.count,o&&n[o-1].added){var c=n[o-1];n[o-1]=n[o],n[o]=c}}else{if(!u.added&&r){var f=t.slice(s,s+u.count);f=f.map((function(e,n){var t=i[l+n];return t.length>e.length?t:e})),u.value=e.join(f)}else u.value=e.join(t.slice(s,s+u.count));s+=u.count,u.added||(l+=u.count)}}var d=n[a-1];return a>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(n[a-2].value+=d.value,n.pop()),n}function W(e){return{newPos:e.newPos,components:e.components.slice(0)}}F.prototype={diff:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.callback;"function"==typeof t&&(i=t,t={}),this.options=t;var r=this;function o(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),n=this.castInput(n),e=this.removeEmpty(this.tokenize(e));var a=(n=this.removeEmpty(this.tokenize(n))).length,s=e.length,l=1,u=a+s,c=[{newPos:-1,components:[]}],f=this.extractCommon(c[0],n,e,0);if(c[0].newPos+1>=a&&f+1>=s)return o([{value:this.join(n),count:n.length}]);function d(){for(var t=-1*l;t<=l;t+=2){var i=void 0,u=c[t-1],f=c[t+1],d=(f?f.newPos:0)-t;u&&(c[t-1]=void 0);var p=u&&u.newPos+1<a,h=f&&0<=d&&d<s;if(p||h){if(!p||h&&u.newPos<f.newPos?(i=W(f),r.pushComponent(i.components,void 0,!0)):((i=u).newPos++,r.pushComponent(i.components,!0,void 0)),d=r.extractCommon(i,n,e,t),i.newPos+1>=a&&d+1>=s)return o(D(r,i.components,n,e,r.useLongestToken));c[t]=i}else c[t]=void 0}l++}if(i)!function e(){setTimeout((function(){if(l>u)return i();d()||e()}),0)}();else for(;l<=u;){var p=d();if(p)return p}},pushComponent:function(e,n,t){var i=e[e.length-1];i&&i.added===n&&i.removed===t?e[e.length-1]={count:i.count+1,added:n,removed:t}:e.push({count:1,added:n,removed:t})},extractCommon:function(e,n,t,i){for(var r=n.length,o=t.length,a=e.newPos,s=a-i,l=0;a+1<r&&s+1<o&&this.equals(n[a+1],t[s+1]);)a++,s++,l++;return l&&e.components.push({count:l}),e.newPos=a,s},equals:function(e,n){return this.options.comparator?this.options.comparator(e,n):e===n||this.options.ignoreCase&&e.toLowerCase()===n.toLowerCase()},removeEmpty:function(e){for(var n=[],t=0;t<e.length;t++)e[t]&&n.push(e[t]);return n},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var _=new F;var R=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,B=/\S/,U=new F;U.equals=function(e,n){return this.options.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n||this.options.ignoreWhitespace&&!B.test(e)&&!B.test(n)},U.tokenize=function(e){for(var n=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<n.length-1;t++)!n[t+1]&&n[t+2]&&R.test(n[t])&&R.test(n[t+2])&&(n[t]+=n[t+2],n.splice(t+1,2),t--);return n};var $=new F;function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}$.tokenize=function(e){var n=[],t=e.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var i=0;i<t.length;i++){var r=t[i];i%2&&!this.options.newlineIsToken?n[n.length-1]+=r:(this.options.ignoreWhitespace&&(r=r.trim()),n.push(r))}return n},(new F).tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)},(new F).tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var q=Object.prototype.toString,G=new F;function X(e,n,t,i,r){var o,a;for(n=n||[],t=t||[],i&&(e=i(r,e)),o=0;o<n.length;o+=1)if(n[o]===e)return t[o];if("[object Array]"===q.call(e)){for(n.push(e),a=new Array(e.length),t.push(a),o=0;o<e.length;o+=1)a[o]=X(e[o],n,t,i,r);return n.pop(),t.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),"object"===V(e)&&null!==e){n.push(e),a={},t.push(a);var s,l=[];for(s in e)e.hasOwnProperty(s)&&l.push(s);for(l.sort(),o=0;o<l.length;o+=1)a[s=l[o]]=X(e[s],n,t,i,s);n.pop(),t.pop()}else a=e;return a}G.useLongestToken=!0,G.tokenize=$.tokenize,G.castInput=function(e){var n=this.options,t=n.undefinedReplacement,i=n.stringifyReplacer,r=void 0===i?function(e,n){return void 0===n?t:n}:i;return"string"==typeof e?e:JSON.stringify(X(e,null,null,r),r," ")},G.equals=function(e,n){return F.prototype.equals.call(G,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};var J=new F;function K(e){return function(n,t){var i=e(n).trim(),r=e(t).trim();return function(e,n){if(0===e.length)return n.length;if(0===n.length)return e.length;var t,i,r=[];for(t=0;t<=n.length;t++)r[t]=[t];for(i=0;i<=e.length;i++)r[0][i]=i;for(t=1;t<=n.length;t++)for(i=1;i<=e.length;i++)n.charAt(t-1)===e.charAt(i-1)?r[t][i]=r[t-1][i-1]:r[t][i]=Math.min(r[t-1][i-1]+1,Math.min(r[t][i-1]+1,r[t-1][i]+1));return r[n.length][e.length]}(i,r)/(i.length+r.length)}}function Z(e){return function n(t,i,r,o){void 0===r&&(r=0),void 0===o&&(o=new Map);var a=function(n,t,i){void 0===i&&(i=new Map);for(var r,o=1/0,a=0;a<n.length;++a)for(var s=0;s<t.length;++s){var l=JSON.stringify([n[a],t[s]]),u=void 0;i.has(l)&&(u=i.get(l))||(u=e(n[a],t[s]),i.set(l,u)),u<o&&(r={indexA:a,indexB:s,score:o=u})}return r}(t,i,o);if(!a||t.length+i.length<3)return[[t,i]];var s=t.slice(0,a.indexA),l=i.slice(0,a.indexB),u=[t[a.indexA]],c=[i[a.indexB]],f=a.indexA+1,d=a.indexB+1,p=t.slice(f),h=i.slice(d),b=n(s,l,r+1,o),g=n(u,c,r+1,o),v=n(p,h,r+1,o),m=g;return(a.indexA>0||a.indexB>0)&&(m=b.concat(m)),(t.length>f||i.length>d)&&(m=m.concat(v)),m}}J.tokenize=function(e){return e.slice()},J.join=J.removeEmpty=function(e){return e};var Q=function(){return Q=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},Q.apply(this,arguments)},Y={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},ee={matching:"none",matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:"word"},ne="/",te=K((function(e){return e.value})),ie=Z(te);function re(e){return-1!==e.indexOf("dev/null")}function oe(e){return e.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function ae(e){switch(e){case S.CONTEXT:return Y.CONTEXT;case S.INSERT:return Y.INSERTS;case S.DELETE:return Y.DELETES}}function se(e){return e.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function le(e,n,t){void 0===t&&(t=!0);var i=function(e){return e?2:1}(n);return{prefix:e.substring(0,i),content:t?se(e.substring(i)):e.substring(i)}}function ue(e){var n=I(e.oldName),t=I(e.newName);if(n===t||re(n)||re(t))return re(t)?n:t;for(var i=[],r=[],o=n.split(ne),a=t.split(ne),s=0,l=o.length-1,u=a.length-1;s<l&&s<u&&o[s]===a[s];)i.push(a[s]),s+=1;for(;l>s&&u>s&&o[l]===a[u];)r.unshift(a[u]),l-=1,u-=1;var c=i.join(ne),f=r.join(ne),d=o.slice(s,l+1).join(ne),p=a.slice(s,u+1).join(ne);return c.length&&f.length?c+ne+"{"+d+" → "+p+"}"+ne+f:c.length?c+ne+"{"+d+" → "+p+"}":f.length?"{"+d+" → "+p+"}"+ne+f:n+" → "+t}function ce(e){return"d2h-"+function(e){var n,t,i=0;for(n=0,t=e.length;n<t;n++)i=(i<<5)-i+e.charCodeAt(n),i|=0;return i}(ue(e)).toString().slice(-6)}function fe(e){var n="file-changed";return e.isRename||e.isCopy?n="file-renamed":e.isNew?n="file-added":e.isDeleted?n="file-deleted":e.newName!==e.oldName&&(n="file-renamed"),n}function de(e,n,t,i){void 0===i&&(i={});var r=Q(Q({},ee),i),o=r.matching,a=r.maxLineLengthHighlight,s=r.matchWordsThreshold,l=r.diffStyle,u=le(e,t,!1),c=le(n,t,!1);if(u.content.length>a||c.content.length>a)return{oldLine:{prefix:u.prefix,content:se(u.content)},newLine:{prefix:c.prefix,content:se(c.content)}};var f,d,p,h="char"===l?(f=u.content,d=c.content,_.diff(f,d,p)):function(e,n,t){return U.diff(e,n,t)}(u.content,c.content),b=[];if("word"===l&&"words"===o){var g=h.filter((function(e){return e.removed})),v=h.filter((function(e){return e.added}));ie(v,g).forEach((function(e){1===e[0].length&&1===e[1].length&&(te(e[0][0],e[1][0])<s&&(b.push(e[0][0]),b.push(e[1][0])))}))}var m,y=h.reduce((function(e,n){var t=n.added?"ins":n.removed?"del":null,i=b.indexOf(n)>-1?' class="d2h-change"':"",r=se(n.value);return null!==t?e+"<"+t+i+">"+r+"</"+t+">":""+e+r}),"");return{oldLine:{prefix:u.prefix,content:(m=y,m.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,""))},newLine:{prefix:c.prefix,content:oe(y)}}}var pe="file-summary";var he=function(){return he=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},he.apply(this,arguments)},be=he(he({},ee),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),ge="generic",ve="line-by-line",me=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=he(he({},be),n)}return e.prototype.render=function(e){var n=this,t=e.map((function(e){var t;return t=e.blocks.length?n.generateFileHtml(e):n.generateEmptyDiff(),n.makeFileDiffHtml(e,t)})).join("\n");return this.hoganUtils.render(ge,"wrapper",{content:t})},e.prototype.makeFileDiffHtml=function(e,n){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var t=this.hoganUtils.template(ve,"file-diff"),i=this.hoganUtils.template(ge,"file-path"),r=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",fe(e));return t.render({file:e,fileHtmlId:ce(e),diffs:n,filePath:i.render({fileDiffName:ue(e)},{fileIcon:r,fileTag:o})})},e.prototype.generateEmptyDiff=function(){return this.hoganUtils.render(ge,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:Y})},e.prototype.generateFileHtml=function(e){var n=this,t=Z(K((function(n){return le(n.content,e.isCombined).content})));return e.blocks.map((function(i){var r=n.hoganUtils.render(ge,"block-header",{CSSLineClass:Y,blockHeader:e.isTooBig?i.header:se(i.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return n.applyLineGroupping(i).forEach((function(i){var o=i[0],a=i[1],s=i[2];if(a.length&&s.length&&!o.length)n.applyRematchMatching(a,s,t).map((function(t){var i=t[0],o=t[1],a=n.processChangedLines(e.isCombined,i,o),s=a.left,l=a.right;r+=s,r+=l}));else if(o.length)o.forEach((function(t){var i=le(t.content,e.isCombined),o=i.prefix,a=i.content;r+=n.generateSingleLineHtml({type:Y.CONTEXT,prefix:o,content:a,oldNumber:t.oldNumber,newNumber:t.newNumber})}));else if(a.length||s.length){var l=n.processChangedLines(e.isCombined,a,s),u=l.left,c=l.right;r+=u,r+=c}else console.error("Unknown state reached while processing groups of lines",o,a,s)})),r})).join("\n")},e.prototype.applyLineGroupping=function(e){for(var n=[],t=[],i=[],r=0;r<e.lines.length;r++){var o=e.lines[r];(o.type!==S.INSERT&&i.length||o.type===S.CONTEXT&&t.length>0)&&(n.push([[],t,i]),t=[],i=[]),o.type===S.CONTEXT?n.push([[o],[],[]]):o.type===S.INSERT&&0===t.length?n.push([[],[],[o]]):o.type===S.INSERT&&t.length>0?i.push(o):o.type===S.DELETE&&t.push(o)}return(t.length||i.length)&&(n.push([[],t,i]),t=[],i=[]),n},e.prototype.applyRematchMatching=function(e,n,t){var i=e.length*n.length,r=Math.max.apply(null,[0].concat(e.concat(n).map((function(e){return e.content.length}))));return i<this.config.matchingMaxComparisons&&r<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?t(e,n):[[e,n]]},e.prototype.processChangedLines=function(e,n,t){for(var i={right:"",left:""},r=Math.max(n.length,t.length),o=0;o<r;o++){var a=n[o],s=t[o],l=void 0!==a&&void 0!==s?de(a.content,s.content,e,this.config):void 0,u=void 0!==a&&void 0!==a.oldNumber?he(he({},void 0!==l?{prefix:l.oldLine.prefix,content:l.oldLine.content,type:Y.DELETE_CHANGES}:he(he({},le(a.content,e)),{type:ae(a.type)})),{oldNumber:a.oldNumber,newNumber:a.newNumber}):void 0,c=void 0!==s&&void 0!==s.newNumber?he(he({},void 0!==l?{prefix:l.newLine.prefix,content:l.newLine.content,type:Y.INSERT_CHANGES}:he(he({},le(s.content,e)),{type:ae(s.type)})),{oldNumber:s.oldNumber,newNumber:s.newNumber}):void 0,f=this.generateLineHtml(u,c),d=f.left,p=f.right;i.left+=d,i.right+=p}return i},e.prototype.generateLineHtml=function(e,n){return{left:this.generateSingleLineHtml(e),right:this.generateSingleLineHtml(n)}},e.prototype.generateSingleLineHtml=function(e){if(void 0===e)return"";var n=this.hoganUtils.render(ve,"numbers",{oldNumber:e.oldNumber||"",newNumber:e.newNumber||""});return this.hoganUtils.render(ge,"line",{type:e.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:" "===e.prefix?"&nbsp;":e.prefix,content:e.content,lineNumber:n})},e}(),ye=function(){return ye=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},ye.apply(this,arguments)},we=ye(ye({},ee),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),xe="generic",Ne=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=ye(ye({},we),n)}return e.prototype.render=function(e){var n=this,t=e.map((function(e){var t;return t=e.blocks.length?n.generateFileHtml(e):n.generateEmptyDiff(),n.makeFileDiffHtml(e,t)})).join("\n");return this.hoganUtils.render(xe,"wrapper",{content:t})},e.prototype.makeFileDiffHtml=function(e,n){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var t=this.hoganUtils.template("side-by-side","file-diff"),i=this.hoganUtils.template(xe,"file-path"),r=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",fe(e));return t.render({file:e,fileHtmlId:ce(e),diffs:n,filePath:i.render({fileDiffName:ue(e)},{fileIcon:r,fileTag:o})})},e.prototype.generateEmptyDiff=function(){return{right:"",left:this.hoganUtils.render(xe,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:Y})}},e.prototype.generateFileHtml=function(e){var n=this,t=Z(K((function(n){return le(n.content,e.isCombined).content})));return e.blocks.map((function(i){var r={left:n.makeHeaderHtml(i.header,e),right:n.makeHeaderHtml("")};return n.applyLineGroupping(i).forEach((function(i){var o=i[0],a=i[1],s=i[2];if(a.length&&s.length&&!o.length)n.applyRematchMatching(a,s,t).map((function(t){var i=t[0],o=t[1],a=n.processChangedLines(e.isCombined,i,o),s=a.left,l=a.right;r.left+=s,r.right+=l}));else if(o.length)o.forEach((function(t){var i=le(t.content,e.isCombined),o=i.prefix,a=i.content,s=n.generateLineHtml({type:Y.CONTEXT,prefix:o,content:a,number:t.oldNumber},{type:Y.CONTEXT,prefix:o,content:a,number:t.newNumber}),l=s.left,u=s.right;r.left+=l,r.right+=u}));else if(a.length||s.length){var l=n.processChangedLines(e.isCombined,a,s),u=l.left,c=l.right;r.left+=u,r.right+=c}else console.error("Unknown state reached while processing groups of lines",o,a,s)})),r})).reduce((function(e,n){return{left:e.left+n.left,right:e.right+n.right}}),{left:"",right:""})},e.prototype.applyLineGroupping=function(e){for(var n=[],t=[],i=[],r=0;r<e.lines.length;r++){var o=e.lines[r];(o.type!==S.INSERT&&i.length||o.type===S.CONTEXT&&t.length>0)&&(n.push([[],t,i]),t=[],i=[]),o.type===S.CONTEXT?n.push([[o],[],[]]):o.type===S.INSERT&&0===t.length?n.push([[],[],[o]]):o.type===S.INSERT&&t.length>0?i.push(o):o.type===S.DELETE&&t.push(o)}return(t.length||i.length)&&(n.push([[],t,i]),t=[],i=[]),n},e.prototype.applyRematchMatching=function(e,n,t){var i=e.length*n.length,r=Math.max.apply(null,[0].concat(e.concat(n).map((function(e){return e.content.length}))));return i<this.config.matchingMaxComparisons&&r<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?t(e,n):[[e,n]]},e.prototype.makeHeaderHtml=function(e,n){return this.hoganUtils.render(xe,"block-header",{CSSLineClass:Y,blockHeader:(null==n?void 0:n.isTooBig)?e:se(e),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})},e.prototype.processChangedLines=function(e,n,t){for(var i={right:"",left:""},r=Math.max(n.length,t.length),o=0;o<r;o++){var a=n[o],s=t[o],l=void 0!==a&&void 0!==s?de(a.content,s.content,e,this.config):void 0,u=void 0!==a&&void 0!==a.oldNumber?ye(ye({},void 0!==l?{prefix:l.oldLine.prefix,content:l.oldLine.content,type:Y.DELETE_CHANGES}:ye(ye({},le(a.content,e)),{type:ae(a.type)})),{number:a.oldNumber}):void 0,c=void 0!==s&&void 0!==s.newNumber?ye(ye({},void 0!==l?{prefix:l.newLine.prefix,content:l.newLine.content,type:Y.INSERT_CHANGES}:ye(ye({},le(s.content,e)),{type:ae(s.type)})),{number:s.newNumber}):void 0,f=this.generateLineHtml(u,c),d=f.left,p=f.right;i.left+=d,i.right+=p}return i},e.prototype.generateLineHtml=function(e,n){return{left:this.generateSingleHtml(e),right:this.generateSingleHtml(n)}},e.prototype.generateSingleHtml=function(e){var n="d2h-code-side-linenumber",t="d2h-code-side-line";return this.hoganUtils.render(xe,"line",{type:(null==e?void 0:e.type)||Y.CONTEXT+" d2h-emptyplaceholder",lineClass:void 0!==e?n:n+" d2h-code-side-emptyplaceholder",contentClass:void 0!==e?t:t+" d2h-code-side-emptyplaceholder",prefix:" "===(null==e?void 0:e.prefix)?"&nbsp;":null==e?void 0:e.prefix,content:null==e?void 0:e.content,lineNumber:null==e?void 0:e.number})},e}(),Ce={};!function(e){!function(e){var n=/\S/,t=/\"/g,i=/\n/g,r=/\r/g,o=/\\/g,a=/\u2028/,s=/\u2029/;function l(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function u(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function c(e,n,t){if(n.charAt(t)!=e.charAt(0))return!1;for(var i=1,r=e.length;i<r;i++)if(n.charAt(t+i)!=e.charAt(i))return!1;return!0}e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(t,i){var r=t.length,o=0,a=null,s=null,f="",d=[],p=!1,h=0,b=0,g="{{",v="}}";function m(){f.length>0&&(d.push({tag:"_t",text:new String(f)}),f="")}function y(t,i){if(m(),t&&function(){for(var t=!0,i=b;i<d.length;i++)if(!(t=e.tags[d[i].tag]<e.tags._v||"_t"==d[i].tag&&null===d[i].text.match(n)))return!1;return t}())for(var r,o=b;o<d.length;o++)d[o].text&&((r=d[o+1])&&">"==r.tag&&(r.indent=d[o].text.toString()),d.splice(o,1));else i||d.push({tag:"\n"});p=!1,b=d.length}function w(e,n){var t="="+v,i=e.indexOf(t,n),r=u(e.substring(e.indexOf("=",n)+1,i)).split(" ");return g=r[0],v=r[r.length-1],i+t.length-1}for(i&&(i=i.split(" "),g=i[0],v=i[1]),h=0;h<r;h++)0==o?c(g,t,h)?(--h,m(),o=1):"\n"==t.charAt(h)?y(p):f+=t.charAt(h):1==o?(h+=g.length-1,"="==(a=(s=e.tags[t.charAt(h+1)])?t.charAt(h+1):"_v")?(h=w(t,h),o=0):(s&&h++,o=2),p=h):c(v,t,h)?(d.push({tag:a,n:u(f),otag:g,ctag:v,i:"/"==a?p-g.length:h+v.length}),f="",h+=v.length-1,o=0,"{"==a&&("}}"==v?h++:l(d[d.length-1]))):f+=t.charAt(h);return y(p,!0),d};var f={_t:!0,"\n":!0,$:!0,"/":!0};function d(n,t,i,r){var o,a=[],s=null,l=null;for(o=i[i.length-1];n.length>0;){if(l=n.shift(),o&&"<"==o.tag&&!(l.tag in f))throw new Error("Illegal content in < super tag.");if(e.tags[l.tag]<=e.tags.$||p(l,r))i.push(l),l.nodes=d(n,l.tag,i,r);else{if("/"==l.tag){if(0===i.length)throw new Error("Closing tag without opener: /"+l.n);if(s=i.pop(),l.n!=s.n&&!h(l.n,s.n,r))throw new Error("Nesting error: "+s.n+" vs. "+l.n);return s.end=l.i,a}"\n"==l.tag&&(l.last=0==n.length||"\n"==n[0].tag)}a.push(l)}if(i.length>0)throw new Error("missing closing tag: "+i.pop().n);return a}function p(e,n){for(var t=0,i=n.length;t<i;t++)if(n[t].o==e.n)return e.tag="#",!0}function h(e,n,t){for(var i=0,r=t.length;i<r;i++)if(t[i].c==e&&t[i].o==n)return!0}function b(e){var n=[];for(var t in e.partials)n.push('"'+v(t)+'":{name:"'+v(e.partials[t].name)+'", '+b(e.partials[t])+"}");return"partials: {"+n.join(",")+"}, subs: "+function(e){var n=[];for(var t in e)n.push('"'+v(t)+'": function(c,p,t,i) {'+e[t]+"}");return"{ "+n.join(",")+" }"}(e.subs)}e.stringify=function(n,t,i){return"{code: function (c,p,i) { "+e.wrapMain(n.code)+" },"+b(n)+"}"};var g=0;function v(e){return e.replace(o,"\\\\").replace(t,'\\"').replace(i,"\\n").replace(r,"\\r").replace(a,"\\u2028").replace(s,"\\u2029")}function m(e){return~e.indexOf(".")?"d":"f"}function y(e,n){var t="<"+(n.prefix||"")+e.n+g++;return n.partials[t]={name:e.n,partials:{}},n.code+='t.b(t.rp("'+v(t)+'",c,p,"'+(e.indent||"")+'"));',t}function w(e,n){n.code+="t.b(t.t(t."+m(e.n)+'("'+v(e.n)+'",c,p,0)));'}function x(e){return"t.b("+e+");"}e.generate=function(n,t,i){g=0;var r={code:"",subs:{},partials:{}};return e.walk(n,r),i.asString?this.stringify(r,t,i):this.makeTemplate(r,t,i)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,n,t){var i=this.makePartials(e);return i.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(i,n,this,t)},e.makePartials=function(e){var n,t={subs:{},partials:e.partials,name:e.name};for(n in t.partials)t.partials[n]=this.makePartials(t.partials[n]);for(n in e.subs)t.subs[n]=new Function("c","p","t","i",e.subs[n]);return t},e.codegen={"#":function(n,t){t.code+="if(t.s(t."+m(n.n)+'("'+v(n.n)+'",c,p,1),c,p,0,'+n.i+","+n.end+',"'+n.otag+" "+n.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(n.nodes,t),t.code+="});c.pop();}"},"^":function(n,t){t.code+="if(!t.s(t."+m(n.n)+'("'+v(n.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(n.nodes,t),t.code+="};"},">":y,"<":function(n,t){var i={partials:{},code:"",subs:{},inPartial:!0};e.walk(n.nodes,i);var r=t.partials[y(n,t)];r.subs=i.subs,r.partials=i.partials},$:function(n,t){var i={subs:{},code:"",partials:t.partials,prefix:n.n};e.walk(n.nodes,i),t.subs[n.n]=i.code,t.inPartial||(t.code+='t.sub("'+v(n.n)+'",c,p,i);')},"\n":function(e,n){n.code+=x('"\\n"'+(e.last?"":" + i"))},_v:function(e,n){n.code+="t.b(t.v(t."+m(e.n)+'("'+v(e.n)+'",c,p,0)));'},_t:function(e,n){n.code+=x('"'+v(e.text)+'"')},"{":w,"&":w},e.walk=function(n,t){for(var i,r=0,o=n.length;r<o;r++)(i=e.codegen[n[r].tag])&&i(n[r],t);return t},e.parse=function(e,n,t){return d(e,0,[],(t=t||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,n){return[e,!!n.asString,!!n.disableLambda,n.delimiters,!!n.modelGet].join("||")},e.compile=function(n,t){t=t||{};var i=e.cacheKey(n,t),r=this.cache[i];if(r){var o=r.partials;for(var a in o)delete o[a].instance;return r}return r=this.generate(this.parse(this.scan(n,t.delimiters),n,t),n,t),this.cache[i]=r}}(e)}(Ce);var Te={};!function(e){!function(e){function n(e,n,t){var i;return n&&"object"==typeof n&&(void 0!==n[e]?i=n[e]:t&&n.get&&"function"==typeof n.get&&(i=n.get(e))),i}e.Template=function(e,n,t,i){e=e||{},this.r=e.code||this.r,this.c=t,this.options=i||{},this.text=n||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,n,t){return""},v:function(e){return e=l(e),s.test(e)?e.replace(t,"&amp;").replace(i,"&lt;").replace(r,"&gt;").replace(o,"&#39;").replace(a,"&quot;"):e},t:l,render:function(e,n,t){return this.ri([e],n||{},t)},ri:function(e,n,t){return this.r(e,n,t)},ep:function(e,n){var t=this.partials[e],i=n[t.name];if(t.instance&&t.base==i)return t.instance;if("string"==typeof i){if(!this.c)throw new Error("No compiler available.");i=this.c.compile(i,this.options)}if(!i)return null;if(this.partials[e].base=i,t.subs){for(key in n.stackText||(n.stackText={}),t.subs)n.stackText[key]||(n.stackText[key]=void 0!==this.activeSub&&n.stackText[this.activeSub]?n.stackText[this.activeSub]:this.text);i=function(e,n,t,i,r,o){function a(){}function s(){}var l;a.prototype=e,s.prototype=e.subs;var u=new a;for(l in u.subs=new s,u.subsText={},u.buf="",i=i||{},u.stackSubs=i,u.subsText=o,n)i[l]||(i[l]=n[l]);for(l in i)u.subs[l]=i[l];for(l in r=r||{},u.stackPartials=r,t)r[l]||(r[l]=t[l]);for(l in r)u.partials[l]=r[l];return u}(i,t.subs,t.partials,this.stackSubs,this.stackPartials,n.stackText)}return this.partials[e].instance=i,i},rp:function(e,n,t,i){var r=this.ep(e,t);return r?r.ri(n,t,i):""},rs:function(e,n,t){var i=e[e.length-1];if(u(i))for(var r=0;r<i.length;r++)e.push(i[r]),t(e,n,this),e.pop();else t(e,n,this)},s:function(e,n,t,i,r,o,a){var s;return(!u(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,n,t,i,r,o,a)),s=!!e,!i&&s&&n&&n.push("object"==typeof e?e:n[n.length-1]),s)},d:function(e,t,i,r){var o,a=e.split("."),s=this.f(a[0],t,i,r),l=this.options.modelGet,c=null;if("."===e&&u(t[t.length-2]))s=t[t.length-1];else for(var f=1;f<a.length;f++)void 0!==(o=n(a[f],s,l))?(c=s,s=o):s="";return!(r&&!s)&&(r||"function"!=typeof s||(t.push(c),s=this.mv(s,t,i),t.pop()),s)},f:function(e,t,i,r){for(var o=!1,a=!1,s=this.options.modelGet,l=t.length-1;l>=0;l--)if(void 0!==(o=n(e,t[l],s))){a=!0;break}return a?(r||"function"!=typeof o||(o=this.mv(o,t,i)),o):!r&&""},ls:function(e,n,t,i,r){var o=this.options.delimiters;return this.options.delimiters=r,this.b(this.ct(l(e.call(n,i)),n,t)),this.options.delimiters=o,!1},ct:function(e,n,t){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(n,t)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,n,t,i,r,o,a){var s,l=n[n.length-1],u=e.call(l);return"function"==typeof u?!!i||(s=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(u,l,t,s.substring(r,o),a)):u},mv:function(e,n,t){var i=n[n.length-1],r=e.call(i);return"function"==typeof r?this.ct(l(r.call(i)),i,t):r},sub:function(e,n,t,i){var r=this.subs[e];r&&(this.activeSub=e,r(n,t,this,i),this.activeSub=!1)}};var t=/&/g,i=/</g,r=/>/g,o=/\'/g,a=/\"/g,s=/[&<>\"\']/;function l(e){return String(null==e?"":e)}var u=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(e)}(Te);var Se=Ce;Se.Template=Te.Template,Se.template=Se.Template;var Ee=Se,Le={};Le["file-summary-line"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<li class="d2h-file-list-line">'),i.b("\n"+t),i.b(' <span class="d2h-file-name-wrapper">'),i.b("\n"+t),i.b(i.rp("<fileIcon0",e,n," ")),i.b(' <a href="#'),i.b(i.v(i.f("fileHtmlId",e,n,0))),i.b('" class="d2h-file-name">'),i.b(i.v(i.f("fileName",e,n,0))),i.b("</a>"),i.b("\n"+t),i.b(' <span class="d2h-file-stats">'),i.b("\n"+t),i.b(' <span class="d2h-lines-added">'),i.b(i.v(i.f("addedLines",e,n,0))),i.b("</span>"),i.b("\n"+t),i.b(' <span class="d2h-lines-deleted">'),i.b(i.v(i.f("deletedLines",e,n,0))),i.b("</span>"),i.b("\n"+t),i.b(" </span>"),i.b("\n"+t),i.b(" </span>"),i.b("\n"+t),i.b("</li>"),i.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}}),Le["file-summary-wrapper"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div class="d2h-file-list-wrapper">'),i.b("\n"+t),i.b(' <div class="d2h-file-list-header">'),i.b("\n"+t),i.b(' <span class="d2h-file-list-title">Files changed ('),i.b(i.v(i.f("filesNumber",e,n,0))),i.b(")</span>"),i.b("\n"+t),i.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),i.b("\n"+t),i.b(' <a class="d2h-file-switch d2h-show">show</a>'),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <ol class="d2h-file-list">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("files",e,n,0))),i.b("\n"+t),i.b(" </ol>"),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),Le["generic-block-header"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b("<tr>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.f("lineClass",e,n,0))),i.b(" "),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('"></td>'),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,n,0))),i.b('">'),i.b(i.t(i.f("blockHeader",e,n,0))),i.b("</div>"),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b("</tr>"),i.fl()},partials:{},subs:{}}),Le["generic-empty-diff"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b("<tr>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.d("CSSLineClass.INFO",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,n,0))),i.b('">'),i.b("\n"+t),i.b(" File without changes"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b("</tr>"),i.fl()},partials:{},subs:{}}),Le["generic-file-path"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-file-name-wrapper">'),i.b("\n"+t),i.b(i.rp("<fileIcon0",e,n," ")),i.b(' <span class="d2h-file-name">'),i.b(i.v(i.f("fileDiffName",e,n,0))),i.b("</span>"),i.b("\n"+t),i.b(i.rp("<fileTag1",e,n," ")),i.b("</span>"),i.b("\n"+t),i.b('<label class="d2h-file-collapse">'),i.b("\n"+t),i.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),i.b("\n"+t),i.b(" Viewed"),i.b("\n"+t),i.b("</label>"),i.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}}),Le["generic-line"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b("<tr>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.f("lineClass",e,n,0))),i.b(" "),i.b(i.v(i.f("type",e,n,0))),i.b('">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("lineNumber",e,n,0))),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b(' <td class="'),i.b(i.v(i.f("type",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="'),i.b(i.v(i.f("contentClass",e,n,0))),i.b('">'),i.b("\n"+t),i.s(i.f("prefix",e,n,1),e,n,0,162,238,"{{ }}")&&(i.rs(e,n,(function(e,n,i){i.b(' <span class="d2h-code-line-prefix">'),i.b(i.t(i.f("prefix",e,n,0))),i.b("</span>"),i.b("\n"+t)})),e.pop()),i.s(i.f("prefix",e,n,1),e,n,1,0,0,"")||(i.b(' <span class="d2h-code-line-prefix">&nbsp;</span>'),i.b("\n"+t)),i.s(i.f("content",e,n,1),e,n,0,371,445,"{{ }}")&&(i.rs(e,n,(function(e,n,i){i.b(' <span class="d2h-code-line-ctn">'),i.b(i.t(i.f("content",e,n,0))),i.b("</span>"),i.b("\n"+t)})),e.pop()),i.s(i.f("content",e,n,1),e,n,1,0,0,"")||(i.b(' <span class="d2h-code-line-ctn"><br></span>'),i.b("\n"+t)),i.b(" </div>"),i.b("\n"+t),i.b(" </td>"),i.b("\n"+t),i.b("</tr>"),i.fl()},partials:{},subs:{}}),Le["generic-wrapper"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div class="d2h-wrapper">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("content",e,n,0))),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),Le["icon-file-added"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),i.b("\n"+t),i.b(' width="14">'),i.b("\n"+t),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),i.b("\n"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),Le["icon-file-changed"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),i.b("\n"+t),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+t),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),i.b("\n"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),Le["icon-file-deleted"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),i.b("\n"+t),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+t),i.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),i.b("\n"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),Le["icon-file-renamed"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),i.b("\n"+t),i.b(' viewBox="0 0 14 16" width="14">'),i.b("\n"+t),i.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),i.b("\n"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),Le["icon-file"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),i.b("\n"+t),i.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),i.b("\n"+t),i.b("</svg>"),i.fl()},partials:{},subs:{}}),Le["line-by-line-file-diff"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div id="'),i.b(i.v(i.f("fileHtmlId",e,n,0))),i.b('" class="d2h-file-wrapper" data-lang="'),i.b(i.v(i.d("file.language",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="d2h-file-header">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("filePath",e,n,0))),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <div class="d2h-file-diff">'),i.b("\n"+t),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+t),i.b(' <table class="d2h-diff-table">'),i.b("\n"+t),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("diffs",e,n,0))),i.b("\n"+t),i.b(" </tbody>"),i.b("\n"+t),i.b(" </table>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),Le["line-by-line-numbers"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div class="line-num1">'),i.b(i.v(i.f("oldNumber",e,n,0))),i.b("</div>"),i.b("\n"+t),i.b('<div class="line-num2">'),i.b(i.v(i.f("newNumber",e,n,0))),i.b("</div>"),i.fl()},partials:{},subs:{}}),Le["side-by-side-file-diff"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<div id="'),i.b(i.v(i.f("fileHtmlId",e,n,0))),i.b('" class="d2h-file-wrapper" data-lang="'),i.b(i.v(i.d("file.language",e,n,0))),i.b('">'),i.b("\n"+t),i.b(' <div class="d2h-file-header">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.f("filePath",e,n,0))),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <div class="d2h-files-diff">'),i.b("\n"+t),i.b(' <div class="d2h-file-side-diff">'),i.b("\n"+t),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+t),i.b(' <table class="d2h-diff-table">'),i.b("\n"+t),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.d("diffs.left",e,n,0))),i.b("\n"+t),i.b(" </tbody>"),i.b("\n"+t),i.b(" </table>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(' <div class="d2h-file-side-diff">'),i.b("\n"+t),i.b(' <div class="d2h-code-wrapper">'),i.b("\n"+t),i.b(' <table class="d2h-diff-table">'),i.b("\n"+t),i.b(' <tbody class="d2h-diff-tbody">'),i.b("\n"+t),i.b(" "),i.b(i.t(i.d("diffs.right",e,n,0))),i.b("\n"+t),i.b(" </tbody>"),i.b("\n"+t),i.b(" </table>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b(" </div>"),i.b("\n"+t),i.b("</div>"),i.fl()},partials:{},subs:{}}),Le["tag-file-added"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),i.fl()},partials:{},subs:{}}),Le["tag-file-changed"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),i.fl()},partials:{},subs:{}}),Le["tag-file-deleted"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),i.fl()},partials:{},subs:{}}),Le["tag-file-renamed"]=new Ee.Template({code:function(e,n,t){var i=this;return i.b(t=t||""),i.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),i.fl()},partials:{},subs:{}});var ke=function(){return ke=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},ke.apply(this,arguments)},He=function(){function e(e){var n=e.compiledTemplates,t=void 0===n?{}:n,i=e.rawTemplates,r=void 0===i?{}:i,o=Object.entries(r).reduce((function(e,n){var t,i=n[0],r=n[1],o=Ee.compile(r,{asString:!1});return ke(ke({},e),((t={})[i]=o,t))}),{});this.preCompiledTemplates=ke(ke(ke({},Le),t),o)}return e.compile=function(e){return Ee.compile(e,{asString:!1})},e.prototype.render=function(e,n,t,i,r){var o=this.templateKey(e,n);try{return this.preCompiledTemplates[o].render(t,i,r)}catch(e){throw new Error("Could not find template to render '"+o+"'")}},e.prototype.template=function(e,n){return this.preCompiledTemplates[this.templateKey(e,n)]},e.prototype.templateKey=function(e,n){return e+"-"+n},e}(),Ie=function(){return Ie=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},Ie.apply(this,arguments)},je=Ie(Ie(Ie({},be),we),{outputFormat:"line-by-line",drawFileList:!0});function Oe(e,n){void 0===n&&(n={});var t=Ie(Ie({},je),n),i="string"==typeof e?z(e,t):e,r=new He(t),o=t.drawFileList?function(e,n){var t=e.map((function(e){return n.render(pe,"line",{fileHtmlId:ce(e),oldName:e.oldName,newName:e.newName,fileName:ue(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:n.template("icon",fe(e))})})).join("\n");return n.render(pe,"wrapper",{filesNumber:e.length,files:t})}(i,r):"";return o+("side-by-side"===t.outputFormat?new Ne(r,t).render(i):new me(r,t).render(i))}var Ae=n.stringEnum([].concat(["side-by-side","line-by-line"])),Me=n.stringEnum([].concat(["dark","light"])),Pe={oldContent:i.string().def(""),newContent:i.string().def(""),diffFormat:i.string().def(Ae["line-by-line"]),diffContext:i.number(),theme:i.string().def("light"),language:i.string().def("javascript"),hljs:n.PropTypes.any.isRequired};var ze=t.defineComponent({name:"BkCodeDiff",props:Pe,emits:[],setup:function(e){var i=t.ref(null),r=t.ref(""),o=t.computed((function(){return n.classes({dark:e.theme===Me.dark},"hljs bk-code-diff")}));function a(n,o){var a,s,l=k("",e.oldContent,e.newContent,"","",{context:n});r.value=(a=Oe(l,{drawFileList:!1,matching:"lines",outputFormat:e.diffFormat}),s=o,a.replace(/d2h-code-line-ctn/g,(function(e){return"".concat(e," lang-").concat(s)}))),t.nextTick((function(){i.value&&i.value.querySelectorAll(".lang-".concat(e.language)).forEach((function(n){e.hljs.highlightElement(n)}))}))}return t.onMounted((function(){a(e.diffContext,e.language)})),t.watch((function(){return[e.diffContext,e.language]}),(function(e){var n=f(e,2);a(n[0],n[1])})),function(){return t.createVNode("div",{ref:i,class:o.value,innerHTML:r.value},null)}}}),Fe=n.withInstall(ze);e.default=Fe,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -2,6 +2,7 @@
2
2
  text-align: left;
3
3
  }
4
4
  .bk-collapse-wrapper .bk-collapse-item .bk-collapse-header {
5
+ position: relative;
5
6
  height: 42px;
6
7
  padding: 0 10px;
7
8
  overflow: hidden;
@@ -11,6 +12,13 @@
11
12
  text-overflow: ellipsis;
12
13
  cursor: pointer;
13
14
  }
15
+ .bk-collapse-wrapper .bk-collapse-item .bk-collapse-header .bk-collapse-icon {
16
+ position: absolute;
17
+ right: 10px;
18
+ }
19
+ .bk-collapse-wrapper .bk-collapse-item .bk-collapse-header .bk-collapse-icon svg {
20
+ font-size: 20px;
21
+ }
14
22
  .bk-collapse-wrapper .bk-collapse-item .bk-collapse-content {
15
23
  display: none;
16
24
  padding: 0 10px;
@@ -47,24 +47,56 @@ declare const _default: import("vue").DefineComponent<{
47
47
  } & {
48
48
  default: boolean;
49
49
  };
50
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
51
- list?: unknown;
52
- idFiled?: unknown;
53
- titleField?: unknown;
54
- contentField?: unknown;
55
- activeIndex?: unknown;
56
- activeName?: unknown;
57
- accordion?: unknown;
58
- } & {
59
- list: any[];
60
- idFiled: string;
61
- titleField: string;
62
- contentField: string;
63
- accordion: boolean;
64
- } & {
65
- activeIndex?: number | number[];
66
- activeName?: string | string[];
67
- }> & {}, {
50
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
51
+ /**
52
+ * 渲染列表
53
+ * 对象数组或者字符串数组,字符串数组默认会增加 name 字段,值为传入的字符串值
54
+ */
55
+ list: import("vue-types").VueTypeDef<any[]> & {
56
+ default: () => any[];
57
+ };
58
+ /**
59
+ * ID字段
60
+ */
61
+ idFiled: import("vue-types").VueTypeValidableDef<string> & {
62
+ default: string;
63
+ } & {
64
+ default: string;
65
+ };
66
+ /**
67
+ * Title 字段
68
+ */
69
+ titleField: import("vue-types").VueTypeValidableDef<string> & {
70
+ default: string;
71
+ } & {
72
+ default: string;
73
+ };
74
+ /**
75
+ * Content 字段,默认渲染内容,不配置时自动读取 name字段
76
+ * 自定义配置slot时可以忽略
77
+ */
78
+ contentField: import("vue-types").VueTypeValidableDef<string> & {
79
+ default: string;
80
+ } & {
81
+ default: string;
82
+ };
83
+ /**
84
+ * 当前激活Index
85
+ */
86
+ activeIndex: import("vue-types").VueTypeDef<number | number[]>;
87
+ /**
88
+ * 当前激活 Name, 与activeIndex互斥,同时配置时, activeName 覆盖 activeIndex
89
+ */
90
+ activeName: import("vue-types").VueTypeDef<string | string[]>;
91
+ /**
92
+ * 是否使用手风琴效果
93
+ */
94
+ accordion: import("vue-types").VueTypeValidableDef<boolean> & {
95
+ default: boolean;
96
+ } & {
97
+ default: boolean;
98
+ };
99
+ }>>, {
68
100
  list: any[];
69
101
  idFiled: string;
70
102
  titleField: string;
@@ -3,6 +3,7 @@
3
3
  text-align: left;
4
4
 
5
5
  .bk-collapse-header {
6
+ position: relative;
6
7
  height: 42px;
7
8
  padding: 0 10px;
8
9
  overflow: hidden;
@@ -11,6 +12,15 @@
11
12
  color: #63656e;
12
13
  text-overflow: ellipsis;
13
14
  cursor: pointer;
15
+
16
+ .bk-collapse-icon {
17
+ position: absolute;
18
+ right: 10px;
19
+
20
+ svg {
21
+ font-size: 20px;
22
+ }
23
+ }
14
24
  }
15
25
 
16
26
  .bk-collapse-content {
@@ -2,6 +2,7 @@
2
2
  text-align: left;
3
3
  }
4
4
  .bk-collapse-wrapper .bk-collapse-item .bk-collapse-header {
5
+ position: relative;
5
6
  height: 42px;
6
7
  padding: 0 10px;
7
8
  overflow: hidden;
@@ -11,6 +12,13 @@
11
12
  text-overflow: ellipsis;
12
13
  cursor: pointer;
13
14
  }
15
+ .bk-collapse-wrapper .bk-collapse-item .bk-collapse-header .bk-collapse-icon {
16
+ position: absolute;
17
+ right: 10px;
18
+ }
19
+ .bk-collapse-wrapper .bk-collapse-item .bk-collapse-header .bk-collapse-icon svg {
20
+ font-size: 20px;
21
+ }
14
22
  .bk-collapse-wrapper .bk-collapse-item .bk-collapse-content {
15
23
  display: none;
16
24
  padding: 0 10px;
@@ -0,0 +1,166 @@
1
+ declare const BkCollaspe: {
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: Partial<{
6
+ list: any[];
7
+ idFiled: string;
8
+ titleField: string;
9
+ contentField: string;
10
+ accordion: boolean;
11
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
12
+ list: import("vue-types").VueTypeDef<any[]> & {
13
+ default: () => any[];
14
+ };
15
+ idFiled: import("vue-types").VueTypeValidableDef<string> & {
16
+ default: string;
17
+ } & {
18
+ default: string;
19
+ };
20
+ titleField: import("vue-types").VueTypeValidableDef<string> & {
21
+ default: string;
22
+ } & {
23
+ default: string;
24
+ };
25
+ contentField: import("vue-types").VueTypeValidableDef<string> & {
26
+ default: string;
27
+ } & {
28
+ default: string;
29
+ };
30
+ activeIndex: import("vue-types").VueTypeDef<number | number[]>;
31
+ activeName: import("vue-types").VueTypeDef<string | string[]>;
32
+ accordion: import("vue-types").VueTypeValidableDef<boolean> & {
33
+ default: boolean;
34
+ } & {
35
+ default: boolean;
36
+ };
37
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "list" | "idFiled" | "titleField" | "contentField" | "accordion">;
38
+ $attrs: {
39
+ [x: string]: unknown;
40
+ };
41
+ $refs: {
42
+ [x: string]: unknown;
43
+ };
44
+ $slots: Readonly<{
45
+ [name: string]: import("vue").Slot;
46
+ }>;
47
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
48
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
49
+ $emit: (event: string, ...args: any[]) => void;
50
+ $el: any;
51
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
52
+ list: import("vue-types").VueTypeDef<any[]> & {
53
+ default: () => any[];
54
+ };
55
+ idFiled: import("vue-types").VueTypeValidableDef<string> & {
56
+ default: string;
57
+ } & {
58
+ default: string;
59
+ };
60
+ titleField: import("vue-types").VueTypeValidableDef<string> & {
61
+ default: string;
62
+ } & {
63
+ default: string;
64
+ };
65
+ contentField: import("vue-types").VueTypeValidableDef<string> & {
66
+ default: string;
67
+ } & {
68
+ default: string;
69
+ };
70
+ activeIndex: import("vue-types").VueTypeDef<number | number[]>;
71
+ activeName: import("vue-types").VueTypeDef<string | string[]>;
72
+ accordion: import("vue-types").VueTypeValidableDef<boolean> & {
73
+ default: boolean;
74
+ } & {
75
+ default: boolean;
76
+ };
77
+ }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
78
+ list: any[];
79
+ idFiled: string;
80
+ titleField: string;
81
+ contentField: string;
82
+ accordion: boolean;
83
+ }> & {
84
+ beforeCreate?: (() => void) | (() => void)[];
85
+ created?: (() => void) | (() => void)[];
86
+ beforeMount?: (() => void) | (() => void)[];
87
+ mounted?: (() => void) | (() => void)[];
88
+ beforeUpdate?: (() => void) | (() => void)[];
89
+ updated?: (() => void) | (() => void)[];
90
+ activated?: (() => void) | (() => void)[];
91
+ deactivated?: (() => void) | (() => void)[];
92
+ beforeDestroy?: (() => void) | (() => void)[];
93
+ beforeUnmount?: (() => void) | (() => void)[];
94
+ destroyed?: (() => void) | (() => void)[];
95
+ unmounted?: (() => void) | (() => void)[];
96
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
97
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
98
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
99
+ };
100
+ $forceUpdate: () => void;
101
+ $nextTick: typeof import("vue").nextTick;
102
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
103
+ } & Readonly<import("vue").ExtractPropTypes<{
104
+ list: import("vue-types").VueTypeDef<any[]> & {
105
+ default: () => any[];
106
+ };
107
+ idFiled: import("vue-types").VueTypeValidableDef<string> & {
108
+ default: string;
109
+ } & {
110
+ default: string;
111
+ };
112
+ titleField: import("vue-types").VueTypeValidableDef<string> & {
113
+ default: string;
114
+ } & {
115
+ default: string;
116
+ };
117
+ contentField: import("vue-types").VueTypeValidableDef<string> & {
118
+ default: string;
119
+ } & {
120
+ default: string;
121
+ };
122
+ activeIndex: import("vue-types").VueTypeDef<number | number[]>;
123
+ activeName: import("vue-types").VueTypeDef<string | string[]>;
124
+ accordion: import("vue-types").VueTypeValidableDef<boolean> & {
125
+ default: boolean;
126
+ } & {
127
+ default: boolean;
128
+ };
129
+ }>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
130
+ __isFragment?: never;
131
+ __isTeleport?: never;
132
+ __isSuspense?: never;
133
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
134
+ list: import("vue-types").VueTypeDef<any[]> & {
135
+ default: () => any[];
136
+ };
137
+ idFiled: import("vue-types").VueTypeValidableDef<string> & {
138
+ default: string;
139
+ } & {
140
+ default: string;
141
+ };
142
+ titleField: import("vue-types").VueTypeValidableDef<string> & {
143
+ default: string;
144
+ } & {
145
+ default: string;
146
+ };
147
+ contentField: import("vue-types").VueTypeValidableDef<string> & {
148
+ default: string;
149
+ } & {
150
+ default: string;
151
+ };
152
+ activeIndex: import("vue-types").VueTypeDef<number | number[]>;
153
+ activeName: import("vue-types").VueTypeDef<string | string[]>;
154
+ accordion: import("vue-types").VueTypeValidableDef<boolean> & {
155
+ default: boolean;
156
+ } & {
157
+ default: boolean;
158
+ };
159
+ }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
160
+ list: any[];
161
+ idFiled: string;
162
+ titleField: string;
163
+ contentField: string;
164
+ accordion: boolean;
165
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
166
+ export default BkCollaspe;
@@ -1 +1 @@
1
- !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,n,t){"use strict";var o=n.defineComponent({name:"BkCollapse",props:{list:t.PropTypes.arrayOf(t.PropTypes.any).def([]),idFiled:t.PropTypes.string.def("$index"),titleField:t.PropTypes.string.def("name"),contentField:t.PropTypes.string.def("content"),activeIndex:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.number).def([]),t.PropTypes.number.def(-1)]),activeName:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.string).def([]),t.PropTypes.string.def("")]),accordion:t.PropTypes.bool.def(!0)},setup:function(e,t){var o=t.slots,r=n.ref(null);n.watch((function(){return[e.activeName,e.activeIndex]}),(function(){r.value=null}));var i=n.computed((function(){return(e.list||[]).map((function(e,n){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e?{$index:n,name:e}:Object.assign({$index:n},e)}))})),a=n.computed((function(){var n;return null!==r.value?r.value.map((function(e){return e.$index})):null!==e.activeName&&void 0!==e.activeName&&""!==e.activeName?l(e.activeName).map((function(n){return i.value.findIndex((function(t){return t[e.idFiled]===n}))})):l(null!==(n=e.activeIndex)&&void 0!==n?n:0)})),l=function n(t){return Array.isArray(t)?e.accordion?n(t[0]):t:"string"==typeof t||"number"==typeof t?[t]:[]},u=function(e){return a.value.some((function(n){return n===e.$index}))},c=function(){return i.value.map((function(t){var i,a,l,c;return n.createVNode("div",{class:"bk-collapse-item"},[n.createVNode("div",{class:"bk-collapse-header",onClick:function(){return function(n){if(null===r.value)r.value=[n];else if(e.accordion)r.value=[n];else{var t=r.value.findIndex((function(e){return e.$index===n.$index}));t>=0?r.value.splice(t,1):r.value.push(n)}}(t)}},[n.createVNode("span",{class:"bk-collapse-title"},[null!==(a=null===(i=o.default)||void 0===i?void 0:i.call(o))&&void 0!==a?a:t[e.titleField]]),n.createVNode("span",null,[">"])]),n.createVNode("div",{class:"bk-collapse-content ".concat(u(t)?"active":"")},[null!==(c=null===(l=o.content)||void 0===l?void 0:l.call(o,t))&&void 0!==c?c:t[e.contentField]])])}))};return function(){return n.createVNode("div",{class:"bk-collapse-wrapper"},[c()])}}});o.install=function(e){e.component(o.name,o)},e.default=o,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("../shared"),require("vue"),require("../icon/")):"function"==typeof define&&define.amd?define(["exports","../shared","vue","../icon/"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Shared,e.Vue,e._)}(this,(function(e,n,t,o){"use strict";var i=t.defineComponent({name:"Collapse",props:{list:n.PropTypes.arrayOf(n.PropTypes.any).def([]),idFiled:n.PropTypes.string.def("$index"),titleField:n.PropTypes.string.def("name"),contentField:n.PropTypes.string.def("content"),activeIndex:n.PropTypes.oneOfType([n.PropTypes.arrayOf(n.PropTypes.number).def([]),n.PropTypes.number.def(-1)]),activeName:n.PropTypes.oneOfType([n.PropTypes.arrayOf(n.PropTypes.string).def([]),n.PropTypes.string.def("")]),accordion:n.PropTypes.bool.def(!0)},setup:function(e,n){var i=n.slots,r=t.ref(null);t.watch((function(){return[e.activeName,e.activeIndex]}),(function(){r.value=null}));var l=t.computed((function(){return(e.list||[]).map((function(e,n){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e?{$index:n,name:e}:Object.assign({$index:n},e)}))})),a=t.computed((function(){var n;return null!==r.value?r.value.map((function(e){return e.$index})):null!==e.activeName&&void 0!==e.activeName&&""!==e.activeName?u(e.activeName).map((function(n){return l.value.findIndex((function(t){return t[e.idFiled]===n}))})):u(null!==(n=e.activeIndex)&&void 0!==n?n:0)})),u=function n(t){return Array.isArray(t)?e.accordion?n(t[0]):t:"string"==typeof t||"number"==typeof t?[t]:[]},c=function(e){return a.value.some((function(n){return n===e.$index}))},d=function(){return l.value.map((function(n){var l,a,u,d;return t.createVNode("div",{class:"bk-collapse-item"},[t.createVNode("div",{class:"bk-collapse-header",onClick:function(){return function(n){if(null===r.value)r.value=[n];else if(e.accordion)r.value=[n];else{var t=r.value.findIndex((function(e){return e.$index===n.$index}));t>=0?r.value.splice(t,1):r.value.push(n)}}(n)}},[t.createVNode("span",{class:"bk-collapse-title"},[null!==(a=null===(l=i.default)||void 0===l?void 0:l.call(i))&&void 0!==a?a:n[e.titleField]]),c(n)?t.createVNode(o.AngleDown,{class:"bk-collapse-icon"},null):t.createVNode(o.AngleRight,{class:"bk-collapse-icon"},null)]),t.createVNode("div",{class:"bk-collapse-content ".concat(c(n)?"active":"")},[null!==(d=null===(u=i.content)||void 0===u?void 0:u.call(i,n))&&void 0!==d?d:n[e.contentField]])])}))};return function(){return t.createVNode("div",{class:"bk-collapse-wrapper"},[d()])}}}),r=n.withInstall(i);e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,39 @@
1
+ export { default as Alert } from './alert';
2
+ export { default as AnimateNumber } from './animate-number';
3
+ export { default as Backtop } from './backtop';
4
+ export { default as Badge } from './badge';
5
+ export { default as Breadcrumb, BkBreadcrumbItem as BreadcrumbItem } from './breadcrumb';
6
+ export { default as Button, BkButtonGroup as ButtonGroup } from './button';
7
+ export { default as Card } from './card';
8
+ export { default as Checkbox, BkCheckboxGroup as CheckboxGroup } from './checkbox';
9
+ export { default as Collapse } from './collapse';
10
+ export { default as Dialog } from './dialog';
11
+ export { default as Exception } from './exception';
12
+ export { default as FixedNavbar } from './fixed-navbar';
13
+ export { default as Input } from './input';
14
+ export { default as Link } from './link';
15
+ export { default as Loading } from './loading';
16
+ export { default as Modal } from './modal';
17
+ export { default as Popover } from './popover';
18
+ export { default as Progress } from './progress';
19
+ export { default as Radio, BkRadioButton as RadioButton, BkRadioGroup as RadioGroup } from './radio';
20
+ export { default as Rate } from './rate';
21
+ export { default as Swiper } from './swiper';
22
+ export { default as Select, BkOption, BkOptionGroup } from './select';
23
+ export { default as Sideslider } from './sideslider';
24
+ export { default as Steps } from './steps';
25
+ export { default as Switcher } from './switcher';
26
+ export { default as Table } from './table';
27
+ export { default as Tag } from './tag';
28
+ export { default as TagInput } from './tag-input';
29
+ export { default as Divider } from './divider';
30
+ export { default as Tab, BkTabPanel as TabPanel } from './tab';
31
+ export { default as Message } from './message';
32
+ export { default as Notify } from './notify';
33
+ export { default as Menu } from './menu';
34
+ export { default as Navigation } from './navigation';
35
+ export { default as DatePicker } from './date-picker';
36
+ export { default as Transfer } from './transfer';
37
+ export { default as Tree } from './tree';
38
+ export { default as VirtualRender } from './virtual-render';
39
+ export { default as Form, BkFormItem as FormItem } from './form';