sanity-plugin-shopify-assets 1.0.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5,17 +5,18 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
5
5
  Object.defineProperty(exports, '__esModule', {
6
6
  value: true
7
7
  });
8
+ var sanity = require('sanity');
8
9
  var jsxRuntime = require('react/jsx-runtime');
10
+ var icons = require('@sanity/icons');
9
11
  var ui = require('@sanity/ui');
10
- var sanity = require('sanity');
11
- var r = require('react');
12
- var videojs = require('video.js');
12
+ var React = require('react');
13
13
  var prettyBytes = require('pretty-bytes');
14
14
  var prettyMilliseconds = require('pretty-ms');
15
- var icons = require('@sanity/icons');
15
+ var styledComponents = require('styled-components');
16
+ var videojs = require('video.js');
16
17
  var rxjs = require('rxjs');
17
- var InfiniteScroll = require('react-infinite-scroll-component');
18
18
  var PhotoAlbum = require('react-photo-album');
19
+ var InfiniteScroll = require('react-infinite-scroll-component');
19
20
  var operators = require('rxjs/operators');
20
21
  var axios = require('axios');
21
22
  function _interopDefaultCompat(e) {
@@ -23,1975 +24,44 @@ function _interopDefaultCompat(e) {
23
24
  default: e
24
25
  };
25
26
  }
26
- var r__default = /*#__PURE__*/_interopDefaultCompat(r);
27
- var videojs__default = /*#__PURE__*/_interopDefaultCompat(videojs);
27
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
28
28
  var prettyBytes__default = /*#__PURE__*/_interopDefaultCompat(prettyBytes);
29
29
  var prettyMilliseconds__default = /*#__PURE__*/_interopDefaultCompat(prettyMilliseconds);
30
- var InfiniteScroll__default = /*#__PURE__*/_interopDefaultCompat(InfiniteScroll);
30
+ var videojs__default = /*#__PURE__*/_interopDefaultCompat(videojs);
31
31
  var PhotoAlbum__default = /*#__PURE__*/_interopDefaultCompat(PhotoAlbum);
32
+ var InfiniteScroll__default = /*#__PURE__*/_interopDefaultCompat(InfiniteScroll);
32
33
  var axios__default = /*#__PURE__*/_interopDefaultCompat(axios);
