tttb 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 (235) hide show
  1. package/README.md +42 -0
  2. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  3. package/dist/components/Button/index.js +6 -0
  4. package/dist/components/Button/index.vue.js +7 -0
  5. package/dist/components/Button/index.vue2.js +57 -0
  6. package/dist/components/Button/types.js +8 -0
  7. package/dist/components/Checkbox/index.js +6 -0
  8. package/dist/components/Checkbox/index.vue.js +7 -0
  9. package/dist/components/Checkbox/index.vue2.js +35 -0
  10. package/dist/components/Checkbox/types.js +7 -0
  11. package/dist/components/Dialog/DialogItem.vue.js +7 -0
  12. package/dist/components/Dialog/DialogItem.vue2.js +78 -0
  13. package/dist/components/Dialog/DialogPrompt.vue.js +7 -0
  14. package/dist/components/Dialog/DialogPrompt.vue2.js +63 -0
  15. package/dist/components/Dialog/index.js +6 -0
  16. package/dist/components/Dialog/index.vue.js +7 -0
  17. package/dist/components/Dialog/index.vue2.js +81 -0
  18. package/dist/components/Icon/index.js +6 -0
  19. package/dist/components/Icon/index.vue.js +43 -0
  20. package/dist/components/Icon/index.vue2.js +4 -0
  21. package/dist/components/Loading/index.js +6 -0
  22. package/dist/components/Loading/index.vue.js +7 -0
  23. package/dist/components/Loading/index.vue2.js +37 -0
  24. package/dist/components/Loading/types.js +7 -0
  25. package/dist/components/Message/index.js +6 -0
  26. package/dist/components/Message/index.vue.js +7 -0
  27. package/dist/components/Message/index.vue2.js +91 -0
  28. package/dist/components/Modal/index.js +6 -0
  29. package/dist/components/Modal/index.vue.js +7 -0
  30. package/dist/components/Modal/index.vue2.js +39 -0
  31. package/dist/components/Modal/types.js +7 -0
  32. package/dist/components/Nav/index.js +6 -0
  33. package/dist/components/Nav/index.vue.js +7 -0
  34. package/dist/components/Nav/index.vue2.js +95 -0
  35. package/dist/components/Pagination/index.js +6 -0
  36. package/dist/components/Pagination/index.vue.js +7 -0
  37. package/dist/components/Pagination/index.vue2.js +162 -0
  38. package/dist/components/Pagination/types.js +8 -0
  39. package/dist/components/Popconfirm/index.js +7 -0
  40. package/dist/components/Popconfirm/index.vue.js +92 -0
  41. package/dist/components/Popconfirm/index.vue3.js +5 -0
  42. package/dist/components/Popconfirm/types.js +14 -0
  43. package/dist/components/Popover/index.js +7 -0
  44. package/dist/components/Popover/index.vue.js +32 -0
  45. package/dist/components/Popover/index.vue3.js +5 -0
  46. package/dist/components/Progress/index.js +6 -0
  47. package/dist/components/Progress/index.vue.js +7 -0
  48. package/dist/components/Progress/index.vue2.js +38 -0
  49. package/dist/components/Progress/types.js +7 -0
  50. package/dist/components/RouterNav/index.js +6 -0
  51. package/dist/components/RouterNav/index.vue.js +33 -0
  52. package/dist/components/RouterNav/index.vue2.js +4 -0
  53. package/dist/components/Switch/index.js +6 -0
  54. package/dist/components/Switch/index.vue.js +7 -0
  55. package/dist/components/Switch/index.vue2.js +76 -0
  56. package/dist/components/Switch/types.js +6 -0
  57. package/dist/components/Table/index.js +6 -0
  58. package/dist/components/Table/index.vue.js +7 -0
  59. package/dist/components/Table/index.vue2.js +57 -0
  60. package/dist/components/Timer/index.js +6 -0
  61. package/dist/components/Timer/index.vue.js +31 -0
  62. package/dist/components/Timer/index.vue2.js +4 -0
  63. package/dist/components/Tooltip/TooltipContent.vue.js +33 -0
  64. package/dist/components/Tooltip/TooltipContent.vue2.js +4 -0
  65. package/dist/components/Tooltip/TooltipItem.vue.js +58 -0
  66. package/dist/components/Tooltip/TooltipItem.vue2.js +4 -0
  67. package/dist/components/Tooltip/TooltipLayer.vue.js +49 -0
  68. package/dist/components/Tooltip/TooltipLayer.vue2.js +4 -0
  69. package/dist/components/Tooltip/index.js +6 -0
  70. package/dist/components/Tooltip/index.vue.js +74 -0
  71. package/dist/components/Tooltip/index.vue2.js +4 -0
  72. package/dist/components/Tooltip/manager.js +107 -0
  73. package/dist/components/Tooltip/types.js +21 -0
  74. package/dist/components/Tooltip/useTooltip.js +43 -0
  75. package/dist/components/Warn/index.js +6 -0
  76. package/dist/components/Warn/index.vue.js +7 -0
  77. package/dist/components/Warn/index.vue2.js +21 -0
  78. package/dist/components/Warn/types.js +6 -0
  79. package/dist/components/Watermark/index.js +6 -0
  80. package/dist/components/Watermark/index.vue.js +7 -0
  81. package/dist/components/Watermark/index.vue2.js +54 -0
  82. package/dist/components/Watermark/types.js +10 -0
  83. package/dist/components/Watermark/useWatermarkBg.js +11 -0
  84. package/dist/components/helpers.js +25 -0
  85. package/dist/components.js +40 -0
  86. package/dist/directives/vBackTop.js +110 -0
  87. package/dist/directives/vDelayIn.js +41 -0
  88. package/dist/directives/vHoldPointer.js +112 -0
  89. package/dist/directives/vLazy.js +65 -0
  90. package/dist/directives/vLoading.js +50 -0
  91. package/dist/directives/vRipple.js +81 -0
  92. package/dist/directives/vSlideIn.js +39 -0
  93. package/dist/directives/vTextJump.js +50 -0
  94. package/dist/directives/vTooltip.js +55 -0
  95. package/dist/directives.js +20 -0
  96. package/dist/hooks/useAudio.js +112 -0
  97. package/dist/hooks/useElementScroll.js +30 -0
  98. package/dist/hooks/useGSAP.js +40 -0
  99. package/dist/hooks/useRefreshRate.js +26 -0
  100. package/dist/hooks/useWindowBackTop.js +86 -0
  101. package/dist/hooks.js +13 -0
  102. package/dist/icons/brands.js +554 -0
  103. package/dist/icons/regular.js +278 -0
  104. package/dist/icons/solid.js +1989 -0
  105. package/dist/index.js +130 -0
  106. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +448 -0
  107. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +400 -0
  108. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
  109. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
  110. package/dist/node_modules/@floating-ui/vue/dist/floating-ui.vue.js +131 -0
  111. package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js +3074 -0
  112. package/dist/node_modules/@fortawesome/free-brands-svg-icons/index.js +3156 -0
  113. package/dist/node_modules/@fortawesome/free-regular-svg-icons/index.js +1228 -0
  114. package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js +9602 -0
  115. package/dist/node_modules/@fortawesome/vue-fontawesome/index.es.js +487 -0
  116. package/dist/node_modules/gsap/CSSPlugin.js +424 -0
  117. package/dist/node_modules/gsap/gsap-core.js +1645 -0
  118. package/dist/node_modules/gsap/index.js +13 -0
  119. package/dist/tttb.css +1 -0
  120. package/dist/types/bundle.d.ts +10 -0
  121. package/dist/types/components/Button/index.d.ts +22 -0
  122. package/dist/types/components/Button/types.d.ts +12 -0
  123. package/dist/types/components/Checkbox/index.d.ts +29 -0
  124. package/dist/types/components/Checkbox/types.d.ts +8 -0
  125. package/dist/types/components/Dialog/DialogItem.d.ts +38 -0
  126. package/dist/types/components/Dialog/DialogPrompt.d.ts +16 -0
  127. package/dist/types/components/Dialog/index.d.ts +10 -0
  128. package/dist/types/components/Dialog/types.d.ts +35 -0
  129. package/dist/types/components/Icon/index.d.ts +3 -0
  130. package/dist/types/components/Icon/types.d.ts +2 -0
  131. package/dist/types/components/Loading/index.d.ts +6 -0
  132. package/dist/types/components/Loading/types.d.ts +8 -0
  133. package/dist/types/components/Message/index.d.ts +9 -0
  134. package/dist/types/components/Message/types.d.ts +12 -0
  135. package/dist/types/components/Modal/index.d.ts +21 -0
  136. package/dist/types/components/Modal/types.d.ts +11 -0
  137. package/dist/types/components/Nav/index.d.ts +7 -0
  138. package/dist/types/components/Nav/types.d.ts +14 -0
  139. package/dist/types/components/Pagination/index.d.ts +18 -0
  140. package/dist/types/components/Pagination/types.d.ts +16 -0
  141. package/dist/types/components/Popconfirm/index.d.ts +266 -0
  142. package/dist/types/components/Popconfirm/types.d.ts +26 -0
  143. package/dist/types/components/Popover/index.d.ts +150 -0
  144. package/dist/types/components/Progress/index.d.ts +21 -0
  145. package/dist/types/components/Progress/types.d.ts +9 -0
  146. package/dist/types/components/RouterNav/index.d.ts +2 -0
  147. package/dist/types/components/Switch/index.d.ts +13 -0
  148. package/dist/types/components/Switch/types.d.ts +6 -0
  149. package/dist/types/components/Table/index.d.ts +31 -0
  150. package/dist/types/components/Table/types.d.ts +3 -0
  151. package/dist/types/components/Timer/index.d.ts +6 -0
  152. package/dist/types/components/Tooltip/TooltipContent.d.ts +16 -0
  153. package/dist/types/components/Tooltip/TooltipItem.d.ts +45 -0
  154. package/dist/types/components/Tooltip/TooltipLayer.d.ts +2 -0
  155. package/dist/types/components/Tooltip/index.d.ts +42 -0
  156. package/dist/types/components/Tooltip/manager.d.ts +3384 -0
  157. package/dist/types/components/Tooltip/types.d.ts +52 -0
  158. package/dist/types/components/Tooltip/useTooltip.d.ts +8 -0
  159. package/dist/types/components/Warn/index.d.ts +20 -0
  160. package/dist/types/components/Warn/types.d.ts +6 -0
  161. package/dist/types/components/Watermark/index.d.ts +28 -0
  162. package/dist/types/components/Watermark/types.d.ts +14 -0
  163. package/dist/types/components/Watermark/useWatermarkBg.d.ts +6 -0
  164. package/dist/types/components/helpers.d.ts +14 -0
  165. package/dist/types/components/index.d.ts +19 -0
  166. package/dist/types/directives/helper.d.ts +4 -0
  167. package/dist/types/directives/index.d.ts +9 -0
  168. package/dist/types/directives/vBackTop.d.ts +3 -0
  169. package/dist/types/directives/vDelayIn.d.ts +3 -0
  170. package/dist/types/directives/vHoldPointer.d.ts +3 -0
  171. package/dist/types/directives/vLazy.d.ts +3 -0
  172. package/dist/types/directives/vLoading.d.ts +3 -0
  173. package/dist/types/directives/vRipple.d.ts +3 -0
  174. package/dist/types/directives/vSlideIn.d.ts +3 -0
  175. package/dist/types/directives/vTextJump.d.ts +3 -0
  176. package/dist/types/directives/vTooltip.d.ts +8 -0
  177. package/dist/types/hooks/index.d.ts +5 -0
  178. package/dist/types/hooks/useAudio.d.ts +38 -0
  179. package/dist/types/hooks/useElementScroll.d.ts +32 -0
  180. package/dist/types/hooks/useGSAP.d.ts +32 -0
  181. package/dist/types/hooks/useRefreshRate.d.ts +5 -0
  182. package/dist/types/hooks/useWindowBackTop.d.ts +14 -0
  183. package/dist/types/icons/brands.d.ts +551 -0
  184. package/dist/types/icons/regular.d.ts +275 -0
  185. package/dist/types/icons/solid.d.ts +1986 -0
  186. package/dist/types/router/index.d.ts +2 -0
  187. package/dist/types/utils/chance.d.ts +7 -0
  188. package/dist/types/utils/copyToClipboard.d.ts +6 -0
  189. package/dist/types/utils/debounce.d.ts +15 -0
  190. package/dist/types/utils/deepClone.d.ts +6 -0
  191. package/dist/types/utils/deepEqual.d.ts +5 -0
  192. package/dist/types/utils/dialog.d.ts +8 -0
  193. package/dist/types/utils/getId.d.ts +6 -0
  194. package/dist/types/utils/getRandomColor.d.ts +4 -0
  195. package/dist/types/utils/getRandomInt.d.ts +6 -0
  196. package/dist/types/utils/getRandomStr.d.ts +6 -0
  197. package/dist/types/utils/index.d.ts +23 -0
  198. package/dist/types/utils/injectStyles.d.ts +9 -0
  199. package/dist/types/utils/isElementOverflow.d.ts +20 -0
  200. package/dist/types/utils/isEmpty.d.ts +6 -0
  201. package/dist/types/utils/isMobile.d.ts +6 -0
  202. package/dist/types/utils/isObject.d.ts +4 -0
  203. package/dist/types/utils/isPromise.d.ts +6 -0
  204. package/dist/types/utils/localStorage.d.ts +24 -0
  205. package/dist/types/utils/msg.d.ts +8 -0
  206. package/dist/types/utils/omit.d.ts +6 -0
  207. package/dist/types/utils/pick.d.ts +6 -0
  208. package/dist/types/utils/sessionStorage.d.ts +24 -0
  209. package/dist/types/utils/shuffleArray.d.ts +6 -0
  210. package/dist/types/utils/throttle.d.ts +7 -0
  211. package/dist/utils/chance.js +7 -0
  212. package/dist/utils/copyToClipboard.js +21 -0
  213. package/dist/utils/debounce.js +14 -0
  214. package/dist/utils/deepClone.js +17 -0
  215. package/dist/utils/deepEqual.js +40 -0
  216. package/dist/utils/dialog.js +43 -0
  217. package/dist/utils/getId.js +10 -0
  218. package/dist/utils/getRandomColor.js +4 -0
  219. package/dist/utils/getRandomInt.js +4 -0
  220. package/dist/utils/getRandomStr.js +5 -0
  221. package/dist/utils/injectStyles.js +24 -0
  222. package/dist/utils/isElementOverflow.js +22 -0
  223. package/dist/utils/isEmpty.js +4 -0
  224. package/dist/utils/isMobile.js +7 -0
  225. package/dist/utils/isObject.js +4 -0
  226. package/dist/utils/isPromise.js +4 -0
  227. package/dist/utils/localStorage.js +47 -0
  228. package/dist/utils/msg.js +21 -0
  229. package/dist/utils/omit.js +9 -0
  230. package/dist/utils/pick.js +9 -0
  231. package/dist/utils/sessionStorage.js +47 -0
  232. package/dist/utils/shuffleArray.js +10 -0
  233. package/dist/utils/throttle.js +11 -0
  234. package/dist/utils.js +49 -0
  235. package/package.json +95 -0
