vevet 5.1.3 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/lib/cdn/vevet.iife.min.js +36 -32
  2. package/lib/cjs/base/Callbacks/index.js +25 -0
  3. package/lib/cjs/base/Callbacks/index.js.map +1 -1
  4. package/lib/cjs/base/Module/index.js +36 -7
  5. package/lib/cjs/base/Module/index.js.map +1 -1
  6. package/lib/cjs/base/Responsive/index.js +10 -3
  7. package/lib/cjs/base/Responsive/index.js.map +1 -1
  8. package/lib/cjs/components/Canvas/index.js +17 -2
  9. package/lib/cjs/components/Canvas/index.js.map +1 -1
  10. package/lib/cjs/components/CanvasMedia/index.js +13 -0
  11. package/lib/cjs/components/CanvasMedia/index.js.map +1 -1
  12. package/lib/cjs/components/Cursor/index.js +52 -27
  13. package/lib/cjs/components/Cursor/index.js.map +1 -1
  14. package/lib/cjs/components/Cursor/styles.js +4 -3
  15. package/lib/cjs/components/Cursor/styles.js.map +1 -1
  16. package/lib/cjs/components/InView/index.js +15 -1
  17. package/lib/cjs/components/InView/index.js.map +1 -1
  18. package/lib/cjs/components/Marquee/index.js +45 -27
  19. package/lib/cjs/components/Marquee/index.js.map +1 -1
  20. package/lib/cjs/components/Pointers/index.js +2 -2
  21. package/lib/cjs/components/Pointers/index.js.map +1 -1
  22. package/lib/cjs/components/Pointers/styles.js +2 -1
  23. package/lib/cjs/components/Pointers/styles.js.map +1 -1
  24. package/lib/cjs/components/Preloader/index.js +14 -3
  25. package/lib/cjs/components/Preloader/index.js.map +1 -1
  26. package/lib/cjs/components/ProgressPreloader/index.js +21 -12
  27. package/lib/cjs/components/ProgressPreloader/index.js.map +1 -1
  28. package/lib/cjs/components/Raf/index.js +14 -1
  29. package/lib/cjs/components/Raf/index.js.map +1 -1
  30. package/lib/cjs/components/ScrollProgress/index.js +10 -0
  31. package/lib/cjs/components/ScrollProgress/index.js.map +1 -1
  32. package/lib/cjs/components/Scrollbar/index.js +43 -23
  33. package/lib/cjs/components/Scrollbar/index.js.map +1 -1
  34. package/lib/cjs/components/Scrollbar/styles.js +3 -2
  35. package/lib/cjs/components/Scrollbar/styles.js.map +1 -1
  36. package/lib/cjs/components/Snap/Slide/index.js +18 -1
  37. package/lib/cjs/components/Snap/Slide/index.js.map +1 -1
  38. package/lib/cjs/components/Snap/SlideParallax/constants.js +101 -0
  39. package/lib/cjs/components/Snap/SlideParallax/constants.js.map +1 -0
  40. package/lib/cjs/components/Snap/SlideParallax/globals.js +5 -0
  41. package/lib/cjs/components/Snap/SlideParallax/globals.js.map +1 -0
  42. package/lib/cjs/components/Snap/SlideParallax/index.js +145 -0
  43. package/lib/cjs/components/Snap/SlideParallax/index.js.map +1 -0
  44. package/lib/cjs/components/Snap/SlideParallax/types.js +3 -0
  45. package/lib/cjs/components/Snap/SlideParallax/types.js.map +1 -0
  46. package/lib/cjs/components/Snap/Swipe/index.js +6 -4
  47. package/lib/cjs/components/Snap/Swipe/index.js.map +1 -1
  48. package/lib/cjs/components/Snap/Track/index.js +35 -6
  49. package/lib/cjs/components/Snap/Track/index.js.map +1 -1
  50. package/lib/cjs/components/Snap/Wheel/index.js +2 -1
  51. package/lib/cjs/components/Snap/Wheel/index.js.map +1 -1
  52. package/lib/cjs/components/Snap/index.js +28 -14
  53. package/lib/cjs/components/Snap/index.js.map +1 -1
  54. package/lib/cjs/components/SplitText/index.js +18 -4
  55. package/lib/cjs/components/SplitText/index.js.map +1 -1
  56. package/lib/cjs/components/SplitText/utils/isIgnored.js +2 -1
  57. package/lib/cjs/components/SplitText/utils/isIgnored.js.map +1 -1
  58. package/lib/cjs/components/SplitText/utils/saveInitialNodes.js +2 -1
  59. package/lib/cjs/components/SplitText/utils/saveInitialNodes.js.map +1 -1
  60. package/lib/cjs/components/SplitText/utils/splitBase.js +26 -8
  61. package/lib/cjs/components/SplitText/utils/splitBase.js.map +1 -1
  62. package/lib/cjs/components/SplitText/utils/wrapLetters.js +5 -3
  63. package/lib/cjs/components/SplitText/utils/wrapLetters.js.map +1 -1
  64. package/lib/cjs/components/SplitText/utils/wrapLines.js +8 -6
  65. package/lib/cjs/components/SplitText/utils/wrapLines.js.map +1 -1
  66. package/lib/cjs/components/SplitText/utils/wrapWords.js +12 -9
  67. package/lib/cjs/components/SplitText/utils/wrapWords.js.map +1 -1
  68. package/lib/cjs/components/Swipe/index.js +17 -8
  69. package/lib/cjs/components/Swipe/index.js.map +1 -1
  70. package/lib/cjs/components/Swipe/styles.js +2 -1
  71. package/lib/cjs/components/Swipe/styles.js.map +1 -1
  72. package/lib/cjs/components/Timeline/index.js +23 -9
  73. package/lib/cjs/components/Timeline/index.js.map +1 -1
  74. package/lib/cjs/core/handlers/createPageLoad/index.js +6 -5
  75. package/lib/cjs/core/handlers/createPageLoad/index.js.map +1 -1
  76. package/lib/cjs/core/handlers/createViewport/index.js +43 -20
  77. package/lib/cjs/core/handlers/createViewport/index.js.map +1 -1
  78. package/lib/cjs/core/index.js +12 -8
  79. package/lib/cjs/core/index.js.map +1 -1
  80. package/lib/cjs/global/initVevet.js +2 -1
  81. package/lib/cjs/global/initVevet.js.map +1 -1
  82. package/lib/cjs/index.js +2 -1
  83. package/lib/cjs/index.js.map +1 -1
  84. package/lib/cjs/internal/cn.js +19 -0
  85. package/lib/cjs/internal/cn.js.map +1 -0
  86. package/lib/cjs/internal/env.js +8 -0
  87. package/lib/cjs/internal/env.js.map +1 -0
  88. package/lib/cjs/internal/isNumber.js +7 -0
  89. package/lib/cjs/internal/isNumber.js.map +1 -0
  90. package/lib/cjs/internal/isString.js +7 -0
  91. package/lib/cjs/internal/isString.js.map +1 -0
  92. package/lib/cjs/internal/isUndefined.js +7 -0
  93. package/lib/cjs/internal/isUndefined.js.map +1 -0
  94. package/lib/cjs/internal/noopIfDestroyed.js +20 -0
  95. package/lib/cjs/internal/noopIfDestroyed.js.map +1 -0
  96. package/lib/cjs/internal/textDirection.js +7 -0
  97. package/lib/cjs/internal/textDirection.js.map +1 -0
  98. package/lib/cjs/manifest.json +1 -1
  99. package/lib/cjs/utils/common/toPixels.js +4 -3
  100. package/lib/cjs/utils/common/toPixels.js.map +1 -1
  101. package/lib/esm/base/Callbacks/index.js +25 -0
  102. package/lib/esm/base/Callbacks/index.js.map +1 -1
  103. package/lib/esm/base/Module/index.js +33 -7
  104. package/lib/esm/base/Module/index.js.map +1 -1
  105. package/lib/esm/base/Responsive/index.js +10 -3
  106. package/lib/esm/base/Responsive/index.js.map +1 -1
  107. package/lib/esm/components/Canvas/index.js +17 -2
  108. package/lib/esm/components/Canvas/index.js.map +1 -1
  109. package/lib/esm/components/CanvasMedia/index.js +13 -0
  110. package/lib/esm/components/CanvasMedia/index.js.map +1 -1
  111. package/lib/esm/components/Cursor/index.js +52 -27
  112. package/lib/esm/components/Cursor/index.js.map +1 -1
  113. package/lib/esm/components/Cursor/styles.js +7 -2
  114. package/lib/esm/components/Cursor/styles.js.map +1 -1
  115. package/lib/esm/components/InView/index.js +15 -1
  116. package/lib/esm/components/InView/index.js.map +1 -1
  117. package/lib/esm/components/Marquee/index.js +45 -27
  118. package/lib/esm/components/Marquee/index.js.map +1 -1
  119. package/lib/esm/components/Pointers/index.js +2 -2
  120. package/lib/esm/components/Pointers/index.js.map +1 -1
  121. package/lib/esm/components/Pointers/styles.js +2 -1
  122. package/lib/esm/components/Pointers/styles.js.map +1 -1
  123. package/lib/esm/components/Preloader/index.js +14 -3
  124. package/lib/esm/components/Preloader/index.js.map +1 -1
  125. package/lib/esm/components/ProgressPreloader/index.js +21 -12
  126. package/lib/esm/components/ProgressPreloader/index.js.map +1 -1
  127. package/lib/esm/components/Raf/index.js +14 -1
  128. package/lib/esm/components/Raf/index.js.map +1 -1
  129. package/lib/esm/components/ScrollProgress/index.js +10 -0
  130. package/lib/esm/components/ScrollProgress/index.js.map +1 -1
  131. package/lib/esm/components/Scrollbar/index.js +43 -23
  132. package/lib/esm/components/Scrollbar/index.js.map +1 -1
  133. package/lib/esm/components/Scrollbar/styles.js +3 -2
  134. package/lib/esm/components/Scrollbar/styles.js.map +1 -1
  135. package/lib/esm/components/Snap/Slide/index.js +18 -1
  136. package/lib/esm/components/Snap/Slide/index.js.map +1 -1
  137. package/lib/esm/components/Snap/SlideParallax/constants.js +95 -0
  138. package/lib/esm/components/Snap/SlideParallax/constants.js.map +1 -0
  139. package/lib/esm/components/Snap/SlideParallax/globals.js +2 -0
  140. package/lib/esm/components/Snap/SlideParallax/globals.js.map +1 -0
  141. package/lib/esm/components/Snap/SlideParallax/index.js +122 -0
  142. package/lib/esm/components/Snap/SlideParallax/index.js.map +1 -0
  143. package/lib/esm/components/Snap/SlideParallax/types.js +2 -0
  144. package/lib/esm/components/Snap/SlideParallax/types.js.map +1 -0
  145. package/lib/esm/components/Snap/Swipe/index.js +6 -4
  146. package/lib/esm/components/Snap/Swipe/index.js.map +1 -1
  147. package/lib/esm/components/Snap/Track/index.js +31 -6
  148. package/lib/esm/components/Snap/Track/index.js.map +1 -1
  149. package/lib/esm/components/Snap/Wheel/index.js +2 -1
  150. package/lib/esm/components/Snap/Wheel/index.js.map +1 -1
  151. package/lib/esm/components/Snap/index.js +28 -14
  152. package/lib/esm/components/Snap/index.js.map +1 -1
  153. package/lib/esm/components/SplitText/index.js +18 -4
  154. package/lib/esm/components/SplitText/index.js.map +1 -1
  155. package/lib/esm/components/SplitText/utils/isIgnored.js +2 -1
  156. package/lib/esm/components/SplitText/utils/isIgnored.js.map +1 -1
  157. package/lib/esm/components/SplitText/utils/saveInitialNodes.js +2 -1
  158. package/lib/esm/components/SplitText/utils/saveInitialNodes.js.map +1 -1
  159. package/lib/esm/components/SplitText/utils/splitBase.js +16 -8
  160. package/lib/esm/components/SplitText/utils/splitBase.js.map +1 -1
  161. package/lib/esm/components/SplitText/utils/wrapLetters.js +5 -3
  162. package/lib/esm/components/SplitText/utils/wrapLetters.js.map +1 -1
  163. package/lib/esm/components/SplitText/utils/wrapLines.js +8 -6
  164. package/lib/esm/components/SplitText/utils/wrapLines.js.map +1 -1
  165. package/lib/esm/components/SplitText/utils/wrapWords.js +13 -10
  166. package/lib/esm/components/SplitText/utils/wrapWords.js.map +1 -1
  167. package/lib/esm/components/Swipe/index.js +17 -8
  168. package/lib/esm/components/Swipe/index.js.map +1 -1
  169. package/lib/esm/components/Swipe/styles.js +2 -1
  170. package/lib/esm/components/Swipe/styles.js.map +1 -1
  171. package/lib/esm/components/Timeline/index.js +23 -9
  172. package/lib/esm/components/Timeline/index.js.map +1 -1
  173. package/lib/esm/core/handlers/createPageLoad/index.js +6 -5
  174. package/lib/esm/core/handlers/createPageLoad/index.js.map +1 -1
  175. package/lib/esm/core/handlers/createViewport/index.js +43 -20
  176. package/lib/esm/core/handlers/createViewport/index.js.map +1 -1
  177. package/lib/esm/core/index.js +16 -8
  178. package/lib/esm/core/index.js.map +1 -1
  179. package/lib/esm/global/initVevet.js +2 -1
  180. package/lib/esm/global/initVevet.js.map +1 -1
  181. package/lib/esm/index.js +2 -1
  182. package/lib/esm/index.js.map +1 -1
  183. package/lib/esm/internal/cn.js +13 -0
  184. package/lib/esm/internal/cn.js.map +1 -0
  185. package/lib/esm/internal/env.js +5 -0
  186. package/lib/esm/internal/env.js.map +1 -0
  187. package/lib/esm/internal/isNumber.js +4 -0
  188. package/lib/esm/internal/isNumber.js.map +1 -0
  189. package/lib/esm/internal/isString.js +4 -0
  190. package/lib/esm/internal/isString.js.map +1 -0
  191. package/lib/esm/internal/isUndefined.js +4 -0
  192. package/lib/esm/internal/isUndefined.js.map +1 -0
  193. package/lib/esm/internal/noopIfDestroyed.js +13 -0
  194. package/lib/esm/internal/noopIfDestroyed.js.map +1 -0
  195. package/lib/esm/internal/textDirection.js +4 -0
  196. package/lib/esm/internal/textDirection.js.map +1 -0
  197. package/lib/esm/manifest.json +1 -1
  198. package/lib/esm/utils/common/toPixels.js +3 -2
  199. package/lib/esm/utils/common/toPixels.js.map +1 -1
  200. package/lib/types/base/Callbacks/index.d.ts +2 -0
  201. package/lib/types/base/Callbacks/index.d.ts.map +1 -1
  202. package/lib/types/base/Module/index.d.ts.map +1 -1
  203. package/lib/types/base/Module/types.d.ts +3 -0
  204. package/lib/types/base/Module/types.d.ts.map +1 -1
  205. package/lib/types/base/Responsive/index.d.ts.map +1 -1
  206. package/lib/types/components/Canvas/index.d.ts +2 -2
  207. package/lib/types/components/Canvas/index.d.ts.map +1 -1
  208. package/lib/types/components/CanvasMedia/index.d.ts +2 -1
  209. package/lib/types/components/CanvasMedia/index.d.ts.map +1 -1
  210. package/lib/types/components/Cursor/index.d.ts +2 -2
  211. package/lib/types/components/Cursor/index.d.ts.map +1 -1
  212. package/lib/types/components/Cursor/styles.d.ts.map +1 -1
  213. package/lib/types/components/InView/index.d.ts +2 -2
  214. package/lib/types/components/InView/index.d.ts.map +1 -1
  215. package/lib/types/components/Marquee/index.d.ts +2 -2
  216. package/lib/types/components/Marquee/index.d.ts.map +1 -1
  217. package/lib/types/components/Pointers/index.d.ts +2 -2
  218. package/lib/types/components/Pointers/index.d.ts.map +1 -1
  219. package/lib/types/components/Pointers/styles.d.ts.map +1 -1
  220. package/lib/types/components/Preloader/index.d.ts +2 -2
  221. package/lib/types/components/Preloader/index.d.ts.map +1 -1
  222. package/lib/types/components/ProgressPreloader/index.d.ts +2 -1
  223. package/lib/types/components/ProgressPreloader/index.d.ts.map +1 -1
  224. package/lib/types/components/Raf/index.d.ts +2 -2
  225. package/lib/types/components/Raf/index.d.ts.map +1 -1
  226. package/lib/types/components/ScrollProgress/index.d.ts +2 -2
  227. package/lib/types/components/ScrollProgress/index.d.ts.map +1 -1
  228. package/lib/types/components/Scrollbar/index.d.ts +4 -2
  229. package/lib/types/components/Scrollbar/index.d.ts.map +1 -1
  230. package/lib/types/components/Scrollbar/styles.d.ts.map +1 -1
  231. package/lib/types/components/Snap/Slide/index.d.ts +5 -0
  232. package/lib/types/components/Snap/Slide/index.d.ts.map +1 -1
  233. package/lib/types/components/Snap/SlideParallax/constants.d.ts +7 -0
  234. package/lib/types/components/Snap/SlideParallax/constants.d.ts.map +1 -0
  235. package/lib/types/components/Snap/SlideParallax/globals.d.ts +2 -0
  236. package/lib/types/components/Snap/SlideParallax/globals.d.ts.map +1 -0
  237. package/lib/types/components/Snap/SlideParallax/index.d.ts +25 -0
  238. package/lib/types/components/Snap/SlideParallax/index.d.ts.map +1 -0
  239. package/lib/types/components/Snap/SlideParallax/types.d.ts +22 -0
  240. package/lib/types/components/Snap/SlideParallax/types.d.ts.map +1 -0
  241. package/lib/types/components/Snap/Swipe/index.d.ts.map +1 -1
  242. package/lib/types/components/Snap/Swipe/types.d.ts +1 -6
  243. package/lib/types/components/Snap/Swipe/types.d.ts.map +1 -1
  244. package/lib/types/components/Snap/Track/index.d.ts +10 -1
  245. package/lib/types/components/Snap/Track/index.d.ts.map +1 -1
  246. package/lib/types/components/Snap/Wheel/index.d.ts.map +1 -1
  247. package/lib/types/components/Snap/index.d.ts +2 -2
  248. package/lib/types/components/Snap/index.d.ts.map +1 -1
  249. package/lib/types/components/Snap/types.d.ts +1 -1
  250. package/lib/types/components/SplitText/index.d.ts +2 -2
  251. package/lib/types/components/SplitText/index.d.ts.map +1 -1
  252. package/lib/types/components/SplitText/types.d.ts +27 -0
  253. package/lib/types/components/SplitText/types.d.ts.map +1 -1
  254. package/lib/types/components/SplitText/utils/isIgnored.d.ts.map +1 -1
  255. package/lib/types/components/SplitText/utils/saveInitialNodes.d.ts.map +1 -1
  256. package/lib/types/components/SplitText/utils/splitBase.d.ts +3 -3
  257. package/lib/types/components/SplitText/utils/splitBase.d.ts.map +1 -1
  258. package/lib/types/components/SplitText/utils/wrapLetters.d.ts.map +1 -1
  259. package/lib/types/components/SplitText/utils/wrapLines.d.ts.map +1 -1
  260. package/lib/types/components/SplitText/utils/wrapWords.d.ts +3 -3
  261. package/lib/types/components/SplitText/utils/wrapWords.d.ts.map +1 -1
  262. package/lib/types/components/Swipe/index.d.ts +2 -2
  263. package/lib/types/components/Swipe/index.d.ts.map +1 -1
  264. package/lib/types/components/Swipe/styles.d.ts.map +1 -1
  265. package/lib/types/components/Swipe/types.d.ts +5 -0
  266. package/lib/types/components/Swipe/types.d.ts.map +1 -1
  267. package/lib/types/components/Timeline/index.d.ts +2 -2
  268. package/lib/types/components/Timeline/index.d.ts.map +1 -1
  269. package/lib/types/core/global.d.ts +4 -0
  270. package/lib/types/core/global.d.ts.map +1 -1
  271. package/lib/types/core/handlers/createPageLoad/index.d.ts.map +1 -1
  272. package/lib/types/core/handlers/createViewport/index.d.ts +2 -1
  273. package/lib/types/core/handlers/createViewport/index.d.ts.map +1 -1
  274. package/lib/types/core/index.d.ts.map +1 -1
  275. package/lib/types/global/initVevet.d.ts.map +1 -1
  276. package/lib/types/index.d.ts.map +1 -1
  277. package/lib/types/internal/cn.d.ts +5 -0
  278. package/lib/types/internal/cn.d.ts.map +1 -0
  279. package/lib/types/internal/env.d.ts +5 -0
  280. package/lib/types/internal/env.d.ts.map +1 -0
  281. package/lib/types/internal/isNumber.d.ts +2 -0
  282. package/lib/types/internal/isNumber.d.ts.map +1 -0
  283. package/lib/types/internal/isString.d.ts +2 -0
  284. package/lib/types/internal/isString.d.ts.map +1 -0
  285. package/lib/types/internal/isUndefined.d.ts +2 -0
  286. package/lib/types/internal/isUndefined.d.ts.map +1 -0
  287. package/lib/types/internal/noopIfDestroyed.d.ts +2 -0
  288. package/lib/types/internal/noopIfDestroyed.d.ts.map +1 -0
  289. package/lib/types/internal/textDirection.d.ts +2 -0
  290. package/lib/types/internal/textDirection.d.ts.map +1 -0
  291. package/lib/types/utils/common/toPixels.d.ts.map +1 -1
  292. package/package.json +2 -1
  293. package/src/base/Callbacks/index.ts +11 -0
  294. package/src/base/Module/index.ts +31 -8
  295. package/src/base/Module/types.ts +4 -0
  296. package/src/base/Responsive/index.ts +2 -4
  297. package/src/components/Canvas/index.ts +11 -4
  298. package/src/components/CanvasMedia/index.ts +7 -1
  299. package/src/components/Cursor/index.ts +46 -29
  300. package/src/components/Cursor/styles.ts +8 -2
  301. package/src/components/InView/index.ts +9 -3
  302. package/src/components/Marquee/index.ts +40 -30
  303. package/src/components/Pointers/index.ts +6 -4
  304. package/src/components/Pointers/styles.ts +3 -2
  305. package/src/components/Preloader/index.ts +21 -5
  306. package/src/components/ProgressPreloader/index.ts +15 -15
  307. package/src/components/Raf/index.ts +8 -3
  308. package/src/components/ScrollProgress/index.ts +6 -2
  309. package/src/components/Scrollbar/index.ts +42 -27
  310. package/src/components/Scrollbar/styles.ts +4 -2
  311. package/src/components/Snap/Slide/index.ts +26 -0
  312. package/src/components/Snap/SlideParallax/constants.ts +100 -0
  313. package/src/components/Snap/SlideParallax/globals.ts +1 -0
  314. package/src/components/Snap/SlideParallax/index.ts +184 -0
  315. package/src/components/Snap/SlideParallax/types.ts +24 -0
  316. package/src/components/Snap/Swipe/index.ts +8 -4
  317. package/src/components/Snap/Swipe/types.ts +1 -7
  318. package/src/components/Snap/Track/index.ts +45 -6
  319. package/src/components/Snap/Wheel/index.ts +2 -1
  320. package/src/components/Snap/index.ts +21 -23
  321. package/src/components/Snap/types.ts +1 -1
  322. package/src/components/SplitText/index.ts +26 -6
  323. package/src/components/SplitText/types.ts +30 -0
  324. package/src/components/SplitText/utils/isIgnored.ts +2 -1
  325. package/src/components/SplitText/utils/saveInitialNodes.ts +3 -1
  326. package/src/components/SplitText/utils/splitBase.ts +10 -3
  327. package/src/components/SplitText/utils/wrapLetters.ts +5 -3
  328. package/src/components/SplitText/utils/wrapLines.ts +8 -6
  329. package/src/components/SplitText/utils/wrapWords.ts +29 -13
  330. package/src/components/Swipe/index.ts +22 -9
  331. package/src/components/Swipe/styles.ts +3 -2
  332. package/src/components/Swipe/types.ts +6 -0
  333. package/src/components/Timeline/index.ts +13 -13
  334. package/src/core/global.ts +5 -0
  335. package/src/core/handlers/createPageLoad/index.ts +6 -5
  336. package/src/core/handlers/createViewport/index.ts +44 -21
  337. package/src/core/index.ts +17 -11
  338. package/src/global/initVevet.ts +2 -1
  339. package/src/index.ts +2 -3
  340. package/src/internal/cn.ts +15 -0
  341. package/src/internal/env.ts +7 -0
  342. package/src/internal/isNumber.ts +3 -0
  343. package/src/internal/isString.ts +3 -0
  344. package/src/internal/isUndefined.ts +3 -0
  345. package/src/internal/noopIfDestroyed.ts +19 -0
  346. package/src/internal/textDirection.ts +3 -0
  347. package/src/manifest.json +1 -1
  348. package/src/utils/common/toPixels.ts +3 -3