33
- var reactIsExports$1 = {};
34
- var reactIs$2 = {
35
- get exports() {
36
- return reactIsExports$1;
37
- },
38
- set exports(v) {
39
- reactIsExports$1 = v;
40
- }
41
- };
42
- var reactIs_production_min$1 = {};
43
-
44
- /**
45
- * @license React
46
- * react-is.production.min.js
47
- *
48
- * Copyright (c) Facebook, Inc. and its affiliates.
49
- *
50
- * This source code is licensed under the MIT license found in the
51
- * LICENSE file in the root directory of this source tree.
52
- */
53
-
54
- var hasRequiredReactIs_production_min$1;
55
- function requireReactIs_production_min$1() {
56
- if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1;
57
- hasRequiredReactIs_production_min$1 = 1;
58
- var b = Symbol.for("react.element"),
59
- c = Symbol.for("react.portal"),
60
- d = Symbol.for("react.fragment"),
61
- e = Symbol.for("react.strict_mode"),
62
- f = Symbol.for("react.profiler"),
63
- g = Symbol.for("react.provider"),
64
- h = Symbol.for("react.context"),
65
- k = Symbol.for("react.server_context"),
66
- l = Symbol.for("react.forward_ref"),
67
- m = Symbol.for("react.suspense"),
68
- n = Symbol.for("react.suspense_list"),
69
- p = Symbol.for("react.memo"),
70
- q = Symbol.for("react.lazy"),
71
- t = Symbol.for("react.offscreen"),
72
- u;
73
- u = Symbol.for("react.module.reference");
74
- function v(a) {
75
- if ("object" === typeof a && null !== a) {
76
- var r = a.$$typeof;
77
- switch (r) {
78
- case b:
79
- switch (a = a.type, a) {
80
- case d:
81
- case f:
82
- case e:
83
- case m:
84
- case n:
85
- return a;
86
- default:
87
- switch (a = a && a.$$typeof, a) {
88
- case k:
89
- case h:
90
- case l:
91
- case q:
92
- case p:
93
- case g:
94
- return a;
95
- default:
96
- return r;
97
- }
98
- }
99
- case c:
100
- return r;
101
- }
102
- }
103
- }
104
- reactIs_production_min$1.ContextConsumer = h;
105
- reactIs_production_min$1.ContextProvider = g;
106
- reactIs_production_min$1.Element = b;
107
- reactIs_production_min$1.ForwardRef = l;
108
- reactIs_production_min$1.Fragment = d;
109
- reactIs_production_min$1.Lazy = q;
110
- reactIs_production_min$1.Memo = p;
111
- reactIs_production_min$1.Portal = c;
112
- reactIs_production_min$1.Profiler = f;
113
- reactIs_production_min$1.StrictMode = e;
114
- reactIs_production_min$1.Suspense = m;
115
- reactIs_production_min$1.SuspenseList = n;
116
- reactIs_production_min$1.isAsyncMode = function () {
117
- return !1;
118
- };
119
- reactIs_production_min$1.isConcurrentMode = function () {
120
- return !1;
121
- };
122
- reactIs_production_min$1.isContextConsumer = function (a) {
123
- return v(a) === h;
124
- };
125
- reactIs_production_min$1.isContextProvider = function (a) {
126
- return v(a) === g;
127
- };
128
- reactIs_production_min$1.isElement = function (a) {
129
- return "object" === typeof a && null !== a && a.$$typeof === b;
130
- };
131
- reactIs_production_min$1.isForwardRef = function (a) {
132
- return v(a) === l;
133
- };
134
- reactIs_production_min$1.isFragment = function (a) {
135
- return v(a) === d;
136
- };
137
- reactIs_production_min$1.isLazy = function (a) {
138
- return v(a) === q;
139
- };
140
- reactIs_production_min$1.isMemo = function (a) {
141
- return v(a) === p;
142
- };
143
- reactIs_production_min$1.isPortal = function (a) {
144
- return v(a) === c;
145
- };
146
- reactIs_production_min$1.isProfiler = function (a) {
147
- return v(a) === f;
148
- };
149
- reactIs_production_min$1.isStrictMode = function (a) {
150
- return v(a) === e;
151
- };
152
- reactIs_production_min$1.isSuspense = function (a) {
153
- return v(a) === m;
154
- };
155
- reactIs_production_min$1.isSuspenseList = function (a) {
156
- return v(a) === n;
157
- };
158
- reactIs_production_min$1.isValidElementType = function (a) {
159
- return "string" === typeof a || "function" === typeof a || a === d || a === f || a === e || a === m || a === n || a === t || "object" === typeof a && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || void 0 !== a.getModuleId) ? !0 : !1;
160
- };
161
- reactIs_production_min$1.typeOf = v;
162
- return reactIs_production_min$1;
163
- }
164
- var reactIs_development$1 = {};
165
-
166
- /**
167
- * @license React
168
- * react-is.development.js
169
- *
170
- * Copyright (c) Facebook, Inc. and its affiliates.
171
- *
172
- * This source code is licensed under the MIT license found in the
173
- * LICENSE file in the root directory of this source tree.
174
- */
175
-
176
- var hasRequiredReactIs_development$1;
177
- function requireReactIs_development$1() {
178
- if (hasRequiredReactIs_development$1) return reactIs_development$1;
179
- hasRequiredReactIs_development$1 = 1;
180
- if (process.env.NODE_ENV !== "production") {
181
- (function () {
182
- // ATTENTION
183
- // When adding new symbols to this file,
184
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
185
- // The Symbol used to tag the ReactElement-like types.
186
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
187
- var REACT_PORTAL_TYPE = Symbol.for('react.portal');
188
- var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
189
- var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
190
- var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
191
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
192
- var REACT_CONTEXT_TYPE = Symbol.for('react.context');
193
- var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
194
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
195
- var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
196
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
197
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
198
- var REACT_LAZY_TYPE = Symbol.for('react.lazy');
199
- var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
200
-
201
- // -----------------------------------------------------------------------------
202
-
203
- var enableScopeAPI = false; // Experimental Create Event Handle API.
204
- var enableCacheElement = false;
205
- var enableTransitionTracing = false; // No known bugs, but needs performance testing
206
-
207
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
208
- // stuff. Intended to enable React core members to more easily debug scheduling
209
- // issues in DEV builds.
210
-
211
- var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
212
-
213
- var REACT_MODULE_REFERENCE;
214
- {
215
- REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
216
- }
217
- function isValidElementType(type) {
218
- if (typeof type === 'string' || typeof type === 'function') {
219
- return true;
220
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
221
-
222
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
223
- return true;
224
- }
225
- if (typeof type === 'object' && type !== null) {
226
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE ||
227
- // This needs to include all possible module reference object
228
- // types supported by any Flight configuration anywhere since
229
- // we don't know which Flight build this will end up being used
230
- // with.
231
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
232
- return true;
233
- }
234
- }
235
- return false;
236
- }
237
- function typeOf(object) {
238
- if (typeof object === 'object' && object !== null) {
239
- var $$typeof = object.$$typeof;
240
- switch ($$typeof) {
241
- case REACT_ELEMENT_TYPE:
242
- var type = object.type;
243
- switch (type) {
244
- case REACT_FRAGMENT_TYPE:
245
- case REACT_PROFILER_TYPE:
246
- case REACT_STRICT_MODE_TYPE:
247
- case REACT_SUSPENSE_TYPE:
248
- case REACT_SUSPENSE_LIST_TYPE:
249
- return type;
250
- default:
251
- var $$typeofType = type && type.$$typeof;
252
- switch ($$typeofType) {
253
- case REACT_SERVER_CONTEXT_TYPE:
254
- case REACT_CONTEXT_TYPE:
255
- case REACT_FORWARD_REF_TYPE:
256
- case REACT_LAZY_TYPE:
257
- case REACT_MEMO_TYPE:
258
- case REACT_PROVIDER_TYPE:
259
- return $$typeofType;
260
- default:
261
- return $$typeof;
262
- }
263
- }
264
- case REACT_PORTAL_TYPE:
265
- return $$typeof;
266
- }
267
- }
268
- return undefined;
269
- }
270
- var ContextConsumer = REACT_CONTEXT_TYPE;
271
- var ContextProvider = REACT_PROVIDER_TYPE;
272
- var Element = REACT_ELEMENT_TYPE;
273
- var ForwardRef = REACT_FORWARD_REF_TYPE;
274
- var Fragment = REACT_FRAGMENT_TYPE;
275
- var Lazy = REACT_LAZY_TYPE;
276
- var Memo = REACT_MEMO_TYPE;
277
- var Portal = REACT_PORTAL_TYPE;
278
- var Profiler = REACT_PROFILER_TYPE;
279
- var StrictMode = REACT_STRICT_MODE_TYPE;
280
- var Suspense = REACT_SUSPENSE_TYPE;
281
- var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
282
- var hasWarnedAboutDeprecatedIsAsyncMode = false;
283
- var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
284
-
285
- function isAsyncMode(object) {
286
- {
287
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
288
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
289
-
290
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
291
- }
292
- }
293
- return false;
294
- }
295
- function isConcurrentMode(object) {
296
- {
297
- if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
298
- hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
299
-
300
- console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
301
- }
302
- }
303
- return false;
304
- }
305
- function isContextConsumer(object) {
306
- return typeOf(object) === REACT_CONTEXT_TYPE;
307
- }
308
- function isContextProvider(object) {
309
- return typeOf(object) === REACT_PROVIDER_TYPE;
310
- }
311
- function isElement(object) {
312
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
313
- }
314
- function isForwardRef(object) {
315
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
316
- }
317
- function isFragment(object) {
318
- return typeOf(object) === REACT_FRAGMENT_TYPE;
319
- }
320
- function isLazy(object) {
321
- return typeOf(object) === REACT_LAZY_TYPE;
322
- }
323
- function isMemo(object) {
324
- return typeOf(object) === REACT_MEMO_TYPE;
325
- }
326
- function isPortal(object) {
327
- return typeOf(object) === REACT_PORTAL_TYPE;
328
- }
329
- function isProfiler(object) {
330
- return typeOf(object) === REACT_PROFILER_TYPE;
331
- }
332
- function isStrictMode(object) {
333
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
334
- }
335
- function isSuspense(object) {
336
- return typeOf(object) === REACT_SUSPENSE_TYPE;
337
- }
338
- function isSuspenseList(object) {
339
- return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
340
- }
341
- reactIs_development$1.ContextConsumer = ContextConsumer;
342
- reactIs_development$1.ContextProvider = ContextProvider;
343
- reactIs_development$1.Element = Element;
344
- reactIs_development$1.ForwardRef = ForwardRef;
345
- reactIs_development$1.Fragment = Fragment;
346
- reactIs_development$1.Lazy = Lazy;
347
- reactIs_development$1.Memo = Memo;
348
- reactIs_development$1.Portal = Portal;
349
- reactIs_development$1.Profiler = Profiler;
350
- reactIs_development$1.StrictMode = StrictMode;
351
- reactIs_development$1.Suspense = Suspense;
352
- reactIs_development$1.SuspenseList = SuspenseList;
353
- reactIs_development$1.isAsyncMode = isAsyncMode;
354
- reactIs_development$1.isConcurrentMode = isConcurrentMode;
355
- reactIs_development$1.isContextConsumer = isContextConsumer;
356
- reactIs_development$1.isContextProvider = isContextProvider;
357
- reactIs_development$1.isElement = isElement;
358
- reactIs_development$1.isForwardRef = isForwardRef;
359
- reactIs_development$1.isFragment = isFragment;
360
- reactIs_development$1.isLazy = isLazy;
361
- reactIs_development$1.isMemo = isMemo;
362
- reactIs_development$1.isPortal = isPortal;
363
- reactIs_development$1.isProfiler = isProfiler;
364
- reactIs_development$1.isStrictMode = isStrictMode;
365
- reactIs_development$1.isSuspense = isSuspense;
366
- reactIs_development$1.isSuspenseList = isSuspenseList;
367
- reactIs_development$1.isValidElementType = isValidElementType;
368
- reactIs_development$1.typeOf = typeOf;
369
- })();
370
- }
371
- return reactIs_development$1;
372
- }
373
- (function (module) {
374
- if (process.env.NODE_ENV === 'production') {
375
- module.exports = requireReactIs_production_min$1();
376
- } else {
377
- module.exports = requireReactIs_development$1();
378
- }
379
- })(reactIs$2);
380
- function stylis_min(W) {
381
- function M(d, c, e, h, a) {
382
- for (var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = '', p = '', F = '', G = '', C; l < B;) {
383
- g = e.charCodeAt(l);
384
- l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);
385
- if (0 === b + n + v + m) {
386
- if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {
387
- switch (g) {
388
- case 32:
389
- case 9:
390
- case 59:
391
- case 13:
392
- case 10:
393
- break;
394
- default:
395
- f += e.charAt(l);
396
- }
397
- g = 59;
398
- }
399
- switch (g) {
400
- case 123:
401
- f = f.trim();
402
- q = f.charCodeAt(0);
403
- k = 1;
404
- for (t = ++l; l < B;) {
405
- switch (g = e.charCodeAt(l)) {
406
- case 123:
407
- k++;
408
- break;
409
- case 125:
410
- k--;
411
- break;
412
- case 47:
413
- switch (g = e.charCodeAt(l + 1)) {
414
- case 42:
415
- case 47:
416
- a: {
417
- for (u = l + 1; u < J; ++u) {
418
- switch (e.charCodeAt(u)) {
419
- case 47:
420
- if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {
421
- l = u + 1;
422
- break a;
423
- }
424
- break;
425
- case 10:
426
- if (47 === g) {
427
- l = u + 1;
428
- break a;
429
- }
430
- }
431
- }
432
- l = u;
433
- }
434
- }
435
- break;
436
- case 91:
437
- g++;
438
- case 40:
439
- g++;
440
- case 34:
441
- case 39:
442
- for (; l++ < J && e.charCodeAt(l) !== g;) {}
443
- }
444
- if (0 === k) break;
445
- l++;
446
- }
447
- k = e.substring(t, l);
448
- 0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));
449
- switch (q) {
450
- case 64:
451
- 0 < r && (f = f.replace(N, ''));
452
- g = f.charCodeAt(1);
453
- switch (g) {
454
- case 100:
455
- case 109:
456
- case 115:
457
- case 45:
458
- r = c;
459
- break;
460
- default:
461
- r = O;
462
- }
463
- k = M(c, r, k, g, a + 1);
464
- t = k.length;
465
- 0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(''), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = ''));
466
- if (0 < t) switch (g) {
467
- case 115:
468
- f = f.replace(da, ea);
469
- case 100:
470
- case 109:
471
- case 45:
472
- k = f + '{' + k + '}';
473
- break;
474
- case 107:
475
- f = f.replace(fa, '$1 $2');
476
- k = f + '{' + k + '}';
477
- k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
478
- break;
479
- default:
480
- k = f + k, 112 === h && (k = (p += k, ''));
481
- } else k = '';
482
- break;
483
- default:
484
- k = M(c, X(c, f, I), k, h, a + 1);
485
- }
486
- F += k;
487
- k = I = r = u = q = 0;
488
- f = '';
489
- g = e.charCodeAt(++l);
490
- break;
491
- case 125:
492
- case 59:
493
- f = (0 < r ? f.replace(N, '') : f).trim();
494
- if (1 < (t = f.length)) switch (0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\x00\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) {
495
- case 0:
496
- break;
497
- case 64:
498
- if (105 === g || 99 === g) {
499
- G += f + e.charAt(l);
500
- break;
501
- }
502
- default:
503
- 58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
504
- }
505
- I = r = u = q = 0;
506
- f = '';
507
- g = e.charCodeAt(++l);
508
- }
509
- }
510
- switch (g) {
511
- case 13:
512
- case 10:
513
- 47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00');
514
- 0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);
515
- z = 1;
516
- D++;
517
- break;
518
- case 59:
519
- case 125:
520
- if (0 === b + n + v + m) {
521
- z++;
522
- break;
523
- }
524
- default:
525
- z++;
526
- y = e.charAt(l);
527
- switch (g) {
528
- case 9:
529
- case 32:
530
- if (0 === n + m + b) switch (x) {
531
- case 44:
532
- case 58:
533
- case 9:
534
- case 32:
535
- y = '';
536
- break;
537
- default:
538
- 32 !== g && (y = ' ');
539
- }
540
- break;
541
- case 0:
542
- y = '\\0';
543
- break;
544
- case 12:
545
- y = '\\f';
546
- break;
547
- case 11:
548
- y = '\\v';
549
- break;
550
- case 38:
551
- 0 === n + b + m && (r = I = 1, y = '\f' + y);
552
- break;
553
- case 108:
554
- if (0 === n + b + m + E && 0 < u) switch (l - u) {
555
- case 2:
556
- 112 === x && 58 === e.charCodeAt(l - 3) && (E = x);
557
- case 8:
558
- 111 === K && (E = K);
559
- }
560
- break;
561
- case 58:
562
- 0 === n + b + m && (u = l);
563
- break;
564
- case 44:
565
- 0 === b + v + n + m && (r = 1, y += '\r');
566
- break;
567
- case 34:
568
- case 39:
569
- 0 === b && (n = n === g ? 0 : 0 === n ? g : n);
570
- break;
571
- case 91:
572
- 0 === n + b + v && m++;
573
- break;
574
- case 93:
575
- 0 === n + b + v && m--;
576
- break;
577
- case 41:
578
- 0 === n + b + m && v--;
579
- break;
580
- case 40:
581
- if (0 === n + b + m) {
582
- if (0 === q) switch (2 * x + 3 * K) {
583
- case 533:
584
- break;
585
- default:
586
- q = 1;
587
- }
588
- v++;
589
- }
590
- break;
591
- case 64:
592
- 0 === b + v + n + m + u + k && (k = 1);
593
- break;
594
- case 42:
595
- case 47:
596
- if (!(0 < n + m + v)) switch (b) {
597
- case 0:
598
- switch (2 * g + 3 * e.charCodeAt(l + 1)) {
599
- case 235:
600
- b = 47;
601
- break;
602
- case 220:
603
- t = l, b = 42;
604
- }
605
- break;
606
- case 42:
607
- 47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);
608
- }
609
- }
610
- 0 === b && (f += y);
611
- }
612
- K = x;
613
- x = g;
614
- l++;
615
- }
616
- t = p.length;
617
- if (0 < t) {
618
- r = c;
619
- if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F;
620
- p = r.join(',') + '{' + p + '}';
621
- if (0 !== w * E) {
622
- 2 !== w || L(p, 2) || (E = 0);
623
- switch (E) {
624
- case 111:
625
- p = p.replace(ha, ':-moz-$1') + p;
626
- break;
627
- case 112:
628
- p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;
629
- }
630
- E = 0;
631
- }
632
- }
633
- return G + p + F;
634
- }
635
- function X(d, c, e) {
636
- var h = c.trim().split(ia);
637
- c = h;
638
- var a = h.length,
639
- m = d.length;
640
- switch (m) {
641
- case 0:
642
- case 1:
643
- var b = 0;
644
- for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {
645
- c[b] = Z(d, c[b], e).trim();
646
- }
647
- break;
648
- default:
649
- var v = b = 0;
650
- for (c = []; b < a; ++b) {
651
- for (var n = 0; n < m; ++n) {
652
- c[v++] = Z(d[n] + ' ', h[b], e).trim();
653
- }
654
- }
655
- }
656
- return c;
657
- }
658
- function Z(d, c, e) {
659
- var h = c.charCodeAt(0);
660
- 33 > h && (h = (c = c.trim()).charCodeAt(0));
661
- switch (h) {
662
- case 38:
663
- return c.replace(F, '$1' + d.trim());
664
- case 58:
665
- return d.trim() + c.replace(F, '$1' + d.trim());
666
- default:
667
- if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());
668
- }
669
- return d + c;
670
- }
671
- function P(d, c, e, h) {
672
- var a = d + ';',
673
- m = 2 * c + 3 * e + 4 * h;
674
- if (944 === m) {
675
- d = a.indexOf(':', 9) + 1;
676
- var b = a.substring(d, a.length - 1).trim();
677
- b = a.substring(0, d).trim() + b + ';';
678
- return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;
679
- }
680
- if (0 === w || 2 === w && !L(a, 1)) return a;
681
- switch (m) {
682
- case 1015:
683
- return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;
684
- case 951:
685
- return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;
686
- case 963:
687
- return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;
688
- case 1009:
689
- if (100 !== a.charCodeAt(4)) break;
690
- case 969:
691
- case 942:
692
- return '-webkit-' + a + a;
693
- case 978:
694
- return '-webkit-' + a + '-moz-' + a + a;
695
- case 1019:
696
- case 983:
697
- return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;
698
- case 883:
699
- if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;
700
- if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;
701
- break;
702
- case 932:
703
- if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {
704
- case 103:
705
- return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;
706
- case 115:
707
- return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;
708
- case 98:
709
- return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;
710
- }
711
- return '-webkit-' + a + '-ms-' + a + a;
712
- case 964:
713
- return '-webkit-' + a + '-ms-flex-' + a + a;
714
- case 1023:
715
- if (99 !== a.charCodeAt(8)) break;
716
- b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');
717
- return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;
718
- case 1005:
719
- return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;
720
- case 1e3:
721
- b = a.substring(13).trim();
722
- c = b.indexOf('-') + 1;
723
- switch (b.charCodeAt(0) + b.charCodeAt(c)) {
724
- case 226:
725
- b = a.replace(G, 'tb');
726
- break;
727
- case 232:
728
- b = a.replace(G, 'tb-rl');
729
- break;
730
- case 220:
731
- b = a.replace(G, 'lr');
732
- break;
733
- default:
734
- return a;
735
- }
736
- return '-webkit-' + a + '-ms-' + b + a;
737
- case 1017:
738
- if (-1 === a.indexOf('sticky', 9)) break;
739
- case 975:
740
- c = (a = d).length - 10;
741
- b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();
742
- switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {
743
- case 203:
744
- if (111 > b.charCodeAt(8)) break;
745
- case 115:
746
- a = a.replace(b, '-webkit-' + b) + ';' + a;
747
- break;
748
- case 207:
749
- case 102:
750
- a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
751
- }
752
- return a + ';';
753
- case 938:
754
- if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {
755
- case 105:
756
- return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;
757
- case 115:
758
- return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
759
- default:
760
- return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;
761
- }
762
- break;
763
- case 973:
764
- case 989:
765
- if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
766
- case 931:
767
- case 953:
768
- if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a;
769
- break;
770
- case 962:
771
- if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a;
772
- }
773
- return a;
774
- }
775
- function L(d, c) {
776
- var e = d.indexOf(1 === c ? ':' : '{'),
777
- h = d.substring(0, 3 !== c ? e : 10);
778
- e = d.substring(e + 1, d.length - 1);
779
- return R(2 !== c ? h : h.replace(na, '$1'), e, c);
780
- }
781
- function ea(d, c) {
782
- var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));
783
- return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';
784
- }
785
- function H(d, c, e, h, a, m, b, v, n, q) {
786
- for (var g = 0, x = c, w; g < A; ++g) {
787
- switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
788
- case void 0:
789
- case !1:
790
- case !0:
791
- case null:
792
- break;
793
- default:
794
- x = w;
795
- }
796
- }
797
- if (x !== c) return x;
798
- }
799
- function T(d) {
800
- switch (d) {
801
- case void 0:
802
- case null:
803
- A = S.length = 0;
804
- break;
805
- default:
806
- if ('function' === typeof d) S[A++] = d;else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) {
807
- T(d[c]);
808
- } else Y = !!d | 0;
809
- }
810
- return T;
811
- }
812
- function U(d) {
813
- d = d.prefix;
814
- void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
815
- return U;
816
- }
817
- function B(d, c) {
818
- var e = d;
819
- 33 > e.charCodeAt(0) && (e = e.trim());
820
- V = e;
821
- e = [V];
822
- if (0 < A) {
823
- var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
824
- void 0 !== h && 'string' === typeof h && (c = h);
825
- }
826
- var a = M(O, e, c, 0, 0);
827
- 0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
828
- V = '';
829
- E = 0;
830
- z = D = 1;
831
- return a;
832
- }
833
- var ca = /^\0+/g,
834
- N = /[\0\r\f]/g,
835
- aa = /: */g,
836
- ka = /zoo|gra/,
837
- ma = /([,: ])(transform)/g,
838
- ia = /,\r+?/g,
839
- F = /([\t\r\n ])*\f?&/g,
840
- fa = /@(k\w+)\s*(\S*)\s*/,
841
- Q = /::(place)/g,
842
- ha = /:(read-only)/g,
843
- G = /[svh]\w+-[tblr]{2}/,
844
- da = /\(\s*(.*)\s*\)/g,
845
- oa = /([\s\S]*?);/g,
846
- ba = /-self|flex-/g,
847
- na = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
848
- la = /stretch|:\s*\w+\-(?:conte|avail)/,
849
- ja = /([^-])(image-set\()/,
850
- z = 1,
851
- D = 1,
852
- E = 0,
853
- w = 1,
854
- O = [],
855
- S = [],
856
- A = 0,
857
- R = null,
858
- Y = 0,
859
- V = '';
860
- B.use = T;
861
- B.set = U;
862
- void 0 !== W && U(W);
863
- return B;
864
- }
865
- var unitlessKeys = {
866
- animationIterationCount: 1,
867
- borderImageOutset: 1,
868
- borderImageSlice: 1,
869
- borderImageWidth: 1,
870
- boxFlex: 1,
871
- boxFlexGroup: 1,
872
- boxOrdinalGroup: 1,
873
- columnCount: 1,
874
- columns: 1,
875
- flex: 1,
876
- flexGrow: 1,
877
- flexPositive: 1,
878
- flexShrink: 1,
879
- flexNegative: 1,
880
- flexOrder: 1,
881
- gridRow: 1,
882
- gridRowEnd: 1,
883
- gridRowSpan: 1,
884
- gridRowStart: 1,
885
- gridColumn: 1,
886
- gridColumnEnd: 1,
887
- gridColumnSpan: 1,
888
- gridColumnStart: 1,
889
- msGridRow: 1,
890
- msGridRowSpan: 1,
891
- msGridColumn: 1,
892
- msGridColumnSpan: 1,
893
- fontWeight: 1,
894
- lineHeight: 1,
895
- opacity: 1,
896
- order: 1,
897
- orphans: 1,
898
- tabSize: 1,
899
- widows: 1,
900
- zIndex: 1,
901
- zoom: 1,
902
- WebkitLineClamp: 1,
903
- // SVG-related properties
904
- fillOpacity: 1,
905
- floodOpacity: 1,
906
- stopOpacity: 1,
907
- strokeDasharray: 1,
908
- strokeDashoffset: 1,
909
- strokeMiterlimit: 1,
910
- strokeOpacity: 1,
911
- strokeWidth: 1
912
- };
913
- function memoize(fn) {
914
- var cache = Object.create(null);
915
- return function (arg) {
916
- if (cache[arg] === undefined) cache[arg] = fn(arg);
917
- return cache[arg];
918
- };
919
- }
920
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
921
-
922
- var isPropValid = /* #__PURE__ */memoize(function (prop) {
923
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
924
- /* o */ && prop.charCodeAt(1) === 110
925
- /* n */ && prop.charCodeAt(2) < 91;
926
- }
927
- /* Z+1 */);
928
-
929
- var reactIsExports = {};
930
- var reactIs$1 = {
931
- get exports() {
932
- return reactIsExports;
933
- },
934
- set exports(v) {
935
- reactIsExports = v;
936
- }
937
- };
938
- var reactIs_production_min = {};
939
-
940
- /** @license React v16.13.1
941
- * react-is.production.min.js
942
- *
943
- * Copyright (c) Facebook, Inc. and its affiliates.
944
- *
945
- * This source code is licensed under the MIT license found in the
946
- * LICENSE file in the root directory of this source tree.
947
- */
948
-
949
- var hasRequiredReactIs_production_min;
950
- function requireReactIs_production_min() {
951
- if (hasRequiredReactIs_production_min) return reactIs_production_min;
952
- hasRequiredReactIs_production_min = 1;
953
- var b = "function" === typeof Symbol && Symbol.for,
954
- c = b ? Symbol.for("react.element") : 60103,
955
- d = b ? Symbol.for("react.portal") : 60106,
956
- e = b ? Symbol.for("react.fragment") : 60107,
957
- f = b ? Symbol.for("react.strict_mode") : 60108,
958
- g = b ? Symbol.for("react.profiler") : 60114,
959
- h = b ? Symbol.for("react.provider") : 60109,
960
- k = b ? Symbol.for("react.context") : 60110,
961
- l = b ? Symbol.for("react.async_mode") : 60111,
962
- m = b ? Symbol.for("react.concurrent_mode") : 60111,
963
- n = b ? Symbol.for("react.forward_ref") : 60112,
964
- p = b ? Symbol.for("react.suspense") : 60113,
965
- q = b ? Symbol.for("react.suspense_list") : 60120,
966
- r = b ? Symbol.for("react.memo") : 60115,
967
- t = b ? Symbol.for("react.lazy") : 60116,
968
- v = b ? Symbol.for("react.block") : 60121,
969
- w = b ? Symbol.for("react.fundamental") : 60117,
970
- x = b ? Symbol.for("react.responder") : 60118,
971
- y = b ? Symbol.for("react.scope") : 60119;
972
- function z(a) {
973
- if ("object" === typeof a && null !== a) {
974
- var u = a.$$typeof;
975
- switch (u) {
976
- case c:
977
- switch (a = a.type, a) {
978
- case l:
979
- case m:
980
- case e:
981
- case g:
982
- case f:
983
- case p:
984
- return a;
985
- default:
986
- switch (a = a && a.$$typeof, a) {
987
- case k:
988
- case n:
989
- case t:
990
- case r:
991
- case h:
992
- return a;
993
- default:
994
- return u;
995
- }
996
- }
997
- case d:
998
- return u;
999
- }
1000
- }
1001
- }
1002
- function A(a) {
1003
- return z(a) === m;
1004
- }
1005
- reactIs_production_min.AsyncMode = l;
1006
- reactIs_production_min.ConcurrentMode = m;
1007
- reactIs_production_min.ContextConsumer = k;
1008
- reactIs_production_min.ContextProvider = h;
1009
- reactIs_production_min.Element = c;
1010
- reactIs_production_min.ForwardRef = n;
1011
- reactIs_production_min.Fragment = e;
1012
- reactIs_production_min.Lazy = t;
1013
- reactIs_production_min.Memo = r;
1014
- reactIs_production_min.Portal = d;
1015
- reactIs_production_min.Profiler = g;
1016
- reactIs_production_min.StrictMode = f;
1017
- reactIs_production_min.Suspense = p;
1018
- reactIs_production_min.isAsyncMode = function (a) {
1019
- return A(a) || z(a) === l;
1020
- };
1021
- reactIs_production_min.isConcurrentMode = A;
1022
- reactIs_production_min.isContextConsumer = function (a) {
1023
- return z(a) === k;
1024
- };
1025
- reactIs_production_min.isContextProvider = function (a) {
1026
- return z(a) === h;
1027
- };
1028
- reactIs_production_min.isElement = function (a) {
1029
- return "object" === typeof a && null !== a && a.$$typeof === c;
1030
- };
1031
- reactIs_production_min.isForwardRef = function (a) {
1032
- return z(a) === n;
1033
- };
1034
- reactIs_production_min.isFragment = function (a) {
1035
- return z(a) === e;
1036
- };
1037
- reactIs_production_min.isLazy = function (a) {
1038
- return z(a) === t;
1039
- };
1040
- reactIs_production_min.isMemo = function (a) {
1041
- return z(a) === r;
1042
- };
1043
- reactIs_production_min.isPortal = function (a) {
1044
- return z(a) === d;
1045
- };
1046
- reactIs_production_min.isProfiler = function (a) {
1047
- return z(a) === g;
1048
- };
1049
- reactIs_production_min.isStrictMode = function (a) {
1050
- return z(a) === f;
1051
- };
1052
- reactIs_production_min.isSuspense = function (a) {
1053
- return z(a) === p;
1054
- };
1055
- reactIs_production_min.isValidElementType = function (a) {
1056
- return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
1057
- };
1058
- reactIs_production_min.typeOf = z;
1059
- return reactIs_production_min;
1060
- }
1061
- var reactIs_development = {};
1062
-
1063
- /** @license React v16.13.1
1064
- * react-is.development.js
1065
- *
1066
- * Copyright (c) Facebook, Inc. and its affiliates.
1067
- *
1068
- * This source code is licensed under the MIT license found in the
1069
- * LICENSE file in the root directory of this source tree.
1070
- */
1071
-
1072
- var hasRequiredReactIs_development;
1073
- function requireReactIs_development() {
1074
- if (hasRequiredReactIs_development) return reactIs_development;
1075
- hasRequiredReactIs_development = 1;
1076
- if (process.env.NODE_ENV !== "production") {
1077
- (function () {
1078
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
1079
- // nor polyfill, then a plain number is used for performance.
1080
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
1081
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
1082
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
1083
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
1084
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
1085
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
1086
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
1087
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
1088
- // (unstable) APIs that have been removed. Can we remove the symbols?
1089
-
1090
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
1091
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
1092
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
1093
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
1094
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
1095
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
1096
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
1097
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
1098
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
1099
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
1100
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
1101
- function isValidElementType(type) {
1102
- return typeof type === 'string' || typeof type === 'function' ||
1103
- // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1104
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
1105
- }
1106
- function typeOf(object) {
1107
- if (typeof object === 'object' && object !== null) {
1108
- var $$typeof = object.$$typeof;
1109
- switch ($$typeof) {
1110
- case REACT_ELEMENT_TYPE:
1111
- var type = object.type;
1112
- switch (type) {
1113
- case REACT_ASYNC_MODE_TYPE:
1114
- case REACT_CONCURRENT_MODE_TYPE:
1115
- case REACT_FRAGMENT_TYPE:
1116
- case REACT_PROFILER_TYPE:
1117
- case REACT_STRICT_MODE_TYPE:
1118
- case REACT_SUSPENSE_TYPE:
1119
- return type;
1120
- default:
1121
- var $$typeofType = type && type.$$typeof;
1122
- switch ($$typeofType) {
1123
- case REACT_CONTEXT_TYPE:
1124
- case REACT_FORWARD_REF_TYPE:
1125
- case REACT_LAZY_TYPE:
1126
- case REACT_MEMO_TYPE:
1127
- case REACT_PROVIDER_TYPE:
1128
- return $$typeofType;
1129
- default:
1130
- return $$typeof;
1131
- }
1132
- }
1133
- case REACT_PORTAL_TYPE:
1134
- return $$typeof;
1135
- }
1136
- }
1137
- return undefined;
1138
- } // AsyncMode is deprecated along with isAsyncMode
1139
-
1140
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
1141
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1142
- var ContextConsumer = REACT_CONTEXT_TYPE;
1143
- var ContextProvider = REACT_PROVIDER_TYPE;
1144
- var Element = REACT_ELEMENT_TYPE;
1145
- var ForwardRef = REACT_FORWARD_REF_TYPE;
1146
- var Fragment = REACT_FRAGMENT_TYPE;
1147
- var Lazy = REACT_LAZY_TYPE;
1148
- var Memo = REACT_MEMO_TYPE;
1149
- var Portal = REACT_PORTAL_TYPE;
1150
- var Profiler = REACT_PROFILER_TYPE;
1151
- var StrictMode = REACT_STRICT_MODE_TYPE;
1152
- var Suspense = REACT_SUSPENSE_TYPE;
1153
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
1154
-
1155
- function isAsyncMode(object) {
1156
- {
1157
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1158
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1159
-
1160
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
1161
- }
1162
- }
1163
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
1164
- }
1165
- function isConcurrentMode(object) {
1166
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
1167
- }
1168
- function isContextConsumer(object) {
1169
- return typeOf(object) === REACT_CONTEXT_TYPE;
1170
- }
1171
- function isContextProvider(object) {
1172
- return typeOf(object) === REACT_PROVIDER_TYPE;
1173
- }
1174
- function isElement(object) {
1175
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1176
- }
1177
- function isForwardRef(object) {
1178
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
1179
- }
1180
- function isFragment(object) {
1181
- return typeOf(object) === REACT_FRAGMENT_TYPE;
1182
- }
1183
- function isLazy(object) {
1184
- return typeOf(object) === REACT_LAZY_TYPE;
1185
- }
1186
- function isMemo(object) {
1187
- return typeOf(object) === REACT_MEMO_TYPE;
1188
- }
1189
- function isPortal(object) {
1190
- return typeOf(object) === REACT_PORTAL_TYPE;
1191
- }
1192
- function isProfiler(object) {
1193
- return typeOf(object) === REACT_PROFILER_TYPE;
1194
- }
1195
- function isStrictMode(object) {
1196
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
1197
- }
1198
- function isSuspense(object) {
1199
- return typeOf(object) === REACT_SUSPENSE_TYPE;
1200
- }
1201
- reactIs_development.AsyncMode = AsyncMode;
1202
- reactIs_development.ConcurrentMode = ConcurrentMode;
1203
- reactIs_development.ContextConsumer = ContextConsumer;
1204
- reactIs_development.ContextProvider = ContextProvider;
1205
- reactIs_development.Element = Element;
1206
- reactIs_development.ForwardRef = ForwardRef;
1207
- reactIs_development.Fragment = Fragment;
1208
- reactIs_development.Lazy = Lazy;
1209
- reactIs_development.Memo = Memo;
1210
- reactIs_development.Portal = Portal;
1211
- reactIs_development.Profiler = Profiler;
1212
- reactIs_development.StrictMode = StrictMode;
1213
- reactIs_development.Suspense = Suspense;
1214
- reactIs_development.isAsyncMode = isAsyncMode;
1215
- reactIs_development.isConcurrentMode = isConcurrentMode;
1216
- reactIs_development.isContextConsumer = isContextConsumer;
1217
- reactIs_development.isContextProvider = isContextProvider;
1218
- reactIs_development.isElement = isElement;
1219
- reactIs_development.isForwardRef = isForwardRef;
1220
- reactIs_development.isFragment = isFragment;
1221
- reactIs_development.isLazy = isLazy;
1222
- reactIs_development.isMemo = isMemo;
1223
- reactIs_development.isPortal = isPortal;
1224
- reactIs_development.isProfiler = isProfiler;
1225
- reactIs_development.isStrictMode = isStrictMode;
1226
- reactIs_development.isSuspense = isSuspense;
1227
- reactIs_development.isValidElementType = isValidElementType;
1228
- reactIs_development.typeOf = typeOf;
1229
- })();
1230
- }
1231
- return reactIs_development;
1232
- }
1233
- (function (module) {
1234
- if (process.env.NODE_ENV === 'production') {
1235
- module.exports = requireReactIs_production_min();
1236
- } else {
1237
- module.exports = requireReactIs_development();
1238
- }
1239
- })(reactIs$1);
1240
- var reactIs = reactIsExports;
1241
-
1242
- /**
1243
- * Copyright 2015, Yahoo! Inc.
1244
- * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
1245
- */
1246
- var REACT_STATICS = {
1247
- childContextTypes: true,
1248
- contextType: true,
1249
- contextTypes: true,
1250
- defaultProps: true,
1251
- displayName: true,
1252
- getDefaultProps: true,
1253
- getDerivedStateFromError: true,
1254
- getDerivedStateFromProps: true,
1255
- mixins: true,
1256
- propTypes: true,
1257
- type: true
1258
- };
1259
- var KNOWN_STATICS = {
1260
- name: true,
1261
- length: true,
1262
- prototype: true,
1263
- caller: true,
1264
- callee: true,
1265
- arguments: true,
1266
- arity: true
1267
- };
1268
- var FORWARD_REF_STATICS = {
1269
- '$$typeof': true,
1270
- render: true,
1271
- defaultProps: true,
1272
- displayName: true,
1273
- propTypes: true
1274
- };
1275
- var MEMO_STATICS = {
1276
- '$$typeof': true,
1277
- compare: true,
1278
- defaultProps: true,
1279
- displayName: true,
1280
- propTypes: true,
1281
- type: true
1282
- };
1283
- var TYPE_STATICS = {};
1284
- TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
1285
- TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
1286
- function getStatics(component) {
1287
- // React v16.11 and below
1288
- if (reactIs.isMemo(component)) {
1289
- return MEMO_STATICS;
1290
- } // React v16.12 and above
1291
-
1292
- return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
1293
- }
1294
- var defineProperty = Object.defineProperty;
1295
- var getOwnPropertyNames = Object.getOwnPropertyNames;
1296
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1297
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1298
- var getPrototypeOf = Object.getPrototypeOf;
1299
- var objectPrototype = Object.prototype;
1300
- function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
1301
- if (typeof sourceComponent !== 'string') {
1302
- // don't hoist over string (html) components
1303
- if (objectPrototype) {
1304
- var inheritedComponent = getPrototypeOf(sourceComponent);
1305
- if (inheritedComponent && inheritedComponent !== objectPrototype) {
1306
- hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
1307
- }
1308
- }
1309
- var keys = getOwnPropertyNames(sourceComponent);
1310
- if (getOwnPropertySymbols) {
1311
- keys = keys.concat(getOwnPropertySymbols(sourceComponent));
1312
- }
1313
- var targetStatics = getStatics(targetComponent);
1314
- var sourceStatics = getStatics(sourceComponent);
1315
- for (var i = 0; i < keys.length; ++i) {
1316
- var key = keys[i];
1317
- if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
1318
- var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
1319
- try {
1320
- // Avoid failures from read-only properties
1321
- defineProperty(targetComponent, key, descriptor);
1322
- } catch (e) {}
1323
- }
1324
- }
1325
- }
1326
- return targetComponent;
1327
- }
1328
- var hoistNonReactStatics_cjs = hoistNonReactStatics;
1329
- function y() {
1330
- return (y = Object.assign || function (e) {
1331
- for (var t = 1; t < arguments.length; t++) {
1332
- var n = arguments[t];
1333
- for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
1334
- }
1335
- return e;
1336
- }).apply(this, arguments);
1337
- }
1338
- var v = function (e, t) {
1339
- for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
1340
- return n;
1341
- },
1342
- g = function (t) {
1343
- return null !== t && "object" == typeof t && "[object Object]" === (t.toString ? t.toString() : Object.prototype.toString.call(t)) && !reactIsExports$1.typeOf(t);
1344
- },
1345
- S = Object.freeze([]),
1346
- w = Object.freeze({});
1347
- function E(e) {
1348
- return "function" == typeof e;
1349
- }
1350
- function b(e) {
1351
- return "production" !== process.env.NODE_ENV && "string" == typeof e && e || e.displayName || e.name || "Component";
1352
- }
1353
- function _(e) {
1354
- return e && "string" == typeof e.styledComponentId;
1355
- }
1356
- var N = "undefined" != typeof process && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled",
1357
- C = "undefined" != typeof window && "HTMLElement" in window,
1358
- I = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== process.env.NODE_ENV),
1359
- O = "production" !== process.env.NODE_ENV ? {
1360
- 1: "Cannot create styled-component for component: %s.\n\n",
1361
- 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",
1362
- 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",
1363
- 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",
1364
- 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",
1365
- 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",
1366
- 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',
1367
- 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n',
1368
- 9: "Missing document `<head>`\n\n",
1369
- 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",
1370
- 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",
1371
- 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",
1372
- 13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",
1373
- 14: 'ThemeProvider: "theme" prop is required.\n\n',
1374
- 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",
1375
- 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",
1376
- 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"
1377
- } : {};
1378
- function R() {
1379
- for (var e = arguments.length <= 0 ? void 0 : arguments[0], t = [], n = 1, r = arguments.length; n < r; n += 1) t.push(n < 0 || arguments.length <= n ? void 0 : arguments[n]);
1380
- return t.forEach(function (t) {
1381
- e = e.replace(/%[a-z]/, t);
1382
- }), e;
1383
- }
1384
- function D(e) {
1385
- for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
1386
- throw "production" === process.env.NODE_ENV ? new Error("An error occurred. See https://git.io/JUIaE#" + e + " for more information." + (n.length > 0 ? " Args: " + n.join(", ") : "")) : new Error(R.apply(void 0, [O[e]].concat(n)).trim());
1387
- }
1388
- var j = function () {
1389
- function e(e) {
1390
- this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e;
1391
- }
1392
- var t = e.prototype;
1393
- return t.indexOfGroup = function (e) {
1394
- for (var t = 0, n = 0; n < e; n++) t += this.groupSizes[n];
1395
- return t;
1396
- }, t.insertRules = function (e, t) {
1397
- if (e >= this.groupSizes.length) {
1398
- for (var n = this.groupSizes, r = n.length, o = r; e >= o;) (o <<= 1) < 0 && D(16, "" + e);
1399
- this.groupSizes = new Uint32Array(o), this.groupSizes.set(n), this.length = o;
1400
- for (var s = r; s < o; s++) this.groupSizes[s] = 0;
1401
- }
1402
- for (var i = this.indexOfGroup(e + 1), a = 0, c = t.length; a < c; a++) this.tag.insertRule(i, t[a]) && (this.groupSizes[e]++, i++);
1403
- }, t.clearGroup = function (e) {
1404
- if (e < this.length) {
1405
- var t = this.groupSizes[e],
1406
- n = this.indexOfGroup(e),
1407
- r = n + t;
1408
- this.groupSizes[e] = 0;
1409
- for (var o = n; o < r; o++) this.tag.deleteRule(n);
1410
- }
1411
- }, t.getGroup = function (e) {
1412
- var t = "";
1413
- if (e >= this.length || 0 === this.groupSizes[e]) return t;
1414
- for (var n = this.groupSizes[e], r = this.indexOfGroup(e), o = r + n, s = r; s < o; s++) t += this.tag.getRule(s) + "/*!sc*/\n";
1415
- return t;
1416
- }, e;
1417
- }(),
1418
- T = new Map(),
1419
- x = new Map(),
1420
- k = 1,
1421
- V = function (e) {
1422
- if (T.has(e)) return T.get(e);
1423
- for (; x.has(k);) k++;
1424
- var t = k++;
1425
- return "production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > 1 << 30) && D(16, "" + t), T.set(e, t), x.set(t, e), t;
1426
- },
1427
- z = function (e) {
1428
- return x.get(e);
1429
- },
1430
- B = function (e, t) {
1431
- t >= k && (k = t + 1), T.set(e, t), x.set(t, e);
1432
- },
1433
- M = "style[" + N + '][data-styled-version="5.3.6"]',
1434
- G = new RegExp("^" + N + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),
1435
- L = function (e, t, n) {
1436
- for (var r, o = n.split(","), s = 0, i = o.length; s < i; s++) (r = o[s]) && e.registerName(t, r);
1437
- },
1438
- F = function (e, t) {
1439
- for (var n = (t.textContent || "").split("/*!sc*/\n"), r = [], o = 0, s = n.length; o < s; o++) {
1440
- var i = n[o].trim();
1441
- if (i) {
1442
- var a = i.match(G);
1443
- if (a) {
1444
- var c = 0 | parseInt(a[1], 10),
1445
- u = a[2];
1446
- 0 !== c && (B(u, c), L(e, u, a[3]), e.getTag().insertRules(c, r)), r.length = 0;
1447
- } else r.push(i);
1448
- }
1449
- }
1450
- },
1451
- Y = function () {
1452
- return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
1453
- },
1454
- q = function (e) {
1455
- var t = document.head,
1456
- n = e || t,
1457
- r = document.createElement("style"),
1458
- o = function (e) {
1459
- for (var t = e.childNodes, n = t.length; n >= 0; n--) {
1460
- var r = t[n];
1461
- if (r && 1 === r.nodeType && r.hasAttribute(N)) return r;
1462
- }
1463
- }(n),
1464
- s = void 0 !== o ? o.nextSibling : null;
1465
- r.setAttribute(N, "active"), r.setAttribute("data-styled-version", "5.3.6");
1466
- var i = Y();
1467
- return i && r.setAttribute("nonce", i), n.insertBefore(r, s), r;
1468
- },
1469
- H = function () {
1470
- function e(e) {
1471
- var t = this.element = q(e);
1472
- t.appendChild(document.createTextNode("")), this.sheet = function (e) {
1473
- if (e.sheet) return e.sheet;
1474
- for (var t = document.styleSheets, n = 0, r = t.length; n < r; n++) {
1475
- var o = t[n];
1476
- if (o.ownerNode === e) return o;
1477
- }
1478
- D(17);
1479
- }(t), this.length = 0;
1480
- }
1481
- var t = e.prototype;
1482
- return t.insertRule = function (e, t) {
1483
- try {
1484
- return this.sheet.insertRule(t, e), this.length++, !0;
1485
- } catch (e) {
1486
- return !1;
1487
- }
1488
- }, t.deleteRule = function (e) {
1489
- this.sheet.deleteRule(e), this.length--;
1490
- }, t.getRule = function (e) {
1491
- var t = this.sheet.cssRules[e];
1492
- return void 0 !== t && "string" == typeof t.cssText ? t.cssText : "";
1493
- }, e;
1494
- }(),
1495
- $ = function () {
1496
- function e(e) {
1497
- var t = this.element = q(e);
1498
- this.nodes = t.childNodes, this.length = 0;
1499
- }
1500
- var t = e.prototype;
1501
- return t.insertRule = function (e, t) {
1502
- if (e <= this.length && e >= 0) {
1503
- var n = document.createTextNode(t),
1504
- r = this.nodes[e];
1505
- return this.element.insertBefore(n, r || null), this.length++, !0;
1506
- }
1507
- return !1;
1508
- }, t.deleteRule = function (e) {
1509
- this.element.removeChild(this.nodes[e]), this.length--;
1510
- }, t.getRule = function (e) {
1511
- return e < this.length ? this.nodes[e].textContent : "";
1512
- }, e;
1513
- }(),
1514
- W = function () {
1515
- function e(e) {
1516
- this.rules = [], this.length = 0;
1517
- }
1518
- var t = e.prototype;
1519
- return t.insertRule = function (e, t) {
1520
- return e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0);
1521
- }, t.deleteRule = function (e) {
1522
- this.rules.splice(e, 1), this.length--;
1523
- }, t.getRule = function (e) {
1524
- return e < this.length ? this.rules[e] : "";
1525
- }, e;
1526
- }(),
1527
- U = C,
1528
- J = {
1529
- isServer: !C,
1530
- useCSSOMInjection: !I
1531
- },
1532
- X = function () {
1533
- function e(e, t, n) {
1534
- void 0 === e && (e = w), void 0 === t && (t = {}), this.options = y({}, J, {}, e), this.gs = t, this.names = new Map(n), this.server = !!e.isServer, !this.server && C && U && (U = !1, function (e) {
1535
- for (var t = document.querySelectorAll(M), n = 0, r = t.length; n < r; n++) {
1536
- var o = t[n];
1537
- o && "active" !== o.getAttribute(N) && (F(e, o), o.parentNode && o.parentNode.removeChild(o));
1538
- }
1539
- }(this));
1540
- }
1541
- e.registerId = function (e) {
1542
- return V(e);
1543
- };
1544
- var t = e.prototype;
1545
- return t.reconstructWithOptions = function (t, n) {
1546
- return void 0 === n && (n = !0), new e(y({}, this.options, {}, t), this.gs, n && this.names || void 0);
1547
- }, t.allocateGSInstance = function (e) {
1548
- return this.gs[e] = (this.gs[e] || 0) + 1;
1549
- }, t.getTag = function () {
1550
- return this.tag || (this.tag = (n = (t = this.options).isServer, r = t.useCSSOMInjection, o = t.target, e = n ? new W(o) : r ? new H(o) : new $(o), new j(e)));
1551
- var e, t, n, r, o;
1552
- }, t.hasNameForId = function (e, t) {
1553
- return this.names.has(e) && this.names.get(e).has(t);
1554
- }, t.registerName = function (e, t) {
1555
- if (V(e), this.names.has(e)) this.names.get(e).add(t);else {
1556
- var n = new Set();
1557
- n.add(t), this.names.set(e, n);
1558
- }
1559
- }, t.insertRules = function (e, t, n) {
1560
- this.registerName(e, t), this.getTag().insertRules(V(e), n);
1561
- }, t.clearNames = function (e) {
1562
- this.names.has(e) && this.names.get(e).clear();
1563
- }, t.clearRules = function (e) {
1564
- this.getTag().clearGroup(V(e)), this.clearNames(e);
1565
- }, t.clearTag = function () {
1566
- this.tag = void 0;
1567
- }, t.toString = function () {
1568
- return function (e) {
1569
- for (var t = e.getTag(), n = t.length, r = "", o = 0; o < n; o++) {
1570
- var s = z(o);
1571
- if (void 0 !== s) {
1572
- var i = e.names.get(s),
1573
- a = t.getGroup(o);
1574
- if (i && a && i.size) {
1575
- var c = N + ".g" + o + '[id="' + s + '"]',
1576
- u = "";
1577
- void 0 !== i && i.forEach(function (e) {
1578
- e.length > 0 && (u += e + ",");
1579
- }), r += "" + a + c + '{content:"' + u + '"}/*!sc*/\n';
1580
- }
1581
- }
1582
- }
1583
- return r;
1584
- }(this);
1585
- }, e;
1586
- }(),
1587
- Z = /(a)(d)/gi,
1588
- K = function (e) {
1589
- return String.fromCharCode(e + (e > 25 ? 39 : 97));
1590
- };
1591
- function Q(e) {
1592
- var t,
1593
- n = "";
1594
- for (t = Math.abs(e); t > 52; t = t / 52 | 0) n = K(t % 52) + n;
1595
- return (K(t % 52) + n).replace(Z, "$1-$2");
1596
- }
1597
- var ee = function (e, t) {
1598
- for (var n = t.length; n;) e = 33 * e ^ t.charCodeAt(--n);
1599
- return e;
1600
- },
1601
- te = function (e) {
1602
- return ee(5381, e);
1603
- };
1604
- function ne(e) {
1605
- for (var t = 0; t < e.length; t += 1) {
1606
- var n = e[t];
1607
- if (E(n) && !_(n)) return !1;
1608
- }
1609
- return !0;
1610
- }
1611
- var re = te("5.3.6"),
1612
- oe = function () {
1613
- function e(e, t, n) {
1614
- this.rules = e, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) && ne(e), this.componentId = t, this.baseHash = ee(re, t), this.baseStyle = n, X.registerId(t);
1615
- }
1616
- return e.prototype.generateAndInjectStyles = function (e, t, n) {
1617
- var r = this.componentId,
1618
- o = [];
1619
- if (this.baseStyle && o.push(this.baseStyle.generateAndInjectStyles(e, t, n)), this.isStatic && !n.hash) {
1620
- if (this.staticRulesId && t.hasNameForId(r, this.staticRulesId)) o.push(this.staticRulesId);else {
1621
- var s = _e(this.rules, e, t, n).join(""),
1622
- i = Q(ee(this.baseHash, s) >>> 0);
1623
- if (!t.hasNameForId(r, i)) {
1624
- var a = n(s, "." + i, void 0, r);
1625
- t.insertRules(r, i, a);
1626
- }
1627
- o.push(i), this.staticRulesId = i;
1628
- }
1629
- } else {
1630
- for (var c = this.rules.length, u = ee(this.baseHash, n.hash), l = "", d = 0; d < c; d++) {
1631
- var h = this.rules[d];
1632
- if ("string" == typeof h) l += h, "production" !== process.env.NODE_ENV && (u = ee(u, h + d));else if (h) {
1633
- var p = _e(h, e, t, n),
1634
- f = Array.isArray(p) ? p.join("") : p;
1635
- u = ee(u, f + d), l += f;
1636
- }
1637
- }
1638
- if (l) {
1639
- var m = Q(u >>> 0);
1640
- if (!t.hasNameForId(r, m)) {
1641
- var y = n(l, "." + m, void 0, r);
1642
- t.insertRules(r, m, y);
1643
- }
1644
- o.push(m);
1645
- }
1646
- }
1647
- return o.join(" ");
1648
- }, e;
1649
- }(),
1650
- se = /^\s*\/\/.*$/gm,
1651
- ie = [":", "[", ".", "#"];
1652
- function ae(e) {
1653
- var t,
1654
- n,
1655
- r,
1656
- o,
1657
- s = void 0 === e ? w : e,
1658
- i = s.options,
1659
- a = void 0 === i ? w : i,
1660
- c = s.plugins,
1661
- u = void 0 === c ? S : c,
1662
- l = new stylis_min(a),
1663
- d = [],
1664
- p = function (e) {
1665
- function t(t) {
1666
- if (t) try {
1667
- e(t + "}");
1668
- } catch (e) {}
1669
- }
1670
- return function (n, r, o, s, i, a, c, u, l, d) {
1671
- switch (n) {
1672
- case 1:
1673
- if (0 === l && 64 === r.charCodeAt(0)) return e(r + ";"), "";
1674
- break;
1675
- case 2:
1676
- if (0 === u) return r + "/*|*/";
1677
- break;
1678
- case 3:
1679
- switch (u) {
1680
- case 102:
1681
- case 112:
1682
- return e(o[0] + r), "";
1683
- default:
1684
- return r + (0 === d ? "/*|*/" : "");
1685
- }
1686
- case -2:
1687
- r.split("/*|*/}").forEach(t);
1688
- }
1689
- };
1690
- }(function (e) {
1691
- d.push(e);
1692
- }),
1693
- f = function (e, r, s) {
1694
- return 0 === r && -1 !== ie.indexOf(s[n.length]) || s.match(o) ? e : "." + t;
1695
- };
1696
- function m(e, s, i, a) {
1697
- void 0 === a && (a = "&");
1698
- var c = e.replace(se, ""),
1699
- u = s && i ? i + " " + s + " { " + c + " }" : c;
1700
- return t = a, n = s, r = new RegExp("\\" + n + "\\b", "g"), o = new RegExp("(\\" + n + "\\b){2,}"), l(i || !s ? "" : s, u);
1701
- }
1702
- return l.use([].concat(u, [function (e, t, o) {
1703
- 2 === e && o.length && o[0].lastIndexOf(n) > 0 && (o[0] = o[0].replace(r, f));
1704
- }, p, function (e) {
1705
- if (-2 === e) {
1706
- var t = d;
1707
- return d = [], t;
1708
- }
1709
- }])), m.hash = u.length ? u.reduce(function (e, t) {
1710
- return t.name || D(15), ee(e, t.name);
1711
- }, 5381).toString() : "", m;
1712
- }
1713
- var ce = r__default.default.createContext(),
1714
- le = r__default.default.createContext(),
1715
- de = new X(),
1716
- he = ae();
1717
- function pe() {
1718
- return r.useContext(ce) || de;
1719
- }
1720
- function fe() {
1721
- return r.useContext(le) || he;
1722
- }
1723
- var ye = function () {
1724
- function e(e, t) {
1725
- var n = this;
1726
- this.inject = function (e, t) {
1727
- void 0 === t && (t = he);
1728
- var r = n.name + t.hash;
1729
- e.hasNameForId(n.id, r) || e.insertRules(n.id, r, t(n.rules, r, "@keyframes"));
1730
- }, this.toString = function () {
1731
- return D(12, String(n.name));
1732
- }, this.name = e, this.id = "sc-keyframes-" + e, this.rules = t;
1733
- }
1734
- return e.prototype.getName = function (e) {
1735
- return void 0 === e && (e = he), this.name + e.hash;
1736
- }, e;
1737
- }(),
1738
- ve = /([A-Z])/,
1739
- ge = /([A-Z])/g,
1740
- Se = /^ms-/,
1741
- we = function (e) {
1742
- return "-" + e.toLowerCase();
1743
- };
1744
- function Ee(e) {
1745
- return ve.test(e) ? e.replace(ge, we).replace(Se, "-ms-") : e;
1746
- }
1747
- var be = function (e) {
1748
- return null == e || !1 === e || "" === e;
1749
- };
1750
- function _e(e, n, r, o) {
1751
- if (Array.isArray(e)) {
1752
- for (var s, i = [], a = 0, c = e.length; a < c; a += 1) "" !== (s = _e(e[a], n, r, o)) && (Array.isArray(s) ? i.push.apply(i, s) : i.push(s));
1753
- return i;
1754
- }
1755
- if (be(e)) return "";
1756
- if (_(e)) return "." + e.styledComponentId;
1757
- if (E(e)) {
1758
- if ("function" != typeof (l = e) || l.prototype && l.prototype.isReactComponent || !n) return e;
1759
- var u = e(n);
1760
- return "production" !== process.env.NODE_ENV && reactIsExports$1.isElement(u) && console.warn(b(e) + " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."), _e(u, n, r, o);
1761
- }
1762
- var l;
1763
- return e instanceof ye ? r ? (e.inject(r, o), e.getName(o)) : e : g(e) ? function e(t, n) {
1764
- var r,
1765
- o,
1766
- s = [];
1767
- for (var i in t) t.hasOwnProperty(i) && !be(t[i]) && (Array.isArray(t[i]) && t[i].isCss || E(t[i]) ? s.push(Ee(i) + ":", t[i], ";") : g(t[i]) ? s.push.apply(s, e(t[i], i)) : s.push(Ee(i) + ": " + (r = i, null == (o = t[i]) || "boolean" == typeof o || "" === o ? "" : "number" != typeof o || 0 === o || r in unitlessKeys ? String(o).trim() : o + "px") + ";"));
1768
- return n ? [n + " {"].concat(s, ["}"]) : s;
1769
- }(e) : e.toString();
1770
- }
1771
- var Ne = function (e) {
1772
- return Array.isArray(e) && (e.isCss = !0), e;
1773
- };
1774
- function Ae(e) {
1775
- for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
1776
- return E(e) || g(e) ? Ne(_e(v(S, [e].concat(n)))) : 0 === n.length && 1 === e.length && "string" == typeof e[0] ? e : Ne(_e(v(e, n)));
1777
- }
1778
- var Ce = /invalid hook call/i,
1779
- Ie = new Set(),
1780
- Pe = function (e, t) {
1781
- if ("production" !== process.env.NODE_ENV) {
1782
- var n = "The component " + e + (t ? ' with the id of "' + t + '"' : "") + " has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",
1783
- r$1 = console.error;
1784
- try {
1785
- var o = !0;
1786
- console.error = function (e) {
1787
- if (Ce.test(e)) o = !1, Ie.delete(n);else {
1788
- for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++) s[i - 1] = arguments[i];
1789
- r$1.apply(void 0, [e].concat(s));
1790
- }
1791
- }, r.useRef(), o && !Ie.has(n) && (console.warn(n), Ie.add(n));
1792
- } catch (e) {
1793
- Ce.test(e.message) && Ie.delete(n);
1794
- } finally {
1795
- console.error = r$1;
1796
- }
1797
- }
1798
- },
1799
- Oe = function (e, t, n) {
1800
- return void 0 === n && (n = w), e.theme !== n.theme && e.theme || t || n.theme;
1801
- },
1802
- Re = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,
1803
- De = /(^-|-$)/g;
1804
- function je(e) {
1805
- return e.replace(Re, "-").replace(De, "");
1806
- }
1807
- var Te = function (e) {
1808
- return Q(te(e) >>> 0);
1809
- };
1810
- function xe(e) {
1811
- return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
1812
- }
1813
- var ke = function (e) {
1814
- return "function" == typeof e || "object" == typeof e && null !== e && !Array.isArray(e);
1815
- },
1816
- Ve = function (e) {
1817
- return "__proto__" !== e && "constructor" !== e && "prototype" !== e;
1818
- };
1819
- function ze(e, t, n) {
1820
- var r = e[n];
1821
- ke(t) && ke(r) ? Be(r, t) : e[n] = t;
1822
- }
1823
- function Be(e) {
1824
- for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
1825
- for (var o = 0, s = n; o < s.length; o++) {
1826
- var i = s[o];
1827
- if (ke(i)) for (var a in i) Ve(a) && ze(e, i[a], a);
1828
- }
1829
- return e;
1830
- }
1831
- var Me = r__default.default.createContext();
1832
- var Fe = {};
1833
- function Ye(e, t, n) {
1834
- var o = _(e),
1835
- i = !xe(e),
1836
- a = t.attrs,
1837
- c = void 0 === a ? S : a,
1838
- d = t.componentId,
1839
- h = void 0 === d ? function (e, t) {
1840
- var n = "string" != typeof e ? "sc" : je(e);
1841
- Fe[n] = (Fe[n] || 0) + 1;
1842
- var r = n + "-" + Te("5.3.6" + n + Fe[n]);
1843
- return t ? t + "-" + r : r;
1844
- }(t.displayName, t.parentComponentId) : d,
1845
- p = t.displayName,
1846
- v = void 0 === p ? function (e) {
1847
- return xe(e) ? "styled." + e : "Styled(" + b(e) + ")";
1848
- }(e) : p,
1849
- g = t.displayName && t.componentId ? je(t.displayName) + "-" + t.componentId : t.componentId || h,
1850
- N = o && e.attrs ? Array.prototype.concat(e.attrs, c).filter(Boolean) : c,
1851
- A = t.shouldForwardProp;
1852
- o && e.shouldForwardProp && (A = t.shouldForwardProp ? function (n, r, o) {
1853
- return e.shouldForwardProp(n, r, o) && t.shouldForwardProp(n, r, o);
1854
- } : e.shouldForwardProp);
1855
- var C,
1856
- I = new oe(n, g, o ? e.componentStyle : void 0),
1857
- P = I.isStatic && 0 === c.length,
1858
- O = function (e, t) {
1859
- return function (e, t, n, r$1) {
1860
- var o = e.attrs,
1861
- i = e.componentStyle,
1862
- a = e.defaultProps,
1863
- c = e.foldedComponentIds,
1864
- d = e.shouldForwardProp,
1865
- h = e.styledComponentId,
1866
- p = e.target;
1867
- "production" !== process.env.NODE_ENV && r.useDebugValue(h);
1868
- var m = function (e, t, n) {
1869
- void 0 === e && (e = w);
1870
- var r = y({}, t, {
1871
- theme: e
1872
- }),
1873
- o = {};
1874
- return n.forEach(function (e) {
1875
- var t,
1876
- n,
1877
- s,
1878
- i = e;
1879
- for (t in E(i) && (i = i(r)), i) r[t] = o[t] = "className" === t ? (n = o[t], s = i[t], n && s ? n + " " + s : n || s) : i[t];
1880
- }), [r, o];
1881
- }(Oe(t, r.useContext(Me), a) || w, t, o),
1882
- v = m[0],
1883
- g = m[1],
1884
- S = function (e, t, n, r$1) {
1885
- var o = pe(),
1886
- s = fe(),
1887
- i = t ? e.generateAndInjectStyles(w, o, s) : e.generateAndInjectStyles(n, o, s);
1888
- return "production" !== process.env.NODE_ENV && r.useDebugValue(i), "production" !== process.env.NODE_ENV && !t && r$1 && r$1(i), i;
1889
- }(i, r$1, v, "production" !== process.env.NODE_ENV ? e.warnTooManyClasses : void 0),
1890
- b = n,
1891
- _ = g.$as || t.$as || g.as || t.as || p,
1892
- N = xe(_),
1893
- A = g !== t ? y({}, t, {}, g) : t,
1894
- C = {};
1895
- for (var I in A) "$" !== I[0] && "as" !== I && ("forwardedAs" === I ? C.as = A[I] : (d ? d(I, isPropValid, _) : !N || isPropValid(I)) && (C[I] = A[I]));
1896
- return t.style && g.style !== t.style && (C.style = y({}, t.style, {}, g.style)), C.className = Array.prototype.concat(c, h, S !== h ? S : null, t.className, g.className).filter(Boolean).join(" "), C.ref = b, r.createElement(_, C);
1897
- }(C, e, t, P);
1898
- };
1899
- return O.displayName = v, (C = r__default.default.forwardRef(O)).attrs = N, C.componentStyle = I, C.displayName = v, C.shouldForwardProp = A, C.foldedComponentIds = o ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : S, C.styledComponentId = g, C.target = o ? e.target : e, C.withComponent = function (e) {
1900
- var r = t.componentId,
1901
- o = function (e, t) {
1902
- if (null == e) return {};
1903
- var n,
1904
- r,
1905
- o = {},
1906
- s = Object.keys(e);
1907
- for (r = 0; r < s.length; r++) n = s[r], t.indexOf(n) >= 0 || (o[n] = e[n]);
1908
- return o;
1909
- }(t, ["componentId"]),
1910
- s = r && r + "-" + (xe(e) ? e : je(b(e)));
1911
- return Ye(e, y({}, o, {
1912
- attrs: N,
1913
- componentId: s
1914
- }), n);
1915
- }, Object.defineProperty(C, "defaultProps", {
1916
- get: function () {
1917
- return this._foldedDefaultProps;
1918
- },
1919
- set: function (t) {
1920
- this._foldedDefaultProps = o ? Be({}, e.defaultProps, t) : t;
1921
- }
1922
- }), "production" !== process.env.NODE_ENV && (Pe(v, g), C.warnTooManyClasses = function (e, t) {
1923
- var n = {},
1924
- r = !1;
1925
- return function (o) {
1926
- if (!r && (n[o] = !0, Object.keys(n).length >= 200)) {
1927
- var s = t ? ' with the id of "' + t + '"' : "";
1928
- console.warn("Over 200 classes were generated for component " + e + s + ".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), r = !0, n = {};
1929
- }
1930
- };
1931
- }(v, g)), C.toString = function () {
1932
- return "." + C.styledComponentId;
1933
- }, i && hoistNonReactStatics_cjs(C, e, {
1934
- attrs: !0,
1935
- componentStyle: !0,
1936
- displayName: !0,
1937
- foldedComponentIds: !0,
1938
- shouldForwardProp: !0,
1939
- styledComponentId: !0,
1940
- target: !0,
1941
- withComponent: !0
1942
- }), C;
1943
- }
1944
- var qe = function (e) {
1945
- return function e(t, r, o) {
1946
- if (void 0 === o && (o = w), !reactIsExports$1.isValidElementType(r)) return D(1, String(r));
1947
- var s = function () {
1948
- return t(r, o, Ae.apply(void 0, arguments));
1949
- };
1950
- return s.withConfig = function (n) {
1951
- return e(t, r, y({}, o, {}, n));
1952
- }, s.attrs = function (n) {
1953
- return e(t, r, y({}, o, {
1954
- attrs: Array.prototype.concat(o.attrs, n).filter(Boolean)
1955
- }));
1956
- }, s;
1957
- }(Ye, e);
1958
- };
1959
- ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "textPath", "tspan"].forEach(function (e) {
1960
- qe[e] = qe(e);
1961
- });
1962
- "production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"), "production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window["__styled-components-init__"] = window["__styled-components-init__"] || 0, 1 === window["__styled-components-init__"] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."), window["__styled-components-init__"] += 1);
1963
- var styled = qe;
1964
- const Root = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n overflow: hidden;\n background-origin: content-box;\n background-repeat: no-repeat;\n background-clip: border-box;\n background-size: cover;\n background-color: ", ";\n position: relative;\n outline: none !important;\n border: ", ";\n box-sizing: content-box;\n user-drag: none;\n\n &:hover {\n opacity: 0.85;\n }\n\n &:focus,\n &:active {\n border: 1px solid var(--input-border-color-focus);\n box-shadow: inset 0 0 0 3px var(--input-border-color-focus);\n }\n"])), _ref => {
34
+ const Root = styledComponents.styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n overflow: hidden;\n background-origin: content-box;\n background-repeat: no-repeat;\n background-clip: border-box;\n background-size: cover;\n background-color: ", ";\n position: relative;\n outline: none !important;\n border: ", ";\n box-sizing: content-box;\n user-drag: none;\n\n &:hover {\n opacity: 0.85;\n }\n\n &:focus,\n &:active {\n border: 1px solid var(--input-border-color-focus);\n box-shadow: inset 0 0 0 3px var(--input-border-color-focus);\n }\n"])), _ref => {
1965
35
  let {
1966
- studioTheme
36
+ theme
1967
37
  } = _ref;
