halo-fe 1.0.32 → 1.0.34

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 (950) hide show
  1. package/dist/main.css +1 -0
  2. package/dist/main.js +7626 -4255
  3. package/dist/reset.css +68 -0
  4. package/dist/vendor/clone-BiNug-TV.js +141 -0
  5. package/dist/vendor/file-saver-LcQArykF.js +76 -0
  6. package/dist/vendor/liquidjs-DEqYMvhe.js +3351 -0
  7. package/dist/vendor/moment-CwOqp704.js +2589 -0
  8. package/dist/vendor/sprintf-js-CI46yikS.js +145 -0
  9. package/dist/vendor/underscore-DYMmD6H5.js +1073 -0
  10. package/dist/vendor/underscore.string-DzltYjQl.js +798 -0
  11. package/dist/vendor/util-deprecate-C5W9UHZW.js +33 -0
  12. package/esm/@type/FeOptions.d.ts +32 -0
  13. package/esm/@type/index.d.ts +1 -0
  14. package/esm/app/AppConstant.d.ts +2 -0
  15. package/esm/app/index.d.ts +1 -0
  16. package/esm/comp/@type/CompProps.d.ts +10 -0
  17. package/esm/comp/@type/CompSize.d.ts +4 -0
  18. package/esm/comp/@type/index.d.ts +2 -0
  19. package/esm/comp/Timer.vue.d.ts +26 -0
  20. package/esm/comp/alert/@types/AlertProps.d.ts +3 -0
  21. package/esm/comp/alert/@types/index.d.ts +1 -0
  22. package/esm/comp/alert/Index.vue.d.ts +3 -0
  23. package/esm/comp/alert/index.d.ts +2 -0
  24. package/esm/comp/business/@types/TipsEmit.d.ts +3 -0
  25. package/esm/comp/business/@types/TipsProps.d.ts +2 -0
  26. package/esm/comp/business/@types/index.d.ts +2 -0
  27. package/esm/comp/business/Debugger.vue.d.ts +328 -0
  28. package/esm/comp/business/Tips.vue.d.ts +7 -0
  29. package/esm/comp/business/cruds/@types/CrudDrawer.d.ts +12 -0
  30. package/esm/comp/business/cruds/@types/CrudEmit.d.ts +17 -0
  31. package/esm/comp/business/cruds/@types/CrudExpose.d.ts +3 -0
  32. package/esm/comp/business/cruds/@types/CrudProps.d.ts +18 -0
  33. package/esm/comp/business/cruds/@types/index.d.ts +4 -0
  34. package/esm/comp/business/cruds/Index.vue.d.ts +592 -0
  35. package/esm/comp/business/cruds/index.d.ts +3 -0
  36. package/esm/comp/business/drivers/@types/DriverBaseProps.d.ts +17 -0
  37. package/esm/comp/business/drivers/@types/DriverEmit.d.ts +17 -0
  38. package/esm/comp/business/drivers/@types/DriverExpose.d.ts +22 -0
  39. package/esm/comp/business/drivers/@types/DriverFormProps.d.ts +14 -0
  40. package/esm/comp/business/drivers/@types/DriverPickerEmit.d.ts +13 -0
  41. package/esm/comp/business/drivers/@types/DriverPickerExpose.d.ts +17 -0
  42. package/esm/comp/business/drivers/@types/DriverPickerProps.d.ts +18 -0
  43. package/esm/comp/business/drivers/@types/DriverProps.d.ts +29 -0
  44. package/esm/comp/business/drivers/@types/KindFormProps.d.ts +16 -0
  45. package/esm/comp/business/drivers/@types/index.d.ts +6 -0
  46. package/esm/comp/business/drivers/Index.vue.d.ts +131 -0
  47. package/esm/comp/business/drivers/Picker.vue.d.ts +38 -0
  48. package/esm/comp/business/drivers/index.d.ts +4 -0
  49. package/esm/comp/business/index.d.ts +6 -0
  50. package/esm/comp/button/@types/ButtonEmit.d.ts +9 -0
  51. package/esm/comp/button/@types/ButtonProps.d.ts +22 -0
  52. package/esm/comp/button/@types/ButtonsEmit.d.ts +2 -0
  53. package/esm/comp/button/@types/ButtonsProps.d.ts +6 -0
  54. package/esm/comp/button/@types/index.d.ts +4 -0
  55. package/esm/comp/button/Button.vue.d.ts +29 -0
  56. package/esm/comp/button/Index.vue.d.ts +18 -0
  57. package/esm/comp/button/index.d.ts +3 -0
  58. package/esm/comp/calender/@types/CalendarProps.d.ts +5 -0
  59. package/esm/comp/calender/@types/index.d.ts +1 -0
  60. package/esm/comp/calender/Index.vue.d.ts +11 -0
  61. package/esm/comp/calender/index.d.ts +2 -0
  62. package/esm/comp/card/@types/index.d.ts +0 -0
  63. package/esm/comp/card/Index.vue.d.ts +17 -0
  64. package/esm/comp/checkbox/@types/CheckboxEmit.d.ts +9 -0
  65. package/esm/comp/checkbox/@types/CheckboxProps.d.ts +6 -0
  66. package/esm/comp/checkbox/@types/CheckboxsEmit.d.ts +9 -0
  67. package/esm/comp/checkbox/@types/CheckboxsProps.d.ts +2 -0
  68. package/esm/comp/checkbox/@types/index.d.ts +4 -0
  69. package/esm/comp/checkbox/Checkbox.vue.d.ts +35 -0
  70. package/esm/comp/checkbox/Index.vue.d.ts +29 -0
  71. package/esm/comp/checkbox/index.d.ts +3 -0
  72. package/esm/comp/condition/@types/ConditionGroupProps.d.ts +10 -0
  73. package/esm/comp/condition/@types/ConditionProps.d.ts +17 -0
  74. package/esm/comp/condition/@types/index.d.ts +2 -0
  75. package/esm/comp/condition/Condition.vue.d.ts +3 -0
  76. package/esm/comp/condition/Index.vue.d.ts +3 -0
  77. package/esm/comp/datetime/@types/DateEmit.d.ts +5 -0
  78. package/esm/comp/datetime/@types/DateProps.d.ts +5 -0
  79. package/esm/comp/datetime/@types/DateTimeEmit.d.ts +2 -0
  80. package/esm/comp/datetime/@types/DateTimeProps.d.ts +3 -0
  81. package/esm/comp/datetime/@types/index.d.ts +4 -0
  82. package/esm/comp/datetime/Date.vue.d.ts +235 -0
  83. package/esm/comp/datetime/DateRange.vue.d.ts +17 -0
  84. package/esm/comp/datetime/Index.vue.d.ts +26 -0
  85. package/esm/comp/datetime/index.d.ts +4 -0
  86. package/esm/comp/dialog/@types/DialogDragData.d.ts +26 -0
  87. package/esm/comp/dialog/@types/DialogEmit.d.ts +39 -0
  88. package/esm/comp/dialog/@types/DialogExpose.d.ts +26 -0
  89. package/esm/comp/dialog/@types/DialogOptions.d.ts +27 -0
  90. package/esm/comp/dialog/@types/DialogProps.d.ts +48 -0
  91. package/esm/comp/dialog/@types/DialogState.d.ts +27 -0
  92. package/esm/comp/dialog/@types/DialogStatus.d.ts +5 -0
  93. package/esm/comp/dialog/@types/index.d.ts +7 -0
  94. package/esm/comp/dialog/Index.vue.d.ts +82 -0
  95. package/esm/comp/dialog/index.d.ts +3 -0
  96. package/esm/comp/drawer/@types/DrawerEmit.d.ts +9 -0
  97. package/esm/comp/drawer/@types/DrawerProps.d.ts +25 -0
  98. package/esm/comp/drawer/@types/index.d.ts +2 -0
  99. package/esm/comp/drawer/Index.vue.d.ts +27 -0
  100. package/esm/comp/drawer/index.d.ts +2 -0
  101. package/esm/comp/dropdown/@types/DropdownEmit.d.ts +13 -0
  102. package/esm/comp/dropdown/@types/DropdownExpose.d.ts +6 -0
  103. package/esm/comp/dropdown/@types/DropdownProps.d.ts +27 -0
  104. package/esm/comp/dropdown/@types/index.d.ts +3 -0
  105. package/esm/comp/dropdown/Index.vue.d.ts +433 -0
  106. package/esm/comp/dropdown/index.d.ts +3 -0
  107. package/esm/comp/empty/@types/EmptyProps.d.ts +2 -0
  108. package/esm/comp/empty/@types/index.d.ts +1 -0
  109. package/esm/comp/empty/Index.vue.d.ts +18 -0
  110. package/esm/comp/empty/index.d.ts +2 -0
  111. package/esm/comp/form/@types/FieldEmit.d.ts +5 -0
  112. package/esm/comp/form/@types/FieldProps.d.ts +14 -0
  113. package/esm/comp/form/@types/FormEmit.d.ts +5 -0
  114. package/esm/comp/form/@types/FormProps.d.ts +14 -0
  115. package/esm/comp/form/@types/index.d.ts +4 -0
  116. package/esm/comp/form/Field.vue.d.ts +19 -0
  117. package/esm/comp/form/Index.vue.d.ts +18 -0
  118. package/esm/comp/form/index.d.ts +3 -0
  119. package/esm/comp/icon/@types/ArrowDirection.d.ts +1 -0
  120. package/esm/comp/icon/@types/ArrowEmit.d.ts +10 -0
  121. package/esm/comp/icon/@types/ArrowProps.d.ts +11 -0
  122. package/esm/comp/icon/@types/IconEmit.d.ts +6 -0
  123. package/esm/comp/icon/@types/IconProps.d.ts +9 -0
  124. package/esm/comp/icon/@types/index.d.ts +5 -0
  125. package/esm/comp/icon/Arrow.vue.d.ts +7 -0
  126. package/esm/comp/icon/Index.vue.d.ts +11 -0
  127. package/esm/comp/icon/index.d.ts +4 -0
  128. package/esm/comp/index.d.ts +37 -0
  129. package/esm/comp/input/@types/CodeEmit.d.ts +22 -0
  130. package/esm/comp/input/@types/CodeIntelli.d.ts +5 -0
  131. package/esm/comp/input/@types/CodeProps.d.ts +56 -0
  132. package/esm/comp/input/@types/InputEmit.d.ts +25 -0
  133. package/esm/comp/input/@types/InputExpose.d.ts +10 -0
  134. package/esm/comp/input/@types/InputProps.d.ts +13 -0
  135. package/esm/comp/input/@types/Range.d.ts +25 -0
  136. package/esm/comp/input/@types/RichTextEmit.d.ts +14 -0
  137. package/esm/comp/input/@types/RichTextProps.d.ts +13 -0
  138. package/esm/comp/input/@types/index.d.ts +8 -0
  139. package/esm/comp/input/Code.vue.d.ts +32 -0
  140. package/esm/comp/input/Compare.vue.d.ts +42 -0
  141. package/esm/comp/input/Index.vue.d.ts +45 -0
  142. package/esm/comp/input/RichText.vue.d.ts +84 -0
  143. package/esm/comp/input/index.d.ts +6 -0
  144. package/esm/comp/layout/@types/ColProps.d.ts +9 -0
  145. package/esm/comp/layout/@types/RowProps.d.ts +13 -0
  146. package/esm/comp/layout/@types/index.d.ts +2 -0
  147. package/esm/comp/layout/Col.vue.d.ts +18 -0
  148. package/esm/comp/layout/Container.vue.d.ts +35 -0
  149. package/esm/comp/layout/Desc.vue.d.ts +2 -0
  150. package/esm/comp/layout/Fill.vue.d.ts +25 -0
  151. package/esm/comp/layout/Row.vue.d.ts +24 -0
  152. package/esm/comp/layout/index.d.ts +6 -0
  153. package/esm/comp/link/@types/LinkEmit.d.ts +6 -0
  154. package/esm/comp/link/@types/LinkProps.d.ts +6 -0
  155. package/esm/comp/link/@types/index.d.ts +2 -0
  156. package/esm/comp/link/Index.vue.d.ts +22 -0
  157. package/esm/comp/link/index.d.ts +2 -0
  158. package/esm/comp/loading/@types/LoadingProps.d.ts +2 -0
  159. package/esm/comp/loading/@types/index.d.ts +1 -0
  160. package/esm/comp/loading/Loading.vue.d.ts +3 -0
  161. package/esm/comp/loading/index.d.ts +2 -0
  162. package/esm/comp/menu/@types/MenuEmit.d.ts +6 -0
  163. package/esm/comp/menu/@types/MenuProps.d.ts +13 -0
  164. package/esm/comp/menu/@types/MenusEmit.d.ts +2 -0
  165. package/esm/comp/menu/@types/MenusProps.d.ts +9 -0
  166. package/esm/comp/menu/@types/index.d.ts +4 -0
  167. package/esm/comp/menu/Index.vue.d.ts +18 -0
  168. package/esm/comp/menu/Menu.vue.d.ts +22 -0
  169. package/esm/comp/menu/index.d.ts +3 -0
  170. package/esm/comp/number/@types/index.d.ts +0 -0
  171. package/esm/comp/number/Index.vue.d.ts +24 -0
  172. package/esm/comp/number/index.d.ts +2 -0
  173. package/esm/comp/overlay/@types/OverlayEmit.d.ts +13 -0
  174. package/esm/comp/overlay/@types/OverlayProps.d.ts +17 -0
  175. package/esm/comp/overlay/@types/index.d.ts +2 -0
  176. package/esm/comp/overlay/Index.vue.d.ts +24 -0
  177. package/esm/comp/overlay/index.d.ts +2 -0
  178. package/esm/comp/pager/@types/PagerEmit.d.ts +13 -0
  179. package/esm/comp/pager/@types/PagerProps.d.ts +9 -0
  180. package/esm/comp/pager/@types/index.d.ts +2 -0
  181. package/esm/comp/pager/Index.vue.d.ts +23 -0
  182. package/esm/comp/popover/@types/PopoverDirection.d.ts +4 -0
  183. package/esm/comp/popover/@types/PopoverEmit.d.ts +14 -0
  184. package/esm/comp/popover/@types/PopoverExpose.d.ts +25 -0
  185. package/esm/comp/popover/@types/PopoverPosition.d.ts +30 -0
  186. package/esm/comp/popover/@types/PopoverProps.d.ts +26 -0
  187. package/esm/comp/popover/@types/index.d.ts +5 -0
  188. package/esm/comp/popover/Index.vue.d.ts +162 -0
  189. package/esm/comp/popover/index.d.ts +3 -0
  190. package/esm/comp/progress/@types/SocketProgressProps.d.ts +38 -0
  191. package/esm/comp/progress/@types/index.d.ts +1 -0
  192. package/esm/comp/progress/Circle.vue.d.ts +2 -0
  193. package/esm/comp/progress/Index.vue.d.ts +9 -0
  194. package/esm/comp/progress/Socket.vue.d.ts +18 -0
  195. package/esm/comp/progress/index.d.ts +5 -0
  196. package/esm/comp/radio/@types/RadioEmit.d.ts +6 -0
  197. package/esm/comp/radio/@types/RadioProps.d.ts +6 -0
  198. package/esm/comp/radio/@types/RadiosEmit.d.ts +2 -0
  199. package/esm/comp/radio/@types/RadiosProps.d.ts +5 -0
  200. package/esm/comp/radio/@types/index.d.ts +4 -0
  201. package/esm/comp/radio/Index.vue.d.ts +26 -0
  202. package/esm/comp/radio/Radio.vue.d.ts +22 -0
  203. package/esm/comp/radio/index.d.ts +3 -0
  204. package/esm/comp/resizer/@types/ResizerEmit.d.ts +13 -0
  205. package/esm/comp/resizer/@types/ResizerPosition.d.ts +4 -0
  206. package/esm/comp/resizer/@types/ResizerProps.d.ts +19 -0
  207. package/esm/comp/resizer/@types/ResizersData.d.ts +21 -0
  208. package/esm/comp/resizer/@types/ResizersEmit.d.ts +16 -0
  209. package/esm/comp/resizer/@types/ResizersProps.d.ts +16 -0
  210. package/esm/comp/resizer/@types/index.d.ts +6 -0
  211. package/esm/comp/resizer/Index.vue.d.ts +11 -0
  212. package/esm/comp/resizer/Resizers.vue.d.ts +9 -0
  213. package/esm/comp/resizer/index.d.ts +4 -0
  214. package/esm/comp/scroller/@types/ScrollerEmit.d.ts +10 -0
  215. package/esm/comp/scroller/@types/ScrollerEvent.d.ts +13 -0
  216. package/esm/comp/scroller/@types/ScrollerExpose.d.ts +13 -0
  217. package/esm/comp/scroller/@types/ScrollerProps.d.ts +13 -0
  218. package/esm/comp/scroller/@types/index.d.ts +4 -0
  219. package/esm/comp/scroller/Index.vue.d.ts +33 -0
  220. package/esm/comp/scroller/index.d.ts +3 -0
  221. package/esm/comp/select/@types/OptionProps.d.ts +17 -0
  222. package/esm/comp/select/@types/OptionRef.d.ts +18 -0
  223. package/esm/comp/select/@types/SelectEmit.d.ts +9 -0
  224. package/esm/comp/select/@types/SelectProps.d.ts +17 -0
  225. package/esm/comp/select/@types/index.d.ts +4 -0
  226. package/esm/comp/select/Index.vue.d.ts +479 -0
  227. package/esm/comp/select/Option.vue.d.ts +22 -0
  228. package/esm/comp/select/index.d.ts +3 -0
  229. package/esm/comp/tab/@types/TabEmit.d.ts +9 -0
  230. package/esm/comp/tab/@types/TabProps.d.ts +21 -0
  231. package/esm/comp/tab/@types/TabRef.d.ts +15 -0
  232. package/esm/comp/tab/@types/TabsEmit.d.ts +5 -0
  233. package/esm/comp/tab/@types/TabsProps.d.ts +29 -0
  234. package/esm/comp/tab/@types/index.d.ts +5 -0
  235. package/esm/comp/tab/Index.vue.d.ts +30 -0
  236. package/esm/comp/tab/Tab.vue.d.ts +19 -0
  237. package/esm/comp/tab/index.d.ts +4 -0
  238. package/esm/comp/table/@types/ColumnEmit.d.ts +6 -0
  239. package/esm/comp/table/@types/ColumnProps.d.ts +53 -0
  240. package/esm/comp/table/@types/RowExpose.d.ts +15 -0
  241. package/esm/comp/table/@types/SortEmit.d.ts +9 -0
  242. package/esm/comp/table/@types/TableEmit.d.ts +31 -0
  243. package/esm/comp/table/@types/TableExpose.d.ts +21 -0
  244. package/esm/comp/table/@types/TableProps.d.ts +71 -0
  245. package/esm/comp/table/@types/TableRowEmit.d.ts +14 -0
  246. package/esm/comp/table/@types/TableRowProps.d.ts +9 -0
  247. package/esm/comp/table/@types/index.d.ts +9 -0
  248. package/esm/comp/table/Column.vue.d.ts +165 -0
  249. package/esm/comp/table/Filter.vue.d.ts +2 -0
  250. package/esm/comp/table/Index.vue.d.ts +801 -0
  251. package/esm/comp/table/Row.vue.d.ts +29 -0
  252. package/esm/comp/table/Sort.vue.d.ts +12 -0
  253. package/esm/comp/table/index.d.ts +4 -0
  254. package/esm/comp/table/useColumn.d.ts +8 -0
  255. package/esm/comp/tag/@types/TagProps.d.ts +6 -0
  256. package/esm/comp/tag/@types/index.d.ts +1 -0
  257. package/esm/comp/tag/Index.vue.d.ts +18 -0
  258. package/esm/comp/taskbar/@types/TaskbarEmit.d.ts +2 -0
  259. package/esm/comp/taskbar/@types/TaskbarProps.d.ts +9 -0
  260. package/esm/comp/taskbar/@types/TaskbarsEmit.d.ts +2 -0
  261. package/esm/comp/taskbar/@types/TaskbarsProps.d.ts +5 -0
  262. package/esm/comp/taskbar/@types/index.d.ts +4 -0
  263. package/esm/comp/taskbar/Index.vue.d.ts +27 -0
  264. package/esm/comp/taskbar/Taskbar.vue.d.ts +18 -0
  265. package/esm/comp/taskbar/index.d.ts +3 -0
  266. package/esm/comp/text/@types/DanceProps.d.ts +13 -0
  267. package/esm/comp/text/@types/index.d.ts +1 -0
  268. package/esm/comp/text/Dance.vue.d.ts +5 -0
  269. package/esm/comp/tooltip/@types/TooltipEmit.d.ts +9 -0
  270. package/esm/comp/tooltip/@types/TooltipExpose.d.ts +6 -0
  271. package/esm/comp/tooltip/@types/TooltipProps.d.ts +6 -0
  272. package/esm/comp/tooltip/@types/index.d.ts +3 -0
  273. package/esm/comp/tooltip/Index.vue.d.ts +304 -0
  274. package/esm/comp/tooltip/index.d.ts +3 -0
  275. package/esm/comp/tree/@types/TreeEmit.d.ts +9 -0
  276. package/esm/comp/tree/@types/TreeProps.d.ts +25 -0
  277. package/esm/comp/tree/@types/index.d.ts +2 -0
  278. package/esm/comp/tree/Index.vue.d.ts +24 -0
  279. package/esm/comp/tree/index.d.ts +2 -0
  280. package/esm/comp/upload/Index.vue.d.ts +17 -0
  281. package/esm/comp/upload/index.d.ts +2 -0
  282. package/esm/comp/window/@types/WindowEmit.d.ts +3 -0
  283. package/esm/comp/window/@types/WindowProps.d.ts +14 -0
  284. package/esm/comp/window/@types/WindowState.d.ts +15 -0
  285. package/esm/comp/window/@types/index.d.ts +3 -0
  286. package/esm/comp/window/Index.vue.d.ts +33 -0
  287. package/esm/comp/window/index.d.ts +2 -0
  288. package/esm/driver/@type/IDispose.d.ts +9 -0
  289. package/esm/driver/@type/IDriver.d.ts +9 -0
  290. package/esm/driver/@type/IOpen.d.ts +9 -0
  291. package/esm/driver/@type/index.d.ts +3 -0
  292. package/esm/driver/bridge/IBridge.d.ts +6 -0
  293. package/esm/driver/builder/BaseBuilder.d.ts +10 -0
  294. package/esm/driver/builder/BuilderFactory.d.ts +9 -0
  295. package/esm/driver/builder/IBuilder.d.ts +15 -0
  296. package/esm/driver/builder/entity/ProviderTable.d.ts +21 -0
  297. package/esm/driver/builder/entity/index.d.ts +1 -0
  298. package/esm/driver/builder/implement/JsonBuilder.d.ts +7 -0
  299. package/esm/driver/builder/implement/MongoBuilder.d.ts +10 -0
  300. package/esm/driver/builder/implement/MySqlBuilder.d.ts +7 -0
  301. package/esm/driver/builder/implement/SqlBuilder.d.ts +10 -0
  302. package/esm/driver/builder/implement/index.d.ts +4 -0
  303. package/esm/driver/builder/index.d.ts +3 -0
  304. package/esm/driver/cdn/BaseCdn.d.ts +31 -0
  305. package/esm/driver/cdn/CdnFactory.d.ts +13 -0
  306. package/esm/driver/cdn/ICdn.d.ts +50 -0
  307. package/esm/driver/cdn/implement/LocalCdn.d.ts +16 -0
  308. package/esm/driver/cdn/implement/ThirdCdn.d.ts +28 -0
  309. package/esm/driver/cdn/implement/index.d.ts +2 -0
  310. package/esm/driver/cdn/index.d.ts +3 -0
  311. package/esm/driver/cryptor/BaseCryptor.d.ts +10 -0
  312. package/esm/driver/cryptor/CryptorFactory.d.ts +12 -0
  313. package/esm/driver/cryptor/ICryptor.d.ts +14 -0
  314. package/esm/driver/cryptor/implement/AesCryptor.d.ts +9 -0
  315. package/esm/driver/cryptor/implement/PoJunCryptor.d.ts +13 -0
  316. package/esm/driver/cryptor/implement/index.d.ts +2 -0
  317. package/esm/driver/cryptor/index.d.ts +2 -0
  318. package/esm/driver/encoder/BaseEncoder.d.ts +15 -0
  319. package/esm/driver/encoder/EncoderFactory.d.ts +18 -0
  320. package/esm/driver/encoder/IEncoder.d.ts +22 -0
  321. package/esm/driver/encoder/implement/Base64Encoder.d.ts +11 -0
  322. package/esm/driver/encoder/implement/UrlEncoder.d.ts +6 -0
  323. package/esm/driver/encoder/implement/index.d.ts +2 -0
  324. package/esm/driver/encoder/index.d.ts +2 -0
  325. package/esm/driver/excel/BaseExcel.d.ts +9 -0
  326. package/esm/driver/excel/ExcelFactory.d.ts +13 -0
  327. package/esm/driver/excel/IExcel.d.ts +10 -0
  328. package/esm/driver/excel/implement/XlsxExcel.d.ts +10 -0
  329. package/esm/driver/excel/implement/index.d.ts +1 -0
  330. package/esm/driver/excel/index.d.ts +2 -0
  331. package/esm/driver/explainer/BaseExplainer.d.ts +4 -0
  332. package/esm/driver/explainer/ExplainerFactory.d.ts +6 -0
  333. package/esm/driver/explainer/IExplainer.d.ts +3 -0
  334. package/esm/driver/explainer/implement/JsonExplainer.d.ts +6 -0
  335. package/esm/driver/explainer/implement/index.d.ts +1 -0
  336. package/esm/driver/explainer/index.d.ts +1 -0
  337. package/esm/driver/feature/BaseFeature.d.ts +11 -0
  338. package/esm/driver/feature/FeatureFactory.d.ts +13 -0
  339. package/esm/driver/feature/IFeature.d.ts +18 -0
  340. package/esm/driver/feature/implement/ExpressionFeature.d.ts +10 -0
  341. package/esm/driver/feature/implement/I18NFeature.d.ts +10 -0
  342. package/esm/driver/feature/implement/SortFeature.d.ts +11 -0
  343. package/esm/driver/feature/implement/index.d.ts +3 -0
  344. package/esm/driver/feature/index.d.ts +2 -0
  345. package/esm/driver/hasher/BaseHasher.d.ts +9 -0
  346. package/esm/driver/hasher/HasherFactory.d.ts +18 -0
  347. package/esm/driver/hasher/IHasher.d.ts +14 -0
  348. package/esm/driver/hasher/implement/Md5Hasher.d.ts +10 -0
  349. package/esm/driver/hasher/implement/Sha256Hasher.d.ts +9 -0
  350. package/esm/driver/hasher/implement/index.d.ts +2 -0
  351. package/esm/driver/hasher/index.d.ts +2 -0
  352. package/esm/driver/http/BaseHttp.d.ts +47 -0
  353. package/esm/driver/http/HttpFactory.d.ts +19 -0
  354. package/esm/driver/http/IHttp.d.ts +47 -0
  355. package/esm/driver/http/entity/HttpMessage.d.ts +50 -0
  356. package/esm/driver/http/entity/HttpModel.d.ts +11 -0
  357. package/esm/driver/http/entity/HttpProgress.d.ts +8 -0
  358. package/esm/driver/http/entity/HttpRequest.d.ts +23 -0
  359. package/esm/driver/http/entity/HttpResponse.d.ts +31 -0
  360. package/esm/driver/http/entity/index.d.ts +4 -0
  361. package/esm/driver/http/implement/DefaultHttp.d.ts +24 -0
  362. package/esm/driver/http/implement/EiHttp.d.ts +27 -0
  363. package/esm/driver/http/implement/FeiShuHttp.d.ts +7 -0
  364. package/esm/driver/http/implement/HaloHttp.d.ts +40 -0
  365. package/esm/driver/http/implement/MkHttp.d.ts +29 -0
  366. package/esm/driver/http/implement/index.d.ts +5 -0
  367. package/esm/driver/http/index.d.ts +4 -0
  368. package/esm/driver/i18n/BaseI18n.d.ts +41 -0
  369. package/esm/driver/i18n/I18nFactory.d.ts +9 -0
  370. package/esm/driver/i18n/II18n.d.ts +83 -0
  371. package/esm/driver/i18n/implement/DefaultI18n.d.ts +12 -0
  372. package/esm/driver/i18n/implement/index.d.ts +1 -0
  373. package/esm/driver/i18n/index.d.ts +2 -0
  374. package/esm/driver/identity/BaseIdentity.d.ts +11 -0
  375. package/esm/driver/identity/IIdentity.d.ts +15 -0
  376. package/esm/driver/identity/IdentityFactory.d.ts +8 -0
  377. package/esm/driver/identity/entity/IdentityPayload.d.ts +5 -0
  378. package/esm/driver/identity/entity/index.d.ts +1 -0
  379. package/esm/driver/identity/implement/DefaultIdentity.d.ts +9 -0
  380. package/esm/driver/identity/implement/EiIdentity.d.ts +15 -0
  381. package/esm/driver/identity/implement/index.d.ts +2 -0
  382. package/esm/driver/identity/index.d.ts +3 -0
  383. package/esm/driver/index.d.ts +24 -0
  384. package/esm/driver/messenger/BaseMessenger.d.ts +14 -0
  385. package/esm/driver/messenger/IMessenger.d.ts +34 -0
  386. package/esm/driver/messenger/MessengerFactory.d.ts +13 -0
  387. package/esm/driver/messenger/implement/ConsoleMessenger.d.ts +14 -0
  388. package/esm/driver/messenger/implement/index.d.ts +1 -0
  389. package/esm/driver/messenger/index.d.ts +3 -0
  390. package/esm/driver/provider/BaseProvider.d.ts +20 -0
  391. package/esm/driver/provider/IProvider.d.ts +58 -0
  392. package/esm/driver/provider/ProviderFactory.d.ts +18 -0
  393. package/esm/driver/provider/helper/SqlHelper.d.ts +10 -0
  394. package/esm/driver/provider/helper/index.d.ts +1 -0
  395. package/esm/driver/provider/implement/CookieProvider.d.ts +15 -0
  396. package/esm/driver/provider/implement/IndexedDbProvider.d.ts +63 -0
  397. package/esm/driver/provider/implement/StorageProvider.d.ts +27 -0
  398. package/esm/driver/provider/implement/index.d.ts +3 -0
  399. package/esm/driver/provider/index.d.ts +3 -0
  400. package/esm/driver/signer/BaseSigner.d.ts +13 -0
  401. package/esm/driver/signer/ISigner.d.ts +20 -0
  402. package/esm/driver/signer/SignerFactory.d.ts +13 -0
  403. package/esm/driver/signer/entity/SignerInfo.d.ts +13 -0
  404. package/esm/driver/signer/entity/index.d.ts +1 -0
  405. package/esm/driver/signer/implement/DefaultSigner.d.ts +16 -0
  406. package/esm/driver/signer/implement/EiSigner.d.ts +21 -0
  407. package/esm/driver/signer/implement/index.d.ts +2 -0
  408. package/esm/driver/signer/index.d.ts +2 -0
  409. package/esm/driver/socket/@type/SubscribedWindow.d.ts +15 -0
  410. package/esm/driver/socket/@type/index.d.ts +1 -0
  411. package/esm/driver/socket/BaseSocket.d.ts +30 -0
  412. package/esm/driver/socket/ISocket.d.ts +38 -0
  413. package/esm/driver/socket/SocketFactory.d.ts +14 -0
  414. package/esm/driver/socket/entity/SocketProgress.d.ts +37 -0
  415. package/esm/driver/socket/entity/SocketResponse.d.ts +41 -0
  416. package/esm/driver/socket/entity/index.d.ts +2 -0
  417. package/esm/driver/socket/implement/DefaultSocket.d.ts +60 -0
  418. package/esm/driver/socket/implement/index.d.ts +1 -0
  419. package/esm/driver/socket/index.d.ts +3 -0
  420. package/esm/driver/sso/BaseSso.d.ts +14 -0
  421. package/esm/driver/sso/ISso.d.ts +27 -0
  422. package/esm/driver/sso/SsoFactory.d.ts +16 -0
  423. package/esm/driver/sso/entity/SsoInfo.d.ts +21 -0
  424. package/esm/driver/sso/entity/index.d.ts +1 -0
  425. package/esm/driver/sso/implement/AnonymousSso.d.ts +15 -0
  426. package/esm/driver/sso/implement/BearerSso.d.ts +18 -0
  427. package/esm/driver/sso/implement/NioSso.d.ts +20 -0
  428. package/esm/driver/sso/implement/SecretSso.d.ts +15 -0
  429. package/esm/driver/sso/implement/WeiXinSso.d.ts +11 -0
  430. package/esm/driver/sso/implement/index.d.ts +5 -0
  431. package/esm/driver/sso/index.d.ts +3 -0
  432. package/esm/driver/task/BaseTask.d.ts +14 -0
  433. package/esm/driver/task/ITask.d.ts +33 -0
  434. package/esm/driver/task/TaskFactory.d.ts +13 -0
  435. package/esm/driver/task/implement/MemoryTask.d.ts +29 -0
  436. package/esm/driver/task/implement/index.d.ts +1 -0
  437. package/esm/driver/task/index.d.ts +2 -0
  438. package/esm/driver/template/BaseTemplate.d.ts +5 -0
  439. package/esm/driver/template/ITemplate.d.ts +10 -0
  440. package/esm/driver/template/TemplateFactory.d.ts +13 -0
  441. package/esm/driver/template/implement/LiquidTemplate.d.ts +5 -0
  442. package/esm/driver/template/implement/index.d.ts +1 -0
  443. package/esm/driver/template/index.d.ts +2 -0
  444. package/esm/driver/util/@type/DomBound.d.ts +21 -0
  445. package/esm/driver/util/@type/DomRect.d.ts +21 -0
  446. package/esm/driver/util/@type/JsonConfig.d.ts +9 -0
  447. package/esm/driver/util/@type/Ref.d.ts +7 -0
  448. package/esm/driver/util/@type/TreeNodeProp.d.ts +8 -0
  449. package/esm/driver/util/@type/index.d.ts +5 -0
  450. package/esm/driver/util/BaseUtil.d.ts +7 -0
  451. package/esm/driver/util/IUtil.d.ts +7 -0
  452. package/esm/driver/util/UtilFactory.d.ts +34 -0
  453. package/esm/driver/util/implement/ArrayUtil.d.ts +137 -0
  454. package/esm/driver/util/implement/BrowserUtil.d.ts +11 -0
  455. package/esm/driver/util/implement/ComponentUtil.d.ts +36 -0
  456. package/esm/driver/util/implement/DictionaryUtil.d.ts +39 -0
  457. package/esm/driver/util/implement/DomUtil.d.ts +171 -0
  458. package/esm/driver/util/implement/EventUtil.d.ts +31 -0
  459. package/esm/driver/util/implement/FileUtil.d.ts +23 -0
  460. package/esm/driver/util/implement/HtmlUtil.d.ts +15 -0
  461. package/esm/driver/util/implement/ImageUtil.d.ts +11 -0
  462. package/esm/driver/util/implement/JsonUtil.d.ts +62 -0
  463. package/esm/driver/util/implement/MathUtil.d.ts +70 -0
  464. package/esm/driver/util/implement/MicroUtil.d.ts +11 -0
  465. package/esm/driver/util/implement/MountUtil.d.ts +15 -0
  466. package/esm/driver/util/implement/ObjectUtil.d.ts +99 -0
  467. package/esm/driver/util/implement/ScrollUtil.d.ts +15 -0
  468. package/esm/driver/util/implement/SignUtil.d.ts +15 -0
  469. package/esm/driver/util/implement/StringUtil.d.ts +107 -0
  470. package/esm/driver/util/implement/TaskUtil.d.ts +27 -0
  471. package/esm/driver/util/implement/TimeUtil.d.ts +71 -0
  472. package/esm/driver/util/implement/TreeUtil.d.ts +55 -0
  473. package/esm/driver/util/implement/UrlUtil.d.ts +105 -0
  474. package/esm/driver/util/implement/index.d.ts +21 -0
  475. package/esm/driver/util/index.d.ts +3 -0
  476. package/esm/driver/utility/@type/Position.d.ts +14 -0
  477. package/esm/driver/utility/@type/Rect.d.ts +9 -0
  478. package/esm/driver/utility/@type/index.d.ts +2 -0
  479. package/esm/driver/utility/BaseUtility.d.ts +7 -0
  480. package/esm/driver/utility/IUtility.d.ts +6 -0
  481. package/esm/driver/utility/UtilityFactory.d.ts +37 -0
  482. package/esm/driver/utility/implement/AffixUtility.d.ts +10 -0
  483. package/esm/driver/utility/implement/DeltaUtility.d.ts +10 -0
  484. package/esm/driver/utility/implement/EventUtility.d.ts +61 -0
  485. package/esm/driver/utility/implement/KeyboardUtility.d.ts +77 -0
  486. package/esm/driver/utility/implement/MouseUtility.d.ts +24 -0
  487. package/esm/driver/utility/implement/RandomUtility.d.ts +40 -0
  488. package/esm/driver/utility/implement/SaveUtility.d.ts +66 -0
  489. package/esm/driver/utility/implement/index.d.ts +7 -0
  490. package/esm/driver/utility/index.d.ts +3 -0
  491. package/esm/driver/video/IVideo.d.ts +3 -0
  492. package/esm/driver/video/VideoFactory.d.ts +6 -0
  493. package/esm/driver/video/index.d.ts +1 -0
  494. package/esm/driver/voice/BaseVoice.d.ts +10 -0
  495. package/esm/driver/voice/IVoice.d.ts +15 -0
  496. package/esm/driver/voice/VoiceFactory.d.ts +6 -0
  497. package/esm/driver/voice/implement/DefaultVoice.d.ts +7 -0
  498. package/esm/driver/voice/implement/TencentVoice.d.ts +10 -0
  499. package/esm/driver/voice/implement/index.d.ts +2 -0
  500. package/esm/driver/voice/index.d.ts +1 -0
  501. package/esm/factory/Drivers.d.ts +52 -0
  502. package/esm/factory/Factories.d.ts +10 -7
  503. package/esm/factory/Factory.d.ts +6 -8
  504. package/esm/factory/I18ns.d.ts +56 -0
  505. package/esm/factory/IFactory.d.ts +2 -3
  506. package/esm/factory/Repos.d.ts +22 -0
  507. package/esm/factory/Svcs.d.ts +90 -0
  508. package/esm/factory/Utilities.d.ts +33 -0
  509. package/esm/factory/Utils.d.ts +66 -4
  510. package/esm/factory/index.d.ts +8 -4
  511. package/esm/main.d.ts +13 -10
  512. package/esm/plugin/index.d.ts +3 -0
  513. package/esm/repo/BaseRepo.d.ts +7 -0
  514. package/esm/repo/IRepo.d.ts +3 -0
  515. package/esm/repo/RepoFactory.d.ts +21 -0
  516. package/esm/repo/entity/KeyboardType.d.ts +13 -0
  517. package/esm/repo/entity/index.d.ts +1 -0
  518. package/esm/repo/implement/ModuleRepo.d.ts +54 -0
  519. package/esm/repo/implement/QueryRepo.d.ts +63 -0
  520. package/esm/repo/implement/SettingRepo.d.ts +15 -0
  521. package/esm/repo/implement/index.d.ts +3 -0
  522. package/esm/repo/index.d.ts +5 -0
  523. package/esm/svc/BaseSvc.d.ts +7 -0
  524. package/esm/svc/ISvc.d.ts +6 -0
  525. package/esm/svc/SvcFactory.d.ts +14 -0
  526. package/esm/svc/entity/SysConfig.d.ts +29 -0
  527. package/esm/svc/entity/UserConfig.d.ts +6 -0
  528. package/esm/svc/entity/index.d.ts +2 -0
  529. package/esm/svc/implement/CompSvc.d.ts +31 -0
  530. package/esm/svc/implement/ConfigSvc.d.ts +71 -0
  531. package/esm/svc/implement/DriverSvc.d.ts +11 -0
  532. package/esm/svc/implement/EnvSvc.d.ts +13 -0
  533. package/esm/svc/implement/LogSvc.d.ts +21 -0
  534. package/esm/svc/implement/SettingSvc.d.ts +69 -0
  535. package/esm/svc/implement/UserSvc.d.ts +54 -0
  536. package/esm/svc/implement/index.d.ts +6 -0
  537. package/esm/svc/index.d.ts +3 -0
  538. package/package.json +15 -15
  539. package/dist/assets/clone-DtpAsLoe.js +0 -139
  540. package/dist/assets/file-saver-Cnua3zoa.js +0 -74
  541. package/dist/assets/liquidjs-BfOWWjtJ.js +0 -2907
  542. package/dist/assets/moment-h96o7c8I.js +0 -2578
  543. package/dist/assets/sprintf-js-BPTdvBYM.js +0 -148
  544. package/dist/assets/underscore-B0BCaBxV.js +0 -1070
  545. package/dist/assets/underscore.string-oDfap0sE.js +0 -425
  546. package/dist/assets/util-deprecate-BqFawLoO.js +0 -28
  547. package/dist/style.css +0 -1
  548. package/esm/@types/CreateFeOptions.d.ts +0 -29
  549. package/esm/@types/index.d.ts +0 -2
  550. package/esm/apps/AppConstant.d.ts +0 -3
  551. package/esm/apps/index.d.ts +0 -2
  552. package/esm/coms/@types/PagerEmit.d.ts +0 -11
  553. package/esm/coms/@types/PagerProps.d.ts +0 -18
  554. package/esm/coms/@types/ScrollerProps.d.ts +0 -15
  555. package/esm/coms/@types/SocketProgressProps.d.ts +0 -43
  556. package/esm/coms/@types/TabProps.d.ts +0 -11
  557. package/esm/coms/@types/TableEmit.d.ts +0 -10
  558. package/esm/coms/@types/TableProps.d.ts +0 -34
  559. package/esm/coms/@types/index.d.ts +0 -8
  560. package/esm/coms/Empty.vue.d.ts +0 -31
  561. package/esm/coms/Fill.vue.d.ts +0 -22
  562. package/esm/coms/Progress.vue.d.ts +0 -8
  563. package/esm/coms/Scroller.vue.d.ts +0 -29
  564. package/esm/coms/Timer.vue.d.ts +0 -25
  565. package/esm/coms/cards/Index.vue.d.ts +0 -16
  566. package/esm/coms/conditions/@types/ConditionGroupProps.d.ts +0 -11
  567. package/esm/coms/conditions/@types/ConditionProps.d.ts +0 -18
  568. package/esm/coms/conditions/@types/index.d.ts +0 -3
  569. package/esm/coms/conditions/Condition.vue.d.ts +0 -3
  570. package/esm/coms/conditions/Index.vue.d.ts +0 -3
  571. package/esm/coms/conditions/types/ConditionGroupProps.d.ts +0 -11
  572. package/esm/coms/conditions/types/ConditionProps.d.ts +0 -18
  573. package/esm/coms/conditions/types/index.d.ts +0 -3
  574. package/esm/coms/controls/@types/CodeEmit.d.ts +0 -23
  575. package/esm/coms/controls/@types/CodeIntelli.d.ts +0 -6
  576. package/esm/coms/controls/@types/CodeProps.d.ts +0 -57
  577. package/esm/coms/controls/@types/Range.d.ts +0 -26
  578. package/esm/coms/controls/@types/RichTextOptions.d.ts +0 -14
  579. package/esm/coms/controls/@types/RichTextProps.d.ts +0 -12
  580. package/esm/coms/controls/@types/index.d.ts +0 -6
  581. package/esm/coms/controls/Code.vue.d.ts +0 -30
  582. package/esm/coms/controls/Compare.vue.d.ts +0 -40
  583. package/esm/coms/controls/RichText.vue.d.ts +0 -13
  584. package/esm/coms/controls/Select.vue.d.ts +0 -2
  585. package/esm/coms/controls/index.d.ts +0 -8
  586. package/esm/coms/controls/types/CodeEmit.d.ts +0 -23
  587. package/esm/coms/controls/types/CodeProps.d.ts +0 -28
  588. package/esm/coms/controls/types/Range.d.ts +0 -26
  589. package/esm/coms/controls/types/RichTextOptions.d.ts +0 -14
  590. package/esm/coms/controls/types/RichTextProps.d.ts +0 -12
  591. package/esm/coms/controls/types/index.d.ts +0 -6
  592. package/esm/coms/index.d.ts +0 -15
  593. package/esm/coms/layouts/@types/RowProps.d.ts +0 -14
  594. package/esm/coms/layouts/@types/index.d.ts +0 -2
  595. package/esm/coms/layouts/Col.vue.d.ts +0 -16
  596. package/esm/coms/layouts/Container.vue.d.ts +0 -32
  597. package/esm/coms/layouts/Desc.vue.d.ts +0 -2
  598. package/esm/coms/layouts/Row.vue.d.ts +0 -21
  599. package/esm/coms/layouts/index.d.ts +0 -5
  600. package/esm/coms/layouts/types/RowProps.d.ts +0 -14
  601. package/esm/coms/layouts/types/index.d.ts +0 -2
  602. package/esm/coms/pagers/Index.vue.d.ts +0 -9
  603. package/esm/coms/progresses/@types/SocketProgressProps.d.ts +0 -23
  604. package/esm/coms/progresses/@types/index.d.ts +0 -2
  605. package/esm/coms/progresses/Circle.vue.d.ts +0 -2
  606. package/esm/coms/progresses/Index.vue.d.ts +0 -9
  607. package/esm/coms/progresses/Progress.vue.d.ts +0 -6
  608. package/esm/coms/progresses/SocketProgress.vue.d.ts +0 -17
  609. package/esm/coms/progresses/index.d.ts +0 -4
  610. package/esm/coms/progresses/types/SocketProgressProps.d.ts +0 -23
  611. package/esm/coms/progresses/types/index.d.ts +0 -2
  612. package/esm/coms/tables/Index.vue.d.ts +0 -33
  613. package/esm/coms/tables/Table.vue.d.ts +0 -2
  614. package/esm/coms/tabs/@types/TabProps.d.ts +0 -7
  615. package/esm/coms/tabs/@types/index.d.ts +0 -2
  616. package/esm/coms/tabs/Tab.vue.d.ts +0 -3
  617. package/esm/coms/tabs/TabPane.vue.d.ts +0 -2
  618. package/esm/coms/tabs/index.d.ts +0 -2
  619. package/esm/coms/tabs/types/TabProps.d.ts +0 -7
  620. package/esm/coms/tabs/types/index.d.ts +0 -2
  621. package/esm/coms/tags/@types/TagProps.d.ts +0 -7
  622. package/esm/coms/tags/@types/index.d.ts +0 -2
  623. package/esm/coms/tags/Index.vue.d.ts +0 -17
  624. package/esm/coms/texts/@types/DanceProps.d.ts +0 -14
  625. package/esm/coms/texts/@types/index.d.ts +0 -2
  626. package/esm/coms/texts/Dance.vue.d.ts +0 -5
  627. package/esm/coms/types/ScrollerProps.d.ts +0 -15
  628. package/esm/coms/types/index.d.ts +0 -2
  629. package/esm/drivers/@types/IDispose.d.ts +0 -10
  630. package/esm/drivers/@types/IDriver.d.ts +0 -10
  631. package/esm/drivers/@types/IOpen.d.ts +0 -10
  632. package/esm/drivers/@types/index.d.ts +0 -4
  633. package/esm/drivers/bridges/IBridge.d.ts +0 -7
  634. package/esm/drivers/builders/Builder.d.ts +0 -11
  635. package/esm/drivers/builders/BuilderFactory.d.ts +0 -10
  636. package/esm/drivers/builders/IBuilder.d.ts +0 -16
  637. package/esm/drivers/builders/entities/ProviderTable.d.ts +0 -22
  638. package/esm/drivers/builders/entities/index.d.ts +0 -2
  639. package/esm/drivers/builders/implement/JsonBuilder.d.ts +0 -8
  640. package/esm/drivers/builders/implement/MongoBuilder.d.ts +0 -11
  641. package/esm/drivers/builders/implement/MySqlBuilder.d.ts +0 -8
  642. package/esm/drivers/builders/implement/SqlBuilder.d.ts +0 -11
  643. package/esm/drivers/builders/index.d.ts +0 -4
  644. package/esm/drivers/builders/types/ProviderTable.d.ts +0 -6
  645. package/esm/drivers/builders/types/index.d.ts +0 -2
  646. package/esm/drivers/cdns/Cdn.d.ts +0 -35
  647. package/esm/drivers/cdns/CdnFactory.d.ts +0 -14
  648. package/esm/drivers/cdns/ICdn.d.ts +0 -47
  649. package/esm/drivers/cdns/implements/LocalCdn.d.ts +0 -17
  650. package/esm/drivers/cdns/implements/ThirdCdn.d.ts +0 -29
  651. package/esm/drivers/cdns/index.d.ts +0 -4
  652. package/esm/drivers/cryptors/Cryptor.d.ts +0 -11
  653. package/esm/drivers/cryptors/CryptorFactory.d.ts +0 -13
  654. package/esm/drivers/cryptors/ICryptor.d.ts +0 -15
  655. package/esm/drivers/cryptors/implements/AesCryptor.d.ts +0 -10
  656. package/esm/drivers/cryptors/index.d.ts +0 -3
  657. package/esm/drivers/encoders/Encoder.d.ts +0 -16
  658. package/esm/drivers/encoders/EncoderFactory.d.ts +0 -19
  659. package/esm/drivers/encoders/IEncoder.d.ts +0 -23
  660. package/esm/drivers/encoders/implement/Base64Encoder.d.ts +0 -12
  661. package/esm/drivers/encoders/implement/UrlEncoder.d.ts +0 -7
  662. package/esm/drivers/encoders/index.d.ts +0 -3
  663. package/esm/drivers/encryptors/Encryptor.d.ts +0 -11
  664. package/esm/drivers/encryptors/EncryptorFactory.d.ts +0 -13
  665. package/esm/drivers/encryptors/IEncryptor.d.ts +0 -15
  666. package/esm/drivers/encryptors/implements/AesEncryptor.d.ts +0 -10
  667. package/esm/drivers/encryptors/index.d.ts +0 -3
  668. package/esm/drivers/excels/Excel.d.ts +0 -10
  669. package/esm/drivers/excels/ExcelFactory.d.ts +0 -14
  670. package/esm/drivers/excels/IExcel.d.ts +0 -11
  671. package/esm/drivers/excels/implements/XlsxExcel.d.ts +0 -11
  672. package/esm/drivers/excels/index.d.ts +0 -3
  673. package/esm/drivers/explainers/Explainer.d.ts +0 -5
  674. package/esm/drivers/explainers/ExplainerFactory.d.ts +0 -7
  675. package/esm/drivers/explainers/IExplainer.d.ts +0 -4
  676. package/esm/drivers/explainers/implement/JsonExplainer.d.ts +0 -7
  677. package/esm/drivers/explainers/index.d.ts +0 -2
  678. package/esm/drivers/features/Feature.d.ts +0 -9
  679. package/esm/drivers/features/FeatureFactory.d.ts +0 -14
  680. package/esm/drivers/features/IFeature.d.ts +0 -19
  681. package/esm/drivers/features/implements/ExpressionFeature.d.ts +0 -11
  682. package/esm/drivers/features/implements/I18NFeature.d.ts +0 -11
  683. package/esm/drivers/features/implements/SortFeature.d.ts +0 -12
  684. package/esm/drivers/features/index.d.ts +0 -3
  685. package/esm/drivers/hashers/Hasher.d.ts +0 -10
  686. package/esm/drivers/hashers/HasherFactory.d.ts +0 -19
  687. package/esm/drivers/hashers/IHasher.d.ts +0 -15
  688. package/esm/drivers/hashers/implement/Md5Hasher.d.ts +0 -11
  689. package/esm/drivers/hashers/implement/Sha256Hasher.d.ts +0 -10
  690. package/esm/drivers/hashers/index.d.ts +0 -3
  691. package/esm/drivers/helpers/@types/JsonConfig.d.ts +0 -10
  692. package/esm/drivers/helpers/@types/TreeNodeProp.d.ts +0 -9
  693. package/esm/drivers/helpers/@types/index.d.ts +0 -3
  694. package/esm/drivers/helpers/Helper.d.ts +0 -8
  695. package/esm/drivers/helpers/HelperFactory.d.ts +0 -32
  696. package/esm/drivers/helpers/IHelper.d.ts +0 -4
  697. package/esm/drivers/helpers/implements/ArrayHelper.d.ts +0 -123
  698. package/esm/drivers/helpers/implements/BrowserHelper.d.ts +0 -12
  699. package/esm/drivers/helpers/implements/ComponentHelper.d.ts +0 -20
  700. package/esm/drivers/helpers/implements/DictionaryHelper.d.ts +0 -40
  701. package/esm/drivers/helpers/implements/DomHelper.d.ts +0 -118
  702. package/esm/drivers/helpers/implements/EventHelper.d.ts +0 -32
  703. package/esm/drivers/helpers/implements/FileHelper.d.ts +0 -24
  704. package/esm/drivers/helpers/implements/HtmlHelper.d.ts +0 -16
  705. package/esm/drivers/helpers/implements/ImageHelper.d.ts +0 -12
  706. package/esm/drivers/helpers/implements/JsonHelper.d.ts +0 -49
  707. package/esm/drivers/helpers/implements/MathHelper.d.ts +0 -52
  708. package/esm/drivers/helpers/implements/MicroHelper.d.ts +0 -12
  709. package/esm/drivers/helpers/implements/MountHelper.d.ts +0 -16
  710. package/esm/drivers/helpers/implements/ObjectHelper.d.ts +0 -44
  711. package/esm/drivers/helpers/implements/ScrollHelper.d.ts +0 -16
  712. package/esm/drivers/helpers/implements/SignHelper.d.ts +0 -16
  713. package/esm/drivers/helpers/implements/StringHelper.d.ts +0 -104
  714. package/esm/drivers/helpers/implements/TaskHelper.d.ts +0 -28
  715. package/esm/drivers/helpers/implements/TimeHelper.d.ts +0 -68
  716. package/esm/drivers/helpers/implements/TreeHelper.d.ts +0 -56
  717. package/esm/drivers/helpers/implements/TypeHelper.d.ts +0 -28
  718. package/esm/drivers/helpers/implements/UrlHelper.d.ts +0 -90
  719. package/esm/drivers/helpers/index.d.ts +0 -24
  720. package/esm/drivers/https/Http.d.ts +0 -49
  721. package/esm/drivers/https/HttpFactory.d.ts +0 -19
  722. package/esm/drivers/https/IHttp.d.ts +0 -49
  723. package/esm/drivers/https/entities/HttpMessage.d.ts +0 -51
  724. package/esm/drivers/https/entities/HttpModel.d.ts +0 -12
  725. package/esm/drivers/https/entities/HttpProgress.d.ts +0 -9
  726. package/esm/drivers/https/entities/HttpRequest.d.ts +0 -24
  727. package/esm/drivers/https/entities/HttpResponse.d.ts +0 -32
  728. package/esm/drivers/https/entities/index.d.ts +0 -4
  729. package/esm/drivers/https/implements/DefaultHttp.d.ts +0 -26
  730. package/esm/drivers/https/implements/EiHttp.d.ts +0 -32
  731. package/esm/drivers/https/implements/FeiShuHttp.d.ts +0 -8
  732. package/esm/drivers/https/implements/HaloHttp.d.ts +0 -41
  733. package/esm/drivers/https/implements/MkHttp.d.ts +0 -30
  734. package/esm/drivers/https/index.d.ts +0 -5
  735. package/esm/drivers/i18ns/I18n.d.ts +0 -42
  736. package/esm/drivers/i18ns/I18nFactory.d.ts +0 -10
  737. package/esm/drivers/i18ns/II18n.d.ts +0 -84
  738. package/esm/drivers/i18ns/implements/DefaultI18n.d.ts +0 -13
  739. package/esm/drivers/i18ns/index.d.ts +0 -3
  740. package/esm/drivers/index.d.ts +0 -73
  741. package/esm/drivers/messengers/IMessenger.d.ts +0 -35
  742. package/esm/drivers/messengers/Messenger.d.ts +0 -15
  743. package/esm/drivers/messengers/MessengerFactory.d.ts +0 -14
  744. package/esm/drivers/messengers/implement/ConsoleMessenger.d.ts +0 -15
  745. package/esm/drivers/messengers/index.d.ts +0 -4
  746. package/esm/drivers/providers/IProvider.d.ts +0 -59
  747. package/esm/drivers/providers/Provider.d.ts +0 -21
  748. package/esm/drivers/providers/ProviderFactory.d.ts +0 -19
  749. package/esm/drivers/providers/helpers/SqlHelper.d.ts +0 -11
  750. package/esm/drivers/providers/helpers/index.d.ts +0 -2
  751. package/esm/drivers/providers/implements/CookieProvider.d.ts +0 -16
  752. package/esm/drivers/providers/implements/IndexedDbProvider.d.ts +0 -64
  753. package/esm/drivers/providers/implements/StorageProvider.d.ts +0 -28
  754. package/esm/drivers/providers/index.d.ts +0 -4
  755. package/esm/drivers/signers/ISigner.d.ts +0 -33
  756. package/esm/drivers/signers/Signer.d.ts +0 -16
  757. package/esm/drivers/signers/SignerFactory.d.ts +0 -14
  758. package/esm/drivers/signers/implements/DefaultSigner.d.ts +0 -16
  759. package/esm/drivers/signers/index.d.ts +0 -3
  760. package/esm/drivers/sockets/@types/SubscribedWindow.d.ts +0 -16
  761. package/esm/drivers/sockets/@types/index.d.ts +0 -2
  762. package/esm/drivers/sockets/ISocket.d.ts +0 -39
  763. package/esm/drivers/sockets/Socket.d.ts +0 -31
  764. package/esm/drivers/sockets/SocketFactory.d.ts +0 -14
  765. package/esm/drivers/sockets/entities/SocketProgress.d.ts +0 -38
  766. package/esm/drivers/sockets/entities/SocketResponse.d.ts +0 -42
  767. package/esm/drivers/sockets/entities/index.d.ts +0 -3
  768. package/esm/drivers/sockets/implement/DefaultSocket.d.ts +0 -37
  769. package/esm/drivers/sockets/index.d.ts +0 -4
  770. package/esm/drivers/ssos/ISso.d.ts +0 -35
  771. package/esm/drivers/ssos/Sso.d.ts +0 -18
  772. package/esm/drivers/ssos/SsoFactory.d.ts +0 -17
  773. package/esm/drivers/ssos/entities/SsoUser.d.ts +0 -22
  774. package/esm/drivers/ssos/entities/index.d.ts +0 -2
  775. package/esm/drivers/ssos/implements/AnonymousSso.d.ts +0 -20
  776. package/esm/drivers/ssos/implements/BearerSso.d.ts +0 -23
  777. package/esm/drivers/ssos/implements/NioSso.d.ts +0 -25
  778. package/esm/drivers/ssos/implements/SecretSso.d.ts +0 -20
  779. package/esm/drivers/ssos/implements/WeiXinSso.d.ts +0 -17
  780. package/esm/drivers/ssos/index.d.ts +0 -4
  781. package/esm/drivers/tasks/ITask.d.ts +0 -34
  782. package/esm/drivers/tasks/Task.d.ts +0 -15
  783. package/esm/drivers/tasks/TaskFactory.d.ts +0 -10
  784. package/esm/drivers/tasks/implement/MemoryTask.d.ts +0 -30
  785. package/esm/drivers/tasks/index.d.ts +0 -3
  786. package/esm/drivers/templates/ITemplate.d.ts +0 -11
  787. package/esm/drivers/templates/Template.d.ts +0 -6
  788. package/esm/drivers/templates/TemplateFactory.d.ts +0 -10
  789. package/esm/drivers/templates/implement/LiquidTemplate.d.ts +0 -6
  790. package/esm/drivers/templates/index.d.ts +0 -3
  791. package/esm/drivers/types/IDispose.d.ts +0 -10
  792. package/esm/drivers/types/IDriver.d.ts +0 -10
  793. package/esm/drivers/types/IOpen.d.ts +0 -10
  794. package/esm/drivers/types/index.d.ts +0 -4
  795. package/esm/drivers/util/@types/JsonConfig.d.ts +0 -10
  796. package/esm/drivers/util/@types/TreeNodeProp.d.ts +0 -9
  797. package/esm/drivers/util/@types/index.d.ts +0 -3
  798. package/esm/drivers/util/IUtil.d.ts +0 -8
  799. package/esm/drivers/util/Util.d.ts +0 -8
  800. package/esm/drivers/util/UtilFactory.d.ts +0 -32
  801. package/esm/drivers/util/implements/ArrayUtil.d.ts +0 -123
  802. package/esm/drivers/util/implements/BrowserUtil.d.ts +0 -12
  803. package/esm/drivers/util/implements/ComponentUtil.d.ts +0 -20
  804. package/esm/drivers/util/implements/DictionaryUtil.d.ts +0 -40
  805. package/esm/drivers/util/implements/DomUtil.d.ts +0 -118
  806. package/esm/drivers/util/implements/EventUtil.d.ts +0 -32
  807. package/esm/drivers/util/implements/FileUtil.d.ts +0 -24
  808. package/esm/drivers/util/implements/HtmlUtil.d.ts +0 -16
  809. package/esm/drivers/util/implements/ImageUtil.d.ts +0 -12
  810. package/esm/drivers/util/implements/JsonUtil.d.ts +0 -66
  811. package/esm/drivers/util/implements/MathUtil.d.ts +0 -52
  812. package/esm/drivers/util/implements/MicroUtil.d.ts +0 -12
  813. package/esm/drivers/util/implements/MountUtil.d.ts +0 -16
  814. package/esm/drivers/util/implements/ObjectUtil.d.ts +0 -72
  815. package/esm/drivers/util/implements/ScrollUtil.d.ts +0 -16
  816. package/esm/drivers/util/implements/SignUtil.d.ts +0 -16
  817. package/esm/drivers/util/implements/StringUtil.d.ts +0 -108
  818. package/esm/drivers/util/implements/TaskUtil.d.ts +0 -28
  819. package/esm/drivers/util/implements/TimeUtil.d.ts +0 -72
  820. package/esm/drivers/util/implements/TreeUtil.d.ts +0 -56
  821. package/esm/drivers/util/implements/TypeUtil.d.ts +0 -28
  822. package/esm/drivers/util/implements/UrlUtil.d.ts +0 -100
  823. package/esm/drivers/util/index.d.ts +0 -23
  824. package/esm/drivers/utilities/@types/DragEvent.d.ts +0 -11
  825. package/esm/drivers/utilities/@types/DragOptions.d.ts +0 -28
  826. package/esm/drivers/utilities/@types/Position.d.ts +0 -15
  827. package/esm/drivers/utilities/@types/Rect.d.ts +0 -10
  828. package/esm/drivers/utilities/@types/index.d.ts +0 -5
  829. package/esm/drivers/utilities/IUtility.d.ts +0 -7
  830. package/esm/drivers/utilities/Utility.d.ts +0 -8
  831. package/esm/drivers/utilities/UtilityFactory.d.ts +0 -44
  832. package/esm/drivers/utilities/implement/AffixUtility.d.ts +0 -11
  833. package/esm/drivers/utilities/implement/DeltaUtility.d.ts +0 -11
  834. package/esm/drivers/utilities/implement/EventUtility.d.ts +0 -70
  835. package/esm/drivers/utilities/implement/KeyboardUtility.d.ts +0 -74
  836. package/esm/drivers/utilities/implement/MouseUtility.d.ts +0 -25
  837. package/esm/drivers/utilities/implement/RandomUtility.d.ts +0 -41
  838. package/esm/drivers/utilities/implement/SaveUtility.d.ts +0 -61
  839. package/esm/drivers/utilities/index.d.ts +0 -9
  840. package/esm/drivers/videos/IVideo.d.ts +0 -4
  841. package/esm/drivers/videos/VideoFactory.d.ts +0 -7
  842. package/esm/drivers/videos/index.d.ts +0 -2
  843. package/esm/drivers/voices/IVoice.d.ts +0 -15
  844. package/esm/drivers/voices/Voice.d.ts +0 -11
  845. package/esm/drivers/voices/VoiceFactory.d.ts +0 -7
  846. package/esm/drivers/voices/implement/DefaultVoice.d.ts +0 -8
  847. package/esm/drivers/voices/implement/TencentVoice.d.ts +0 -11
  848. package/esm/drivers/voices/index.d.ts +0 -2
  849. package/esm/factorying/Factories.d.ts +0 -94
  850. package/esm/factorying/Factory.d.ts +0 -49
  851. package/esm/factorying/Helps.d.ts +0 -29
  852. package/esm/factorying/IFactory.d.ts +0 -39
  853. package/esm/factorying/Utils.d.ts +0 -29
  854. package/esm/factorying/index.d.ts +0 -47
  855. package/esm/helpers/@types/JsonConfig.d.ts +0 -10
  856. package/esm/helpers/@types/TreeNodeProp.d.ts +0 -9
  857. package/esm/helpers/@types/index.d.ts +0 -3
  858. package/esm/helpers/ArrayHelper.d.ts +0 -122
  859. package/esm/helpers/BrowserHelper.d.ts +0 -10
  860. package/esm/helpers/ComponentHelper.d.ts +0 -18
  861. package/esm/helpers/DictionaryHelper.d.ts +0 -38
  862. package/esm/helpers/DomHelper.d.ts +0 -116
  863. package/esm/helpers/EventHelper.d.ts +0 -30
  864. package/esm/helpers/FileHelper.d.ts +0 -22
  865. package/esm/helpers/HtmlHelper.d.ts +0 -14
  866. package/esm/helpers/ImageHelper.d.ts +0 -10
  867. package/esm/helpers/JsonHelper.d.ts +0 -47
  868. package/esm/helpers/MathHelper.d.ts +0 -50
  869. package/esm/helpers/MicroHelper.d.ts +0 -10
  870. package/esm/helpers/MountHelper.d.ts +0 -14
  871. package/esm/helpers/ObjectHelper.d.ts +0 -42
  872. package/esm/helpers/ScrollHelper.d.ts +0 -14
  873. package/esm/helpers/SignHelper.d.ts +0 -14
  874. package/esm/helpers/StringHelper.d.ts +0 -102
  875. package/esm/helpers/TaskHelper.d.ts +0 -26
  876. package/esm/helpers/TimeHelper.d.ts +0 -66
  877. package/esm/helpers/TreeHelper.d.ts +0 -54
  878. package/esm/helpers/TypeHelper.d.ts +0 -26
  879. package/esm/helpers/UrlHelper.d.ts +0 -88
  880. package/esm/helpers/index.d.ts +0 -23
  881. package/esm/helpers/types/JsonConfig.d.ts +0 -10
  882. package/esm/helpers/types/TreeNodeProp.d.ts +0 -9
  883. package/esm/helpers/types/index.d.ts +0 -3
  884. package/esm/plugins/Ref.d.ts +0 -7
  885. package/esm/plugins/index.d.ts +0 -4
  886. package/esm/repos/IRepo.d.ts +0 -4
  887. package/esm/repos/Repo.d.ts +0 -5
  888. package/esm/repos/RepoFactory.d.ts +0 -24
  889. package/esm/repos/SettingRepo.d.ts +0 -11
  890. package/esm/repos/entities/KeyboardType.d.ts +0 -8
  891. package/esm/repos/entities/index.d.ts +0 -2
  892. package/esm/repos/implements/ModuleRepo.d.ts +0 -53
  893. package/esm/repos/implements/PageRepo.d.ts +0 -30
  894. package/esm/repos/implements/QueryRepo.d.ts +0 -64
  895. package/esm/repos/implements/SettingRepo.d.ts +0 -16
  896. package/esm/repos/index.d.ts +0 -13
  897. package/esm/svcs/@types/Dictionary.d.ts +0 -4
  898. package/esm/svcs/@types/index.d.ts +0 -1
  899. package/esm/svcs/ISvc.d.ts +0 -7
  900. package/esm/svcs/Svc.d.ts +0 -5
  901. package/esm/svcs/SvcFactory.d.ts +0 -15
  902. package/esm/svcs/entities/AppConfig.d.ts +0 -30
  903. package/esm/svcs/entities/SysConfig.d.ts +0 -8
  904. package/esm/svcs/entities/UserConfig.d.ts +0 -7
  905. package/esm/svcs/entities/index.d.ts +0 -4
  906. package/esm/svcs/implement/ConfigSvc.d.ts +0 -72
  907. package/esm/svcs/implement/DriverSvc.d.ts +0 -12
  908. package/esm/svcs/implement/EnvSvc.d.ts +0 -14
  909. package/esm/svcs/implement/I18nSvc.d.ts +0 -83
  910. package/esm/svcs/implement/LogSvc.d.ts +0 -22
  911. package/esm/svcs/implement/SettingSvc.d.ts +0 -70
  912. package/esm/svcs/implement/SocketSvc.d.ts +0 -38
  913. package/esm/svcs/implement/UserSvc.d.ts +0 -55
  914. package/esm/svcs/implement/index.d.ts +0 -1
  915. package/esm/svcs/index.d.ts +0 -52
  916. package/esm/svcs/types/Dictionary.d.ts +0 -4
  917. package/esm/svcs/types/index.d.ts +0 -2
  918. package/esm/types/CreateFeOptions.d.ts +0 -25
  919. package/esm/types/CreatePcOptions.d.ts +0 -15
  920. package/esm/types/index.d.ts +0 -2
  921. package/esm/utilities/@types/DragEvent.d.ts +0 -11
  922. package/esm/utilities/@types/DragOptions.d.ts +0 -28
  923. package/esm/utilities/@types/Position.d.ts +0 -15
  924. package/esm/utilities/@types/Rect.d.ts +0 -10
  925. package/esm/utilities/@types/index.d.ts +0 -5
  926. package/esm/utilities/AffixUtility.d.ts +0 -10
  927. package/esm/utilities/EventUtility.d.ts +0 -72
  928. package/esm/utilities/KeyboardUtility.d.ts +0 -73
  929. package/esm/utilities/ListDelta.d.ts +0 -10
  930. package/esm/utilities/MathUtility.d.ts +0 -35
  931. package/esm/utilities/MouseUtility.d.ts +0 -24
  932. package/esm/utilities/RandomUtility.d.ts +0 -40
  933. package/esm/utilities/SaveUtility.d.ts +0 -15
  934. package/esm/utilities/index.d.ts +0 -8
  935. package/esm/utilities/types/DragEvent.d.ts +0 -11
  936. package/esm/utilities/types/DragOptions.d.ts +0 -28
  937. package/esm/utilities/types/Position.d.ts +0 -15
  938. package/esm/utilities/types/Range.d.ts +0 -10
  939. package/esm/utilities/types/Rect.d.ts +0 -10
  940. package/esm/utilities/types/index.d.ts +0 -5
  941. /package/esm/{coms/cards → comp/card}/index.d.ts +0 -0
  942. /package/esm/{coms/conditions → comp/condition}/index.d.ts +0 -0
  943. /package/esm/{coms/controls/Input.vue.d.ts → comp/datetime/Time.vue.d.ts} +0 -0
  944. /package/esm/{coms/controls/Option.vue.d.ts → comp/datetime/TimeRange.vue.d.ts} +0 -0
  945. /package/esm/{coms/pagers → comp/pager}/index.d.ts +0 -0
  946. /package/esm/{coms/progresses → comp/progress}/Spinner.vue.d.ts +0 -0
  947. /package/esm/{coms/tags → comp/tag}/index.d.ts +0 -0
  948. /package/esm/{coms/texts → comp/text}/index.d.ts +0 -0
  949. /package/esm/{coms/tables → driver/bridge}/index.d.ts +0 -0
  950. /package/esm/{drivers/bridges → svc/@type}/index.d.ts +0 -0