@@ -1,11 +1,11 @@
1
- "use strict";var Vevet=(()=>{var hi=Object.create;var ie=Object.defineProperty;var ci=Object.getOwnPropertyDescriptor;var di=Object.getOwnPropertyNames;var ui=Object.getPrototypeOf,pi=Object.prototype.hasOwnProperty;var F=(s,e)=>()=>(e||s((e={exports:{}}).exports,e),e.exports),fi=(s,e)=>{for(var t in e)ie(s,t,{get:e[t],enumerable:!0})},Mt=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of di(e))!pi.call(s,r)&&r!==t&&ie(s,r,{get:()=>e[r],enumerable:!(i=ci(e,r))||i.enumerable});return s};var Ot=(s,e,t)=>(t=s!=null?hi(ui(s)):{},Mt(e||!s||!s.__esModule?ie(t,"default",{value:s,enumerable:!0}):t,s)),mi=s=>Mt(ie({},"__esModule",{value:!0}),s);var Kt=F((qr,Gt)=>{var Ut=!1,j,ye,xe,ae,le,Xt,he,Se,Ee,Me,Qt,Oe,Ie,qt,Yt;function O(){if(!Ut){Ut=!0;var s=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(s),t=/(Mac OS X)|(Windows)|(Linux)/.exec(s);if(Oe=/\b(iPhone|iP[ao]d)/.exec(s),Ie=/\b(iP[ao]d)/.exec(s),Me=/Android/i.exec(s),qt=/FBAN\/\w+;/i.exec(s),Yt=/Mobile/i.exec(s),Qt=!!/Win64/.exec(s),e){j=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,j&&document&&document.documentMode&&(j=document.documentMode);var i=/(?:Trident\/(\d+.\d+))/.exec(s);Xt=i?parseFloat(i[1])+4:j,ye=e[2]?parseFloat(e[2]):NaN,xe=e[3]?parseFloat(e[3]):NaN,ae=e[4]?parseFloat(e[4]):NaN,ae?(e=/(?:Chrome\/(\d+\.\d+))/.exec(s),le=e&&e[1]?parseFloat(e[1]):NaN):le=NaN}else j=ye=xe=le=ae=NaN;if(t){if(t[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(s);he=r?parseFloat(r[1].replace("_",".")):!0}else he=!1;Se=!!t[2],Ee=!!t[3]}else he=Se=Ee=!1}}var Te={ie:function(){return O()||j},ieCompatibilityMode:function(){return O()||Xt>j},ie64:function(){return Te.ie()&&Qt},firefox:function(){return O()||ye},opera:function(){return O()||xe},webkit:function(){return O()||ae},safari:function(){return Te.webkit()},chrome:function(){return O()||le},windows:function(){return O()||Se},osx:function(){return O()||he},linux:function(){return O()||Ee},iphone:function(){return O()||Oe},mobile:function(){return O()||Oe||Ie||Me||Yt},nativeApp:function(){return O()||qt},android:function(){return O()||Me},ipad:function(){return O()||Ie}};Gt.exports=Te});var Zt=F((Yr,Jt)=>{"use strict";var ce=!!(typeof window!="undefined"&&window.document&&window.document.createElement),zi={canUseDOM:ce,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:ce&&!!(window.addEventListener||window.attachEvent),canUseViewport:ce&&!!window.screen,isInWorker:!ce};Jt.exports=zi});var is=F((Gr,ss)=>{"use strict";var es=Zt(),ts;es.canUseDOM&&(ts=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Ni(s,e){if(!es.canUseDOM||e&&!("addEventListener"in document))return!1;var t="on"+s,i=t in document;if(!i){var r=document.createElement("div");r.setAttribute(t,"return;"),i=typeof r[t]=="function"}return!i&&ts&&s==="wheel"&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}ss.exports=Ni});var hs=F((Kr,ls)=>{"use strict";var Li=Kt(),Ai=is(),rs=10,ns=40,os=800;function as(s){var e=0,t=0,i=0,r=0;return"detail"in s&&(t=s.detail),"wheelDelta"in s&&(t=-s.wheelDelta/120),"wheelDeltaY"in s&&(t=-s.wheelDeltaY/120),"wheelDeltaX"in s&&(e=-s.wheelDeltaX/120),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(e=t,t=0),i=e*rs,r=t*rs,"deltaY"in s&&(r=s.deltaY),"deltaX"in s&&(i=s.deltaX),(i||r)&&s.deltaMode&&(s.deltaMode==1?(i*=ns,r*=ns):(i*=os,r*=os)),i&&!e&&(e=i<1?-1:1),r&&!t&&(t=r<1?-1:1),{spinX:e,spinY:t,pixelX:i,pixelY:r}}as.getEventType=function(){return Li.firefox()?"DOMMouseScroll":Ai("wheel")?"wheel":"mousewheel"};ls.exports=as});var ds=F((Jr,cs)=>{cs.exports=hs()});var Js=F((ee,G)=>{var Yi=1/0,js=9007199254740991,Gi=4294967295,Ki="[object Function]",Ji="[object GeneratorFunction]",Zi="[object RegExp]",er="[object Symbol]",tr=/^(?:0|[1-9]\d*)$/,wt="\\ud800-\\udfff",Ws="\\u0300-\\u036f\\ufe20-\\ufe23",Bs="\\u20d0-\\u20f0",Vs="\\ufe0e\\ufe0f",sr="["+wt+"]",vt="["+Ws+Bs+"]",bt="\\ud83c[\\udffb-\\udfff]",ir="(?:"+vt+"|"+bt+")",$s="[^"+wt+"]",Fs="(?:\\ud83c[\\udde6-\\uddff]){2}",Hs="[\\ud800-\\udbff][\\udc00-\\udfff]",Us="\\u200d",Xs=ir+"?",Qs="["+Vs+"]?",rr="(?:"+Us+"(?:"+[$s,Fs,Hs].join("|")+")"+Qs+Xs+")*",nr=Qs+Xs+rr,or="(?:"+[$s+vt+"?",vt,Fs,Hs,sr].join("|")+")",ar=RegExp(bt+"(?="+bt+")|"+or+nr,"g"),lr=RegExp("["+Us+wt+Ws+Bs+Vs+"]"),qs=typeof global=="object"&&global&&global.Object===Object&&global,hr=typeof self=="object"&&self&&self.Object===Object&&self,cr=qs||hr||Function("return this")(),Ys=typeof ee=="object"&&ee&&!ee.nodeType&&ee,Ps=Ys&&typeof G=="object"&&G&&!G.nodeType&&G,dr=Ps&&Ps.exports===Ys,zs=dr&&qs.process,Ns=function(){try{return zs&&zs.binding("util")}catch(s){}}(),Ls=Ns&&Ns.isRegExp;function ur(s){return s.split("")}function pr(s){return function(e){return s(e)}}function Gs(s){return lr.test(s)}function fr(s){return Gs(s)?mr(s):ur(s)}function mr(s){return s.match(ar)||[]}var _r=Object.prototype,yt=_r.toString,As=cr.Symbol,Ds=As?As.prototype:void 0,Rs=Ds?Ds.toString:void 0;function gr(s){return xt(s)&&yt.call(s)==Zi}function vr(s,e,t){var i=-1,r=s.length;e<0&&(e=-e>r?0:r+e),t=t>r?r:t,t<0&&(t+=r),r=e>t?0:t-e>>>0,e>>>=0;for(var n=Array(r);++i<r;)n[i]=s[i+e];return n}function Ks(s){if(typeof s=="string")return s;if(Tr(s))return Rs?Rs.call(s):"";var e=s+"";return e=="0"&&1/s==-Yi?"-0":e}function br(s,e,t){var i=s.length;return t=t===void 0?i:t,!e&&t>=i?s:vr(s,e,t)}function wr(s,e){return e=e==null?js:e,!!e&&(typeof s=="number"||tr.test(s))&&s>-1&&s%1==0&&s<e}function yr(s,e,t){if(!xt(t))return!1;var i=typeof e;return(i=="number"?Sr(t)&&wr(e,t.length):i=="string"&&e in t)?xr(t[e],s):!1}function xr(s,e){return s===e||s!==s&&e!==e}function Sr(s){return s!=null&&Mr(s.length)&&!Er(s)}function Er(s){var e=xt(s)?yt.call(s):"";return e==Ki||e==Ji}function Mr(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=js}function xt(s){var e=typeof s;return!!s&&(e=="object"||e=="function")}function Or(s){return!!s&&typeof s=="object"}var Ir=Ls?pr(Ls):gr;function Tr(s){return typeof s=="symbol"||Or(s)&&yt.call(s)==er}function Cr(s){return s==null?"":Ks(s)}function kr(s,e,t){return t&&typeof t!="number"&&yr(s,e,t)&&(e=t=void 0),t=t===void 0?Gi:t>>>0,t?(s=Cr(s),s&&(typeof e=="string"||e!=null&&!Ir(e))&&(e=Ks(e),!e&&Gs(s))?br(fr(s),0,t):s.split(e,t)):[]}G.exports=kr});var zr={};fi(zr,{Callbacks:()=>L,Canvas:()=>U,CanvasMedia:()=>lt,Cursor:()=>ht,EaseInBack:()=>Pe,EaseInBounce:()=>ze,EaseInCirc:()=>Ne,EaseInCubic:()=>Le,EaseInElastic:()=>Ae,EaseInExpo:()=>De,EaseInOutBack:()=>Re,EaseInOutBounce:()=>je,EaseInOutCirc:()=>We,EaseInOutCubic:()=>Be,EaseInOutElastic:()=>Ve,EaseInOutExpo:()=>$e,EaseInOutQuad:()=>Fe,EaseInOutQuart:()=>He,EaseInOutQuint:()=>Ue,EaseInOutSine:()=>Xe,EaseInQuad:()=>Qe,EaseInQuart:()=>qe,EaseInQuint:()=>Ye,EaseInSine:()=>Ge,EaseOutBack:()=>Ke,EaseOutBounce:()=>R,EaseOutCirc:()=>Je,EaseOutCubic:()=>W,EaseOutElastic:()=>Ze,EaseOutExpo:()=>et,EaseOutQuad:()=>tt,EaseOutQuart:()=>st,EaseOutQuint:()=>it,EaseOutSine:()=>rt,InView:()=>ct,Marquee:()=>dt,Module:()=>v,Pointers:()=>J,Preloader:()=>Z,ProgressPreloader:()=>ut,Raf:()=>k,Responsive:()=>at,ScrollProgress:()=>ft,Scrollbar:()=>pt,Snap:()=>gt,SnapSlide:()=>Y,SplitText:()=>St,Swipe:()=>V,Timeline:()=>P,addEventListener:()=>_,app:()=>Pr,clamp:()=>b,clampScope:()=>de,closest:()=>oe,damp:()=>ke,easing:()=>nt,inRange:()=>ot,initVevet:()=>m,lerp:()=>T,loop:()=>C,normalizeWheel:()=>Ce,onResize:()=>I,presetCssVars:()=>_s,scoped:()=>A,toPixels:()=>M,uid:()=>K,vevet:()=>li});var It=function(s,e,t){if(t||arguments.length===2)for(var i=0,r=e.length,n;i<r;i++)(n||!(i in e))&&(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return s.concat(n||Array.prototype.slice.call(e))},_i=function(){function s(e,t,i){this.name=e,this.version=t,this.os=i,this.type="browser"}return s}();var gi=function(){function s(e){this.version=e,this.type="node",this.name="node",this.os=process.platform}return s}();var vi=function(){function s(e,t,i,r){this.name=e,this.version=t,this.os=i,this.bot=r,this.type="bot-device"}return s}();var bi=function(){function s(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return s}();var wi=function(){function s(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return s}();var yi=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,xi=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Tt=3,Si=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",yi]],Ct=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Pt(s){return s?kt(s):typeof document=="undefined"&&typeof navigator!="undefined"&&navigator.product==="ReactNative"?new wi:typeof navigator!="undefined"?kt(navigator.userAgent):Oi()}function Ei(s){return s!==""&&Si.reduce(function(e,t){var i=t[0],r=t[1];if(e)return e;var n=r.exec(s);return!!n&&[i,n]},!1)}function kt(s){var e=Ei(s);if(!e)return null;var t=e[0],i=e[1];if(t==="searchbot")return new bi;var r=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);r?r.length<Tt&&(r=It(It([],r,!0),Ii(Tt-r.length),!0)):r=[];var n=r.join("."),o=Mi(s),a=xi.exec(s);return a&&a[1]?new vi(t,n,o,a[1]):new _i(t,n,o)}function Mi(s){for(var e=0,t=Ct.length;e<t;e++){var i=Ct[e],r=i[0],n=i[1],o=n.exec(s);if(o)return r}return null}function Oi(){var s=typeof process!="undefined"&&process.version;return s?new gi(process.version.slice(1)):null}function Ii(s){for(var e=[],t=0;t<s;t++)e.push("0");return e}var be=/iPhone/i,zt=/iPod/i,Nt=/iPad/i,Lt=/\biOS-universal(?:.+)Mac\b/i,we=/\bAndroid(?:.+)Mobile\b/i,At=/Android/i,H=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,re=/Silk/i,N=/Windows Phone/i,Dt=/\bWindows(?:.+)ARM\b/i,Rt=/BlackBerry/i,jt=/BB10/i,Wt=/Opera Mini/i,Bt=/\b(CriOS|Chrome)(?:.+)Mobile/i,Vt=/Mobile(?:.+)Firefox\b/i,$t=function(s){return typeof s!="undefined"&&s.platform==="MacIntel"&&typeof s.maxTouchPoints=="number"&&s.maxTouchPoints>1&&typeof MSStream=="undefined"};function Ti(s){return function(e){return e.test(s)}}function ne(s){var e={userAgent:"",platform:"",maxTouchPoints:0};!s&&typeof navigator!="undefined"?e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof s=="string"?e.userAgent=s:s&&s.userAgent&&(e={userAgent:s.userAgent,platform:s.platform,maxTouchPoints:s.maxTouchPoints||0});var t=e.userAgent,i=t.split("[FBAN");typeof i[1]!="undefined"&&(t=i[0]),i=t.split("Twitter"),typeof i[1]!="undefined"&&(t=i[0]);var r=Ti(t),n={apple:{phone:r(be)&&!r(N),ipod:r(zt),tablet:!r(be)&&(r(Nt)||$t(e))&&!r(N),universal:r(Lt),device:(r(be)||r(zt)||r(Nt)||r(Lt)||$t(e))&&!r(N)},amazon:{phone:r(H),tablet:!r(H)&&r(re),device:r(H)||r(re)},android:{phone:!r(N)&&r(H)||!r(N)&&r(we),tablet:!r(N)&&!r(H)&&!r(we)&&(r(re)||r(At)),device:!r(N)&&(r(H)||r(re)||r(we)||r(At))||r(/\bokhttp\b/i)},windows:{phone:r(N),tablet:r(Dt),device:r(N)||r(Dt)},other:{blackberry:r(Rt),blackberry10:r(jt),opera:r(Wt),firefox:r(Vt),chrome:r(Bt),device:r(Rt)||r(jt)||r(Wt)||r(Vt)||r(Bt)},any:!1,phone:!1,tablet:!1};return n.any=n.apple.device||n.android.device||n.windows.device||n.other.device,n.phone=n.apple.phone||n.android.phone||n.windows.phone,n.tablet=n.apple.tablet||n.android.tablet||n.windows.tablet,n}var Ft={version:"5.1.3"};function oe(s,e){return!Array.isArray(e)||e.length===0?s:e.reduce((t,i)=>Math.abs(i-s)<Math.abs(t-s)?i:t)}var ki=typeof window!="undefined";function M(s){if(!ki)return 0;let e=m();if(window.vevet5_toPixelsCache||(window.vevet5_toPixelsCache=new Map,e.onResize("any",()=>{window.vevet5_toPixelsCache.clear()},{name:"toPixels"})),window.vevet5_toPixelsCache.has(s))return window.vevet5_toPixelsCache.get(s);let t=0,i=parseFloat(`${s}`);return typeof s=="number"?t=s:Number.isNaN(i)?t=0:s.includes("rem")?t=i*e.rem:s.includes("vw")?t=i*e.vw:s.includes("vh")?t=i*e.vh:s.includes("svh")?t=i*e.svh:s.includes("px")&&(t=i),window.vevet5_toPixelsCache.set(s,t),t}var Ht=0;function K(s="id"){return Ht+=1,`${s}_${Ht}`}var Pi=function(s,e){var t={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&e.indexOf(i)<0&&(t[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(s);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(s,i[r])&&(t[i[r]]=s[i[r]]);return t},L=class{constructor(){this._list=[]}get list(){return this._list}add(e,t,i={}){let r=K("callback");return this._list.push(Object.assign(Object.assign({},i),{id:r,target:e,action:t})),{id:r,remove:()=>this.remove(r)}}on(e,t,i={}){let r=this.add(e,t,i);return()=>{r.remove()}}remove(e){return this._remove(e)}_remove(e,t=!1){return this._list=this._list.filter(r=>!!(r.id!==e||r.protected&&!t)),!this._list.some(({id:r})=>r===e)}_removeAll(){for(;this._list.length>0;)this._remove(this._list[0].id,!0)}_callAction(e,t){var{id:i,timeout:r,action:n}=e,o=Pi(e,["id","timeout","action"]);r?setTimeout(()=>n(t),r):n(t),o.once&&this._remove(i,!0)}emit(e,t){this._list.forEach(i=>{i.target===e&&this._callAction(i,t)})}destroy(){this._removeAll()}};function _(s,e,t,i){return s.addEventListener(e,t,i),()=>{s.removeEventListener(e,t,i)}}var us=Ot(ds());function Ce(s){return(0,us.default)(s)}function I({callback:s,element:e,viewportTarget:t="width",resizeDebounce:i=0,name:r}){let n=m(),o,a,h=!0,l,d=c=>{o&&(clearTimeout(o),o=void 0),o=setTimeout(()=>s(),c!=null?c:i)};return e&&(a=new ResizeObserver(()=>{if(h){h=!1;return}d(n.props.resizeDebounce+i)}),(Array.isArray(e)?e:[e]).forEach(c=>{a==null||a.observe(c)})),t&&(l=n.onResize(t,()=>d(),{name:r})),{remove:()=>{o&&clearTimeout(o),a==null||a.disconnect(),l==null||l()},resize:()=>s(),debounceResize:()=>d()}}function ps({prefix:s,applyClassNames:e}){let t=new L,i=!1;document.readyState==="complete"?setTimeout(()=>r(),0):_(window,"load",()=>r());function r(){let o=document.documentElement,{body:a}=document;i=!0,e&&(o.classList.remove(`${s}loading`),a.classList.remove(`${s}loading`),o.classList.add(`${s}loaded`)),t.emit("loaded",void 0)}function n(o){return i?(o(),()=>{}):t.on("loaded",()=>o())}return{onLoad:n,getIsLoaded:()=>i}}function fs({prefix:s,props:e,isMobile:t}){let i=document.documentElement,r=document.getElementById("vevet_css_preset");r||(r=document.createElement("style"),r.id="vevet_css_preset",document.body.appendChild(r));let n=window.matchMedia(`(min-width: ${e.md+.001}px)`),o=window.matchMedia(`(min-width: ${e.sm+.001}px) and (max-width: ${e.md}px)`),a=window.matchMedia(`(max-width: ${e.sm}px)`),h=new L,l={width:0,height:0,sHeight:0,vw:0,vh:0,svh:0,scrollbarWidth:0,rem:16,landscape:!1,portrait:!1,dpr:window.devicePixelRatio,lowerDpr:window.devicePixelRatio,sm:!0,md:!1,lg:!1};u(),f(),g();let d;function c(){d&&(clearTimeout(d),d=void 0),e.resizeDebounce?d=setTimeout(()=>w(),e.resizeDebounce):w()}_(window,"resize",()=>c());let p=new ResizeObserver(()=>c());p.observe(document.documentElement),p.observe(document.body);function w(){let{width:y,height:x}=l;u(),f(),g();let{width:S,height:z}=l;h.emit("trigger",void 0),(S!==y||z!==x)&&h.emit("any",void 0),S!==y&&z===x&&h.emit("onlyWidth",void 0),z!==x&&S===y&&h.emit("onlyHeight",void 0),S!==y&&z!==x&&h.emit("both",void 0),S!==y&&h.emit("width",void 0),z!==x&&h.emit("height",void 0)}function u(){let{width:y}=l,x=document.documentElement,S=getComputedStyle(x);l.width=window.innerWidth,l.height=window.innerHeight,l.scrollbarWidth=window.innerWidth-x.clientWidth,l.vw=l.width/100,l.vh=l.height/100,l.rem=parseFloat(S.fontSize),l.landscape=l.width>l.height,l.portrait=l.width<l.height,l.dpr=window.devicePixelRatio,l.lowerDpr=t?Math.min(l.dpr,2):1,l.sm=!1,l.md=!1,l.lg=!1,a.matches?l.sm=!0:o.matches?l.md=!0:n.matches&&(l.lg=!0),(y!==l.width||!l.sHeight||!t)&&(l.sHeight=x.clientHeight,l.svh=l.sHeight/100)}function f(){e.applyClassNames&&(i.classList.toggle(`${s}lg`,l.lg),i.classList.toggle(`${s}md`,l.md),i.classList.toggle(`${s}sm`,l.sm),i.classList.toggle(`${s}landscape`,l.landscape),i.classList.toggle(`${s}portrait`,l.portrait))}function g(){r.innerHTML=`
1
+ "use strict";var Vevet=(()=>{var Qs=Object.create;var Ee=Object.defineProperty;var Ks=Object.getOwnPropertyDescriptor;var Gs=Object.getOwnPropertyNames;var Js=Object.getPrototypeOf,Zs=Object.prototype.hasOwnProperty;var ne=(i,e)=>()=>(e||i((e={exports:{}}).exports,e),e.exports),er=(i,e)=>{for(var t in e)Ee(i,t,{get:e[t],enumerable:!0})},ei=(i,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Gs(e))!Zs.call(i,r)&&r!==t&&Ee(i,r,{get:()=>e[r],enumerable:!(s=Ks(e,r))||s.enumerable});return i};var ti=(i,e,t)=>(t=i!=null?Qs(Js(i)):{},ei(e||!i||!i.__esModule?Ee(t,"default",{value:i,enumerable:!0}):t,i)),tr=i=>ei(Ee({},"__esModule",{value:!0}),i);var Ci=ne((ho,Pi)=>{var Ei=!1,Z,it,st,Ae,De,Oi,ze,rt,nt,ot,Mi,at,lt,Ii,Ti;function k(){if(!Ei){Ei=!0;var i=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(i),t=/(Mac OS X)|(Windows)|(Linux)/.exec(i);if(at=/\b(iPhone|iP[ao]d)/.exec(i),lt=/\b(iP[ao]d)/.exec(i),ot=/Android/i.exec(i),Ii=/FBAN\/\w+;/i.exec(i),Ti=/Mobile/i.exec(i),Mi=!!/Win64/.exec(i),e){Z=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,Z&&document&&document.documentMode&&(Z=document.documentMode);var s=/(?:Trident\/(\d+.\d+))/.exec(i);Oi=s?parseFloat(s[1])+4:Z,it=e[2]?parseFloat(e[2]):NaN,st=e[3]?parseFloat(e[3]):NaN,Ae=e[4]?parseFloat(e[4]):NaN,Ae?(e=/(?:Chrome\/(\d+\.\d+))/.exec(i),De=e&&e[1]?parseFloat(e[1]):NaN):De=NaN}else Z=it=st=De=Ae=NaN;if(t){if(t[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(i);ze=r?parseFloat(r[1].replace("_",".")):!0}else ze=!1;rt=!!t[2],nt=!!t[3]}else ze=rt=nt=!1}}var ct={ie:function(){return k()||Z},ieCompatibilityMode:function(){return k()||Oi>Z},ie64:function(){return ct.ie()&&Mi},firefox:function(){return k()||it},opera:function(){return k()||st},webkit:function(){return k()||Ae},safari:function(){return ct.webkit()},chrome:function(){return k()||De},windows:function(){return k()||rt},osx:function(){return k()||ze},linux:function(){return k()||nt},iphone:function(){return k()||at},mobile:function(){return k()||at||lt||ot||Ti},nativeApp:function(){return k()||Ii},android:function(){return k()||ot},ipad:function(){return k()||lt}};Pi.exports=ct});var Di=ne((po,Ai)=>{"use strict";var Re=!!(typeof window!="undefined"&&window.document&&window.document.createElement),zr={canUseDOM:Re,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:Re&&!!(window.addEventListener||window.attachEvent),canUseViewport:Re&&!!window.screen,isInWorker:!Re};Ai.exports=zr});var ki=ne((uo,ji)=>{"use strict";var zi=Di(),Ri;zi.canUseDOM&&(Ri=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Rr(i,e){if(!zi.canUseDOM||e&&!("addEventListener"in document))return!1;var t="on"+i,s=t in document;if(!s){var r=document.createElement("div");r.setAttribute(t,"return;"),s=typeof r[t]=="function"}return!s&&Ri&&i==="wheel"&&(s=document.implementation.hasFeature("Events.wheel","3.0")),s}ji.exports=Rr});var Li=ne((fo,$i)=>{"use strict";var jr=Ci(),kr=ki(),Ni=10,Bi=40,Wi=800;function Vi(i){var e=0,t=0,s=0,r=0;return"detail"in i&&(t=i.detail),"wheelDelta"in i&&(t=-i.wheelDelta/120),"wheelDeltaY"in i&&(t=-i.wheelDeltaY/120),"wheelDeltaX"in i&&(e=-i.wheelDeltaX/120),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(e=t,t=0),s=e*Ni,r=t*Ni,"deltaY"in i&&(r=i.deltaY),"deltaX"in i&&(s=i.deltaX),(s||r)&&i.deltaMode&&(i.deltaMode==1?(s*=Bi,r*=Bi):(s*=Wi,r*=Wi)),s&&!e&&(e=s<1?-1:1),r&&!t&&(t=r<1?-1:1),{spinX:e,spinY:t,pixelX:s,pixelY:r}}Vi.getEventType=function(){return jr.firefox()?"DOMMouseScroll":kr("wheel")?"wheel":"mousewheel"};$i.exports=Vi});var Hi=ne((mo,Fi)=>{Fi.exports=Li()});var Bs=ne((Se,fe)=>{var Zr=1/0,Es=9007199254740991,en=4294967295,tn="[object Function]",sn="[object GeneratorFunction]",rn="[object RegExp]",nn="[object Symbol]",on=/^(?:0|[1-9]\d*)$/,Kt="\\ud800-\\udfff",Os="\\u0300-\\u036f\\ufe20-\\ufe23",Ms="\\u20d0-\\u20f0",Is="\\ufe0e\\ufe0f",an="["+Kt+"]",Yt="["+Os+Ms+"]",Qt="\\ud83c[\\udffb-\\udfff]",ln="(?:"+Yt+"|"+Qt+")",Ts="[^"+Kt+"]",Ps="(?:\\ud83c[\\udde6-\\uddff]){2}",Cs="[\\ud800-\\udbff][\\udc00-\\udfff]",As="\\u200d",Ds=ln+"?",zs="["+Is+"]?",cn="(?:"+As+"(?:"+[Ts,Ps,Cs].join("|")+")"+zs+Ds+")*",hn=zs+Ds+cn,dn="(?:"+[Ts+Yt+"?",Yt,Ps,Cs,an].join("|")+")",pn=RegExp(Qt+"(?="+Qt+")|"+dn+hn,"g"),un=RegExp("["+As+Kt+Os+Ms+Is+"]"),Rs=typeof global=="object"&&global&&global.Object===Object&&global,fn=typeof self=="object"&&self&&self.Object===Object&&self,mn=Rs||fn||Function("return this")(),js=typeof Se=="object"&&Se&&!Se.nodeType&&Se,gs=js&&typeof fe=="object"&&fe&&!fe.nodeType&&fe,_n=gs&&gs.exports===js,vs=_n&&Rs.process,bs=function(){try{return vs&&vs.binding("util")}catch(i){}}(),ws=bs&&bs.isRegExp;function gn(i){return i.split("")}function vn(i){return function(e){return i(e)}}function ks(i){return un.test(i)}function bn(i){return ks(i)?wn(i):gn(i)}function wn(i){return i.match(pn)||[]}var yn=Object.prototype,Gt=yn.toString,ys=mn.Symbol,xs=ys?ys.prototype:void 0,Ss=xs?xs.toString:void 0;function xn(i){return Jt(i)&&Gt.call(i)==rn}function Sn(i,e,t){var s=-1,r=i.length;e<0&&(e=-e>r?0:r+e),t=t>r?r:t,t<0&&(t+=r),r=e>t?0:t-e>>>0,e>>>=0;for(var n=Array(r);++s<r;)n[s]=i[s+e];return n}function Ns(i){if(typeof i=="string")return i;if(zn(i))return Ss?Ss.call(i):"";var e=i+"";return e=="0"&&1/i==-Zr?"-0":e}function En(i,e,t){var s=i.length;return t=t===void 0?s:t,!e&&t>=s?i:Sn(i,e,t)}function On(i,e){return e=e==null?Es:e,!!e&&(typeof i=="number"||on.test(i))&&i>-1&&i%1==0&&i<e}function Mn(i,e,t){if(!Jt(t))return!1;var s=typeof e;return(s=="number"?Tn(t)&&On(e,t.length):s=="string"&&e in t)?In(t[e],i):!1}function In(i,e){return i===e||i!==i&&e!==e}function Tn(i){return i!=null&&Cn(i.length)&&!Pn(i)}function Pn(i){var e=Jt(i)?Gt.call(i):"";return e==tn||e==sn}function Cn(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=Es}function Jt(i){var e=typeof i;return!!i&&(e=="object"||e=="function")}function An(i){return!!i&&typeof i=="object"}var Dn=ws?vn(ws):xn;function zn(i){return typeof i=="symbol"||An(i)&&Gt.call(i)==nn}function Rn(i){return i==null?"":Ns(i)}function jn(i,e,t){return t&&typeof t!="number"&&Mn(i,e,t)&&(e=t=void 0),t=t===void 0?en:t>>>0,t?(i=Rn(i),i&&(typeof e=="string"||e!=null&&!Dn(e))&&(e=Ns(e),!e&&ks(i))?En(bn(i),0,t):i.split(e,t)):[]}fe.exports=jn});var Wn={};er(Wn,{Callbacks:()=>j,Canvas:()=>J,CanvasMedia:()=>ge,Cursor:()=>ce,EaseInBack:()=>pt,EaseInBounce:()=>ut,EaseInCirc:()=>ft,EaseInCubic:()=>mt,EaseInElastic:()=>_t,EaseInExpo:()=>gt,EaseInOutBack:()=>vt,EaseInOutBounce:()=>bt,EaseInOutCirc:()=>wt,EaseInOutCubic:()=>yt,EaseInOutElastic:()=>xt,EaseInOutExpo:()=>St,EaseInOutQuad:()=>Et,EaseInOutQuart:()=>Ot,EaseInOutQuint:()=>Mt,EaseInOutSine:()=>It,EaseInQuad:()=>Tt,EaseInQuart:()=>Pt,EaseInQuint:()=>Ct,EaseInSine:()=>At,EaseOutBack:()=>Dt,EaseOutBounce:()=>G,EaseOutCirc:()=>zt,EaseOutCubic:()=>ee,EaseOutElastic:()=>Rt,EaseOutExpo:()=>jt,EaseOutQuad:()=>kt,EaseOutQuart:()=>Nt,EaseOutQuint:()=>Bt,EaseOutSine:()=>Wt,InView:()=>ve,Marquee:()=>be,Module:()=>y,Pointers:()=>we,Preloader:()=>ye,ProgressPreloader:()=>xe,Raf:()=>F,Responsive:()=>Ne,ScrollProgress:()=>Le,Scrollbar:()=>$e,Snap:()=>ue,SnapSlide:()=>pe,SplitText:()=>Je,Swipe:()=>ie,Timeline:()=>D,addEventListener:()=>w,app:()=>Bn,clamp:()=>S,clampScope:()=>je,closest:()=>Ce,damp:()=>dt,easing:()=>Vt,inRange:()=>$t,initVevet:()=>v,lerp:()=>L,loop:()=>U,normalizeWheel:()=>ht,onResize:()=>$,presetCssVars:()=>Qi,scoped:()=>Y,toPixels:()=>R,uid:()=>me,vevet:()=>Ys});var ii=function(i,e,t){if(t||arguments.length===2)for(var s=0,r=e.length,n;s<r;s++)(n||!(s in e))&&(n||(n=Array.prototype.slice.call(e,0,s)),n[s]=e[s]);return i.concat(n||Array.prototype.slice.call(e))},ir=function(){function i(e,t,s){this.name=e,this.version=t,this.os=s,this.type="browser"}return i}();var sr=function(){function i(e){this.version=e,this.type="node",this.name="node",this.os=process.platform}return i}();var rr=function(){function i(e,t,s,r){this.name=e,this.version=t,this.os=s,this.bot=r,this.type="bot-device"}return i}();var nr=function(){function i(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return i}();var or=function(){function i(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return i}();var ar=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,lr=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,si=3,cr=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",ar]],ri=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function oi(i){return i?ni(i):typeof document=="undefined"&&typeof navigator!="undefined"&&navigator.product==="ReactNative"?new or:typeof navigator!="undefined"?ni(navigator.userAgent):pr()}function hr(i){return i!==""&&cr.reduce(function(e,t){var s=t[0],r=t[1];if(e)return e;var n=r.exec(i);return!!n&&[s,n]},!1)}function ni(i){var e=hr(i);if(!e)return null;var t=e[0],s=e[1];if(t==="searchbot")return new nr;var r=s[1]&&s[1].split(".").join("_").split("_").slice(0,3);r?r.length<si&&(r=ii(ii([],r,!0),ur(si-r.length),!0)):r=[];var n=r.join("."),o=dr(i),a=lr.exec(i);return a&&a[1]?new rr(t,n,o,a[1]):new ir(t,n,o)}function dr(i){for(var e=0,t=ri.length;e<t;e++){var s=ri[e],r=s[0],n=s[1],o=n.exec(i);if(o)return r}return null}function pr(){var i=typeof process!="undefined"&&process.version;return i?new sr(process.version.slice(1)):null}function ur(i){for(var e=[],t=0;t<i;t++)e.push("0");return e}var Ze=/iPhone/i,ai=/iPod/i,li=/iPad/i,ci=/\biOS-universal(?:.+)Mac\b/i,et=/\bAndroid(?:.+)Mobile\b/i,hi=/Android/i,oe=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Oe=/Silk/i,q=/Windows Phone/i,di=/\bWindows(?:.+)ARM\b/i,pi=/BlackBerry/i,ui=/BB10/i,fi=/Opera Mini/i,mi=/\b(CriOS|Chrome)(?:.+)Mobile/i,_i=/Mobile(?:.+)Firefox\b/i,gi=function(i){return typeof i!="undefined"&&i.platform==="MacIntel"&&typeof i.maxTouchPoints=="number"&&i.maxTouchPoints>1&&typeof MSStream=="undefined"};function fr(i){return function(e){return e.test(i)}}function Me(i){var e={userAgent:"",platform:"",maxTouchPoints:0};!i&&typeof navigator!="undefined"?e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof i=="string"?e.userAgent=i:i&&i.userAgent&&(e={userAgent:i.userAgent,platform:i.platform,maxTouchPoints:i.maxTouchPoints||0});var t=e.userAgent,s=t.split("[FBAN");typeof s[1]!="undefined"&&(t=s[0]),s=t.split("Twitter"),typeof s[1]!="undefined"&&(t=s[0]);var r=fr(t),n={apple:{phone:r(Ze)&&!r(q),ipod:r(ai),tablet:!r(Ze)&&(r(li)||gi(e))&&!r(q),universal:r(ci),device:(r(Ze)||r(ai)||r(li)||r(ci)||gi(e))&&!r(q)},amazon:{phone:r(oe),tablet:!r(oe)&&r(Oe),device:r(oe)||r(Oe)},android:{phone:!r(q)&&r(oe)||!r(q)&&r(et),tablet:!r(q)&&!r(oe)&&!r(et)&&(r(Oe)||r(hi)),device:!r(q)&&(r(oe)||r(Oe)||r(et)||r(hi))||r(/\bokhttp\b/i)},windows:{phone:r(q),tablet:r(di),device:r(q)||r(di)},other:{blackberry:r(pi),blackberry10:r(ui),opera:r(fi),firefox:r(_i),chrome:r(mi),device:r(pi)||r(ui)||r(fi)||r(_i)||r(mi)},any:!1,phone:!1,tablet:!1};return n.any=n.apple.device||n.android.device||n.windows.device||n.other.device,n.phone=n.apple.phone||n.android.phone||n.windows.phone,n.tablet=n.apple.tablet||n.android.tablet||n.windows.tablet,n}var mr=Object.defineProperty,_r=Object.defineProperties,gr=Object.getOwnPropertyDescriptors,vi=Object.getOwnPropertySymbols,vr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable,bi=(i,e,t)=>e in i?mr(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ie=(i,e)=>{for(var t in e||(e={}))vr.call(e,t)&&bi(i,t,e[t]);if(vi)for(var t of vi(e))br.call(e,t)&&bi(i,t,e[t]);return i},Te=(i,e)=>_r(i,gr(e));var wr="Window is not available and no user agent was provided.",yr=()=>{var i,e;if(typeof window!="undefined"){let t=((i=window==null?void 0:window.navigator)==null?void 0:i.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.vendor)||(window==null?void 0:window.opera);if(t)return t}return console.error(wr),""},Pe={isInApp:!1,appKey:void 0,appName:void 0,skipped:!1},xr=i=>i.match(/(iPhone|iPad|iPod|Macintosh)/)!==null,Sr=({skip:i,appKey:e,ua:t})=>{if(!i||i.length===0)return!1;let s=xr(t);return i.some(({appKey:r,platform:n})=>e===r&&(!n||s&&n==="apple"||!s&&n==="android"))},Xn=new RegExp(/Mozilla\/5\.0 \([^\)]+\) AppleWebKit\/[^\s]+ \(KHTML, like Gecko\) Version\/[^\s]+ (Mobile\/[^\s]+ )?Safari\/[^\s]+$/);var Er=()=>"TelegramWebview"in window||"TelegramWebviewProxy"in window||"TelegramWebviewProxyProto"in window,wi={telegram:{name:"Telegram"}},Or=()=>{if(typeof window!="undefined"&&Er())return"telegram"},qn=Object.keys(wi),tt={messenger:{regex:/(\bFB[\w_]+\/(Messenger))|(^(?!.*\buseragents)(?!.*\bIABMV).*(FB_IAB|FBAN).*)/i,name:"Facebook Messenger"},instagram:{regex:/\bInstagram/i,name:"Instagram"},facebook:{regex:/\bFB[\w_]+\/|\bFacebook/i,name:"Facebook"},twitter:{regex:/\bTwitter/i,name:"Twitter"},line:{regex:/\bLine\//i,name:"Line"},wechat:{regex:/\bMicroMessenger\//i,name:"WeChat"},threads:{regex:/\bBarcelona/i,name:"Threads"},tiktok:{regex:/musical_ly|Bytedance/i,name:"TikTok"},snapchat:{regex:/Snapchat/i,name:"Snapchat"},linkedin:{regex:/LinkedInApp/i,name:"LinkedIn"},gsa:{regex:/GSA/i,name:"Google Search App"},whatsapp:{regex:/\b(WAiOS|WA4A)\//i,name:"WhatsApp"}},Mr=Object.keys(tt),Ir=i=>Mr.find(e=>tt[e].regex.test(i)),Tr=["WebView","(iPhone|iPod|iPad)(?!.*Safari/)","Android.*wv\\)"],Pr=new RegExp(`${Tr.map(i=>`(${i})`).join("|")}`,"i");var Cr=(i={})=>{var e,t;let{skip:s,ua:r=""}=i,n=r||yr();if(!n)return Te(Ie({},Pe),{ua:n});let o=c=>Sr({skip:s,appKey:c,ua:n}),a=Ir(n);if(a||n.match(Pr)!==null)return o(a)?Te(Ie({},Pe),{ua:n,skipped:!0}):{isInApp:!0,appKey:a,appName:a?tt[a].name:void 0,ua:n,skipped:!1};let l=Or();return l?o(l)?Te(Ie({},Pe),{ua:n,skipped:!0}):{isInApp:!0,appKey:l,appName:(t=(e=wi)==null?void 0:e[l])==null?void 0:t.name,ua:n,skipped:!1}:Te(Ie({},Pe),{ua:n})};var yi=Cr;var xi={version:"5.2.0"};function Ce(i,e){return!Array.isArray(e)||e.length===0?i:e.reduce((t,s)=>Math.abs(s-i)<Math.abs(t-i)?s:t)}var W=typeof window!="undefined",m=W?document:void 0,O=W?m.documentElement:void 0,I=W?m.body:void 0;function V(i){return typeof i=="number"}function R(i){if(!W)return 0;let e=v();if(window.vevet5_toPixelsCache||(window.vevet5_toPixelsCache=new Map,e.onResize("any",()=>{window.vevet5_toPixelsCache.clear()},{name:"toPixels"})),window.vevet5_toPixelsCache.has(i))return window.vevet5_toPixelsCache.get(i);let t=0,s=parseFloat(`${i}`);return V(i)?t=i:Number.isNaN(s)?t=0:i.includes("rem")?t=s*e.rem:i.includes("vw")?t=s*e.vw:i.includes("vh")?t=s*e.vh:i.includes("svh")?t=s*e.svh:i.includes("px")&&(t=s),window.vevet5_toPixelsCache.set(i,t),t}var Si=0;function me(i="id"){return Si+=1,`${i}_${Si}`}function _(i,e,t){let s=t.value;t.value=function(...n){if(!this._isDestroyed)return s.apply(this,n)}}var _e=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},Dr=function(i,e){var t={};for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&e.indexOf(s)<0&&(t[s]=i[s]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(i);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(i,s[r])&&(t[s[r]]=i[s[r]]);return t},j=class{constructor(){this._isDestroyed=!1,this._list=[]}get list(){return this._list}add(e,t,s={}){let r=me("callback");return this._list.push(Object.assign(Object.assign({},s),{id:r,target:e,action:t})),{id:r,remove:()=>this.remove(r)}}on(e,t,s={}){let r=this.add(e,t,s);return()=>{r.remove()}}remove(e){return this._remove(e)}_remove(e,t=!1){return this._list=this._list.filter(r=>!!(r.id!==e||r.protected&&!t)),!this._list.some(({id:r})=>r===e)}_removeAll(){for(;this._list.length>0;)this._remove(this._list[0].id,!0)}_callAction(e,t){var{id:s,timeout:r,action:n}=e,o=Dr(e,["id","timeout","action"]);r?setTimeout(()=>n(t),r):n(t),o.once&&this._remove(s,!0)}emit(e,t){this._list.forEach(s=>{s.target===e&&this._callAction(s,t)})}destroy(){this._removeAll(),this._isDestroyed=!0}};_e([_],j.prototype,"add",null);_e([_],j.prototype,"on",null);_e([_],j.prototype,"remove",null);_e([_],j.prototype,"emit",null);_e([_],j.prototype,"destroy",null);function w(i,e,t,s){return i.addEventListener(e,t,s),()=>{i.removeEventListener(e,t,s)}}var Ui=ti(Hi());function ht(i){return(0,Ui.default)(i)}function $({callback:i,element:e,viewportTarget:t="width",resizeDebounce:s=0,name:r}){let n=v(),o,a,l=!0,c,d=h=>{o&&(clearTimeout(o),o=void 0),o=setTimeout(()=>i(),h!=null?h:s)};return e&&(a=new ResizeObserver(()=>{if(l){l=!1;return}d(n.props.resizeDebounce+s)}),(Array.isArray(e)?e:[e]).forEach(h=>{a==null||a.observe(h)})),t&&(c=n.onResize(t,()=>d(),{name:r})),{remove:()=>{o&&clearTimeout(o),a==null||a.disconnect(),c==null||c()},resize:()=>i(),debounceResize:()=>d()}}function x(i,e){i.classList.add(e)}function H(i,e){i.classList.remove(e)}function P(i,e,t){i.classList.toggle(e,t)}function K(i,e){return i.classList.contains(e)}function Xi({prefix:i,applyClassNames:e}){let t=new j,s=!1;m.readyState==="complete"?setTimeout(()=>r(),0):w(window,"load",()=>r());function r(){let{body:o}=document;s=!0,e&&(H(O,`${i}loading`),H(o,`${i}loading`),x(O,`${i}loaded`)),t.emit("loaded",void 0)}function n(o){return s?(o(),()=>{}):t.on("loaded",()=>o())}return{onLoad:n,getIsLoaded:()=>s}}function qi({prefix:i,props:e,isMobile:t,isInApp:s}){let r=m.getElementById("vevet_css_preset");r||(r=m.createElement("style"),r.id="vevet_css_preset",I.appendChild(r));let n=m.createElement("div"),{style:o}=n;n.id="vevet_svh_helper",o.position="fixed",o.top="-100svh",o.left="-100px",o.width="1px",o.height="100svh",I.appendChild(n);let a=window.matchMedia(`(min-width: ${e.md+.001}px)`),l=window.matchMedia(`(min-width: ${e.sm+.001}px) and (max-width: ${e.md}px)`),c=window.matchMedia(`(max-width: ${e.sm}px)`),d=new j,h={width:0,height:0,sHeight:0,vw:0,vh:0,svh:0,scrollbarWidth:0,rem:16,landscape:!1,portrait:!1,dpr:window.devicePixelRatio,lowerDpr:window.devicePixelRatio,sm:!0,md:!1,lg:!1};g(),E(),M();let p;function b(){p&&(clearTimeout(p),p=void 0),e.resizeDebounce?p=setTimeout(()=>u(),e.resizeDebounce):u()}w(window,"resize",()=>b());let f=new ResizeObserver(()=>b());f.observe(O),f.observe(I);function u(){let{width:T,height:C}=h;g(),E(),M();let{width:z,height:X}=h;d.emit("trigger",void 0),(z!==T||X!==C)&&d.emit("any",void 0),z!==T&&X===C&&d.emit("onlyWidth",void 0),X!==C&&z===T&&d.emit("onlyHeight",void 0),z!==T&&X!==C&&d.emit("both",void 0),z!==T&&d.emit("width",void 0),X!==C&&d.emit("height",void 0)}function g(){let{width:T}=h,C=getComputedStyle(O);if(h.width=window.innerWidth,h.height=window.innerHeight,h.scrollbarWidth=window.innerWidth-O.clientWidth,h.vw=h.width/100,h.vh=h.height/100,h.rem=parseFloat(C.fontSize),h.landscape=h.width>h.height,h.portrait=h.width<h.height,h.dpr=window.devicePixelRatio,h.lowerDpr=t?Math.min(h.dpr,2):1,h.sm=!1,h.md=!1,h.lg=!1,c.matches?h.sm=!0:l.matches?h.md=!0:a.matches&&(h.lg=!0),t&&s){let z=O.clientHeight;(T!==h.width||!h.sHeight||T===h.width&&z<h.sHeight)&&(h.sHeight=z,h.svh=h.sHeight/100)}else h.svh=n.clientHeight/100||O.clientHeight/100,h.sHeight=h.svh*100}function E(){e.applyClassNames&&(P(O,`${i}lg`,h.lg),P(O,`${i}md`,h.md),P(O,`${i}sm`,h.sm),P(O,`${i}landscape`,h.landscape),P(O,`${i}portrait`,h.portrait))}function M(){r.innerHTML=`
2
2
  html {
3
- --vw: ${l.vw}px;
4
- --vh: ${l.vh}px;
5
- --svh: ${l.svh}px;
6
- --scrollbar-width: ${l.scrollbarWidth}px;
3
+ --vw: ${h.vw}px;
4
+ --vh: ${h.vh}px;
5
+ --svh: ${h.svh}px;
6
+ --scrollbar-width: ${h.scrollbarWidth}px;
7
7
  }
8
- `}return{data:l,callbacks:h}}function ms(s){var e;let i=Object.assign(Object.assign({},{md:1199,sm:999,resizeDebounce:0,easing:[.25,.1,.25,1],applyClassNames:!1}),s),r="v-",n=Pt(),o=ne(),a=(e=(n==null?void 0:n.os)||"")===null||e===void 0?void 0:e.split(" ")[0].toLowerCase(),h=((n==null?void 0:n.name)||"").toLowerCase(),l=o.phone||o.tablet,d=ps({prefix:r,applyClassNames:i.applyClassNames}),c=fs({prefix:r,props:i,isMobile:l}),p=Object.assign(Object.assign({},c.data),{viewportCallbacks:c.callbacks,version:Ft.version,props:i,prefix:r,phone:o.phone,tablet:o.tablet,mobile:l,osName:a,browserName:h,doc:document,html:document.documentElement,body:document.body,loaded:!1,onLoad:d.onLoad,onResize:(...w)=>c.callbacks.on(...w)});return d.onLoad(()=>{p.loaded=!0}),c.callbacks.add("trigger",()=>{Object.keys(c.data).forEach(u=>{p[u]=c.data[u]})},{protected:!0,name:"vevet core"}),function(){if(!i.applyClassNames)return;let{html:u}=p;u.classList.add(`${r}os-${a}`),u.classList.add(`${r}browser-${h}`),u.classList.toggle(`${r}phone`,p.phone),u.classList.toggle(`${r}tablet`,p.tablet),u.classList.toggle(`${r}mobile`,p.mobile)}(),p}function m(){var s;if(window.vevet5)return window.vevet5;let e=(s=window.VEVET_PROPS)!==null&&s!==void 0?s:{},t=ms(e);return window.vevet5=t,window.vevet5}typeof window!="undefined"&&(window.vevet5=m());var _s=`var presetVevetCss = function update() {
8
+ `}return{data:h,callbacks:d}}function Yi(i){var e;let s=Object.assign(Object.assign({},{md:1199,sm:999,resizeDebounce:0,easing:[.25,.1,.25,1],applyClassNames:!1}),i),r="v-",n=oi(),o=Me(),a=(e=(n==null?void 0:n.os)||"")===null||e===void 0?void 0:e.split(" ")[0].toLowerCase(),l=((n==null?void 0:n.name)||"").toLowerCase(),c=o.phone||o.tablet,{isInApp:d,appName:h}=yi(),p=d?(h||"unknown").toLowerCase():!1,b=Xi({prefix:r,applyClassNames:s.applyClassNames}),f=qi({prefix:r,props:s,isMobile:c,isInApp:d}),u=Object.assign(Object.assign({},f.data),{viewportCallbacks:f.callbacks,version:xi.version,props:s,prefix:r,phone:o.phone,tablet:o.tablet,mobile:c,osName:a,browserName:l,inAppBrowser:p,doc:m,html:O,body:I,loaded:!1,onLoad:b.onLoad,onResize:(...g)=>f.callbacks.on(...g)});return b.onLoad(()=>{u.loaded=!0}),f.callbacks.add("trigger",()=>{Object.keys(f.data).forEach(E=>{u[E]=f.data[E]})},{protected:!0,name:"vevet core"}),function(){s.applyClassNames&&(x(O,`${r}os-${a}`),x(O,`${r}browser-${l}`),P(O,`${r}phone`,u.phone),P(O,`${r}tablet`,u.tablet),P(O,`${r}mobile`,u.mobile))}(),u}function v(){var i;if(window.vevet5)return window.vevet5;let e=(i=window.VEVET_PROPS)!==null&&i!==void 0?i:{},t=Yi(e);return window.vevet5=t,window.vevet5}W&&(window.vevet5=v());var Qi=`var presetVevetCss = function update() {
9
9
  if (window.vevet5) {
10
10
  return;
11
11
  }
@@ -33,13 +33,13 @@ var presetVevetCssObserver = new ResizeObserver(presetVevetCss);
33
33
  presetVevetCssObserver.observe(document.documentElement);
34
34
  presetVevetCssObserver.observe(document.body);
35
35
 
36
- presetVevetCss();`;function b(s,e=0,t=1){let i=Math.min(e,t),r=Math.max(e,t);return Math.max(i,Math.min(s,r))}function A(s,e=0,t=1){return(s-e)/(t-e)}function de(s,e=[0,1],t=[0,1]){let i=A(s,e[0],e[1]);return b(i,t[0],t[1])}function T(s,e,t,i=0){let r=s+(e-s)*t;return Math.abs(e-r)<=i?e:r}function ke(s,e,t,i,r=0){return T(s,e,1-Math.exp(-t*60*(i/1e3)),r)}var Pe=s=>2.70158*s*s*s-1.70158*s*s;var R=s=>s<.36363636363636365?7.5625*s*s:s<.7272727272727273?7.5625*(s-=.5454545454545454)*s+.75:s<.9090909090909091?7.5625*(s-=.8181818181818182)*s+.9375:7.5625*(s-=.9545454545454546)*s+.984375;var ze=s=>1-R(1-s);var Ne=s=>1-Math.sqrt(1-Math.pow(s,2));var Le=s=>Math.pow(s,3);var Ae=s=>{let e=2*Math.PI/3;return s===0?0:s===1?1:-Math.pow(2,10*s-10)*Math.sin((s*10-10.75)*e)};var De=s=>s===0?0:Math.pow(2,10*s-10);var Re=s=>{let t=2.5949095;return s<.5?Math.pow(2*s,2)*((t+1)*2*s-t)/2:(Math.pow(2*s-2,2)*((t+1)*(s*2-2)+t)+2)/2};var je=s=>s<.5?(1-R(1-2*s))/2:(1+R(2*s-1))/2;var We=s=>s<.5?(1-Math.sqrt(1-Math.pow(2*s,2)))/2:(Math.sqrt(1-Math.pow(-2*s+2,2))+1)/2;var Be=s=>s<.5?4*s*s*s:1-Math.pow(-2*s+2,3)/2;var Ve=s=>{let e=2*Math.PI/4.5;return s===0?0:s===1?1:s<.5?-(Math.pow(2,20*s-10)*Math.sin((20*s-11.125)*e))/2:Math.pow(2,-20*s+10)*Math.sin((20*s-11.125)*e)/2+1};var $e=s=>s===0?0:s===1?1:s<.5?Math.pow(2,20*s-10)/2:(2-Math.pow(2,-20*s+10))/2;var Fe=s=>s<.5?2*s*s:1-Math.pow(-2*s+2,2)/2;var He=s=>s<.5?8*s*s*s*s:1-Math.pow(-2*s+2,4)/2;var Ue=s=>s<.5?16*s*s*s*s*s:1-Math.pow(-2*s+2,5)/2;var Xe=s=>-(Math.cos(Math.PI*s)-1)/2;var Qe=s=>Math.pow(s,2);var qe=s=>Math.pow(s,4);var Ye=s=>Math.pow(s,5);var Ge=s=>1-Math.cos(s*Math.PI/2);var Ke=s=>1+2.70158*Math.pow(s-1,3)+1.70158*Math.pow(s-1,2);var Je=s=>Math.sqrt(1-Math.pow(s-1,2));var W=s=>1-Math.pow(1-s,3);var Ze=s=>{let e=2*Math.PI/3;return s===0?0:s===1?1:Math.pow(2,-10*s)*Math.sin((s*10-.75)*e)+1};var et=s=>s===1?1:1-Math.pow(2,-10*s);var tt=s=>1-Math.pow(1-s,2);var st=s=>1-Math.pow(1-s,4);var it=s=>1-Math.pow(1-s,5);var rt=s=>Math.sin(s*Math.PI/2);function gs(s,e){let[t,i,r,n]=e;if(t===i&&r===n)return s;let o=[];for(let a=0;a<11;++a)o[a]=ue(a*.1,t,r);return s===0?0:s===1?1:ue(Di(e,s,o),i,n)}function ue(s,e,t){return((vs(e,t)*s+bs(e,t))*s+ws(e))*s}function vs(s,e){return 1-3*e+3*s}function bs(s,e){return 3*e-6*s}function ws(s){return 3*s}function Di(s,e,t){let i=s[0],r=s[2],n=0,o=1;for(;o!==10&&t[o]<=e;++o)n+=.1;--o;let a=(e-t[o])/(t[o+1]-t[o]),h=n+a*.1,l=ys(h,i,r);return l>=.001?Ri(e,h,i,r):l===0?h:ji(e,n,n+.1,i,r)}function ys(s,e,t){return 3*vs(e,t)*s*s+2*bs(e,t)*s+ws(e)}function Ri(s,e,t,i){for(let r=0;r<4;++r){let n=ys(e,t,i);if(n===0)return e;let o=ue(e,t,i)-s;e-=o/n}return e}function ji(s,e,t,i,r){let n,o,a=0;do o=e+(t-e)/2,n=ue(o,i,r)-s,n>0?t=o:e=o;while(Math.abs(n)>1e-7&&++a<10);return o}function xs(s,e=!1){return Array.isArray(e)?gs(s,e):typeof e=="function"?e(s):s}var nt=(s,e)=>{var t;return e===void 0&&(e=(t=m().props.easing)!==null&&t!==void 0?t:!1),xs(s,e)};function ot(s,e=0,t=1){let i=Math.min(e,t),r=Math.max(e,t);return s>=i&&s<=r}function C(s,e,t){let i=t-e;return((s-e)%i+i)%i+e}function Ss(s,e){let r=Object.keys(e).filter(n=>e[n]!==void 0).reduce((n,o)=>(n[o]=e[o],n),{});return Object.assign(Object.assign({},s),r)}var v=class{_getStatic(){return{__staticProp:null}}_getMutable(){return{__mutableProp:null}}get props(){return this._props}get prefix(){return""}get name(){return this.constructor.name}get isDestroyed(){return this._isDestroyed}get callbacks(){return this._callbacks}constructor(e){this._isDestroyed=!1,this._destroyable=[],this._callbacks=new L,this._props=Ss(Object.assign(Object.assign({},this._getStatic()),this._getMutable()),Object.assign({},e))}_handleProps(){this.callbacks.emit("props",void 0)}updateProps(e){this._props=Object.assign(Object.assign({},this._props),e),this._handleProps()}onDestroy(e){this._destroyable.push(e)}on(e,t,i={}){return this.callbacks.on(e,t,i)}_cn(...e){return e.map(t=>`${this.prefix}${t}`).join(" ")}_addTempClassName(e,t){e.classList.contains(t)||(e.classList.add(t),this.onDestroy(()=>e.classList.remove(t)))}destroy(){this.isDestroyed||this._destroy()}_destroy(){this._callbacks.emit("destroy",void 0),this._callbacks.destroy(),this._destroyable.forEach(e=>e()),this._isDestroyed=!0}};var at=class{get props(){return this._props}constructor(e,t,i){this._source=e,this._rules=t,this._onChange=i,this._isDestroyed=!1,this._destructors=[],this._prevBreakpoints="[]";let r=e,n=m(),o=r instanceof v?r.name:"Object";if(this._fetchInitProps(),this._props=Object.assign({},this._initProps),r instanceof v){r.on("destroy",()=>this.destroy(),{name:this.constructor.name,protected:!0});let a=r.updateProps.bind(r);r.updateProps=h=>{a(h),this._initProps=Object.assign(Object.assign({},this._initProps),h)},Object.defineProperty(r,"_$_responseProps",{value:h=>{a(h)}})}this._handleUpdate(),this._destructors.push(n.onResize("any",()=>this._handleUpdate(),{name:`${this.constructor.name} / ${o}`}))}_fetchInitProps(){let e=this._source;if(e instanceof v){this._initProps={},Object.keys(e._getMutable()).forEach(i=>{this._initProps[i]=e.props[i]});return}this._initProps=this._source}_getActiveRules(){let e=m();return this._rules.filter(({at:i})=>i==="tablet "&&e.tablet||i==="phone"&&e.phone||i==="mobile"&&e.mobile||i==="non_mobile"&&!e.mobile||i==="lg"&&e.lg||i==="md"&&e.md||i==="sm"&&e.sm||i==="portrait"&&e.portrait||i==="landscape"&&e.landscape?!0:i.startsWith("@media")?window.matchMedia(i.replace("@media","")).matches:!1)}_getResponsiveProps(){let e=this._getActiveRules(),t={};return e.forEach(({props:i})=>{t=Object.assign(Object.assign({},t),i)}),t}_handleUpdate(){var e;let i=this._getActiveRules().map(({at:n})=>n),r=JSON.stringify(i);this._prevBreakpoints!==r&&(this._prevBreakpoints=r,this._props=Object.assign(Object.assign({},this._initProps),this._getResponsiveProps()),this._source instanceof v&&this._source._$_responseProps(this._props),(e=this._onChange)===null||e===void 0||e.call(this,this.props))}destroy(){this._isDestroyed||(this._isDestroyed=!0,this._destructors.forEach(e=>e()))}};var U=class extends v{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{container:null,append:!0,resizeOnInit:!0,resizeOnRuntime:!1,viewportTarget:"any",resizeDebounce:0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{width:"auto",height:"auto",dpr:"auto"})}get canvas(){return this._canvas}get ctx(){return this._ctx}get width(){return this._width}get offsetWidth(){return this.width/this.dpr}get height(){return this._height}get offsetHeight(){return this.height/this.dpr}get dpr(){return this._dpr}get canRender(){return this.width>0&&this.height>0}constructor(e){super(e);let{append:t,container:i,resizeOnInit:r,resizeOnRuntime:n,viewportTarget:o,resizeDebounce:a}=this.props;this._width=0,this._height=0,this._dpr=1,this._canvas=document.createElement("canvas");let{style:h}=this._canvas;if(h.position="absolute",h.top="0",h.left="0",h.width="100%",h.height="100%",t&&i instanceof HTMLElement&&(i.append(this._canvas),this.onDestroy(()=>this.canvas.remove())),this._ctx=this._canvas.getContext("2d"),r&&this.resize(),n){let l=I({callback:()=>this.resize(),element:this.props.container,viewportTarget:o,resizeDebounce:a,name:this.name});this.onDestroy(()=>l.remove())}}_handleProps(){super._handleProps(),this.resize()}resize(){let e=m(),{props:t,canvas:i}=this,{container:r}=this.props;this._dpr=typeof t.dpr=="number"?t.dpr:e.dpr;let n=0,o=0;t.width==="auto"?n=(r==null?void 0:r.offsetWidth)||e.width:n=t.width,t.height==="auto"?o=(r==null?void 0:r.offsetHeight)||e.height:o=t.height,n*=this._dpr,o*=this._dpr,this._width=n,this._height=o,i.width=n,i.height=o,this.callbacks.emit("resize",void 0)}render(e){this.canRender&&e({ctx:this.ctx,width:this.width,height:this.height,dpr:this.dpr,offsetWidth:this.offsetWidth,offsetHeight:this.offsetHeight,canvas:this.canvas})}};function pe(s){let e=Bi(s),t=Wi(s),i;return s.rule==="cover"?i=Vi(s,e,t):s.rule==="contain"?i=$i(s,e,t):s.rule==="top-left"?i=Fi(s,t):s.rule==="top-right"?i=Hi(s,e,t):s.rule==="bottom-left"?i=Ui(s,e,t):s.rule==="bottom-right"?i=Xi(s,e,t):s.rule==="center"&&(i=Qi(s,e,t)),Object.assign(i,{sourceWidth:t.width,sourceHeight:t.height})}function E(s){return typeof s.scale!="undefined"?s.scale:1}function Wi(s){let{source:e}=s;return s.sourceWidth&&s.sourceHeight?{width:s.sourceWidth,height:s.sourceHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:{width:e.width,height:e.height}}function Bi(s){return"container"in s?{width:s.container.clientWidth,height:s.container.clientHeight}:{width:s.width,height:s.height}}function Vi(s,e,t){let i=e.width*E(s),r=t.height*i/t.width;r/E(s)<e.height&&(r=e.height*E(s),i=t.width*r/t.height);let n=(e.width-i)/2,o=(e.height-r)/2;return{width:i,height:r,x:n,y:o}}function $i(s,e,t){let i=0,r=0,n=t.width/t.height;e.width>e.height?(r=e.height,i=r*n,i>e.width&&(i=e.width,r=i/n)):e.height>=e.width&&(i=e.width,r=i/n,r>e.height&&(r=e.height,i=r*n)),i*=E(s),r*=E(s);let o=(e.width-i)/2,a=(e.height-r)/2;return{width:i,height:r,x:o,y:a}}function Fi(s,e){let t=e.width*E(s),i=e.height*E(s);return{width:t,height:i,x:0,y:0}}function Hi(s,e,t){let i=t.width*E(s),r=t.height*E(s),n=e.width-t.width;return{width:i,height:r,x:n,y:0}}function Ui(s,e,t){let i=t.width*E(s),r=t.height*E(s),n=e.height-t.height;return{width:i,height:r,x:0,y:n}}function Xi(s,e,t){let i=t.width*E(s),r=t.height*E(s),n=e.width-t.width,o=e.height-t.height;return{width:i,height:r,x:n,y:o}}function Qi(s,e,t){let i=t.width*E(s),r=t.height*E(s),n=(e.width-t.width)/2,o=(e.height-t.height)/2;return{width:i,height:r,x:n,y:o}}var lt=class extends U{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{autoRenderVideo:!0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{rule:"cover"})}constructor(e){super(e),this._setMediaEvents()}get hasRequestVideoFrameCallback(){return"requestVideoFrameCallback"in this.props.media}_setMediaEvents(){let{autoRenderVideo:e,media:t}=this.props;if(!e||!(t instanceof HTMLVideoElement))return;if(this.hasRequestVideoFrameCallback){this._requestVideoFrame();return}let i=_(t,"timeupdate",()=>{this.render()});this.onDestroy(()=>i())}resize(){super.resize(),this.render()}_requestVideoFrame(){if(this.isDestroyed)return;this.render();let{media:e}=this.props;e instanceof HTMLVideoElement&&e.requestVideoFrameCallback(()=>this._requestVideoFrame())}render(){super.render(e=>this._prerender(e))}_prerender({width:e,height:t,ctx:i}){let{media:r,rule:n}=this.props,o,a,h;r instanceof U?(o=r.canvas,a=r.width,h=r.height):o=r;let l=pe({source:o,sourceWidth:a,sourceHeight:h,rule:n,scale:1,width:e,height:t});i.clearRect(0,0,e,t),i.drawImage(o,l.x,l.y,l.width,l.height),this.callbacks.emit("render",void 0)}};var k=class extends v{_getStatic(){return Object.assign({},super._getStatic())}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{fps:"auto",enabled:!1,fpsRecalcFrames:10})}get isPlaying(){return this._isPlaying}get timestamp(){var e;return(e=this._timestamp)!==null&&e!==void 0?e:0}get index(){return this._index}get fps(){return this._fps}get duration(){return this._duration}get fpsFactor(){return 60/this.fps}constructor(e){super(e),this._isPlaying=!1,this._raf=null,this._lastTimestamp=null,this._timestamp=null,this._index=0,this._fps=60,this._duration=0,this._fps=this.props.fps==="auto"?this._fps:this.props.fps,this.props.enabled&&this._play()}_handleProps(){super._handleProps(),this._lastTimestamp=null,this.props.enabled?this._play():this._pause()}play(){this.isDestroyed||this.props.enabled||this.updateProps({enabled:!0})}_play(){this.isPlaying||(this._isPlaying=!0,this.callbacks.emit("play",void 0),this.callbacks.emit("toggle",void 0),this._raf=window.requestAnimationFrame(this._animate.bind(this)))}pause(){this.props.enabled&&this.updateProps({enabled:!1})}_pause(){this.isPlaying&&(this._raf&&(window.cancelAnimationFrame(this._raf),this._raf=null),this._isPlaying=!1,this.callbacks.emit("pause",void 0),this.callbacks.emit("toggle",void 0))}_animate(){var e,t;if(!this._isPlaying)return;this._raf=window.requestAnimationFrame(this._animate.bind(this));let i=this.props.fps==="auto"?1:1e3/this.props.fps;this._timestamp=performance.now(),(e=this._lastTimestamp)!==null&&e!==void 0||(this._lastTimestamp=this._timestamp);let r=this._timestamp-((t=this._lastTimestamp)!==null&&t!==void 0?t:this._timestamp);r<i||(this._duration=r,this._lastTimestamp=this._timestamp,this._index+=1,this._computeFPS(),this.callbacks.emit("frame",{fps:this.fps,fpsFactor:this.fpsFactor,duration:this.duration,lerpFactor:this.lerpFactor.bind(this)}))}lerpFactor(e){return 1-Math.exp(-e*60*(this.duration/1e3))}_computeFPS(){let{duration:e,index:t,props:i}=this;if(t>10&&t%i.fpsRecalcFrames!==0||e<=0||e>250)return;let o=1e3/60/e;this._fps=Math.round(60*o)||1}_destroy(){this.pause(),super._destroy()}};var X=null;function Es(s){return X||(X=document.createElement("style"),document.body.appendChild(X),X.innerHTML=`
37
- .${s}-container.${s}-hide-default,
38
- .${s}-container.${s}-hide-default * {
36
+ presetVevetCss();`;function S(i,e=0,t=1){let s=Math.min(e,t),r=Math.max(e,t);return Math.max(s,Math.min(i,r))}function Y(i,e=0,t=1){return(i-e)/(t-e)}function je(i,e=[0,1],t=[0,1]){let s=Y(i,e[0],e[1]);return S(s,t[0],t[1])}function L(i,e,t,s=0){let r=i+(e-i)*t;return Math.abs(e-r)<=s?e:r}function dt(i,e,t,s,r=0){return L(i,e,1-Math.exp(-t*60*(s/1e3)),r)}var pt=i=>2.70158*i*i*i-1.70158*i*i;var G=i=>i<.36363636363636365?7.5625*i*i:i<.7272727272727273?7.5625*(i-=.5454545454545454)*i+.75:i<.9090909090909091?7.5625*(i-=.8181818181818182)*i+.9375:7.5625*(i-=.9545454545454546)*i+.984375;var ut=i=>1-G(1-i);var ft=i=>1-Math.sqrt(1-Math.pow(i,2));var mt=i=>Math.pow(i,3);var _t=i=>{let e=2*Math.PI/3;return i===0?0:i===1?1:-Math.pow(2,10*i-10)*Math.sin((i*10-10.75)*e)};var gt=i=>i===0?0:Math.pow(2,10*i-10);var vt=i=>{let t=2.5949095;return i<.5?Math.pow(2*i,2)*((t+1)*2*i-t)/2:(Math.pow(2*i-2,2)*((t+1)*(i*2-2)+t)+2)/2};var bt=i=>i<.5?(1-G(1-2*i))/2:(1+G(2*i-1))/2;var wt=i=>i<.5?(1-Math.sqrt(1-Math.pow(2*i,2)))/2:(Math.sqrt(1-Math.pow(-2*i+2,2))+1)/2;var yt=i=>i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2;var xt=i=>{let e=2*Math.PI/4.5;return i===0?0:i===1?1:i<.5?-(Math.pow(2,20*i-10)*Math.sin((20*i-11.125)*e))/2:Math.pow(2,-20*i+10)*Math.sin((20*i-11.125)*e)/2+1};var St=i=>i===0?0:i===1?1:i<.5?Math.pow(2,20*i-10)/2:(2-Math.pow(2,-20*i+10))/2;var Et=i=>i<.5?2*i*i:1-Math.pow(-2*i+2,2)/2;var Ot=i=>i<.5?8*i*i*i*i:1-Math.pow(-2*i+2,4)/2;var Mt=i=>i<.5?16*i*i*i*i*i:1-Math.pow(-2*i+2,5)/2;var It=i=>-(Math.cos(Math.PI*i)-1)/2;var Tt=i=>Math.pow(i,2);var Pt=i=>Math.pow(i,4);var Ct=i=>Math.pow(i,5);var At=i=>1-Math.cos(i*Math.PI/2);var Dt=i=>1+2.70158*Math.pow(i-1,3)+1.70158*Math.pow(i-1,2);var zt=i=>Math.sqrt(1-Math.pow(i-1,2));var ee=i=>1-Math.pow(1-i,3);var Rt=i=>{let e=2*Math.PI/3;return i===0?0:i===1?1:Math.pow(2,-10*i)*Math.sin((i*10-.75)*e)+1};var jt=i=>i===1?1:1-Math.pow(2,-10*i);var kt=i=>1-Math.pow(1-i,2);var Nt=i=>1-Math.pow(1-i,4);var Bt=i=>1-Math.pow(1-i,5);var Wt=i=>Math.sin(i*Math.PI/2);function Ki(i,e){let[t,s,r,n]=e;if(t===s&&r===n)return i;let o=[];for(let a=0;a<11;++a)o[a]=ke(a*.1,t,r);return i===0?0:i===1?1:ke(Nr(e,i,o),s,n)}function ke(i,e,t){return((Gi(e,t)*i+Ji(e,t))*i+Zi(e))*i}function Gi(i,e){return 1-3*e+3*i}function Ji(i,e){return 3*e-6*i}function Zi(i){return 3*i}function Nr(i,e,t){let s=i[0],r=i[2],n=0,o=1;for(;o!==10&&t[o]<=e;++o)n+=.1;--o;let a=(e-t[o])/(t[o+1]-t[o]),l=n+a*.1,c=es(l,s,r);return c>=.001?Br(e,l,s,r):c===0?l:Wr(e,n,n+.1,s,r)}function es(i,e,t){return 3*Gi(e,t)*i*i+2*Ji(e,t)*i+Zi(e)}function Br(i,e,t,s){for(let r=0;r<4;++r){let n=es(e,t,s);if(n===0)return e;let o=ke(e,t,s)-i;e-=o/n}return e}function Wr(i,e,t,s,r){let n,o,a=0;do o=e+(t-e)/2,n=ke(o,s,r)-i,n>0?t=o:e=o;while(Math.abs(n)>1e-7&&++a<10);return o}function ts(i,e=!1){return Array.isArray(e)?Ki(i,e):typeof e=="function"?e(i):i}var Vt=(i,e)=>{var t;return e===void 0&&(e=(t=v().props.easing)!==null&&t!==void 0?t:!1),ts(i,e)};function $t(i,e=0,t=1){let s=Math.min(e,t),r=Math.max(e,t);return i>=s&&i<=r}function U(i,e,t){let s=t-e;return((i-e)%s+s)%s+e}function is(i,e){let r=Object.keys(e).filter(n=>e[n]!==void 0).reduce((n,o)=>(n[o]=e[o],n),{});return Object.assign(Object.assign({},i),r)}var Lt=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},y=class{_getStatic(){return{__staticProp:null}}_getMutable(){return{__mutableProp:null}}get props(){return this._props}get prefix(){return v().prefix}get name(){return this.constructor.name}get isDestroyed(){return this._isDestroyed}get callbacks(){return this._callbacks}constructor(e){this._isDestroyed=!1,this._destroyable=[],this._callbacks=new j,this._props=is(Object.assign(Object.assign({},this._getStatic()),this._getMutable()),Object.assign({},e)),Object.keys(this._props).filter(s=>s.startsWith("on")).forEach(s=>{let r=s.slice(2);r=r.charAt(0).toLowerCase()+r.slice(1),this._callbacks.on(r,this._props[s])})}_handleProps(){this.callbacks.emit("props",void 0)}updateProps(e){this._props=Object.assign(Object.assign({},this._props),e),this._handleProps()}onDestroy(e){if(this.isDestroyed){e();return}this._destroyable.push(e)}on(e,t,s={}){return this.callbacks.on(e,t,s)}_cn(...e){return e.map(t=>`${this.prefix}${t}`).join(" ")}_addTempClassName(e,t){K(e,t)||(x(e,t),this.onDestroy(()=>H(e,t)))}destroy(){this._destroy()}_destroy(){this._callbacks.emit("destroy",void 0),this._callbacks.destroy(),this._destroyable.forEach(e=>e()),this._isDestroyed=!0}};Lt([_],y.prototype,"updateProps",null);Lt([_],y.prototype,"on",null);Lt([_],y.prototype,"destroy",null);var Vr=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},Ne=class{get props(){return this._props}constructor(e,t,s){this._source=e,this._rules=t,this._onChange=s,this._isDestroyed=!1,this._destructors=[],this._prevBreakpoints="[]";let r=e,n=v(),o=r instanceof y?r.name:"Object";if(this._fetchInitProps(),this._props=Object.assign({},this._initProps),r instanceof y){r.on("destroy",()=>this.destroy(),{name:this.constructor.name,protected:!0});let a=r.updateProps.bind(r);r.updateProps=l=>{a(l),this._initProps=Object.assign(Object.assign({},this._initProps),l)},Object.defineProperty(r,"_$_responseProps",{value:l=>{a(l)}})}this._handleUpdate(),this._destructors.push(n.onResize("any",()=>this._handleUpdate(),{name:`${this.constructor.name} / ${o}`}))}_fetchInitProps(){let e=this._source;if(e instanceof y){this._initProps={},Object.keys(e._getMutable()).forEach(s=>{this._initProps[s]=e.props[s]});return}this._initProps=this._source}_getActiveRules(){let e=v();return this._rules.filter(({at:s})=>s==="tablet "&&e.tablet||s==="phone"&&e.phone||s==="mobile"&&e.mobile||s==="non_mobile"&&!e.mobile||s==="lg"&&e.lg||s==="md"&&e.md||s==="sm"&&e.sm||s==="portrait"&&e.portrait||s==="landscape"&&e.landscape?!0:s.startsWith("@media")?window.matchMedia(s.replace("@media","")).matches:!1)}_getResponsiveProps(){let e=this._getActiveRules(),t={};return e.forEach(({props:s})=>{t=Object.assign(Object.assign({},t),s)}),t}_handleUpdate(){var e;let s=this._getActiveRules().map(({at:n})=>n),r=JSON.stringify(s);this._prevBreakpoints!==r&&(this._prevBreakpoints=r,this._props=Object.assign(Object.assign({},this._initProps),this._getResponsiveProps()),this._source instanceof y&&this._source._$_responseProps(this._props),(e=this._onChange)===null||e===void 0||e.call(this,this.props))}destroy(){this._isDestroyed=!0,this._destructors.forEach(e=>e())}};Vr([_],Ne.prototype,"destroy",null);var ss=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},J=class extends y{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{container:null,append:!0,resizeOnInit:!0,resizeOnRuntime:!1,viewportTarget:"any",resizeDebounce:0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{width:"auto",height:"auto",dpr:"auto"})}get canvas(){return this._canvas}get ctx(){return this._ctx}get width(){return this._width}get offsetWidth(){return this.width/this.dpr}get height(){return this._height}get offsetHeight(){return this.height/this.dpr}get dpr(){return this._dpr}get canRender(){return this.width>0&&this.height>0}constructor(e){super(e);let{append:t,container:s,resizeOnInit:r,resizeOnRuntime:n,viewportTarget:o,resizeDebounce:a}=this.props;this._width=0,this._height=0,this._dpr=1,this._canvas=m.createElement("canvas");let{style:l}=this._canvas;if(l.position="absolute",l.top="0",l.left="0",l.width="100%",l.height="100%",t&&s instanceof HTMLElement&&(s.append(this._canvas),this.onDestroy(()=>this.canvas.remove())),this._ctx=this._canvas.getContext("2d"),r&&this.resize(),n){let c=$({callback:()=>this.resize(),element:this.props.container,viewportTarget:o,resizeDebounce:a,name:this.name});this.onDestroy(()=>c.remove())}}_handleProps(){super._handleProps(),this.resize()}resize(){let e=v(),{props:t,canvas:s}=this,{container:r}=this.props;this._dpr=V(t.dpr)?t.dpr:e.dpr;let n=0,o=0;t.width==="auto"?n=(r==null?void 0:r.offsetWidth)||e.width:n=t.width,t.height==="auto"?o=(r==null?void 0:r.offsetHeight)||e.height:o=t.height,n*=this._dpr,o*=this._dpr,this._width=n,this._height=o,s.width=n,s.height=o,this.callbacks.emit("resize",void 0)}render(e){this.canRender&&e({ctx:this.ctx,width:this.width,height:this.height,dpr:this.dpr,offsetWidth:this.offsetWidth,offsetHeight:this.offsetHeight,canvas:this.canvas})}};ss([_],J.prototype,"resize",null);ss([_],J.prototype,"render",null);function Be(i){let e=Lr(i),t=$r(i),s;return i.rule==="cover"?s=Fr(i,e,t):i.rule==="contain"?s=Hr(i,e,t):i.rule==="top-left"?s=Ur(i,t):i.rule==="top-right"?s=Xr(i,e,t):i.rule==="bottom-left"?s=qr(i,e,t):i.rule==="bottom-right"?s=Yr(i,e,t):i.rule==="center"&&(s=Qr(i,e,t)),Object.assign(s,{sourceWidth:t.width,sourceHeight:t.height})}function A(i){return typeof i.scale!="undefined"?i.scale:1}function $r(i){let{source:e}=i;return i.sourceWidth&&i.sourceHeight?{width:i.sourceWidth,height:i.sourceHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:{width:e.width,height:e.height}}function Lr(i){return"container"in i?{width:i.container.clientWidth,height:i.container.clientHeight}:{width:i.width,height:i.height}}function Fr(i,e,t){let s=e.width*A(i),r=t.height*s/t.width;r/A(i)<e.height&&(r=e.height*A(i),s=t.width*r/t.height);let n=(e.width-s)/2,o=(e.height-r)/2;return{width:s,height:r,x:n,y:o}}function Hr(i,e,t){let s=0,r=0,n=t.width/t.height;e.width>e.height?(r=e.height,s=r*n,s>e.width&&(s=e.width,r=s/n)):e.height>=e.width&&(s=e.width,r=s/n,r>e.height&&(r=e.height,s=r*n)),s*=A(i),r*=A(i);let o=(e.width-s)/2,a=(e.height-r)/2;return{width:s,height:r,x:o,y:a}}function Ur(i,e){let t=e.width*A(i),s=e.height*A(i);return{width:t,height:s,x:0,y:0}}function Xr(i,e,t){let s=t.width*A(i),r=t.height*A(i),n=e.width-t.width;return{width:s,height:r,x:n,y:0}}function qr(i,e,t){let s=t.width*A(i),r=t.height*A(i),n=e.height-t.height;return{width:s,height:r,x:0,y:n}}function Yr(i,e,t){let s=t.width*A(i),r=t.height*A(i),n=e.width-t.width,o=e.height-t.height;return{width:s,height:r,x:n,y:o}}function Qr(i,e,t){let s=t.width*A(i),r=t.height*A(i),n=(e.width-t.width)/2,o=(e.height-t.height)/2;return{width:s,height:r,x:n,y:o}}var rs=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},ge=class extends J{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{autoRenderVideo:!0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{rule:"cover"})}constructor(e){super(e),this._setMediaEvents()}get hasRequestVideoFrameCallback(){return"requestVideoFrameCallback"in this.props.media}_setMediaEvents(){let{autoRenderVideo:e,media:t}=this.props;if(!e||!(t instanceof HTMLVideoElement))return;if(this.hasRequestVideoFrameCallback){this._requestVideoFrame();return}let s=w(t,"timeupdate",()=>{this.render()});this.onDestroy(()=>s())}resize(){super.resize(),this.render()}_requestVideoFrame(){if(this.isDestroyed)return;this.render();let{media:e}=this.props;e instanceof HTMLVideoElement&&e.requestVideoFrameCallback(()=>this._requestVideoFrame())}render(){super.render(e=>this._prerender(e))}_prerender({width:e,height:t,ctx:s}){let{media:r,rule:n}=this.props,o,a,l;r instanceof J?(o=r.canvas,a=r.width,l=r.height):o=r;let c=Be({source:o,sourceWidth:a,sourceHeight:l,rule:n,scale:1,width:e,height:t});s.clearRect(0,0,e,t),s.drawImage(o,c.x,c.y,c.width,c.height),this.callbacks.emit("render",void 0)}};rs([_],ge.prototype,"resize",null);rs([_],ge.prototype,"render",null);var ns=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},F=class extends y{_getStatic(){return Object.assign({},super._getStatic())}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{fps:"auto",enabled:!1,fpsRecalcFrames:10})}get isPlaying(){return this._isPlaying}get timestamp(){var e;return(e=this._timestamp)!==null&&e!==void 0?e:0}get index(){return this._index}get fps(){return this._fps}get duration(){return this._duration}get fpsFactor(){return 60/this.fps}constructor(e){super(e),this._isPlaying=!1,this._raf=null,this._lastTimestamp=null,this._timestamp=null,this._index=0,this._fps=60,this._duration=0,this._fps=this.props.fps==="auto"?this._fps:this.props.fps,this.props.enabled&&this._play()}_handleProps(){super._handleProps(),this._lastTimestamp=null,this.props.enabled?this._play():this._pause()}play(){this.props.enabled||this.updateProps({enabled:!0})}_play(){this.isPlaying||(this._isPlaying=!0,this.callbacks.emit("play",void 0),this.callbacks.emit("toggle",void 0),this._raf=window.requestAnimationFrame(this._animate.bind(this)))}pause(){this.props.enabled&&this.updateProps({enabled:!1})}_pause(){this.isPlaying&&(this._raf&&(window.cancelAnimationFrame(this._raf),this._raf=null),this._isPlaying=!1,this.callbacks.emit("pause",void 0),this.callbacks.emit("toggle",void 0))}_animate(){var e,t;if(!this._isPlaying)return;this._raf=window.requestAnimationFrame(this._animate.bind(this));let s=this.props.fps==="auto"?1:1e3/this.props.fps;this._timestamp=performance.now(),(e=this._lastTimestamp)!==null&&e!==void 0||(this._lastTimestamp=this._timestamp);let r=this._timestamp-((t=this._lastTimestamp)!==null&&t!==void 0?t:this._timestamp);r<s||(this._duration=r,this._lastTimestamp=this._timestamp,this._index+=1,this._computeFPS(),this.callbacks.emit("frame",{fps:this.fps,fpsFactor:this.fpsFactor,duration:this.duration,lerpFactor:this.lerpFactor.bind(this)}))}lerpFactor(e){return 1-Math.exp(-e*60*(this.duration/1e3))}_computeFPS(){let{duration:e,index:t,props:s}=this;if(t>10&&t%s.fpsRecalcFrames!==0||e<=0||e>250)return;let o=1e3/60/e;this._fps=Math.round(60*o)||1}_destroy(){this.pause(),super._destroy()}};ns([_],F.prototype,"play",null);ns([_],F.prototype,"pause",null);var ae=null;function os(i){return ae||(ae=m.createElement("style"),I.appendChild(ae),ae.innerHTML=`
37
+ .${i}-container.${i}-hide-default,
38
+ .${i}-container.${i}-hide-default * {
39
39
  cursor: none;
40
40
  }
41
41
 
42
- .${s} {
42
+ .${i} {
43
43
  position: absolute;
44
44
  top: 0;
45
45
  left: 0;
@@ -55,19 +55,19 @@ presetVevetCss();`;function b(s,e=0,t=1){let i=Math.min(e,t),r=Math.max(e,t);ret
55
55
  --cursor-h: 50px;
56
56
  }
57
57
 
58
- .${s}-in-window {
58
+ .${i}-in-window {
59
59
  position: fixed;
60
60
  }
61
61
 
62
- .${s}-visible {
62
+ .${i}-visible {
63
63
  opacity: 1;
64
64
  }
65
65
 
66
- .${s}-disabled {
66
+ .${i}-disabled {
67
67
  opacity: 0;
68
68
  }
69
69
 
70
- .${s}__inner {
70
+ .${i}__inner {
71
71
  position: relative;
72
72
  width: var(--cursor-w);
73
73
  height: var(--cursor-h);
@@ -79,7 +79,11 @@ presetVevetCss();`;function b(s,e=0,t=1){let i=Math.min(e,t),r=Math.max(e,t);ret
79
79
  transition: transform 0.25s;
80
80
  }
81
81
 
82
- .${s}__inner > * {
82
+ .${i}_rtl .${i}__inner {
83
+ margin-right: calc(var(--cursor-w) / -2);
84
+ }
85
+
86
+ .${i}__inner > * {
83
87
  position: absolute;
84
88
  top: 50%;
85
89
  left: 50%;
@@ -88,24 +92,24 @@ presetVevetCss();`;function b(s,e=0,t=1){let i=Math.min(e,t),r=Math.max(e,t);ret
88
92
  transition: opacity 0.25s linear, transform 0.25s linear;
89
93
  }
90
94
 
91
- .${s}__inner > *.active {
95
+ .${i}__inner > *.active {
92
96
  opacity: 1;
93
97
  transform: scale(1) translate(-50%, -50%);
94
98
  }
95
- `,X)}var ht=class extends v{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{container:window,hideNative:!1})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{enabled:!0,width:50,height:50,lerp:.2,autoStop:!0})}get prefix(){return`${m().prefix}cursor`}get container(){return this.props.container}get domContainer(){return this.container instanceof Window?m().body:this.container}get outer(){return this._outer}get inner(){return this._inner}get hoveredElement(){return this._hoveredElement}set hoveredElement(e){this._hoveredElement=e}get coords(){return this._coords}get targetCoords(){var e;let{hoveredElement:t,props:i}=this,{x:r,y:n}=this._targetCoords,{width:o,height:a}=i,h=0;if(t){let l=t.element.getBoundingClientRect();t.sticky&&(r=l.left+l.width/2,n=l.top+l.height/2),t.width==="auto"?o=l.width:typeof t.width=="number"&&(o=t.width),t.height==="auto"?a=l.height:typeof t.height=="number"&&(a=t.height),h=(e=t.padding)!==null&&e!==void 0?e:0}return o+=h*2,a+=h*2,{x:r,y:n,width:o,height:a}}constructor(e){super(e),this._isFirstMove=!0;let{width:t,height:i,enabled:r}=this.props;this._coords={x:0,y:0,width:t,height:i},this._targetCoords={x:0,y:0,width:t,height:i},this._types=[],this._activeTypes=[],Es(this.prefix),this._createElements(),this._setEvents(),this._toggle(r)}_createElements(){let{container:e,domContainer:t}=this,i=this._cn.bind(this);this.props.hideNative&&(t.style.cursor="none",this._addTempClassName(t,i("-hide-default"))),this._addTempClassName(t,i("-container")),t!==m().body&&(t.style.position="relative");let r=document.createElement("div");t.append(r),r.classList.add(i("")),r.classList.add(i(e instanceof Window?"-in-window":"-in-element")),r.classList.add(i("-disabled"));let n=document.createElement("div");r.append(n),n.classList.add(i("__inner")),n.classList.add(i("-disabled")),r.append(n),this._outer=r,this._inner=n,this.onDestroy(()=>{t.style.cursor="",n.remove(),r.remove()})}_setEvents(){let{domContainer:e}=this;this._raf=new k({enabled:!1}),this._raf.on("frame",()=>this.render());let t=_(e,"mouseenter",this._handleMouseEnter.bind(this)),i=_(e,"mouseleave",this._handleMouseLeave.bind(this)),r=_(e,"mousemove",this._handleMouseMove.bind(this)),n=_(e,"mousedown",this._handleMouseDown.bind(this)),o=_(e,"mouseup",this._handleMouseUp.bind(this)),a=_(window,"blur",this._handleWindowBlur.bind(this));this.onDestroy(()=>{this._raf.destroy(),t(),i(),r(),n(),o(),a()})}_handleProps(){super._handleProps(),this._toggle(this.props.enabled)}_toggle(e){let t=this._cn("-disabled");this.outer.classList.toggle(t,!e),this.inner.classList.toggle(t,!e),this._raf.updateProps({enabled:e})}_handleMouseEnter(e){this._coords.x=e.clientX,this._coords.y=e.clientY,this._targetCoords.x=e.clientX,this._targetCoords.y=e.clientY,this.outer.classList.add(this._cn("-visible"))}_handleMouseLeave(){this.outer.classList.remove(this._cn("-visible"))}_handleMouseMove(e){this._targetCoords.x=e.clientX,this._targetCoords.y=e.clientY,this._isFirstMove&&(this._coords.x=e.clientX,this._coords.y=e.clientY,this._isFirstMove=!1),this.outer.classList.add(this._cn("-visible")),this.props.enabled&&this._raf.play()}_handleMouseDown(e){let t=this._cn("-click");e.which===1&&(this.outer.classList.add(t),this.inner.classList.add(t))}_handleMouseUp(){let e=this._cn("-click");this.outer.classList.remove(e),this.inner.classList.remove(e)}_handleWindowBlur(){this._handleMouseUp()}attachElement(e,t=100){let i=Object.assign({width:null,height:null},e),{element:r}=i,n;r.matches(":hover")&&this._handleElementEnter(i);let o=_(r,"mouseenter",()=>{n=setTimeout(()=>this._handleElementEnter(i),t)}),a=_(r,"mouseleave",()=>{n&&clearTimeout(n),this._handleElementLeave(i)}),h=()=>{var l;((l=this.hoveredElement)===null||l===void 0?void 0:l.element)===r&&(this.hoveredElement=void 0),o(),a(),n&&clearTimeout(n)};return this.onDestroy(()=>h()),()=>h()}_handleElementEnter(e){this.hoveredElement=Object.assign({},e),e.type&&this._toggleType(e.type,!0),this.props.enabled&&this._raf.play()}_handleElementLeave(e){this.hoveredElement=void 0,e.type&&this._toggleType(e.type,!1),this.props.enabled&&this._raf.play()}attachCursor({element:e,type:t}){this._types.push({element:e,type:t}),this._inner.append(e)}_toggleType(e,t){t?this._activeTypes.push(e):this._activeTypes=this._activeTypes.filter(r=>e!==r);let i=this._activeTypes.length>0?this._activeTypes[this._activeTypes.length-1]:null;this._types.forEach(r=>{r.element.classList.toggle("active",r.type===i)})}get isInterpolated(){let{coords:e,targetCoords:t}=this;return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}render(){this._calculate(),this._renderElements(),this.props.autoStop&&this.isInterpolated&&this._raf.pause(),this.callbacks.emit("render",void 0)}_calculate(){let{targetCoords:e,_coords:t}=this;t.x=this._lerp(t.x,e.x),t.y=this._lerp(t.y,e.y),t.width=this._lerp(t.width,e.width),t.height=this._lerp(t.height,e.height)}_lerp(e,t){return T(e,t,this._raf.lerpFactor(this.props.lerp),1e-4)}_renderElements(){let{container:e,domContainer:t,outer:i}=this,{x:r,y:n}=this.coords,{width:o,height:a}=this.coords;if(!(e instanceof Window)){let h=t.getBoundingClientRect();r-=h.left,n-=h.top}i.style.transform=`translate(${r}px, ${n}px)`,i.style.setProperty("--cursor-w",`${o}px`),i.style.setProperty("--cursor-h",`${a}px`)}};var ct=class extends v{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{hasOut:!0,maxInitialDelay:1e3,scrollDirection:"vertical"})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{enabled:!0,rootMargin:"0% 0% -5% 0%"})}get isInitialStart(){return this._isInitialStart}get elements(){return this._elements}constructor(e){super(e),this._isInitialStart=!0,this._elements=[],this._setup()}_handleProps(){super._handleProps(),this._setup()}_setup(){this._removeViewEvents(),this.props.enabled&&this._setViewEvents()}_removeViewEvents(){var e,t;(e=this._observerIn)===null||e===void 0||e.disconnect(),this._observerIn=void 0,(t=this._observerOut)===null||t===void 0||t.disconnect(),this._observerOut=void 0}_setViewEvents(){let{isInitialStart:e,props:t}=this,i=e?"0% 0% 0% 0%":t.rootMargin;this._observerIn=new IntersectionObserver(r=>this._handleIn(r),{root:null,threshold:0,rootMargin:i}),this.elements.forEach(r=>{var n;return(n=this._observerIn)===null||n===void 0?void 0:n.observe(r)}),t.hasOut&&(this._observerOut=new IntersectionObserver(r=>this._handleOut(r),{root:null,threshold:0,rootMargin:"0px 0px 0px 0px"}),this.elements.forEach(r=>{var n;return(n=this._observerOut)===null||n===void 0?void 0:n.observe(r)}))}_handleIn(e){e.forEach(t=>{let i=t.target;!t.isIntersecting||i.$vevetInViewBool||(i.$vevetInViewBool=!0,i.$vevetInViewTimeout&&clearTimeout(i.$vevetInViewTimeout),i.$vevetInViewTimeout=setTimeout(()=>this._handleInOut(i,!0),this._getElementDelay(i)),this.props.hasOut||this.removeElement(i))}),this._isInitialStart&&(this._isInitialStart=!1,this._setup())}_handleOut(e){e.forEach(t=>{let i=t.target;t.isIntersecting||!i.$vevetInViewBool||(i.$vevetInViewBool=!1,i.$vevetInViewTimeout&&clearTimeout(i.$vevetInViewTimeout),i.$vevetInViewTimeout=setTimeout(()=>{this._handleInOut(i,!1)},0))})}_handleInOut(e,t){let i=e.getAttribute("data-in-view-class");i&&e.classList.toggle(i,t),this.callbacks.emit(t?"in":"out",{element:e})}_getElementDelay(e){let{props:t}=this,i=m();if(!this.isInitialStart||t.maxInitialDelay<=0)return 0;let r=e.getBoundingClientRect(),n={top:0,left:0,width:i.width,height:i.height};return b(t.scrollDirection==="horizontal"?(r.left-n.left)/n.width:(r.top-n.top)/n.height,0,1)*t.maxInitialDelay}addElement(e){var t,i;let r=e;return r.$vevetInViewBool=void 0,this._elements.push(r),(t=this._observerIn)===null||t===void 0||t.observe(r),(i=this._observerOut)===null||i===void 0||i.observe(r),()=>this.removeElement(r)}removeElement(e){var t,i;let r=e;(t=this._observerIn)===null||t===void 0||t.unobserve(r),(i=this._observerOut)===null||i===void 0||i.unobserve(r),this._elements=this._elements.filter(n=>n!==e),r.$vevetInViewBool=void 0}_destroy(){super._destroy(),this._removeViewEvents()}};var dt=class extends v{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{resizeDebounce:0,hasWillChange:!0,cloneNodes:!0,direction:"horizontal"})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{speed:1,gap:0,enabled:!0,pauseOnHover:!1,centered:!1,adjustSpeed:!0,pauseOnOut:!0})}get totalSize(){return this._totalSize}get totalWidth(){return this.totalSize}get coord(){return this._coord}set coord(e){this._coord=e,this.render(0)}get x(){return this.coord}set x(e){this.coord=e}get isVertical(){return this.props.direction==="vertical"}constructor(e){super(e),this._size=0,this._initialNodes=[],this._elements=[],this._sizes=[],this._totalSize=0,this._coord=0;let{container:t}=this.props,{isVertical:i}=this;if(!t)throw new Error("Marquee container is not defined");t.style.position="relative",t.style.display="flex",t.style.flexDirection=i?"column":"row",t.style.alignItems="center",t.style.justifyContent="flex-start",t.style.overflow="hidden",i?t.style.height="100%":t.style.width="100%",this._setup(),this._raf=new k({enabled:this.props.enabled,fpsRecalcFrames:1}),this._raf.on("frame",()=>{let o=this.props.adjustSpeed?this._raf.fpsFactor:1,a=M(this.props.speed);this._render(a*o)});let r=_(t,"mouseenter",()=>{this.props.pauseOnHover&&this._raf.pause()});this.onDestroy(()=>r());let n=_(t,"mouseleave",()=>{this.props.enabled&&this._raf.play()});this.onDestroy(()=>n()),this._intersection=new IntersectionObserver(this._handleIntersection.bind(this),{root:null}),this._intersection.observe(t)}_handleProps(){super._handleProps(),this.props.enabled?this._raf.play():this._raf.pause(),this.resize(),this.render(0)}_setup(){var e;if((e=this._lastSetup)===null||e===void 0||e.call(this),this.isDestroyed)return;let{container:t,resizeDebounce:i}=this.props;this._initialNodes=[...Array.from(t.childNodes)],this._wrapTextNode(),this._elements=Array.from(t.children),this._elements.forEach((o,a)=>this._applyNodeStyles(o,a!==0)),this.resize();let r=m().onLoad(()=>this.resize()),n=I({callback:()=>this.resize(),element:[t,...this._elements],viewportTarget:"width",resizeDebounce:i,name:this.name});this._lastSetup=()=>{r(),n.remove()}}_wrapTextNode(){let{container:e}=this.props,t=e.childNodes.length===1,i=e.childNodes[0];if(!i||i.nodeType!==3||!t)return;let r=document.createElement("span");r.style.position="relative",r.style.display="block",r.style.width="max-content",r.style.whiteSpace="nowrap",r.appendChild(i),e.appendChild(r)}_applyNodeStyles(e,t){let i=e;i.style.position=t?"absolute":"relative",i.style.top=t&&!this.isVertical?"50%":"0",i.style.left=t&&this.isVertical?"50%":"0",i.style.willChange=this.props.hasWillChange?"transform":"",i.style.flexShrink="0",this.isVertical?i.style.height=e.style.height||"max-content":i.style.width=e.style.width||"max-content"}resize(){if(this.isDestroyed)return;let{props:e,isVertical:t}=this,{container:i}=e,r=M(e.gap);this._size=t?i.offsetHeight:i.offsetWidth,this._sizes=this._elements.map(a=>(t?a.offsetHeight:a.offsetWidth)+r),this._totalSize=this._sizes.reduce((a,h)=>a+h,0);let n=Math.max(...this._sizes),o=Math.ceil((this._size+n)/this._totalSize);if(this._totalSize=Math.max(this._totalSize,this._size+n),e.cloneNodes&&o>1){for(let a=1;a<o;a+=1)this._elements.forEach(h=>{let l=h.cloneNode(!0);this._applyNodeStyles(l,!0),i.appendChild(l)});this._elements=Array.from(i.children),this.resize()}this.callbacks.emit("resize",void 0),setTimeout(()=>this.render(0),0)}render(e){this._render(e)}_render(e=this.props.speed){if(this.isDestroyed)return;let{isVertical:t,props:i}=this;this._coord-=M(e);let r=this._size*.5+this._sizes[0]/2-M(i.gap),n=this._coord+(i.centered?r:0),o=0;for(let a=0;a<this._elements.length;a+=1){let h=this._elements[a],l=this._sizes[a],d=C(n+o,-l,this._totalSize-l);if(t){let c=h.style.position==="relative"?"0":"-50%";h.style.transform=`translate(${c}, ${d}px)`}else{let c=h.style.position==="relative"?"0":"-50%";h.style.transform=`translate(${d}px, ${c})`}o+=l}this.callbacks.emit("render",void 0)}_handleIntersection(e){this.props.pauseOnOut&&e.forEach(t=>{t.isIntersecting&&this.props.enabled?this._raf.play():this._raf.pause()})}_destroy(){var e,t;let{container:i}=this.props;for(super._destroy(),this._raf.destroy(),(e=this._intersection)===null||e===void 0||e.disconnect(),(t=this._lastSetup)===null||t===void 0||t.call(this);i.firstChild;)i.removeChild(i.firstChild);this._initialNodes.forEach(r=>i.appendChild(r))}};var B=typeof window!="undefined"?document.createElement("style"):null;B&&(B.innerHTML="* { user-select: none !important; }");var J=class extends v{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{buttons:[0],relative:!1,minPointers:1,maxPointers:5,disableUserSelect:!0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{enabled:!0})}get isStarted(){return this._isStarted}get pointersMap(){return this._pointersMap}get container(){return this.props.container}get minPointers(){return b(this.props.minPointers,1,1/0)}get maxPointers(){return b(this.props.maxPointers,this.props.minPointers,1/0)}constructor(e){super(e),this._listeners=[],this._isStarted=!1,this._pointersMap=new Map,this._setBaseEvents()}_setBaseEvents(){let{container:e}=this,t=_(e,"pointerdown",o=>this._handlePointerDown(o)),i=_(e,"dragstart",o=>o.preventDefault(),{passive:!1}),r=_(e,"mousedown",o=>{this.props.buttons.includes(1)&&o.preventDefault()},{passive:!1}),n=_(e,"contextmenu",o=>{this.props.buttons.includes(2)&&o.preventDefault()},{passive:!1});this.onDestroy(()=>{t(),i(),r(),n()})}_setRuntimeEvents(){if(this._listeners.length>0)return;let t=_(window,"pointermove",o=>this._handlePointerMove(o),{passive:!1}),i=_(window,"pointerup",o=>this._handlePointerUp(o),{passive:!1}),r=_(window,"pointercancel",()=>this._handleCancel(),{passive:!1}),n=_(window,"blur",()=>this._handleCancel());this._listeners=[t,i,r,n]}_handlePointerDown(e){let{props:t}=this,{x:i,y:r}=this._decodeCoords(e);if(!t.enabled||!t.buttons.includes(e.button)||this.pointersMap.get(e.pointerId)||this.pointersMap.size>=this.maxPointers)return;let o={id:e.pointerId,index:this.pointersMap.size,start:{x:i,y:r},prev:{x:i,y:r},current:{x:i,y:r},diff:{x:0,y:0},step:{x:0,y:0},accum:{x:0,y:0}};this.pointersMap.set(e.pointerId,o);let a=0;this.pointersMap.forEach(h=>{h.index=a,a+=1}),this.pointersMap.size===this.minPointers&&(this._isStarted=!0,this.callbacks.emit("start",void 0)),this._setRuntimeEvents(),t.disableUserSelect&&m().body.append(B),this.callbacks.emit("pointerdown",{event:e,pointer:o})}_handlePointerMove(e){let t=this.pointersMap.get(e.pointerId);if(!t)return;let{x:i,y:r}=this._decodeCoords(e);t.prev=Object.assign({},t.current),t.current={x:i,y:r},t.diff.x=t.current.x-t.start.x,t.diff.y=t.current.y-t.start.y,t.step.x=t.current.x-t.prev.x,t.step.y=t.current.y-t.prev.y,t.accum.x+=Math.abs(t.step.x),t.accum.y+=Math.abs(t.step.y),this.callbacks.emit("pointermove",{event:e,pointer:t})}_handlePointerUp(e){let t=this.pointersMap.get(e.pointerId);t&&(this.callbacks.emit("pointerup",{pointer:t}),this.pointersMap.delete(e.pointerId),this.pointersMap.size<this.minPointers&&this._isStarted&&(this._isStarted=!1,this.callbacks.emit("end",void 0)),this.pointersMap.size===0&&this._cleanup())}_handleCancel(){this.callbacks.emit("end",void 0),this.pointersMap.forEach(e=>{this.callbacks.emit("pointerup",{pointer:e})}),this._cleanup()}_resetSelection(){var e,t;(e=window.getSelection())===null||e===void 0||e.empty(),(t=window.getSelection())===null||t===void 0||t.removeAllRanges()}_decodeCoords(e){let{container:t,props:i}=this;if(!i.relative)return{x:e.clientX,y:e.clientY};let r=t.getBoundingClientRect(),n=e.clientX-r.left,o=e.clientY-r.top;return{x:n,y:o}}_cleanup(){this._listeners.forEach(e=>e()),this._listeners=[],this._isStarted=!1,this.pointersMap.clear(),this.props.disableUserSelect&&(this._resetSelection(),B===null||B===void 0||B.remove())}_destroy(){this._cleanup(),super._destroy()}};var P=class extends v{_getStatic(){return Object.assign({},super._getStatic())}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{easing:m().props.easing,duration:1e3})}get progress(){return this._progress}set progress(e){this._progress=b(e),this._onUpdate()}get eased(){return this._eased}get isPlaying(){return typeof this._raf!="undefined"}get isReversed(){return this._isReversed}get isPaused(){return this._isPaused}get duration(){let e=this.props.duration;return Number.isNaN(e)||!Number.isFinite(e)||e<0?0:this.props.duration}constructor(e){super(e),this._progress=0,this._eased=0,this._raf=void 0,this._time=0,this._isReversed=!1,this._isPaused=!1}play(){this.isDestroyed||this.progress===1||(this._isReversed=!1,this._isPaused=!1,this.isPlaying||(this._time=Date.now(),this._animate()))}reverse(){this.isDestroyed||this.progress===0||(this._isReversed=!0,this._isPaused=!1,this.isPlaying||(this._time=Date.now(),this._animate()))}pause(){this.isDestroyed||(this._isPaused=!0,this._raf&&window.cancelAnimationFrame(this._raf),this._raf=void 0)}reset(){this.isDestroyed||(this.pause(),this.progress=0)}_animate(){if(this.isPaused)return;let{isReversed:e,duration:t}=this;if(t<=0){this.progress=e?1:0,this.progress=e?0:1;return}let i=Date.now(),r=Math.abs(this._time-i);this._time=i;let n=r/t/(e?-1:1),o=this.progress+n;if(this.progress=o,this.progress===1&&!e||this.progress===0&&e){this._isReversed=!1,this._isPaused=!1,this._raf=void 0;return}this._raf=window.requestAnimationFrame(()=>this._animate())}_onUpdate(){if(this._eased=nt(this._progress,this.props.easing),this.callbacks.emit("update",{progress:this._progress,eased:this._eased}),this.progress===0){this.callbacks.emit("start",void 0);return}this.progress===1&&this.callbacks.emit("end",void 0)}_destroy(){this.pause(),super._destroy()}};var Z=class extends v{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{hide:250})}_getMutable(){return Object.assign({},super._getMutable())}get isHidden(){return this._isHidden}constructor(e){super(e),this._shouldHide=!1,this._isHidden=!1,this._isLoaded=!1;let t=setTimeout(()=>{this._onLoaded(()=>this._handleLoaded())},0);this.onDestroy(()=>clearTimeout(t))}_onLoaded(e){m().onLoad(e)}_handleLoaded(){this.isDestroyed||(this._isLoaded=!0,this.callbacks.emit("loaded",void 0),typeof this.props.hide=="number"&&this.hide(this.props.hide))}hide(e,t){if(!this._isLoaded||this._shouldHide)return;let i=!1;return this._shouldHide=!0,this.callbacks.emit("hide",void 0),this._hideContainer(()=>{this._onHidden(),i||t==null||t()},e),()=>{i=!0}}_hideContainer(e,t){let{container:i}=this.props;if(!i){e();return}let r=new P({duration:t});this.onDestroy(()=>r.destroy()),r.on("update",({progress:n})=>{i.style.opacity=String(1-n),i.style.display=n===1?"none":"flex"}),r.on("end",()=>e()),r.play()}_onHidden(){this._isHidden=!0,this.callbacks.emit("hidden",void 0)}onHide(e){return this._shouldHide?(e(),()=>{}):this.on("hide",()=>e())}onHidden(e){return this._isHidden?(e(),()=>{}):this.on("hidden",()=>e())}};function Ms(s,e){if(s.complete){e();return}let t=new Image;t.addEventListener("load",()=>e()),t.addEventListener("error",()=>e()),t.crossOrigin="anonymous",t.src=s.currentSrc||s.src}function Os(s,e){if(s.readyState>0){e();return}if(s.preload==="none"){e();return}s.addEventListener("error",()=>e()),s.addEventListener("loadedmetadata",()=>e())}function Is(s){let e=parseFloat(s.getAttribute("data-loaded")||"0");return e=Number.isNaN(e)?0:b(e,0,1/0),e}function Ts({id:s,weight:e},t){if(!(s instanceof Element))return;if(Is(s)>=e){t(e);return}let i=new MutationObserver(()=>{let r=Is(s);t(r),r>=e&&i.disconnect()});i.observe(s,{attributes:!0,attributeFilter:["data-loaded"]})}var Cs=`vevet-page-${Math.random()}`,ut=class extends Z{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{preloadImages:!0,preloadVideos:!1,customSelector:".js-preload",ignoreClassName:"js-preload-ignore",lerp:.1,endDuration:500})}_getMutable(){return Object.assign({},super._getMutable())}get resources(){return this._resources}get totalWeight(){return this.resources.reduce((e,{weight:t})=>e+t,0)}get loadedWeight(){return this.resources.reduce((e,{loaded:t})=>e+t,0)}get loadProgress(){return this.loadedWeight/this.totalWeight}get progress(){return this._progress}constructor(e){super(e),this._resources=[{id:Cs,weight:1,loaded:0}],this._progress=0,this._raf=new k,this._raf.on("frame",({lerpFactor:t})=>{this._handleUpdate(T(this._progress,this.loadProgress,t(this.props.lerp)))}),this._raf.play(),this._fetchImages(),this._fetchVideos(),this._fetchResources(),m().onLoad(()=>this.resolveResource(Cs))}_fetchImages(){if(!this.props.preloadImages)return;let e=Array.from(document.querySelectorAll("img"));e=e.filter(t=>!t.classList.contains(this.props.ignoreClassName)&&t.loading!=="lazy"),this._resources.push(...e.map(t=>({id:t,weight:1,loaded:0}))),e.forEach(t=>{Ms(t,()=>this.resolveResource(t))})}_fetchVideos(){if(!this.props.preloadVideos)return;let e=Array.from(document.querySelectorAll("video"));e=e.filter(t=>!t.classList.contains(this.props.ignoreClassName)),this._resources.push(...e.map(t=>({id:t,weight:1,loaded:0}))),e.forEach(t=>{Os(t,()=>this.resolveResource(t))})}_fetchResources(){let e=Array.from(document.querySelectorAll(this.props.customSelector));e=e.filter(t=>!t.classList.contains(this.props.ignoreClassName)),e.forEach(t=>{let i=parseInt(t.getAttribute("data-weight")||"1",10);i=Number.isNaN(i)?1:b(i,1,1/0);let r={id:t,weight:i,loaded:0};this._resources.push(r),Ts(r,n=>this.resolveResource(t,n))})}addResource(e,t=1){if(this.isDestroyed)return;if(this.resources.some(r=>r.id===e))throw new Error("Resource already exists");this._resources.push({id:e,weight:t,loaded:0})}resolveResource(e,t){if(this.isDestroyed)return;let i=this.resources.find(n=>n.id===e);if(!i)return;let r=t!=null?t:i.weight;i.loaded=b(r,0,i.weight),this.callbacks.emit("resource",i)}_handleUpdate(e){var t;if(this._progress=e,this.callbacks.emit("progress",void 0),this.loadProgress<1)return;(t=this._raf)===null||t===void 0||t.destroy();let i=this.progress;if(i>=1)return;let r=new P({duration:this.props.endDuration});this.onDestroy(()=>r.destroy()),r.on("update",({progress:n})=>{let o=1-i;this._progress=i+o*n,this.callbacks.emit("progress",void 0)}),r.play()}_onLoaded(e){let t=!1;this.callbacks.on("progress",()=>{this.progress>=1&&!t&&(t=!0,e())},{protected:!0,name:this.name})}_destroy(){super._destroy(),this._raf.destroy()}};var Q=null;function ks(s){return Q||(Q=document.createElement("style"),document.body.appendChild(Q),Q.innerHTML=`
96
- .${s}-scrollable {
99
+ `,ae)}function le(i){return window.getComputedStyle(i).direction}var Ft=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},ce=class extends y{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{container:window,hideNative:!1})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{enabled:!0,width:50,height:50,lerp:.2,autoStop:!0})}get prefix(){return`${v().prefix}cursor`}get container(){return this.props.container}get domContainer(){return this.container instanceof Window?I:this.container}get outer(){return this._outer}get inner(){return this._inner}get hoveredElement(){return this._hoveredElement}set hoveredElement(e){this._hoveredElement=e}get coords(){return this._coords}get targetCoords(){var e;let{hoveredElement:t,props:s}=this,{x:r,y:n}=this._targetCoords,{width:o,height:a}=s,l=0;if(t){let c=t.element.getBoundingClientRect();t.sticky&&(r=c.left+c.width/2,n=c.top+c.height/2),t.width==="auto"?o=c.width:V(t.width)&&(o=t.width),t.height==="auto"?a=c.height:V(t.height)&&(a=t.height),l=(e=t.padding)!==null&&e!==void 0?e:0}return o+=l*2,a+=l*2,{x:r,y:n,width:o,height:a}}constructor(e){super(e),this._isFirstMove=!0;let{width:t,height:s,enabled:r}=this.props;this._coords={x:0,y:0,width:t,height:s},this._targetCoords={x:0,y:0,width:t,height:s},this._types=[],this._activeTypes=[],os(this.prefix),this._createElements(),this._setEvents(),this._toggle(r)}_createElements(){let{container:e,domContainer:t}=this,s=this._cn.bind(this),{style:r}=t;this.props.hideNative&&(r.cursor="none",this._addTempClassName(t,s("-hide-default"))),this._addTempClassName(t,s("-container")),t!==I&&(r.position="relative");let n=m.createElement("div");t.append(n),x(n,s("")),x(n,s(e instanceof Window?"-in-window":"-in-element")),x(n,s("-disabled"));let o=le(n);x(n,s(`_${o}`));let a=m.createElement("div");n.append(a),x(a,s("__inner")),x(a,s("-disabled")),n.append(a),this._outer=n,this._inner=a,this.onDestroy(()=>{r.cursor="",a.remove(),n.remove()})}_setEvents(){let{domContainer:e}=this;this._raf=new F({enabled:!1}),this._raf.on("frame",()=>this.render());let t=w(e,"mouseenter",this._handleMouseEnter.bind(this)),s=w(e,"mouseleave",this._handleMouseLeave.bind(this)),r=w(e,"mousemove",this._handleMouseMove.bind(this)),n=w(e,"mousedown",this._handleMouseDown.bind(this)),o=w(e,"mouseup",this._handleMouseUp.bind(this)),a=w(window,"blur",this._handleWindowBlur.bind(this));this.onDestroy(()=>{this._raf.destroy(),t(),s(),r(),n(),o(),a()})}_handleProps(){super._handleProps(),this._toggle(this.props.enabled)}_toggle(e){let t=this._cn("-disabled");P(this.outer,t,!e),P(this.inner,t,!e),this._raf.updateProps({enabled:e})}_handleMouseEnter(e){this._coords.x=e.clientX,this._coords.y=e.clientY,this._targetCoords.x=e.clientX,this._targetCoords.y=e.clientY,x(this.outer,this._cn("-visible"))}_handleMouseLeave(){H(this.outer,this._cn("-visible"))}_handleMouseMove(e){this._targetCoords.x=e.clientX,this._targetCoords.y=e.clientY,this._isFirstMove&&(this._coords.x=e.clientX,this._coords.y=e.clientY,this._isFirstMove=!1),x(this.outer,this._cn("-visible")),this.props.enabled&&this._raf.play()}_handleMouseDown(e){let t=this._cn("-click");e.which===1&&(x(this.outer,t),x(this.inner,t))}_handleMouseUp(){let e=this._cn("-click");H(this.outer,e),H(this.inner,e)}_handleWindowBlur(){this._handleMouseUp()}attachElement(e,t=100){let s=Object.assign({width:null,height:null},e),{element:r}=s,n;r.matches(":hover")&&this._handleElementEnter(s);let o=w(r,"mouseenter",()=>{n=setTimeout(()=>this._handleElementEnter(s),t)}),a=w(r,"mouseleave",()=>{n&&clearTimeout(n),this._handleElementLeave(s)}),l=()=>{var c;((c=this.hoveredElement)===null||c===void 0?void 0:c.element)===r&&(this.hoveredElement=void 0),o(),a(),n&&clearTimeout(n)};return this.onDestroy(()=>l()),()=>l()}_handleElementEnter(e){this.hoveredElement=Object.assign({},e),e.type&&this._toggleType(e.type,!0),this.props.enabled&&this._raf.play()}_handleElementLeave(e){this.hoveredElement=void 0,e.type&&this._toggleType(e.type,!1),this.props.enabled&&this._raf.play()}attachCursor({element:e,type:t}){this._types.push({element:e,type:t}),this._inner.append(e)}_toggleType(e,t){t?this._activeTypes.push(e):this._activeTypes=this._activeTypes.filter(r=>e!==r);let s=this._activeTypes.length>0?this._activeTypes[this._activeTypes.length-1]:null;this._types.forEach(r=>{P(r.element,"active",r.type===s)})}get isInterpolated(){let{coords:e,targetCoords:t}=this;return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}render(){this._calculate(),this._renderElements(),this.props.autoStop&&this.isInterpolated&&this._raf.pause(),this.callbacks.emit("render",void 0)}_calculate(){let{targetCoords:e,_coords:t}=this;t.x=this._lerp(t.x,e.x),t.y=this._lerp(t.y,e.y),t.width=this._lerp(t.width,e.width),t.height=this._lerp(t.height,e.height)}_lerp(e,t){return L(e,t,this._raf.lerpFactor(this.props.lerp),1e-4)}_renderElements(){let{container:e,domContainer:t,outer:s}=this,{x:r,y:n}=this.coords,{width:o,height:a}=this.coords;if(!(e instanceof Window)){let c=t.getBoundingClientRect();r-=c.left,n-=c.top}let{style:l}=s;l.transform=`translate(${r}px, ${n}px)`,l.setProperty("--cursor-w",`${o}px`),l.setProperty("--cursor-h",`${a}px`)}};Ft([_],ce.prototype,"attachElement",null);Ft([_],ce.prototype,"attachCursor",null);Ft([_],ce.prototype,"render",null);var as=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},ve=class extends y{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{hasOut:!0,maxInitialDelay:1e3,scrollDirection:"vertical"})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{enabled:!0,rootMargin:"0% 0% -5% 0%"})}get isInitialStart(){return this._isInitialStart}get elements(){return this._elements}constructor(e){super(e),this._isInitialStart=!0,this._elements=[],this._setup()}_handleProps(){super._handleProps(),this._setup()}_setup(){this._removeViewEvents(),this.props.enabled&&this._setViewEvents()}_removeViewEvents(){var e,t;(e=this._observerIn)===null||e===void 0||e.disconnect(),this._observerIn=void 0,(t=this._observerOut)===null||t===void 0||t.disconnect(),this._observerOut=void 0}_setViewEvents(){let{isInitialStart:e,props:t}=this,s=e?"0% 0% 0% 0%":t.rootMargin;this._observerIn=new IntersectionObserver(r=>this._handleIn(r),{root:null,threshold:0,rootMargin:s}),this.elements.forEach(r=>{var n;return(n=this._observerIn)===null||n===void 0?void 0:n.observe(r)}),t.hasOut&&(this._observerOut=new IntersectionObserver(r=>this._handleOut(r),{root:null,threshold:0,rootMargin:"0px 0px 0px 0px"}),this.elements.forEach(r=>{var n;return(n=this._observerOut)===null||n===void 0?void 0:n.observe(r)}))}_handleIn(e){e.forEach(t=>{let s=t.target;!t.isIntersecting||s.$vevetInViewBool||(s.$vevetInViewBool=!0,s.$vevetInViewTimeout&&clearTimeout(s.$vevetInViewTimeout),s.$vevetInViewTimeout=setTimeout(()=>this._handleInOut(s,!0),this._getElementDelay(s)),this.props.hasOut||this.removeElement(s))}),this._isInitialStart&&(this._isInitialStart=!1,this._setup())}_handleOut(e){e.forEach(t=>{let s=t.target;t.isIntersecting||!s.$vevetInViewBool||(s.$vevetInViewBool=!1,s.$vevetInViewTimeout&&clearTimeout(s.$vevetInViewTimeout),s.$vevetInViewTimeout=setTimeout(()=>{this._handleInOut(s,!1)},0))})}_handleInOut(e,t){let s=e.getAttribute("data-in-view-class");s&&P(e,s,t),this.callbacks.emit(t?"in":"out",{element:e})}_getElementDelay(e){let{props:t}=this,s=v();if(!this.isInitialStart||t.maxInitialDelay<=0)return 0;let r=e.getBoundingClientRect(),n={top:0,left:0,width:s.width,height:s.height};return S(t.scrollDirection==="horizontal"?(r.left-n.left)/n.width:(r.top-n.top)/n.height,0,1)*t.maxInitialDelay}addElement(e){var t,s;let r=e;return r.$vevetInViewBool=void 0,this._elements.push(r),(t=this._observerIn)===null||t===void 0||t.observe(r),(s=this._observerOut)===null||s===void 0||s.observe(r),()=>this.removeElement(r)}removeElement(e){var t,s;let r=e;(t=this._observerIn)===null||t===void 0||t.unobserve(r),(s=this._observerOut)===null||s===void 0||s.unobserve(r),this._elements=this._elements.filter(n=>n!==e),r.$vevetInViewBool=void 0}_destroy(){super._destroy(),this._removeViewEvents()}};as([_],ve.prototype,"addElement",null);as([_],ve.prototype,"removeElement",null);var ls=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},be=class extends y{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{resizeDebounce:0,hasWillChange:!0,cloneNodes:!0,direction:"horizontal"})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{speed:1,gap:0,enabled:!0,pauseOnHover:!1,centered:!1,adjustSpeed:!0,pauseOnOut:!0})}get totalSize(){return this._totalSize}get totalWidth(){return this.totalSize}get coord(){return this._coord}set coord(e){this._coord=e,this.render(0)}get x(){return this.coord}set x(e){this.coord=e}get isVertical(){return this.props.direction==="vertical"}constructor(e){super(e),this._size=0,this._initialNodes=[],this._elements=[],this._sizes=[],this._totalSize=0,this._coord=0;let{container:t}=this.props,{isVertical:s}=this;if(!t)throw new Error("Marquee container is not defined");let r=le(t),{style:n}=t;n.position="relative",n.display="flex",n.flexDirection=s?"column":"row",n.alignItems="center",n.justifyContent=r==="rtl"?"flex-end":"flex-start",n.overflow="hidden",s?n.height="100%":n.width="100%",this._setup(),this._raf=new F({enabled:this.props.enabled,fpsRecalcFrames:1}),this._raf.on("frame",()=>{let l=this.props.adjustSpeed?this._raf.fpsFactor:1,c=R(this.props.speed);this._render(c*l)});let o=w(t,"mouseenter",()=>{this.props.pauseOnHover&&this._raf.pause()});this.onDestroy(()=>o());let a=w(t,"mouseleave",()=>{this.props.enabled&&this._raf.play()});this.onDestroy(()=>a()),this._intersection=new IntersectionObserver(this._handleIntersection.bind(this),{root:null}),this._intersection.observe(t)}_handleProps(){super._handleProps(),this.props.enabled?this._raf.play():this._raf.pause(),this.resize(),this.render(0)}_setup(){var e;if((e=this._lastSetup)===null||e===void 0||e.call(this),this.isDestroyed)return;let{container:t,resizeDebounce:s}=this.props;this._initialNodes=[...Array.from(t.childNodes)],this._wrapTextNode(),this._elements=Array.from(t.children),this._elements.forEach((o,a)=>this._applyNodeStyles(o,a!==0)),this.resize();let r=v().onLoad(()=>this.resize()),n=$({callback:()=>this.resize(),element:[t,...this._elements],viewportTarget:"width",resizeDebounce:s,name:this.name});this._lastSetup=()=>{r(),n.remove()}}_wrapTextNode(){let{container:e}=this.props,t=e.childNodes.length===1,s=e.childNodes[0];if(!s||s.nodeType!==3||!t)return;let r=m.createElement("span"),{style:n}=r;n.position="relative",n.display="block",n.width="max-content",n.whiteSpace="nowrap",r.appendChild(s),e.appendChild(r)}_applyNodeStyles(e,t){let s=e,{style:r}=s;r.position=t?"absolute":"relative",r.top=t&&!this.isVertical?"50%":"0",r.left=t&&this.isVertical?"50%":"0",r.willChange=this.props.hasWillChange?"transform":"",r.flexShrink="0",this.isVertical?r.height=r.height||"max-content":r.width=r.width||"max-content"}resize(){let{props:e,isVertical:t}=this,{container:s}=e,r=R(e.gap);this._size=t?s.offsetHeight:s.offsetWidth,this._sizes=this._elements.map(a=>(t?a.offsetHeight:a.offsetWidth)+r),this._totalSize=this._sizes.reduce((a,l)=>a+l,0);let n=Math.max(...this._sizes),o=Math.ceil((this._size+n)/this._totalSize);if(this._totalSize=Math.max(this._totalSize,this._size+n),e.cloneNodes&&o>1){for(let a=1;a<o;a+=1)this._elements.forEach(l=>{let c=l.cloneNode(!0);this._applyNodeStyles(c,!0),s.appendChild(c)});this._elements=Array.from(s.children),this.resize()}this.callbacks.emit("resize",void 0),setTimeout(()=>this.render(0),0)}render(e){this._render(e)}_render(e=this.props.speed){if(this.isDestroyed)return;let{isVertical:t,props:s}=this;this._coord-=R(e);let r=this._size*.5+this._sizes[0]/2-R(s.gap),n=this._coord+(s.centered?r:0),o=0;for(let a=0;a<this._elements.length;a+=1){let l=this._elements[a],c=this._sizes[a],{style:d}=l,h=U(n+o,-c,this._totalSize-c);if(t){let p=d.position==="relative"?"0":"-50%";d.transform=`translate(${p}, ${h}px)`}else{let p=d.position==="relative"?"0":"-50%";d.transform=`translate(${h}px, ${p})`}o+=c}this.callbacks.emit("render",void 0)}_handleIntersection(e){this.props.pauseOnOut&&e.forEach(t=>{t.isIntersecting&&this.props.enabled?this._raf.play():this._raf.pause()})}_destroy(){var e,t;let{container:s}=this.props;for(super._destroy(),this._raf.destroy(),(e=this._intersection)===null||e===void 0||e.disconnect(),(t=this._lastSetup)===null||t===void 0||t.call(this);s.firstChild;)s.removeChild(s.firstChild);this._initialNodes.forEach(r=>s.appendChild(r))}};ls([_],be.prototype,"resize",null);ls([_],be.prototype,"render",null);var te=W?m.createElement("style"):null;te&&(te.innerHTML="* { user-select: none !important; }");var we=class extends y{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{buttons:[0],relative:!1,minPointers:1,maxPointers:5,disableUserSelect:!0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{enabled:!0})}get isStarted(){return this._isStarted}get pointersMap(){return this._pointersMap}get container(){return this.props.container}get minPointers(){return S(this.props.minPointers,1,1/0)}get maxPointers(){return S(this.props.maxPointers,this.props.minPointers,1/0)}constructor(e){super(e),this._listeners=[],this._isStarted=!1,this._pointersMap=new Map,this._setBaseEvents()}_setBaseEvents(){let{container:e}=this,t=w(e,"pointerdown",o=>this._handlePointerDown(o)),s=w(e,"dragstart",o=>o.preventDefault(),{passive:!1}),r=w(e,"mousedown",o=>{this.props.buttons.includes(1)&&o.preventDefault()},{passive:!1}),n=w(e,"contextmenu",o=>{this.props.buttons.includes(2)&&o.preventDefault()},{passive:!1});this.onDestroy(()=>{t(),s(),r(),n()})}_setRuntimeEvents(){if(this._listeners.length>0)return;let t=w(window,"pointermove",o=>this._handlePointerMove(o),{passive:!1}),s=w(window,"pointerup",o=>this._handlePointerUp(o),{passive:!1}),r=w(window,"pointercancel",()=>this._handleCancel(),{passive:!1}),n=w(window,"blur",()=>this._handleCancel());this._listeners=[t,s,r,n]}_handlePointerDown(e){let{props:t}=this,{x:s,y:r}=this._decodeCoords(e);if(!t.enabled||!t.buttons.includes(e.button)||this.pointersMap.get(e.pointerId)||this.pointersMap.size>=this.maxPointers)return;let o={id:e.pointerId,index:this.pointersMap.size,start:{x:s,y:r},prev:{x:s,y:r},current:{x:s,y:r},diff:{x:0,y:0},step:{x:0,y:0},accum:{x:0,y:0}};this.pointersMap.set(e.pointerId,o);let a=0;this.pointersMap.forEach(l=>{l.index=a,a+=1}),this.pointersMap.size===this.minPointers&&(this._isStarted=!0,this.callbacks.emit("start",void 0)),this._setRuntimeEvents(),t.disableUserSelect&&I.append(te),this.callbacks.emit("pointerdown",{event:e,pointer:o})}_handlePointerMove(e){let t=this.pointersMap.get(e.pointerId);if(!t)return;let{x:s,y:r}=this._decodeCoords(e);t.prev=Object.assign({},t.current),t.current={x:s,y:r},t.diff.x=t.current.x-t.start.x,t.diff.y=t.current.y-t.start.y,t.step.x=t.current.x-t.prev.x,t.step.y=t.current.y-t.prev.y,t.accum.x+=Math.abs(t.step.x),t.accum.y+=Math.abs(t.step.y),this.callbacks.emit("pointermove",{event:e,pointer:t})}_handlePointerUp(e){let t=this.pointersMap.get(e.pointerId);t&&(this.callbacks.emit("pointerup",{pointer:t}),this.pointersMap.delete(e.pointerId),this.pointersMap.size<this.minPointers&&this._isStarted&&(this._isStarted=!1,this.callbacks.emit("end",void 0)),this.pointersMap.size===0&&this._cleanup())}_handleCancel(){this.callbacks.emit("end",void 0),this.pointersMap.forEach(e=>{this.callbacks.emit("pointerup",{pointer:e})}),this._cleanup()}_resetSelection(){var e,t;(e=window.getSelection())===null||e===void 0||e.empty(),(t=window.getSelection())===null||t===void 0||t.removeAllRanges()}_decodeCoords(e){let{container:t,props:s}=this;if(!s.relative)return{x:e.clientX,y:e.clientY};let r=t.getBoundingClientRect(),n=e.clientX-r.left,o=e.clientY-r.top;return{x:n,y:o}}_cleanup(){this._listeners.forEach(e=>e()),this._listeners=[],this._isStarted=!1,this.pointersMap.clear(),this.props.disableUserSelect&&(this._resetSelection(),te===null||te===void 0||te.remove())}_destroy(){this._cleanup(),super._destroy()}};function We(i){return typeof i=="undefined"}var Ve=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},D=class extends y{_getStatic(){return Object.assign({},super._getStatic())}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{easing:v().props.easing,duration:1e3})}get progress(){return this._progress}set progress(e){this._progress=S(e),this._onUpdate()}get eased(){return this._eased}get isPlaying(){return!We(this._raf)}get isReversed(){return this._isReversed}get isPaused(){return this._isPaused}get duration(){let e=this.props.duration;return Number.isNaN(e)||!Number.isFinite(e)||e<0?0:this.props.duration}constructor(e){super(e),this._progress=0,this._eased=0,this._raf=void 0,this._time=0,this._isReversed=!1,this._isPaused=!1}play(){this.progress!==1&&(this._isReversed=!1,this._isPaused=!1,this.isPlaying||(this._time=Date.now(),this._animate()))}reverse(){this.progress!==0&&(this._isReversed=!0,this._isPaused=!1,this.isPlaying||(this._time=Date.now(),this._animate()))}pause(){this._isPaused=!0,this._raf&&window.cancelAnimationFrame(this._raf),this._raf=void 0}reset(){this.pause(),this.progress=0}_animate(){if(this.isPaused)return;let{isReversed:e,duration:t}=this;if(t<=0){this.progress=e?1:0,this.progress=e?0:1;return}let s=Date.now(),r=Math.abs(this._time-s);this._time=s;let n=r/t/(e?-1:1),o=this.progress+n;if(this.progress=o,this.progress===1&&!e||this.progress===0&&e){this._isReversed=!1,this._isPaused=!1,this._raf=void 0;return}this._raf=window.requestAnimationFrame(()=>this._animate())}_onUpdate(){if(this._eased=Vt(this._progress,this.props.easing),this.callbacks.emit("update",{progress:this._progress,eased:this._eased}),this.progress===0){this.callbacks.emit("start",void 0);return}this.progress===1&&this.callbacks.emit("end",void 0)}_destroy(){this.pause(),super._destroy()}};Ve([_],D.prototype,"play",null);Ve([_],D.prototype,"reverse",null);Ve([_],D.prototype,"pause",null);Ve([_],D.prototype,"reset",null);var ye=class extends y{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{hide:250})}_getMutable(){return Object.assign({},super._getMutable())}get isHidden(){return this._isHidden}constructor(e){super(e),this._shouldHide=!1,this._isHidden=!1,this._isLoaded=!1;let t=setTimeout(()=>{this._onLoaded(()=>this._handleLoaded())},0);this.onDestroy(()=>clearTimeout(t))}_onLoaded(e){v().onLoad(e)}_handleLoaded(){this.isDestroyed||(this._isLoaded=!0,this.callbacks.emit("loaded",void 0),V(this.props.hide)&&this.hide(this.props.hide))}hide(e,t){if(this.isDestroyed||!this._isLoaded||this._shouldHide)return;let s=!1;return this._shouldHide=!0,this.callbacks.emit("hide",void 0),this._hideContainer(()=>{this._onHidden(),s||t==null||t()},e),()=>{s=!0}}_hideContainer(e,t){let{container:s}=this.props;if(!s){e();return}let r=new D({duration:t});this.onDestroy(()=>r.destroy()),r.on("update",({progress:n})=>{let{style:o}=s;o.opacity=String(1-n),o.display=n===1?"none":"flex"}),r.on("end",()=>e()),r.play()}_onHidden(){this._isHidden=!0,this.callbacks.emit("hidden",void 0)}onHide(e){return this.isDestroyed?()=>{}:this._shouldHide?(e(),()=>{}):this.on("hide",()=>e())}onHidden(e){return this.isDestroyed?()=>{}:this._isHidden?(e(),()=>{}):this.on("hidden",()=>e())}};function cs(i,e){if(i.complete){e();return}let t=new Image;t.addEventListener("load",()=>e()),t.addEventListener("error",()=>e()),t.crossOrigin="anonymous",t.src=i.currentSrc||i.src}function hs(i,e){if(i.readyState>0){e();return}if(i.preload==="none"){e();return}i.addEventListener("error",()=>e()),i.addEventListener("loadedmetadata",()=>e())}function ds(i){let e=parseFloat(i.getAttribute("data-loaded")||"0");return e=Number.isNaN(e)?0:S(e,0,1/0),e}function ps({id:i,weight:e},t){if(!(i instanceof Element))return;if(ds(i)>=e){t(e);return}let s=new MutationObserver(()=>{let r=ds(i);t(r),r>=e&&s.disconnect()});s.observe(i,{attributes:!0,attributeFilter:["data-loaded"]})}var fs=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},us=`vevet-page-${Math.random()}`,xe=class extends ye{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{preloadImages:!0,preloadVideos:!1,customSelector:".js-preload",ignoreClassName:"js-preload-ignore",lerp:.1,endDuration:500})}_getMutable(){return Object.assign({},super._getMutable())}get resources(){return this._resources}get totalWeight(){return this.resources.reduce((e,{weight:t})=>e+t,0)}get loadedWeight(){return this.resources.reduce((e,{loaded:t})=>e+t,0)}get loadProgress(){return this.loadedWeight/this.totalWeight}get progress(){return this._progress}constructor(e){super(e),this._resources=[{id:us,weight:1,loaded:0}],this._progress=0,this._raf=new F,this._raf.on("frame",({lerpFactor:t})=>{this._handleUpdate(L(this._progress,this.loadProgress,t(this.props.lerp)))}),this._raf.play(),this._fetchImages(),this._fetchVideos(),this._fetchResources(),v().onLoad(()=>this.resolveResource(us))}_fetchImages(){if(!this.props.preloadImages)return;let e=Array.from(m.querySelectorAll("img"));e=e.filter(t=>!K(t,this.props.ignoreClassName)&&t.loading!=="lazy"),this._resources.push(...e.map(t=>({id:t,weight:1,loaded:0}))),e.forEach(t=>{cs(t,()=>this.resolveResource(t))})}_fetchVideos(){if(!this.props.preloadVideos)return;let e=Array.from(m.querySelectorAll("video"));e=e.filter(t=>!K(t,this.props.ignoreClassName)),this._resources.push(...e.map(t=>({id:t,weight:1,loaded:0}))),e.forEach(t=>{hs(t,()=>this.resolveResource(t))})}_fetchResources(){let e=Array.from(m.querySelectorAll(this.props.customSelector));e=e.filter(t=>!K(t,this.props.ignoreClassName)),e.forEach(t=>{let s=parseInt(t.getAttribute("data-weight")||"1",10);s=Number.isNaN(s)?1:S(s,1,1/0);let r={id:t,weight:s,loaded:0};this._resources.push(r),ps(r,n=>this.resolveResource(t,n))})}addResource(e,t=1){if(this.resources.some(r=>r.id===e))throw new Error("Resource already exists");this._resources.push({id:e,weight:t,loaded:0})}resolveResource(e,t){let s=this.resources.find(n=>n.id===e);if(!s)return;let r=t!=null?t:s.weight;s.loaded=S(r,0,s.weight),this.callbacks.emit("resource",s)}_handleUpdate(e){var t;if(this._progress=e,this.callbacks.emit("progress",void 0),this.loadProgress<1)return;(t=this._raf)===null||t===void 0||t.destroy();let s=this.progress;if(s>=1)return;let r=new D({duration:this.props.endDuration});this.onDestroy(()=>r.destroy()),r.on("update",({progress:n})=>{let o=1-s;this._progress=s+o*n,this.callbacks.emit("progress",void 0)}),r.play()}_onLoaded(e){let t=!1;this.callbacks.on("progress",()=>{this.progress>=1&&!t&&(t=!0,e())},{protected:!0,name:this.name})}_destroy(){super._destroy(),this._raf.destroy()}};fs([_],xe.prototype,"addResource",null);fs([_],xe.prototype,"resolveResource",null);var he=null;function ms(i){return he||(he=m.createElement("style"),I.appendChild(he),he.innerHTML=`
100
+ .${i}-scrollable {
97
101
  -ms-overflow-style: none;
98
102
  scrollbar-width: none;
99
103
  }
100
104
 
101
- .${s}-scrollable::-webkit-scrollbar {
105
+ .${i}-scrollable::-webkit-scrollbar {
102
106
  display: none;
103
107
  appearance: none;
104
108
  width: 0;
105
109
  height: 0;
106
110
  }
107
111
 
108
- .${s} {
112
+ .${i} {
109
113
  position: absolute;
110
114
  z-index: 1;
111
115
  display: flex;
@@ -119,53 +123,53 @@ presetVevetCss();`;function b(s,e=0,t=1){let i=Math.min(e,t),r=Math.max(e,t);ret
119
123
  transition: opacity 0.25s linear, visibility 0.25s linear;
120
124
  }
121
125
 
122
- .${s}.${s}_in-window {
126
+ .${i}.${i}_in-window {
123
127
  position: fixed;
124
128
  z-index: 9;
125
129
  }
126
130
 
127
- .${s}.${s}_inited {
131
+ .${i}.${i}_inited {
128
132
  opacity: 1;
129
133
  visibility: visible;
130
134
  }
131
135
 
132
- .${s}.${s}_empty {
136
+ .${i}.${i}_empty {
133
137
  opacity: 0;
134
138
  visibility: hidden;
135
139
  }
136
140
 
137
- .${s}.${s}_auto-hide {
141
+ .${i}.${i}_auto-hide {
138
142
  opacity: 0;
139
143
  }
140
144
 
141
- .${s}.${s}_auto-hide:hover,
142
- .${s}.${s}_auto-hide:active,
143
- .${s}.${s}_in-action {
145
+ .${i}.${i}_auto-hide:hover,
146
+ .${i}.${i}_auto-hide:active,
147
+ .${i}.${i}_in-action {
144
148
  opacity: 1;
145
149
  }
146
150
 
147
- .${s}_y {
151
+ .${i}_y {
148
152
  top: 0;
149
153
  right: 0;
150
154
  width: 10px;
151
155
  height: 100%;
152
156
  }
153
157
 
154
- .${s}_x {
158
+ .${i}_x {
155
159
  bottom: 0;
156
160
  left: 0;
157
161
  width: 100%;
158
162
  height: 10px;
159
163
  }
160
164
 
161
- .${s}__track {
165
+ .${i}__track {
162
166
  position: relative;
163
167
  width: 100%;
164
168
  height: 100%;
165
169
  background: #ccc;
166
170
  }
167
171
 
168
- .${s}__thumb {
172
+ .${i}__thumb {
169
173
  position: absolute;
170
174
  top: 0;
171
175
  left: 0;
@@ -173,7 +177,7 @@ presetVevetCss();`;function b(s,e=0,t=1){let i=Math.min(e,t),r=Math.max(e,t);ret
173
177
  height: 100%;
174
178
  background: #333;
175
179
  }
176
- `,Q)}var q=typeof window!="undefined"?document.createElement("style"):null;q&&(q.innerHTML="* { cursor: grabbing !important; }");var qi=4,V=class extends v{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{buttons:[0],pointers:1,disableUserSelect:!0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{enabled:!0,relative:!1,axis:null,grabCursor:!1,willAbort:()=>!1,threshold:5,minTime:0,directionThreshold:50,preventEdgeSwipe:!0,edgeSwipeThreshold:20,preventTouchMove:!0,requireCtrlKey:!1,inertia:!1,inertiaDuration:e=>b(e,500,2e3),inertiaEasing:W,velocityModifier:!1,distanceModifier:!1,inertiaRatio:1,inertiaDistanceThreshold:50})}get isSwiping(){return this._isSwiping}get coords(){return this._coords}get container(){return this.props.container}get hasInertia(){return!!this._inertia}constructor(e){super(e),this._isSwiping=!1,this._isAborted=!1;let{container:t,buttons:i,pointers:r}=this.props;this._coords={timestamp:0,start:{x:0,y:0,angle:0},prev:{x:0,y:0,angle:0},current:{x:0,y:0,angle:0},diff:{x:0,y:0,angle:0},step:{x:0,y:0,angle:0},accum:{x:0,y:0}},this._velocities=[],this._cursorStyles=q===null||q===void 0?void 0:q.cloneNode(!0),this._pointers=new J({container:t,buttons:i,minPointers:r,maxPointers:r,enabled:this.props.enabled,disableUserSelect:this.props.disableUserSelect}),this._pointers.on("start",()=>this._handlePointersStart());let n=_(t,"touchstart",o=>this._handleTouchStart(o),{passive:!1});this.onDestroy(()=>n()),this._setInlineStyles()}_handleProps(){super._handleProps(),this._pointers.updateProps({enabled:this.props.enabled}),this._setInlineStyles()}_setInlineStyles(){let{container:e,axis:t}=this.props,i=this.props.grabCursor?"grab":"",r="none";t==="x"?r="pan-y":t==="y"&&(r="pan-x"),e.style.cursor=i,e.style.touchAction=r}_handleTouchStart(e){this.props.enabled&&(this.callbacks.emit("touchstart",e),this._preventEdgeSwipe(e))}_preventEdgeSwipe(e){if(!this.props.preventEdgeSwipe)return;let t=this.props.edgeSwipeThreshold,i=e.targetTouches[0].pageX;e.cancelable&&(i<=t||i>=m().width-t)&&(e.preventDefault(),this.callbacks.emit("preventEdgeSwipe",void 0))}_handlePointersStart(){let e=_(window,"touchmove",this._handleTouchMove.bind(this),{passive:!1}),t=_(window,"mousemove",this._handleMouseMove.bind(this)),i=this._pointers.on("end",()=>{this._handleEnd(),i(),e(),t()});this.onDestroy(()=>{i(),e(),t()})}_handleTouchMove(e){this.callbacks.emit("touchmove",e),this._isSwiping&&this.props.preventTouchMove&&e.cancelable&&e.preventDefault(),this._handleMove(this._decodeCoords(e),"touch")}_handleMouseMove(e){this.props.requireCtrlKey&&!e.ctrlKey||(this.callbacks.emit("mousemove",e),this._handleMove(this._decodeCoords(e),"mouse"))}_decodeCoords(e){let{props:t}=this,i="touches"in e?e.touches[0].clientX:e.clientX,r="touches"in e?e.touches[0].clientY:e.clientY,n=i,o=r,a=m().width/2,h=m().height/2;if(t.relative){let c=t.container.getBoundingClientRect();n=i-c.left,o=r-c.top,a=c.left+c.width/2,h=c.top+c.height/2}let d=Math.atan2(r-h,i-a)*180/Math.PI;return{x:n,y:o,angle:d}}_handleMove(e,t){let i=this._coords;if(!this._isAborted){if(this._startCoord||(this._startCoord=Object.assign({},e)),this._startTime||(this._startTime=+Date.now()),!this._isSwiping){let{threshold:r,minTime:n,axis:o,willAbort:a}=this.props,h={x:e.x-this._startCoord.x,y:e.y-this._startCoord.y};if(Math.sqrt(Math.pow(h.x,2)+Math.pow(h.y,2))<r||+new Date-this._startTime<n)return;if(o){let l=Math.atan2(Math.abs(h.y),Math.abs(h.x))*180/Math.PI;if((o==="x"?l:90-l)>45){this._reset(),this._isAborted=!0,this.callbacks.emit("abort",void 0);return}}if(a({type:t,matrix:e,start:this._startCoord,diff:h})){this._reset(),this._isAborted=!0,this.callbacks.emit("abort",void 0);return}}this._isSwiping||(this.cancelInertia(),this._isSwiping=!0,this._startCoord=Object.assign({},e),i.timestamp=performance.now(),i.start=Object.assign(Object.assign({},this._startCoord),{angle:e.angle}),i.prev=Object.assign(Object.assign({},this._startCoord),{angle:e.angle}),i.current=Object.assign(Object.assign({},this._startCoord),{angle:e.angle}),i.diff={x:0,y:0,angle:0},i.step={x:0,y:0,angle:0},i.accum={x:0,y:0},this.callbacks.emit("start",this._coords),this.props.grabCursor&&this._cursorStyles&&m().body.append(this._cursorStyles)),this._move(e)}}_move({x:e,y:t,angle:i}){let r=this._coords,n=Object.assign({},r.start),o=Object.assign({},r.current),a={x:e,y:t,angle:i};r.timestamp=performance.now(),r.prev=o,r.current=a;let h=r.current.angle-r.prev.angle;h>180?h-=360:h<-180&&(h+=360),r.step={x:a.x-o.x,y:a.y-o.y,angle:h},r.diff={x:a.x-n.x,y:a.y-n.y,angle:r.diff.angle+r.step.angle},r.accum={x:r.accum.x+Math.abs(r.step.x),y:r.accum.y+Math.abs(r.step.y)},this.hasInertia||(this._velocities.push(Object.assign(Object.assign({},r.current),{timestamp:r.timestamp})),this._velocities.length>qi&&this._velocities.shift()),this.callbacks.emit("move",this._coords)}_handleEnd(){if(this._startTime=void 0,this._isAborted=!1,!this.isSwiping)return;this._reset(),this._cursorStyles.remove();let{x:e,y:t}=this._coords.diff,i=Math.abs(e),r=Math.abs(t),{directionThreshold:n}=this.props,o=i>r?"x":"y";o==="x"&&i>n&&(e>0?this.callbacks.emit("toRight",void 0):e<0&&this.callbacks.emit("toLeft",void 0)),o==="y"&&r>n&&(t>0?this.callbacks.emit("toBottom",void 0):t<0&&this.callbacks.emit("toTop",void 0)),this.callbacks.emit("end",this._coords),this._velocities.length>0&&(this._velocities[this._velocities.length-1].timestamp=performance.now()),this.props.inertia&&this._endWithInertia()}_reset(){this._startCoord=void 0,this._isSwiping=!1}get velocity(){let e=this._velocities;if(e.length<2)return{x:0,y:0,angle:0};let t=0,i=0,r=0,n=0;for(let o=1;o<e.length;o+=1){let a=e[o],h=e[o-1],l=a.x-h.x,d=a.y-h.y,c=a.angle-h.angle;c>180&&(c-=360),c<-180&&(c+=360);let p=Math.max(a.timestamp-h.timestamp,1),w=l/p*1e3,u=d/p*1e3,f=c/p*1e3,g=1/Math.exp(-p*.1);i+=w*g,r+=u*g,n+=f*g,t+=g}return t>0?{x:i/t,y:r/t,angle:n/t}:{x:0,y:0,angle:0}}_endWithInertia(){let{inertiaDuration:e,inertiaEasing:t,velocityModifier:i,inertiaRatio:r,inertiaDistanceThreshold:n}=this.props,o={x:this.velocity.x*r,y:this.velocity.y*r,angle:this.velocity.angle*r},a=i?i(o):o,{x:h,y:l,angle:d}=a,c=Math.sqrt(Math.pow(h,2)+Math.pow(l,2));if(c<n){this.callbacks.emit("inertiaFail",void 0);return}let p=e(c);if(Number.isNaN(p)||!Number.isFinite(p)||p<=0){this.callbacks.emit("inertiaFail",void 0);return}let w=Object.assign({},this.coords.current),u={x:0,y:0,angle:0};this._inertia=new P({duration:p,easing:t}),this._inertia.on("start",()=>{this.callbacks.emit("inertiaStart",void 0)}),this._inertia.on("update",({eased:f})=>{u.x=h*f,u.y=l*f,u.angle=d*f,this._move({x:w.x+u.x,y:w.y+u.y,angle:w.angle+u.angle}),this.callbacks.emit("inertia",void 0)}),this._inertia.on("end",()=>{this.cancelInertia(),this.callbacks.emit("inertiaEnd",void 0)}),setTimeout(()=>{var f;(f=this._inertia)===null||f===void 0||f.play()},0)}cancelInertia(){var e;this._inertia&&(this._inertia.progress<1&&this.callbacks.emit("inertiaCancel",void 0),(e=this._inertia)===null||e===void 0||e.destroy(),this._inertia=void 0)}get start(){return this._coords.start}get prev(){return this._coords.prev}get current(){return this._coords.current}get diff(){return this._coords.diff}get step(){return this._coords.step}get accum(){return this._coords.accum}_destroy(){var e;super._destroy(),this._pointers.destroy(),(e=this._inertia)===null||e===void 0||e.destroy(),this._cursorStyles.remove()}};var pt=class extends v{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{container:window,parent:!1,class:!1,axis:"y",draggable:!0,autoHide:!0,resizeDebounce:10})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{minSize:50,autoSize:!0})}get prefix(){return`${m().prefix}scrollbar`}get container(){return this._props.container}get outer(){return this._outer}get track(){return this._track}get thumb(){return this._thumb}constructor(e){super(e),this._valueOnSwipeStart=0,this._prevScrollValue=0,ks(this.prefix),this._create(),this._setResize(),this._setOnscroll(),this._setSwipe(),this.outer.classList.add(this._cn("_inited"))}_handleProps(){super._handleProps(),this.resize()}get axis(){return this.props.axis}get parent(){let{parent:e,container:t}=this.props;return e||(t instanceof Window?m().body:t)}get scrollElement(){return this.container instanceof Window?m().html:this.container}get scrollSize(){let{scrollElement:e}=this;return this.axis==="x"?e.scrollWidth:e.scrollHeight}get scrollableSize(){let{scrollElement:e}=this;return this.axis==="x"?this.scrollSize-e.clientWidth:this.scrollSize-e.clientHeight}get scrollValue(){let{axis:e}=this;return this.container instanceof Window?e==="x"?window.scrollX:window.scrollY:e==="x"?this.container.scrollLeft:this.container.scrollTop}get trackSize(){return this.axis==="x"?this._track.offsetWidth:this._track.offsetHeight}get thumbSize(){return this.axis==="x"?this._thumb.offsetWidth:this._thumb.offsetHeight}_create(){let e=m(),{parent:t,scrollElement:i}=this,r=this.container instanceof Window;this._outer=this._createOuter(),t.appendChild(this._outer),this._track=this._createTrack(),this._outer.appendChild(this._track),this._thumb=this._createThumb(),this._track.appendChild(this._thumb),r?(this._addTempClassName(e.html,this._cn("-scrollable")),this._addTempClassName(e.body,this._cn("-scrollable"))):this._addTempClassName(i,this._cn("-scrollable")),this.onDestroy(()=>this._outer.remove())}_createOuter(){let e=this._cn.bind(this),{props:t,axis:i}=this,r=document.createElement("div");return r.classList.add(e("")),r.classList.add(e(`_${i}`)),t.class&&r.classList.add(t.class),this.container instanceof Window&&this._addTempClassName(r,this._cn("_in-window")),t.autoHide&&this._addTempClassName(r,this._cn("_auto-hide")),r}_createTrack(){let e=this._cn.bind(this),{axis:t}=this,i=document.createElement("div");return i.classList.add(e("__track")),i.classList.add(e(`__track_${t}`)),i}_createThumb(){let e=this._cn.bind(this),t=document.createElement("div");return t.classList.add(e("__thumb")),t.classList.add(e(`__thumb_${this.axis}`)),t}_setResize(){let e=()=>{let r=Array.from(this.scrollElement.children);return I({element:[this.track,this.parent,this.scrollElement,...r],viewportTarget:"width",resizeDebounce:this.props.resizeDebounce,callback:()=>this.resize()})},t=e();t.resize();let i=new MutationObserver(()=>{t.remove(),t=e(),t.debounceResize()});i.observe(this.scrollElement,{childList:!0}),this.onDestroy(()=>{t.remove(),i.disconnect()})}_setOnscroll(){let e=_(this.container,"scroll",()=>this._onScroll(),{passive:!0});this.onDestroy(()=>e())}_setSwipe(){if(!this.props.draggable)return;let e=new V({container:this.thumb,grabCursor:!0});e.on("start",t=>{this._valueOnSwipeStart=this.scrollValue,this.callbacks.emit("swipeStart",t)}),e.on("move",t=>{this._onSwipeMove(t),this.callbacks.emit("swipe",t)}),e.on("end",t=>{this.callbacks.emit("swipeEnd",t)}),e.on("touchmove",t=>{t.stopPropagation(),t.stopImmediatePropagation()}),e.on("mousemove",t=>{t.stopPropagation(),t.stopImmediatePropagation()}),this.onDestroy(()=>e.destroy())}resize(){let{scrollableSize:e,scrollSize:t,outer:i,track:r,thumb:n,props:o,axis:a}=this,{autoSize:h}=o,l=a==="x";i.classList.toggle(this._cn("_empty"),e===0);let d=l?r.offsetWidth:r.offsetHeight,c=M(o.minSize),p=c;h&&(p=b(d/(t/d),c,1/0)),l?n.style.width=`${p}px`:n.style.height=`${p}px`,this._addInActionTimeout&&clearTimeout(this._addInActionTimeout),this._render(),this.callbacks.emit("resize",void 0)}_render(){let{scrollValue:e,scrollableSize:t,axis:i,thumbSize:r,trackSize:n}=this,o=b(e/t),a=(n-r)*o,h=i==="x"?a:0,l=i==="y"?a:0;this._thumb.style.transform=`translate(${h}px, ${l}px)`,this.callbacks.emit("update",void 0)}_onScroll(){let{scrollValue:e,outer:t}=this,i=this._cn("_in-action");e!==this._prevScrollValue?this._addInActionTimeout=setTimeout(()=>{t.classList.contains(i)||(t.classList.add(i),this.callbacks.emit("show",void 0))},50):this._prevScrollValue=e,this._render(),this._removeInActionTimeout&&clearTimeout(this._removeInActionTimeout),this._removeInActionTimeout=setTimeout(()=>{t.classList.remove(i),this.callbacks.emit("hide",void 0)},500)}_onSwipeMove({diff:e}){let{scrollElement:t,axis:i,trackSize:r,thumbSize:n,scrollableSize:o}=this,h=(i==="x"?e.x:e.y)/(r-n)*o,l=this._valueOnSwipeStart+h;t.scrollTo({top:i==="y"?l:void 0,left:i==="x"?l:void 0,behavior:"instant"})}_destroy(){super._destroy(),this._addInActionTimeout&&clearTimeout(this._addInActionTimeout),this._removeInActionTimeout&&clearTimeout(this._removeInActionTimeout)}};var ft=class extends v{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{root:null,optimized:!0,useSvh:!1})}_getMutable(){return Object.assign({},super._getMutable())}get section(){return this.props.section}get isVisible(){return this._isVisible}get rootBounds(){return this._rootBounds}get sectionBounds(){return this._sectionBounds}constructor(e){super(e),this._isVisible=!1,this._rootBounds={top:0,left:0,width:1,height:1},this._sectionBounds={top:0,left:0,width:1,height:1},this._isVisible=!this.props.optimized,this._setup()}_setup(){this._setupObserver(),this._setupScroll()}_setupObserver(){if(!this.props.optimized)return;let{section:e}=this.props,t=new IntersectionObserver(i=>{i.forEach(r=>{r.target===e&&(this._isVisible=r.isIntersecting,this.update())})});t.observe(e),this.onDestroy(()=>t.disconnect())}_setupScroll(){let e=this.props.root||window,t=_(e,"scroll",()=>{this._isVisible&&this.update()},{passive:!1});this.onDestroy(t)}update(){let{section:e,props:t}=this,i=t.root,r=m(),n=e.getBoundingClientRect(),o={top:0,left:0,width:r.width,height:t.useSvh?r.sHeight:r.height};this._rootBounds=i?i.getBoundingClientRect():o,this._sectionBounds={top:n.top-this._rootBounds.top,left:n.left-this._rootBounds.left,width:n.width,height:n.height},this.callbacks.emit("update",void 0)}getProgress(e,t,i,r){let n=de(this._sectionBounds.top,[e,i]),o=de(this._sectionBounds.left,[r,t]);return{x:Number.isNaN(o)?0:o,y:Number.isNaN(n)?0:n}}get inProgress(){let{rootBounds:e,sectionBounds:t}=this,i=this.rootBounds.height,r=t.width>e.width?0:e.width-t.width,n=t.height>e.height?0:e.height-t.height,o=this.rootBounds.width;return this.getProgress(i,r,n,o)}get outProgress(){let{rootBounds:e,sectionBounds:t}=this,i=Math.min(e.height-t.height,0),r=-t.width,n=-t.height,o=Math.min(e.width-t.width,0);return this.getProgress(i,r,n,o)}get moveProgress(){let{rootBounds:e,sectionBounds:t}=this,i=t.height>e.height?0:e.height-t.height,r=t.width>e.width?-(t.width-e.width):0,n=t.height>e.height?-(t.height-e.height):0,o=t.width>e.width?0:e.width-t.width;return this.getProgress(i,r,n,o)}get progress(){let{sectionBounds:e,rootBounds:t}=this,i=t.height,r=-e.width,n=-e.height,o=t.width;return this.getProgress(i,r,n,o)}};var Y=class{constructor(e,t={}){this._element=e,this._coord=0,this._isAppended=!1,this._isVisible=!1,this._staticCoord=0,this._progress=0,this._id=K("snap-slide"),this._index=0;let i={virtual:!1};if(this._props=Object.assign(Object.assign({},i),t),this.props.virtual&&(!t.size||t.size==="auto"))throw new Error("Virtual slide must have a size")}get element(){return this._element}get props(){return this._props}get id(){return this._id}get index(){return this._index}get snap(){return this._snap}get coord(){return this._coord}setCoord(e){var t,i;this._coord=e,this._isVisible=this.size>0&&this.coord>-this.size&&this.coord<((i=(t=this.snap)===null||t===void 0?void 0:t.domSize)!==null&&i!==void 0?i:0)}get staticCoord(){return this._staticCoord}setStaticCoord(e){this._staticCoord=e}get progress(){return this._progress}setProgress(e){this._progress=e}get sizeProp(){var e,t,i;return(i=(e=this.props.size)!==null&&e!==void 0?e:(t=this.snap)===null||t===void 0?void 0:t.props.slideSize)!==null&&i!==void 0?i:"auto"}get size(){var e;let{snap:t,sizeProp:i}=this;return t?i==="stretch"?t.domSize:i==="auto"?(e=this._domSize)!==null&&e!==void 0?e:t.domSize:M(i):0}get isVisible(){return this._isVisible}resize(e=!1){let{element:t,snap:i}=this;if(i){if(t){let{direction:r}=i.props;this._domSize=r==="horizontal"?t.offsetWidth:t.offsetHeight}i.resize(e)}}attach(e,t){this.detach(),this._snap=e,this._index=t,this.element&&this.sizeProp==="auto"&&(this._onResize=I({element:this.element,viewportTarget:"width",callback:()=>this.resize(),name:"Snap Slide"})),this.resize()}detach(){var e;this._snap=void 0,(e=this._onResize)===null||e===void 0||e.remove()}render(){this._toggleAppend()}_toggleAppend(){if(!this.props.virtual||!this.element||!this.snap)return;let{element:e}=this,{container:t}=this.snap;this.isVisible&&!this._isAppended?(this._isAppended=!0,t.appendChild(e)):!this.isVisible&&this._isAppended&&(this._isAppended=!1,t.removeChild(e))}get magnets(){if(!this.snap)return[];let{snap:e,staticCoord:t,size:i,index:r}=this,{domSize:n,track:o,firstSlideSize:a}=e,h=[];if(r===0&&e.props.loop&&h.push(o.max),e.props.centered){let l=t+i/2-a/2;i>n?(h.push(l),h.push(l+(n-i)/2),h.push(l-(n-i)/2)):h.push(l)}else h.push(t),i>n&&h.push(t+(i-n));return!o.canLoop&&!e.props.centered&&(h=h.map(l=>b(l,0,o.max))),h}};var mt=6,fe=class{constructor(e){this._snap=e,this._hasStarted=!1,this._deltas=[],this._lastWheelTime=0,e.on("destroy",()=>this._destroy(),{protected:!0}),this._destructor=_(e.eventsEmitter,"wheel",t=>this._handleWheel(t))}_destroy(){this._destructor(),this._debounceEnd&&clearTimeout(this._debounceEnd)}get snap(){return this._snap}get absDeltas(){return this._deltas.map(e=>Math.abs(e))}get lastWheelTime(){return this._lastWheelTime}_handleWheel(e){let{snap:t}=this,{props:i}=t;if(!i.wheel)return;e.preventDefault();let r=Ce(e),o=(i.wheelAxis==="auto"?t.axis:i.wheelAxis)==="x"?r.pixelX:r.pixelY;this._handleStart(o),this._handleMove(o,e),this._debounceEnd&&clearTimeout(this._debounceEnd),this._debounceEnd=setTimeout(()=>this._handleEnd(),200)}_handleStart(e){this._hasStarted||Math.abs(e)<2||(this._hasStarted=!0,this.snap.callbacks.emit("wheelStart",void 0))}_handleMove(e,t){if(!this._hasStarted)return;let{snap:i}=this,{props:r}=i;this._addDelta(e),i.callbacks.emit("wheel",t),r.followWheel?this._handleFollow(e):this._handleNoFollow(e)}_handleFollow(e){let{snap:t}=this;t.cancelTransition(),t.track.iterateTarget(e*t.props.wheelSpeed),t.track.clampTarget()}_handleNoFollow(e){let{snap:t,isTouchPad:i,isGainingDelta:r}=this,{track:n,activeSlide:o,domSize:a}=t;if(this._detectNoFollowThrottle())return;let h=!1,l=!0;if(h||n.isSlideScrolling&&(o.coord===0?e>0&&(h=!0):o.coord===a-o.size?e<0&&(h=!0):(h=!0,l=!1)),l){if(!i||i&&(r||this.absDeltas.length===1)){let d=Math.sign(e);if(h)t.cancelTransition(),n.iterateTarget(d),n.clampTarget(),i||(n.current=n.target);else if(d===1){if(!t.props.loop&&t.activeIndex===t.slides.length-1)return;this._lastWheelTime=+new Date,t.next()}else{if(!t.props.loop&&t.activeIndex===0)return;this._lastWheelTime=+new Date,t.prev()}}return}if(h){t.cancelTransition();let d=e*t.props.wheelSpeed,c=Math.min(...o.magnets),p=Math.max(...o.magnets),w=n.loopCoord(n.target),u=b(w+d,c,p);n.target+=u-w,n.clampTarget()}}_detectNoFollowThrottle(){let{isTouchPad:e,snap:t}=this,{wheelThrottle:i}=t.props,r=+new Date-this._lastWheelTime;return typeof i=="number"?r<i:e?this.snap.isTransitioning:!!(t.scrollableSlides.filter(o=>o.isVisible).length&&t.isTransitioning||r<500)}_handleEnd(){if(!this._hasStarted)return;let{snap:e}=this,{props:t,activeSlide:i,track:r}=e,n=this._deltas.slice(-3).reduce((o,a)=>o+a,0);if(this._deltas=[],this._hasStarted=!1,!t.freemode||t.freemode==="sticky")if(t.followWheel&&t.stickOnWheelEnd){let o=Math.abs(t.stickOnWheelEndThreshold)/i.size;i.progress>o&&!r.isSlideScrolling&&n>0?e.next():i.progress<-o&&!r.isSlideScrolling&&n<0?e.prev():e.stick()}else!t.followWheel&&!e.isTransitioning&&e.stick();e.callbacks.emit("wheelEnd",void 0)}_addDelta(e){this._deltas.length>=mt&&this._deltas.shift(),this._deltas.push(e)}get isTouchPad(){return!this.isStableDelta||this.isSmallDelta}get isStableDelta(){let e=this.absDeltas,t=.8,i=e.map((n,o)=>{let a=e[o-1];return e[o-1]?n-a:0});return i.filter(n=>n===0).length>i.length*t}get isSmallDelta(){let e=this.absDeltas;return e.length===0?!0:e[e.length-1]<50}get isGainingDelta(){let e=m(),t=this.absDeltas,i=e.osName.includes("window")?1.5:1.2;if(t.length<mt)return!1;let r=t.slice(-mt),n=r.slice(0,Math.floor(r.length/2)),o=r.slice(Math.floor(r.length/2)),a=this._getAverage(n);return this._getAverage(o)>a*i}_getAverage(e){return e.length?e.reduce((t,i)=>t+i,0)/e.length:0}};var me=class{constructor(e){this.snap=e,e.on("destroy",()=>this._destroy(),{protected:!0});let{props:t,activeIndex:i}=e;this._startIndex=i,this._startTime=0,this._swipe=new V({container:e.eventsEmitter,enabled:t.swipe,grabCursor:t.grabCursor,minTime:t.swipeMinTime,threshold:t.swipeThreshold,axis:this.axis,inertia:!1,inertiaDuration:t.swipeInertiaDuration,inertiaRatio:t.swipeInertiaRatio,velocityModifier:this._handleVelocityModifier.bind(this),inertiaDistanceThreshold:5}),this._swipe.on("start",r=>this._handleSwipeStart(r)),this._swipe.on("move",r=>this._handleSwipeMove(r)),this._swipe.on("end",r=>this._handleSwipeEnd(r)),this._swipe.on("inertiaStart",()=>this._handleSwipeInertiaStart()),this._swipe.on("inertiaEnd",()=>this._handleSwipeInertiaEnd()),this._swipe.on("inertiaFail",()=>this._handleSwipeInertiaFail()),this._swipe.on("inertiaCancel",()=>this._handleSwipeInertiaCancel()),e.on("props",()=>{this._swipe.updateProps({enabled:e.props.swipe,grabCursor:e.props.grabCursor,minTime:e.props.swipeMinTime,threshold:e.props.swipeThreshold,axis:this.axis,inertiaDuration:e.props.swipeInertiaDuration,inertiaRatio:e.props.swipeInertiaRatio})},{protected:!0})}get axis(){let{snap:e}=this;return e.props.swipeAxis==="auto"?e.axis:e.props.swipeAxis}get isSwiping(){return this._swipe.isSwiping}get hasInertia(){return this._swipe.hasInertia}get isShort(){let{props:e}=this.snap;return e.shortSwipes?+new Date-this._startTime<=e.shortSwipesDuration:!1}get allowFriction(){return!this.isShort&&this.snap.props.swipeFriction}get diff(){return this.axis==="x"?this._swipe.diff.x:this._swipe.diff.y}_handleVelocityModifier(e){let{props:t,track:i,activeSlide:r,domSize:n}=this.snap,{coord:o,size:a}=r;if(t.freemode===!0)return e;if(i.target=i.current,t.freemode==="sticky"&&!i.isSlideScrolling){let d=i.loopedCurrent-e[this.axis],c=this.snap.getNearestMagnet(d);if(!c)return e;let p=i.loopedCurrent-d-c.diff;return Object.assign(Object.assign({},e),{[this.axis]:p})}let h=b(e[this.axis],-o,n-a-o);return Object.assign(Object.assign({},e),{[this.axis]:h})}_handleSwipeStart(e){let{snap:t}=this;this._startIndex=t.activeIndex,this._startTime=+new Date,t.eventsEmitter.style.pointerEvents="none",t.props.followSwipe&&t.cancelTransition(),t.callbacks.emit("swipeStart",e)}_handleSwipeMove(e){let{snap:t}=this,{props:i,track:r,callbacks:n}=t,{followSwipe:o}=i;if(!o&&!r.isSlideScrolling)return;let a=this.axis==="x"?e.step.x:e.step.y,h=this.hasInertia?1:i.swipeSpeed,l=a*-h;r.iterateTarget(l),this._swipe.hasInertia&&r.clampTarget(),n.emit("swipe",e)}_handleSwipeEnd(e){this._end(),this.snap.eventsEmitter.style.pointerEvents="",this.snap.callbacks.emit("swipeEnd",e)}_handleSwipeInertiaStart(){this.snap.callbacks.emit("swipeInertiaStart",void 0)}_handleSwipeInertiaEnd(){this.snap.callbacks.emit("swipeInertiaEnd",void 0)}_handleSwipeInertiaFail(){let{snap:e}=this;e.props.freemode==="sticky"&&!e.track.isSlideScrolling&&(this.isShort?this._endShort():e.stick()),this.snap.callbacks.emit("swipeInertiaFail",void 0)}_handleSwipeInertiaCancel(){this.snap.callbacks.emit("swipeInertiaCancel",void 0)}_end(){let{snap:e,_swipe:t}=this,{props:i,track:r}=e;if(i.freemode){this._swipe.updateProps({inertia:!0}),!r.canLoop&&(r.target<r.min||r.target>r.max)&&(t.cancelInertia(),e.stick()),this.isShort&&i.freemode==="sticky"&&(this._swipe.updateProps({inertia:!1}),t.cancelInertia(),this._endShort());return}if(r.isSlideScrolling){this._swipe.updateProps({inertia:!0});return}if(this._swipe.updateProps({inertia:!1}),!i.followSwipe){this._endNoFollow();return}if(this.isShort){this._endShort();return}e.stick()}_endShort(){let{diff:e,snap:t}=this,{props:i,activeSlide:r}=t;if(Math.abs(e)<i.shortSwipesThreshold){t.stick();return}let n=Math.sign(e)*Math.sign(i.swipeSpeed);if(this._startIndex!==t.activeIndex){n<0&&r.progress>0?t.next():n>0&&r.progress<0?t.prev():t.stick();return}n<0?t.next():t.prev()}_endNoFollow(){let{diff:e,snap:t}=this;if(Math.abs(e)<20){t.stick();return}e<0?t.next():t.prev()}_destroy(){this._swipe.destroy()}};var _e=class{constructor(e){this.snap=e,this._current=0,this._target=0}get current(){return this._current}set current(e){this._current=e}get target(){return this._target}set target(e){this._target=e}set(e){this.current=e,this.target=e}get canLoop(){return this.snap.props.loop&&this.snap.slides.length>1}get loopedCurrent(){return this.loopCoord(this.current)}get offset(){let{snap:e}=this;return e.props.centered?e.domSize/2-e.firstSlideSize/2:0}get loopCount(){return Math.floor(this.current/this.max)}loopCoord(e){return this.canLoop?C(e,this.min,this.max):e}lerp(e){let{target:t}=this,{snap:i,min:r,max:n}=this;if(!i.props.loop){let{domSize:h,props:l}=i,d=(1-l.edgeFriction)*h;if(t<r){let c=1-A(t,-h,r);t=r-c*d}else if(t>n){let c=A(t,n,n+h);t=n+c*d}t=b(t,r-d,n+d)}let o=Math.abs(this.current-t),a=5;if(o<a){let h=1-o/a,l=(1-e)/3;e+=l*h}this.current=T(this.current,t,e,1e-6)}get isInterpolated(){return this.current===this.target}get min(){let{snap:e}=this;if(this.canLoop||e.isEmpty)return 0;if(e.props.centered){let t=e.slides[0];if(t.size>e.domSize)return e.domSize/2-t.size/2}return 0}get max(){let{domSize:e,slides:t,isEmpty:i,props:r}=this.snap,{canLoop:n}=this;if(i)return 0;let o=t[0],a=t[t.length-1],h=a.staticCoord+a.size,l=n?h+M(r.gap):h-e;return n||(r.centered&&(l+=e/2-o.size/2,a.size<e&&(l+=e/2-a.size/2)),r.centered||(l=Math.max(l,0))),l}get progress(){return this.current/this.max}iterateTarget(e){let{snap:t}=this;this.target+=e,t._raf.play()}clampTarget(){let{snap:e}=this;this.canLoop||(this.target=b(this.target,this.min,this.max)),e._raf.play()}get isStart(){return this.snap.props.loop?!1:Math.floor(this.target)<=Math.floor(this.min)}get isEnd(){return this.snap.props.loop?!1:Math.floor(this.target)>=Math.floor(this.max)}get isSlideScrolling(){let{snap:e}=this,{domSize:t}=e;return e.scrollableSlides.some(({size:i,coord:r})=>ot(r,t-i,0))}};var ge=class{constructor(e){this._snap=e,this._destructors=[],e.on("destroy",()=>this._destroy(),{protected:!0}),this._destructors.push(_(e.container,"scroll",()=>this._handleScroll()))}get snap(){return this._snap}_handleScroll(){this.snap.container.scrollTo({top:0,left:0,behavior:"instant"})}_destroy(){this._destructors.forEach(e=>e())}};var _t=function(s,e){var t={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&e.indexOf(i)<0&&(t[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(s);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(s,i[r])&&(t[i[r]]=s[i[r]]);return t},gt=class extends v{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{eventsEmitter:null,activeIndex:0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{slides:!1,direction:"horizontal",centered:!1,loop:!1,gap:0,lerp:.2,freemode:!1,stickOnResize:!0,friction:0,edgeFriction:.85,duration:500,easing:W,swipe:!0,grabCursor:!1,swipeSpeed:1,swipeAxis:"auto",followSwipe:!0,shortSwipes:!0,shortSwipesDuration:300,shortSwipesThreshold:30,swipeFriction:!1,swipeLerp:m().mobile?1:.6,swipeThreshold:5,swipeMinTime:0,swipeInertiaDuration:e=>b(e,500,2e3),swipeInertiaRatio:.3,wheel:!1,wheelSpeed:1,wheelAxis:"auto",followWheel:!0,wheelThrottle:"auto",stickOnWheelEnd:!0,stickOnWheelEndThreshold:30,slideSize:"auto"})}constructor(e){super(e),this._domSize=0,this._slides=[],this._scrollableSlides=[];let{container:t,activeIndex:i}=this.props;this._activeIndex=i,this._resizeHandler=I({element:t,viewportTarget:"width",callback:()=>this._handleResize(),name:this.name}),this._resizeHandler.debounceResize(),this._raf=new k,this._raf.on("frame",()=>this._handleRaf()),this._raf.on("play",()=>this._callbacks.emit("rafPlay",void 0)),this._raf.on("pause",()=>this._callbacks.emit("rafPause",void 0)),this._fetchSlides(),this._wheel=new fe(this),this._swipe=new me(this),this._track=new _e(this),this._keyboard=new ge(this)}_handleProps(){this._fetchSlides(),this._resizeHandler.resize(),super._handleProps()}_fetchSlides(){this._slides.forEach(t=>t.detach());let e=this.props.slides?this.props.slides:Array.from(this.props.container.children);this._slides=e.map(t=>t instanceof Y?t:new Y(t)),this._slides.forEach((t,i)=>t.attach(this,i))}resize(e=!1){e?this._resizeHandler.resize():this._resizeHandler.debounceResize()}_handleResize(){let{direction:e,container:t}=this.props;this.cancelTransition(),this._domSize=e==="horizontal"?t.offsetWidth:t.offsetHeight,this._reflow(),this.callbacks.emit("resize",void 0)}get container(){return this.props.container}get eventsEmitter(){var e;return(e=this.props.eventsEmitter)!==null&&e!==void 0?e:this.container}get domSize(){return this._domSize}get slides(){return this._slides}get scrollableSlides(){return this._scrollableSlides}get activeIndex(){return this._activeIndex}get activeSlide(){return this.slides[this._activeIndex]}get isEmpty(){return this.slides.length===0}get axis(){return this.props.direction==="horizontal"?"x":"y"}get track(){return this._track}get isTransitioning(){return!!this._timeline}get isSwiping(){return!!this._swipe.isSwiping}_reflow(){let{slides:e,props:t}=this;if(e.length===0)return;this._scrollableSlides=[],e.reduce((r,n)=>(n.setStaticCoord(r),n.size>this.domSize&&this._scrollableSlides.push(n),r+n.size+M(t.gap)),0);let i=e.find(({index:r})=>r===this.activeIndex);t.stickOnResize&&i&&(this.track.clampTarget(),this.track.set(i.magnets[0])),this.callbacks.emit("reflow",void 0),this.render()}_handleRaf(){if(this.isTransitioning)return;let{track:e,props:t,_swipe:i}=this,r=(i.isSwiping||i.hasInertia)&&t.swipeLerp?t.swipeLerp:t.lerp;e.lerp(this._raf.lerpFactor(r)),e.isInterpolated&&this._raf.pause(),this.render(this._raf.duration)}render(e=0){if(this.isEmpty)return;let{_swipe:t,track:i,props:r}=this;this._updateSlidesCoords(),this._updateSlidesProgress();let{magnet:n}=this;n&&n.slide.index!==this._activeIndex&&(typeof this._targetIndex=="undefined"||n.slide.index===this._targetIndex)&&(this._activeIndex=n.slide.index,this._targetIndex=void 0,this.callbacks.emit("activeSlide",this.activeSlide));let o=t.isSwiping&&t.allowFriction||!t.isSwiping;n&&o&&e>0&&r.friction>=0&&!i.isSlideScrolling&&!r.freemode&&(i.target=ke(i.target,i.current+n.diff,r.friction*r.lerp,e,1e-6)),this.slides.forEach(a=>a.render()),this.callbacks.emit("update",void 0)}_updateSlidesCoords(){let{slides:e,track:t}=this,{centered:i}=this.props,r=i?this._domSize/2-this.firstSlideSize/2:0;e.forEach(n=>{let{staticCoord:o,size:a}=n;if(!t.canLoop){n.setCoord(o+r-t.current);return}if(i){n.setCoord(C(o+r-t.current,-t.max/2+r,t.max/2+r));return}n.setCoord(C(o-t.current,-a,t.max-a))})}get firstSlideSize(){return this.slides[0].size}_updateSlidesProgress(){let{slides:e,domSize:t}=this;e.forEach(i=>{let{coord:r,size:n}=i;if(this.props.centered){let o=t/2-n/2;i.setProgress(A(r,o,o-n));return}i.setProgress(A(r,0,-n))})}get magnet(){let e=this.track.loopedCurrent;return this.getNearestMagnet(e)}getNearestMagnet(e){let t=this.slides.flatMap(r=>r.magnets.map(n=>({slide:r,magnet:n,index:r.index})));if(t.length===0)return;let i=t.reduce((r,n)=>Math.abs(n.magnet-e)<Math.abs(r.magnet-e)?n:r);return Object.assign(Object.assign({},i),{diff:i.magnet-e})}cancelTransition(){var e;(e=this._timeline)===null||e===void 0||e.destroy(),this._timeline=void 0}stick(){let{magnet:e}=this;this.track.isSlideScrolling||!e||this.toCoord(this.track.current+e.diff)}toCoord(e,t){var i,r;if(this.isEmpty)return!1;this.cancelTransition();let{track:n,props:o,callbacks:a}=this,h=n.current,l=e,d=Math.abs(l-h),c=(i=t==null?void 0:t.duration)!==null&&i!==void 0?i:o.duration,p=typeof c=="number"?c:c(d);d===0&&(p=0);let w=(r=t==null?void 0:t.easing)!==null&&r!==void 0?r:o.easing,u=new P({duration:p,easing:w});return this._timeline=u,u.on("start",()=>{var f;a.emit("timelineStart",void 0),(f=t==null?void 0:t.onStart)===null||f===void 0||f.call(t)}),u.on("update",f=>{var g;n.current=T(h,l,f.eased),n.target=n.current,f.progress===1&&(this._targetIndex=void 0),this.render(),a.emit("timelineUpdate",f),(g=t==null?void 0:t.onUpdate)===null||g===void 0||g.call(t,f)}),u.on("end",()=>{var f;u.destroy(),a.emit("timelineEnd",void 0),(f=t==null?void 0:t.onEnd)===null||f===void 0||f.call(t),this._timeline=void 0}),u.on("destroy",()=>{this._targetIndex=void 0}),u.play(),!0}toSlide(e,t={}){var i,r,{direction:n=null}=t,o=_t(t,["direction"]);let{isEmpty:a,activeIndex:h,slides:l,track:d,props:c}=this,{current:p,max:w,loopCount:u}=d;if(a)return!1;let f=C(e,0,this.slides.length);if(f===h)return this.stick(),!1;this._targetIndex=f;let g=l[f].magnets,y=g[0];if(c.centered?n==="prev"?y=(i=g[2])!==null&&i!==void 0?i:g[0]:n==="next"&&(y=(r=g[1])!==null&&r!==void 0?r:g[0]):y=n==="prev"?g[g.length-1]:y,!c.loop)return this.toCoord(y,o);let x=y+u*w,S=x-w,z=x+w,te=[S,x,z];if(typeof n=="string"){let Et=te.filter(D=>n==="next"?D>=p:D<=p),$=oe(p,Et);return this.toCoord($,o)}let se=oe(p,te);return this.toCoord(se,o)}next(e={}){var{skip:t=1}=e,i=_t(e,["skip"]);let{props:r,slides:n,activeIndex:o}=this,a=r.loop?C(o+t,0,n.length):Math.min(o+t,n.length-1);return this.toSlide(a,Object.assign(Object.assign({},i),{direction:"next"}))}prev(e={}){var{skip:t=1}=e,i=_t(e,["skip"]);let{props:r,slides:n,activeIndex:o}=this,a=r.loop?C(o-t,0,n.length):Math.max(o-t,0);return this.toSlide(a,Object.assign(Object.assign({},i),{direction:"prev"}))}_destroy(){super._destroy(),this._resizeHandler.remove(),this.cancelTransition(),this._raf.destroy(),this._slides.forEach(e=>e.detach())}};var Zs=Ot(Js());function ve(s,e){return e?typeof e=="string"?s.matches(e):typeof e=="function"?e(s):e.includes(s):!1}function ei({wordsMeta:s,classname:e,tagName:t,ignore:i}){let r=[],n=document.createElement(t);return n.style.display="inline-block",n.classList.add(e),s.forEach(o=>{if(ve(o.element,i))return;let a=o.element.childNodes[0];if(!a)return;let h=a.textContent;if(!h)return;(0,Zs.default)(h,"").forEach(d=>{let c=n.cloneNode(!1);c.appendChild(document.createTextNode(d)),o.element.insertBefore(c,a);let p={element:c};o.letters.push(p),r.push(p)}),a.remove()}),{lettersMeta:r}}function ti({container:s,classname:e,tagName:t,ignore:i}){let r=" ",n=document.createElement(t);n.style.display="inline-block",n.setAttribute("aria-hidden","true"),n.classList.add(e);let o=[],a=null;function h(l){var d,c;if(l instanceof HTMLElement||l instanceof DocumentFragment){if("tagName"in l&&l.tagName!=="BR"){if(ve(l,i)){a?a.append(l):o.push({element:l,letters:[]});return}l.style.display="inline-block"}a=null,[...Array.from(l.childNodes)].forEach(w=>h(w));return}if(l.nodeType===3){let p=(d=l.parentElement)!==null&&d!==void 0?d:s,w=(c=l.nodeValue)!==null&&c!==void 0?c:"";if(w===r){a=null,p==null||p.insertBefore(document.createTextNode(r),l),l.remove();return}let u=w.split(r);u.forEach((f,g)=>{if(f){let y=n.cloneNode(!1);y.appendChild(document.createTextNode(f)),a=y,o.push({element:y,letters:[]}),p==null||p.insertBefore(y,l)}g<u.length-1&&(p==null||p.insertBefore(document.createTextNode(r),l))}),l.remove()}}return h(s),o}function si({container:s,letterClassName:e,wordClassName:t,hasLetters:i,letterTag:r,wordTag:n,ignore:o}){let a=document.createDocumentFragment();for(;s.childNodes[0];)a.appendChild(s.childNodes[0]);let h=ti({container:a,classname:t,tagName:n,ignore:o}),l=[];if(i){let d=ei({wordsMeta:h,classname:e,tagName:r,ignore:o});l.push(...d.lettersMeta)}return s.appendChild(a),{wordsMeta:h,lettersMeta:l}}function ii(s){let{direction:e,textAlign:t}=getComputedStyle(s);return t==="center"?t:t==="justify"?e==="rtl"?"right":"left":t==="left"||t==="right"?t:t==="start"?e==="rtl"?"right":"left":t==="end"?e==="rtl"?"left":"right":e==="rtl"?"right":"left"}function ri(s,e){var t;return s!=null&&s.parentElement?s.parentElement===e?s:ri((t=s==null?void 0:s.parentElement)!==null&&t!==void 0?t:null,e):null}function ni(s,e){return s===e?!0:s!==null?ni(s.parentNode,e):!1}function oi({container:s,hasLinesWrapper:e,wordsMeta:t,lineClassName:i,lineWrapperClassName:r,tagName:n}){let o=ii(s),a=[],h=-1,l=null,d=document.createElement(n);d.style.display="block",d.setAttribute("aria-hidden","true"),d.classList.add(i);let c=t.map(u=>u.element.getBoundingClientRect());t.forEach((u,f)=>{var g;let y=c[f],x=ri(u.element,s);if(!x)return;let S=l&&y.top>=l.top,z=l&&y.left>=l.left,te=l&&y.left<=l.left;if(!l||S&&te&&o==="left"||S&&z&&o==="right"||S&&o==="center"){h+=1;let $=d.cloneNode(!1),D;e&&(D=document.createElement(n),D.style.display="block",D.classList.add(r),D.appendChild($)),a[h]={element:$,wrapper:D,nodes:[],words:[]}}l=y;let se=a[h];!!a.find(({nodes:$})=>$.includes(x))||(se.nodes.push(x),((g=x.nextSibling)===null||g===void 0?void 0:g.nodeType)===3&&se.nodes.push(x.nextSibling))}),a.forEach(u=>{var f;s.insertBefore((f=u.wrapper)!==null&&f!==void 0?f:u.element,u.nodes[0]);let g=document.createDocumentFragment();g.append(...u.nodes),u.element.append(g)});let p=[];return a.forEach(u=>{var f;let g=((f=u.wrapper)!==null&&f!==void 0?f:u.element).nextElementSibling;g instanceof HTMLBRElement&&(g.style.display="none",p.push(g))}),a.forEach(u=>{u.words.push(...t.filter(f=>ni(f.element,u.element)))}),{linesMeta:a,destroy:()=>{let u=!0;return p.forEach(f=>{f.style.display=""}),a.forEach(f=>{var g;f.nodes.forEach(y=>{var x;let S=(x=f.wrapper)!==null&&x!==void 0?x:f.element;S.parentElement?s.insertBefore(y,S):u=!1}),f.element.remove(),(g=f.wrapper)===null||g===void 0||g.remove()}),u}}}function ai(s){let e=[];function t(i){e.push({node:i,cssText:i instanceof HTMLElement?i.style.cssText:null,parent:i.parentNode}),i.childNodes.forEach(r=>t(r))}return s.childNodes.forEach(i=>t(i)),{restore:()=>{let i=document.createDocumentFragment();for(e.forEach(r=>{let{node:n,cssText:o}=r;for(n instanceof HTMLElement&&o&&(n.style.cssText=o);n.childNodes[0];)n.childNodes[0].remove();r.parent&&(r.parent===s?i:r.parent).appendChild(r.node)});s.childNodes[0];)s.childNodes[0].remove();s.appendChild(i)}}}var St=class extends v{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{letters:!1,lines:!1,linesWrapper:!1,letterTag:"span",wordTag:"span",lineTag:"span",letterClass:this._cn("__letter"),wordClass:this._cn("__word"),lineClass:this._cn("__line"),lineWrapperClass:this._cn("__line-wrapper"),resizeDebounce:0,ignore:null})}_getMutable(){return Object.assign({},super._getMutable())}get prefix(){return`${m().prefix}split-text`}get lettersMeta(){return this._lettersMeta}get letters(){return this._lettersMeta.map(e=>e.element)}get wordsMeta(){return this._wordsMeta}get words(){return this._wordsMeta.map(e=>e.element)}get linesMeta(){return this._linesMeta}get lines(){return this._linesMeta.map(e=>e.element)}constructor(e){super(e),this._isBaseSplit=!1,this._lettersMeta=[],this._wordsMeta=[],this._linesMeta=[];let{container:t}=this.props;t.style.fontKerning="none",t.style.display="block",t.setAttribute("aria-label",t.textContent||""),this._addTempClassName(t,this._cn("")),t.translate=!1,this._savedNodes=ai(t),this._setup()}_setup(){let{container:e,resizeDebounce:t}=this.props;if(!this.props.lines){this.split();return}let i=I({callback:()=>this.split(),element:e,viewportTarget:"width",resizeDebounce:t,name:this.name});i.resize(),this.onDestroy(()=>i.remove())}split(){this.callbacks.emit("beforeSplit",void 0),this._splitBase(),this.props.lines&&this._splitLines(),this.callbacks.emit("split",void 0)}_splitBase(){if(this._isBaseSplit)return;let{container:e,letterTag:t,wordTag:i,wordClass:r,letterClass:n,ignore:o}=this.props;this._isBaseSplit=!0;let{wordsMeta:a,lettersMeta:h}=si({container:e,letterClassName:n,wordClassName:r,hasLetters:this.props.letters,letterTag:t,wordTag:i,ignore:o});this._wordsMeta=a,this._lettersMeta=h}_splitLines(){var e;let{wordsMeta:t}=this,{container:i,lineTag:r,lineClass:n,lineWrapperClass:o}=this.props;i.offsetParent!==null&&((e=this._lineSplitWrapper)===null||e===void 0||e.destroy(),this._lineSplitWrapper=oi({container:i,hasLinesWrapper:this.props.linesWrapper,wordsMeta:t,lineClassName:n,lineWrapperClassName:o,tagName:r}),this._linesMeta=this._lineSplitWrapper.linesMeta)}_destroy(){if(super._destroy(),!this._lineSplitWrapper)this._savedNodes.restore();else{let e=this._lineSplitWrapper.destroy();this._lineSplitWrapper=void 0,e&&this._savedNodes.restore()}}};var li=typeof window!="undefined"?m():void 0,Pr=li;return mi(zr);})();
180
+ `,he)}var de=W?m.createElement("style"):null;de&&(de.innerHTML="* { cursor: grabbing !important; }");var Kr=4,ie=class extends y{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{buttons:[0],pointers:1,disableUserSelect:!0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{enabled:!0,relative:!1,axis:null,ratio:1,grabCursor:!1,willAbort:()=>!1,threshold:5,minTime:0,directionThreshold:50,preventEdgeSwipe:!0,edgeSwipeThreshold:20,preventTouchMove:!0,requireCtrlKey:!1,inertia:!1,inertiaDuration:e=>S(e,500,2e3),inertiaEasing:ee,velocityModifier:!1,distanceModifier:!1,inertiaRatio:1,inertiaDistanceThreshold:50})}get isSwiping(){return this._isSwiping}get coords(){return this._coords}get container(){return this.props.container}get hasInertia(){return!!this._inertia}constructor(e){super(e),this._isSwiping=!1,this._isAborted=!1;let{container:t,buttons:s,pointers:r}=this.props;this._coords={timestamp:0,start:{x:0,y:0,angle:0},prev:{x:0,y:0,angle:0},current:{x:0,y:0,angle:0},diff:{x:0,y:0,angle:0},step:{x:0,y:0,angle:0},accum:{x:0,y:0}},this._velocities=[],this._cursorStyles=de===null||de===void 0?void 0:de.cloneNode(!0),this._pointers=new we({container:t,buttons:s,minPointers:r,maxPointers:r,enabled:this.props.enabled,disableUserSelect:this.props.disableUserSelect}),this._pointers.on("start",()=>this._handlePointersStart());let n=w(t,"touchstart",o=>this._handleTouchStart(o),{passive:!1});this.onDestroy(()=>n()),this._setInlineStyles()}_handleProps(){super._handleProps(),this._pointers.updateProps({enabled:this.props.enabled}),this._setInlineStyles()}_setInlineStyles(){let{container:e,axis:t}=this.props,{style:s}=e,r=this.props.grabCursor?"grab":"",n="none";t==="x"?n="pan-y":t==="y"&&(n="pan-x"),s.cursor=r,s.touchAction=n}_handleTouchStart(e){this.props.enabled&&(this.callbacks.emit("touchstart",e),this._preventEdgeSwipe(e))}_preventEdgeSwipe(e){if(!this.props.preventEdgeSwipe)return;let t=this.props.edgeSwipeThreshold,s=e.targetTouches[0].pageX;e.cancelable&&(s<=t||s>=v().width-t)&&(e.preventDefault(),this.callbacks.emit("preventEdgeSwipe",void 0))}_handlePointersStart(){let e=w(window,"touchmove",this._handleTouchMove.bind(this),{passive:!1}),t=w(window,"mousemove",this._handleMouseMove.bind(this)),s=this._pointers.on("end",()=>{this._handleEnd(),s(),e(),t()});this.onDestroy(()=>{s(),e(),t()})}_handleTouchMove(e){this.callbacks.emit("touchmove",e),this._isSwiping&&this.props.preventTouchMove&&e.cancelable&&e.preventDefault(),this._handleMove(this._decodeCoords(e),"touch")}_handleMouseMove(e){this.props.requireCtrlKey&&!e.ctrlKey||(this.callbacks.emit("mousemove",e),this._handleMove(this._decodeCoords(e),"mouse"))}_decodeCoords(e){let{props:t}=this,{container:s,ratio:r}=t,n="touches"in e?e.touches[0].clientX:e.clientX,o="touches"in e?e.touches[0].clientY:e.clientY,a=n,l=o,c=v().width/2,d=v().height/2;if(t.relative){let b=s.getBoundingClientRect();a=n-b.left,l=o-b.top,c=b.left+b.width/2,d=b.top+b.height/2}let p=Math.atan2(o-d,n-c)*180/Math.PI;return{x:a*r,y:l*r,angle:p}}_handleMove(e,t){let s=this._coords;if(!this._isAborted){if(this._startCoord||(this._startCoord=Object.assign({},e)),this._startTime||(this._startTime=+Date.now()),!this._isSwiping){let{threshold:r,ratio:n,minTime:o,axis:a,willAbort:l}=this.props,c=Math.abs(n),d={x:e.x-this._startCoord.x,y:e.y-this._startCoord.y};if(Math.sqrt(Math.pow(d.x/c,2)+Math.pow(d.y/c,2))<r||+new Date-this._startTime<o)return;if(a){let p=Math.atan2(Math.abs(d.y),Math.abs(d.x))*180/Math.PI;if((a==="x"?p:90-p)>45){this._reset(),this._isAborted=!0,this.callbacks.emit("abort",void 0);return}}if(l({type:t,matrix:e,start:this._startCoord,diff:d})){this._reset(),this._isAborted=!0,this.callbacks.emit("abort",void 0);return}}this._isSwiping||(this.cancelInertia(),this._isSwiping=!0,this._startCoord=Object.assign({},e),s.timestamp=performance.now(),s.start=Object.assign(Object.assign({},this._startCoord),{angle:e.angle}),s.prev=Object.assign(Object.assign({},this._startCoord),{angle:e.angle}),s.current=Object.assign(Object.assign({},this._startCoord),{angle:e.angle}),s.diff={x:0,y:0,angle:0},s.step={x:0,y:0,angle:0},s.accum={x:0,y:0},this.callbacks.emit("start",this._coords),this.props.grabCursor&&this._cursorStyles&&I.append(this._cursorStyles)),this._move(e)}}_move({x:e,y:t,angle:s}){let r=this._coords,n=Object.assign({},r.start),o=Object.assign({},r.current),a={x:e,y:t,angle:s};r.timestamp=performance.now(),r.prev=o,r.current=a;let l=r.current.angle-r.prev.angle;l>180?l-=360:l<-180&&(l+=360),r.step={x:a.x-o.x,y:a.y-o.y,angle:l},r.diff={x:a.x-n.x,y:a.y-n.y,angle:r.diff.angle+r.step.angle},r.accum={x:r.accum.x+Math.abs(r.step.x),y:r.accum.y+Math.abs(r.step.y)},this.hasInertia||(this._velocities.push(Object.assign(Object.assign({},r.current),{timestamp:r.timestamp})),this._velocities.length>Kr&&this._velocities.shift()),this.callbacks.emit("move",this._coords)}_handleEnd(){if(this._startTime=void 0,this._isAborted=!1,!this.isSwiping)return;this._reset(),this._cursorStyles.remove();let{x:e,y:t}=this._coords.diff,s=Math.abs(e),r=Math.abs(t),{directionThreshold:n}=this.props,o=s>r?"x":"y";o==="x"&&s>n&&(e>0?this.callbacks.emit("toRight",void 0):e<0&&this.callbacks.emit("toLeft",void 0)),o==="y"&&r>n&&(t>0?this.callbacks.emit("toBottom",void 0):t<0&&this.callbacks.emit("toTop",void 0)),this.callbacks.emit("end",this._coords),this._velocities.length>0&&(this._velocities[this._velocities.length-1].timestamp=performance.now()),this.props.inertia&&this._endWithInertia()}_reset(){this._startCoord=void 0,this._isSwiping=!1}get velocity(){let e=this._velocities;if(e.length<2)return{x:0,y:0,angle:0};let t=0,s=0,r=0,n=0;for(let o=1;o<e.length;o+=1){let a=e[o],l=e[o-1],c=a.x-l.x,d=a.y-l.y,h=a.angle-l.angle;h>180&&(h-=360),h<-180&&(h+=360);let p=Math.max(a.timestamp-l.timestamp,1),b=c/p*1e3,f=d/p*1e3,u=h/p*1e3,g=1/Math.exp(-p*.1);s+=b*g,r+=f*g,n+=u*g,t+=g}return t>0?{x:s/t,y:r/t,angle:n/t}:{x:0,y:0,angle:0}}_endWithInertia(){let{inertiaDuration:e,inertiaEasing:t,velocityModifier:s,inertiaRatio:r,inertiaDistanceThreshold:n}=this.props,o={x:this.velocity.x*r,y:this.velocity.y*r,angle:this.velocity.angle*r},a=s?s(o):o,{x:l,y:c,angle:d}=a,h=Math.sqrt(Math.pow(l,2)+Math.pow(c,2));if(h<n){this.callbacks.emit("inertiaFail",void 0);return}let p=e(h);if(Number.isNaN(p)||!Number.isFinite(p)||p<=0){this.callbacks.emit("inertiaFail",void 0);return}let b=Object.assign({},this.coords.current),f={x:0,y:0,angle:0};this._inertia=new D({duration:p,easing:t}),this._inertia.on("start",()=>{this.callbacks.emit("inertiaStart",void 0)}),this._inertia.on("update",({eased:u})=>{f.x=l*u,f.y=c*u,f.angle=d*u,this._move({x:b.x+f.x,y:b.y+f.y,angle:b.angle+f.angle}),this.callbacks.emit("inertia",void 0)}),this._inertia.on("end",()=>{this.cancelInertia(),this.callbacks.emit("inertiaEnd",void 0)}),setTimeout(()=>{var u;(u=this._inertia)===null||u===void 0||u.play()},0)}cancelInertia(){var e;this._inertia&&(this._inertia.progress<1&&this.callbacks.emit("inertiaCancel",void 0),(e=this._inertia)===null||e===void 0||e.destroy(),this._inertia=void 0)}get start(){return this._coords.start}get prev(){return this._coords.prev}get current(){return this._coords.current}get diff(){return this._coords.diff}get step(){return this._coords.step}get accum(){return this._coords.accum}_destroy(){var e;super._destroy(),this._pointers.destroy(),(e=this._inertia)===null||e===void 0||e.destroy(),this._cursorStyles.remove()}};var Gr=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},$e=class extends y{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{container:window,parent:!1,class:!1,axis:"y",draggable:!0,autoHide:!0,resizeDebounce:10})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{minSize:50,autoSize:!0})}get prefix(){return`${v().prefix}scrollbar`}get container(){return this._props.container}get outer(){return this._outer}get track(){return this._track}get thumb(){return this._thumb}constructor(e){super(e),this._valueOnSwipeStart=0,this._prevScrollValue=0,this._isRtl=!1,this._isRtl=le(this.parent)==="rtl",ms(this.prefix),this._create(),this._setResize(),this._setOnscroll(),this._setSwipe(),x(this.outer,this._cn("_inited"))}_handleProps(){super._handleProps(),this.resize()}get axis(){return this.props.axis}get parent(){let{parent:e,container:t}=this.props;return e||(t instanceof Window?I:t)}get scrollElement(){return this.container instanceof Window?O:this.container}get scrollSize(){let{scrollElement:e}=this;return this.axis==="x"?e.scrollWidth:e.scrollHeight}get scrollableSize(){let{scrollElement:e}=this;return this.axis==="x"?this.scrollSize-e.clientWidth:this.scrollSize-e.clientHeight}get scrollValue(){let{axis:e}=this;return this.container instanceof Window?e==="x"?window.scrollX:window.scrollY:e==="x"?this.container.scrollLeft:this.container.scrollTop}get trackSize(){return this.axis==="x"?this._track.offsetWidth:this._track.offsetHeight}get thumbSize(){return this.axis==="x"?this._thumb.offsetWidth:this._thumb.offsetHeight}_create(){let{parent:e,scrollElement:t}=this,s=this.container instanceof Window;this._outer=this._createOuter(),e.appendChild(this._outer),this._track=this._createTrack(),this._outer.appendChild(this._track),this._thumb=this._createThumb(),this._track.appendChild(this._thumb),s?(this._addTempClassName(O,this._cn("-scrollable")),this._addTempClassName(I,this._cn("-scrollable"))):this._addTempClassName(t,this._cn("-scrollable")),this.onDestroy(()=>this._outer.remove())}_createOuter(){let e=this._cn.bind(this),{props:t,axis:s}=this,r=m.createElement("div");return x(r,e("")),x(r,e(`_${s}`)),t.class&&x(r,t.class),this.container instanceof Window&&this._addTempClassName(r,this._cn("_in-window")),t.autoHide&&this._addTempClassName(r,this._cn("_auto-hide")),r}_createTrack(){let e=this._cn.bind(this),{axis:t}=this,s=m.createElement("div");return x(s,e("__track")),x(s,e(`__track_${t}`)),s}_createThumb(){let e=this._cn.bind(this),t=m.createElement("div");return x(t,e("__thumb")),x(t,e(`__thumb_${this.axis}`)),t}_setResize(){let e=()=>{let r=Array.from(this.scrollElement.children);return $({element:[this.track,this.parent,this.scrollElement,...r],viewportTarget:"width",resizeDebounce:this.props.resizeDebounce,callback:()=>this.resize()})},t=e();t.resize();let s=new MutationObserver(()=>{t.remove(),t=e(),t.debounceResize()});s.observe(this.scrollElement,{childList:!0}),this.onDestroy(()=>{t.remove(),s.disconnect()})}_setOnscroll(){let e=w(this.container,"scroll",()=>this._onScroll(),{passive:!0});this.onDestroy(()=>e())}_setSwipe(){if(!this.props.draggable)return;let e=new ie({container:this.thumb,grabCursor:!0});e.on("start",t=>{this._valueOnSwipeStart=this.scrollValue,this.callbacks.emit("swipeStart",t)}),e.on("move",t=>{this._onSwipeMove(t),this.callbacks.emit("swipe",t)}),e.on("end",t=>{this.callbacks.emit("swipeEnd",t)}),e.on("touchmove",t=>{t.stopPropagation(),t.stopImmediatePropagation()}),e.on("mousemove",t=>{t.stopPropagation(),t.stopImmediatePropagation()}),this.onDestroy(()=>e.destroy())}resize(){let{scrollableSize:e,scrollSize:t,outer:s,track:r,thumb:n,props:o,axis:a}=this,{autoSize:l}=o,c=a==="x";P(s,this._cn("_empty"),e===0);let d=c?r.offsetWidth:r.offsetHeight,h=R(o.minSize),p=h;l&&(p=S(d/(t/d),h,1/0));let{style:b}=n;c?b.width=`${p}px`:b.height=`${p}px`,this._addInActionTimeout&&clearTimeout(this._addInActionTimeout),this._render(),this.callbacks.emit("resize",void 0)}_render(){let{scrollValue:e,scrollableSize:t,axis:s,thumbSize:r,trackSize:n}=this,o=S(Math.abs(e)/t);this._isRtl&&s==="x"&&(o=1-o);let a=(n-r)*o,l=s==="x"?a:0,c=s==="y"?a:0;this._thumb.style.transform=`translate(${l}px, ${c}px)`,this.callbacks.emit("update",void 0)}_onScroll(){let{scrollValue:e,outer:t}=this,s=this._cn("_in-action");e!==this._prevScrollValue?this._addInActionTimeout=setTimeout(()=>{K(t,s)||(x(t,s),this.callbacks.emit("show",void 0))},50):this._prevScrollValue=e,this._render(),this._removeInActionTimeout&&clearTimeout(this._removeInActionTimeout),this._removeInActionTimeout=setTimeout(()=>{H(t,s),this.callbacks.emit("hide",void 0)},500)}_onSwipeMove({diff:e}){let{scrollElement:t,axis:s,trackSize:r,thumbSize:n,scrollableSize:o}=this,l=(s==="x"?e.x:e.y)/(r-n)*o,c=this._valueOnSwipeStart+l;t.scrollTo({top:s==="y"?c:void 0,left:s==="x"?c:void 0,behavior:"instant"})}_destroy(){super._destroy(),this._addInActionTimeout&&clearTimeout(this._addInActionTimeout),this._removeInActionTimeout&&clearTimeout(this._removeInActionTimeout)}};Gr([_],$e.prototype,"resize",null);var Jr=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},Le=class extends y{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{root:null,optimized:!0,useSvh:!1})}_getMutable(){return Object.assign({},super._getMutable())}get section(){return this.props.section}get isVisible(){return this._isVisible}get rootBounds(){return this._rootBounds}get sectionBounds(){return this._sectionBounds}constructor(e){super(e),this._isVisible=!1,this._rootBounds={top:0,left:0,width:1,height:1},this._sectionBounds={top:0,left:0,width:1,height:1},this._isVisible=!this.props.optimized,this._setup()}_setup(){this._setupObserver(),this._setupScroll()}_setupObserver(){if(!this.props.optimized)return;let{section:e}=this.props,t=new IntersectionObserver(s=>{s.forEach(r=>{r.target===e&&(this._isVisible=r.isIntersecting,this.update())})});t.observe(e),this.onDestroy(()=>t.disconnect())}_setupScroll(){let e=this.props.root||window,t=w(e,"scroll",()=>{this._isVisible&&this.update()},{passive:!1});this.onDestroy(t)}update(){let{section:e,props:t}=this,s=t.root,r=v(),n=e.getBoundingClientRect(),o={top:0,left:0,width:r.width,height:t.useSvh?r.sHeight:r.height};this._rootBounds=s?s.getBoundingClientRect():o,this._sectionBounds={top:n.top-this._rootBounds.top,left:n.left-this._rootBounds.left,width:n.width,height:n.height},this.callbacks.emit("update",void 0)}getProgress(e,t,s,r){let n=je(this._sectionBounds.top,[e,s]),o=je(this._sectionBounds.left,[r,t]);return{x:Number.isNaN(o)?0:o,y:Number.isNaN(n)?0:n}}get inProgress(){let{rootBounds:e,sectionBounds:t}=this,s=this.rootBounds.height,r=t.width>e.width?0:e.width-t.width,n=t.height>e.height?0:e.height-t.height,o=this.rootBounds.width;return this.getProgress(s,r,n,o)}get outProgress(){let{rootBounds:e,sectionBounds:t}=this,s=Math.min(e.height-t.height,0),r=-t.width,n=-t.height,o=Math.min(e.width-t.width,0);return this.getProgress(s,r,n,o)}get moveProgress(){let{rootBounds:e,sectionBounds:t}=this,s=t.height>e.height?0:e.height-t.height,r=t.width>e.width?-(t.width-e.width):0,n=t.height>e.height?-(t.height-e.height):0,o=t.width>e.width?0:e.width-t.width;return this.getProgress(s,r,n,o)}get progress(){let{sectionBounds:e,rootBounds:t}=this,s=t.height,r=-e.width,n=-e.height,o=t.width;return this.getProgress(s,r,n,o)}};Jr([_],Le.prototype,"update",null);var Fe="data-snap-parallax-";function N(i){return`${Fe}${i}`}var B="transform",se="opacity",_s=[B,se],Ht=[{name:N("x"),prop:"translateX",belongsTo:B,unit:"px"},{name:N("y"),prop:"translateY",belongsTo:B,unit:"px"},{name:N("z"),prop:"translateZ",belongsTo:B,unit:"px"},{name:N("scale"),prop:"scale",belongsTo:B,unit:""},{name:N("scale-x"),prop:"scaleX",belongsTo:B,unit:""},{name:N("scale-y"),prop:"scaleY",belongsTo:B,unit:""},{name:N("skew"),prop:"skew",belongsTo:B,unit:"deg"},{name:N("skew-x"),prop:"skewX",belongsTo:B,unit:"deg"},{name:N("skew-y"),prop:"skewY",belongsTo:B,unit:"deg"},{name:N("rotate"),prop:"rotate",belongsTo:B,unit:"deg"},{name:N("rotate-x"),prop:"rotateX",belongsTo:B,unit:"deg"},{name:N("rotate-y"),prop:"rotateY",belongsTo:B,unit:"deg"},{name:N("rotate-z"),prop:"rotateZ",belongsTo:B,unit:"deg"},{name:N("opacity"),prop:se,belongsTo:se,unit:""}],He=Ht.map(({name:i})=>i);var Ue=class{constructor(e,t,s){this._snap=e,this._slide=t,this._element=s,this._types=[],this._items=[],this._debounceInit=null,this._initDebounce(),this._observer=new MutationObserver(r=>{r.forEach(({attributeName:n})=>{n&&He.includes(n)&&this._initDebounce()})}),this._observer.observe(this._element,{attributes:!0})}_initDebounce(){this._debounceInit&&clearTimeout(this._debounceInit),this._debounceInit=setTimeout(()=>this._init(),16)}_init(){this._updateItems(),this.render()}_updateItems(){let e=this._element,t=this._getScope(this._element,`${Fe}scope`,[-1,1]);this._types=Ht.filter(({name:s})=>e.hasAttribute(s)),this._items=this._types.map(({name:s,prop:r,belongsTo:n,unit:o})=>{var a;let l=`${s}-scope`,c=e.hasAttribute(l)?this._getScope(e,l,[-1,1]):t,d=(a=e.getAttribute(s))!==null&&a!==void 0?a:"",h=parseFloat(d.replace("|",""))||0,p=d.replace(/[-\d.]+/g,"")||o,b=`${s}-influence`,f=e.hasAttribute(b),u=`${s}-directional`,g=e.hasAttribute(u),E=`${s}-abs`,M=e.hasAttribute(E);return{name:s,prop:r,belongsTo:n,unit:p,scope:c,progress:0,target:h,value:0,isInfluence:f,isDirectional:g,isAbs:M}})}_getScope(e,t,s){var r;let a=((r=e.getAttribute(t))!==null&&r!==void 0?r:"").replace(/[\s\\[\]]+/g,"").split(","),l=parseFloat(a[0]),c=parseFloat(a[1]),d=Number.isNaN(l)?s[0]:l,h=Number.isNaN(c)?s[1]:c;return[d,h]}render(){let{_snap:e,_element:t,_items:s,_slide:r}=this,n=r.progress;s.forEach(o=>{let a=S(n,...o.scope);o.isInfluence&&(a*=Math.abs(e.track.influence)),o.isDirectional&&(a=Math.abs(a)*Math.sign(e.track.influence)),(o.isAbs||o.prop===se)&&(a=Math.abs(a)),o.progress=a,o.value=a*o.target,(o.prop.includes("scale")||o.prop===se)&&(o.value=1+o.value)}),_s.forEach(o=>{let c=s.filter(d=>d.belongsTo===o).map(({value:d,prop:h,unit:p})=>o===se?`${d}`:`${h}(${d}${p})`).join(" ");t.style[o]=c})}destroy(){this._observer.disconnect(),this._debounceInit&&clearTimeout(this._debounceInit)}};var pe=class{constructor(e,t={}){this._element=e,this._coord=0,this._isAppended=!1,this._isVisible=!1,this._staticCoord=0,this._progress=0,this._id=me("snap-slide"),this._index=0,this._parallax=[];let s={virtual:!1};if(this._props=Object.assign(Object.assign({},s),t),this.props.virtual&&(!t.size||t.size==="auto"))throw new Error("Virtual slide must have a size")}get element(){return this._element}get props(){return this._props}get id(){return this._id}get index(){return this._index}get snap(){return this._snap}get coord(){return this._coord}setCoord(e){var t,s;this._coord=e,this._isVisible=this.size>0&&this.coord>-this.size&&this.coord<((s=(t=this.snap)===null||t===void 0?void 0:t.domSize)!==null&&s!==void 0?s:0)}get staticCoord(){return this._staticCoord}setStaticCoord(e){this._staticCoord=e}get progress(){return this._progress}setProgress(e){this._progress=e}get sizeProp(){var e,t,s;return(s=(e=this.props.size)!==null&&e!==void 0?e:(t=this.snap)===null||t===void 0?void 0:t.props.slideSize)!==null&&s!==void 0?s:"auto"}get size(){var e;let{snap:t,sizeProp:s}=this;return t?s==="stretch"?t.domSize:s==="auto"?(e=this._domSize)!==null&&e!==void 0?e:t.domSize:R(s):0}get isVisible(){return this._isVisible}resize(e=!1){let{element:t,snap:s}=this;if(s){if(t){let{direction:r}=s.props;this._domSize=r==="horizontal"?t.offsetWidth:t.offsetHeight}s.resize(e)}}attach(e,t){this.detach(),this._snap=e,this._index=t,this._parallax=this._getParallaxNodes().map(s=>new Ue(e,this,s)),this.element&&this.sizeProp==="auto"&&(this._onResize=$({element:this.element,viewportTarget:"width",callback:()=>this.resize(),name:"Snap Slide"})),this.resize()}detach(){var e,t;this._snap=void 0,(e=this._onResize)===null||e===void 0||e.remove(),(t=this._parallax)===null||t===void 0||t.forEach(s=>s.destroy())}render(){var e;this._toggleAppend(),(e=this._parallax)===null||e===void 0||e.forEach(t=>t.render())}_getParallaxNodes(){let{element:e}=this;if(!e)return[];let t=He.map(r=>`[${r}]`).join(","),s=e.querySelectorAll(t);return Array.from(s)}_toggleAppend(){if(!this.props.virtual||!this.element||!this.snap)return;let{element:e}=this,{container:t}=this.snap;this.isVisible&&!this._isAppended?(this._isAppended=!0,t.appendChild(e)):!this.isVisible&&this._isAppended&&(this._isAppended=!1,t.removeChild(e))}get magnets(){if(!this.snap)return[];let{snap:e,staticCoord:t,size:s,index:r}=this,{domSize:n,track:o,firstSlideSize:a}=e,l=[];if(r===0&&e.props.loop&&l.push(o.max),e.props.centered){let c=t+s/2-a/2;s>n?(l.push(c),l.push(c+(n-s)/2),l.push(c-(n-s)/2)):l.push(c)}else l.push(t),s>n&&l.push(t+(s-n));return!o.canLoop&&!e.props.centered&&(l=l.map(c=>S(c,0,o.max))),l}};var Ut=6,Xe=class{constructor(e){this._snap=e,this._hasStarted=!1,this._deltas=[],this._lastWheelTime=0,e.on("destroy",()=>this._destroy(),{protected:!0}),this._destructor=w(e.eventsEmitter,"wheel",t=>this._handleWheel(t))}_destroy(){this._destructor(),this._debounceEnd&&clearTimeout(this._debounceEnd)}get snap(){return this._snap}get absDeltas(){return this._deltas.map(e=>Math.abs(e))}get lastWheelTime(){return this._lastWheelTime}_handleWheel(e){let{snap:t}=this,{props:s}=t;if(!s.wheel)return;e.preventDefault();let r=ht(e),o=(s.wheelAxis==="auto"?t.axis:s.wheelAxis)==="x"?r.pixelX:r.pixelY;this._handleStart(o),this._handleMove(o,e),this._debounceEnd&&clearTimeout(this._debounceEnd),this._debounceEnd=setTimeout(()=>this._handleEnd(),200)}_handleStart(e){this._hasStarted||Math.abs(e)<2||(this._hasStarted=!0,this.snap.callbacks.emit("wheelStart",void 0))}_handleMove(e,t){if(!this._hasStarted)return;let{snap:s}=this,{props:r}=s;this._addDelta(e),s.callbacks.emit("wheel",t),r.followWheel?this._handleFollow(e):this._handleNoFollow(e)}_handleFollow(e){let{snap:t}=this;t.cancelTransition(),t.track.iterateTarget(e*t.props.wheelSpeed),t.track.clampTarget()}_handleNoFollow(e){let{snap:t,isTouchPad:s,isGainingDelta:r}=this,{track:n,activeSlide:o,domSize:a}=t;if(this._detectNoFollowThrottle())return;let l=!1,c=!0;if(l||n.isSlideScrolling&&(o.coord===0?e>0&&(l=!0):o.coord===a-o.size?e<0&&(l=!0):(l=!0,c=!1)),c){if(!s||s&&(r||this.absDeltas.length===1)){let d=Math.sign(e);if(l)t.cancelTransition(),n.iterateTarget(d),n.clampTarget(),s||(n.current=n.target);else if(d===1){if(!t.props.loop&&t.activeIndex===t.slides.length-1)return;this._lastWheelTime=+new Date,t.next()}else{if(!t.props.loop&&t.activeIndex===0)return;this._lastWheelTime=+new Date,t.prev()}}return}if(l){t.cancelTransition();let d=e*t.props.wheelSpeed,h=Math.min(...o.magnets),p=Math.max(...o.magnets),b=n.loopCoord(n.target),f=S(b+d,h,p);n.target+=f-b,n.clampTarget()}}_detectNoFollowThrottle(){let{isTouchPad:e,snap:t}=this,{wheelThrottle:s}=t.props,r=+new Date-this._lastWheelTime;return V(s)?r<s:e?this.snap.isTransitioning:!!(t.scrollableSlides.filter(o=>o.isVisible).length&&t.isTransitioning||r<500)}_handleEnd(){if(!this._hasStarted)return;let{snap:e}=this,{props:t,activeSlide:s,track:r}=e,n=this._deltas.slice(-3).reduce((o,a)=>o+a,0);if(this._deltas=[],this._hasStarted=!1,!t.freemode||t.freemode==="sticky")if(t.followWheel&&t.stickOnWheelEnd){let o=Math.abs(t.stickOnWheelEndThreshold)/s.size;s.progress>o&&!r.isSlideScrolling&&n>0?e.next():s.progress<-o&&!r.isSlideScrolling&&n<0?e.prev():e.stick()}else!t.followWheel&&!e.isTransitioning&&e.stick();e.callbacks.emit("wheelEnd",void 0)}_addDelta(e){this._deltas.length>=Ut&&this._deltas.shift(),this._deltas.push(e)}get isTouchPad(){return!this.isStableDelta||this.isSmallDelta}get isStableDelta(){let e=this.absDeltas,t=.8,s=e.map((n,o)=>{let a=e[o-1];return e[o-1]?n-a:0});return s.filter(n=>n===0).length>s.length*t}get isSmallDelta(){let e=this.absDeltas;return e.length===0?!0:e[e.length-1]<50}get isGainingDelta(){let e=v(),t=this.absDeltas,s=e.osName.includes("window")?1.5:1.2;if(t.length<Ut)return!1;let r=t.slice(-Ut),n=r.slice(0,Math.floor(r.length/2)),o=r.slice(Math.floor(r.length/2)),a=this._getAverage(n);return this._getAverage(o)>a*s}_getAverage(e){return e.length?e.reduce((t,s)=>t+s,0)/e.length:0}};var qe=class{constructor(e){this.snap=e,e.on("destroy",()=>this._destroy(),{protected:!0});let{props:t,activeIndex:s}=e;this._startIndex=s,this._startTime=0,this._swipe=new ie({container:e.eventsEmitter,enabled:t.swipe,grabCursor:t.grabCursor,minTime:t.swipeMinTime,threshold:t.swipeThreshold,axis:this.axis,ratio:t.swipeSpeed,inertia:!1,inertiaDuration:t.swipeInertiaDuration,inertiaRatio:t.swipeInertiaRatio,velocityModifier:this._handleVelocityModifier.bind(this),inertiaDistanceThreshold:5}),this._swipe.on("start",r=>this._handleSwipeStart(r)),this._swipe.on("move",r=>this._handleSwipeMove(r)),this._swipe.on("end",r=>this._handleSwipeEnd(r)),this._swipe.on("inertiaStart",()=>this._handleSwipeInertiaStart()),this._swipe.on("inertiaEnd",()=>this._handleSwipeInertiaEnd()),this._swipe.on("inertiaFail",()=>this._handleSwipeInertiaFail()),this._swipe.on("inertiaCancel",()=>this._handleSwipeInertiaCancel()),e.on("props",()=>{this._swipe.updateProps({enabled:e.props.swipe,grabCursor:e.props.grabCursor,minTime:e.props.swipeMinTime,threshold:e.props.swipeThreshold,axis:this.axis,ratio:t.swipeSpeed,inertiaDuration:e.props.swipeInertiaDuration,inertiaRatio:e.props.swipeInertiaRatio})},{protected:!0})}get axis(){let{snap:e}=this;return e.props.swipeAxis==="auto"?e.axis:e.props.swipeAxis}get isSwiping(){return this._swipe.isSwiping}get hasInertia(){return this._swipe.hasInertia}get isShort(){let{props:e}=this.snap;return e.shortSwipes?+new Date-this._startTime<=e.shortSwipesDuration:!1}get allowFriction(){return!this.isShort&&this.snap.props.swipeFriction}get diff(){return(this.axis==="x"?this._swipe.diff.x:this._swipe.diff.y)/Math.abs(this.snap.props.swipeSpeed)}_handleVelocityModifier(e){let{props:t,track:s,activeSlide:r,domSize:n}=this.snap,{coord:o,size:a}=r;if(t.freemode===!0)return e;if(s.target=s.current,t.freemode==="sticky"&&!s.isSlideScrolling){let d=s.loopedCurrent-e[this.axis],h=this.snap.getNearestMagnet(d);if(!h)return e;let p=s.loopedCurrent-d-h.diff;return Object.assign(Object.assign({},e),{[this.axis]:p})}let l=S(e[this.axis],-o,n-a-o);return Object.assign(Object.assign({},e),{[this.axis]:l})}_handleSwipeStart(e){let{snap:t}=this;this._startIndex=t.activeIndex,this._startTime=+new Date,t.eventsEmitter.style.pointerEvents="none",t.props.followSwipe&&t.cancelTransition(),t.callbacks.emit("swipeStart",e)}_handleSwipeMove(e){let{snap:t}=this,{props:s,track:r,callbacks:n}=t,{followSwipe:o}=s;if(!o&&!r.isSlideScrolling)return;let l=(this.axis==="x"?e.step.x:e.step.y)*-1;r.iterateTarget(l),this._swipe.hasInertia&&r.clampTarget(),n.emit("swipe",e)}_handleSwipeEnd(e){this._end(),this.snap.eventsEmitter.style.pointerEvents="",this.snap.callbacks.emit("swipeEnd",e)}_handleSwipeInertiaStart(){this.snap.callbacks.emit("swipeInertiaStart",void 0)}_handleSwipeInertiaEnd(){this.snap.callbacks.emit("swipeInertiaEnd",void 0)}_handleSwipeInertiaFail(){let{snap:e}=this;e.props.freemode==="sticky"&&!e.track.isSlideScrolling&&(this.isShort?this._endShort():e.stick()),this.snap.callbacks.emit("swipeInertiaFail",void 0)}_handleSwipeInertiaCancel(){this.snap.callbacks.emit("swipeInertiaCancel",void 0)}_end(){let{snap:e,_swipe:t}=this,{props:s,track:r}=e;if(s.freemode){this._swipe.updateProps({inertia:!0}),!r.canLoop&&(r.target<r.min||r.target>r.max)&&(t.cancelInertia(),e.stick()),this.isShort&&s.freemode==="sticky"&&(this._swipe.updateProps({inertia:!1}),t.cancelInertia(),this._endShort());return}if(r.isSlideScrolling){this._swipe.updateProps({inertia:!0});return}if(this._swipe.updateProps({inertia:!1}),!s.followSwipe){this._endNoFollow();return}if(this.isShort){this._endShort();return}e.stick()}_endShort(){let{diff:e,snap:t}=this,{props:s,activeSlide:r}=t;if(Math.abs(e)<s.shortSwipesThreshold){t.stick();return}let n=Math.sign(e);if(this._startIndex!==t.activeIndex){n<0&&r.progress>0?t.next():n>0&&r.progress<0?t.prev():t.stick();return}n<0?t.next():t.prev()}_endNoFollow(){let{diff:e,snap:t}=this;if(Math.abs(e)<20){t.stick();return}e<0?t.next():t.prev()}_destroy(){this._swipe.destroy()}};var Ye=class{constructor(e){this.snap=e,this._influence={current:0,target:0},this._current=0,this._target=0}get influence(){return this._influence.current}set influence(e){this._influence.current=e,this._influence.target=e}get current(){return this._current}set current(e){this._current=e}get target(){return this._target}set target(e){let{domSize:t}=this.snap,s=e-this._target;this._target=e,this._influence.target+=t?s/t:0,this._influence.target=S(this._influence.target,-.2,.2)}set(e){this.current=e,this.target=e,this._influence.current=0,this._influence.target=0}get canLoop(){return this.snap.props.loop&&this.snap.slides.length>1}get loopedCurrent(){return this.loopCoord(this.current)}get offset(){let{snap:e}=this;return e.props.centered?e.domSize/2-e.firstSlideSize/2:0}get loopCount(){return Math.floor(this.current/this.max)}loopCoord(e){return this.canLoop?U(e,this.min,this.max):e}lerp(e){let{target:t}=this,{snap:s,min:r,max:n}=this,o=e,a=this._influence;if(!s.props.loop){let{domSize:d,props:h}=s,p=(1-h.edgeFriction)*d;if(t<r){let b=1-Y(t,-d,r);t=r-b*p}else if(t>n){let b=Y(t,n,n+d);t=n+b*p}t=S(t,r-p,n+p)}let l=Math.abs(this.current-t),c=3;if(l<c){let d=1-l/c,h=(1-o)/15;o+=h*d}this.current=L(this.current,t,o,1e-6),a.target=L(a.target,0,e,1e-6),a.current=L(a.current,a.target,o,1e-6)}get isInterpolated(){return this.current===this.target&&this._influence.current===0}get min(){let{snap:e}=this;if(this.canLoop||e.isEmpty)return 0;if(e.props.centered){let t=e.slides[0];if(t.size>e.domSize)return e.domSize/2-t.size/2}return 0}get max(){let{domSize:e,slides:t,isEmpty:s,props:r}=this.snap,{canLoop:n}=this;if(s)return 0;let o=t[0],a=t[t.length-1],l=a.staticCoord+a.size,c=n?l+R(r.gap):l-e;return n||(r.centered&&(c+=e/2-o.size/2,a.size<e&&(c+=e/2-a.size/2)),r.centered||(c=Math.max(c,0))),c}get progress(){return this.current/this.max}iterateTarget(e){let{snap:t}=this;this.target+=e,t._raf.play()}clampTarget(){let{snap:e}=this;this.canLoop||(this.target=S(this.target,this.min,this.max)),e._raf.play()}get isStart(){return this.snap.props.loop?!1:Math.floor(this.target)<=Math.floor(this.min)}get isEnd(){return this.snap.props.loop?!1:Math.floor(this.target)>=Math.floor(this.max)}get isSlideScrolling(){let{snap:e}=this,{domSize:t}=e;return e.scrollableSlides.some(({size:s,coord:r})=>$t(r,t-s,0))}};var Qe=class{constructor(e){this._snap=e,this._destructors=[],e.on("destroy",()=>this._destroy(),{protected:!0}),this._destructors.push(w(e.container,"scroll",()=>this._handleScroll()))}get snap(){return this._snap}_handleScroll(){this.snap.container.scrollTo({top:0,left:0,behavior:"instant"})}_destroy(){this._destructors.forEach(e=>e())}};function Ke(i){return typeof i=="string"}var qt=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},Xt=function(i,e){var t={};for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&e.indexOf(s)<0&&(t[s]=i[s]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(i);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(i,s[r])&&(t[s[r]]=i[s[r]]);return t},ue=class extends y{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{eventsEmitter:null,activeIndex:0})}_getMutable(){return Object.assign(Object.assign({},super._getMutable()),{slides:!1,direction:"horizontal",centered:!1,loop:!1,gap:0,lerp:v().mobile?1:.2,freemode:!1,stickOnResize:!0,friction:0,edgeFriction:.85,duration:500,easing:ee,swipe:!0,grabCursor:!1,swipeSpeed:1,swipeAxis:"auto",followSwipe:!0,shortSwipes:!0,shortSwipesDuration:300,shortSwipesThreshold:30,swipeFriction:!1,swipeThreshold:5,swipeMinTime:0,swipeInertiaDuration:e=>S(e,500,2e3),swipeInertiaRatio:.5,wheel:!1,wheelSpeed:1,wheelAxis:"auto",followWheel:!0,wheelThrottle:"auto",stickOnWheelEnd:!0,stickOnWheelEndThreshold:30,slideSize:"auto"})}constructor(e){super(e),this._domSize=0,this._slides=[],this._scrollableSlides=[];let{container:t,activeIndex:s}=this.props;this._activeIndex=s,this._resizeHandler=$({element:t,viewportTarget:"width",callback:()=>this._handleResize(),name:this.name}),this._resizeHandler.debounceResize(),this._raf=new F,this._raf.on("frame",()=>this._handleRaf()),this._raf.on("play",()=>this._callbacks.emit("rafPlay",void 0)),this._raf.on("pause",()=>this._callbacks.emit("rafPause",void 0)),this._fetchSlides(),this._wheel=new Xe(this),this._swipe=new qe(this),this._track=new Ye(this),this._keyboard=new Qe(this)}_handleProps(){this._fetchSlides(),this._resizeHandler.resize(),super._handleProps()}_fetchSlides(){this._slides.forEach(t=>t.detach());let e=this.props.slides?this.props.slides:Array.from(this.props.container.children);this._slides=e.map(t=>t instanceof pe?t:new pe(t)),this._slides.forEach((t,s)=>t.attach(this,s))}resize(e=!1){e?this._resizeHandler.resize():this._resizeHandler.debounceResize()}_handleResize(){let{direction:e,container:t}=this.props;this.cancelTransition(),this._domSize=e==="horizontal"?t.offsetWidth:t.offsetHeight,this._reflow(),this.callbacks.emit("resize",void 0)}get container(){return this.props.container}get eventsEmitter(){var e;return(e=this.props.eventsEmitter)!==null&&e!==void 0?e:this.container}get domSize(){return this._domSize}get slides(){return this._slides}get scrollableSlides(){return this._scrollableSlides}get activeIndex(){return this._activeIndex}get activeSlide(){return this.slides[this._activeIndex]}get isEmpty(){return this.slides.length===0}get axis(){return this.props.direction==="horizontal"?"x":"y"}get track(){return this._track}get isTransitioning(){return!!this._timeline}get isSwiping(){return!!this._swipe.isSwiping}_reflow(){let{slides:e,props:t}=this;if(e.length===0)return;this._scrollableSlides=[],e.reduce((r,n)=>(n.setStaticCoord(r),n.size>this.domSize&&this._scrollableSlides.push(n),r+n.size+R(t.gap)),0);let s=e.find(({index:r})=>r===this.activeIndex);t.stickOnResize&&s&&(this.track.clampTarget(),this.track.set(s.magnets[0])),this.callbacks.emit("reflow",void 0),this.render()}_handleRaf(){if(this.isTransitioning)return;let{track:e,props:t}=this;e.lerp(this._raf.lerpFactor(t.lerp)),e.isInterpolated&&this._raf.pause(),this.render(this._raf.duration)}render(e=0){if(this.isEmpty)return;let{_swipe:t,track:s,props:r}=this;this._updateSlidesCoords(),this._updateSlidesProgress();let{magnet:n}=this;n&&n.slide.index!==this._activeIndex&&(We(this._targetIndex)||n.slide.index===this._targetIndex)&&(this._activeIndex=n.slide.index,this._targetIndex=void 0,this.callbacks.emit("activeSlide",this.activeSlide));let o=t.isSwiping&&t.allowFriction||!t.isSwiping;n&&o&&e>0&&r.friction>=0&&!s.isSlideScrolling&&!r.freemode&&(s.target=dt(s.target,s.current+n.diff,r.friction*r.lerp,e,1e-6)),this.slides.forEach(a=>a.render()),this.callbacks.emit("update",void 0)}_updateSlidesCoords(){let{slides:e,track:t}=this,{centered:s}=this.props,r=s?this._domSize/2-this.firstSlideSize/2:0;e.forEach(n=>{let{staticCoord:o,size:a}=n;if(!t.canLoop){n.setCoord(o+r-t.current);return}if(s){n.setCoord(U(o+r-t.current,-t.max/2+r,t.max/2+r));return}n.setCoord(U(o-t.current,-a,t.max-a))})}get firstSlideSize(){return this.slides[0].size}_updateSlidesProgress(){let{slides:e,domSize:t}=this;e.forEach(s=>{let{coord:r,size:n}=s;if(this.props.centered){let o=t/2-n/2;s.setProgress(Y(r,o,o-n));return}s.setProgress(Y(r,0,-n))})}get magnet(){let e=this.track.loopedCurrent;return this.getNearestMagnet(e)}getNearestMagnet(e){let t=this.slides.flatMap(r=>r.magnets.map(n=>({slide:r,magnet:n,index:r.index})));if(t.length===0)return;let s=t.reduce((r,n)=>Math.abs(n.magnet-e)<Math.abs(r.magnet-e)?n:r);return Object.assign(Object.assign({},s),{diff:s.magnet-e})}cancelTransition(){var e;(e=this._timeline)===null||e===void 0||e.destroy(),this._timeline=void 0}stick(){let{magnet:e}=this;this.track.isSlideScrolling||!e||this.toCoord(this.track.current+e.diff)}toCoord(e,t){var s,r;if(this.isEmpty||this.isDestroyed)return!1;this.cancelTransition();let{track:n,props:o,callbacks:a}=this,l=n.current,c=e,d=Math.abs(c-l),h=(s=t==null?void 0:t.duration)!==null&&s!==void 0?s:o.duration,p=V(h)?h:h(d);d===0&&(p=0);let b=(r=t==null?void 0:t.easing)!==null&&r!==void 0?r:o.easing,f=new D({duration:p,easing:b});return this._timeline=f,f.on("start",()=>{var u;a.emit("timelineStart",void 0),(u=t==null?void 0:t.onStart)===null||u===void 0||u.call(t)}),f.on("update",u=>{var g;n.current=L(l,c,u.eased),n.target=n.current,n.influence*=1-u.progress,u.progress===1&&(this._targetIndex=void 0),this.render(),a.emit("timelineUpdate",u),(g=t==null?void 0:t.onUpdate)===null||g===void 0||g.call(t,u)}),f.on("end",()=>{var u;f.destroy(),a.emit("timelineEnd",void 0),(u=t==null?void 0:t.onEnd)===null||u===void 0||u.call(t),this._timeline=void 0}),f.on("destroy",()=>{this._targetIndex=void 0}),f.play(),!0}toSlide(e,t={}){var s,r,{direction:n=null}=t,o=Xt(t,["direction"]);let{isEmpty:a,activeIndex:l,slides:c,track:d,props:h}=this,{current:p,max:b,loopCount:f}=d;if(a||this.isDestroyed)return!1;let u=U(e,0,this.slides.length);if(u===l)return this.stick(),!1;this._targetIndex=u;let g=c[u].magnets,E=g[0];if(h.centered?n==="prev"?E=(s=g[2])!==null&&s!==void 0?s:g[0]:n==="next"&&(E=(r=g[1])!==null&&r!==void 0?r:g[0]):E=n==="prev"?g[g.length-1]:E,!h.loop)return this.toCoord(E,o);let M=E+f*b,T=M-b,C=M+b,z=[T,M,C];if(Ke(n)){let Zt=z.filter(Q=>n==="next"?Q>=p:Q<=p),re=Ce(p,Zt);return this.toCoord(re,o)}let X=Ce(p,z);return this.toCoord(X,o)}next(e={}){var{skip:t=1}=e,s=Xt(e,["skip"]);let{props:r,slides:n,activeIndex:o}=this,a=r.loop?U(o+t,0,n.length):Math.min(o+t,n.length-1);return this.toSlide(a,Object.assign(Object.assign({},s),{direction:"next"}))}prev(e={}){var{skip:t=1}=e,s=Xt(e,["skip"]);let{props:r,slides:n,activeIndex:o}=this,a=r.loop?U(o-t,0,n.length):Math.max(o-t,0);return this.toSlide(a,Object.assign(Object.assign({},s),{direction:"prev"}))}_destroy(){super._destroy(),this._resizeHandler.remove(),this.cancelTransition(),this._raf.destroy(),this._slides.forEach(e=>e.detach())}};qt([_],ue.prototype,"resize",null);qt([_],ue.prototype,"render",null);qt([_],ue.prototype,"stick",null);var Ws=ti(Bs());function Ge(i,e){return e?Ke(e)?i.matches(e):typeof e=="function"?e(i):e.includes(i):!1}function Vs({wordsMeta:i,classname:e,tagName:t,ignore:s}){let r=[],n=m.createElement(t);return n.style.display="inline-block",x(n,e),i.forEach(o=>{if(Ge(o.element,s))return;let a=o.element.childNodes[0];if(!a)return;let l=a.textContent;if(!l)return;(0,Ws.default)(l,"").forEach(d=>{let h=n.cloneNode(!1);h.appendChild(m.createTextNode(d)),o.element.insertBefore(h,a);let p={element:h};o.letters.push(p),r.push(p)}),a.remove()}),{lettersMeta:r}}function $s({container:i,classname:e,tagName:t,ignore:s,prepareText:r,wordDelimiter:n=" ",wordDelimiterOutput:o}){let a=o||n,l=m.createElement(t);l.style.display="inline-block",l.setAttribute("aria-hidden","true"),x(l,e);let c=[],d=null;function h(p){var b,f;if(p instanceof HTMLElement||p instanceof DocumentFragment){if("tagName"in p&&p.tagName!=="BR"){if(Ge(p,s)){d?d.append(p):c.push({element:p,letters:[]});return}p.style.display="inline-block"}d=null,[...Array.from(p.childNodes)].forEach(g=>h(g));return}if(p.nodeType===3){let u=(b=p.parentElement)!==null&&b!==void 0?b:i,g=(f=p.nodeValue)!==null&&f!==void 0?f:"";if(g===n){d=null,u==null||u.insertBefore(m.createTextNode(a),p),p.remove();return}g=r?r(g):g;let E=g.split(n);E.forEach((M,T)=>{if(M){let C=l.cloneNode(!1);C.appendChild(m.createTextNode(M)),d=C,c.push({element:C,letters:[]}),u==null||u.insertBefore(C,p)}T<E.length-1&&(u==null||u.insertBefore(m.createTextNode(a),p))}),p.remove()}}return h(i),c}var kn=function(i,e){var t={};for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&e.indexOf(s)<0&&(t[s]=i[s]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(i);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(i,s[r])&&(t[s[r]]=i[s[r]]);return t};function Ls(i){var{container:e,letterClassName:t,wordClassName:s,hasLetters:r,letterTag:n,wordTag:o,ignore:a}=i,l=kn(i,["container","letterClassName","wordClassName","hasLetters","letterTag","wordTag","ignore"]);let c=m.createDocumentFragment();for(;e.childNodes[0];)c.appendChild(e.childNodes[0]);let d=$s(Object.assign(Object.assign({},l),{container:c,classname:s,tagName:o,ignore:a})),h=[];if(r){let p=Vs({wordsMeta:d,classname:t,tagName:n,ignore:a});h.push(...p.lettersMeta)}return e.appendChild(c),{wordsMeta:d,lettersMeta:h}}function Fs(i){let{direction:e,textAlign:t}=getComputedStyle(i);return t==="center"?t:t==="justify"?e==="rtl"?"right":"left":t==="left"||t==="right"?t:t==="start"?e==="rtl"?"right":"left":t==="end"?e==="rtl"?"left":"right":e==="rtl"?"right":"left"}function Hs(i,e){var t;return i!=null&&i.parentElement?i.parentElement===e?i:Hs((t=i==null?void 0:i.parentElement)!==null&&t!==void 0?t:null,e):null}function Us(i,e){return i===e?!0:i!==null?Us(i.parentNode,e):!1}function Xs({container:i,hasLinesWrapper:e,wordsMeta:t,lineClassName:s,lineWrapperClassName:r,tagName:n}){let o=Fs(i),a=[],l=-1,c=null,d=m.createElement(n);d.style.display="block",d.setAttribute("aria-hidden","true"),x(d,s);let h=t.map(f=>f.element.getBoundingClientRect());t.forEach((f,u)=>{var g;let E=h[u],M=Hs(f.element,i);if(!M)return;let T=c&&E.top>c.top,C=c&&E.left>=c.left,z=c&&E.left<=c.left;if(!c||T&&z&&o==="left"||T&&C&&o==="right"||T&&o==="center"){l+=1;let re=d.cloneNode(!1),Q;e&&(Q=m.createElement(n),Q.style.display="block",x(Q,r),Q.appendChild(re)),a[l]={element:re,wrapper:Q,nodes:[],words:[]}}c=E;let X=a[l];!!a.find(({nodes:re})=>re.includes(M))||(X.nodes.push(M),((g=M.nextSibling)===null||g===void 0?void 0:g.nodeType)===3&&X.nodes.push(M.nextSibling))}),a.forEach(f=>{var u;i.insertBefore((u=f.wrapper)!==null&&u!==void 0?u:f.element,f.nodes[0]);let g=m.createDocumentFragment();g.append(...f.nodes),f.element.append(g)});let p=[];return a.forEach(f=>{var u;let g=((u=f.wrapper)!==null&&u!==void 0?u:f.element).nextElementSibling;g instanceof HTMLBRElement&&(g.style.display="none",p.push(g))}),a.forEach(f=>{f.words.push(...t.filter(u=>Us(u.element,f.element)))}),{linesMeta:a,destroy:()=>{let f=!0;return p.forEach(u=>{u.style.display=""}),a.forEach(u=>{var g;u.nodes.forEach(E=>{var M;let T=(M=u.wrapper)!==null&&M!==void 0?M:u.element;T.parentElement?i.insertBefore(E,T):f=!1}),u.element.remove(),(g=u.wrapper)===null||g===void 0||g.remove()}),f}}}function qs(i){let e=[];function t(s){e.push({node:s,cssText:s instanceof HTMLElement?s.style.cssText:null,parent:s.parentNode}),s.childNodes.forEach(r=>t(r))}return i.childNodes.forEach(s=>t(s)),{restore:()=>{let s=m.createDocumentFragment();for(e.forEach(r=>{let{node:n,cssText:o}=r;for(n instanceof HTMLElement&&o&&(n.style.cssText=o);n.childNodes[0];)n.childNodes[0].remove();r.parent&&(r.parent===i?s:r.parent).appendChild(r.node)});i.childNodes[0];)i.childNodes[0].remove();i.appendChild(s)}}}var Nn=function(i,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,s);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n},Je=class extends y{_getStatic(){return Object.assign(Object.assign({},super._getStatic()),{letters:!1,lines:!1,linesWrapper:!1,letterTag:"span",wordTag:"span",lineTag:"span",letterClass:this._cn("__letter"),wordClass:this._cn("__word"),lineClass:this._cn("__line"),lineWrapperClass:this._cn("__line-wrapper"),resizeDebounce:0,ignore:null,prepareText:e=>e,wordDelimiter:" ",wordDelimiterOutput:null})}_getMutable(){return Object.assign({},super._getMutable())}get prefix(){return`${v().prefix}split-text`}get lettersMeta(){return this._lettersMeta}get letters(){return this._lettersMeta.map(e=>e.element)}get wordsMeta(){return this._wordsMeta}get words(){return this._wordsMeta.map(e=>e.element)}get linesMeta(){return this._linesMeta}get lines(){return this._linesMeta.map(e=>e.element)}constructor(e){super(e),this._isBaseSplit=!1,this._lettersMeta=[],this._wordsMeta=[],this._linesMeta=[];let{container:t}=this.props,{style:s}=t;s.fontKerning="none",s.display="block",t.setAttribute("aria-label",t.textContent||""),this._addTempClassName(t,this._cn("")),t.translate=!1,this._savedNodes=qs(t),this._setup()}_setup(){let{container:e,resizeDebounce:t}=this.props;if(!this.props.lines){this.split();return}let s=$({callback:()=>this.split(),element:e,viewportTarget:"width",resizeDebounce:t,name:this.name});s.resize(),this.onDestroy(()=>s.remove())}split(){this.callbacks.emit("beforeSplit",void 0),this._splitBase(),this.props.lines&&this._splitLines(),this.callbacks.emit("split",void 0)}_splitBase(){if(this._isBaseSplit)return;let{container:e,letterTag:t,wordTag:s,wordClass:r,letterClass:n,ignore:o,prepareText:a,wordDelimiter:l,wordDelimiterOutput:c}=this.props;this._isBaseSplit=!0;let{wordsMeta:d,lettersMeta:h}=Ls({container:e,letterClassName:n,wordClassName:r,hasLetters:this.props.letters,letterTag:t,wordTag:s,ignore:o,prepareText:a,wordDelimiter:l,wordDelimiterOutput:c});this._wordsMeta=d,this._lettersMeta=h}_splitLines(){var e;let{wordsMeta:t}=this,{container:s,lineTag:r,lineClass:n,lineWrapperClass:o}=this.props;s.offsetParent!==null&&((e=this._lineSplitWrapper)===null||e===void 0||e.destroy(),this._lineSplitWrapper=Xs({container:s,hasLinesWrapper:this.props.linesWrapper,wordsMeta:t,lineClassName:n,lineWrapperClassName:o,tagName:r}),this._linesMeta=this._lineSplitWrapper.linesMeta)}_destroy(){if(super._destroy(),!this._lineSplitWrapper)this._savedNodes.restore();else{let e=this._lineSplitWrapper.destroy();this._lineSplitWrapper=void 0,e&&this._savedNodes.restore()}}};Nn([_],Je.prototype,"split",null);var Ys=W?v():void 0,Bn=Ys;return tr(Wn);})();
177
181
  /*! Bundled license information:
178
182
 
179
183
  normalize-wheel/src/isEventSupported.js: