@zenpatient-org/healthspan-marketing-ui 0.1.22 → 0.1.24

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 (208) hide show
  1. package/README.md +11 -1
  2. package/dist/components/Accordion/Accordion.cjs.js +1 -0
  3. package/dist/components/Accordion/Accordion.d.ts +8 -0
  4. package/dist/components/Accordion/Accordion.es.js +27 -0
  5. package/dist/components/Accordion/accordion.module.css.cjs.js +1 -0
  6. package/dist/components/Accordion/accordion.module.css.es.js +7 -0
  7. package/dist/components/Accordion/components/AccordionItem/AccordionItem.cjs.js +1 -0
  8. package/dist/components/Accordion/components/AccordionItem/AccordionItem.d.ts +3 -0
  9. package/dist/components/Accordion/components/AccordionItem/AccordionItem.es.js +31 -0
  10. package/dist/components/Accordion/components/AccordionItem/accordionItem.module.css.cjs.js +1 -0
  11. package/dist/components/Accordion/components/AccordionItem/accordionItem.module.css.es.js +25 -0
  12. package/dist/components/Accordion/components/AccordionItem/index.d.ts +2 -0
  13. package/dist/components/Accordion/components/AccordionItem/types.d.ts +9 -0
  14. package/dist/components/Accordion/components/index.d.ts +1 -0
  15. package/dist/components/Accordion/index.d.ts +1 -0
  16. package/dist/components/Accordion/types.d.ts +6 -0
  17. package/dist/components/Button/Button.es.js +24 -6
  18. package/dist/components/ComplexImageCarousel/ComplexImageCarousel.cjs.js +1 -0
  19. package/dist/components/ComplexImageCarousel/ComplexImageCarousel.d.ts +3 -0
  20. package/dist/components/ComplexImageCarousel/ComplexImageCarousel.es.js +135 -0
  21. package/dist/components/ComplexImageCarousel/complexImageCarousel.module.css.cjs.js +1 -0
  22. package/dist/components/ComplexImageCarousel/complexImageCarousel.module.css.es.js +19 -0
  23. package/dist/components/ComplexImageCarousel/index.d.ts +2 -0
  24. package/dist/components/ComplexImageCarousel/types.d.ts +10 -0
  25. package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.cjs.js +1 -1
  26. package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.es.js +17 -15
  27. package/dist/components/FilterMenu/FilterMenu.d.ts +1 -1
  28. package/dist/components/FilterMenu/FilterMenu.es.js +17 -2
  29. package/dist/components/Icon/constants.cjs.js +1 -1
  30. package/dist/components/Icon/constants.d.ts +3 -0
  31. package/dist/components/Icon/constants.es.js +4 -1
  32. package/dist/components/Icon/iconsMap.cjs.js +1 -1
  33. package/dist/components/Icon/iconsMap.es.js +104 -98
  34. package/dist/components/IconBracket/IconBracket.cjs.js +1 -0
  35. package/dist/components/IconBracket/IconBracket.d.ts +3 -0
  36. package/dist/components/IconBracket/IconBracket.es.js +16 -0
  37. package/dist/components/IconBracket/iconBracket.module.css.cjs.js +1 -0
  38. package/dist/components/IconBracket/iconBracket.module.css.es.js +9 -0
  39. package/dist/components/IconBracket/index.d.ts +1 -0
  40. package/dist/components/IconBracket/types.d.ts +8 -0
  41. package/dist/components/InfiniteScroll/InfiniteScroll.es.js +9 -1
  42. package/dist/components/Label/Label.es.js +9 -1
  43. package/dist/components/PlayButton/PlayButton.cjs.js +1 -0
  44. package/dist/components/PlayButton/PlayButton.d.ts +8 -0
  45. package/dist/components/PlayButton/PlayButton.es.js +9 -0
  46. package/dist/components/PlayButton/index.d.ts +1 -0
  47. package/dist/components/PlayButton/playButton.module.css.cjs.js +1 -0
  48. package/dist/components/PlayButton/playButton.module.css.es.js +11 -0
  49. package/dist/components/Pricing/Pricing.cjs.js +1 -0
  50. package/dist/components/Pricing/Pricing.d.ts +3 -0
  51. package/dist/components/Pricing/Pricing.es.js +41 -0
  52. package/dist/components/Pricing/components/BenefitItem/BenefitItem.cjs.js +1 -0
  53. package/dist/components/Pricing/components/BenefitItem/BenefitItem.d.ts +8 -0
  54. package/dist/components/Pricing/components/BenefitItem/BenefitItem.es.js +10 -0
  55. package/dist/components/Pricing/components/BenefitItem/benefitItem.module.css.cjs.js +1 -0
  56. package/dist/components/Pricing/components/BenefitItem/benefitItem.module.css.es.js +7 -0
  57. package/dist/components/Pricing/components/BenefitItem/index.d.ts +1 -0
  58. package/dist/components/Pricing/components/index.d.ts +1 -0
  59. package/dist/components/Pricing/index.d.ts +2 -0
  60. package/dist/components/Pricing/pricing.module.css.cjs.js +1 -0
  61. package/dist/components/Pricing/pricing.module.css.es.js +25 -0
  62. package/dist/components/Pricing/types.d.ts +17 -0
  63. package/dist/components/ProductGalleryCard/ProductGalleryCard.d.ts +1 -1
  64. package/dist/components/ProductGalleryCard/ProductGalleryCard.es.js +24 -3
  65. package/dist/components/ProgressButton/ProgressButton.cjs.js +1 -1
  66. package/dist/components/ProgressButton/ProgressButton.d.ts +2 -1
  67. package/dist/components/ProgressButton/ProgressButton.es.js +24 -12
  68. package/dist/components/RatingStars/RatingStars.cjs.js +1 -0
  69. package/dist/components/RatingStars/RatingStars.d.ts +6 -0
  70. package/dist/components/RatingStars/RatingStars.es.js +18 -0
  71. package/dist/components/RatingStars/index.d.ts +1 -0
  72. package/dist/components/RatingStars/ratingStars.module.css.cjs.js +1 -0
  73. package/dist/components/RatingStars/ratingStars.module.css.es.js +13 -0
  74. package/dist/components/StepsCarousel/StepsCarousel.es.js +47 -13
  75. package/dist/components/StudyGridCard/StudyGridCard.es.js +36 -6
  76. package/dist/components/Tabs/TabsWithFade.es.js +10 -1
  77. package/dist/components/Typography/Typography.es.js +8 -1
  78. package/dist/healthspan-marketing-ui.css +1 -1
  79. package/dist/icons/action/bracket-left.svg.cjs.js +1 -0
  80. package/dist/icons/action/bracket-left.svg.es.js +5 -0
  81. package/dist/icons/action/bracket-right.svg.cjs.js +1 -0
  82. package/dist/icons/action/bracket-right.svg.es.js +5 -0
  83. package/dist/icons/action/play.svg.cjs.js +1 -0
  84. package/dist/icons/action/play.svg.es.js +5 -0
  85. package/dist/modules/Benefits/Benefits.es.js +3 -26
  86. package/dist/modules/Benefits/components/BenefitItem/BenefitItem.es.js +3 -27
  87. package/dist/modules/Benefits/components/BenefitTag/BenefitTag.es.js +1 -10
  88. package/dist/modules/Compare/Compare.cjs.js +1 -0
  89. package/dist/modules/Compare/Compare.d.ts +3 -0
  90. package/dist/modules/Compare/Compare.es.js +26 -0
  91. package/dist/modules/Compare/compare.module.css.cjs.js +1 -0
  92. package/dist/modules/Compare/compare.module.css.es.js +13 -0
  93. package/dist/modules/Compare/index.d.ts +1 -0
  94. package/dist/modules/Compare/types.d.ts +9 -0
  95. package/dist/modules/Comparison/Comparison.es.js +20 -5
  96. package/dist/modules/FAQ/FAQ.cjs.js +1 -0
  97. package/dist/modules/FAQ/FAQ.d.ts +3 -0
  98. package/dist/modules/FAQ/FAQ.es.js +17 -0
  99. package/dist/modules/FAQ/faq.module.css.cjs.js +1 -0
  100. package/dist/modules/FAQ/faq.module.css.es.js +17 -0
  101. package/dist/modules/FAQ/index.d.ts +1 -0
  102. package/dist/modules/FAQ/types.d.ts +10 -0
  103. package/dist/modules/FeaturedIn/FeaturedIn.es.js +14 -5
  104. package/dist/modules/FeaturesGallery/FeaturesGallery.es.js +9 -1
  105. package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.es.js +32 -17
  106. package/dist/modules/FollowTheScience/FollowTheScience.es.js +21 -2
  107. package/dist/modules/ImageWithText/ImageWithText.cjs.js +1 -0
  108. package/dist/modules/ImageWithText/ImageWithText.d.ts +3 -0
  109. package/dist/modules/ImageWithText/ImageWithText.es.js +35 -0
  110. package/dist/modules/ImageWithText/imageWithText.module.css.cjs.js +1 -0
  111. package/dist/modules/ImageWithText/imageWithText.module.css.es.js +21 -0
  112. package/dist/modules/ImageWithText/index.d.ts +1 -0
  113. package/dist/modules/ImageWithText/types.d.ts +9 -0
  114. package/dist/modules/LongevityPathways/LongevityPathways.cjs.js +1 -0
  115. package/dist/modules/LongevityPathways/LongevityPathways.d.ts +3 -0
  116. package/dist/modules/LongevityPathways/LongevityPathways.es.js +19 -0
  117. package/dist/modules/LongevityPathways/index.d.ts +2 -0
  118. package/dist/modules/LongevityPathways/longevityPathways.module.css.cjs.js +1 -0
  119. package/dist/modules/LongevityPathways/longevityPathways.module.css.es.js +9 -0
  120. package/dist/modules/LongevityPathways/types.d.ts +9 -0
  121. package/dist/modules/OptimalHealth/OptimalHealth.cjs.js +1 -1
  122. package/dist/modules/OptimalHealth/OptimalHealth.es.js +24 -7
  123. package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.cjs.js +1 -1
  124. package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.es.js +53 -31
  125. package/dist/modules/OptimalHealth/components/ClockImages/clockImages.module.css.cjs.js +1 -1
  126. package/dist/modules/OptimalHealth/components/ClockImages/clockImages.module.css.es.js +25 -5
  127. package/dist/modules/OptimalHealth/optimalHealth.module.css.cjs.js +1 -1
  128. package/dist/modules/OptimalHealth/optimalHealth.module.css.es.js +17 -15
  129. package/dist/modules/OurProcess/OurProcess.cjs.js +1 -1
  130. package/dist/modules/OurProcess/OurProcess.d.ts +3 -2
  131. package/dist/modules/OurProcess/OurProcess.es.js +17 -8
  132. package/dist/modules/PairedProducts/PairedProducts.cjs.js +1 -1
  133. package/dist/modules/PairedProducts/PairedProducts.d.ts +2 -2
  134. package/dist/modules/PairedProducts/PairedProducts.es.js +1 -1
  135. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.cjs.js +1 -0
  136. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.d.ts +9 -0
  137. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.es.js +102 -0
  138. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.module.css.cjs.js +1 -0
  139. package/dist/modules/SlidingTabsGallery/SlidingTabsGallery.module.css.es.js +29 -0
  140. package/dist/modules/SlidingTabsGallery/index.d.ts +1 -0
  141. package/dist/modules/Testimonial/Testimonial.cjs.js +1 -0
  142. package/dist/modules/Testimonial/Testimonial.d.ts +13 -0
  143. package/dist/modules/Testimonial/Testimonial.es.js +88 -0
  144. package/dist/modules/Testimonial/components/Product/Product.cjs.js +1 -0
  145. package/dist/modules/Testimonial/components/Product/Product.d.ts +7 -0
  146. package/dist/modules/Testimonial/components/Product/Product.es.js +23 -0
  147. package/dist/modules/Testimonial/components/Product/index.d.ts +1 -0
  148. package/dist/modules/Testimonial/components/Product/product.module.css.cjs.js +1 -0
  149. package/dist/modules/Testimonial/components/Product/product.module.css.es.js +17 -0
  150. package/dist/modules/Testimonial/components/TextCard/TextCard.cjs.js +1 -0
  151. package/dist/modules/Testimonial/components/TextCard/TextCard.d.ts +3 -0
  152. package/dist/modules/Testimonial/components/TextCard/TextCard.es.js +31 -0
  153. package/dist/modules/Testimonial/components/TextCard/index.d.ts +1 -0
  154. package/dist/modules/Testimonial/components/TextCard/textCard.module.css.cjs.js +1 -0
  155. package/dist/modules/Testimonial/components/TextCard/textCard.module.css.es.js +13 -0
  156. package/dist/modules/Testimonial/components/VideoCard/VideoCard.cjs.js +1 -0
  157. package/dist/modules/Testimonial/components/VideoCard/VideoCard.d.ts +11 -0
  158. package/dist/modules/Testimonial/components/VideoCard/VideoCard.es.js +62 -0
  159. package/dist/modules/Testimonial/components/VideoCard/index.d.ts +1 -0
  160. package/dist/modules/Testimonial/components/VideoCard/videoCard.module.css.cjs.js +1 -0
  161. package/dist/modules/Testimonial/components/VideoCard/videoCard.module.css.es.js +17 -0
  162. package/dist/modules/Testimonial/index.d.ts +1 -0
  163. package/dist/modules/Testimonial/testimonial.module.css.cjs.js +1 -0
  164. package/dist/modules/Testimonial/testimonial.module.css.es.js +25 -0
  165. package/dist/modules/Testimonial/types.d.ts +26 -0
  166. package/dist/modules/TrackProgress/TrackProgress.cjs.js +1 -0
  167. package/dist/modules/TrackProgress/TrackProgress.d.ts +10 -0
  168. package/dist/modules/TrackProgress/TrackProgress.es.js +24 -0
  169. package/dist/modules/TrackProgress/components/TimelineContent/TimelineContent.cjs.js +1 -0
  170. package/dist/modules/TrackProgress/components/TimelineContent/TimelineContent.d.ts +7 -0
  171. package/dist/modules/TrackProgress/components/TimelineContent/TimelineContent.es.js +90 -0
  172. package/dist/modules/TrackProgress/components/TimelineContent/index.d.ts +1 -0
  173. package/dist/modules/TrackProgress/components/TimelineContent/timelineContent.module.css.cjs.js +1 -0
  174. package/dist/modules/TrackProgress/components/TimelineContent/timelineContent.module.css.es.js +25 -0
  175. package/dist/modules/TrackProgress/index.d.ts +1 -0
  176. package/dist/modules/TrackProgress/trackProgress.module.css.cjs.js +1 -0
  177. package/dist/modules/TrackProgress/trackProgress.module.css.es.js +13 -0
  178. package/dist/modules/TrackProgress/types.d.ts +6 -0
  179. package/dist/modules/TypesOfTests/TypesOfTests.cjs.js +1 -1
  180. package/dist/modules/TypesOfTests/TypesOfTests.es.js +86 -47
  181. package/dist/modules/TypesOfTests/types.d.ts +4 -0
  182. package/dist/modules/TypesOfTests/typesOfTests.module.css.cjs.js +1 -1
  183. package/dist/modules/TypesOfTests/typesOfTests.module.css.es.js +14 -12
  184. package/dist/modules/YourProtocol/YourProtocol.es.js +19 -2
  185. package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.es.js +18 -5
  186. package/dist/node_modules/@gsap/react/src/index.cjs.js +9 -0
  187. package/dist/node_modules/@gsap/react/src/index.es.js +29 -0
  188. package/dist/node_modules/gsap/CSSPlugin.cjs.js +8 -0
  189. package/dist/node_modules/gsap/CSSPlugin.es.js +423 -0
  190. package/dist/node_modules/gsap/Flip.cjs.js +8 -0
  191. package/dist/node_modules/gsap/Flip.es.js +525 -0
  192. package/dist/node_modules/gsap/Observer.cjs.js +8 -0
  193. package/dist/node_modules/gsap/Observer.es.js +242 -0
  194. package/dist/node_modules/gsap/ScrollTrigger.cjs.js +8 -0
  195. package/dist/node_modules/gsap/ScrollTrigger.es.js +859 -0
  196. package/dist/node_modules/gsap/gsap-core.cjs.js +8 -0
  197. package/dist/node_modules/gsap/gsap-core.es.js +1651 -0
  198. package/dist/node_modules/gsap/index.cjs.js +1 -0
  199. package/dist/node_modules/gsap/index.es.js +13 -0
  200. package/dist/node_modules/gsap/utils/matrix.cjs.js +8 -0
  201. package/dist/node_modules/gsap/utils/matrix.es.js +104 -0
  202. package/dist/pageComponents/Gradient/Gradient.d.ts +5 -0
  203. package/dist/pageComponents/Gradient/index.d.ts +1 -0
  204. package/dist/pageComponents/StillHaveQuestions/StillHaveQuestions.d.ts +1 -0
  205. package/dist/pageComponents/StillHaveQuestions/index.d.ts +1 -0
  206. package/package.json +95 -4
  207. package/dist/modules/OptimalHealth/components/ClockImages/hooks.cjs.js +0 -1
  208. package/dist/modules/OptimalHealth/components/ClockImages/hooks.es.js +0 -13