@@ -0,0 +1,3351 @@
1
+ class R {
2
+ constructor(e, s, i, r, n) {
3
+ this.kind = e, this.input = s, this.begin = i, this.end = r, this.file = n;
4
+ }
5
+ getText() {
6
+ return this.input.slice(this.begin, this.end);
7
+ }
8
+ getPosition() {
9
+ let [e, s] = [1, 1];
10
+ for (let i = 0; i < this.begin; i++)
11
+ this.input[i] === `
12
+ ` ? (e++, s = 1) : s++;
13
+ return [e, s];
14
+ }
15
+ size() {
16
+ return this.end - this.begin;
17
+ }
18
+ }
19
+ class Y {
20
+ liquidMethodMissing(e) {
21
+ }
22
+ }
23
+ const jt = Object.prototype.toString, qe = String.prototype.toLowerCase, _e = Object.hasOwnProperty;
24
+ function f(t) {
25
+ return typeof t == "string";
26
+ }
27
+ function v(t) {
28
+ return typeof t == "function";
29
+ }
30
+ function Pt(t) {
31
+ return t && v(t.then);
32
+ }
33
+ function le(t) {
34
+ return t && v(t.next) && v(t.throw) && v(t.return);
35
+ }
36
+ function It(t) {
37
+ return t.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
38
+ }
39
+ function u(t) {
40
+ return t = d(t), f(t) ? t : z(t) ? "" : x(t) ? t.map((e) => u(e)).join("") : String(t);
41
+ }
42
+ function ie(t) {
43
+ return t = d(t), x(t) ? t : f(t) && t.length > 0 ? [t] : Ut(t) ? Array.from(t) : pe(t) ? Object.keys(t).map((e) => [e, t[e]]) : [];
44
+ }
45
+ function S(t) {
46
+ return t = d(t), z(t) ? [] : x(t) ? t : [t];
47
+ }
48
+ function d(t) {
49
+ return t instanceof Y && v(t.valueOf) ? t.valueOf() : t;
50
+ }
51
+ function Ce(t) {
52
+ return t = Number(t), isNaN(t) ? 0 : t;
53
+ }
54
+ function de(t) {
55
+ return typeof t == "number";
56
+ }
57
+ function ft(t) {
58
+ return t && v(t.toLiquid) ? ft(t.toLiquid()) : t;
59
+ }
60
+ function z(t) {
61
+ return t == null;
62
+ }
63
+ function Bt(t) {
64
+ return t === void 0;
65
+ }
66
+ function x(t) {
67
+ return jt.call(t) === "[object Array]";
68
+ }
69
+ function dt(t) {
70
+ return t && de(t.length);
71
+ }
72
+ function Ut(t) {
73
+ return pe(t) && Symbol.iterator in t;
74
+ }
75
+ function $e(t, e) {
76
+ t = t || {};
77
+ for (const s in t)
78
+ if (_e.call(t, s) && e(t[s], s, t) === !1)
79
+ break;
80
+ return t;
81
+ }
82
+ function pt(t) {
83
+ return t[t.length - 1];
84
+ }
85
+ function pe(t) {
86
+ const e = typeof t;
87
+ return t !== null && (e === "object" || e === "function");
88
+ }
89
+ function gt(t, e, s = 1) {
90
+ const i = [];
91
+ for (let r = t; r < e; r += s)
92
+ i.push(r);
93
+ return i;
94
+ }
95
+ function se(t, e, s = " ") {
96
+ return mt(t, e, s, (i, r) => r + i);
97
+ }
98
+ function Ht(t, e, s = " ") {
99
+ return mt(t, e, s, (i, r) => i + r);
100
+ }
101
+ function mt(t, e, s, i) {
102
+ t = String(t);
103
+ let r = e - t.length;
104
+ for (; r-- > 0; )
105
+ t = i(t, s);
106
+ return t;
107
+ }
108
+ function yt(t) {
109
+ return t;
110
+ }
111
+ function Wt(t) {
112
+ return [...t].some((s) => s >= "a" && s <= "z") ? t.toUpperCase() : t.toLowerCase();
113
+ }
114
+ function Yt(t, e) {
115
+ return t.length > e ? t.slice(0, e - 3) + "..." : t;
116
+ }
117
+ function je(t, e) {
118
+ return t == null && e == null ? 0 : t == null ? 1 : e == null || (t = qe.call(t), e = qe.call(e), t < e) ? -1 : t > e ? 1 : 0;
119
+ }
120
+ function O(t) {
121
+ return function(...e) {
122
+ return t.call(this, ...e.map(d));
123
+ };
124
+ }
125
+ function Fe(t) {
126
+ return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
127
+ }
128
+ function* re(t) {
129
+ const e = /* @__PURE__ */ new Set();
130
+ for (const s of t) {
131
+ const i = JSON.stringify(s);
132
+ e.has(i) || (e.add(i), yield s);
133
+ }
134
+ }
135
+ const Pe = "__liquidClass__";
136
+ class J extends Error {
137
+ constructor(e, s) {
138
+ super(typeof e == "string" ? e : e.message), this.context = "", typeof e != "string" && Object.defineProperty(this, "originalError", { value: e, enumerable: !1 }), Object.defineProperty(this, "token", { value: s, enumerable: !1 }), Object.defineProperty(this, Pe, { value: "LiquidError", enumerable: !1 });
139
+ }
140
+ update() {
141
+ Object.defineProperty(this, "context", { value: es(this.token), enumerable: !1 }), this.message = ts(this.message, this.token), this.stack = this.message + `
142
+ ` + this.context + `
143
+ ` + this.stack, this.originalError && (this.stack += `
144
+ From ` + this.originalError.stack);
145
+ }
146
+ static is(e) {
147
+ return (e == null ? void 0 : e[Pe]) === "LiquidError";
148
+ }
149
+ }
150
+ class Jt extends J {
151
+ constructor(e, s) {
152
+ super(e, s), this.name = "TokenizationError", super.update();
153
+ }
154
+ }
155
+ class Zt extends J {
156
+ constructor(e, s) {
157
+ super(e, s), this.name = "ParseError", this.message = e.message, super.update();
158
+ }
159
+ }
160
+ class Qt extends J {
161
+ constructor(e, s) {
162
+ super(e, s.token), this.name = "RenderError", this.message = e.message, super.update();
163
+ }
164
+ static is(e) {
165
+ return e.name === "RenderError";
166
+ }
167
+ }
168
+ class wt extends J {
169
+ constructor(e) {
170
+ super(e[0], e[0].token), this.errors = e, this.name = "LiquidErrors";
171
+ const s = e.length > 1 ? "s" : "";
172
+ this.message = `${e.length} error${s} found`, super.update();
173
+ }
174
+ static is(e) {
175
+ return e.name === "LiquidErrors";
176
+ }
177
+ }
178
+ class Gt extends J {
179
+ constructor(e, s) {
180
+ super(e, s), this.name = "UndefinedVariableError", this.message = e.message, super.update();
181
+ }
182
+ }
183
+ class Xt extends Error {
184
+ constructor(e) {
185
+ super(`undefined variable: ${e}`), this.name = "InternalUndefinedVariableError", this.variableName = e;
186
+ }
187
+ }
188
+ class Kt extends Error {
189
+ constructor(e) {
190
+ super(e), this.name = "AssertionError", this.message = e + "";
191
+ }
192
+ }
193
+ function es(t) {
194
+ const [e, s] = t.getPosition(), i = t.input.split(`
195
+ `), r = Math.max(e - 2, 1), n = Math.min(e + 3, i.length);
196
+ return gt(r, n + 1).map((a) => {
197
+ const h = a === e ? ">> " : " ", c = se(String(a), String(n).length);
198
+ let l = `${h}${c}| `;
199
+ const p = a === e ? `
200
+ ` + se("^", s + l.length) : "";
201
+ return l += i[a - 1], l += p, l;
202
+ }).join(`
203
+ `);
204
+ }
205
+ function ts(t, e) {
206
+ e.file && (t += `, file:${e.file}`);
207
+ const [s, i] = e.getPosition();
208
+ return t += `, line:${s}, col:${i}`, t;
209
+ }
210
+ const m = [0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 4, 4, 4, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 2, 8, 0, 0, 0, 0, 8, 0, 0, 0, 64, 0, 65, 0, 0, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 0, 0, 2, 2, 2, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0], ss = 1, X = 4, Ie = 8, bt = 16, is = 32, rs = 64, ns = 128;
211
+ function ne(t) {
212
+ const e = t.charCodeAt(0);
213
+ return e >= 128 ? !m[e] : !!(m[e] & ss);
214
+ }
215
+ m[160] = m[5760] = m[6158] = m[8192] = m[8193] = m[8194] = m[8195] = m[8196] = m[8197] = m[8198] = m[8199] = m[8200] = m[8201] = m[8202] = m[8232] = m[8233] = m[8239] = m[8287] = m[12288] = X;
216
+ m[8220] = m[8221] = ns;
217
+ function _(t, e) {
218
+ if (!t) {
219
+ const s = typeof e == "function" ? e() : e || `expect ${t} to be true`;
220
+ throw new Kt(s);
221
+ }
222
+ }
223
+ function he(t, e = `unexpected ${JSON.stringify(t)}`) {
224
+ _(!t, e);
225
+ }
226
+ class os extends Y {
227
+ equals(e) {
228
+ return z(d(e));
229
+ }
230
+ gt() {
231
+ return !1;
232
+ }
233
+ geq() {
234
+ return !1;
235
+ }
236
+ lt() {
237
+ return !1;
238
+ }
239
+ leq() {
240
+ return !1;
241
+ }
242
+ valueOf() {
243
+ return null;
244
+ }
245
+ }
246
+ class K extends Y {
247
+ equals(e) {
248
+ return e instanceof K ? !1 : (e = d(e), f(e) || x(e) ? e.length === 0 : pe(e) ? Object.keys(e).length === 0 : !1);
249
+ }
250
+ gt() {
251
+ return !1;
252
+ }
253
+ geq() {
254
+ return !1;
255
+ }
256
+ lt() {
257
+ return !1;
258
+ }
259
+ leq() {
260
+ return !1;
261
+ }
262
+ valueOf() {
263
+ return "";
264
+ }
265
+ static is(e) {
266
+ return e instanceof K;
267
+ }
268
+ }
269
+ class Le extends K {
270
+ equals(e) {
271
+ return e === !1 || z(d(e)) ? !0 : f(e) ? /^\s*$/.test(e) : super.equals(e);
272
+ }
273
+ static is(e) {
274
+ return e instanceof Le;
275
+ }
276
+ }
277
+ class Oe extends Y {
278
+ constructor(e, s, i) {
279
+ super(), this.i = 0, this.length = e, this.name = `${i}-${s}`;
280
+ }
281
+ next() {
282
+ this.i++;
283
+ }
284
+ index0() {
285
+ return this.i;
286
+ }
287
+ index() {
288
+ return this.i + 1;
289
+ }
290
+ first() {
291
+ return this.i === 0;
292
+ }
293
+ last() {
294
+ return this.i === this.length - 1;
295
+ }
296
+ rindex() {
297
+ return this.length - this.i;
298
+ }
299
+ rindex0() {
300
+ return this.length - this.i - 1;
301
+ }
302
+ valueOf() {
303
+ return JSON.stringify(this);
304
+ }
305
+ }
306
+ class Be extends Y {
307
+ constructor(e = () => "") {
308
+ super(), this.superBlockRender = e;
309
+ }
310
+ /**
311
+ * Provide parent access in child block by
312
+ * {{ block.super }}
313
+ */
314
+ super() {
315
+ return this.superBlockRender();
316
+ }
317
+ }
318
+ function A(t) {
319
+ return t && v(t.equals) && v(t.gt) && v(t.geq) && v(t.lt) && v(t.leq);
320
+ }
321
+ const Ue = new os(), Tt = {
322
+ true: !0,
323
+ false: !1,
324
+ nil: Ue,
325
+ null: Ue,
326
+ empty: new K(),
327
+ blank: new Le()
328
+ };
329
+ function He(t) {
330
+ const e = {};
331
+ for (const [s, i] of Object.entries(t)) {
332
+ let r = e;
333
+ for (let n = 0; n < s.length; n++) {
334
+ const o = s[n];
335
+ r[o] = r[o] || {}, n === s.length - 1 && ne(s[n]) && (r[o].needBoundary = !0), r = r[o];
336
+ }
337
+ r.data = i, r.end = !0;
338
+ }
339
+ return e;
340
+ }
341
+ var ce = function() {
342
+ return ce = Object.assign || function(e) {
343
+ for (var s, i = 1, r = arguments.length; i < r; i++) {
344
+ s = arguments[i];
345
+ for (var n in s) Object.prototype.hasOwnProperty.call(s, n) && (e[n] = s[n]);
346
+ }
347
+ return e;
348
+ }, ce.apply(this, arguments);
349
+ };
350
+ function k(t, e, s, i) {
351
+ function r(n) {
352
+ return n instanceof s ? n : new s(function(o) {
353
+ o(n);
354
+ });
355
+ }
356
+ return new (s || (s = Promise))(function(n, o) {
357
+ function a(l) {
358
+ try {
359
+ c(i.next(l));
360
+ } catch (p) {
361
+ o(p);
362
+ }
363
+ }
364
+ function h(l) {
365
+ try {
366
+ c(i.throw(l));
367
+ } catch (p) {
368
+ o(p);
369
+ }
370
+ }
371
+ function c(l) {
372
+ l.done ? n(l.value) : r(l.value).then(a, h);
373
+ }
374
+ c((i = i.apply(t, [])).next());
375
+ });
376
+ }
377
+ function V(t) {
378
+ return k(this, void 0, void 0, function* () {
379
+ if (!le(t))
380
+ return t;
381
+ let e, s = !1, i = "next";
382
+ do {
383
+ const r = t[i](e);
384
+ s = r.done, e = r.value, i = "next";
385
+ try {
386
+ le(e) && (e = V(e)), Pt(e) && (e = yield e);
387
+ } catch (n) {
388
+ i = "throw", e = n;
389
+ }
390
+ } while (!s);
391
+ return e;
392
+ });
393
+ }
394
+ function q(t) {
395
+ if (!le(t))
396
+ return t;
397
+ let e, s = !1, i = "next";
398
+ do {
399
+ const r = t[i](e);
400
+ if (s = r.done, e = r.value, i = "next", le(e))
401
+ try {
402
+ e = q(e);
403
+ } catch (n) {
404
+ i = "throw", e = n;
405
+ }
406
+ } while (!s);
407
+ return e;
408
+ }
409
+ const as = /%([-_0^#:]+)?(\d+)?([EO])?(.)/;
410
+ function ls(t) {
411
+ return [31, hs(t) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
412
+ }
413
+ function kt(t) {
414
+ let e = 0;
415
+ for (let s = 0; s < t.getMonth(); ++s)
416
+ e += ls(t)[s];
417
+ return e + t.getDate();
418
+ }
419
+ function We(t, e) {
420
+ const s = kt(t) + (e - t.getDay()), r = 7 - new Date(t.getFullYear(), 0, 1).getDay() + e;
421
+ return String(Math.floor((s - r) / 7) + 1);
422
+ }
423
+ function hs(t) {
424
+ const e = t.getFullYear();
425
+ return !!(!(e & 3) && (e % 100 || e % 400 === 0 && e));
426
+ }
427
+ function cs(t) {
428
+ const e = t.getDate();
429
+ if ([11, 12, 13].includes(e))
430
+ return "th";
431
+ switch (e % 10) {
432
+ case 1:
433
+ return "st";
434
+ case 2:
435
+ return "nd";
436
+ case 3:
437
+ return "rd";
438
+ default:
439
+ return "th";
440
+ }
441
+ }
442
+ function us(t) {
443
+ return parseInt(t.getFullYear().toString().substring(0, 2), 10);
444
+ }
445
+ const fs = {
446
+ d: 2,
447
+ e: 2,
448
+ H: 2,
449
+ I: 2,
450
+ j: 3,
451
+ k: 2,
452
+ l: 2,
453
+ L: 3,
454
+ m: 2,
455
+ M: 2,
456
+ S: 2,
457
+ U: 2,
458
+ W: 2
459
+ }, ds = new Set("aAbBceklpP");
460
+ function Ye(t, e) {
461
+ const s = Math.abs(t.getTimezoneOffset()), i = Math.floor(s / 60), r = s % 60;
462
+ return (t.getTimezoneOffset() > 0 ? "-" : "+") + se(i, 2, "0") + (e.flags[":"] ? ":" : "") + se(r, 2, "0");
463
+ }
464
+ const ke = {
465
+ a: (t) => t.getShortWeekdayName(),
466
+ A: (t) => t.getLongWeekdayName(),
467
+ b: (t) => t.getShortMonthName(),
468
+ B: (t) => t.getLongMonthName(),
469
+ c: (t) => t.toLocaleString(),
470
+ C: (t) => us(t),
471
+ d: (t) => t.getDate(),
472
+ e: (t) => t.getDate(),
473
+ H: (t) => t.getHours(),
474
+ I: (t) => String(t.getHours() % 12 || 12),
475
+ j: (t) => kt(t),
476
+ k: (t) => t.getHours(),
477
+ l: (t) => String(t.getHours() % 12 || 12),
478
+ L: (t) => t.getMilliseconds(),
479
+ m: (t) => t.getMonth() + 1,
480
+ M: (t) => t.getMinutes(),
481
+ N: (t, e) => {
482
+ const s = Number(e.width) || 9, i = String(t.getMilliseconds()).slice(0, s);
483
+ return Ht(i, s, "0");
484
+ },
485
+ p: (t) => t.getHours() < 12 ? "AM" : "PM",
486
+ P: (t) => t.getHours() < 12 ? "am" : "pm",
487
+ q: (t) => cs(t),
488
+ s: (t) => Math.round(t.getTime() / 1e3),
489
+ S: (t) => t.getSeconds(),
490
+ u: (t) => t.getDay() || 7,
491
+ U: (t) => We(t, 0),
492
+ w: (t) => t.getDay(),
493
+ W: (t) => We(t, 1),
494
+ x: (t) => t.toLocaleDateString(),
495
+ X: (t) => t.toLocaleTimeString(),
496
+ y: (t) => t.getFullYear().toString().slice(2, 4),
497
+ Y: (t) => t.getFullYear(),
498
+ z: Ye,
499
+ Z: (t, e) => t.getTimeZoneName() || Ye(t, e),
500
+ t: () => " ",
501
+ n: () => `
502
+ `,
503
+ "%": () => "%"
504
+ };
505
+ ke.h = ke.b;
506
+ function oe(t, e) {
507
+ let s = "", i = e, r;
508
+ for (; r = as.exec(i); )
509
+ s += i.slice(0, r.index), i = i.slice(r.index + r[0].length), s += ps(t, r);
510
+ return s + i;
511
+ }
512
+ function ps(t, e) {
513
+ const [s, i = "", r, n, o] = e, a = ke[o];
514
+ if (!a)
515
+ return s;
516
+ const h = {};
517
+ for (const g of i)
518
+ h[g] = !0;
519
+ let c = String(a(t, { flags: h, width: r, modifier: n })), l = ds.has(o) ? " " : "0", p = r || fs[o] || 0;
520
+ return h["^"] ? c = c.toUpperCase() : h["#"] && (c = Wt(c)), h._ ? l = " " : h[0] && (l = "0"), h["-"] && (p = 0), se(c, p, l);
521
+ }
522
+ function vt() {
523
+ return typeof Intl < "u" ? Intl.DateTimeFormat : void 0;
524
+ }
525
+ const gs = 6e4, ms = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, St = [
526
+ "January",
527
+ "February",
528
+ "March",
529
+ "April",
530
+ "May",
531
+ "June",
532
+ "July",
533
+ "August",
534
+ "September",
535
+ "October",
536
+ "November",
537
+ "December"
538
+ ], ys = St.map((t) => t.slice(0, 3)), xt = [
539
+ "Sunday",
540
+ "Monday",
541
+ "Tuesday",
542
+ "Wednesday",
543
+ "Thursday",
544
+ "Friday",
545
+ "Saturday"
546
+ ], ws = xt.map((t) => t.slice(0, 3));
547
+ class E {
548
+ constructor(e, s, i) {
549
+ this.locale = s, this.DateTimeFormat = vt(), this.date = new Date(e), this.timezoneFixed = i !== void 0, i === void 0 && (i = this.date.getTimezoneOffset()), this.timezoneOffset = f(i) ? E.getTimezoneOffset(i, this.date) : i, this.timezoneName = f(i) ? i : "";
550
+ const r = (this.date.getTimezoneOffset() - this.timezoneOffset) * gs, n = this.date.getTime() + r;
551
+ this.displayDate = new Date(n);
552
+ }
553
+ getTime() {
554
+ return this.displayDate.getTime();
555
+ }
556
+ getMilliseconds() {
557
+ return this.displayDate.getMilliseconds();
558
+ }
559
+ getSeconds() {
560
+ return this.displayDate.getSeconds();
561
+ }
562
+ getMinutes() {
563
+ return this.displayDate.getMinutes();
564
+ }
565
+ getHours() {
566
+ return this.displayDate.getHours();
567
+ }
568
+ getDay() {
569
+ return this.displayDate.getDay();
570
+ }
571
+ getDate() {
572
+ return this.displayDate.getDate();
573
+ }
574
+ getMonth() {
575
+ return this.displayDate.getMonth();
576
+ }
577
+ getFullYear() {
578
+ return this.displayDate.getFullYear();
579
+ }
580
+ toLocaleString(e, s) {
581
+ return s != null && s.timeZone ? this.date.toLocaleString(e, s) : this.displayDate.toLocaleString(e, s);
582
+ }
583
+ toLocaleTimeString(e) {
584
+ return this.displayDate.toLocaleTimeString(e);
585
+ }
586
+ toLocaleDateString(e) {
587
+ return this.displayDate.toLocaleDateString(e);
588
+ }
589
+ getTimezoneOffset() {
590
+ return this.timezoneOffset;
591
+ }
592
+ getTimeZoneName() {
593
+ if (this.timezoneFixed)
594
+ return this.timezoneName;
595
+ if (this.DateTimeFormat)
596
+ return this.DateTimeFormat().resolvedOptions().timeZone;
597
+ }
598
+ getLongMonthName() {
599
+ var e;
600
+ return (e = this.format({ month: "long" })) !== null && e !== void 0 ? e : St[this.getMonth()];
601
+ }
602
+ getShortMonthName() {
603
+ var e;
604
+ return (e = this.format({ month: "short" })) !== null && e !== void 0 ? e : ys[this.getMonth()];
605
+ }
606
+ getLongWeekdayName() {
607
+ var e;
608
+ return (e = this.format({ weekday: "long" })) !== null && e !== void 0 ? e : xt[this.displayDate.getDay()];
609
+ }
610
+ getShortWeekdayName() {
611
+ var e;
612
+ return (e = this.format({ weekday: "short" })) !== null && e !== void 0 ? e : ws[this.displayDate.getDay()];
613
+ }
614
+ valid() {
615
+ return !isNaN(this.getTime());
616
+ }
617
+ format(e) {
618
+ return this.DateTimeFormat && this.DateTimeFormat(this.locale, e).format(this.displayDate);
619
+ }
620
+ /**
621
+ * Create a Date object fixed to it's declared Timezone. Both
622
+ * - 2021-08-06T02:29:00.000Z and
623
+ * - 2021-08-06T02:29:00.000+08:00
624
+ * will always be displayed as
625
+ * - 2021-08-06 02:29:00
626
+ * regardless timezoneOffset in JavaScript realm
627
+ *
628
+ * The implementation hack:
629
+ * Instead of calling `.getMonth()`/`.getUTCMonth()` respect to `preserveTimezones`,
630
+ * we create a different Date to trick strftime, it's both simpler and more performant.
631
+ * Given that a template is expected to be parsed fewer times than rendered.
632
+ */
633
+ static createDateFixedToTimezone(e, s) {
634
+ const i = e.match(ms);
635
+ if (i && i[1] === "Z")
636
+ return new E(+new Date(e), s, 0);
637
+ if (i && i[2] && i[3] && i[4]) {
638
+ const [, , r, n, o] = i, a = (r === "+" ? -1 : 1) * (parseInt(n, 10) * 60 + parseInt(o, 10));
639
+ return new E(+new Date(e), s, a);
640
+ }
641
+ return new E(e, s);
642
+ }
643
+ static getTimezoneOffset(e, s) {
644
+ const i = s.toLocaleString("en-US", { timeZone: e }), r = s.toLocaleString("en-US", { timeZone: "UTC" }), n = new Date(i);
645
+ return (+new Date(r) - +n) / (60 * 1e3);
646
+ }
647
+ }
648
+ class ve {
649
+ constructor(e, s) {
650
+ this.base = 0, this.message = `${e} limit exceeded`, this.limit = s;
651
+ }
652
+ use(e) {
653
+ e = Ce(e), _(this.base + e <= this.limit, this.message), this.base += e;
654
+ }
655
+ check(e) {
656
+ e = Ce(e), _(e <= this.limit, this.message);
657
+ }
658
+ }
659
+ class ze extends R {
660
+ constructor(e, [s, i], r, n, o, a, h, c) {
661
+ super(e, r, n, o, c), this.trimLeft = !1, this.trimRight = !1;
662
+ const l = r[s] === "-", p = r[i - 1] === "-";
663
+ let g = l ? s + 1 : s, w = p ? i - 1 : i;
664
+ for (; g < w && m[r.charCodeAt(g)] & X; )
665
+ g++;
666
+ for (; w > g && m[r.charCodeAt(w - 1)] & X; )
667
+ w--;
668
+ this.contentRange = [g, w], this.trimLeft = l || a, this.trimRight = p || h;
669
+ }
670
+ get content() {
671
+ return this.input.slice(this.contentRange[0], this.contentRange[1]);
672
+ }
673
+ }
674
+ class Je extends ze {
675
+ constructor(e, s, i, r, n) {
676
+ const { trimTagLeft: o, trimTagRight: a, tagDelimiterLeft: h, tagDelimiterRight: c } = r, [l, p] = [s + h.length, i - c.length];
677
+ super(y.Tag, [l, p], e, s, i, o, a, n), this.tokenizer = new M(e, r.operators, n, this.contentRange), this.name = this.tokenizer.readTagName(), this.tokenizer.assert(this.name, "illegal tag syntax, tag name expected"), this.tokenizer.skipBlank(), this.args = this.tokenizer.input.slice(this.tokenizer.p, this.contentRange[1]);
678
+ }
679
+ }
680
+ class bs extends ze {
681
+ constructor(e, s, i, r, n) {
682
+ const { trimOutputLeft: o, trimOutputRight: a, outputDelimiterLeft: h, outputDelimiterRight: c } = r, l = [s + h.length, i - c.length];
683
+ super(y.Output, l, e, s, i, o, a, n);
684
+ }
685
+ }
686
+ class Ze extends R {
687
+ constructor(e, s, i, r) {
688
+ super(y.HTML, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.trimLeft = 0, this.trimRight = 0;
689
+ }
690
+ getContent() {
691
+ return this.input.slice(this.begin + this.trimLeft, this.end - this.trimRight);
692
+ }
693
+ }
694
+ class Ts extends R {
695
+ constructor(e, s, i, r) {
696
+ super(y.Number, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.content = Number(this.getText());
697
+ }
698
+ }
699
+ class ye extends R {
700
+ constructor(e, s, i, r) {
701
+ super(y.Word, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.content = this.getText();
702
+ }
703
+ }
704
+ class ks extends R {
705
+ constructor(e, s, i, r) {
706
+ super(y.Literal, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.literal = this.getText(), this.content = Tt[this.literal];
707
+ }
708
+ }
709
+ const Qe = {
710
+ "==": 2,
711
+ "!=": 2,
712
+ ">": 2,
713
+ "<": 2,
714
+ ">=": 2,
715
+ "<=": 2,
716
+ contains: 2,
717
+ not: 1,
718
+ and: 0,
719
+ or: 0
720
+ }, vs = {
721
+ "==": 0,
722
+ "!=": 0,
723
+ ">": 0,
724
+ "<": 0,
725
+ ">=": 0,
726
+ "<=": 0,
727
+ contains: 0,
728
+ not: 1,
729
+ and: 0,
730
+ or: 0
731
+ /* OperatorType.Binary */
732
+ };
733
+ class Ss extends R {
734
+ constructor(e, s, i, r) {
735
+ super(y.Operator, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.operator = this.getText();
736
+ }
737
+ getPrecedence() {
738
+ const e = this.getText();
739
+ return e in Qe ? Qe[e] : 1;
740
+ }
741
+ }
742
+ class Ge extends R {
743
+ constructor(e, s, i, r, n, o) {
744
+ super(y.PropertyAccess, i, r, n, o), this.variable = e, this.props = s;
745
+ }
746
+ }
747
+ class _t extends R {
748
+ constructor(e, s, i, r, n, o) {
749
+ super(y.Filter, i, r, n, o), this.name = e, this.args = s;
750
+ }
751
+ }
752
+ class xs extends R {
753
+ constructor(e, s, i, r, n, o) {
754
+ super(y.Hash, e, s, i, o), this.input = e, this.begin = s, this.end = i, this.name = r, this.value = n, this.file = o;
755
+ }
756
+ }
757
+ const _s = /[\da-fA-F]/, Xe = /[0-7]/, Ke = {
758
+ b: "\b",
759
+ f: "\f",
760
+ n: `
761
+ `,
762
+ r: "\r",
763
+ t: " ",
764
+ v: "\v"
765
+ };
766
+ function et(t) {
767
+ const e = t.charCodeAt(0);
768
+ return e >= 97 ? e - 87 : e >= 65 ? e - 55 : e - 48;
769
+ }
770
+ function Fs(t) {
771
+ let e = "";
772
+ for (let s = 1; s < t.length - 1; s++) {
773
+ if (t[s] !== "\\") {
774
+ e += t[s];
775
+ continue;
776
+ }
777
+ if (Ke[t[s + 1]] !== void 0)
778
+ e += Ke[t[++s]];
779
+ else if (t[s + 1] === "u") {
780
+ let i = 0, r = s + 2;
781
+ for (; r <= s + 5 && _s.test(t[r]); )
782
+ i = i * 16 + et(t[r++]);
783
+ s = r - 1, e += String.fromCharCode(i);
784
+ } else if (!Xe.test(t[s + 1]))
785
+ e += t[++s];
786
+ else {
787
+ let i = s + 1, r = 0;
788
+ for (; i <= s + 3 && Xe.test(t[i]); )
789
+ r = r * 8 + et(t[i++]);
790
+ s = i - 1, e += String.fromCharCode(r);
791
+ }
792
+ }
793
+ return e;
794
+ }
795
+ class Ls extends R {
796
+ constructor(e, s, i, r) {
797
+ super(y.Quoted, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.content = Fs(this.getText());
798
+ }
799
+ }
800
+ class Os extends R {
801
+ constructor(e, s, i, r, n, o) {
802
+ super(y.Range, e, s, i, o), this.input = e, this.begin = s, this.end = i, this.lhs = r, this.rhs = n, this.file = o;
803
+ }
804
+ }
805
+ class zs extends ze {
806
+ constructor(e, s, i, r, n) {
807
+ super(y.Tag, [s, i], e, s, i, !1, !1, n), this.tokenizer = new M(e, r.operators, n, this.contentRange), this.name = this.tokenizer.readTagName(), this.tokenizer.assert(this.name, "illegal liquid tag syntax"), this.tokenizer.skipBlank();
808
+ }
809
+ get args() {
810
+ return this.tokenizer.input.slice(this.tokenizer.p, this.contentRange[1]);
811
+ }
812
+ }
813
+ class Rs extends R {
814
+ constructor(e, s, i, r, n, o) {
815
+ super(y.FilteredValue, i, r, n, o), this.initial = e, this.filters = s, this.input = i, this.begin = r, this.end = n, this.file = o;
816
+ }
817
+ }
818
+ const Es = {
819
+ now: () => Date.now()
820
+ };
821
+ function Ft() {
822
+ return typeof global == "object" && global.performance || typeof window == "object" && window.performance || Es;
823
+ }
824
+ class Ns {
825
+ constructor() {
826
+ this.buffer = "";
827
+ }
828
+ write(e) {
829
+ this.buffer += u(e);
830
+ }
831
+ }
832
+ class As {
833
+ constructor() {
834
+ throw this.buffer = "", this.stream = null, new Error("streaming not supported in browser");
835
+ }
836
+ }
837
+ class Ds {
838
+ constructor() {
839
+ this.buffer = "";
840
+ }
841
+ write(e) {
842
+ e = d(e), typeof e != "string" && this.buffer === "" ? this.buffer = e : this.buffer = u(this.buffer) + u(e);
843
+ }
844
+ }
845
+ class Ms {
846
+ renderTemplatesToNodeStream(e, s) {
847
+ const i = new As();
848
+ return Promise.resolve().then(() => V(this.renderTemplates(e, s, i))).then(() => i.end(), (r) => i.error(r)), i.stream;
849
+ }
850
+ *renderTemplates(e, s, i) {
851
+ i || (i = s.opts.keepOutputType ? new Ds() : new Ns());
852
+ const r = [];
853
+ for (const n of e) {
854
+ s.renderLimit.check(Ft().now());
855
+ try {
856
+ const o = yield n.render(s, i);
857
+ if (o && i.write(o), s.breakCalled || s.continueCalled)
858
+ break;
859
+ } catch (o) {
860
+ const a = J.is(o) ? o : new Qt(o, n);
861
+ if (s.opts.catchAllErrors)
862
+ r.push(a);
863
+ else
864
+ throw a;
865
+ }
866
+ }
867
+ if (r.length)
868
+ throw new wt(r);
869
+ return i.buffer;
870
+ }
871
+ }
872
+ class Vs {
873
+ constructor(e) {
874
+ this.postfix = [...js(e)];
875
+ }
876
+ *evaluate(e, s) {
877
+ _(e, "unable to evaluate: context not defined");
878
+ const i = [];
879
+ for (const r of this.postfix)
880
+ if (At(r)) {
881
+ const n = i.pop();
882
+ let o;
883
+ if (vs[r.operator] === 1)
884
+ o = yield e.opts.operators[r.operator](n, e);
885
+ else {
886
+ const a = i.pop();
887
+ o = yield e.opts.operators[r.operator](a, n, e);
888
+ }
889
+ i.push(o);
890
+ } else
891
+ i.push(yield T(r, e, s));
892
+ return i[0];
893
+ }
894
+ valid() {
895
+ return !!this.postfix.length;
896
+ }
897
+ }
898
+ function* T(t, e, s = !1) {
899
+ if (t) {
900
+ if ("content" in t)
901
+ return t.content;
902
+ if (fe(t))
903
+ return yield qs(t, e, s);
904
+ if (Dt(t))
905
+ return yield $s(t, e);
906
+ }
907
+ }
908
+ function* qs(t, e, s) {
909
+ const i = [];
910
+ for (const r of t.props)
911
+ i.push(yield T(r, e, !1));
912
+ try {
913
+ if (t.variable) {
914
+ const r = yield T(t.variable, e, s);
915
+ return yield e._getFromScope(r, i);
916
+ } else
917
+ return yield e._get(i);
918
+ } catch (r) {
919
+ if (s && r.name === "InternalUndefinedVariableError")
920
+ return null;
921
+ throw new Gt(r, t);
922
+ }
923
+ }
924
+ function Cs(t) {
925
+ return t.content;
926
+ }
927
+ function* $s(t, e) {
928
+ const s = yield T(t.lhs, e), i = yield T(t.rhs, e);
929
+ return e.memoryLimit.use(i - s + 1), gt(+s, +i + 1);
930
+ }
931
+ function* js(t) {
932
+ const e = [];
933
+ for (const s of t)
934
+ if (At(s)) {
935
+ for (; e.length && e[e.length - 1].getPrecedence() > s.getPrecedence(); )
936
+ yield e.pop();
937
+ e.push(s);
938
+ } else
939
+ yield s;
940
+ for (; e.length; )
941
+ yield e.pop();
942
+ }
943
+ function B(t, e) {
944
+ return !ge(t, e);
945
+ }
946
+ function ge(t, e) {
947
+ return t = d(t), e.opts.jsTruthy ? !t : t === !1 || t === void 0 || t === null;
948
+ }
949
+ const Ps = {
950
+ "==": D,
951
+ "!=": (t, e) => !D(t, e),
952
+ ">": (t, e) => A(t) ? t.gt(e) : A(e) ? e.lt(t) : d(t) > d(e),
953
+ "<": (t, e) => A(t) ? t.lt(e) : A(e) ? e.gt(t) : d(t) < d(e),
954
+ ">=": (t, e) => A(t) ? t.geq(e) : A(e) ? e.leq(t) : d(t) >= d(e),
955
+ "<=": (t, e) => A(t) ? t.leq(e) : A(e) ? e.geq(t) : d(t) <= d(e),
956
+ contains: (t, e) => (t = d(t), x(t) ? t.some((s) => D(s, e)) : v(t == null ? void 0 : t.indexOf) ? t.indexOf(d(e)) > -1 : !1),
957
+ not: (t, e) => ge(d(t), e),
958
+ and: (t, e, s) => B(d(t), s) && B(d(e), s),
959
+ or: (t, e, s) => B(d(t), s) || B(d(e), s)
960
+ };
961
+ function D(t, e) {
962
+ return A(t) ? t.equals(e) : A(e) ? e.equals(t) : (t = d(t), e = d(e), x(t) ? x(e) && Is(t, e) : t === e);
963
+ }
964
+ function Is(t, e) {
965
+ return t.length !== e.length ? !1 : !t.some((s, i) => !D(s, e[i]));
966
+ }
967
+ function Bs(t, e) {
968
+ return t.some((s) => D(s, e));
969
+ }
970
+ class we {
971
+ constructor(e, s, i, r) {
972
+ this.key = e, this.value = s, this.next = i, this.prev = r;
973
+ }
974
+ }
975
+ class tt {
976
+ constructor(e, s = 0) {
977
+ this.limit = e, this.size = s, this.cache = {}, this.head = new we("HEAD", null, null, null), this.tail = new we("TAIL", null, null, null), this.head.next = this.tail, this.tail.prev = this.head;
978
+ }
979
+ write(e, s) {
980
+ if (this.cache[e])
981
+ this.cache[e].value = s;
982
+ else {
983
+ const i = new we(e, s, this.head.next, this.head);
984
+ this.head.next.prev = i, this.head.next = i, this.cache[e] = i, this.size++, this.ensureLimit();
985
+ }
986
+ }
987
+ read(e) {
988
+ if (!this.cache[e])
989
+ return;
990
+ const { value: s } = this.cache[e];
991
+ return this.remove(e), this.write(e, s), s;
992
+ }
993
+ remove(e) {
994
+ const s = this.cache[e];
995
+ s.prev.next = s.next, s.next.prev = s.prev, delete this.cache[e], this.size--;
996
+ }
997
+ clear() {
998
+ this.head.next = this.tail, this.tail.prev = this.head, this.size = 0, this.cache = {};
999
+ }
1000
+ ensureLimit() {
1001
+ this.size > this.limit && this.remove(this.tail.prev.key);
1002
+ }
1003
+ }
1004
+ function Lt(t, e) {
1005
+ const s = document.createElement("base");
1006
+ s.href = t;
1007
+ const i = document.getElementsByTagName("head")[0];
1008
+ i.insertBefore(s, i.firstChild);
1009
+ const r = document.createElement("a");
1010
+ r.href = e;
1011
+ const n = r.href;
1012
+ return i.removeChild(s), n;
1013
+ }
1014
+ function Us(t, e, s) {
1015
+ return t.length && pt(t) !== "/" && (t += "/"), Lt(t, e).replace(/^(\w+:\/\/[^/]+)(\/[^?]+)/, (r, n, o) => {
1016
+ const a = o.split("/").pop();
1017
+ return /\.\w+$/.test(a) ? r : n + o + s;
1018
+ });
1019
+ }
1020
+ function Hs(t) {
1021
+ return k(this, void 0, void 0, function* () {
1022
+ return new Promise((e, s) => {
1023
+ const i = new XMLHttpRequest();
1024
+ i.onload = () => {
1025
+ i.status >= 200 && i.status < 300 ? e(i.responseText) : s(new Error(i.statusText));
1026
+ }, i.onerror = () => {
1027
+ s(new Error("An error occurred whilst receiving the response."));
1028
+ }, i.open("GET", t), i.send();
1029
+ });
1030
+ });
1031
+ }
1032
+ function Ws(t) {
1033
+ const e = new XMLHttpRequest();
1034
+ if (e.open("GET", t, !1), e.send(), e.status < 200 || e.status >= 300)
1035
+ throw new Error(e.statusText);
1036
+ return e.responseText;
1037
+ }
1038
+ function Ys(t) {
1039
+ return k(this, void 0, void 0, function* () {
1040
+ return !0;
1041
+ });
1042
+ }
1043
+ function Js(t) {
1044
+ return !0;
1045
+ }
1046
+ function Zs(t) {
1047
+ return Lt(t, ".");
1048
+ }
1049
+ const Qs = "/";
1050
+ var Gs = /* @__PURE__ */ Object.freeze({
1051
+ __proto__: null,
1052
+ resolve: Us,
1053
+ readFile: Hs,
1054
+ readFileSync: Ws,
1055
+ exists: Ys,
1056
+ existsSync: Js,
1057
+ dirname: Zs,
1058
+ sep: Qs
1059
+ });
1060
+ function Xs(t, e, ...s) {
1061
+ return t = d(t), x(t) || f(t) ? t.length ? t : e : t === !1 && new Map(s).get("allow_false") ? !1 : ge(t, this.context) ? e : t;
1062
+ }
1063
+ function st(t, e = 0) {
1064
+ return JSON.stringify(t, null, e);
1065
+ }
1066
+ function Ks(t, e = 0) {
1067
+ const s = [];
1068
+ return JSON.stringify(t, function(i, r) {
1069
+ if (typeof r != "object" || r === null)
1070
+ return r;
1071
+ for (; s.length > 0 && s[s.length - 1] !== this; )
1072
+ s.pop();
1073
+ return s.includes(r) ? "[Circular]" : (s.push(r), r);
1074
+ }, e);
1075
+ }
1076
+ function ei(t) {
1077
+ return Number(t);
1078
+ }
1079
+ const ti = {
1080
+ raw: !0,
1081
+ handler: yt
1082
+ };
1083
+ var Ot = {
1084
+ default: Xs,
1085
+ raw: ti,
1086
+ jsonify: st,
1087
+ to_integer: ei,
1088
+ json: st,
1089
+ inspect: Ks
1090
+ };
1091
+ const si = {
1092
+ "&": "&amp;",
1093
+ "<": "&lt;",
1094
+ ">": "&gt;",
1095
+ '"': "&#34;",
1096
+ "'": "&#39;"
1097
+ }, ii = {
1098
+ "&amp;": "&",
1099
+ "&lt;": "<",
1100
+ "&gt;": ">",
1101
+ "&#34;": '"',
1102
+ "&#39;": "'"
1103
+ };
1104
+ function me(t) {
1105
+ return t = u(t), this.context.memoryLimit.use(t.length), t.replace(/&|<|>|"|'/g, (e) => si[e]);
1106
+ }
1107
+ function ri(t) {
1108
+ return me.call(this, t);
1109
+ }
1110
+ function ni(t) {
1111
+ return t = u(t), this.context.memoryLimit.use(t.length), t.replace(/&(amp|lt|gt|#34|#39);/g, (e) => ii[e]);
1112
+ }
1113
+ function oi(t) {
1114
+ return me.call(this, ni.call(this, t));
1115
+ }
1116
+ function ai(t) {
1117
+ const e = u(t);
1118
+ return this.context.memoryLimit.use(e.length), e.replace(/\r?\n/gm, `<br />
1119
+ `);
1120
+ }
1121
+ function li(t) {
1122
+ const e = u(t);
1123
+ return this.context.memoryLimit.use(e.length), e.replace(/<script[\s\S]*?<\/script>|<style[\s\S]*?<\/style>|<.*?>|<!--[\s\S]*?-->/g, "");
1124
+ }
1125
+ var hi = /* @__PURE__ */ Object.freeze({
1126
+ __proto__: null,
1127
+ escape: me,
1128
+ xml_escape: ri,
1129
+ escape_once: oi,
1130
+ newline_to_br: ai,
1131
+ strip_html: li
1132
+ });
1133
+ class ci {
1134
+ constructor(e) {
1135
+ this.mapping = e, this.sep = "/";
1136
+ }
1137
+ exists(e) {
1138
+ return k(this, void 0, void 0, function* () {
1139
+ return this.existsSync(e);
1140
+ });
1141
+ }
1142
+ existsSync(e) {
1143
+ return !z(this.mapping[e]);
1144
+ }
1145
+ readFile(e) {
1146
+ return k(this, void 0, void 0, function* () {
1147
+ return this.readFileSync(e);
1148
+ });
1149
+ }
1150
+ readFileSync(e) {
1151
+ const s = this.mapping[e];
1152
+ if (z(s))
1153
+ throw new Error(`ENOENT: ${e}`);
1154
+ return s;
1155
+ }
1156
+ dirname(e) {
1157
+ const s = e.split(this.sep);
1158
+ return s.pop(), s.join(this.sep);
1159
+ }
1160
+ resolve(e, s, i) {
1161
+ if (s += i, e === ".")
1162
+ return s;
1163
+ const r = e.split(/\/+/);
1164
+ for (const n of s.split(this.sep))
1165
+ n === "." || n === "" || (n === ".." ? (r.length > 1 || r[0] !== "") && r.pop() : r.push(n));
1166
+ return r.join(this.sep);
1167
+ }
1168
+ }
1169
+ const Q = {
1170
+ root: ["."],
1171
+ layouts: ["."],
1172
+ partials: ["."],
1173
+ relativeReference: !0,
1174
+ jekyllInclude: !1,
1175
+ keyValueSeparator: ":",
1176
+ cache: void 0,
1177
+ extname: "",
1178
+ fs: Gs,
1179
+ dynamicPartials: !0,
1180
+ jsTruthy: !1,
1181
+ dateFormat: "%A, %B %-e, %Y at %-l:%M %P %z",
1182
+ locale: "",
1183
+ trimTagRight: !1,
1184
+ trimTagLeft: !1,
1185
+ trimOutputRight: !1,
1186
+ trimOutputLeft: !1,
1187
+ greedy: !0,
1188
+ tagDelimiterLeft: "{%",
1189
+ tagDelimiterRight: "%}",
1190
+ outputDelimiterLeft: "{{",
1191
+ outputDelimiterRight: "}}",
1192
+ preserveTimezones: !1,
1193
+ strictFilters: !1,
1194
+ strictVariables: !1,
1195
+ ownPropertyOnly: !0,
1196
+ lenientIf: !1,
1197
+ globals: {},
1198
+ keepOutputType: !1,
1199
+ operators: Ps,
1200
+ memoryLimit: 1 / 0,
1201
+ parseLimit: 1 / 0,
1202
+ renderLimit: 1 / 0
1203
+ };
1204
+ function ui(t) {
1205
+ var e, s;
1206
+ if (t.hasOwnProperty("root") && (t.hasOwnProperty("partials") || (t.partials = t.root), t.hasOwnProperty("layouts") || (t.layouts = t.root)), t.hasOwnProperty("cache")) {
1207
+ let i;
1208
+ typeof t.cache == "number" ? i = t.cache > 0 ? new tt(t.cache) : void 0 : typeof t.cache == "object" ? i = t.cache : i = t.cache ? new tt(1024) : void 0, t.cache = i;
1209
+ }
1210
+ return t = Object.assign(Object.assign(Object.assign({}, Q), t.jekyllInclude ? { dynamicPartials: !1 } : {}), t), (!t.fs.dirname || !t.fs.sep) && t.relativeReference && (console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"), t.relativeReference = !1), t.root = ae(t.root), t.partials = ae(t.partials), t.layouts = ae(t.layouts), t.outputEscape = t.outputEscape && fi(t.outputEscape), t.locale || (t.locale = (s = (e = vt()) === null || e === void 0 ? void 0 : e().resolvedOptions().locale) !== null && s !== void 0 ? s : "en-US"), t.templates && (t.fs = new ci(t.templates), t.relativeReference = !0, t.root = t.partials = t.layouts = "."), t;
1211
+ }
1212
+ function fi(t) {
1213
+ return t === "escape" ? me : t === "json" ? Ot.json : (_(v(t), "`outputEscape` need to be of type string or function"), t);
1214
+ }
1215
+ function ae(t) {
1216
+ let e = [];
1217
+ return x(t) && (e = t), f(t) && (e = [t]), e;
1218
+ }
1219
+ function di(t, e) {
1220
+ let s = !1;
1221
+ for (let i = 0; i < t.length; i++) {
1222
+ const r = t[i];
1223
+ vi(r) && (!s && r.trimLeft && pi(t[i - 1], e.greedy), Z(r) && (r.name === "raw" ? s = !0 : r.name === "endraw" && (s = !1)), !s && r.trimRight && gi(t[i + 1], e.greedy));
1224
+ }
1225
+ }
1226
+ function pi(t, e) {
1227
+ if (!t || !Ee(t))
1228
+ return;
1229
+ const s = e ? X : bt;
1230
+ for (; m[t.input.charCodeAt(t.end - 1 - t.trimRight)] & s; )
1231
+ t.trimRight++;
1232
+ }
1233
+ function gi(t, e) {
1234
+ if (!t || !Ee(t))
1235
+ return;
1236
+ const s = e ? X : bt;
1237
+ for (; m[t.input.charCodeAt(t.begin + t.trimLeft)] & s; )
1238
+ t.trimLeft++;
1239
+ t.input.charAt(t.begin + t.trimLeft) === `
1240
+ ` && t.trimLeft++;
1241
+ }
1242
+ class M {
1243
+ constructor(e, s = Q.operators, i, r) {
1244
+ this.input = e, this.file = i, this.rawBeginAt = -1, this.p = r ? r[0] : 0, this.N = r ? r[1] : e.length, this.opTrie = He(s), this.literalTrie = He(Tt);
1245
+ }
1246
+ readExpression() {
1247
+ return new Vs(this.readExpressionTokens());
1248
+ }
1249
+ *readExpressionTokens() {
1250
+ for (; this.p < this.N; ) {
1251
+ const e = this.readOperator();
1252
+ if (e) {
1253
+ yield e;
1254
+ continue;
1255
+ }
1256
+ const s = this.readValue();
1257
+ if (s) {
1258
+ yield s;
1259
+ continue;
1260
+ }
1261
+ return;
1262
+ }
1263
+ }
1264
+ readOperator() {
1265
+ this.skipBlank();
1266
+ const e = this.matchTrie(this.opTrie);
1267
+ if (e !== -1)
1268
+ return new Ss(this.input, this.p, this.p = e, this.file);
1269
+ }
1270
+ matchTrie(e) {
1271
+ let s = e, i = this.p, r;
1272
+ for (; s[this.input[i]] && i < this.N; )
1273
+ s = s[this.input[i++]], s.end && (r = s);
1274
+ return !r || r.needBoundary && ne(this.peek(i - this.p)) ? -1 : i;
1275
+ }
1276
+ readFilteredValue() {
1277
+ const e = this.p, s = this.readExpression();
1278
+ this.assert(s.valid(), `invalid value expression: ${this.snapshot()}`);
1279
+ const i = this.readFilters();
1280
+ return new Rs(s, i, this.input, e, this.p, this.file);
1281
+ }
1282
+ readFilters() {
1283
+ const e = [];
1284
+ for (; ; ) {
1285
+ const s = this.readFilter();
1286
+ if (!s)
1287
+ return e;
1288
+ e.push(s);
1289
+ }
1290
+ }
1291
+ readFilter() {
1292
+ if (this.skipBlank(), this.end())
1293
+ return null;
1294
+ this.assert(this.read() === "|", 'expected "|" before filter');
1295
+ const e = this.readIdentifier();
1296
+ if (!e.size())
1297
+ return this.assert(this.end(), "expected filter name"), null;
1298
+ const s = [];
1299
+ if (this.skipBlank(), this.peek() === ":")
1300
+ do {
1301
+ ++this.p;
1302
+ const i = this.readFilterArg();
1303
+ i && s.push(i), this.skipBlank(), this.assert(this.end() || this.peek() === "," || this.peek() === "|", () => `unexpected character ${this.snapshot()}`);
1304
+ } while (this.peek() === ",");
1305
+ else if (!(this.peek() === "|" || this.end())) throw this.error('expected ":" after filter name');
1306
+ return new _t(e.getText(), s, this.input, e.begin, this.p, this.file);
1307
+ }
1308
+ readFilterArg() {
1309
+ const e = this.readValue();
1310
+ if (!e)
1311
+ return;
1312
+ if (this.skipBlank(), this.peek() !== ":")
1313
+ return e;
1314
+ ++this.p;
1315
+ const s = this.readValue();
1316
+ return [e.getText(), s];
1317
+ }
1318
+ readTopLevelTokens(e = Q) {
1319
+ const s = [];
1320
+ for (; this.p < this.N; ) {
1321
+ const i = this.readTopLevelToken(e);
1322
+ s.push(i);
1323
+ }
1324
+ return di(s, e), s;
1325
+ }
1326
+ readTopLevelToken(e) {
1327
+ const { tagDelimiterLeft: s, outputDelimiterLeft: i } = e;
1328
+ return this.rawBeginAt > -1 ? this.readEndrawOrRawContent(e) : this.match(s) ? this.readTagToken(e) : this.match(i) ? this.readOutputToken(e) : this.readHTMLToken([s, i]);
1329
+ }
1330
+ readHTMLToken(e) {
1331
+ const s = this.p;
1332
+ for (; this.p < this.N && !e.some((i) => this.match(i)); )
1333
+ ++this.p;
1334
+ return new Ze(this.input, s, this.p, this.file);
1335
+ }
1336
+ readTagToken(e) {
1337
+ const { file: s, input: i } = this, r = this.p;
1338
+ if (this.readToDelimiter(e.tagDelimiterRight) === -1)
1339
+ throw this.error(`tag ${this.snapshot(r)} not closed`, r);
1340
+ const n = new Je(i, r, this.p, e, s);
1341
+ return n.name === "raw" && (this.rawBeginAt = r), n;
1342
+ }
1343
+ readToDelimiter(e, s = !1) {
1344
+ for (this.skipBlank(); this.p < this.N; ) {
1345
+ if (s && this.peekType() & Ie) {
1346
+ this.readQuoted();
1347
+ continue;
1348
+ }
1349
+ if (++this.p, this.rmatch(e))
1350
+ return this.p;
1351
+ }
1352
+ return -1;
1353
+ }
1354
+ readOutputToken(e = Q) {
1355
+ const { file: s, input: i } = this, { outputDelimiterRight: r } = e, n = this.p;
1356
+ if (this.readToDelimiter(r, !0) === -1)
1357
+ throw this.error(`output ${this.snapshot(n)} not closed`, n);
1358
+ return new bs(i, n, this.p, e, s);
1359
+ }
1360
+ readEndrawOrRawContent(e) {
1361
+ const { tagDelimiterLeft: s, tagDelimiterRight: i } = e, r = this.p;
1362
+ let n = this.readTo(s) - s.length;
1363
+ for (; this.p < this.N; ) {
1364
+ if (this.readIdentifier().getText() !== "endraw") {
1365
+ n = this.readTo(s) - s.length;
1366
+ continue;
1367
+ }
1368
+ for (; this.p <= this.N; ) {
1369
+ if (this.rmatch(i)) {
1370
+ const o = this.p;
1371
+ return r === n ? (this.rawBeginAt = -1, new Je(this.input, r, o, e, this.file)) : (this.p = n, new Ze(this.input, r, n, this.file));
1372
+ }
1373
+ if (this.rmatch(s))
1374
+ break;
1375
+ this.p++;
1376
+ }
1377
+ }
1378
+ throw this.error(`raw ${this.snapshot(this.rawBeginAt)} not closed`, r);
1379
+ }
1380
+ readLiquidTagTokens(e = Q) {
1381
+ const s = [];
1382
+ for (; this.p < this.N; ) {
1383
+ const i = this.readLiquidTagToken(e);
1384
+ i && s.push(i);
1385
+ }
1386
+ return s;
1387
+ }
1388
+ readLiquidTagToken(e) {
1389
+ if (this.skipBlank(), this.end())
1390
+ return;
1391
+ const s = this.p;
1392
+ this.readToDelimiter(`
1393
+ `);
1394
+ const i = this.p;
1395
+ return new zs(this.input, s, i, e, this.file);
1396
+ }
1397
+ error(e, s = this.p) {
1398
+ return new Jt(e, new ye(this.input, s, this.N, this.file));
1399
+ }
1400
+ assert(e, s, i) {
1401
+ if (!e)
1402
+ throw this.error(typeof s == "function" ? s() : s, i);
1403
+ }
1404
+ snapshot(e = this.p) {
1405
+ return JSON.stringify(Yt(this.input.slice(e, this.N), 32));
1406
+ }
1407
+ /**
1408
+ * @deprecated use #readIdentifier instead
1409
+ */
1410
+ readWord() {
1411
+ return this.readIdentifier();
1412
+ }
1413
+ readIdentifier() {
1414
+ this.skipBlank();
1415
+ const e = this.p;
1416
+ for (; !this.end() && ne(this.peek()); )
1417
+ ++this.p;
1418
+ return new ye(this.input, e, this.p, this.file);
1419
+ }
1420
+ readNonEmptyIdentifier() {
1421
+ const e = this.readIdentifier();
1422
+ return e.size() ? e : void 0;
1423
+ }
1424
+ readTagName() {
1425
+ return this.skipBlank(), this.input[this.p] === "#" ? this.input.slice(this.p, ++this.p) : this.readIdentifier().getText();
1426
+ }
1427
+ readHashes(e) {
1428
+ const s = [];
1429
+ for (; ; ) {
1430
+ const i = this.readHash(e);
1431
+ if (!i)
1432
+ return s;
1433
+ s.push(i);
1434
+ }
1435
+ }
1436
+ readHash(e) {
1437
+ this.skipBlank(), this.peek() === "," && ++this.p;
1438
+ const s = this.p, i = this.readNonEmptyIdentifier();
1439
+ if (!i)
1440
+ return;
1441
+ let r;
1442
+ this.skipBlank();
1443
+ const n = f(e) ? e : e ? "=" : ":";
1444
+ return this.peek() === n && (++this.p, r = this.readValue()), new xs(this.input, s, this.p, i, r, this.file);
1445
+ }
1446
+ remaining() {
1447
+ return this.input.slice(this.p, this.N);
1448
+ }
1449
+ advance(e = 1) {
1450
+ this.p += e;
1451
+ }
1452
+ end() {
1453
+ return this.p >= this.N;
1454
+ }
1455
+ read() {
1456
+ return this.input[this.p++];
1457
+ }
1458
+ readTo(e) {
1459
+ for (; this.p < this.N; )
1460
+ if (++this.p, this.rmatch(e))
1461
+ return this.p;
1462
+ return -1;
1463
+ }
1464
+ readValue() {
1465
+ this.skipBlank();
1466
+ const e = this.p, s = this.readLiteral() || this.readQuoted() || this.readRange() || this.readNumber(), i = this.readProperties(!s);
1467
+ return i.length ? new Ge(s, i, this.input, e, this.p) : s;
1468
+ }
1469
+ readScopeValue() {
1470
+ this.skipBlank();
1471
+ const e = this.p, s = this.readProperties();
1472
+ if (s.length)
1473
+ return new Ge(void 0, s, this.input, e, this.p);
1474
+ }
1475
+ readProperties(e = !0) {
1476
+ const s = [];
1477
+ for (; ; ) {
1478
+ if (this.peek() === "[") {
1479
+ this.p++;
1480
+ const i = this.readValue() || new ye(this.input, this.p, this.p, this.file);
1481
+ this.assert(this.readTo("]") !== -1, "[ not closed"), s.push(i);
1482
+ continue;
1483
+ }
1484
+ if (e && !s.length) {
1485
+ const i = this.readNonEmptyIdentifier();
1486
+ if (i) {
1487
+ s.push(i);
1488
+ continue;
1489
+ }
1490
+ }
1491
+ if (this.peek() === "." && this.peek(1) !== ".") {
1492
+ this.p++;
1493
+ const i = this.readNonEmptyIdentifier();
1494
+ if (!i)
1495
+ break;
1496
+ s.push(i);
1497
+ continue;
1498
+ }
1499
+ break;
1500
+ }
1501
+ return s;
1502
+ }
1503
+ readNumber() {
1504
+ this.skipBlank();
1505
+ let e = !1, s = !1, i = 0;
1506
+ for (this.peekType() & rs && i++; this.p + i <= this.N; )
1507
+ if (this.peekType(i) & is)
1508
+ s = !0, i++;
1509
+ else if (this.peek(i) === "." && this.peek(i + 1) !== ".") {
1510
+ if (e || !s)
1511
+ return;
1512
+ e = !0, i++;
1513
+ } else
1514
+ break;
1515
+ if (s && !ne(this.peek(i))) {
1516
+ const r = new Ts(this.input, this.p, this.p + i, this.file);
1517
+ return this.advance(i), r;
1518
+ }
1519
+ }
1520
+ readLiteral() {
1521
+ this.skipBlank();
1522
+ const e = this.matchTrie(this.literalTrie);
1523
+ if (e === -1)
1524
+ return;
1525
+ const s = new ks(this.input, this.p, e, this.file);
1526
+ return this.p = e, s;
1527
+ }
1528
+ readRange() {
1529
+ this.skipBlank();
1530
+ const e = this.p;
1531
+ if (this.peek() !== "(")
1532
+ return;
1533
+ ++this.p;
1534
+ const s = this.readValueOrThrow();
1535
+ this.skipBlank(), this.assert(this.read() === "." && this.read() === ".", "invalid range syntax");
1536
+ const i = this.readValueOrThrow();
1537
+ return this.skipBlank(), this.assert(this.read() === ")", "invalid range syntax"), new Os(this.input, e, this.p, s, i, this.file);
1538
+ }
1539
+ readValueOrThrow() {
1540
+ const e = this.readValue();
1541
+ return this.assert(e, () => `unexpected token ${this.snapshot()}, value expected`), e;
1542
+ }
1543
+ readQuoted() {
1544
+ this.skipBlank();
1545
+ const e = this.p;
1546
+ if (!(this.peekType() & Ie))
1547
+ return;
1548
+ ++this.p;
1549
+ let s = !1;
1550
+ for (; this.p < this.N && (++this.p, !(this.input[this.p - 1] === this.input[e] && !s)); )
1551
+ s ? s = !1 : this.input[this.p - 1] === "\\" && (s = !0);
1552
+ return new Ls(this.input, e, this.p, this.file);
1553
+ }
1554
+ *readFileNameTemplate(e) {
1555
+ const { outputDelimiterLeft: s } = e, i = [",", " ", s], r = new Set(i);
1556
+ for (; this.p < this.N && !r.has(this.peek()); )
1557
+ yield this.match(s) ? this.readOutputToken(e) : this.readHTMLToken(i);
1558
+ }
1559
+ match(e) {
1560
+ for (let s = 0; s < e.length; s++)
1561
+ if (e[s] !== this.input[this.p + s])
1562
+ return !1;
1563
+ return !0;
1564
+ }
1565
+ rmatch(e) {
1566
+ for (let s = 0; s < e.length; s++)
1567
+ if (e[e.length - 1 - s] !== this.input[this.p - 1 - s])
1568
+ return !1;
1569
+ return !0;
1570
+ }
1571
+ peekType(e = 0) {
1572
+ return this.p + e >= this.N ? 0 : m[this.input.charCodeAt(this.p + e)];
1573
+ }
1574
+ peek(e = 0) {
1575
+ return this.p + e >= this.N ? "" : this.input[this.p + e];
1576
+ }
1577
+ skipBlank() {
1578
+ for (; this.peekType() & X; )
1579
+ ++this.p;
1580
+ }
1581
+ }
1582
+ class mi {
1583
+ constructor(e, s) {
1584
+ this.handlers = {}, this.stopRequested = !1, this.tokens = e, this.parseToken = s;
1585
+ }
1586
+ on(e, s) {
1587
+ return this.handlers[e] = s, this;
1588
+ }
1589
+ trigger(e, s) {
1590
+ const i = this.handlers[e];
1591
+ return i ? (i.call(this, s), !0) : !1;
1592
+ }
1593
+ start() {
1594
+ this.trigger("start");
1595
+ let e;
1596
+ for (; !this.stopRequested && (e = this.tokens.shift()); ) {
1597
+ if (this.trigger("token", e) || Z(e) && this.trigger(`tag:${e.name}`, e))
1598
+ continue;
1599
+ const s = this.parseToken(e, this.tokens);
1600
+ this.trigger("template", s);
1601
+ }
1602
+ return this.stopRequested || this.trigger("end"), this;
1603
+ }
1604
+ stop() {
1605
+ return this.stopRequested = !0, this;
1606
+ }
1607
+ }
1608
+ class Re {
1609
+ constructor(e) {
1610
+ this.token = e;
1611
+ }
1612
+ }
1613
+ class b extends Re {
1614
+ constructor(e, s, i) {
1615
+ super(e), this.name = e.name, this.liquid = i, this.tokenizer = e.tokenizer;
1616
+ }
1617
+ }
1618
+ class ee {
1619
+ constructor(e, s) {
1620
+ this.hash = {};
1621
+ const i = e instanceof M ? e : new M(e, {});
1622
+ for (const r of i.readHashes(s))
1623
+ this.hash[r.name.content] = r.value;
1624
+ }
1625
+ *render(e) {
1626
+ const s = {};
1627
+ for (const i of Object.keys(this.hash))
1628
+ s[i] = this.hash[i] === void 0 ? !0 : yield T(this.hash[i], e);
1629
+ return s;
1630
+ }
1631
+ }
1632
+ function yi(t) {
1633
+ return class extends b {
1634
+ constructor(e, s, i) {
1635
+ super(e, s, i), v(t.parse) && t.parse.call(this, e, s);
1636
+ }
1637
+ *render(e, s) {
1638
+ const i = yield new ee(this.token.args, e.opts.keyValueSeparator).render(e);
1639
+ return yield t.render.call(this, e, s, i);
1640
+ }
1641
+ };
1642
+ }
1643
+ function zt(t) {
1644
+ return x(t);
1645
+ }
1646
+ class Rt {
1647
+ constructor(e, s, i) {
1648
+ this.token = e, this.name = e.name, this.handler = v(s) ? s : v(s == null ? void 0 : s.handler) ? s.handler : yt, this.raw = !v(s) && !!(s != null && s.raw), this.args = e.args, this.liquid = i;
1649
+ }
1650
+ *render(e, s) {
1651
+ const i = [];
1652
+ for (const r of this.args)
1653
+ zt(r) ? i.push([r[0], yield T(r[1], s)]) : i.push(yield T(r, s));
1654
+ return yield this.handler.apply({ context: s, token: this.token, liquid: this.liquid }, [e, ...i]);
1655
+ }
1656
+ }
1657
+ class L {
1658
+ /**
1659
+ * @param str the value to be valuated, eg.: "foobar" | truncate: 3
1660
+ */
1661
+ constructor(e, s) {
1662
+ this.filters = [];
1663
+ const i = typeof e == "string" ? new M(e, s.options.operators).readFilteredValue() : e;
1664
+ this.initial = i.initial, this.filters = i.filters.map((r) => new Rt(r, this.getFilter(s, r.name), s));
1665
+ }
1666
+ *value(e, s) {
1667
+ s = s || e.opts.lenientIf && this.filters.length > 0 && this.filters[0].name === "default";
1668
+ let i = yield this.initial.evaluate(e, s);
1669
+ for (const r of this.filters)
1670
+ i = yield r.render(i, e);
1671
+ return i;
1672
+ }
1673
+ getFilter(e, s) {
1674
+ const i = e.filters[s];
1675
+ return _(i || !e.options.strictFilters, () => `undefined filter: ${s}`), i;
1676
+ }
1677
+ }
1678
+ class wi extends Re {
1679
+ constructor(e, s) {
1680
+ var i;
1681
+ super(e);
1682
+ const r = new M(e.input, s.options.operators, e.file, e.contentRange);
1683
+ this.value = new L(r.readFilteredValue(), s);
1684
+ const n = this.value.filters, o = s.options.outputEscape;
1685
+ if (!(!((i = n[n.length - 1]) === null || i === void 0) && i.raw) && o) {
1686
+ const a = new _t(toString.call(o), [], "", 0, 0);
1687
+ n.push(new Rt(a, o, s));
1688
+ }
1689
+ }
1690
+ *render(e, s) {
1691
+ const i = yield this.value.value(e, !1);
1692
+ s.write(i);
1693
+ }
1694
+ *arguments() {
1695
+ yield this.value;
1696
+ }
1697
+ }
1698
+ class bi extends Re {
1699
+ constructor(e) {
1700
+ super(e), this.str = e.getContent();
1701
+ }
1702
+ *render(e, s) {
1703
+ s.write(this.str);
1704
+ }
1705
+ }
1706
+ class H {
1707
+ constructor(e, s) {
1708
+ this.segments = e, this.location = s;
1709
+ }
1710
+ toString() {
1711
+ return ue(this.segments, !0);
1712
+ }
1713
+ /** Return this variable's segments as an array, possibly with nested arrays for nested paths. */
1714
+ toArray() {
1715
+ function* e(...s) {
1716
+ for (const i of s)
1717
+ i instanceof H ? yield Array.from(e(...i.segments)) : yield i;
1718
+ }
1719
+ return Array.from(e(...this.segments));
1720
+ }
1721
+ }
1722
+ class be {
1723
+ constructor() {
1724
+ this.map = /* @__PURE__ */ new Map();
1725
+ }
1726
+ get(e) {
1727
+ const s = ue([e.segments[0]]);
1728
+ return this.map.has(s) || this.map.set(s, []), this.map.get(s);
1729
+ }
1730
+ has(e) {
1731
+ return this.map.has(ue([e.segments[0]]));
1732
+ }
1733
+ push(e) {
1734
+ this.get(e).push(e);
1735
+ }
1736
+ asObject() {
1737
+ return Object.fromEntries(this.map);
1738
+ }
1739
+ }
1740
+ const Et = {
1741
+ partials: !0
1742
+ };
1743
+ function* Nt(t, e, s) {
1744
+ const i = new be(), r = new be(), n = new be(), o = new it(/* @__PURE__ */ new Set()), a = /* @__PURE__ */ new Set();
1745
+ function h(l, p) {
1746
+ i.push(l);
1747
+ const g = p.alias(l);
1748
+ if (g !== void 0) {
1749
+ const w = g.segments[0];
1750
+ f(w) && !o.has(w) && r.push(g);
1751
+ } else {
1752
+ const w = l.segments[0];
1753
+ f(w) && !p.has(w) && r.push(l);
1754
+ }
1755
+ for (const w of l.segments)
1756
+ w instanceof H && h(w, p);
1757
+ }
1758
+ function* c(l, p) {
1759
+ if (l.arguments)
1760
+ for (const g of l.arguments())
1761
+ for (const w of rt(g))
1762
+ h(w, p);
1763
+ if (l.localScope)
1764
+ for (const g of l.localScope()) {
1765
+ p.add(g.content), p.deleteAlias(g.content);
1766
+ const [w, te] = g.getPosition();
1767
+ n.push(new H([g.content], { row: w, col: te, file: g.file }));
1768
+ }
1769
+ if (l.children)
1770
+ if (l.partialScope) {
1771
+ const g = l.partialScope();
1772
+ if (g === void 0) {
1773
+ for (const j of yield l.children(e, s))
1774
+ yield c(j, p);
1775
+ return;
1776
+ }
1777
+ if (a.has(g.name))
1778
+ return;
1779
+ const w = /* @__PURE__ */ new Set(), te = g.isolated ? new it(w) : p.push(w);
1780
+ for (const j of g.scope)
1781
+ if (f(j))
1782
+ w.add(j);
1783
+ else {
1784
+ const [Me, $t] = j;
1785
+ w.add(Me);
1786
+ const Ve = Array.from(rt($t));
1787
+ Ve.length && te.setAlias(Me, Ve[0].segments);
1788
+ }
1789
+ for (const j of yield l.children(e, s))
1790
+ yield c(j, te), a.add(g.name);
1791
+ te.pop();
1792
+ } else {
1793
+ l.blockScope && p.push(new Set(l.blockScope()));
1794
+ for (const g of yield l.children(e, s))
1795
+ yield c(g, p);
1796
+ l.blockScope && p.pop();
1797
+ }
1798
+ }
1799
+ for (const l of t)
1800
+ yield c(l, o);
1801
+ return {
1802
+ variables: i.asObject(),
1803
+ globals: r.asObject(),
1804
+ locals: n.asObject()
1805
+ };
1806
+ }
1807
+ function C(t, e = {}) {
1808
+ const s = Object.assign(Object.assign({}, Et), e);
1809
+ return V(Nt(t, s.partials, !1));
1810
+ }
1811
+ function $(t, e = {}) {
1812
+ const s = Object.assign(Object.assign({}, Et), e);
1813
+ return q(Nt(t, s.partials, !0));
1814
+ }
1815
+ class it {
1816
+ constructor(e) {
1817
+ this.stack = [{ names: e, aliases: /* @__PURE__ */ new Map() }];
1818
+ }
1819
+ /** Return true if `name` is in scope. */
1820
+ has(e) {
1821
+ for (const s of this.stack)
1822
+ if (s.names.has(e))
1823
+ return !0;
1824
+ return !1;
1825
+ }
1826
+ push(e) {
1827
+ return this.stack.push({ names: e, aliases: /* @__PURE__ */ new Map() }), this;
1828
+ }
1829
+ pop() {
1830
+ var e;
1831
+ return (e = this.stack.pop()) === null || e === void 0 ? void 0 : e.names;
1832
+ }
1833
+ // Add a name to the template scope.
1834
+ add(e) {
1835
+ this.stack[0].names.add(e);
1836
+ }
1837
+ /** Return the variable that `variable` aliases, or `variable` if it doesn't alias anything. */
1838
+ alias(e) {
1839
+ const s = e.segments[0];
1840
+ if (!f(s))
1841
+ return;
1842
+ const i = this.getAlias(s);
1843
+ if (i !== void 0)
1844
+ return new H([...i, ...e.segments.slice(1)], e.location);
1845
+ }
1846
+ // TODO: `from` could be a path with multiple segments, like `include.x`.
1847
+ setAlias(e, s) {
1848
+ this.stack[this.stack.length - 1].aliases.set(e, s);
1849
+ }
1850
+ deleteAlias(e) {
1851
+ this.stack[this.stack.length - 1].aliases.delete(e);
1852
+ }
1853
+ getAlias(e) {
1854
+ for (const s of this.stack) {
1855
+ if (s.aliases.has(e))
1856
+ return s.aliases.get(e);
1857
+ if (s.names.has(e))
1858
+ return;
1859
+ }
1860
+ }
1861
+ }
1862
+ function* rt(t) {
1863
+ F(t) ? yield* G(t) : t instanceof L && (yield* Ti(t));
1864
+ }
1865
+ function* Ti(t) {
1866
+ for (const e of t.initial.postfix)
1867
+ F(e) && (yield* G(e));
1868
+ for (const e of t.filters)
1869
+ for (const s of e.args)
1870
+ zt(s) && s[1] ? yield* G(s[1]) : F(s) && (yield* G(s));
1871
+ }
1872
+ function* G(t) {
1873
+ Dt(t) ? (yield* G(t.lhs), yield* G(t.rhs)) : fe(t) && (yield Se(t));
1874
+ }
1875
+ function Se(t) {
1876
+ const e = [];
1877
+ let s = t.file;
1878
+ const i = t.props[0];
1879
+ s = s || i.file, xe(i) || ot(i) || at(i) ? e.push(i.content) : fe(i) && e.push(...Se(i).segments);
1880
+ for (const o of t.props.slice(1))
1881
+ s = s || o.file, xe(o) || ot(o) || at(o) ? e.push(o.content) : fe(o) && e.push(Se(o));
1882
+ const [r, n] = t.getPosition();
1883
+ return new H(e, {
1884
+ row: r,
1885
+ col: n,
1886
+ file: s
1887
+ });
1888
+ }
1889
+ const nt = /^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;
1890
+ function ue(t, e = !1) {
1891
+ const s = [], i = t[0];
1892
+ f(i) && (!e || i.match(nt) ? s.push(`${i}`) : s.push(`['${i}']`));
1893
+ for (const r of t.slice(1))
1894
+ r instanceof H ? s.push(`[${ue(r.segments)}]`) : f(r) ? r.match(nt) ? s.push(`.${r}`) : s.push(`['${r}']`) : s.push(`[${r}]`);
1895
+ return s.join("");
1896
+ }
1897
+ var W;
1898
+ (function(t) {
1899
+ t.Partials = "partials", t.Layouts = "layouts", t.Root = "root";
1900
+ })(W || (W = {}));
1901
+ class ki {
1902
+ constructor(e) {
1903
+ if (this.options = e, e.relativeReference) {
1904
+ const s = e.fs.sep;
1905
+ _(s, "`fs.sep` is required for relative reference");
1906
+ const i = new RegExp(["." + s, ".." + s, "./", "../"].map((r) => It(r)).join("|"));
1907
+ this.shouldLoadRelative = (r) => i.test(r);
1908
+ } else
1909
+ this.shouldLoadRelative = (s) => !1;
1910
+ this.contains = this.options.fs.contains || (() => !0);
1911
+ }
1912
+ *lookup(e, s, i, r) {
1913
+ const { fs: n } = this.options, o = this.options[s];
1914
+ for (const a of this.candidates(e, o, r, s !== W.Root))
1915
+ if (i ? n.existsSync(a) : yield n.exists(a))
1916
+ return a;
1917
+ throw this.lookupError(e, o);
1918
+ }
1919
+ *candidates(e, s, i, r) {
1920
+ const { fs: n, extname: o } = this.options;
1921
+ if (this.shouldLoadRelative(e) && i) {
1922
+ const a = n.resolve(this.dirname(i), e, o);
1923
+ for (const h of s)
1924
+ if (!r || this.contains(h, a)) {
1925
+ yield a;
1926
+ break;
1927
+ }
1928
+ }
1929
+ for (const a of s) {
1930
+ const h = n.resolve(a, e, o);
1931
+ (!r || this.contains(a, h)) && (yield h);
1932
+ }
1933
+ if (n.fallback !== void 0) {
1934
+ const a = n.fallback(e);
1935
+ a !== void 0 && (yield a);
1936
+ }
1937
+ }
1938
+ dirname(e) {
1939
+ const s = this.options.fs;
1940
+ return _(s.dirname, "`fs.dirname` is required for relative reference"), s.dirname(e);
1941
+ }
1942
+ lookupError(e, s) {
1943
+ const i = new Error("ENOENT");
1944
+ return i.message = `ENOENT: Failed to lookup "${e}" in "${s}"`, i.code = "ENOENT", i;
1945
+ }
1946
+ }
1947
+ class P {
1948
+ constructor(e) {
1949
+ this.liquid = e, this.cache = this.liquid.options.cache, this.fs = this.liquid.options.fs, this.parseFile = this.cache ? this._parseFileCached : this._parseFile, this.loader = new ki(this.liquid.options), this.parseLimit = new ve("parse length", e.options.parseLimit);
1950
+ }
1951
+ parse(e, s) {
1952
+ e = String(e), this.parseLimit.use(e.length);
1953
+ const r = new M(e, this.liquid.options.operators, s).readTopLevelTokens(this.liquid.options);
1954
+ return this.parseTokens(r);
1955
+ }
1956
+ parseTokens(e) {
1957
+ let s;
1958
+ const i = [], r = [];
1959
+ for (; s = e.shift(); )
1960
+ try {
1961
+ i.push(this.parseToken(s, e));
1962
+ } catch (n) {
1963
+ if (this.liquid.options.catchAllErrors)
1964
+ r.push(n);
1965
+ else
1966
+ throw n;
1967
+ }
1968
+ if (r.length)
1969
+ throw new wt(r);
1970
+ return i;
1971
+ }
1972
+ parseToken(e, s) {
1973
+ try {
1974
+ if (Z(e)) {
1975
+ const i = this.liquid.tags[e.name];
1976
+ return _(i, `tag "${e.name}" not found`), new i(e, s, this.liquid, this);
1977
+ }
1978
+ return Si(e) ? new wi(e, this.liquid) : new bi(e);
1979
+ } catch (i) {
1980
+ throw J.is(i) ? i : new Zt(i, e);
1981
+ }
1982
+ }
1983
+ parseStream(e) {
1984
+ return new mi(e, (s, i) => this.parseToken(s, i));
1985
+ }
1986
+ *_parseFileCached(e, s, i = W.Root, r) {
1987
+ const n = this.cache, o = this.loader.shouldLoadRelative(e) ? r + "," + e : i + ":" + e, a = yield n.read(o);
1988
+ if (a)
1989
+ return a;
1990
+ const h = this._parseFile(e, s, i, r), c = s ? yield h : V(h);
1991
+ n.write(o, c);
1992
+ try {
1993
+ return yield c;
1994
+ } catch (l) {
1995
+ throw n.remove(o), l;
1996
+ }
1997
+ }
1998
+ *_parseFile(e, s, i = W.Root, r) {
1999
+ const n = yield this.loader.lookup(e, i, s, r);
2000
+ return this.parse(s ? this.fs.readFileSync(n) : yield this.fs.readFile(n), n);
2001
+ }
2002
+ }
2003
+ var y;
2004
+ (function(t) {
2005
+ t[t.Number = 1] = "Number", t[t.Literal = 2] = "Literal", t[t.Tag = 4] = "Tag", t[t.Output = 8] = "Output", t[t.HTML = 16] = "HTML", t[t.Filter = 32] = "Filter", t[t.Hash = 64] = "Hash", t[t.PropertyAccess = 128] = "PropertyAccess", t[t.Word = 256] = "Word", t[t.Range = 512] = "Range", t[t.Quoted = 1024] = "Quoted", t[t.Operator = 2048] = "Operator", t[t.FilteredValue = 4096] = "FilteredValue", t[t.Delimited = 12] = "Delimited";
2006
+ })(y || (y = {}));
2007
+ function vi(t) {
2008
+ return !!(N(t) & y.Delimited);
2009
+ }
2010
+ function At(t) {
2011
+ return N(t) === y.Operator;
2012
+ }
2013
+ function Ee(t) {
2014
+ return N(t) === y.HTML;
2015
+ }
2016
+ function Si(t) {
2017
+ return N(t) === y.Output;
2018
+ }
2019
+ function Z(t) {
2020
+ return N(t) === y.Tag;
2021
+ }
2022
+ function xe(t) {
2023
+ return N(t) === y.Quoted;
2024
+ }
2025
+ function ot(t) {
2026
+ return N(t) === y.Number;
2027
+ }
2028
+ function fe(t) {
2029
+ return N(t) === y.PropertyAccess;
2030
+ }
2031
+ function at(t) {
2032
+ return N(t) === y.Word;
2033
+ }
2034
+ function Dt(t) {
2035
+ return N(t) === y.Range;
2036
+ }
2037
+ function F(t) {
2038
+ return (N(t) & 1667) > 0;
2039
+ }
2040
+ function N(t) {
2041
+ return t ? t.kind : -1;
2042
+ }
2043
+ class I {
2044
+ constructor(e = {}, s = Q, i = {}, { memoryLimit: r, renderLimit: n } = {}) {
2045
+ var o, a, h, c, l;
2046
+ this.scopes = [{}], this.registers = {}, this.breakCalled = !1, this.continueCalled = !1, this.sync = !!i.sync, this.opts = s, this.globals = (o = i.globals) !== null && o !== void 0 ? o : s.globals, this.environments = pe(e) ? e : Object(e), this.strictVariables = (a = i.strictVariables) !== null && a !== void 0 ? a : this.opts.strictVariables, this.ownPropertyOnly = (h = i.ownPropertyOnly) !== null && h !== void 0 ? h : s.ownPropertyOnly, this.memoryLimit = r ?? new ve("memory alloc", (c = i.memoryLimit) !== null && c !== void 0 ? c : s.memoryLimit), this.renderLimit = n ?? new ve("template render", Ft().now() + ((l = i.renderLimit) !== null && l !== void 0 ? l : s.renderLimit));
2047
+ }
2048
+ getRegister(e) {
2049
+ return this.registers[e] = this.registers[e] || {};
2050
+ }
2051
+ setRegister(e, s) {
2052
+ return this.registers[e] = s;
2053
+ }
2054
+ saveRegister(...e) {
2055
+ return e.map((s) => [s, this.getRegister(s)]);
2056
+ }
2057
+ restoreRegister(e) {
2058
+ return e.forEach(([s, i]) => this.setRegister(s, i));
2059
+ }
2060
+ getAll() {
2061
+ return [this.globals, this.environments, ...this.scopes].reduce((e, s) => ce(e, s), {});
2062
+ }
2063
+ /**
2064
+ * @deprecated use `_get()` or `getSync()` instead
2065
+ */
2066
+ get(e) {
2067
+ return this.getSync(e);
2068
+ }
2069
+ getSync(e) {
2070
+ return q(this._get(e));
2071
+ }
2072
+ *_get(e) {
2073
+ const s = this.findScope(e[0]);
2074
+ return yield this._getFromScope(s, e);
2075
+ }
2076
+ /**
2077
+ * @deprecated use `_get()` instead
2078
+ */
2079
+ getFromScope(e, s) {
2080
+ return q(this._getFromScope(e, s));
2081
+ }
2082
+ *_getFromScope(e, s, i = this.strictVariables) {
2083
+ f(s) && (s = s.split("."));
2084
+ for (let r = 0; r < s.length; r++)
2085
+ if (e = yield xi(e, s[r], this.ownPropertyOnly), i && Bt(e))
2086
+ throw new Xt(s.slice(0, r + 1).join("."));
2087
+ return e;
2088
+ }
2089
+ push(e) {
2090
+ return this.scopes.push(e);
2091
+ }
2092
+ pop() {
2093
+ return this.scopes.pop();
2094
+ }
2095
+ bottom() {
2096
+ return this.scopes[0];
2097
+ }
2098
+ spawn(e = {}) {
2099
+ return new I(e, this.opts, {
2100
+ sync: this.sync,
2101
+ globals: this.globals,
2102
+ strictVariables: this.strictVariables
2103
+ }, {
2104
+ renderLimit: this.renderLimit,
2105
+ memoryLimit: this.memoryLimit
2106
+ });
2107
+ }
2108
+ findScope(e) {
2109
+ for (let s = this.scopes.length - 1; s >= 0; s--) {
2110
+ const i = this.scopes[s];
2111
+ if (e in i)
2112
+ return i;
2113
+ }
2114
+ return e in this.environments ? this.environments : this.globals;
2115
+ }
2116
+ }
2117
+ function xi(t, e, s) {
2118
+ if (t = ft(t), e = d(e), z(t))
2119
+ return t;
2120
+ if (x(t) && e < 0)
2121
+ return t[t.length + +e];
2122
+ const i = _i(t, e, s);
2123
+ return i === void 0 && t instanceof Y ? t.liquidMethodMissing(e) : v(i) ? i.call(t) : e === "size" ? Oi(t) : e === "first" ? Fi(t) : e === "last" ? Li(t) : i;
2124
+ }
2125
+ function _i(t, e, s) {
2126
+ if (!(s && !_e.call(t, e) && !(t instanceof Y)))
2127
+ return t[e];
2128
+ }
2129
+ function Fi(t) {
2130
+ return x(t) ? t[0] : t.first;
2131
+ }
2132
+ function Li(t) {
2133
+ return x(t) ? t[t.length - 1] : t.last;
2134
+ }
2135
+ function Oi(t) {
2136
+ if (_e.call(t, "size") || t.size !== void 0)
2137
+ return t.size;
2138
+ if (x(t) || f(t))
2139
+ return t.length;
2140
+ if (typeof t == "object")
2141
+ return Object.keys(t).length;
2142
+ }
2143
+ var U;
2144
+ (function(t) {
2145
+ t[t.OUTPUT = 0] = "OUTPUT", t[t.STORE = 1] = "STORE";
2146
+ })(U || (U = {}));
2147
+ const zi = O(Math.abs), Ri = O(Math.max), Ei = O(Math.min), Ni = O(Math.ceil), Ai = O((t, e, s = !1) => s ? Math.floor(t / e) : t / e), Di = O(Math.floor), Mi = O((t, e) => t - e), Vi = O((t, e) => t % e), qi = O((t, e) => t * e);
2148
+ function Ci(t, e = 0) {
2149
+ t = d(t), e = d(e);
2150
+ const s = Math.pow(10, e);
2151
+ return Math.round(t * s) / s;
2152
+ }
2153
+ function $i(t, e) {
2154
+ return t = d(t), e = d(e), Number(t) + Number(e);
2155
+ }
2156
+ var ji = /* @__PURE__ */ Object.freeze({
2157
+ __proto__: null,
2158
+ abs: zi,
2159
+ at_least: Ri,
2160
+ at_most: Ei,
2161
+ ceil: Ni,
2162
+ divided_by: Ai,
2163
+ floor: Di,
2164
+ minus: Mi,
2165
+ modulo: Vi,
2166
+ times: qi,
2167
+ round: Ci,
2168
+ plus: $i
2169
+ });
2170
+ const Pi = (t) => decodeURIComponent(u(t)).replace(/\+/g, " "), Ii = (t) => encodeURIComponent(u(t)).replace(/%20/g, "+"), Bi = (t) => encodeURIComponent(u(t)).replace(/%20/g, "+").replace(/[!'()*]/g, (e) => "%" + e.charCodeAt(0).toString(16).toUpperCase()), Ui = (t) => encodeURI(u(t)).replace(/%5B/g, "[").replace(/%5D/g, "]"), lt = /[^\p{M}\p{L}\p{Nd}]+/ug, Hi = {
2171
+ raw: /\s+/g,
2172
+ default: lt,
2173
+ pretty: /[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/ug,
2174
+ ascii: /[^A-Za-z0-9]+/g,
2175
+ latin: lt,
2176
+ none: null
2177
+ };
2178
+ function Wi(t, e = "default", s = !1) {
2179
+ t = u(t);
2180
+ const i = Hi[e];
2181
+ return i && (e === "latin" && (t = Yi(t)), t = t.replace(i, "-").replace(/^-|-$/g, "")), s ? t : t.toLowerCase();
2182
+ }
2183
+ function Yi(t) {
2184
+ return t.replace(/[àáâãäå]/g, "a").replace(/[æ]/g, "ae").replace(/[ç]/g, "c").replace(/[èéêë]/g, "e").replace(/[ìíîï]/g, "i").replace(/[ð]/g, "d").replace(/[ñ]/g, "n").replace(/[òóôõöø]/g, "o").replace(/[ùúûü]/g, "u").replace(/[ýÿ]/g, "y").replace(/[ß]/g, "ss").replace(/[œ]/g, "oe").replace(/[þ]/g, "th").replace(/[ẞ]/g, "SS").replace(/[Œ]/g, "OE").replace(/[Þ]/g, "TH");
2185
+ }
2186
+ var Ji = /* @__PURE__ */ Object.freeze({
2187
+ __proto__: null,
2188
+ url_decode: Pi,
2189
+ url_encode: Ii,
2190
+ cgi_escape: Bi,
2191
+ uri_escape: Ui,
2192
+ slugify: Wi
2193
+ });
2194
+ const Zi = O(function(t, e) {
2195
+ const s = S(t), i = z(e) ? " " : u(e), r = s.length * (1 + i.length);
2196
+ return this.context.memoryLimit.use(r), s.join(i);
2197
+ }), Qi = O((t) => dt(t) ? pt(t) : ""), Gi = O((t) => dt(t) ? t[0] : ""), Xi = O(function(t) {
2198
+ const e = S(t);
2199
+ return this.context.memoryLimit.use(e.length), [...e].reverse();
2200
+ });
2201
+ function* Ki(t, e) {
2202
+ const s = [], i = S(t);
2203
+ this.context.memoryLimit.use(i.length);
2204
+ for (const r of i)
2205
+ s.push([
2206
+ r,
2207
+ e ? yield this.context._getFromScope(r, u(e).split("."), !1) : r
2208
+ ]);
2209
+ return s.sort((r, n) => {
2210
+ const o = r[1], a = n[1];
2211
+ return o < a ? -1 : o > a ? 1 : 0;
2212
+ }).map((r) => r[0]);
2213
+ }
2214
+ function er(t, e) {
2215
+ const s = u(e), i = e === void 0 ? je : (n, o) => je(n[s], o[s]), r = S(t);
2216
+ return this.context.memoryLimit.use(r.length), [...r].sort(i);
2217
+ }
2218
+ const tr = (t) => t && t.length || 0;
2219
+ function* sr(t, e) {
2220
+ const s = [], i = S(t);
2221
+ this.context.memoryLimit.use(i.length);
2222
+ for (const r of i)
2223
+ s.push(yield this.context._getFromScope(r, u(e), !1));
2224
+ return s;
2225
+ }
2226
+ function* ir(t, e) {
2227
+ let s = 0;
2228
+ const i = S(t);
2229
+ for (const r of i) {
2230
+ const n = Number(e ? yield this.context._getFromScope(r, u(e), !1) : r);
2231
+ s += Number.isNaN(n) ? 0 : n;
2232
+ }
2233
+ return s;
2234
+ }
2235
+ function rr(t) {
2236
+ const e = S(t);
2237
+ return this.context.memoryLimit.use(e.length), e.filter((s) => !z(d(s)));
2238
+ }
2239
+ function Mt(t, e = []) {
2240
+ const s = S(t), i = S(e);
2241
+ return this.context.memoryLimit.use(s.length + i.length), s.concat(i);
2242
+ }
2243
+ function nr(t, e) {
2244
+ return Mt.call(this, t, [e]);
2245
+ }
2246
+ function or(t, e) {
2247
+ const s = S(t);
2248
+ this.context.memoryLimit.use(s.length);
2249
+ const i = [...s];
2250
+ return i.unshift(e), i;
2251
+ }
2252
+ function ar(t) {
2253
+ const e = [...S(t)];
2254
+ return e.pop(), e;
2255
+ }
2256
+ function lr(t) {
2257
+ const e = S(t);
2258
+ this.context.memoryLimit.use(e.length);
2259
+ const s = [...e];
2260
+ return s.shift(), s;
2261
+ }
2262
+ function hr(t, e, s = 1) {
2263
+ return t = d(t), z(t) ? [] : (x(t) || (t = u(t)), e = e < 0 ? t.length + e : e, this.context.memoryLimit.use(s), t.slice(e, e + s));
2264
+ }
2265
+ function* cr(t, e, s) {
2266
+ const i = [];
2267
+ t = S(t), this.context.memoryLimit.use(t.length);
2268
+ const r = new M(u(e)).readScopeValue();
2269
+ for (const o of t)
2270
+ i.push(yield T(r, this.context.spawn(o)));
2271
+ const n = this.context.opts.jekyllWhere ? (o) => K.is(s) ? D(o, s) : x(o) ? Bs(o, s) : D(o, s) : (o) => D(o, s);
2272
+ return t.filter((o, a) => s === void 0 ? B(i[a], this.context) : n(i[a]));
2273
+ }
2274
+ function* ur(t, e, s) {
2275
+ const i = [], r = new L(u(s), this.liquid), n = S(t);
2276
+ this.context.memoryLimit.use(n.length);
2277
+ for (const o of n) {
2278
+ this.context.push({ [e]: o });
2279
+ const a = yield r.value(this.context);
2280
+ this.context.pop(), a && i.push(o);
2281
+ }
2282
+ return i;
2283
+ }
2284
+ function* fr(t, e) {
2285
+ const s = /* @__PURE__ */ new Map();
2286
+ t = ie(t);
2287
+ const i = new M(u(e)).readScopeValue();
2288
+ this.context.memoryLimit.use(t.length);
2289
+ for (const r of t) {
2290
+ const n = yield T(i, this.context.spawn(r));
2291
+ s.has(n) || s.set(n, []), s.get(n).push(r);
2292
+ }
2293
+ return [...s.entries()].map(([r, n]) => ({ name: r, items: n }));
2294
+ }
2295
+ function* dr(t, e, s) {
2296
+ const i = /* @__PURE__ */ new Map(), r = new L(u(s), this.liquid);
2297
+ t = ie(t), this.context.memoryLimit.use(t.length);
2298
+ for (const n of t) {
2299
+ this.context.push({ [e]: n });
2300
+ const o = yield r.value(this.context);
2301
+ this.context.pop(), i.has(o) || i.set(o, []), i.get(o).push(n);
2302
+ }
2303
+ return [...i.entries()].map(([n, o]) => ({ name: n, items: o }));
2304
+ }
2305
+ function* pr(t, e, s) {
2306
+ const i = new M(u(e)).readScopeValue(), r = S(t);
2307
+ for (const n of r) {
2308
+ const o = yield T(i, this.context.spawn(n));
2309
+ if (D(o, s))
2310
+ return n;
2311
+ }
2312
+ }
2313
+ function* gr(t, e, s) {
2314
+ const i = new L(u(s), this.liquid), r = S(t);
2315
+ for (const n of r) {
2316
+ this.context.push({ [e]: n });
2317
+ const o = yield i.value(this.context);
2318
+ if (this.context.pop(), o)
2319
+ return n;
2320
+ }
2321
+ }
2322
+ function mr(t) {
2323
+ return t = S(t), this.context.memoryLimit.use(t.length), [...new Set(t)];
2324
+ }
2325
+ function yr(t, e = 1) {
2326
+ if (t = d(t), z(t))
2327
+ return [];
2328
+ x(t) || (t = u(t)), this.context.memoryLimit.use(e);
2329
+ const s = [...t].sort(() => Math.random() - 0.5);
2330
+ return e === 1 ? s[0] : s.slice(0, e);
2331
+ }
2332
+ var wr = /* @__PURE__ */ Object.freeze({
2333
+ __proto__: null,
2334
+ join: Zi,
2335
+ last: Qi,
2336
+ first: Gi,
2337
+ reverse: Xi,
2338
+ sort: Ki,
2339
+ sort_natural: er,
2340
+ size: tr,
2341
+ map: sr,
2342
+ sum: ir,
2343
+ compact: rr,
2344
+ concat: Mt,
2345
+ push: nr,
2346
+ unshift: or,
2347
+ pop: ar,
2348
+ shift: lr,
2349
+ slice: hr,
2350
+ where: cr,
2351
+ where_exp: ur,
2352
+ group_by: fr,
2353
+ group_by_exp: dr,
2354
+ find: pr,
2355
+ find_exp: gr,
2356
+ uniq: mr,
2357
+ sample: yr
2358
+ });
2359
+ function Ne(t, e, s) {
2360
+ var i, r, n;
2361
+ const o = ((i = t == null ? void 0 : t.length) !== null && i !== void 0 ? i : 0) + ((r = e == null ? void 0 : e.length) !== null && r !== void 0 ? r : 0) + ((n = s == null ? void 0 : s.length) !== null && n !== void 0 ? n : 0);
2362
+ this.context.memoryLimit.use(o);
2363
+ const a = qt(t, this.context.opts, s);
2364
+ return a ? (e = d(e), e = z(e) ? this.context.opts.dateFormat : u(e), oe(a, e)) : t;
2365
+ }
2366
+ function br(t) {
2367
+ return Ne.call(this, t, "%Y-%m-%dT%H:%M:%S%:z");
2368
+ }
2369
+ function Tr(t) {
2370
+ return Ne.call(this, t, "%a, %d %b %Y %H:%M:%S %z");
2371
+ }
2372
+ function kr(t, e, s) {
2373
+ return Vt.call(this, t, "%b", e, s);
2374
+ }
2375
+ function vr(t, e, s) {
2376
+ return Vt.call(this, t, "%B", e, s);
2377
+ }
2378
+ function Vt(t, e, s, i) {
2379
+ const r = qt(t, this.context.opts);
2380
+ if (!r)
2381
+ return t;
2382
+ if (s === "ordinal") {
2383
+ const n = r.getDate();
2384
+ return i === "US" ? oe(r, `${e} ${n}%q, %Y`) : oe(r, `${n}%q ${e} %Y`);
2385
+ }
2386
+ return oe(r, `%d ${e} %Y`);
2387
+ }
2388
+ function qt(t, e, s) {
2389
+ let i;
2390
+ const r = s ?? e.timezoneOffset, n = e.locale;
2391
+ return t = d(t), t === "now" || t === "today" ? i = new E(Date.now(), n, r) : de(t) ? i = new E(t * 1e3, n, r) : f(t) ? /^\d+$/.test(t) ? i = new E(+t * 1e3, n, r) : e.preserveTimezones && s === void 0 ? i = E.createDateFixedToTimezone(t, n) : i = new E(t, n, r) : i = new E(t, n, r), i.valid() ? i : void 0;
2392
+ }
2393
+ var Sr = /* @__PURE__ */ Object.freeze({
2394
+ __proto__: null,
2395
+ date: Ne,
2396
+ date_to_xmlschema: br,
2397
+ date_to_rfc822: Tr,
2398
+ date_to_string: kr,
2399
+ date_to_long_string: vr
2400
+ });
2401
+ const Te = /[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu, ht = /[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;
2402
+ function xr(t, e) {
2403
+ _(arguments.length === 2, "append expect 2 arguments");
2404
+ const s = u(t), i = u(e);
2405
+ return this.context.memoryLimit.use(s.length + i.length), s + i;
2406
+ }
2407
+ function _r(t, e) {
2408
+ _(arguments.length === 2, "prepend expect 2 arguments");
2409
+ const s = u(t), i = u(e);
2410
+ return this.context.memoryLimit.use(s.length + i.length), i + s;
2411
+ }
2412
+ function Fr(t, e) {
2413
+ const s = u(t);
2414
+ return this.context.memoryLimit.use(s.length), e ? (e = Fe(u(e)), s.replace(new RegExp(`^[${e}]+`, "g"), "")) : s.replace(/^\s+/, "");
2415
+ }
2416
+ function Lr(t) {
2417
+ const e = u(t);
2418
+ return this.context.memoryLimit.use(e.length), e.toLowerCase();
2419
+ }
2420
+ function Or(t) {
2421
+ const e = u(t);
2422
+ return this.context.memoryLimit.use(e.length), u(e).toUpperCase();
2423
+ }
2424
+ function zr(t, e) {
2425
+ const s = u(t);
2426
+ return this.context.memoryLimit.use(s.length), s.split(u(e)).join("");
2427
+ }
2428
+ function Rr(t, e) {
2429
+ const s = u(t);
2430
+ return this.context.memoryLimit.use(s.length), s.replace(u(e), "");
2431
+ }
2432
+ function Er(t, e) {
2433
+ const s = u(t);
2434
+ this.context.memoryLimit.use(s.length);
2435
+ const i = u(e), r = s.lastIndexOf(i);
2436
+ return r === -1 ? s : s.substring(0, r) + s.substring(r + i.length);
2437
+ }
2438
+ function Nr(t, e) {
2439
+ return t = u(t), this.context.memoryLimit.use(t.length), e ? (e = Fe(u(e)), t.replace(new RegExp(`[${e}]+$`, "g"), "")) : t.replace(/\s+$/, "");
2440
+ }
2441
+ function Ar(t, e) {
2442
+ const s = u(t);
2443
+ this.context.memoryLimit.use(s.length);
2444
+ const i = s.split(u(e));
2445
+ for (; i.length && i[i.length - 1] === ""; )
2446
+ i.pop();
2447
+ return i;
2448
+ }
2449
+ function Dr(t, e) {
2450
+ const s = u(t);
2451
+ return this.context.memoryLimit.use(s.length), e ? (e = Fe(u(e)), s.replace(new RegExp(`^[${e}]+`, "g"), "").replace(new RegExp(`[${e}]+$`, "g"), "")) : s.trim();
2452
+ }
2453
+ function Mr(t) {
2454
+ const e = u(t);
2455
+ return this.context.memoryLimit.use(e.length), e.replace(/\r?\n/gm, "");
2456
+ }
2457
+ function Vr(t) {
2458
+ return t = u(t), this.context.memoryLimit.use(t.length), t.charAt(0).toUpperCase() + t.slice(1).toLowerCase();
2459
+ }
2460
+ function qr(t, e, s) {
2461
+ const i = u(t);
2462
+ return this.context.memoryLimit.use(i.length), i.split(u(e)).join(s);
2463
+ }
2464
+ function Cr(t, e, s) {
2465
+ const i = u(t);
2466
+ return this.context.memoryLimit.use(i.length), i.replace(u(e), s);
2467
+ }
2468
+ function $r(t, e, s) {
2469
+ const i = u(t);
2470
+ this.context.memoryLimit.use(i.length);
2471
+ const r = u(e), n = i.lastIndexOf(r);
2472
+ if (n === -1)
2473
+ return i;
2474
+ const o = u(s);
2475
+ return i.substring(0, n) + o + i.substring(n + r.length);
2476
+ }
2477
+ function jr(t, e = 50, s = "...") {
2478
+ const i = u(t);
2479
+ return this.context.memoryLimit.use(i.length), i.length <= e ? t : i.substring(0, e - s.length) + s;
2480
+ }
2481
+ function Pr(t, e = 15, s = "...") {
2482
+ const i = u(t);
2483
+ this.context.memoryLimit.use(i.length);
2484
+ const r = i.split(/\s+/);
2485
+ e <= 0 && (e = 1);
2486
+ let n = r.slice(0, e).join(" ");
2487
+ return r.length >= e && (n += s), n;
2488
+ }
2489
+ function Ir(t) {
2490
+ const e = u(t);
2491
+ return this.context.memoryLimit.use(e.length), e.replace(/\s+/g, " ");
2492
+ }
2493
+ function Br(t, e) {
2494
+ const s = u(t);
2495
+ if (this.context.memoryLimit.use(s.length), t = s.trim(), !t)
2496
+ return 0;
2497
+ switch (e) {
2498
+ case "cjk":
2499
+ return (t.match(Te) || []).length + (t.match(ht) || []).length;
2500
+ case "auto":
2501
+ return Te.test(t) ? t.match(Te).length + (t.match(ht) || []).length : t.split(/\s+/).length;
2502
+ default:
2503
+ return t.split(/\s+/).length;
2504
+ }
2505
+ }
2506
+ function Ur(t, e = "and") {
2507
+ switch (this.context.memoryLimit.use(t.length), t.length) {
2508
+ case 0:
2509
+ return "";
2510
+ case 1:
2511
+ return t[0];
2512
+ case 2:
2513
+ return `${t[0]} ${e} ${t[1]}`;
2514
+ default:
2515
+ return `${t.slice(0, -1).join(", ")}, ${e} ${t[t.length - 1]}`;
2516
+ }
2517
+ }
2518
+ var Hr = /* @__PURE__ */ Object.freeze({
2519
+ __proto__: null,
2520
+ append: xr,
2521
+ prepend: _r,
2522
+ lstrip: Fr,
2523
+ downcase: Lr,
2524
+ upcase: Or,
2525
+ remove: zr,
2526
+ remove_first: Rr,
2527
+ remove_last: Er,
2528
+ rstrip: Nr,
2529
+ split: Ar,
2530
+ strip: Dr,
2531
+ strip_newlines: Mr,
2532
+ capitalize: Vr,
2533
+ replace: qr,
2534
+ replace_first: Cr,
2535
+ replace_last: $r,
2536
+ truncate: jr,
2537
+ truncatewords: Pr,
2538
+ normalize_whitespace: Ir,
2539
+ number_of_words: Br,
2540
+ array_to_sentence_string: Ur
2541
+ });
2542
+ const Wr = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, hi), ji), Ji), wr), Sr), Hr), Ot);
2543
+ class Yr extends b {
2544
+ constructor(e, s, i) {
2545
+ super(e, s, i), this.identifier = this.tokenizer.readIdentifier(), this.key = this.identifier.content, this.tokenizer.assert(this.key, "expected variable name"), this.tokenizer.skipBlank(), this.tokenizer.assert(this.tokenizer.peek() === "=", 'expected "="'), this.tokenizer.advance(), this.value = new L(this.tokenizer.readFilteredValue(), this.liquid);
2546
+ }
2547
+ *render(e) {
2548
+ e.bottom()[this.key] = yield this.value.value(e, this.liquid.options.lenientIf);
2549
+ }
2550
+ *arguments() {
2551
+ yield this.value;
2552
+ }
2553
+ *localScope() {
2554
+ yield this.identifier;
2555
+ }
2556
+ }
2557
+ const ct = ["offset", "limit", "reversed"];
2558
+ class Jr extends b {
2559
+ constructor(e, s, i, r) {
2560
+ super(e, s, i);
2561
+ const n = this.tokenizer.readIdentifier(), o = this.tokenizer.readIdentifier(), a = this.tokenizer.readValue();
2562
+ if (!n.size() || o.content !== "in" || !a)
2563
+ throw new Error(`illegal tag: ${e.getText()}`);
2564
+ this.variable = n.content, this.collection = a, this.hash = new ee(this.tokenizer, i.options.keyValueSeparator), this.templates = [], this.elseTemplates = [];
2565
+ let h;
2566
+ const c = r.parseStream(s).on("start", () => h = this.templates).on("tag:else", (l) => {
2567
+ he(l.args), h = this.elseTemplates;
2568
+ }).on("tag:endfor", (l) => {
2569
+ he(l.args), c.stop();
2570
+ }).on("template", (l) => h.push(l)).on("end", () => {
2571
+ throw new Error(`tag ${e.getText()} not closed`);
2572
+ });
2573
+ c.start();
2574
+ }
2575
+ *render(e, s) {
2576
+ const i = this.liquid.renderer;
2577
+ let r = ie(yield T(this.collection, e));
2578
+ if (!r.length) {
2579
+ yield i.renderTemplates(this.elseTemplates, e, s);
2580
+ return;
2581
+ }
2582
+ const n = "continue-" + this.variable + "-" + this.collection.getText();
2583
+ e.push({ continue: e.getRegister(n) });
2584
+ const o = yield this.hash.render(e);
2585
+ e.pop(), r = (this.liquid.options.orderedFilterParameters ? Object.keys(o).filter((c) => ct.includes(c)) : ct.filter((c) => o[c] !== void 0)).reduce((c, l) => l === "offset" ? Qr(c, o.offset) : l === "limit" ? Gr(c, o.limit) : Zr(c), r), e.setRegister(n, (o.offset || 0) + r.length);
2586
+ const h = { forloop: new Oe(r.length, this.collection.getText(), this.variable) };
2587
+ e.push(h);
2588
+ for (const c of r) {
2589
+ if (h[this.variable] = c, e.continueCalled = e.breakCalled = !1, yield i.renderTemplates(this.templates, e, s), e.breakCalled)
2590
+ break;
2591
+ h.forloop.next();
2592
+ }
2593
+ e.continueCalled = e.breakCalled = !1, e.pop();
2594
+ }
2595
+ *children() {
2596
+ const e = this.templates.slice();
2597
+ return this.elseTemplates && e.push(...this.elseTemplates), e;
2598
+ }
2599
+ *arguments() {
2600
+ yield this.collection;
2601
+ for (const e of Object.values(this.hash.hash))
2602
+ F(e) && (yield e);
2603
+ }
2604
+ blockScope() {
2605
+ return [this.variable, "forloop"];
2606
+ }
2607
+ }
2608
+ function Zr(t) {
2609
+ return [...t].reverse();
2610
+ }
2611
+ function Qr(t, e) {
2612
+ return t.slice(e);
2613
+ }
2614
+ function Gr(t, e) {
2615
+ return t.slice(0, e);
2616
+ }
2617
+ class Xr extends b {
2618
+ constructor(e, s, i, r) {
2619
+ for (super(e, s, i), this.templates = [], this.identifier = this.readVariable(), this.variable = this.identifier.content; s.length; ) {
2620
+ const n = s.shift();
2621
+ if (Z(n) && n.name === "endcapture")
2622
+ return;
2623
+ this.templates.push(r.parseToken(n, s));
2624
+ }
2625
+ throw new Error(`tag ${e.getText()} not closed`);
2626
+ }
2627
+ readVariable() {
2628
+ let e = this.tokenizer.readIdentifier();
2629
+ if (e.content || (e = this.tokenizer.readQuoted(), e))
2630
+ return e;
2631
+ throw this.tokenizer.error("invalid capture name");
2632
+ }
2633
+ *render(e) {
2634
+ const i = yield this.liquid.renderer.renderTemplates(this.templates, e);
2635
+ e.bottom()[this.variable] = i;
2636
+ }
2637
+ *children() {
2638
+ return this.templates;
2639
+ }
2640
+ *localScope() {
2641
+ yield this.identifier;
2642
+ }
2643
+ }
2644
+ class Kr extends b {
2645
+ constructor(e, s, i, r) {
2646
+ super(e, s, i), this.branches = [], this.elseTemplates = [], this.value = new L(this.tokenizer.readFilteredValue(), this.liquid), this.elseTemplates = [];
2647
+ let n = [], o = 0;
2648
+ const a = r.parseStream(s).on("tag:when", (h) => {
2649
+ if (o > 0)
2650
+ return;
2651
+ n = [];
2652
+ const c = [];
2653
+ for (; !h.tokenizer.end(); )
2654
+ c.push(h.tokenizer.readValueOrThrow()), h.tokenizer.skipBlank(), h.tokenizer.peek() === "," ? h.tokenizer.readTo(",") : h.tokenizer.readTo("or");
2655
+ this.branches.push({
2656
+ values: c,
2657
+ templates: n
2658
+ });
2659
+ }).on("tag:else", () => {
2660
+ o++, n = this.elseTemplates;
2661
+ }).on("tag:endcase", () => a.stop()).on("template", (h) => {
2662
+ (n !== this.elseTemplates || o === 1) && n.push(h);
2663
+ }).on("end", () => {
2664
+ throw new Error(`tag ${e.getText()} not closed`);
2665
+ });
2666
+ a.start();
2667
+ }
2668
+ *render(e, s) {
2669
+ const i = this.liquid.renderer, r = d(yield this.value.value(e, e.opts.lenientIf));
2670
+ let n = !1;
2671
+ for (const o of this.branches)
2672
+ for (const a of o.values) {
2673
+ const h = yield T(a, e, e.opts.lenientIf);
2674
+ if (D(r, h)) {
2675
+ yield i.renderTemplates(o.templates, e, s), n = !0;
2676
+ break;
2677
+ }
2678
+ }
2679
+ n || (yield i.renderTemplates(this.elseTemplates, e, s));
2680
+ }
2681
+ *arguments() {
2682
+ yield this.value, yield* this.branches.flatMap((e) => e.values);
2683
+ }
2684
+ *children() {
2685
+ const e = this.branches.flatMap((s) => s.templates);
2686
+ return this.elseTemplates && e.push(...this.elseTemplates), e;
2687
+ }
2688
+ }
2689
+ class en extends b {
2690
+ constructor(e, s, i) {
2691
+ for (super(e, s, i); s.length; ) {
2692
+ const r = s.shift();
2693
+ if (Z(r) && r.name === "endcomment")
2694
+ return;
2695
+ }
2696
+ throw new Error(`tag ${e.getText()} not closed`);
2697
+ }
2698
+ render() {
2699
+ }
2700
+ }
2701
+ class tn extends b {
2702
+ constructor(e, s, i, r) {
2703
+ super(e, s, i);
2704
+ const n = this.tokenizer;
2705
+ for (this.file = Ae(n, this.liquid, r), this.currentFile = e.file; !n.end(); ) {
2706
+ n.skipBlank();
2707
+ const o = n.p, a = n.readIdentifier();
2708
+ if ((a.content === "with" || a.content === "for") && (n.skipBlank(), n.peek() !== ":")) {
2709
+ const h = n.readValue();
2710
+ if (h) {
2711
+ const c = n.p, l = n.readIdentifier();
2712
+ let p;
2713
+ l.content === "as" ? p = n.readIdentifier() : n.p = c, this[a.content] = { value: h, alias: p && p.content }, n.skipBlank(), n.peek() === "," && n.advance();
2714
+ continue;
2715
+ }
2716
+ }
2717
+ n.p = o;
2718
+ break;
2719
+ }
2720
+ this.hash = new ee(n, i.options.keyValueSeparator);
2721
+ }
2722
+ *render(e, s) {
2723
+ const { liquid: i, hash: r } = this, n = yield De(this.file, e, i);
2724
+ _(n, () => `illegal file path "${n}"`);
2725
+ const o = e.spawn(), a = o.bottom();
2726
+ if (ce(a, yield r.render(e)), this.with) {
2727
+ const { value: h, alias: c } = this.with;
2728
+ a[c || n] = yield T(h, e);
2729
+ }
2730
+ if (this.for) {
2731
+ const { value: h, alias: c } = this.for, l = ie(yield T(h, e));
2732
+ a.forloop = new Oe(l.length, h.getText(), c);
2733
+ for (const p of l) {
2734
+ a[c] = p;
2735
+ const g = yield i._parsePartialFile(n, o.sync, this.currentFile);
2736
+ yield i.renderer.renderTemplates(g, o, s), a.forloop.next();
2737
+ }
2738
+ } else {
2739
+ const h = yield i._parsePartialFile(n, o.sync, this.currentFile);
2740
+ yield i.renderer.renderTemplates(h, o, s);
2741
+ }
2742
+ }
2743
+ *children(e, s) {
2744
+ return e && f(this.file) ? yield this.liquid._parsePartialFile(this.file, s, this.currentFile) : [];
2745
+ }
2746
+ partialScope() {
2747
+ if (f(this.file)) {
2748
+ const e = Object.keys(this.hash.hash);
2749
+ if (this.with) {
2750
+ const { value: s, alias: i } = this.with;
2751
+ f(i) ? e.push([i, s]) : f(this.file) && e.push([this.file, s]);
2752
+ }
2753
+ if (this.for) {
2754
+ const { value: s, alias: i } = this.for;
2755
+ f(i) ? e.push([i, s]) : f(this.file) && e.push([this.file, s]);
2756
+ }
2757
+ return { name: this.file, isolated: !0, scope: e };
2758
+ }
2759
+ }
2760
+ *arguments() {
2761
+ for (const e of Object.values(this.hash.hash))
2762
+ F(e) && (yield e);
2763
+ if (this.with) {
2764
+ const { value: e } = this.with;
2765
+ F(e) && (yield e);
2766
+ }
2767
+ if (this.for) {
2768
+ const { value: e } = this.for;
2769
+ F(e) && (yield e);
2770
+ }
2771
+ }
2772
+ }
2773
+ function Ae(t, e, s) {
2774
+ if (e.options.dynamicPartials) {
2775
+ const n = t.readValue();
2776
+ if (t.assert(n, "illegal file path"), n.getText() === "none")
2777
+ return;
2778
+ if (xe(n)) {
2779
+ const o = s.parse(Cs(n));
2780
+ return ut(o);
2781
+ }
2782
+ return n;
2783
+ }
2784
+ const i = [...t.readFileNameTemplate(e.options)], r = ut(s.parseTokens(i));
2785
+ return r === "none" ? void 0 : r;
2786
+ }
2787
+ function ut(t) {
2788
+ return t.length === 1 && Ee(t[0].token) ? t[0].token.getContent() : t;
2789
+ }
2790
+ function* De(t, e, s) {
2791
+ return typeof t == "string" ? t : Array.isArray(t) ? s.renderer.renderTemplates(t, e) : yield T(t, e);
2792
+ }
2793
+ class sn extends b {
2794
+ constructor(e, s, i, r) {
2795
+ super(e, s, i);
2796
+ const { tokenizer: n } = e;
2797
+ this.file = Ae(n, this.liquid, r), this.currentFile = e.file;
2798
+ const o = n.p;
2799
+ n.readIdentifier().content === "with" ? (n.skipBlank(), n.peek() !== ":" ? this.withVar = n.readValue() : n.p = o) : n.p = o, this.hash = new ee(n, i.options.jekyllInclude || i.options.keyValueSeparator);
2800
+ }
2801
+ *render(e, s) {
2802
+ const { liquid: i, hash: r, withVar: n } = this, { renderer: o } = i, a = yield De(this.file, e, i);
2803
+ _(a, () => `illegal file path "${a}"`);
2804
+ const h = e.saveRegister("blocks", "blockMode");
2805
+ e.setRegister("blocks", {}), e.setRegister("blockMode", U.OUTPUT);
2806
+ const c = yield r.render(e);
2807
+ n && (c[a] = yield T(n, e));
2808
+ const l = yield i._parsePartialFile(a, e.sync, this.currentFile);
2809
+ e.push(e.opts.jekyllInclude ? { include: c } : c), yield o.renderTemplates(l, e, s), e.pop(), e.restoreRegister(h);
2810
+ }
2811
+ *children(e, s) {
2812
+ return e && f(this.file) ? yield this.liquid._parsePartialFile(this.file, s, this.currentFile) : [];
2813
+ }
2814
+ partialScope() {
2815
+ if (f(this.file)) {
2816
+ let e;
2817
+ return this.liquid.options.jekyllInclude ? e = ["include"] : (e = Object.keys(this.hash.hash), this.withVar && e.push([this.file, this.withVar])), { name: this.file, isolated: !1, scope: e };
2818
+ }
2819
+ }
2820
+ *arguments() {
2821
+ yield* Object.values(this.hash.hash).filter(F), F(this.file) && (yield this.file), F(this.withVar) && (yield this.withVar);
2822
+ }
2823
+ }
2824
+ class rn extends b {
2825
+ constructor(e, s, i) {
2826
+ super(e, s, i), this.identifier = this.tokenizer.readIdentifier(), this.variable = this.identifier.content;
2827
+ }
2828
+ render(e, s) {
2829
+ const i = e.environments;
2830
+ de(i[this.variable]) || (i[this.variable] = 0), s.write(u(--i[this.variable]));
2831
+ }
2832
+ *localScope() {
2833
+ yield this.identifier;
2834
+ }
2835
+ }
2836
+ class nn extends b {
2837
+ constructor(e, s, i) {
2838
+ super(e, s, i), this.candidates = [];
2839
+ const r = this.tokenizer.readValue();
2840
+ for (this.tokenizer.skipBlank(), r && (this.tokenizer.peek() === ":" ? (this.group = r, this.tokenizer.advance()) : this.candidates.push(r)); !this.tokenizer.end(); ) {
2841
+ const n = this.tokenizer.readValue();
2842
+ n && this.candidates.push(n), this.tokenizer.readTo(",");
2843
+ }
2844
+ this.tokenizer.assert(this.candidates.length, () => `empty candidates: "${e.getText()}"`);
2845
+ }
2846
+ *render(e, s) {
2847
+ const r = `cycle:${yield T(this.group, e)}:` + this.candidates.join(","), n = e.getRegister("cycle");
2848
+ let o = n[r];
2849
+ o === void 0 && (o = n[r] = 0);
2850
+ const a = this.candidates[o];
2851
+ return o = (o + 1) % this.candidates.length, n[r] = o, yield T(a, e);
2852
+ }
2853
+ *arguments() {
2854
+ yield* this.candidates, this.group && (yield this.group);
2855
+ }
2856
+ }
2857
+ class on extends b {
2858
+ constructor(e, s, i, r) {
2859
+ super(e, s, i), this.branches = [];
2860
+ let n = [];
2861
+ r.parseStream(s).on("start", () => this.branches.push({
2862
+ value: new L(e.tokenizer.readFilteredValue(), this.liquid),
2863
+ templates: n = []
2864
+ })).on("tag:elsif", (o) => {
2865
+ _(!this.elseTemplates, "unexpected elsif after else"), this.branches.push({
2866
+ value: new L(o.tokenizer.readFilteredValue(), this.liquid),
2867
+ templates: n = []
2868
+ });
2869
+ }).on("tag:else", (o) => {
2870
+ he(o.args), _(!this.elseTemplates, "duplicated else"), n = this.elseTemplates = [];
2871
+ }).on("tag:endif", function(o) {
2872
+ he(o.args), this.stop();
2873
+ }).on("template", (o) => n.push(o)).on("end", () => {
2874
+ throw new Error(`tag ${e.getText()} not closed`);
2875
+ }).start();
2876
+ }
2877
+ *render(e, s) {
2878
+ const i = this.liquid.renderer;
2879
+ for (const { value: r, templates: n } of this.branches) {
2880
+ const o = yield r.value(e, e.opts.lenientIf);
2881
+ if (B(o, e)) {
2882
+ yield i.renderTemplates(n, e, s);
2883
+ return;
2884
+ }
2885
+ }
2886
+ yield i.renderTemplates(this.elseTemplates || [], e, s);
2887
+ }
2888
+ *children() {
2889
+ const e = this.branches.flatMap((s) => s.templates);
2890
+ return this.elseTemplates && e.push(...this.elseTemplates), e;
2891
+ }
2892
+ arguments() {
2893
+ return this.branches.map((e) => e.value);
2894
+ }
2895
+ }
2896
+ class an extends b {
2897
+ constructor(e, s, i) {
2898
+ super(e, s, i), this.identifier = this.tokenizer.readIdentifier(), this.variable = this.identifier.content;
2899
+ }
2900
+ render(e, s) {
2901
+ const i = e.environments;
2902
+ de(i[this.variable]) || (i[this.variable] = 0);
2903
+ const r = i[this.variable];
2904
+ i[this.variable]++, s.write(u(r));
2905
+ }
2906
+ *localScope() {
2907
+ yield this.identifier;
2908
+ }
2909
+ }
2910
+ class ln extends b {
2911
+ constructor(e, s, i, r) {
2912
+ super(e, s, i), this.file = Ae(this.tokenizer, this.liquid, r), this.currentFile = e.file, this.args = new ee(this.tokenizer, i.options.keyValueSeparator), this.templates = r.parseTokens(s);
2913
+ }
2914
+ *render(e, s) {
2915
+ const { liquid: i, args: r, file: n } = this, { renderer: o } = i;
2916
+ if (n === void 0) {
2917
+ e.setRegister("blockMode", U.OUTPUT), yield o.renderTemplates(this.templates, e, s);
2918
+ return;
2919
+ }
2920
+ const a = yield De(this.file, e, i);
2921
+ _(a, () => `illegal file path "${a}"`);
2922
+ const h = yield i._parseLayoutFile(a, e.sync, this.currentFile);
2923
+ e.setRegister("blockMode", U.STORE);
2924
+ const c = yield o.renderTemplates(this.templates, e), l = e.getRegister("blocks");
2925
+ l[""] === void 0 && (l[""] = (p, g) => g.write(c)), e.setRegister("blockMode", U.OUTPUT), e.push(yield r.render(e)), yield o.renderTemplates(h, e, s), e.pop();
2926
+ }
2927
+ *children(e) {
2928
+ const s = this.templates.slice();
2929
+ return e && f(this.file) && s.push(...yield this.liquid._parsePartialFile(this.file, !0, this.currentFile)), s;
2930
+ }
2931
+ *arguments() {
2932
+ for (const e of Object.values(this.args.hash))
2933
+ F(e) && (yield e);
2934
+ F(this.file) && (yield this.file);
2935
+ }
2936
+ partialScope() {
2937
+ if (f(this.file))
2938
+ return { name: this.file, isolated: !1, scope: Object.keys(this.args.hash) };
2939
+ }
2940
+ }
2941
+ class hn extends b {
2942
+ constructor(e, s, i, r) {
2943
+ super(e, s, i), this.templates = [];
2944
+ const n = /\w+/.exec(e.args);
2945
+ for (this.block = n ? n[0] : ""; s.length; ) {
2946
+ const o = s.shift();
2947
+ if (Z(o) && o.name === "endblock")
2948
+ return;
2949
+ const a = r.parseToken(o, s);
2950
+ this.templates.push(a);
2951
+ }
2952
+ throw new Error(`tag ${e.getText()} not closed`);
2953
+ }
2954
+ *render(e, s) {
2955
+ const i = this.getBlockRender(e);
2956
+ e.getRegister("blockMode") === U.STORE ? e.getRegister("blocks")[this.block] = i : yield i(new Be(), s);
2957
+ }
2958
+ getBlockRender(e) {
2959
+ const { liquid: s, templates: i } = this, r = e.getRegister("blocks")[this.block], n = function* (o, a) {
2960
+ e.push({ block: o }), yield s.renderer.renderTemplates(i, e, a), e.pop();
2961
+ };
2962
+ return r ? (o, a) => r(new Be(() => n(o, a)), a) : n;
2963
+ }
2964
+ *children() {
2965
+ return this.templates;
2966
+ }
2967
+ blockScope() {
2968
+ return ["block"];
2969
+ }
2970
+ }
2971
+ class cn extends b {
2972
+ constructor(e, s, i) {
2973
+ for (super(e, s, i), this.tokens = []; s.length; ) {
2974
+ const r = s.shift();
2975
+ if (Z(r) && r.name === "endraw")
2976
+ return;
2977
+ this.tokens.push(r);
2978
+ }
2979
+ throw new Error(`tag ${e.getText()} not closed`);
2980
+ }
2981
+ render() {
2982
+ return this.tokens.map((e) => e.getText()).join("");
2983
+ }
2984
+ }
2985
+ class un extends Oe {
2986
+ constructor(e, s, i, r) {
2987
+ super(e, i, r), this.length = e, this.cols = s;
2988
+ }
2989
+ row() {
2990
+ return Math.floor(this.i / this.cols) + 1;
2991
+ }
2992
+ col0() {
2993
+ return this.i % this.cols;
2994
+ }
2995
+ col() {
2996
+ return this.col0() + 1;
2997
+ }
2998
+ col_first() {
2999
+ return this.col0() === 0;
3000
+ }
3001
+ col_last() {
3002
+ return this.col() === this.cols;
3003
+ }
3004
+ }
3005
+ class fn extends b {
3006
+ constructor(e, s, i, r) {
3007
+ super(e, s, i);
3008
+ const n = this.tokenizer.readIdentifier();
3009
+ this.tokenizer.skipBlank();
3010
+ const o = this.tokenizer.readIdentifier(), a = this.tokenizer.readValue();
3011
+ if (o.content !== "in" || !a)
3012
+ throw new Error(`illegal tag: ${e.getText()}`);
3013
+ this.variable = n.content, this.collection = a, this.args = new ee(this.tokenizer, i.options.keyValueSeparator), this.templates = [];
3014
+ let h;
3015
+ const c = r.parseStream(s).on("start", () => h = this.templates).on("tag:endtablerow", () => c.stop()).on("template", (l) => h.push(l)).on("end", () => {
3016
+ throw new Error(`tag ${e.getText()} not closed`);
3017
+ });
3018
+ c.start();
3019
+ }
3020
+ *render(e, s) {
3021
+ let i = ie(yield T(this.collection, e));
3022
+ const r = yield this.args.render(e), n = r.offset || 0, o = r.limit === void 0 ? i.length : r.limit;
3023
+ i = i.slice(n, n + o);
3024
+ const a = r.cols || i.length, h = this.liquid.renderer, c = new un(i.length, a, this.collection.getText(), this.variable), l = { tablerowloop: c };
3025
+ e.push(l);
3026
+ for (let p = 0; p < i.length; p++, c.next())
3027
+ l[this.variable] = i[p], c.col0() === 0 && (c.row() !== 1 && s.write("</tr>"), s.write(`<tr class="row${c.row()}">`)), s.write(`<td class="col${c.col()}">`), yield h.renderTemplates(this.templates, e, s), s.write("</td>");
3028
+ i.length && s.write("</tr>"), e.pop();
3029
+ }
3030
+ *children() {
3031
+ return this.templates;
3032
+ }
3033
+ *arguments() {
3034
+ yield this.collection;
3035
+ for (const e of Object.values(this.args.hash))
3036
+ F(e) && (yield e);
3037
+ }
3038
+ blockScope() {
3039
+ return [this.variable, "tablerowloop"];
3040
+ }
3041
+ }
3042
+ class dn extends b {
3043
+ constructor(e, s, i, r) {
3044
+ super(e, s, i), this.branches = [], this.elseTemplates = [];
3045
+ let n = [], o = 0;
3046
+ r.parseStream(s).on("start", () => this.branches.push({
3047
+ value: new L(e.tokenizer.readFilteredValue(), this.liquid),
3048
+ test: ge,
3049
+ templates: n = []
3050
+ })).on("tag:elsif", (a) => {
3051
+ if (o > 0) {
3052
+ n = [];
3053
+ return;
3054
+ }
3055
+ this.branches.push({
3056
+ value: new L(a.tokenizer.readFilteredValue(), this.liquid),
3057
+ test: B,
3058
+ templates: n = []
3059
+ });
3060
+ }).on("tag:else", () => {
3061
+ o++, n = this.elseTemplates;
3062
+ }).on("tag:endunless", function() {
3063
+ this.stop();
3064
+ }).on("template", (a) => {
3065
+ (n !== this.elseTemplates || o === 1) && n.push(a);
3066
+ }).on("end", () => {
3067
+ throw new Error(`tag ${e.getText()} not closed`);
3068
+ }).start();
3069
+ }
3070
+ *render(e, s) {
3071
+ const i = this.liquid.renderer;
3072
+ for (const { value: r, test: n, templates: o } of this.branches) {
3073
+ const a = yield r.value(e, e.opts.lenientIf);
3074
+ if (n(a, e)) {
3075
+ yield i.renderTemplates(o, e, s);
3076
+ return;
3077
+ }
3078
+ }
3079
+ yield i.renderTemplates(this.elseTemplates, e, s);
3080
+ }
3081
+ *children() {
3082
+ const e = this.branches.flatMap((s) => s.templates);
3083
+ return this.elseTemplates && e.push(...this.elseTemplates), e;
3084
+ }
3085
+ arguments() {
3086
+ return this.branches.map((e) => e.value);
3087
+ }
3088
+ }
3089
+ class pn extends b {
3090
+ render(e, s) {
3091
+ e.breakCalled = !0;
3092
+ }
3093
+ }
3094
+ class gn extends b {
3095
+ render(e, s) {
3096
+ e.continueCalled = !0;
3097
+ }
3098
+ }
3099
+ class mn extends b {
3100
+ constructor(e, s, i) {
3101
+ super(e, s, i), this.tokenizer.skipBlank(), this.tokenizer.end() || (this.value = new L(this.tokenizer.readFilteredValue(), this.liquid));
3102
+ }
3103
+ *render(e, s) {
3104
+ if (!this.value)
3105
+ return;
3106
+ const i = yield this.value.value(e, !1);
3107
+ s.write(i);
3108
+ }
3109
+ *arguments() {
3110
+ this.value && (yield this.value);
3111
+ }
3112
+ }
3113
+ class yn extends b {
3114
+ constructor(e, s, i, r) {
3115
+ super(e, s, i);
3116
+ const n = this.tokenizer.readLiquidTagTokens(this.liquid.options);
3117
+ this.templates = r.parseTokens(n);
3118
+ }
3119
+ *render(e, s) {
3120
+ yield this.liquid.renderer.renderTemplates(this.templates, e, s);
3121
+ }
3122
+ *children() {
3123
+ return this.templates;
3124
+ }
3125
+ }
3126
+ class wn extends b {
3127
+ constructor(e, s, i) {
3128
+ if (super(e, s, i), e.args.search(/\n\s*[^#\s]/g) !== -1)
3129
+ throw new Error("every line of an inline comment must start with a '#' character");
3130
+ }
3131
+ render() {
3132
+ }
3133
+ }
3134
+ const bn = {
3135
+ assign: Yr,
3136
+ for: Jr,
3137
+ capture: Xr,
3138
+ case: Kr,
3139
+ comment: en,
3140
+ include: sn,
3141
+ render: tn,
3142
+ decrement: rn,
3143
+ increment: an,
3144
+ cycle: nn,
3145
+ if: on,
3146
+ layout: ln,
3147
+ block: hn,
3148
+ raw: cn,
3149
+ tablerow: fn,
3150
+ unless: dn,
3151
+ break: pn,
3152
+ continue: gn,
3153
+ echo: mn,
3154
+ liquid: yn,
3155
+ "#": wn
3156
+ };
3157
+ class Ct {
3158
+ constructor(e = {}) {
3159
+ this.renderer = new Ms(), this.filters = {}, this.tags = {}, this.options = ui(e), this.parser = new P(this), $e(bn, (s, i) => this.registerTag(i, s)), $e(Wr, (s, i) => this.registerFilter(i, s));
3160
+ }
3161
+ parse(e, s) {
3162
+ return new P(this).parse(e, s);
3163
+ }
3164
+ _render(e, s, i) {
3165
+ const r = s instanceof I ? s : new I(s, this.options, i);
3166
+ return this.renderer.renderTemplates(e, r);
3167
+ }
3168
+ render(e, s, i) {
3169
+ return k(this, void 0, void 0, function* () {
3170
+ return V(this._render(e, s, Object.assign(Object.assign({}, i), { sync: !1 })));
3171
+ });
3172
+ }
3173
+ renderSync(e, s, i) {
3174
+ return q(this._render(e, s, Object.assign(Object.assign({}, i), { sync: !0 })));
3175
+ }
3176
+ renderToNodeStream(e, s, i = {}) {
3177
+ const r = new I(s, this.options, i);
3178
+ return this.renderer.renderTemplatesToNodeStream(e, r);
3179
+ }
3180
+ _parseAndRender(e, s, i) {
3181
+ const r = this.parse(e);
3182
+ return this._render(r, s, i);
3183
+ }
3184
+ parseAndRender(e, s, i) {
3185
+ return k(this, void 0, void 0, function* () {
3186
+ return V(this._parseAndRender(e, s, Object.assign(Object.assign({}, i), { sync: !1 })));
3187
+ });
3188
+ }
3189
+ parseAndRenderSync(e, s, i) {
3190
+ return q(this._parseAndRender(e, s, Object.assign(Object.assign({}, i), { sync: !0 })));
3191
+ }
3192
+ _parsePartialFile(e, s, i) {
3193
+ return new P(this).parseFile(e, s, W.Partials, i);
3194
+ }
3195
+ _parseLayoutFile(e, s, i) {
3196
+ return new P(this).parseFile(e, s, W.Layouts, i);
3197
+ }
3198
+ _parseFile(e, s, i, r) {
3199
+ return new P(this).parseFile(e, s, i, r);
3200
+ }
3201
+ parseFile(e, s) {
3202
+ return k(this, void 0, void 0, function* () {
3203
+ return V(new P(this).parseFile(e, !1, s));
3204
+ });
3205
+ }
3206
+ parseFileSync(e, s) {
3207
+ return q(new P(this).parseFile(e, !0, s));
3208
+ }
3209
+ *_renderFile(e, s, i) {
3210
+ const r = yield this._parseFile(e, i.sync, i.lookupType);
3211
+ return yield this._render(r, s, i);
3212
+ }
3213
+ renderFile(e, s, i) {
3214
+ return k(this, void 0, void 0, function* () {
3215
+ return V(this._renderFile(e, s, Object.assign(Object.assign({}, i), { sync: !1 })));
3216
+ });
3217
+ }
3218
+ renderFileSync(e, s, i) {
3219
+ return q(this._renderFile(e, s, Object.assign(Object.assign({}, i), { sync: !0 })));
3220
+ }
3221
+ renderFileToNodeStream(e, s, i) {
3222
+ return k(this, void 0, void 0, function* () {
3223
+ const r = yield this.parseFile(e);
3224
+ return this.renderToNodeStream(r, s, i);
3225
+ });
3226
+ }
3227
+ _evalValue(e, s) {
3228
+ const i = new L(e, this), r = s instanceof I ? s : new I(s, this.options);
3229
+ return i.value(r);
3230
+ }
3231
+ evalValue(e, s) {
3232
+ return k(this, void 0, void 0, function* () {
3233
+ return V(this._evalValue(e, s));
3234
+ });
3235
+ }
3236
+ evalValueSync(e, s) {
3237
+ return q(this._evalValue(e, s));
3238
+ }
3239
+ registerFilter(e, s) {
3240
+ this.filters[e] = s;
3241
+ }
3242
+ registerTag(e, s) {
3243
+ this.tags[e] = v(s) ? s : yi(s);
3244
+ }
3245
+ plugin(e) {
3246
+ return e.call(this, Ct);
3247
+ }
3248
+ express() {
3249
+ const e = this;
3250
+ let s = !0;
3251
+ return function(i, r, n) {
3252
+ if (s) {
3253
+ s = !1;
3254
+ const o = ae(this.root);
3255
+ e.options.root.unshift(...o), e.options.layouts.unshift(...o), e.options.partials.unshift(...o);
3256
+ }
3257
+ e.renderFile(i, r).then((o) => n(null, o), n);
3258
+ };
3259
+ }
3260
+ analyze(e, s = {}) {
3261
+ return k(this, void 0, void 0, function* () {
3262
+ return C(e, s);
3263
+ });
3264
+ }
3265
+ analyzeSync(e, s = {}) {
3266
+ return $(e, s);
3267
+ }
3268
+ parseAndAnalyze(e, s, i = {}) {
3269
+ return k(this, void 0, void 0, function* () {
3270
+ return C(this.parse(e, s), i);
3271
+ });
3272
+ }
3273
+ parseAndAnalyzeSync(e, s, i = {}) {
3274
+ return $(this.parse(e, s), i);
3275
+ }
3276
+ /** Return an array of all variables without their properties. */
3277
+ variables(e, s = {}) {
3278
+ return k(this, void 0, void 0, function* () {
3279
+ const i = yield C(f(e) ? this.parse(e) : e, s);
3280
+ return Object.keys(i.variables);
3281
+ });
3282
+ }
3283
+ /** Return an array of all variables without their properties. */
3284
+ variablesSync(e, s = {}) {
3285
+ const i = $(f(e) ? this.parse(e) : e, s);
3286
+ return Object.keys(i.variables);
3287
+ }
3288
+ /** Return an array of all variables including their properties/paths. */
3289
+ fullVariables(e, s = {}) {
3290
+ return k(this, void 0, void 0, function* () {
3291
+ const i = yield C(f(e) ? this.parse(e) : e, s);
3292
+ return Array.from(new Set(Object.values(i.variables).flatMap((r) => r.map((n) => String(n)))));
3293
+ });
3294
+ }
3295
+ /** Return an array of all variables including their properties/paths. */
3296
+ fullVariablesSync(e, s = {}) {
3297
+ const i = $(f(e) ? this.parse(e) : e, s);
3298
+ return Array.from(new Set(Object.values(i.variables).flatMap((r) => r.map((n) => String(n)))));
3299
+ }
3300
+ /** Return an array of all variables, each as an array of properties/segments. */
3301
+ variableSegments(e, s = {}) {
3302
+ return k(this, void 0, void 0, function* () {
3303
+ const i = yield C(f(e) ? this.parse(e) : e, s);
3304
+ return Array.from(re(Object.values(i.variables).flatMap((r) => r.map((n) => n.toArray()))));
3305
+ });
3306
+ }
3307
+ /** Return an array of all variables, each as an array of properties/segments. */
3308
+ variableSegmentsSync(e, s = {}) {
3309
+ const i = $(f(e) ? this.parse(e) : e, s);
3310
+ return Array.from(re(Object.values(i.variables).flatMap((r) => r.map((n) => n.toArray()))));
3311
+ }
3312
+ /** Return an array of all expected context variables without their properties. */
3313
+ globalVariables(e, s = {}) {
3314
+ return k(this, void 0, void 0, function* () {
3315
+ const i = yield C(f(e) ? this.parse(e) : e, s);
3316
+ return Object.keys(i.globals);
3317
+ });
3318
+ }
3319
+ /** Return an array of all expected context variables without their properties. */
3320
+ globalVariablesSync(e, s = {}) {
3321
+ const i = $(f(e) ? this.parse(e) : e, s);
3322
+ return Object.keys(i.globals);
3323
+ }
3324
+ /** Return an array of all expected context variables including their properties/paths. */
3325
+ globalFullVariables(e, s = {}) {
3326
+ return k(this, void 0, void 0, function* () {
3327
+ const i = yield C(f(e) ? this.parse(e) : e, s);
3328
+ return Array.from(new Set(Object.values(i.globals).flatMap((r) => r.map((n) => String(n)))));
3329
+ });
3330
+ }
3331
+ /** Return an array of all expected context variables including their properties/paths. */
3332
+ globalFullVariablesSync(e, s = {}) {
3333
+ const i = $(f(e) ? this.parse(e) : e, s);
3334
+ return Array.from(new Set(Object.values(i.globals).flatMap((r) => r.map((n) => String(n)))));
3335
+ }
3336
+ /** Return an array of all expected context variables, each as an array of properties/segments. */
3337
+ globalVariableSegments(e, s = {}) {
3338
+ return k(this, void 0, void 0, function* () {
3339
+ const i = yield C(f(e) ? this.parse(e) : e, s);
3340
+ return Array.from(re(Object.values(i.globals).flatMap((r) => r.map((n) => n.toArray()))));
3341
+ });
3342
+ }
3343
+ /** Return an array of all expected context variables, each as an array of properties/segments. */
3344
+ globalVariableSegmentsSync(e, s = {}) {
3345
+ const i = $(f(e) ? this.parse(e) : e, s);
3346
+ return Array.from(re(Object.values(i.globals).flatMap((r) => r.map((n) => n.toArray()))));
3347
+ }
3348
+ }
3349
+ export {
3350
+ Ct as L
3351
+ };