1968
- return studioTheme.color.card.enabled.bg2;
38
+ return theme.sanity.color.card.enabled.bg2;
1969
39
  }, _ref2 => {
1970
40
  let {
1971
- studioTheme
41
+ theme
1972
42
  } = _ref2;
1973
- return "1px solid ".concat(studioTheme.color.card.enabled.border);
43
+ return "1px solid ".concat(theme.sanity.color.card.enabled.border);
1974
44
  });
1975
- const InfoLine = styled(ui.Card)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", ";\n user-drag: none;\n position: absolute;\n background-color: var(--infoline-bg);\n top: 0;\n left: 0;\n max-width: 65%;\n overflow-wrap: break-word;\n\n [data-ui='Text'] {\n color: var(--infoline-fg);\n }\n"])), _ref3 => {
45
+ const InfoLine = styledComponents.styled(ui.Card)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", ";\n user-drag: none;\n position: absolute;\n background-color: var(--infoline-bg);\n top: 0;\n left: 0;\n max-width: 65%;\n overflow-wrap: break-word;\n\n [data-ui='Text'] {\n color: var(--infoline-fg);\n }\n"])), _ref3 => {
1976
46
  let {
1977
- studioTheme
47
+ theme
1978
48
  } = _ref3;
1979
- return "\n --infoline-fg: ".concat(studioTheme.color.card.enabled.fg, ";\n --infoline-bg: ").concat(studioTheme.color.card.enabled.bg, ";\n ");
49
+ return "\n --infoline-fg: ".concat(theme.sanity.color.card.enabled.fg, ";\n --infoline-bg: ").concat(theme.sanity.color.card.enabled.bg, ";\n ");
1980
50
  });