@@ -0,0 +1,424 @@
1
+ import he, { _isUndefined as Qe, _getSetter as ei, _plugins as ii, _checkPlugin as ni, _replaceRandom as Me, _colorExp as Ee, getUnit as G, _isString as We, _config as ie, PropTween as q, _parseRelative as me, _missingPlugin as ti, _sortPropTweensByPriority as si, _getCache as Ge, _getProperty as ri, _round as M, _ticker as Ae, GSCache as oi, _renderComplexString as fi, _colorStringFilter as li, _numWithUnitExp as de, _relExp as ai, _numExp as ci, _forEachName as ae } from "./gsap-core.js";
2
+ var Ye, U, te, be, ee, ke, Se, ui = function() {
3
+ return typeof window < "u";
4
+ }, D = {}, Q = 180 / Math.PI, se = Math.PI / 180, ne = Math.atan2, Xe = 1e8, ye = /([A-Z])/g, hi = /(left|right|width|margin|padding|x)/i, _i = /[\s,\(]\S/, V = {
5
+ autoAlpha: "opacity,visibility",
6
+ scale: "scaleX,scaleY",
7
+ alpha: "opacity"
8
+ }, ge = function(e, i) {
9
+ return i.set(i.t, i.p, Math.round((i.s + i.c * e) * 1e4) / 1e4 + i.u, i);
10
+ }, di = function(e, i) {
11
+ return i.set(i.t, i.p, e === 1 ? i.e : Math.round((i.s + i.c * e) * 1e4) / 1e4 + i.u, i);
12
+ }, mi = function(e, i) {
13
+ return i.set(i.t, i.p, e ? Math.round((i.s + i.c * e) * 1e4) / 1e4 + i.u : i.b, i);
14
+ }, xi = function(e, i) {
15
+ return i.set(i.t, i.p, e === 1 ? i.e : e ? Math.round((i.s + i.c * e) * 1e4) / 1e4 + i.u : i.b, i);
16
+ }, pi = function(e, i) {
17
+ var n = i.s + i.c * e;
18
+ i.set(i.t, i.p, ~~(n + (n < 0 ? -0.5 : 0.5)) + i.u, i);
19
+ }, Ue = function(e, i) {
20
+ return i.set(i.t, i.p, e ? i.e : i.b, i);
21
+ }, Ie = function(e, i) {
22
+ return i.set(i.t, i.p, e !== 1 ? i.b : i.e, i);
23
+ }, vi = function(e, i, n) {
24
+ return e.style[i] = n;
25
+ }, gi = function(e, i, n) {
26
+ return e.style.setProperty(i, n);
27
+ }, Oi = function(e, i, n) {
28
+ return e._gsap[i] = n;
29
+ }, Pi = function(e, i, n) {
30
+ return e._gsap.scaleX = e._gsap.scaleY = n;
31
+ }, wi = function(e, i, n, t, s) {
32
+ var f = e._gsap;
33
+ f.scaleX = f.scaleY = n, f.renderTransform(s, f);
34
+ }, bi = function(e, i, n, t, s) {
35
+ var f = e._gsap;
36
+ f[i] = n, f.renderTransform(s, f);
37
+ }, C = "transform", Y = C + "Origin", Si = function u(e, i) {
38
+ var n = this, t = this.target, s = t.style, f = t._gsap;
39
+ if (e in D && s) {
40
+ if (this.tfm = this.tfm || {}, e !== "transform")
41
+ e = V[e] || e, ~e.indexOf(",") ? e.split(",").forEach(function(o) {
42
+ return n.tfm[o] = N(t, o);
43
+ }) : this.tfm[e] = f.x ? f[e] : N(t, e), e === Y && (this.tfm.zOrigin = f.zOrigin);
44
+ else
45
+ return V.transform.split(",").forEach(function(o) {
46
+ return u.call(n, o, i);
47
+ });
48
+ if (this.props.indexOf(C) >= 0)
49
+ return;
50
+ f.svg && (this.svgo = t.getAttribute("data-svg-origin"), this.props.push(Y, i, "")), e = C;
51
+ }
52
+ (s || i) && this.props.push(e, i, s[e]);
53
+ }, qe = function(e) {
54
+ e.translate && (e.removeProperty("translate"), e.removeProperty("scale"), e.removeProperty("rotate"));
55
+ }, yi = function() {
56
+ var e = this.props, i = this.target, n = i.style, t = i._gsap, s, f;
57
+ for (s = 0; s < e.length; s += 3)
58
+ e[s + 1] ? e[s + 1] === 2 ? i[e[s]](e[s + 2]) : i[e[s]] = e[s + 2] : e[s + 2] ? n[e[s]] = e[s + 2] : n.removeProperty(e[s].substr(0, 2) === "--" ? e[s] : e[s].replace(ye, "-$1").toLowerCase());
59
+ if (this.tfm) {
60
+ for (f in this.tfm)
61
+ t[f] = this.tfm[f];
62
+ t.svg && (t.renderTransform(), i.setAttribute("data-svg-origin", this.svgo || "")), s = Se(), (!s || !s.isStart) && !n[C] && (qe(n), t.zOrigin && n[Y] && (n[Y] += " " + t.zOrigin + "px", t.zOrigin = 0, t.renderTransform()), t.uncache = 1);
63
+ }
64
+ }, Le = function(e, i) {
65
+ var n = {
66
+ target: e,
67
+ props: [],
68
+ revert: yi,
69
+ save: Si
70
+ };
71
+ return e._gsap || he.core.getCache(e), i && e.style && e.nodeType && i.split(",").forEach(function(t) {
72
+ return n.save(t);
73
+ }), n;
74
+ }, je, Oe = function(e, i) {
75
+ var n = U.createElementNS ? U.createElementNS((i || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), e) : U.createElement(e);
76
+ return n && n.style ? n : U.createElement(e);
77
+ }, X = function u(e, i, n) {
78
+ var t = getComputedStyle(e);
79
+ return t[i] || t.getPropertyValue(i.replace(ye, "-$1").toLowerCase()) || t.getPropertyValue(i) || !n && u(e, re(i) || i, 1) || "";
80
+ }, ze = "O,Moz,ms,Ms,Webkit".split(","), re = function(e, i, n) {
81
+ var t = i || ee, s = t.style, f = 5;
82
+ if (e in s && !n)
83
+ return e;
84
+ for (e = e.charAt(0).toUpperCase() + e.substr(1); f-- && !(ze[f] + e in s); )
85
+ ;
86
+ return f < 0 ? null : (f === 3 ? "ms" : f >= 0 ? ze[f] : "") + e;
87
+ }, Pe = function() {
88
+ ui() && window.document && (Ye = window, U = Ye.document, te = U.documentElement, ee = Oe("div") || {
89
+ style: {}
90
+ }, Oe("div"), C = re(C), Y = C + "Origin", ee.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", je = !!re("perspective"), Se = he.core.reverting, be = 1);
91
+ }, Fe = function(e) {
92
+ var i = e.ownerSVGElement, n = Oe("svg", i && i.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), t = e.cloneNode(!0), s;
93
+ t.style.display = "block", n.appendChild(t), te.appendChild(n);
94
+ try {
95
+ s = t.getBBox();
96
+ } catch {
97
+ }
98
+ return n.removeChild(t), te.removeChild(n), s;
99
+ }, Ve = function(e, i) {
100
+ for (var n = i.length; n--; )
101
+ if (e.hasAttribute(i[n]))
102
+ return e.getAttribute(i[n]);
103
+ }, Ze = function(e) {
104
+ var i, n;
105
+ try {
106
+ i = e.getBBox();
107
+ } catch {
108
+ i = Fe(e), n = 1;
109
+ }
110
+ return i && (i.width || i.height) || n || (i = Fe(e)), i && !i.width && !i.x && !i.y ? {
111
+ x: +Ve(e, ["x", "cx", "x1"]) || 0,
112
+ y: +Ve(e, ["y", "cy", "y1"]) || 0,
113
+ width: 0,
114
+ height: 0
115
+ } : i;
116
+ }, He = function(e) {
117
+ return !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) && Ze(e));
118
+ }, L = function(e, i) {
119
+ if (i) {
120
+ var n = e.style, t;
121
+ i in D && i !== Y && (i = C), n.removeProperty ? (t = i.substr(0, 2), (t === "ms" || i.substr(0, 6) === "webkit") && (i = "-" + i), n.removeProperty(t === "--" ? i : i.replace(ye, "-$1").toLowerCase())) : n.removeAttribute(i);
122
+ }
123
+ }, I = function(e, i, n, t, s, f) {
124
+ var o = new q(e._pt, i, n, 0, 1, f ? Ie : Ue);
125
+ return e._pt = o, o.b = t, o.e = s, e._props.push(n), o;
126
+ }, Be = {
127
+ deg: 1,
128
+ rad: 1,
129
+ turn: 1
130
+ }, Ci = {
131
+ grid: 1,
132
+ flex: 1
133
+ }, j = function u(e, i, n, t) {
134
+ var s = parseFloat(n) || 0, f = (n + "").trim().substr((s + "").length) || "px", o = ee.style, c = hi.test(i), a = e.tagName.toLowerCase() === "svg", l = (a ? "client" : "offset") + (c ? "Width" : "Height"), h = 100, _ = t === "px", d = t === "%", m, r, g, O;
135
+ if (t === f || !s || Be[t] || Be[f])
136
+ return s;
137
+ if (f !== "px" && !_ && (s = u(e, i, n, "px")), O = e.getCTM && He(e), (d || f === "%") && (D[i] || ~i.indexOf("adius")))
138
+ return m = O ? e.getBBox()[c ? "width" : "height"] : e[l], M(d ? s / m * h : s / 100 * m);
139
+ if (o[c ? "width" : "height"] = h + (_ ? f : t), r = t !== "rem" && ~i.indexOf("adius") || t === "em" && e.appendChild && !a ? e : e.parentNode, O && (r = (e.ownerSVGElement || {}).parentNode), (!r || r === U || !r.appendChild) && (r = U.body), g = r._gsap, g && d && g.width && c && g.time === Ae.time && !g.uncache)
140
+ return M(s / g.width * h);
141
+ if (d && (i === "height" || i === "width")) {
142
+ var v = e.style[i];
143
+ e.style[i] = h + t, m = e[l], v ? e.style[i] = v : L(e, i);
144
+ } else
145
+ (d || f === "%") && !Ci[X(r, "display")] && (o.position = X(e, "position")), r === e && (o.position = "static"), r.appendChild(ee), m = ee[l], r.removeChild(ee), o.position = "absolute";
146
+ return c && d && (g = Ge(r), g.time = Ae.time, g.width = r[l]), M(_ ? m * s / h : m && s ? h / m * s : 0);
147
+ }, N = function(e, i, n, t) {
148
+ var s;
149
+ return be || Pe(), i in V && i !== "transform" && (i = V[i], ~i.indexOf(",") && (i = i.split(",")[0])), D[i] && i !== "transform" ? (s = ue(e, t), s = i !== "transformOrigin" ? s[i] : s.svg ? s.origin : pe(X(e, Y)) + " " + s.zOrigin + "px") : (s = e.style[i], (!s || s === "auto" || t || ~(s + "").indexOf("calc(")) && (s = xe[i] && xe[i](e, i, n) || X(e, i) || ri(e, i) || (i === "opacity" ? 1 : 0))), n && !~(s + "").trim().indexOf(" ") ? j(e, i, s, n) + n : s;
150
+ }, Ti = function(e, i, n, t) {
151
+ if (!n || n === "none") {
152
+ var s = re(i, e, 1), f = s && X(e, s, 1);
153
+ f && f !== n ? (i = s, n = f) : i === "borderColor" && (n = X(e, "borderTopColor"));
154
+ }
155
+ var o = new q(this._pt, e.style, i, 0, 1, fi), c = 0, a = 0, l, h, _, d, m, r, g, O, v, w, P, x;
156
+ if (o.b = n, o.e = t, n += "", t += "", t.substring(0, 6) === "var(--" && (t = X(e, t.substring(4, t.indexOf(")")))), t === "auto" && (r = e.style[i], e.style[i] = t, t = X(e, i) || t, r ? e.style[i] = r : L(e, i)), l = [n, t], li(l), n = l[0], t = l[1], _ = n.match(de) || [], x = t.match(de) || [], x.length) {
157
+ for (; h = de.exec(t); )
158
+ g = h[0], v = t.substring(c, h.index), m ? m = (m + 1) % 5 : (v.substr(-5) === "rgba(" || v.substr(-5) === "hsla(") && (m = 1), g !== (r = _[a++] || "") && (d = parseFloat(r) || 0, P = r.substr((d + "").length), g.charAt(1) === "=" && (g = me(d, g) + P), O = parseFloat(g), w = g.substr((O + "").length), c = de.lastIndex - w.length, w || (w = w || ie.units[i] || P, c === t.length && (t += w, o.e += w)), P !== w && (d = j(e, i, r, w) || 0), o._pt = {
159
+ _next: o._pt,
160
+ p: v || a === 1 ? v : ",",
161
+ //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.
162
+ s: d,
163
+ c: O - d,
164
+ m: m && m < 4 || i === "zIndex" ? Math.round : 0
165
+ });
166
+ o.c = c < t.length ? t.substring(c, t.length) : "";
167
+ } else
168
+ o.r = i === "display" && t === "none" ? Ie : Ue;
169
+ return ai.test(t) && (o.e = 0), this._pt = o, o;
170
+ }, Re = {
171
+ top: "0%",
172
+ bottom: "100%",
173
+ left: "0%",
174
+ right: "100%",
175
+ center: "50%"
176
+ }, Mi = function(e) {
177
+ var i = e.split(" "), n = i[0], t = i[1] || "50%";
178
+ return (n === "top" || n === "bottom" || t === "left" || t === "right") && (e = n, n = t, t = e), i[0] = Re[n] || n, i[1] = Re[t] || t, i.join(" ");
179
+ }, Ei = function(e, i) {
180
+ if (i.tween && i.tween._time === i.tween._dur) {
181
+ var n = i.t, t = n.style, s = i.u, f = n._gsap, o, c, a;
182
+ if (s === "all" || s === !0)
183
+ t.cssText = "", c = 1;
184
+ else
185
+ for (s = s.split(","), a = s.length; --a > -1; )
186
+ o = s[a], D[o] && (c = 1, o = o === "transformOrigin" ? Y : C), L(n, o);
187
+ c && (L(n, C), f && (f.svg && n.removeAttribute("transform"), t.scale = t.rotate = t.translate = "none", ue(n, 1), f.uncache = 1, qe(t)));
188
+ }
189
+ }, xe = {
190
+ clearProps: function(e, i, n, t, s) {
191
+ if (s.data !== "isFromStart") {
192
+ var f = e._pt = new q(e._pt, i, n, 0, 0, Ei);
193
+ return f.u = t, f.pr = -10, f.tween = s, e._props.push(n), 1;
194
+ }
195
+ }
196
+ /* className feature (about 0.4kb gzipped).
197
+ , className(plugin, target, property, endValue, tween) {
198
+ let _renderClassName = (ratio, data) => {
199
+ data.css.render(ratio, data.css);
200
+ if (!ratio || ratio === 1) {
201
+ let inline = data.rmv,
202
+ target = data.t,
203
+ p;
204
+ target.setAttribute("class", ratio ? data.e : data.b);
205
+ for (p in inline) {
206
+ _removeProperty(target, p);
207
+ }
208
+ }
209
+ },
210
+ _getAllStyles = (target) => {
211
+ let styles = {},
212
+ computed = getComputedStyle(target),
213
+ p;
214
+ for (p in computed) {
215
+ if (isNaN(p) && p !== "cssText" && p !== "length") {
216
+ styles[p] = computed[p];
217
+ }
218
+ }
219
+ _setDefaults(styles, _parseTransform(target, 1));
220
+ return styles;
221
+ },
222
+ startClassList = target.getAttribute("class"),
223
+ style = target.style,
224
+ cssText = style.cssText,
225
+ cache = target._gsap,
226
+ classPT = cache.classPT,
227
+ inlineToRemoveAtEnd = {},
228
+ 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) : "")},
229
+ changingVars = {},
230
+ startVars = _getAllStyles(target),
231
+ transformRelated = /(transform|perspective)/i,
232
+ endVars, p;
233
+ if (classPT) {
234
+ classPT.r(1, classPT.d);
235
+ _removeLinkedListItem(classPT.d.plugin, classPT, "_pt");
236
+ }
237
+ target.setAttribute("class", data.e);
238
+ endVars = _getAllStyles(target, true);
239
+ target.setAttribute("class", startClassList);
240
+ for (p in endVars) {
241
+ if (endVars[p] !== startVars[p] && !transformRelated.test(p)) {
242
+ changingVars[p] = endVars[p];
243
+ if (!style[p] && style[p] !== "0") {
244
+ inlineToRemoveAtEnd[p] = 1;
245
+ }
246
+ }
247
+ }
248
+ cache.classPT = plugin._pt = new PropTween(plugin._pt, target, "className", 0, 0, _renderClassName, data, 0, -11);
249
+ 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/.
250
+ 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).
251
+ }
252
+ _parseTransform(target, true); //to clear the caching of transforms
253
+ data.css = new gsap.plugins.css();
254
+ data.css.init(target, changingVars, tween);
255
+ plugin._props.push(...data.css._props);
256
+ return 1;
257
+ }
258
+ */
259
+ }, ce = [1, 0, 0, 1, 0, 0], $e = {}, Ke = function(e) {
260
+ return e === "matrix(1, 0, 0, 1, 0, 0)" || e === "none" || !e;
261
+ }, Ne = function(e) {
262
+ var i = X(e, C);
263
+ return Ke(i) ? ce : i.substr(7).match(ci).map(M);
264
+ }, Ce = function(e, i) {
265
+ var n = e._gsap || Ge(e), t = e.style, s = Ne(e), f, o, c, a;
266
+ return n.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 !== te && !n.svg && (c = t.display, t.display = "block", f = e.parentNode, (!f || !e.offsetParent && !e.getBoundingClientRect().width) && (a = 1, o = e.nextElementSibling, te.appendChild(e)), s = Ne(e), c ? t.display = c : L(e, "display"), a && (o ? f.insertBefore(e, o) : f ? f.appendChild(e) : te.removeChild(e))), i && s.length > 6 ? [s[0], s[1], s[4], s[5], s[12], s[13]] : s);
267
+ }, we = function(e, i, n, t, s, f) {
268
+ var o = e._gsap, c = s || Ce(e, !0), a = o.xOrigin || 0, l = o.yOrigin || 0, h = o.xOffset || 0, _ = o.yOffset || 0, d = c[0], m = c[1], r = c[2], g = c[3], O = c[4], v = c[5], w = i.split(" "), P = parseFloat(w[0]) || 0, x = parseFloat(w[1]) || 0, y, b, S, p;
269
+ n ? c !== ce && (b = d * g - m * r) && (S = P * (g / b) + x * (-r / b) + (r * v - g * O) / b, p = P * (-m / b) + x * (d / b) - (d * v - m * O) / b, P = S, x = p) : (y = Ze(e), P = y.x + (~w[0].indexOf("%") ? P / 100 * y.width : P), x = y.y + (~(w[1] || w[0]).indexOf("%") ? x / 100 * y.height : x)), t || t !== !1 && o.smooth ? (O = P - a, v = x - l, o.xOffset = h + (O * d + v * r) - O, o.yOffset = _ + (O * m + v * g) - v) : o.xOffset = o.yOffset = 0, o.xOrigin = P, o.yOrigin = x, o.smooth = !!t, o.origin = i, o.originIsAbsolute = !!n, e.style[Y] = "0px 0px", f && (I(f, o, "xOrigin", a, P), I(f, o, "yOrigin", l, x), I(f, o, "xOffset", h, o.xOffset), I(f, o, "yOffset", _, o.yOffset)), e.setAttribute("data-svg-origin", P + " " + x);
270
+ }, ue = function(e, i) {
271
+ var n = e._gsap || new oi(e);
272
+ if ("x" in n && !i && !n.uncache)
273
+ return n;
274
+ var t = e.style, s = n.scaleX < 0, f = "px", o = "deg", c = getComputedStyle(e), a = X(e, Y) || "0", l, h, _, d, m, r, g, O, v, w, P, x, y, b, S, p, T, E, A, z, Z, W, F, k, B, _e, oe, fe, H, Te, R, $;
275
+ return l = h = _ = r = g = O = v = w = P = 0, d = m = 1, n.svg = !!(e.getCTM && He(e)), c.translate && ((c.translate !== "none" || c.scale !== "none" || c.rotate !== "none") && (t[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] : "")), t.scale = t.rotate = t.translate = "none"), b = Ce(e, n.svg), n.svg && (n.uncache ? (B = e.getBBox(), a = n.xOrigin - B.x + "px " + (n.yOrigin - B.y) + "px", k = "") : k = !i && e.getAttribute("data-svg-origin"), we(e, k || a, !!k || n.originIsAbsolute, n.smooth !== !1, b)), x = n.xOrigin || 0, y = n.yOrigin || 0, b !== ce && (E = b[0], A = b[1], z = b[2], Z = b[3], l = W = b[4], h = F = b[5], b.length === 6 ? (d = Math.sqrt(E * E + A * A), m = Math.sqrt(Z * Z + z * z), r = E || A ? ne(A, E) * Q : 0, v = z || Z ? ne(z, Z) * Q + r : 0, v && (m *= Math.abs(Math.cos(v * se))), n.svg && (l -= x - (x * E + y * z), h -= y - (x * A + y * Z))) : ($ = b[6], Te = b[7], oe = b[8], fe = b[9], H = b[10], R = b[11], l = b[12], h = b[13], _ = b[14], S = ne($, H), g = S * Q, S && (p = Math.cos(-S), T = Math.sin(-S), k = W * p + oe * T, B = F * p + fe * T, _e = $ * p + H * T, oe = W * -T + oe * p, fe = F * -T + fe * p, H = $ * -T + H * p, R = Te * -T + R * p, W = k, F = B, $ = _e), S = ne(-z, H), O = S * Q, S && (p = Math.cos(-S), T = Math.sin(-S), k = E * p - oe * T, B = A * p - fe * T, _e = z * p - H * T, R = Z * T + R * p, E = k, A = B, z = _e), S = ne(A, E), r = S * Q, S && (p = Math.cos(S), T = Math.sin(S), k = E * p + A * T, B = W * p + F * T, A = A * p - E * T, F = F * p - W * T, E = k, W = B), g && Math.abs(g) + Math.abs(r) > 359.9 && (g = r = 0, O = 180 - O), d = M(Math.sqrt(E * E + A * A + z * z)), m = M(Math.sqrt(F * F + $ * $)), S = ne(W, F), v = Math.abs(S) > 2e-4 ? S * Q : 0, P = R ? 1 / (R < 0 ? -R : R) : 0), n.svg && (k = e.getAttribute("transform"), n.forceCSS = e.setAttribute("transform", "") || !Ke(X(e, C)), k && e.setAttribute("transform", k))), Math.abs(v) > 90 && Math.abs(v) < 270 && (s ? (d *= -1, v += r <= 0 ? 180 : -180, r += r <= 0 ? 180 : -180) : (m *= -1, v += v <= 0 ? 180 : -180)), i = i || n.uncache, n.x = l - ((n.xPercent = l && (!i && n.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-l) ? -50 : 0))) ? e.offsetWidth * n.xPercent / 100 : 0) + f, n.y = h - ((n.yPercent = h && (!i && n.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-h) ? -50 : 0))) ? e.offsetHeight * n.yPercent / 100 : 0) + f, n.z = _ + f, n.scaleX = M(d), n.scaleY = M(m), n.rotation = M(r) + o, n.rotationX = M(g) + o, n.rotationY = M(O) + o, n.skewX = v + o, n.skewY = w + o, n.transformPerspective = P + f, (n.zOrigin = parseFloat(a.split(" ")[2]) || !i && n.zOrigin || 0) && (t[Y] = pe(a)), n.xOffset = n.yOffset = 0, n.force3D = ie.force3D, n.renderTransform = n.svg ? Yi : je ? Je : Ai, n.uncache = 0, n;
276
+ }, pe = function(e) {
277
+ return (e = e.split(" "))[0] + " " + e[1];
278
+ }, ve = function(e, i, n) {
279
+ var t = G(i);
280
+ return M(parseFloat(i) + parseFloat(j(e, "x", n + "px", t))) + t;
281
+ }, Ai = function(e, i) {
282
+ i.z = "0px", i.rotationY = i.rotationX = "0deg", i.force3D = 0, Je(e, i);
283
+ }, K = "0deg", le = "0px", J = ") ", Je = function(e, i) {
284
+ var n = i || this, t = n.xPercent, s = n.yPercent, f = n.x, o = n.y, c = n.z, a = n.rotation, l = n.rotationY, h = n.rotationX, _ = n.skewX, d = n.skewY, m = n.scaleX, r = n.scaleY, g = n.transformPerspective, O = n.force3D, v = n.target, w = n.zOrigin, P = "", x = O === "auto" && e && e !== 1 || O === !0;
285
+ if (w && (h !== K || l !== K)) {
286
+ var y = parseFloat(l) * se, b = Math.sin(y), S = Math.cos(y), p;
287
+ y = parseFloat(h) * se, p = Math.cos(y), f = ve(v, f, b * p * -w), o = ve(v, o, -Math.sin(y) * -w), c = ve(v, c, S * p * -w + w);
288
+ }
289
+ g !== le && (P += "perspective(" + g + J), (t || s) && (P += "translate(" + t + "%, " + s + "%) "), (x || f !== le || o !== le || c !== le) && (P += c !== le || x ? "translate3d(" + f + ", " + o + ", " + c + ") " : "translate(" + f + ", " + o + J), a !== K && (P += "rotate(" + a + J), l !== K && (P += "rotateY(" + l + J), h !== K && (P += "rotateX(" + h + J), (_ !== K || d !== K) && (P += "skew(" + _ + ", " + d + J), (m !== 1 || r !== 1) && (P += "scale(" + m + ", " + r + J), v.style[C] = P || "translate(0, 0)";
290
+ }, Yi = function(e, i) {
291
+ var n = i || this, t = n.xPercent, s = n.yPercent, f = n.x, o = n.y, c = n.rotation, a = n.skewX, l = n.skewY, h = n.scaleX, _ = n.scaleY, d = n.target, m = n.xOrigin, r = n.yOrigin, g = n.xOffset, O = n.yOffset, v = n.forceCSS, w = parseFloat(f), P = parseFloat(o), x, y, b, S, p;
292
+ c = parseFloat(c), a = parseFloat(a), l = parseFloat(l), l && (l = parseFloat(l), a += l, c += l), c || a ? (c *= se, a *= se, x = Math.cos(c) * h, y = Math.sin(c) * h, b = Math.sin(c - a) * -_, S = Math.cos(c - a) * _, a && (l *= se, p = Math.tan(a - l), p = Math.sqrt(1 + p * p), b *= p, S *= p, l && (p = Math.tan(l), p = Math.sqrt(1 + p * p), x *= p, y *= p)), x = M(x), y = M(y), b = M(b), S = M(S)) : (x = h, S = _, y = b = 0), (w && !~(f + "").indexOf("px") || P && !~(o + "").indexOf("px")) && (w = j(d, "x", f, "px"), P = j(d, "y", o, "px")), (m || r || g || O) && (w = M(w + m - (m * x + r * b) + g), P = M(P + r - (m * y + r * S) + O)), (t || s) && (p = d.getBBox(), w = M(w + t / 100 * p.width), P = M(P + s / 100 * p.height)), p = "matrix(" + x + "," + y + "," + b + "," + S + "," + w + "," + P + ")", d.setAttribute("transform", p), v && (d.style[C] = p);
293
+ }, ki = function(e, i, n, t, s) {
294
+ var f = 360, o = We(s), c = parseFloat(s) * (o && ~s.indexOf("rad") ? Q : 1), a = c - t, l = t + a + "deg", h, _;
295
+ return o && (h = s.split("_")[1], h === "short" && (a %= f, a !== a % (f / 2) && (a += a < 0 ? f : -f)), h === "cw" && a < 0 ? a = (a + f * Xe) % f - ~~(a / f) * f : h === "ccw" && a > 0 && (a = (a - f * Xe) % f - ~~(a / f) * f)), e._pt = _ = new q(e._pt, i, n, t, a, di), _.e = l, _.u = "deg", e._props.push(n), _;
296
+ }, De = function(e, i) {
297
+ for (var n in i)
298
+ e[n] = i[n];
299
+ return e;
300
+ }, Xi = function(e, i, n) {
301
+ var t = De({}, n._gsap), s = "perspective,force3D,transformOrigin,svgOrigin", f = n.style, o, c, a, l, h, _, d, m;
302
+ t.svg ? (a = n.getAttribute("transform"), n.setAttribute("transform", ""), f[C] = i, o = ue(n, 1), L(n, C), n.setAttribute("transform", a)) : (a = getComputedStyle(n)[C], f[C] = i, o = ue(n, 1), f[C] = a);
303
+ for (c in D)
304
+ a = t[c], l = o[c], a !== l && s.indexOf(c) < 0 && (d = G(a), m = G(l), h = d !== m ? j(n, c, a, m) : parseFloat(a), _ = parseFloat(l), e._pt = new q(e._pt, o, c, h, _ - h, ge), e._pt.u = m || 0, e._props.push(c));
305
+ De(o, t);
306
+ };
307
+ ae("padding,margin,Width,Radius", function(u, e) {
308
+ var i = "Top", n = "Right", t = "Bottom", s = "Left", f = (e < 3 ? [i, n, t, s] : [i + s, i + n, t + n, t + s]).map(function(o) {
309
+ return e < 2 ? u + o : "border" + o + u;
310
+ });
311
+ xe[e > 1 ? "border" + u : u] = function(o, c, a, l, h) {
312
+ var _, d;
313
+ if (arguments.length < 4)
314
+ return _ = f.map(function(m) {
315
+ return N(o, m, a);
316
+ }), d = _.join(" "), d.split(_[0]).length === 5 ? _[0] : d;
317
+ _ = (l + "").split(" "), d = {}, f.forEach(function(m, r) {
318
+ return d[m] = _[r] = _[r] || _[(r - 1) / 2 | 0];
319
+ }), o.init(c, d, h);
320
+ };
321
+ });
322
+ var zi = {
323
+ name: "css",
324
+ register: Pe,
325
+ targetTest: function(e) {
326
+ return e.style && e.nodeType;
327
+ },
328
+ init: function(e, i, n, t, s) {
329
+ var f = this._props, o = e.style, c = n.vars.startAt, a, l, h, _, d, m, r, g, O, v, w, P, x, y, b, S, p;
330
+ be || Pe(), this.styles = this.styles || Le(e), S = this.styles.props, this.tween = n;
331
+ for (r in i)
332
+ if (r !== "autoRound" && (l = i[r], !(ii[r] && ni(r, i, n, t, e, s)))) {
333
+ if (d = typeof l, m = xe[r], d === "function" && (l = l.call(n, t, e, s), d = typeof l), d === "string" && ~l.indexOf("random(") && (l = Me(l)), m)
334
+ m(this, e, r, l, n) && (b = 1);
335
+ else if (r.substr(0, 2) === "--")
336
+ a = (getComputedStyle(e).getPropertyValue(r) + "").trim(), l += "", Ee.lastIndex = 0, Ee.test(a) || (g = G(a), O = G(l), O ? g !== O && (a = j(e, r, a, O) + O) : g && (l += g)), this.add(o, "setProperty", a, l, t, s, 0, 0, r), f.push(r), S.push(r, 0, o[r]);
337
+ else if (d !== "undefined") {
338
+ if (c && r in c ? (a = typeof c[r] == "function" ? c[r].call(n, t, e, s) : c[r], We(a) && ~a.indexOf("random(") && (a = Me(a)), G(a + "") || a === "auto" || (a += ie.units[r] || G(N(e, r)) || ""), (a + "").charAt(1) === "=" && (a = N(e, r))) : a = N(e, r), _ = parseFloat(a), v = d === "string" && l.charAt(1) === "=" && l.substr(0, 2), v && (l = l.substr(2)), h = parseFloat(l), 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]))), w = r in D, w) {
339
+ if (this.styles.save(r), p = l, d === "string" && l.substring(0, 6) === "var(--") {
340
+ if (l = X(e, l.substring(4, l.indexOf(")"))), l.substring(0, 5) === "calc(") {
341
+ var T = e.style.perspective;
342
+ e.style.perspective = l, l = X(e, "perspective"), T ? e.style.perspective = T : L(e, "perspective");
343
+ }
344
+ h = parseFloat(l);
345
+ }
346
+ if (P || (x = e._gsap, x.renderTransform && !i.parseTransform || ue(e, i.parseTransform), y = i.smoothOrigin !== !1 && x.smooth, P = this._pt = new q(this._pt, o, C, 0, 1, x.renderTransform, x, 0, -1), P.dep = 1), r === "scale")
347
+ this._pt = new q(this._pt, x, "scaleY", x.scaleY, (v ? me(x.scaleY, v + h) : h) - x.scaleY || 0, ge), this._pt.u = 0, f.push("scaleY", r), r += "X";
348
+ else if (r === "transformOrigin") {
349
+ S.push(Y, 0, o[Y]), l = Mi(l), x.svg ? we(e, l, 0, y, 0, this) : (O = parseFloat(l.split(" ")[2]) || 0, O !== x.zOrigin && I(this, x, "zOrigin", x.zOrigin, O), I(this, o, r, pe(a), pe(l)));
350
+ continue;
351
+ } else if (r === "svgOrigin") {
352
+ we(e, l, 1, y, 0, this);
353
+ continue;
354
+ } else if (r in $e) {
355
+ ki(this, x, r, _, v ? me(_, v + l) : l);
356
+ continue;
357
+ } else if (r === "smoothOrigin") {
358
+ I(this, x, "smooth", x.smooth, l);
359
+ continue;
360
+ } else if (r === "force3D") {
361
+ x[r] = l;
362
+ continue;
363
+ } else if (r === "transform") {
364
+ Xi(this, l, e);
365
+ continue;
366
+ }
367
+ } else r in o || (r = re(r) || r);
368
+ if (w || (h || h === 0) && (_ || _ === 0) && !_i.test(l) && r in o)
369
+ g = (a + "").substr((_ + "").length), h || (h = 0), O = G(l) || (r in ie.units ? ie.units[r] : g), g !== O && (_ = j(e, r, a, O)), this._pt = new q(this._pt, w ? x : o, r, _, (v ? me(_, v + h) : h) - _, !w && (O === "px" || r === "zIndex") && i.autoRound !== !1 ? pi : ge), this._pt.u = O || 0, w && p !== l ? (this._pt.b = a, this._pt.e = p, this._pt.r = xi) : g !== O && O !== "%" && (this._pt.b = a, this._pt.r = mi);
370
+ else if (r in o)
371
+ Ti.call(this, e, r, a, v ? v + l : l);
372
+ else if (r in e)
373
+ this.add(e, r, a || e[r], v ? v + l : l, t, s);
374
+ else if (r !== "parseTransform") {
375
+ ti(r, l);
376
+ continue;
377
+ }
378
+ w || (r in o ? S.push(r, 0, o[r]) : typeof e[r] == "function" ? S.push(r, 2, e[r]()) : S.push(r, 1, a || e[r])), f.push(r);
379
+ }
380
+ }
381
+ b && si(this);
382
+ },
383
+ render: function(e, i) {
384
+ if (i.tween._time || !Se())
385
+ for (var n = i._pt; n; )
386
+ n.r(e, n.d), n = n._next;
387
+ else
388
+ i.styles.revert();
389
+ },
390
+ get: N,
391
+ aliases: V,
392
+ getSetter: function(e, i, n) {
393
+ var t = V[i];
394
+ return t && t.indexOf(",") < 0 && (i = t), i in D && i !== Y && (e._gsap.x || N(e, "x")) ? n && ke === n ? i === "scale" ? Pi : Oi : (ke = n || {}) && (i === "scale" ? wi : bi) : e.style && !Qe(e.style[i]) ? vi : ~i.indexOf("-") ? gi : ei(e, i);
395
+ },
396
+ core: {
397
+ _removeProperty: L,
398
+ _getMatrix: Ce
399
+ }
400
+ };
401
+ he.utils.checkPrefix = re;
402
+ he.core.getStyleSaver = Le;
403
+ (function(u, e, i, n) {
404
+ var t = ae(u + "," + e + "," + i, function(s) {
405
+ D[s] = 1;
406
+ });
407
+ ae(e, function(s) {
408
+ ie.units[s] = "deg", $e[s] = 1;
409
+ }), V[t[13]] = u + "," + e, ae(n, function(s) {
410
+ var f = s.split(":");
411
+ V[f[1]] = t[f[0]];
412
+ });
413
+ })("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");
414
+ ae("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function(u) {
415
+ ie.units[u] = "px";
416
+ });
417
+ he.registerPlugin(zi);
418
+ export {
419
+ zi as CSSPlugin,
420
+ Oe as _createElement,
421
+ Ze as _getBBox,
422
+ re as checkPrefix,
423
+ zi as default
424
+ };