@ozdao/prometheus-framework 0.2.112 → 0.2.113

Sign up to get free protection for your applications and to get access to all the features.
Files changed (515) hide show
  1. package/dist/common.schema-BFhpUXUt.js +12 -0
  2. package/dist/common.schema-ChBVARrs.mjs +13 -0
  3. package/dist/community.server.js +6 -4
  4. package/dist/community.server.mjs +4 -2
  5. package/dist/engagement.schema-CI2ifjXN.mjs +28 -0
  6. package/dist/engagement.schema-fdLNO2_6.js +27 -0
  7. package/dist/events.server.js +6 -4
  8. package/dist/events.server.mjs +4 -2
  9. package/dist/files.server.js +81 -29
  10. package/dist/files.server.mjs +81 -29
  11. package/dist/gallery.server.js +66 -39
  12. package/dist/gallery.server.mjs +66 -39
  13. package/dist/main-8APITHuW.mjs +14201 -0
  14. package/dist/main-8N2Jmsuk.js +2 -2
  15. package/dist/main-BJvlNekm.mjs +5 -5
  16. package/dist/main-BQisDfLk.js +2 -2
  17. package/dist/main-BV1Yv9Hy.js +2 -2
  18. package/dist/main-Bw0PvTs-.mjs +5 -5
  19. package/dist/main-ByCtZbHD.mjs +5 -5
  20. package/dist/main-CX2ISR43.mjs +5 -5
  21. package/dist/main-CXObXjv-.js +2 -2
  22. package/dist/main-CkeuHuCY.mjs +5 -5
  23. package/dist/main-CnfcBov2.mjs +5 -5
  24. package/dist/main-D50VqYhy.js +2 -2
  25. package/dist/main-D8gNZLSa.js +2 -2
  26. package/dist/main-DPsHxX0l.mjs +5 -5
  27. package/dist/main-DTlUA63C.mjs +5 -5
  28. package/dist/main-DfD5hLQo.mjs +5 -5
  29. package/dist/main-Dh6Zfei9.js +2 -2
  30. package/dist/main-DmNP-t33.mjs +5 -5
  31. package/dist/main-DwyUYWFX.js +2 -2
  32. package/dist/main-VcxO-jAt.js +92 -0
  33. package/dist/main-cffh4bbv.js +2 -2
  34. package/dist/main-pGo7JpSP.js +2 -2
  35. package/dist/main.css +1 -1
  36. package/dist/metadata.schema-6slGhpQS.js +40 -0
  37. package/dist/metadata.schema-CK5e2O3f.mjs +41 -0
  38. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
  39. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +410 -407
  40. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +3 -3
  41. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +469 -456
  42. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
  43. package/dist/node_modules/web3/lib/esm/accounts.js +5 -2
  44. package/dist/node_modules/web3/lib/esm/index.cjs +1 -1
  45. package/dist/node_modules/web3/lib/esm/index.js +45 -42
  46. package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
  47. package/dist/node_modules/web3/lib/esm/version.js +1 -1
  48. package/dist/node_modules/web3/lib/esm/web3.cjs +1 -1
  49. package/dist/node_modules/web3/lib/esm/web3.js +40 -37
  50. package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -1
  51. package/dist/node_modules/web3-core/lib/esm/web3_config.js +28 -18
  52. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
  53. package/dist/node_modules/web3-core/lib/esm/web3_context.js +56 -53
  54. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
  55. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +100 -87
  56. package/dist/node_modules/web3-errors/lib/esm/error_codes.cjs +1 -1
  57. package/dist/node_modules/web3-errors/lib/esm/error_codes.js +97 -95
  58. package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.cjs +1 -1
  59. package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.js +8 -8
  60. package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.cjs +1 -1
  61. package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.js +20 -20
  62. package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.cjs +4 -4
  63. package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.js +2 -2
  64. package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.cjs +1 -1
  65. package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.js +33 -27
  66. package/dist/node_modules/web3-errors/lib/esm/web3_error_base.cjs +1 -1
  67. package/dist/node_modules/web3-errors/lib/esm/web3_error_base.js +33 -12
  68. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
  69. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +183 -179
  70. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
  71. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +10 -10
  72. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
  73. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +45 -44
  74. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
  75. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +59 -57
  76. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
  77. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +43 -43
  78. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
  79. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +31 -31
  80. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
  81. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +26 -26
  82. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
  83. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +53 -51
  84. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -1
  85. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +25 -23
  86. package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
  87. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +103 -101
  88. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +2 -2
  89. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +159 -156
  90. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
  91. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +11 -8
  92. package/dist/node_modules/web3-eth-contract/lib/esm/index.cjs +1 -1
  93. package/dist/node_modules/web3-eth-contract/lib/esm/index.js +3 -0
  94. package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.cjs +1 -1
  95. package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.js +5 -2
  96. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
  97. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +19 -16
  98. package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
  99. package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +5 -2
  100. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
  101. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +50 -47
  102. package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
  103. package/dist/node_modules/web3-net/lib/esm/net.js +27 -27
  104. package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
  105. package/dist/node_modules/web3-utils/lib/esm/converters.js +100 -83
  106. package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -1
  107. package/dist/node_modules/web3-utils/lib/esm/formatter.js +123 -104
  108. package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
  109. package/dist/node_modules/web3-validator/lib/esm/utils.js +21 -21
  110. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -1
  111. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +10 -10
  112. package/dist/node_modules/web3-validator/lib/esm/validation/numbers.cjs +1 -1
  113. package/dist/node_modules/web3-validator/lib/esm/validation/numbers.js +30 -28
  114. package/dist/orders.server.js +1 -1
  115. package/dist/orders.server.mjs +1 -1
  116. package/dist/organizations.server.js +56 -59
  117. package/dist/organizations.server.mjs +56 -59
  118. package/dist/products.server.js +1 -1
  119. package/dist/products.server.mjs +1 -1
  120. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  121. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +17 -17
  122. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/components/Block/Block.vue.js +4 -4
  124. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +33 -30
  126. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +9 -9
  128. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.cjs +1 -0
  129. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.js +1 -0
  130. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -0
  131. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +165 -0
  132. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +22 -19
  134. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +132 -64
  136. package/dist/prometheus-framework/src/components/Feed/Feed.vue2.cjs +1 -0
  137. package/dist/prometheus-framework/src/components/Feed/Feed.vue2.js +1 -0
  138. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +9 -9
  140. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +12 -12
  142. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  143. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +16 -16
  144. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/components/Map/Map.vue.js +14 -13
  146. package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.js +8 -8
  148. package/dist/prometheus-framework/src/components/Radio/Radio.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/components/Radio/Radio.vue.js +29 -36
  150. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +6 -6
  154. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +17 -17
  156. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +6 -6
  158. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  160. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +24 -24
  162. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +24 -24
  164. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +10 -10
  166. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +26 -26
  168. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +14 -14
  170. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +6 -6
  172. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +45 -45
  174. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +13 -13
  176. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +5 -5
  178. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +19 -16
  180. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  181. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +3 -3
  182. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +13 -13
  184. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  186. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +213 -213
  188. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +8 -8
  190. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +2 -2
  191. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +23 -23
  192. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +9 -9
  194. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  195. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +3 -3
  196. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  197. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +9 -9
  198. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +8 -8
  199. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +167 -202
  201. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +73 -165
  203. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  204. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +3 -47
  205. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  207. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.cjs +1 -0
  208. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.js +75 -0
  209. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +96 -77
  211. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.cjs +1 -0
  212. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.js +1 -0
  213. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.cjs +1 -0
  214. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.js +27 -0
  215. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.cjs +1 -0
  216. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.js +31 -0
  217. package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +21 -19
  219. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/globals/store/globals.js +10 -4
  221. package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.cjs +1 -0
  222. package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.js +31 -0
  223. package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.cjs +1 -0
  224. package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.js +31 -0
  225. package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.cjs +1 -0
  226. package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.js +59 -0
  227. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -0
  228. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +80 -0
  229. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.cjs +1 -0
  230. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.js +1 -0
  231. package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
  232. package/dist/prometheus-framework/src/modules/landing/landing.client.js +8 -6
  233. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  234. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +4 -4
  235. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.cjs +1 -1
  236. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.js +1 -1
  237. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.cjs +1 -1
  238. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.js +1 -1
  239. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.js +1 -1
  241. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.js +30 -30
  243. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
  244. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +21 -45
  245. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
  246. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +36 -36
  247. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +1 -1
  249. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +53 -53
  251. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +33 -33
  253. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  255. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +10 -10
  257. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +5 -5
  259. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +1 -1
  261. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +24 -24
  263. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +5 -5
  265. package/dist/prometheus-framework/src/modules/orders/store/applications.cjs +1 -0
  266. package/dist/prometheus-framework/src/modules/orders/store/applications.js +37 -0
  267. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +5 -5
  269. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +11 -11
  271. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  273. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +16 -16
  275. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +41 -41
  277. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +9 -9
  279. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +16 -16
  281. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +36 -36
  283. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +8 -8
  285. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
  287. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +20 -20
  289. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +12 -12
  291. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +13 -13
  293. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +33 -34
  295. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +16 -16
  297. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +15 -15
  299. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  300. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +8 -8
  301. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +8 -8
  303. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +9 -9
  305. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
  307. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  308. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +22 -22
  309. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +6 -6
  311. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  312. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +8 -8
  313. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +14 -14
  314. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  315. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +51 -56
  316. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  317. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +4 -4
  318. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  319. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +32 -32
  320. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +1 -1
  321. package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +1 -1
  322. package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -1
  323. package/dist/prometheus-framework/src/modules/products/products.client.js +28 -30
  324. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
  325. package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.js +12 -12
  326. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  327. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +30 -26
  328. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  329. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +34 -34
  330. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  331. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +11 -11
  332. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  333. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +41 -41
  334. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  335. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +13 -13
  336. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.cjs +1 -1
  337. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.js +19 -19
  338. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
  339. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +8 -8
  340. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  341. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +13 -10
  342. package/dist/prometheus-framework.cjs.js +1 -1
  343. package/dist/prometheus-framework.es.js +1 -1
  344. package/dist/queryProcessor-BJoJAetd.mjs +162 -0
  345. package/dist/queryProcessor-DWf9tsis.js +161 -0
  346. package/dist/style.css +1 -1
  347. package/dist/wallet.server.js +1 -1
  348. package/dist/wallet.server.mjs +1 -1
  349. package/dist/web-TGdVOTnw.js +1 -0
  350. package/dist/web-_W9a_nWD.mjs +54 -0
  351. package/package.json +1 -1
  352. package/src/components/Address/Address.vue +1 -1
  353. package/src/components/AskToLogin/AskToLogin.vue +1 -1
  354. package/src/components/Block/Block.vue +1 -1
  355. package/src/components/Checkbox/Checkbox.vue +40 -43
  356. package/src/components/Chips/Chips.vue +2 -2
  357. package/src/components/DatePicker/Calendar.vue +29 -31
  358. package/src/components/Dropdown/Dropdown.vue +5 -11
  359. package/src/components/Feed/Feed.vue +98 -15
  360. package/src/components/FieldTags/BlockTags.vue +3 -3
  361. package/src/components/FieldTags/FieldTags.vue +1 -1
  362. package/src/components/FieldTags/vue-tags-input.scss +1 -1
  363. package/src/components/LocationMarker/LocationMarker.vue +1 -1
  364. package/src/components/LocationSelection/LocationSelection.vue +5 -30
  365. package/src/components/Map/LoaderGMaps.js +66 -0
  366. package/src/components/Map/Map.vue +2 -1
  367. package/src/components/Marquee/Marquee.vue +1 -1
  368. package/src/components/Radio/Radio.vue +36 -13
  369. package/src/configurator/components/pages/Styles.vue +1 -1
  370. package/src/modules/auth/components/layouts/Auth.vue +1 -1
  371. package/src/modules/auth/components/pages/EnterCode.vue +4 -4
  372. package/src/modules/auth/components/pages/EnterPassword.vue +2 -2
  373. package/src/modules/auth/components/pages/Invite.vue +2 -2
  374. package/src/modules/auth/components/pages/ResetPassword.vue +3 -3
  375. package/src/modules/auth/components/pages/SignIn.vue +4 -4
  376. package/src/modules/auth/components/pages/SignUp.vue +3 -3
  377. package/src/modules/backoffice/components/admin/Backcalls.vue +1 -1
  378. package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
  379. package/src/modules/backoffice/components/admin/Pages.vue +1 -1
  380. package/src/modules/backoffice/components/admin/ProductEdit.vue +1 -1
  381. package/src/modules/backoffice/components/admin/UserEdit.vue +1 -1
  382. package/src/modules/backoffice/components/admin/Users.vue +1 -1
  383. package/src/modules/backoffice/components/pages/Dashboard.vue +3 -3
  384. package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
  385. package/src/modules/community/components/layouts/Community.vue +2 -2
  386. package/src/modules/community/components/pages/BlogPost.vue +2 -2
  387. package/src/modules/community/components/pages/CreateBlogPost.vue +4 -4
  388. package/src/modules/community/components/sections/Comments.vue +2 -2
  389. package/src/modules/community/components/sections/Feed.vue +1 -1
  390. package/src/modules/community/components/sections/HotPosts.vue +1 -1
  391. package/src/modules/constructor/components/elements/Image.vue +1 -1
  392. package/src/modules/constructor/components/elements/Video.vue +2 -2
  393. package/src/modules/events/components/blocks/CardEvent.vue +1 -1
  394. package/src/modules/events/components/pages/EditEvent.vue +32 -32
  395. package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
  396. package/src/modules/events/components/pages/Event.vue +3 -3
  397. package/src/modules/events/components/pages/Events.vue +4 -3
  398. package/src/modules/events/components/sections/Feed.vue +3 -3
  399. package/src/modules/events/components/sections/List.vue +2 -2
  400. package/src/modules/files/controllers/files.controller.js +8 -6
  401. package/src/modules/files/middlewares/server/middlewareBusboy.js +79 -14
  402. package/src/modules/files/routes/files.routes.js +11 -9
  403. package/src/modules/gallery/components/sections/BackofficeGallery.vue +158 -355
  404. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +26 -244
  405. package/src/modules/gallery/controllers/gallery.controller.js +57 -38
  406. package/src/modules/gallery/models/photo.model.js +20 -11
  407. package/src/modules/gallery/routes/gallery.routes.js +3 -3
  408. package/src/modules/gallery/store/gallery.js +3 -78
  409. package/src/modules/globals/components/blocks/BlockSearch.vue +1 -1
  410. package/src/modules/globals/components/blocks/BlockSorting.vue +77 -0
  411. package/src/modules/globals/components/blocks/CardHeader.vue +27 -25
  412. package/src/modules/globals/components/elements/ButtonDate.vue +66 -0
  413. package/src/modules/globals/components/elements/ButtonSort.vue +41 -0
  414. package/src/modules/globals/components/layouts/Client.vue +273 -0
  415. package/src/{components/Footer → modules/globals/components/partials}/Footer.vue +1 -1
  416. package/src/{components/Header → modules/globals/components/partials}/Header.vue +98 -84
  417. package/src/modules/globals/controllers/utils/queryProcessor.js +3 -3
  418. package/src/modules/globals/models/common.schema.js +1 -1
  419. package/src/modules/globals/services/globals.store.js +11 -6
  420. package/src/modules/globals/store/globals.js +12 -10
  421. package/src/modules/icons/logos/Logotype.vue +23 -19
  422. package/src/modules/icons/navigation/IconCalendar.vue +18 -0
  423. package/src/modules/icons/navigation/IconFilter.vue +18 -0
  424. package/src/modules/icons/navigation/IconSearch.vue +1 -3
  425. package/src/modules/icons/navigation/IconSort.vue +21 -0
  426. package/src/modules/landing/components/pages/Home.vue +4 -4
  427. package/src/modules/landing/components/sections/FeatureSection.vue +5 -5
  428. package/src/modules/landing/components/sections/HowToBuyWDR.vue +2 -2
  429. package/src/modules/landing/components/sections/SectionFeature.vue +2 -2
  430. package/src/modules/landing/components/sections/SectionFeaturesImages.vue +2 -2
  431. package/src/modules/landing/components/sections/SectionsSection.vue +4 -4
  432. package/src/modules/{orders → landing}/components/sections/SubscribeNewsletter.vue +0 -2
  433. package/src/modules/landing/components/sections/WhatIsWDRSection.vue +6 -6
  434. package/src/modules/landing/landing.client.js +2 -0
  435. package/src/modules/landing/router/landing.js +1 -1
  436. package/src/modules/legal/components/pages/Legal.vue +2 -2
  437. package/src/modules/legal/components/pages/legal/Cookies.vue +1 -1
  438. package/src/modules/legal/components/pages/legal/EULA.vue +1 -1
  439. package/src/modules/legal/components/pages/legal/Privacy.vue +1 -1
  440. package/src/modules/legal/components/pages/legal/Terms.vue +1 -1
  441. package/src/modules/marketplace/components/layouts/Marketplace.vue +37 -49
  442. package/src/modules/marketplace/components/pages/Catalog.vue +43 -131
  443. package/src/modules/marketplace/components/sections/Filters.vue +63 -115
  444. package/src/modules/marketplace/store/marketplace.js +22 -167
  445. package/src/modules/mobile/components/Walkthrough/Walkthrough.vue +1 -1
  446. package/src/modules/orders/components/blocks/CardOrderItem.vue +6 -6
  447. package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
  448. package/src/modules/orders/components/blocks/StatusHistory.vue +1 -1
  449. package/src/modules/orders/components/pages/Order.vue +8 -8
  450. package/src/modules/orders/components/pages/OrderBackoffice.vue +7 -7
  451. package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
  452. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +3 -3
  453. package/src/modules/orders/components/pages/Orders.vue +3 -5
  454. package/src/modules/orders/components/partials/ShopCart.vue +5 -1
  455. package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
  456. package/src/modules/orders/components/sections/FormDelivery.vue +1 -1
  457. package/src/modules/orders/store/applications.js +1 -1
  458. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  459. package/src/modules/organizations/components/blocks/Contacts.vue +4 -4
  460. package/src/modules/organizations/components/pages/Department.vue +3 -3
  461. package/src/modules/organizations/components/pages/DepartmentEdit.vue +6 -6
  462. package/src/modules/organizations/components/pages/Members.vue +4 -4
  463. package/src/modules/organizations/components/pages/Organization.vue +3 -3
  464. package/src/modules/organizations/components/pages/OrganizationCreate.vue +2 -2
  465. package/src/modules/organizations/components/pages/OrganizationDetails.vue +1 -1
  466. package/src/modules/organizations/components/pages/OrganizationDocuments.vue +1 -1
  467. package/src/modules/organizations/components/pages/OrganizationEdit.vue +9 -9
  468. package/src/modules/organizations/components/pages/OrganizationPeople.vue +1 -1
  469. package/src/modules/organizations/components/pages/Organizations.vue +1 -1
  470. package/src/modules/organizations/components/sections/DetailsTab.vue +4 -4
  471. package/src/modules/organizations/components/sections/Feed.vue +2 -2
  472. package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
  473. package/src/modules/organizations/components/sections/Publics.vue +1 -1
  474. package/src/modules/organizations/controllers/organizations.controller.js +103 -93
  475. package/src/modules/organizations/models/organization.model.js +10 -7
  476. package/src/modules/organizations/store/organizations.js +3 -34
  477. package/src/modules/products/components/blocks/CardPosition.vue +2 -2
  478. package/src/modules/products/components/blocks/LeftoverPositions.vue +2 -2
  479. package/src/modules/products/components/pages/Categories.vue +1 -1
  480. package/src/modules/products/components/pages/EditLeftover.vue +1 -1
  481. package/src/modules/products/components/pages/Leftovers.vue +4 -4
  482. package/src/modules/products/components/pages/Product.vue +1 -5
  483. package/src/modules/products/components/pages/ProductEdit.vue +1 -1
  484. package/src/modules/products/components/pages/Products.vue +2 -2
  485. package/src/modules/products/components/sections/EditProductInfo.vue +1 -1
  486. package/src/modules/products/components/sections/FilterProducts.vue +1 -1
  487. package/src/modules/products/components/sections/HeroRecommendation.vue +67 -74
  488. package/src/modules/products/components/sections/MenuSection.vue +2 -2
  489. package/src/modules/products/components/sections/PopularProducts.vue +2 -2
  490. package/src/modules/products/components/sections/SectionProduct.vue +3 -3
  491. package/src/modules/products/products.client.js +0 -2
  492. package/src/modules/reports/components/pages/BackofficeReports.vue +4 -4
  493. package/src/modules/spots/components/blocks/CardSpot.vue +9 -1
  494. package/src/modules/spots/components/blocks/SpotMemberModify.vue +2 -2
  495. package/src/modules/spots/components/layouts/Spots.vue +0 -2
  496. package/src/modules/spots/components/pages/Spot.vue +4 -4
  497. package/src/modules/spots/components/pages/SpotEdit.vue +1 -1
  498. package/src/modules/spots/components/sections/PlaceModify.vue +1 -1
  499. package/src/modules/spots/components/sections/Places.vue +1 -1
  500. package/src/modules/users/components/pages/Profile.vue +5 -5
  501. package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
  502. package/src/modules/users/components/pages/ProfileComments.vue +1 -1
  503. package/src/modules/users/components/pages/ProfileEdit.vue +11 -11
  504. package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
  505. package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
  506. package/src/modules/users/components/sections/FeaturedUsers.vue +3 -3
  507. package/src/modules/wallet/views/components/pages/Payments.vue +2 -2
  508. package/src/modules/wallet/views/components/pages/Wallet.vue +3 -3
  509. package/src/styles/base/borders.scss +4 -0
  510. package/src/styles/base/shadow_transitions_hover_refactor.scss +4 -0
  511. package/src/styles/config.scss +15 -9
  512. package/src/styles/layout.scss +37 -8
  513. package/src/styles/typography.scss +24 -24
  514. package/src/modules/products/components/sections/SortProducts.vue +0 -74
  515. /package/src/{components/Navigation → modules/globals/components/partials}/Navigation.vue +0 -0
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ function createFriendlyURL$1(str) {
3
+ if (typeof str !== "string") {
4
+ throw new Error("Входные данные должны быть строкой");
5
+ }
6
+ str = str.trim().toLowerCase();
7
+ str = str.replace(/ /g, "-").replace(/[^\w-]+/g, "");
8
+ str = str.replace(/-+/g, "-");
9
+ str = str.replace(/^-+|-+$/g, "");
10
+ return str;
11
+ }
12
+ var seoFriendlyUrl = createFriendlyURL$1;
13
+ const createFriendlyURL = seoFriendlyUrl;
14
+ var metadata_schema = function applyMetadataSchema(schema, db) {
15
+ schema.add({
16
+ url: {
17
+ type: String,
18
+ unique: true,
19
+ required: true
20
+ },
21
+ tags: [{
22
+ type: String
23
+ }]
24
+ });
25
+ schema.pre("save", function(next) {
26
+ if (!this.url) {
27
+ const name = this.name || this.title || (this.profile ? this.profile.name : "");
28
+ if (name) {
29
+ this.url = createFriendlyURL(name);
30
+ }
31
+ }
32
+ next();
33
+ });
34
+ schema.index({
35
+ "url": 1,
36
+ "tags": 1
37
+ });
38
+ };
39
+ exports.metadata_schema = metadata_schema;
40
+ exports.seoFriendlyUrl = seoFriendlyUrl;
@@ -0,0 +1,41 @@
1
+ function createFriendlyURL$1(str) {
2
+ if (typeof str !== "string") {
3
+ throw new Error("Входные данные должны быть строкой");
4
+ }
5
+ str = str.trim().toLowerCase();
6
+ str = str.replace(/ /g, "-").replace(/[^\w-]+/g, "");
7
+ str = str.replace(/-+/g, "-");
8
+ str = str.replace(/^-+|-+$/g, "");
9
+ return str;
10
+ }
11
+ var seoFriendlyUrl = createFriendlyURL$1;
12
+ const createFriendlyURL = seoFriendlyUrl;
13
+ var metadata_schema = function applyMetadataSchema(schema, db) {
14
+ schema.add({
15
+ url: {
16
+ type: String,
17
+ unique: true,
18
+ required: true
19
+ },
20
+ tags: [{
21
+ type: String
22
+ }]
23
+ });
24
+ schema.pre("save", function(next) {
25
+ if (!this.url) {
26
+ const name = this.name || this.title || (this.profile ? this.profile.name : "");
27
+ if (name) {
28
+ this.url = createFriendlyURL(name);
29
+ }
30
+ }
31
+ next();
32
+ });
33
+ schema.index({
34
+ "url": 1,
35
+ "tags": 1
36
+ });
37
+ };
38
+ export {
39
+ metadata_schema as m,
40
+ seoFriendlyUrl as s
41
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function xt(t){return typeof t=="number"}function yt(t){return typeof t=="string"}function Et(t){return typeof t=="boolean"}function Ot(t){return Object.prototype.toString.call(t)==="[object Object]"}function A(t){return Math.abs(t)}function Lt(t){return Math.sign(t)}function it(t,n){return A(t-n)}function Ut(t,n){if(t===0||n===0||A(t)<=A(n))return 0;const r=it(A(t),A(n));return A(r/t)}function ct(t){return ut(t).map(Number)}function j(t){return t[at(t)]}function at(t){return Math.max(0,t.length-1)}function vt(t,n){return n===at(t)}function Ct(t,n=0){return Array.from(Array(t),(r,s)=>n+s)}function ut(t){return Object.keys(t)}function wt(t,n){return[t,n].reduce((r,s)=>(ut(s).forEach(c=>{const e=r[c],o=s[c],u=Ot(e)&&Ot(o);r[c]=u?wt(e,o):o}),r),{})}function bt(t,n){return typeof n.MouseEvent<"u"&&t instanceof n.MouseEvent}function $t(t,n){const r={start:s,center:c,end:e};function s(){return 0}function c(i){return e(i)/2}function e(i){return n-i}function o(i,a){return yt(t)?r[t](i):t(n,i,a)}return{measure:o}}function ft(){let t=[];function n(c,e,o,u={passive:!0}){let i;if("addEventListener"in c)c.addEventListener(e,o,u),i=()=>c.removeEventListener(e,o,u);else{const a=c;a.addListener(o),i=()=>a.removeListener(o)}return t.push(i),s}function r(){t=t.filter(c=>c())}const s={add:n,clear:r};return s}function Qt(t,n,r,s){const c=ft(),e=1e3/60;let o=null,u=0,i=0;function a(){c.add(t,"visibilitychange",()=>{t.hidden&&d()})}function S(){x(),c.clear()}function f(g){if(!i)return;o||(o=g);const l=g-o;for(o=g,u+=l;u>=e;)r(),u-=e;const h=A(u/e);s(h),i&&n.requestAnimationFrame(f)}function m(){i||(i=n.requestAnimationFrame(f))}function x(){n.cancelAnimationFrame(i),o=null,u=0,i=0}function d(){o=null,u=0}return{init:a,destroy:S,start:m,stop:x,update:r,render:s}}function _t(t,n){const r=n==="rtl",s=t==="y",c=s?"y":"x",e=s?"x":"y",o=!s&&r?-1:1,u=S(),i=f();function a(d){const{height:p,width:g}=d;return s?p:g}function S(){return s?"top":r?"right":"left"}function f(){return s?"bottom":r?"left":"right"}function m(d){return d*o}return{scroll:c,cross:e,startEdge:u,endEdge:i,measureSize:a,direction:m}}function nt(t=0,n=0){const r=A(t-n);function s(a){return a<t}function c(a){return a>n}function e(a){return s(a)||c(a)}function o(a){return e(a)?s(a)?t:n:a}function u(a){return r?a-r*Math.ceil((a-n)/r):a}return{length:r,max:n,min:t,constrain:o,reachedAny:e,reachedMax:c,reachedMin:s,removeOffset:u}}function Nt(t,n,r){const{constrain:s}=nt(0,t),c=t+1;let e=o(n);function o(m){return r?A((c+m)%c):s(m)}function u(){return e}function i(m){return e=o(m),f}function a(m){return S().set(u()+m)}function S(){return Nt(t,u(),r)}const f={get:u,set:i,add:a,clone:S};return f}function Kt(t,n,r,s,c,e,o,u,i,a,S,f,m,x,d,p,g,l,h){const{cross:b,direction:L}=t,I=["INPUT","SELECT","TEXTAREA"],P={passive:!1},E=ft(),v=ft(),D=nt(50,225).constrain(x.measure(20)),M={mouse:300,touch:400},O={mouse:500,touch:600},V=d?43:25;let X=!1,B=0,U=0,J=!1,$=!1,Y=!1,Q=!1;function Z(y){if(!h)return;function T(w){(Et(h)||h(y,w))&&z(w)}const C=n;E.add(C,"dragstart",w=>w.preventDefault(),P).add(C,"touchmove",()=>{},P).add(C,"touchend",()=>{}).add(C,"touchstart",T).add(C,"mousedown",T).add(C,"touchcancel",N).add(C,"contextmenu",N).add(C,"click",ot,!0)}function _(){E.clear(),v.clear()}function et(){const y=Q?r:n;v.add(y,"touchmove",R,P).add(y,"touchend",N).add(y,"mousemove",R,P).add(y,"mouseup",N)}function K(y){const T=y.nodeName||"";return I.includes(T)}function rt(){return(d?O:M)[Q?"mouse":"touch"]}function st(y,T){const C=f.add(Lt(y)*-1),w=S.byDistance(y,!d).distance;return d||A(y)<D?w:g&&T?w*.5:S.byIndex(C.get(),0).distance}function z(y){const T=bt(y,s);Q=T,Y=d&&T&&!y.buttons&&X,X=it(c.get(),o.get())>=2,!(T&&y.button!==0)&&(K(y.target)||(J=!0,e.pointerDown(y),a.useFriction(0).useDuration(0),c.set(o),et(),B=e.readPoint(y),U=e.readPoint(y,b),m.emit("pointerDown")))}function R(y){if(!bt(y,s)&&y.touches.length>=2)return N(y);const C=e.readPoint(y),w=e.readPoint(y,b),q=it(C,B),H=it(w,U);if(!$&&!Q&&(!y.cancelable||($=q>H,!$)))return N(y);const G=e.pointerMove(y);q>p&&(Y=!0),a.useFriction(.3).useDuration(1),u.start(),c.add(L(G)),y.preventDefault()}function N(y){const C=S.byDistance(0,!1).index!==f.get(),w=e.pointerUp(y)*rt(),q=st(L(w),C),H=Ut(w,q),G=V-10*H,W=l+H/50;$=!1,J=!1,v.clear(),a.useDuration(G).useFriction(W),i.distance(q,!d),Q=!1,m.emit("pointerUp")}function ot(y){Y&&(y.stopPropagation(),y.preventDefault(),Y=!1)}function k(){return J}return{init:Z,pointerDown:k,destroy:_}}function Xt(t,n){let s,c;function e(f){return f.timeStamp}function o(f,m){const d=`client${(m||t.scroll)==="x"?"X":"Y"}`;return(bt(f,n)?f:f.touches[0])[d]}function u(f){return s=f,c=f,o(f)}function i(f){const m=o(f)-o(c),x=e(f)-e(s)>170;return c=f,x&&(s=f),m}function a(f){if(!s||!c)return 0;const m=o(c)-o(s),x=e(f)-e(s),d=e(f)-e(c)>170,p=m/x;return x&&!d&&A(p)>.1?p:0}return{pointerDown:u,pointerMove:i,pointerUp:a,readPoint:o}}function Yt(){function t(r){const{offsetTop:s,offsetLeft:c,offsetWidth:e,offsetHeight:o}=r;return{top:s,right:c+e,bottom:s+o,left:c,width:e,height:o}}return{measure:t}}function Jt(t){function n(s){return t*(s/100)}return{measure:n}}function Zt(t,n,r,s,c,e,o){let u,i,a=[],S=!1;function f(p){return c.measureSize(o.measure(p))}function m(p){if(!e)return;i=f(t),a=s.map(f);function g(h){for(const b of h){const L=b.target===t,I=s.indexOf(b.target),P=L?i:a[I],E=f(L?t:s[I]);if(A(E-P)>=.5){r.requestAnimationFrame(()=>{p.reInit(),n.emit("resize")});break}}}u=new ResizeObserver(h=>{S||(Et(e)||e(p,h))&&g(h)}),[t].concat(s).forEach(h=>u.observe(h))}function x(){u&&u.disconnect(),S=!0}return{init:m,destroy:x}}function Wt(t,n,r,s,c){let e=0,o=0,u=s,i=c,a=t.get(),S=0;function f(){const I=r.get()-t.get(),P=!u;let E=0;return P?(e=0,t.set(r),E=I):(e+=I/u,e*=i,a+=e,t.add(e),E=a-S),o=Lt(E),S=a,L}function m(){const I=r.get()-n.get();return A(I)<.001}function x(){return u}function d(){return o}function p(){return e}function g(){return h(s)}function l(){return b(c)}function h(I){return u=I,L}function b(I){return i=I,L}const L={direction:d,duration:x,velocity:p,seek:f,settled:m,useBaseFriction:l,useBaseDuration:g,useFriction:b,useDuration:h};return L}function tn(t,n,r,s,c){const e=c.measure(10),o=c.measure(50),u=nt(.1,.99);let i=!1;function a(){return!(i||!t.reachedAny(r.get())||!t.reachedAny(n.get()))}function S(x){if(!a())return;const d=t.reachedMin(n.get())?"min":"max",p=A(t[d]-n.get()),g=r.get()-n.get(),l=u.constrain(p/o);r.subtract(g*l),!x&&A(g)<e&&(r.set(t.constrain(r.get())),s.useDuration(25).useBaseFriction())}function f(x){i=!x}return{constrain:S,toggleActive:f}}function nn(t,n,r,s,c){const e=nt(-n+t,0),o=f(),u=S(),i=m();function a(d,p){return it(d,p)<1}function S(){const d=o[0],p=j(o),g=o.lastIndexOf(d),l=o.indexOf(p)+1;return nt(g,l)}function f(){return r.map((d,p)=>{const{min:g,max:l}=e,h=e.constrain(d),b=!p,L=vt(r,p);return b?l:L||a(g,h)?g:a(l,h)?l:h}).map(d=>parseFloat(d.toFixed(3)))}function m(){if(n<=t+c)return[e.max];if(s==="keepSnaps")return o;const{min:d,max:p}=u;return o.slice(d,p)}return{snapsContained:i,scrollContainLimit:u}}function en(t,n,r){const s=n[0],c=r?s-t:j(n);return{limit:nt(c,s)}}function on(t,n,r,s){const e=n.min+.1,o=n.max+.1,{reachedMin:u,reachedMax:i}=nt(e,o);function a(m){return m===1?i(r.get()):m===-1?u(r.get()):!1}function S(m){if(!a(m))return;const x=t*(m*-1);s.forEach(d=>d.add(x))}return{loop:S}}function rn(t){const{max:n,length:r}=t;function s(e){const o=e-n;return r?o/-r:0}return{get:s}}function sn(t,n,r,s,c){const{startEdge:e,endEdge:o}=t,{groupSlides:u}=c,i=f().map(n.measure),a=m(),S=x();function f(){return u(s).map(p=>j(p)[o]-p[0][e]).map(A)}function m(){return s.map(p=>r[e]-p[e]).map(p=>-A(p))}function x(){return u(a).map(p=>p[0]).map((p,g)=>p+i[g])}return{snaps:a,snapsAligned:S}}function cn(t,n,r,s,c,e){const{groupSlides:o}=c,{min:u,max:i}=s,a=S();function S(){const m=o(e),x=!t||n==="keepSnaps";return r.length===1?[e]:x?m:m.slice(u,i).map((d,p,g)=>{const l=!p,h=vt(g,p);if(l){const b=j(g[0])+1;return Ct(b)}if(h){const b=at(e)-j(g)[0]+1;return Ct(b,j(g)[0])}return d})}return{slideRegistry:a}}function un(t,n,r,s,c){const{reachedAny:e,removeOffset:o,constrain:u}=s;function i(d){return d.concat().sort((p,g)=>A(p)-A(g))[0]}function a(d){const p=t?o(d):u(d),g=n.map((h,b)=>({diff:S(h-p,0),index:b})).sort((h,b)=>A(h.diff)-A(b.diff)),{index:l}=g[0];return{index:l,distance:p}}function S(d,p){const g=[d,d+r,d-r];if(!t)return g[0];if(!p)return i(g);const l=g.filter(h=>Lt(h)===p);return l.length?i(l):j(g)-r}function f(d,p){const g=n[d]-c.get(),l=S(g,p);return{index:d,distance:l}}function m(d,p){const g=c.get()+d,{index:l,distance:h}=a(g),b=!t&&e(g);if(!p||b)return{index:l,distance:d};const L=n[l]-h,I=d+S(L,0);return{index:l,distance:I}}return{byDistance:m,byIndex:f,shortcut:S}}function fn(t,n,r,s,c,e,o){function u(f){const m=f.distance,x=f.index!==n.get();e.add(m),m&&(s.duration()?t.start():(t.update(),t.render(1),t.update())),x&&(r.set(n.get()),n.set(f.index),o.emit("select"))}function i(f,m){const x=c.byDistance(f,m);u(x)}function a(f,m){const x=n.clone().set(f),d=c.byIndex(x.get(),m);u(d)}return{distance:i,index:a}}function an(t,n,r,s,c,e){let o=0;function u(){e.add(document,"keydown",i,!1),n.forEach(a)}function i(f){f.code==="Tab"&&(o=new Date().getTime())}function a(f){const m=()=>{if(new Date().getTime()-o>10)return;t.scrollLeft=0;const p=n.indexOf(f),g=r.findIndex(l=>l.includes(p));xt(g)&&(c.useDuration(0),s.index(g,0))};e.add(f,"focus",m,{passive:!0,capture:!0})}return{init:u}}function dt(t){let n=t;function r(){return n}function s(i){n=o(i)}function c(i){n+=o(i)}function e(i){n-=o(i)}function o(i){return xt(i)?i:i.get()}return{get:r,set:s,add:c,subtract:e}}function Vt(t,n){const r=t.scroll==="x"?e:o,s=n.style;let c=!1;function e(f){return`translate3d(${f}px,0px,0px)`}function o(f){return`translate3d(0px,${f}px,0px)`}function u(f){c||(s.transform=r(t.direction(f)))}function i(f){c=!f}function a(){c||(s.transform="",n.getAttribute("style")||n.removeAttribute("style"))}return{clear:a,to:u,toggleActive:i}}function ln(t,n,r,s,c,e,o,u,i){const S=ct(c),f=ct(c).reverse(),m=l().concat(h());function x(E,v){return E.reduce((D,M)=>D-c[M],v)}function d(E,v){return E.reduce((D,M)=>x(D,v)>0?D.concat([M]):D,[])}function p(E){return e.map((v,D)=>({start:v-s[D]+.5+E,end:v+n-.5+E}))}function g(E,v,D){const M=p(v);return E.map(O=>{const V=D?0:-r,X=D?r:0,B=D?"end":"start",U=M[O][B];return{index:O,loopPoint:U,slideLocation:dt(-1),translate:Vt(t,i[O]),target:()=>u.get()>U?V:X}})}function l(){const E=o[0],v=d(f,E);return g(v,r,!1)}function h(){const E=n-o[0]-1,v=d(S,E);return g(v,-r,!0)}function b(){return m.every(({index:E})=>{const v=S.filter(D=>D!==E);return x(v,n)<=.1})}function L(){m.forEach(E=>{const{target:v,translate:D,slideLocation:M}=E,O=v();O!==M.get()&&(D.to(O),M.set(O))})}function I(){m.forEach(E=>E.translate.clear())}return{canLoop:b,clear:I,loop:L,loopPoints:m}}function dn(t,n,r){let s,c=!1;function e(i){if(!r)return;function a(S){for(const f of S)if(f.type==="childList"){i.reInit(),n.emit("slidesChanged");break}}s=new MutationObserver(S=>{c||(Et(r)||r(i,S))&&a(S)}),s.observe(t,{childList:!0})}function o(){s&&s.disconnect(),c=!0}return{init:e,destroy:o}}function pn(t,n,r,s){const c={};let e=null,o=null,u,i=!1;function a(){u=new IntersectionObserver(d=>{i||(d.forEach(p=>{const g=n.indexOf(p.target);c[g]=p}),e=null,o=null,r.emit("slidesInView"))},{root:t.parentElement,threshold:s}),n.forEach(d=>u.observe(d))}function S(){u&&u.disconnect(),i=!0}function f(d){return ut(c).reduce((p,g)=>{const l=parseInt(g),{isIntersecting:h}=c[l];return(d&&h||!d&&!h)&&p.push(l),p},[])}function m(d=!0){if(d&&e)return e;if(!d&&o)return o;const p=f(d);return d&&(e=p),d||(o=p),p}return{init:a,destroy:S,get:m}}function mn(t,n,r,s,c,e){const{measureSize:o,startEdge:u,endEdge:i}=t,a=r[0]&&c,S=d(),f=p(),m=r.map(o),x=g();function d(){if(!a)return 0;const h=r[0];return A(n[u]-h[u])}function p(){if(!a)return 0;const h=e.getComputedStyle(j(s));return parseFloat(h.getPropertyValue(`margin-${i}`))}function g(){return r.map((h,b,L)=>{const I=!b,P=vt(L,b);return I?m[b]+S:P?m[b]+f:L[b+1][u]-h[u]}).map(A)}return{slideSizes:m,slideSizesWithGaps:x,startGap:S,endGap:f}}function gn(t,n,r,s,c,e,o,u,i){const{startEdge:a,endEdge:S,direction:f}=t,m=xt(r);function x(l,h){return ct(l).filter(b=>b%h===0).map(b=>l.slice(b,b+h))}function d(l){return l.length?ct(l).reduce((h,b,L)=>{const I=j(h)||0,P=I===0,E=b===at(l),v=c[a]-e[I][a],D=c[a]-e[b][S],M=!s&&P?f(o):0,O=!s&&E?f(u):0,V=A(D-O-(v+M));return L&&V>n+i&&h.push(b),E&&h.push(l.length),h},[]).map((h,b,L)=>{const I=Math.max(L[b-1]||0);return l.slice(I,h)}):[]}function p(l){return m?x(l,r):d(l)}return{groupSlides:p}}function hn(t,n,r,s,c,e,o){const{align:u,axis:i,direction:a,startIndex:S,loop:f,duration:m,dragFree:x,dragThreshold:d,inViewThreshold:p,slidesToScroll:g,skipSnaps:l,containScroll:h,watchResize:b,watchSlides:L,watchDrag:I}=e,P=2,E=Yt(),v=E.measure(n),D=r.map(E.measure),M=_t(i,a),O=M.measureSize(v),V=Jt(O),X=$t(u,O),B=!f&&!!h,U=f||!!h,{slideSizes:J,slideSizesWithGaps:$,startGap:Y,endGap:Q}=mn(M,v,D,r,U,c),Z=gn(M,O,g,f,v,D,Y,Q,P),{snaps:_,snapsAligned:et}=sn(M,X,v,D,Z),K=-j(_)+j($),{snapsContained:rt,scrollContainLimit:st}=nn(O,K,et,h,P),z=B?rt:et,{limit:R}=en(K,z,f),N=Nt(at(z),S,f),ot=N.clone(),k=ct(r),F=({dragHandler:tt,scrollBody:ht,scrollBounds:St,options:{loop:lt}})=>{lt||St.constrain(tt.pointerDown()),ht.seek()},y=({scrollBody:tt,translate:ht,location:St,offsetLocation:lt,scrollLooper:kt,slideLooper:Ht,dragHandler:Gt,animation:jt,eventHandler:At,options:{loop:Rt}},qt)=>{const Pt=tt.velocity(),Ft=tt.settled();Ft&&!Gt.pointerDown()&&(jt.stop(),At.emit("settle")),Ft||At.emit("scroll"),lt.set(St.get()-Pt+Pt*qt),Rt&&(kt.loop(tt.direction()),Ht.loop()),ht.to(lt.get())},T=Qt(s,c,()=>F(gt),tt=>y(gt,tt)),C=.68,w=z[N.get()],q=dt(w),H=dt(w),G=dt(w),W=Wt(q,H,G,m,C),pt=un(f,z,K,R,G),mt=fn(T,N,ot,W,pt,G,o),Tt=rn(R),Dt=ft(),zt=pn(n,r,o,p),{slideRegistry:Mt}=cn(B,h,z,st,Z,k),Bt=an(t,r,Mt,mt,W,Dt),gt={ownerDocument:s,ownerWindow:c,eventHandler:o,containerRect:v,slideRects:D,animation:T,axis:M,dragHandler:Kt(M,t,s,c,G,Xt(M,c),q,T,mt,W,pt,N,o,V,x,d,l,C,I),eventStore:Dt,percentOfView:V,index:N,indexPrevious:ot,limit:R,location:q,offsetLocation:H,options:e,resizeHandler:Zt(n,o,c,r,M,b,E),scrollBody:W,scrollBounds:tn(R,H,G,W,V),scrollLooper:on(K,R,H,[q,H,G]),scrollProgress:Tt,scrollSnapList:z.map(Tt.get),scrollSnaps:z,scrollTarget:pt,scrollTo:mt,slideLooper:ln(M,O,K,J,$,_,z,H,r),slideFocus:Bt,slidesHandler:dn(n,o,L),slidesInView:zt,slideIndexes:k,slideRegistry:Mt,slidesToScroll:Z,target:G,translate:Vt(M,n)};return gt}function Sn(){const t={};let n;function r(i){n=i}function s(i){return t[i]||[]}function c(i){return s(i).forEach(a=>a(n,i)),u}function e(i,a){return t[i]=s(i).concat([a]),u}function o(i,a){return t[i]=s(i).filter(S=>S!==a),u}const u={init:r,emit:c,off:o,on:e};return u}const yn={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function bn(t){function n(e,o){return wt(e,o||{})}function r(e){const o=e.breakpoints||{},u=ut(o).filter(i=>t.matchMedia(i).matches).map(i=>o[i]).reduce((i,a)=>n(i,a),{});return n(e,u)}function s(e){return e.map(o=>ut(o.breakpoints||{})).reduce((o,u)=>o.concat(u),[]).map(t.matchMedia)}return{mergeOptions:n,optionsAtMedia:r,optionsMediaQueries:s}}function xn(t){let n=[];function r(e,o){return n=o.filter(({options:u})=>t.optionsAtMedia(u).active!==!1),n.forEach(u=>u.init(e,t)),o.reduce((u,i)=>Object.assign(u,{[i.name]:i}),{})}function s(){n=n.filter(e=>e.destroy())}return{init:r,destroy:s}}function It(t,n,r){const s=t.ownerDocument,c=s.defaultView,e=bn(c),o=xn(e),u=ft(),i=Sn(),{mergeOptions:a,optionsAtMedia:S,optionsMediaQueries:f}=e,{on:m,off:x,emit:d}=i,p=O;let g=!1,l,h=a(yn,It.globalOptions),b=a(h),L=[],I,P,E;function v(){const{container:F,slides:y}=b;P=(yt(F)?t.querySelector(F):F)||t.children[0];const C=yt(y)?P.querySelectorAll(y):y;E=[].slice.call(C||P.children)}function D(F){const y=hn(t,P,E,s,c,F,i);if(F.loop&&!y.slideLooper.canLoop()){const T=Object.assign({},F,{loop:!1});return D(T)}return y}function M(F,y){g||(h=a(h,F),b=S(h),L=y||L,v(),l=D(b),f([h,...L.map(({options:T})=>T)]).forEach(T=>u.add(T,"change",O)),b.active&&(l.translate.to(l.location.get()),l.animation.init(),l.slidesInView.init(),l.slideFocus.init(),l.eventHandler.init(k),l.resizeHandler.init(k),l.slidesHandler.init(k),l.options.loop&&l.slideLooper.loop(),P.offsetParent&&E.length&&l.dragHandler.init(k),I=o.init(k,L)))}function O(F,y){const T=_();V(),M(a({startIndex:T},F),y),i.emit("reInit")}function V(){l.dragHandler.destroy(),l.eventStore.clear(),l.translate.clear(),l.slideLooper.clear(),l.resizeHandler.destroy(),l.slidesHandler.destroy(),l.slidesInView.destroy(),l.animation.destroy(),o.destroy(),u.clear()}function X(){g||(g=!0,u.clear(),V(),i.emit("destroy"))}function B(F,y,T){!b.active||g||(l.scrollBody.useBaseFriction().useDuration(y===!0?0:b.duration),l.scrollTo.index(F,T||0))}function U(F){const y=l.index.add(1).get();B(y,F,-1)}function J(F){const y=l.index.add(-1).get();B(y,F,1)}function $(){return l.index.add(1).get()!==_()}function Y(){return l.index.add(-1).get()!==_()}function Q(){return l.scrollSnapList}function Z(){return l.scrollProgress.get(l.location.get())}function _(){return l.index.get()}function et(){return l.indexPrevious.get()}function K(){return l.slidesInView.get()}function rt(){return l.slidesInView.get(!1)}function st(){return I}function z(){return l}function R(){return t}function N(){return P}function ot(){return E}const k={canScrollNext:$,canScrollPrev:Y,containerNode:N,internalEngine:z,destroy:X,off:x,on:m,emit:d,plugins:st,previousScrollSnap:et,reInit:p,rootNode:R,scrollNext:U,scrollPrev:J,scrollProgress:Z,scrollSnapList:Q,scrollTo:B,selectedScrollSnap:_,slideNodes:ot,slidesInView:K,slidesNotInView:rt};return M(n,r),setTimeout(()=>i.emit("init"),0),k}It.globalOptions=void 0;exports.default=It;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function xt(t){return typeof t=="number"}function yt(t){return typeof t=="string"}function Et(t){return typeof t=="boolean"}function Ot(t){return Object.prototype.toString.call(t)==="[object Object]"}function A(t){return Math.abs(t)}function Lt(t){return Math.sign(t)}function it(t,n){return A(t-n)}function Ut(t,n){if(t===0||n===0||A(t)<=A(n))return 0;const r=it(A(t),A(n));return A(r/t)}function ct(t){return ut(t).map(Number)}function j(t){return t[at(t)]}function at(t){return Math.max(0,t.length-1)}function It(t,n){return n===at(t)}function Ct(t,n=0){return Array.from(Array(t),(r,s)=>n+s)}function ut(t){return Object.keys(t)}function wt(t,n){return[t,n].reduce((r,s)=>(ut(s).forEach(i=>{const e=r[i],o=s[i],f=Ot(e)&&Ot(o);r[i]=f?wt(e,o):o}),r),{})}function bt(t,n){return typeof n.MouseEvent<"u"&&t instanceof n.MouseEvent}function $t(t,n){const r={start:s,center:i,end:e};function s(){return 0}function i(c){return e(c)/2}function e(c){return n-c}function o(c,u){return yt(t)?r[t](c):t(n,c,u)}return{measure:o}}function ft(){let t=[];function n(i,e,o,f={passive:!0}){let c;if("addEventListener"in i)i.addEventListener(e,o,f),c=()=>i.removeEventListener(e,o,f);else{const u=i;u.addListener(o),c=()=>u.removeListener(o)}return t.push(c),s}function r(){t=t.filter(i=>i())}const s={add:n,clear:r};return s}function Qt(t,n,r,s){const i=ft(),e=1e3/60;let o=null,f=0,c=0;function u(){i.add(t,"visibilitychange",()=>{t.hidden&&d()})}function h(){x(),i.clear()}function l(S){if(!c)return;o||(o=S);const a=S-o;for(o=S,f+=a;f>=e;)r(),f-=e;const g=A(f/e);s(g),c&&n.requestAnimationFrame(l)}function m(){c||(c=n.requestAnimationFrame(l))}function x(){n.cancelAnimationFrame(c),o=null,f=0,c=0}function d(){o=null,f=0}return{init:u,destroy:h,start:m,stop:x,update:r,render:s}}function _t(t,n){const r=n==="rtl",s=t==="y",i=s?"y":"x",e=s?"x":"y",o=!s&&r?-1:1,f=h(),c=l();function u(d){const{height:p,width:S}=d;return s?p:S}function h(){return s?"top":r?"right":"left"}function l(){return s?"bottom":r?"left":"right"}function m(d){return d*o}return{scroll:i,cross:e,startEdge:f,endEdge:c,measureSize:u,direction:m}}function nt(t=0,n=0){const r=A(t-n);function s(u){return u<t}function i(u){return u>n}function e(u){return s(u)||i(u)}function o(u){return e(u)?s(u)?t:n:u}function f(u){return r?u-r*Math.ceil((u-n)/r):u}return{length:r,max:n,min:t,constrain:o,reachedAny:e,reachedMax:i,reachedMin:s,removeOffset:f}}function Nt(t,n,r){const{constrain:s}=nt(0,t),i=t+1;let e=o(n);function o(m){return r?A((i+m)%i):s(m)}function f(){return e}function c(m){return e=o(m),l}function u(m){return h().set(f()+m)}function h(){return Nt(t,f(),r)}const l={get:f,set:c,add:u,clone:h};return l}function Kt(t,n,r,s,i,e,o,f,c,u,h,l,m,x,d,p,S,a,g){const{cross:b,direction:L}=t,v=["INPUT","SELECT","TEXTAREA"],F={passive:!1},E=ft(),I=ft(),D=nt(50,225).constrain(x.measure(20)),M={mouse:300,touch:400},O={mouse:500,touch:600},V=d?43:25;let X=!1,B=0,U=0,J=!1,$=!1,Y=!1,Q=!1;function Z(y){if(!g)return;function T(w){(Et(g)||g(y,w))&&z(w)}const C=n;E.add(C,"dragstart",w=>w.preventDefault(),F).add(C,"touchmove",()=>{},F).add(C,"touchend",()=>{}).add(C,"touchstart",T).add(C,"mousedown",T).add(C,"touchcancel",N).add(C,"contextmenu",N).add(C,"click",ot,!0)}function _(){E.clear(),I.clear()}function et(){const y=Q?r:n;I.add(y,"touchmove",R,F).add(y,"touchend",N).add(y,"mousemove",R,F).add(y,"mouseup",N)}function K(y){const T=y.nodeName||"";return v.includes(T)}function rt(){return(d?O:M)[Q?"mouse":"touch"]}function st(y,T){const C=l.add(Lt(y)*-1),w=h.byDistance(y,!d).distance;return d||A(y)<D?w:S&&T?w*.5:h.byIndex(C.get(),0).distance}function z(y){const T=bt(y,s);Q=T,Y=d&&T&&!y.buttons&&X,X=it(i.get(),o.get())>=2,!(T&&y.button!==0)&&(K(y.target)||(J=!0,e.pointerDown(y),u.useFriction(0).useDuration(0),i.set(o),et(),B=e.readPoint(y),U=e.readPoint(y,b),m.emit("pointerDown")))}function R(y){if(!bt(y,s)&&y.touches.length>=2)return N(y);const C=e.readPoint(y),w=e.readPoint(y,b),q=it(C,B),H=it(w,U);if(!$&&!Q&&(!y.cancelable||($=q>H,!$)))return N(y);const G=e.pointerMove(y);q>p&&(Y=!0),u.useFriction(.3).useDuration(.75),f.start(),i.add(L(G)),y.preventDefault()}function N(y){const C=h.byDistance(0,!1).index!==l.get(),w=e.pointerUp(y)*rt(),q=st(L(w),C),H=Ut(w,q),G=V-10*H,W=a+H/50;$=!1,J=!1,I.clear(),u.useDuration(G).useFriction(W),c.distance(q,!d),Q=!1,m.emit("pointerUp")}function ot(y){Y&&(y.stopPropagation(),y.preventDefault(),Y=!1)}function k(){return J}return{init:Z,destroy:_,pointerDown:k}}function Xt(t,n){let s,i;function e(l){return l.timeStamp}function o(l,m){const d=`client${(m||t.scroll)==="x"?"X":"Y"}`;return(bt(l,n)?l:l.touches[0])[d]}function f(l){return s=l,i=l,o(l)}function c(l){const m=o(l)-o(i),x=e(l)-e(s)>170;return i=l,x&&(s=l),m}function u(l){if(!s||!i)return 0;const m=o(i)-o(s),x=e(l)-e(s),d=e(l)-e(i)>170,p=m/x;return x&&!d&&A(p)>.1?p:0}return{pointerDown:f,pointerMove:c,pointerUp:u,readPoint:o}}function Yt(){function t(r){const{offsetTop:s,offsetLeft:i,offsetWidth:e,offsetHeight:o}=r;return{top:s,right:i+e,bottom:s+o,left:i,width:e,height:o}}return{measure:t}}function Jt(t){function n(s){return t*(s/100)}return{measure:n}}function Zt(t,n,r,s,i,e,o){let f,c,u=[],h=!1;function l(p){return i.measureSize(o.measure(p))}function m(p){if(!e)return;c=l(t),u=s.map(l);function S(g){for(const b of g){const L=b.target===t,v=s.indexOf(b.target),F=L?c:u[v],E=l(L?t:s[v]);if(A(E-F)>=.5){r.requestAnimationFrame(()=>{p.reInit(),n.emit("resize")});break}}}f=new ResizeObserver(g=>{h||(Et(e)||e(p,g))&&S(g)}),[t].concat(s).forEach(g=>f.observe(g))}function x(){f&&f.disconnect(),h=!0}return{init:m,destroy:x}}function Wt(t,n,r,s,i){let e=0,o=0,f=s,c=i,u=t.get(),h=0;function l(){const v=r.get()-t.get(),F=!f;let E=0;return F?(e=0,t.set(r),E=v):(e+=v/f,e*=c,u+=e,t.add(e),E=u-h),o=Lt(E),h=u,L}function m(){const v=r.get()-n.get();return A(v)<.001}function x(){return f}function d(){return o}function p(){return e}function S(){return g(s)}function a(){return b(i)}function g(v){return f=v,L}function b(v){return c=v,L}const L={direction:d,duration:x,velocity:p,seek:l,settled:m,useBaseFriction:a,useBaseDuration:S,useFriction:b,useDuration:g};return L}function tn(t,n,r,s,i){const e=i.measure(10),o=i.measure(50),f=nt(.1,.99);let c=!1;function u(){return!(c||!t.reachedAny(r.get())||!t.reachedAny(n.get()))}function h(x){if(!u())return;const d=t.reachedMin(n.get())?"min":"max",p=A(t[d]-n.get()),S=r.get()-n.get(),a=f.constrain(p/o);r.subtract(S*a),!x&&A(S)<e&&(r.set(t.constrain(r.get())),s.useDuration(25).useBaseFriction())}function l(x){c=!x}return{constrain:h,toggleActive:l}}function nn(t,n,r,s,i){const e=nt(-n+t,0),o=l(),f=h(),c=m();function u(d,p){return it(d,p)<1}function h(){const d=o[0],p=j(o),S=o.lastIndexOf(d),a=o.indexOf(p)+1;return nt(S,a)}function l(){return r.map((d,p)=>{const{min:S,max:a}=e,g=e.constrain(d),b=!p,L=It(r,p);return b?a:L||u(S,g)?S:u(a,g)?a:g}).map(d=>parseFloat(d.toFixed(3)))}function m(){if(n<=t+i)return[e.max];if(s==="keepSnaps")return o;const{min:d,max:p}=f;return o.slice(d,p)}return{snapsContained:c,scrollContainLimit:f}}function en(t,n,r){const s=n[0],i=r?s-t:j(n);return{limit:nt(i,s)}}function on(t,n,r,s){const e=n.min+.1,o=n.max+.1,{reachedMin:f,reachedMax:c}=nt(e,o);function u(m){return m===1?c(r.get()):m===-1?f(r.get()):!1}function h(m){if(!u(m))return;const x=t*(m*-1);s.forEach(d=>d.add(x))}return{loop:h}}function rn(t){const{max:n,length:r}=t;function s(e){const o=e-n;return r?o/-r:0}return{get:s}}function sn(t,n,r,s,i){const{startEdge:e,endEdge:o}=t,{groupSlides:f}=i,c=l().map(n.measure),u=m(),h=x();function l(){return f(s).map(p=>j(p)[o]-p[0][e]).map(A)}function m(){return s.map(p=>r[e]-p[e]).map(p=>-A(p))}function x(){return f(u).map(p=>p[0]).map((p,S)=>p+c[S])}return{snaps:u,snapsAligned:h}}function cn(t,n,r,s,i,e){const{groupSlides:o}=i,{min:f,max:c}=s,u=h();function h(){const m=o(e),x=!t||n==="keepSnaps";return r.length===1?[e]:x?m:m.slice(f,c).map((d,p,S)=>{const a=!p,g=It(S,p);if(a){const b=j(S[0])+1;return Ct(b)}if(g){const b=at(e)-j(S)[0]+1;return Ct(b,j(S)[0])}return d})}return{slideRegistry:u}}function un(t,n,r,s,i){const{reachedAny:e,removeOffset:o,constrain:f}=s;function c(d){return d.concat().sort((p,S)=>A(p)-A(S))[0]}function u(d){const p=t?o(d):f(d),S=n.map((g,b)=>({diff:h(g-p,0),index:b})).sort((g,b)=>A(g.diff)-A(b.diff)),{index:a}=S[0];return{index:a,distance:p}}function h(d,p){const S=[d,d+r,d-r];if(!t)return d;if(!p)return c(S);const a=S.filter(g=>Lt(g)===p);return a.length?c(a):j(S)-r}function l(d,p){const S=n[d]-i.get(),a=h(S,p);return{index:d,distance:a}}function m(d,p){const S=i.get()+d,{index:a,distance:g}=u(S),b=!t&&e(S);if(!p||b)return{index:a,distance:d};const L=n[a]-g,v=d+h(L,0);return{index:a,distance:v}}return{byDistance:m,byIndex:l,shortcut:h}}function fn(t,n,r,s,i,e,o){function f(l){const m=l.distance,x=l.index!==n.get();e.add(m),m&&(s.duration()?t.start():(t.update(),t.render(1),t.update())),x&&(r.set(n.get()),n.set(l.index),o.emit("select"))}function c(l,m){const x=i.byDistance(l,m);f(x)}function u(l,m){const x=n.clone().set(l),d=i.byIndex(x.get(),m);f(d)}return{distance:c,index:u}}function an(t,n,r,s,i,e,o){let f=0;function c(){e.add(document,"keydown",u,!1),n.forEach(h)}function u(m){m.code==="Tab"&&(f=new Date().getTime())}function h(m){const x=()=>{if(new Date().getTime()-f>10)return;t.scrollLeft=0;const S=n.indexOf(m),a=r.findIndex(g=>g.includes(S));xt(a)&&(i.useDuration(0),s.index(a,0),o.emit("slideFocus"))};e.add(m,"focus",x,{passive:!0,capture:!0})}return{init:c}}function dt(t){let n=t;function r(){return n}function s(c){n=o(c)}function i(c){n+=o(c)}function e(c){n-=o(c)}function o(c){return xt(c)?c:c.get()}return{get:r,set:s,add:i,subtract:e}}function Vt(t,n){const r=t.scroll==="x"?e:o,s=n.style;let i=!1;function e(l){return`translate3d(${l}px,0px,0px)`}function o(l){return`translate3d(0px,${l}px,0px)`}function f(l){i||(s.transform=r(t.direction(l)))}function c(l){i=!l}function u(){i||(s.transform="",n.getAttribute("style")||n.removeAttribute("style"))}return{clear:u,to:f,toggleActive:c}}function ln(t,n,r,s,i,e,o,f,c){const h=ct(i),l=ct(i).reverse(),m=a().concat(g());function x(E,I){return E.reduce((D,M)=>D-i[M],I)}function d(E,I){return E.reduce((D,M)=>x(D,I)>0?D.concat([M]):D,[])}function p(E){return e.map((I,D)=>({start:I-s[D]+.5+E,end:I+n-.5+E}))}function S(E,I,D){const M=p(I);return E.map(O=>{const V=D?0:-r,X=D?r:0,B=D?"end":"start",U=M[O][B];return{index:O,loopPoint:U,slideLocation:dt(-1),translate:Vt(t,c[O]),target:()=>f.get()>U?V:X}})}function a(){const E=o[0],I=d(l,E);return S(I,r,!1)}function g(){const E=n-o[0]-1,I=d(h,E);return S(I,-r,!0)}function b(){return m.every(({index:E})=>{const I=h.filter(D=>D!==E);return x(I,n)<=.1})}function L(){m.forEach(E=>{const{target:I,translate:D,slideLocation:M}=E,O=I();O!==M.get()&&(D.to(O),M.set(O))})}function v(){m.forEach(E=>E.translate.clear())}return{canLoop:b,clear:v,loop:L,loopPoints:m}}function dn(t,n,r){let s,i=!1;function e(c){if(!r)return;function u(h){for(const l of h)if(l.type==="childList"){c.reInit(),n.emit("slidesChanged");break}}s=new MutationObserver(h=>{i||(Et(r)||r(c,h))&&u(h)}),s.observe(t,{childList:!0})}function o(){s&&s.disconnect(),i=!0}return{init:e,destroy:o}}function pn(t,n,r,s){const i={};let e=null,o=null,f,c=!1;function u(){f=new IntersectionObserver(d=>{c||(d.forEach(p=>{const S=n.indexOf(p.target);i[S]=p}),e=null,o=null,r.emit("slidesInView"))},{root:t.parentElement,threshold:s}),n.forEach(d=>f.observe(d))}function h(){f&&f.disconnect(),c=!0}function l(d){return ut(i).reduce((p,S)=>{const a=parseInt(S),{isIntersecting:g}=i[a];return(d&&g||!d&&!g)&&p.push(a),p},[])}function m(d=!0){if(d&&e)return e;if(!d&&o)return o;const p=l(d);return d&&(e=p),d||(o=p),p}return{init:u,destroy:h,get:m}}function mn(t,n,r,s,i,e){const{measureSize:o,startEdge:f,endEdge:c}=t,u=r[0]&&i,h=d(),l=p(),m=r.map(o),x=S();function d(){if(!u)return 0;const g=r[0];return A(n[f]-g[f])}function p(){if(!u)return 0;const g=e.getComputedStyle(j(s));return parseFloat(g.getPropertyValue(`margin-${c}`))}function S(){return r.map((g,b,L)=>{const v=!b,F=It(L,b);return v?m[b]+h:F?m[b]+l:L[b+1][f]-g[f]}).map(A)}return{slideSizes:m,slideSizesWithGaps:x,startGap:h,endGap:l}}function gn(t,n,r,s,i,e,o,f,c){const{startEdge:u,endEdge:h,direction:l}=t,m=xt(r);function x(a,g){return ct(a).filter(b=>b%g===0).map(b=>a.slice(b,b+g))}function d(a){return a.length?ct(a).reduce((g,b,L)=>{const v=j(g)||0,F=v===0,E=b===at(a),I=i[u]-e[v][u],D=i[u]-e[b][h],M=!s&&F?l(o):0,O=!s&&E?l(f):0,V=A(D-O-(I+M));return L&&V>n+c&&g.push(b),E&&g.push(a.length),g},[]).map((g,b,L)=>{const v=Math.max(L[b-1]||0);return a.slice(v,g)}):[]}function p(a){return m?x(a,r):d(a)}return{groupSlides:p}}function hn(t,n,r,s,i,e,o){const{align:f,axis:c,direction:u,startIndex:h,loop:l,duration:m,dragFree:x,dragThreshold:d,inViewThreshold:p,slidesToScroll:S,skipSnaps:a,containScroll:g,watchResize:b,watchSlides:L,watchDrag:v}=e,F=2,E=Yt(),I=E.measure(n),D=r.map(E.measure),M=_t(c,u),O=M.measureSize(I),V=Jt(O),X=$t(f,O),B=!l&&!!g,U=l||!!g,{slideSizes:J,slideSizesWithGaps:$,startGap:Y,endGap:Q}=mn(M,I,D,r,U,i),Z=gn(M,O,S,l,I,D,Y,Q,F),{snaps:_,snapsAligned:et}=sn(M,X,I,D,Z),K=-j(_)+j($),{snapsContained:rt,scrollContainLimit:st}=nn(O,K,et,g,F),z=B?rt:et,{limit:R}=en(K,z,l),N=Nt(at(z),h,l),ot=N.clone(),k=ct(r),P=({dragHandler:tt,scrollBody:ht,scrollBounds:St,options:{loop:lt}})=>{lt||St.constrain(tt.pointerDown()),ht.seek()},y=({scrollBody:tt,translate:ht,location:St,offsetLocation:lt,scrollLooper:kt,slideLooper:Ht,dragHandler:Gt,animation:jt,eventHandler:At,options:{loop:Rt}},qt)=>{const Ft=tt.velocity(),Pt=tt.settled();Pt&&!Gt.pointerDown()&&(jt.stop(),At.emit("settle")),Pt||At.emit("scroll"),lt.set(St.get()-Ft+Ft*qt),Rt&&(kt.loop(tt.direction()),Ht.loop()),ht.to(lt.get())},T=Qt(s,i,()=>P(gt),tt=>y(gt,tt)),C=.68,w=z[N.get()],q=dt(w),H=dt(w),G=dt(w),W=Wt(q,H,G,m,C),pt=un(l,z,K,R,G),mt=fn(T,N,ot,W,pt,G,o),Tt=rn(R),Dt=ft(),zt=pn(n,r,o,p),{slideRegistry:Mt}=cn(B,g,z,st,Z,k),Bt=an(t,r,Mt,mt,W,Dt,o),gt={ownerDocument:s,ownerWindow:i,eventHandler:o,containerRect:I,slideRects:D,animation:T,axis:M,dragHandler:Kt(M,t,s,i,G,Xt(M,i),q,T,mt,W,pt,N,o,V,x,d,a,C,v),eventStore:Dt,percentOfView:V,index:N,indexPrevious:ot,limit:R,location:q,offsetLocation:H,options:e,resizeHandler:Zt(n,o,i,r,M,b,E),scrollBody:W,scrollBounds:tn(R,H,G,W,V),scrollLooper:on(K,R,H,[q,H,G]),scrollProgress:Tt,scrollSnapList:z.map(Tt.get),scrollSnaps:z,scrollTarget:pt,scrollTo:mt,slideLooper:ln(M,O,K,J,$,_,z,H,r),slideFocus:Bt,slidesHandler:dn(n,o,L),slidesInView:zt,slideIndexes:k,slideRegistry:Mt,slidesToScroll:Z,target:G,translate:Vt(M,n)};return gt}function Sn(){let t={},n;function r(u){n=u}function s(u){return t[u]||[]}function i(u){return s(u).forEach(h=>h(n,u)),c}function e(u,h){return t[u]=s(u).concat([h]),c}function o(u,h){return t[u]=s(u).filter(l=>l!==h),c}function f(){t={}}const c={init:r,emit:i,off:o,on:e,clear:f};return c}const yn={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function bn(t){function n(e,o){return wt(e,o||{})}function r(e){const o=e.breakpoints||{},f=ut(o).filter(c=>t.matchMedia(c).matches).map(c=>o[c]).reduce((c,u)=>n(c,u),{});return n(e,f)}function s(e){return e.map(o=>ut(o.breakpoints||{})).reduce((o,f)=>o.concat(f),[]).map(t.matchMedia)}return{mergeOptions:n,optionsAtMedia:r,optionsMediaQueries:s}}function xn(t){let n=[];function r(e,o){return n=o.filter(({options:f})=>t.optionsAtMedia(f).active!==!1),n.forEach(f=>f.init(e,t)),o.reduce((f,c)=>Object.assign(f,{[c.name]:c}),{})}function s(){n=n.filter(e=>e.destroy())}return{init:r,destroy:s}}function vt(t,n,r){const s=t.ownerDocument,i=s.defaultView,e=bn(i),o=xn(e),f=ft(),c=Sn(),{mergeOptions:u,optionsAtMedia:h,optionsMediaQueries:l}=e,{on:m,off:x,emit:d}=c,p=O;let S=!1,a,g=u(yn,vt.globalOptions),b=u(g),L=[],v,F,E;function I(){const{container:P,slides:y}=b;F=(yt(P)?t.querySelector(P):P)||t.children[0];const C=yt(y)?F.querySelectorAll(y):y;E=[].slice.call(C||F.children)}function D(P){const y=hn(t,F,E,s,i,P,c);if(P.loop&&!y.slideLooper.canLoop()){const T=Object.assign({},P,{loop:!1});return D(T)}return y}function M(P,y){S||(g=u(g,P),b=h(g),L=y||L,I(),a=D(b),l([g,...L.map(({options:T})=>T)]).forEach(T=>f.add(T,"change",O)),b.active&&(a.translate.to(a.location.get()),a.animation.init(),a.slidesInView.init(),a.slideFocus.init(),a.eventHandler.init(k),a.resizeHandler.init(k),a.slidesHandler.init(k),a.options.loop&&a.slideLooper.loop(),F.offsetParent&&E.length&&a.dragHandler.init(k),v=o.init(k,L)))}function O(P,y){const T=_();V(),M(u({startIndex:T},P),y),c.emit("reInit")}function V(){a.dragHandler.destroy(),a.eventStore.clear(),a.translate.clear(),a.slideLooper.clear(),a.resizeHandler.destroy(),a.slidesHandler.destroy(),a.slidesInView.destroy(),a.animation.destroy(),o.destroy(),f.clear()}function X(){S||(S=!0,f.clear(),V(),c.emit("destroy"),c.clear())}function B(P,y,T){!b.active||S||(a.scrollBody.useBaseFriction().useDuration(y===!0?0:b.duration),a.scrollTo.index(P,T||0))}function U(P){const y=a.index.add(1).get();B(y,P,-1)}function J(P){const y=a.index.add(-1).get();B(y,P,1)}function $(){return a.index.add(1).get()!==_()}function Y(){return a.index.add(-1).get()!==_()}function Q(){return a.scrollSnapList}function Z(){return a.scrollProgress.get(a.location.get())}function _(){return a.index.get()}function et(){return a.indexPrevious.get()}function K(){return a.slidesInView.get()}function rt(){return a.slidesInView.get(!1)}function st(){return v}function z(){return a}function R(){return t}function N(){return F}function ot(){return E}const k={canScrollNext:$,canScrollPrev:Y,containerNode:N,internalEngine:z,destroy:X,off:x,on:m,emit:d,plugins:st,previousScrollSnap:et,reInit:p,rootNode:R,scrollNext:U,scrollPrev:J,scrollProgress:Z,scrollSnapList:Q,scrollTo:B,selectedScrollSnap:_,slideNodes:ot,slidesInView:K,slidesNotInView:rt};return M(n,r),setTimeout(()=>c.emit("init"),0),k}vt.globalOptions=void 0;exports.default=vt;