1981
- const DurationLine = styled(ui.Card)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", ";\n user-drag: none;\n position: absolute;\n background-color: var(--durationline-bg);\n top: 0;\n right: 0;\n\n [data-ui='Text'] {\n color: var(--durationline-fg);\n }\n"])), _ref4 => {
51
+ const DurationLine = styledComponents.styled(ui.Card)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", ";\n user-drag: none;\n position: absolute;\n background-color: var(--durationline-bg);\n top: 0;\n right: 0;\n\n [data-ui='Text'] {\n color: var(--durationline-fg);\n }\n"])), _ref4 => {
1982
52
  let {
1983
- studioTheme
53
+ theme
1984
54
  } = _ref4;
1985
- return "\n --durationline-fg: ".concat(studioTheme.color.card.enabled.bg, ";\n --durationline-bg: ").concat(studioTheme.color.card.enabled.fg, ";\n ");
55
+ return "\n --durationline-fg: ".concat(theme.sanity.color.card.enabled.bg, ";\n --durationline-bg: ").concat(theme.sanity.color.card.enabled.fg, ";\n ");
1986
56
  });
1987
57
  const VideoPlayer = _ref5 => {
1988
58
  let {
1989
59
  src,
1990
60
  kind
1991
61
  } = _ref5;
1992
- const videoNode = r__default.default.useRef(null);
1993
- const player = r__default.default.useRef();
1994
- r.useEffect(() => {
62
+ const videoNode = React__default.default.useRef(null);
63
+ const player = React__default.default.useRef();
64
+ React.useEffect(() => {
1995
65
  var _a;
1996
66
  player.current = videojs__default.default((_a = videoNode.current) != null ? _a : "", {
1997
67
  sources: [{
@@ -2003,7 +73,7 @@ const VideoPlayer = _ref5 => {
2003
73
  src
2004
74
  });
2005
75
  }, [src]);
2006
- const stopPropagation = r.useCallback(event => {
76
+ const stopPropagation = React.useCallback(event => {
2007
77
  event.stopPropagation();
2008
78
  }, []);
2009
79
  const className = {
@@ -2028,23 +98,23 @@ const VideoPlayer = _ref5 => {
2028
98
  })]
2029
99
  });
2030
100
  };
2031
- const StyledBox = styled(ui.Box)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-color: ", ";\n border: ", ";\n display: flex;\n justify-content: center;\n margin-bottom: ", ";\n position: relative;\n"])), _ref6 => {
101
+ const StyledBox = styledComponents.styled(ui.Box)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-color: ", ";\n border: ", ";\n display: flex;\n justify-content: center;\n margin-bottom: ", ";\n position: relative;\n"])), _ref6 => {
2032
102
  let {
2033
- studioTheme
103
+ theme
2034
104
  } = _ref6;
2035
105
  var _a, _b, _c;
2036
- return (_c = (_b = (_a = studioTheme == null ? void 0 : studioTheme.color) == null ? void 0 : _a.card) == null ? void 0 : _b.enabled) == null ? void 0 : _c.bg2;
106
+ return (_c = (_b = (_a = theme.sanity.color) == null ? void 0 : _a.card) == null ? void 0 : _b.enabled) == null ? void 0 : _c.bg2;
2037
107
  }, _ref7 => {
2038
108
  let {
2039
- studioTheme
109
+ theme
2040
110
  } = _ref7;
2041
- var _a, _b, _c;
2042
- return "1px solid ".concat((_c = (_b = (_a = studioTheme == null ? void 0 : studioTheme.color) == null ? void 0 : _a.card) == null ? void 0 : _b.enabled) == null ? void 0 : _c.border);
111
+ var _a, _b, _c, _d;
112
+ return "1px solid ".concat((_d = (_c = (_b = (_a = theme.sanity) == null ? void 0 : _a.color) == null ? void 0 : _b.card) == null ? void 0 : _c.enabled) == null ? void 0 : _d.border);
2043
113
  }, _ref8 => {
2044
114
  let {
2045
- studioTheme
115
+ theme
2046
116
  } = _ref8;
2047
- return studioTheme.space[4];
117
+ return theme.sanity.space[4];
2048
118
  });
2049
119
  const RenderAsset = _ref9 => {
2050
120
  let {
@@ -2079,7 +149,6 @@ const AssetPreview = _ref10 => {
2079
149
  value
2080
150
  } = _ref10;
2081
151
  const url = value && value.url;
2082
- const theme = ui.useTheme().sanity;
2083
152
  if (!value || !url) {
2084
153
  return null;
2085
154
  }
@@ -2092,7 +161,6 @@ const AssetPreview = _ref10 => {
2092
161
  duration
2093
162
  } = meta;
2094
163
  return /* @__PURE__ */jsxRuntime.jsxs(StyledBox, {
2095
- studioTheme: theme,
2096
164
  marginBottom: 2,
2097
165
  children: [/* @__PURE__ */jsxRuntime.jsx(RenderAsset, {
2098
166
  value,
@@ -2101,7 +169,6 @@ const AssetPreview = _ref10 => {
2101
169
  padding: 2,
2102
170
  radius: 2,
2103
171
  margin: 2,
2104
- studioTheme: theme,
2105
172
  children: /* @__PURE__ */jsxRuntime.jsxs(ui.Text, {
2106
173
  size: 1,
2107
174
  title: "Select ".concat(filename),
@@ -2111,7 +178,6 @@ const AssetPreview = _ref10 => {
2111
178
  padding: 2,
2112
179
  radius: 2,
2113
180
  margin: 2,
2114
- studioTheme: theme,
2115
181
  children: /* @__PURE__ */jsxRuntime.jsx(ui.Text, {
2116
182
  size: 1,
2117
183
  title: "Video duration: ".concat(filename),
@@ -2123,12 +189,71 @@ const AssetPreview = _ref10 => {
2123
189
  })]
2124
190
  });
2125
191
  };
192
+ const fetchSearch = props => {
193
+ const {
194
+ projectId,
195
+ dataset,
196
+ shop,
197
+ query,
198
+ cursor,
199
+ resultsPerPage
200
+ } = props;
201
+ return rxjs.defer(() => {
202
+ return axios__default.default.get("https://".concat(projectId, ".api.sanity.io/v1/shopify/assets/").concat(dataset, "?shop=").concat(shop, "&query=").concat(encodeURIComponent(query)).concat(cursor && "&cursor=".concat(cursor), "&limit=").concat(resultsPerPage), {
203
+ withCredentials: true,
204
+ method: "GET"
205
+ });
206
+ }).pipe(operators.map(result => result.data));
207
+ };
208
+ const fetchList = props => {
209
+ const {
210
+ projectId,
211
+ dataset,
212
+ shop,
213
+ cursor,
214
+ resultsPerPage
215
+ } = props;
216
+ return rxjs.defer(() => axios__default.default.get("https://".concat(projectId, ".api.sanity.io/v1/shopify/assets/").concat(dataset, "?shop=").concat(shop).concat(cursor && "&cursor=".concat(cursor), "&limit=").concat(resultsPerPage), {
217
+ withCredentials: true,
218
+ method: "GET"
219
+ })).pipe(operators.map(result => result.data));
220
+ };
221
+ const search = props => {
222
+ const {
223
+ projectId,
224
+ dataset,
225
+ shop,
226
+ query,
227
+ cursor,
228
+ resultsPerPage
229
+ } = props;
230
+ return rxjs.concat(query.pipe(operators.withLatestFrom(cursor), operators.debounceTime(500), operators.distinctUntilChanged(), operators.switchMap(_ref11 => {
231
+ let [q, c] = _ref11;
232
+ if (q) {
233
+ return fetchSearch({
234
+ projectId,
235
+ dataset,
236
+ shop,
237
+ query: q,
238
+ cursor: c,
239
+ resultsPerPage
240
+ }).pipe(operators.distinctUntilChanged());
241
+ }
242
+ return fetchList({
243
+ projectId,
244
+ dataset,
245
+ shop,
246
+ cursor: c,
247
+ resultsPerPage
248
+ });
249
+ })));
250
+ };
2126
251
  const DialogHeader = props => {
2127
252
  const {
2128
253
  title,
2129
254
  shopifyDomain
2130
255
  } = props;
2131
- const handleOpenInNewTab = r.useCallback(() => {
256
+ const handleOpenInNewTab = React.useCallback(() => {
2132
257
  window.open("https://".concat(shopifyDomain, "/admin/settings/files"), "_blank");
2133
258
  }, [shopifyDomain]);
2134
259
  return /* @__PURE__ */jsxRuntime.jsxs(ui.Flex, {
@@ -2168,22 +293,20 @@ function File(props) {
2168
293
  width,
2169
294
  height
2170
295
  } = props;
2171
- const rootElm = r.useRef(null);
296
+ const rootElm = React.useRef(null);
2172
297
  const {
2173
298
  preview,
2174
299
  meta
2175
300
  } = data;
2176
301
  const filename = extractName(data.url);
2177
- const handleClick = r.useCallback(() => {
302
+ const handleClick = React.useCallback(() => {
2178
303
  onClick({
2179
304
  ...data,
2180
305
  filename
2181
306
  });
2182
307
  }, [onClick, data, filename]);
2183
- const theme = ui.useTheme().sanity;
2184
308
  return /* @__PURE__ */jsxRuntime.jsxs(Root, {
2185
309
  ref: rootElm,
2186
- studioTheme: theme,
2187
310
  title: "".concat(filename),
2188
311
  tabIndex: 0,
2189
312
  style: {
@@ -2196,7 +319,6 @@ function File(props) {
2196
319
  padding: 2,
2197
320
  radius: 2,
2198
321
  margin: 2,
2199
- studioTheme: theme,
2200
322
  children: /* @__PURE__ */jsxRuntime.jsxs(ui.Text, {
2201
323
  size: 1,
2202
324
  title: "Select ".concat(filename),
@@ -2206,7 +328,6 @@ function File(props) {
2206
328
  padding: 2,
2207
329
  radius: 2,
2208
330
  margin: 2,
2209
- studioTheme: theme,
2210
331
  children: /* @__PURE__ */jsxRuntime.jsx(ui.Text, {
2211
332
  size: 1,
2212
333
  title: "Video duration: ".concat(filename),
@@ -2218,67 +339,8 @@ function File(props) {
2218
339
  })]
2219
340
  });
2220
341
  }
2221
- const Search = styled(ui.Stack)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: sticky;\n top: 0;\n z-index: 1;\n"])));
2222
- styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n overflow-y: auto;\n max-height: 80vh;\n"])));
2223
- const fetchSearch = props => {
2224
- const {
2225
- projectId,
2226
- dataset,
2227
- shop,
2228
- query,
2229
- cursor,
2230
- resultsPerPage
2231
- } = props;
2232
- return rxjs.defer(() => {
2233
- return axios__default.default.get("https://".concat(projectId, ".api.sanity.io/v1/shopify/assets/").concat(dataset, "?shop=").concat(shop, "&query=").concat(encodeURIComponent(query)).concat(cursor && "&cursor=".concat(cursor), "&limit=").concat(resultsPerPage), {
2234
- withCredentials: true,
2235
- method: "GET"
2236
- });
2237
- }).pipe(operators.map(result => result.data));
2238
- };
2239
- const fetchList = props => {
2240
- const {
2241
- projectId,
2242
- dataset,
2243
- shop,
2244
- cursor,
2245
- resultsPerPage
2246
- } = props;
2247
- return rxjs.defer(() => axios__default.default.get("https://".concat(projectId, ".api.sanity.io/v1/shopify/assets/").concat(dataset, "?shop=").concat(shop).concat(cursor && "&cursor=".concat(cursor), "&limit=").concat(resultsPerPage), {
2248
- withCredentials: true,
2249
- method: "GET"
2250
- })).pipe(operators.map(result => result.data));
2251
- };
2252
- const search = props => {
2253
- const {
2254
- projectId,
2255
- dataset,
2256
- shop,
2257
- query,
2258
- cursor,
2259
- resultsPerPage
2260
- } = props;
2261
- return rxjs.concat(query.pipe(operators.withLatestFrom(cursor), operators.debounceTime(500), operators.distinctUntilChanged(), operators.switchMap(_ref11 => {
2262
- let [q, c] = _ref11;
2263
- if (q) {
2264
- return fetchSearch({
2265
- projectId,
2266
- dataset,
2267
- shop,
2268
- query: q,
2269
- cursor: c,
2270
- resultsPerPage
2271
- }).pipe(operators.distinctUntilChanged());
2272
- }
2273
- return fetchList({
2274
- projectId,
2275
- dataset,
2276
- shop,
2277
- cursor: c,
2278
- resultsPerPage
2279
- });
2280
- })));
2281
- };
342
+ const Search = styledComponents.styled(ui.Stack)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: sticky;\n top: 0;\n z-index: 1;\n"])));
343
+ styledComponents.styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n overflow-y: auto;\n max-height: 80vh;\n"])));
2282
344
  const RESULTS_PER_PAGE = 42;
2283
345
  const PHOTO_SPACING = 2;
2284
346
  const PHOTO_PADDING = 1;
@@ -2293,17 +355,17 @@ function ShopifyAssetPicker(props) {
2293
355
  } = props;
2294
356
  const projectId = sanity.useProjectId();
2295
357
  const dataset = sanity.useDataset();
2296
- const [error, setError] = r.useState("");
2297
- const [query, setQuery] = r.useState("");
2298
- const [searchResults, setSearchResults] = r.useState([]);
2299
- const [pageInfo, setPageInfo] = r.useState();
2300
- const [isLoading, setIsLoading] = r.useState(true);
2301
- const searchSubject$ = r.useMemo(() => new rxjs.BehaviorSubject(""), []);
2302
- const cursorSubject$ = r.useMemo(() => new rxjs.BehaviorSubject(""), []);
2303
- r.useEffect(() => {
358
+ const [error, setError] = React.useState("");
359
+ const [query, setQuery] = React.useState("");
360
+ const [searchResults, setSearchResults] = React.useState([]);
361
+ const [pageInfo, setPageInfo] = React.useState();
362
+ const [isLoading, setIsLoading] = React.useState(true);
363
+ const searchSubject$ = React.useMemo(() => new rxjs.BehaviorSubject(""), []);
364
+ const cursorSubject$ = React.useMemo(() => new rxjs.BehaviorSubject(""), []);
365
+ React.useEffect(() => {
2304
366
  if (!shopifyDomain) setError("Please configure your Shopify domain in the plugin config");
2305
367
  }, [shopifyDomain]);
2306
- r.useEffect(() => {
368
+ React.useEffect(() => {
2307
369
  const searchSubscription = search({
2308
370
  projectId,
2309
371
  dataset,
@@ -2323,7 +385,7 @@ function ShopifyAssetPicker(props) {
2323
385
  });
2324
386
  return () => searchSubscription.unsubscribe();
2325
387
  }, [searchSubject$, cursorSubject$, shopifyDomain, projectId, dataset]);
2326
- const handleSearchTermChanged = r.useCallback(event => {
388
+ const handleSearchTermChanged = React.useCallback(event => {
2327
389
  const newQuery = event.currentTarget.value;
2328
390
  setQuery(newQuery);
2329
391
  setSearchResults([]);
@@ -2332,18 +394,18 @@ function ShopifyAssetPicker(props) {
2332
394
  cursorSubject$.next("");
2333
395
  searchSubject$.next(newQuery);
2334
396
  }, [cursorSubject$, searchSubject$]);
2335
- const handleScollerLoadMore = r.useCallback(() => {
397
+ const handleScollerLoadMore = React.useCallback(() => {
2336
398
  setIsLoading(true);
2337
399
  if (pageInfo) cursorSubject$.next(pageInfo.cursor);
2338
400
  searchSubject$.next(query);
2339
401
  }, [cursorSubject$, pageInfo, searchSubject$, query]);
2340
- const handleSelect = r.useCallback(file => {
402
+ const handleSelect = React.useCallback(file => {
2341
403
  file._key = value == null ? void 0 : value._key;
2342
404
  file._type = schemaType.name;
2343
405
  onChange(sanity.PatchEvent.from([sanity.set(file)]));
2344
406
  onClose();
2345
407
  }, [onChange, onClose, schemaType.name, value == null ? void 0 : value._key]);
2346
- const renderFile = r.useCallback(fileProps => {
408
+ const renderFile = React.useCallback(fileProps => {
2347
409
  const {
2348
410
  photo,
2349
411
  layout
@@ -2355,7 +417,7 @@ function ShopifyAssetPicker(props) {
2355
417
  height: layout.height
2356
418
  });
2357
419
  }, [handleSelect]);
2358
- const handleWidth = r.useCallback(width => {
420
+ const handleWidth = React.useCallback(width => {
2359
421
  if (width < 300) return 150;else if (width < 600) return 200;
2360
422
  return 300;
2361
423
  }, []);
@@ -2495,14 +557,14 @@ function ShopifyAssetInput(props) {
2495
557
  const {
2496
558
  shopifyDomain
2497
559
  } = options;
2498
- const [dialogOpen, setDialogOpen] = r.useState(false);
2499
- const removeValue = r.useCallback(() => {
560
+ const [dialogOpen, setDialogOpen] = React.useState(false);
561
+ const removeValue = React.useCallback(() => {
2500
562
  onChange(sanity.PatchEvent.from([sanity.unset()]));
2501
563
  }, [onChange]);
2502
- const onOpen = r.useCallback(() => {
564
+ const onOpen = React.useCallback(() => {
2503
565
  setDialogOpen(true);
2504
566
  }, [setDialogOpen]);
2505
- const onClose = r.useCallback(() => {
567
+ const onClose = React.useCallback(() => {
2506
568
  setDialogOpen(false);
2507
569
  }, [setDialogOpen]);
2508
570
  if (!shopifyDomain) {
@@ -2629,48 +691,28 @@ const shopifyAssetSchema = config => {
2629
691
  },
2630
692
  fields: [sanity.defineField({
2631
693
  type: "string",
2632
- name: "filename"
694
+ name: "filename",
695
+ title: "Filename"
2633
696
  }), sanity.defineField({
2634
697
  type: "string",
2635
- name: "id"
698
+ name: "id",
699
+ title: "ID"
2636
700
  }), sanity.defineField({
2637
- type: "object",
701
+ type: "shopify.assetMetadata",
2638
702
  name: "meta",
2639
- fields: [sanity.defineField({
2640
- type: "string",
2641
- name: "alt"
2642
- }), sanity.defineField({
2643
- type: "number",
2644
- name: "duration"
2645
- }), sanity.defineField({
2646
- type: "number",
2647
- name: "fileSize"
2648
- }), sanity.defineField({
2649
- type: "number",
2650
- name: "height"
2651
- }), sanity.defineField({
2652
- type: "number",
2653
- name: "width"
2654
- })]
703
+ title: "Metadata"
2655
704
  }), sanity.defineField({
2656
- type: "object",
705
+ type: "shopify.assetPreview",
2657
706
  name: "preview",
2658
- fields: [sanity.defineField({
2659
- type: "number",
2660
- name: "height"
2661
- }), sanity.defineField({
2662
- type: "number",
2663
- name: "width"
2664
- }), sanity.defineField({
2665
- type: "url",
2666
- name: "url"
2667
- })]
707
+ title: "Preview"
2668
708
  }), sanity.defineField({
2669
709
  type: "string",
2670
- name: "type"
710
+ name: "type",
711
+ title: "Type"
2671
712
  }), sanity.defineField({
2672
713
  type: "url",
2673
- name: "url"
714
+ name: "url",
715
+ title: "URL"
2674
716
  })],
2675
717
  ...{
2676
718
  components: {
@@ -2709,11 +751,55 @@ const shopifyAssetSchema = config => {
2709
751
  }
2710
752
  });
2711
753
  };
754
+ const shopifyAssetPreviewSchema = sanity.defineType({
755
+ type: "object",
756
+ name: "shopify.assetPreview",
757
+ title: "Asset preview",
758
+ fields: [sanity.defineField({
759
+ type: "number",
760
+ name: "height",
761
+ title: "Height"
762
+ }), sanity.defineField({
763
+ type: "number",
764
+ name: "width",
765
+ title: "Width"
766
+ }), sanity.defineField({
767
+ type: "url",
768
+ name: "url",
769
+ title: "URL"
770
+ })]
771
+ });
772
+ const shopifyAssetMetadataSchema = sanity.defineType({
773
+ type: "object",
774
+ name: "shopify.assetMetadata",
775
+ title: "Asset metadata",
776
+ fields: [sanity.defineField({
777
+ type: "string",
778
+ name: "alt",
779
+ title: "Alternative text"
780
+ }), sanity.defineField({
781
+ type: "number",
782
+ name: "duration",
783
+ title: "Duration"
784
+ }), sanity.defineField({
785
+ type: "number",
786
+ name: "fileSize",
787
+ title: "File size"
788
+ }), sanity.defineField({
789
+ type: "number",
790
+ name: "height",
791
+ title: "Height"
792
+ }), sanity.defineField({
793
+ type: "number",
794
+ name: "width",
795
+ title: "Width"
796
+ })]
797
+ });
2712
798
  const shopifyAssets = sanity.definePlugin(config => {
2713
799
  return {
2714
800
  name: "shopify-asset-schema",
2715
801
  schema: {
2716
- types: [shopifyAssetSchema(config)]
802
+ types: [shopifyAssetPreviewSchema, shopifyAssetMetadataSchema, shopifyAssetSchema(config)]
2717
803
  }
2718
804
  };
2719
805
  });