@hpcc-js/react 3.2.1 → 3.2.2
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 +179 -180
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +2 -2
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +4 -4
- package/src/ImageChar.tsx +3 -4
- package/src/edge.tsx +2 -2
- package/src/icon.tsx +3 -3
- package/src/image.tsx +2 -2
- package/src/shape.tsx +5 -5
- package/src/span.tsx +2 -2
- package/src/subgraph.tsx +2 -2
- package/src/text.tsx +20 -21
- package/src/vertex.tsx +7 -8
- package/src/vertex2.tsx +3 -4
- package/src/vertex3.tsx +4 -5
- package/src/vertex4.tsx +4 -5
- package/types/ImageChar.d.ts +2 -2
- package/types/edge.d.ts +2 -2
- package/types/icon.d.ts +3 -3
- package/types/image.d.ts +2 -2
- package/types/shape.d.ts +5 -5
- package/types/span.d.ts +2 -2
- package/types/subgraph.d.ts +2 -2
- package/types/text.d.ts +6 -6
- package/types/vertex.d.ts +3 -3
- package/types/vertex2.d.ts +2 -2
- package/types/vertex3.d.ts +3 -3
- package/types/vertex4.d.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -380,7 +380,185 @@ function C(n2, t2) {
|
|
|
380
380
|
function D(n2, t2) {
|
|
381
381
|
return typeof t2 == "function" ? t2(n2) : t2;
|
|
382
382
|
}
|
|
383
|
-
|
|
383
|
+
function g(n2, t2) {
|
|
384
|
+
for (var e2 in n2) if (e2 !== "__source" && !(e2 in t2)) return !0;
|
|
385
|
+
for (var r2 in t2) if (r2 !== "__source" && n2[r2] !== t2[r2]) return !0;
|
|
386
|
+
return !1;
|
|
387
|
+
}
|
|
388
|
+
function I(n2, t2) {
|
|
389
|
+
this.props = n2, this.context = t2;
|
|
390
|
+
}
|
|
391
|
+
(I.prototype = new k$1()).isPureReactComponent = !0, I.prototype.shouldComponentUpdate = function(n2, t2) {
|
|
392
|
+
return g(this.props, n2) || g(this.state, t2);
|
|
393
|
+
};
|
|
394
|
+
var M = l$1.__b;
|
|
395
|
+
l$1.__b = function(n2) {
|
|
396
|
+
n2.type && n2.type.__f && n2.ref && (n2.props.ref = n2.ref, n2.ref = null), M && M(n2);
|
|
397
|
+
};
|
|
398
|
+
var O = l$1.__e;
|
|
399
|
+
l$1.__e = function(n2, t2, e2, r2) {
|
|
400
|
+
if (n2.then) {
|
|
401
|
+
for (var u2, o2 = t2; o2 = o2.__; ) if ((u2 = o2.__c) && u2.__c) return t2.__e == null && (t2.__e = e2.__e, t2.__k = e2.__k), u2.__c(n2, t2);
|
|
402
|
+
}
|
|
403
|
+
O(n2, t2, e2, r2);
|
|
404
|
+
};
|
|
405
|
+
var F = l$1.unmount;
|
|
406
|
+
function U(n2, t2, e2) {
|
|
407
|
+
return n2 && (n2.__c && n2.__c.__H && (n2.__c.__H.__.forEach(function(n3) {
|
|
408
|
+
typeof n3.__c == "function" && n3.__c();
|
|
409
|
+
}), n2.__c.__H = null), (n2 = function(n3, t3) {
|
|
410
|
+
for (var e3 in t3) n3[e3] = t3[e3];
|
|
411
|
+
return n3;
|
|
412
|
+
}({}, n2)).__c != null && (n2.__c.__P === e2 && (n2.__c.__P = t2), n2.__c = null), n2.__k = n2.__k && n2.__k.map(function(n3) {
|
|
413
|
+
return U(n3, t2, e2);
|
|
414
|
+
})), n2;
|
|
415
|
+
}
|
|
416
|
+
function V(n2, t2, e2) {
|
|
417
|
+
return n2 && e2 && (n2.__v = null, n2.__k = n2.__k && n2.__k.map(function(n3) {
|
|
418
|
+
return V(n3, t2, e2);
|
|
419
|
+
}), n2.__c && n2.__c.__P === t2 && (n2.__e && e2.appendChild(n2.__e), n2.__c.__e = !0, n2.__c.__P = e2)), n2;
|
|
420
|
+
}
|
|
421
|
+
function W() {
|
|
422
|
+
this.__u = 0, this.o = null, this.__b = null;
|
|
423
|
+
}
|
|
424
|
+
function P(n2) {
|
|
425
|
+
var t2 = n2.__.__c;
|
|
426
|
+
return t2 && t2.__a && t2.__a(n2);
|
|
427
|
+
}
|
|
428
|
+
function z() {
|
|
429
|
+
this.i = null, this.l = null;
|
|
430
|
+
}
|
|
431
|
+
l$1.unmount = function(n2) {
|
|
432
|
+
var t2 = n2.__c;
|
|
433
|
+
t2 && t2.__R && t2.__R(), t2 && 32 & n2.__u && (n2.type = null), F && F(n2);
|
|
434
|
+
}, (W.prototype = new k$1()).__c = function(n2, t2) {
|
|
435
|
+
var e2 = t2.__c, r2 = this;
|
|
436
|
+
r2.o == null && (r2.o = []), r2.o.push(e2);
|
|
437
|
+
var u2 = P(r2.__v), o2 = !1, i2 = function() {
|
|
438
|
+
o2 || (o2 = !0, e2.__R = null, u2 ? u2(c2) : c2());
|
|
439
|
+
};
|
|
440
|
+
e2.__R = i2;
|
|
441
|
+
var c2 = function() {
|
|
442
|
+
if (!--r2.__u) {
|
|
443
|
+
if (r2.state.__a) {
|
|
444
|
+
var n3 = r2.state.__a;
|
|
445
|
+
r2.__v.__k[0] = V(n3, n3.__c.__P, n3.__c.__O);
|
|
446
|
+
}
|
|
447
|
+
var t3;
|
|
448
|
+
for (r2.setState({ __a: r2.__b = null }); t3 = r2.o.pop(); ) t3.forceUpdate();
|
|
449
|
+
}
|
|
450
|
+
};
|
|
451
|
+
r2.__u++ || 32 & t2.__u || r2.setState({ __a: r2.__b = r2.__v.__k[0] }), n2.then(i2, i2);
|
|
452
|
+
}, W.prototype.componentWillUnmount = function() {
|
|
453
|
+
this.o = [];
|
|
454
|
+
}, W.prototype.render = function(n2, e2) {
|
|
455
|
+
if (this.__b) {
|
|
456
|
+
if (this.__v.__k) {
|
|
457
|
+
var r2 = document.createElement("div"), o2 = this.__v.__k[0].__c;
|
|
458
|
+
this.__v.__k[0] = U(this.__b, r2, o2.__O = o2.__P);
|
|
459
|
+
}
|
|
460
|
+
this.__b = null;
|
|
461
|
+
}
|
|
462
|
+
var i2 = e2.__a && _$1(b, null, n2.fallback);
|
|
463
|
+
return i2 && (i2.__u &= -33), [_$1(b, null, e2.__a ? null : n2.children), i2];
|
|
464
|
+
};
|
|
465
|
+
var B = function(n2, t2, e2) {
|
|
466
|
+
if (++e2[1] === e2[0] && n2.l.delete(t2), n2.props.revealOrder && (n2.props.revealOrder[0] !== "t" || !n2.l.size)) for (e2 = n2.i; e2; ) {
|
|
467
|
+
for (; e2.length > 3; ) e2.pop()();
|
|
468
|
+
if (e2[1] < e2[0]) break;
|
|
469
|
+
n2.i = e2 = e2[2];
|
|
470
|
+
}
|
|
471
|
+
};
|
|
472
|
+
(z.prototype = new k$1()).__a = function(n2) {
|
|
473
|
+
var t2 = this, e2 = P(t2.__v), r2 = t2.l.get(n2);
|
|
474
|
+
return r2[0]++, function(u2) {
|
|
475
|
+
var o2 = function() {
|
|
476
|
+
t2.props.revealOrder ? (r2.push(u2), B(t2, n2, r2)) : u2();
|
|
477
|
+
};
|
|
478
|
+
e2 ? e2(o2) : o2();
|
|
479
|
+
};
|
|
480
|
+
}, z.prototype.render = function(n2) {
|
|
481
|
+
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
482
|
+
var t2 = H(n2.children);
|
|
483
|
+
n2.revealOrder && n2.revealOrder[0] === "b" && t2.reverse();
|
|
484
|
+
for (var e2 = t2.length; e2--; ) this.l.set(t2[e2], this.i = [1, 0, this.i]);
|
|
485
|
+
return n2.children;
|
|
486
|
+
}, z.prototype.componentDidUpdate = z.prototype.componentDidMount = function() {
|
|
487
|
+
var n2 = this;
|
|
488
|
+
this.l.forEach(function(t2, e2) {
|
|
489
|
+
B(n2, e2, t2);
|
|
490
|
+
});
|
|
491
|
+
};
|
|
492
|
+
var $ = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, q = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, G = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, J = /[A-Z0-9]/g, K = typeof document < "u", Q = function(n2) {
|
|
493
|
+
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(n2);
|
|
494
|
+
};
|
|
495
|
+
k$1.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t2) {
|
|
496
|
+
Object.defineProperty(k$1.prototype, t2, { configurable: !0, get: function() {
|
|
497
|
+
return this["UNSAFE_" + t2];
|
|
498
|
+
}, set: function(n2) {
|
|
499
|
+
Object.defineProperty(this, t2, { configurable: !0, writable: !0, value: n2 });
|
|
500
|
+
} });
|
|
501
|
+
});
|
|
502
|
+
var tn = l$1.event;
|
|
503
|
+
function en() {
|
|
504
|
+
}
|
|
505
|
+
function rn() {
|
|
506
|
+
return this.cancelBubble;
|
|
507
|
+
}
|
|
508
|
+
function un() {
|
|
509
|
+
return this.defaultPrevented;
|
|
510
|
+
}
|
|
511
|
+
l$1.event = function(n2) {
|
|
512
|
+
return tn && (n2 = tn(n2)), n2.persist = en, n2.isPropagationStopped = rn, n2.isDefaultPrevented = un, n2.nativeEvent = n2;
|
|
513
|
+
};
|
|
514
|
+
var cn = { enumerable: !1, configurable: !0, get: function() {
|
|
515
|
+
return this.class;
|
|
516
|
+
} }, fn = l$1.vnode;
|
|
517
|
+
l$1.vnode = function(n2) {
|
|
518
|
+
typeof n2.type == "string" && function(n3) {
|
|
519
|
+
var t2 = n3.props, e2 = n3.type, u2 = {}, o2 = e2.indexOf("-") === -1;
|
|
520
|
+
for (var i2 in t2) {
|
|
521
|
+
var c2 = t2[i2];
|
|
522
|
+
if (!(i2 === "value" && "defaultValue" in t2 && c2 == null || K && i2 === "children" && e2 === "noscript" || i2 === "class" || i2 === "className")) {
|
|
523
|
+
var f2 = i2.toLowerCase();
|
|
524
|
+
i2 === "defaultValue" && "value" in t2 && t2.value == null ? i2 = "value" : i2 === "download" && c2 === !0 ? c2 = "" : f2 === "translate" && c2 === "no" ? c2 = !1 : f2[0] === "o" && f2[1] === "n" ? f2 === "ondoubleclick" ? i2 = "ondblclick" : f2 !== "onchange" || e2 !== "input" && e2 !== "textarea" || Q(t2.type) ? f2 === "onfocus" ? i2 = "onfocusin" : f2 === "onblur" ? i2 = "onfocusout" : G.test(i2) && (i2 = f2) : f2 = i2 = "oninput" : o2 && q.test(i2) ? i2 = i2.replace(J, "-$&").toLowerCase() : c2 === null && (c2 = void 0), f2 === "oninput" && u2[i2 = f2] && (i2 = "oninputCapture"), u2[i2] = c2;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
e2 == "select" && u2.multiple && Array.isArray(u2.value) && (u2.value = H(t2.children).forEach(function(n4) {
|
|
528
|
+
n4.props.selected = u2.value.indexOf(n4.props.value) != -1;
|
|
529
|
+
})), e2 == "select" && u2.defaultValue != null && (u2.value = H(t2.children).forEach(function(n4) {
|
|
530
|
+
n4.props.selected = u2.multiple ? u2.defaultValue.indexOf(n4.props.value) != -1 : u2.defaultValue == n4.props.value;
|
|
531
|
+
})), t2.class && !t2.className ? (u2.class = t2.class, Object.defineProperty(u2, "className", cn)) : (t2.className && !t2.class || t2.class && t2.className) && (u2.class = u2.className = t2.className), n3.props = u2;
|
|
532
|
+
}(n2), n2.$$typeof = $, fn && fn(n2);
|
|
533
|
+
};
|
|
534
|
+
var ln = l$1.__r;
|
|
535
|
+
l$1.__r = function(n2) {
|
|
536
|
+
ln && ln(n2), n2.__c;
|
|
537
|
+
};
|
|
538
|
+
var an = l$1.diffed;
|
|
539
|
+
l$1.diffed = function(n2) {
|
|
540
|
+
an && an(n2);
|
|
541
|
+
var t2 = n2.props, e2 = n2.__e;
|
|
542
|
+
e2 != null && n2.type === "textarea" && "value" in t2 && t2.value !== e2.value && (e2.value = t2.value == null ? "" : t2.value);
|
|
543
|
+
};
|
|
544
|
+
function _n(n2) {
|
|
545
|
+
return !!n2.__k && (q$2(null, n2), !0);
|
|
546
|
+
}
|
|
547
|
+
const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
548
|
+
__proto__: null,
|
|
549
|
+
Component: k$1,
|
|
550
|
+
Fragment: b,
|
|
551
|
+
createElement: _$1,
|
|
552
|
+
h: _$1,
|
|
553
|
+
render: q$2,
|
|
554
|
+
unmountComponentAtNode: _n,
|
|
555
|
+
useCallback: q$1,
|
|
556
|
+
useEffect: y,
|
|
557
|
+
useLayoutEffect: _,
|
|
558
|
+
useMemo: T,
|
|
559
|
+
useReducer: p,
|
|
560
|
+
useState: h
|
|
561
|
+
}, Symbol.toStringTag, { value: "Module" })), Image = ({
|
|
384
562
|
href,
|
|
385
563
|
x: x2,
|
|
386
564
|
y: y2 = 0,
|
|
@@ -1475,185 +1653,6 @@ const Span = ({
|
|
|
1475
1653
|
)
|
|
1476
1654
|
] });
|
|
1477
1655
|
};
|
|
1478
|
-
function g(n2, t2) {
|
|
1479
|
-
for (var e2 in n2) if (e2 !== "__source" && !(e2 in t2)) return !0;
|
|
1480
|
-
for (var r2 in t2) if (r2 !== "__source" && n2[r2] !== t2[r2]) return !0;
|
|
1481
|
-
return !1;
|
|
1482
|
-
}
|
|
1483
|
-
function I(n2, t2) {
|
|
1484
|
-
this.props = n2, this.context = t2;
|
|
1485
|
-
}
|
|
1486
|
-
(I.prototype = new k$1()).isPureReactComponent = !0, I.prototype.shouldComponentUpdate = function(n2, t2) {
|
|
1487
|
-
return g(this.props, n2) || g(this.state, t2);
|
|
1488
|
-
};
|
|
1489
|
-
var M = l$1.__b;
|
|
1490
|
-
l$1.__b = function(n2) {
|
|
1491
|
-
n2.type && n2.type.__f && n2.ref && (n2.props.ref = n2.ref, n2.ref = null), M && M(n2);
|
|
1492
|
-
};
|
|
1493
|
-
var O = l$1.__e;
|
|
1494
|
-
l$1.__e = function(n2, t2, e2, r2) {
|
|
1495
|
-
if (n2.then) {
|
|
1496
|
-
for (var u2, o2 = t2; o2 = o2.__; ) if ((u2 = o2.__c) && u2.__c) return t2.__e == null && (t2.__e = e2.__e, t2.__k = e2.__k), u2.__c(n2, t2);
|
|
1497
|
-
}
|
|
1498
|
-
O(n2, t2, e2, r2);
|
|
1499
|
-
};
|
|
1500
|
-
var F = l$1.unmount;
|
|
1501
|
-
function U(n2, t2, e2) {
|
|
1502
|
-
return n2 && (n2.__c && n2.__c.__H && (n2.__c.__H.__.forEach(function(n3) {
|
|
1503
|
-
typeof n3.__c == "function" && n3.__c();
|
|
1504
|
-
}), n2.__c.__H = null), (n2 = function(n3, t3) {
|
|
1505
|
-
for (var e3 in t3) n3[e3] = t3[e3];
|
|
1506
|
-
return n3;
|
|
1507
|
-
}({}, n2)).__c != null && (n2.__c.__P === e2 && (n2.__c.__P = t2), n2.__c = null), n2.__k = n2.__k && n2.__k.map(function(n3) {
|
|
1508
|
-
return U(n3, t2, e2);
|
|
1509
|
-
})), n2;
|
|
1510
|
-
}
|
|
1511
|
-
function V(n2, t2, e2) {
|
|
1512
|
-
return n2 && e2 && (n2.__v = null, n2.__k = n2.__k && n2.__k.map(function(n3) {
|
|
1513
|
-
return V(n3, t2, e2);
|
|
1514
|
-
}), n2.__c && n2.__c.__P === t2 && (n2.__e && e2.appendChild(n2.__e), n2.__c.__e = !0, n2.__c.__P = e2)), n2;
|
|
1515
|
-
}
|
|
1516
|
-
function W() {
|
|
1517
|
-
this.__u = 0, this.o = null, this.__b = null;
|
|
1518
|
-
}
|
|
1519
|
-
function P(n2) {
|
|
1520
|
-
var t2 = n2.__.__c;
|
|
1521
|
-
return t2 && t2.__a && t2.__a(n2);
|
|
1522
|
-
}
|
|
1523
|
-
function z() {
|
|
1524
|
-
this.i = null, this.l = null;
|
|
1525
|
-
}
|
|
1526
|
-
l$1.unmount = function(n2) {
|
|
1527
|
-
var t2 = n2.__c;
|
|
1528
|
-
t2 && t2.__R && t2.__R(), t2 && 32 & n2.__u && (n2.type = null), F && F(n2);
|
|
1529
|
-
}, (W.prototype = new k$1()).__c = function(n2, t2) {
|
|
1530
|
-
var e2 = t2.__c, r2 = this;
|
|
1531
|
-
r2.o == null && (r2.o = []), r2.o.push(e2);
|
|
1532
|
-
var u2 = P(r2.__v), o2 = !1, i2 = function() {
|
|
1533
|
-
o2 || (o2 = !0, e2.__R = null, u2 ? u2(c2) : c2());
|
|
1534
|
-
};
|
|
1535
|
-
e2.__R = i2;
|
|
1536
|
-
var c2 = function() {
|
|
1537
|
-
if (!--r2.__u) {
|
|
1538
|
-
if (r2.state.__a) {
|
|
1539
|
-
var n3 = r2.state.__a;
|
|
1540
|
-
r2.__v.__k[0] = V(n3, n3.__c.__P, n3.__c.__O);
|
|
1541
|
-
}
|
|
1542
|
-
var t3;
|
|
1543
|
-
for (r2.setState({ __a: r2.__b = null }); t3 = r2.o.pop(); ) t3.forceUpdate();
|
|
1544
|
-
}
|
|
1545
|
-
};
|
|
1546
|
-
r2.__u++ || 32 & t2.__u || r2.setState({ __a: r2.__b = r2.__v.__k[0] }), n2.then(i2, i2);
|
|
1547
|
-
}, W.prototype.componentWillUnmount = function() {
|
|
1548
|
-
this.o = [];
|
|
1549
|
-
}, W.prototype.render = function(n2, e2) {
|
|
1550
|
-
if (this.__b) {
|
|
1551
|
-
if (this.__v.__k) {
|
|
1552
|
-
var r2 = document.createElement("div"), o2 = this.__v.__k[0].__c;
|
|
1553
|
-
this.__v.__k[0] = U(this.__b, r2, o2.__O = o2.__P);
|
|
1554
|
-
}
|
|
1555
|
-
this.__b = null;
|
|
1556
|
-
}
|
|
1557
|
-
var i2 = e2.__a && _$1(b, null, n2.fallback);
|
|
1558
|
-
return i2 && (i2.__u &= -33), [_$1(b, null, e2.__a ? null : n2.children), i2];
|
|
1559
|
-
};
|
|
1560
|
-
var B = function(n2, t2, e2) {
|
|
1561
|
-
if (++e2[1] === e2[0] && n2.l.delete(t2), n2.props.revealOrder && (n2.props.revealOrder[0] !== "t" || !n2.l.size)) for (e2 = n2.i; e2; ) {
|
|
1562
|
-
for (; e2.length > 3; ) e2.pop()();
|
|
1563
|
-
if (e2[1] < e2[0]) break;
|
|
1564
|
-
n2.i = e2 = e2[2];
|
|
1565
|
-
}
|
|
1566
|
-
};
|
|
1567
|
-
(z.prototype = new k$1()).__a = function(n2) {
|
|
1568
|
-
var t2 = this, e2 = P(t2.__v), r2 = t2.l.get(n2);
|
|
1569
|
-
return r2[0]++, function(u2) {
|
|
1570
|
-
var o2 = function() {
|
|
1571
|
-
t2.props.revealOrder ? (r2.push(u2), B(t2, n2, r2)) : u2();
|
|
1572
|
-
};
|
|
1573
|
-
e2 ? e2(o2) : o2();
|
|
1574
|
-
};
|
|
1575
|
-
}, z.prototype.render = function(n2) {
|
|
1576
|
-
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
1577
|
-
var t2 = H(n2.children);
|
|
1578
|
-
n2.revealOrder && n2.revealOrder[0] === "b" && t2.reverse();
|
|
1579
|
-
for (var e2 = t2.length; e2--; ) this.l.set(t2[e2], this.i = [1, 0, this.i]);
|
|
1580
|
-
return n2.children;
|
|
1581
|
-
}, z.prototype.componentDidUpdate = z.prototype.componentDidMount = function() {
|
|
1582
|
-
var n2 = this;
|
|
1583
|
-
this.l.forEach(function(t2, e2) {
|
|
1584
|
-
B(n2, e2, t2);
|
|
1585
|
-
});
|
|
1586
|
-
};
|
|
1587
|
-
var $ = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, q = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, G = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, J = /[A-Z0-9]/g, K = typeof document < "u", Q = function(n2) {
|
|
1588
|
-
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(n2);
|
|
1589
|
-
};
|
|
1590
|
-
k$1.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t2) {
|
|
1591
|
-
Object.defineProperty(k$1.prototype, t2, { configurable: !0, get: function() {
|
|
1592
|
-
return this["UNSAFE_" + t2];
|
|
1593
|
-
}, set: function(n2) {
|
|
1594
|
-
Object.defineProperty(this, t2, { configurable: !0, writable: !0, value: n2 });
|
|
1595
|
-
} });
|
|
1596
|
-
});
|
|
1597
|
-
var tn = l$1.event;
|
|
1598
|
-
function en() {
|
|
1599
|
-
}
|
|
1600
|
-
function rn() {
|
|
1601
|
-
return this.cancelBubble;
|
|
1602
|
-
}
|
|
1603
|
-
function un() {
|
|
1604
|
-
return this.defaultPrevented;
|
|
1605
|
-
}
|
|
1606
|
-
l$1.event = function(n2) {
|
|
1607
|
-
return tn && (n2 = tn(n2)), n2.persist = en, n2.isPropagationStopped = rn, n2.isDefaultPrevented = un, n2.nativeEvent = n2;
|
|
1608
|
-
};
|
|
1609
|
-
var cn = { enumerable: !1, configurable: !0, get: function() {
|
|
1610
|
-
return this.class;
|
|
1611
|
-
} }, fn = l$1.vnode;
|
|
1612
|
-
l$1.vnode = function(n2) {
|
|
1613
|
-
typeof n2.type == "string" && function(n3) {
|
|
1614
|
-
var t2 = n3.props, e2 = n3.type, u2 = {}, o2 = e2.indexOf("-") === -1;
|
|
1615
|
-
for (var i2 in t2) {
|
|
1616
|
-
var c2 = t2[i2];
|
|
1617
|
-
if (!(i2 === "value" && "defaultValue" in t2 && c2 == null || K && i2 === "children" && e2 === "noscript" || i2 === "class" || i2 === "className")) {
|
|
1618
|
-
var f2 = i2.toLowerCase();
|
|
1619
|
-
i2 === "defaultValue" && "value" in t2 && t2.value == null ? i2 = "value" : i2 === "download" && c2 === !0 ? c2 = "" : f2 === "translate" && c2 === "no" ? c2 = !1 : f2[0] === "o" && f2[1] === "n" ? f2 === "ondoubleclick" ? i2 = "ondblclick" : f2 !== "onchange" || e2 !== "input" && e2 !== "textarea" || Q(t2.type) ? f2 === "onfocus" ? i2 = "onfocusin" : f2 === "onblur" ? i2 = "onfocusout" : G.test(i2) && (i2 = f2) : f2 = i2 = "oninput" : o2 && q.test(i2) ? i2 = i2.replace(J, "-$&").toLowerCase() : c2 === null && (c2 = void 0), f2 === "oninput" && u2[i2 = f2] && (i2 = "oninputCapture"), u2[i2] = c2;
|
|
1620
|
-
}
|
|
1621
|
-
}
|
|
1622
|
-
e2 == "select" && u2.multiple && Array.isArray(u2.value) && (u2.value = H(t2.children).forEach(function(n4) {
|
|
1623
|
-
n4.props.selected = u2.value.indexOf(n4.props.value) != -1;
|
|
1624
|
-
})), e2 == "select" && u2.defaultValue != null && (u2.value = H(t2.children).forEach(function(n4) {
|
|
1625
|
-
n4.props.selected = u2.multiple ? u2.defaultValue.indexOf(n4.props.value) != -1 : u2.defaultValue == n4.props.value;
|
|
1626
|
-
})), t2.class && !t2.className ? (u2.class = t2.class, Object.defineProperty(u2, "className", cn)) : (t2.className && !t2.class || t2.class && t2.className) && (u2.class = u2.className = t2.className), n3.props = u2;
|
|
1627
|
-
}(n2), n2.$$typeof = $, fn && fn(n2);
|
|
1628
|
-
};
|
|
1629
|
-
var ln = l$1.__r;
|
|
1630
|
-
l$1.__r = function(n2) {
|
|
1631
|
-
ln && ln(n2), n2.__c;
|
|
1632
|
-
};
|
|
1633
|
-
var an = l$1.diffed;
|
|
1634
|
-
l$1.diffed = function(n2) {
|
|
1635
|
-
an && an(n2);
|
|
1636
|
-
var t2 = n2.props, e2 = n2.__e;
|
|
1637
|
-
e2 != null && n2.type === "textarea" && "value" in t2 && t2.value !== e2.value && (e2.value = t2.value == null ? "" : t2.value);
|
|
1638
|
-
};
|
|
1639
|
-
function _n(n2) {
|
|
1640
|
-
return !!n2.__k && (q$2(null, n2), !0);
|
|
1641
|
-
}
|
|
1642
|
-
const preactShim = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1643
|
-
__proto__: null,
|
|
1644
|
-
Component: k$1,
|
|
1645
|
-
Fragment: b,
|
|
1646
|
-
createElement: _$1,
|
|
1647
|
-
h: _$1,
|
|
1648
|
-
render: q$2,
|
|
1649
|
-
unmountComponentAtNode: _n,
|
|
1650
|
-
useCallback: q$1,
|
|
1651
|
-
useEffect: y,
|
|
1652
|
-
useLayoutEffect: _,
|
|
1653
|
-
useMemo: T,
|
|
1654
|
-
useReducer: p,
|
|
1655
|
-
useState: h
|
|
1656
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1657
1656
|
export {
|
|
1658
1657
|
Annotations,
|
|
1659
1658
|
BUILD_VERSION,
|