@@ -0,0 +1,423 @@
1
+ import { _getSetter as Qe, _isUndefined as ei, _plugins as ii, _checkPlugin as ti, _replaceRandom as Me, _colorExp as Ee, getUnit as U, _isString as Ge, _config as ee, PropTween as q, _parseRelative as me, _missingPlugin as ni, _sortPropTweensByPriority as si, _getCache as Ue, _getProperty as ri, gsap as he, _round as T, _ticker as Ae, GSCache as oi, _renderComplexString as fi, _colorStringFilter as ai, _numWithUnitExp as de, _relExp as li, _numExp as ci, _forEachName as le } from "./gsap-core.es.js";
2
+ /*!
3
+ * CSSPlugin 3.13.0
4
+ * https://gsap.com
5
+ *
6
+ * Copyright 2008-2025, GreenSock. All rights reserved.
7
+ * Subject to the terms at https://gsap.com/standard-license
8
+ * @author: Jack Doyle, jack@greensock.com
9
+ */
10
+ var Ye, W, ne, be, Q, ke, Se, ui = function() {
11
+ return typeof window < "u";
12
+ }, D = {}, J = 180 / Math.PI, se = Math.PI / 180, te = Math.atan2, Xe = 1e8, ye = /([A-Z])/g, hi = /(left|right|width|margin|padding|x)/i, _i = /[\s,\(]\S/, V = {
13
+ autoAlpha: "opacity,visibility",
14
+ scale: "scaleX,scaleY",
15
+ alpha: "opacity"
16
+ }, ge = function(e, i) {
17
+ return i.set(i.t, i.p, Math.round((i.s + i.c * e) * 1e4) / 1e4 + i.u, i);
18
+ }, di = function(e, i) {
19
+ return i.set(i.t, i.p, e === 1 ? i.e : Math.round((i.s + i.c * e) * 1e4) / 1e4 + i.u, i);
20
+ }, mi = function(e, i) {
21
+ return i.set(i.t, i.p, e ? Math.round((i.s + i.c * e) * 1e4) / 1e4 + i.u : i.b, i);
22
+ }, xi = function(e, i) {
23
+ var t = i.s + i.c * e;
24
+ i.set(i.t, i.p, ~~(t + (t < 0 ? -0.5 : 0.5)) + i.u, i);
25
+ }, We = function(e, i) {
26
+ return i.set(i.t, i.p, e ? i.e : i.b, i);
27
+ }, Ie = function(e, i) {
28
+ return i.set(i.t, i.p, e !== 1 ? i.b : i.e, i);
29
+ }, pi = function(e, i, t) {
30
+ return e.style[i] = t;
31
+ }, vi = function(e, i, t) {
32
+ return e.style.setProperty(i, t);
33
+ }, gi = function(e, i, t) {
34
+ return e._gsap[i] = t;
35
+ }, Oi = function(e, i, t) {
36
+ return e._gsap.scaleX = e._gsap.scaleY = t;
37
+ }, wi = function(e, i, t, n, s) {
38
+ var f = e._gsap;
39
+ f.scaleX = f.scaleY = t, f.renderTransform(s, f);
40
+ }, Pi = function(e, i, t, n, s) {
41
+ var f = e._gsap;
42
+ f[i] = t, f.renderTransform(s, f);
43
+ }, C = "transform", Y = C + "Origin", bi = function u(e, i) {
44
+ var t = this, n = this.target, s = n.style, f = n._gsap;
45
+ if (e in D && s) {
46
+ if (this.tfm = this.tfm || {}, e !== "transform")
47
+ e = V[e] || e, ~e.indexOf(",") ? e.split(",").forEach(function(o) {
48
+ return t.tfm[o] = N(n, o);
49
+ }) : this.tfm[e] = f.x ? f[e] : N(n, e), e === Y && (this.tfm.zOrigin = f.zOrigin);
50
+ else
51
+ return V.transform.split(",").forEach(function(o) {
52
+ return u.call(t, o, i);
53
+ });
54
+ if (this.props.indexOf(C) >= 0)
55
+ return;
56
+ f.svg && (this.svgo = n.getAttribute("data-svg-origin"), this.props.push(Y, i, "")), e = C;
57
+ }
58
+ (s || i) && this.props.push(e, i, s[e]);
59
+ }, qe = function(e) {
60
+ e.translate && (e.removeProperty("translate"), e.removeProperty("scale"), e.removeProperty("rotate"));
61
+ }, Si = function() {
62
+ var e = this.props, i = this.target, t = i.style, n = i._gsap, s, f;
63
+ for (s = 0; s < e.length; s += 3)
64
+ e[s + 1] ? e[s + 1] === 2 ? i[e[s]](e[s + 2]) : i[e[s]] = e[s + 2] : e[s + 2] ? t[e[s]] = e[s + 2] : t.removeProperty(e[s].substr(0, 2) === "--" ? e[s] : e[s].replace(ye, "-$1").toLowerCase());
65
+ if (this.tfm) {
66
+ for (f in this.tfm)
67
+ n[f] = this.tfm[f];
68
+ n.svg && (n.renderTransform(), i.setAttribute("data-svg-origin", this.svgo || "")), s = Se(), (!s || !s.isStart) && !t[C] && (qe(t), n.zOrigin && t[Y] && (t[Y] += " " + n.zOrigin + "px", n.zOrigin = 0, n.renderTransform()), n.uncache = 1);
69
+ }
70
+ }, Le = function(e, i) {
71
+ var t = {
72
+ target: e,
73
+ props: [],
74
+ revert: Si,
75
+ save: bi
76
+ };
77
+ return e._gsap || he.core.getCache(e), i && e.style && e.nodeType && i.split(",").forEach(function(n) {
78
+ return t.save(n);
79
+ }), t;
80
+ }, je, Oe = function(e, i) {
81
+ var t = W.createElementNS ? W.createElementNS((i || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), e) : W.createElement(e);
82
+ return t && t.style ? t : W.createElement(e);
83
+ }, X = function u(e, i, t) {
84
+ var n = getComputedStyle(e);
85
+ return n[i] || n.getPropertyValue(i.replace(ye, "-$1").toLowerCase()) || n.getPropertyValue(i) || !t && u(e, re(i) || i, 1) || "";
86
+ }, ze = "O,Moz,ms,Ms,Webkit".split(","), re = function(e, i, t) {
87
+ var n = i || Q, s = n.style, f = 5;
88
+ if (e in s && !t)
89
+ return e;
90
+ for (e = e.charAt(0).toUpperCase() + e.substr(1); f-- && !(ze[f] + e in s); )
91
+ ;
92
+ return f < 0 ? null : (f === 3 ? "ms" : f >= 0 ? ze[f] : "") + e;
93
+ }, we = function() {
94
+ ui() && window.document && (Ye = window, W = Ye.document, ne = W.documentElement, Q = Oe("div") || {
95
+ style: {}
96
+ }, Oe("div"), C = re(C), Y = C + "Origin", Q.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", je = !!re("perspective"), Se = he.core.reverting, be = 1);
97
+ }, Fe = function(e) {
98
+ var i = e.ownerSVGElement, t = Oe("svg", i && i.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), n = e.cloneNode(!0), s;
99
+ n.style.display = "block", t.appendChild(n), ne.appendChild(t);
100
+ try {
101
+ s = n.getBBox();
102
+ } catch {
103
+ }
104
+ return t.removeChild(n), ne.removeChild(t), s;
105
+ }, Ve = function(e, i) {
106
+ for (var t = i.length; t--; )
107
+ if (e.hasAttribute(i[t]))
108
+ return e.getAttribute(i[t]);
109
+ }, Ze = function(e) {
110
+ var i, t;
111
+ try {
112
+ i = e.getBBox();
113
+ } catch {
114
+ i = Fe(e), t = 1;
115
+ }
116
+ return i && (i.width || i.height) || t || (i = Fe(e)), i && !i.width && !i.x && !i.y ? {
117
+ x: +Ve(e, ["x", "cx", "x1"]) || 0,
118
+ y: +Ve(e, ["y", "cy", "y1"]) || 0,
119
+ width: 0,
120
+ height: 0
121
+ } : i;
122
+ }, He = function(e) {
123
+ return !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) && Ze(e));
124
+ }, ie = function(e, i) {
125
+ if (i) {
126
+ var t = e.style, n;
127
+ i in D && i !== Y && (i = C), t.removeProperty ? (n = i.substr(0, 2), (n === "ms" || i.substr(0, 6) === "webkit") && (i = "-" + i), t.removeProperty(n === "--" ? i : i.replace(ye, "-$1").toLowerCase())) : t.removeAttribute(i);
128
+ }
129
+ }, I = function(e, i, t, n, s, f) {
130
+ var o = new q(e._pt, i, t, 0, 1, f ? Ie : We);
131
+ return e._pt = o, o.b = n, o.e = s, e._props.push(t), o;
132
+ }, Be = {
133
+ deg: 1,
134
+ rad: 1,
135
+ turn: 1
136
+ }, yi = {
137
+ grid: 1,
138
+ flex: 1
139
+ }, L = function u(e, i, t, n) {
140
+ var s = parseFloat(t) || 0, f = (t + "").trim().substr((s + "").length) || "px", o = Q.style, c = hi.test(i), l = e.tagName.toLowerCase() === "svg", a = (l ? "client" : "offset") + (c ? "Width" : "Height"), h = 100, _ = n === "px", d = n === "%", m, r, v, O;
141
+ if (n === f || !s || Be[n] || Be[f])
142
+ return s;
143
+ if (f !== "px" && !_ && (s = u(e, i, t, "px")), O = e.getCTM && He(e), (d || f === "%") && (D[i] || ~i.indexOf("adius")))
144
+ return m = O ? e.getBBox()[c ? "width" : "height"] : e[a], T(d ? s / m * h : s / 100 * m);
145
+ if (o[c ? "width" : "height"] = h + (_ ? f : n), r = n !== "rem" && ~i.indexOf("adius") || n === "em" && e.appendChild && !l ? e : e.parentNode, O && (r = (e.ownerSVGElement || {}).parentNode), (!r || r === W || !r.appendChild) && (r = W.body), v = r._gsap, v && d && v.width && c && v.time === Ae.time && !v.uncache)
146
+ return T(s / v.width * h);
147
+ if (d && (i === "height" || i === "width")) {
148
+ var p = e.style[i];
149
+ e.style[i] = h + n, m = e[a], p ? e.style[i] = p : ie(e, i);
150
+ } else
151
+ (d || f === "%") && !yi[X(r, "display")] && (o.position = X(e, "position")), r === e && (o.position = "static"), r.appendChild(Q), m = Q[a], r.removeChild(Q), o.position = "absolute";
152
+ return c && d && (v = Ue(r), v.time = Ae.time, v.width = r[a]), T(_ ? m * s / h : m && s ? h / m * s : 0);
153
+ }, N = function(e, i, t, n) {
154
+ var s;
155
+ return be || we(), i in V && i !== "transform" && (i = V[i], ~i.indexOf(",") && (i = i.split(",")[0])), D[i] && i !== "transform" ? (s = ue(e, n), s = i !== "transformOrigin" ? s[i] : s.svg ? s.origin : pe(X(e, Y)) + " " + s.zOrigin + "px") : (s = e.style[i], (!s || s === "auto" || n || ~(s + "").indexOf("calc(")) && (s = xe[i] && xe[i](e, i, t) || X(e, i) || ri(e, i) || (i === "opacity" ? 1 : 0))), t && !~(s + "").trim().indexOf(" ") ? L(e, i, s, t) + t : s;
156
+ }, Ci = function(e, i, t, n) {
157
+ if (!t || t === "none") {
158
+ var s = re(i, e, 1), f = s && X(e, s, 1);
159
+ f && f !== t ? (i = s, t = f) : i === "borderColor" && (t = X(e, "borderTopColor"));
160
+ }
161
+ var o = new q(this._pt, e.style, i, 0, 1, fi), c = 0, l = 0, a, h, _, d, m, r, v, O, p, b, w, x;
162
+ if (o.b = t, o.e = n, t += "", n += "", n.substring(0, 6) === "var(--" && (n = X(e, n.substring(4, n.indexOf(")")))), n === "auto" && (r = e.style[i], e.style[i] = n, n = X(e, i) || n, r ? e.style[i] = r : ie(e, i)), a = [t, n], ai(a), t = a[0], n = a[1], _ = t.match(de) || [], x = n.match(de) || [], x.length) {
163
+ for (; h = de.exec(n); )
164
+ v = h[0], p = n.substring(c, h.index), m ? m = (m + 1) % 5 : (p.substr(-5) === "rgba(" || p.substr(-5) === "hsla(") && (m = 1), v !== (r = _[l++] || "") && (d = parseFloat(r) || 0, w = r.substr((d + "").length), v.charAt(1) === "=" && (v = me(d, v) + w), O = parseFloat(v), b = v.substr((O + "").length), c = de.lastIndex - b.length, b || (b = b || ee.units[i] || w, c === n.length && (n += b, o.e += b)), w !== b && (d = L(e, i, r, b) || 0), o._pt = {
165
+ _next: o._pt,
166
+ p: p || l === 1 ? p : ",",
167
+ //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
168
+ s: d,
169
+ c: O - d,
170
+ m: m && m < 4 || i === "zIndex" ? Math.round : 0
171
+ });
172
+ o.c = c < n.length ? n.substring(c, n.length) : "";
173
+ } else
174
+ o.r = i === "display" && n === "none" ? Ie : We;
175
+ return li.test(n) && (o.e = 0), this._pt = o, o;
176
+ }, Re = {
177
+ top: "0%",
178
+ bottom: "100%",
179
+ left: "0%",
180
+ right: "100%",
181
+ center: "50%"
182
+ }, Ti = function(e) {
183
+ var i = e.split(" "), t = i[0], n = i[1] || "50%";
184
+ return (t === "top" || t === "bottom" || n === "left" || n === "right") && (e = t, t = n, n = e), i[0] = Re[t] || t, i[1] = Re[n] || n, i.join(" ");
185
+ }, Mi = function(e, i) {
186
+ if (i.tween && i.tween._time === i.tween._dur) {
187
+ var t = i.t, n = t.style, s = i.u, f = t._gsap, o, c, l;
188
+ if (s === "all" || s === !0)
189
+ n.cssText = "", c = 1;
190
+ else
191
+ for (s = s.split(","), l = s.length; --l > -1; )
192
+ o = s[l], D[o] && (c = 1, o = o === "transformOrigin" ? Y : C), ie(t, o);
193
+ c && (ie(t, C), f && (f.svg && t.removeAttribute("transform"), n.scale = n.rotate = n.translate = "none", ue(t, 1), f.uncache = 1, qe(n)));
194
+ }
195
+ }, xe = {
196
+ clearProps: function(e, i, t, n, s) {
197
+ if (s.data !== "isFromStart") {
198
+ var f = e._pt = new q(e._pt, i, t, 0, 0, Mi);
199
+ return f.u = n, f.pr = -10, f.tween = s, e._props.push(t), 1;
200
+ }
201
+ }
202
+ /* className feature (about 0.4kb gzipped).
203
+ , className(plugin, target, property, endValue, tween) {
204
+ let _renderClassName = (ratio, data) => {
205
+ data.css.render(ratio, data.css);
206
+ if (!ratio || ratio === 1) {
207
+ let inline = data.rmv,
208
+ target = data.t,
209
+ p;
210
+ target.setAttribute("class", ratio ? data.e : data.b);
211
+ for (p in inline) {
212
+ _removeProperty(target, p);
213
+ }
214
+ }
215
+ },
216
+ _getAllStyles = (target) => {
217
+ let styles = {},
218
+ computed = getComputedStyle(target),
219
+ p;
220
+ for (p in computed) {
221
+ if (isNaN(p) && p !== "cssText" && p !== "length") {
222
+ styles[p] = computed[p];
223
+ }
224
+ }
225
+ _setDefaults(styles, _parseTransform(target, 1));
226
+ return styles;
227
+ },
228
+ startClassList = target.getAttribute("class"),
229
+ style = target.style,
230
+ cssText = style.cssText,
231
+ cache = target._gsap,
232
+ classPT = cache.classPT,
233
+ inlineToRemoveAtEnd = {},
234
+ data = {t:target, plugin:plugin, rmv:inlineToRemoveAtEnd, b:startClassList, e:(endValue.charAt(1) !== "=") ? endValue : startClassList.replace(new RegExp("(?:\\s|^)" + endValue.substr(2) + "(?![\\w-])"), "") + ((endValue.charAt(0) === "+") ? " " + endValue.substr(2) : "")},
235
+ changingVars = {},
236
+ startVars = _getAllStyles(target),
237
+ transformRelated = /(transform|perspective)/i,
238
+ endVars, p;
239
+ if (classPT) {
240
+ classPT.r(1, classPT.d);
241
+ _removeLinkedListItem(classPT.d.plugin, classPT, "_pt");
242
+ }
243
+ target.setAttribute("class", data.e);
244
+ endVars = _getAllStyles(target, true);
245
+ target.setAttribute("class", startClassList);
246
+ for (p in endVars) {
247
+ if (endVars[p] !== startVars[p] && !transformRelated.test(p)) {
248
+ changingVars[p] = endVars[p];
249
+ if (!style[p] && style[p] !== "0") {
250
+ inlineToRemoveAtEnd[p] = 1;
251
+ }
252
+ }
253
+ }
254
+ cache.classPT = plugin._pt = new PropTween(plugin._pt, target, "className", 0, 0, _renderClassName, data, 0, -11);
255
+ if (style.cssText !== cssText) { //only apply if things change. Otherwise, in cases like a background-image that's pulled dynamically, it could cause a refresh. See https://gsap.com/forums/topic/20368-possible-gsap-bug-switching-classnames-in-chrome/.
256
+ style.cssText = cssText; //we recorded cssText before we swapped classes and ran _getAllStyles() because in cases when a className tween is overwritten, we remove all the related tweening properties from that class change (otherwise class-specific stuff can't override properties we've directly set on the target's style object due to specificity).
257
+ }
258
+ _parseTransform(target, true); //to clear the caching of transforms
259
+ data.css = new gsap.plugins.css();
260
+ data.css.init(target, changingVars, tween);
261
+ plugin._props.push(...data.css._props);
262
+ return 1;
263
+ }
264
+ */
265
+ }, ce = [1, 0, 0, 1, 0, 0], $e = {}, Ke = function(e) {
266
+ return e === "matrix(1, 0, 0, 1, 0, 0)" || e === "none" || !e;
267
+ }, Ne = function(e) {
268
+ var i = X(e, C);
269
+ return Ke(i) ? ce : i.substr(7).match(ci).map(T);
270
+ }, Ce = function(e, i) {
271
+ var t = e._gsap || Ue(e), n = e.style, s = Ne(e), f, o, c, l;
272
+ return t.svg && e.getAttribute("transform") ? (c = e.transform.baseVal.consolidate().matrix, s = [c.a, c.b, c.c, c.d, c.e, c.f], s.join(",") === "1,0,0,1,0,0" ? ce : s) : (s === ce && !e.offsetParent && e !== ne && !t.svg && (c = n.display, n.display = "block", f = e.parentNode, (!f || !e.offsetParent && !e.getBoundingClientRect().width) && (l = 1, o = e.nextElementSibling, ne.appendChild(e)), s = Ne(e), c ? n.display = c : ie(e, "display"), l && (o ? f.insertBefore(e, o) : f ? f.appendChild(e) : ne.removeChild(e))), i && s.length > 6 ? [s[0], s[1], s[4], s[5], s[12], s[13]] : s);
273
+ }, Pe = function(e, i, t, n, s, f) {
274
+ var o = e._gsap, c = s || Ce(e, !0), l = o.xOrigin || 0, a = o.yOrigin || 0, h = o.xOffset || 0, _ = o.yOffset || 0, d = c[0], m = c[1], r = c[2], v = c[3], O = c[4], p = c[5], b = i.split(" "), w = parseFloat(b[0]) || 0, x = parseFloat(b[1]) || 0, y, P, S, g;
275
+ t ? c !== ce && (P = d * v - m * r) && (S = w * (v / P) + x * (-r / P) + (r * p - v * O) / P, g = w * (-m / P) + x * (d / P) - (d * p - m * O) / P, w = S, x = g) : (y = Ze(e), w = y.x + (~b[0].indexOf("%") ? w / 100 * y.width : w), x = y.y + (~(b[1] || b[0]).indexOf("%") ? x / 100 * y.height : x)), n || n !== !1 && o.smooth ? (O = w - l, p = x - a, o.xOffset = h + (O * d + p * r) - O, o.yOffset = _ + (O * m + p * v) - p) : o.xOffset = o.yOffset = 0, o.xOrigin = w, o.yOrigin = x, o.smooth = !!n, o.origin = i, o.originIsAbsolute = !!t, e.style[Y] = "0px 0px", f && (I(f, o, "xOrigin", l, w), I(f, o, "yOrigin", a, x), I(f, o, "xOffset", h, o.xOffset), I(f, o, "yOffset", _, o.yOffset)), e.setAttribute("data-svg-origin", w + " " + x);
276
+ }, ue = function(e, i) {
277
+ var t = e._gsap || new oi(e);
278
+ if ("x" in t && !i && !t.uncache)
279
+ return t;
280
+ var n = e.style, s = t.scaleX < 0, f = "px", o = "deg", c = getComputedStyle(e), l = X(e, Y) || "0", a, h, _, d, m, r, v, O, p, b, w, x, y, P, S, g, M, E, A, z, j, G, F, k, B, _e, oe, fe, Z, Te, R, H;
281
+ return a = h = _ = r = v = O = p = b = w = 0, d = m = 1, t.svg = !!(e.getCTM && He(e)), c.translate && ((c.translate !== "none" || c.scale !== "none" || c.rotate !== "none") && (n[C] = (c.translate !== "none" ? "translate3d(" + (c.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (c.rotate !== "none" ? "rotate(" + c.rotate + ") " : "") + (c.scale !== "none" ? "scale(" + c.scale.split(" ").join(",") + ") " : "") + (c[C] !== "none" ? c[C] : "")), n.scale = n.rotate = n.translate = "none"), P = Ce(e, t.svg), t.svg && (t.uncache ? (B = e.getBBox(), l = t.xOrigin - B.x + "px " + (t.yOrigin - B.y) + "px", k = "") : k = !i && e.getAttribute("data-svg-origin"), Pe(e, k || l, !!k || t.originIsAbsolute, t.smooth !== !1, P)), x = t.xOrigin || 0, y = t.yOrigin || 0, P !== ce && (E = P[0], A = P[1], z = P[2], j = P[3], a = G = P[4], h = F = P[5], P.length === 6 ? (d = Math.sqrt(E * E + A * A), m = Math.sqrt(j * j + z * z), r = E || A ? te(A, E) * J : 0, p = z || j ? te(z, j) * J + r : 0, p && (m *= Math.abs(Math.cos(p * se))), t.svg && (a -= x - (x * E + y * z), h -= y - (x * A + y * j))) : (H = P[6], Te = P[7], oe = P[8], fe = P[9], Z = P[10], R = P[11], a = P[12], h = P[13], _ = P[14], S = te(H, Z), v = S * J, S && (g = Math.cos(-S), M = Math.sin(-S), k = G * g + oe * M, B = F * g + fe * M, _e = H * g + Z * M, oe = G * -M + oe * g, fe = F * -M + fe * g, Z = H * -M + Z * g, R = Te * -M + R * g, G = k, F = B, H = _e), S = te(-z, Z), O = S * J, S && (g = Math.cos(-S), M = Math.sin(-S), k = E * g - oe * M, B = A * g - fe * M, _e = z * g - Z * M, R = j * M + R * g, E = k, A = B, z = _e), S = te(A, E), r = S * J, S && (g = Math.cos(S), M = Math.sin(S), k = E * g + A * M, B = G * g + F * M, A = A * g - E * M, F = F * g - G * M, E = k, G = B), v && Math.abs(v) + Math.abs(r) > 359.9 && (v = r = 0, O = 180 - O), d = T(Math.sqrt(E * E + A * A + z * z)), m = T(Math.sqrt(F * F + H * H)), S = te(G, F), p = Math.abs(S) > 2e-4 ? S * J : 0, w = R ? 1 / (R < 0 ? -R : R) : 0), t.svg && (k = e.getAttribute("transform"), t.forceCSS = e.setAttribute("transform", "") || !Ke(X(e, C)), k && e.setAttribute("transform", k))), Math.abs(p) > 90 && Math.abs(p) < 270 && (s ? (d *= -1, p += r <= 0 ? 180 : -180, r += r <= 0 ? 180 : -180) : (m *= -1, p += p <= 0 ? 180 : -180)), i = i || t.uncache, t.x = a - ((t.xPercent = a && (!i && t.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-a) ? -50 : 0))) ? e.offsetWidth * t.xPercent / 100 : 0) + f, t.y = h - ((t.yPercent = h && (!i && t.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-h) ? -50 : 0))) ? e.offsetHeight * t.yPercent / 100 : 0) + f, t.z = _ + f, t.scaleX = T(d), t.scaleY = T(m), t.rotation = T(r) + o, t.rotationX = T(v) + o, t.rotationY = T(O) + o, t.skewX = p + o, t.skewY = b + o, t.transformPerspective = w + f, (t.zOrigin = parseFloat(l.split(" ")[2]) || !i && t.zOrigin || 0) && (n[Y] = pe(l)), t.xOffset = t.yOffset = 0, t.force3D = ee.force3D, t.renderTransform = t.svg ? Ai : je ? Je : Ei, t.uncache = 0, t;
282
+ }, pe = function(e) {
283
+ return (e = e.split(" "))[0] + " " + e[1];
284
+ }, ve = function(e, i, t) {
285
+ var n = U(i);
286
+ return T(parseFloat(i) + parseFloat(L(e, "x", t + "px", n))) + n;
287
+ }, Ei = function(e, i) {
288
+ i.z = "0px", i.rotationY = i.rotationX = "0deg", i.force3D = 0, Je(e, i);
289
+ }, $ = "0deg", ae = "0px", K = ") ", Je = function(e, i) {
290
+ var t = i || this, n = t.xPercent, s = t.yPercent, f = t.x, o = t.y, c = t.z, l = t.rotation, a = t.rotationY, h = t.rotationX, _ = t.skewX, d = t.skewY, m = t.scaleX, r = t.scaleY, v = t.transformPerspective, O = t.force3D, p = t.target, b = t.zOrigin, w = "", x = O === "auto" && e && e !== 1 || O === !0;
291
+ if (b && (h !== $ || a !== $)) {
292
+ var y = parseFloat(a) * se, P = Math.sin(y), S = Math.cos(y), g;
293
+ y = parseFloat(h) * se, g = Math.cos(y), f = ve(p, f, P * g * -b), o = ve(p, o, -Math.sin(y) * -b), c = ve(p, c, S * g * -b + b);
294
+ }
295
+ v !== ae && (w += "perspective(" + v + K), (n || s) && (w += "translate(" + n + "%, " + s + "%) "), (x || f !== ae || o !== ae || c !== ae) && (w += c !== ae || x ? "translate3d(" + f + ", " + o + ", " + c + ") " : "translate(" + f + ", " + o + K), l !== $ && (w += "rotate(" + l + K), a !== $ && (w += "rotateY(" + a + K), h !== $ && (w += "rotateX(" + h + K), (_ !== $ || d !== $) && (w += "skew(" + _ + ", " + d + K), (m !== 1 || r !== 1) && (w += "scale(" + m + ", " + r + K), p.style[C] = w || "translate(0, 0)";
296
+ }, Ai = function(e, i) {
297
+ var t = i || this, n = t.xPercent, s = t.yPercent, f = t.x, o = t.y, c = t.rotation, l = t.skewX, a = t.skewY, h = t.scaleX, _ = t.scaleY, d = t.target, m = t.xOrigin, r = t.yOrigin, v = t.xOffset, O = t.yOffset, p = t.forceCSS, b = parseFloat(f), w = parseFloat(o), x, y, P, S, g;
298
+ c = parseFloat(c), l = parseFloat(l), a = parseFloat(a), a && (a = parseFloat(a), l += a, c += a), c || l ? (c *= se, l *= se, x = Math.cos(c) * h, y = Math.sin(c) * h, P = Math.sin(c - l) * -_, S = Math.cos(c - l) * _, l && (a *= se, g = Math.tan(l - a), g = Math.sqrt(1 + g * g), P *= g, S *= g, a && (g = Math.tan(a), g = Math.sqrt(1 + g * g), x *= g, y *= g)), x = T(x), y = T(y), P = T(P), S = T(S)) : (x = h, S = _, y = P = 0), (b && !~(f + "").indexOf("px") || w && !~(o + "").indexOf("px")) && (b = L(d, "x", f, "px"), w = L(d, "y", o, "px")), (m || r || v || O) && (b = T(b + m - (m * x + r * P) + v), w = T(w + r - (m * y + r * S) + O)), (n || s) && (g = d.getBBox(), b = T(b + n / 100 * g.width), w = T(w + s / 100 * g.height)), g = "matrix(" + x + "," + y + "," + P + "," + S + "," + b + "," + w + ")", d.setAttribute("transform", g), p && (d.style[C] = g);
299
+ }, Yi = function(e, i, t, n, s) {
300
+ var f = 360, o = Ge(s), c = parseFloat(s) * (o && ~s.indexOf("rad") ? J : 1), l = c - n, a = n + l + "deg", h, _;
301
+ return o && (h = s.split("_")[1], h === "short" && (l %= f, l !== l % (f / 2) && (l += l < 0 ? f : -f)), h === "cw" && l < 0 ? l = (l + f * Xe) % f - ~~(l / f) * f : h === "ccw" && l > 0 && (l = (l - f * Xe) % f - ~~(l / f) * f)), e._pt = _ = new q(e._pt, i, t, n, l, di), _.e = a, _.u = "deg", e._props.push(t), _;
302
+ }, De = function(e, i) {
303
+ for (var t in i)
304
+ e[t] = i[t];
305
+ return e;
306
+ }, ki = function(e, i, t) {
307
+ var n = De({}, t._gsap), s = "perspective,force3D,transformOrigin,svgOrigin", f = t.style, o, c, l, a, h, _, d, m;
308
+ n.svg ? (l = t.getAttribute("transform"), t.setAttribute("transform", ""), f[C] = i, o = ue(t, 1), ie(t, C), t.setAttribute("transform", l)) : (l = getComputedStyle(t)[C], f[C] = i, o = ue(t, 1), f[C] = l);
309
+ for (c in D)
310
+ l = n[c], a = o[c], l !== a && s.indexOf(c) < 0 && (d = U(l), m = U(a), h = d !== m ? L(t, c, l, m) : parseFloat(l), _ = parseFloat(a), e._pt = new q(e._pt, o, c, h, _ - h, ge), e._pt.u = m || 0, e._props.push(c));
311
+ De(o, n);
312
+ };
313
+ le("padding,margin,Width,Radius", function(u, e) {
314
+ var i = "Top", t = "Right", n = "Bottom", s = "Left", f = (e < 3 ? [i, t, n, s] : [i + s, i + t, n + t, n + s]).map(function(o) {
315
+ return e < 2 ? u + o : "border" + o + u;
316
+ });
317
+ xe[e > 1 ? "border" + u : u] = function(o, c, l, a, h) {
318
+ var _, d;
319
+ if (arguments.length < 4)
320
+ return _ = f.map(function(m) {
321
+ return N(o, m, l);
322
+ }), d = _.join(" "), d.split(_[0]).length === 5 ? _[0] : d;
323
+ _ = (a + "").split(" "), d = {}, f.forEach(function(m, r) {
324
+ return d[m] = _[r] = _[r] || _[(r - 1) / 2 | 0];
325
+ }), o.init(c, d, h);
326
+ };
327
+ });
328
+ var Xi = {
329
+ name: "css",
330
+ register: we,
331
+ targetTest: function(e) {
332
+ return e.style && e.nodeType;
333
+ },
334
+ init: function(e, i, t, n, s) {
335
+ var f = this._props, o = e.style, c = t.vars.startAt, l, a, h, _, d, m, r, v, O, p, b, w, x, y, P, S;
336
+ be || we(), this.styles = this.styles || Le(e), S = this.styles.props, this.tween = t;
337
+ for (r in i)
338
+ if (r !== "autoRound" && (a = i[r], !(ii[r] && ti(r, i, t, n, e, s)))) {
339
+ if (d = typeof a, m = xe[r], d === "function" && (a = a.call(t, n, e, s), d = typeof a), d === "string" && ~a.indexOf("random(") && (a = Me(a)), m)
340
+ m(this, e, r, a, t) && (P = 1);
341
+ else if (r.substr(0, 2) === "--")
342
+ l = (getComputedStyle(e).getPropertyValue(r) + "").trim(), a += "", Ee.lastIndex = 0, Ee.test(l) || (v = U(l), O = U(a)), O ? v !== O && (l = L(e, r, l, O) + O) : v && (a += v), this.add(o, "setProperty", l, a, n, s, 0, 0, r), f.push(r), S.push(r, 0, o[r]);
343
+ else if (d !== "undefined") {
344
+ if (c && r in c ? (l = typeof c[r] == "function" ? c[r].call(t, n, e, s) : c[r], Ge(l) && ~l.indexOf("random(") && (l = Me(l)), U(l + "") || l === "auto" || (l += ee.units[r] || U(N(e, r)) || ""), (l + "").charAt(1) === "=" && (l = N(e, r))) : l = N(e, r), _ = parseFloat(l), p = d === "string" && a.charAt(1) === "=" && a.substr(0, 2), p && (a = a.substr(2)), h = parseFloat(a), r in V && (r === "autoAlpha" && (_ === 1 && N(e, "visibility") === "hidden" && h && (_ = 0), S.push("visibility", 0, o.visibility), I(this, o, "visibility", _ ? "inherit" : "hidden", h ? "inherit" : "hidden", !h)), r !== "scale" && r !== "transform" && (r = V[r], ~r.indexOf(",") && (r = r.split(",")[0]))), b = r in D, b) {
345
+ if (this.styles.save(r), d === "string" && a.substring(0, 6) === "var(--" && (a = X(e, a.substring(4, a.indexOf(")"))), h = parseFloat(a)), w || (x = e._gsap, x.renderTransform && !i.parseTransform || ue(e, i.parseTransform), y = i.smoothOrigin !== !1 && x.smooth, w = this._pt = new q(this._pt, o, C, 0, 1, x.renderTransform, x, 0, -1), w.dep = 1), r === "scale")
346
+ this._pt = new q(this._pt, x, "scaleY", x.scaleY, (p ? me(x.scaleY, p + h) : h) - x.scaleY || 0, ge), this._pt.u = 0, f.push("scaleY", r), r += "X";
347
+ else if (r === "transformOrigin") {
348
+ S.push(Y, 0, o[Y]), a = Ti(a), x.svg ? Pe(e, a, 0, y, 0, this) : (O = parseFloat(a.split(" ")[2]) || 0, O !== x.zOrigin && I(this, x, "zOrigin", x.zOrigin, O), I(this, o, r, pe(l), pe(a)));
349
+ continue;
350
+ } else if (r === "svgOrigin") {
351
+ Pe(e, a, 1, y, 0, this);
352
+ continue;
353
+ } else if (r in $e) {
354
+ Yi(this, x, r, _, p ? me(_, p + a) : a);
355
+ continue;
356
+ } else if (r === "smoothOrigin") {
357
+ I(this, x, "smooth", x.smooth, a);
358
+ continue;
359
+ } else if (r === "force3D") {
360
+ x[r] = a;
361
+ continue;
362
+ } else if (r === "transform") {
363
+ ki(this, a, e);
364
+ continue;
365
+ }
366
+ } else r in o || (r = re(r) || r);
367
+ if (b || (h || h === 0) && (_ || _ === 0) && !_i.test(a) && r in o)
368
+ v = (l + "").substr((_ + "").length), h || (h = 0), O = U(a) || (r in ee.units ? ee.units[r] : v), v !== O && (_ = L(e, r, l, O)), this._pt = new q(this._pt, b ? x : o, r, _, (p ? me(_, p + h) : h) - _, !b && (O === "px" || r === "zIndex") && i.autoRound !== !1 ? xi : ge), this._pt.u = O || 0, v !== O && O !== "%" && (this._pt.b = l, this._pt.r = mi);
369
+ else if (r in o)
370
+ Ci.call(this, e, r, l, p ? p + a : a);
371
+ else if (r in e)
372
+ this.add(e, r, l || e[r], p ? p + a : a, n, s);
373
+ else if (r !== "parseTransform") {
374
+ ni(r, a);
375
+ continue;
376
+ }
377
+ b || (r in o ? S.push(r, 0, o[r]) : typeof e[r] == "function" ? S.push(r, 2, e[r]()) : S.push(r, 1, l || e[r])), f.push(r);
378
+ }
379
+ }
380
+ P && si(this);
381
+ },
382
+ render: function(e, i) {
383
+ if (i.tween._time || !Se())
384
+ for (var t = i._pt; t; )
385
+ t.r(e, t.d), t = t._next;
386
+ else
387
+ i.styles.revert();
388
+ },
389
+ get: N,
390
+ aliases: V,
391
+ getSetter: function(e, i, t) {
392
+ var n = V[i];
393
+ return n && n.indexOf(",") < 0 && (i = n), i in D && i !== Y && (e._gsap.x || N(e, "x")) ? t && ke === t ? i === "scale" ? Oi : gi : (ke = t || {}) && (i === "scale" ? wi : Pi) : e.style && !ei(e.style[i]) ? pi : ~i.indexOf("-") ? vi : Qe(e, i);
394
+ },
395
+ core: {
396
+ _removeProperty: ie,
397
+ _getMatrix: Ce
398
+ }
399
+ };
400
+ he.utils.checkPrefix = re;
401
+ he.core.getStyleSaver = Le;
402
+ (function(u, e, i, t) {
403
+ var n = le(u + "," + e + "," + i, function(s) {
404
+ D[s] = 1;
405
+ });
406
+ le(e, function(s) {
407
+ ee.units[s] = "deg", $e[s] = 1;
408
+ }), V[n[13]] = u + "," + e, le(t, function(s) {
409
+ var f = s.split(":");
410
+ V[f[1]] = n[f[0]];
411
+ });
412
+ })("x,y,z,scale,scaleX,scaleY,xPercent,yPercent", "rotation,rotationX,rotationY,skewX,skewY", "transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective", "0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");
413
+ le("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function(u) {
414
+ ee.units[u] = "px";
415
+ });
416
+ he.registerPlugin(Xi);
417
+ export {
418
+ Xi as CSSPlugin,
419
+ Oe as _createElement,
420
+ Ze as _getBBox,
421
+ re as checkPrefix,
422
+ Xi as default
423
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const C=require("./utils/matrix.cjs.js");/*!
2
+ * Flip 3.13.0
3
+ * https://gsap.com
4
+ *
5
+ * @license Copyright 2008-2025, GreenSock. All rights reserved.
6
+ * Subject to the terms at https://gsap.com/standard-license
7
+ * @author: Jack Doyle, jack@greensock.com
8
+ */var tt=1,ie,A,b,ne,J,q,Ie,Xe=function(e,i){return e.actions.forEach(function(t){return t.vars[i]&&t.vars[i](t)})},Me={},ze=180/Math.PI,it=Math.PI/180,he={},Oe={},fe={},Be=function(e){return typeof e=="string"?e.split(" ").join("").split(","):e},nt=Be("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),de=Be("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),re=function(e){return ie(e)[0]||console.warn("Element not found:",e)},Q=function(e){return Math.round(e*1e4)/1e4||0},xe=function(e,i,t){return e.forEach(function(r){return r.classList[t](i)})},Re={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},je={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},qe=function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()},ee=function(e,i){var t={},r;for(r in e)i[r]||(t[r]=e[r]);return t},Ce={},Ne=function(e){var i=Ce[e]=Be(e);return fe[e]=i.concat(de),i},rt=function(e){var i=e._gsap||A.core.getCache(e);return i.gmCache===A.ticker.frame?i.gMatrix:(i.gmCache=A.ticker.frame,i.gMatrix=C.getGlobalMatrix(e,!0,!1,!0))},st=function o(e,i,t){t===void 0&&(t=0);for(var r=e.parentNode,n=1e3*Math.pow(10,t)*(i?-1:1),s=i?-n*900:0;e;)s+=n,e=e.previousSibling;return r?s+o(r,i,t+1):s},pe=function(e,i,t){return e.forEach(function(r){return r.d=st(t?r.element:r.t,i)}),e.sort(function(r,n){return r.d-n.d}),e},se=function(e,i){for(var t=e.element.style,r=e.css=e.css||[],n=i.length,s,l;n--;)s=i[n],l=t[s]||t.getPropertyValue(s),r.push(l?s:Oe[s]||(Oe[s]=qe(s)),l);return t},ce=function(e){var i=e.css,t=e.element.style,r=0;for(e.cache.uncache=1;r<i.length;r+=2)i[r+1]?t[i[r]]=i[r+1]:t.removeProperty(i[r]);!i[i.indexOf("transform")+1]&&t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Ye=function(e,i){e.forEach(function(t){return t.a.cache.uncache=1}),i||e.finalStates.forEach(ce)},we="paddingTop,paddingRight,paddingBottom,paddingLeft,gridArea,transition".split(","),De=function(e,i,t){var r=e.element,n=e.width,s=e.height,l=e.uncache,u=e.getProp,a=r.style,c=4,h,x,w;if(typeof i!="object"&&(i=e),b&&t!==1)return b._abs.push({t:r,b:e,a:e,sd:0}),b._final.push(function(){return(e.cache.uncache=1)&&ce(e)}),r;for(x=u("display")==="none",(!e.isVisible||x)&&(x&&(se(e,["display"]).display=i.display),e.matrix=i.matrix,e.width=n=e.width||i.width,e.height=s=e.height||i.height),se(e,we),w=window.getComputedStyle(r);c--;)a[we[c]]=w[we[c]];if(a.gridArea="1 / 1 / 1 / 1",a.transition="none",a.position="absolute",a.width=n+"px",a.height=s+"px",a.top||(a.top="0px"),a.left||(a.left="0px"),l)h=new $(r);else if(h=ee(e,he),h.position="absolute",e.simple){var _=r.getBoundingClientRect();h.matrix=new C.Matrix2D(1,0,0,1,_.left+C._getDocScrollLeft(),_.top+C._getDocScrollTop())}else h.matrix=C.getGlobalMatrix(r,!1,!1,!0);return h=te(h,e,!0),e.x=q(h.x,.01),e.y=q(h.y,.01),r},Ge=function(e,i){return i!==!0&&(i=ie(i),e=e.filter(function(t){if(i.indexOf((t.sd<0?t.b:t.a).element)!==-1)return!0;t.t._gsap.renderTransform(1),t.b.isVisible&&(t.t.style.width=t.b.width+"px",t.t.style.height=t.b.height+"px")})),e},Je=function(e){return pe(e,!0).forEach(function(i){return(i.a.isVisible||i.b.isVisible)&&De(i.sd<0?i.b:i.a,i.b,1)})},at=function(e,i){return i&&e.idLookup[Ve(i).id]||e.elementStates[0]},Ve=function(e,i,t,r){return e instanceof $?e:e instanceof z?at(e,r):new $(typeof e=="string"?re(e)||console.warn(e+" not found"):e,i,t)},ot=function(e,i){for(var t=A.getProperty(e.element,null,"native"),r=e.props={},n=i.length;n--;)r[i[n]]=(t(i[n])+"").trim();return r.zIndex&&(r.zIndex=parseFloat(r.zIndex)||0),e},Ue=function(e,i){var t=e.style||e,r;for(r in i)t[r]=i[r]},lt=function(e){var i=e.getAttribute("data-flip-id");return i||e.setAttribute("data-flip-id",i="auto-"+tt++),i},$e=function(e){return e.map(function(i){return i.element})},He=function(e,i,t){return e&&i.length&&t.add(e($e(i),t,new z(i,0,!0)),0)},te=function(e,i,t,r,n,s){var l=e.element,u=e.cache,a=e.parent,c=e.x,h=e.y,x=i.width,w=i.height,_=i.scaleX,v=i.scaleY,m=i.rotation,y=i.bounds,L=s&&Ie&&Ie(l,"transform,width,height"),f=e,V=i.matrix,P=V.e,D=V.f,O=e.bounds.width!==y.width||e.bounds.height!==y.height||e.scaleX!==_||e.scaleY!==v||e.rotation!==m,R=!O&&e.simple&&i.simple&&!n,B,g,k,G,X,T,d;return R||!a?(_=v=1,m=B=0):(X=rt(a),T=X.clone().multiply(i.ctm?i.matrix.clone().multiply(i.ctm):i.matrix),m=Q(Math.atan2(T.b,T.a)*ze),B=Q(Math.atan2(T.c,T.d)*ze+m)%360,_=Math.sqrt(Math.pow(T.a,2)+Math.pow(T.b,2)),v=Math.sqrt(Math.pow(T.c,2)+Math.pow(T.d,2))*Math.cos(B*it),n&&(n=ie(n)[0],G=A.getProperty(n),d=n.getBBox&&typeof n.getBBox=="function"&&n.getBBox(),f={scaleX:G("scaleX"),scaleY:G("scaleY"),width:d?d.width:Math.ceil(parseFloat(G("width","px"))),height:d?d.height:parseFloat(G("height","px"))}),u.rotation=m+"deg",u.skewX=B+"deg"),t?(_*=x===f.width||!f.width?1:x/f.width,v*=w===f.height||!f.height?1:w/f.height,u.scaleX=_,u.scaleY=v):(x=q(x*_/f.scaleX,0),w=q(w*v/f.scaleY,0),l.style.width=x+"px",l.style.height=w+"px"),r&&Ue(l,i.props),R||!a?(c+=P-e.matrix.e,h+=D-e.matrix.f):O||a!==i.parent?(u.renderTransform(1,u),T=C.getGlobalMatrix(n||l,!1,!1,!0),g=X.apply({x:T.e,y:T.f}),k=X.apply({x:P,y:D}),c+=k.x-g.x,h+=k.y-g.y):(X.e=X.f=0,k=X.apply({x:P-e.matrix.e,y:D-e.matrix.f}),c+=k.x,h+=k.y),c=q(c,.02),h=q(h,.02),s&&!(s instanceof $)?L&&L.revert():(u.x=c+"px",u.y=h+"px",u.renderTransform(1,u)),s&&(s.x=c,s.y=h,s.rotation=m,s.skewX=B,t?(s.scaleX=_,s.scaleY=v):(s.width=x,s.height=w)),s||u},ve=function(e,i){return e instanceof z?e:new z(e,i)},Ze=function(e,i,t){var r=e.idLookup[t],n=e.alt[t];return n.isVisible&&(!(i.getElementState(n.element)||n).isVisible||!r.isVisible)?n:r},ke=[],Ee="width,height,overflowX,overflowY".split(","),le,We=function(e){if(e!==le){var i=J.style,t=J.clientWidth===window.outerWidth,r=J.clientHeight===window.outerHeight,n=4;if(e&&(t||r)){for(;n--;)ke[n]=i[Ee[n]];t&&(i.width=J.clientWidth+"px",i.overflowY="hidden"),r&&(i.height=J.clientHeight+"px",i.overflowX="hidden"),le=e}else if(le){for(;n--;)ke[n]?i[Ee[n]]=ke[n]:i.removeProperty(qe(Ee[n]));le=e}}},Pe=function(e,i,t,r){e instanceof z&&i instanceof z||console.warn("Not a valid state object."),t=t||{};var n=t,s=n.clearProps,l=n.onEnter,u=n.onLeave,a=n.absolute,c=n.absoluteOnLeave,h=n.custom,x=n.delay,w=n.paused,_=n.repeat,v=n.repeatDelay,m=n.yoyo,y=n.toggleClass,L=n.nested,f=n.zIndex,V=n.scale,P=n.fade,D=n.stagger,O=n.spin,R=n.prune,B=("props"in t?t:e).props,g=ee(t,Re),k=A.timeline({delay:x,paused:w,repeat:_,repeatDelay:v,yoyo:m,data:"isFlip"}),G=g,X=[],T=[],d=[],oe=[],Ke=O===!0?1:O||0,Qe=typeof O=="function"?O:function(){return Ke},ge=e.interrupted||i.interrupted,Te=k[r!==1?"to":"from"],Z,S,Ae,N,M,E,K,Y,me,H,W,ye,I,F;for(S in i.idLookup)W=i.alt[S]?Ze(i,e,S):i.idLookup[S],M=W.element,H=e.idLookup[S],e.alt[S]&&M===H.element&&(e.alt[S].isVisible||!W.isVisible)&&(H=e.alt[S]),H?(E={t:M,b:H,a:W,sd:H.element===M?0:W.isVisible?1:-1},d.push(E),E.sd&&(E.sd<0&&(E.b=W,E.a=H),ge&&se(E.b,B?fe[B]:de),P&&d.push(E.swap={t:H.element,b:E.b,a:E.a,sd:-E.sd,swap:E})),M._flip=H.element._flip=b?b.timeline:k):W.isVisible&&(d.push({t:M,b:ee(W,{isVisible:1}),a:W,sd:0,entering:1}),M._flip=b?b.timeline:k);if(B&&(Ce[B]||Ne(B)).forEach(function(j){return g[j]=function(U){return d[U].a.props[j]}}),d.finalStates=me=[],ye=function(){for(pe(d),We(!0),N=0;N<d.length;N++)E=d[N],I=E.a,F=E.b,R&&!I.isDifferent(F)&&!E.entering?d.splice(N--,1):(M=E.t,L&&!(E.sd<0)&&N&&(I.matrix=C.getGlobalMatrix(M,!1,!1,!0)),F.isVisible&&I.isVisible?(E.sd<0?(K=new $(M,B,e.simple),te(K,I,V,0,0,K),K.matrix=C.getGlobalMatrix(M,!1,!1,!0),K.css=E.b.css,E.a=I=K,P&&(M.style.opacity=ge?F.opacity:I.opacity),D&&oe.push(M)):E.sd>0&&P&&(M.style.opacity=ge?I.opacity-F.opacity:"0"),te(I,F,V,B)):F.isVisible!==I.isVisible&&(F.isVisible?I.isVisible||(F.css=I.css,T.push(F),d.splice(N--,1),a&&L&&te(I,F,V,B)):(I.isVisible&&X.push(I),d.splice(N--,1))),V||(M.style.maxWidth=Math.max(I.width,F.width)+"px",M.style.maxHeight=Math.max(I.height,F.height)+"px",M.style.minWidth=Math.min(I.width,F.width)+"px",M.style.minHeight=Math.min(I.height,F.height)+"px"),L&&y&&M.classList.add(y)),me.push(I);var U;if(y&&(U=me.map(function(p){return p.element}),L&&U.forEach(function(p){return p.classList.remove(y)})),We(!1),V?(g.scaleX=function(p){return d[p].a.scaleX},g.scaleY=function(p){return d[p].a.scaleY}):(g.width=function(p){return d[p].a.width+"px"},g.height=function(p){return d[p].a.height+"px"},g.autoRound=t.autoRound||!1),g.x=function(p){return d[p].a.x+"px"},g.y=function(p){return d[p].a.y+"px"},g.rotation=function(p){return d[p].a.rotation+(O?Qe(p,Y[p],Y)*360:0)},g.skewX=function(p){return d[p].a.skewX},Y=d.map(function(p){return p.t}),(f||f===0)&&(g.modifiers={zIndex:function(){return f}},g.zIndex=f,g.immediateRender=t.immediateRender!==!1),P&&(g.opacity=function(p){return d[p].sd<0?0:d[p].sd>0?d[p].a.opacity:"+=0"}),oe.length){D=A.utils.distribute(D);var et=Y.slice(oe.length);g.stagger=function(p,Se){return D(~oe.indexOf(Se)?Y.indexOf(d[p].swap.t):p,Se,et)}}if(nt.forEach(function(p){return t[p]&&k.eventCallback(p,t[p],t[p+"Params"])}),h&&Y.length){G=ee(g,Re),"scale"in h&&(h.scaleX=h.scaleY=h.scale,delete h.scale);for(S in h)Z=ee(h[S],je),Z[S]=g[S],!("duration"in Z)&&"duration"in g&&(Z.duration=g.duration),Z.stagger=g.stagger,Te.call(k,Y,Z,0),delete G[S]}(Y.length||T.length||X.length)&&(y&&k.add(function(){return xe(U,y,k._zTime<0?"remove":"add")},0)&&!w&&xe(U,y,"add"),Y.length&&Te.call(k,Y,G,0)),He(l,X,k),He(u,T,k);var be=b&&b.timeline;be&&(be.add(k,0),b._final.push(function(){return Ye(d,!s)})),Ae=k.duration(),k.call(function(){var p=k.time()>=Ae;p&&!be&&Ye(d,!s),y&&xe(U,y,p?"remove":"add")})},c&&(a=d.filter(function(j){return!j.sd&&!j.a.isVisible&&j.b.isVisible}).map(function(j){return j.a.element})),b){var Fe;a&&(Fe=b._abs).push.apply(Fe,Ge(d,a)),b._run.push(ye)}else a&&Je(Ge(d,a)),ye();var _e=b?b.timeline:k;return _e.revert=function(){return Le(_e,1,1)},_e},ut=function o(e){e.vars.onInterrupt&&e.vars.onInterrupt.apply(e,e.vars.onInterruptParams||[]),e.getChildren(!0,!1,!0).forEach(o)},Le=function(e,i,t){if(e&&e.progress()<1&&(!e.paused()||t))return i&&(ut(e),i<2&&e.progress(1),e.kill()),!0},ue=function(e){for(var i=e.idLookup={},t=e.alt={},r=e.elementStates,n=r.length,s;n--;)s=r[n],i[s.id]?t[s.id]=s:i[s.id]=s},z=function(){function o(i,t,r){if(this.props=t&&t.props,this.simple=!!(t&&t.simple),r)this.targets=$e(i),this.elementStates=i,ue(this);else{this.targets=ie(i);var n=t&&(t.kill===!1||t.batch&&!t.kill);b&&!n&&b._kill.push(this),this.update(n||!!b)}}var e=o.prototype;return e.update=function(t){var r=this;return this.elementStates=this.targets.map(function(n){return new $(n,r.props,r.simple)}),ue(this),this.interrupt(t),this.recordInlineStyles(),this},e.clear=function(){return this.targets.length=this.elementStates.length=0,ue(this),this},e.fit=function(t,r,n){for(var s=pe(this.elementStates.slice(0),!1,!0),l=(t||this).idLookup,u=0,a,c;u<s.length;u++)a=s[u],n&&(a.matrix=C.getGlobalMatrix(a.element,!1,!1,!0)),c=l[a.id],c&&te(a,c,r,!0,0,a),a.matrix=C.getGlobalMatrix(a.element,!1,!1,!0);return this},e.getProperty=function(t,r){var n=this.getElementState(t)||he;return(r in n?n:n.props||he)[r]},e.add=function(t){for(var r=t.targets.length,n=this.idLookup,s=this.alt,l,u,a;r--;)u=t.elementStates[r],a=n[u.id],a&&(u.element===a.element||s[u.id]&&s[u.id].element===u.element)?(l=this.elementStates.indexOf(u.element===a.element?a:s[u.id]),this.targets.splice(l,1,t.targets[r]),this.elementStates.splice(l,1,u)):(this.targets.push(t.targets[r]),this.elementStates.push(u));return t.interrupted&&(this.interrupted=!0),t.simple||(this.simple=!1),ue(this),this},e.compare=function(t){var r=t.idLookup,n=this.idLookup,s=[],l=[],u=[],a=[],c=[],h=t.alt,x=this.alt,w=function(R,B,g){return(R.isVisible!==B.isVisible?R.isVisible?u:a:R.isVisible?l:s).push(g)&&c.push(g)},_=function(R,B,g){return c.indexOf(g)<0&&w(R,B,g)},v,m,y,L,f,V,P,D;for(y in r)f=h[y],V=x[y],v=f?Ze(t,this,y):r[y],L=v.element,m=n[y],V?(D=m.isVisible||!V.isVisible&&L===m.element?m:V,P=f&&!v.isVisible&&!f.isVisible&&D.element===f.element?f:v,P.isVisible&&D.isVisible&&P.element!==D.element?((P.isDifferent(D)?l:s).push(P.element,D.element),c.push(P.element,D.element)):w(P,D,P.element),f&&P.element===f.element&&(f=r[y]),_(P.element!==m.element&&f?f:P,m,m.element),_(f&&f.element===V.element?f:P,V,V.element),f&&_(f,V.element===f.element?V:m,f.element)):(m?m.isDifferent(v)?w(v,m,L):s.push(L):u.push(L),f&&_(f,m,f.element));for(y in n)r[y]||(a.push(n[y].element),x[y]&&a.push(x[y].element));return{changed:l,unchanged:s,enter:u,leave:a}},e.recordInlineStyles=function(){for(var t=fe[this.props]||de,r=this.elementStates.length;r--;)se(this.elementStates[r],t)},e.interrupt=function(t){var r=this,n=[];this.targets.forEach(function(s){var l=s._flip,u=Le(l,t?0:1);t&&u&&n.indexOf(l)<0&&l.add(function(){return r.updateVisibility()}),u&&n.push(l)}),!t&&n.length&&this.updateVisibility(),this.interrupted||(this.interrupted=!!n.length)},e.updateVisibility=function(){this.elementStates.forEach(function(t){var r=t.element.getBoundingClientRect();t.isVisible=!!(r.width||r.height||r.top||r.left),t.uncache=1})},e.getElementState=function(t){return this.elementStates[this.targets.indexOf(re(t))]},e.makeAbsolute=function(){return pe(this.elementStates.slice(0),!0,!0).map(De)},o}(),$=function(){function o(i,t,r){this.element=i,this.update(t,r)}var e=o.prototype;return e.isDifferent=function(t){var r=this.bounds,n=t.bounds;return r.top!==n.top||r.left!==n.left||r.width!==n.width||r.height!==n.height||!this.matrix.equals(t.matrix)||this.opacity!==t.opacity||this.props&&t.props&&JSON.stringify(this.props)!==JSON.stringify(t.props)},e.update=function(t,r){var n=this,s=n.element,l=A.getProperty(s),u=A.core.getCache(s),a=s.getBoundingClientRect(),c=s.getBBox&&typeof s.getBBox=="function"&&s.nodeName.toLowerCase()!=="svg"&&s.getBBox(),h=r?new C.Matrix2D(1,0,0,1,a.left+C._getDocScrollLeft(),a.top+C._getDocScrollTop()):C.getGlobalMatrix(s,!1,!1,!0);u.uncache=1,n.getProp=l,n.element=s,n.id=lt(s),n.matrix=h,n.cache=u,n.bounds=a,n.isVisible=!!(a.width||a.height||a.left||a.top),n.display=l("display"),n.position=l("position"),n.parent=s.parentNode,n.x=l("x"),n.y=l("y"),n.scaleX=u.scaleX,n.scaleY=u.scaleY,n.rotation=l("rotation"),n.skewX=l("skewX"),n.opacity=l("opacity"),n.width=c?c.width:q(l("width","px"),.04),n.height=c?c.height:q(l("height","px"),.04),t&&ot(n,Ce[t]||Ne(t)),n.ctm=s.getCTM&&s.nodeName.toLowerCase()==="svg"&&C._getCTM(s).inverse(),n.simple=r||Q(h.a)===1&&!Q(h.b)&&!Q(h.c)&&Q(h.d)===1,n.uncache=0},o}(),ht=function(){function o(i,t){this.vars=i,this.batch=t,this.states=[],this.timeline=t.timeline}var e=o.prototype;return e.getStateById=function(t){for(var r=this.states.length;r--;)if(this.states[r].idLookup[t])return this.states[r]},e.kill=function(){this.batch.remove(this)},o}(),pt=function(){function o(i){this.id=i,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new z,this.timeline=A.timeline()}var e=o.prototype;return e.add=function(t){var r=this.actions.filter(function(n){return n.vars===t});return r.length?r[0]:(r=new ht(typeof t=="function"?{animate:t}:t,this),this.actions.push(r),r)},e.remove=function(t){var r=this.actions.indexOf(t);return r>=0&&this.actions.splice(r,1),this},e.getState=function(t){var r=this,n=b,s=ne;return b=this,this.state.clear(),this._kill.length=0,this.actions.forEach(function(l){l.vars.getState&&(l.states.length=0,ne=l,l.state=l.vars.getState(l)),t&&l.states.forEach(function(u){return r.state.add(u)})}),ne=s,b=n,this.killConflicts(),this},e.animate=function(){var t=this,r=b,n=this.timeline,s=this.actions.length,l,u;for(b=this,n.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(a){a.vars.animate&&a.vars.animate(a);var c=a.vars.onEnter,h=a.vars.onLeave,x=a.targets,w,_;x&&x.length&&(c||h)&&(w=new z,a.states.forEach(function(v){return w.add(v)}),_=w.compare(ae.getState(x)),_.enter.length&&c&&c(_.enter),_.leave.length&&h&&h(_.leave))}),Je(this._abs),this._run.forEach(function(a){return a()}),u=n.duration(),l=this._final.slice(0),n.add(function(){u<=n.time()&&(l.forEach(function(a){return a()}),Xe(t,"onComplete"))}),b=r;s--;)this.actions[s].vars.once&&this.actions[s].kill();return Xe(this,"onStart"),n.restart(),this},e.loadState=function(t){t||(t=function(){return 0});var r=[];return this.actions.forEach(function(n){if(n.vars.loadState){var s,l=function u(a){a&&(n.targets=a),s=r.indexOf(u),~s&&(r.splice(s,1),r.length||t())};r.push(l),n.vars.loadState(l)}}),r.length||t(),this},e.setState=function(){return this.actions.forEach(function(t){return t.targets=t.vars.setState&&t.vars.setState(t)}),this},e.killConflicts=function(t){return this.state.interrupt(t),this._kill.forEach(function(r){return r.interrupt(t)}),this},e.run=function(t,r){var n=this;return this!==b&&(t||this.getState(r),this.loadState(function(){n._killed||(n.setState(),n.animate())})),this},e.clear=function(t){this.state.clear(),t||(this.actions.length=0)},e.getStateById=function(t){for(var r=this.actions.length,n;r--;)if(n=this.actions[r].getStateById(t),n)return n;return this.state.idLookup[t]&&this.state},e.kill=function(){this._killed=1,this.clear(),delete Me[this.id]},o}(),ae=function(){function o(){}return o.getState=function(i,t){var r=ve(i,t);return ne&&ne.states.push(r),t&&t.batch&&o.batch(t.batch).state.add(r),r},o.from=function(i,t){return t=t||{},"clearProps"in t||(t.clearProps=!0),Pe(i,ve(t.targets||i.targets,{props:t.props||i.props,simple:t.simple,kill:!!t.kill}),t,-1)},o.to=function(i,t){return Pe(i,ve(t.targets||i.targets,{props:t.props||i.props,simple:t.simple,kill:!!t.kill}),t,1)},o.fromTo=function(i,t,r){return Pe(i,t,r)},o.fit=function(i,t,r){var n=r?ee(r,je):{},s=r||n,l=s.absolute,u=s.scale,a=s.getVars,c=s.props,h=s.runBackwards,x=s.onComplete,w=s.simple,_=r&&r.fitChild&&re(r.fitChild),v=Ve(t,c,w,i),m=Ve(i,0,w,v),y=c?fe[c]:de,L=A.context();return c&&Ue(n,v.props),se(m,y),h&&("immediateRender"in n||(n.immediateRender=!0),n.onComplete=function(){ce(m),x&&x.apply(this,arguments)}),l&&De(m,v),n=te(m,v,u||_,!n.duration&&c,_,n.duration||a?n:0),typeof r=="object"&&"zIndex"in r&&(n.zIndex=r.zIndex),L&&!a&&L.add(function(){return function(){return ce(m)}}),a?n:n.duration?A.to(m.element,n):null},o.makeAbsolute=function(i,t){return(i instanceof z?i:new z(i,t)).makeAbsolute()},o.batch=function(i){return i||(i="default"),Me[i]||(Me[i]=new pt(i))},o.killFlipsOf=function(i,t){(i instanceof z?i.targets:ie(i)).forEach(function(r){return r&&Le(r._flip,t!==!1?1:2)})},o.isFlipping=function(i){var t=o.getByTarget(i);return!!t&&t.isActive()},o.getByTarget=function(i){return(re(i)||he)._flip},o.getElementState=function(i,t){return new $(re(i),t)},o.convertCoordinates=function(i,t,r){var n=C.getGlobalMatrix(t,!0,!0).multiply(C.getGlobalMatrix(i));return r?n.apply(r):n},o.register=function(i){if(J=typeof document<"u"&&document.body,J){A=i,C._setDoc(J),ie=A.utils.toArray,Ie=A.core.getStyleSaver;var t=A.utils.snap(.1);q=function(n,s){return t(parseFloat(n)+s)}}},o}();ae.version="3.13.0";typeof window<"u"&&window.gsap&&window.gsap.registerPlugin(ae);exports.Flip=ae;exports.default=ae;