@ozdao/prometheus-framework 0.2.89 → 0.2.91

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 (182) hide show
  1. package/dist/auth.server.js +1 -0
  2. package/dist/auth.server.mjs +1 -0
  3. package/dist/main-BQisDfLk.js +92 -0
  4. package/dist/main-BV1Yv9Hy.js +92 -0
  5. package/dist/main-DTlUA63C.mjs +13617 -0
  6. package/dist/main-DmNP-t33.mjs +13625 -0
  7. package/dist/main.css +1 -1
  8. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
  9. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +748 -750
  10. package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs +1 -1
  11. package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +40 -39
  12. package/dist/node_modules/web3/lib/esm/index.cjs +1 -1
  13. package/dist/node_modules/web3/lib/esm/index.js +42 -41
  14. package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
  15. package/dist/node_modules/web3/lib/esm/version.js +1 -1
  16. package/dist/node_modules/web3-eth/lib/esm/schemas.cjs +1 -1
  17. package/dist/node_modules/web3-eth/lib/esm/schemas.js +113 -88
  18. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +3 -1
  19. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +242 -217
  20. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
  21. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +43 -37
  22. package/dist/node_modules/web3-eth-ens/lib/esm/config.cjs +1 -1
  23. package/dist/node_modules/web3-eth-ens/lib/esm/config.js +3 -1
  24. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
  25. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +34 -13
  26. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -1
  27. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +48 -36
  28. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.cjs +1 -1
  29. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.js +2 -2
  30. package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
  31. package/dist/node_modules/web3-utils/lib/esm/converters.js +52 -50
  32. package/dist/node_modules/web3-utils/lib/esm/uint8array.cjs +1 -1
  33. package/dist/node_modules/web3-utils/lib/esm/uint8array.js +13 -13
  34. package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
  35. package/dist/node_modules/web3-validator/lib/esm/utils.js +76 -87
  36. package/dist/node_modules/web3-validator/lib/esm/validator.cjs +1 -1
  37. package/dist/node_modules/web3-validator/lib/esm/validator.js +49 -47
  38. package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.cjs +1 -1
  39. package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.js +168 -158
  40. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/components/Button/Button.vue.js +94 -1
  42. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  43. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +1 -102
  44. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -1
  46. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  47. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +1 -84
  48. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  50. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +17 -16
  52. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +73 -1
  54. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  55. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -73
  56. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +9 -8
  58. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  60. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
  62. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
  64. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +28 -29
  66. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +65 -65
  68. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +38 -39
  70. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/auth/store/auth.js +35 -37
  72. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/auth/store/twofa.js +3 -3
  74. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  76. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +11 -10
  78. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  80. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  82. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  84. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +2 -2
  86. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  88. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  90. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +3 -3
  92. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  94. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
  96. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  98. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +4 -3
  100. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +6 -5
  102. package/dist/prometheus-framework/src/modules/middlewares/client/inputs.validation.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/middlewares/client/inputs.validation.js +10 -13
  104. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +13 -1
  106. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +1 -13
  108. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +3 -3
  110. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
  112. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  114. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  116. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  118. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  120. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  122. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  124. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  126. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  128. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +6 -5
  130. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  132. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +6 -5
  134. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  136. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  138. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  140. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  142. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  144. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  146. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  148. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +20 -25
  150. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
  152. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  154. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +8 -7
  156. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  158. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  160. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +6 -5
  162. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
  164. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +5 -4
  166. package/dist/prometheus-framework.cjs.js +1 -1
  167. package/dist/prometheus-framework.es.js +1 -1
  168. package/dist/style.css +1 -1
  169. package/dist/web-Bk_OtXgv.js +1 -0
  170. package/dist/web-CXzcKdk4.mjs +54 -0
  171. package/dist/web-D9Cfcy5k.js +1 -0
  172. package/dist/web-VFuzUsNl.mjs +54 -0
  173. package/package.json +1 -1
  174. package/src/components/Button/Button.vue +5 -8
  175. package/src/components/FieldPhone/FieldPhone.vue +4 -0
  176. package/src/modules/auth/components/pages/ResetPassword.vue +1 -1
  177. package/src/modules/auth/components/pages/SignIn.vue +3 -3
  178. package/src/modules/auth/components/pages/SignUp.vue +1 -1
  179. package/src/modules/auth/controllers/auth.controller.js +1 -0
  180. package/src/modules/auth/store/auth.js +3 -5
  181. package/src/modules/auth/store/twofa.js +1 -1
  182. package/src/modules/middlewares/client/inputs.validation.js +0 -13
