react-voodoo 2.5.8 → 2.5.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,1997 +1,3 @@
1
1
  /*! For license information please see react-voodoo.js.LICENSE.txt */
2
- (() => {
3
- var e = {
4
- 450 : e => {
5
- e.exports = {
6
- walknSetExport: function ( e, t, n ) {
7
- var r, o, a = t.split("/"), i = e;
8
- for ( r = 0; r < a.length - 1; ) i = i[a[r]] = i[a[r]] || {}, r++;
9
- o = 1 === Object.keys(n).length && n.default || n, i[a[r]]
10
- ? (i[a[r]].__esModule || Object.assign(o, i[a[r]]), i[a[r]] = o)
11
- : i[a[r]] = o
12
- }
13
- }
14
- }, 227: ( e, t, n ) => {
15
- "use strict";
16
- n.d(t, { Yj: () => a, Xg: () => i, $_: () => s, kE: () => l, fi: () => u, Rx: () => c, bC: () => p });
17
- var r = {}, o = n(450).walknSetExport;
18
- o(r, "any", n(582)), o(r, "bool", n(584)), o(r, "color", n(192)), o(r, "multi", n(822)), o(r, "ratio", n(425)), o(r, "length", n(231)), o(r, "number", n(277)), o(r, "shadow", n(940));
19
- var a = r.any, i = r.bool, s = r.color, l = r.length, u = r.multi, c = r.number, p = r.ratio
20
- }, 259: ( e, t, n ) => {
21
- "use strict";
22
- n.d(t, { NQ: () => r, Dl: () => o, _9: () => a, HM: () => i, dn: () => s, _j: () => l, JO: () => u });
23
- var r = {
24
- margin: {
25
- properties: ["marginTop", "marginRight", "marginBottom", "marginLeft"],
26
- multiple: !0
27
- },
28
- marginBottom: { types: ["length"] },
29
- marginLeft: { types: ["length"] },
30
- marginRight: { types: ["length"] },
31
- marginTop: { types: ["length"] },
32
- padding: {
33
- properties: ["paddingTop", "paddingRight", "paddingBottom", "paddingLeft"],
34
- multiple: !0
35
- },
36
- paddingBottom: { types: ["length"] },
37
- paddingLeft: { types: ["length"] },
38
- paddingRight: { types: ["length"] },
39
- paddingTop: { types: ["length"] },
40
- bottom: { types: ["length-percentage-calc"] },
41
- left: { types: ["length-percentage-calc"] },
42
- right: { types: ["length-percentage-calc"] },
43
- top: { types: ["length-percentage-calc"] },
44
- zIndex: { types: ["integer"] },
45
- width: { types: ["length-percentage-calc"] },
46
- maxWidth: { types: ["length-percentage-calc"] },
47
- minWidth: { types: ["length-percentage-calc"] },
48
- height: { types: ["length-percentage-calc"] },
49
- maxHeight: { types: ["length-percentage-calc"] },
50
- minHeight: { types: ["length-percentage-calc"] },
51
- lineHeight: { types: ["length"] },
52
- verticalAlign: { types: ["length"] },
53
- visibility: { types: ["visibility"] },
54
- borderSpacing: { types: ["length"], multiple: !0 },
55
- color: { types: ["color"] },
56
- opacity: { types: ["number"] },
57
- backgroundColor: { types: ["color"] },
58
- backgroundPosition: { types: ["length-percentage-calc"], multiple: !0, repeatable: !0 },
59
- backgroundSize: { types: ["length-percentage-calc"], multiple: !0, repeatable: !0 },
60
- border: { properties: ["borderStyle", "borderWidth", "borderColor"] },
61
- borderBottom: { properties: ["borderBottomStyle", "borderBottomWidth", "borderBottomColor"] },
62
- borderLeft: { properties: ["borderLeftStyle", "borderLeftWidth", "borderLeftColor"] },
63
- borderRight: { properties: ["borderRightStyle", "borderRightWidth", "borderRightColor"] },
64
- borderTop: { properties: ["borderTopStyle", "borderTopWidth", "borderTopColor"] },
65
- borderColor: { properties: ["borderTopColor", "borderRightColor", "borderBottomColor", "borderLeftColor"] },
66
- borderWidth: { properties: ["borderTopWidth", "borderRightWidth", "borderBottomWidth", "borderLeftWidth"] },
67
- borderBottomColor: { types: ["color"] },
68
- borderLeftColor: { types: ["color"] },
69
- borderRightColor: { types: ["color"] },
70
- borderTopColor: { types: ["color"] },
71
- borderBottomWidth: { types: ["length"] },
72
- borderLeftWidth: { types: ["length"] },
73
- borderRightWidth: { types: ["length"] },
74
- borderTopWidth: { types: ["length"] },
75
- borderRadius: { properties: ["borderTopLeftRadius", "borderTopRightRadius", "borderBottomRightRadius", "borderBottomLeftRadius"] },
76
- borderTopLeftRadius: { types: ["length-percentage-calc"], multiple: !0 },
77
- borderTopRightRadius: { types: ["length-percentage-calc"], multiple: !0 },
78
- borderBottomRightRadius: { types: ["length-percentage-calc"], multiple: !0 },
79
- borderBottomLeftRadius: { types: ["length-percentage-calc"], multiple: !0 },
80
- boxShadow: { types: ["shadow-list"] },
81
- caretColor: { types: ["color"] },
82
- outline: { properties: ["outlineColor", "outlineWidth"] },
83
- outlineColor: { types: ["color"] },
84
- outlineWidth: { types: ["length"] },
85
- outlineOffset: { types: ["length"] },
86
- flex: { properties: ["flexGrow", "flexShrink", "flexBasis"] },
87
- flexGrow: { types: ["number"] },
88
- flexShrink: { types: ["number"] },
89
- flexBasis: { types: ["length-percentage-calc"] },
90
- order: { types: ["integer"] },
91
- font: { properties: ["fontWeight", "fontStretch", "fontSize", "lineHeight"] },
92
- fontWeight: { types: ["font-weight"] },
93
- fontStretch: { types: ["font-stretch"] },
94
- fontSize: { types: ["length"] },
95
- fontSizeAdjust: { types: ["number"] },
96
- gridTemplateColumns: { types: ["length-percentage-calc"], multiple: !0 },
97
- gridTemplateRows: { types: ["length-percentage-calc"], multiple: !0 },
98
- gridTemplate: { properties: ["gridTemplateRows", "gridTemplateColumns"] },
99
- grid: { properties: ["gridTemplateRows", "gridTemplateColumns"] },
100
- gridRowGap: { types: ["length-percentage-calc"] },
101
- gridColumnGap: { types: ["length-percentage-calc"] },
102
- gridGap: { properties: ["gridRowGap", "gridColumnGap"] },
103
- clip: { types: ["rectangle"] },
104
- clipPath: { types: ["basic-shape"] },
105
- mask: { properties: ["maskPosition", "maskSize"] },
106
- maskPosition: { types: ["length-percentage-calc"], multiple: !0, repeatable: !0 },
107
- maskSize: { types: ["length-percentage-calc"], multiple: !0, repeatable: !0 },
108
- shapeOutside: { types: ["basic-shape"] },
109
- shapeMargin: { types: ["length-percentage-calc"] },
110
- shapeImageThreshold: { types: ["number"] },
111
- scrollPadding: { properties: ["scrollPaddingTop", "scrollPaddingRight", "scrollPaddingBottom", "scrollPaddingLeft"] },
112
- scrollPaddingTop: { types: ["length-percentage-calc"] },
113
- scrollPaddingRight: { types: ["length-percentage-calc"] },
114
- scrollPaddingBottom: { types: ["length-percentage-calc"] },
115
- scrollPaddingLeft: { types: ["length-percentage-calc"] },
116
- scrollPaddingBlock: { properties: ["scrollPaddingBlockStart", "scrollPaddingBlockEnd"] },
117
- scrollPaddingBlockStart: { types: ["length-percentage-calc"] },
118
- scrollPaddingBlockEnd: { types: ["length-percentage-calc"] },
119
- scrollPaddingInline: { properties: ["scrollPaddingInlineStart", "scrollPaddingInlineEnd"] },
120
- scrollPaddingInlineStart: { types: ["length-percentage-calc"] },
121
- scrollPaddingInlineEnd: { types: ["length-percentage-calc"] },
122
- scrollSnapMargin: { properties: ["scrollSnapMarginTop", "scrollSnapMarginRight", "scrollSnapMarginBottom", "scrollSnapMarginLeft"] },
123
- scrollSnapMarginTop: { types: ["length"] },
124
- scrollSnapMarginRight: { types: ["length"] },
125
- scrollSnapMarginBottom: { types: ["length"] },
126
- scrollSnapMarginLeft: { types: ["length"] },
127
- scrollSnapMarginBlock: { properties: ["scrollSnapMarginBlockStart", "scrollSnapMarginBlockEnd"] },
128
- scrollSnapMarginBlockStart: { types: ["length"] },
129
- scrollSnapMarginBlockEnd: { types: ["length"] },
130
- scrollSnapMarginInline: { properties: ["scrollSnapMarginInlineStart", "scrollSnapMarginInlineEnd"] },
131
- scrollSnapMarginInlineStart: { types: ["length"] },
132
- scrollSnapMarginInlineEnd: { types: ["length"] },
133
- textDecoration: { properties: ["textDecorationColor"] },
134
- textDecorationColor: { types: ["color"] },
135
- textEmphasis: { properties: ["textEmphasisColor"] },
136
- textEmphasisColor: { types: ["color"] },
137
- textShadow: { types: ["shadow-list"] },
138
- columns: { properties: ["columnWidth", "columnCount"] },
139
- columnWidth: { types: ["length"] },
140
- columnCount: { types: ["integer"] },
141
- columnGap: { types: ["length-percentage-calc"] },
142
- columnRule: { properties: ["columnRuleColor", "columnRuleWidth"] },
143
- columnRuleColor: { types: ["color"] },
144
- columnRuleWidth: { types: ["length"] },
145
- letterSpacing: { types: ["length"] },
146
- tabSize: { types: ["length"] },
147
- textIndent: { types: ["length-percentage-calc"] },
148
- wordSpacing: { types: ["length-percentage-calc"] },
149
- transform: { types: ["transform"] },
150
- transformOrigin: { types: ["length-percentage-calc"], multiple: !0 },
151
- perspective: { types: ["length"] },
152
- perspectiveOrigin: { types: ["length-percentage-calc"], multiple: !0 }
153
- },
154
- o = ["", "deg", "box", "bz", "bh", "bw", "deg", "em", "ex", "%", "px", "cm", "mm", "in", "pt", "pc", "ch", "rem", "vh", "vw", "vmin", "vmax"],
155
- a = new RegExp("([+-]?(?:[0-9]*[.])?[0-9]+)\\s*(" + ["\\w+", "deg", "bz", "bh", "bw", "cap", "ch", "deg", "em", "ic", "ex", "%", "px", "cm", "mm", "in", "pt", "pc", "ch", "rem", "vh", "vw", "vmin", "vmax"].join("|") + ")"),
156
- i = function ( e ) {
157
- return void 0 === e && (e = 0), Number(e.toFixed(3))
158
- };
159
-
160
- function s( e, t, n ) {
161
- void 0 === n && (n = {});
162
- var o = r[e], a = o && o.properties, i = t.split(" ");
163
- return o.multiple ? a && a.forEach((function ( e, t ) {
164
- n[e] = i[t % i.length]
165
- })) : a && a.forEach((function ( e, t ) {
166
- i[t] && (n[e] = i[t])
167
- })), n
168
- }
169
-
170
- function l( e ) {
171
- var t = r[e], n = t && t.properties;
172
- return n && !!n.length
173
- }
174
-
175
- function u( e, t ) {
176
- return !!r[e]
177
- }
178
- }, 38 : ( e, t, n ) => {
179
- "use strict";
180
- n.r(t), n.d(t, { demux: () => r.demux, mux: () => r.mux, release: () => r.release });
181
- var r = n(192)
182
- }, 39 : ( e, t, n ) => {
183
- "use strict";
184
- n.r(t), n.d(t, {
185
- demux : () => r.demux,
186
- demuxOne: () => r.demuxOne,
187
- mux : () => r.mux,
188
- muxOne : () => r.muxOne,
189
- release : () => r.release
190
- });
191
- var r = n(940)
192
- }, 111: ( e, t, n ) => {
193
- "use strict";
194
- n.r(t), n.d(t, { release: () => c, demuxOne: () => p, demux: () => f, muxOne: () => d, mux: () => h });
195
- var r = n(213),
196
- o = n.n(r),
197
- a = n(73),
198
- i = n.n(a),
199
- s = n(259),
200
- l = {
201
- blur: "px",
202
- brightness: "%",
203
- contrast: "%",
204
- dropShadow: !0,
205
- grayscale: "%",
206
- hueRotate: "deg",
207
- invert: "%",
208
- opacity: "%",
209
- saturate: "%",
210
- sepia: "%"
211
- },
212
- u = {};
213
-
214
- function c( e, t, n, r, o, a ) {
215
- var i, s = e.split("_");
216
- if ( 4 === s.length ) {
217
- if ( --r[s[0]][s[1]][s[2]] || a || delete r[s[0]][s[1]][s[2]], !a ) for ( ; r[s[0]].length && !r[s[0]][r[s[0]].length - 1]; ) r[s[0]].pop();
218
- if ( --r[i = s[0] + "_" + s[1] + "_" + s[2]][s[3]] || a || (delete r[i][s[3]], delete t[e]), !a ) for ( ; r[i].length && !r[i][r[i].length - 1]; ) r[i].pop();
219
- 0 !== r[i].length || a || delete r[i], 0 !== r[s[0]].length || a || (delete r[s[0]], delete o[s[0]], delete n[s[0]])
220
- }
221
- else console.log("wtf", s)
222
- }
223
-
224
- function p( e, t, n, r, o, a ) {
225
- var i = n, u = s.Dl[e] || l[r];
226
- return "bw" === u && (i *= a.x, u = "px"), "wh" === u && (i *= a.y, u = "px"), "bz" === u && (i *= a.z, u = "px"), "deg" === u && (i %= 360), u
227
- ? (0, s.HM)(i) + u
228
- : (0, s.HM)(i)
229
- }
230
-
231
- function f( e, t, n, r, o ) {
232
- for ( var a, i, s, l, u, c, f = "", d = 0, h = 0; d < r[e].length; d++ ) for ( i in a = r[e][d] ) if ( a.hasOwnProperty(i) ) {
233
- for ( l = e + "_" + d + "_" + i, c = "", h = 0, s = 0; s < r[l].length; s++ ) r[l][s] && (u = p(s, 0, t[l + "_" + s], i, 0, o), h && "-" === u[0]
234
- ? u = " - " + u.substr(1)
235
- : h && (u = " + " + u), c += u, h++);
236
- h > 1 && (c = "calc(" + c + ")"), h > 0 && (f += i + "(" + (c || "0") + ") ")
237
- }
238
- n.filter = f
239
- }
240
-
241
- function d( e, t, n, r, o, a, c, p ) {
242
- var d = !!i().string(n) && n.match(s._9),
243
- h = d && d[2] || l[t],
244
- g = s.Dl.indexOf(h),
245
- m = -1 !== g && e + "_" + g || e;
246
- return a[m] = u[t] || 0, o[e][g] = o[e][g] || 0, p && p[g]
247
- ? r[m] += d
248
- ? parseFloat(d[1])
249
- : parseFloat(n)
250
- : (!c && o[e][g]++, r[m] = d
251
- ? parseFloat(d[1])
252
- : parseFloat(n), p && (p[g] = !0)), f
253
- }
254
-
255
- var h = function ( e, t, n, r, a, s, l ) {
256
- r[e] = r[e] || [], i().array(t) || (t = [t]);
257
- for ( var u, c, p, h, g, m, x, v = 0; v < t.length; v++ ) {
258
- for ( c in u = t[v], p = l
259
- ? {}
260
- : o()({}, r[e][v] || {}), u ) if ( u.hasOwnProperty(c) ) if ( h = u[c], x = {}, g = e + "_" + v + "_" + c, p[c] = p[c] || r[e][v] && r[e][v][c] || 0, !s && p[c]++, r[g] = r[g] || [], i().array(h) ) for ( m = 0; m < h.length; m++ ) d(g, c, h[m] || 0, n, r, a, s, x); else d(g, c, h || 0, n, r, a, s);
261
- r[e][v] = l ? o()({}, p, r[e][v] || {}, p) : p
262
- }
263
- return f
264
- }
265
- }, 178: ( e, t, n ) => {
266
- "use strict";
267
- n.r(t), n.d(t, {
268
- demux : () => r.demux,
269
- demuxOne: () => r.demuxOne,
270
- mux : () => r.mux,
271
- muxOne : () => r.muxOne,
272
- release : () => r.release
273
- });
274
- var r = n(940)
275
- }, 374: ( e, t, n ) => {
276
- "use strict";
277
- n.r(t), n.d(t, { release: () => p, demuxOne: () => f, demux: () => d, muxOne: () => h, mux: () => g });
278
- var r = n(213),
279
- o = n.n(r),
280
- a = n(73),
281
- i = n.n(a),
282
- s = n(259),
283
- l = {
284
- translateX: "px",
285
- translateY: "px",
286
- translateZ: "px",
287
- scale: "",
288
- scaleZ: "",
289
- scaleX: "",
290
- scaleY: "",
291
- rotate: "deg",
292
- skewX: "deg",
293
- skewY: "deg",
294
- rotateX: "deg",
295
- rotateY: "deg",
296
- rotateZ: "deg",
297
- perspective: "px"
298
- },
299
- u = {
300
- translateX: "x",
301
- translateY: "y",
302
- translateZ: "z",
303
- rotateX: "x",
304
- rotateY: "y",
305
- rotateZ: "z",
306
- left: "x",
307
- right: "x",
308
- top: "y",
309
- bottom: "y",
310
- width: "x",
311
- height: "y"
312
- },
313
- c = { scale: 1, scaleX: 1, scaleY: 1, scaleZ: 1 };
314
-
315
- function p( e, t, n, r, o, a ) {
316
- var i, s = e.split("_");
317
- if ( 4 === s.length ) {
318
- if ( --r[s[0]][s[1]][s[2]] || a || delete r[s[0]][s[1]][s[2]], !a ) for ( ; r[s[0]].length && !r[s[0]][r[s[0]].length - 1]; ) r[s[0]].pop();
319
- if ( --r[i = s[0] + "_" + s[1] + "_" + s[2]][s[3]] || a || (delete r[i][s[3]], delete t[e]), !a ) for ( ; r[i].length && !r[i][r[i].length - 1]; ) r[i].pop();
320
- 0 !== r[i].length || a || delete r[i], 0 !== r[s[0]].length || a || (delete r[s[0]], delete o[s[0]], delete n[s[0]])
321
- }
322
- else console.log("wtf", s)
323
- }
324
-
325
- function f( e, t, n, r, o, a ) {
326
- var i = n, c = s.Dl[e] || l[r];
327
- return "box" === c && (i *= a[u[r]] || a.x, c = "px"), "bw" === c && (i *= a.x, c = "px"), "wh" === c && (i *= a.y, c = "px"), "bz" === c && (i *= a.z, c = "px"), "deg" === c && (i %= 360), c
328
- ? (0, s.HM)(i) + c
329
- : (0, s.HM)(i)
330
- }
331
-
332
- function d( e, t, n, r, o ) {
333
- for ( var a, i, s, l, u, c, p = "", d = 0, h = 0; d < r[e].length; d++ ) for ( i in a = r[e][d] ) if ( a.hasOwnProperty(i) ) {
334
- for ( l = e + "_" + d + "_" + i, c = "", h = 0, s = 0; s < r[l].length; s++ ) r[l][s] && (u = f(s, 0, t[l + "_" + s], i, 0, o), h && "-" === u[0]
335
- ? u = " - " + u.substr(1)
336
- : h && (u = " + " + u), c += u, h++);
337
- h > 1 && (c = "calc(" + c + ")"), h > 0 && (p += i + "(" + (c || "0") + ") ")
338
- }
339
- n.transform = p
340
- }
341
-
342
- function h( e, t, n, r, o, a, u, p ) {
343
- var f = !!i().string(n) && n.match(s._9),
344
- h = f && f[2] || l[t],
345
- g = s.Dl.indexOf(h),
346
- m = -1 !== g && e + "_" + g || e;
347
- return a[m] = c[t] || 0, o[e][g] = o[e][g] || 0, p && p[g]
348
- ? r[m] += f
349
- ? parseFloat(f[1])
350
- : parseFloat(n)
351
- : (!u && o[e][g]++, r[m] = f
352
- ? parseFloat(f[1])
353
- : parseFloat(n), p && (p[g] = !0)), d
354
- }
355
-
356
- var g = function ( e, t, n, r, a, s, l ) {
357
- if ( r[e] = r[e] || [], !i().array(t) && !i().object(t) ) return console.warn("React-Voodoo: Ignore unexpected value ", e, ":", t, " on ", n), d;
358
- i().array(t) || (t = [t]);
359
- for ( var u, c, p, f, g, m, x, v = 0; v < t.length; v++ ) {
360
- for ( c in u = t[v], p = l
361
- ? {}
362
- : o()({}, r[e][v] || {}), u ) if ( u.hasOwnProperty(c) ) if ( f = u[c], x = {}, g = e + "_" + v + "_" + c, p[c] = p[c] || r[e][v] && r[e][v][c] || 0, !s && p[c]++, r[g] = r[g] || [], i().array(f) ) for ( m = 0; m < f.length; m++ ) h(g, c, f[m] || 0, n, r, a, s, x); else h(g, c, f || 0, n, r, a, s);
363
- r[e][v] = l ? o()({}, p, r[e][v] || {}, p) : p
364
- }
365
- return d
366
- }
367
- }, 582: ( e, t, n ) => {
368
- "use strict";
369
- n.r(t), n.d(t, {
370
- release : () => u,
371
- demuxOne: () => c,
372
- demux : () => p,
373
- muxer : () => f,
374
- muxOne : () => d,
375
- mux : () => h
376
- });
377
- var r = n(73),
378
- o = n.n(r),
379
- a = n(259),
380
- i = { left: "px", right: "px", top: "px", bottom: "px", width: "px", height: "px", perspective: "px" },
381
- s = { left: "x", right: "x", top: "y", bottom: "y", width: "x", height: "y" },
382
- l = { opacity: 0 };
383
-
384
- function u( e, t, n, r, o, a ) {
385
- var i = e.split("_");
386
- if ( 2 === i.length ) {
387
- if ( --r[i[0]][i[1]] || a || delete t[e], !a ) for ( ; r[i[0]].length && !r[i[0]][r[i[0]].length - 1]; ) r[i[0]].pop();
388
- 0 !== r[i[0]].length || a || (delete r[i[0]], delete o[i[0]], n && delete n[i[0]])
389
- }
390
- else console.log("wtf", i)
391
- }
392
-
393
- function c( e, t, n, r, o ) {
394
- var l = t, u = a.Dl[e] || i[n] || "px";
395
- return "box" === u && (l *= o[s[n]] || o.x, u = "px"), "bw" === u && (l *= o.x, u = "px"), "bh" === u && (l *= o.y, u = "px"), "bz" === u && (l *= o.z, u = "px"), u
396
- ? (0, a.HM)(l) + u
397
- : (0, a.HM)(l)
398
- }
399
-
400
- function p( e, t, n, r, o, a ) {
401
- var i, s, l, u = 0;
402
- if ( i = "", r[e].isString ) return n[e] = r[e].value, r[e].value;
403
- for ( s = 0; s < r[e].length; s++ ) r[e][s] && (t[l = e + "_" + s] < 0
404
- ? i += (u
405
- ? " - "
406
- : "-") + c(s, -t[l], a || e, 0, o)
407
- : i += (u
408
- ? " + "
409
- : "") + c(s, t[l], a || e, 0, o), u++);
410
- return u > 1 && (i = "calc(" + i + ")"), n ? n[e] = i : i
411
- }
412
-
413
- function f( e, t, n, r, a, i ) {
414
- r[e] = r[e] || [];
415
- var s = [];
416
- if ( o().array(t) ) for ( var l = 0; l < t.length; l++ ) d(e, t[l] || 0, n, r, a, i, s); else d(e, t || 0, n, r, a, i);
417
- return p
418
- }
419
-
420
- function d( e, t, n, r, s, u, c ) {
421
- var f = !!o().string(t) && t.match(a._9),
422
- d = f && f[2] || i[e] || "px",
423
- h = a.Dl.indexOf(d),
424
- g = -1 !== h && e + "_" + h || e;
425
- return s[g] = l[e] || 0, r[e][h] = r[e][h] || 0, !f && o().string(t)
426
- ? (r[e].isString = !0, r[e].value = t, p)
427
- : (c && c[h]
428
- ? n[g] += f
429
- ? parseFloat(f[1])
430
- : parseFloat(t)
431
- : (!u && r[e][h]++, n[g] = f
432
- ? parseFloat(f[1])
433
- : parseFloat(t), c && (c[h] = !0)), p)
434
- }
435
-
436
- var h = f
437
- }, 584: ( e, t, n ) => {
438
- "use strict";
439
- n.r(t), n.d(t, { release: () => o, demux: () => a, mux: () => i });
440
- var r = { opacity: 1 };
441
-
442
- function o( e, t, n, r, o, a ) {
443
- --r[e] || a || (delete t[e], delete r[e], delete o[e], delete n[e])
444
- }
445
-
446
- function a( e, t, n, r, o ) {
447
- var a = !!t[e];
448
- return n ? n[e] = a : a
449
- }
450
-
451
- var i = function ( e, t, n, o, i, s ) {
452
- return i[e] = r[e] || 0, n[e] = !1 === t ? 0 : 1, o[e] = o[e] || 0, !s && o[e]++, a
453
- }
454
- }, 192: ( e, t, n ) => {
455
- "use strict";
456
- n.r(t), n.d(t, { demux: () => i, mux: () => s, release: () => a });
457
- const r = require("color-rgba");
458
- var o = n.n(r);
459
-
460
- function a( e, t, n, r, o, a ) {
461
- var i = e.split("_"), s = i.slice(0, i.length - 1).join("_");
462
- --r[e] || a || (delete t[e], delete r[e]), --r[s] || a || (delete t[e], delete r[e])
463
- }
464
-
465
- function i( e, t, n, r ) {
466
- var o = "rgba(" + t[e + "_r"] + ", " + t[e + "_g"] + ", " + t[e + "_b"] + ", " + t[e + "_a"] + ")";
467
- return n ? n[e] = o : o
468
- }
469
-
470
- function s( e, t, n, r, a, s ) {
471
- var l = o()(t);
472
- return r[e] = r[e] || 0, r[e + "_r"] = r[e + "_r"] || 0, r[e + "_g"] = r[e + "_g"] || 0, r[e + "_b"] = r[e + "_b"] || 0, r[e + "_a"] = r[e + "_a"] || 0, s || (r[e] += 4, r[e + "_r"]++, r[e + "_g"]++, r[e + "_b"]++, r[e + "_a"]++), n[e + "_r"] = l[0], n[e + "_g"] = l[1], n[e + "_b"] = l[2], n[e + "_a"] = l[3], a[e] = 0, a[e + "_r"] = 0, a[e + "_g"] = 0, a[e + "_b"] = 0, a[e + "_a"] = 1, i
473
- }
474
- }, 231: ( e, t, n ) => {
475
- "use strict";
476
- n.r(t), n.d(t, {
477
- release : () => u,
478
- demuxOne: () => c,
479
- demux : () => p,
480
- muxer : () => f,
481
- muxOne : () => d,
482
- mux : () => h
483
- });
484
- var r = n(73),
485
- o = n.n(r),
486
- a = n(259),
487
- i = { left: "px", right: "px", top: "px", bottom: "px", width: "px", height: "px", perspective: "px" },
488
- s = { left: "x", right: "x", top: "y", bottom: "y", width: "x", height: "y" },
489
- l = { opacity: 0 };
490
-
491
- function u( e, t, n, r, o, a ) {
492
- var i = e.split("_");
493
- if ( 2 === i.length ) {
494
- if ( --r[i[0]][i[1]] || a || delete t[e], !a ) for ( ; r[i[0]].length && !r[i[0]][r[i[0]].length - 1]; ) r[i[0]].pop();
495
- 0 !== r[i[0]].length || a || (delete r[i[0]], delete o[i[0]], n && delete n[i[0]])
496
- }
497
- else console.log("wtf", i)
498
- }
499
-
500
- function c( e, t, n, r, o ) {
501
- var l = t, u = a.Dl[e] || i[n] || "px";
502
- return "box" === u && (l *= o[s[n]] || o.x, u = "px"), "bw" === u && (l *= o.x, u = "px"), "bh" === u && (l *= o.y, u = "px"), "bz" === u && (l *= o.z, u = "px"), u
503
- ? (0, a.HM)(l) + u
504
- : (0, a.HM)(l)
505
- }
506
-
507
- function p( e, t, n, r, o, a ) {
508
- var i, s, l, u = 0;
509
- for ( i = "", s = 0; s < r[e].length; s++ ) r[e][s] && (t[l = e + "_" + s] < 0
510
- ? i += (u
511
- ? " - "
512
- : "-") + c(s, -t[l], a || e, 0, o)
513
- : i += (u
514
- ? " + "
515
- : "") + c(s, t[l], a || e, 0, o), u++);
516
- return u > 1 && (i = "calc(" + i + ")"), n ? n[e] = i : i
517
- }
518
-
519
- function f( e, t, n, r, a, i ) {
520
- r[e] = r[e] || [];
521
- var s = [];
522
- if ( o().array(t) ) for ( var l = 0; l < t.length; l++ ) d(e, t[l] || 0, n, r, a, i, s); else d(e, t || 0, n, r, a, i);
523
- return p
524
- }
525
-
526
- function d( e, t, n, r, s, u, c ) {
527
- var f = !!o().string(t) && t.match(a._9),
528
- d = f && f[2] || i[e] || "px",
529
- h = a.Dl.indexOf(d),
530
- g = -1 !== h && e + "_" + h || e;
531
- return s[g] = l[e] || 0, r[e][h] = r[e][h] || 0, c && c[h]
532
- ? n[g] += f
533
- ? parseFloat(f[1])
534
- : parseFloat(t)
535
- : (!u && r[e][h]++, n[g] = f
536
- ? parseFloat(f[1])
537
- : parseFloat(t), c && (c[h] = !0)), p
538
- }
539
-
540
- var h = f
541
- }, 822: ( e, t, n ) => {
542
- "use strict";
543
- n.r(t), n.d(t, { default: () => u });
544
- var r = n(73),
545
- o = n.n(r),
546
- a = n(277),
547
- i = { top: "0%", bottom: "100%", center: "50%", left: "0%", right: "100%" };
548
-
549
- function s( e, t, n, r, o, i ) {
550
- for ( var s = r["_" + e], l = "", u = {}, c = 0; c < s; c++ ) a.demux(e + "_" + c, t, u, r, o, i), l += u[e + "_" + c] + " ";
551
- n[e] = l
552
- }
553
-
554
- function l( e, t, n, r, o, a ) {
555
- e.split("_")
556
- }
557
-
558
- const u = function ( e ) {
559
- return {
560
- mux : function ( t, n, r, l, u, c ) {
561
- var p, f = n.split(" ");
562
- l[t] = l[t] || 0, c && l[t]++, l["_" + t] = e;
563
- for ( var d = 0; d < e; d++ ) p = f[d % f.length], p = o().string(p) && i[p] || p, a.mux(t + "_" + d, p, r, l, u, c);
564
- return s
565
- }, demux: s, release: l
566
- }
567
- }
568
- }, 277: ( e, t, n ) => {
569
- "use strict";
570
-
571
- function r( e, t, n, r, o, a ) {
572
- --r[e] || a || (delete t[e], delete r[e], delete o[e], delete n[e])
573
- }
574
-
575
- function o( e, t, n, r, o ) {
576
- n[e] = ~~t[e]
577
- }
578
-
579
- n.r(t), n.d(t, { release: () => r, demux: () => o, mux: () => a });
580
- var a = function ( e, t, n, r, a, i ) {
581
- return a[e] = 0, n[e] = ~~t, r[e] = r[e] || 0, !i && r[e]++, o
582
- }
583
- }, 425: ( e, t, n ) => {
584
- "use strict";
585
- n.r(t), n.d(t, { release: () => a, demux: () => i, mux: () => s });
586
- var r = n(259), o = { opacity: 1 };
587
-
588
- function a( e, t, n, r, o, a ) {
589
- --r[e] || a || (delete t[e], delete r[e], delete o[e], delete n[e])
590
- }
591
-
592
- function i( e, t, n, o, a ) {
593
- n[e] = Math.min(1, Math.max(0, (0, r.HM)(t[e])))
594
- }
595
-
596
- var s = function ( e, t, n, r, a, s ) {
597
- return a[e] = o[e] || 0, n[e] = t, r[e] = r[e] || 0, !s && r[e]++, i
598
- }
599
- }, 940: ( e, t, n ) => {
600
- "use strict";
601
- n.r(t), n.d(t, { release: () => b, demuxOne: () => _, demux: () => R, muxOne: () => T, mux: () => S });
602
- var r,
603
- o,
604
- a,
605
- i,
606
- s,
607
- l,
608
- u,
609
- c,
610
- p = n(213),
611
- f = n.n(p),
612
- d = n(73),
613
- h = n.n(d),
614
- g = n(259),
615
- m = n(227),
616
- x = (r = /,(?![^\(]*\))/, o = /\s(?![^(]*\))/, a = /^[0-9]+[a-zA-Z%]+?$/, i = function ( e ) {
617
- var t = e.split(o),
618
- n = t.includes("inset"),
619
- r = t.slice(-1)[0],
620
- a = l(r) ? void 0 : r,
621
- i = t.filter((function ( e ) {
622
- return "inset" !== e
623
- })).filter((function ( e ) {
624
- return e !== a
625
- })).map(u);
626
- return { inset: n, offsetX: i[0], offsetY: i[1], blurRadius: i[2], spreadRadius: i[3], color: a }
627
- }, s = function ( e ) {
628
- var t = e || {},
629
- n = t.inset,
630
- r = t.offsetX,
631
- o = void 0 === r ? 0 : r,
632
- a = t.offsetY,
633
- i = void 0 === a ? 0 : a,
634
- s = t.blurRadius;
635
- return [n ? "inset" : null, o, i, void 0 === s
636
- ? 0
637
- : s, t.spreadRadius, t.color].filter((function ( e ) {
638
- return null != e
639
- })).map(c).map((function ( e ) {
640
- return ("" + e).trim()
641
- })).join(" ")
642
- }, l = function ( e ) {
643
- return "0" === e || a.test(e)
644
- }, u = function ( e ) {
645
- if ( !/px$/.test(e) && "0" !== e ) return e;
646
- var t = parseFloat(e);
647
- return isNaN(t) ? e : t
648
- }, c = function ( e ) {
649
- return "number" == typeof e && 0 !== e ? e + "px" : e
650
- }, {
651
- parse: function ( e ) {
652
- return e.split(r).map((function ( e ) {
653
- return e.trim()
654
- })).map(i)
655
- }, stringify: function ( e ) {
656
- return e.map(s).join(", ")
657
- }
658
- }),
659
- v = { perspective: "px" },
660
- y = { translateX: "x" },
661
- w = { inset: m.Xg, color: m.$_ };
662
-
663
- function b( e, t, n, r, o, a ) {
664
- var i, s = e.split("_");
665
- if ( s.length > 2 ) {
666
- if ( i = s[0] + "_" + s[1] + "_" + s[2], w[s[2]] ) return w[s[2]].release(e, t, n, r, o, a), r[i] || --r[s[0]][s[1]][s[2]] || a || delete r[s[0]][s[1]][s[2]], void (0 !== r[s[0]].length || a || (delete r[s[0]], delete o[s[0]], delete n[s[0]]));
667
- if ( --r[s[0]][s[1]][s[2]] || a || delete r[s[0]][s[1]][s[2]], !a ) for ( ; r[s[0]].length && !r[s[0]][r[s[0]].length - 1]; ) r[s[0]].pop();
668
- if ( --r[i][s[3]] || a || (delete r[i][s[3]], delete t[e]), !a ) for ( ; r[i].length && !r[i][r[i].length - 1]; ) r[i].pop();
669
- if ( 0 !== r[i].length || a || delete r[i], !a ) for ( ; r[s[0]].length && !Object.keys(r[s[0]][r[s[0]].length - 1]).length; ) r[s[0]].pop();
670
- 0 !== r[s[0]].length || a || (delete r[s[0]], delete o[s[0]], delete n[s[0]])
671
- }
672
- else console.log("wtf", s)
673
- }
674
-
675
- function _( e, t, n, r, o, a ) {
676
- var i = n, s = g.Dl[e] || v[r];
677
- return "box" === s && (i *= a[y[r]] || a.x, s = "px"), "bw" === s && (i *= a.x, s = "px"), "wh" === s && (i *= a.y, s = "px"), "bz" === s && (i *= a.z, s = "px"), "deg" === s && (i %= 360), s
678
- ? (0, g.HM)(i) + s
679
- : (0, g.HM)(i)
680
- }
681
-
682
- function R( e, t, n, r, o ) {
683
- for ( var a, i, s, l, u, c, p = [], f = {}, d = 0, h = 0; d < r[e].length; d++ ) {
684
- for ( i in f = {}, a = r[e][d] ) if ( a.hasOwnProperty(i) ) {
685
- if ( l = e + "_" + d + "_" + i, w[i] ) c = w[i].demux(l, t, void 0, r, o); else {
686
- for ( c = "", h = 0, s = 0; s < r[l].length; s++ ) r[l][s] && (u = _(s, 0, t[l + "_" + s], i, 0, o), h && "-" === u[0]
687
- ? u = " - " + u.substr(1)
688
- : h && (u = " + " + u), c += u, h++);
689
- h > 1 && (c = "calc(" + c + ")")
690
- }
691
- f[i] = c || 0
692
- }
693
- p.push(f)
694
- }
695
- n[e] = x.stringify(p)
696
- }
697
-
698
- function T( e, t, n, r, o, a, i, s ) {
699
- var l = !!h().string(n) && n.match(g._9),
700
- u = l && l[2] || v[t] || "px",
701
- c = g.Dl.indexOf(u),
702
- p = -1 !== c && e + "_" + c || e;
703
- return a[p] = 0, o[e][c] = o[e][c] || 0, s && s[c]
704
- ? r[p] += l ? parseFloat(l[1]) : parseFloat(n)
705
- : (!i && o[e][c]++, r[p] = l
706
- ? parseFloat(l[1])
707
- : parseFloat(n), s && (s[c] = !0)), R
708
- }
709
-
710
- var S = function ( e, t, n, r, o, a, i ) {
711
- r[e] = r[e] || [], h().array(t) || (t = [t]);
712
- for ( var s, l, u, c, p, d, g, m = 0; m < t.length; m++ ) {
713
- for ( l in s = t[m], h().string(s) && (s = x.parse(s)[0]), u = i
714
- ? {}
715
- : f()({}, r[e][m] || {}), s ) if ( s.hasOwnProperty(l) ) if ( c = s[l], p = e + "_" + m + "_" + l, u[l] = u[l] || r[e][m] && r[e][m][l] || 0, !a && u[l]++, w[l] ) w[l].mux(p, c, n, r, o, a, i); else if ( g = {}, r[p] = r[p] || [], h().array(c) ) for ( d = 0; d < c.length; d++ ) T(p, l, c[d] || 0, n, r, o, a, g); else T(p, l, c || 0, n, r, o, a);
716
- r[e][m] = i ? f()({}, u, r[e][m] || {}, u) : u
717
- }
718
- return R
719
- }
720
- }, 213: e => {
721
- "use strict";
722
- e.exports = require("@babel/runtime/helpers/extends")
723
- }, 367: e => {
724
- "use strict";
725
- e.exports = require("d3-ease")
726
- }, 73 : e => {
727
- "use strict";
728
- e.exports = require("is")
729
- }
730
- }, t = {};
731
-
732
- function n( r ) {
733
- var o = t[r];
734
- if ( void 0 !== o ) return o.exports;
735
- var a = t[r] = { exports: {} };
736
- return e[r](a, a.exports, n), a.exports
737
- }
738
-
739
- n.n = e => {
740
- var t = e && e.__esModule ? () => e.default : () => e;
741
- return n.d(t, { a: t }), t
742
- }, n.d = ( e, t ) => {
743
- for ( var r in t ) n.o(t, r) && !n.o(e, r) && Object.defineProperty(e, r, { enumerable: !0, get: t[r] })
744
- }, n.o = ( e, t ) => Object.prototype.hasOwnProperty.call(e, t), n.r = e => {
745
- "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 })
746
- };
747
- var r = {};
748
- (() => {
749
- "use strict";
750
- n.r(r), n.d(r, {
751
- Axis : () => we,
752
- Component : () => Fe,
753
- Context : () => g,
754
- Draggable : () => Be,
755
- Node : () => Me,
756
- child : () => je,
757
- default : () => Ne,
758
- dom : () => te,
759
- hook : () => ye,
760
- tools : () => e,
761
- tweener : () => Ie,
762
- useTweener: () => ke,
763
- useVoodoo : () => ye
764
- });
765
- var e = {};
766
- n.r(e), n.d(e, {
767
- addCss : () => M,
768
- cssAdd : () => _,
769
- cssMult : () => R,
770
- extractCss : () => A,
771
- offset : () => T,
772
- re_cssValueWithUnit: () => b,
773
- reverse : () => E,
774
- scale : () => S,
775
- shiftTransforms : () => k,
776
- target : () => B
777
- });
778
- const t = require("@babel/runtime/helpers/inheritsLoose");
779
- var o = n.n(t);
780
- const a = require("react");
781
- var i = n.n(a);
782
- const s = require("fast-deep-equal");
783
- var l = n.n(s), u = n(213), c = n.n(u);
784
- const p = require("@babel/runtime/helpers/objectWithoutPropertiesLoose");
785
- var f = n.n(p), d = n(73), h = n.n(d);
786
- const g = i().createContext(null), m = require("@babel/runtime/helpers/assertThisInitialized");
787
- var x = n.n(m), v = n(367);
788
- const y = require("react-dom");
789
- var w = n.n(y),
790
- b = new RegExp("([+-]?(?:[0-9]*[.])?[0-9]+)\\s*(" + ["box", "bz", "bh", "bw", "em", "ex", "%", "px", "cm", "mm", "in", "pt", "pc", "ch", "rem", "vh", "vw", "vmin", "vmax"].join("|") + ")");
791
-
792
- function _( e, t ) {
793
- h().array(e) || (e = [e]), h().array(t) || (t = [t]);
794
- var n, r = e.map((function ( e ) {
795
- return e && e.match && e.match(b) || [, e || 0, "px"]
796
- })), o = t.map((function ( e ) {
797
- return e && e.match && e.match(b) || [, e || 0, "px"]
798
- })), a = {}, i = [];
799
- for ( n = 0; n < r.length; ) a[r[n][2]] = a[r[n][2]] || 0, a[r[n][2]] += parseFloat(r[n][1]), n++;
800
- for ( n = 0; n < o.length; ) a[o[n][2]] = a[o[n][2]] || 0, a[o[n][2]] += parseFloat(o[n][1]), n++;
801
- Object.keys(a).forEach((function ( e ) {
802
- return i.push(a[e] + e)
803
- }));
804
- for ( var s = arguments.length, l = new Array(s > 2
805
- ? s - 2
806
- : 0), u = 2; u < s; u++ ) l[u - 2] = arguments[u];
807
- return l.length ? _.apply(void 0, [i].concat(l)) : i
808
- }
809
-
810
- function R( e, t ) {
811
- h().array(e) || (e = [e]);
812
- var n, r = e.map((function ( e ) {
813
- return e && e.match && e.match(b) || [, e || 0, "px"]
814
- })), o = {}, a = [];
815
- for ( n = 0; n < r.length; ) o[r[n][2]] = o[r[n][2]] || 1, o[r[n][2]] = parseFloat(r[n][1]) * t, n++;
816
- return Object.keys(o).forEach((function ( e ) {
817
- return a.push(o[e] + e)
818
- })), a
819
- }
820
-
821
- function T( e, t ) {
822
- return void 0 === t && (t = 0), (e = h().array(e) ? e : e && [e] || e).map((function ( e ) {
823
- return c()({}, e, { from: e.from + t })
824
- }))
825
- }
826
-
827
- function S( e, t, n ) {
828
- void 0 === t && (t = 0), e = h().array(e) ? e : e && [e] || e;
829
- var r = 0;
830
- return e.forEach((function ( e ) {
831
- r = Math.max(r, e.from + e.duration)
832
- })), e = e.map((function ( e ) {
833
- return c()({}, e, { from: e.from / r * t, duration: e.duration / r * t })
834
- })), n ? T(e, n) : e
835
- }
836
-
837
- function P( e ) {
838
- return h().number(e) ? -e : h().object(e) ? Object.keys(e).reduce((function ( t, n ) {
839
- return t[n] = P(e[n]), t
840
- }), {}) : h().array(e) ? e.map((function ( e ) {
841
- return P(e)
842
- })) : e.split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi).map((function ( e, t ) {
843
- return t % 2 ? -parseFloat(e) : e
844
- })).join("")
845
- }
846
-
847
- function E( e ) {
848
- e = h().array(e) ? e : e && [e] || e;
849
- var t = 0;
850
- return e.forEach((function ( e ) {
851
- t = Math.max(t, e.from + e.duration)
852
- })), e.map((function ( e ) {
853
- return c()({}, e, { from: t - (e.from + e.duration) }, e.apply ? { apply: P(e.apply) } : void 0)
854
- }))
855
- }
856
-
857
- var D = { transform: !0, filter: !0, textShadow: !0, boxShadow: !0 };
858
-
859
- function M( e ) {
860
- for ( var t = arguments.length, n = new Array(t > 1
861
- ? t - 1
862
- : 0), r = 1; r < t; r++ ) n[r - 1] = arguments[r];
863
- var o = n.shift();
864
- for ( var a in o ) {
865
- var i;
866
- o.hasOwnProperty(a) && (D[a]
867
- ? (e[a] || (e[a] = []), h().array(o[a]) ? M(e[a], o[a]) : M(e[a], [o[a]]))
868
- : h().array(o[a])
869
- ? (e[a] || (e[a] = []), h().array(e[a])
870
- ? (i = e[a]).push.apply(i, o[a])
871
- : e[a] = [].concat(o[a], [e[a]]))
872
- : e[a] ? h().object(e[a]) && h().object(o[a])
873
- ? M(e[a], o[a])
874
- : e[a] = O(e[a], o[a]) : h().object(o[a])
875
- ? e[a] = c()({}, o[a])
876
- : e[a] = o[a])
877
- }
878
- return n.length && M.apply(void 0, [e].concat(n)) || e
879
- }
880
-
881
- function O( e, t ) {
882
- if ( !e ) return t;
883
- if ( !t ) return e;
884
- var n = ("" + e).split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi),
885
- r = ("" + t).split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi),
886
- o = n.map((function ( e, t ) {
887
- return t % 2 ? parseFloat(e) + parseFloat(r[t] || 0) : e
888
- })).filter((function ( e ) {
889
- return "" !== e
890
- }));
891
- return 1 === o.length ? parseInt(o[0]) : o.join("")
892
- }
893
-
894
- function A( e, t ) {
895
- var n = {};
896
- return (e = h().array(e) ? e : e && [e] || e).forEach((function ( e ) {
897
- M(n, e.apply)
898
- })), t && (n = P(n)), n
899
- }
900
-
901
- function B( e, t ) {
902
- return (e = h().array(e) ? e : e && [e] || e).map((function ( e ) {
903
- return c()({}, e, { target: t })
904
- }))
905
- }
906
-
907
- function k( e, t ) {
908
- return void 0 === t && (t = 1), (e = h().array(e) ? e : e && [e] || e).map((function ( e ) {
909
- var n = e.apply && e.apply.transform;
910
- if ( n ) {
911
- n = h().array(n) ? n : [n];
912
- for ( var r = 0; r < t; r++ ) n.unshift({});
913
- e = c()({}, e, { apply: c()({}, e.apply, { transform: n }) })
914
- }
915
- return e
916
- }))
917
- }
918
-
919
- var C = n(259), I = {}, L = n(450).walknSetExport;
920
- L(I, "filter", n(111)), L(I, "boxShadow", n(39)), L(I, "transform", n(374)), L(I, "textShadow", n(178)), L(I, "backgroundColor", n(38));
921
- const W = I;
922
- var j = n(227),
923
- F = c()({}, W, {
924
- height: j.kE,
925
- width: j.kE,
926
- top: j.kE,
927
- left: j.kE,
928
- right: j.kE,
929
- bottom: j.kE,
930
- marginTop: j.kE,
931
- marginLeft: j.kE,
932
- marginRight: j.kE,
933
- marginBottom: j.kE,
934
- paddingTop: j.kE,
935
- paddingLeft: j.kE,
936
- paddingRight: j.kE,
937
- paddingBottom: j.kE,
938
- borderRadius: j.kE,
939
- borderTopColor: j.$_,
940
- borderLeftColor: j.$_,
941
- borderRightColor: j.$_,
942
- borderBottomColor: j.$_,
943
- borderTopWidth: j.kE,
944
- borderLeftWidth: j.kE,
945
- borderRightWidth: j.kE,
946
- borderBottomWidth: j.kE,
947
- transformOrigin: (0, j.fi)(2),
948
- zIndex: j.Rx,
949
- opacity: j.bC
950
- });
951
-
952
- function N( e, t, n, r, o, a, i ) {
953
- var s;
954
- null == (s = a[t.split("_")[0]]) || s.release(t, n, r, o, a, i)
955
- }
956
-
957
- function z( e, t, n, r, o ) {
958
- Object.keys(n).forEach((function ( a ) {
959
- n[a].demux(a, e, t, r, o)
960
- }))
961
- }
962
-
963
- function H( e, t, n, r, o, a, i ) {
964
- var s = {}, l = {};
965
- return e && Object.keys(e).forEach((function ( t ) {
966
- F[t] ? s[t] = e[t] : (0, C.JO)(t, e[t])
967
- ? (0, C._j)(t) ? (0, C.dn)(t, e[t], s) : s[t] = e[t]
968
- : l[t] = e[t]
969
- })), s && Object.keys(s).forEach((function ( e ) {
970
- F[e] ? (o[e] = F[e]).mux(e, s[e], t, r, n, a, i) : (o[e] = function ( e ) {
971
- var t = C.NQ[e], n = t && t.types;
972
- if ( !n ) return j.Yj;
973
- for ( var r = 0; r < n.length; r++ ) switch ( n[r] ) {
974
- case"length":
975
- case"length-percentage-calc":
976
- return j.kE;
977
- case"number":
978
- case"integer":
979
- return j.Rx;
980
- case"color":
981
- return j.$_
982
- }
983
- return j.Yj
984
- }(e)).mux(e, s[e], t, r, n, a, i)
985
- })), l
986
- }
987
-
988
- function V( e, t, n, r, o ) {
989
- o = o && {};
990
- var a = {}, i = e.reduce((function ( e, i ) {
991
- var s = {};
992
- return r[i.target] = r[i.target] || {}, t[i.target] = t[i.target] || {}, n[i.target] = n[i.target] || {}, i.type && "Tween" !== i.type
993
- ? e.push(c()({}, i))
994
- : (!o && M(a[i.target] = a[i.target] || {}, i.apply), H(i.apply, s, t[i.target], n[i.target], r[i.target], !0), e.push(c()({}, i, { apply: s }))), e
995
- }), []);
996
- return !o && Object.keys(a).forEach((function ( e ) {
997
- return H(a[e], {}, {}, n[e], r[e])
998
- })), i
999
- }
1000
-
1001
- const Y = require("tween-axis");
1002
- var X,
1003
- q,
1004
- $ = n.n(Y),
1005
- G = [],
1006
- U = function ( e ) {
1007
- function t( t, n ) {
1008
- var r;
1009
- if ( G.length ) {
1010
- var o = G.pop();
1011
- return o.scope = n, h().array(t)
1012
- ? (o.localLength = 1, o.mount(t, n))
1013
- : t.Axis && o.mount(t.Axis, n), o || x()(r)
1014
- }
1015
- return e.apply(this, arguments) || this
1016
- }
1017
-
1018
- return o()(t, e), t.prototype.destroy = function () {
1019
- this.scope = void 0, this.__marks.length = 0, this.__marksLength.length = 0, this.__marksKeys.length = 0, this.__processors.length = 0, this.__config.length = 0, this.__activeProcess.length = 0, this.__activeProcess.length = 0, this.__outgoing.length = 0, this.__incoming.length = 0, this.__cPos = 0, this.duration = 0, this.__cIndex = 0, this.__cMaxKey = 1, G.push(this)
1020
- }, t
1021
- }($()),
1022
- Z = n(73),
1023
- J = "undefined" != typeof window,
1024
- K = (J && (q = " -webkit- -moz- -o- -ms- ".split(" "), !!("ontouchstart" in window || window.DocumentTouch && document instanceof DocumentTouch) || (X = ["(", q.join("touch-enabled),("), "heartz", ")"].join(""), window.matchMedia && window.matchMedia(X).matches)), J
1025
- ? {
1026
- prefix: /webkit/i.test(navigator.appVersion)
1027
- ? "webkit"
1028
- : /firefox/i.test(navigator.userAgent)
1029
- ? "Moz"
1030
- : /trident/i.test(navigator.userAgent)
1031
- ? "ms"
1032
- : "opera" in window
1033
- ? "O"
1034
- : "",
1035
- dashedPrefix: /webkit/i.test(navigator.appVersion)
1036
- ? "-webkit-"
1037
- : /firefox/i.test(navigator.userAgent)
1038
- ? "-moz-"
1039
- : /trident/i.test(navigator.userAgent)
1040
- ? "-ms-"
1041
- : "opera" in window
1042
- ? "-o-"
1043
- : ""
1044
- }
1045
- : {
1046
- prefix: "",
1047
- dashedPrefix: ""
1048
- }),
1049
- Q = {
1050
- onPageHided: [],
1051
- onPageShown: [],
1052
- dragging: [],
1053
- dragEnabled: [],
1054
- dragEnabledDesc: [],
1055
- fingers: {},
1056
- nbFingers: 0,
1057
- dragstartAnywhere: function ( e ) {
1058
- var t, n, r, o = Q, a = o.dragEnabled.indexOf(this), i = [];
1059
- if ( -1 !== a ) {
1060
- o.nbFingers || (ee.addEvent(document, {
1061
- touchmove: o.dragAnywhere,
1062
- mousemove: o.dragAnywhere,
1063
- touchend: o.dropAnywhere,
1064
- mouseup: o.dropAnywhere
1065
- }), ee.addEvent(this, { click: o.dropWithoutClick }, null, null, null, !0)), e.changedTouches && e.changedTouches.length
1066
- ? i = e.changedTouches
1067
- : i.push(e);
1068
- for ( var s = 0, l = i.length; s < l; s++ ) if ( n = i[s], !(r = o.dragEnabledDesc[a]).nbFingers ) for ( o.nbFingers++, o.fingers[n.identifier] = o.fingers[n.identifier] || [], o.fingers[n.identifier].push(r), r.nbFingers++, r._startPos.x = "MS" == K.prefix
1069
- ? n.x
1070
- : n.pageX, r._startPos.y = "MS" == K.prefix
1071
- ? n.y
1072
- : n.pageY, r._startTs = e.timeStamp, r._lastPos.x = "MS" == K.prefix
1073
- ? n.x
1074
- : n.pageX, r._lastPos.y = "MS" == K.prefix
1075
- ? n.y
1076
- : n.pageY, t = 0; t < r.dragstart.length; t++ ) r.dragstart[t][0].call(r.dragstart[t][1] || this, e, n, r)
1077
- }
1078
- },
1079
- dragAnywhere: function ( e ) {
1080
- var t, n, r, o = this, a = Q, i = [];
1081
- Q.dragging[0], e.changedTouches && e.changedTouches.length ? i = e.changedTouches : i.push(e);
1082
- for ( var s = 0, l = i.length; s < l; s++ ) n = i[s], a.fingers[n.identifier], a.fingers[n.identifier] && a.fingers[n.identifier].forEach((function ( a ) {
1083
- if ( r ) return a._lastPos.x = a._startPos.x = "MS" == K.prefix
1084
- ? n.x
1085
- : n.pageX, void (a._lastPos.y = a._startPos.y = "MS" == K.prefix
1086
- ? n.y
1087
- : n.pageY);
1088
- for ( a._lastPos.x = "MS" == K.prefix ? n.x : n.pageX, a._lastPos.y = "MS" == K.prefix
1089
- ? n.y
1090
- : n.pageY, t = 0; t < a.drag.length; t++ ) r = !1 === a.drag[t][0].call(a.drag[t][1] || o, e, n, a)
1091
- }))
1092
- },
1093
- dropWithoutClick: function ( e ) {
1094
- Q.preventNextClick && (e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(), Q.preventNextClick = !1), ee.removeEvent(this, { click: this.dropWithoutClick })
1095
- },
1096
- dropAnywhere: function ( e ) {
1097
- var t, n, r, o = this, a = Q, i = [];
1098
- e.changedTouches && e.changedTouches.length ? i = e.changedTouches : i.push(e);
1099
- for ( var s = 0, l = i.length; s < l; s++ ) n = i[s], a.nbFingers--, a.fingers[n.identifier] && a.fingers[n.identifier].forEach((function ( a ) {
1100
- for ( a.nbFingers--, r = r || a.mouseDrag && e.timeStamp - a._startTs > 250, a._lastPos.x = "MS" == K.prefix
1101
- ? n.x
1102
- : n.pageX, a._lastPos.y = "MS" == K.prefix
1103
- ? n.y
1104
- : n.pageY, t = 0; t < a.dropped.length; t++ ) a.dropped[t][0].call(a.dropped[t][1] || o, e, n, a)
1105
- })), a.fingers[n.identifier] = null;
1106
- r && (a.preventNextClick = !0), a.nbFingers || ee.removeEvent(document, {
1107
- touchmove: a.dragAnywhere,
1108
- mousemove: a.dragAnywhere,
1109
- touchend: a.dropAnywhere,
1110
- mouseup: a.dropAnywhere
1111
- })
1112
- },
1113
- getDraggable: function ( e, t, n ) {
1114
- var r, o = this.dragEnabled.indexOf(e);
1115
- return -1 === o ? (this.dragEnabled.push(e), this.dragEnabledDesc.push(r = {
1116
- mouseDrag: t,
1117
- touchDrag: n,
1118
- nbFingers: 0,
1119
- locks: 0,
1120
- _startPos: {
1121
- x: 0,
1122
- y: 0
1123
- },
1124
- _lastPos: {
1125
- x: 0,
1126
- y: 0
1127
- },
1128
- dragstart: [],
1129
- drag: [],
1130
- dragEnd: [],
1131
- dropped: []
1132
- }), ee.addEvent(e, {
1133
- mousedown: t && this.dragstartAnywhere,
1134
- touchstart: n && this.dragstartAnywhere
1135
- }, null, null, null, !0)) : r = this.dragEnabledDesc[o], r
1136
- },
1137
- freeDraggable: function ( e ) {
1138
- var t = this.dragEnabled.indexOf(e);
1139
- -1 !== t && (this.dragEnabled.splice(t, 1), this.dragEnabledDesc.splice(t, 1), ee.removeEvent(e, {
1140
- mousedown: this.dragstartAnywhere,
1141
- touchstart: this.dragstartAnywhere
1142
- }))
1143
- },
1144
- addEvent: function ( e, t, n, r ) {
1145
- e.addEventListener
1146
- ? e.addEventListener(t, n, r)
1147
- : e.attachEvent && e.attachEvent("on" + t, n.related = function ( t ) {
1148
- return n.call(e, t)
1149
- })
1150
- },
1151
- removeEvent: function ( e, t, n, r ) {
1152
- e.removeEventListener
1153
- ? e.removeEventListener(t, n, r)
1154
- : e.attachEvent && e.detachEvent("on" + t, n.related)
1155
- },
1156
- rmDragFn: function ( e, t, n ) {
1157
- for ( var r = 0, o = e.length; r < o; r++ ) if ( e[r][0] === t ) return e.splice(r, 1);
1158
- console.warn("Rm event : Listener not found !!")
1159
- }
1160
- },
1161
- ee = {
1162
- addEvent: function ( e, t, n, r, o, a ) {
1163
- if ( void 0 === o && (o = !0), Z.object(t) ) for ( var i in t ) t.hasOwnProperty(i) && t[i] && this.addEvent(e, i, t[i], r, o, a); else "dragstart" === t
1164
- ? Q.getDraggable(e, r, o).dragstart.push([n])
1165
- : "drag" === t
1166
- ? Q.getDraggable(e, r, o).drag.push([n])
1167
- : "dropped" === t
1168
- ? Q.getDraggable(e, r, o).dropped.push([n])
1169
- : e.addEventListener
1170
- ? e.addEventListener(t, n, { passive: !1 })
1171
- : e.attachEvent && e.attachEvent("on" + t, n.related = function ( t ) {
1172
- return n.call(e, t)
1173
- })
1174
- }, removeEvent: function ( e, t, n, r, o ) {
1175
- var a;
1176
- if ( Z.object(t) ) for ( var i in t ) t.hasOwnProperty(i) && this.removeEvent(e, i, t[i], r); else /^(drag|drop)/.test(t)
1177
- ? (a = Q.getDraggable(e), Q.rmDragFn(a[t], n, r), a.dragstart.length || a.drag.length || a.dragEnd.length || a.dropped.length || Q.freeDraggable(e))
1178
- : e.removeEventListener
1179
- ? e.removeEventListener(t, n, o)
1180
- : e.attachEvent && e.detachEvent("on" + t, n.related)
1181
- }, offset: function ( e ) {
1182
- for ( var t = {
1183
- top: 0,
1184
- left: 0,
1185
- width: e.offsetWidth,
1186
- height: e.offsetHeight
1187
- }; e; ) t.top = t.top + parseInt(e.offsetTop), t.left = t.left + parseInt(e.offsetLeft), e = e.offsetParent;
1188
- return t
1189
- }, findReactParents: function ( e ) {
1190
- var t, n = [e];
1191
- for ( var r in e ) if ( r.startsWith("__reactInternalInstance$") || r.startsWith("__reactFiber$") ) {
1192
- for ( t = e[r]; t.return; ) t.stateNode && !n.includes(t.stateNode) && n.push(t.stateNode), t = t.return;
1193
- return n
1194
- }
1195
- return e.parentNode && this.findReactParents(e.parentNode)
1196
- }
1197
- };
1198
- const te = ee;
1199
- var ne = n(73), re = n(367), oe = function ( e ) {
1200
- return "number" == typeof e ? e ? e < 0 ? -1 : 1 : e == e ? e : NaN : NaN
1201
- }, ae = Math.abs, ie = Math.floor, se = (Math.round, Math.min), le = Math.max, ue = function ( e ) {
1202
- return void 0 === e && (e = 0), e.toFixed(3)
1203
- }, ce = function () {
1204
- function e( e ) {
1205
- var t = this._ = {};
1206
- t.conf = c()({}, this.constructor.config, e), this.active = !1, t.pos = e.value || 0, t.refFPS = 16, t.min = e.min || 0, t.max = e.max || 0, t.currentStop = 0, t.lastInertiaPos = 0, t.stops = t.conf.stops, t.disabled = t.conf.disabled, t.wayPoints = t.conf.wayPoints, t.inertiaFn = re.easePolyOut, t.targetWayPointIndex = 0, this._detectCurrentSnap()
1207
- }
1208
-
1209
- var t = e.prototype;
1210
- return t.updateConf = function ( e ) {
1211
- var t = this._;
1212
- t.min = e.min || 0, t.max = e.max || 0, t.stops = e.stops, t.disabled = e.disabled, t.wayPoints = e.wayPoints, t.conf.willStop = e.willStop, t.conf.willSnap = e.willSnap, t.conf.onStop = e.onStop, t.conf.onSnap = e.onSnap, t.conf.shouldLoop = e.shouldLoop
1213
- }, t.startMove = function () {
1214
- var e = this._;
1215
- e.baseTS = e.startTS = Date.now() / 1e3, e.lastVelocity = e.lastIVelocity = 0, e.lastAccel = 0, e.posDiff = 0, e.loopsDiff = 0, this.active = !0, this.holding = !0, e.inertia = !1
1216
- }, t.hold = function ( e ) {
1217
- var t,
1218
- n = this._,
1219
- r = void 0 !== n.lastHoldPos ? e - n.lastHoldPos : 0,
1220
- o = Date.now() / 1e3,
1221
- a = o - n.baseTS,
1222
- i = e,
1223
- s = r / a;
1224
- if ( n.lastHoldPos = e, n.lastBaseTs || (n.lastBasePos = e, n.lastBaseTs = n.baseTS), a < .003 || ((s <= 0 && n.lastVelocity > 0 || s >= 0 && n.lastVelocity < 0 || ae(s) < ae(.2 * n.lastVelocity)) && o - n.lastBaseTs > .15
1225
- ? (n.lastBasePos = e, n.lastBaseTs = o, n.lastVelocity = 0, n.lastIVelocity = 0, n.baseTS = o, n.targetDist = 0, n.lastInertiaPos = 0)
1226
- : s <= 0 && n.lastVelocity > 0 || s >= 0 && n.lastVelocity < 0 || ae(s) < ae(.2 * n.lastVelocity) || (n.lastIVelocity = s, n.lastVelocity = (i - n.lastBasePos) / (o - n.lastBaseTs), n.baseTS = o, n.targetDist = 0, n.lastInertiaPos = 0, n.targetWayPoint = void 0, n.targetWayPointIndex = void 0)), n.conf.bounds && (i > n.max
1227
- ? i = n.max
1228
- : i < n.min && (i = n.min)), n.conf.shouldLoop ) for ( ; t = n.conf.shouldLoop(i, r); ) i += t;
1229
- n.pos = i
1230
- }, t.release = function () {
1231
- var e = this._;
1232
- oe(e.lastVelocity), this.holding = !1, function ( e ) {
1233
- var t = oe(e.lastVelocity);
1234
- e.disabled
1235
- ? (e.loopsTarget = 0, e.loopsVelSum = 0, e.targetDist = 0, e.targetDuration = 0)
1236
- : (e.loopsTarget = ie(Math.log(.05 / ae(e.lastVelocity)) / Math.log(.9)), e.loopsVelSum = (Math.pow(.9, e.loopsTarget) - ae(e.lastVelocity)) / (.9 - 1), e.targetDist = e.loopsVelSum * e.refFPS * t / 1e3 || 0, e.targetDuration = ae(e.loopsTarget * e.refFPS * t) || 0)
1237
- }(e), e.lastHoldPos = void 0, e.lastBasePos = void 0, e.lastBaseTs = void 0, e.holding = !1, e.conf.bounds && e.conf.snapToBounds && (e.pos + e.targetDist > e.max
1238
- ? (e.targetDist = e.max - e.pos, e.targetDuration = ae(10 * e.targetDist))
1239
- : e.pos + e.targetDist < e.min && (e.targetDist = e.min - e.pos, e.targetDuration = ae(10 * e.targetDist))), e.targetDuration || (e.targetDuration = 50), this.active = !0, e.inertia = !0, e.lastInertiaPos = 0, e.inertiaStartTm = e.inertiaLastTm = Date.now(), this._doSnap(null, 500), null == e.conf.willEnd || e.conf.willEnd(e.targetDist + e.pos, e.targetDist, e.targetDuration)
1240
- }, t.update = function ( e ) {
1241
- void 0 === e && (e = Date.now());
1242
- var t, n, r = this._, o = r.inertiaFn((e - r.inertiaStartTm) / r.targetDuration) * r.targetDist;
1243
- if ( !r.inertia ) return r.pos;
1244
- var a = o - r.lastInertiaPos;
1245
- if ( r.lastInertiaPos = o, e - r.inertiaStartTm >= r.targetDuration && (r.inertia = this.active = !1, r.lastInertiaPos = a = 0, r.targetDist = 0, r.targetWayPoint && (a = r.targetWayPoint.at - r.pos, r.currentWayPoint = r.targetWayPoint, r.currentWayPointIndex = r.targetWayPointIndex, r.targetWayPoint = null, r.targetWayPointIndex = null), r.conf.onStop && r.conf.onStop(r.pos, r.currentWayPoint), r.conf.onSnap && r.conf.onSnap(r.currentWayPointIndex, r.currentWayPoint)), a = a || 0, t = r.pos + a, r.conf.shouldLoop ) for ( ; n = r.conf.shouldLoop(t, a); ) t += n, r.inertia;
1246
- return r.pos = t, t
1247
- }, t.setPos = function ( e ) {
1248
- var t = this._;
1249
- if ( t.inertia = !1, this.active = !1, t.lastInertiaPos = 0, t.targetDist = 0, t.inertiaStartTm = 0, t.inertiaLastTm = 0, t.targetDuration = 0, t.conf.shouldLoop ) {
1250
- for ( var n, r = e; n = t.conf.shouldLoop(r, t.pos - e); ) r += n;
1251
- e = r
1252
- }
1253
- t.pos = e, t.conf.bounds && (t.pos = le(t.pos, t.min), t.pos = se(t.pos, t.max))
1254
- }, t.setWayPoints = function ( e ) {
1255
- this._.wayPoints = e, this._detectCurrentSnap()
1256
- }, t.teleport = function ( e ) {
1257
- var t = this._;
1258
- if ( !t.inertia ) return t.pos += e;
1259
- t.pos += e
1260
- }, t.dispatch = function ( e, t ) {
1261
- void 0 === t && (t = 500);
1262
- var n = this._, r = Date.now();
1263
- this.active = !0, n.inertia && oe(e) === oe(n.targetDist)
1264
- ? (n.targetDist += e, n.targetDuration += t / 2)
1265
- : (n.inertia = !0, n.lastInertiaPos = 0, n.inertiaStartTm = n.inertiaLastTm = r, n.targetDist = e, n.targetDuration = t), n.conf.bounds && (n.pos + n.targetDist > n.max
1266
- ? (n.targetDist = n.max - n.pos, n.targetDuration = ae(10 * n.targetDist))
1267
- : n.pos + n.targetDist < n.min && (n.targetDist = n.min - n.pos, n.targetDuration = ae(10 * n.targetDist))), this._doSnap(oe(e), 750)
1268
- }, t._detectCurrentSnap = function () {
1269
- var e, t = this._, n = t.pos;
1270
- if ( t.wayPoints && t.wayPoints.length ) for ( e = 0; e < t.wayPoints.length; e++ ) if ( ue(t.wayPoints[e].at) === ue(n) ) return t.currentWayPoint = t.wayPoints[e], t.currentWayPointIndex = e, e
1271
- }, t._doSnap = function ( e, t ) {
1272
- void 0 === t && (t = 2e3);
1273
- var n, r, o, a, i = this._, s = i.targetDist + (i.pos - (i.lastInertiaPos || 0)), l = 0;
1274
- if ( i.wayPoints && i.wayPoints.length ) {
1275
- if ( i.conf.shouldLoop ) for ( ; a = i.conf.shouldLoop(s, 0); ) s += a, l += a;
1276
- for ( o = 0; o < i.wayPoints.length && !(i.wayPoints[o].at > s); o++ ) ;
1277
- if ( o === i.wayPoints.length ? o-- : 0 === o
1278
- ? o = 0
1279
- : (r = (i.wayPoints[o].at - i.wayPoints[o - 1].at) / 2, r = i.wayPoints[o - 1].at + r * ((i.wayPoints[o].gravity || 1) / (i.wayPoints[o - 1].gravity || 1)), e
1280
- ? e < 0 && o--
1281
- : s < r && o--), i.conf.maxJump && ne.number(i.currentWayPointIndex) ) {
1282
- var u = o - i.currentWayPointIndex;
1283
- ae(u) > i.conf.maxJump && (o = i.currentWayPointIndex + oe(u) * i.conf.maxJump)
1284
- }
1285
- n = i.wayPoints[o].at, i.conf.willSnap && i.conf.willSnap(o, i.wayPoints[o]), i.lastInertiaPos = i.lastInertiaPos || 0, n = n - (i.pos - i.lastInertiaPos) - l, i.targetDuration = le(50, se(t, ae(i.targetDuration / i.targetDist * n))) || 0, i.targetDist = n, i.targetWayPoint = i.wayPoints[o], i.targetWayPointIndex = o
1286
- }
1287
- else n = ~~(i.pos - i.lastInertiaPos), i.conf.infinite || (n > i.max
1288
- ? (n = i.max - n, i.targetDuration = se(t, ae(i.targetDuration / i.targetDist * n)), i.targetDist = n)
1289
- : n < i.min && (n = i.min - n, i.targetDuration = se(t, ae(i.targetDuration / i.targetDist * n)), i.targetDist = n))
1290
- }, t.setBounds = function ( e, t ) {
1291
- var n = this._;
1292
- n.min = e, n.max = t
1293
- }, t.isInbound = function ( e ) {
1294
- var t = this._,
1295
- n = void 0 !== t.lastHoldPos ? e - t.lastHoldPos : 0,
1296
- r = (t.targetDist || 0) + (t.pos - (t.lastInertiaPos || 0)) + n;
1297
- return r >= t.min && r <= t.max
1298
- }, e
1299
- }();
1300
- ce.config = { bounds: !0, snapToBounds: !0 };
1301
- var pe,
1302
- fe,
1303
- de = new Function("try {return this===window;}catch(e){ return false;}")(),
1304
- he = h().array,
1305
- ge = [],
1306
- me = function e() {
1307
- var t = 0, n = Date.now(), r = n - fe;
1308
- for ( fe = n; t < ge.length; t++ ) ge[t].cpos = Math.min(r + ge[t].cpos, ge[t].duration), ge[t].apply(ge[t].cpos, ge[t].duration), ge[t].cpos == ge[t].duration && (ge[t].cb && setTimeout(ge[t].cb), ge.splice(t, 1), t--);
1309
- ge.length ? setTimeout(e, 16) : pe = !1
1310
- },
1311
- xe = function ( e ) {
1312
- function t( t ) {
1313
- var n;
1314
- (n = e.apply(this, arguments) || this).axes = {}, n._scrollWatcherByAxis = {}, n._updateNodeInertia = function () {
1315
- var e, t = n._, r = t.activeInertia.length;
1316
- n._inertiaRaf && cancelAnimationFrame(n._inertiaRaf);
1317
- for ( var o = 0; r > o; o++ ) ((e = t.activeInertia[o]).inertia.x.active || e.inertia.x.holding) && (e.target.scrollLeft = ~~e.inertia.x.update()), (e.inertia.y.active || e.inertia.y.holding) && (e.target.scrollTop = ~~e.inertia.y.update()), e.inertia.x.active || e.inertia.y.active || e.inertia.x.holding || e.inertia.y.holding || (t.activeInertia.slice(o, 1), o--, r--);
1318
- n._inertiaRaf = 0 !== r ? requestAnimationFrame(n._updateNodeInertia) : null
1319
- }, n._swap = {};
1320
- var r = n._ = { refs: {}, muxByTarget: {} };
1321
- return r.box = {
1322
- x: 100,
1323
- y: 100,
1324
- z: 800
1325
- }, n.__isTweener = !0, r._rafLoop = n._rafLoop.bind(x()(n)), r.rootRef = n.props.forwardedRef || i().createRef(), r.options = c()({
1326
- maxClickTm: 200,
1327
- maxClickOffset: 5
1328
- }, t.tweenerOptions || {}), r.tweenRefCSS = {}, r.tweenRefs = {}, r.tweenRefMaps = {}, r.iMapOrigin = {}, r.tweenRefInitialData = {}, r.tweenEnabled = !0, r.tweenRefOrigin = {}, r.tweenRefOriginCss = {}, r.muxDataByTarget = r.muxDataByTarget || {}, r.tweenRefDemuxed = r.tweenRefDemuxed || {}, r.tweenRefTargets = r.tweenRefTargets || [], r.runningAnims = r.runningAnims || [], r.scrollHook = [], r.activeInertia = [], de && window.addEventListener("resize", n._.onResize = function ( e ) {
1329
- var t, o;
1330
- n._updateBox(), n._updateTweenRefs(), null == (t = r.rootRef) || null == (o = t.current) || null == o.windowDidResize || o.windowDidResize(e)
1331
- }), n
1332
- }
1333
-
1334
- o()(t, e);
1335
- var n = t.prototype;
1336
- return n.tweenRef = function ( e, t, n, r, o, a, i ) {
1337
- void 0 === t && (t = {}), void 0 === n && (n = {});
1338
- var s = this._, u = {}, p = {};
1339
- return s.tweenRefs[e] || s.tweenRefTargets.push(e), !s.tweenRefs[e] || !i && s.iMapOrigin[e] === n && l()(n, s.iMapOrigin[e]) && s.tweenRefOriginCss[e] === t && l()(t, s.tweenRefOriginCss[e])
1340
- ? s.tweenRefs[e]
1341
- ? z(s.tweenRefMaps[e], s.tweenRefCSS[e], s.muxByTarget[e], s.muxDataByTarget[e], s.box)
1342
- : (s.iMapOrigin[e] = n, t = t || {}, n = n || {}, s.tweenRefs[e] = !0, s.muxByTarget[e] = s.muxByTarget[e] || {}, s.muxDataByTarget[e] = s.muxDataByTarget[e] || {}, s.tweenRefOriginCss[e] = t, s.tweenRefMaps[e] = s.tweenRefMaps[e] || {}, s.tweenRefOrigin[e]
1343
- ? (t = c()({}, t, H(n, u, p, s.muxDataByTarget[e], s.muxByTarget[e], !1, !0)), Object.keys(p).forEach((function ( t ) {
1344
- return s.tweenRefMaps[e][t] = h().number(s.tweenRefMaps[e][t])
1345
- ? s.tweenRefMaps[e][t] - p[t]
1346
- : 0
1347
- })), Object.keys(u).forEach((function ( t ) {
1348
- return s.tweenRefMaps[e][t] += u[t]
1349
- })))
1350
- : (t = c()({}, t, H(n, u, p, s.muxDataByTarget[e], s.muxByTarget[e])), u = Object.assign({}, p, u || {}), Object.keys(u).forEach((function ( t ) {
1351
- return s.tweenRefMaps[e][t] = (s.tweenRefMaps[e][t] || 0) + u[t]
1352
- }))), s.tweenRefOrigin[e] = c()({}, u), s.tweenRefCSS[e] = t, z(u = s.tweenRefMaps[e], t, s.muxByTarget[e], s.muxDataByTarget[e], s.box))
1353
- : (s.iMapOrigin[e] = n, s.tweenRefOriginCss[e] = t, t = t || {}, n = n || {}, t = c()({}, t, H(n, u, p, s.muxDataByTarget[e], s.muxByTarget[e], !1, !0)), Object.keys(s.tweenRefOrigin[e]).forEach((function ( t ) {
1354
- return s.tweenRefMaps[e][t] -= s.tweenRefOrigin[e][t]
1355
- })), Object.keys(p).forEach((function ( t ) {
1356
- return s.tweenRefMaps[e][t] = h().number(s.tweenRefMaps[e][t]) ? s.tweenRefMaps[e][t] : p[t]
1357
- })), Object.keys(u).forEach((function ( t ) {
1358
- return s.tweenRefMaps[e][t] += u[t]
1359
- })), Object.keys(s.tweenRefOrigin[e]).forEach((function ( t ) {
1360
- N(0, t, s.tweenRefMaps[e], s.tweenRefCSS[e], s.muxDataByTarget[e], s.muxByTarget[e])
1361
- })), Object.keys(s.tweenRefCSS[e]).forEach((function ( n ) {
1362
- !s.tweenRefCSS[e][n] || s.muxByTarget[e][n] || t[n] || delete s.tweenRefCSS[e][n]
1363
- })), Object.keys(t).forEach((function ( n ) {
1364
- s.tweenRefCSS[e][n] === t[n] || s.muxByTarget[e][n] || (s.tweenRefCSS[e][n] = t[n])
1365
- })), s.tweenRefOrigin[e] = c()({}, u), z(s.tweenRefMaps[e], s.tweenRefCSS[e], s.muxByTarget[e], s.muxDataByTarget[e], s.box), this._updateTweenRef(e, !0)), a
1366
- ? { style: c()({}, s.tweenRefCSS[e]) }
1367
- : {
1368
- style: c()({}, s.tweenRefCSS[e]),
1369
- ref: h().function(o)
1370
- ? function ( t ) {
1371
- return s.refs[e] = o(t)
1372
- }
1373
- : o
1374
- ? function ( t ) {
1375
- return s.refs[e] = o.current = t
1376
- }
1377
- : function ( t ) {
1378
- return s.refs[e] = t
1379
- }
1380
- }
1381
- }, n.rmTweenRef = function ( e ) {
1382
- this._.tweenRefs[e] && (this._.tweenRefTargets.splice(this._.tweenRefTargets.indexOf(e), 1), delete this._.tweenRefs[e], delete this._.muxByTarget[e], delete this._.muxDataByTarget[e], delete this._.iMapOrigin[e], delete this._.tweenRefOrigin[e], delete this._.tweenRefCSS[e], delete this._.tweenRefMaps[e], delete this._.refs[e])
1383
- }, n.resetTweenable = function () {
1384
- for ( var e = this, t = this._, n = arguments.length, r = new Array(n), o = 0; o < n; o++ ) r[o] = arguments[o];
1385
- r.forEach((function ( n ) {
1386
- e.tweenRef(n, t.tweenRefOriginCss[n], t.iMapOrigin[n], null, null, null, !0)
1387
- })), this._updateTweenRefs()
1388
- }, n.updateRefStyle = function ( e, t, n ) {
1389
- var r, o = this, a = this._;
1390
- return he(e) && he(t) ? e.map((function ( e, r ) {
1391
- return o.updateRefStyle(e, t[r], n)
1392
- })) : he(e) ? e.map((function ( e ) {
1393
- return o.updateRefStyle(e, t, n)
1394
- })) : a.tweenRefMaps[e]
1395
- ? (r = H(t, a.tweenRefMaps[e], {}, a.muxDataByTarget[e], a.muxByTarget[e]), Object.assign(a.tweenRefCSS[e], r), Object.assign(a.tweenRefOriginCss[e], r), z(a.tweenRefMaps[e], a.tweenRefCSS[e], a.muxByTarget[e], a.muxDataByTarget[e], a.box), void this._updateTweenRef(e, !0))
1396
- : console.warn("React-Voodoo : Can't update styles of an unknown Node id '", e, "'")
1397
- }, n.getTweenableRef = function ( e ) {
1398
- try {
1399
- return this._.refs[e] && w().findDOMNode(this._.refs[e])
1400
- } catch ( t ) {
1401
- try {
1402
- return this._.refs[e]._.rootRef.current
1403
- } catch ( t ) {
1404
- return void console.warn("react-voodoo: Can't find voodooNode ", e, t)
1405
- }
1406
- }
1407
- }, n.getRootNode = function () {
1408
- try {
1409
- return this.getTweenableRef(this._.rootRef) || this.isMountedFromHook && this._.rootRef && this._.rootRef.current || w().findDOMNode(this)
1410
- } catch ( e ) {
1411
- return this._.rootRef && this._.rootRef.current
1412
- }
1413
- }, n.pushAnim = function ( e, n, r ) {
1414
- var o = this;
1415
- void 0 === r && (r = !0);
1416
- var a, i, s = this._, l = {};
1417
- if ( he(e)
1418
- ? a = e
1419
- : (a = e.anims, e.initial), a instanceof U || (a = V(a, l, this._.muxDataByTarget, this._.muxByTarget), a = new U(a, this._.tweenRefMaps), Object.keys(l).forEach((function ( e ) {
1420
- return o._.tweenRefMaps[e] && Object.assign(o._.tweenRefMaps[e], c()({}, l[e], o._.tweenRefMaps[e])) || (i = console.warn("react-voodoo : Can't find tween target ", e, " in ", t.displayName) || !0)
1421
- }))), !i ) return new Promise((function ( e ) {
1422
- a.run(o._.tweenRefMaps, (function () {
1423
- var t = o._.runningAnims.indexOf(a);
1424
- -1 != t && o._.runningAnims.splice(t, 1), Object.keys(l).forEach((function ( e ) {
1425
- Object.keys(l[e]).forEach((function ( t ) {
1426
- N(0, t, s.tweenRefMaps[e], s.tweenRefCSS[e], s.muxDataByTarget[e], s.muxByTarget[e], r)
1427
- }))
1428
- })), a.destroy(), e(a)
1429
- })), o._.runningAnims.push(a), o._.live || (o._.live = !0, requestAnimationFrame(o._._rafLoop = o._._rafLoop || o._rafLoop.bind(o)))
1430
- })).then((function ( e ) {
1431
- return n && n(e)
1432
- }))
1433
- }, n.applyTweenState = function ( e, t, n ) {
1434
- var r = this, o = {}, a = {};
1435
- H(t, o, a, this._.muxDataByTarget[e], this._.muxByTarget[e], !0), Object.keys(o).map((function ( t ) {
1436
- return r._.tweenRefMaps[e][t] = (!n && r._.tweenRefMaps[e][t] || a[t]) + o[t]
1437
- }))
1438
- }, n.initAxis = function ( e, t, n ) {
1439
- var r = this,
1440
- o = t.inertia,
1441
- a = t.scrollableArea,
1442
- i = void 0 === a ? 0 : a,
1443
- s = t.scrollableBounds,
1444
- l = t.scrollableWindow,
1445
- u = t.defaultPosition,
1446
- p = t.scrollFirst,
1447
- f = (this._, this.axes[e]),
1448
- d = s,
1449
- h = !n && f ? f.scrollPos : u || d && d.min || 0,
1450
- g = Math.max(f && f.scrollableArea || 0, i),
1451
- m = Math.max(f && f.scrollableWindow || 0, l),
1452
- x = f ? f.targetPos : h,
1453
- v = f ? f.inertia : new ce(c()({ disabled: !o }, o || {}, { value: h })),
1454
- y = {
1455
- scrollFirst: p,
1456
- tweenAxis: f && f.tweenAxis || [],
1457
- scrollPos: h,
1458
- targetPos: x,
1459
- inertia: v,
1460
- scrollableWindow: m,
1461
- scrollableBounds: d,
1462
- scrollableArea: g,
1463
- scrollTo: function ( t, n, o, a ) {
1464
- return r.scrollTo(t, n, e, o, a)
1465
- }
1466
- };
1467
- this.axes[e] = y, !o && (v._.disabled = !0), o && v && !v.active && (v._.pos = h), o && v && v.updateConf(o), v && d
1468
- ? null == v.setBounds || v.setBounds(d.min, d.max)
1469
- : v && (null == v.setBounds || v.setBounds(0, g))
1470
- }, n._getAxis = function ( e ) {
1471
- var t = this;
1472
- void 0 === e && (e = "scrollY");
1473
- var n = this._;
1474
- return this.axes[e] = this.axes[e] || {
1475
- tweenAxis: [],
1476
- scrollPos: n.options.initialScrollPos && n.options.initialScrollPos[e] || 0,
1477
- targetPos: 0,
1478
- scrollableWindow: 0,
1479
- scrollableArea: 0,
1480
- inertia: new ce(c()({ value: n.options.initialScrollPos && n.options.initialScrollPos[e] || 0 }, n.options.axes && n.options.axes[e] && n.options.axes[e].inertia || {})),
1481
- scrollTo: function ( n, r, o, a ) {
1482
- return t.scrollTo(n, r, e, o, a)
1483
- }
1484
- }, this.axes[e]
1485
- }, n.getAxisState = function ( e ) {
1486
- var t = this, n = (this._, {});
1487
- return this.axes && Object.keys(this.axes).forEach((function ( e ) {
1488
- return n[e] = t.axes[e].targetPos || t.axes[e].scrollPos
1489
- })), n
1490
- }, n.getScrollPos = function ( e ) {
1491
- return void 0 === e && (e = "scrollY"), this._, this.axes[e]
1492
- ? this.axes[e].targetPos || this.axes[e].scrollPos
1493
- : 0
1494
- }, n.scrollTo = function ( e, t, n, r, o ) {
1495
- var a = this;
1496
- void 0 === t && (t = 0), void 0 === n && (n = "scrollY");
1497
- var i = this._;
1498
- return de
1499
- ? new Promise((function ( s, l ) {
1500
- if ( a.axes && a.axes[n] ) {
1501
- var u, c, p, f, d, h, g, m, x, y = a.axes[n].targetPos, w = function ( e ) {
1502
- var t, r;
1503
- e = ~~(1e4 * e) / 1e4, a.axes[n].targetPos = a.axes[n].scrollPos = e, ~~e !== y && (a.axisDidScroll(~~e, n), null == (t = i.rootRef) || null == (r = t.current) || null == r.componentDidScroll || r.componentDidScroll(~~e, n)), a._updateTweenRefs()
1504
- };
1505
- if ( e = Math.max(0, e), e = Math.min(e, a.axes[n].scrollableArea || 0), a.axes[n].targetPos = e, t ) a._runScrollGoTo(n, e, t, v[r], o, w, s); else null == (u = a.axes) || null == (c = u[n]) || null == (p = c.inertia) || p.setPos(e), null != (f = a.axes) && null != (d = f[n]) && null != (h = d.inertia) && h._ && (e = null == (g = a.axes) || null == (m = g[n]) || null == (x = m.inertia)
1506
- ? void 0
1507
- : x._.pos), a.axes[n].tweenAxis.forEach((function ( t ) {
1508
- return t.goTo(e, i.tweenRefMaps, !1, o)
1509
- })), w(e), s();
1510
- i.live || (i.live = !0, requestAnimationFrame(i._rafLoop))
1511
- }
1512
- })).then((function ( e ) {
1513
- var t, r, o;
1514
- null == (t = a.axes) || null == (r = t[n]) || null == (o = r.inertia) || o._detectCurrentSnap()
1515
- }))
1516
- : (console.warn("React-voodoo : scrollTo can't be used serverside, use Axis defaultPosition prop to set initial axes position"), Promise.resolve())
1517
- }, n.addScrollableAnim = function ( e, t, n ) {
1518
- var r, o = this;
1519
- void 0 === t && (t = "scrollY");
1520
- var a, i = this._, s = {}, l = this._getAxis(t);
1521
- return he(e)
1522
- ? a = e
1523
- : (a = e.anims, e.length), a instanceof U || (a = V(a, s, this._.muxDataByTarget, this._.muxByTarget), (a = new U(a, i.tweenRefMaps)).initials = s, Object.keys(s).forEach((function ( e ) {
1524
- i.tweenRefOrigin[e] = i.tweenRefOrigin[e] || {}, i.tweenRefMaps[e] = i.tweenRefMaps[e] || {}, Object.assign(o._.tweenRefMaps[e], c()({}, s[e], o._.tweenRefMaps[e]))
1525
- }))), l.tweenAxis.push(a), l.scrollPos = l.scrollPos || 0, l.scrollableArea = l.scrollableArea || 0, l.scrollableArea = Math.max(l.scrollableArea, a.duration), l.scrollableBounds || null == (r = l.inertia) || r.setBounds(0, l.scrollableArea), a.goTo(l.scrollPos, this._.tweenRefMaps, !1, !0), this._updateTweenRefs(), a
1526
- }, n.rmScrollableAnim = function ( e, t ) {
1527
- void 0 === t && (t = "scrollY");
1528
- var n, r, o = this._, a = this._getAxis(t), i = a.tweenAxis.indexOf(e);
1529
- -1 !== i && (a.tweenAxis.splice(i, 1), a.scrollableArea = Math.max.apply(Math, a.tweenAxis.map((function ( e ) {
1530
- return e.duration
1531
- })).concat([0])), a.scrollableBounds || null == (r = a.inertia) || r.setBounds(0, a.scrollableArea || 0), e.goTo(0, this._.tweenRefMaps, !1, !0), Object.keys(e.initials).forEach((function ( t ) {
1532
- Object.keys(e.initials[t]).forEach((function ( e ) {
1533
- N(0, e, o.tweenRefMaps[t], o.tweenRefCSS[t], o.muxDataByTarget[t], o.muxByTarget[t])
1534
- }))
1535
- })), delete e.initials, e.destroy(), n = !0, this._updateTweenRefs()), !n && console.warn("react-voodoo: Axis not found : ", t)
1536
- }, n._runScrollGoTo = function ( e, t, n, r, o, a, i ) {
1537
- var s = this;
1538
- void 0 === r && (r = function ( e ) {
1539
- return e
1540
- });
1541
- var l = this.axes[e].scrollPos, u = t - l;
1542
- ge.push({
1543
- apply: function ( t, n ) {
1544
- var i, c, p, f, d, h, g, m, x, v = l + r(t / n) * u;
1545
- s._.tweenEnabled && (null == (i = s.axes) || null == (c = i[e]) || null == (p = c.inertia) || p.setPos(v), null != (f = s.axes) && null != (d = f[e]) && null != (h = d.inertia) && h._ && (v = null == (g = s.axes) || null == (m = g[e]) || null == (x = m.inertia)
1546
- ? void 0
1547
- : x._.pos), s.axes[e].tweenAxis.forEach((function ( e ) {
1548
- return e.goTo(v, s._.tweenRefMaps, !1, o)
1549
- })), a && a(v))
1550
- }, duration: n, cpos: 0, cb: i
1551
- }), pe || (pe = !0, fe = Date.now(), setTimeout(me, 16))
1552
- }, n.componentShouldScroll = function () {
1553
- var e, t = this._;
1554
- return !(t.rootRef && t.rootRef.current && t.rootRef.current.componentShouldScroll) || (e = t.rootRef.current).componentShouldScroll.apply(e, arguments)
1555
- }, n.watchAxis = function ( e, t ) {
1556
- var n = this._scrollWatcherByAxis;
1557
- return n[e] = n[e] || [], n[e].push(t), function () {
1558
- var r = n[e].indexOf(t);
1559
- n[e].splice(r, 1)
1560
- }
1561
- }, n.axisDidScroll = function ( e, t ) {
1562
- var n = this._scrollWatcherByAxis[t], r = null == n ? void 0 : n.length;
1563
- if ( n ) for ( ; r; ) n[--r](e)
1564
- }, n.applyInertia = function ( e, t ) {
1565
- var n, r, o = this, a = e.inertia.update(), i = this._;
1566
- this.axes[t].tweenAxis.forEach((function ( e ) {
1567
- o.axes[t].targetPos = o.axes[t].scrollPos = a, e.goTo(a, o._.tweenRefMaps)
1568
- })), null == (n = i.rootRef) || null == (r = n.current) || null == r.componentDidScroll || r.componentDidScroll(a, t), this.axisDidScroll(a, t), this._updateTweenRefs(), e.inertia.active || e.inertia.holding
1569
- ? e.inertiaFrame = setTimeout(this.applyInertia.bind(this, e, t), 33)
1570
- : e.inertiaFrame = null
1571
- }, n.isInertiaActive = function () {
1572
- var e = this, t = (this._, !1);
1573
- return this.axes && Object.keys(this.axes).forEach((function ( n ) {
1574
- return t = t || e.axes[n] && e.axes[n].inertia.active
1575
- })), t
1576
- }, n.isAxisOut = function ( e, t, n ) {
1577
- this._;
1578
- var r = this.axes && this.axes[e], o = n ? t : r && r.scrollPos + t;
1579
- return o = o && Math.round(o), !r || (r.scrollableBounds
1580
- ? o <= r.scrollableBounds.min || o >= r.scrollableBounds.max
1581
- : o <= 0 || o >= r.scrollableArea)
1582
- }, n._activateNodeInertia = function ( e ) {
1583
- var t = this._, n = t.activeInertia.findIndex((function ( t ) {
1584
- return t.target === e
1585
- }));
1586
- return -1 === n && (t.activeInertia.push({
1587
- inertia: {
1588
- x: new ce({
1589
- max: e.scrollWidth - e.offsetLeft,
1590
- value: e.scrollLeft
1591
- }),
1592
- y: new ce({
1593
- max: e.scrollHeight - e.offsetHeight,
1594
- value: e.scrollTop
1595
- })
1596
- }, target: e
1597
- }), n = t.activeInertia.length - 1), t.activeInertia[n].inertia
1598
- }, n.setRootRef = function ( e ) {
1599
- this._.rootRef = e
1600
- }, n._updateBox = function () {
1601
- var e = this.getRootNode();
1602
- e && (this._.box.inited = !0, this._.box.x = e.offsetWidth, this._.box.y = e.offsetHeight)
1603
- }, n._rafLoop = function () {
1604
- this._updateTweenRefs(), this._.runningAnims.length
1605
- ? requestAnimationFrame(this._._rafLoop)
1606
- : this._.live = !1
1607
- }, n._updateTweenRefs = function () {
1608
- if ( this._.tweenEnabled ) for ( var e, t = 0; t < this._.tweenRefTargets.length; t++ ) e = this._.tweenRefTargets[t], this._updateTweenRef(e)
1609
- }, n._updateTweenRef = function ( e, t ) {
1610
- var n, r = this._swap;
1611
- if ( this._.tweenRefCSS[e] && z(this._.tweenRefMaps[e], r, this._.muxByTarget[e], this._.muxDataByTarget[e], this._.box), n = this.getTweenableRef(e) ) {
1612
- for ( var o in this._.tweenRefCSS[e] ) void 0 === r[o] && (n.style[o] = this._.tweenRefCSS[e][o]);
1613
- for ( var a in r ) this._.tweenRefCSS[e].hasOwnProperty(a) && ((t || r[a] !== this._.tweenRefCSS[e][a]) && (n.style[a] = this._.tweenRefCSS[e][a] = r[a]), delete r[a])
1614
- }
1615
- return this._.tweenRefCSS[e]
1616
- }, n.componentWillUnmount = function () {
1617
- var t = this;
1618
- this.getRootNode(), this._.tweenEnabled && (this._.tweenEnabled = !1, window.removeEventListener("resize", this._.onResize), Object.keys(this.axes).forEach((function ( e ) {
1619
- t.axes[e].inertiaFrame && clearTimeout(t.axes[e].inertiaFrame)
1620
- }))), e.prototype.componentWillUnmount && e.prototype.componentWillUnmount.apply(this, arguments)
1621
- }, n.componentDidMount = function () {
1622
- var t = this, n = this.constructor;
1623
- this._.rendered = !0, this._.tweenEnabled && (this._updateBox(), this._updateTweenRefs()), n.scrollableAnim && (h().array(n.scrollableAnim)
1624
- ? this.addScrollableAnim(n.scrollableAnim)
1625
- : Object.keys(n.scrollableAnim).forEach((function ( e ) {
1626
- return t.addScrollableAnim(n.scrollableAnim[e], e)
1627
- }))), e.prototype.componentDidMount && e.prototype.componentDidMount.apply(this, arguments)
1628
- }, n.componentDidUpdate = function ( t, n ) {
1629
- this._.tweenEnabled && (this._updateBox(), this._updateTweenRefs()), e.prototype.componentDidUpdate && e.prototype.componentDidUpdate.apply(this, arguments)
1630
- }, n.render = function () {
1631
- var e = this, t = this.props, n = t.BaseComponent, r = t.oProps;
1632
- return i().createElement(g.Consumer, null, (function ( t ) {
1633
- return e._parentTweener = t, i().createElement(g.Provider, { value: e }, i().createElement(n, c()({}, r, {
1634
- ref: e._.rootRef,
1635
- tweener: e
1636
- })))
1637
- }))
1638
- }, t
1639
- }(i().Component),
1640
- ve = ["children"];
1641
- const ye = function ( e, t ) {
1642
- void 0 === t && (t = "div");
1643
- var n = i().useContext(g), r = i().useRef(), o = i().useRef(), a = i().useMemo((function () {
1644
- return !0 === e || h().string(e)
1645
- }), []), s = i().useMemo((function () {
1646
- if ( !0 === e ) return n;
1647
- if ( h().string(e) ) {
1648
- for ( var t = n; null != (o = t) && o._ && t._.options.name !== e; ) {
1649
- var o;
1650
- if ( !t._parentTweener ) {
1651
- console.warn('react-voodoo: No parent tweener found with option.key === "' + e + '"');
1652
- break
1653
- }
1654
- t = t._parentTweener
1655
- }
1656
- return t
1657
- }
1658
- var a = new xe({ forwardedRef: r, tweenerOptions: e });
1659
- return a.isMountedFromHook = !0, a._parentTweener = n, a
1660
- }), []), l = i().useMemo((function () {
1661
- return i().forwardRef((function ( e, n ) {
1662
- var o = e.children, a = f()(e, ve);
1663
- return i().createElement(g.Provider, { value: s }, i().createElement(t, c()({
1664
- ref: n
1665
- ? function ( e ) {
1666
- return n.current = r.current = e
1667
- }
1668
- : r
1669
- }, a), o))
1670
- }))
1671
- }), []);
1672
- return i().useEffect((function () {
1673
- var e;
1674
- if ( !a && null != (e = o.current) && e._ ) return s.componentDidMount(), o.current = s, function () {
1675
- var e;
1676
- null != (e = o.current) && e._ && (o.current.componentWillUnmount(), o.current = null)
1677
- }
1678
- }), []), i().useEffect((function () {
1679
- var e;
1680
- !a && null != (e = o.current) && e._ && (o.current._updateBox(), o.current._updateTweenRefs())
1681
- }), [r.current]), i().useEffect((function () {
1682
- var e;
1683
- !a && null != (e = o.current) && e._ && (o.current._parentTweener = n)
1684
- }), [n]), i().useEffect((function () {
1685
- var t;
1686
- !a && null != (t = o.current) && t._ && (o.current._.options = e, o.current._updateBox(), o.current._updateTweenRefs())
1687
- }), [e]), i().useMemo((function () {
1688
- return [s, l]
1689
- }), [l, s])
1690
- }, we = function ( e ) {
1691
- e.children;
1692
- var t = e.id,
1693
- n = e.axe,
1694
- r = void 0 === n ? t : n,
1695
- o = e.scrollFirst,
1696
- a = e.bounds,
1697
- s = e.scrollableWindow,
1698
- u = e.inertia,
1699
- c = e.size,
1700
- p = e.defaultPosition,
1701
- f = e.items,
1702
- d = void 0 === f ? [] : f,
1703
- h = i().useRef({}).current,
1704
- g = ye(!0)[0];
1705
- return h.previousAxis && h.previousAxis === r
1706
- ? h.previousInertia && h.previousInertia === u && h.previousBounds === a && h.previousScrollableWindow === s || (h.previousInertia = u, h.previousAxis = r, h.previousBounds = a, h.previousScrollableWindow = s, g.initAxis(r, {
1707
- inertia : u,
1708
- size : c,
1709
- scrollableWindow: s,
1710
- defaultPosition : p,
1711
- scrollFirst : o,
1712
- scrollableBounds: a
1713
- }))
1714
- : (h.previousAxis = r, h.previousInertia = u, g.initAxis(r, {
1715
- inertia: u,
1716
- size: c,
1717
- scrollableWindow: s,
1718
- defaultPosition: p,
1719
- scrollFirst: o,
1720
- scrollableBounds: a
1721
- }, !0)), h.previousTweener && h.previousTweener === g
1722
- ? h.previousTweens === d || h.previousTweens && l()(d, h.previousTweens) || (h.lastTL && h.previousTweener && h.previousTweener.rmScrollableAnim(h.lastTL, h.previousAxis), h.lastTL = null, d.length && (h.lastTL = g.addScrollableAnim(d, r, c)), h.previousTweens = d)
1723
- : (h.previousTweener && h.lastTL && h.previousTweener.rmScrollableAnim(h.lastTL, h.previousAxis), d.length && (h.lastTL = g.addScrollableAnim(d, r, c)), h.previousTweener = g, h.previousTweens = d), i().useEffect((function () {
1724
- return function () {
1725
- h.lastTL && h.previousTweener && h.previousTweener.rmScrollableAnim(h.lastTL, h.previousAxis), delete h.previousTweener, delete h.previousScrollable
1726
- }
1727
- }), []), i().createElement(i().Fragment, null)
1728
- }, be = require("shortid");
1729
- var _e = n.n(be);
1730
-
1731
- function Re( e ) {
1732
- return "function" == typeof e && !(e.prototype && e.prototype.isReactComponent)
1733
- }
1734
-
1735
- function Te( e ) {
1736
- return function ( e ) {
1737
- return "function" == typeof e && !!e.prototype.isReactComponent
1738
- }(e) || Re(e)
1739
- }
1740
-
1741
- var Se = ["children", "id", "style", "initial", "pos", "noRef", "reset", "tweener", "isRoot", "axes", "refProp", "tweenLines", "tweenAxis"],
1742
- Pe = ["children", "className"];
1743
-
1744
- function Ee( e, t ) {
1745
- return e.map((function ( e ) {
1746
- return c()({}, e, { target: t })
1747
- }))
1748
- }
1749
-
1750
- var De = i().forwardRef((function ( e, t ) {
1751
- var n = e.children,
1752
- r = e.id,
1753
- o = void 0 === r ? i().useMemo((function () {
1754
- return _e().generate()
1755
- }), []) : r,
1756
- a = e.style,
1757
- s = e.initial,
1758
- u = e.pos,
1759
- p = e.noRef,
1760
- d = (e.reset, e.tweener),
1761
- g = (e.isRoot, e.axes),
1762
- m = e.refProp,
1763
- x = void 0 === m ? "nodeRef" : m,
1764
- v = e.tweenLines,
1765
- y = void 0 === v ? g : v,
1766
- w = e.tweenAxis,
1767
- b = void 0 === w ? y : w,
1768
- _ = f()(e, Se),
1769
- R = i().useRef({}).current,
1770
- T = ye(!0)[0];
1771
- if ( !(T = d || T) ) return console.error("No Voodoo tweener found in the context, is there any parent ViewBox ?"), i().createElement(i().Fragment, null);
1772
- var S, P = T.tweenRef(o, n.props && n.props.style, a || s, u, t, p);
1773
- i().useEffect((function () {
1774
- return function () {
1775
- R._tweenAxisObj && Object.keys(R._tweenAxisObj).forEach((function ( e ) {
1776
- return R._currentTweener.rmScrollableAnim(R._tweenAxisObj[e], e)
1777
- })), R._currentTweener && (R._currentTweener.rmTweenRef(R.__tweenableId), R._currentTweener.setRootRef(void 0)), delete R._currentTweener, delete R._tweenAxisObj, delete R._previousScrollable
1778
- }
1779
- }), []), (S = R._tweenAxis !== b && !(R._tweenAxis && l()(b, R._tweenAxis)) || b && !R._tweenAxis) || R._currentTweener !== T || R._previousScrollable !== b
1780
- ? (R._currentTweener && S && R._tweenAxisObj && Object.keys(R._tweenAxisObj).forEach((function ( e ) {
1781
- return R._currentTweener.rmScrollableAnim(R._tweenAxisObj[e], e)
1782
- })), R._currentTweener && R._currentTweener !== T && R._currentTweener.rmTweenRef(o), S && (R._tweenAxis = b, b && h().array(b)
1783
- ? R._tweenAxisObj = { scrollY: T.addScrollableAnim(Ee(b, o)) }
1784
- : R._tweenAxisObj = b && Object.keys(b).reduce((function ( e, t ) {
1785
- return e[t] = T.addScrollableAnim(Ee(b[t], o), t), e
1786
- }), {}), P = T.tweenRef(o, n.props && n.props.style, a || s, u, t, p)), P.style = c()({}, T._updateTweenRef(o, !0)), _.hasOwnProperty("isRoot") && (R._currentTweener && R._currentTweener.setRootRef(void 0), d.setRootRef(o)), R._currentTweener = T, R._previousScrollable = b)
1787
- : P && (P.style = c()({}, T._updateTweenRef(o, !0)));
1788
- var E, D = i().Children.only(n);
1789
- return D && i().isValidElement(D)
1790
- ? (R._lastRef = P, Re(D.type)
1791
- ? i().createElement(D.type, c()({}, _, D.props, P, { ref: void 0 }, ((E = {})[x] = P.ref, E)))
1792
- : i().createElement(D.type, c()({}, _, D.props, P)))
1793
- : (console.error("Invalid voodoo Node child : ", o), i().createElement("div", null, "Invalid"))
1794
- }));
1795
- const Me = De;
1796
- De.div = i().forwardRef((function ( e, t ) {
1797
- var n = e.children, r = e.className, o = f()(e, Pe);
1798
- return i().createElement(De, c()({}, o, { ref: t }), i().createElement("div", { className: r }, n))
1799
- }));
1800
- var Oe = ["children", "Comp", "nodeRef", "items", "xAxis", "yAxis", "yBoxRef", "xBoxRef", "yRef", "yHook", "xHook", "tweener", "mouseDrag", "touchDrag", "button"],
1801
- Ae = i().forwardRef((function ( e, t ) {
1802
- var n = e.children,
1803
- r = e.Comp,
1804
- o = void 0 === r ? "div" : r,
1805
- a = e.nodeRef,
1806
- s = (e.items, e.xAxis),
1807
- l = e.yAxis,
1808
- u = e.yBoxRef,
1809
- p = e.xBoxRef,
1810
- d = (e.yRef, e.yHook),
1811
- g = e.xHook,
1812
- m = e.tweener,
1813
- x = e.mouseDrag,
1814
- v = void 0 !== x && x,
1815
- y = e.touchDrag,
1816
- w = void 0 === y || y,
1817
- b = e.button,
1818
- _ = void 0 === b ? 0 : b,
1819
- R = f()(e, Oe),
1820
- T = i().useRef(),
1821
- S = i().useRef({ root: T, _: {} }).current,
1822
- P = ye(!0)[0],
1823
- E = i().useMemo((function () {
1824
- return {
1825
- getScrollableNodes: function ( e ) {
1826
- for ( var t = [], n = S._parentTweener; n; ) t.push(n), n = n._parentTweener;
1827
- return t
1828
- }, _registerScrollListeners: function () {
1829
- var e,
1830
- t,
1831
- n,
1832
- r,
1833
- o,
1834
- a,
1835
- i,
1836
- s,
1837
- l,
1838
- u = null == (e = S.root) ? void 0 : e.current,
1839
- c = S.props,
1840
- p = c.xAxis,
1841
- f = c.yAxis,
1842
- d = c.yHook,
1843
- h = c.xHook,
1844
- g = c.mouseDrag,
1845
- m = c.touchDrag,
1846
- x = c.tweener,
1847
- v = c.xBoxRef,
1848
- y = c.yBoxRef,
1849
- w = c.button,
1850
- b = x._;
1851
- u ? (te.addEvent(u, S._.dragList = {
1852
- dragstart: function ( e, n, c ) {
1853
- var d, h, g, m;
1854
- if ( !(e instanceof MouseEvent && e.button !== w) ) for ( o = E.getScrollableNodes(e.target), t = Date.now(), r = 0, a = 0, i = [], s = null == (d = (null == v
1855
- ? void 0
1856
- : v.current) || u)
1857
- ? void 0
1858
- : d.offsetWidth, l = null == (h = (null == y
1859
- ? void 0
1860
- : y.current) || u)
1861
- ? void 0
1862
- : h.offsetHeight, m = 0; m < o.length; m++ ) {
1863
- var x, b;
1864
- (g = o[m])._updateBox(), g.__isTweener && (p && (null == (x = g.axes) || x[p]), f && (null == (b = g.axes) || b[f]), g._updateNodeInertia())
1865
- }
1866
- }, click: function ( e, n, o ) {
1867
- e instanceof MouseEvent && e.button !== w || t && (t - Date.now() > b.options.maxClickTm || Math.abs(a) > b.options.maxClickOffset || Math.abs(r) > b.options.maxClickOffset) && (e.preventDefault(), e.stopPropagation())
1868
- }, drag: function ( e, u, c ) {
1869
- var g, m, x, _, R, T, S, P, E, D;
1870
- if ( !(e instanceof MouseEvent && e.button !== w || (r = -(c._lastPos.x - c._startPos.x), a = -(c._lastPos.y - c._startPos.y), t && t > Date.now() - b.options.maxClickTm && Math.abs(a) < b.options.maxClickOffset && Math.abs(r) < b.options.maxClickOffset)) ) for ( _ = !r, P = !a, b.options.dragDirectionLock && ("Y" === n || !n && Math.abs(.5 * a) > Math.abs(r)
1871
- ? (n = "Y", r = 0)
1872
- : ("X" === n || !n && Math.abs(.5 * r) > Math.abs(a)) && (n = "X", a = 0)), D = 0; D < o.length; D++ ) if ( (g = o[D]).__isTweener ) {
1873
- var M, O, A, B, k, C, I, L, W, j, F, N, z, H;
1874
- if ( m = p && (null == (M = g.axes)
1875
- ? void 0
1876
- : M[p]), T = f && (null == (O = g.axes)
1877
- ? void 0
1878
- : O[f]), !m && !T ) continue;
1879
- i[D] || (i[D] = {
1880
- x: null == (I = m) ? void 0 : I.scrollPos,
1881
- y: null == (L = T) ? void 0 : L.scrollPos
1882
- }, null == (W = m) || null == (j = W.inertia) || j.startMove(), null == (F = T) || null == (N = F.inertia) || N.startMove(), p && m && (null == (z = m) || !z.inertiaFrame) && g.applyInertia(m, p), f && T && (null == (H = T) || !H.inertiaFrame) && g.applyInertia(T, f)), m && (R = null != v && v.current
1883
- ? s
1884
- : g._.box.x, x = r && r / R * (m.scrollableWindow || m.scrollableArea) || 0, h && (x = h(x))), T && (E = null != y && y.current
1885
- ? l
1886
- : g._.box.y, S = a && a / E * (T.scrollableWindow || T.scrollableArea) || 0, d && (S = d(S))), m && !_ && x && null != (A = m) && null != (B = A.inertia) && B.isInbound(i[D].x + x) && g.componentShouldScroll(p, x) && (m.inertia.hold(i[D].x + x), _ = !0), T && !P && S && null != (k = T) && null != (C = k.inertia) && C.isInbound(i[D].y + S) && g.componentShouldScroll(f, S) && (T.inertia.hold(i[D].y + S), P = !0)
1887
- }
1888
- }, dropped: function ( e, s, l ) {
1889
- var u, c;
1890
- if ( !(e instanceof MouseEvent && e.button !== w) ) {
1891
- for ( n = void 0, c = 0; c < o.length; c++ ) {
1892
- var d, h, g, m, x, v;
1893
- (u = o[c]).__isTweener && i[c] && (null == (d = u.axes) || null == (h = d[p]) || null == (g = h.inertia) || g.release(), null == (m = u.axes) || null == (x = m[f]) || null == (v = x.inertia) || v.release())
1894
- }
1895
- !t || t > Date.now() - b.options.maxClickTm && Math.abs(a) < b.options.maxClickOffset && Math.abs(r) < b.options.maxClickOffset || (e.stopPropagation(), e.cancelable && e.preventDefault()), o = i = null
1896
- }
1897
- }
1898
- }, null, b.options.enableMouseDrag || g, m), S._.doRegister = !!u) : S._.doRegister = !0
1899
- }
1900
- }
1901
- }), []);
1902
- return i().useEffect((function () {
1903
- return E._registerScrollListeners(), function () {
1904
- var e, t = null == (e = S.root) ? void 0 : e.current;
1905
- S._.scrollEnabled && (S._.scrollEnabled = !1, t && S._.dragList && te.removeEvent(t, S._.dragList))
1906
- }
1907
- }), []), i().useEffect((function () {
1908
- h().function(a) && a(T.current), h().function(t) ? t(T.current) : t && (t.current = T.current)
1909
- })), S.props = {
1910
- xAxis: s,
1911
- yAxis: l,
1912
- yHook: d,
1913
- xHook: g,
1914
- mouseDrag: v,
1915
- touchDrag: w,
1916
- tweener: m || P,
1917
- xBoxRef: p,
1918
- yBoxRef: u,
1919
- button: _
1920
- }, S._parentTweener = P, i().createElement(o, c()({ ref: T }, R), n)
1921
- }));
1922
- const Be = Ae;
1923
- Ae.div = function ( e ) {
1924
- return i().createElement(Ae, e)
1925
- };
1926
- const ke = function () {
1927
- return i().useContext(g)
1928
- };
1929
- var Ce = {}.constructor;
1930
-
1931
- function Ie() {
1932
- for ( var e = arguments.length, t = new Array(e), n = 0; n < e; n++ ) t[n] = arguments[n];
1933
- var r = (!t[0] || Te(t[0])) && t.shift(), o = (!t[0] || t[0] instanceof Ce) && t.shift() || {};
1934
- if ( !r ) return function ( e ) {
1935
- return Ie(e, o)
1936
- };
1937
- o = c()({ wheelRatio: 5, maxClickTm: 200, maxClickOffset: 20 }, o);
1938
- var a = i().forwardRef((function ( e, t ) {
1939
- return i().createElement(xe, { oProps: e, forwardedRef: t, BaseComponent: r, tweenerOptions: o })
1940
- }));
1941
- return a.displayName = String.fromCharCode(55358, 56793) + (r.displayName || r.name), a
1942
- }
1943
-
1944
- var Le, We = {}.constructor;
1945
-
1946
- function je() {
1947
- for ( var e = arguments.length, t = new Array(e), n = 0; n < e; n++ ) t[n] = arguments[n];
1948
- var r = (!t[0] || Te(t[0])) && t.shift(), a = (!t[0] || t[0] instanceof We) && t.shift() || {};
1949
- if ( !r || !(r.prototype instanceof i().Component || r === i().Component) ) return function ( e ) {
1950
- return je(e, a)
1951
- };
1952
- var s = function ( e ) {
1953
- function t() {
1954
- return e.apply(this, arguments) || this
1955
- }
1956
-
1957
- return o()(t, e), t.prototype.render = function () {
1958
- var e = this;
1959
- return i().createElement(g.Consumer, null, (function ( t ) {
1960
- return i().createElement(r, c()({}, e.props, { tweener: t, ref: e.props.forwardedRef }))
1961
- }))
1962
- }, t
1963
- }(i().Component);
1964
- s.displayName = r.displayName || r.name;
1965
- var l = i().forwardRef((function ( e, t ) {
1966
- return i().createElement(s, c()({}, e, { forwardedRef: t }))
1967
- }));
1968
- return l.displayName = s.displayName, l
1969
- }
1970
-
1971
- $().EasingFunctions = v;
1972
- var Fe = Ie(Le = function ( e ) {
1973
- function t() {
1974
- return e.apply(this, arguments) || this
1975
- }
1976
-
1977
- return o()(t, e), t.prototype.render = function () {
1978
- return this.props.children
1979
- }, t
1980
- }(i().Component)) || Le;
1981
- const Ne = {
1982
- tweener : Ie,
1983
- child : je,
1984
- useTweener: ke,
1985
- useVoodoo : ye,
1986
- hook : ye,
1987
- tools : e,
1988
- Draggable : Be,
1989
- Component : Fe,
1990
- Node : Me,
1991
- Context : g,
1992
- Axis : we,
1993
- dom : te
1994
- }
1995
- })(), module.exports = r
1996
- })();
1997
- //# sourceMappingURL=react-voodoo.js.map
2
+ (()=>{var e={253:e=>{e.exports={walknSetExport:function(e,t,r){var n,o,i=t.split("/"),a=e;for(n=0;n<i.length-1;)a=a[i[n]]=a[i[n]]||{},n++;o=1===Object.keys(r).length&&r.default||r,a[i[n]]?(a[i[n]].__esModule||Object.assign(o,a[i[n]]),a[i[n]]=o):a[i[n]]=o}}},821:(e,t,r)=>{"use strict";r.d(t,{Bw:()=>l,CG:()=>p,ai:()=>u,bz:()=>i,lc:()=>a,m3:()=>c,yW:()=>s});var n={},o=r(253).walknSetExport;o(n,"any",r(592)),o(n,"bool",r(724)),o(n,"color",r(494)),o(n,"multi",r(835)),o(n,"ratio",r(497)),o(n,"length",r(48)),o(n,"number",r(125)),o(n,"shadow",r(464));var i=n.any,a=n.bool,s=n.color,l=n.length,c=n.multi,u=n.number,p=n.ratio},573:(e,t,r)=>{"use strict";r.d(t,{$U:()=>a,FK:()=>i,J0:()=>l,MD:()=>o,Tl:()=>s,VP:()=>c,xk:()=>n});var n={margin:{properties:["marginTop","marginRight","marginBottom","marginLeft"],multiple:!0},marginBottom:{types:["length"]},marginLeft:{types:["length"]},marginRight:{types:["length"]},marginTop:{types:["length"]},padding:{properties:["paddingTop","paddingRight","paddingBottom","paddingLeft"],multiple:!0},paddingBottom:{types:["length"]},paddingLeft:{types:["length"]},paddingRight:{types:["length"]},paddingTop:{types:["length"]},bottom:{types:["length-percentage-calc"]},left:{types:["length-percentage-calc"]},right:{types:["length-percentage-calc"]},top:{types:["length-percentage-calc"]},zIndex:{types:["integer"]},width:{types:["length-percentage-calc"]},maxWidth:{types:["length-percentage-calc"]},minWidth:{types:["length-percentage-calc"]},height:{types:["length-percentage-calc"]},maxHeight:{types:["length-percentage-calc"]},minHeight:{types:["length-percentage-calc"]},lineHeight:{types:["length"]},verticalAlign:{types:["length"]},visibility:{types:["visibility"]},borderSpacing:{types:["length"],multiple:!0},color:{types:["color"]},opacity:{types:["number"]},backgroundColor:{types:["color"]},backgroundPosition:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},backgroundSize:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},border:{properties:["borderStyle","borderWidth","borderColor"]},borderBottom:{properties:["borderBottomStyle","borderBottomWidth","borderBottomColor"]},borderLeft:{properties:["borderLeftStyle","borderLeftWidth","borderLeftColor"]},borderRight:{properties:["borderRightStyle","borderRightWidth","borderRightColor"]},borderTop:{properties:["borderTopStyle","borderTopWidth","borderTopColor"]},borderColor:{properties:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]},borderWidth:{properties:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"]},borderBottomColor:{types:["color"]},borderLeftColor:{types:["color"]},borderRightColor:{types:["color"]},borderTopColor:{types:["color"]},borderBottomWidth:{types:["length"]},borderLeftWidth:{types:["length"]},borderRightWidth:{types:["length"]},borderTopWidth:{types:["length"]},borderRadius:{properties:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"]},borderTopLeftRadius:{types:["length-percentage-calc"],multiple:!0},borderTopRightRadius:{types:["length-percentage-calc"],multiple:!0},borderBottomRightRadius:{types:["length-percentage-calc"],multiple:!0},borderBottomLeftRadius:{types:["length-percentage-calc"],multiple:!0},boxShadow:{types:["shadow-list"]},caretColor:{types:["color"]},outline:{properties:["outlineColor","outlineWidth"]},outlineColor:{types:["color"]},outlineWidth:{types:["length"]},outlineOffset:{types:["length"]},flex:{properties:["flexGrow","flexShrink","flexBasis"]},flexGrow:{types:["number"]},flexShrink:{types:["number"]},flexBasis:{types:["length-percentage-calc"]},order:{types:["integer"]},font:{properties:["fontWeight","fontStretch","fontSize","lineHeight"]},fontWeight:{types:["font-weight"]},fontStretch:{types:["font-stretch"]},fontSize:{types:["length"]},fontSizeAdjust:{types:["number"]},gridTemplateColumns:{types:["length-percentage-calc"],multiple:!0},gridTemplateRows:{types:["length-percentage-calc"],multiple:!0},gridTemplate:{properties:["gridTemplateRows","gridTemplateColumns"]},grid:{properties:["gridTemplateRows","gridTemplateColumns"]},gridRowGap:{types:["length-percentage-calc"]},gridColumnGap:{types:["length-percentage-calc"]},gridGap:{properties:["gridRowGap","gridColumnGap"]},clip:{types:["rectangle"]},clipPath:{types:["basic-shape"]},mask:{properties:["maskPosition","maskSize"]},maskPosition:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},maskSize:{types:["length-percentage-calc"],multiple:!0,repeatable:!0},shapeOutside:{types:["basic-shape"]},shapeMargin:{types:["length-percentage-calc"]},shapeImageThreshold:{types:["number"]},scrollPadding:{properties:["scrollPaddingTop","scrollPaddingRight","scrollPaddingBottom","scrollPaddingLeft"]},scrollPaddingTop:{types:["length-percentage-calc"]},scrollPaddingRight:{types:["length-percentage-calc"]},scrollPaddingBottom:{types:["length-percentage-calc"]},scrollPaddingLeft:{types:["length-percentage-calc"]},scrollPaddingBlock:{properties:["scrollPaddingBlockStart","scrollPaddingBlockEnd"]},scrollPaddingBlockStart:{types:["length-percentage-calc"]},scrollPaddingBlockEnd:{types:["length-percentage-calc"]},scrollPaddingInline:{properties:["scrollPaddingInlineStart","scrollPaddingInlineEnd"]},scrollPaddingInlineStart:{types:["length-percentage-calc"]},scrollPaddingInlineEnd:{types:["length-percentage-calc"]},scrollSnapMargin:{properties:["scrollSnapMarginTop","scrollSnapMarginRight","scrollSnapMarginBottom","scrollSnapMarginLeft"]},scrollSnapMarginTop:{types:["length"]},scrollSnapMarginRight:{types:["length"]},scrollSnapMarginBottom:{types:["length"]},scrollSnapMarginLeft:{types:["length"]},scrollSnapMarginBlock:{properties:["scrollSnapMarginBlockStart","scrollSnapMarginBlockEnd"]},scrollSnapMarginBlockStart:{types:["length"]},scrollSnapMarginBlockEnd:{types:["length"]},scrollSnapMarginInline:{properties:["scrollSnapMarginInlineStart","scrollSnapMarginInlineEnd"]},scrollSnapMarginInlineStart:{types:["length"]},scrollSnapMarginInlineEnd:{types:["length"]},textDecoration:{properties:["textDecorationColor"]},textDecorationColor:{types:["color"]},textEmphasis:{properties:["textEmphasisColor"]},textEmphasisColor:{types:["color"]},textShadow:{types:["shadow-list"]},columns:{properties:["columnWidth","columnCount"]},columnWidth:{types:["length"]},columnCount:{types:["integer"]},columnGap:{types:["length-percentage-calc"]},columnRule:{properties:["columnRuleColor","columnRuleWidth"]},columnRuleColor:{types:["color"]},columnRuleWidth:{types:["length"]},letterSpacing:{types:["length"]},tabSize:{types:["length"]},textIndent:{types:["length-percentage-calc"]},wordSpacing:{types:["length-percentage-calc"]},transform:{types:["transform"]},transformOrigin:{types:["length-percentage-calc"],multiple:!0},perspective:{types:["length"]},perspectiveOrigin:{types:["length-percentage-calc"],multiple:!0}},o=["","deg","box","bz","bh","bw","deg","em","ex","%","px","cm","mm","in","pt","pc","ch","rem","vh","vw","vmin","vmax"],i=new RegExp("([+-]?(?:[0-9]*[.])?[0-9]+)\\s*("+["\\w+","deg","bz","bh","bw","cap","ch","deg","em","ic","ex","%","px","cm","mm","in","pt","pc","ch","rem","vh","vw","vmin","vmax"].join("|")+")"),a=function(){return Number((arguments.length>0&&void 0!==arguments[0]?arguments[0]:0).toFixed(3))};function s(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n[e],i=o&&o.properties,a=t.split(" ");return o.multiple?i&&i.forEach((function(e,t){r[e]=a[t%a.length]})):i&&i.forEach((function(e,t){a[t]&&(r[e]=a[t])})),r}function l(e){var t=n[e],r=t&&t.properties;return r&&!!r.length}function c(e,t){return!!n[e]}},90:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>n.demux,mux:()=>n.mux,release:()=>n.release});var n=r(494)},504:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>n.demux,demuxOne:()=>n.demuxOne,mux:()=>n.mux,muxOne:()=>n.muxOne,release:()=>n.release});var n=r(464)},479:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>g,demuxOne:()=>d,mux:()=>v,muxOne:()=>h,release:()=>f});var n=r(116),o=r.n(n),i=r(92),a=r.n(i),s=r(573);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u={blur:"px",brightness:"%",contrast:"%",dropShadow:!0,grayscale:"%",hueRotate:"deg",invert:"%",opacity:"%",saturate:"%",sepia:"%"},p={};function f(e,t,r,n,o,i){var a,s=e.split("_");if(4===s.length){if(--n[s[0]][s[1]][s[2]]||i||delete n[s[0]][s[1]][s[2]],!i)for(;n[s[0]].length&&!n[s[0]][n[s[0]].length-1];)n[s[0]].pop();if(--n[a=s[0]+"_"+s[1]+"_"+s[2]][s[3]]||i||(delete n[a][s[3]],delete t[e]),!i)for(;n[a].length&&!n[a][n[a].length-1];)n[a].pop();0!==n[a].length||i||delete n[a],0!==n[s[0]].length||i||(delete n[s[0]],delete o[s[0]],delete r[s[0]])}else console.log("wtf",s)}function d(e,t,r,n,o,i){var a=r,l=s.MD[e]||u[n];return"bw"===l&&(a*=i.x,l="px"),"wh"===l&&(a*=i.y,l="px"),"bz"===l&&(a*=i.z,l="px"),"deg"===l&&(a%=360),l?(0,s.$U)(a)+l:(0,s.$U)(a)}function g(e,t,r,n,o){for(var i,a,s,l,c,u,p="",f=0,g=0;f<n[e].length;f++)for(a in i=n[e][f])if(i.hasOwnProperty(a)){for(l=e+"_"+f+"_"+a,u="",g=0,s=0;s<n[l].length;s++)n[l][s]&&(c=d(s,0,t[l+"_"+s],a,0,o),g&&"-"===c[0]?c=" - "+c.substr(1):g&&(c=" + "+c),u+=c,g++);g>1&&(u="calc("+u+")"),g>0&&(p+=a+"("+(u||"0")+") ")}r.filter=p}function h(e,t,r,n,o,i,l,c){var f=!!a().string(r)&&r.match(s.FK),d=f&&f[2]||u[t],h=s.MD.indexOf(d),v=-1!==h&&e+"_"+h||e;return i[v]=p[t]||0,o[e][h]=o[e][h]||0,c&&c[h]?n[v]+=f?parseFloat(f[1]):parseFloat(r):(!l&&o[e][h]++,n[v]=f?parseFloat(f[1]):parseFloat(r),c&&(c[h]=!0)),g}var v=function(e,t,r,n,o,i,s){n[e]=n[e]||[],a().array(t)||(t=[t]);for(var l,u,p,f,d,v,y,m=0;m<t.length;m++){for(u in l=t[m],p=s?{}:c({},n[e][m]||{}),l)if(l.hasOwnProperty(u))if(f=l[u],y={},d=e+"_"+m+"_"+u,p[u]=p[u]||n[e][m]&&n[e][m][u]||0,!i&&p[u]++,n[d]=n[d]||[],a().array(f))for(v=0;v<f.length;v++)h(d,u,f[v]||0,r,n,o,i,y);else h(d,u,f||0,r,n,o,i);n[e][m]=s?c(c(c({},p),n[e][m]||{}),p):p}return g}},402:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>n.demux,demuxOne:()=>n.demuxOne,mux:()=>n.mux,muxOne:()=>n.muxOne,release:()=>n.release});var n=r(464)},841:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>h,demuxOne:()=>g,mux:()=>y,muxOne:()=>v,release:()=>d});var n=r(116),o=r.n(n),i=r(92),a=r.n(i),s=r(573);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u={translateX:"px",translateY:"px",translateZ:"px",scale:"",scaleZ:"",scaleX:"",scaleY:"",rotate:"deg",skewX:"deg",skewY:"deg",rotateX:"deg",rotateY:"deg",rotateZ:"deg",perspective:"px"},p={translateX:"x",translateY:"y",translateZ:"z",rotateX:"x",rotateY:"y",rotateZ:"z",left:"x",right:"x",top:"y",bottom:"y",width:"x",height:"y"},f={scale:1,scaleX:1,scaleY:1,scaleZ:1};function d(e,t,r,n,o,i){var a,s=e.split("_");if(4===s.length){if(--n[s[0]][s[1]][s[2]]||i||delete n[s[0]][s[1]][s[2]],!i)for(;n[s[0]].length&&!n[s[0]][n[s[0]].length-1];)n[s[0]].pop();if(--n[a=s[0]+"_"+s[1]+"_"+s[2]][s[3]]||i||(delete n[a][s[3]],delete t[e]),!i)for(;n[a].length&&!n[a][n[a].length-1];)n[a].pop();0!==n[a].length||i||delete n[a],0!==n[s[0]].length||i||(delete n[s[0]],delete o[s[0]],delete r[s[0]])}else console.log("wtf",s)}function g(e,t,r,n,o,i){var a=r,l=s.MD[e]||u[n];return"box"===l&&(a*=i[p[n]]||i.x,l="px"),"bw"===l&&(a*=i.x,l="px"),"wh"===l&&(a*=i.y,l="px"),"bz"===l&&(a*=i.z,l="px"),"deg"===l&&(a%=360),l?(0,s.$U)(a)+l:(0,s.$U)(a)}function h(e,t,r,n,o){for(var i,a,s,l,c,u,p="",f=0,d=0;f<n[e].length;f++)for(a in i=n[e][f])if(i.hasOwnProperty(a)){for(l=e+"_"+f+"_"+a,u="",d=0,s=0;s<n[l].length;s++)n[l][s]&&(c=g(s,0,t[l+"_"+s],a,0,o),d&&"-"===c[0]?c=" - "+c.substr(1):d&&(c=" + "+c),u+=c,d++);d>1&&(u="calc("+u+")"),d>0&&(p+=a+"("+(u||"0")+") ")}r.transform=p}function v(e,t,r,n,o,i,l,c){var p=!!a().string(r)&&r.match(s.FK),d=p&&p[2]||u[t],g=s.MD.indexOf(d),v=-1!==g&&e+"_"+g||e;return i[v]=f[t]||0,o[e][g]=o[e][g]||0,c&&c[g]?n[v]+=p?parseFloat(p[1]):parseFloat(r):(!l&&o[e][g]++,n[v]=p?parseFloat(p[1]):parseFloat(r),c&&(c[g]=!0)),h}var y=function(e,t,r,n,o,i,s){if(n[e]=n[e]||[],!a().array(t)&&!a().object(t))return console.warn("React-Voodoo: Ignore unexpected value ",e,":",t," on ",r),h;a().array(t)||(t=[t]);for(var l,u,p,f,d,g,y,m=0;m<t.length;m++){for(u in l=t[m],p=s?{}:c({},n[e][m]||{}),l)if(l.hasOwnProperty(u))if(f=l[u],y={},d=e+"_"+m+"_"+u,p[u]=p[u]||n[e][m]&&n[e][m][u]||0,!i&&p[u]++,n[d]=n[d]||[],a().array(f))for(g=0;g<f.length;g++)v(d,u,f[g]||0,r,n,o,i,y);else v(d,u,f||0,r,n,o,i);n[e][m]=s?c(c(c({},p),n[e][m]||{}),p):p}return h}},592:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>p,demuxOne:()=>u,mux:()=>g,muxOne:()=>d,muxer:()=>f,release:()=>c});var n=r(92),o=r.n(n),i=r(573),a={left:"px",right:"px",top:"px",bottom:"px",width:"px",height:"px",perspective:"px"},s={left:"x",right:"x",top:"y",bottom:"y",width:"x",height:"y"},l={opacity:0};function c(e,t,r,n,o,i){var a=e.split("_");if(2===a.length){if(--n[a[0]][a[1]]||i||delete t[e],!i)for(;n[a[0]].length&&!n[a[0]][n[a[0]].length-1];)n[a[0]].pop();0!==n[a[0]].length||i||(delete n[a[0]],delete o[a[0]],r&&delete r[a[0]])}else console.log("wtf",a)}function u(e,t,r,n,o){var l=t,c=i.MD[e]||a[r]||"px";return"box"===c&&(l*=o[s[r]]||o.x,c="px"),"bw"===c&&(l*=o.x,c="px"),"bh"===c&&(l*=o.y,c="px"),"bz"===c&&(l*=o.z,c="px"),c?(0,i.$U)(l)+c:(0,i.$U)(l)}function p(e,t,r,n,o,i){var a,s,l,c=0;if(a="",n[e].isString)return r[e]=n[e].value,n[e].value;for(s=0;s<n[e].length;s++)n[e][s]&&(t[l=e+"_"+s]<0?a+=(c?" - ":"-")+u(s,-t[l],i||e,0,o):a+=(c?" + ":"")+u(s,t[l],i||e,0,o),c++);return c>1&&(a="calc("+a+")"),r?r[e]=a:a}function f(e,t,r,n,i,a){n[e]=n[e]||[];var s=[];if(o().array(t))for(var l=0;l<t.length;l++)d(e,t[l]||0,r,n,i,a,s);else d(e,t||0,r,n,i,a);return p}function d(e,t,r,n,s,c,u){var f=!!o().string(t)&&t.match(i.FK),d=f&&f[2]||a[e]||"px",g=i.MD.indexOf(d),h=-1!==g&&e+"_"+g||e;return s[h]=l[e]||0,n[e][g]=n[e][g]||0,!f&&o().string(t)?(n[e].isString=!0,n[e].value=t,p):(u&&u[g]?r[h]+=f?parseFloat(f[1]):parseFloat(t):(!c&&n[e][g]++,r[h]=f?parseFloat(f[1]):parseFloat(t),u&&(u[g]=!0)),p)}var g=f},724:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>i,mux:()=>a,release:()=>o});var n={opacity:1};function o(e,t,r,n,o,i){--n[e]||i||(delete t[e],delete n[e],delete o[e],delete r[e])}function i(e,t,r,n,o){var i=!!t[e];return r?r[e]=i:i}var a=function(e,t,r,o,a,s){return a[e]=n[e]||0,r[e]=!1===t?0:1,o[e]=o[e]||0,!s&&o[e]++,i}},494:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>a,mux:()=>s,release:()=>i});const n=require("color-rgba");var o=r.n(n);function i(e,t,r,n,o,i){var a=e.split("_"),s=a.slice(0,a.length-1).join("_");--n[e]||i||(delete t[e],delete n[e]),--n[s]||i||(delete t[e],delete n[e])}function a(e,t,r,n){var o="rgba("+t[e+"_r"]+", "+t[e+"_g"]+", "+t[e+"_b"]+", "+t[e+"_a"]+")";return r?r[e]=o:o}function s(e,t,r,n,i,s){var l=o()(t);return n[e]=n[e]||0,n[e+"_r"]=n[e+"_r"]||0,n[e+"_g"]=n[e+"_g"]||0,n[e+"_b"]=n[e+"_b"]||0,n[e+"_a"]=n[e+"_a"]||0,s||(n[e]+=4,n[e+"_r"]++,n[e+"_g"]++,n[e+"_b"]++,n[e+"_a"]++),r[e+"_r"]=l[0],r[e+"_g"]=l[1],r[e+"_b"]=l[2],r[e+"_a"]=l[3],i[e]=0,i[e+"_r"]=0,i[e+"_g"]=0,i[e+"_b"]=0,i[e+"_a"]=1,a}},48:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>p,demuxOne:()=>u,mux:()=>g,muxOne:()=>d,muxer:()=>f,release:()=>c});var n=r(92),o=r.n(n),i=r(573),a={left:"px",right:"px",top:"px",bottom:"px",width:"px",height:"px",perspective:"px"},s={left:"x",right:"x",top:"y",bottom:"y",width:"x",height:"y"},l={opacity:0};function c(e,t,r,n,o,i){var a=e.split("_");if(2===a.length){if(--n[a[0]][a[1]]||i||delete t[e],!i)for(;n[a[0]].length&&!n[a[0]][n[a[0]].length-1];)n[a[0]].pop();0!==n[a[0]].length||i||(delete n[a[0]],delete o[a[0]],r&&delete r[a[0]])}else console.log("wtf",a)}function u(e,t,r,n,o){var l=t,c=i.MD[e]||a[r]||"px";return"box"===c&&(l*=o[s[r]]||o.x,c="px"),"bw"===c&&(l*=o.x,c="px"),"bh"===c&&(l*=o.y,c="px"),"bz"===c&&(l*=o.z,c="px"),c?(0,i.$U)(l)+c:(0,i.$U)(l)}function p(e,t,r,n,o,i){var a,s,l,c=0;for(a="",s=0;s<n[e].length;s++)n[e][s]&&(t[l=e+"_"+s]<0?a+=(c?" - ":"-")+u(s,-t[l],i||e,0,o):a+=(c?" + ":"")+u(s,t[l],i||e,0,o),c++);return c>1&&(a="calc("+a+")"),r?r[e]=a:a}function f(e,t,r,n,i,a){n[e]=n[e]||[];var s=[];if(o().array(t))for(var l=0;l<t.length;l++)d(e,t[l]||0,r,n,i,a,s);else d(e,t||0,r,n,i,a);return p}function d(e,t,r,n,s,c,u){var f=!!o().string(t)&&t.match(i.FK),d=f&&f[2]||a[e]||"px",g=i.MD.indexOf(d),h=-1!==g&&e+"_"+g||e;return s[h]=l[e]||0,n[e][g]=n[e][g]||0,u&&u[g]?r[h]+=f?parseFloat(f[1]):parseFloat(t):(!c&&n[e][g]++,r[h]=f?parseFloat(f[1]):parseFloat(t),u&&(u[g]=!0)),p}var g=f},835:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(92),o=r.n(n),i=r(125),a={top:"0%",bottom:"100%",center:"50%",left:"0%",right:"100%"};function s(e,t,r,n,o,a){for(var s=n["_"+e],l="",c={},u=0;u<s;u++)i.demux(e+"_"+u,t,c,n,o,a),l+=c[e+"_"+u]+" ";r[e]=l}function l(e,t,r,n,o,i){e.split("_")}const c=function(e){return{mux:function(t,r,n,l,c,u){var p,f=r.split(" ");l[t]=l[t]||0,u&&l[t]++,l["_"+t]=e;for(var d=0;d<e;d++)p=f[d%f.length],p=o().string(p)&&a[p]||p,i.mux(t+"_"+d,p,n,l,c,u);return s},demux:s,release:l}}},125:(e,t,r)=>{"use strict";function n(e,t,r,n,o,i){--n[e]||i||(delete t[e],delete n[e],delete o[e],delete r[e])}function o(e,t,r,n,o){r[e]=~~t[e]}r.r(t),r.d(t,{demux:()=>o,mux:()=>i,release:()=>n});var i=function(e,t,r,n,i,a){return i[e]=0,r[e]=~~t,n[e]=n[e]||0,!a&&n[e]++,o}},497:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>a,mux:()=>s,release:()=>i});var n=r(573),o={opacity:1};function i(e,t,r,n,o,i){--n[e]||i||(delete t[e],delete n[e],delete o[e],delete r[e])}function a(e,t,r,o,i){r[e]=Math.min(1,Math.max(0,(0,n.$U)(t[e])))}var s=function(e,t,r,n,i,s){return i[e]=o[e]||0,r[e]=t,n[e]=n[e]||0,!s&&n[e]++,a}},464:(e,t,r)=>{"use strict";r.r(t),r.d(t,{demux:()=>T,demuxOne:()=>S,mux:()=>j,muxOne:()=>D,release:()=>P});var n=r(116),o=r.n(n),i=r(826),a=r.n(i),s=r(92),l=r.n(s),c=r(573),u=r(821);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var d,g,h,v,y,m,b,x,w=(d=/,(?![^\(]*\))/,g=/\s(?![^(]*\))/,h=/^[0-9]+[a-zA-Z%]+?$/,v=function(e){var t=e.split(g),r=t.includes("inset"),n=t.slice(-1)[0],o=m(n)?void 0:n,i=t.filter((function(e){return"inset"!==e})).filter((function(e){return e!==o})).map(b),s=a()(i,4);return{inset:r,offsetX:s[0],offsetY:s[1],blurRadius:s[2],spreadRadius:s[3],color:o}},y=function(e){var t=e||{},r=t.inset,n=t.offsetX,o=void 0===n?0:n,i=t.offsetY,a=void 0===i?0:i,s=t.blurRadius;return[r?"inset":null,o,a,void 0===s?0:s,t.spreadRadius,t.color].filter((function(e){return null!=e})).map(x).map((function(e){return(""+e).trim()})).join(" ")},m=function(e){return"0"===e||h.test(e)},b=function(e){if(!/px$/.test(e)&&"0"!==e)return e;var t=parseFloat(e);return isNaN(t)?e:t},x=function(e){return"number"==typeof e&&0!==e?e+"px":e},{parse:function(e){return e.split(d).map((function(e){return e.trim()})).map(v)},stringify:function(e){return e.map(y).join(", ")}}),_={perspective:"px"},O={translateX:"x"},R={inset:u.lc,color:u.yW};function P(e,t,r,n,o,i){var a,s=e.split("_");if(s.length>2){if(a=s[0]+"_"+s[1]+"_"+s[2],R[s[2]])return R[s[2]].release(e,t,r,n,o,i),n[a]||--n[s[0]][s[1]][s[2]]||i||delete n[s[0]][s[1]][s[2]],void(0!==n[s[0]].length||i||(delete n[s[0]],delete o[s[0]],delete r[s[0]]));if(--n[s[0]][s[1]][s[2]]||i||delete n[s[0]][s[1]][s[2]],!i)for(;n[s[0]].length&&!n[s[0]][n[s[0]].length-1];)n[s[0]].pop();if(--n[a][s[3]]||i||(delete n[a][s[3]],delete t[e]),!i)for(;n[a].length&&!n[a][n[a].length-1];)n[a].pop();if(0!==n[a].length||i||delete n[a],!i)for(;n[s[0]].length&&!Object.keys(n[s[0]][n[s[0]].length-1]).length;)n[s[0]].pop();0!==n[s[0]].length||i||(delete n[s[0]],delete o[s[0]],delete r[s[0]])}else console.log("wtf",s)}function S(e,t,r,n,o,i){var a=r,s=c.MD[e]||_[n];return"box"===s&&(a*=i[O[n]]||i.x,s="px"),"bw"===s&&(a*=i.x,s="px"),"wh"===s&&(a*=i.y,s="px"),"bz"===s&&(a*=i.z,s="px"),"deg"===s&&(a%=360),s?(0,c.$U)(a)+s:(0,c.$U)(a)}function T(e,t,r,n,o){for(var i,a,s,l,c,u,p=[],f={},d=0,g=0;d<n[e].length;d++){for(a in f={},i=n[e][d])if(i.hasOwnProperty(a)){if(l=e+"_"+d+"_"+a,R[a])u=R[a].demux(l,t,void 0,n,o);else{for(u="",g=0,s=0;s<n[l].length;s++)n[l][s]&&(c=S(s,0,t[l+"_"+s],a,0,o),g&&"-"===c[0]?c=" - "+c.substr(1):g&&(c=" + "+c),u+=c,g++);g>1&&(u="calc("+u+")")}f[a]=u||0}p.push(f)}r[e]=w.stringify(p)}function D(e,t,r,n,o,i,a,s){var u=!!l().string(r)&&r.match(c.FK),p=u&&u[2]||_[t]||"px",f=c.MD.indexOf(p),d=-1!==f&&e+"_"+f||e;return i[d]=0,o[e][f]=o[e][f]||0,s&&s[f]?n[d]+=u?parseFloat(u[1]):parseFloat(r):(!a&&o[e][f]++,n[d]=u?parseFloat(u[1]):parseFloat(r),s&&(s[f]=!0)),T}var j=function(e,t,r,n,o,i,a){n[e]=n[e]||[],l().array(t)||(t=[t]);for(var s,c,u,p,d,g,h,v=0;v<t.length;v++){for(c in s=t[v],l().string(s)&&(s=w.parse(s)[0]),u=a?{}:f({},n[e][v]||{}),s)if(s.hasOwnProperty(c))if(p=s[c],d=e+"_"+v+"_"+c,u[c]=u[c]||n[e][v]&&n[e][v][c]||0,!i&&u[c]++,R[c])R[c].mux(d,p,r,n,o,i,a);else if(h={},n[d]=n[d]||[],l().array(p))for(g=0;g<p.length;g++)D(d,c,p[g]||0,r,n,o,i,h);else D(d,c,p||0,r,n,o,i);n[e][v]=a?f(f(f({},u),n[e][v]||{}),u):u}return T}},116:e=>{"use strict";e.exports=require("@babel/runtime/helpers/defineProperty")},826:e=>{"use strict";e.exports=require("@babel/runtime/helpers/slicedToArray")},50:e=>{"use strict";e.exports=require("d3-ease")},92:e=>{"use strict";e.exports=require("is")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{Axis:()=>Ue,Component:()=>yt,Context:()=>P,Draggable:()=>at,Node:()=>nt,child:()=>gt,default:()=>mt,dom:()=>we,hook:()=>Ye,tools:()=>e,tweener:()=>ut,useTweener:()=>st,useVoodoo:()=>Ye});var e={};r.r(e),r.d(e,{addCss:()=>Y,cssAdd:()=>L,cssMult:()=>F,extractCss:()=>X,offset:()=>N,re_cssValueWithUnit:()=>I,reverse:()=>H,scale:()=>z,shiftTransforms:()=>G,target:()=>$});const t=require("@babel/runtime/helpers/classCallCheck");var o=r.n(t);const i=require("@babel/runtime/helpers/createClass");var a=r.n(i);const s=require("@babel/runtime/helpers/possibleConstructorReturn");var l=r.n(s);const c=require("@babel/runtime/helpers/getPrototypeOf");var u=r.n(c);const p=require("@babel/runtime/helpers/inherits");var f=r.n(p);const d=require("react");var g=r.n(d),h=r(826),v=r.n(h);const y=require("fast-deep-equal");var m=r.n(y);const b=require("@babel/runtime/helpers/extends");var x=r.n(b);const w=require("@babel/runtime/helpers/objectWithoutProperties");var _=r.n(w),O=r(92),R=r.n(O);const P=g().createContext(null),S=require("@babel/runtime/helpers/toConsumableArray");var T=r.n(S);const D=require("@babel/runtime/helpers/get");var j=r.n(D),k=r(116),E=r.n(k),B=r(50);const M=require("react-dom");var A=r.n(M);function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach((function(t){E()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var I=new RegExp("([+-]?(?:[0-9]*[.])?[0-9]+)\\s*("+["box","bz","bh","bw","em","ex","%","px","cm","mm","in","pt","pc","ch","rem","vh","vw","vmin","vmax"].join("|")+")");function L(e,t){R().array(e)||(e=[e]),R().array(t)||(t=[t]);var r,n=e.map((function(e){return e&&e.match&&e.match(I)||[,e||0,"px"]})),o=t.map((function(e){return e&&e.match&&e.match(I)||[,e||0,"px"]})),i={},a=[];for(r=0;r<n.length;)i[n[r][2]]=i[n[r][2]]||0,i[n[r][2]]+=parseFloat(n[r][1]),r++;for(r=0;r<o.length;)i[o[r][2]]=i[o[r][2]]||0,i[o[r][2]]+=parseFloat(o[r][1]),r++;Object.keys(i).forEach((function(e){return a.push(i[e]+e)}));for(var s=arguments.length,l=new Array(s>2?s-2:0),c=2;c<s;c++)l[c-2]=arguments[c];return l.length?L.apply(void 0,[a].concat(l)):a}function F(e,t){R().array(e)||(e=[e]);var r,n=e.map((function(e){return e&&e.match&&e.match(I)||[,e||0,"px"]})),o={},i=[];for(r=0;r<n.length;)o[n[r][2]]=o[n[r][2]]||1,o[n[r][2]]=parseFloat(n[r][1])*t,r++;return Object.keys(o).forEach((function(e){return i.push(o[e]+e)})),i}function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(e=R().array(e)?e:e&&[e]||e).map((function(e){return W(W({},e),{},{from:e.from+t})}))}function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;e=R().array(e)?e:e&&[e]||e;var n=0;return e.forEach((function(e){n=Math.max(n,e.from+e.duration)})),e=e.map((function(e){return W(W({},e),{},{from:e.from/n*t,duration:e.duration/n*t})})),r?N(e,r):e}function V(e){return R().number(e)?-e:R().object(e)?Object.keys(e).reduce((function(t,r){return t[r]=V(e[r]),t}),{}):R().array(e)?e.map((function(e){return V(e)})):e.split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi).map((function(e,t){return t%2?-parseFloat(e):e})).join("")}function H(e){e=R().array(e)?e:e&&[e]||e;var t=0;return e.forEach((function(e){t=Math.max(t,e.from+e.duration)})),e.map((function(e){return W(W({},e),{},{from:t-(e.from+e.duration)},e.apply?{apply:V(e.apply)}:void 0)}))}var q={transform:!0,filter:!0,textShadow:!0,boxShadow:!0};function Y(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=r.shift();for(var i in o){var a;o.hasOwnProperty(i)&&(q[i]?(e[i]||(e[i]=[]),R().array(o[i])?Y(e[i],o[i]):Y(e[i],[o[i]])):R().array(o[i])?(e[i]||(e[i]=[]),R().array(e[i])?(a=e[i]).push.apply(a,T()(o[i])):e[i]=[].concat(T()(o[i]),[e[i]])):e[i]?R().object(e[i])&&R().object(o[i])?Y(e[i],o[i]):e[i]=U(e[i],o[i]):R().object(o[i])?e[i]=W({},o[i]):e[i]=o[i])}return r.length&&Y.apply(void 0,[e].concat(r))||e}function U(e,t){if(!e)return t;if(!t)return e;var r=(""+e).split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi),n=(""+t).split(/(\-?\d+(?:\.\d+)?|\-?\.\d+)/gi),o=r.map((function(e,t){return t%2?parseFloat(e)+parseFloat(n[t]||0):e})).filter((function(e){return""!==e}));return 1===o.length?parseInt(o[0]):o.join("")}function X(e,t){var r={};return(e=R().array(e)?e:e&&[e]||e).forEach((function(e){Y(r,e.apply)})),t&&(r=V(r)),r}function $(e,t){return(e=R().array(e)?e:e&&[e]||e).map((function(e){return W(W({},e),{},{target:t})}))}function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return(e=R().array(e)?e:e&&[e]||e).map((function(e){var r=e.apply&&e.apply.transform;if(r){r=R().array(r)?r:[r];for(var n=0;n<t;n++)r.unshift({});e=W(W({},e),{},{apply:W(W({},e.apply),{},{transform:r})})}return e}))}var K=r(573),Z={},J=r(253).walknSetExport;J(Z,"filter",r(479)),J(Z,"boxShadow",r(504)),J(Z,"transform",r(841)),J(Z,"textShadow",r(402)),J(Z,"backgroundColor",r(90));const Q=Z;var ee=r(821);function te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function re(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?te(Object(r),!0).forEach((function(t){E()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):te(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ne=re(re({},Q),{},{height:ee.Bw,width:ee.Bw,top:ee.Bw,left:ee.Bw,right:ee.Bw,bottom:ee.Bw,marginTop:ee.Bw,marginLeft:ee.Bw,marginRight:ee.Bw,marginBottom:ee.Bw,paddingTop:ee.Bw,paddingLeft:ee.Bw,paddingRight:ee.Bw,paddingBottom:ee.Bw,borderRadius:ee.Bw,borderTopColor:ee.yW,borderLeftColor:ee.yW,borderRightColor:ee.yW,borderBottomColor:ee.yW,borderTopWidth:ee.Bw,borderLeftWidth:ee.Bw,borderRightWidth:ee.Bw,borderBottomWidth:ee.Bw,transformOrigin:(0,ee.m3)(2),zIndex:ee.ai,opacity:ee.CG});function oe(e,t,r,n,o,i,a){var s;null===(s=i[t.split("_")[0]])||void 0===s||s.release(t,r,n,o,i,a)}function ie(e,t,r,n,o){Object.keys(r).forEach((function(i){r[i].demux(i,e,t,n,o)}))}function ae(e,t,r,n,o,i,a){var s={},l={};return e&&Object.keys(e).forEach((function(t){ne[t]?s[t]=e[t]:(0,K.VP)(t,e[t])?(0,K.J0)(t)?(0,K.Tl)(t,e[t],s):s[t]=e[t]:l[t]=e[t]})),s&&Object.keys(s).forEach((function(e){ne[e]?(o[e]=ne[e]).mux(e,s[e],t,n,r,i,a):(o[e]=function(e){var t=K.xk[e],r=t&&t.types;if(!r)return ee.bz;for(var n=0;n<r.length;n++)switch(r[n]){case"length":case"length-percentage-calc":return ee.Bw;case"number":case"integer":return ee.ai;case"color":return ee.yW}return ee.bz}(e)).mux(e,s[e],t,n,r,i,a)})),l}function se(e,t,r,n,o){o=o&&{};var i={},a=e.reduce((function(e,a){var s={};return n[a.target]=n[a.target]||{},t[a.target]=t[a.target]||{},r[a.target]=r[a.target]||{},a.type&&"Tween"!==a.type?e.push(re({},a)):(!o&&Y(i[a.target]=i[a.target]||{},a.apply),ae(a.apply,s,t[a.target],r[a.target],n[a.target],!0),e.push(re(re({},a),{},{apply:s}))),e}),[]);return!o&&Object.keys(i).forEach((function(e){return ae(i[e],{},{},r[e],n[e])})),a}const le=require("tween-axis");var ce=r.n(le);function ue(e,t,r){return t=u()(t),l()(e,pe()?Reflect.construct(t,r||[],u()(e).constructor):t.apply(e,r))}function pe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pe=function(){return!!e})()}var fe,de,ge=[],he=function(e){function t(e,r){if(o()(this,t),ge.length){var n=ge.pop();return n.scope=r,R().array(e)?(n.localLength=1,n.mount(e,r)):e.Axis&&n.mount(e.Axis,r),l()(void 0,n)}return ue(this,t,arguments)}return f()(t,e),a()(t,[{key:"destroy",value:function(){this.scope=void 0,this.__marks.length=0,this.__marksLength.length=0,this.__marksKeys.length=0,this.__processors.length=0,this.__config.length=0,this.__activeProcess.length=0,this.__activeProcess.length=0,this.__outgoing.length=0,this.__incoming.length=0,this.__cPos=0,this.duration=0,this.__cIndex=0,this.__cMaxKey=1,ge.push(this)}}])}(ce()),ve=r(92),ye="undefined"!=typeof window,me=(ye&&(de=" -webkit- -moz- -o- -ms- ".split(" "),!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)||(fe=["(",de.join("touch-enabled),("),"heartz",")"].join(""),window.matchMedia&&window.matchMedia(fe).matches)),ye?{prefix:/webkit/i.test(navigator.appVersion)?"webkit":/firefox/i.test(navigator.userAgent)?"Moz":/trident/i.test(navigator.userAgent)?"ms":"opera"in window?"O":"",dashedPrefix:/webkit/i.test(navigator.appVersion)?"-webkit-":/firefox/i.test(navigator.userAgent)?"-moz-":/trident/i.test(navigator.userAgent)?"-ms-":"opera"in window?"-o-":""}:{prefix:"",dashedPrefix:""}),be={onPageHided:[],onPageShown:[],dragging:[],dragEnabled:[],dragEnabledDesc:[],fingers:{},nbFingers:0,dragstartAnywhere:function(e){var t,r,n,o=be,i=o.dragEnabled.indexOf(this),a=[];if(-1!==i){o.nbFingers||(xe.addEvent(document,{touchmove:o.dragAnywhere,mousemove:o.dragAnywhere,touchend:o.dropAnywhere,mouseup:o.dropAnywhere}),xe.addEvent(this,{click:o.dropWithoutClick},null,null,null,!0)),e.changedTouches&&e.changedTouches.length?a=e.changedTouches:a.push(e);for(var s=0,l=a.length;s<l;s++)if(r=a[s],!(n=o.dragEnabledDesc[i]).nbFingers)for(o.nbFingers++,o.fingers[r.identifier]=o.fingers[r.identifier]||[],o.fingers[r.identifier].push(n),n.nbFingers++,n._startPos.x="MS"==me.prefix?r.x:r.pageX,n._startPos.y="MS"==me.prefix?r.y:r.pageY,n._startTs=e.timeStamp,n._lastPos.x="MS"==me.prefix?r.x:r.pageX,n._lastPos.y="MS"==me.prefix?r.y:r.pageY,t=0;t<n.dragstart.length;t++)n.dragstart[t][0].call(n.dragstart[t][1]||this,e,r,n)}},dragAnywhere:function(e){var t,r,n,o=this,i=be,a=[];be.dragging[0],e.changedTouches&&e.changedTouches.length?a=e.changedTouches:a.push(e);for(var s=0,l=a.length;s<l;s++)r=a[s],i.fingers[r.identifier],i.fingers[r.identifier]&&i.fingers[r.identifier].forEach((function(i){if(n)return i._lastPos.x=i._startPos.x="MS"==me.prefix?r.x:r.pageX,void(i._lastPos.y=i._startPos.y="MS"==me.prefix?r.y:r.pageY);for(i._lastPos.x="MS"==me.prefix?r.x:r.pageX,i._lastPos.y="MS"==me.prefix?r.y:r.pageY,t=0;t<i.drag.length;t++)n=!1===i.drag[t][0].call(i.drag[t][1]||o,e,r,i)}))},dropWithoutClick:function(e){be.preventNextClick&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),be.preventNextClick=!1),xe.removeEvent(this,{click:this.dropWithoutClick})},dropAnywhere:function(e){var t,r,n,o=this,i=be,a=[];e.changedTouches&&e.changedTouches.length?a=e.changedTouches:a.push(e);for(var s=0,l=a.length;s<l;s++)r=a[s],i.nbFingers--,i.fingers[r.identifier]&&i.fingers[r.identifier].forEach((function(i){for(i.nbFingers--,n=n||i.mouseDrag&&e.timeStamp-i._startTs>250,i._lastPos.x="MS"==me.prefix?r.x:r.pageX,i._lastPos.y="MS"==me.prefix?r.y:r.pageY,t=0;t<i.dropped.length;t++)i.dropped[t][0].call(i.dropped[t][1]||o,e,r,i)})),i.fingers[r.identifier]=null;n&&(i.preventNextClick=!0),i.nbFingers||xe.removeEvent(document,{touchmove:i.dragAnywhere,mousemove:i.dragAnywhere,touchend:i.dropAnywhere,mouseup:i.dropAnywhere})},getDraggable:function(e,t,r){var n,o=this.dragEnabled.indexOf(e);return-1===o?(this.dragEnabled.push(e),this.dragEnabledDesc.push(n={mouseDrag:t,touchDrag:r,nbFingers:0,locks:0,_startPos:{x:0,y:0},_lastPos:{x:0,y:0},dragstart:[],drag:[],dragEnd:[],dropped:[]}),xe.addEvent(e,{mousedown:t&&this.dragstartAnywhere,touchstart:r&&this.dragstartAnywhere},null,null,null,!0)):n=this.dragEnabledDesc[o],n},freeDraggable:function(e){var t=this.dragEnabled.indexOf(e);-1!==t&&(this.dragEnabled.splice(t,1),this.dragEnabledDesc.splice(t,1),xe.removeEvent(e,{mousedown:this.dragstartAnywhere,touchstart:this.dragstartAnywhere}))},addEvent:function(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on"+t,r.related=function(t){return r.call(e,t)})},removeEvent:function(e,t,r,n){e.removeEventListener?e.removeEventListener(t,r,n):e.attachEvent&&e.detachEvent("on"+t,r.related)},rmDragFn:function(e,t,r){for(var n=0,o=e.length;n<o;n++)if(e[n][0]===t)return e.splice(n,1);console.warn("Rm event : Listener not found !!")}},xe={addEvent:function(e,t,r,n){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=arguments.length>5?arguments[5]:void 0;if(ve.object(t))for(var a in t)t.hasOwnProperty(a)&&t[a]&&this.addEvent(e,a,t[a],n,o,i);else"dragstart"===t?be.getDraggable(e,n,o).dragstart.push([r]):"drag"===t?be.getDraggable(e,n,o).drag.push([r]):"dropped"===t?be.getDraggable(e,n,o).dropped.push([r]):e.addEventListener?e.addEventListener(t,r,{passive:!1}):e.attachEvent&&e.attachEvent("on"+t,r.related=function(t){return r.call(e,t)})},removeEvent:function(e,t,r,n,o){var i;if(ve.object(t))for(var a in t)t.hasOwnProperty(a)&&this.removeEvent(e,a,t[a],n);else/^(drag|drop)/.test(t)?(i=be.getDraggable(e),be.rmDragFn(i[t],r,n),i.dragstart.length||i.drag.length||i.dragEnd.length||i.dropped.length||be.freeDraggable(e)):e.removeEventListener?e.removeEventListener(t,r,o):e.attachEvent&&e.detachEvent("on"+t,r.related)},offset:function(e){for(var t={top:0,left:0,width:e.offsetWidth,height:e.offsetHeight};e;)t.top=t.top+parseInt(e.offsetTop),t.left=t.left+parseInt(e.offsetLeft),e=e.offsetParent;return t},findReactParents:function(e){var t,r=[e];for(var n in e)if(n.startsWith("__reactInternalInstance$")||n.startsWith("__reactFiber$")){for(t=e[n];t.return;)t.stateNode&&!r.includes(t.stateNode)&&r.push(t.stateNode),t=t.return;return r}return e.parentNode&&this.findReactParents(e.parentNode)}};const we=xe;function _e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(r),!0).forEach((function(t){E()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_e(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Re=r(92),Pe=r(50),Se=function(e){return"number"==typeof e?e?e<0?-1:1:e==e?e:NaN:NaN},Te=Math.abs,De=Math.floor,je=(Math.round,Math.min),ke=Math.max,Ee=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0).toFixed(3)},Be=function(){return a()((function e(t){o()(this,e);var r=this._={};r.conf=Oe(Oe({},this.constructor.config),t),this.active=!1,r.pos=t.value||0,r.refFPS=16,r.min=t.min||0,r.max=t.max||0,r.currentStop=0,r.lastInertiaPos=0,r.stops=r.conf.stops,r.disabled=r.conf.disabled,r.wayPoints=r.conf.wayPoints,r.inertiaFn=Pe.easePolyOut,r.targetWayPointIndex=0,this._detectCurrentSnap()}),[{key:"updateConf",value:function(e){var t=this._;t.min=e.min||0,t.max=e.max||0,t.stops=e.stops,t.disabled=e.disabled,t.wayPoints=e.wayPoints,t.conf.willStop=e.willStop,t.conf.willSnap=e.willSnap,t.conf.onStop=e.onStop,t.conf.onSnap=e.onSnap,t.conf.shouldLoop=e.shouldLoop}},{key:"startMove",value:function(){var e=this._;e.baseTS=e.startTS=Date.now()/1e3,e.lastVelocity=e.lastIVelocity=0,e.lastAccel=0,e.posDiff=0,e.loopsDiff=0,this.active=!0,this.holding=!0,e.inertia=!1}},{key:"hold",value:function(e){var t,r=this._,n=void 0!==r.lastHoldPos?e-r.lastHoldPos:0,o=Date.now()/1e3,i=o-r.baseTS,a=e,s=n/i;if(r.lastHoldPos=e,r.lastBaseTs||(r.lastBasePos=e,r.lastBaseTs=r.baseTS),i<.003||((s<=0&&r.lastVelocity>0||s>=0&&r.lastVelocity<0||Te(s)<Te(.2*r.lastVelocity))&&o-r.lastBaseTs>.15?(r.lastBasePos=e,r.lastBaseTs=o,r.lastVelocity=0,r.lastIVelocity=0,r.baseTS=o,r.targetDist=0,r.lastInertiaPos=0):s<=0&&r.lastVelocity>0||s>=0&&r.lastVelocity<0||Te(s)<Te(.2*r.lastVelocity)||(r.lastIVelocity=s,r.lastVelocity=(a-r.lastBasePos)/(o-r.lastBaseTs),r.baseTS=o,r.targetDist=0,r.lastInertiaPos=0,r.targetWayPoint=void 0,r.targetWayPointIndex=void 0)),r.conf.bounds&&(a>r.max?a=r.max:a<r.min&&(a=r.min)),r.conf.shouldLoop)for(;t=r.conf.shouldLoop(a,n);)a+=t;r.pos=a}},{key:"release",value:function(){var e,t,r=this._;Se(r.lastVelocity),this.holding=!1,function(e){var t=Se(e.lastVelocity);e.disabled?(e.loopsTarget=0,e.loopsVelSum=0,e.targetDist=0,e.targetDuration=0):(e.loopsTarget=De(Math.log(.05/Te(e.lastVelocity))/Math.log(.9)),e.loopsVelSum=(Math.pow(.9,e.loopsTarget)-Te(e.lastVelocity))/(.9-1),e.targetDist=e.loopsVelSum*e.refFPS*t/1e3||0,e.targetDuration=Te(e.loopsTarget*e.refFPS*t)||0)}(r),r.lastHoldPos=void 0,r.lastBasePos=void 0,r.lastBaseTs=void 0,r.holding=!1,r.conf.bounds&&r.conf.snapToBounds&&(r.pos+r.targetDist>r.max?(r.targetDist=r.max-r.pos,r.targetDuration=Te(10*r.targetDist)):r.pos+r.targetDist<r.min&&(r.targetDist=r.min-r.pos,r.targetDuration=Te(10*r.targetDist))),r.targetDuration||(r.targetDuration=50),this.active=!0,r.inertia=!0,r.lastInertiaPos=0,r.inertiaStartTm=r.inertiaLastTm=Date.now(),this._doSnap(null,500),null===(e=(t=r.conf).willEnd)||void 0===e||e.call(t,r.targetDist+r.pos,r.targetDist,r.targetDuration)}},{key:"update",value:function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),n=this._,o=n.inertiaFn((r-n.inertiaStartTm)/n.targetDuration)*n.targetDist;if(!n.inertia)return n.pos;var i=o-n.lastInertiaPos;if(n.lastInertiaPos=o,r-n.inertiaStartTm>=n.targetDuration&&(n.inertia=this.active=!1,n.lastInertiaPos=i=0,n.targetDist=0,n.targetWayPoint&&(i=n.targetWayPoint.at-n.pos,n.currentWayPoint=n.targetWayPoint,n.currentWayPointIndex=n.targetWayPointIndex,n.targetWayPoint=null,n.targetWayPointIndex=null),n.conf.onStop&&n.conf.onStop(n.pos,n.currentWayPoint),n.conf.onSnap&&n.conf.onSnap(n.currentWayPointIndex,n.currentWayPoint)),i=i||0,e=n.pos+i,n.conf.shouldLoop)for(;t=n.conf.shouldLoop(e,i);)e+=t,n.inertia;return n.pos=e,e}},{key:"setPos",value:function(e){var t=this._;if(t.inertia=!1,this.active=!1,t.lastInertiaPos=0,t.targetDist=0,t.inertiaStartTm=0,t.inertiaLastTm=0,t.targetDuration=0,t.conf.shouldLoop){for(var r,n=e;r=t.conf.shouldLoop(n,t.pos-e);)n+=r;e=n}t.pos=e,t.conf.bounds&&(t.pos=ke(t.pos,t.min),t.pos=je(t.pos,t.max))}},{key:"setWayPoints",value:function(e){this._.wayPoints=e,this._detectCurrentSnap()}},{key:"teleport",value:function(e){var t=this._;if(!t.inertia)return t.pos+=e;t.pos+=e}},{key:"dispatch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=this._,n=Date.now();this.active=!0,r.inertia&&Se(e)===Se(r.targetDist)?(r.targetDist+=e,r.targetDuration+=t/2):(r.inertia=!0,r.lastInertiaPos=0,r.inertiaStartTm=r.inertiaLastTm=n,r.targetDist=e,r.targetDuration=t),r.conf.bounds&&(r.pos+r.targetDist>r.max?(r.targetDist=r.max-r.pos,r.targetDuration=Te(10*r.targetDist)):r.pos+r.targetDist<r.min&&(r.targetDist=r.min-r.pos,r.targetDuration=Te(10*r.targetDist))),this._doSnap(Se(e),750)}},{key:"_detectCurrentSnap",value:function(){var e,t=this._,r=t.pos;if(t.wayPoints&&t.wayPoints.length)for(e=0;e<t.wayPoints.length;e++)if(Ee(t.wayPoints[e].at)===Ee(r))return t.currentWayPoint=t.wayPoints[e],t.currentWayPointIndex=e,e}},{key:"_doSnap",value:function(e){var t,r,n,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,a=this._,s=a.targetDist+(a.pos-(a.lastInertiaPos||0)),l=0;if(a.wayPoints&&a.wayPoints.length){if(a.conf.shouldLoop)for(;o=a.conf.shouldLoop(s,0);)s+=o,l+=o;for(n=0;n<a.wayPoints.length&&!(a.wayPoints[n].at>s);n++);if(n===a.wayPoints.length?n--:0===n?n=0:(r=(a.wayPoints[n].at-a.wayPoints[n-1].at)/2,r=a.wayPoints[n-1].at+r*((a.wayPoints[n].gravity||1)/(a.wayPoints[n-1].gravity||1)),e?e<0&&n--:s<r&&n--),a.conf.maxJump&&Re.number(a.currentWayPointIndex)){var c=n-a.currentWayPointIndex;Te(c)>a.conf.maxJump&&(n=a.currentWayPointIndex+Se(c)*a.conf.maxJump)}t=a.wayPoints[n].at,a.conf.willSnap&&a.conf.willSnap(n,a.wayPoints[n]),a.lastInertiaPos=a.lastInertiaPos||0,t=t-(a.pos-a.lastInertiaPos)-l,a.targetDuration=ke(50,je(i,Te(a.targetDuration/a.targetDist*t)))||0,a.targetDist=t,a.targetWayPoint=a.wayPoints[n],a.targetWayPointIndex=n}else t=~~(a.pos-a.lastInertiaPos),a.conf.infinite||(t>a.max?(t=a.max-t,a.targetDuration=je(i,Te(a.targetDuration/a.targetDist*t)),a.targetDist=t):t<a.min&&(t=a.min-t,a.targetDuration=je(i,Te(a.targetDuration/a.targetDist*t)),a.targetDist=t))}},{key:"setBounds",value:function(e,t){var r=this._;r.min=e,r.max=t}},{key:"isInbound",value:function(e){var t=this._,r=void 0!==t.lastHoldPos?e-t.lastHoldPos:0,n=(t.targetDist||0)+(t.pos-(t.lastInertiaPos||0))+r;return n>=t.min&&n<=t.max}}])}();function Me(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(r),!0).forEach((function(t){E()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Me(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ce(e,t,r){return t=u()(t),l()(e,We()?Reflect.construct(t,r||[],u()(e).constructor):t.apply(e,r))}function We(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(We=function(){return!!e})()}E()(Be,"config",{bounds:!0,snapToBounds:!0});var Ie,Le,Fe=new Function("try {return this===window;}catch(e){ return false;}")(),Ne=R().array,ze=[],Ve=function e(){var t=0,r=Date.now(),n=r-Le;for(Le=r;t<ze.length;t++)ze[t].cpos=Math.min(n+ze[t].cpos,ze[t].duration),ze[t].apply(ze[t].cpos,ze[t].duration),ze[t].cpos==ze[t].duration&&(ze[t].cb&&setTimeout(ze[t].cb),ze.splice(t,1),t--);ze.length?setTimeout(e,16):Ie=!1},He=function(e){function t(e){var r;o()(this,t),r=Ce(this,t,arguments),E()(r,"axes",{}),E()(r,"_scrollWatcherByAxis",{}),E()(r,"_updateNodeInertia",(function(){var e,t=r._,n=t.activeInertia.length;r._inertiaRaf&&cancelAnimationFrame(r._inertiaRaf);for(var o=0;n>o;o++)((e=t.activeInertia[o]).inertia.x.active||e.inertia.x.holding)&&(e.target.scrollLeft=~~e.inertia.x.update()),(e.inertia.y.active||e.inertia.y.holding)&&(e.target.scrollTop=~~e.inertia.y.update()),e.inertia.x.active||e.inertia.y.active||e.inertia.x.holding||e.inertia.y.holding||(t.activeInertia.slice(o,1),o--,n--);r._inertiaRaf=0!==n?requestAnimationFrame(r._updateNodeInertia):null})),E()(r,"_swap",{});var n=r._={refs:{},muxByTarget:{}};return n.box={x:100,y:100,z:800},r.__isTweener=!0,n._rafLoop=r._rafLoop.bind(r),n.rootRef=r.props.forwardedRef||g().createRef(),n.options=Ae({maxClickTm:200,maxClickOffset:5},e.tweenerOptions||{}),n.tweenRefCSS={},n.tweenRefs={},n.tweenRefMaps={},n.iMapOrigin={},n.tweenRefInitialData={},n.tweenEnabled=!0,n.tweenRefOrigin={},n.tweenRefOriginCss={},n.muxDataByTarget=n.muxDataByTarget||{},n.tweenRefDemuxed=n.tweenRefDemuxed||{},n.tweenRefTargets=n.tweenRefTargets||[],n.runningAnims=n.runningAnims||[],n.scrollHook=[],n.activeInertia=[],Fe&&window.addEventListener("resize",r._.onResize=function(e){var t,o;r._updateBox(),r._updateTweenRefs(),null===(t=n.rootRef)||void 0===t||null===(t=t.current)||void 0===t||null===(o=t.windowDidResize)||void 0===o||o.call(t,e)}),r}return f()(t,e),a()(t,[{key:"tweenRef",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0,a=this._,s={},l={};return a.tweenRefs[e]||a.tweenRefTargets.push(e),!a.tweenRefs[e]||!i&&a.iMapOrigin[e]===r&&m()(r,a.iMapOrigin[e])&&a.tweenRefOriginCss[e]===t&&m()(t,a.tweenRefOriginCss[e])?a.tweenRefs[e]?ie(a.tweenRefMaps[e],a.tweenRefCSS[e],a.muxByTarget[e],a.muxDataByTarget[e],a.box):(a.iMapOrigin[e]=r,t=t||{},r=r||{},a.tweenRefs[e]=!0,a.muxByTarget[e]=a.muxByTarget[e]||{},a.muxDataByTarget[e]=a.muxDataByTarget[e]||{},a.tweenRefOriginCss[e]=t,a.tweenRefMaps[e]=a.tweenRefMaps[e]||{},a.tweenRefOrigin[e]?(t=Ae(Ae({},t),ae(r,s,l,a.muxDataByTarget[e],a.muxByTarget[e],!1,!0)),Object.keys(l).forEach((function(t){return a.tweenRefMaps[e][t]=R().number(a.tweenRefMaps[e][t])?a.tweenRefMaps[e][t]-l[t]:0})),Object.keys(s).forEach((function(t){return a.tweenRefMaps[e][t]+=s[t]}))):(t=Ae(Ae({},t),ae(r,s,l,a.muxDataByTarget[e],a.muxByTarget[e])),s=Object.assign({},l,s||{}),Object.keys(s).forEach((function(t){return a.tweenRefMaps[e][t]=(a.tweenRefMaps[e][t]||0)+s[t]}))),a.tweenRefOrigin[e]=Ae({},s),a.tweenRefCSS[e]=t,ie(s=a.tweenRefMaps[e],t,a.muxByTarget[e],a.muxDataByTarget[e],a.box)):(a.iMapOrigin[e]=r,a.tweenRefOriginCss[e]=t,r=r||{},t=Ae(Ae({},t=t||{}),ae(r,s,l,a.muxDataByTarget[e],a.muxByTarget[e],!1,!0)),Object.keys(a.tweenRefOrigin[e]).forEach((function(t){return a.tweenRefMaps[e][t]-=a.tweenRefOrigin[e][t]})),Object.keys(l).forEach((function(t){return a.tweenRefMaps[e][t]=R().number(a.tweenRefMaps[e][t])?a.tweenRefMaps[e][t]:l[t]})),Object.keys(s).forEach((function(t){return a.tweenRefMaps[e][t]+=s[t]})),Object.keys(a.tweenRefOrigin[e]).forEach((function(t){oe(0,t,a.tweenRefMaps[e],a.tweenRefCSS[e],a.muxDataByTarget[e],a.muxByTarget[e])})),Object.keys(a.tweenRefCSS[e]).forEach((function(r){!a.tweenRefCSS[e][r]||a.muxByTarget[e][r]||t[r]||delete a.tweenRefCSS[e][r]})),Object.keys(t).forEach((function(r){a.tweenRefCSS[e][r]===t[r]||a.muxByTarget[e][r]||(a.tweenRefCSS[e][r]=t[r])})),a.tweenRefOrigin[e]=Ae({},s),ie(a.tweenRefMaps[e],a.tweenRefCSS[e],a.muxByTarget[e],a.muxDataByTarget[e],a.box),this._updateTweenRef(e,!0)),o?{style:Ae({},a.tweenRefCSS[e])}:{style:Ae({},a.tweenRefCSS[e]),ref:R().function(n)?function(t){return a.refs[e]=n(t)}:n?function(t){return a.refs[e]=n.current=t}:function(t){return a.refs[e]=t}}}},{key:"rmTweenRef",value:function(e){this._.tweenRefs[e]&&(this._.tweenRefTargets.splice(this._.tweenRefTargets.indexOf(e),1),delete this._.tweenRefs[e],delete this._.muxByTarget[e],delete this._.muxDataByTarget[e],delete this._.iMapOrigin[e],delete this._.tweenRefOrigin[e],delete this._.tweenRefCSS[e],delete this._.tweenRefMaps[e],delete this._.refs[e])}},{key:"resetTweenable",value:function(){for(var e=this,t=this._,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];n.forEach((function(r){e.tweenRef(r,t.tweenRefOriginCss[r],t.iMapOrigin[r],null,null,null,!0)})),this._updateTweenRefs()}},{key:"updateRefStyle",value:function(e,t,r){var n,o=this,i=this._;return Ne(e)&&Ne(t)?e.map((function(e,n){return o.updateRefStyle(e,t[n],r)})):Ne(e)?e.map((function(e){return o.updateRefStyle(e,t,r)})):i.tweenRefMaps[e]?(n=ae(t,i.tweenRefMaps[e],{},i.muxDataByTarget[e],i.muxByTarget[e]),Object.assign(i.tweenRefCSS[e],n),Object.assign(i.tweenRefOriginCss[e],n),ie(i.tweenRefMaps[e],i.tweenRefCSS[e],i.muxByTarget[e],i.muxDataByTarget[e],i.box),void this._updateTweenRef(e,!0)):console.warn("React-Voodoo : Can't update styles of an unknown Node id '",e,"'")}},{key:"getTweenableRef",value:function(e){try{return this._.refs[e]&&A().findDOMNode(this._.refs[e])}catch(t){try{return this._.refs[e]._.rootRef.current}catch(t){return void console.warn("react-voodoo: Can't find voodooNode ",e,t)}}}},{key:"getRootNode",value:function(){try{return this.getTweenableRef(this._.rootRef)||this.isMountedFromHook&&this._.rootRef&&this._.rootRef.current||A().findDOMNode(this)}catch(e){return this._.rootRef&&this._.rootRef.current}}},{key:"pushAnim",value:function(e,r){var n,o,i=this,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=this._,l={};if(Ne(e)?n=e:(n=e.anims,e.initial),n instanceof he||(n=se(n,l,this._.muxDataByTarget,this._.muxByTarget),n=new he(n,this._.tweenRefMaps),Object.keys(l).forEach((function(e){return i._.tweenRefMaps[e]&&Object.assign(i._.tweenRefMaps[e],Ae(Ae({},l[e]),i._.tweenRefMaps[e]))||(o=console.warn("react-voodoo : Can't find tween target ",e," in ",t.displayName)||!0)}))),!o)return new Promise((function(e){n.run(i._.tweenRefMaps,(function(){var t=i._.runningAnims.indexOf(n);-1!=t&&i._.runningAnims.splice(t,1),Object.keys(l).forEach((function(e){Object.keys(l[e]).forEach((function(t){oe(0,t,s.tweenRefMaps[e],s.tweenRefCSS[e],s.muxDataByTarget[e],s.muxByTarget[e],a)}))})),n.destroy(),e(n)})),i._.runningAnims.push(n),i._.live||(i._.live=!0,requestAnimationFrame(i._._rafLoop=i._._rafLoop||i._rafLoop.bind(i)))})).then((function(e){return r&&r(e)}))}},{key:"applyTweenState",value:function(e,t,r){var n=this,o={},i={};ae(t,o,i,this._.muxDataByTarget[e],this._.muxByTarget[e],!0),Object.keys(o).map((function(t){return n._.tweenRefMaps[e][t]=(!r&&n._.tweenRefMaps[e][t]||i[t])+o[t]}))}},{key:"initAxis",value:function(e,t,r){var n,o,i=this,a=t.inertia,s=t.scrollableArea,l=void 0===s?0:s,c=t.scrollableBounds,u=t.scrollableWindow,p=t.defaultPosition,f=t.scrollFirst,d=(this._,this.axes[e]),g=c,h=!r&&d?d.scrollPos:p||g&&g.min||0,v=Math.max(d&&d.scrollableArea||0,l),y=Math.max(d&&d.scrollableWindow||0,u),m=d?d.targetPos:h,b=d?d.inertia:new Be(Ae(Ae({disabled:!a},a||{}),{},{value:h})),x={scrollFirst:f,tweenAxis:d&&d.tweenAxis||[],scrollPos:h,targetPos:m,inertia:b,scrollableWindow:y,scrollableBounds:g,scrollableArea:v,scrollTo:function(t,r,n,o){return i.scrollTo(t,r,e,n,o)}};this.axes[e]=x,!a&&(b._.disabled=!0),a&&b&&!b.active&&(b._.pos=h),a&&b&&b.updateConf(a),b&&g?null===(n=b.setBounds)||void 0===n||n.call(b,g.min,g.max):b&&(null===(o=b.setBounds)||void 0===o||o.call(b,0,v))}},{key:"_getAxis",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scrollY",r=this._;return this.axes[t]=this.axes[t]||{tweenAxis:[],scrollPos:r.options.initialScrollPos&&r.options.initialScrollPos[t]||0,targetPos:0,scrollableWindow:0,scrollableArea:0,inertia:new Be(Ae({value:r.options.initialScrollPos&&r.options.initialScrollPos[t]||0},r.options.axes&&r.options.axes[t]&&r.options.axes[t].inertia||{})),scrollTo:function(r,n,o,i){return e.scrollTo(r,n,t,o,i)}},this.axes[t]}},{key:"getAxisState",value:function(e){var t=this,r=(this._,{});return this.axes&&Object.keys(this.axes).forEach((function(e){return r[e]=t.axes[e].targetPos||t.axes[e].scrollPos})),r}},{key:"getScrollPos",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scrollY";return this._,this.axes[e]?this.axes[e].targetPos||this.axes[e].scrollPos:0}},{key:"scrollTo",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"scrollY",o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=this._;return Fe?new Promise((function(s,l){if(t.axes&&t.axes[n]){var c,u,p,f=t.axes[n].targetPos,d=function(e){var r,o;e=~~(1e4*e)/1e4,t.axes[n].targetPos=t.axes[n].scrollPos=e,~~e!==f&&(t.axisDidScroll(~~e,n),null===(r=a.rootRef)||void 0===r||null===(r=r.current)||void 0===r||null===(o=r.componentDidScroll)||void 0===o||o.call(r,~~e,n)),t._updateTweenRefs()};if(e=Math.max(0,e),e=Math.min(e,t.axes[n].scrollableArea||0),t.axes[n].targetPos=e,r)t._runScrollGoTo(n,e,r,B[o],i,d,s);else null===(c=t.axes)||void 0===c||null===(c=c[n])||void 0===c||null===(c=c.inertia)||void 0===c||c.setPos(e),null!==(u=t.axes)&&void 0!==u&&null!==(u=u[n])&&void 0!==u&&null!==(u=u.inertia)&&void 0!==u&&u._&&(e=null===(p=t.axes)||void 0===p||null===(p=p[n])||void 0===p||null===(p=p.inertia)||void 0===p?void 0:p._.pos),t.axes[n].tweenAxis.forEach((function(t){return t.goTo(e,a.tweenRefMaps,!1,i)})),d(e),s();a.live||(a.live=!0,requestAnimationFrame(a._rafLoop))}})).then((function(e){var r;null===(r=t.axes)||void 0===r||null===(r=r[n])||void 0===r||null===(r=r.inertia)||void 0===r||r._detectCurrentSnap()})):(console.warn("React-voodoo : scrollTo can't be used serverside, use Axis defaultPosition prop to set initial axes position"),Promise.resolve())}},{key:"addScrollableAnim",value:function(e){var t,r,n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"scrollY",i=this._,a={},s=this._getAxis(o);return Ne(e)?r=e:(r=e.anims,e.length),r instanceof he||(r=se(r,a,this._.muxDataByTarget,this._.muxByTarget),(r=new he(r,i.tweenRefMaps)).initials=a,Object.keys(a).forEach((function(e){i.tweenRefOrigin[e]=i.tweenRefOrigin[e]||{},i.tweenRefMaps[e]=i.tweenRefMaps[e]||{},Object.assign(n._.tweenRefMaps[e],Ae(Ae({},a[e]),n._.tweenRefMaps[e]))}))),s.tweenAxis.push(r),s.scrollPos=s.scrollPos||0,s.scrollableArea=s.scrollableArea||0,s.scrollableArea=Math.max(s.scrollableArea,r.duration),s.scrollableBounds||null===(t=s.inertia)||void 0===t||t.setBounds(0,s.scrollableArea),r.goTo(s.scrollPos,this._.tweenRefMaps,!1,!0),this._updateTweenRefs(),r}},{key:"rmScrollableAnim",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"scrollY",o=this._,i=this._getAxis(n),a=i.tweenAxis.indexOf(e);-1!==a&&(i.tweenAxis.splice(a,1),i.scrollableArea=Math.max.apply(Math,T()(i.tweenAxis.map((function(e){return e.duration}))).concat([0])),i.scrollableBounds||null===(r=i.inertia)||void 0===r||r.setBounds(0,i.scrollableArea||0),e.goTo(0,this._.tweenRefMaps,!1,!0),Object.keys(e.initials).forEach((function(t){Object.keys(e.initials[t]).forEach((function(e){oe(0,e,o.tweenRefMaps[t],o.tweenRefCSS[t],o.muxDataByTarget[t],o.muxByTarget[t])}))})),delete e.initials,e.destroy(),t=!0,this._updateTweenRefs()),!t&&console.warn("react-voodoo: Axis not found : ",n)}},{key:"_runScrollGoTo",value:function(e,t,r){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(e){return e},i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0,l=this.axes[e].scrollPos,c=t-l;ze.push({apply:function(t,r){var s,u,p,f=l+o(t/r)*c;n._.tweenEnabled&&(null===(s=n.axes)||void 0===s||null===(s=s[e])||void 0===s||null===(s=s.inertia)||void 0===s||s.setPos(f),null!==(u=n.axes)&&void 0!==u&&null!==(u=u[e])&&void 0!==u&&null!==(u=u.inertia)&&void 0!==u&&u._&&(f=null===(p=n.axes)||void 0===p||null===(p=p[e])||void 0===p||null===(p=p.inertia)||void 0===p?void 0:p._.pos),n.axes[e].tweenAxis.forEach((function(e){return e.goTo(f,n._.tweenRefMaps,!1,i)})),a&&a(f))},duration:r,cpos:0,cb:s}),Ie||(Ie=!0,Le=Date.now(),setTimeout(Ve,16))}},{key:"componentShouldScroll",value:function(){var e,t=this._;return!(t.rootRef&&t.rootRef.current&&t.rootRef.current.componentShouldScroll)||(e=t.rootRef.current).componentShouldScroll.apply(e,arguments)}},{key:"watchAxis",value:function(e,t){var r=this._scrollWatcherByAxis;return r[e]=r[e]||[],r[e].push(t),function(){var n=r[e].indexOf(t);r[e].splice(n,1)}}},{key:"axisDidScroll",value:function(e,t){var r=this._scrollWatcherByAxis[t],n=null==r?void 0:r.length;if(r)for(;n;)r[--n](e)}},{key:"applyInertia",value:function(e,t){var r,n,o=this,i=e.inertia.update(),a=this._;this.axes[t].tweenAxis.forEach((function(e){o.axes[t].targetPos=o.axes[t].scrollPos=i,e.goTo(i,o._.tweenRefMaps)})),null===(r=a.rootRef)||void 0===r||null===(r=r.current)||void 0===r||null===(n=r.componentDidScroll)||void 0===n||n.call(r,i,t),this.axisDidScroll(i,t),this._updateTweenRefs(),e.inertia.active||e.inertia.holding?e.inertiaFrame=setTimeout(this.applyInertia.bind(this,e,t),33):e.inertiaFrame=null}},{key:"isInertiaActive",value:function(){var e=this,t=(this._,!1);return this.axes&&Object.keys(this.axes).forEach((function(r){return t=t||e.axes[r]&&e.axes[r].inertia.active})),t}},{key:"isAxisOut",value:function(e,t,r){this._;var n=this.axes&&this.axes[e],o=r?t:n&&n.scrollPos+t;return o=o&&Math.round(o),!n||(n.scrollableBounds?o<=n.scrollableBounds.min||o>=n.scrollableBounds.max:o<=0||o>=n.scrollableArea)}},{key:"_activateNodeInertia",value:function(e){var t=this._,r=t.activeInertia.findIndex((function(t){return t.target===e}));return-1===r&&(t.activeInertia.push({inertia:{x:new Be({max:e.scrollWidth-e.offsetLeft,value:e.scrollLeft}),y:new Be({max:e.scrollHeight-e.offsetHeight,value:e.scrollTop})},target:e}),r=t.activeInertia.length-1),t.activeInertia[r].inertia}},{key:"setRootRef",value:function(e){this._.rootRef=e}},{key:"_updateBox",value:function(){var e=this.getRootNode();e&&(this._.box.inited=!0,this._.box.x=e.offsetWidth,this._.box.y=e.offsetHeight)}},{key:"_rafLoop",value:function(){this._updateTweenRefs(),this._.runningAnims.length?requestAnimationFrame(this._._rafLoop):this._.live=!1}},{key:"_updateTweenRefs",value:function(){if(this._.tweenEnabled)for(var e,t=0;t<this._.tweenRefTargets.length;t++)e=this._.tweenRefTargets[t],this._updateTweenRef(e)}},{key:"_updateTweenRef",value:function(e,t){var r,n=this._swap;if(this._.tweenRefCSS[e]&&ie(this._.tweenRefMaps[e],n,this._.muxByTarget[e],this._.muxDataByTarget[e],this._.box),r=this.getTweenableRef(e)){for(var o in this._.tweenRefCSS[e])void 0===n[o]&&(r.style[o]=this._.tweenRefCSS[e][o]);for(var i in n)this._.tweenRefCSS[e].hasOwnProperty(i)&&((t||n[i]!==this._.tweenRefCSS[e][i])&&(r.style[i]=this._.tweenRefCSS[e][i]=n[i]),delete n[i])}return this._.tweenRefCSS[e]}},{key:"componentWillUnmount",value:function(){var e=this;this.getRootNode(),this._.tweenEnabled&&(this._.tweenEnabled=!1,window.removeEventListener("resize",this._.onResize),Object.keys(this.axes).forEach((function(t){e.axes[t].inertiaFrame&&clearTimeout(e.axes[t].inertiaFrame)}))),j()(u()(t.prototype),"componentWillUnmount",this)&&j()(u()(t.prototype),"componentWillUnmount",this).apply(this,arguments)}},{key:"componentDidMount",value:function(){var e=this,r=this.constructor;this._.rendered=!0,this._.tweenEnabled&&(this._updateBox(),this._updateTweenRefs()),r.scrollableAnim&&(R().array(r.scrollableAnim)?this.addScrollableAnim(r.scrollableAnim):Object.keys(r.scrollableAnim).forEach((function(t){return e.addScrollableAnim(r.scrollableAnim[t],t)}))),j()(u()(t.prototype),"componentDidMount",this)&&j()(u()(t.prototype),"componentDidMount",this).apply(this,arguments)}},{key:"componentDidUpdate",value:function(e,r){this._.tweenEnabled&&(this._updateBox(),this._updateTweenRefs()),j()(u()(t.prototype),"componentDidUpdate",this)&&j()(u()(t.prototype),"componentDidUpdate",this).apply(this,arguments)}},{key:"render",value:function(){var e=this,t=this.props,r=t.BaseComponent,n=t.oProps;return g().createElement(P.Consumer,null,(function(t){return e._parentTweener=t,g().createElement(P.Provider,{value:e},g().createElement(r,x()({},n,{ref:e._.rootRef,tweener:e})))}))}}])}(g().Component),qe=["children"];const Ye=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"div",r=g().useContext(P),n=g().useRef(),o=g().useRef(),i=g().useMemo((function(){return!0===e||R().string(e)}),[]),a=g().useMemo((function(){if(!0===e)return r;if(R().string(e)){for(var t=r;null!==(o=t)&&void 0!==o&&o._&&t._.options.name!==e;){var o;if(!t._parentTweener){console.warn('react-voodoo: No parent tweener found with option.key === "'+e+'"');break}t=t._parentTweener}return t}var i=new He({forwardedRef:n,tweenerOptions:e});return i.isMountedFromHook=!0,i._parentTweener=r,i}),[]),s=g().useMemo((function(){return g().forwardRef((function(e,r){var o=e.children,i=_()(e,qe);return g().createElement(P.Provider,{value:a},g().createElement(t,x()({ref:r?function(e){return r.current=n.current=e}:n},i),o))}))}),[]);return g().useEffect((function(){var e;if(!i&&null!==(e=o.current)&&void 0!==e&&e._)return a.componentDidMount(),o.current=a,function(){var e;null!==(e=o.current)&&void 0!==e&&e._&&(o.current.componentWillUnmount(),o.current=null)}}),[]),g().useEffect((function(){var e;!i&&null!==(e=o.current)&&void 0!==e&&e._&&(o.current._updateBox(),o.current._updateTweenRefs())}),[n.current]),g().useEffect((function(){var e;!i&&null!==(e=o.current)&&void 0!==e&&e._&&(o.current._parentTweener=r)}),[r]),g().useEffect((function(){var t;!i&&null!==(t=o.current)&&void 0!==t&&t._&&(o.current._.options=e,o.current._updateBox(),o.current._updateTweenRefs())}),[e]),g().useMemo((function(){return[a,s]}),[s,a])},Ue=function(e){e.children;var t=e.id,r=e.axe,n=void 0===r?t:r,o=e.scrollFirst,i=e.bounds,a=e.scrollableWindow,s=e.inertia,l=e.size,c=e.defaultPosition,u=e.items,p=void 0===u?[]:u,f=g().useRef({}).current,d=Ye(!0),h=v()(d,1)[0];return f.previousAxis&&f.previousAxis===n?f.previousInertia&&f.previousInertia===s&&f.previousBounds===i&&f.previousScrollableWindow===a||(f.previousInertia=s,f.previousAxis=n,f.previousBounds=i,f.previousScrollableWindow=a,h.initAxis(n,{inertia:s,size:l,scrollableWindow:a,defaultPosition:c,scrollFirst:o,scrollableBounds:i})):(f.previousAxis=n,f.previousInertia=s,h.initAxis(n,{inertia:s,size:l,scrollableWindow:a,defaultPosition:c,scrollFirst:o,scrollableBounds:i},!0)),f.previousTweener&&f.previousTweener===h?f.previousTweens===p||f.previousTweens&&m()(p,f.previousTweens)||(f.lastTL&&f.previousTweener&&f.previousTweener.rmScrollableAnim(f.lastTL,f.previousAxis),f.lastTL=null,p.length&&(f.lastTL=h.addScrollableAnim(p,n,l)),f.previousTweens=p):(f.previousTweener&&f.lastTL&&f.previousTweener.rmScrollableAnim(f.lastTL,f.previousAxis),p.length&&(f.lastTL=h.addScrollableAnim(p,n,l)),f.previousTweener=h,f.previousTweens=p),g().useEffect((function(){return function(){f.lastTL&&f.previousTweener&&f.previousTweener.rmScrollableAnim(f.lastTL,f.previousAxis),delete f.previousTweener,delete f.previousScrollable}}),[]),g().createElement(g().Fragment,null)},Xe=require("shortid");var $e=r.n(Xe);function Ge(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)}function Ke(e){return function(e){return"function"==typeof e&&!!e.prototype.isReactComponent}(e)||Ge(e)}var Ze=["children","id","style","initial","pos","noRef","reset","tweener","isRoot","axes","refProp","tweenLines","tweenAxis"],Je=["children","className"];function Qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(r),!0).forEach((function(t){E()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function tt(e,t){return e.map((function(e){return et(et({},e),{},{target:t})}))}var rt=g().forwardRef((function(e,t){var r=e.children,n=e.id,o=void 0===n?g().useMemo((function(){return $e().generate()}),[]):n,i=e.style,a=e.initial,s=e.pos,l=e.noRef,c=(e.reset,e.tweener),u=(e.isRoot,e.axes),p=e.refProp,f=void 0===p?"nodeRef":p,d=e.tweenLines,h=void 0===d?u:d,y=e.tweenAxis,b=void 0===y?h:y,w=_()(e,Ze),O=g().useRef({}).current,P=Ye(!0),S=v()(P,1)[0];if(!(S=c||S))return console.error("No Voodoo tweener found in the context, is there any parent ViewBox ?"),g().createElement(g().Fragment,null);var T,D=S.tweenRef(o,r.props&&r.props.style,i||a,s,t,l);g().useEffect((function(){return function(){O._tweenAxisObj&&Object.keys(O._tweenAxisObj).forEach((function(e){return O._currentTweener.rmScrollableAnim(O._tweenAxisObj[e],e)})),O._currentTweener&&(O._currentTweener.rmTweenRef(O.__tweenableId),O._currentTweener.setRootRef(void 0)),delete O._currentTweener,delete O._tweenAxisObj,delete O._previousScrollable}}),[]),(T=O._tweenAxis!==b&&!(O._tweenAxis&&m()(b,O._tweenAxis))||b&&!O._tweenAxis)||O._currentTweener!==S||O._previousScrollable!==b?(O._currentTweener&&T&&O._tweenAxisObj&&Object.keys(O._tweenAxisObj).forEach((function(e){return O._currentTweener.rmScrollableAnim(O._tweenAxisObj[e],e)})),O._currentTweener&&O._currentTweener!==S&&O._currentTweener.rmTweenRef(o),T&&(O._tweenAxis=b,b&&R().array(b)?O._tweenAxisObj={scrollY:S.addScrollableAnim(tt(b,o))}:O._tweenAxisObj=b&&Object.keys(b).reduce((function(e,t){return e[t]=S.addScrollableAnim(tt(b[t],o),t),e}),{}),D=S.tweenRef(o,r.props&&r.props.style,i||a,s,t,l)),D.style=et({},S._updateTweenRef(o,!0)),w.hasOwnProperty("isRoot")&&(O._currentTweener&&O._currentTweener.setRootRef(void 0),c.setRootRef(o)),O._currentTweener=S,O._previousScrollable=b):D&&(D.style=et({},S._updateTweenRef(o,!0)));var j=g().Children.only(r);return j&&g().isValidElement(j)?(O._lastRef=D,Ge(j.type)?g().createElement(j.type,x()({},w,j.props,D,{ref:void 0},E()({},f,D.ref))):g().createElement(j.type,x()({},w,j.props,D))):(console.error("Invalid voodoo Node child : ",o),g().createElement("div",null,"Invalid"))}));const nt=rt;rt.div=g().forwardRef((function(e,t){var r=e.children,n=e.className,o=_()(e,Je);return g().createElement(rt,x()({},o,{ref:t}),g().createElement("div",{className:n},r))}));var ot=["children","Comp","nodeRef","items","xAxis","yAxis","yBoxRef","xBoxRef","yRef","yHook","xHook","tweener","mouseDrag","touchDrag","button"],it=g().forwardRef((function(e,t){var r=e.children,n=e.Comp,o=void 0===n?"div":n,i=e.nodeRef,a=(e.items,e.xAxis),s=e.yAxis,l=e.yBoxRef,c=e.xBoxRef,u=(e.yRef,e.yHook),p=e.xHook,f=e.tweener,d=e.mouseDrag,h=void 0!==d&&d,y=e.touchDrag,m=void 0===y||y,b=e.button,w=void 0===b?0:b,O=_()(e,ot),P=g().useRef(),S=g().useRef({root:P,_:{}}).current,T=Ye(!0),D=v()(T,1)[0],j=g().useMemo((function(){return{getScrollableNodes:function(e){for(var t=[],r=S._parentTweener;r;)t.push(r),r=r._parentTweener;return t},_registerScrollListeners:function(){var e,t,r,n,o,i,a,s,l,c=null===(e=S.root)||void 0===e?void 0:e.current,u=S.props,p=u.xAxis,f=u.yAxis,d=u.yHook,g=u.xHook,h=u.mouseDrag,v=u.touchDrag,y=u.tweener,m=u.xBoxRef,b=u.yBoxRef,x=u.button,w=y._;c?(we.addEvent(c,S._.dragList={dragstart:function(e,r,u){var d,g,h,v;if(!(e instanceof MouseEvent&&e.button!==x))for(o=j.getScrollableNodes(e.target),t=Date.now(),n=0,i=0,a=[],s=null===(d=(null==m?void 0:m.current)||c)||void 0===d?void 0:d.offsetWidth,l=null===(g=(null==b?void 0:b.current)||c)||void 0===g?void 0:g.offsetHeight,v=0;v<o.length;v++){var y,w;(h=o[v])._updateBox(),h.__isTweener&&(p&&(null===(y=h.axes)||void 0===y||y[p]),f&&(null===(w=h.axes)||void 0===w||w[f]),h._updateNodeInertia())}},click:function(e,r,o){e instanceof MouseEvent&&e.button!==x||t&&(t-Date.now()>w.options.maxClickTm||Math.abs(i)>w.options.maxClickOffset||Math.abs(n)>w.options.maxClickOffset)&&(e.preventDefault(),e.stopPropagation())},drag:function(e,c,u){var h,v,y,_,O,R,P,S,T,D;if(!(e instanceof MouseEvent&&e.button!==x||(n=-(u._lastPos.x-u._startPos.x),i=-(u._lastPos.y-u._startPos.y),t&&t>Date.now()-w.options.maxClickTm&&Math.abs(i)<w.options.maxClickOffset&&Math.abs(n)<w.options.maxClickOffset)))for(_=!n,S=!i,w.options.dragDirectionLock&&("Y"===r||!r&&Math.abs(.5*i)>Math.abs(n)?(r="Y",n=0):("X"===r||!r&&Math.abs(.5*n)>Math.abs(i))&&(r="X",i=0)),D=0;D<o.length;D++)if((h=o[D]).__isTweener){var j,k,E,B,M,A,C,W,I,L;if(v=p&&(null===(j=h.axes)||void 0===j?void 0:j[p]),R=f&&(null===(k=h.axes)||void 0===k?void 0:k[f]),!v&&!R)continue;a[D]||(a[D]={x:null===(M=v)||void 0===M?void 0:M.scrollPos,y:null===(A=R)||void 0===A?void 0:A.scrollPos},null===(C=v)||void 0===C||null===(C=C.inertia)||void 0===C||C.startMove(),null===(W=R)||void 0===W||null===(W=W.inertia)||void 0===W||W.startMove(),p&&v&&(null===(I=v)||void 0===I||!I.inertiaFrame)&&h.applyInertia(v,p),f&&R&&(null===(L=R)||void 0===L||!L.inertiaFrame)&&h.applyInertia(R,f)),v&&(O=null!=m&&m.current?s:h._.box.x,y=n&&n/O*(v.scrollableWindow||v.scrollableArea)||0,g&&(y=g(y))),R&&(T=null!=b&&b.current?l:h._.box.y,P=i&&i/T*(R.scrollableWindow||R.scrollableArea)||0,d&&(P=d(P))),v&&!_&&y&&null!==(E=v)&&void 0!==E&&null!==(E=E.inertia)&&void 0!==E&&E.isInbound(a[D].x+y)&&h.componentShouldScroll(p,y)&&(v.inertia.hold(a[D].x+y),_=!0),R&&!S&&P&&null!==(B=R)&&void 0!==B&&null!==(B=B.inertia)&&void 0!==B&&B.isInbound(a[D].y+P)&&h.componentShouldScroll(f,P)&&(R.inertia.hold(a[D].y+P),S=!0)}},dropped:function(e,s,l){var c,u;if(!(e instanceof MouseEvent&&e.button!==x)){for(r=void 0,u=0;u<o.length;u++){var d,g;(c=o[u]).__isTweener&&a[u]&&(null===(d=c.axes)||void 0===d||null===(d=d[p])||void 0===d||null===(d=d.inertia)||void 0===d||d.release(),null===(g=c.axes)||void 0===g||null===(g=g[f])||void 0===g||null===(g=g.inertia)||void 0===g||g.release())}!t||t>Date.now()-w.options.maxClickTm&&Math.abs(i)<w.options.maxClickOffset&&Math.abs(n)<w.options.maxClickOffset||(e.stopPropagation(),e.cancelable&&e.preventDefault()),o=a=null}}},null,w.options.enableMouseDrag||h,v),S._.doRegister=!!c):S._.doRegister=!0}}}),[]);return g().useEffect((function(){return j._registerScrollListeners(),function(){var e,t=null===(e=S.root)||void 0===e?void 0:e.current;S._.scrollEnabled&&(S._.scrollEnabled=!1,t&&S._.dragList&&we.removeEvent(t,S._.dragList))}}),[]),g().useEffect((function(){R().function(i)&&i(P.current),R().function(t)?t(P.current):t&&(t.current=P.current)}),[i,t]),S.props={xAxis:a,yAxis:s,yHook:u,xHook:p,mouseDrag:h,touchDrag:m,tweener:f||D,xBoxRef:c,yBoxRef:l,button:w},S._parentTweener=D,g().createElement(o,x()({ref:P},O),r)}));const at=it;it.div=function(e){return g().createElement(it,e)};const st=function(){return g().useContext(P)};function lt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var ct={}.constructor;function ut(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=(!t[0]||Ke(t[0]))&&t.shift(),o=(!t[0]||t[0]instanceof ct)&&t.shift()||{};if(!n)return function(e){return ut(e,o)};o=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(r),!0).forEach((function(t){E()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({wheelRatio:5,maxClickTm:200,maxClickOffset:20},o);var i=g().forwardRef((function(e,t){return g().createElement(He,{oProps:e,forwardedRef:t,BaseComponent:n,tweenerOptions:o})}));return i.displayName=String.fromCharCode(55358,56793)+(n.displayName||n.name),i}function pt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pt=function(){return!!e})()}var ft,dt={}.constructor;function gt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=(!t[0]||Ke(t[0]))&&t.shift(),i=(!t[0]||t[0]instanceof dt)&&t.shift()||{};if(!n||!(n.prototype instanceof g().Component||n===g().Component))return function(e){return gt(e,i)};var s=function(e){function t(){return o()(this,t),e=this,r=t,n=arguments,r=u()(r),l()(e,pt()?Reflect.construct(r,n||[],u()(e).constructor):r.apply(e,n));var e,r,n}return f()(t,e),a()(t,[{key:"render",value:function(){var e=this;return g().createElement(P.Consumer,null,(function(t){return g().createElement(n,x()({},e.props,{tweener:t,ref:e.props.forwardedRef}))}))}}])}(g().Component);E()(s,"displayName",n.displayName||n.name);var c=g().forwardRef((function(e,t){return g().createElement(s,x()({},e,{forwardedRef:t}))}));return c.displayName=s.displayName,c}function ht(e,t,r){return t=u()(t),l()(e,vt()?Reflect.construct(t,r||[],u()(e).constructor):t.apply(e,r))}function vt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vt=function(){return!!e})()}ce().EasingFunctions=B;var yt=ut(ft=function(e){function t(){return o()(this,t),ht(this,t,arguments)}return f()(t,e),a()(t,[{key:"render",value:function(){return this.props.children}}])}(g().Component))||ft;const mt={tweener:ut,child:gt,useTweener:st,useVoodoo:Ye,hook:Ye,tools:e,Draggable:at,Component:yt,Node:nt,Context:P,Axis:Ue,dom:we}})(),module.exports=n})();
3
+ //# sourceMappingURL=react-voodoo.js.map