@@ -1,665 +1,663 @@
1
- function En(n) {
2
- return typeof n == "number";
1
+ function xt(t) {
2
+ return typeof t == "number";
3
3
  }
4
- function bn(n) {
5
- return typeof n == "string";
4
+ function yt(t) {
5
+ return typeof t == "string";
6
6
  }
7
- function Ln(n) {
8
- return typeof n == "boolean";
7
+ function Et(t) {
8
+ return typeof t == "boolean";
9
9
  }
10
- function On(n) {
11
- return Object.prototype.toString.call(n) === "[object Object]";
10
+ function Pt(t) {
11
+ return Object.prototype.toString.call(t) === "[object Object]";
12
12
  }
13
- function F(n) {
14
- return Math.abs(n);
13
+ function M(t) {
14
+ return Math.abs(t);
15
15
  }
16
- function In(n) {
17
- return Math.sign(n);
16
+ function Lt(t) {
17
+ return Math.sign(t);
18
18
  }
19
- function un(n, t) {
20
- return F(n - t);
19
+ function it(t, n) {
20
+ return M(t - n);
21
21
  }
22
- function Qn(n, t) {
23
- if (n === 0 || t === 0 || F(n) <= F(t))
22
+ function Ut(t, n) {
23
+ if (t === 0 || n === 0 || M(t) <= M(n))
24
24
  return 0;
25
- const r = un(F(n), F(t));
26
- return F(r / n);
25
+ const r = it(M(t), M(n));
26
+ return M(r / t);
27
27
  }
28
- function fn(n) {
29
- return an(n).map(Number);
28
+ function ct(t) {
29
+ return ut(t).map(Number);
30
30
  }
31
- function B(n) {
32
- return n[dn(n)];
31
+ function j(t) {
32
+ return t[at(t)];
33
33
  }
34
- function dn(n) {
35
- return Math.max(0, n.length - 1);
34
+ function at(t) {
35
+ return Math.max(0, t.length - 1);
36
36
  }
37
- function vn(n, t) {
38
- return t === dn(n);
37
+ function It(t, n) {
38
+ return n === at(t);
39
39
  }
40
- function wn(n, t = 0) {
41
- return Array.from(Array(n), (r, i) => t + i);
40
+ function Ot(t, n = 0) {
41
+ return Array.from(Array(t), (r, s) => n + s);
42
42
  }
43
- function an(n) {
44
- return Object.keys(n);
43
+ function ut(t) {
44
+ return Object.keys(t);
45
45
  }
46
- function Cn(n, t) {
47
- return [n, t].reduce((r, i) => (an(i).forEach((c) => {
48
- const o = r[c], e = i[c], u = On(o) && On(e);
49
- r[c] = u ? Cn(o, e) : e;
46
+ function Ct(t, n) {
47
+ return [t, n].reduce((r, s) => (ut(s).forEach((c) => {
48
+ const e = r[c], o = s[c], u = Pt(e) && Pt(o);
49
+ r[c] = u ? Ct(e, o) : o;
50
50
  }), r), {});
51
51
  }
52
- function Nn(n, t) {
53
- return typeof t.MouseEvent < "u" && n instanceof t.MouseEvent;
52
+ function bt(t, n) {
53
+ return typeof n.MouseEvent < "u" && t instanceof n.MouseEvent;
54
54
  }
55
- function Kn(n, t) {
55
+ function $t(t, n) {
56
56
  const r = {
57
- start: i,
57
+ start: s,
58
58
  center: c,
59
- end: o
59
+ end: e
60
60
  };
61
- function i() {
61
+ function s() {
62
62
  return 0;
63
63
  }
64
- function c(s) {
65
- return o(s) / 2;
64
+ function c(i) {
65
+ return e(i) / 2;
66
66
  }
67
- function o(s) {
68
- return t - s;
67
+ function e(i) {
68
+ return n - i;
69
69
  }
70
- function e(s, a) {
71
- return bn(n) ? r[n](s) : n(t, s, a);
70
+ function o(i, a) {
71
+ return yt(t) ? r[t](i) : t(n, i, a);
72
72
  }
73
73
  return {
74
- measure: e
74
+ measure: o
75
75
  };
76
76
  }
77
- function ln() {
78
- let n = [];
79
- function t(c, o, e, u = {
77
+ function ft() {
78
+ let t = [];
79
+ function n(c, e, o, u = {
80
80
  passive: !0
81
81
  }) {
82
- let s;
82
+ let i;
83
83
  if ("addEventListener" in c)
84
- c.addEventListener(o, e, u), s = () => c.removeEventListener(o, e, u);
84
+ c.addEventListener(e, o, u), i = () => c.removeEventListener(e, o, u);
85
85
  else {
86
86
  const a = c;
87
- a.addListener(e), s = () => a.removeListener(e);
87
+ a.addListener(o), i = () => a.removeListener(o);
88
88
  }
89
- return n.push(s), i;
89
+ return t.push(i), s;
90
90
  }
91
91
  function r() {
92
- n = n.filter((c) => c());
92
+ t = t.filter((c) => c());
93
93
  }
94
- const i = {
95
- add: t,
94
+ const s = {
95
+ add: n,
96
96
  clear: r
97
97
  };
98
- return i;
98
+ return s;
99
99
  }
100
- function Xn(n, t, r, i) {
101
- const c = ln(), o = 1e3 / 60;
102
- let e = null, u = 0, s = 0;
100
+ function Qt(t, n, r, s) {
101
+ const c = ft(), e = 1e3 / 60;
102
+ let o = null, u = 0, i = 0;
103
103
  function a() {
104
- c.add(n, "visibilitychange", () => {
105
- n.hidden && m();
104
+ c.add(t, "visibilitychange", () => {
105
+ t.hidden && d();
106
106
  });
107
107
  }
108
108
  function S() {
109
- b(), c.clear();
109
+ x(), c.clear();
110
110
  }
111
- function l(h) {
112
- if (!s)
111
+ function f(g) {
112
+ if (!i)
113
113
  return;
114
- e || (e = h);
115
- const f = h - e;
116
- for (e = h, u += f; u >= o; )
117
- r(), u -= o;
118
- const g = F(u / o);
119
- i(g), s && t.requestAnimationFrame(l);
114
+ o || (o = g);
115
+ const l = g - o;
116
+ for (o = g, u += l; u >= e; )
117
+ r(), u -= e;
118
+ const h = M(u / e);
119
+ s(h), i && n.requestAnimationFrame(f);
120
120
  }
121
- function p() {
122
- s || (s = t.requestAnimationFrame(l));
121
+ function m() {
122
+ i || (i = n.requestAnimationFrame(f));
123
123
  }
124
- function b() {
125
- t.cancelAnimationFrame(s), e = null, u = 0, s = 0;
124
+ function x() {
125
+ n.cancelAnimationFrame(i), o = null, u = 0, i = 0;
126
126
  }
127
- function m() {
128
- e = null, u = 0;
127
+ function d() {
128
+ o = null, u = 0;
129
129
  }
130
130
  return {
131
131
  init: a,
132
132
  destroy: S,
133
- start: p,
134
- stop: b,
133
+ start: m,
134
+ stop: x,
135
135
  update: r,
136
- render: i
136
+ render: s
137
137
  };
138
138
  }
139
- function Yn(n, t) {
140
- const r = n === "y" ? "y" : "x", i = n === "y" ? "x" : "y", c = u(), o = s();
141
- function e(S) {
139
+ function Kt(t, n) {
140
+ const r = n === "rtl", s = t === "y", c = s ? "y" : "x", e = s ? "x" : "y", o = !s && r ? -1 : 1, u = S(), i = f();
141
+ function a(d) {
142
142
  const {
143
- width: l,
144
- height: p
145
- } = S;
146
- return r === "x" ? l : p;
143
+ height: p,
144
+ width: g
145
+ } = d;
146
+ return s ? p : g;
147
147
  }
148
- function u() {
149
- return r === "y" ? "top" : t === "rtl" ? "right" : "left";
148
+ function S() {
149
+ return s ? "top" : r ? "right" : "left";
150
150
  }
151
- function s() {
152
- return r === "y" ? "bottom" : t === "rtl" ? "left" : "right";
151
+ function f() {
152
+ return s ? "bottom" : r ? "left" : "right";
153
+ }
154
+ function m(d) {
155
+ return d * o;
153
156
  }
154
157
  return {
155
- scroll: r,
156
- cross: i,
157
- startEdge: c,
158
- endEdge: o,
159
- measureSize: e
158
+ scroll: c,
159
+ cross: e,
160
+ startEdge: u,
161
+ endEdge: i,
162
+ measureSize: a,
163
+ direction: m
160
164
  };
161
165
  }
162
- function nn(n = 0, t = 0) {
163
- const r = F(n - t);
164
- function i(a) {
165
- return a < n;
166
+ function nt(t = 0, n = 0) {
167
+ const r = M(t - n);
168
+ function s(a) {
169
+ return a < t;
166
170
  }
167
171
  function c(a) {
168
- return a > t;
169
- }
170
- function o(a) {
171
- return i(a) || c(a);
172
+ return a > n;
172
173
  }
173
174
  function e(a) {
174
- return o(a) ? i(a) ? n : t : a;
175
+ return s(a) || c(a);
176
+ }
177
+ function o(a) {
178
+ return e(a) ? s(a) ? t : n : a;
175
179
  }
176
180
  function u(a) {
177
- return r ? a - r * Math.ceil((a - t) / r) : a;
181
+ return r ? a - r * Math.ceil((a - n) / r) : a;
178
182
  }
179
183
  return {
180
184
  length: r,
181
- max: t,
182
- min: n,
183
- constrain: e,
184
- reachedAny: o,
185
+ max: n,
186
+ min: t,
187
+ constrain: o,
188
+ reachedAny: e,
185
189
  reachedMax: c,
186
- reachedMin: i,
190
+ reachedMin: s,
187
191
  removeOffset: u
188
192
  };
189
193
  }
190
- function zn(n, t, r) {
194
+ function wt(t, n, r) {
191
195
  const {
192
- constrain: i
193
- } = nn(0, n), c = n + 1;
194
- let o = e(t);
195
- function e(p) {
196
- return r ? F((c + p) % c) : i(p);
196
+ constrain: s
197
+ } = nt(0, t), c = t + 1;
198
+ let e = o(n);
199
+ function o(m) {
200
+ return r ? M((c + m) % c) : s(m);
197
201
  }
198
202
  function u() {
199
- return o;
203
+ return e;
200
204
  }
201
- function s(p) {
202
- return o = e(p), l;
205
+ function i(m) {
206
+ return e = o(m), f;
203
207
  }
204
- function a(p) {
205
- return S().set(u() + p);
208
+ function a(m) {
209
+ return S().set(u() + m);
206
210
  }
207
211
  function S() {
208
- return zn(n, u(), r);
212
+ return wt(t, u(), r);
209
213
  }
210
- const l = {
214
+ const f = {
211
215
  get: u,
212
- set: s,
216
+ set: i,
213
217
  add: a,
214
218
  clone: S
215
219
  };
216
- return l;
217
- }
218
- function _n(n) {
219
- const t = n === "rtl" ? -1 : 1;
220
- function r(c) {
221
- return c * t;
222
- }
223
- return {
224
- apply: r
225
- };
220
+ return f;
226
221
  }
227
- function Jn(n, t, r, i, c, o, e, u, s, a, S, l, p, b, m, d, h, f, g, x) {
222
+ function Xt(t, n, r, s, c, e, o, u, i, a, S, f, m, x, d, p, g, l, h) {
228
223
  const {
229
- cross: L
230
- } = n, I = ["INPUT", "SELECT", "TEXTAREA"], A = {
224
+ cross: b,
225
+ direction: L
226
+ } = t, v = ["INPUT", "SELECT", "TEXTAREA"], F = {
231
227
  passive: !1
232
- }, O = ln(), E = ln(), v = nn(50, 225).constrain(m.measure(20)), D = {
228
+ }, E = ft(), I = ft(), D = nt(50, 225).constrain(x.measure(20)), A = {
233
229
  mouse: 300,
234
230
  touch: 400
235
- }, M = {
231
+ }, O = {
236
232
  mouse: 500,
237
233
  touch: 600
238
- }, C = d ? 43 : 25;
239
- let H = !1, G = 0, q = 0, j = !1, Y = !1, _ = !1, U = !1;
240
- function on(y) {
241
- if (!x)
234
+ }, V = d ? 43 : 25;
235
+ let Y = !1, B = 0, U = 0, J = !1, $ = !1, _ = !1, Q = !1;
236
+ function Z(y) {
237
+ if (!h)
242
238
  return;
243
- function T(N) {
244
- (Ln(x) || x(y, N)) && sn(N);
239
+ function T(w) {
240
+ (Et(h) || h(y, w)) && z(w);
245
241
  }
246
- const w = r;
247
- O.add(w, "dragstart", (N) => N.preventDefault(), A).add(w, "touchmove", () => {
248
- }, A).add(w, "touchend", () => {
249
- }).add(w, "touchstart", T).add(w, "mousedown", T).add(w, "touchcancel", z).add(w, "contextmenu", z).add(w, "click", Q, !0);
242
+ const C = n;
243
+ E.add(C, "dragstart", (w) => w.preventDefault(), F).add(C, "touchmove", () => {
244
+ }, F).add(C, "touchend", () => {
245
+ }).add(C, "touchstart", T).add(C, "mousedown", T).add(C, "touchcancel", N).add(C, "contextmenu", N).add(C, "click", ot, !0);
250
246
  }
251
- function R() {
252
- O.clear(), E.clear();
247
+ function K() {
248
+ E.clear(), I.clear();
253
249
  }
254
- function tn() {
255
- const y = U ? i : r;
256
- E.add(y, "touchmove", V, A).add(y, "touchend", z).add(y, "mousemove", V, A).add(y, "mouseup", z);
250
+ function et() {
251
+ const y = Q ? r : n;
252
+ I.add(y, "touchmove", R, F).add(y, "touchend", N).add(y, "mousemove", R, F).add(y, "mouseup", N);
257
253
  }
258
- function en(y) {
254
+ function X(y) {
259
255
  const T = y.nodeName || "";
260
- return I.includes(T);
256
+ return v.includes(T);
261
257
  }
262
- function $() {
263
- return (d ? M : D)[U ? "mouse" : "touch"];
258
+ function rt() {
259
+ return (d ? O : A)[Q ? "mouse" : "touch"];
264
260
  }
265
- function rn(y, T) {
266
- const w = p.add(In(y) * -1), N = l.byDistance(y, !d).distance;
267
- return d || F(y) < v ? N : f && T ? N * 0.5 : l.byIndex(w.get(), 0).distance;
261
+ function st(y, T) {
262
+ const C = f.add(Lt(y) * -1), w = S.byDistance(y, !d).distance;
263
+ return d || M(y) < D ? w : g && T ? w * 0.5 : S.byIndex(C.get(), 0).distance;
268
264
  }
269
- function sn(y) {
270
- const T = Nn(y, c);
271
- U = T, !(T && y.button !== 0) && (en(y.target) || (_ = d && T && !y.buttons && H, H = un(o.get(), u.get()) >= 2, j = !0, e.pointerDown(y), S.useFriction(0).useDuration(0), o.set(u), tn(), G = e.readPoint(y), q = e.readPoint(y, L), b.emit("pointerDown")));
265
+ function z(y) {
266
+ const T = bt(y, s);
267
+ Q = T, _ = d && T && !y.buttons && Y, Y = it(c.get(), o.get()) >= 2, !(T && y.button !== 0) && (X(y.target) || (J = !0, e.pointerDown(y), a.useFriction(0).useDuration(0), c.set(o), et(), B = e.readPoint(y), U = e.readPoint(y, b), m.emit("pointerDown")));
272
268
  }
273
- function V(y) {
274
- const T = e.readPoint(y), w = e.readPoint(y, L), N = un(T, G), J = un(w, q);
275
- if (!Y && !U && (!y.cancelable || (Y = N > J, !Y)))
276
- return z(y);
277
- const K = e.pointerMove(y);
278
- N > h && (_ = !0), S.useFriction(0.3).useDuration(1), s.start(), o.add(t.apply(K)), y.preventDefault();
269
+ function R(y) {
270
+ if (!bt(y, s) && y.touches.length >= 2)
271
+ return N(y);
272
+ const C = e.readPoint(y), w = e.readPoint(y, b), q = it(C, B), H = it(w, U);
273
+ if (!$ && !Q && (!y.cancelable || ($ = q > H, !$)))
274
+ return N(y);
275
+ const G = e.pointerMove(y);
276
+ q > p && (_ = !0), a.useFriction(0.3).useDuration(1), u.start(), c.add(L(G)), y.preventDefault();
279
277
  }
280
- function z(y) {
281
- const w = l.byDistance(0, !1).index !== p.get(), N = e.pointerUp(y) * $(), J = rn(t.apply(N), w), K = Qn(N, J), Z = C - 10 * K, X = g + K / 50;
282
- Y = !1, j = !1, E.clear(), S.useDuration(Z).useFriction(X), a.distance(J, !d), U = !1, b.emit("pointerUp");
278
+ function N(y) {
279
+ const C = S.byDistance(0, !1).index !== f.get(), w = e.pointerUp(y) * rt(), q = st(L(w), C), H = Ut(w, q), G = V - 10 * H, W = l + H / 50;
280
+ $ = !1, J = !1, I.clear(), a.useDuration(G).useFriction(W), i.distance(q, !d), Q = !1, m.emit("pointerUp");
283
281
  }
284
- function Q(y) {
285
- _ && (y.stopPropagation(), y.preventDefault());
282
+ function ot(y) {
283
+ _ && (y.stopPropagation(), y.preventDefault(), _ = !1);
286
284
  }
287
285
  function k() {
288
- return j;
286
+ return J;
289
287
  }
290
288
  return {
291
- init: on,
289
+ init: Z,
292
290
  pointerDown: k,
293
- destroy: R
291
+ destroy: K
294
292
  };
295
293
  }
296
- function Zn(n, t) {
297
- let i, c;
298
- function o(l) {
299
- return l.timeStamp;
294
+ function Yt(t, n) {
295
+ let s, c;
296
+ function e(f) {
297
+ return f.timeStamp;
300
298
  }
301
- function e(l, p) {
302
- const m = `client${(p || n.scroll) === "x" ? "X" : "Y"}`;
303
- return (Nn(l, t) ? l : l.touches[0])[m];
299
+ function o(f, m) {
300
+ const d = `client${(m || t.scroll) === "x" ? "X" : "Y"}`;
301
+ return (bt(f, n) ? f : f.touches[0])[d];
304
302
  }
305
- function u(l) {
306
- return i = l, c = l, e(l);
303
+ function u(f) {
304
+ return s = f, c = f, o(f);
307
305
  }
308
- function s(l) {
309
- const p = e(l) - e(c), b = o(l) - o(i) > 170;
310
- return c = l, b && (i = l), p;
306
+ function i(f) {
307
+ const m = o(f) - o(c), x = e(f) - e(s) > 170;
308
+ return c = f, x && (s = f), m;
311
309
  }
312
- function a(l) {
313
- if (!i || !c)
310
+ function a(f) {
311
+ if (!s || !c)
314
312
  return 0;
315
- const p = e(c) - e(i), b = o(l) - o(i), m = o(l) - o(c) > 170, d = p / b;
316
- return b && !m && F(d) > 0.1 ? d : 0;
313
+ const m = o(c) - o(s), x = e(f) - e(s), d = e(f) - e(c) > 170, p = m / x;
314
+ return x && !d && M(p) > 0.1 ? p : 0;
317
315
  }
318
316
  return {
319
317
  pointerDown: u,
320
- pointerMove: s,
318
+ pointerMove: i,
321
319
  pointerUp: a,
322
- readPoint: e
320
+ readPoint: o
323
321
  };
324
322
  }
325
- function Wn() {
326
- function n(r) {
323
+ function _t() {
324
+ function t(r) {
327
325
  const {
328
- offsetTop: i,
326
+ offsetTop: s,
329
327
  offsetLeft: c,
330
- offsetWidth: o,
331
- offsetHeight: e
328
+ offsetWidth: e,
329
+ offsetHeight: o
332
330
  } = r;
333
331
  return {
334
- top: i,
335
- right: c + o,
336
- bottom: i + e,
332
+ top: s,
333
+ right: c + e,
334
+ bottom: s + o,
337
335
  left: c,
338
- width: o,
339
- height: e
336
+ width: e,
337
+ height: o
340
338
  };
341
339
  }
342
340
  return {
343
- measure: n
341
+ measure: t
344
342
  };
345
343
  }
346
- function nt(n) {
347
- function t(i) {
348
- return n * (i / 100);
344
+ function Jt(t) {
345
+ function n(s) {
346
+ return t * (s / 100);
349
347
  }
350
348
  return {
351
- measure: t
349
+ measure: n
352
350
  };
353
351
  }
354
- function tt(n, t, r, i, c, o, e) {
355
- let u, s, a = [], S = !1;
356
- function l(d) {
357
- return c.measureSize(e.measure(d));
352
+ function Zt(t, n, r, s, c, e, o) {
353
+ let u, i, a = [], S = !1;
354
+ function f(p) {
355
+ return c.measureSize(o.measure(p));
358
356
  }
359
- function p(d) {
360
- if (!o)
357
+ function m(p) {
358
+ if (!e)
361
359
  return;
362
- s = l(n), a = i.map(l);
363
- function h(g) {
364
- for (const x of g) {
365
- const L = x.target === n, I = i.indexOf(x.target), A = L ? s : a[I], O = l(L ? n : i[I]);
366
- if (F(O - A) >= 0.5) {
360
+ i = f(t), a = s.map(f);
361
+ function g(h) {
362
+ for (const b of h) {
363
+ const L = b.target === t, v = s.indexOf(b.target), F = L ? i : a[v], E = f(L ? t : s[v]);
364
+ if (M(E - F) >= 0.5) {
367
365
  r.requestAnimationFrame(() => {
368
- d.reInit(), t.emit("resize");
366
+ p.reInit(), n.emit("resize");
369
367
  });
370
368
  break;
371
369
  }
372
370
  }
373
371
  }
374
- u = new ResizeObserver((g) => {
375
- S || (Ln(o) || o(d, g)) && h(g);
376
- }), [n].concat(i).forEach((g) => u.observe(g));
372
+ u = new ResizeObserver((h) => {
373
+ S || (Et(e) || e(p, h)) && g(h);
374
+ }), [t].concat(s).forEach((h) => u.observe(h));
377
375
  }
378
- function b() {
376
+ function x() {
379
377
  u && u.disconnect(), S = !0;
380
378
  }
381
379
  return {
382
- init: p,
383
- destroy: b
380
+ init: m,
381
+ destroy: x
384
382
  };
385
383
  }
386
- function et(n, t, r, i, c) {
387
- let o = 0, e = 0, u = i, s = c, a = n.get(), S = 0;
388
- function l() {
389
- const I = r.get() - n.get(), A = !u;
390
- let O = 0;
391
- return A ? (o = 0, n.set(r), O = I) : (o += I / u, o *= s, a += o, n.add(o), O = a - S), e = In(O), S = a, L;
384
+ function Wt(t, n, r, s, c) {
385
+ let e = 0, o = 0, u = s, i = c, a = t.get(), S = 0;
386
+ function f() {
387
+ const v = r.get() - t.get(), F = !u;
388
+ let E = 0;
389
+ return F ? (e = 0, t.set(r), E = v) : (e += v / u, e *= i, a += e, t.add(e), E = a - S), o = Lt(E), S = a, L;
392
390
  }
393
- function p() {
394
- const I = r.get() - t.get();
395
- return F(I) < 1e-3;
391
+ function m() {
392
+ const v = r.get() - n.get();
393
+ return M(v) < 1e-3;
396
394
  }
397
- function b() {
395
+ function x() {
398
396
  return u;
399
397
  }
400
- function m() {
401
- return e;
402
- }
403
398
  function d() {
404
399
  return o;
405
400
  }
406
- function h() {
407
- return g(i);
401
+ function p() {
402
+ return e;
408
403
  }
409
- function f() {
410
- return x(c);
404
+ function g() {
405
+ return h(s);
411
406
  }
412
- function g(I) {
413
- return u = I, L;
407
+ function l() {
408
+ return b(c);
414
409
  }
415
- function x(I) {
416
- return s = I, L;
410
+ function h(v) {
411
+ return u = v, L;
412
+ }
413
+ function b(v) {
414
+ return i = v, L;
417
415
  }
418
416
  const L = {
419
- direction: m,
420
- duration: b,
421
- velocity: d,
422
- seek: l,
423
- settled: p,
424
- useBaseFriction: f,
425
- useBaseDuration: h,
426
- useFriction: x,
427
- useDuration: g
417
+ direction: d,
418
+ duration: x,
419
+ velocity: p,
420
+ seek: f,
421
+ settled: m,
422
+ useBaseFriction: l,
423
+ useBaseDuration: g,
424
+ useFriction: b,
425
+ useDuration: h
428
426
  };
429
427
  return L;
430
428
  }
431
- function ot(n, t, r, i, c) {
432
- const o = c.measure(10), e = c.measure(50), u = nn(0.1, 0.99);
433
- let s = !1;
429
+ function tn(t, n, r, s, c) {
430
+ const e = c.measure(10), o = c.measure(50), u = nt(0.1, 0.99);
431
+ let i = !1;
434
432
  function a() {
435
- return !(s || !n.reachedAny(r.get()) || !n.reachedAny(t.get()));
433
+ return !(i || !t.reachedAny(r.get()) || !t.reachedAny(n.get()));
436
434
  }
437
- function S(b) {
435
+ function S(x) {
438
436
  if (!a())
439
437
  return;
440
- const m = n.reachedMin(t.get()) ? "min" : "max", d = F(n[m] - t.get()), h = r.get() - t.get(), f = u.constrain(d / e);
441
- r.subtract(h * f), !b && F(h) < o && (r.set(n.constrain(r.get())), i.useDuration(25).useBaseFriction());
438
+ const d = t.reachedMin(n.get()) ? "min" : "max", p = M(t[d] - n.get()), g = r.get() - n.get(), l = u.constrain(p / o);
439
+ r.subtract(g * l), !x && M(g) < e && (r.set(t.constrain(r.get())), s.useDuration(25).useBaseFriction());
442
440
  }
443
- function l(b) {
444
- s = !b;
441
+ function f(x) {
442
+ i = !x;
445
443
  }
446
444
  return {
447
445
  constrain: S,
448
- toggleActive: l
446
+ toggleActive: f
449
447
  };
450
448
  }
451
- function rt(n, t, r, i, c) {
452
- const o = nn(-t + n, 0), e = l(), u = S(), s = p();
453
- function a(m, d) {
454
- return un(m, d) < 1;
449
+ function nn(t, n, r, s, c) {
450
+ const e = nt(-n + t, 0), o = f(), u = S(), i = m();
451
+ function a(d, p) {
452
+ return it(d, p) < 1;
455
453
  }
456
454
  function S() {
457
- const m = e[0], d = B(e), h = e.lastIndexOf(m), f = e.indexOf(d) + 1;
458
- return nn(h, f);
455
+ const d = o[0], p = j(o), g = o.lastIndexOf(d), l = o.indexOf(p) + 1;
456
+ return nt(g, l);
459
457
  }
460
- function l() {
461
- return r.map((m, d) => {
458
+ function f() {
459
+ return r.map((d, p) => {
462
460
  const {
463
- min: h,
464
- max: f
465
- } = o, g = o.constrain(m), x = !d, L = vn(r, d);
466
- return x ? f : L || a(h, g) ? h : a(f, g) ? f : g;
467
- }).map((m) => parseFloat(m.toFixed(3)));
461
+ min: g,
462
+ max: l
463
+ } = e, h = e.constrain(d), b = !p, L = It(r, p);
464
+ return b ? l : L || a(g, h) ? g : a(l, h) ? l : h;
465
+ }).map((d) => parseFloat(d.toFixed(3)));
468
466
  }
469
- function p() {
470
- if (t <= n + c)
471
- return [o.max];
472
- if (i === "keepSnaps")
473
- return e;
467
+ function m() {
468
+ if (n <= t + c)
469
+ return [e.max];
470
+ if (s === "keepSnaps")
471
+ return o;
474
472
  const {
475
- min: m,
476
- max: d
473
+ min: d,
474
+ max: p
477
475
  } = u;
478
- return e.slice(m, d);
476
+ return o.slice(d, p);
479
477
  }
480
478
  return {
481
- snapsContained: s,
479
+ snapsContained: i,
482
480
  scrollContainLimit: u
483
481
  };
484
482
  }
485
- function st(n, t, r) {
486
- const i = t[0], c = r ? i - n : B(t);
483
+ function en(t, n, r) {
484
+ const s = n[0], c = r ? s - t : j(n);
487
485
  return {
488
- limit: nn(c, i)
486
+ limit: nt(c, s)
489
487
  };
490
488
  }
491
- function it(n, t, r, i) {
492
- const o = t.min + 0.1, e = t.max + 0.1, {
489
+ function on(t, n, r, s) {
490
+ const e = n.min + 0.1, o = n.max + 0.1, {
493
491
  reachedMin: u,
494
- reachedMax: s
495
- } = nn(o, e);
496
- function a(p) {
497
- return p === 1 ? s(r.get()) : p === -1 ? u(r.get()) : !1;
492
+ reachedMax: i
493
+ } = nt(e, o);
494
+ function a(m) {
495
+ return m === 1 ? i(r.get()) : m === -1 ? u(r.get()) : !1;
498
496
  }
499
- function S(p) {
500
- if (!a(p))
497
+ function S(m) {
498
+ if (!a(m))
501
499
  return;
502
- const b = n * (p * -1);
503
- i.forEach((m) => m.add(b));
500
+ const x = t * (m * -1);
501
+ s.forEach((d) => d.add(x));
504
502
  }
505
503
  return {
506
504
  loop: S
507
505
  };
508
506
  }
509
- function ct(n) {
507
+ function rn(t) {
510
508
  const {
511
- max: t,
509
+ max: n,
512
510
  length: r
513
- } = n;
514
- function i(o) {
515
- const e = o - t;
516
- return r ? e / -r : 0;
511
+ } = t;
512
+ function s(e) {
513
+ const o = e - n;
514
+ return r ? o / -r : 0;
517
515
  }
518
516
  return {
519
- get: i
517
+ get: s
520
518
  };
521
519
  }
522
- function ut(n, t, r, i, c) {
520
+ function sn(t, n, r, s, c) {
523
521
  const {
524
- startEdge: o,
525
- endEdge: e
526
- } = n, {
522
+ startEdge: e,
523
+ endEdge: o
524
+ } = t, {
527
525
  groupSlides: u
528
- } = c, s = l().map(t.measure), a = p(), S = b();
529
- function l() {
530
- return u(i).map((d) => B(d)[e] - d[0][o]).map(F);
526
+ } = c, i = f().map(n.measure), a = m(), S = x();
527
+ function f() {
528
+ return u(s).map((p) => j(p)[o] - p[0][e]).map(M);
531
529
  }
532
- function p() {
533
- return i.map((d) => r[o] - d[o]).map((d) => -F(d));
530
+ function m() {
531
+ return s.map((p) => r[e] - p[e]).map((p) => -M(p));
534
532
  }
535
- function b() {
536
- return u(a).map((d) => d[0]).map((d, h) => d + s[h]);
533
+ function x() {
534
+ return u(a).map((p) => p[0]).map((p, g) => p + i[g]);
537
535
  }
538
536
  return {
539
537
  snaps: a,
540
538
  snapsAligned: S
541
539
  };
542
540
  }
543
- function ft(n, t, r, i, c, o) {
541
+ function cn(t, n, r, s, c, e) {
544
542
  const {
545
- groupSlides: e
543
+ groupSlides: o
546
544
  } = c, {
547
545
  min: u,
548
- max: s
549
- } = i, a = S();
546
+ max: i
547
+ } = s, a = S();
550
548
  function S() {
551
- const p = e(o), b = !n || t === "keepSnaps";
552
- return r.length === 1 ? [o] : b ? p : p.slice(u, s).map((m, d, h) => {
553
- const f = !d, g = vn(h, d);
554
- if (f) {
555
- const x = B(h[0]) + 1;
556
- return wn(x);
549
+ const m = o(e), x = !t || n === "keepSnaps";
550
+ return r.length === 1 ? [e] : x ? m : m.slice(u, i).map((d, p, g) => {
551
+ const l = !p, h = It(g, p);
552
+ if (l) {
553
+ const b = j(g[0]) + 1;
554
+ return Ot(b);
557
555
  }
558
- if (g) {
559
- const x = dn(o) - B(h)[0] + 1;
560
- return wn(x, B(h)[0]);
556
+ if (h) {
557
+ const b = at(e) - j(g)[0] + 1;
558
+ return Ot(b, j(g)[0]);
561
559
  }
562
- return m;
560
+ return d;
563
561
  });
564
562
  }
565
563
  return {
566
564
  slideRegistry: a
567
565
  };
568
566
  }
569
- function at(n, t, r, i, c) {
567
+ function un(t, n, r, s, c) {
570
568
  const {
571
- reachedAny: o,
572
- removeOffset: e,
569
+ reachedAny: e,
570
+ removeOffset: o,
573
571
  constrain: u
574
- } = i;
575
- function s(m) {
576
- return m.concat().sort((d, h) => F(d) - F(h))[0];
577
- }
578
- function a(m) {
579
- const d = n ? e(m) : u(m), h = t.map((g) => g - d).map((g) => S(g, 0)).map((g, x) => ({
580
- diff: g,
581
- index: x
582
- })).sort((g, x) => F(g.diff) - F(x.diff)), {
583
- index: f
584
- } = h[0];
572
+ } = s;
573
+ function i(d) {
574
+ return d.concat().sort((p, g) => M(p) - M(g))[0];
575
+ }
576
+ function a(d) {
577
+ const p = t ? o(d) : u(d), g = n.map((h, b) => ({
578
+ diff: S(h - p, 0),
579
+ index: b
580
+ })).sort((h, b) => M(h.diff) - M(b.diff)), {
581
+ index: l
582
+ } = g[0];
585
583
  return {
586
- index: f,
587
- distance: d
584
+ index: l,
585
+ distance: p
588
586
  };
589
587
  }
590
- function S(m, d) {
591
- const h = [m, m + r, m - r];
592
- if (!n)
593
- return h[0];
594
- if (!d)
595
- return s(h);
596
- const f = h.filter((g) => In(g) === d);
597
- return f.length ? s(f) : B(h) - r;
598
- }
599
- function l(m, d) {
600
- const h = t[m] - c.get(), f = S(h, d);
588
+ function S(d, p) {
589
+ const g = [d, d + r, d - r];
590
+ if (!t)
591
+ return g[0];
592
+ if (!p)
593
+ return i(g);
594
+ const l = g.filter((h) => Lt(h) === p);
595
+ return l.length ? i(l) : j(g) - r;
596
+ }
597
+ function f(d, p) {
598
+ const g = n[d] - c.get(), l = S(g, p);
601
599
  return {
602
- index: m,
603
- distance: f
600
+ index: d,
601
+ distance: l
604
602
  };
605
603
  }
606
- function p(m, d) {
607
- const h = c.get() + m, {
608
- index: f,
609
- distance: g
610
- } = a(h), x = !n && o(h);
611
- if (!d || x)
604
+ function m(d, p) {
605
+ const g = c.get() + d, {
606
+ index: l,
607
+ distance: h
608
+ } = a(g), b = !t && e(g);
609
+ if (!p || b)
612
610
  return {
613
- index: f,
614
- distance: m
611
+ index: l,
612
+ distance: d
615
613
  };
616
- const L = t[f] - g, I = m + S(L, 0);
614
+ const L = n[l] - h, v = d + S(L, 0);
617
615
  return {
618
- index: f,
619
- distance: I
616
+ index: l,
617
+ distance: v
620
618
  };
621
619
  }
622
620
  return {
623
- byDistance: p,
624
- byIndex: l,
621
+ byDistance: m,
622
+ byIndex: f,
625
623
  shortcut: S
626
624
  };
627
625
  }
628
- function lt(n, t, r, i, c, o, e) {
629
- function u(l) {
630
- const p = l.distance, b = l.index !== t.get();
631
- o.add(p), p && (i.duration() ? n.start() : (n.update(), n.render(1), n.update())), b && (r.set(t.get()), t.set(l.index), e.emit("select"));
626
+ function fn(t, n, r, s, c, e, o) {
627
+ function u(f) {
628
+ const m = f.distance, x = f.index !== n.get();
629
+ e.add(m), m && (s.duration() ? t.start() : (t.update(), t.render(1), t.update())), x && (r.set(n.get()), n.set(f.index), o.emit("select"));
632
630
  }
633
- function s(l, p) {
634
- const b = c.byDistance(l, p);
635
- u(b);
631
+ function i(f, m) {
632
+ const x = c.byDistance(f, m);
633
+ u(x);
636
634
  }
637
- function a(l, p) {
638
- const b = t.clone().set(l), m = c.byIndex(b.get(), p);
639
- u(m);
635
+ function a(f, m) {
636
+ const x = n.clone().set(f), d = c.byIndex(x.get(), m);
637
+ u(d);
640
638
  }
641
639
  return {
642
- distance: s,
640
+ distance: i,
643
641
  index: a
644
642
  };
645
643
  }
646
- function dt(n, t, r, i, c, o) {
647
- let e = 0;
644
+ function an(t, n, r, s, c, e) {
645
+ let o = 0;
648
646
  function u() {
649
- o.add(document, "keydown", s, !1), t.forEach(a);
647
+ e.add(document, "keydown", i, !1), n.forEach(a);
650
648
  }
651
- function s(l) {
652
- l.code === "Tab" && (e = (/* @__PURE__ */ new Date()).getTime());
649
+ function i(f) {
650
+ f.code === "Tab" && (o = (/* @__PURE__ */ new Date()).getTime());
653
651
  }
654
- function a(l) {
655
- const p = () => {
656
- if ((/* @__PURE__ */ new Date()).getTime() - e > 10)
652
+ function a(f) {
653
+ const m = () => {
654
+ if ((/* @__PURE__ */ new Date()).getTime() - o > 10)
657
655
  return;
658
- n.scrollLeft = 0;
659
- const d = t.indexOf(l), h = r.findIndex((f) => f.includes(d));
660
- En(h) && (c.useDuration(0), i.index(h, 0));
656
+ t.scrollLeft = 0;
657
+ const p = n.indexOf(f), g = r.findIndex((l) => l.includes(p));
658
+ xt(g) && (c.useDuration(0), s.index(g, 0));
661
659
  };
662
- o.add(l, "focus", p, {
660
+ e.add(f, "focus", m, {
663
661
  passive: !0,
664
662
  capture: !0
665
663
  });
@@ -668,360 +666,360 @@ function dt(n, t, r, i, c, o) {
668
666
  init: u
669
667
  };
670
668
  }
671
- function mn(n) {
672
- let t = n;
669
+ function dt(t) {
670
+ let n = t;
673
671
  function r() {
674
- return t;
672
+ return n;
675
673
  }
676
- function i(s) {
677
- t = e(s);
674
+ function s(i) {
675
+ n = o(i);
678
676
  }
679
- function c(s) {
680
- t += e(s);
677
+ function c(i) {
678
+ n += o(i);
681
679
  }
682
- function o(s) {
683
- t -= e(s);
680
+ function e(i) {
681
+ n -= o(i);
684
682
  }
685
- function e(s) {
686
- return En(s) ? s : s.get();
683
+ function o(i) {
684
+ return xt(i) ? i : i.get();
687
685
  }
688
686
  return {
689
687
  get: r,
690
- set: i,
688
+ set: s,
691
689
  add: c,
692
- subtract: o
690
+ subtract: e
693
691
  };
694
692
  }
695
- function Vn(n, t, r) {
696
- const i = n.scroll === "x" ? e : u, c = r.style;
697
- let o = !1;
698
- function e(p) {
699
- return `translate3d(${p}px,0px,0px)`;
693
+ function Nt(t, n) {
694
+ const r = t.scroll === "x" ? e : o, s = n.style;
695
+ let c = !1;
696
+ function e(f) {
697
+ return `translate3d(${f}px,0px,0px)`;
700
698
  }
701
- function u(p) {
702
- return `translate3d(0px,${p}px,0px)`;
699
+ function o(f) {
700
+ return `translate3d(0px,${f}px,0px)`;
703
701
  }
704
- function s(p) {
705
- o || (c.transform = i(t.apply(p)));
702
+ function u(f) {
703
+ c || (s.transform = r(t.direction(f)));
706
704
  }
707
- function a(p) {
708
- o = !p;
705
+ function i(f) {
706
+ c = !f;
709
707
  }
710
- function S() {
711
- o || (c.transform = "", r.getAttribute("style") || r.removeAttribute("style"));
708
+ function a() {
709
+ c || (s.transform = "", n.getAttribute("style") || n.removeAttribute("style"));
712
710
  }
713
711
  return {
714
- clear: S,
715
- to: s,
716
- toggleActive: a
712
+ clear: a,
713
+ to: u,
714
+ toggleActive: i
717
715
  };
718
716
  }
719
- function pt(n, t, r, i, c, o, e, u, s, a) {
720
- const l = fn(o), p = fn(o).reverse(), b = g().concat(x());
721
- function m(E, v) {
722
- return E.reduce((D, M) => D - o[M], v);
723
- }
724
- function d(E, v) {
725
- return E.reduce((D, M) => m(D, v) > 0 ? D.concat([M]) : D, []);
726
- }
727
- function h(E) {
728
- return e.map((v, D) => ({
729
- start: v - c[D] + 0.5 + E,
730
- end: v + r - 0.5 + E
717
+ function ln(t, n, r, s, c, e, o, u, i) {
718
+ const S = ct(c), f = ct(c).reverse(), m = l().concat(h());
719
+ function x(E, I) {
720
+ return E.reduce((D, A) => D - c[A], I);
721
+ }
722
+ function d(E, I) {
723
+ return E.reduce((D, A) => x(D, I) > 0 ? D.concat([A]) : D, []);
724
+ }
725
+ function p(E) {
726
+ return e.map((I, D) => ({
727
+ start: I - s[D] + 0.5 + E,
728
+ end: I + n - 0.5 + E
731
729
  }));
732
730
  }
733
- function f(E, v, D) {
734
- const M = h(v);
735
- return E.map((C) => {
736
- const H = D ? 0 : -i, G = D ? i : 0, q = D ? "end" : "start", j = M[C][q];
731
+ function g(E, I, D) {
732
+ const A = p(I);
733
+ return E.map((O) => {
734
+ const V = D ? 0 : -r, Y = D ? r : 0, B = D ? "end" : "start", U = A[O][B];
737
735
  return {
738
- index: C,
739
- loopPoint: j,
740
- slideLocation: mn(-1),
741
- translate: Vn(n, t, a[C]),
742
- target: () => s.get() > j ? H : G
736
+ index: O,
737
+ loopPoint: U,
738
+ slideLocation: dt(-1),
739
+ translate: Nt(t, i[O]),
740
+ target: () => u.get() > U ? V : Y
743
741
  };
744
742
  });
745
743
  }
746
- function g() {
747
- const E = u[0], v = d(p, E);
748
- return f(v, i, !1);
744
+ function l() {
745
+ const E = o[0], I = d(f, E);
746
+ return g(I, r, !1);
749
747
  }
750
- function x() {
751
- const E = r - u[0] - 1, v = d(l, E);
752
- return f(v, -i, !0);
748
+ function h() {
749
+ const E = n - o[0] - 1, I = d(S, E);
750
+ return g(I, -r, !0);
753
751
  }
754
- function L() {
755
- return b.every(({
752
+ function b() {
753
+ return m.every(({
756
754
  index: E
757
755
  }) => {
758
- const v = l.filter((D) => D !== E);
759
- return m(v, r) <= 0.1;
756
+ const I = S.filter((D) => D !== E);
757
+ return x(I, n) <= 0.1;
760
758
  });
761
759
  }
762
- function I() {
763
- b.forEach((E) => {
760
+ function L() {
761
+ m.forEach((E) => {
764
762
  const {
765
- target: v,
763
+ target: I,
766
764
  translate: D,
767
- slideLocation: M
768
- } = E, C = v();
769
- C !== M.get() && (D.to(C), M.set(C));
765
+ slideLocation: A
766
+ } = E, O = I();
767
+ O !== A.get() && (D.to(O), A.set(O));
770
768
  });
771
769
  }
772
- function A() {
773
- b.forEach((E) => E.translate.clear());
770
+ function v() {
771
+ m.forEach((E) => E.translate.clear());
774
772
  }
775
773
  return {
776
- canLoop: L,
777
- clear: A,
778
- loop: I,
779
- loopPoints: b
774
+ canLoop: b,
775
+ clear: v,
776
+ loop: L,
777
+ loopPoints: m
780
778
  };
781
779
  }
782
- function mt(n, t, r) {
783
- let i, c = !1;
784
- function o(s) {
780
+ function dn(t, n, r) {
781
+ let s, c = !1;
782
+ function e(i) {
785
783
  if (!r)
786
784
  return;
787
785
  function a(S) {
788
- for (const l of S)
789
- if (l.type === "childList") {
790
- s.reInit(), t.emit("slidesChanged");
786
+ for (const f of S)
787
+ if (f.type === "childList") {
788
+ i.reInit(), n.emit("slidesChanged");
791
789
  break;
792
790
  }
793
791
  }
794
- i = new MutationObserver((S) => {
795
- c || (Ln(r) || r(s, S)) && a(S);
796
- }), i.observe(n, {
792
+ s = new MutationObserver((S) => {
793
+ c || (Et(r) || r(i, S)) && a(S);
794
+ }), s.observe(t, {
797
795
  childList: !0
798
796
  });
799
797
  }
800
- function e() {
801
- i && i.disconnect(), c = !0;
798
+ function o() {
799
+ s && s.disconnect(), c = !0;
802
800
  }
803
801
  return {
804
- init: o,
805
- destroy: e
802
+ init: e,
803
+ destroy: o
806
804
  };
807
805
  }
808
- function gt(n, t, r, i) {
806
+ function pn(t, n, r, s) {
809
807
  const c = {};
810
- let o = null, e = null, u, s = !1;
808
+ let e = null, o = null, u, i = !1;
811
809
  function a() {
812
- u = new IntersectionObserver((m) => {
813
- s || (m.forEach((d) => {
814
- const h = t.indexOf(d.target);
815
- c[h] = d;
816
- }), o = null, e = null, r.emit("slidesInView"));
810
+ u = new IntersectionObserver((d) => {
811
+ i || (d.forEach((p) => {
812
+ const g = n.indexOf(p.target);
813
+ c[g] = p;
814
+ }), e = null, o = null, r.emit("slidesInView"));
817
815
  }, {
818
- root: n.parentElement,
819
- threshold: i
820
- }), t.forEach((m) => u.observe(m));
816
+ root: t.parentElement,
817
+ threshold: s
818
+ }), n.forEach((d) => u.observe(d));
821
819
  }
822
820
  function S() {
823
- u && u.disconnect(), s = !0;
824
- }
825
- function l(m) {
826
- return an(c).reduce((d, h) => {
827
- const f = parseInt(h), {
828
- isIntersecting: g
829
- } = c[f];
830
- return (m && g || !m && !g) && d.push(f), d;
821
+ u && u.disconnect(), i = !0;
822
+ }
823
+ function f(d) {
824
+ return ut(c).reduce((p, g) => {
825
+ const l = parseInt(g), {
826
+ isIntersecting: h
827
+ } = c[l];
828
+ return (d && h || !d && !h) && p.push(l), p;
831
829
  }, []);
832
830
  }
833
- function p(m = !0) {
834
- if (m && o)
835
- return o;
836
- if (!m && e)
831
+ function m(d = !0) {
832
+ if (d && e)
837
833
  return e;
838
- const d = l(m);
839
- return m && (o = d), m || (e = d), d;
834
+ if (!d && o)
835
+ return o;
836
+ const p = f(d);
837
+ return d && (e = p), d || (o = p), p;
840
838
  }
841
839
  return {
842
840
  init: a,
843
841
  destroy: S,
844
- get: p
842
+ get: m
845
843
  };
846
844
  }
847
- function ht(n, t, r, i, c, o) {
845
+ function mn(t, n, r, s, c, e) {
848
846
  const {
849
- measureSize: e,
847
+ measureSize: o,
850
848
  startEdge: u,
851
- endEdge: s
852
- } = n, a = r[0] && c, S = m(), l = d(), p = r.map(e), b = h();
853
- function m() {
849
+ endEdge: i
850
+ } = t, a = r[0] && c, S = d(), f = p(), m = r.map(o), x = g();
851
+ function d() {
854
852
  if (!a)
855
853
  return 0;
856
- const g = r[0];
857
- return F(t[u] - g[u]);
854
+ const h = r[0];
855
+ return M(n[u] - h[u]);
858
856
  }
859
- function d() {
857
+ function p() {
860
858
  if (!a)
861
859
  return 0;
862
- const g = o.getComputedStyle(B(i));
863
- return parseFloat(g.getPropertyValue(`margin-${s}`));
860
+ const h = e.getComputedStyle(j(s));
861
+ return parseFloat(h.getPropertyValue(`margin-${i}`));
864
862
  }
865
- function h() {
866
- return r.map((g, x, L) => {
867
- const I = !x, A = vn(L, x);
868
- return I ? p[x] + S : A ? p[x] + l : L[x + 1][u] - g[u];
869
- }).map(F);
863
+ function g() {
864
+ return r.map((h, b, L) => {
865
+ const v = !b, F = It(L, b);
866
+ return v ? m[b] + S : F ? m[b] + f : L[b + 1][u] - h[u];
867
+ }).map(M);
870
868
  }
871
869
  return {
872
- slideSizes: p,
873
- slideSizesWithGaps: b,
870
+ slideSizes: m,
871
+ slideSizesWithGaps: x,
874
872
  startGap: S,
875
- endGap: l
873
+ endGap: f
876
874
  };
877
875
  }
878
- function St(n, t, r, i, c, o, e, u, s, a) {
876
+ function gn(t, n, r, s, c, e, o, u, i) {
879
877
  const {
880
- startEdge: S,
881
- endEdge: l
882
- } = n, p = En(i);
883
- function b(f, g) {
884
- return fn(f).filter((x) => x % g === 0).map((x) => f.slice(x, x + g));
885
- }
886
- function m(f) {
887
- return f.length ? fn(f).reduce((g, x) => {
888
- const L = B(g) || 0, I = L === 0, A = x === dn(f), O = o[S] - e[L][S], E = o[S] - e[x][l], v = !c && I ? t.apply(u) : 0, D = !c && A ? t.apply(s) : 0;
889
- return F(E - D - (O + v)) > r + a && g.push(x), A && g.push(f.length), g;
890
- }, []).map((g, x, L) => {
891
- const I = Math.max(L[x - 1] || 0);
892
- return f.slice(I, g);
878
+ startEdge: a,
879
+ endEdge: S,
880
+ direction: f
881
+ } = t, m = xt(r);
882
+ function x(l, h) {
883
+ return ct(l).filter((b) => b % h === 0).map((b) => l.slice(b, b + h));
884
+ }
885
+ function d(l) {
886
+ return l.length ? ct(l).reduce((h, b, L) => {
887
+ const v = j(h) || 0, F = v === 0, E = b === at(l), I = c[a] - e[v][a], D = c[a] - e[b][S], A = !s && F ? f(o) : 0, O = !s && E ? f(u) : 0, V = M(D - O - (I + A));
888
+ return L && V > n + i && h.push(b), E && h.push(l.length), h;
889
+ }, []).map((h, b, L) => {
890
+ const v = Math.max(L[b - 1] || 0);
891
+ return l.slice(v, h);
893
892
  }) : [];
894
893
  }
895
- function d(f) {
896
- return p ? b(f, i) : m(f);
894
+ function p(l) {
895
+ return m ? x(l, r) : d(l);
897
896
  }
898
897
  return {
899
- groupSlides: d
898
+ groupSlides: p
900
899
  };
901
900
  }
902
- function yt(n, t, r, i, c, o, e) {
901
+ function hn(t, n, r, s, c, e, o) {
903
902
  const {
904
903
  align: u,
905
- axis: s,
904
+ axis: i,
906
905
  direction: a,
907
906
  startIndex: S,
908
- loop: l,
909
- duration: p,
910
- dragFree: b,
911
- dragThreshold: m,
912
- inViewThreshold: d,
913
- slidesToScroll: h,
914
- skipSnaps: f,
915
- containScroll: g,
916
- watchResize: x,
907
+ loop: f,
908
+ duration: m,
909
+ dragFree: x,
910
+ dragThreshold: d,
911
+ inViewThreshold: p,
912
+ slidesToScroll: g,
913
+ skipSnaps: l,
914
+ containScroll: h,
915
+ watchResize: b,
917
916
  watchSlides: L,
918
- watchDrag: I
919
- } = o, A = 2, O = Wn(), E = O.measure(t), v = r.map(O.measure), D = _n(a), M = Yn(s, a), C = M.measureSize(E), H = nt(C), G = Kn(u, C), q = !l && !!g, j = l || !!g, {
920
- slideSizes: Y,
921
- slideSizesWithGaps: _,
922
- startGap: U,
923
- endGap: on
924
- } = ht(M, E, v, r, j, c), R = St(M, D, C, h, l, E, v, U, on, A), {
925
- snaps: tn,
926
- snapsAligned: en
927
- } = ut(M, G, E, v, R), $ = -B(tn) + B(_), {
928
- snapsContained: rn,
929
- scrollContainLimit: sn
930
- } = rt(C, $, en, g, A), V = q ? rn : en, {
931
- limit: z
932
- } = st($, V, l), Q = zn(dn(V), S, l), k = Q.clone(), P = fn(r), y = ({
933
- dragHandler: W,
934
- scrollBody: yn,
935
- scrollBounds: xn,
917
+ watchDrag: v
918
+ } = e, F = 2, E = _t(), I = E.measure(n), D = r.map(E.measure), A = Kt(i, a), O = A.measureSize(I), V = Jt(O), Y = $t(u, O), B = !f && !!h, U = f || !!h, {
919
+ slideSizes: J,
920
+ slideSizesWithGaps: $,
921
+ startGap: _,
922
+ endGap: Q
923
+ } = mn(A, I, D, r, U, c), Z = gn(A, O, g, f, I, D, _, Q, F), {
924
+ snaps: K,
925
+ snapsAligned: et
926
+ } = sn(A, Y, I, D, Z), X = -j(K) + j($), {
927
+ snapsContained: rt,
928
+ scrollContainLimit: st
929
+ } = nn(O, X, et, h, F), z = B ? rt : et, {
930
+ limit: R
931
+ } = en(X, z, f), N = wt(at(z), S, f), ot = N.clone(), k = ct(r), P = ({
932
+ dragHandler: tt,
933
+ scrollBody: ht,
934
+ scrollBounds: St,
936
935
  options: {
937
- loop: pn
936
+ loop: lt
938
937
  }
939
938
  }) => {
940
- pn || xn.constrain(W.pointerDown()), yn.seek();
941
- }, T = ({
942
- scrollBody: W,
943
- translate: yn,
944
- location: xn,
945
- offsetLocation: pn,
946
- scrollLooper: Gn,
947
- slideLooper: jn,
948
- dragHandler: Rn,
949
- animation: qn,
950
- eventHandler: Mn,
939
+ lt || St.constrain(tt.pointerDown()), ht.seek();
940
+ }, y = ({
941
+ scrollBody: tt,
942
+ translate: ht,
943
+ location: St,
944
+ offsetLocation: lt,
945
+ scrollLooper: kt,
946
+ slideLooper: Ht,
947
+ dragHandler: Gt,
948
+ animation: jt,
949
+ eventHandler: At,
951
950
  options: {
952
- loop: Un
951
+ loop: Rt
953
952
  }
954
- }, $n) => {
955
- const Fn = W.velocity(), Pn = W.settled();
956
- Pn && !Rn.pointerDown() && (qn.stop(), Mn.emit("settle")), Pn || Mn.emit("scroll"), pn.set(xn.get() - Fn + Fn * $n), Un && (Gn.loop(W.direction()), jn.loop()), yn.to(pn.get());
957
- }, w = Xn(i, c, () => y(Sn), (W) => T(Sn, W)), N = 0.68, J = V[Q.get()], K = mn(J), Z = mn(J), X = mn(J), cn = et(K, Z, X, p, N), gn = at(l, V, $, z, X), hn = lt(w, Q, k, cn, gn, X, e), Dn = ct(z), Tn = ln(), Bn = gt(t, r, e, d), {
958
- slideRegistry: An
959
- } = ft(q, g, V, sn, R, P), Hn = dt(n, r, An, hn, cn, Tn), Sn = {
960
- ownerDocument: i,
953
+ }, qt) => {
954
+ const Mt = tt.velocity(), Ft = tt.settled();
955
+ Ft && !Gt.pointerDown() && (jt.stop(), At.emit("settle")), Ft || At.emit("scroll"), lt.set(St.get() - Mt + Mt * qt), Rt && (kt.loop(tt.direction()), Ht.loop()), ht.to(lt.get());
956
+ }, T = Qt(s, c, () => P(gt), (tt) => y(gt, tt)), C = 0.68, w = z[N.get()], q = dt(w), H = dt(w), G = dt(w), W = Wt(q, H, G, m, C), pt = un(f, z, X, R, G), mt = fn(T, N, ot, W, pt, G, o), vt = rn(R), Tt = ft(), zt = pn(n, r, o, p), {
957
+ slideRegistry: Dt
958
+ } = cn(B, h, z, st, Z, k), Bt = an(t, r, Dt, mt, W, Tt), gt = {
959
+ ownerDocument: s,
961
960
  ownerWindow: c,
962
- eventHandler: e,
963
- containerRect: E,
964
- slideRects: v,
965
- animation: w,
966
- axis: M,
967
- direction: D,
968
- dragHandler: Jn(M, D, n, i, c, X, Zn(M, c), K, w, hn, cn, gn, Q, e, H, b, m, f, N, I),
969
- eventStore: Tn,
970
- percentOfView: H,
971
- index: Q,
972
- indexPrevious: k,
973
- limit: z,
974
- location: K,
975
- offsetLocation: Z,
976
- options: o,
977
- resizeHandler: tt(t, e, c, r, M, x, O),
978
- scrollBody: cn,
979
- scrollBounds: ot(z, Z, X, cn, H),
980
- scrollLooper: it($, z, Z, [K, Z, X]),
981
- scrollProgress: Dn,
982
- scrollSnapList: V.map(Dn.get),
983
- scrollSnaps: V,
984
- scrollTarget: gn,
985
- scrollTo: hn,
986
- slideLooper: pt(M, D, C, $, Y, _, tn, V, Z, r),
987
- slideFocus: Hn,
988
- slidesHandler: mt(t, e, L),
989
- slidesInView: Bn,
990
- slideIndexes: P,
991
- slideRegistry: An,
992
- slidesToScroll: R,
993
- target: X,
994
- translate: Vn(M, D, t)
961
+ eventHandler: o,
962
+ containerRect: I,
963
+ slideRects: D,
964
+ animation: T,
965
+ axis: A,
966
+ dragHandler: Xt(A, t, s, c, G, Yt(A, c), q, T, mt, W, pt, N, o, V, x, d, l, C, v),
967
+ eventStore: Tt,
968
+ percentOfView: V,
969
+ index: N,
970
+ indexPrevious: ot,
971
+ limit: R,
972
+ location: q,
973
+ offsetLocation: H,
974
+ options: e,
975
+ resizeHandler: Zt(n, o, c, r, A, b, E),
976
+ scrollBody: W,
977
+ scrollBounds: tn(R, H, G, W, V),
978
+ scrollLooper: on(X, R, H, [q, H, G]),
979
+ scrollProgress: vt,
980
+ scrollSnapList: z.map(vt.get),
981
+ scrollSnaps: z,
982
+ scrollTarget: pt,
983
+ scrollTo: mt,
984
+ slideLooper: ln(A, O, X, J, $, K, z, H, r),
985
+ slideFocus: Bt,
986
+ slidesHandler: dn(n, o, L),
987
+ slidesInView: zt,
988
+ slideIndexes: k,
989
+ slideRegistry: Dt,
990
+ slidesToScroll: Z,
991
+ target: G,
992
+ translate: Nt(A, n)
995
993
  };
996
- return Sn;
994
+ return gt;
997
995
  }
998
- function xt() {
999
- const n = {};
1000
- let t;
1001
- function r(s) {
1002
- t = s;
996
+ function Sn() {
997
+ const t = {};
998
+ let n;
999
+ function r(i) {
1000
+ n = i;
1003
1001
  }
1004
- function i(s) {
1005
- return n[s] || [];
1002
+ function s(i) {
1003
+ return t[i] || [];
1006
1004
  }
1007
- function c(s) {
1008
- return i(s).forEach((a) => a(t, s)), u;
1005
+ function c(i) {
1006
+ return s(i).forEach((a) => a(n, i)), u;
1009
1007
  }
1010
- function o(s, a) {
1011
- return n[s] = i(s).concat([a]), u;
1008
+ function e(i, a) {
1009
+ return t[i] = s(i).concat([a]), u;
1012
1010
  }
1013
- function e(s, a) {
1014
- return n[s] = i(s).filter((S) => S !== a), u;
1011
+ function o(i, a) {
1012
+ return t[i] = s(i).filter((S) => S !== a), u;
1015
1013
  }
1016
1014
  const u = {
1017
1015
  init: r,
1018
1016
  emit: c,
1019
- off: e,
1020
- on: o
1017
+ off: o,
1018
+ on: e
1021
1019
  };
1022
1020
  return u;
1023
1021
  }
1024
- const bt = {
1022
+ const yn = {
1025
1023
  align: "center",
1026
1024
  axis: "x",
1027
1025
  container: null,
@@ -1042,163 +1040,163 @@ const bt = {
1042
1040
  watchResize: !0,
1043
1041
  watchSlides: !0
1044
1042
  };
1045
- function Et(n) {
1046
- function t(o, e) {
1047
- return Cn(o, e || {});
1043
+ function bn(t) {
1044
+ function n(e, o) {
1045
+ return Ct(e, o || {});
1048
1046
  }
1049
- function r(o) {
1050
- const e = o.breakpoints || {}, u = an(e).filter((s) => n.matchMedia(s).matches).map((s) => e[s]).reduce((s, a) => t(s, a), {});
1051
- return t(o, u);
1047
+ function r(e) {
1048
+ const o = e.breakpoints || {}, u = ut(o).filter((i) => t.matchMedia(i).matches).map((i) => o[i]).reduce((i, a) => n(i, a), {});
1049
+ return n(e, u);
1052
1050
  }
1053
- function i(o) {
1054
- return o.map((e) => an(e.breakpoints || {})).reduce((e, u) => e.concat(u), []).map(n.matchMedia);
1051
+ function s(e) {
1052
+ return e.map((o) => ut(o.breakpoints || {})).reduce((o, u) => o.concat(u), []).map(t.matchMedia);
1055
1053
  }
1056
1054
  return {
1057
- mergeOptions: t,
1055
+ mergeOptions: n,
1058
1056
  optionsAtMedia: r,
1059
- optionsMediaQueries: i
1057
+ optionsMediaQueries: s
1060
1058
  };
1061
1059
  }
1062
- function Lt(n) {
1063
- let t = [];
1064
- function r(o, e) {
1065
- return t = e.filter(({
1060
+ function xn(t) {
1061
+ let n = [];
1062
+ function r(e, o) {
1063
+ return n = o.filter(({
1066
1064
  options: u
1067
- }) => n.optionsAtMedia(u).active !== !1), t.forEach((u) => u.init(o, n)), e.reduce((u, s) => Object.assign(u, {
1068
- [s.name]: s
1065
+ }) => t.optionsAtMedia(u).active !== !1), n.forEach((u) => u.init(e, t)), o.reduce((u, i) => Object.assign(u, {
1066
+ [i.name]: i
1069
1067
  }), {});
1070
1068
  }
1071
- function i() {
1072
- t = t.filter((o) => o.destroy());
1069
+ function s() {
1070
+ n = n.filter((e) => e.destroy());
1073
1071
  }
1074
1072
  return {
1075
1073
  init: r,
1076
- destroy: i
1074
+ destroy: s
1077
1075
  };
1078
1076
  }
1079
- function kn(n, t, r) {
1080
- const i = n.ownerDocument, c = i.defaultView, o = Et(c), e = Lt(o), u = ln(), s = xt(), {
1077
+ function Vt(t, n, r) {
1078
+ const s = t.ownerDocument, c = s.defaultView, e = bn(c), o = xn(e), u = ft(), i = Sn(), {
1081
1079
  mergeOptions: a,
1082
1080
  optionsAtMedia: S,
1083
- optionsMediaQueries: l
1084
- } = o, {
1085
- on: p,
1086
- off: b,
1087
- emit: m
1088
- } = s, d = M;
1089
- let h = !1, f, g = a(bt, kn.globalOptions), x = a(g), L = [], I, A, O;
1090
- function E() {
1081
+ optionsMediaQueries: f
1082
+ } = e, {
1083
+ on: m,
1084
+ off: x,
1085
+ emit: d
1086
+ } = i, p = O;
1087
+ let g = !1, l, h = a(yn, Vt.globalOptions), b = a(h), L = [], v, F, E;
1088
+ function I() {
1091
1089
  const {
1092
1090
  container: P,
1093
1091
  slides: y
1094
- } = x;
1095
- A = (bn(P) ? n.querySelector(P) : P) || n.children[0];
1096
- const w = bn(y) ? A.querySelectorAll(y) : y;
1097
- O = [].slice.call(w || A.children);
1092
+ } = b;
1093
+ F = (yt(P) ? t.querySelector(P) : P) || t.children[0];
1094
+ const C = yt(y) ? F.querySelectorAll(y) : y;
1095
+ E = [].slice.call(C || F.children);
1098
1096
  }
1099
- function v(P) {
1100
- const y = yt(n, A, O, i, c, P, s);
1097
+ function D(P) {
1098
+ const y = hn(t, F, E, s, c, P, i);
1101
1099
  if (P.loop && !y.slideLooper.canLoop()) {
1102
1100
  const T = Object.assign({}, P, {
1103
1101
  loop: !1
1104
1102
  });
1105
- return v(T);
1103
+ return D(T);
1106
1104
  }
1107
1105
  return y;
1108
1106
  }
1109
- function D(P, y) {
1110
- h || (g = a(g, P), x = S(g), L = y || L, E(), f = v(x), l([g, ...L.map(({
1107
+ function A(P, y) {
1108
+ g || (h = a(h, P), b = S(h), L = y || L, I(), l = D(b), f([h, ...L.map(({
1111
1109
  options: T
1112
- }) => T)]).forEach((T) => u.add(T, "change", M)), x.active && (f.translate.to(f.location.get()), f.animation.init(), f.slidesInView.init(), f.slideFocus.init(), f.eventHandler.init(k), f.resizeHandler.init(k), f.slidesHandler.init(k), f.options.loop && f.slideLooper.loop(), A.offsetParent && O.length && f.dragHandler.init(k), I = e.init(k, L)));
1110
+ }) => T)]).forEach((T) => u.add(T, "change", O)), b.active && (l.translate.to(l.location.get()), l.animation.init(), l.slidesInView.init(), l.slideFocus.init(), l.eventHandler.init(k), l.resizeHandler.init(k), l.slidesHandler.init(k), l.options.loop && l.slideLooper.loop(), F.offsetParent && E.length && l.dragHandler.init(k), v = o.init(k, L)));
1113
1111
  }
1114
- function M(P, y) {
1115
- const T = R();
1116
- C(), D(a({
1112
+ function O(P, y) {
1113
+ const T = K();
1114
+ V(), A(a({
1117
1115
  startIndex: T
1118
- }, P), y), s.emit("reInit");
1116
+ }, P), y), i.emit("reInit");
1119
1117
  }
1120
- function C() {
1121
- f.dragHandler.destroy(), f.eventStore.clear(), f.translate.clear(), f.slideLooper.clear(), f.resizeHandler.destroy(), f.slidesHandler.destroy(), f.slidesInView.destroy(), f.animation.destroy(), e.destroy(), u.clear();
1118
+ function V() {
1119
+ l.dragHandler.destroy(), l.eventStore.clear(), l.translate.clear(), l.slideLooper.clear(), l.resizeHandler.destroy(), l.slidesHandler.destroy(), l.slidesInView.destroy(), l.animation.destroy(), o.destroy(), u.clear();
1122
1120
  }
1123
- function H() {
1124
- h || (h = !0, u.clear(), C(), s.emit("destroy"));
1121
+ function Y() {
1122
+ g || (g = !0, u.clear(), V(), i.emit("destroy"));
1125
1123
  }
1126
- function G(P, y, T) {
1127
- !x.active || h || (f.scrollBody.useBaseFriction().useDuration(y === !0 ? 0 : x.duration), f.scrollTo.index(P, T || 0));
1124
+ function B(P, y, T) {
1125
+ !b.active || g || (l.scrollBody.useBaseFriction().useDuration(y === !0 ? 0 : b.duration), l.scrollTo.index(P, T || 0));
1128
1126
  }
1129
- function q(P) {
1130
- const y = f.index.add(1).get();
1131
- G(y, P, -1);
1127
+ function U(P) {
1128
+ const y = l.index.add(1).get();
1129
+ B(y, P, -1);
1132
1130
  }
1133
- function j(P) {
1134
- const y = f.index.add(-1).get();
1135
- G(y, P, 1);
1131
+ function J(P) {
1132
+ const y = l.index.add(-1).get();
1133
+ B(y, P, 1);
1136
1134
  }
1137
- function Y() {
1138
- return f.index.add(1).get() !== R();
1135
+ function $() {
1136
+ return l.index.add(1).get() !== K();
1139
1137
  }
1140
1138
  function _() {
1141
- return f.index.add(-1).get() !== R();
1139
+ return l.index.add(-1).get() !== K();
1142
1140
  }
1143
- function U() {
1144
- return f.scrollSnapList;
1141
+ function Q() {
1142
+ return l.scrollSnapList;
1145
1143
  }
1146
- function on() {
1147
- return f.scrollProgress.get(f.location.get());
1144
+ function Z() {
1145
+ return l.scrollProgress.get(l.location.get());
1148
1146
  }
1149
- function R() {
1150
- return f.index.get();
1147
+ function K() {
1148
+ return l.index.get();
1151
1149
  }
1152
- function tn() {
1153
- return f.indexPrevious.get();
1150
+ function et() {
1151
+ return l.indexPrevious.get();
1154
1152
  }
1155
- function en() {
1156
- return f.slidesInView.get();
1153
+ function X() {
1154
+ return l.slidesInView.get();
1157
1155
  }
1158
- function $() {
1159
- return f.slidesInView.get(!1);
1156
+ function rt() {
1157
+ return l.slidesInView.get(!1);
1160
1158
  }
1161
- function rn() {
1162
- return I;
1159
+ function st() {
1160
+ return v;
1163
1161
  }
1164
- function sn() {
1165
- return f;
1162
+ function z() {
1163
+ return l;
1166
1164
  }
1167
- function V() {
1168
- return n;
1165
+ function R() {
1166
+ return t;
1169
1167
  }
1170
- function z() {
1171
- return A;
1168
+ function N() {
1169
+ return F;
1172
1170
  }
1173
- function Q() {
1174
- return O;
1171
+ function ot() {
1172
+ return E;
1175
1173
  }
1176
1174
  const k = {
1177
- canScrollNext: Y,
1175
+ canScrollNext: $,
1178
1176
  canScrollPrev: _,
1179
- containerNode: z,
1180
- internalEngine: sn,
1181
- destroy: H,
1182
- off: b,
1183
- on: p,
1184
- emit: m,
1185
- plugins: rn,
1186
- previousScrollSnap: tn,
1187
- reInit: d,
1188
- rootNode: V,
1189
- scrollNext: q,
1190
- scrollPrev: j,
1191
- scrollProgress: on,
1192
- scrollSnapList: U,
1193
- scrollTo: G,
1194
- selectedScrollSnap: R,
1195
- slideNodes: Q,
1196
- slidesInView: en,
1197
- slidesNotInView: $
1177
+ containerNode: N,
1178
+ internalEngine: z,
1179
+ destroy: Y,
1180
+ off: x,
1181
+ on: m,
1182
+ emit: d,
1183
+ plugins: st,
1184
+ previousScrollSnap: et,
1185
+ reInit: p,
1186
+ rootNode: R,
1187
+ scrollNext: U,
1188
+ scrollPrev: J,
1189
+ scrollProgress: Z,
1190
+ scrollSnapList: Q,
1191
+ scrollTo: B,
1192
+ selectedScrollSnap: K,
1193
+ slideNodes: ot,
1194
+ slidesInView: X,
1195
+ slidesNotInView: rt
1198
1196
  };
1199
- return D(t, r), setTimeout(() => s.emit("init"), 0), k;
1197
+ return A(n, r), setTimeout(() => i.emit("init"), 0), k;
1200
1198
  }
1201
- kn.globalOptions = void 0;
1199
+ Vt.globalOptions = void 0;
1202
1200
  export {
1203
- kn as default
1201
+ Vt as default
1204
1202
  };