@linker-design-plus/timeline-track 2.0.19 → 2.0.20
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/core/facade/timelineManager.d.ts +0 -2
- package/dist/index.cjs.js +14 -15
- package/dist/index.es.js +501 -553
- package/dist/utils/diagnostics/index.d.ts +0 -1
- package/dist/utils/diagnostics/types.d.ts +0 -1
- package/package.json +1 -1
- package/dist/utils/diagnostics/DiagnosticsPanel.d.ts +0 -13
package/dist/index.es.js
CHANGED
|
@@ -188,15 +188,15 @@ function Hi(s) {
|
|
|
188
188
|
...s
|
|
189
189
|
} : { ...Tr };
|
|
190
190
|
}
|
|
191
|
-
const Is = 720,
|
|
191
|
+
const Is = 720, Be = {
|
|
192
192
|
mode: "auto-first-added-video",
|
|
193
193
|
width: 16,
|
|
194
194
|
height: 9
|
|
195
|
-
},
|
|
195
|
+
}, ju = [
|
|
196
196
|
{
|
|
197
197
|
key: "default",
|
|
198
198
|
label: "默认",
|
|
199
|
-
aspectRatio: { ...
|
|
199
|
+
aspectRatio: { ...Be }
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
key: "9:16",
|
|
@@ -228,8 +228,8 @@ function Ut(s) {
|
|
|
228
228
|
function st(s) {
|
|
229
229
|
return {
|
|
230
230
|
mode: As(s == null ? void 0 : s.mode),
|
|
231
|
-
width: typeof (s == null ? void 0 : s.width) == "number" && s.width > 0 ? s.width :
|
|
232
|
-
height: typeof (s == null ? void 0 : s.height) == "number" && s.height > 0 ? s.height :
|
|
231
|
+
width: typeof (s == null ? void 0 : s.width) == "number" && s.width > 0 ? s.width : Be.width,
|
|
232
|
+
height: typeof (s == null ? void 0 : s.height) == "number" && s.height > 0 ? s.height : Be.height
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
235
|
function Es(s, e = Is) {
|
|
@@ -242,7 +242,7 @@ function Es(s, e = Is) {
|
|
|
242
242
|
height: Math.round(i * a)
|
|
243
243
|
};
|
|
244
244
|
}
|
|
245
|
-
const
|
|
245
|
+
const Ku = {
|
|
246
246
|
DEFAULT: 1,
|
|
247
247
|
// 默认层级
|
|
248
248
|
ACTIVE: 2
|
|
@@ -258,7 +258,7 @@ const Ju = {
|
|
|
258
258
|
// 动画持续时间(毫秒)
|
|
259
259
|
EASING: "easeOutCubic"
|
|
260
260
|
// 缓动函数
|
|
261
|
-
},
|
|
261
|
+
}, Zu = {
|
|
262
262
|
DEFAULT_HEIGHT: 40,
|
|
263
263
|
// 默认时间刻度高度
|
|
264
264
|
MIN_HEIGHT: 20,
|
|
@@ -557,7 +557,7 @@ class ve {
|
|
|
557
557
|
return l.rotation = T._getRotation(l.rotation), l;
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
const
|
|
560
|
+
const qa = "[object Array]", ja = "[object Number]", Ka = "[object String]", Za = "[object Boolean]", Ja = Math.PI / 180, Qa = 180 / Math.PI, _t = "#", eo = "", to = "0", io = "Konva warning: ", ln = "Konva error: ", ro = "rgb(", er = {
|
|
561
561
|
aliceblue: [240, 248, 255],
|
|
562
562
|
antiquewhite: [250, 235, 215],
|
|
563
563
|
aqua: [0, 255, 255],
|
|
@@ -722,10 +722,10 @@ const so = typeof requestAnimationFrame < "u" && requestAnimationFrame || functi
|
|
|
722
722
|
return !!s && s.constructor === Object;
|
|
723
723
|
},
|
|
724
724
|
_isArray(s) {
|
|
725
|
-
return Object.prototype.toString.call(s) ===
|
|
725
|
+
return Object.prototype.toString.call(s) === qa;
|
|
726
726
|
},
|
|
727
727
|
_isNumber(s) {
|
|
728
|
-
return Object.prototype.toString.call(s) ===
|
|
728
|
+
return Object.prototype.toString.call(s) === ja && !isNaN(s) && isFinite(s);
|
|
729
729
|
},
|
|
730
730
|
_isString(s) {
|
|
731
731
|
return Object.prototype.toString.call(s) === Ka;
|
|
@@ -1154,7 +1154,7 @@ function dn() {
|
|
|
1154
1154
|
return Si = !1, !1;
|
|
1155
1155
|
}
|
|
1156
1156
|
}
|
|
1157
|
-
class
|
|
1157
|
+
class qi {
|
|
1158
1158
|
constructor(e) {
|
|
1159
1159
|
this.canvas = e, D.enableTrace && (this.traceArr = [], this._enableTrace());
|
|
1160
1160
|
}
|
|
@@ -1359,7 +1359,7 @@ class ji {
|
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
1361
|
fo.forEach(function(s) {
|
|
1362
|
-
Object.defineProperty(
|
|
1362
|
+
Object.defineProperty(qi.prototype, s, {
|
|
1363
1363
|
get() {
|
|
1364
1364
|
return this._context[s];
|
|
1365
1365
|
},
|
|
@@ -1368,7 +1368,7 @@ fo.forEach(function(s) {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
});
|
|
1370
1370
|
});
|
|
1371
|
-
class yo extends
|
|
1371
|
+
class yo extends qi {
|
|
1372
1372
|
constructor(e, { willReadFrequently: t = !1 } = {}) {
|
|
1373
1373
|
super(e), this._context = e._canvas.getContext("2d", {
|
|
1374
1374
|
willReadFrequently: t
|
|
@@ -1440,7 +1440,7 @@ class yo extends ji {
|
|
|
1440
1440
|
this.setAttr("shadowColor", n), this.setAttr("shadowBlur", a * Math.min(Math.abs(h), Math.abs(d))), this.setAttr("shadowOffsetX", o.x * h), this.setAttr("shadowOffsetY", o.y * d);
|
|
1441
1441
|
}
|
|
1442
1442
|
}
|
|
1443
|
-
class So extends
|
|
1443
|
+
class So extends qi {
|
|
1444
1444
|
constructor(e) {
|
|
1445
1445
|
super(e), this._context = e._canvas.getContext("2d", {
|
|
1446
1446
|
willReadFrequently: !0
|
|
@@ -1530,7 +1530,7 @@ class Xe extends Xr {
|
|
|
1530
1530
|
}), this.setSize(e.width, e.height);
|
|
1531
1531
|
}
|
|
1532
1532
|
}
|
|
1533
|
-
class
|
|
1533
|
+
class qr extends Xr {
|
|
1534
1534
|
constructor(e = { width: 0, height: 0 }) {
|
|
1535
1535
|
super(e), this.hitCanvas = !0, this.context = new So(this), this.setSize(e.width, e.height);
|
|
1536
1536
|
}
|
|
@@ -1608,14 +1608,14 @@ function L() {
|
|
|
1608
1608
|
return T._isNumber(s) || T.warn(Ze(s) + ' is a not valid value for "' + e + '" attribute. The value should be a number.'), s;
|
|
1609
1609
|
};
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1611
|
+
function ji(s) {
|
|
1612
1612
|
if (D.isUnminified)
|
|
1613
1613
|
return function(e, t) {
|
|
1614
1614
|
let i = T._isNumber(e), r = T._isArray(e) && e.length == s;
|
|
1615
1615
|
return !i && !r && T.warn(Ze(e) + ' is a not valid value for "' + t + '" attribute. The value should be a number or Array<number>(' + s + ")"), e;
|
|
1616
1616
|
};
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1618
|
+
function jr() {
|
|
1619
1619
|
if (D.isUnminified)
|
|
1620
1620
|
return function(s, e) {
|
|
1621
1621
|
return T._isNumber(s) || s === "auto" || T.warn(Ze(s) + ' is a not valid value for "' + e + '" attribute. The value should be a number or "auto".'), s;
|
|
@@ -1781,7 +1781,7 @@ function To(s) {
|
|
|
1781
1781
|
return () => {
|
|
1782
1782
|
};
|
|
1783
1783
|
}
|
|
1784
|
-
const Di = "absoluteOpacity", un = "allEventListeners",
|
|
1784
|
+
const Di = "absoluteOpacity", un = "allEventListeners", Me = "absoluteTransform", pn = "absoluteScale", tt = "canvas", wo = "Change", ko = "children", xo = "konva", kr = "listening", Po = "mouseenter", _o = "mouseleave", Io = "pointerenter", Ao = "pointerleave", Eo = "touchenter", Ro = "touchleave", gn = "set", fn = "Shape", Mi = " ", mn = "stage", We = "transform", Lo = "Stage", xr = "visible", Do = [
|
|
1785
1785
|
"xChange.konva",
|
|
1786
1786
|
"yChange.konva",
|
|
1787
1787
|
"scaleXChange.konva",
|
|
@@ -1802,11 +1802,11 @@ class R {
|
|
|
1802
1802
|
return !1;
|
|
1803
1803
|
}
|
|
1804
1804
|
_clearCache(e) {
|
|
1805
|
-
(e === We || e ===
|
|
1805
|
+
(e === We || e === Me) && this._cache.get(e) ? this._cache.get(e).dirty = !0 : e ? this._cache.delete(e) : this._cache.clear();
|
|
1806
1806
|
}
|
|
1807
1807
|
_getCache(e, t) {
|
|
1808
1808
|
let i = this._cache.get(e);
|
|
1809
|
-
return (i === void 0 || (e === We || e ===
|
|
1809
|
+
return (i === void 0 || (e === We || e === Me) && i.dirty === !0) && (i = t.call(this), this._cache.set(e, i)), i;
|
|
1810
1810
|
}
|
|
1811
1811
|
_calculate(e, t, i) {
|
|
1812
1812
|
if (!this._attachedDepsListeners.get(e)) {
|
|
@@ -1821,7 +1821,7 @@ class R {
|
|
|
1821
1821
|
return this._cache.get(tt);
|
|
1822
1822
|
}
|
|
1823
1823
|
_clearSelfAndDescendantCache(e) {
|
|
1824
|
-
this._clearCache(e), e ===
|
|
1824
|
+
this._clearCache(e), e === Me && this.fire("absoluteTransformChange");
|
|
1825
1825
|
}
|
|
1826
1826
|
clearCache() {
|
|
1827
1827
|
if (this._cache.has(tt)) {
|
|
@@ -1853,7 +1853,7 @@ class R {
|
|
|
1853
1853
|
width: 0,
|
|
1854
1854
|
height: 0,
|
|
1855
1855
|
willReadFrequently: !0
|
|
1856
|
-
}), S = new
|
|
1856
|
+
}), S = new qr({
|
|
1857
1857
|
pixelRatio: d,
|
|
1858
1858
|
width: r,
|
|
1859
1859
|
height: n
|
|
@@ -1982,7 +1982,7 @@ class R {
|
|
|
1982
1982
|
return this.isDragging() && this.stopDrag(), Z._dragElements.delete(this._id), this._remove(), this;
|
|
1983
1983
|
}
|
|
1984
1984
|
_clearCaches() {
|
|
1985
|
-
this._clearSelfAndDescendantCache(
|
|
1985
|
+
this._clearSelfAndDescendantCache(Me), this._clearSelfAndDescendantCache(Di), this._clearSelfAndDescendantCache(pn), this._clearSelfAndDescendantCache(mn), this._clearSelfAndDescendantCache(xr), this._clearSelfAndDescendantCache(kr);
|
|
1986
1986
|
}
|
|
1987
1987
|
_remove() {
|
|
1988
1988
|
this._clearCaches();
|
|
@@ -2069,7 +2069,7 @@ class R {
|
|
|
2069
2069
|
return e;
|
|
2070
2070
|
}
|
|
2071
2071
|
_batchTransformChanges(e) {
|
|
2072
|
-
this._batchingTransformChange = !0, e(), this._batchingTransformChange = !1, this._needClearTransformCache && (this._clearCache(We), this._clearSelfAndDescendantCache(
|
|
2072
|
+
this._batchingTransformChange = !0, e(), this._batchingTransformChange = !1, this._needClearTransformCache && (this._clearCache(We), this._clearSelfAndDescendantCache(Me)), this._needClearTransformCache = !1;
|
|
2073
2073
|
}
|
|
2074
2074
|
setPosition(e) {
|
|
2075
2075
|
return this._batchTransformChanges(() => {
|
|
@@ -2112,7 +2112,7 @@ class R {
|
|
|
2112
2112
|
return n.invert(), n.translate(e.x, e.y), e = {
|
|
2113
2113
|
x: this.attrs.x + n.getTranslation().x,
|
|
2114
2114
|
y: this.attrs.y + n.getTranslation().y
|
|
2115
|
-
}, this._setTransform(r), this.setPosition({ x: e.x, y: e.y }), this._clearCache(We), this._clearSelfAndDescendantCache(
|
|
2115
|
+
}, this._setTransform(r), this.setPosition({ x: e.x, y: e.y }), this._clearCache(We), this._clearSelfAndDescendantCache(Me), this;
|
|
2116
2116
|
}
|
|
2117
2117
|
_setTransform(e) {
|
|
2118
2118
|
let t;
|
|
@@ -2256,7 +2256,7 @@ class R {
|
|
|
2256
2256
|
return t.target = t.target || this, i ? this._fireAndBubble(e, t) : this._fire(e, t), this;
|
|
2257
2257
|
}
|
|
2258
2258
|
getAbsoluteTransform(e) {
|
|
2259
|
-
return e ? this._getAbsoluteTransform(e) : this._getCache(
|
|
2259
|
+
return e ? this._getAbsoluteTransform(e) : this._getCache(Me, this._getAbsoluteTransform);
|
|
2260
2260
|
}
|
|
2261
2261
|
_getAbsoluteTransform(e) {
|
|
2262
2262
|
let t;
|
|
@@ -2266,7 +2266,7 @@ class R {
|
|
|
2266
2266
|
r === "all" ? t.multiply(i.getTransform()) : r === "position" && t.translate(i.x() - i.offsetX(), i.y() - i.offsetY());
|
|
2267
2267
|
}, e), t;
|
|
2268
2268
|
{
|
|
2269
|
-
t = this._cache.get(
|
|
2269
|
+
t = this._cache.get(Me) || new ve(), this.parent ? this.parent.getAbsoluteTransform().copyInto(t) : t.reset();
|
|
2270
2270
|
const i = this.transformsEnabled();
|
|
2271
2271
|
if (i === "all")
|
|
2272
2272
|
t.multiply(this.getTransform());
|
|
@@ -2578,7 +2578,7 @@ R.prototype.on.call(R.prototype, Do, function() {
|
|
|
2578
2578
|
this._needClearTransformCache = !0;
|
|
2579
2579
|
return;
|
|
2580
2580
|
}
|
|
2581
|
-
this._clearCache(We), this._clearSelfAndDescendantCache(
|
|
2581
|
+
this._clearCache(We), this._clearSelfAndDescendantCache(Me);
|
|
2582
2582
|
});
|
|
2583
2583
|
R.prototype.on.call(R.prototype, "visibleChange.konva", function() {
|
|
2584
2584
|
this._clearSelfAndDescendantCache(xr);
|
|
@@ -3259,7 +3259,7 @@ class Ki extends Ce {
|
|
|
3259
3259
|
if (this.bufferCanvas = new Xe({
|
|
3260
3260
|
width: this.width(),
|
|
3261
3261
|
height: this.height()
|
|
3262
|
-
}), this.bufferHitCanvas = new
|
|
3262
|
+
}), this.bufferHitCanvas = new qr({
|
|
3263
3263
|
pixelRatio: 1,
|
|
3264
3264
|
width: this.width(),
|
|
3265
3265
|
height: this.height()
|
|
@@ -3290,7 +3290,7 @@ D.isBrowser && document.addEventListener("visibilitychange", () => {
|
|
|
3290
3290
|
s.batchDraw();
|
|
3291
3291
|
});
|
|
3292
3292
|
});
|
|
3293
|
-
const Xs = "hasShadow",
|
|
3293
|
+
const Xs = "hasShadow", qs = "shadowRGBA", js = "patternImage", Ks = "linearGradient", Zs = "radialGradient";
|
|
3294
3294
|
let wi;
|
|
3295
3295
|
function rr() {
|
|
3296
3296
|
return wi || (wi = T.createCanvasElement().getContext("2d"), wi);
|
|
@@ -3314,12 +3314,12 @@ function Yo() {
|
|
|
3314
3314
|
this._clearCache(Xs);
|
|
3315
3315
|
}
|
|
3316
3316
|
function Xo() {
|
|
3317
|
-
this._clearCache(js);
|
|
3318
|
-
}
|
|
3319
|
-
function jo() {
|
|
3320
3317
|
this._clearCache(qs);
|
|
3321
3318
|
}
|
|
3322
3319
|
function qo() {
|
|
3320
|
+
this._clearCache(js);
|
|
3321
|
+
}
|
|
3322
|
+
function jo() {
|
|
3323
3323
|
this._clearCache(Ks);
|
|
3324
3324
|
}
|
|
3325
3325
|
function Ko() {
|
|
@@ -3355,7 +3355,7 @@ class _ extends R {
|
|
|
3355
3355
|
return this.shadowEnabled() && this.shadowOpacity() !== 0 && !!(this.shadowColor() || this.shadowBlur() || this.shadowOffsetX() || this.shadowOffsetY());
|
|
3356
3356
|
}
|
|
3357
3357
|
_getFillPattern() {
|
|
3358
|
-
return this._getCache(
|
|
3358
|
+
return this._getCache(js, this.__getFillPattern);
|
|
3359
3359
|
}
|
|
3360
3360
|
__getFillPattern() {
|
|
3361
3361
|
if (this.fillPatternImage()) {
|
|
@@ -3401,7 +3401,7 @@ class _ extends R {
|
|
|
3401
3401
|
}
|
|
3402
3402
|
}
|
|
3403
3403
|
getShadowRGBA() {
|
|
3404
|
-
return this._getCache(
|
|
3404
|
+
return this._getCache(qs, this._getShadowRGBA);
|
|
3405
3405
|
}
|
|
3406
3406
|
_getShadowRGBA() {
|
|
3407
3407
|
if (!this.hasShadow())
|
|
@@ -3563,13 +3563,13 @@ ae(_);
|
|
|
3563
3563
|
_.prototype.eventListeners = {};
|
|
3564
3564
|
_.prototype.on.call(_.prototype, "shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva", Yo);
|
|
3565
3565
|
_.prototype.on.call(_.prototype, "shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva", Xo);
|
|
3566
|
-
_.prototype.on.call(_.prototype, "fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",
|
|
3567
|
-
_.prototype.on.call(_.prototype, "fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",
|
|
3566
|
+
_.prototype.on.call(_.prototype, "fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva", qo);
|
|
3567
|
+
_.prototype.on.call(_.prototype, "fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva", jo);
|
|
3568
3568
|
_.prototype.on.call(_.prototype, "fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva", Ko);
|
|
3569
3569
|
m.addGetterSetter(_, "stroke", void 0, Ds());
|
|
3570
3570
|
m.addGetterSetter(_, "strokeWidth", 2, L());
|
|
3571
3571
|
m.addGetterSetter(_, "fillAfterStrokeEnabled", !1);
|
|
3572
|
-
m.addGetterSetter(_, "hitStrokeWidth", "auto",
|
|
3572
|
+
m.addGetterSetter(_, "hitStrokeWidth", "auto", jr());
|
|
3573
3573
|
m.addGetterSetter(_, "strokeHitEnabled", !0, Ee());
|
|
3574
3574
|
m.addGetterSetter(_, "perfectDrawEnabled", !0, Ee());
|
|
3575
3575
|
m.addGetterSetter(_, "shadowForStrokeEnabled", !0, Ee());
|
|
@@ -3666,7 +3666,7 @@ const Zo = "beforeDraw", Jo = "draw", Js = [
|
|
|
3666
3666
|
], Qo = Js.length;
|
|
3667
3667
|
class ut extends Ce {
|
|
3668
3668
|
constructor(e) {
|
|
3669
|
-
super(e), this.canvas = new Xe(), this.hitCanvas = new
|
|
3669
|
+
super(e), this.canvas = new Xe(), this.hitCanvas = new qr({
|
|
3670
3670
|
pixelRatio: 1
|
|
3671
3671
|
}), this._waitingForDraw = !1, this.on("visibleChange.konva", this._checkVisibility), this._checkVisibility(), this.on("imageSmoothingEnabledChange.konva", this._setSmoothEnabled), this._setSmoothEnabled();
|
|
3672
3672
|
}
|
|
@@ -4004,7 +4004,7 @@ class rl {
|
|
|
4004
4004
|
}
|
|
4005
4005
|
class te {
|
|
4006
4006
|
constructor(e) {
|
|
4007
|
-
const t = this, i = e.node, r = i._id, n = e.easing ||
|
|
4007
|
+
const t = this, i = e.node, r = i._id, n = e.easing || qt.Linear, a = !!e.yoyo;
|
|
4008
4008
|
let o, l;
|
|
4009
4009
|
typeof e.duration > "u" ? o = 0.3 : e.duration === 0 ? o = 1e-3 : o = e.duration, this.node = i, this._id = il++;
|
|
4010
4010
|
const c = i.getLayer() || (i instanceof D.Stage ? i.getLayers() : null);
|
|
@@ -4120,7 +4120,7 @@ R.prototype.to = function(s) {
|
|
|
4120
4120
|
this.destroy(), e && e();
|
|
4121
4121
|
}, new te(s).play();
|
|
4122
4122
|
};
|
|
4123
|
-
const
|
|
4123
|
+
const qt = {
|
|
4124
4124
|
BackEaseIn(s, e, t, i) {
|
|
4125
4125
|
return t * (s /= i) * s * ((1.70158 + 1) * s - 1.70158) + e;
|
|
4126
4126
|
},
|
|
@@ -4147,10 +4147,10 @@ const jt = {
|
|
|
4147
4147
|
return (s /= i) < 1 / 2.75 ? t * (7.5625 * s * s) + e : s < 2 / 2.75 ? t * (7.5625 * (s -= 1.5 / 2.75) * s + 0.75) + e : s < 2.5 / 2.75 ? t * (7.5625 * (s -= 2.25 / 2.75) * s + 0.9375) + e : t * (7.5625 * (s -= 2.625 / 2.75) * s + 0.984375) + e;
|
|
4148
4148
|
},
|
|
4149
4149
|
BounceEaseIn(s, e, t, i) {
|
|
4150
|
-
return t -
|
|
4150
|
+
return t - qt.BounceEaseOut(i - s, 0, t, i) + e;
|
|
4151
4151
|
},
|
|
4152
4152
|
BounceEaseInOut(s, e, t, i) {
|
|
4153
|
-
return s < i / 2 ?
|
|
4153
|
+
return s < i / 2 ? qt.BounceEaseIn(s * 2, 0, t, i) * 0.5 + e : qt.BounceEaseOut(s * 2 - i, 0, t, i) * 0.5 + t * 0.5 + e;
|
|
4154
4154
|
},
|
|
4155
4155
|
EaseIn(s, e, t, i) {
|
|
4156
4156
|
return t * (s /= i) * s + e;
|
|
@@ -4188,11 +4188,11 @@ const jt = {
|
|
|
4188
4188
|
shapes: Xt,
|
|
4189
4189
|
Animation: xe,
|
|
4190
4190
|
Tween: te,
|
|
4191
|
-
Easings:
|
|
4192
|
-
Context:
|
|
4191
|
+
Easings: qt,
|
|
4192
|
+
Context: qi,
|
|
4193
4193
|
Canvas: Xr
|
|
4194
4194
|
});
|
|
4195
|
-
class
|
|
4195
|
+
class Fe extends _ {
|
|
4196
4196
|
_sceneFunc(e) {
|
|
4197
4197
|
const t = D.getAngle(this.angle()), i = this.clockwise();
|
|
4198
4198
|
e.beginPath(), e.arc(0, 0, this.outerRadius(), 0, t, i), e.arc(0, 0, this.innerRadius(), t, 0, !i), e.closePath(), e.fillStrokeShape(this);
|
|
@@ -4219,19 +4219,19 @@ class Ge extends _ {
|
|
|
4219
4219
|
};
|
|
4220
4220
|
}
|
|
4221
4221
|
}
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4222
|
+
Fe.prototype._centroid = !0;
|
|
4223
|
+
Fe.prototype.className = "Arc";
|
|
4224
|
+
Fe.prototype._attrsAffectingSize = [
|
|
4225
4225
|
"innerRadius",
|
|
4226
4226
|
"outerRadius",
|
|
4227
4227
|
"angle",
|
|
4228
4228
|
"clockwise"
|
|
4229
4229
|
];
|
|
4230
|
-
ae(
|
|
4231
|
-
m.addGetterSetter(
|
|
4232
|
-
m.addGetterSetter(
|
|
4233
|
-
m.addGetterSetter(
|
|
4234
|
-
m.addGetterSetter(
|
|
4230
|
+
ae(Fe);
|
|
4231
|
+
m.addGetterSetter(Fe, "innerRadius", 0, L());
|
|
4232
|
+
m.addGetterSetter(Fe, "outerRadius", 0, L());
|
|
4233
|
+
m.addGetterSetter(Fe, "angle", 0, L());
|
|
4234
|
+
m.addGetterSetter(Fe, "clockwise", !1, Ee());
|
|
4235
4235
|
function Ir(s, e, t, i, r, n, a) {
|
|
4236
4236
|
const o = Math.sqrt(Math.pow(t - s, 2) + Math.pow(i - e, 2)), l = Math.sqrt(Math.pow(r - t, 2) + Math.pow(n - i, 2)), c = a * o / (o + l), h = a * l / (o + l), d = t - c * (r - s), u = i - c * (n - e), g = t + h * (r - s), f = i + h * (n - e);
|
|
4237
4237
|
return [d, u, g, f];
|
|
@@ -4264,7 +4264,7 @@ function nl(s) {
|
|
|
4264
4264
|
return n * n * n * r[0] + 3 * n * n * i * r[1] + 3 * n * i * i * r[2] + i * i * i * r[3];
|
|
4265
4265
|
}));
|
|
4266
4266
|
}
|
|
4267
|
-
class
|
|
4267
|
+
class Ge extends _ {
|
|
4268
4268
|
constructor(e) {
|
|
4269
4269
|
super(e), this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva", function() {
|
|
4270
4270
|
this._clearCache("tensionPoints");
|
|
@@ -4348,13 +4348,13 @@ class He extends _ {
|
|
|
4348
4348
|
};
|
|
4349
4349
|
}
|
|
4350
4350
|
}
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
ae(
|
|
4354
|
-
m.addGetterSetter(
|
|
4355
|
-
m.addGetterSetter(
|
|
4356
|
-
m.addGetterSetter(
|
|
4357
|
-
m.addGetterSetter(
|
|
4351
|
+
Ge.prototype.className = "Line";
|
|
4352
|
+
Ge.prototype._attrsAffectingSize = ["points", "bezier", "tension"];
|
|
4353
|
+
ae(Ge);
|
|
4354
|
+
m.addGetterSetter(Ge, "closed", !1);
|
|
4355
|
+
m.addGetterSetter(Ge, "bezier", !1);
|
|
4356
|
+
m.addGetterSetter(Ge, "tension", 0, L());
|
|
4357
|
+
m.addGetterSetter(Ge, "points", [], Co());
|
|
4358
4358
|
const sl = [
|
|
4359
4359
|
[],
|
|
4360
4360
|
[],
|
|
@@ -5478,7 +5478,7 @@ ie.prototype.className = "Path";
|
|
|
5478
5478
|
ie.prototype._attrsAffectingSize = ["data"];
|
|
5479
5479
|
ae(ie);
|
|
5480
5480
|
m.addGetterSetter(ie, "data");
|
|
5481
|
-
class pt extends
|
|
5481
|
+
class pt extends Ge {
|
|
5482
5482
|
_sceneFunc(e) {
|
|
5483
5483
|
super._sceneFunc(e);
|
|
5484
5484
|
const t = Math.PI * 2, i = this.points();
|
|
@@ -5635,7 +5635,7 @@ let Re = class Qs extends _ {
|
|
|
5635
5635
|
Re.prototype.className = "Image";
|
|
5636
5636
|
Re.prototype._attrsAffectingSize = ["image"];
|
|
5637
5637
|
ae(Re);
|
|
5638
|
-
m.addGetterSetter(Re, "cornerRadius", 0,
|
|
5638
|
+
m.addGetterSetter(Re, "cornerRadius", 0, ji(4));
|
|
5639
5639
|
m.addGetterSetter(Re, "image");
|
|
5640
5640
|
m.addComponentsGetterSetter(Re, "crop", ["x", "y", "width", "height"]);
|
|
5641
5641
|
m.addGetterSetter(Re, "cropX", 0, L());
|
|
@@ -5733,7 +5733,7 @@ ae(gt);
|
|
|
5733
5733
|
m.addGetterSetter(gt, "pointerDirection", hl);
|
|
5734
5734
|
m.addGetterSetter(gt, "pointerWidth", 0, L());
|
|
5735
5735
|
m.addGetterSetter(gt, "pointerHeight", 0, L());
|
|
5736
|
-
m.addGetterSetter(gt, "cornerRadius", 0,
|
|
5736
|
+
m.addGetterSetter(gt, "cornerRadius", 0, ji(4));
|
|
5737
5737
|
class di extends _ {
|
|
5738
5738
|
_sceneFunc(e) {
|
|
5739
5739
|
const t = this.cornerRadius(), i = this.width(), r = this.height();
|
|
@@ -5742,7 +5742,7 @@ class di extends _ {
|
|
|
5742
5742
|
}
|
|
5743
5743
|
di.prototype.className = "Rect";
|
|
5744
5744
|
ae(di);
|
|
5745
|
-
m.addGetterSetter(di, "cornerRadius", 0,
|
|
5745
|
+
m.addGetterSetter(di, "cornerRadius", 0, ji(4));
|
|
5746
5746
|
class Qe extends _ {
|
|
5747
5747
|
_sceneFunc(e) {
|
|
5748
5748
|
const t = this._getPoints(), i = this.radius(), r = this.sides(), n = this.cornerRadius();
|
|
@@ -5795,7 +5795,7 @@ Qe.prototype._attrsAffectingSize = ["radius"];
|
|
|
5795
5795
|
ae(Qe);
|
|
5796
5796
|
m.addGetterSetter(Qe, "radius", 0, L());
|
|
5797
5797
|
m.addGetterSetter(Qe, "sides", 0, L());
|
|
5798
|
-
m.addGetterSetter(Qe, "cornerRadius", 0,
|
|
5798
|
+
m.addGetterSetter(Qe, "cornerRadius", 0, ji(4));
|
|
5799
5799
|
const _n = Math.PI * 2;
|
|
5800
5800
|
class ft extends _ {
|
|
5801
5801
|
_sceneFunc(e) {
|
|
@@ -5996,8 +5996,8 @@ class re extends _ {
|
|
|
5996
5996
|
e.moveTo(O, J);
|
|
5997
5997
|
const N = u === Rt && !Y ? g - a * 2 : B;
|
|
5998
5998
|
e.lineTo(O + Math.round(N), J), e.lineWidth = o / 15;
|
|
5999
|
-
const
|
|
6000
|
-
e.strokeStyle =
|
|
5999
|
+
const j = this._getLinearGradient();
|
|
6000
|
+
e.strokeStyle = j || S, e.stroke(), e.restore();
|
|
6001
6001
|
}
|
|
6002
6002
|
const V = I;
|
|
6003
6003
|
if (h !== En && (f !== 0 || u === Rt || y)) {
|
|
@@ -6164,8 +6164,8 @@ re.prototype._attrsAffectingSize = [
|
|
|
6164
6164
|
"letterSpacing"
|
|
6165
6165
|
];
|
|
6166
6166
|
ae(re);
|
|
6167
|
-
m.overWriteSetter(re, "width",
|
|
6168
|
-
m.overWriteSetter(re, "height",
|
|
6167
|
+
m.overWriteSetter(re, "width", jr());
|
|
6168
|
+
m.overWriteSetter(re, "height", jr());
|
|
6169
6169
|
m.addGetterSetter(re, "direction", ta);
|
|
6170
6170
|
m.addGetterSetter(re, "fontFamily", "Arial");
|
|
6171
6171
|
m.addGetterSetter(re, "fontSize", 12, L());
|
|
@@ -7001,7 +7001,7 @@ m.backCompat(X, {
|
|
|
7001
7001
|
rotateHandlerOffset: "rotateAnchorOffset",
|
|
7002
7002
|
enabledHandlers: "enabledAnchors"
|
|
7003
7003
|
});
|
|
7004
|
-
class
|
|
7004
|
+
class He extends _ {
|
|
7005
7005
|
_sceneFunc(e) {
|
|
7006
7006
|
e.beginPath(), e.arc(0, 0, this.radius(), 0, D.getAngle(this.angle()), this.clockwise()), e.lineTo(0, 0), e.closePath(), e.fillStrokeShape(this);
|
|
7007
7007
|
}
|
|
@@ -7018,14 +7018,14 @@ class Ne extends _ {
|
|
|
7018
7018
|
this.radius(e / 2);
|
|
7019
7019
|
}
|
|
7020
7020
|
}
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
ae(
|
|
7025
|
-
m.addGetterSetter(
|
|
7026
|
-
m.addGetterSetter(
|
|
7027
|
-
m.addGetterSetter(
|
|
7028
|
-
m.backCompat(
|
|
7021
|
+
He.prototype.className = "Wedge";
|
|
7022
|
+
He.prototype._centroid = !0;
|
|
7023
|
+
He.prototype._attrsAffectingSize = ["radius"];
|
|
7024
|
+
ae(He);
|
|
7025
|
+
m.addGetterSetter(He, "radius", 0, L());
|
|
7026
|
+
m.addGetterSetter(He, "angle", 0, L());
|
|
7027
|
+
m.addGetterSetter(He, "clockwise", !1);
|
|
7028
|
+
m.backCompat(He, {
|
|
7029
7029
|
angleDeg: "angle",
|
|
7030
7030
|
getAngleDeg: "getAngle",
|
|
7031
7031
|
setAngleDeg: "setAngle"
|
|
@@ -7550,7 +7550,7 @@ function Nl(s, e) {
|
|
|
7550
7550
|
const t = s.data, i = s.width, r = s.height;
|
|
7551
7551
|
let n, a, o, l, c, h, d, u, g, f, y, S, v, b, C, w, x, P, M, I;
|
|
7552
7552
|
const E = e + e + 1, k = i - 1, z = r - 1, B = e + 1, Y = B * (B + 1) / 2, V = new Dn(), G = Gl[e], O = Hl[e];
|
|
7553
|
-
let J = null, N = V,
|
|
7553
|
+
let J = null, N = V, j = null, ne = null;
|
|
7554
7554
|
for (let W = 1; W < E; W++)
|
|
7555
7555
|
N = N.next = new Dn(), W === B && (J = N);
|
|
7556
7556
|
N.next = V, o = a = 0;
|
|
@@ -7560,9 +7560,9 @@ function Nl(s, e) {
|
|
|
7560
7560
|
N.r = w, N.g = x, N.b = P, N.a = M, N = N.next;
|
|
7561
7561
|
for (let le = 1; le < B; le++)
|
|
7562
7562
|
n = a + ((k < le ? k : le) << 2), l += (N.r = w = t[n]) * (I = B - le), c += (N.g = x = t[n + 1]) * I, h += (N.b = P = t[n + 2]) * I, d += (N.a = M = t[n + 3]) * I, S += w, v += x, b += P, C += M, N = N.next;
|
|
7563
|
-
|
|
7563
|
+
j = V, ne = J;
|
|
7564
7564
|
for (let le = 0; le < i; le++)
|
|
7565
|
-
t[a + 3] = M = d * G >> O, M !== 0 ? (M = 255 / M, t[a] = (l * G >> O) * M, t[a + 1] = (c * G >> O) * M, t[a + 2] = (h * G >> O) * M) : t[a] = t[a + 1] = t[a + 2] = 0, l -= u, c -= g, h -= f, d -= y, u -=
|
|
7565
|
+
t[a + 3] = M = d * G >> O, M !== 0 ? (M = 255 / M, t[a] = (l * G >> O) * M, t[a + 1] = (c * G >> O) * M, t[a + 2] = (h * G >> O) * M) : t[a] = t[a + 1] = t[a + 2] = 0, l -= u, c -= g, h -= f, d -= y, u -= j.r, g -= j.g, f -= j.b, y -= j.a, n = o + ((n = le + e + 1) < k ? n : k) << 2, S += j.r = t[n], v += j.g = t[n + 1], b += j.b = t[n + 2], C += j.a = t[n + 3], l += S, c += v, h += b, d += C, j = j.next, u += w = ne.r, g += x = ne.g, f += P = ne.b, y += M = ne.a, S -= w, v -= x, b -= P, C -= M, ne = ne.next, a += 4;
|
|
7566
7566
|
o += i;
|
|
7567
7567
|
}
|
|
7568
7568
|
for (let W = 0; W < i; W++) {
|
|
@@ -7572,9 +7572,9 @@ function Nl(s, e) {
|
|
|
7572
7572
|
let le = i;
|
|
7573
7573
|
for (let ge = 1; ge <= e; ge++)
|
|
7574
7574
|
a = le + W << 2, l += (N.r = w = t[a]) * (I = B - ge), c += (N.g = x = t[a + 1]) * I, h += (N.b = P = t[a + 2]) * I, d += (N.a = M = t[a + 3]) * I, S += w, v += x, b += P, C += M, N = N.next, ge < z && (le += i);
|
|
7575
|
-
a = W,
|
|
7575
|
+
a = W, j = V, ne = J;
|
|
7576
7576
|
for (let ge = 0; ge < r; ge++)
|
|
7577
|
-
n = a << 2, t[n + 3] = M = d * G >> O, M > 0 ? (M = 255 / M, t[n] = (l * G >> O) * M, t[n + 1] = (c * G >> O) * M, t[n + 2] = (h * G >> O) * M) : t[n] = t[n + 1] = t[n + 2] = 0, l -= u, c -= g, h -= f, d -= y, u -=
|
|
7577
|
+
n = a << 2, t[n + 3] = M = d * G >> O, M > 0 ? (M = 255 / M, t[n] = (l * G >> O) * M, t[n + 1] = (c * G >> O) * M, t[n + 2] = (h * G >> O) * M) : t[n] = t[n + 1] = t[n + 2] = 0, l -= u, c -= g, h -= f, d -= y, u -= j.r, g -= j.g, f -= j.b, y -= j.a, n = W + ((n = ge + B) < z ? n : z) * i << 2, l += S += j.r = t[n], c += v += j.g = t[n + 1], h += b += j.b = t[n + 2], d += C += j.a = t[n + 3], j = j.next, u += w = ne.r, g += x = ne.g, f += P = ne.b, y += M = ne.a, S -= w, v -= x, b -= P, C -= M, ne = ne.next, a += i;
|
|
7578
7578
|
}
|
|
7579
7579
|
}
|
|
7580
7580
|
const $l = function(e) {
|
|
@@ -7619,7 +7619,7 @@ const Wl = function(s) {
|
|
|
7619
7619
|
const O = V * d + G;
|
|
7620
7620
|
let J = 0, N = 0;
|
|
7621
7621
|
J += E[O + B[0]] * k[0], N += E[O + B[0]] * z[0], J += E[O + B[1]] * k[1], N += E[O + B[1]] * z[1], J += E[O + B[2]] * k[2], N += E[O + B[2]] * z[2], J += E[O + B[3]] * k[3], N += E[O + B[3]] * z[3], J += E[O + B[5]] * k[5], N += E[O + B[5]] * z[5], J += E[O + B[6]] * k[6], N += E[O + B[6]] * z[6], J += E[O + B[7]] * k[7], N += E[O + B[7]] * z[7], J += E[O + B[8]] * k[8], N += E[O + B[8]] * z[8];
|
|
7622
|
-
const
|
|
7622
|
+
const j = x * J + P * N, ne = Y(C + j * M), W = O * 4;
|
|
7623
7623
|
if (v) {
|
|
7624
7624
|
const le = ne - C;
|
|
7625
7625
|
h[W] = Y(I[W] + le), h[W + 1] = Y(I[W + 1] + le), h[W + 2] = Y(I[W + 2] + le), h[W + 3] = I[W + 3];
|
|
@@ -7683,12 +7683,12 @@ const Xl = function(s) {
|
|
|
7683
7683
|
m.addGetterSetter(R, "hue", 0, L(), m.afterSetFilter);
|
|
7684
7684
|
m.addGetterSetter(R, "saturation", 0, L(), m.afterSetFilter);
|
|
7685
7685
|
m.addGetterSetter(R, "luminance", 0, L(), m.afterSetFilter);
|
|
7686
|
-
const
|
|
7686
|
+
const ql = function(s) {
|
|
7687
7687
|
const e = s.data, t = e.length, i = 1, r = Math.pow(2, this.saturation()), n = Math.abs(this.hue() + 360) % 360, a = this.luminance() * 127, o = i * r * Math.cos(n * Math.PI / 180), l = i * r * Math.sin(n * Math.PI / 180), c = 0.299 * i + 0.701 * o + 0.167 * l, h = 0.587 * i - 0.587 * o + 0.33 * l, d = 0.114 * i - 0.114 * o - 0.497 * l, u = 0.299 * i - 0.299 * o - 0.328 * l, g = 0.587 * i + 0.413 * o + 0.035 * l, f = 0.114 * i - 0.114 * o + 0.293 * l, y = 0.299 * i - 0.3 * o + 1.25 * l, S = 0.587 * i - 0.586 * o - 1.05 * l, v = 0.114 * i + 0.886 * o - 0.2 * l;
|
|
7688
7688
|
let b, C, w, x;
|
|
7689
7689
|
for (let P = 0; P < t; P += 4)
|
|
7690
7690
|
b = e[P + 0], C = e[P + 1], w = e[P + 2], x = e[P + 3], e[P + 0] = c * b + h * C + d * w + a, e[P + 1] = u * b + g * C + f * w + a, e[P + 2] = y * b + S * C + v * w + a, e[P + 3] = x;
|
|
7691
|
-
},
|
|
7691
|
+
}, jl = function(s) {
|
|
7692
7692
|
const e = s.data, t = e.length, i = Math.pow(2, this.value()), r = Math.pow(2, this.saturation()), n = Math.abs(this.hue() + 360) % 360, a = i * r * Math.cos(n * Math.PI / 180), o = i * r * Math.sin(n * Math.PI / 180), l = 0.299 * i + 0.701 * a + 0.167 * o, c = 0.587 * i - 0.587 * a + 0.33 * o, h = 0.114 * i - 0.114 * a - 0.497 * o, d = 0.299 * i - 0.299 * a - 0.328 * o, u = 0.587 * i + 0.413 * a + 0.035 * o, g = 0.114 * i - 0.114 * a + 0.293 * o, f = 0.299 * i - 0.3 * a + 1.25 * o, y = 0.587 * i - 0.586 * a - 1.05 * o, S = 0.114 * i + 0.886 * a - 0.2 * o;
|
|
7693
7693
|
for (let v = 0; v < t; v += 4) {
|
|
7694
7694
|
const b = e[v + 0], C = e[v + 1], w = e[v + 2], x = e[v + 3];
|
|
@@ -7960,15 +7960,15 @@ const uc = function(s) {
|
|
|
7960
7960
|
t[r] = t[r] < e ? 0 : 255;
|
|
7961
7961
|
};
|
|
7962
7962
|
m.addGetterSetter(R, "threshold", 0.5, L(), m.afterSetFilter);
|
|
7963
|
-
const
|
|
7964
|
-
Arc:
|
|
7963
|
+
const q = Tn.Util._assign(Tn, {
|
|
7964
|
+
Arc: Fe,
|
|
7965
7965
|
Arrow: pt,
|
|
7966
7966
|
Circle: Pt,
|
|
7967
7967
|
Ellipse: Je,
|
|
7968
7968
|
Image: Re,
|
|
7969
7969
|
Label: Jr,
|
|
7970
7970
|
Tag: gt,
|
|
7971
|
-
Line:
|
|
7971
|
+
Line: Ge,
|
|
7972
7972
|
Path: ie,
|
|
7973
7973
|
Rect: di,
|
|
7974
7974
|
RegularPolygon: Qe,
|
|
@@ -7978,7 +7978,7 @@ const j = Tn.Util._assign(Tn, {
|
|
|
7978
7978
|
Text: re,
|
|
7979
7979
|
TextPath: de,
|
|
7980
7980
|
Transformer: X,
|
|
7981
|
-
Wedge:
|
|
7981
|
+
Wedge: He,
|
|
7982
7982
|
Filters: {
|
|
7983
7983
|
Blur: $l,
|
|
7984
7984
|
Brightness: Vl,
|
|
@@ -7987,8 +7987,8 @@ const j = Tn.Util._assign(Tn, {
|
|
|
7987
7987
|
Emboss: Wl,
|
|
7988
7988
|
Enhance: Yl,
|
|
7989
7989
|
Grayscale: Xl,
|
|
7990
|
-
HSL:
|
|
7991
|
-
HSV:
|
|
7990
|
+
HSL: ql,
|
|
7991
|
+
HSV: jl,
|
|
7992
7992
|
Invert: Kl,
|
|
7993
7993
|
Kaleidoscope: Ql,
|
|
7994
7994
|
Mask: ac,
|
|
@@ -8001,7 +8001,7 @@ const j = Tn.Util._assign(Tn, {
|
|
|
8001
8001
|
Solarize: pc,
|
|
8002
8002
|
Threshold: gc
|
|
8003
8003
|
}
|
|
8004
|
-
}), ha = "media-editor-track.diagnostics.v1", Or = "media-editor-track.diagnostics.failure-window.v1", da = "media-editor-track-diagnostics",
|
|
8004
|
+
}), ha = "media-editor-track.diagnostics.v1", Or = "media-editor-track.diagnostics.failure-window.v1", da = "media-editor-track-diagnostics", je = "snapshots", ua = "state", pa = "latest-failure-window", ni = 1, Qr = 1, Mn = 40, fc = 48, mc = 250, On = 20, yc = 100, Sc = 500, Br = /* @__PURE__ */ new Set([
|
|
8005
8005
|
"pending-preview.begin",
|
|
8006
8006
|
"preview.sync.requested",
|
|
8007
8007
|
"media.seeking",
|
|
@@ -8019,14 +8019,13 @@ const j = Tn.Util._assign(Tn, {
|
|
|
8019
8019
|
info: 20,
|
|
8020
8020
|
warn: 30,
|
|
8021
8021
|
error: 40
|
|
8022
|
-
},
|
|
8022
|
+
}, Ne = {
|
|
8023
8023
|
enabled: !0,
|
|
8024
8024
|
persist: !0,
|
|
8025
8025
|
storageQuotaMb: 10,
|
|
8026
8026
|
maxSessions: 20,
|
|
8027
8027
|
maxHotEvents: 500,
|
|
8028
8028
|
includeFullSourceUrl: !0,
|
|
8029
|
-
enablePanel: !1,
|
|
8030
8029
|
consoleSeverityThreshold: "warn",
|
|
8031
8030
|
highFrequencyEventThrottleMs: Sc
|
|
8032
8031
|
};
|
|
@@ -8131,7 +8130,7 @@ function wc(s) {
|
|
|
8131
8130
|
cause: Tt(s, 1, /* @__PURE__ */ new WeakSet())
|
|
8132
8131
|
} : null;
|
|
8133
8132
|
}
|
|
8134
|
-
function
|
|
8133
|
+
function jt() {
|
|
8135
8134
|
return {
|
|
8136
8135
|
totalEvents: 0,
|
|
8137
8136
|
severityCounts: {
|
|
@@ -8153,7 +8152,7 @@ function qt() {
|
|
|
8153
8152
|
};
|
|
8154
8153
|
}
|
|
8155
8154
|
function kc(s) {
|
|
8156
|
-
const e = s ??
|
|
8155
|
+
const e = s ?? jt();
|
|
8157
8156
|
return {
|
|
8158
8157
|
totalEvents: e.totalEvents,
|
|
8159
8158
|
severityCounts: {
|
|
@@ -8175,7 +8174,7 @@ function kc(s) {
|
|
|
8175
8174
|
};
|
|
8176
8175
|
}
|
|
8177
8176
|
function fa(s) {
|
|
8178
|
-
const e =
|
|
8177
|
+
const e = jt();
|
|
8179
8178
|
return s.forEach((t) => {
|
|
8180
8179
|
e.totalEvents += 1, e.severityCounts[t.severity] += 1, e.categoryCounts[t.category] += 1, t.severity === "error" && (e.failureCount += 1, e.lastFailureEvent = {
|
|
8181
8180
|
eventId: t.eventId,
|
|
@@ -8225,17 +8224,16 @@ function Pc(s, e) {
|
|
|
8225
8224
|
}
|
|
8226
8225
|
function _c(s) {
|
|
8227
8226
|
return {
|
|
8228
|
-
enabled: (s == null ? void 0 : s.enabled) ??
|
|
8229
|
-
persist: (s == null ? void 0 : s.persist) ??
|
|
8230
|
-
storageQuotaMb: (s == null ? void 0 : s.storageQuotaMb) ??
|
|
8231
|
-
maxSessions: Math.max(1, (s == null ? void 0 : s.maxSessions) ??
|
|
8232
|
-
maxHotEvents: Math.max(20, (s == null ? void 0 : s.maxHotEvents) ??
|
|
8233
|
-
includeFullSourceUrl: (s == null ? void 0 : s.includeFullSourceUrl) ??
|
|
8234
|
-
|
|
8235
|
-
consoleSeverityThreshold: (s == null ? void 0 : s.consoleSeverityThreshold) ?? Me.consoleSeverityThreshold,
|
|
8227
|
+
enabled: (s == null ? void 0 : s.enabled) ?? Ne.enabled,
|
|
8228
|
+
persist: (s == null ? void 0 : s.persist) ?? Ne.persist,
|
|
8229
|
+
storageQuotaMb: (s == null ? void 0 : s.storageQuotaMb) ?? Ne.storageQuotaMb,
|
|
8230
|
+
maxSessions: Math.max(1, (s == null ? void 0 : s.maxSessions) ?? Ne.maxSessions),
|
|
8231
|
+
maxHotEvents: Math.max(20, (s == null ? void 0 : s.maxHotEvents) ?? Ne.maxHotEvents),
|
|
8232
|
+
includeFullSourceUrl: (s == null ? void 0 : s.includeFullSourceUrl) ?? Ne.includeFullSourceUrl,
|
|
8233
|
+
consoleSeverityThreshold: (s == null ? void 0 : s.consoleSeverityThreshold) ?? Ne.consoleSeverityThreshold,
|
|
8236
8234
|
highFrequencyEventThrottleMs: Math.max(
|
|
8237
8235
|
0,
|
|
8238
|
-
(s == null ? void 0 : s.highFrequencyEventThrottleMs) ??
|
|
8236
|
+
(s == null ? void 0 : s.highFrequencyEventThrottleMs) ?? Ne.highFrequencyEventThrottleMs
|
|
8239
8237
|
)
|
|
8240
8238
|
};
|
|
8241
8239
|
}
|
|
@@ -8274,18 +8272,21 @@ function ma(s) {
|
|
|
8274
8272
|
summary: fa(e)
|
|
8275
8273
|
};
|
|
8276
8274
|
}
|
|
8277
|
-
function Mt(s, e) {
|
|
8278
|
-
const
|
|
8279
|
-
const
|
|
8275
|
+
function Mt(s, e, t = {}) {
|
|
8276
|
+
const i = s.slice(-e.maxSessions).map((n) => {
|
|
8277
|
+
const a = n.events.slice(-e.maxHotEvents);
|
|
8280
8278
|
return ma({
|
|
8281
|
-
...
|
|
8282
|
-
events:
|
|
8283
|
-
updatedAt:
|
|
8279
|
+
...n,
|
|
8280
|
+
events: a,
|
|
8281
|
+
updatedAt: n.updatedAt || n.startedAt
|
|
8284
8282
|
});
|
|
8285
|
-
})
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
|
|
8283
|
+
});
|
|
8284
|
+
if (!t.enforceStorageQuota)
|
|
8285
|
+
return i;
|
|
8286
|
+
const r = Math.max(2e5, Math.floor(e.storageQuotaMb * 1024 * 1024));
|
|
8287
|
+
for (; i.length > 0 && JSON.stringify({ version: ni, sessions: i }).length > r; )
|
|
8288
|
+
i.shift();
|
|
8289
|
+
return i;
|
|
8289
8290
|
}
|
|
8290
8291
|
async function Ec(s) {
|
|
8291
8292
|
return ya(ua, s);
|
|
@@ -8301,12 +8302,12 @@ async function ya(s, e) {
|
|
|
8301
8302
|
const n = indexedDB.open(da, 1);
|
|
8302
8303
|
n.onupgradeneeded = () => {
|
|
8303
8304
|
const a = n.result;
|
|
8304
|
-
a.objectStoreNames.contains(
|
|
8305
|
+
a.objectStoreNames.contains(je) || a.createObjectStore(je);
|
|
8305
8306
|
}, n.onsuccess = () => i(n.result), n.onerror = () => r(n.error);
|
|
8306
8307
|
});
|
|
8307
8308
|
return await new Promise((i, r) => {
|
|
8308
|
-
const n = t.transaction(
|
|
8309
|
-
n.objectStore(
|
|
8309
|
+
const n = t.transaction(je, "readwrite");
|
|
8310
|
+
n.objectStore(je).put(e, s), n.oncomplete = () => i(), n.onerror = () => r(n.error), n.onabort = () => r(n.error);
|
|
8310
8311
|
}), t.close(), !0;
|
|
8311
8312
|
} catch {
|
|
8312
8313
|
return !1;
|
|
@@ -8328,10 +8329,10 @@ async function Sa(s) {
|
|
|
8328
8329
|
const n = indexedDB.open(da, 1);
|
|
8329
8330
|
n.onupgradeneeded = () => {
|
|
8330
8331
|
const a = n.result;
|
|
8331
|
-
a.objectStoreNames.contains(
|
|
8332
|
+
a.objectStoreNames.contains(je) || a.createObjectStore(je);
|
|
8332
8333
|
}, n.onsuccess = () => i(n.result), n.onerror = () => r(n.error);
|
|
8333
8334
|
}), t = await new Promise((i, r) => {
|
|
8334
|
-
const o = e.transaction(
|
|
8335
|
+
const o = e.transaction(je, "readonly").objectStore(je).get(s);
|
|
8335
8336
|
o.onsuccess = () => i(o.result ?? null), o.onerror = () => r(o.error);
|
|
8336
8337
|
});
|
|
8337
8338
|
return e.close(), t;
|
|
@@ -8361,7 +8362,9 @@ class Oc {
|
|
|
8361
8362
|
const t = Ic();
|
|
8362
8363
|
this.latestFailureWindow = Ac(), this.state = {
|
|
8363
8364
|
version: ni,
|
|
8364
|
-
sessions: Mt((t == null ? void 0 : t.sessions) ?? [], this.config
|
|
8365
|
+
sessions: Mt((t == null ? void 0 : t.sessions) ?? [], this.config, {
|
|
8366
|
+
enforceStorageQuota: this.config.persist
|
|
8367
|
+
})
|
|
8365
8368
|
}, this.restoreIndexedDbState();
|
|
8366
8369
|
}
|
|
8367
8370
|
startSession(e) {
|
|
@@ -8374,7 +8377,7 @@ class Oc {
|
|
|
8374
8377
|
}),
|
|
8375
8378
|
sequence: 0,
|
|
8376
8379
|
events: [],
|
|
8377
|
-
summary:
|
|
8380
|
+
summary: jt()
|
|
8378
8381
|
};
|
|
8379
8382
|
return this.currentSessionId = i.sessionId, this.state.sessions = Mt([...this.state.sessions, i], this.config), this.emit({
|
|
8380
8383
|
severity: "info",
|
|
@@ -8481,7 +8484,7 @@ class Oc {
|
|
|
8481
8484
|
metadata: null,
|
|
8482
8485
|
sequence: 0,
|
|
8483
8486
|
events: [],
|
|
8484
|
-
summary:
|
|
8487
|
+
summary: jt()
|
|
8485
8488
|
};
|
|
8486
8489
|
}
|
|
8487
8490
|
createEvent(e, t, i, r, n = Fn("diag-event")) {
|
|
@@ -8572,7 +8575,7 @@ class Oc {
|
|
|
8572
8575
|
metadata: null,
|
|
8573
8576
|
sequence: e.sequence,
|
|
8574
8577
|
events: [],
|
|
8575
|
-
summary:
|
|
8578
|
+
summary: jt()
|
|
8576
8579
|
},
|
|
8577
8580
|
t,
|
|
8578
8581
|
i,
|
|
@@ -8634,7 +8637,9 @@ class Oc {
|
|
|
8634
8637
|
return;
|
|
8635
8638
|
const e = {
|
|
8636
8639
|
version: ni,
|
|
8637
|
-
sessions: Mt(this.state.sessions, this.config
|
|
8640
|
+
sessions: Mt(this.state.sessions, this.config, {
|
|
8641
|
+
enforceStorageQuota: !0
|
|
8642
|
+
})
|
|
8638
8643
|
};
|
|
8639
8644
|
if (this.state = e, typeof indexedDB > "u") {
|
|
8640
8645
|
this.persistToLocalStorage(e);
|
|
@@ -8670,7 +8675,13 @@ class Oc {
|
|
|
8670
8675
|
[...this.state.sessions, ...e.sessions].forEach((a) => {
|
|
8671
8676
|
const o = ma(a), l = n.get(o.sessionId);
|
|
8672
8677
|
(!l || l.updatedAt < o.updatedAt) && n.set(o.sessionId, o);
|
|
8673
|
-
}), this.state.sessions = Mt(
|
|
8678
|
+
}), this.state.sessions = Mt(
|
|
8679
|
+
Array.from(n.values()).sort((a, o) => a.startedAt - o.startedAt),
|
|
8680
|
+
this.config,
|
|
8681
|
+
{
|
|
8682
|
+
enforceStorageQuota: !0
|
|
8683
|
+
}
|
|
8684
|
+
);
|
|
8674
8685
|
}
|
|
8675
8686
|
t && (!this.latestFailureWindow || t.updatedAt >= this.latestFailureWindow.updatedAt) && (this.latestFailureWindow = t), ((r = e == null ? void 0 : e.sessions) != null && r.length || t) && this.notifyNow();
|
|
8676
8687
|
}
|
|
@@ -8727,63 +8738,6 @@ class Oc {
|
|
|
8727
8738
|
function Bc(s, e) {
|
|
8728
8739
|
return Mc(s, e);
|
|
8729
8740
|
}
|
|
8730
|
-
function Fc(s) {
|
|
8731
|
-
const e = [
|
|
8732
|
-
`${s.sequence}.`,
|
|
8733
|
-
`[${s.severity}]`,
|
|
8734
|
-
s.eventName
|
|
8735
|
-
];
|
|
8736
|
-
return s.clipId && e.push(`clip=${s.clipId}`), s.trackId && e.push(`track=${s.trackId}`), s.message && e.push(`msg=${s.message}`), e.join(" ");
|
|
8737
|
-
}
|
|
8738
|
-
class Gc {
|
|
8739
|
-
constructor(e) {
|
|
8740
|
-
p(this, "container", null);
|
|
8741
|
-
p(this, "summaryElement", null);
|
|
8742
|
-
p(this, "failureElement", null);
|
|
8743
|
-
p(this, "eventListElement", null);
|
|
8744
|
-
p(this, "unsubscribe", null);
|
|
8745
|
-
this.diagnostics = e;
|
|
8746
|
-
}
|
|
8747
|
-
mount(e) {
|
|
8748
|
-
if (this.container)
|
|
8749
|
-
return;
|
|
8750
|
-
const t = document.createElement("div");
|
|
8751
|
-
t.className = "timeline-diagnostics-panel", t.style.position = "absolute", t.style.right = "16px", t.style.bottom = "16px", t.style.zIndex = "5000", t.style.width = "320px", t.style.maxHeight = "280px", t.style.padding = "12px", t.style.borderRadius = "10px", t.style.border = "1px solid rgba(255,255,255,0.12)", t.style.background = "rgba(10, 12, 20, 0.9)", t.style.color = "#F2F4F7", t.style.fontSize = "12px", t.style.lineHeight = "1.5", t.style.backdropFilter = "blur(8px)", t.style.boxShadow = "0 12px 36px rgba(0, 0, 0, 0.28)";
|
|
8752
|
-
const i = document.createElement("div");
|
|
8753
|
-
i.textContent = "Diagnostics", i.style.fontWeight = "700", i.style.marginBottom = "8px";
|
|
8754
|
-
const r = document.createElement("div");
|
|
8755
|
-
r.style.opacity = "0.9", r.style.marginBottom = "8px";
|
|
8756
|
-
const n = document.createElement("div");
|
|
8757
|
-
n.style.marginBottom = "8px", n.style.color = "#FFD6D6";
|
|
8758
|
-
const a = document.createElement("div");
|
|
8759
|
-
a.style.display = "flex", a.style.gap = "8px", a.style.marginBottom = "8px";
|
|
8760
|
-
const o = document.createElement("button");
|
|
8761
|
-
o.textContent = "导出诊断包", o.style.flex = "1", o.style.padding = "6px 10px", o.style.borderRadius = "8px", o.style.border = "0", o.style.cursor = "pointer", o.style.background = "#F4B740", o.style.color = "#1A1A1A", o.addEventListener("click", () => {
|
|
8762
|
-
const h = this.diagnostics.exportPackage(), d = new Blob([JSON.stringify(h, null, 2)], { type: "application/json" }), u = URL.createObjectURL(d), g = document.createElement("a");
|
|
8763
|
-
g.href = u, g.download = `timeline-diagnostics-${h.session.sessionId}.json`, g.click(), URL.revokeObjectURL(u);
|
|
8764
|
-
});
|
|
8765
|
-
const l = document.createElement("button");
|
|
8766
|
-
l.textContent = "清空", l.style.padding = "6px 10px", l.style.borderRadius = "8px", l.style.border = "1px solid rgba(255,255,255,0.18)", l.style.cursor = "pointer", l.style.background = "transparent", l.style.color = "#F2F4F7", l.addEventListener("click", () => {
|
|
8767
|
-
this.diagnostics.clear(!0), this.diagnostics.startSession();
|
|
8768
|
-
}), a.appendChild(o), a.appendChild(l);
|
|
8769
|
-
const c = document.createElement("pre");
|
|
8770
|
-
c.style.margin = "0", c.style.padding = "8px", c.style.borderRadius = "8px", c.style.background = "rgba(255,255,255,0.06)", c.style.overflow = "auto", c.style.maxHeight = "140px", c.style.whiteSpace = "pre-wrap", c.style.wordBreak = "break-word", t.appendChild(i), t.appendChild(r), t.appendChild(n), t.appendChild(a), t.appendChild(c), e.appendChild(t), this.container = t, this.summaryElement = r, this.failureElement = n, this.eventListElement = c, this.unsubscribe = this.diagnostics.subscribeLive((h) => {
|
|
8771
|
-
this.render(h);
|
|
8772
|
-
}, 8);
|
|
8773
|
-
}
|
|
8774
|
-
destroy() {
|
|
8775
|
-
var e, t;
|
|
8776
|
-
(e = this.unsubscribe) == null || e.call(this), this.unsubscribe = null, (t = this.container) == null || t.remove(), this.container = null, this.summaryElement = null, this.failureElement = null, this.eventListElement = null;
|
|
8777
|
-
}
|
|
8778
|
-
render(e) {
|
|
8779
|
-
if (!this.summaryElement || !this.failureElement || !this.eventListElement)
|
|
8780
|
-
return;
|
|
8781
|
-
this.summaryElement.textContent = `session=${e.sessionId} events=${e.summary.totalEvents} errors=${e.summary.failureCount}`;
|
|
8782
|
-
const t = e.summary.lastFailureEvent;
|
|
8783
|
-
this.failureElement.textContent = t ? `最近失败: ${t.eventName}${t.clipId ? ` / ${t.clipId}` : ""}` : "最近失败: 无", this.eventListElement.textContent = e.recentEvents.map((i) => Fc(i)).join(`
|
|
8784
|
-
`);
|
|
8785
|
-
}
|
|
8786
|
-
}
|
|
8787
8741
|
function Nn(s, e, t, i) {
|
|
8788
8742
|
const r = `[${s.toUpperCase()}] [${e}]`;
|
|
8789
8743
|
if (i === void 0) {
|
|
@@ -8895,7 +8849,7 @@ class Ie {
|
|
|
8895
8849
|
static renderSegments(e, t, i, r) {
|
|
8896
8850
|
e.destroyChildren(), e.clip({ x: 0, y: 0, width: i, height: r });
|
|
8897
8851
|
for (const { coverUrl: n, singleImageWidth: a, segmentStartX: o, segmentWidth: l } of t) {
|
|
8898
|
-
const c = Math.max(a, 0.01), h = this.getCachedImage(n), d = new
|
|
8852
|
+
const c = Math.max(a, 0.01), h = this.getCachedImage(n), d = new q.Group({
|
|
8899
8853
|
x: o,
|
|
8900
8854
|
y: 0,
|
|
8901
8855
|
clip: {
|
|
@@ -8907,7 +8861,7 @@ class Ie {
|
|
|
8907
8861
|
name: "cover-segment"
|
|
8908
8862
|
});
|
|
8909
8863
|
h.src || (h.src = n);
|
|
8910
|
-
const u = new
|
|
8864
|
+
const u = new q.Image({
|
|
8911
8865
|
image: h,
|
|
8912
8866
|
cornerRadius: 2,
|
|
8913
8867
|
name: "cover-image",
|
|
@@ -9014,23 +8968,23 @@ class Ie {
|
|
|
9014
8968
|
}
|
|
9015
8969
|
}
|
|
9016
8970
|
p(Ie, "MIN_IMAGE_DISPLAY_WIDTH", 24), p(Ie, "COVER_RENDER_VERSION_KEY", "_coverRenderVersion"), p(Ie, "MAX_CACHE_SIZE", 1e3), p(Ie, "DEFAULT_DIMENSIONS", { width: 160, height: 90 }), p(Ie, "keyframeDimensionsCache", {}), p(Ie, "keyframeDimensionsPromiseCache", {}), p(Ie, "imageCache", {}), p(Ie, "brokenImageUrls", /* @__PURE__ */ new Set());
|
|
9017
|
-
const Hc = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14" height="14" viewBox="0 0 14 14"><path d="M1.8437804474494934,2.934130300488281C2.0975289474494936,2.6803818004882816,2.5560352474494934,2.5258255004882812,3.4537861474494935,2.5258255004882812L7.691924847449493,2.5258255004882812C8.589675247449494,2.5258255004882812,9.048181847449493,2.6803818004882816,9.301930747449493,2.934130300488281C9.555688247449494,3.1878788004882814,9.710234947449493,3.6463940004882813,9.710234947449493,4.544136000488281L9.710234947449493,5.154385800488281L9.710234947449493,5.156664400488282L9.710234947449493,8.837531600488282L9.710234947449493,8.839810400488282L9.710234947449493,9.455756700488282C9.710234947449493,10.352920500488281,9.554433147449494,10.811444300488281,9.299509347449494,11.065193200488281C9.045182547449494,11.319528600488281,8.586177147449494,11.474209800488282,7.691924847449493,11.474209800488282L3.4537861474494935,11.474209800488282C2.6371141474494935,11.474209800488282,2.1565246474494932,11.20751000048828,1.8706969474494934,10.86509900048828C1.5731912474494933,10.50867840048828,1.4354756474494934,10.006423900488281,1.4354756474494934,9.455756700488282L1.4354756474494934,4.544136000488281C1.4354756474494934,3.6463940004882813,1.5900319474494935,3.1878788004882814,1.8437804474494934,2.934130300488281ZM9.917876547449493,11.684700500488281C10.391550347449494,11.212192500488282,10.559057547449493,10.52217200048828,10.582387647449494,9.67692760048828L11.516774647449493,10.33260820048828L11.516774647449493,10.33260820048828C11.978190647449493,10.658107800488281,12.521887647449493,10.806299200488281,12.992055647449494,10.562466600488282C13.461642647449493,10.318055200488281,13.653574647449494,9.787735900488281,13.653574647449494,9.222480300488282L13.653574647449494,4.777554700488281C13.653574647449494,4.212299300488281,13.461625647449493,3.6825676004882815,12.992624647449494,3.437568500488281C12.523623647449494,3.1925697004882814,11.980024647449493,3.3384564004882815,11.519194647449494,3.6604486004882815L11.518056647449493,3.661018400488281L10.582387647449494,4.3178380004882815C10.558470047449493,3.475504500488281,10.392209347449493,2.7870953004882812,9.920297947449493,2.315762820488281C9.406961747449493,1.8024266504882813,8.637509647449493,1.6508255004882812,7.691924847449493,1.6508255004882812L3.4537861474494935,1.6508255004882812C2.5082015474494934,1.6508255004882812,1.7387490474494933,1.8024266504882813,1.2254129674494934,2.315762820488281C0.7120767974494934,2.8290989004882814,0.5604756474494934,3.598560200488281,0.5604756474494934,4.544136000488281L0.5604756474494934,9.455756700488282C0.5604756474494934,10.13592340048828,0.7290598274494934,10.86171720048828,1.1986388574494935,11.42521860048828C1.6798959474494934,12.003300500488281,2.4271137474494937,12.349209500488282,3.4537861474494935,12.349209500488282L7.691924847449493,12.349209500488282C8.635176947449493,12.349209500488282,9.403962447449494,12.197448500488282,9.917876547449493,11.684700500488281ZM12.020781647449493,9.61682840048828L10.585234647449493,8.609952000488281L10.585234647449493,5.384101600488281L12.019642647449494,4.377937300488281L12.020212647449494,4.3773675004882815C12.352129647449493,4.145782500488281,12.531874647449493,4.183709400488281,12.587880647449493,4.212877700488281C12.643876647449494,4.242046400488281,12.778574647449494,4.368635700488282,12.778574647449494,4.777554700488281L12.778574647449494,9.222480300488282C12.778574647449494,9.631399600488281,12.643866647449494,9.757436800488282,12.588449647449494,9.786018400488281C12.533620647449494,9.814020200488281,12.354416647449494,9.852481800488281,12.021921647449494,9.617398300488281L12.020781647449493,9.61682840048828ZM3.3313089474494935,3.9374466004882813C3.0898080474494933,3.9374466004882813,2.8938089474494935,4.133445700488281,2.8938089474494935,4.374946600488281C2.8938089474494935,4.616447400488282,3.0898080474494933,4.812446600488281,3.3313089474494935,4.812446600488281L4.815419447449494,4.812446600488281C5.056920347449493,4.812446600488281,5.252919447449494,4.616447400488282,5.252919447449494,4.374946600488281C5.252919447449494,4.133445700488281,5.056920347449493,3.9374466004882813,4.815419447449494,3.9374466004882813L3.3313089474494935,3.9374466004882813Z" fill="#868A9C" fill-opacity="1"/></svg>', Nc = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="16" height="16" viewBox="0 0 16 16"><path d="M11.206380472434997,2.733718973069763C9.993001372434998,1.991438673069763,8.552978872434998,1.6945722130697631,7.139648772434998,1.8937121730697632C5.7263186724349975,2.092858673069763,4.426350972434998,2.775678773069763,3.4596355724349976,3.825838973069763C2.4930013724349975,4.875998873069763,1.9263509724349976,6.228518873069763,1.8396810724349975,7.652945373069763C1.7596843224349974,9.077412973069762,2.1796875724349976,10.485612273069764,3.0196941724349977,11.637611373069763C3.8597005724349978,12.789678373069764,5.0796712724349975,13.614278373069762,6.459635572434998,13.970879373069764C7.839681072434997,14.327545373069762,9.299641972434998,14.194145373069762,10.593017972434998,13.593478373069763C11.892985472434997,12.992878373069763,12.933024472434997,11.962078373069764,13.552978472434997,10.676812573069764C14.173015472434997,9.391545673069762,14.326335472434998,7.9312790730697635,13.993001472434997,6.544878873069763C13.926350472434997,6.276532073069763,14.093017472434997,6.0061725730697635,14.359700472434998,5.941012273069763C14.626302472434997,5.875851973069763,14.899658472434998,6.040565873069763,14.966308472434998,6.308912673069763C15.353027472434997,7.920145873069763,15.173015472434997,9.617145873069763,14.453044472434998,11.110879373069762C13.732991472434998,12.604545373069763,12.519694472434997,13.802478373069762,11.019694472434997,14.500545373069762C9.513020872434998,15.198611373069763,7.812988672434997,15.353611373069763,6.2063802724349975,14.939145373069763C4.599690772434998,14.524678373069763,3.1930340724349975,13.566345373069764,2.2129720724349973,12.227478373069763C1.2329915724349976,10.888679373069763,0.7530111074349976,9.252079373069764,0.8463542074349976,7.5966790730697635C0.9396973124349975,5.941252573069764,1.5996907924349975,4.369405673069763,2.726318472434998,3.1489456730697634C3.8463543724349973,1.9284919730697632,5.359700572434997,1.134938593069763,6.999674672434997,0.9035053700697632C8.639648772434999,0.6720721230697632,10.312988672434997,1.0170720830697633,11.726318472434997,1.8797255730697633C11.966308472434998,2.023398773069763,12.039714472434998,2.3310454730697634,11.892985472434997,2.5668653730697635C11.753011472434997,2.8026921730697634,11.446370472434998,2.8773921730697634,11.206380472434997,2.733718973069763ZM11.686360472434998,5.413441573069763C11.879639472434997,5.608874673069764,11.879639472434997,5.925454473069763,11.686360472434998,6.1205485730697635L7.2396648724349975,10.559748073069763C7.046305572434997,10.754747773069763,6.7263186724349975,10.754615173069762,6.533040372434997,10.559481973069763L4.312988372434997,8.339814573069763C4.119710372434998,8.144614573069763,4.119710372434998,7.828014773069763,4.312988372434997,7.632747973069764C4.506347772434998,7.437481773069763,4.826334872434998,7.437481773069763,5.019694172434997,7.632747973069764L6.886311872434997,9.499081973069764L10.979655472434997,5.412814473069763C11.173015472434997,5.217727973069763,11.493001472434997,5.218008373069763,11.686360472434998,5.413441573069763Z" fill-rule="evenodd" fill="#24C744" fill-opacity="1"/></svg>', $c = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14" height="14" viewBox="0 0 14 14"><path d="M1.3164876075,5.2511568456573485C2.7112323875,3.0589928456573485,4.7552132875,1.7354023456573486,6.9998931875,1.7354023456573486C9.2445726875,1.7354023456573486,11.2885531875,3.0589928456573485,12.6832981875,5.2511568456573485C13.0012411875,5.7498953456573485,13.1452941875,6.3880765456573485,13.1452941875,6.9999821456573486C13.1452941875,7.611905345657348,13.0012411875,8.250068445657348,12.6832981875,8.74882484565735C11.2885531875,10.940988745657348,9.2445726875,12.264562345657348,6.9998931875,12.264562345657348C4.7552132875,12.264562345657348,2.7112323875,10.940988745657348,1.3164876075,8.74882484565735C0.9985453175,8.250068445657348,0.8544921875,7.611905345657348,0.8544921875,6.9999821456573486C0.8544921875,6.3880765456573485,0.9985453175,5.749325945657349,1.3164876075,5.2511568456573485ZM6.9998931875,2.6104023456573486C5.1262406875,2.6104023456573486,3.3318786875,3.713480445657349,2.0549823875,5.721323445657349L2.0543771875,5.721323445657349C1.8473052375,6.0456564456573485,1.7294921875,6.509396745657349,1.7294921875,6.9999821456573486C1.7294921875,7.490567445657349,1.8473052375,7.954324945657349,2.0543771875,8.278070645657348L2.0549823875,8.27865814565735C3.3318786875,10.286483045657349,5.1262406875,11.389561845657349,6.9998931875,11.389561845657349C8.8735446875,11.389561845657349,10.6679076875,10.286483045657349,11.9448031875,8.27865814565735L11.9454091875,8.278070645657348C12.1518751875,7.954324945657349,12.2702941875,7.490567445657349,12.2702941875,6.9999821456573486C12.2702941875,6.509396745657349,12.1518751875,6.0456564456573485,11.9454091875,5.721323445657349L11.9448031875,5.721323445657349C10.6679076875,3.713480445657349,8.8735446875,2.6104023456573486,6.9998931875,2.6104023456573486ZM4.4741208875,7.002937045657348C4.4741208875,5.606429845657349,5.6034745875,4.4771115456573485,6.9999641875,4.4771115456573485C8.3964533875,4.4771115456573485,9.5258073875,5.606429845657349,9.5258073875,7.002937045657348C9.5258073875,8.399444345657349,8.3964533875,9.528762545657349,6.9999641875,9.528762545657349C5.6034745875,9.528762545657349,4.4741208875,8.399444345657349,4.4741208875,7.002937045657348ZM6.9999641875,5.3521115456573485C6.0864762875,5.3521115456573485,5.3491210875,6.089431545657349,5.3491210875,7.002937045657348C5.3491210875,7.916442645657349,6.0864762875,8.653762545657349,6.9999641875,8.653762545657349C7.9134516875,8.653762545657349,8.650807387499999,7.916442645657349,8.650807387499999,7.002937045657348C8.650807387499999,6.089431545657349,7.9134516875,5.3521115456573485,6.9999641875,5.3521115456573485Z" fill-rule="evenodd" fill="#FFFFFF" fill-opacity="1"/></svg>', zc = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="18" height="18" viewBox="0 0 18 18"><path d="M3.5486246148989866,6.472501117640625C3.7632801848989867,6.361666362640625,4.026926634898987,6.445068359640625,4.138366634898987,6.659741711640625C4.944508744898987,8.214329931640625,6.797759844898987,9.340158931640625,8.999857544898987,9.340158931640625C11.201954944898986,9.340158931640625,13.055775244898987,8.214329931640625,13.861347544898987,6.659741711640625C13.972788544898988,6.445068359640625,14.237040544898987,6.361666362640625,14.451090544898987,6.472501117640625C14.665781544898987,6.583905531640625,14.749770544898986,6.847569761640625,14.638366544898988,7.062243101640625C14.367100544898987,7.584907531640625,14.003692544898987,8.060913131640625,13.566192544898987,8.475074731640625L14.459278544898988,9.368161431640626C14.630177544898986,9.539077731640624,14.630177544898986,9.816164531640625,14.459278544898988,9.987080831640625C14.288344544898987,10.157996931640625,14.011275544898988,10.157996931640625,13.840342544898986,9.987080831640625L12.883701944898986,9.030405531640625C12.378519644898986,9.383328631640625,11.808039344898987,9.667999231640625,11.192590844898987,9.869249831640625L11.502344744898986,11.025413531640625C11.564757944898988,11.258743331640625,11.426508544898986,11.499069231640625,11.193196444898987,11.561500531640625C10.959848544898986,11.623913731640625,10.720092444898988,11.485664331640624,10.657109344898988,11.251747131640624L10.345611244898986,10.087999831640625C9.911600744898987,10.171401731640625,9.460677744898987,10.215158931640625,8.999857544898987,10.215158931640625C8.548365244898987,10.215158931640625,8.107340444898988,10.173164131640625,7.681518244898987,10.093233631640626L7.371195444898987,11.251747131640624C7.308781744898987,11.485664331640624,7.069025444898987,11.623913731640625,6.835108144898987,11.561500531640625C6.6017607448989875,11.499069231640625,6.4635111448989875,11.258743331640625,6.525924544898986,11.025413531640625L6.833363644898987,9.877990731640626C6.192280844898987,9.670900831640624,5.600189044898986,9.374000531640625,5.078094344898987,9.003578231640624L4.095179204898987,9.987080831640625C3.924280764898987,10.157996931640625,3.6471760548989867,10.157996931640625,3.476277614898987,9.987080831640625C3.305343588298987,9.816164531640625,3.305343588298987,9.539077731640624,3.476277614898987,9.368161431640626L4.400873744898987,8.443583031640625C3.9779357348989866,8.036987331640624,3.6256001248989866,7.572072231640625,3.361348427898987,7.062243101640625C3.250513676898987,6.847569761640625,3.3339334728989867,6.583905531640625,3.5486246148989866,6.472501117640625Z" fill="#FFFFFF" fill-opacity="1"/></svg>', Vc = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M9.217651334374999,1.6159667934375C8.817657434375,1.7239685034375,8.579650834375,2.1349792434375,8.687652634374999,2.5349731234375C8.794677734375,2.9349670234375003,9.205657934375001,3.1719665234375,9.605651834375,3.0649719234374997C14.537658734375,1.7439575234375,19.612670734375,4.6739807234375,20.934661734375,9.6059570234375C22.255676734375,14.5379635234375,19.325652734375,19.6129765234375,14.393676734375,20.9349675234375C9.461669934375,22.2559815234375,4.3866577343749995,19.3259585234375,3.064666734375,14.3939815234375C2.3956604343750003,11.8969725234375,2.816650434375,9.3629761234375,4.036651634375,7.2969665234375C4.246673534375001,6.9399719234375,4.128662134375,6.4799804234375,3.771667434375,6.2699585234375C3.415649434375,6.0589599234375,2.955657934375,6.1779785234375,2.744659434375,6.5339660234375C1.3286743163749999,8.9329834234375,0.8386535643749999,11.8789675234375,1.615661624375,14.7819825234375C3.151672334375,20.5139775234375,9.049652134375,23.9199825234375,14.781677734375,22.3839725234375C20.513671734375,20.8479615234375,23.919677734375,14.9499815234375,22.383666734375,9.2179565234375C20.847656734375,3.4859619234375,14.949676734375,0.07995602343750008,9.217651334374999,1.6159667934375Z" fill="#C9CBD4" fill-opacity="1"/><path d="M16.7496337890625,12C16.7496337890625,14.6270103,14.6266440890625,16.75,11.9996337890625,16.75C9.3736238890625,16.75,7.2496337890625,14.6270103,7.2496337890625,12C7.2496337890625,9.3739901,9.3736238890625,7.25,11.9996337890625,7.25C14.6266440890625,7.25,16.7496337890625,9.3739901,16.7496337890625,12ZM11.9996337890625,15.25C13.7976336890625,15.25,15.2496337890625,13.7979999,15.2496337890625,12C15.2496337890625,10.2020001,13.7976336890625,8.75,11.9996337890625,8.75C10.2016338890625,8.75,8.7496337890625,10.2020001,8.7496337890625,12C8.7496337890625,13.7979999,10.2016338890625,15.25,11.9996337890625,15.25Z" fill="#C9CBD4" fill-opacity="1"/></svg>', Uc = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14" height="14" viewBox="0 0 14 14"><path d="M12.594244271484374,3.926410052418518C12.594244271484374,3.9339934524185183,12.594244271484374,3.941576852418518,12.594244271484374,3.949160252418518L12.594244271484374,10.004165252418519L12.594244271484374,10.009998952418519C12.591269271484375,11.254248752418517,11.581520271484376,12.261664752418518,10.336686171484375,12.261664752418518C9.090102671484374,12.261664752418518,8.079185971484375,11.250748752418518,8.079185971484375,10.004165252418519C8.079185971484375,8.757582352418517,9.090102671484374,7.746665552418518,10.336686171484375,7.746665552418518C10.857602071484376,7.746665552418518,11.337102871484374,7.922832152418518,11.719244271484374,8.219165952418518L11.719244271484374,4.510315252418518L5.920881771484375,6.091725952418518L5.920881771484375,11.212248752418517L5.920881771484375,11.217499752418519C5.920881771484375,12.464083752418517,4.909947871484375,13.474998752418518,3.663387771484375,13.474998752418518C2.416787071484375,13.474998752418518,1.405852854251865,12.464082752418518,1.405852854251865,11.217499752418519C1.405852854251865,9.970916352418518,2.416786871484375,8.959999652418517,3.663387771484375,8.959999652418517C4.184269171484376,8.959999652418517,4.663780971484375,9.136166252418517,5.045881971484375,9.432499552418518L5.045881971484375,5.765065352418518C5.045881971484375,5.759809652418518,5.045881971484375,5.754577252418518,5.045881971484375,5.749326852418518L5.045881971484375,3.879142852418518C5.045881971484375,2.9108270524185182,5.645524971484375,2.2224822524185184,6.488441471484375,1.9926605524185181L10.128436071484375,1.000982272418518C10.652911171484375,0.8580656054185181,11.273518571484376,0.8131547724185181,11.781602271484376,1.1106431024185182C12.324102271484374,1.4273930824185181,12.594244271484374,2.0416489524185177,12.594244271484374,2.887488152418518L12.594244271484374,3.926410052418518ZM11.719244271484374,2.887487652418518C11.719244271484374,2.216660252418518,11.514435271484375,1.967576852418518,11.340019271484374,1.866071042418518C11.132935571484374,1.744731902418518,10.796352371484375,1.726076842418518,10.358268771484376,1.845648522418518L6.718304671484375,2.8373209524185183C6.231775271484375,2.969731652418518,5.920881771484375,3.330809252418518,5.920881771484375,3.879142452418518L5.920881771484375,5.184648152418518L11.719244271484374,3.603231552418518L11.719244271484374,2.887487652418518ZM3.663388271484375,12.599998752418518C4.426948071484375,12.599998752418518,5.045882471484375,11.981081752418518,5.045882471484375,11.217499752418519C5.045882471484375,10.453916152418518,4.426948271484375,9.834999652418517,3.663388271484375,9.834999652418517C2.8997932714843753,9.834999652418517,2.280853391484375,10.453916152418518,2.280853391484375,11.217499752418519C2.280853391484375,11.981082752418518,2.899793471484375,12.599998752418518,3.663388271484375,12.599998752418518ZM8.954185971484375,10.004165252418519C8.954185971484375,10.767749452418519,9.573102971484374,11.386664752418518,10.336686171484375,11.386664752418518C11.100269271484375,11.386664752418518,11.719244271484374,10.767748452418518,11.719244271484374,10.004165252418519C11.719244271484374,9.240582152418519,11.100269271484375,8.621665552418518,10.336686171484375,8.621665552418518C9.573102971484374,8.621665552418518,8.954185971484375,9.240582152418519,8.954185971484375,10.004165252418519Z" fill="#868A9C" fill-opacity="1"/></svg>', Wc = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14" height="14" viewBox="0 0 14 14"><path d="M11.305803496070862,2.8583284381607053C11.498882496070863,2.713661038160706,11.773050496070862,2.7521666381607055,11.918296496070862,2.9458338381607057C13.720794496070862,5.347419838160706,13.720794496070862,8.652577538160706,11.918296496070862,11.054163138160705C11.773050496070862,11.247830138160706,11.498882496070863,11.286335138160705,11.305803496070862,11.141669138160706C11.112723496070862,10.996414138160706,11.073630496070862,10.722246738160706,11.218307496070862,10.529166838160705C12.787475496070861,8.439078938160705,12.787475496070861,5.5609179381607055,11.218307496070862,3.4708303381607055C11.073630496070862,3.2777506381607058,11.112723496070862,3.0035830381607056,11.305803496070862,2.8583284381607053ZM10.850643496070862,4.404167338160706C10.705398196070862,4.210500138160706,10.431231096070862,4.171994538160705,10.238133096070861,4.316661938160705C10.044466596070862,4.461916538160706,10.005978196070862,4.736083838160706,10.150637296070862,4.929163538160706C11.072313496070862,6.156499038160706,11.072313496070862,7.843498338160706,10.150637296070862,9.070833838160706C10.005978196070862,9.263913738160706,10.044466596070862,9.538080838160706,10.238133096070861,9.683335938160706C10.431231096070862,9.828002538160705,10.705398196070862,9.789497038160706,10.850643496070862,9.595830538160705C12.005633496070862,8.058162338160706,12.005633496070862,5.941834538160705,10.850643496070862,4.404167338160706ZM6.527554596070861,1.3638305381607054C7.564730296070862,0.4561640581607056,9.188140496070861,1.1929142881607055,9.188140496070861,2.5713347381607052L9.188140496070861,11.428662138160705C9.188140496070861,12.807083138160706,7.564730296070862,13.543833138160705,6.527554596070861,12.636166138160705L3.9608915960708617,10.390329938160706C3.934063996070862,10.367000238160706,3.9002226960708617,10.354164738160705,3.8646364960708617,10.354164738160705L2.917307496070862,10.354164738160705C1.7092156960708618,10.354164738160705,0.7298074960708618,9.374747838160706,0.7298074960708618,8.166665238160705L0.7298074960708618,5.8333321381607055C0.7298074960708618,4.6252492381607055,1.7092156960708618,3.6458321381607055,2.917307496070862,3.6458321381607055L3.8646364960708617,3.6458321381607055C3.9002226960708617,3.6458321381607055,3.934063996070862,3.6329969381607055,3.9608915960708617,3.6096674381607055L6.527554596070861,1.3638305381607054ZM8.313140496070861,2.5713347381607052C8.313140496070861,1.9448317881607056,7.575215496070862,1.6099954881607057,7.103891996070862,2.0224125381607054L4.537228696070862,4.268249638160706C4.351145196070862,4.430994638160706,4.111976496070862,4.520831938160706,3.8646364960708617,4.520831938160706L2.917307496070862,4.520831938160706C2.192217496070862,4.520831938160706,1.6048074960708618,5.108250738160706,1.6048074960708618,5.8333321381607055L1.6048074960708618,8.166665238160705C1.6048074960708618,8.891746138160705,2.192217496070862,9.479165638160705,2.917307496070862,9.479165638160705L3.8646364960708617,9.479165638160705C4.111976496070862,9.479165638160705,4.351145196070862,9.569002738160705,4.537228696070862,9.731748238160705L7.103891996070862,11.977584138160706C7.575215496070862,12.390002138160705,8.313140496070861,12.055165138160705,8.313140496070861,11.428662138160705L8.313140496070861,2.5713347381607052Z" fill-rule="evenodd" fill="#FFFFFF" fill-opacity="1"/></svg>', Yc = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14" height="14" viewBox="0 0 14 14"><path d="M9.188069328125,2.7498358381607053L9.188069328125,2.5713360381607053C9.188069328125,1.1929155481607057,7.564641028125,0.4561653181607056,6.527501128125,1.3638317881607056L3.960820428125,3.6096686381607057C3.933975228125,3.6329981381607057,3.900151528125,3.6458331381607056,3.864583228125,3.6458331381607056L2.917236328125,3.6458331381607056C1.709162358125,3.6458331381607056,0.729736328125,4.625250238160706,0.729736328125,5.833333138160706L0.729736328125,8.166666138160705C0.729736328125,8.990334138160705,1.1847533881249999,9.707831938160705,1.857309928125,10.080586038160705L2.519968628125,9.417918838160706C1.989151028125,9.249912838160705,1.604736328125,8.752919338160705,1.604736328125,8.166666138160705L1.604736328125,5.833333138160706C1.604736328125,5.108252138160705,2.192164028125,4.520833138160706,2.917236328125,4.520833138160706L3.864583228125,4.520833138160706C4.111887428125,4.520833138160706,4.351074028125,4.4309958381607055,4.537139628125,4.268250538160705L7.103820828125,2.0224138381607055C7.575144328125,1.6099967381607057,8.313069328125,1.9448330381607055,8.313069328125,2.5713360381607053L8.313069328125,3.6248358381607058L9.188069328125,2.7498358381607053Z" fill="#FFFFFF" fill-opacity="1"/><path d="M9.188069388879395,6.8751726150512695L8.313069388879395,7.7501726150512695L8.313069388879395,11.42867231505127C8.313069388879395,12.055175315051269,7.575144088879394,12.39001181505127,7.103820288879394,11.97759441505127L5.493814768879394,10.56883951505127L4.8737382888793945,11.18892481505127L6.5275010888793945,12.63617661505127C7.564640988879395,13.54384331505127,9.188069388879395,12.807092715051269,9.188069388879395,11.42867231505127L9.188069388879395,6.8751726150512695Z" fill="#FFFFFF" fill-opacity="1"/><path d="M10.519225743566894,5.543419959263916C11.048904063566894,6.679164689263916,10.926391243566895,8.038332489263915,10.150583580566895,9.070834589263917C10.005889575566895,9.263914589263916,10.044412931566894,9.538081689263915,10.238062213566895,9.683336689263916C10.431141853566894,9.828003889263915,10.705327033566894,9.789498289263916,10.850555063566894,9.595831389263916C11.887160943566894,8.215666289263917,11.993331543566894,6.369420189263916,11.169067043566894,4.893587589263916L10.519225743566894,5.543419959263916Z" fill="#FFFFFF" fill-opacity="1"/><path d="M11.747202221848145,4.3160754470959475C12.761021631848145,6.290655617095947,12.584853731848145,8.708574817095947,11.218093551848144,10.529159117095947C11.073435149848144,10.722238517095947,11.112528165848145,10.996406117095948,11.305607791848145,11.141660717095947C11.498687411848145,11.286328317095947,11.772872571848145,11.247822717095946,11.918100651848144,11.054155317095947C13.545587731848144,8.886487017095948,13.703704331848144,5.9814896170959475,12.392949131848145,3.6703286170959473L11.747202221848145,4.3160754470959475Z" fill="#FFFFFF" fill-opacity="1"/><path d="M12.5598954921875,2.0591658358917235C12.7307934921875,1.8882496358917238,12.7307934921875,1.6117501858917236,12.5598954921875,1.4408339558917236C12.3889614921875,1.2699177268917237,12.1124624921875,1.2699177268917237,11.9415284921875,1.4408339558917236L1.4415283221875,11.940833335891723C1.2706298831875,12.111750335891724,1.2706298831875,12.388249335891723,1.4415283221875,12.559165335891723C1.6124623421875,12.730081335891724,1.8889617921875002,12.730081335891724,2.0598958121875,12.559165335891723L12.5598954921875,2.0591658358917235Z" fill="#FFFFFF" fill-opacity="1"/></svg>', Xc = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14" height="14" viewBox="0 0 14 14"><path d="M3.348292020680237,2.6424992084503174C2.923644920680237,2.6424992084503174,2.578287720680237,2.9849191084503177,2.578287720680237,3.4125035084503175L2.578287720680237,4.474174308450317C2.578287720680237,4.715657508450317,2.382288570680237,4.911674308450317,2.140787720680237,4.911674308450317C1.8992868706802368,4.911674308450317,1.7032877206802368,4.715657508450317,1.7032877206802368,4.474174308450317L1.7032877206802368,3.4125035084503175C1.7032877206802368,2.4984104584503175,2.442957520680237,1.7674992084503174,3.348292020680237,1.7674992084503174L10.651636720680237,1.7674992084503174C11.565124120680236,1.7674992084503174,12.296640720680237,2.5071690084503175,12.296640720680237,3.4125035084503175L12.296640720680237,4.474174308450317C12.296640720680237,4.715657508450317,12.100641720680237,4.911674308450317,11.859140720680237,4.911674308450317C11.617640120680237,4.911674308450317,11.421641020680237,4.715657508450317,11.421641020680237,4.474174308450317L11.421641020680237,3.4125035084503175C11.421641020680237,2.9878386084503177,11.079203220680236,2.6424992084503174,10.651636720680237,2.6424992084503174L7.435114520680237,2.6424992084503174C7.436289420680237,2.657666388450317,7.437464320680236,2.6734210884503176,7.437464320680236,2.6891580184503177L7.437464320680236,11.357500308450318L8.714965420680237,11.357500308450318C8.956466320680237,11.357500308450318,9.152465420680237,11.553499508450317,9.152465420680237,11.795000208450318C9.152465420680237,12.036501208450318,8.956466320680237,12.232500208450318,8.714965420680237,12.232500208450318L5.284962820680237,12.232500208450318C5.043461920680237,12.232500208450318,4.847462820680237,12.036501208450318,4.847462820680237,11.795000208450318C4.847462820680237,11.553499508450317,5.043461920680237,11.357500308450318,5.284962820680237,11.357500308450318L6.562464320680236,11.357500308450318L6.562464320680236,2.6891580184503177C6.562464320680236,2.6734210884503176,6.563033720680237,2.657666388450317,6.564814220680237,2.6424992084503174L3.348292020680237,2.6424992084503174Z" fill="#868A9C" fill-opacity="1"/></svg>', jc = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="19" height="15" viewBox="0 0 19 15"><rect x="0" y="7" width="1" height="1" rx="0.5" fill="#B5B6BF" fill-opacity="1"/><rect x="2" y="6" width="1" height="3" rx="0.5" fill="#B5B6BF" fill-opacity="1"/><rect x="4" y="4.5" width="1" height="6" rx="0.5" fill="#B5B6BF" fill-opacity="1"/><rect x="6" y="5" width="1" height="5" rx="0.5" fill="#B5B6BF" fill-opacity="1"/><rect x="8" y="4" width="1" height="7" rx="0.5" fill="#B5B6BF" fill-opacity="1"/><rect x="10" y="5" width="1" height="5" rx="0.5" fill="#B5B6BF" fill-opacity="1"/><rect x="12" y="6" width="1" height="3" rx="0.5" fill="#B5B6BF" fill-opacity="1"/><rect x="14" y="4" width="1" height="7" rx="0.5" fill="#B5B6BF" fill-opacity="1"/><rect x="16" y="6.5" width="1" height="2" rx="0.5" fill="#B5B6BF" fill-opacity="1"/><rect x="18" y="7" width="1" height="1" rx="0.5" fill="#B5B6BF" fill-opacity="1"/></svg>', qc = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="19" height="15" viewBox="0 0 19 15"><rect x="0" y="7" width="1" height="1" rx="0.5" fill="#C9CBD4" fill-opacity="1"/><rect x="2" y="7" width="15" height="1" rx="0.5" fill="#C9CBD4" fill-opacity="1"/><rect x="4" y="7" width="1" height="1" rx="0.5" fill="#C9CBD4" fill-opacity="1"/><rect x="6" y="7" width="1" height="1" rx="0.5" fill="#C9CBD4" fill-opacity="1"/><rect x="8" y="7" width="1" height="1" rx="0.5" fill="#C9CBD4" fill-opacity="1"/><rect x="10" y="7" width="1" height="1" rx="0.5" fill="#C9CBD4" fill-opacity="1"/><rect x="12" y="7" width="1" height="1" rx="0.5" fill="#C9CBD4" fill-opacity="1"/><rect x="14" y="7" width="1" height="1" rx="0.5" fill="#C9CBD4" fill-opacity="1"/><rect x="16" y="7" width="1" height="1" rx="0.5" fill="#C9CBD4" fill-opacity="1"/><rect x="18" y="7" width="1" height="1" rx="0.5" fill="#C9CBD4" fill-opacity="1"/></svg>', Kc = /* @__PURE__ */ new Map([
|
|
9018
|
-
["OmAi-camera",
|
|
9019
|
-
["OmAi-accept",
|
|
9020
|
-
["OmAi-display",
|
|
9021
|
-
["OmAi-hide",
|
|
9022
|
-
["OmAi-loading",
|
|
9023
|
-
["OmAi-music",
|
|
9024
|
-
["OmAi-volume",
|
|
9025
|
-
["OmAi-volume-mute",
|
|
9026
|
-
["OmAi-text",
|
|
9027
|
-
["clip-audio",
|
|
9028
|
-
["clip-without-audio",
|
|
8971
|
+
const Fc = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14" height="14" viewBox="0 0 14 14"><path d="M1.8437804474494934,2.934130300488281C2.0975289474494936,2.6803818004882816,2.5560352474494934,2.5258255004882812,3.4537861474494935,2.5258255004882812L7.691924847449493,2.5258255004882812C8.589675247449494,2.5258255004882812,9.048181847449493,2.6803818004882816,9.301930747449493,2.934130300488281C9.555688247449494,3.1878788004882814,9.710234947449493,3.6463940004882813,9.710234947449493,4.544136000488281L9.710234947449493,5.154385800488281L9.710234947449493,5.156664400488282L9.710234947449493,8.837531600488282L9.710234947449493,8.839810400488282L9.710234947449493,9.455756700488282C9.710234947449493,10.352920500488281,9.554433147449494,10.811444300488281,9.299509347449494,11.065193200488281C9.045182547449494,11.319528600488281,8.586177147449494,11.474209800488282,7.691924847449493,11.474209800488282L3.4537861474494935,11.474209800488282C2.6371141474494935,11.474209800488282,2.1565246474494932,11.20751000048828,1.8706969474494934,10.86509900048828C1.5731912474494933,10.50867840048828,1.4354756474494934,10.006423900488281,1.4354756474494934,9.455756700488282L1.4354756474494934,4.544136000488281C1.4354756474494934,3.6463940004882813,1.5900319474494935,3.1878788004882814,1.8437804474494934,2.934130300488281ZM9.917876547449493,11.684700500488281C10.391550347449494,11.212192500488282,10.559057547449493,10.52217200048828,10.582387647449494,9.67692760048828L11.516774647449493,10.33260820048828L11.516774647449493,10.33260820048828C11.978190647449493,10.658107800488281,12.521887647449493,10.806299200488281,12.992055647449494,10.562466600488282C13.461642647449493,10.318055200488281,13.653574647449494,9.787735900488281,13.653574647449494,9.222480300488282L13.653574647449494,4.777554700488281C13.653574647449494,4.212299300488281,13.461625647449493,3.6825676004882815,12.992624647449494,3.437568500488281C12.523623647449494,3.1925697004882814,11.980024647449493,3.3384564004882815,11.519194647449494,3.6604486004882815L11.518056647449493,3.661018400488281L10.582387647449494,4.3178380004882815C10.558470047449493,3.475504500488281,10.392209347449493,2.7870953004882812,9.920297947449493,2.315762820488281C9.406961747449493,1.8024266504882813,8.637509647449493,1.6508255004882812,7.691924847449493,1.6508255004882812L3.4537861474494935,1.6508255004882812C2.5082015474494934,1.6508255004882812,1.7387490474494933,1.8024266504882813,1.2254129674494934,2.315762820488281C0.7120767974494934,2.8290989004882814,0.5604756474494934,3.598560200488281,0.5604756474494934,4.544136000488281L0.5604756474494934,9.455756700488282C0.5604756474494934,10.13592340048828,0.7290598274494934,10.86171720048828,1.1986388574494935,11.42521860048828C1.6798959474494934,12.003300500488281,2.4271137474494937,12.349209500488282,3.4537861474494935,12.349209500488282L7.691924847449493,12.349209500488282C8.635176947449493,12.349209500488282,9.403962447449494,12.197448500488282,9.917876547449493,11.684700500488281ZM12.020781647449493,9.61682840048828L10.585234647449493,8.609952000488281L10.585234647449493,5.384101600488281L12.019642647449494,4.377937300488281L12.020212647449494,4.3773675004882815C12.352129647449493,4.145782500488281,12.531874647449493,4.183709400488281,12.587880647449493,4.212877700488281C12.643876647449494,4.242046400488281,12.778574647449494,4.368635700488282,12.778574647449494,4.777554700488281L12.778574647449494,9.222480300488282C12.778574647449494,9.631399600488281,12.643866647449494,9.757436800488282,12.588449647449494,9.786018400488281C12.533620647449494,9.814020200488281,12.354416647449494,9.852481800488281,12.021921647449494,9.617398300488281L12.020781647449493,9.61682840048828ZM3.3313089474494935,3.9374466004882813C3.0898080474494933,3.9374466004882813,2.8938089474494935,4.133445700488281,2.8938089474494935,4.374946600488281C2.8938089474494935,4.616447400488282,3.0898080474494933,4.812446600488281,3.3313089474494935,4.812446600488281L4.815419447449494,4.812446600488281C5.056920347449493,4.812446600488281,5.252919447449494,4.616447400488282,5.252919447449494,4.374946600488281C5.252919447449494,4.133445700488281,5.056920347449493,3.9374466004882813,4.815419447449494,3.9374466004882813L3.3313089474494935,3.9374466004882813Z" fill="#868A9C" fill-opacity="1"/></svg>', Gc = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="16" height="16" viewBox="0 0 16 16"><path d="M11.206380472434997,2.733718973069763C9.993001372434998,1.991438673069763,8.552978872434998,1.6945722130697631,7.139648772434998,1.8937121730697632C5.7263186724349975,2.092858673069763,4.426350972434998,2.775678773069763,3.4596355724349976,3.825838973069763C2.4930013724349975,4.875998873069763,1.9263509724349976,6.228518873069763,1.8396810724349975,7.652945373069763C1.7596843224349974,9.077412973069762,2.1796875724349976,10.485612273069764,3.0196941724349977,11.637611373069763C3.8597005724349978,12.789678373069764,5.0796712724349975,13.614278373069762,6.459635572434998,13.970879373069764C7.839681072434997,14.327545373069762,9.299641972434998,14.194145373069762,10.593017972434998,13.593478373069763C11.892985472434997,12.992878373069763,12.933024472434997,11.962078373069764,13.552978472434997,10.676812573069764C14.173015472434997,9.391545673069762,14.326335472434998,7.9312790730697635,13.993001472434997,6.544878873069763C13.926350472434997,6.276532073069763,14.093017472434997,6.0061725730697635,14.359700472434998,5.941012273069763C14.626302472434997,5.875851973069763,14.899658472434998,6.040565873069763,14.966308472434998,6.308912673069763C15.353027472434997,7.920145873069763,15.173015472434997,9.617145873069763,14.453044472434998,11.110879373069762C13.732991472434998,12.604545373069763,12.519694472434997,13.802478373069762,11.019694472434997,14.500545373069762C9.513020872434998,15.198611373069763,7.812988672434997,15.353611373069763,6.2063802724349975,14.939145373069763C4.599690772434998,14.524678373069763,3.1930340724349975,13.566345373069764,2.2129720724349973,12.227478373069763C1.2329915724349976,10.888679373069763,0.7530111074349976,9.252079373069764,0.8463542074349976,7.5966790730697635C0.9396973124349975,5.941252573069764,1.5996907924349975,4.369405673069763,2.726318472434998,3.1489456730697634C3.8463543724349973,1.9284919730697632,5.359700572434997,1.134938593069763,6.999674672434997,0.9035053700697632C8.639648772434999,0.6720721230697632,10.312988672434997,1.0170720830697633,11.726318472434997,1.8797255730697633C11.966308472434998,2.023398773069763,12.039714472434998,2.3310454730697634,11.892985472434997,2.5668653730697635C11.753011472434997,2.8026921730697634,11.446370472434998,2.8773921730697634,11.206380472434997,2.733718973069763ZM11.686360472434998,5.413441573069763C11.879639472434997,5.608874673069764,11.879639472434997,5.925454473069763,11.686360472434998,6.1205485730697635L7.2396648724349975,10.559748073069763C7.046305572434997,10.754747773069763,6.7263186724349975,10.754615173069762,6.533040372434997,10.559481973069763L4.312988372434997,8.339814573069763C4.119710372434998,8.144614573069763,4.119710372434998,7.828014773069763,4.312988372434997,7.632747973069764C4.506347772434998,7.437481773069763,4.826334872434998,7.437481773069763,5.019694172434997,7.632747973069764L6.886311872434997,9.499081973069764L10.979655472434997,5.412814473069763C11.173015472434997,5.217727973069763,11.493001472434997,5.218008373069763,11.686360472434998,5.413441573069763Z" fill-rule="evenodd" fill="#24C744" fill-opacity="1"/></svg>', Hc = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14" height="14" viewBox="0 0 14 14"><path d="M1.3164876075,5.2511568456573485C2.7112323875,3.0589928456573485,4.7552132875,1.7354023456573486,6.9998931875,1.7354023456573486C9.2445726875,1.7354023456573486,11.2885531875,3.0589928456573485,12.6832981875,5.2511568456573485C13.0012411875,5.7498953456573485,13.1452941875,6.3880765456573485,13.1452941875,6.9999821456573486C13.1452941875,7.611905345657348,13.0012411875,8.250068445657348,12.6832981875,8.74882484565735C11.2885531875,10.940988745657348,9.2445726875,12.264562345657348,6.9998931875,12.264562345657348C4.7552132875,12.264562345657348,2.7112323875,10.940988745657348,1.3164876075,8.74882484565735C0.9985453175,8.250068445657348,0.8544921875,7.611905345657348,0.8544921875,6.9999821456573486C0.8544921875,6.3880765456573485,0.9985453175,5.749325945657349,1.3164876075,5.2511568456573485ZM6.9998931875,2.6104023456573486C5.1262406875,2.6104023456573486,3.3318786875,3.713480445657349,2.0549823875,5.721323445657349L2.0543771875,5.721323445657349C1.8473052375,6.0456564456573485,1.7294921875,6.509396745657349,1.7294921875,6.9999821456573486C1.7294921875,7.490567445657349,1.8473052375,7.954324945657349,2.0543771875,8.278070645657348L2.0549823875,8.27865814565735C3.3318786875,10.286483045657349,5.1262406875,11.389561845657349,6.9998931875,11.389561845657349C8.8735446875,11.389561845657349,10.6679076875,10.286483045657349,11.9448031875,8.27865814565735L11.9454091875,8.278070645657348C12.1518751875,7.954324945657349,12.2702941875,7.490567445657349,12.2702941875,6.9999821456573486C12.2702941875,6.509396745657349,12.1518751875,6.0456564456573485,11.9454091875,5.721323445657349L11.9448031875,5.721323445657349C10.6679076875,3.713480445657349,8.8735446875,2.6104023456573486,6.9998931875,2.6104023456573486ZM4.4741208875,7.002937045657348C4.4741208875,5.606429845657349,5.6034745875,4.4771115456573485,6.9999641875,4.4771115456573485C8.3964533875,4.4771115456573485,9.5258073875,5.606429845657349,9.5258073875,7.002937045657348C9.5258073875,8.399444345657349,8.3964533875,9.528762545657349,6.9999641875,9.528762545657349C5.6034745875,9.528762545657349,4.4741208875,8.399444345657349,4.4741208875,7.002937045657348ZM6.9999641875,5.3521115456573485C6.0864762875,5.3521115456573485,5.3491210875,6.089431545657349,5.3491210875,7.002937045657348C5.3491210875,7.916442645657349,6.0864762875,8.653762545657349,6.9999641875,8.653762545657349C7.9134516875,8.653762545657349,8.650807387499999,7.916442645657349,8.650807387499999,7.002937045657348C8.650807387499999,6.089431545657349,7.9134516875,5.3521115456573485,6.9999641875,5.3521115456573485Z" fill-rule="evenodd" fill="#FFFFFF" fill-opacity="1"/></svg>', Nc = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="18" height="18" viewBox="0 0 18 18"><path d="M3.5486246148989866,6.472501117640625C3.7632801848989867,6.361666362640625,4.026926634898987,6.445068359640625,4.138366634898987,6.659741711640625C4.944508744898987,8.214329931640625,6.797759844898987,9.340158931640625,8.999857544898987,9.340158931640625C11.201954944898986,9.340158931640625,13.055775244898987,8.214329931640625,13.861347544898987,6.659741711640625C13.972788544898988,6.445068359640625,14.237040544898987,6.361666362640625,14.451090544898987,6.472501117640625C14.665781544898987,6.583905531640625,14.749770544898986,6.847569761640625,14.638366544898988,7.062243101640625C14.367100544898987,7.584907531640625,14.003692544898987,8.060913131640625,13.566192544898987,8.475074731640625L14.459278544898988,9.368161431640626C14.630177544898986,9.539077731640624,14.630177544898986,9.816164531640625,14.459278544898988,9.987080831640625C14.288344544898987,10.157996931640625,14.011275544898988,10.157996931640625,13.840342544898986,9.987080831640625L12.883701944898986,9.030405531640625C12.378519644898986,9.383328631640625,11.808039344898987,9.667999231640625,11.192590844898987,9.869249831640625L11.502344744898986,11.025413531640625C11.564757944898988,11.258743331640625,11.426508544898986,11.499069231640625,11.193196444898987,11.561500531640625C10.959848544898986,11.623913731640625,10.720092444898988,11.485664331640624,10.657109344898988,11.251747131640624L10.345611244898986,10.087999831640625C9.911600744898987,10.171401731640625,9.460677744898987,10.215158931640625,8.999857544898987,10.215158931640625C8.548365244898987,10.215158931640625,8.107340444898988,10.173164131640625,7.681518244898987,10.093233631640626L7.371195444898987,11.251747131640624C7.308781744898987,11.485664331640624,7.069025444898987,11.623913731640625,6.835108144898987,11.561500531640625C6.6017607448989875,11.499069231640625,6.4635111448989875,11.258743331640625,6.525924544898986,11.025413531640625L6.833363644898987,9.877990731640626C6.192280844898987,9.670900831640624,5.600189044898986,9.374000531640625,5.078094344898987,9.003578231640624L4.095179204898987,9.987080831640625C3.924280764898987,10.157996931640625,3.6471760548989867,10.157996931640625,3.476277614898987,9.987080831640625C3.305343588298987,9.816164531640625,3.305343588298987,9.539077731640624,3.476277614898987,9.368161431640626L4.400873744898987,8.443583031640625C3.9779357348989866,8.036987331640624,3.6256001248989866,7.572072231640625,3.361348427898987,7.062243101640625C3.250513676898987,6.847569761640625,3.3339334728989867,6.583905531640625,3.5486246148989866,6.472501117640625Z" fill="#FFFFFF" fill-opacity="1"/></svg>', $c = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M9.217651334374999,1.6159667934375C8.817657434375,1.7239685034375,8.579650834375,2.1349792434375,8.687652634374999,2.5349731234375C8.794677734375,2.9349670234375003,9.205657934375001,3.1719665234375,9.605651834375,3.0649719234374997C14.537658734375,1.7439575234375,19.612670734375,4.6739807234375,20.934661734375,9.6059570234375C22.255676734375,14.5379635234375,19.325652734375,19.6129765234375,14.393676734375,20.9349675234375C9.461669934375,22.2559815234375,4.3866577343749995,19.3259585234375,3.064666734375,14.3939815234375C2.3956604343750003,11.8969725234375,2.816650434375,9.3629761234375,4.036651634375,7.2969665234375C4.246673534375001,6.9399719234375,4.128662134375,6.4799804234375,3.771667434375,6.2699585234375C3.415649434375,6.0589599234375,2.955657934375,6.1779785234375,2.744659434375,6.5339660234375C1.3286743163749999,8.9329834234375,0.8386535643749999,11.8789675234375,1.615661624375,14.7819825234375C3.151672334375,20.5139775234375,9.049652134375,23.9199825234375,14.781677734375,22.3839725234375C20.513671734375,20.8479615234375,23.919677734375,14.9499815234375,22.383666734375,9.2179565234375C20.847656734375,3.4859619234375,14.949676734375,0.07995602343750008,9.217651334374999,1.6159667934375Z" fill="#C9CBD4" fill-opacity="1"/><path d="M16.7496337890625,12C16.7496337890625,14.6270103,14.6266440890625,16.75,11.9996337890625,16.75C9.3736238890625,16.75,7.2496337890625,14.6270103,7.2496337890625,12C7.2496337890625,9.3739901,9.3736238890625,7.25,11.9996337890625,7.25C14.6266440890625,7.25,16.7496337890625,9.3739901,16.7496337890625,12ZM11.9996337890625,15.25C13.7976336890625,15.25,15.2496337890625,13.7979999,15.2496337890625,12C15.2496337890625,10.2020001,13.7976336890625,8.75,11.9996337890625,8.75C10.2016338890625,8.75,8.7496337890625,10.2020001,8.7496337890625,12C8.7496337890625,13.7979999,10.2016338890625,15.25,11.9996337890625,15.25Z" fill="#C9CBD4" fill-opacity="1"/></svg>', zc = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14" height="14" viewBox="0 0 14 14"><path d="M12.594244271484374,3.926410052418518C12.594244271484374,3.9339934524185183,12.594244271484374,3.941576852418518,12.594244271484374,3.949160252418518L12.594244271484374,10.004165252418519L12.594244271484374,10.009998952418519C12.591269271484375,11.254248752418517,11.581520271484376,12.261664752418518,10.336686171484375,12.261664752418518C9.090102671484374,12.261664752418518,8.079185971484375,11.250748752418518,8.079185971484375,10.004165252418519C8.079185971484375,8.757582352418517,9.090102671484374,7.746665552418518,10.336686171484375,7.746665552418518C10.857602071484376,7.746665552418518,11.337102871484374,7.922832152418518,11.719244271484374,8.219165952418518L11.719244271484374,4.510315252418518L5.920881771484375,6.091725952418518L5.920881771484375,11.212248752418517L5.920881771484375,11.217499752418519C5.920881771484375,12.464083752418517,4.909947871484375,13.474998752418518,3.663387771484375,13.474998752418518C2.416787071484375,13.474998752418518,1.405852854251865,12.464082752418518,1.405852854251865,11.217499752418519C1.405852854251865,9.970916352418518,2.416786871484375,8.959999652418517,3.663387771484375,8.959999652418517C4.184269171484376,8.959999652418517,4.663780971484375,9.136166252418517,5.045881971484375,9.432499552418518L5.045881971484375,5.765065352418518C5.045881971484375,5.759809652418518,5.045881971484375,5.754577252418518,5.045881971484375,5.749326852418518L5.045881971484375,3.879142852418518C5.045881971484375,2.9108270524185182,5.645524971484375,2.2224822524185184,6.488441471484375,1.9926605524185181L10.128436071484375,1.000982272418518C10.652911171484375,0.8580656054185181,11.273518571484376,0.8131547724185181,11.781602271484376,1.1106431024185182C12.324102271484374,1.4273930824185181,12.594244271484374,2.0416489524185177,12.594244271484374,2.887488152418518L12.594244271484374,3.926410052418518ZM11.719244271484374,2.887487652418518C11.719244271484374,2.216660252418518,11.514435271484375,1.967576852418518,11.340019271484374,1.866071042418518C11.132935571484374,1.744731902418518,10.796352371484375,1.726076842418518,10.358268771484376,1.845648522418518L6.718304671484375,2.8373209524185183C6.231775271484375,2.969731652418518,5.920881771484375,3.330809252418518,5.920881771484375,3.879142452418518L5.920881771484375,5.184648152418518L11.719244271484374,3.603231552418518L11.719244271484374,2.887487652418518ZM3.663388271484375,12.599998752418518C4.426948071484375,12.599998752418518,5.045882471484375,11.981081752418518,5.045882471484375,11.217499752418519C5.045882471484375,10.453916152418518,4.426948271484375,9.834999652418517,3.663388271484375,9.834999652418517C2.8997932714843753,9.834999652418517,2.280853391484375,10.453916152418518,2.280853391484375,11.217499752418519C2.280853391484375,11.981082752418518,2.899793471484375,12.599998752418518,3.663388271484375,12.599998752418518ZM8.954185971484375,10.004165252418519C8.954185971484375,10.767749452418519,9.573102971484374,11.386664752418518,10.336686171484375,11.386664752418518C11.100269271484375,11.386664752418518,11.719244271484374,10.767748452418518,11.719244271484374,10.004165252418519C11.719244271484374,9.240582152418519,11.100269271484375,8.621665552418518,10.336686171484375,8.621665552418518C9.573102971484374,8.621665552418518,8.954185971484375,9.240582152418519,8.954185971484375,10.004165252418519Z" fill="#868A9C" fill-opacity="1"/></svg>', Vc = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14" height="14" viewBox="0 0 14 14"><path d="M11.305803496070862,2.8583284381607053C11.498882496070863,2.713661038160706,11.773050496070862,2.7521666381607055,11.918296496070862,2.9458338381607057C13.720794496070862,5.347419838160706,13.720794496070862,8.652577538160706,11.918296496070862,11.054163138160705C11.773050496070862,11.247830138160706,11.498882496070863,11.286335138160705,11.305803496070862,11.141669138160706C11.112723496070862,10.996414138160706,11.073630496070862,10.722246738160706,11.218307496070862,10.529166838160705C12.787475496070861,8.439078938160705,12.787475496070861,5.5609179381607055,11.218307496070862,3.4708303381607055C11.073630496070862,3.2777506381607058,11.112723496070862,3.0035830381607056,11.305803496070862,2.8583284381607053ZM10.850643496070862,4.404167338160706C10.705398196070862,4.210500138160706,10.431231096070862,4.171994538160705,10.238133096070861,4.316661938160705C10.044466596070862,4.461916538160706,10.005978196070862,4.736083838160706,10.150637296070862,4.929163538160706C11.072313496070862,6.156499038160706,11.072313496070862,7.843498338160706,10.150637296070862,9.070833838160706C10.005978196070862,9.263913738160706,10.044466596070862,9.538080838160706,10.238133096070861,9.683335938160706C10.431231096070862,9.828002538160705,10.705398196070862,9.789497038160706,10.850643496070862,9.595830538160705C12.005633496070862,8.058162338160706,12.005633496070862,5.941834538160705,10.850643496070862,4.404167338160706ZM6.527554596070861,1.3638305381607054C7.564730296070862,0.4561640581607056,9.188140496070861,1.1929142881607055,9.188140496070861,2.5713347381607052L9.188140496070861,11.428662138160705C9.188140496070861,12.807083138160706,7.564730296070862,13.543833138160705,6.527554596070861,12.636166138160705L3.9608915960708617,10.390329938160706C3.934063996070862,10.367000238160706,3.9002226960708617,10.354164738160705,3.8646364960708617,10.354164738160705L2.917307496070862,10.354164738160705C1.7092156960708618,10.354164738160705,0.7298074960708618,9.374747838160706,0.7298074960708618,8.166665238160705L0.7298074960708618,5.8333321381607055C0.7298074960708618,4.6252492381607055,1.7092156960708618,3.6458321381607055,2.917307496070862,3.6458321381607055L3.8646364960708617,3.6458321381607055C3.9002226960708617,3.6458321381607055,3.934063996070862,3.6329969381607055,3.9608915960708617,3.6096674381607055L6.527554596070861,1.3638305381607054ZM8.313140496070861,2.5713347381607052C8.313140496070861,1.9448317881607056,7.575215496070862,1.6099954881607057,7.103891996070862,2.0224125381607054L4.537228696070862,4.268249638160706C4.351145196070862,4.430994638160706,4.111976496070862,4.520831938160706,3.8646364960708617,4.520831938160706L2.917307496070862,4.520831938160706C2.192217496070862,4.520831938160706,1.6048074960708618,5.108250738160706,1.6048074960708618,5.8333321381607055L1.6048074960708618,8.166665238160705C1.6048074960708618,8.891746138160705,2.192217496070862,9.479165638160705,2.917307496070862,9.479165638160705L3.8646364960708617,9.479165638160705C4.111976496070862,9.479165638160705,4.351145196070862,9.569002738160705,4.537228696070862,9.731748238160705L7.103891996070862,11.977584138160706C7.575215496070862,12.390002138160705,8.313140496070861,12.055165138160705,8.313140496070861,11.428662138160705L8.313140496070861,2.5713347381607052Z" fill-rule="evenodd" fill="#FFFFFF" fill-opacity="1"/></svg>', Uc = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14" height="14" viewBox="0 0 14 14"><path d="M9.188069328125,2.7498358381607053L9.188069328125,2.5713360381607053C9.188069328125,1.1929155481607057,7.564641028125,0.4561653181607056,6.527501128125,1.3638317881607056L3.960820428125,3.6096686381607057C3.933975228125,3.6329981381607057,3.900151528125,3.6458331381607056,3.864583228125,3.6458331381607056L2.917236328125,3.6458331381607056C1.709162358125,3.6458331381607056,0.729736328125,4.625250238160706,0.729736328125,5.833333138160706L0.729736328125,8.166666138160705C0.729736328125,8.990334138160705,1.1847533881249999,9.707831938160705,1.857309928125,10.080586038160705L2.519968628125,9.417918838160706C1.989151028125,9.249912838160705,1.604736328125,8.752919338160705,1.604736328125,8.166666138160705L1.604736328125,5.833333138160706C1.604736328125,5.108252138160705,2.192164028125,4.520833138160706,2.917236328125,4.520833138160706L3.864583228125,4.520833138160706C4.111887428125,4.520833138160706,4.351074028125,4.4309958381607055,4.537139628125,4.268250538160705L7.103820828125,2.0224138381607055C7.575144328125,1.6099967381607057,8.313069328125,1.9448330381607055,8.313069328125,2.5713360381607053L8.313069328125,3.6248358381607058L9.188069328125,2.7498358381607053Z" fill="#FFFFFF" fill-opacity="1"/><path d="M9.188069388879395,6.8751726150512695L8.313069388879395,7.7501726150512695L8.313069388879395,11.42867231505127C8.313069388879395,12.055175315051269,7.575144088879394,12.39001181505127,7.103820288879394,11.97759441505127L5.493814768879394,10.56883951505127L4.8737382888793945,11.18892481505127L6.5275010888793945,12.63617661505127C7.564640988879395,13.54384331505127,9.188069388879395,12.807092715051269,9.188069388879395,11.42867231505127L9.188069388879395,6.8751726150512695Z" fill="#FFFFFF" fill-opacity="1"/><path d="M10.519225743566894,5.543419959263916C11.048904063566894,6.679164689263916,10.926391243566895,8.038332489263915,10.150583580566895,9.070834589263917C10.005889575566895,9.263914589263916,10.044412931566894,9.538081689263915,10.238062213566895,9.683336689263916C10.431141853566894,9.828003889263915,10.705327033566894,9.789498289263916,10.850555063566894,9.595831389263916C11.887160943566894,8.215666289263917,11.993331543566894,6.369420189263916,11.169067043566894,4.893587589263916L10.519225743566894,5.543419959263916Z" fill="#FFFFFF" fill-opacity="1"/><path d="M11.747202221848145,4.3160754470959475C12.761021631848145,6.290655617095947,12.584853731848145,8.708574817095947,11.218093551848144,10.529159117095947C11.073435149848144,10.722238517095947,11.112528165848145,10.996406117095948,11.305607791848145,11.141660717095947C11.498687411848145,11.286328317095947,11.772872571848145,11.247822717095946,11.918100651848144,11.054155317095947C13.545587731848144,8.886487017095948,13.703704331848144,5.9814896170959475,12.392949131848145,3.6703286170959473L11.747202221848145,4.3160754470959475Z" fill="#FFFFFF" fill-opacity="1"/><path d="M12.5598954921875,2.0591658358917235C12.7307934921875,1.8882496358917238,12.7307934921875,1.6117501858917236,12.5598954921875,1.4408339558917236C12.3889614921875,1.2699177268917237,12.1124624921875,1.2699177268917237,11.9415284921875,1.4408339558917236L1.4415283221875,11.940833335891723C1.2706298831875,12.111750335891724,1.2706298831875,12.388249335891723,1.4415283221875,12.559165335891723C1.6124623421875,12.730081335891724,1.8889617921875002,12.730081335891724,2.0598958121875,12.559165335891723L12.5598954921875,2.0591658358917235Z" fill="#FFFFFF" fill-opacity="1"/></svg>', Wc = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14" height="14" viewBox="0 0 14 14"><path d="M3.348292020680237,2.6424992084503174C2.923644920680237,2.6424992084503174,2.578287720680237,2.9849191084503177,2.578287720680237,3.4125035084503175L2.578287720680237,4.474174308450317C2.578287720680237,4.715657508450317,2.382288570680237,4.911674308450317,2.140787720680237,4.911674308450317C1.8992868706802368,4.911674308450317,1.7032877206802368,4.715657508450317,1.7032877206802368,4.474174308450317L1.7032877206802368,3.4125035084503175C1.7032877206802368,2.4984104584503175,2.442957520680237,1.7674992084503174,3.348292020680237,1.7674992084503174L10.651636720680237,1.7674992084503174C11.565124120680236,1.7674992084503174,12.296640720680237,2.5071690084503175,12.296640720680237,3.4125035084503175L12.296640720680237,4.474174308450317C12.296640720680237,4.715657508450317,12.100641720680237,4.911674308450317,11.859140720680237,4.911674308450317C11.617640120680237,4.911674308450317,11.421641020680237,4.715657508450317,11.421641020680237,4.474174308450317L11.421641020680237,3.4125035084503175C11.421641020680237,2.9878386084503177,11.079203220680236,2.6424992084503174,10.651636720680237,2.6424992084503174L7.435114520680237,2.6424992084503174C7.436289420680237,2.657666388450317,7.437464320680236,2.6734210884503176,7.437464320680236,2.6891580184503177L7.437464320680236,11.357500308450318L8.714965420680237,11.357500308450318C8.956466320680237,11.357500308450318,9.152465420680237,11.553499508450317,9.152465420680237,11.795000208450318C9.152465420680237,12.036501208450318,8.956466320680237,12.232500208450318,8.714965420680237,12.232500208450318L5.284962820680237,12.232500208450318C5.043461920680237,12.232500208450318,4.847462820680237,12.036501208450318,4.847462820680237,11.795000208450318C4.847462820680237,11.553499508450317,5.043461920680237,11.357500308450318,5.284962820680237,11.357500308450318L6.562464320680236,11.357500308450318L6.562464320680236,2.6891580184503177C6.562464320680236,2.6734210884503176,6.563033720680237,2.657666388450317,6.564814220680237,2.6424992084503174L3.348292020680237,2.6424992084503174Z" fill="#868A9C" fill-opacity="1"/></svg>', Yc = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="19" height="15" viewBox="0 0 19 15"><rect x="0" y="7" width="1" height="1" rx="0.5" fill="#B5B6BF" fill-opacity="1"/><rect x="2" y="6" width="1" height="3" rx="0.5" fill="#B5B6BF" fill-opacity="1"/><rect x="4" y="4.5" width="1" height="6" rx="0.5" fill="#B5B6BF" fill-opacity="1"/><rect x="6" y="5" width="1" height="5" rx="0.5" fill="#B5B6BF" fill-opacity="1"/><rect x="8" y="4" width="1" height="7" rx="0.5" fill="#B5B6BF" fill-opacity="1"/><rect x="10" y="5" width="1" height="5" rx="0.5" fill="#B5B6BF" fill-opacity="1"/><rect x="12" y="6" width="1" height="3" rx="0.5" fill="#B5B6BF" fill-opacity="1"/><rect x="14" y="4" width="1" height="7" rx="0.5" fill="#B5B6BF" fill-opacity="1"/><rect x="16" y="6.5" width="1" height="2" rx="0.5" fill="#B5B6BF" fill-opacity="1"/><rect x="18" y="7" width="1" height="1" rx="0.5" fill="#B5B6BF" fill-opacity="1"/></svg>', Xc = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="19" height="15" viewBox="0 0 19 15"><rect x="0" y="7" width="1" height="1" rx="0.5" fill="#C9CBD4" fill-opacity="1"/><rect x="2" y="7" width="15" height="1" rx="0.5" fill="#C9CBD4" fill-opacity="1"/><rect x="4" y="7" width="1" height="1" rx="0.5" fill="#C9CBD4" fill-opacity="1"/><rect x="6" y="7" width="1" height="1" rx="0.5" fill="#C9CBD4" fill-opacity="1"/><rect x="8" y="7" width="1" height="1" rx="0.5" fill="#C9CBD4" fill-opacity="1"/><rect x="10" y="7" width="1" height="1" rx="0.5" fill="#C9CBD4" fill-opacity="1"/><rect x="12" y="7" width="1" height="1" rx="0.5" fill="#C9CBD4" fill-opacity="1"/><rect x="14" y="7" width="1" height="1" rx="0.5" fill="#C9CBD4" fill-opacity="1"/><rect x="16" y="7" width="1" height="1" rx="0.5" fill="#C9CBD4" fill-opacity="1"/><rect x="18" y="7" width="1" height="1" rx="0.5" fill="#C9CBD4" fill-opacity="1"/></svg>', qc = /* @__PURE__ */ new Map([
|
|
8972
|
+
["OmAi-camera", Fc],
|
|
8973
|
+
["OmAi-accept", Gc],
|
|
8974
|
+
["OmAi-display", Hc],
|
|
8975
|
+
["OmAi-hide", Nc],
|
|
8976
|
+
["OmAi-loading", $c],
|
|
8977
|
+
["OmAi-music", zc],
|
|
8978
|
+
["OmAi-volume", Vc],
|
|
8979
|
+
["OmAi-volume-mute", Uc],
|
|
8980
|
+
["OmAi-text", Wc],
|
|
8981
|
+
["clip-audio", Yc],
|
|
8982
|
+
["clip-without-audio", Xc]
|
|
9029
8983
|
]), $n = /* @__PURE__ */ new Map();
|
|
9030
8984
|
function be(s) {
|
|
9031
|
-
return
|
|
8985
|
+
return qc.get(s) ?? "";
|
|
9032
8986
|
}
|
|
9033
|
-
function
|
|
8987
|
+
function jc(s) {
|
|
9034
8988
|
const e = $n.get(s);
|
|
9035
8989
|
if (e)
|
|
9036
8990
|
return e;
|
|
@@ -9046,27 +9000,27 @@ function Zc(s) {
|
|
|
9046
9000
|
} : new Image();
|
|
9047
9001
|
return "decoding" in r && (r.decoding = "async"), r.src = i, $n.set(s, r), r;
|
|
9048
9002
|
}
|
|
9049
|
-
const ue = 3, zn = 10,
|
|
9003
|
+
const ue = 3, zn = 10, Kc = 4, Zc = 6, Vn = 8, Un = 14, Fr = 10, Jc = 12, Qc = 4, va = 1, Vi = 28, Ca = 8, Gr = 19, Hr = 15;
|
|
9050
9004
|
function si(s, e, t, i, r = A.white, n = A.black, a = 1) {
|
|
9051
|
-
return new
|
|
9005
|
+
return new q.Rect({ x: s, y: e, width: t, height: i, fill: r, stroke: n, strokeWidth: a });
|
|
9052
9006
|
}
|
|
9053
9007
|
function Ui(s, e, t, i = 12, r = "Arial", n = A.black, a = "left", o = "top") {
|
|
9054
|
-
return new
|
|
9008
|
+
return new q.Text({ text: s, x: e, y: t, fontSize: i, fontFamily: r, fill: n, align: a, verticalAlign: o });
|
|
9055
9009
|
}
|
|
9056
9010
|
function kt(s = 0, e = 0) {
|
|
9057
|
-
return new
|
|
9011
|
+
return new q.Group({ x: s, y: e });
|
|
9058
9012
|
}
|
|
9059
9013
|
function ai(s) {
|
|
9060
9014
|
s.ellipsis(!1), s.wrap("none"), s.width("auto");
|
|
9061
9015
|
}
|
|
9062
9016
|
function Zi(s, e, t, i) {
|
|
9063
9017
|
if (i) {
|
|
9064
|
-
s.add(new
|
|
9018
|
+
s.add(new q.Rect({ x: 0, y: 0, width: e, height: t, name: "clip-resize-left", listening: !0 })), s.add(new q.Rect({ x: 0, y: 0, width: e, height: t, name: "clip-resize-right", listening: !0 }));
|
|
9065
9019
|
return;
|
|
9066
9020
|
}
|
|
9067
|
-
s.add(new
|
|
9021
|
+
s.add(new q.Rect({ x: 0, y: 0, width: ue, height: t, name: "clip-resize-left" })), s.add(new q.Rect({ x: e - ue, y: 0, width: ue, height: t, name: "clip-resize-right" }));
|
|
9068
9022
|
}
|
|
9069
|
-
function
|
|
9023
|
+
function eh(s, e, t, i) {
|
|
9070
9024
|
const r = s.findOne(".clip-resize-left"), n = s.findOne(".clip-resize-right");
|
|
9071
9025
|
return !r || !n ? !1 : (r.x(0), r.y(0), r.width(ue), r.height(t), n.x(e - ue), n.y(0), n.width(ue), n.height(t), !0);
|
|
9072
9026
|
}
|
|
@@ -9095,11 +9049,11 @@ function ba(s, e, t) {
|
|
|
9095
9049
|
borderWidth: r
|
|
9096
9050
|
};
|
|
9097
9051
|
}
|
|
9098
|
-
function
|
|
9052
|
+
function th(s, e, t, i) {
|
|
9099
9053
|
const r = si(0, 0, e, t, i.background, i.border, i.borderWidth);
|
|
9100
9054
|
r.cornerRadius(Math.min(4, Math.floor(e / 2))), r.name("clip-background"), s.add(r), Zi(s, e, t, !0);
|
|
9101
9055
|
}
|
|
9102
|
-
function
|
|
9056
|
+
function ih(s, e, t) {
|
|
9103
9057
|
const i = si(0, 0, e.width, e.height, t.background, t.border, t.borderWidth);
|
|
9104
9058
|
i.cornerRadius(4), i.name("clip-background"), s.add(i), Zi(s, e.width, e.height, !1);
|
|
9105
9059
|
const r = 15, n = e.height - r - 4, a = e.width - ue * 2, o = kt(ue, 2);
|
|
@@ -9127,9 +9081,9 @@ function nh(s, e, t) {
|
|
|
9127
9081
|
);
|
|
9128
9082
|
d.height(r), ai(d), d.name("clip-label"), s.add(d), h > 0 && wa(s, e.width, e.height, e.hasSeparatedAudio);
|
|
9129
9083
|
}
|
|
9130
|
-
function
|
|
9084
|
+
function rh(s, e, t) {
|
|
9131
9085
|
const i = s.findOne(".clip-background"), r = s.findOne(".clip-cover-container"), n = s.findOne(".clip-cover-background"), a = s.findOne(".clip-covers-group"), o = s.findOne(".clip-label");
|
|
9132
|
-
if (!i || !r || !n || !a || !o || (i.width(e.width), i.height(e.height), i.fill(t.background), i.stroke(t.border), i.strokeWidth(t.borderWidth), i.cornerRadius(4), !
|
|
9086
|
+
if (!i || !r || !n || !a || !o || (i.width(e.width), i.height(e.height), i.fill(t.background), i.stroke(t.border), i.strokeWidth(t.borderWidth), i.cornerRadius(4), !eh(s, e.width, e.height)))
|
|
9133
9087
|
return !1;
|
|
9134
9088
|
const l = 15, c = e.height - l - 4, h = e.width - ue * 2;
|
|
9135
9089
|
r.x(ue), r.y(2), r.clip({ x: 0, y: 0, width: h, height: c }), n.width(h), n.height(c), n.fill(t.coverBackground), n.cornerRadius(2), Ie.renderClipCovers(
|
|
@@ -9145,7 +9099,7 @@ function sh(s, e, t) {
|
|
|
9145
9099
|
const u = s.findOne(".video-audio-status");
|
|
9146
9100
|
return u == null || u.destroy(), d > 0 && wa(s, e.width, e.height, e.hasSeparatedAudio), !0;
|
|
9147
9101
|
}
|
|
9148
|
-
function
|
|
9102
|
+
function nh(s, e) {
|
|
9149
9103
|
e.complete && e.naturalWidth > 0 || e.addEventListener("load", () => {
|
|
9150
9104
|
var t, i;
|
|
9151
9105
|
(i = (t = s.getLayer) == null ? void 0 : t.call(s)) == null || i.batchDraw();
|
|
@@ -9153,10 +9107,10 @@ function ah(s, e) {
|
|
|
9153
9107
|
}
|
|
9154
9108
|
function Ta(s, e, t, i, r) {
|
|
9155
9109
|
s.name() || s.name(r);
|
|
9156
|
-
const n =
|
|
9110
|
+
const n = jc(e);
|
|
9157
9111
|
if (!n)
|
|
9158
9112
|
return 0;
|
|
9159
|
-
const a = new
|
|
9113
|
+
const a = new q.Image({
|
|
9160
9114
|
x: 0,
|
|
9161
9115
|
y: 0,
|
|
9162
9116
|
width: t,
|
|
@@ -9164,7 +9118,7 @@ function Ta(s, e, t, i, r) {
|
|
|
9164
9118
|
image: n,
|
|
9165
9119
|
listening: !1
|
|
9166
9120
|
});
|
|
9167
|
-
return a.name(`${r}-image`), s.add(a),
|
|
9121
|
+
return a.name(`${r}-image`), s.add(a), nh(s, n), t;
|
|
9168
9122
|
}
|
|
9169
9123
|
function wa(s, e, t, i) {
|
|
9170
9124
|
const r = kt(
|
|
@@ -9175,10 +9129,10 @@ function wa(s, e, t, i) {
|
|
|
9175
9129
|
const n = kt(Math.max(0, Vi - Gr), 0), a = i ? "video-audio-status-separated" : "video-audio-status-active", o = i ? "clip-without-audio" : "clip-audio";
|
|
9176
9130
|
n.name(a), Ta(n, o, Gr, Hr, `${a}-icon`), r.add(n), s.add(r);
|
|
9177
9131
|
}
|
|
9178
|
-
function
|
|
9132
|
+
function sh(s, e, t) {
|
|
9179
9133
|
const i = si(0, 0, e.width, e.height, t.background, t.border, t.borderWidth);
|
|
9180
9134
|
i.cornerRadius(6), i.name("clip-background"), s.add(i), Zi(s, e.width, e.height, !1);
|
|
9181
|
-
const r = ue + zn, n = Math.max(0, e.width - ue * 2 - zn * 2), a =
|
|
9135
|
+
const r = ue + zn, n = Math.max(0, e.width - ue * 2 - zn * 2), a = Kc, o = kt(r, a), l = Ta(o, "clip-audio", Gr, Hr, "audio-clip-icon");
|
|
9182
9136
|
s.add(o);
|
|
9183
9137
|
const c = r + l + Vn, h = Math.max(0, n - l - Vn);
|
|
9184
9138
|
if (e.audioBadgeText && h > 0) {
|
|
@@ -9197,7 +9151,7 @@ function oh(s, e, t) {
|
|
|
9197
9151
|
const d = Ui(
|
|
9198
9152
|
e.clipName,
|
|
9199
9153
|
r,
|
|
9200
|
-
e.height -
|
|
9154
|
+
e.height - Zc - Un,
|
|
9201
9155
|
Fr,
|
|
9202
9156
|
"Arial",
|
|
9203
9157
|
t.label,
|
|
@@ -9206,14 +9160,14 @@ function oh(s, e, t) {
|
|
|
9206
9160
|
);
|
|
9207
9161
|
d.height(Un), ai(d), d.name("clip-label"), s.add(d);
|
|
9208
9162
|
}
|
|
9209
|
-
function
|
|
9163
|
+
function ah(s, e, t) {
|
|
9210
9164
|
const i = si(0, 0, e.width, e.height, t.background, t.border, t.borderWidth);
|
|
9211
9165
|
i.cornerRadius(4), i.name("clip-background"), s.add(i), Zi(s, e.width, e.height, !1);
|
|
9212
9166
|
const r = Ui(
|
|
9213
9167
|
e.clipName,
|
|
9214
|
-
|
|
9168
|
+
Qc,
|
|
9215
9169
|
0,
|
|
9216
|
-
|
|
9170
|
+
Jc,
|
|
9217
9171
|
"Arial",
|
|
9218
9172
|
t.label,
|
|
9219
9173
|
"left",
|
|
@@ -9224,26 +9178,26 @@ function lh(s, e, t) {
|
|
|
9224
9178
|
function ka(s, e) {
|
|
9225
9179
|
const t = e.width <= Ni, i = ba(e.theme, e.isSelected, e.clipType);
|
|
9226
9180
|
if (s.destroyChildren(), t) {
|
|
9227
|
-
|
|
9181
|
+
th(s, e.width, e.height, i);
|
|
9228
9182
|
return;
|
|
9229
9183
|
}
|
|
9230
9184
|
if (e.clipType === "audio") {
|
|
9231
|
-
|
|
9185
|
+
sh(s, e, i);
|
|
9232
9186
|
return;
|
|
9233
9187
|
}
|
|
9234
9188
|
if (e.clipType === "text") {
|
|
9235
|
-
|
|
9189
|
+
ah(s, e, i);
|
|
9236
9190
|
return;
|
|
9237
9191
|
}
|
|
9238
|
-
|
|
9192
|
+
ih(s, e, i);
|
|
9239
9193
|
}
|
|
9240
|
-
function
|
|
9194
|
+
function oh(s, e) {
|
|
9241
9195
|
if (e.width <= Ni || e.clipType !== "video")
|
|
9242
9196
|
return !1;
|
|
9243
9197
|
const i = ba(e.theme, e.isSelected, e.clipType);
|
|
9244
|
-
return
|
|
9198
|
+
return rh(s, e, i);
|
|
9245
9199
|
}
|
|
9246
|
-
function
|
|
9200
|
+
function lh(s, e, t, i, r, n, a, o = !1, l, c, h = "video", d = !1, u = !1, g) {
|
|
9247
9201
|
const f = kt(s, e);
|
|
9248
9202
|
return f.clip({ x: 0, y: 0, width: t, height: i }), ka(f, {
|
|
9249
9203
|
width: t,
|
|
@@ -9260,7 +9214,7 @@ function hh(s, e, t, i, r, n, a, o = !1, l, c, h = "video", d = !1, u = !1, g) {
|
|
|
9260
9214
|
deferCoverRender: u
|
|
9261
9215
|
}), f;
|
|
9262
9216
|
}
|
|
9263
|
-
function
|
|
9217
|
+
function ch(s, e, t, i, r, n, a = !1, o, l, c = "video", h = !1, d = !1, u) {
|
|
9264
9218
|
s.clip({ x: 0, y: 0, width: e, height: t });
|
|
9265
9219
|
const g = {
|
|
9266
9220
|
width: e,
|
|
@@ -9276,10 +9230,10 @@ function dh(s, e, t, i, r, n, a = !1, o, l, c = "video", h = !1, d = !1, u) {
|
|
|
9276
9230
|
hasSeparatedAudio: h,
|
|
9277
9231
|
deferCoverRender: d
|
|
9278
9232
|
};
|
|
9279
|
-
|
|
9233
|
+
oh(s, g) || ka(s, g);
|
|
9280
9234
|
}
|
|
9281
|
-
function
|
|
9282
|
-
return new
|
|
9235
|
+
function hh(s, e, t, i) {
|
|
9236
|
+
return new q.Rect({
|
|
9283
9237
|
x: s,
|
|
9284
9238
|
y: e,
|
|
9285
9239
|
width: t,
|
|
@@ -9290,7 +9244,7 @@ function uh(s, e, t, i) {
|
|
|
9290
9244
|
});
|
|
9291
9245
|
}
|
|
9292
9246
|
function Nr(s, e = Ct.stroke, t = 1) {
|
|
9293
|
-
return new
|
|
9247
|
+
return new q.Line({
|
|
9294
9248
|
points: s,
|
|
9295
9249
|
stroke: e,
|
|
9296
9250
|
strokeWidth: t,
|
|
@@ -9298,8 +9252,8 @@ function Nr(s, e = Ct.stroke, t = 1) {
|
|
|
9298
9252
|
lineJoin: "round"
|
|
9299
9253
|
});
|
|
9300
9254
|
}
|
|
9301
|
-
function
|
|
9302
|
-
return new
|
|
9255
|
+
function dh(s, e, t, i = 12, r = "Arial", n = Ct.text, a = "left", o = "top") {
|
|
9256
|
+
return new q.Text({
|
|
9303
9257
|
text: s,
|
|
9304
9258
|
x: e,
|
|
9305
9259
|
y: t,
|
|
@@ -9310,17 +9264,17 @@ function ph(s, e, t, i = 12, r = "Arial", n = Ct.text, a = "left", o = "top") {
|
|
|
9310
9264
|
verticalAlign: o
|
|
9311
9265
|
});
|
|
9312
9266
|
}
|
|
9313
|
-
function
|
|
9314
|
-
return new
|
|
9267
|
+
function uh(s = 0, e = 0) {
|
|
9268
|
+
return new q.Group({ x: s, y: e });
|
|
9315
9269
|
}
|
|
9316
|
-
function
|
|
9270
|
+
function ph(s, e, t, i, r, n, a, o) {
|
|
9317
9271
|
const l = o || i, c = a === "major" ? l * 0.6 : l * 0.3, h = Nr(
|
|
9318
9272
|
[e, t, e, t + c],
|
|
9319
9273
|
n.timeTick,
|
|
9320
9274
|
a === "major" ? 1 : 0.5
|
|
9321
9275
|
);
|
|
9322
9276
|
if (h.name("time-tick-line"), s.add(h), a === "major") {
|
|
9323
|
-
const d = t + c + 5, u =
|
|
9277
|
+
const d = t + c + 5, u = dh(
|
|
9324
9278
|
$.formatTime(r),
|
|
9325
9279
|
e,
|
|
9326
9280
|
d,
|
|
@@ -9332,8 +9286,8 @@ function fh(s, e, t, i, r, n, a, o) {
|
|
|
9332
9286
|
u.name("time-tick-text"), s.add(u);
|
|
9333
9287
|
}
|
|
9334
9288
|
}
|
|
9335
|
-
function
|
|
9336
|
-
const a =
|
|
9289
|
+
function gh(s, e, t, i, r, n) {
|
|
9290
|
+
const a = uh(e, t);
|
|
9337
9291
|
for (let o = 0; o <= i; o += n)
|
|
9338
9292
|
a.add(Nr([o, 0, o, r], an.line, 0.5));
|
|
9339
9293
|
for (let o = 0; o <= r; o += n)
|
|
@@ -9345,7 +9299,7 @@ class se {
|
|
|
9345
9299
|
* 创建舞台
|
|
9346
9300
|
*/
|
|
9347
9301
|
static createStage(e, t, i) {
|
|
9348
|
-
return new
|
|
9302
|
+
return new q.Stage({
|
|
9349
9303
|
container: e,
|
|
9350
9304
|
width: t,
|
|
9351
9305
|
height: i
|
|
@@ -9355,14 +9309,14 @@ class se {
|
|
|
9355
9309
|
* 创建图层
|
|
9356
9310
|
*/
|
|
9357
9311
|
static createLayer(e) {
|
|
9358
|
-
const t = new
|
|
9312
|
+
const t = new q.Layer();
|
|
9359
9313
|
return t.name(e), t;
|
|
9360
9314
|
}
|
|
9361
9315
|
/**
|
|
9362
9316
|
* 创建矩形
|
|
9363
9317
|
*/
|
|
9364
9318
|
static createRect(e, t, i, r, n = Ct.fill, a = Ct.stroke, o = 1) {
|
|
9365
|
-
return new
|
|
9319
|
+
return new q.Rect({
|
|
9366
9320
|
x: e,
|
|
9367
9321
|
y: t,
|
|
9368
9322
|
width: i,
|
|
@@ -9376,7 +9330,7 @@ class se {
|
|
|
9376
9330
|
* 创建文本
|
|
9377
9331
|
*/
|
|
9378
9332
|
static createText(e, t, i, r = 12, n = "Arial", a = Ct.text, o = "left", l = "top") {
|
|
9379
|
-
return new
|
|
9333
|
+
return new q.Text({
|
|
9380
9334
|
text: e,
|
|
9381
9335
|
x: t,
|
|
9382
9336
|
y: i,
|
|
@@ -9391,7 +9345,7 @@ class se {
|
|
|
9391
9345
|
* 创建线条
|
|
9392
9346
|
*/
|
|
9393
9347
|
static createLine(e, t = Ct.stroke, i = 1) {
|
|
9394
|
-
return new
|
|
9348
|
+
return new q.Line({
|
|
9395
9349
|
points: e,
|
|
9396
9350
|
stroke: t,
|
|
9397
9351
|
strokeWidth: i,
|
|
@@ -9403,7 +9357,7 @@ class se {
|
|
|
9403
9357
|
* 创建分组
|
|
9404
9358
|
*/
|
|
9405
9359
|
static createGroup(e = 0, t = 0) {
|
|
9406
|
-
return new
|
|
9360
|
+
return new q.Group({
|
|
9407
9361
|
x: e,
|
|
9408
9362
|
y: t
|
|
9409
9363
|
});
|
|
@@ -9412,11 +9366,11 @@ class se {
|
|
|
9412
9366
|
* 创建播放头
|
|
9413
9367
|
*/
|
|
9414
9368
|
static createPlayhead(e, t, i) {
|
|
9415
|
-
const r = new
|
|
9369
|
+
const r = new q.Group({ x: e, y: t }), n = this.createLine(
|
|
9416
9370
|
[0, 0, 0, i],
|
|
9417
9371
|
Gi.marker,
|
|
9418
9372
|
2
|
|
9419
|
-
), a = new
|
|
9373
|
+
), a = new q.RegularPolygon({
|
|
9420
9374
|
x: 0,
|
|
9421
9375
|
y: -10,
|
|
9422
9376
|
sides: 3,
|
|
@@ -9430,13 +9384,13 @@ class se {
|
|
|
9430
9384
|
* 绘制时间刻度
|
|
9431
9385
|
*/
|
|
9432
9386
|
static drawTimeTick(e, t, i, r, n, a, o, l) {
|
|
9433
|
-
|
|
9387
|
+
ph(e, t, i, r, n, a, o, l);
|
|
9434
9388
|
}
|
|
9435
9389
|
/**
|
|
9436
9390
|
* 绘制网格线
|
|
9437
9391
|
*/
|
|
9438
9392
|
static drawGrid(e, t, i, r, n, a) {
|
|
9439
|
-
|
|
9393
|
+
gh(e, t, i, r, n, a);
|
|
9440
9394
|
}
|
|
9441
9395
|
/**
|
|
9442
9396
|
* 清空图片缓存
|
|
@@ -9448,7 +9402,7 @@ class se {
|
|
|
9448
9402
|
* 创建片段组
|
|
9449
9403
|
*/
|
|
9450
9404
|
static createClipGroup(e, t, i, r, n, a, o, l = !1, c, h, d = "video", u = !1, g = !1, f) {
|
|
9451
|
-
return
|
|
9405
|
+
return lh(
|
|
9452
9406
|
e,
|
|
9453
9407
|
t,
|
|
9454
9408
|
i,
|
|
@@ -9469,7 +9423,7 @@ class se {
|
|
|
9469
9423
|
* 更新片段组
|
|
9470
9424
|
*/
|
|
9471
9425
|
static updateClipGroup(e, t, i, r, n, a, o = !1, l, c, h = "video", d = !1, u = !1, g) {
|
|
9472
|
-
|
|
9426
|
+
ch(
|
|
9473
9427
|
e,
|
|
9474
9428
|
t,
|
|
9475
9429
|
i,
|
|
@@ -9489,7 +9443,7 @@ class se {
|
|
|
9489
9443
|
* 创建选中效果
|
|
9490
9444
|
*/
|
|
9491
9445
|
static createSelectionEffect(e, t, i, r) {
|
|
9492
|
-
return
|
|
9446
|
+
return hh(e, t, i, r);
|
|
9493
9447
|
}
|
|
9494
9448
|
/**
|
|
9495
9449
|
* 时间到像素的转换
|
|
@@ -9513,7 +9467,7 @@ function ui(s) {
|
|
|
9513
9467
|
function pi(s) {
|
|
9514
9468
|
typeof window < "u" && (window.removeEventListener("mousemove", s.onPointerMove), window.removeEventListener("mouseup", s.onPointerEnd), window.removeEventListener("blur", s.onWindowBlur || s.onPointerEnd)), typeof document < "u" && document.removeEventListener("visibilitychange", s.onVisibilityChange);
|
|
9515
9469
|
}
|
|
9516
|
-
class
|
|
9470
|
+
class Ju {
|
|
9517
9471
|
constructor(e, t, i, r, n, a) {
|
|
9518
9472
|
p(this, "stage");
|
|
9519
9473
|
p(this, "gridLayer");
|
|
@@ -9832,11 +9786,11 @@ function Te(s, e) {
|
|
|
9832
9786
|
const t = Math.max(s, 0), i = se.timeToPixels(t, e);
|
|
9833
9787
|
return i <= Ni ? Ni : i;
|
|
9834
9788
|
}
|
|
9835
|
-
function
|
|
9789
|
+
function fh(s, e) {
|
|
9836
9790
|
const t = Se(s.startTime, s.zoom, s.scrollLeft), i = Te(s.duration, s.zoom);
|
|
9837
9791
|
return t + i > 0 && t < e;
|
|
9838
9792
|
}
|
|
9839
|
-
function
|
|
9793
|
+
function mh(s) {
|
|
9840
9794
|
for (const e of s.clips) {
|
|
9841
9795
|
const t = Se(e.startTime, s.zoom, s.scrollLeft), i = Te(e.duration, s.zoom), r = s.y >= s.trackY && s.y <= s.trackY + s.trackHeight;
|
|
9842
9796
|
if (s.x >= t && s.x <= t + Vt && r || s.x >= t + i - Vt && s.x <= t + i && r)
|
|
@@ -9938,7 +9892,7 @@ function it(s) {
|
|
|
9938
9892
|
function Zt(s) {
|
|
9939
9893
|
return !s || s.kind === "idle" || s.kind === "boxSelecting" ? null : s.kind === "pressed" ? s.operation : s.kind === "draggingResizeLeft" ? "resize-left" : s.kind === "draggingResizeRight" ? "resize-right" : "move";
|
|
9940
9894
|
}
|
|
9941
|
-
function
|
|
9895
|
+
function yh(s) {
|
|
9942
9896
|
const e = Zt(s);
|
|
9943
9897
|
return e ? e === "move" ? "grabbing" : "ew-resize" : null;
|
|
9944
9898
|
}
|
|
@@ -10014,9 +9968,9 @@ function Ii(s, e) {
|
|
|
10014
9968
|
}
|
|
10015
9969
|
} : { state: s, effects: {} };
|
|
10016
9970
|
if (e.type === "POINTER_MOVE") {
|
|
10017
|
-
const i =
|
|
10018
|
-
return s.kind === "pressed" ?
|
|
10019
|
-
state:
|
|
9971
|
+
const i = vh(s.context, e, Zt(s) || "move");
|
|
9972
|
+
return s.kind === "pressed" ? Ch(s.context, e.activationThreshold, e.clientX, e.clientY) ? {
|
|
9973
|
+
state: Sh(s.operation, i),
|
|
10020
9974
|
effects: {
|
|
10021
9975
|
updatePreview: !0
|
|
10022
9976
|
}
|
|
@@ -10053,7 +10007,7 @@ function Ii(s, e) {
|
|
|
10053
10007
|
}
|
|
10054
10008
|
};
|
|
10055
10009
|
}
|
|
10056
|
-
function
|
|
10010
|
+
function Sh(s, e) {
|
|
10057
10011
|
return s === "resize-left" ? {
|
|
10058
10012
|
kind: "draggingResizeLeft",
|
|
10059
10013
|
context: e
|
|
@@ -10065,7 +10019,7 @@ function Ch(s, e) {
|
|
|
10065
10019
|
context: e
|
|
10066
10020
|
};
|
|
10067
10021
|
}
|
|
10068
|
-
function
|
|
10022
|
+
function vh(s, e, t) {
|
|
10069
10023
|
const i = t === "move";
|
|
10070
10024
|
return {
|
|
10071
10025
|
...s,
|
|
@@ -10075,7 +10029,7 @@ function bh(s, e, t) {
|
|
|
10075
10029
|
crossTrackDragOffsetY: i ? e.localY - s.pointerStartY : 0
|
|
10076
10030
|
};
|
|
10077
10031
|
}
|
|
10078
|
-
function
|
|
10032
|
+
function Ch(s, e, t, i) {
|
|
10079
10033
|
const r = t - s.pointerStartClientX, n = i - s.pointerStartClientY;
|
|
10080
10034
|
return Math.hypot(r, n) >= Math.max(0, e);
|
|
10081
10035
|
}
|
|
@@ -10484,7 +10438,7 @@ const he = class he {
|
|
|
10484
10438
|
applyInteractionTransition(e) {
|
|
10485
10439
|
var i, r;
|
|
10486
10440
|
this.interactionState = e.state, this.syncLegacyInteractionMirror(e.state), e.effects.bindGlobalListeners && this.bindGlobalPointerListenersForDrag();
|
|
10487
|
-
const t =
|
|
10441
|
+
const t = yh(e.state);
|
|
10488
10442
|
t && this.lockPointerCursor(t), e.effects.cleanup && (this.releasePointerCursor(), this.hideDropPreview(), (i = this.onClearDropPreview) == null || i.call(this), this.updateSnapGuideLine(null), this.stopEdgeAutoScroll(), this.clearClipDragOverlay(), this.multiDragOriginalPositions.size > 0 && ((r = this.onMultiDragInteractionEnd) == null || r.call(this), this.multiDragOriginalPositions.clear())), e.effects.unbindGlobalListeners && this.unbindGlobalPointerListenersForDrag();
|
|
10489
10443
|
}
|
|
10490
10444
|
resolveInteractionState(e = this.interactionState) {
|
|
@@ -10659,7 +10613,7 @@ const he = class he {
|
|
|
10659
10613
|
if (!r || this.isDragSessionActive())
|
|
10660
10614
|
return;
|
|
10661
10615
|
const n = r.getBoundingClientRect(), a = e - n.left, o = t - n.top;
|
|
10662
|
-
r.style.cursor =
|
|
10616
|
+
r.style.cursor = mh({
|
|
10663
10617
|
clips: this.clips.map((l) => l.getClip()),
|
|
10664
10618
|
zoom: this.zoom,
|
|
10665
10619
|
scrollLeft: this.scrollLeft,
|
|
@@ -10803,7 +10757,7 @@ const he = class he {
|
|
|
10803
10757
|
updateClipVisibility(e) {
|
|
10804
10758
|
const t = this.clipGroups.get(e.id);
|
|
10805
10759
|
if (t) {
|
|
10806
|
-
const i =
|
|
10760
|
+
const i = fh({
|
|
10807
10761
|
startTime: e.startTime,
|
|
10808
10762
|
duration: e.duration,
|
|
10809
10763
|
zoom: this.zoom,
|
|
@@ -11044,15 +10998,15 @@ const he = class he {
|
|
|
11044
10998
|
if (G === y.id) continue;
|
|
11045
10999
|
const J = this.clips.find((ne) => ne.getClip().id === G);
|
|
11046
11000
|
if (!J) continue;
|
|
11047
|
-
const N = Math.max(0, O.startTime + k),
|
|
11048
|
-
if (
|
|
11001
|
+
const N = Math.max(0, O.startTime + k), j = (C = this.clipGroups) == null ? void 0 : C.get(G);
|
|
11002
|
+
if (j) {
|
|
11049
11003
|
const ne = Se(N, this.zoom, this.scrollLeft);
|
|
11050
|
-
|
|
11004
|
+
j.x(ne), j.y(this.resolveClipRenderY(G, n.crossTrackDragOffsetY)), j.visible(
|
|
11051
11005
|
ne + Te(O.duration, this.zoom) > 0 && ne < this.layer.width()
|
|
11052
11006
|
);
|
|
11053
11007
|
const W = J.getClip();
|
|
11054
11008
|
se.updateClipGroup(
|
|
11055
|
-
|
|
11009
|
+
j,
|
|
11056
11010
|
Te(W.duration, this.zoom),
|
|
11057
11011
|
this.trackHeight - 4,
|
|
11058
11012
|
this.getClipDisplayLabel(W),
|
|
@@ -11356,7 +11310,7 @@ const he = class he {
|
|
|
11356
11310
|
};
|
|
11357
11311
|
p(he, "DEFAULT_DRAG_ACTIVATION_THRESHOLD", 4), p(he, "DEFAULT_CLIP_SNAP_THRESHOLD", 8), p(he, "AUTO_SCROLL_EDGE_THRESHOLD", 48), p(he, "AUTO_SCROLL_MAX_SPEED", 18), p(he, "MIN_CLIP_DURATION_MS", 1);
|
|
11358
11312
|
let $r = he;
|
|
11359
|
-
class
|
|
11313
|
+
class Qu {
|
|
11360
11314
|
constructor(e, t, i, r, n, a) {
|
|
11361
11315
|
p(this, "layer");
|
|
11362
11316
|
p(this, "playheadGroup");
|
|
@@ -11372,7 +11326,7 @@ class tp {
|
|
|
11372
11326
|
[0, 0, 0, r],
|
|
11373
11327
|
this.theme.playhead,
|
|
11374
11328
|
1
|
|
11375
|
-
), this.playheadGroup.add(this.playheadLine), this.playheadTriangle = new
|
|
11329
|
+
), this.playheadGroup.add(this.playheadLine), this.playheadTriangle = new q.RegularPolygon({
|
|
11376
11330
|
x: 0,
|
|
11377
11331
|
y: 5,
|
|
11378
11332
|
sides: 3,
|
|
@@ -11434,7 +11388,7 @@ class tp {
|
|
|
11434
11388
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11435
11389
|
*/
|
|
11436
11390
|
const Oi = globalThis, en = Oi.ShadowRoot && (Oi.ShadyCSS === void 0 || Oi.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, xa = Symbol(), Wn = /* @__PURE__ */ new WeakMap();
|
|
11437
|
-
let
|
|
11391
|
+
let bh = class {
|
|
11438
11392
|
constructor(e, t, i) {
|
|
11439
11393
|
if (this._$cssResult$ = !0, i !== xa) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
11440
11394
|
this.cssText = e, this.t = t;
|
|
@@ -11452,7 +11406,7 @@ let wh = class {
|
|
|
11452
11406
|
return this.cssText;
|
|
11453
11407
|
}
|
|
11454
11408
|
};
|
|
11455
|
-
const
|
|
11409
|
+
const Th = (s) => new bh(typeof s == "string" ? s : s + "", void 0, xa), wh = (s, e) => {
|
|
11456
11410
|
if (en) s.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
|
11457
11411
|
else for (const t of e) {
|
|
11458
11412
|
const i = document.createElement("style"), r = Oi.litNonce;
|
|
@@ -11461,17 +11415,17 @@ const kh = (s) => new wh(typeof s == "string" ? s : s + "", void 0, xa), xh = (s
|
|
|
11461
11415
|
}, Yn = en ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((e) => {
|
|
11462
11416
|
let t = "";
|
|
11463
11417
|
for (const i of e.cssRules) t += i.cssText;
|
|
11464
|
-
return
|
|
11418
|
+
return Th(t);
|
|
11465
11419
|
})(s) : s;
|
|
11466
11420
|
/**
|
|
11467
11421
|
* @license
|
|
11468
11422
|
* Copyright 2017 Google LLC
|
|
11469
11423
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11470
11424
|
*/
|
|
11471
|
-
const { is:
|
|
11425
|
+
const { is: kh, defineProperty: xh, getOwnPropertyDescriptor: Ph, getOwnPropertyNames: _h, getOwnPropertySymbols: Ih, getPrototypeOf: Ah } = Object, Ke = globalThis, Xn = Ke.trustedTypes, Eh = Xn ? Xn.emptyScript : "", hr = Ke.reactiveElementPolyfillSupport, Jt = (s, e) => s, zr = { toAttribute(s, e) {
|
|
11472
11426
|
switch (e) {
|
|
11473
11427
|
case Boolean:
|
|
11474
|
-
s = s ?
|
|
11428
|
+
s = s ? Eh : null;
|
|
11475
11429
|
break;
|
|
11476
11430
|
case Object:
|
|
11477
11431
|
case Array:
|
|
@@ -11496,7 +11450,7 @@ const { is: Ph, defineProperty: _h, getOwnPropertyDescriptor: Ih, getOwnProperty
|
|
|
11496
11450
|
}
|
|
11497
11451
|
}
|
|
11498
11452
|
return t;
|
|
11499
|
-
} }, Pa = (s, e) => !
|
|
11453
|
+
} }, Pa = (s, e) => !kh(s, e), qn = { attribute: !0, type: String, converter: zr, reflect: !1, useDefault: !1, hasChanged: Pa };
|
|
11500
11454
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Ke.litPropertyMetadata ?? (Ke.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
11501
11455
|
let vt = class extends HTMLElement {
|
|
11502
11456
|
static addInitializer(e) {
|
|
@@ -11505,14 +11459,14 @@ let vt = class extends HTMLElement {
|
|
|
11505
11459
|
static get observedAttributes() {
|
|
11506
11460
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
11507
11461
|
}
|
|
11508
|
-
static createProperty(e, t =
|
|
11462
|
+
static createProperty(e, t = qn) {
|
|
11509
11463
|
if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
|
|
11510
11464
|
const i = Symbol(), r = this.getPropertyDescriptor(e, i, t);
|
|
11511
|
-
r !== void 0 &&
|
|
11465
|
+
r !== void 0 && xh(this.prototype, e, r);
|
|
11512
11466
|
}
|
|
11513
11467
|
}
|
|
11514
11468
|
static getPropertyDescriptor(e, t, i) {
|
|
11515
|
-
const { get: r, set: n } =
|
|
11469
|
+
const { get: r, set: n } = Ph(this.prototype, e) ?? { get() {
|
|
11516
11470
|
return this[t];
|
|
11517
11471
|
}, set(a) {
|
|
11518
11472
|
this[t] = a;
|
|
@@ -11523,17 +11477,17 @@ let vt = class extends HTMLElement {
|
|
|
11523
11477
|
}, configurable: !0, enumerable: !0 };
|
|
11524
11478
|
}
|
|
11525
11479
|
static getPropertyOptions(e) {
|
|
11526
|
-
return this.elementProperties.get(e) ??
|
|
11480
|
+
return this.elementProperties.get(e) ?? qn;
|
|
11527
11481
|
}
|
|
11528
11482
|
static _$Ei() {
|
|
11529
11483
|
if (this.hasOwnProperty(Jt("elementProperties"))) return;
|
|
11530
|
-
const e =
|
|
11484
|
+
const e = Ah(this);
|
|
11531
11485
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
11532
11486
|
}
|
|
11533
11487
|
static finalize() {
|
|
11534
11488
|
if (this.hasOwnProperty(Jt("finalized"))) return;
|
|
11535
11489
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Jt("properties"))) {
|
|
11536
|
-
const t = this.properties, i = [...
|
|
11490
|
+
const t = this.properties, i = [..._h(t), ...Ih(t)];
|
|
11537
11491
|
for (const r of i) this.createProperty(r, t[r]);
|
|
11538
11492
|
}
|
|
11539
11493
|
const e = this[Symbol.metadata];
|
|
@@ -11582,7 +11536,7 @@ let vt = class extends HTMLElement {
|
|
|
11582
11536
|
}
|
|
11583
11537
|
createRenderRoot() {
|
|
11584
11538
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
11585
|
-
return
|
|
11539
|
+
return wh(e, this.constructor.elementStyles), e;
|
|
11586
11540
|
}
|
|
11587
11541
|
connectedCallback() {
|
|
11588
11542
|
var e;
|
|
@@ -11707,14 +11661,14 @@ vt.elementStyles = [], vt.shadowRootOptions = { mode: "open" }, vt[Jt("elementPr
|
|
|
11707
11661
|
* Copyright 2017 Google LLC
|
|
11708
11662
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11709
11663
|
*/
|
|
11710
|
-
const Qt = globalThis,
|
|
11664
|
+
const Qt = globalThis, jn = (s) => s, Yi = Qt.trustedTypes, Kn = Yi ? Yi.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, _a = "$lit$", qe = `lit$${Math.random().toFixed(9).slice(2)}$`, Ia = "?" + qe, Rh = `<${Ia}>`, ct = document, oi = () => ct.createComment(""), li = (s) => s === null || typeof s != "object" && typeof s != "function", tn = Array.isArray, Lh = (s) => tn(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", dr = `[
|
|
11711
11665
|
\f\r]`, Ot = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Zn = /-->/g, Jn = />/g, rt = RegExp(`>|${dr}(?:([^\\s"'>=/]+)(${dr}*=${dr}*(?:[^
|
|
11712
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Qn = /'/g, es = /"/g, Aa = /^(?:script|style|textarea|title)$/i,
|
|
11666
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Qn = /'/g, es = /"/g, Aa = /^(?:script|style|textarea|title)$/i, Dh = (s) => (e, ...t) => ({ _$litType$: s, strings: e, values: t }), K = Dh(1), ht = Symbol.for("lit-noChange"), ce = Symbol.for("lit-nothing"), ts = /* @__PURE__ */ new WeakMap(), ot = ct.createTreeWalker(ct, 129);
|
|
11713
11667
|
function Ea(s, e) {
|
|
11714
11668
|
if (!tn(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
11715
11669
|
return Kn !== void 0 ? Kn.createHTML(e) : e;
|
|
11716
11670
|
}
|
|
11717
|
-
const
|
|
11671
|
+
const Mh = (s, e) => {
|
|
11718
11672
|
const t = s.length - 1, i = [];
|
|
11719
11673
|
let r, n = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", a = Ot;
|
|
11720
11674
|
for (let o = 0; o < t; o++) {
|
|
@@ -11722,7 +11676,7 @@ const Bh = (s, e) => {
|
|
|
11722
11676
|
let c, h, d = -1, u = 0;
|
|
11723
11677
|
for (; u < l.length && (a.lastIndex = u, h = a.exec(l), h !== null); ) u = a.lastIndex, a === Ot ? h[1] === "!--" ? a = Zn : h[1] !== void 0 ? a = Jn : h[2] !== void 0 ? (Aa.test(h[2]) && (r = RegExp("</" + h[2], "g")), a = rt) : h[3] !== void 0 && (a = rt) : a === rt ? h[0] === ">" ? (a = r ?? Ot, d = -1) : h[1] === void 0 ? d = -2 : (d = a.lastIndex - h[2].length, c = h[1], a = h[3] === void 0 ? rt : h[3] === '"' ? es : Qn) : a === es || a === Qn ? a = rt : a === Zn || a === Jn ? a = Ot : (a = rt, r = void 0);
|
|
11724
11678
|
const g = a === rt && s[o + 1].startsWith("/>") ? " " : "";
|
|
11725
|
-
n += a === Ot ? l +
|
|
11679
|
+
n += a === Ot ? l + Rh : d >= 0 ? (i.push(c), l.slice(0, d) + _a + l.slice(d) + qe + g) : l + qe + (d === -2 ? o : g);
|
|
11726
11680
|
}
|
|
11727
11681
|
return [Ea(s, n + (s[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
|
|
11728
11682
|
};
|
|
@@ -11731,7 +11685,7 @@ class ci {
|
|
|
11731
11685
|
let r;
|
|
11732
11686
|
this.parts = [];
|
|
11733
11687
|
let n = 0, a = 0;
|
|
11734
|
-
const o = e.length - 1, l = this.parts, [c, h] =
|
|
11688
|
+
const o = e.length - 1, l = this.parts, [c, h] = Mh(e, t);
|
|
11735
11689
|
if (this.el = ci.createElement(c, i), ot.currentNode = this.el.content, t === 2 || t === 3) {
|
|
11736
11690
|
const d = this.el.content.firstChild;
|
|
11737
11691
|
d.replaceWith(...d.childNodes);
|
|
@@ -11739,11 +11693,11 @@ class ci {
|
|
|
11739
11693
|
for (; (r = ot.nextNode()) !== null && l.length < o; ) {
|
|
11740
11694
|
if (r.nodeType === 1) {
|
|
11741
11695
|
if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(_a)) {
|
|
11742
|
-
const u = h[a++], g = r.getAttribute(d).split(
|
|
11743
|
-
l.push({ type: 1, index: n, name: f[2], strings: g, ctor: f[1] === "." ?
|
|
11744
|
-
} else d.startsWith(
|
|
11696
|
+
const u = h[a++], g = r.getAttribute(d).split(qe), f = /([.?@])?(.*)/.exec(u);
|
|
11697
|
+
l.push({ type: 1, index: n, name: f[2], strings: g, ctor: f[1] === "." ? Bh : f[1] === "?" ? Fh : f[1] === "@" ? Gh : Ji }), r.removeAttribute(d);
|
|
11698
|
+
} else d.startsWith(qe) && (l.push({ type: 6, index: n }), r.removeAttribute(d));
|
|
11745
11699
|
if (Aa.test(r.tagName)) {
|
|
11746
|
-
const d = r.textContent.split(
|
|
11700
|
+
const d = r.textContent.split(qe), u = d.length - 1;
|
|
11747
11701
|
if (u > 0) {
|
|
11748
11702
|
r.textContent = Yi ? Yi.emptyScript : "";
|
|
11749
11703
|
for (let g = 0; g < u; g++) r.append(d[g], oi()), ot.nextNode(), l.push({ type: 2, index: ++n });
|
|
@@ -11753,7 +11707,7 @@ class ci {
|
|
|
11753
11707
|
} else if (r.nodeType === 8) if (r.data === Ia) l.push({ type: 2, index: n });
|
|
11754
11708
|
else {
|
|
11755
11709
|
let d = -1;
|
|
11756
|
-
for (; (d = r.data.indexOf(
|
|
11710
|
+
for (; (d = r.data.indexOf(qe, d + 1)) !== -1; ) l.push({ type: 7, index: n }), d += qe.length - 1;
|
|
11757
11711
|
}
|
|
11758
11712
|
n++;
|
|
11759
11713
|
}
|
|
@@ -11770,7 +11724,7 @@ function xt(s, e, t = s, i) {
|
|
|
11770
11724
|
const n = li(e) ? void 0 : e._$litDirective$;
|
|
11771
11725
|
return (r == null ? void 0 : r.constructor) !== n && ((o = r == null ? void 0 : r._$AO) == null || o.call(r, !1), n === void 0 ? r = void 0 : (r = new n(s), r._$AT(s, t, i)), i !== void 0 ? (t._$Co ?? (t._$Co = []))[i] = r : t._$Cl = r), r !== void 0 && (e = xt(s, r._$AS(s, e.values), r, i)), e;
|
|
11772
11726
|
}
|
|
11773
|
-
class
|
|
11727
|
+
class Oh {
|
|
11774
11728
|
constructor(e, t) {
|
|
11775
11729
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
11776
11730
|
}
|
|
@@ -11787,7 +11741,7 @@ class Fh {
|
|
|
11787
11741
|
for (; l !== void 0; ) {
|
|
11788
11742
|
if (a === l.index) {
|
|
11789
11743
|
let c;
|
|
11790
|
-
l.type === 2 ? c = new gi(n, n.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(n, l.name, l.strings, this, e) : l.type === 6 && (c = new
|
|
11744
|
+
l.type === 2 ? c = new gi(n, n.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(n, l.name, l.strings, this, e) : l.type === 6 && (c = new Hh(n, this, e)), this._$AV.push(c), l = i[++o];
|
|
11791
11745
|
}
|
|
11792
11746
|
a !== (l == null ? void 0 : l.index) && (n = ot.nextNode(), a++);
|
|
11793
11747
|
}
|
|
@@ -11818,7 +11772,7 @@ class gi {
|
|
|
11818
11772
|
return this._$AB;
|
|
11819
11773
|
}
|
|
11820
11774
|
_$AI(e, t = this) {
|
|
11821
|
-
e = xt(this, e, t), li(e) ? e === ce || e == null || e === "" ? (this._$AH !== ce && this._$AR(), this._$AH = ce) : e !== this._$AH && e !== ht && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) :
|
|
11775
|
+
e = xt(this, e, t), li(e) ? e === ce || e == null || e === "" ? (this._$AH !== ce && this._$AR(), this._$AH = ce) : e !== this._$AH && e !== ht && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Lh(e) ? this.k(e) : this._(e);
|
|
11822
11776
|
}
|
|
11823
11777
|
O(e) {
|
|
11824
11778
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -11834,7 +11788,7 @@ class gi {
|
|
|
11834
11788
|
const { values: t, _$litType$: i } = e, r = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = ci.createElement(Ea(i.h, i.h[0]), this.options)), i);
|
|
11835
11789
|
if (((n = this._$AH) == null ? void 0 : n._$AD) === r) this._$AH.p(t);
|
|
11836
11790
|
else {
|
|
11837
|
-
const a = new
|
|
11791
|
+
const a = new Oh(r, this), o = a.u(this.options);
|
|
11838
11792
|
a.p(t), this.T(o), this._$AH = a;
|
|
11839
11793
|
}
|
|
11840
11794
|
}
|
|
@@ -11852,8 +11806,8 @@ class gi {
|
|
|
11852
11806
|
_$AR(e = this._$AA.nextSibling, t) {
|
|
11853
11807
|
var i;
|
|
11854
11808
|
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, t); e !== this._$AB; ) {
|
|
11855
|
-
const r =
|
|
11856
|
-
|
|
11809
|
+
const r = jn(e).nextSibling;
|
|
11810
|
+
jn(e).remove(), e = r;
|
|
11857
11811
|
}
|
|
11858
11812
|
}
|
|
11859
11813
|
setConnected(e) {
|
|
@@ -11886,7 +11840,7 @@ class Ji {
|
|
|
11886
11840
|
e === ce ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
11887
11841
|
}
|
|
11888
11842
|
}
|
|
11889
|
-
class
|
|
11843
|
+
class Bh extends Ji {
|
|
11890
11844
|
constructor() {
|
|
11891
11845
|
super(...arguments), this.type = 3;
|
|
11892
11846
|
}
|
|
@@ -11894,7 +11848,7 @@ class Gh extends Ji {
|
|
|
11894
11848
|
this.element[this.name] = e === ce ? void 0 : e;
|
|
11895
11849
|
}
|
|
11896
11850
|
}
|
|
11897
|
-
class
|
|
11851
|
+
class Fh extends Ji {
|
|
11898
11852
|
constructor() {
|
|
11899
11853
|
super(...arguments), this.type = 4;
|
|
11900
11854
|
}
|
|
@@ -11902,7 +11856,7 @@ class Hh extends Ji {
|
|
|
11902
11856
|
this.element.toggleAttribute(this.name, !!e && e !== ce);
|
|
11903
11857
|
}
|
|
11904
11858
|
}
|
|
11905
|
-
class
|
|
11859
|
+
class Gh extends Ji {
|
|
11906
11860
|
constructor(e, t, i, r, n) {
|
|
11907
11861
|
super(e, t, i, r, n), this.type = 5;
|
|
11908
11862
|
}
|
|
@@ -11916,7 +11870,7 @@ class Nh extends Ji {
|
|
|
11916
11870
|
typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e);
|
|
11917
11871
|
}
|
|
11918
11872
|
}
|
|
11919
|
-
class
|
|
11873
|
+
class Hh {
|
|
11920
11874
|
constructor(e, t, i) {
|
|
11921
11875
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = i;
|
|
11922
11876
|
}
|
|
@@ -11979,8 +11933,8 @@ pr == null || pr({ LitElement: Bi });
|
|
|
11979
11933
|
* Copyright 2017 Google LLC
|
|
11980
11934
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11981
11935
|
*/
|
|
11982
|
-
const
|
|
11983
|
-
class
|
|
11936
|
+
const Nh = { CHILD: 2 }, $h = (s) => (...e) => ({ _$litDirective$: s, values: e });
|
|
11937
|
+
class zh {
|
|
11984
11938
|
constructor(e) {
|
|
11985
11939
|
}
|
|
11986
11940
|
get _$AU() {
|
|
@@ -12001,9 +11955,9 @@ class Uh {
|
|
|
12001
11955
|
* Copyright 2017 Google LLC
|
|
12002
11956
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12003
11957
|
*/
|
|
12004
|
-
class Vr extends
|
|
11958
|
+
class Vr extends zh {
|
|
12005
11959
|
constructor(e) {
|
|
12006
|
-
if (super(e), this.it = ce, e.type !==
|
|
11960
|
+
if (super(e), this.it = ce, e.type !== Nh.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
12007
11961
|
}
|
|
12008
11962
|
render(e) {
|
|
12009
11963
|
if (e === ce || e == null) return this._t = void 0, this.it = e;
|
|
@@ -12016,7 +11970,7 @@ class Vr extends Uh {
|
|
|
12016
11970
|
}
|
|
12017
11971
|
}
|
|
12018
11972
|
Vr.directiveName = "unsafeHTML", Vr.resultType = 1;
|
|
12019
|
-
const ei =
|
|
11973
|
+
const ei = $h(Vr);
|
|
12020
11974
|
function Ae(s) {
|
|
12021
11975
|
return s === "text" ? Qi.TEXT : s === "video" ? Qi.VIDEO : Qi.AUDIO;
|
|
12022
11976
|
}
|
|
@@ -12031,7 +11985,7 @@ function Bt(s, e, t) {
|
|
|
12031
11985
|
function is(s, e) {
|
|
12032
11986
|
return s.reduce((t, i) => t + Ae(i.type), e);
|
|
12033
11987
|
}
|
|
12034
|
-
function
|
|
11988
|
+
function Vh(s, e) {
|
|
12035
11989
|
let t = e;
|
|
12036
11990
|
return s.map((i) => {
|
|
12037
11991
|
const r = Ae(i.type), n = {
|
|
@@ -12065,7 +12019,7 @@ class Ra {
|
|
|
12065
12019
|
!this.container || !this.viewModel || (hi(this.renderTemplate(this.viewModel), this.container), this.afterRender(this.container, this.viewModel));
|
|
12066
12020
|
}
|
|
12067
12021
|
}
|
|
12068
|
-
class
|
|
12022
|
+
class Uh extends Ra {
|
|
12069
12023
|
renderTemplate(e) {
|
|
12070
12024
|
const {
|
|
12071
12025
|
theme: t,
|
|
@@ -12151,7 +12105,7 @@ class Yh extends Ra {
|
|
|
12151
12105
|
return e ? e.replace(/width="[^"]*"/, `width="${t}"`).replace(/height="[^"]*"/, `height="${t}"`) : "";
|
|
12152
12106
|
}
|
|
12153
12107
|
}
|
|
12154
|
-
class
|
|
12108
|
+
class Wh {
|
|
12155
12109
|
constructor(e, t, i, r) {
|
|
12156
12110
|
p(this, "container");
|
|
12157
12111
|
p(this, "tracks", []);
|
|
@@ -12160,7 +12114,7 @@ class Xh {
|
|
|
12160
12114
|
p(this, "timeScaleHeight", 40);
|
|
12161
12115
|
p(this, "includeTimeScaleSpacer", !0);
|
|
12162
12116
|
p(this, "scrollTop", 0);
|
|
12163
|
-
p(this, "renderer", new
|
|
12117
|
+
p(this, "renderer", new Uh());
|
|
12164
12118
|
p(this, "iconCache", /* @__PURE__ */ new Map());
|
|
12165
12119
|
p(this, "onMuteTrack");
|
|
12166
12120
|
var n, a, o, l, c, h;
|
|
@@ -12208,7 +12162,7 @@ class Xh {
|
|
|
12208
12162
|
this.renderer.destroy(), this.container.innerHTML = "";
|
|
12209
12163
|
}
|
|
12210
12164
|
}
|
|
12211
|
-
const
|
|
12165
|
+
const Yh = {
|
|
12212
12166
|
visual: "画面",
|
|
12213
12167
|
audio: "音频",
|
|
12214
12168
|
text: "文本",
|
|
@@ -12258,7 +12212,7 @@ const jh = {
|
|
|
12258
12212
|
voiceLoadingIcon: "clip-config-voice-loading-icon",
|
|
12259
12213
|
voiceLoadingText: "clip-config-voice-loading-text"
|
|
12260
12214
|
};
|
|
12261
|
-
class
|
|
12215
|
+
class Xh extends Ra {
|
|
12262
12216
|
renderTemplate(e) {
|
|
12263
12217
|
const { clip: t, theme: i, emptyStateIconSvg: r } = e;
|
|
12264
12218
|
return K`
|
|
@@ -12569,7 +12523,7 @@ class qh extends Ra {
|
|
|
12569
12523
|
].join(";")}
|
|
12570
12524
|
@click=${() => e.callbacks.onTabChange(i)}
|
|
12571
12525
|
>
|
|
12572
|
-
${
|
|
12526
|
+
${Yh[i]}
|
|
12573
12527
|
</button>
|
|
12574
12528
|
`;
|
|
12575
12529
|
})}
|
|
@@ -13162,14 +13116,14 @@ class qh extends Ra {
|
|
|
13162
13116
|
return e ? e.replace(/width="[^"]*"/, `width="${t}"`).replace(/height="[^"]*"/, `height="${t}"`) : "";
|
|
13163
13117
|
}
|
|
13164
13118
|
}
|
|
13165
|
-
const
|
|
13119
|
+
const qh = {
|
|
13166
13120
|
...fe
|
|
13167
13121
|
};
|
|
13168
|
-
class
|
|
13122
|
+
class jh {
|
|
13169
13123
|
constructor(e) {
|
|
13170
13124
|
p(this, "container");
|
|
13171
13125
|
p(this, "theme");
|
|
13172
|
-
p(this, "renderer", new
|
|
13126
|
+
p(this, "renderer", new Xh());
|
|
13173
13127
|
p(this, "onClipUpdate");
|
|
13174
13128
|
p(this, "onGenerateVoice");
|
|
13175
13129
|
p(this, "voiceCatalog");
|
|
@@ -13191,7 +13145,7 @@ class Zh {
|
|
|
13191
13145
|
p(this, "handleVoicePreviewEnded", () => {
|
|
13192
13146
|
this.stopVoicePreview();
|
|
13193
13147
|
});
|
|
13194
|
-
this.container = e.container, this.theme = e.theme ??
|
|
13148
|
+
this.container = e.container, this.theme = e.theme ?? qh, this.voiceCatalog = e.voiceCatalog ?? [], this.onClipUpdate = e.onClipUpdate, this.onGenerateVoice = e.onGenerateVoice, this.iconCache.set("OmAi-camera", be("OmAi-camera")), this.iconCache.set("OmAi-accept", be("OmAi-accept")), this.iconCache.set("OmAi-loading", be("OmAi-loading")), this.iconCache.set("OmAi-text", be("OmAi-text")), this.renderer.mount(this.container), this.render();
|
|
13195
13149
|
}
|
|
13196
13150
|
setClip(e) {
|
|
13197
13151
|
var n;
|
|
@@ -13432,7 +13386,7 @@ class Zh {
|
|
|
13432
13386
|
this.currentClip = { ...this.currentClip, textStyle: r }, this.render(), this.onClipUpdate(this.currentClip.id, { textStyle: r });
|
|
13433
13387
|
}
|
|
13434
13388
|
}
|
|
13435
|
-
function
|
|
13389
|
+
function Kh(s) {
|
|
13436
13390
|
return s === "text" ? "文本" : s === "video" ? "视频" : "音频";
|
|
13437
13391
|
}
|
|
13438
13392
|
class rs {
|
|
@@ -13545,7 +13499,7 @@ class rs {
|
|
|
13545
13499
|
return {
|
|
13546
13500
|
status: "create_track",
|
|
13547
13501
|
trackType: e.type,
|
|
13548
|
-
suggestedTrackName: `${
|
|
13502
|
+
suggestedTrackName: `${Kh(e.type)}轨道 ${r}`,
|
|
13549
13503
|
insertionPlacement: e.type === "text" || e.type === "video" ? "top_of_type_region" : "bottom_of_type_region"
|
|
13550
13504
|
};
|
|
13551
13505
|
}
|
|
@@ -14116,7 +14070,7 @@ class ss {
|
|
|
14116
14070
|
} : null;
|
|
14117
14071
|
}
|
|
14118
14072
|
}
|
|
14119
|
-
const
|
|
14073
|
+
const Zh = [
|
|
14120
14074
|
"type",
|
|
14121
14075
|
"externalId",
|
|
14122
14076
|
"src",
|
|
@@ -14140,8 +14094,8 @@ const Qh = [
|
|
|
14140
14094
|
"ttsVoiceId",
|
|
14141
14095
|
"ttsVoiceName",
|
|
14142
14096
|
"ttsFollowTextUpdates"
|
|
14143
|
-
],
|
|
14144
|
-
function
|
|
14097
|
+
], Jh = /* @__PURE__ */ new Set(["thumbnails"]);
|
|
14098
|
+
function Qh(s, e) {
|
|
14145
14099
|
return Object.is(s, e) ? !0 : s === void 0 || e === void 0 ? !1 : typeof s == "object" && typeof e == "object" ? JSON.stringify(s) === JSON.stringify(e) : !1;
|
|
14146
14100
|
}
|
|
14147
14101
|
class as {
|
|
@@ -14230,20 +14184,20 @@ class as {
|
|
|
14230
14184
|
t.startTime
|
|
14231
14185
|
);
|
|
14232
14186
|
const a = {}, o = {};
|
|
14233
|
-
return
|
|
14234
|
-
|
|
14235
|
-
}), Object.keys(a).length === 0 || Object.keys(a).every((c) =>
|
|
14187
|
+
return Zh.forEach((c) => {
|
|
14188
|
+
Qh(e[c], t[c]) || (a[c] = e[c], o[c] = t[c]);
|
|
14189
|
+
}), Object.keys(a).length === 0 || Object.keys(a).every((c) => Jh.has(c)) ? null : this.history.createUpdateClipAction(e.id, a, o);
|
|
14236
14190
|
}
|
|
14237
14191
|
}
|
|
14238
14192
|
function Ai(s) {
|
|
14239
14193
|
var e;
|
|
14240
14194
|
s.notifySelectionChange(), (e = s.emitSelectionChangeEvent) == null || e.call(s), s.emitSelectedClipChangeIfNeeded(), s.handleClipChange();
|
|
14241
14195
|
}
|
|
14242
|
-
function
|
|
14196
|
+
function ed(s) {
|
|
14243
14197
|
var e, t, i;
|
|
14244
14198
|
s.notifySelectionChange(), (e = s.emitSelectionChangeEvent) == null || e.call(s), (t = s.reloadClipThumbnailsIfNeeded) == null || t.call(s), (i = s.checkTrackDurationChange) == null || i.call(s), s.emitSelectedClipChangeIfNeeded(), s.handleClipChange();
|
|
14245
14199
|
}
|
|
14246
|
-
function
|
|
14200
|
+
function td(s, e, t = !1) {
|
|
14247
14201
|
if (!e || !t || s.type === "audio")
|
|
14248
14202
|
return !1;
|
|
14249
14203
|
const i = e.duration !== s.duration, r = e.startTimeAtSource !== s.startTimeAtSource || e.endTimeAtSource !== s.endTimeAtSource;
|
|
@@ -14252,13 +14206,13 @@ function rd(s, e, t = !1) {
|
|
|
14252
14206
|
function La(s) {
|
|
14253
14207
|
return s.length === 0 ? 0 : Math.max(...s.map((e) => e.endTime));
|
|
14254
14208
|
}
|
|
14255
|
-
function
|
|
14209
|
+
function id(s, e) {
|
|
14256
14210
|
return e < La(s);
|
|
14257
14211
|
}
|
|
14258
|
-
function
|
|
14212
|
+
function rd(s) {
|
|
14259
14213
|
return s.currentCanPlay === s.nextCanPlay ? s.currentCanPlay : (s.setCanPlay(s.nextCanPlay), s.currentCanPlay && !s.nextCanPlay && s.playState === "playing" && (s.pauseTimeline(), s.setCurrentTime(s.clipEndTime || 1)), s.emitCanPlayChange(s.nextCanPlay), s.nextCanPlay);
|
|
14260
14214
|
}
|
|
14261
|
-
function
|
|
14215
|
+
function nd(s) {
|
|
14262
14216
|
const e = !s.id && s.startTime > 0;
|
|
14263
14217
|
return {
|
|
14264
14218
|
shouldJumpToTime: e,
|
|
@@ -14270,7 +14224,7 @@ function Fi(s) {
|
|
|
14270
14224
|
var e;
|
|
14271
14225
|
return s.applied ? (s.isExecutingHistoryAction || (e = s.recordHistory) == null || e.call(s), s.applyEffects(), !0) : !1;
|
|
14272
14226
|
}
|
|
14273
|
-
function
|
|
14227
|
+
function sd(s) {
|
|
14274
14228
|
return Fi({
|
|
14275
14229
|
applied: s.applied,
|
|
14276
14230
|
isExecutingHistoryAction: s.isExecutingHistoryAction,
|
|
@@ -14290,18 +14244,18 @@ function od(s) {
|
|
|
14290
14244
|
applyEffects: s.applyEffects
|
|
14291
14245
|
});
|
|
14292
14246
|
}
|
|
14293
|
-
function
|
|
14247
|
+
function ad(s) {
|
|
14294
14248
|
var e;
|
|
14295
14249
|
s.isExecutingHistoryAction || (e = s.recordSplitClip) == null || e.call(s, s.clip1, s.clip2), s.emitClipUpdated(s.clip1), s.emitClipAdded(s.clip2), s.applyEffects();
|
|
14296
14250
|
}
|
|
14297
|
-
const
|
|
14251
|
+
const od = {
|
|
14298
14252
|
aac: "audio/aac",
|
|
14299
14253
|
m4a: "audio/mp4",
|
|
14300
14254
|
mp3: "audio/mpeg",
|
|
14301
14255
|
ogg: "audio/ogg",
|
|
14302
14256
|
wav: "audio/wav"
|
|
14303
14257
|
};
|
|
14304
|
-
function
|
|
14258
|
+
function ld(s) {
|
|
14305
14259
|
var e, t;
|
|
14306
14260
|
try {
|
|
14307
14261
|
const i = typeof location < "u" ? location.href : "http://localhost/";
|
|
@@ -14310,8 +14264,8 @@ function hd(s) {
|
|
|
14310
14264
|
return ((t = (s.split(/[?#]/, 1)[0] ?? "").split(".").pop()) == null ? void 0 : t.toLowerCase()) ?? "";
|
|
14311
14265
|
}
|
|
14312
14266
|
}
|
|
14313
|
-
function
|
|
14314
|
-
const e =
|
|
14267
|
+
function cd(s) {
|
|
14268
|
+
const e = ld(s.src);
|
|
14315
14269
|
if (e === "mp4")
|
|
14316
14270
|
return {
|
|
14317
14271
|
url: s.src,
|
|
@@ -14324,14 +14278,14 @@ function dd(s) {
|
|
|
14324
14278
|
mimeType: "application/vnd.apple.mpegurl",
|
|
14325
14279
|
kind: "hls-fmp4"
|
|
14326
14280
|
};
|
|
14327
|
-
const t =
|
|
14281
|
+
const t = od[e];
|
|
14328
14282
|
return t ? {
|
|
14329
14283
|
url: s.src,
|
|
14330
14284
|
mimeType: t,
|
|
14331
14285
|
kind: "audio"
|
|
14332
14286
|
} : null;
|
|
14333
14287
|
}
|
|
14334
|
-
class
|
|
14288
|
+
class hd {
|
|
14335
14289
|
constructor(e) {
|
|
14336
14290
|
p(this, "container", null);
|
|
14337
14291
|
p(this, "statusElement", null);
|
|
@@ -14377,18 +14331,18 @@ const gr = {
|
|
|
14377
14331
|
x: 0.5,
|
|
14378
14332
|
y: 0.5,
|
|
14379
14333
|
scale: 1
|
|
14380
|
-
},
|
|
14334
|
+
}, dd = 0.1, ud = 8;
|
|
14381
14335
|
function fr(s, e) {
|
|
14382
14336
|
return typeof s == "number" && Number.isFinite(s) ? s : e;
|
|
14383
14337
|
}
|
|
14384
|
-
function
|
|
14385
|
-
return Math.min(
|
|
14338
|
+
function pd(s) {
|
|
14339
|
+
return Math.min(ud, Math.max(dd, s));
|
|
14386
14340
|
}
|
|
14387
14341
|
function Pe(s) {
|
|
14388
14342
|
return {
|
|
14389
14343
|
x: fr(s == null ? void 0 : s.x, gr.x),
|
|
14390
14344
|
y: fr(s == null ? void 0 : s.y, gr.y),
|
|
14391
|
-
scale:
|
|
14345
|
+
scale: pd(fr(s == null ? void 0 : s.scale, gr.scale))
|
|
14392
14346
|
};
|
|
14393
14347
|
}
|
|
14394
14348
|
function rn(s, e, t = 1e-4) {
|
|
@@ -14437,7 +14391,7 @@ function Ma(s, e, t, i) {
|
|
|
14437
14391
|
scale: r.scale
|
|
14438
14392
|
});
|
|
14439
14393
|
}
|
|
14440
|
-
function
|
|
14394
|
+
function gd(s, e, t, i, r, n) {
|
|
14441
14395
|
const a = Pe(n), o = Math.max(r.width / 2, 1), l = Math.max(r.height / 2, 1), c = Math.abs(t - s) / o, h = Math.abs(i - e) / l;
|
|
14442
14396
|
return Pe({
|
|
14443
14397
|
x: a.x,
|
|
@@ -14451,7 +14405,7 @@ function ls(s) {
|
|
|
14451
14405
|
const e = Number.parseFloat(s);
|
|
14452
14406
|
return Number.isFinite(e) ? e : 0;
|
|
14453
14407
|
}
|
|
14454
|
-
class
|
|
14408
|
+
class fd {
|
|
14455
14409
|
constructor(e = {}) {
|
|
14456
14410
|
p(this, "frameElement", null);
|
|
14457
14411
|
p(this, "overlayElement", null);
|
|
@@ -14572,7 +14526,7 @@ class yd {
|
|
|
14572
14526
|
);
|
|
14573
14527
|
else {
|
|
14574
14528
|
const l = this.interaction.startTransform.x * this.interaction.frameSize.width, c = this.interaction.startTransform.y * this.interaction.frameSize.height;
|
|
14575
|
-
r =
|
|
14529
|
+
r = gd(
|
|
14576
14530
|
l,
|
|
14577
14531
|
c,
|
|
14578
14532
|
i.x,
|
|
@@ -14638,8 +14592,8 @@ class yd {
|
|
|
14638
14592
|
t && (t.style.cursor = e || "");
|
|
14639
14593
|
}
|
|
14640
14594
|
}
|
|
14641
|
-
const
|
|
14642
|
-
function
|
|
14595
|
+
const md = 0, yd = 2, Sd = 250, vd = 2, Cd = 120, cs = "Arial, sans-serif";
|
|
14596
|
+
function bd(s, e) {
|
|
14643
14597
|
const t = Math.max(0, Math.round(s));
|
|
14644
14598
|
if (t <= 0)
|
|
14645
14599
|
return "none";
|
|
@@ -14655,24 +14609,24 @@ function Oa(s) {
|
|
|
14655
14609
|
function mr(s) {
|
|
14656
14610
|
return `"${Oa(s)}"`;
|
|
14657
14611
|
}
|
|
14658
|
-
function
|
|
14612
|
+
function Td(s) {
|
|
14659
14613
|
return Es(s, Is);
|
|
14660
14614
|
}
|
|
14661
|
-
function
|
|
14615
|
+
function wd(s, e) {
|
|
14662
14616
|
return !Ut(s.mode) || !e ? s : {
|
|
14663
|
-
mode:
|
|
14617
|
+
mode: Be.mode,
|
|
14664
14618
|
width: e.width,
|
|
14665
14619
|
height: e.height
|
|
14666
14620
|
};
|
|
14667
14621
|
}
|
|
14668
|
-
function
|
|
14622
|
+
function Oe(s) {
|
|
14669
14623
|
return s.getAttribute("src") || s.currentSrc || s.src || "";
|
|
14670
14624
|
}
|
|
14671
14625
|
function nn(s) {
|
|
14672
14626
|
return s.getAttribute("src") || "";
|
|
14673
14627
|
}
|
|
14674
14628
|
function nt(s, e) {
|
|
14675
|
-
const t = nn(s), i = s.currentSrc || "", r = s.src || "", n =
|
|
14629
|
+
const t = nn(s), i = s.currentSrc || "", r = s.src || "", n = Oe(s);
|
|
14676
14630
|
return {
|
|
14677
14631
|
desiredSource: e || null,
|
|
14678
14632
|
srcAttribute: t || null,
|
|
@@ -14699,7 +14653,7 @@ function ze(s) {
|
|
|
14699
14653
|
} catch {
|
|
14700
14654
|
}
|
|
14701
14655
|
}
|
|
14702
|
-
function
|
|
14656
|
+
function kd(s) {
|
|
14703
14657
|
var e;
|
|
14704
14658
|
try {
|
|
14705
14659
|
const t = s.play();
|
|
@@ -14725,10 +14679,10 @@ function ds(s) {
|
|
|
14725
14679
|
const e = Number.parseFloat(s);
|
|
14726
14680
|
return Number.isFinite(e) ? e : 0;
|
|
14727
14681
|
}
|
|
14728
|
-
function
|
|
14682
|
+
function xd() {
|
|
14729
14683
|
return typeof performance < "u" && typeof performance.now == "function" ? Math.round(performance.now()) : Date.now();
|
|
14730
14684
|
}
|
|
14731
|
-
function
|
|
14685
|
+
function Pd(s) {
|
|
14732
14686
|
const e = s.buffered;
|
|
14733
14687
|
if (!e || typeof e.length != "number" || e.length <= 0)
|
|
14734
14688
|
return null;
|
|
@@ -14740,10 +14694,10 @@ function Id(s) {
|
|
|
14740
14694
|
}
|
|
14741
14695
|
function oe(s) {
|
|
14742
14696
|
return {
|
|
14743
|
-
tsMs:
|
|
14697
|
+
tsMs: xd(),
|
|
14744
14698
|
currentTime: Number.isFinite(s.currentTime) ? Number(s.currentTime.toFixed(3)) : null,
|
|
14745
14699
|
duration: Number.isFinite(s.duration) ? Number(s.duration.toFixed(3)) : null,
|
|
14746
|
-
currentSrc:
|
|
14700
|
+
currentSrc: Oe(s) || null,
|
|
14747
14701
|
srcAttribute: nn(s) || null,
|
|
14748
14702
|
elementSrc: s.src || null,
|
|
14749
14703
|
rawCurrentSrc: s.currentSrc || null,
|
|
@@ -14752,7 +14706,7 @@ function oe(s) {
|
|
|
14752
14706
|
paused: typeof s.paused == "boolean" ? s.paused : null,
|
|
14753
14707
|
ended: typeof s.ended == "boolean" ? s.ended : null,
|
|
14754
14708
|
playbackRate: typeof s.playbackRate == "number" ? Number(s.playbackRate.toFixed(3)) : null,
|
|
14755
|
-
bufferedEnd:
|
|
14709
|
+
bufferedEnd: Pd(s),
|
|
14756
14710
|
videoWidth: Xi(s) ? s.videoWidth : null,
|
|
14757
14711
|
videoHeight: Xi(s) ? s.videoHeight : null,
|
|
14758
14712
|
error: s.error ? {
|
|
@@ -14761,7 +14715,7 @@ function oe(s) {
|
|
|
14761
14715
|
} : null
|
|
14762
14716
|
};
|
|
14763
14717
|
}
|
|
14764
|
-
function
|
|
14718
|
+
function _d(s, e, t) {
|
|
14765
14719
|
const i = e || s.clip.src || "";
|
|
14766
14720
|
switch (t) {
|
|
14767
14721
|
case "abort":
|
|
@@ -14770,7 +14724,7 @@ function Ad(s, e, t) {
|
|
|
14770
14724
|
case "error":
|
|
14771
14725
|
case "reconcile":
|
|
14772
14726
|
case "stalled":
|
|
14773
|
-
return `${s.clip.id}:${i}:${Math.floor(s.mediaTime /
|
|
14727
|
+
return `${s.clip.id}:${i}:${Math.floor(s.mediaTime / Sd)}`;
|
|
14774
14728
|
default:
|
|
14775
14729
|
return `${s.clip.id}:${i}`;
|
|
14776
14730
|
}
|
|
@@ -14778,11 +14732,11 @@ function Ad(s, e, t) {
|
|
|
14778
14732
|
function Ve(s) {
|
|
14779
14733
|
return typeof (s == null ? void 0 : s.then) == "function";
|
|
14780
14734
|
}
|
|
14781
|
-
function
|
|
14735
|
+
function Id(s, e) {
|
|
14782
14736
|
var t;
|
|
14783
14737
|
return ((t = s.entry) == null ? void 0 : t.clip.id) === e;
|
|
14784
14738
|
}
|
|
14785
|
-
function
|
|
14739
|
+
function Ad(s, e) {
|
|
14786
14740
|
var u;
|
|
14787
14741
|
const t = s.activeClips.filter((g) => g.trackType !== "text"), i = s.nextClips.filter((g) => g.trackType !== "text"), r = s.interactionMode ?? "steady", n = new Map(t.map((g) => [g.trackId, g])), a = new Map(i.map((g) => [g.trackId, g])), o = /* @__PURE__ */ new Map(), l = t.filter((g) => g.trackType === "video" && g.hasVisual).sort((g, f) => g.trackOrder - f.trackOrder), c = l.length > 1, h = ((u = l[0]) == null ? void 0 : u.trackId) ?? null, d = (g, f) => !a.has(g) || r !== "steady" && c ? !1 : c ? s.playState === "playing" && f === "video" && g === h : s.playState !== "playing" || t.length <= 1;
|
|
14788
14742
|
return e.forEach((g) => {
|
|
@@ -14818,7 +14772,7 @@ function Rd(s, e) {
|
|
|
14818
14772
|
};
|
|
14819
14773
|
}).sort((g, f) => g.order - f.order);
|
|
14820
14774
|
}
|
|
14821
|
-
class
|
|
14775
|
+
class Ed {
|
|
14822
14776
|
constructor(e = {}, t = {}) {
|
|
14823
14777
|
p(this, "container", null);
|
|
14824
14778
|
p(this, "rootElement", null);
|
|
@@ -14866,7 +14820,7 @@ class Ld {
|
|
|
14866
14820
|
p(this, "boundTextPreviewWindowBlur", () => {
|
|
14867
14821
|
this.finishTextPreviewDrag(!1);
|
|
14868
14822
|
});
|
|
14869
|
-
p(this, "requestedAspectRatio", { ...
|
|
14823
|
+
p(this, "requestedAspectRatio", { ...Be });
|
|
14870
14824
|
p(this, "resolvedAutoAspectRatio", null);
|
|
14871
14825
|
p(this, "aspectRatioProbe", null);
|
|
14872
14826
|
p(this, "aspectRatioProbeSrc", null);
|
|
@@ -14877,10 +14831,10 @@ class Ld {
|
|
|
14877
14831
|
p(this, "isSyncProjecting", !1);
|
|
14878
14832
|
p(this, "deferredPreloadSlotKeys", /* @__PURE__ */ new Set());
|
|
14879
14833
|
p(this, "deferredPreloadFlushScheduled", !1);
|
|
14880
|
-
this.callbacks = e, this.dependencies = t, this.pendingOverlayRenderer = new
|
|
14834
|
+
this.callbacks = e, this.dependencies = t, this.pendingOverlayRenderer = new hd(() => {
|
|
14881
14835
|
var i, r;
|
|
14882
14836
|
(r = (i = this.callbacks).onPendingPreviewRetry) == null || r.call(i);
|
|
14883
|
-
}), this.transformOverlay = new
|
|
14837
|
+
}), this.transformOverlay = new fd({
|
|
14884
14838
|
onPreviewTransformChange: this.handlePreviewTransformChange.bind(this),
|
|
14885
14839
|
onPreviewTransformCommit: (i, r) => {
|
|
14886
14840
|
var n, a;
|
|
@@ -14914,7 +14868,7 @@ class Ld {
|
|
|
14914
14868
|
clipId: ((i = e.entry) == null ? void 0 : i.clip.id) ?? null,
|
|
14915
14869
|
slotKey: `${e.trackId}:${e.role}`,
|
|
14916
14870
|
desiredSourceUrl: e.desiredSource,
|
|
14917
|
-
actualSourceUrl:
|
|
14871
|
+
actualSourceUrl: Oe(e.element) || null,
|
|
14918
14872
|
extra: {
|
|
14919
14873
|
role: e.role,
|
|
14920
14874
|
kind: e.kind,
|
|
@@ -14997,7 +14951,7 @@ class Ld {
|
|
|
14997
14951
|
kind: l.current.kind,
|
|
14998
14952
|
order: ((h = l.current.entry) == null ? void 0 : h.trackOrder) ?? ((d = l.preload.entry) == null ? void 0 : d.trackOrder) ?? 1e4 + c
|
|
14999
14953
|
};
|
|
15000
|
-
}), n =
|
|
14954
|
+
}), n = Ad(e, t).map((o) => this.applyTrackPlan(o)).filter((o) => Ve(o));
|
|
15001
14955
|
if (this.isSyncProjecting = n.length > 0, this.refreshVisualLayout(), this.refreshRuntimeState(), n.length === 0) {
|
|
15002
14956
|
this.refreshVisualLayout(), this.refreshRuntimeState();
|
|
15003
14957
|
return;
|
|
@@ -15019,7 +14973,7 @@ class Ld {
|
|
|
15019
14973
|
this.requestedAspectRatio = st(e), this.updateFrameLayout();
|
|
15020
14974
|
}
|
|
15021
14975
|
getAspectRatio() {
|
|
15022
|
-
return
|
|
14976
|
+
return wd(this.requestedAspectRatio, this.resolvedAutoAspectRatio);
|
|
15023
14977
|
}
|
|
15024
14978
|
createMediaElement(e, t) {
|
|
15025
14979
|
const i = this.dependencies.createMediaElement, r = i ? i(e, t) : document.createElement(e === "video" ? "video" : "audio");
|
|
@@ -15095,7 +15049,7 @@ class Ld {
|
|
|
15095
15049
|
extra: {
|
|
15096
15050
|
active: a.isActive
|
|
15097
15051
|
}
|
|
15098
|
-
})), a.isBuffering = a.isActive && !a.element.paused, a.consecutiveStalledCount += 1, this.refreshRuntimeState(), a.isActive && a.consecutiveStalledCount >=
|
|
15052
|
+
})), a.isBuffering = a.isActive && !a.element.paused, a.consecutiveStalledCount += 1, this.refreshRuntimeState(), a.isActive && a.consecutiveStalledCount >= vd && this.recoverSlot(a, "stalled");
|
|
15099
15053
|
}, u = () => {
|
|
15100
15054
|
if (!a.entry) {
|
|
15101
15055
|
a.isSeeking = !1, a.phase = "idle", this.refreshRuntimeState();
|
|
@@ -15214,7 +15168,7 @@ class Ld {
|
|
|
15214
15168
|
}
|
|
15215
15169
|
applyTrackPlan(e) {
|
|
15216
15170
|
let t = this.getTrackSlots(e.trackId, e.kind);
|
|
15217
|
-
e.current.entry &&
|
|
15171
|
+
e.current.entry && Id(t.preload, e.current.entry.clip.id) && (this.swapTrackSlots(e.trackId), t = this.getTrackSlots(e.trackId, e.kind));
|
|
15218
15172
|
const i = this.applySlotTarget(t.current, e.current), r = this.applySlotTarget(t.preload, e.preload);
|
|
15219
15173
|
if (Ve(i) || Ve(r))
|
|
15220
15174
|
return Promise.all([
|
|
@@ -15224,7 +15178,7 @@ class Ld {
|
|
|
15224
15178
|
});
|
|
15225
15179
|
}
|
|
15226
15180
|
applySlotTarget(e, t) {
|
|
15227
|
-
const i = ++e.applyToken, r = e.entry, n =
|
|
15181
|
+
const i = ++e.applyToken, r = e.entry, n = Oe(e.element) || null;
|
|
15228
15182
|
if (e.entry = t.entry, e.requestedPlayState = t.playState, e.isActive = t.role === "current" && !!t.entry, e.errorMessage = t.entry ? e.errorMessage : null, e.isBuffering = t.entry ? e.isBuffering : !1, e.isSeeking = t.entry ? e.isSeeking : !1, e.consecutiveStalledCount = t.entry ? e.consecutiveStalledCount : 0, !t.entry) {
|
|
15229
15183
|
this.deferredPreloadSlotKeys.delete(this.getSlotKey(e)), (r || n) && this.emitDiagnostic("info", "playback", "slot.cleared", this.buildSlotTraceData(e, {
|
|
15230
15184
|
message: "Preview slot cleared",
|
|
@@ -15274,7 +15228,7 @@ class Ld {
|
|
|
15274
15228
|
e.phase === "binding" && (e.phase = e.isActive ? "active" : "primed"), e.isLoading = !1, e.isBuffering = !1, e.errorMessage = null;
|
|
15275
15229
|
}
|
|
15276
15230
|
resolveDesiredSource(e, t, i) {
|
|
15277
|
-
const r = this.dependencies.previewSourceResolver ??
|
|
15231
|
+
const r = this.dependencies.previewSourceResolver ?? cd, n = this.dependencies.sourceMediaRegistry;
|
|
15278
15232
|
let a = null;
|
|
15279
15233
|
const o = () => (a !== null || (e.resolveToken += 1, a = e.resolveToken, e.phase = "binding", e.isLoading = !0, this.emitDiagnostic("info", "resource", "source.resolve.pending", this.buildSlotTraceData(e, {
|
|
15280
15234
|
message: "Preview source resolving",
|
|
@@ -15393,7 +15347,7 @@ class Ld {
|
|
|
15393
15347
|
this.emitDiagnostic("debug", "resource", r, this.buildSlotTraceData(e, {
|
|
15394
15348
|
message: n,
|
|
15395
15349
|
desiredSourceUrl: o,
|
|
15396
|
-
actualSourceUrl:
|
|
15350
|
+
actualSourceUrl: Oe(e.element) || null,
|
|
15397
15351
|
mediaState: oe(e.element),
|
|
15398
15352
|
extra: {
|
|
15399
15353
|
stableSourceUrl: t,
|
|
@@ -15415,9 +15369,9 @@ class Ld {
|
|
|
15415
15369
|
};
|
|
15416
15370
|
}
|
|
15417
15371
|
slotNeedsRecovery(e, t) {
|
|
15418
|
-
const i = nn(e.element), r = i ||
|
|
15372
|
+
const i = nn(e.element), r = i || Oe(e.element);
|
|
15419
15373
|
let n = !1, a = null;
|
|
15420
|
-
e.forceRecover ? (n = !0, a = "force-recover") : i ? r !== t ? (n = !0, a = "source-mismatch") : (typeof e.element.networkState == "number" ? e.element.networkState : null) ===
|
|
15374
|
+
e.forceRecover ? (n = !0, a = "force-recover") : i ? r !== t ? (n = !0, a = "source-mismatch") : (typeof e.element.networkState == "number" ? e.element.networkState : null) === md && (n = !(e.isLoading || e.phase === "binding" || e.phase === "recovering"), a = n ? "network-empty" : "network-empty-binding-in-flight") : (n = !0, a = "missing-src-attribute");
|
|
15421
15375
|
const o = n && (a === "source-mismatch" || e.isActive && e.phase !== "idle" && e.phase !== "binding");
|
|
15422
15376
|
return this.emitDiagnostic(o ? "warn" : "debug", "recovery", "slot.recovery-check", this.buildSlotTraceData(e, {
|
|
15423
15377
|
message: n ? "Preview slot needs recovery" : "Preview slot source is reusable",
|
|
@@ -15470,9 +15424,9 @@ class Ld {
|
|
|
15470
15424
|
stableSourceUrl: e.stableSourceUrl ?? r,
|
|
15471
15425
|
url: r,
|
|
15472
15426
|
objectUrl: e.objectUrl
|
|
15473
|
-
} : r, o = a.url, l =
|
|
15427
|
+
} : r, o = a.url, l = _d(e.entry, o, t);
|
|
15474
15428
|
if (e.recoveryKey === l) {
|
|
15475
|
-
if (e.retryCount >=
|
|
15429
|
+
if (e.retryCount >= yd) {
|
|
15476
15430
|
this.isBackgroundPreloadSlot(e) ? this.parkPreloadSlot(e, "媒体恢复失败,请等待下一次重建", "retries-exhausted") : this.failSlot(e, e.entry, "媒体恢复失败,请刷新重试");
|
|
15477
15431
|
return;
|
|
15478
15432
|
}
|
|
@@ -15497,7 +15451,7 @@ class Ld {
|
|
|
15497
15451
|
desiredSource: o,
|
|
15498
15452
|
mediaState: oe(e.element)
|
|
15499
15453
|
});
|
|
15500
|
-
const c =
|
|
15454
|
+
const c = Oe(e.element), h = nt(e.element, o), d = !!c || t !== "reconcile" || e.retryCount > 1;
|
|
15501
15455
|
ze(e.element), e.expectedEmptiedEvents = d ? 2 : 1, e.stableSourceUrl = a.stableSourceUrl, this.rememberSlotObjectUrl(e, a.objectUrl), d && (e.element.removeAttribute("src"), $e(e.element)), e.element.setAttribute("src", o), $e(e.element), this.emitDiagnostic("info", "resource", "source.assigned", this.buildSlotTraceData(e, {
|
|
15502
15456
|
message: "Preview source assigned",
|
|
15503
15457
|
desiredSourceUrl: o,
|
|
@@ -15543,7 +15497,7 @@ class Ld {
|
|
|
15543
15497
|
}
|
|
15544
15498
|
deferPreloadTarget(e, t, i, r) {
|
|
15545
15499
|
const n = i.url;
|
|
15546
|
-
e.desiredSource = n, this.rememberSlotObjectUrl(e, i.objectUrl), e.forceRecover = !0, e.isLoading = !1, e.isSeeking = !1, e.isBuffering = !1, e.errorMessage = null, e.element.getAttribute("src") && e.element.getAttribute("src") !== n && (ze(e.element), e.element.removeAttribute("src"), $e(e.element)),
|
|
15500
|
+
e.desiredSource = n, this.rememberSlotObjectUrl(e, i.objectUrl), e.forceRecover = !0, e.isLoading = !1, e.isSeeking = !1, e.isBuffering = !1, e.errorMessage = null, e.element.getAttribute("src") && e.element.getAttribute("src") !== n && (ze(e.element), e.element.removeAttribute("src"), $e(e.element)), Oe(e.element) || (e.phase = "idle"), this.deferredPreloadSlotKeys.add(this.getSlotKey(e)), this.emitDiagnostic("info", "recovery", "preload.recovery.deferred", this.buildSlotTraceData(e, {
|
|
15547
15501
|
message: "Deferred preload recovery until active current media settles",
|
|
15548
15502
|
desiredSourceUrl: n,
|
|
15549
15503
|
extra: {
|
|
@@ -15703,7 +15657,7 @@ class Ld {
|
|
|
15703
15657
|
speed: i,
|
|
15704
15658
|
sourceState: l
|
|
15705
15659
|
}
|
|
15706
|
-
})),
|
|
15660
|
+
})), kd(e.element);
|
|
15707
15661
|
} else
|
|
15708
15662
|
this.emitDiagnostic("debug", "playback", "media.pause.requested", this.buildSlotTraceData(e, {
|
|
15709
15663
|
message: "Media pause requested",
|
|
@@ -15846,7 +15800,7 @@ class Ld {
|
|
|
15846
15800
|
let t = this.isAspectRatioProbeLoading ? 1 : 0, i = 0, r = !1, n = null, a = !1, o = !1, l = !1, c = !1, h = !1, d = !1;
|
|
15847
15801
|
for (const { current: I, preload: E } of this.trackSlots.values())
|
|
15848
15802
|
for (const k of [I, E]) {
|
|
15849
|
-
const z =
|
|
15803
|
+
const z = Oe(k.element) || null;
|
|
15850
15804
|
e.push({
|
|
15851
15805
|
trackId: k.trackId,
|
|
15852
15806
|
role: k.role,
|
|
@@ -15904,7 +15858,7 @@ class Ld {
|
|
|
15904
15858
|
this.bufferingVisibleTimeoutId = setTimeout(() => {
|
|
15905
15859
|
var r, n;
|
|
15906
15860
|
this.bufferingVisibleTimeoutId = null, !this.isBuffering && (this.isBuffering = !0, this.refreshPendingOverlay(), (n = (r = this.callbacks).onBufferingStateChange) == null || n.call(r, !0));
|
|
15907
|
-
},
|
|
15861
|
+
}, Cd);
|
|
15908
15862
|
return;
|
|
15909
15863
|
}
|
|
15910
15864
|
this.clearBufferingVisibleTimeout(), this.isBuffering && (this.isBuffering = !1, this.refreshPendingOverlay(), (i = (t = this.callbacks).onBufferingStateChange) == null || i.call(t, !1));
|
|
@@ -15966,7 +15920,7 @@ class Ld {
|
|
|
15966
15920
|
}
|
|
15967
15921
|
applyTextPreviewEntry(e) {
|
|
15968
15922
|
const t = ii(e.entry.clip.textStyle), i = e.entry.clip.textContent || e.entry.clip.name || "";
|
|
15969
|
-
e.element.textContent = i, e.element.style.color = t.color, e.element.style.fontFamily = this.getTextPreviewFontFamily(), e.element.style.fontSize = `${t.fontSize}px`, e.element.style.textShadow =
|
|
15923
|
+
e.element.textContent = i, e.element.style.color = t.color, e.element.style.fontFamily = this.getTextPreviewFontFamily(), e.element.style.fontSize = `${t.fontSize}px`, e.element.style.textShadow = bd(t.strokeWidth, t.strokeColor), e.element.style.padding = `0 ${t.paddingX}px`, e.element.style.textAlign = "left", e.element.style.zIndex = String(2e3 - e.entry.trackOrder);
|
|
15970
15924
|
}
|
|
15971
15925
|
refreshTextPreviewLayout() {
|
|
15972
15926
|
const e = this.getFrameSize();
|
|
@@ -16148,7 +16102,7 @@ class Ld {
|
|
|
16148
16102
|
};
|
|
16149
16103
|
}
|
|
16150
16104
|
getTextPreviewBaselineMetrics(e) {
|
|
16151
|
-
const t =
|
|
16105
|
+
const t = Td(this.getAspectRatio());
|
|
16152
16106
|
return t.width <= 0 || t.height <= 0 || e.width <= 0 || e.height <= 0 ? {
|
|
16153
16107
|
width: t.width,
|
|
16154
16108
|
height: t.height,
|
|
@@ -16179,7 +16133,7 @@ class Ld {
|
|
|
16179
16133
|
return ((t = this.transientVisualTransform) == null ? void 0 : t.clipId) === e.clip.id ? this.transientVisualTransform.transform : Pe(e.clip.visualTransform);
|
|
16180
16134
|
}
|
|
16181
16135
|
}
|
|
16182
|
-
class
|
|
16136
|
+
class Rd extends Ed {
|
|
16183
16137
|
constructor(e = {}) {
|
|
16184
16138
|
super(e.callbacks, {
|
|
16185
16139
|
diagnostics: e.diagnostics,
|
|
@@ -16197,10 +16151,10 @@ class Dd extends Ld {
|
|
|
16197
16151
|
this.detach();
|
|
16198
16152
|
}
|
|
16199
16153
|
}
|
|
16200
|
-
function
|
|
16154
|
+
function Ld(s) {
|
|
16201
16155
|
return "dom";
|
|
16202
16156
|
}
|
|
16203
|
-
const
|
|
16157
|
+
const Dd = 36e5, Md = 3e5;
|
|
16204
16158
|
function Ur(s) {
|
|
16205
16159
|
return s.length === 0 ? 0 : s.reduce((e, t) => Math.max(e, t.startTime + t.duration), 0);
|
|
16206
16160
|
}
|
|
@@ -16208,7 +16162,7 @@ function us(s) {
|
|
|
16208
16162
|
return Ur(s);
|
|
16209
16163
|
}
|
|
16210
16164
|
function ps(s) {
|
|
16211
|
-
return Math.max(s +
|
|
16165
|
+
return Math.max(s + Md, Dd);
|
|
16212
16166
|
}
|
|
16213
16167
|
class gs {
|
|
16214
16168
|
constructor(e = {}) {
|
|
@@ -16236,10 +16190,10 @@ class gs {
|
|
|
16236
16190
|
this.listeners.clear();
|
|
16237
16191
|
}
|
|
16238
16192
|
}
|
|
16239
|
-
function
|
|
16193
|
+
function Od(s) {
|
|
16240
16194
|
return [...s].sort((e, t) => e.order - t.order);
|
|
16241
16195
|
}
|
|
16242
|
-
function
|
|
16196
|
+
function Bd(s) {
|
|
16243
16197
|
return [...s].sort((e, t) => e.startTime - t.startTime);
|
|
16244
16198
|
}
|
|
16245
16199
|
function yr(s, e, t) {
|
|
@@ -16256,15 +16210,15 @@ function yr(s, e, t) {
|
|
|
16256
16210
|
hasAudio: r
|
|
16257
16211
|
};
|
|
16258
16212
|
}
|
|
16259
|
-
class
|
|
16213
|
+
class Fd {
|
|
16260
16214
|
resolveActiveClipsAtTime(e, t) {
|
|
16261
16215
|
return this.resolvePlaybackPlan(e, t).activeClips;
|
|
16262
16216
|
}
|
|
16263
16217
|
resolvePlaybackPlan(e, t) {
|
|
16264
|
-
const i =
|
|
16218
|
+
const i = Od(e), r = [], n = [];
|
|
16265
16219
|
let a = null;
|
|
16266
16220
|
for (const o of i) {
|
|
16267
|
-
const l =
|
|
16221
|
+
const l = Bd(o.clips), c = l.find((d) => t >= d.startTime && t < d.endTime);
|
|
16268
16222
|
if (c) {
|
|
16269
16223
|
const d = c.startTimeAtSource + (t - c.startTime);
|
|
16270
16224
|
r.push(yr(o, c, d));
|
|
@@ -16282,7 +16236,7 @@ class Hd {
|
|
|
16282
16236
|
};
|
|
16283
16237
|
}
|
|
16284
16238
|
}
|
|
16285
|
-
class
|
|
16239
|
+
class Gd {
|
|
16286
16240
|
constructor(e) {
|
|
16287
16241
|
p(this, "options");
|
|
16288
16242
|
p(this, "_previewSession");
|
|
@@ -16368,8 +16322,8 @@ class Nd {
|
|
|
16368
16322
|
};
|
|
16369
16323
|
}
|
|
16370
16324
|
}
|
|
16371
|
-
const
|
|
16372
|
-
class
|
|
16325
|
+
const Hd = 8e3, Nd = 1e3;
|
|
16326
|
+
class $d {
|
|
16373
16327
|
constructor(e) {
|
|
16374
16328
|
p(this, "callbacks");
|
|
16375
16329
|
p(this, "pendingTimeoutMs");
|
|
@@ -16379,7 +16333,7 @@ class Vd {
|
|
|
16379
16333
|
p(this, "_previewAwaitingMedia", !1);
|
|
16380
16334
|
p(this, "_pendingPreviewState", null);
|
|
16381
16335
|
p(this, "_nextPendingPreviewSyncRequestId", 0);
|
|
16382
|
-
this.callbacks = e.callbacks, this.pendingTimeoutMs = e.pendingTimeoutMs ??
|
|
16336
|
+
this.callbacks = e.callbacks, this.pendingTimeoutMs = e.pendingTimeoutMs ?? Hd, this.failedOverlayDelayMs = e.failedOverlayDelayMs ?? Nd;
|
|
16383
16337
|
}
|
|
16384
16338
|
get previewSourceLoadingCount() {
|
|
16385
16339
|
return this._previewSourceLoadingCount;
|
|
@@ -16501,7 +16455,7 @@ class Vd {
|
|
|
16501
16455
|
(e = this._pendingPreviewState) != null && e.failedTimeoutId && (clearTimeout(this._pendingPreviewState.failedTimeoutId), this._pendingPreviewState.failedTimeoutId = null);
|
|
16502
16456
|
}
|
|
16503
16457
|
}
|
|
16504
|
-
const
|
|
16458
|
+
const zd = [
|
|
16505
16459
|
"togglePlay",
|
|
16506
16460
|
"deleteSelectedClips",
|
|
16507
16461
|
"copySelectedClips",
|
|
@@ -16511,7 +16465,7 @@ const Ud = [
|
|
|
16511
16465
|
"splitCurrentClip",
|
|
16512
16466
|
"undo",
|
|
16513
16467
|
"redo"
|
|
16514
|
-
],
|
|
16468
|
+
], Vd = {
|
|
16515
16469
|
togglePlay: ["Space"],
|
|
16516
16470
|
deleteSelectedClips: ["Delete", "Backspace"],
|
|
16517
16471
|
copySelectedClips: ["Mod+C"],
|
|
@@ -16522,17 +16476,17 @@ const Ud = [
|
|
|
16522
16476
|
undo: ["Mod+Z"],
|
|
16523
16477
|
redo: ["Mod+Shift+Z", "Ctrl+Y"]
|
|
16524
16478
|
};
|
|
16525
|
-
function
|
|
16479
|
+
function Ud() {
|
|
16526
16480
|
return typeof navigator > "u" ? !1 : /Mac|iPhone|iPad|iPod/i.test(navigator.platform);
|
|
16527
16481
|
}
|
|
16528
|
-
function
|
|
16482
|
+
function Wd(s) {
|
|
16529
16483
|
const e = s.trim();
|
|
16530
16484
|
if (!e)
|
|
16531
16485
|
return null;
|
|
16532
16486
|
const t = e.toLowerCase();
|
|
16533
16487
|
return t === "space" || t === "spacebar" ? "Space" : t === "delete" ? "Delete" : t === "backspace" ? "Backspace" : /^[a-z]$/i.test(e) ? `Key${e.toUpperCase()}` : /^key[a-z]$/i.test(e) ? `Key${e.slice(-1).toUpperCase()}` : /^[0-9]$/.test(e) ? `Digit${e}` : /^digit[0-9]$/i.test(e) ? `Digit${e.slice(-1)}` : null;
|
|
16534
16488
|
}
|
|
16535
|
-
function
|
|
16489
|
+
function Yd(s, e, t) {
|
|
16536
16490
|
const i = e.split("+").map((c) => c.trim()).filter((c) => c.length > 0);
|
|
16537
16491
|
if (i.length === 0)
|
|
16538
16492
|
return null;
|
|
@@ -16559,7 +16513,7 @@ function jd(s, e, t) {
|
|
|
16559
16513
|
l = !0;
|
|
16560
16514
|
break;
|
|
16561
16515
|
default: {
|
|
16562
|
-
const h =
|
|
16516
|
+
const h = Wd(c);
|
|
16563
16517
|
if (!h || r)
|
|
16564
16518
|
return null;
|
|
16565
16519
|
r = h;
|
|
@@ -16574,7 +16528,7 @@ function jd(s, e, t) {
|
|
|
16574
16528
|
shiftKey: l
|
|
16575
16529
|
} : null;
|
|
16576
16530
|
}
|
|
16577
|
-
function
|
|
16531
|
+
function Xd(s) {
|
|
16578
16532
|
if (!(s instanceof HTMLElement))
|
|
16579
16533
|
return !1;
|
|
16580
16534
|
if (s.isContentEditable)
|
|
@@ -16582,17 +16536,17 @@ function qd(s) {
|
|
|
16582
16536
|
const e = s.tagName;
|
|
16583
16537
|
return e === "INPUT" || e === "TEXTAREA" || e === "SELECT" ? !0 : !!s.closest('[contenteditable=""], [contenteditable="true"], input, textarea, select');
|
|
16584
16538
|
}
|
|
16585
|
-
function
|
|
16539
|
+
function qd(s, e) {
|
|
16586
16540
|
return s.code === e.code && s.altKey === e.altKey && s.ctrlKey === e.ctrlKey && s.metaKey === e.metaKey && s.shiftKey === e.shiftKey;
|
|
16587
16541
|
}
|
|
16588
|
-
function
|
|
16589
|
-
return s === !1 || (s == null ? void 0 : s.enabled) === !1 ? [] :
|
|
16542
|
+
function jd(s, e) {
|
|
16543
|
+
return s === !1 || (s == null ? void 0 : s.enabled) === !1 ? [] : zd.flatMap((t) => {
|
|
16590
16544
|
var n;
|
|
16591
16545
|
const i = (n = s == null ? void 0 : s.bindings) == null ? void 0 : n[t];
|
|
16592
|
-
return (i === void 0 ?
|
|
16546
|
+
return (i === void 0 ? Vd[t] : Array.isArray(i) ? i : [i]).map((a) => Yd(t, a, e)).filter((a) => a !== null);
|
|
16593
16547
|
});
|
|
16594
16548
|
}
|
|
16595
|
-
class
|
|
16549
|
+
class Kd {
|
|
16596
16550
|
constructor(e) {
|
|
16597
16551
|
p(this, "callbacks");
|
|
16598
16552
|
p(this, "bindings");
|
|
@@ -16601,8 +16555,8 @@ class Jd {
|
|
|
16601
16555
|
this.handleKeydown(e);
|
|
16602
16556
|
});
|
|
16603
16557
|
var i;
|
|
16604
|
-
const t = e.isMacLike ??
|
|
16605
|
-
e.root, this.callbacks = e.callbacks, this.bindings =
|
|
16558
|
+
const t = e.isMacLike ?? Ud();
|
|
16559
|
+
e.root, this.callbacks = e.callbacks, this.bindings = jd(e.config, t), this.enabled = e.config !== !1 && ((i = e.config) == null ? void 0 : i.enabled) !== !1 && this.bindings.length > 0;
|
|
16606
16560
|
}
|
|
16607
16561
|
init() {
|
|
16608
16562
|
var e, t;
|
|
@@ -16613,9 +16567,9 @@ class Jd {
|
|
|
16613
16567
|
(t = (e = globalThis.window) == null ? void 0 : e.removeEventListener) == null || t.call(e, "keydown", this.keydownListener);
|
|
16614
16568
|
}
|
|
16615
16569
|
handleKeydown(e) {
|
|
16616
|
-
if (
|
|
16570
|
+
if (Xd(e.target))
|
|
16617
16571
|
return;
|
|
16618
|
-
const t = this.bindings.find((i) =>
|
|
16572
|
+
const t = this.bindings.find((i) => qd(e, i));
|
|
16619
16573
|
t && (e.preventDefault(), e.stopPropagation(), this.dispatchAction(t.action));
|
|
16620
16574
|
}
|
|
16621
16575
|
dispatchAction(e) {
|
|
@@ -16658,7 +16612,7 @@ function Ba(s) {
|
|
|
16658
16612
|
hasSelectedClip: !!e
|
|
16659
16613
|
};
|
|
16660
16614
|
}
|
|
16661
|
-
function
|
|
16615
|
+
function Zd(s) {
|
|
16662
16616
|
const e = Ba(s), t = s.getSelectedClipIds(), i = s.getSelectedClipAudioAction();
|
|
16663
16617
|
return {
|
|
16664
16618
|
...e,
|
|
@@ -16669,29 +16623,29 @@ function Qd(s) {
|
|
|
16669
16623
|
canToggleSelectedClipsAudio: i !== null
|
|
16670
16624
|
};
|
|
16671
16625
|
}
|
|
16672
|
-
function
|
|
16626
|
+
function Jd(s) {
|
|
16673
16627
|
var i;
|
|
16674
16628
|
const e = s.resolveSelectedClip(), t = ((i = e.clip) == null ? void 0 : i.id) || null;
|
|
16675
16629
|
return t === s.lastSelectedClipId ? s.lastSelectedClipId : (s.emitSelectedClipChange(e), t);
|
|
16676
16630
|
}
|
|
16677
|
-
function
|
|
16631
|
+
function Qd(s, e) {
|
|
16678
16632
|
var t, i, r, n;
|
|
16679
16633
|
return ((i = (t = s.findById(e)) == null ? void 0 : t.getId) == null ? void 0 : i.call(t)) || ((n = (r = s.getLastTrack()) == null ? void 0 : r.getId) == null ? void 0 : n.call(r)) || e;
|
|
16680
16634
|
}
|
|
16681
|
-
function
|
|
16635
|
+
function eu(s) {
|
|
16682
16636
|
if (s.placement.status === "use_existing_track")
|
|
16683
16637
|
return s.trackCollection.addClipToTrack(s.placement.trackId, s.clip);
|
|
16684
16638
|
const e = s.createTrack(
|
|
16685
16639
|
s.placement.trackType,
|
|
16686
16640
|
s.placement.suggestedTrackName,
|
|
16687
16641
|
s.placement.insertionPlacement
|
|
16688
|
-
), t =
|
|
16642
|
+
), t = Qd(s.trackCollection, e);
|
|
16689
16643
|
return t ? s.trackCollection.addClipToTrack(t, s.clip) : !1;
|
|
16690
16644
|
}
|
|
16691
16645
|
function fs(s, e, t) {
|
|
16692
16646
|
return e.trackId ? s.removeClipFromTrack(e.trackId, t) : !1;
|
|
16693
16647
|
}
|
|
16694
|
-
function
|
|
16648
|
+
function tu(s) {
|
|
16695
16649
|
return s.trackCollection.moveClipToTrack(
|
|
16696
16650
|
s.command.clip,
|
|
16697
16651
|
s.command.sourceTrackId,
|
|
@@ -16702,18 +16656,18 @@ function Ue(s) {
|
|
|
16702
16656
|
var e, t, i, r, n;
|
|
16703
16657
|
(e = s.checkTrackDurationChange) == null || e.call(s), (t = s.updateCanPlayState) == null || t.call(s), (i = s.updateTrackInfoPanel) == null || i.call(s), (r = s.handleClipChange) == null || r.call(s), (n = s.cleanupEmptyTracks) == null || n.call(s);
|
|
16704
16658
|
}
|
|
16705
|
-
function
|
|
16659
|
+
function iu(s) {
|
|
16706
16660
|
var e, t;
|
|
16707
16661
|
s.notifySelectionChange(), (e = s.cleanupEmptyTracks) == null || e.call(s), s.updateTrackInfoPanel(), (t = s.batchDraw) == null || t.call(s), s.syncPreviewSession();
|
|
16708
16662
|
}
|
|
16709
|
-
class
|
|
16663
|
+
class ru {
|
|
16710
16664
|
constructor() {
|
|
16711
16665
|
p(this, "panel", null);
|
|
16712
16666
|
}
|
|
16713
16667
|
init(e) {
|
|
16714
16668
|
var i, r, n, a;
|
|
16715
16669
|
const t = ((i = e.theme) == null ? void 0 : i.background) || we.background;
|
|
16716
|
-
this.panel = new
|
|
16670
|
+
this.panel = new Wh(
|
|
16717
16671
|
{
|
|
16718
16672
|
container: e.container,
|
|
16719
16673
|
theme: {
|
|
@@ -16769,7 +16723,7 @@ class ms {
|
|
|
16769
16723
|
return e.findPrimarySelectedClip();
|
|
16770
16724
|
}
|
|
16771
16725
|
}
|
|
16772
|
-
const
|
|
16726
|
+
const nu = 100 * 1024 * 1024, su = 10 * 1024 * 1024 * 1024, au = 30 * 24 * 60 * 60 * 1e3, ou = [
|
|
16773
16727
|
"video/mp4",
|
|
16774
16728
|
"audio/aac",
|
|
16775
16729
|
"audio/mpeg",
|
|
@@ -16780,16 +16734,16 @@ const au = 100 * 1024 * 1024, ou = 10 * 1024 * 1024 * 1024, lu = 30 * 24 * 60 *
|
|
|
16780
16734
|
"audio/x-wav"
|
|
16781
16735
|
], ti = {
|
|
16782
16736
|
enabled: !1,
|
|
16783
|
-
maxEntryBytes:
|
|
16784
|
-
maxTotalBytes:
|
|
16785
|
-
ttlMs:
|
|
16737
|
+
maxEntryBytes: nu,
|
|
16738
|
+
maxTotalBytes: su,
|
|
16739
|
+
ttlMs: au,
|
|
16786
16740
|
preferStorage: "opfs",
|
|
16787
16741
|
resolveMode: "prefer-fast-start",
|
|
16788
|
-
allowedMimeTypes:
|
|
16789
|
-
},
|
|
16790
|
-
function
|
|
16742
|
+
allowedMimeTypes: ou
|
|
16743
|
+
}, lu = "timeline-preview-resource-cache", cu = 1, me = "metadata";
|
|
16744
|
+
function hu() {
|
|
16791
16745
|
return new Promise((s, e) => {
|
|
16792
|
-
const t = indexedDB.open(
|
|
16746
|
+
const t = indexedDB.open(lu, cu);
|
|
16793
16747
|
t.onupgradeneeded = () => {
|
|
16794
16748
|
const i = t.result, r = i.objectStoreNames.contains(me) ? t.transaction.objectStore(me) : i.createObjectStore(me, { keyPath: "cacheKey" });
|
|
16795
16749
|
r.indexNames.contains("sourceUrl") || r.createIndex("sourceUrl", "sourceUrl"), r.indexNames.contains("expiresAt") || r.createIndex("expiresAt", "expiresAt"), r.indexNames.contains("lastAccessedAt") || r.createIndex("lastAccessedAt", "lastAccessedAt"), r.indexNames.contains("storageKind") || r.createIndex("storageKind", "storageKind");
|
|
@@ -16801,12 +16755,12 @@ function Sr(s) {
|
|
|
16801
16755
|
s.oncomplete = () => e(), s.onerror = () => t(s.error), s.onabort = () => t(s.error);
|
|
16802
16756
|
});
|
|
16803
16757
|
}
|
|
16804
|
-
class
|
|
16758
|
+
class du {
|
|
16805
16759
|
constructor() {
|
|
16806
16760
|
p(this, "dbPromise", null);
|
|
16807
16761
|
}
|
|
16808
16762
|
getDb() {
|
|
16809
|
-
return this.dbPromise || (this.dbPromise =
|
|
16763
|
+
return this.dbPromise || (this.dbPromise = hu().catch((e) => {
|
|
16810
16764
|
throw this.dbPromise = null, e;
|
|
16811
16765
|
})), this.dbPromise;
|
|
16812
16766
|
}
|
|
@@ -16837,10 +16791,10 @@ class pu {
|
|
|
16837
16791
|
});
|
|
16838
16792
|
}
|
|
16839
16793
|
}
|
|
16840
|
-
const
|
|
16841
|
-
function
|
|
16794
|
+
const uu = "timeline-preview-resource-cache", pu = "timeline-preview-resource-cache-blobs", gu = 1, Le = "blobs";
|
|
16795
|
+
function fu() {
|
|
16842
16796
|
return new Promise((s, e) => {
|
|
16843
|
-
const t = indexedDB.open(
|
|
16797
|
+
const t = indexedDB.open(pu, gu);
|
|
16844
16798
|
t.onupgradeneeded = () => {
|
|
16845
16799
|
const i = t.result;
|
|
16846
16800
|
i.objectStoreNames.contains(Le) || i.createObjectStore(Le);
|
|
@@ -16852,13 +16806,13 @@ function vr(s) {
|
|
|
16852
16806
|
s.oncomplete = () => e(), s.onerror = () => t(s.error), s.onabort = () => t(s.error);
|
|
16853
16807
|
});
|
|
16854
16808
|
}
|
|
16855
|
-
class
|
|
16809
|
+
class mu {
|
|
16856
16810
|
constructor() {
|
|
16857
16811
|
p(this, "kind", "indexeddb");
|
|
16858
16812
|
p(this, "dbPromise", null);
|
|
16859
16813
|
}
|
|
16860
16814
|
getDb() {
|
|
16861
|
-
return this.dbPromise || (this.dbPromise =
|
|
16815
|
+
return this.dbPromise || (this.dbPromise = fu().catch((e) => {
|
|
16862
16816
|
throw this.dbPromise = null, e;
|
|
16863
16817
|
})), this.dbPromise;
|
|
16864
16818
|
}
|
|
@@ -16882,13 +16836,13 @@ class Su {
|
|
|
16882
16836
|
t.objectStore(Le).clear(), await vr(t);
|
|
16883
16837
|
}
|
|
16884
16838
|
}
|
|
16885
|
-
class
|
|
16839
|
+
class yu {
|
|
16886
16840
|
constructor() {
|
|
16887
16841
|
p(this, "kind", "opfs");
|
|
16888
16842
|
p(this, "directoryPromise", null);
|
|
16889
16843
|
}
|
|
16890
16844
|
async getDirectory() {
|
|
16891
|
-
return this.directoryPromise || (this.directoryPromise = navigator.storage.getDirectory().then((e) => e.getDirectoryHandle(
|
|
16845
|
+
return this.directoryPromise || (this.directoryPromise = navigator.storage.getDirectory().then((e) => e.getDirectoryHandle(uu, { create: !0 })).catch((e) => {
|
|
16892
16846
|
throw this.directoryPromise = null, e;
|
|
16893
16847
|
})), this.directoryPromise;
|
|
16894
16848
|
}
|
|
@@ -16931,32 +16885,32 @@ class vu {
|
|
|
16931
16885
|
await e.removeEntry(t);
|
|
16932
16886
|
}
|
|
16933
16887
|
}
|
|
16934
|
-
async function
|
|
16888
|
+
async function Su(s) {
|
|
16935
16889
|
var e;
|
|
16936
16890
|
if (s.preferStorage === "opfs" && typeof navigator < "u" && typeof ((e = navigator.storage) == null ? void 0 : e.getDirectory) == "function") {
|
|
16937
|
-
const t = new
|
|
16891
|
+
const t = new yu();
|
|
16938
16892
|
if (await t.ensureReady())
|
|
16939
16893
|
return t;
|
|
16940
16894
|
}
|
|
16941
|
-
return new
|
|
16895
|
+
return new mu();
|
|
16942
16896
|
}
|
|
16943
|
-
function
|
|
16897
|
+
function vu(s) {
|
|
16944
16898
|
return Array.from(s).map((e) => e.toString(16).padStart(2, "0")).join("");
|
|
16945
16899
|
}
|
|
16946
16900
|
function ys(s) {
|
|
16947
16901
|
return s.split(";", 1)[0].trim().toLowerCase();
|
|
16948
16902
|
}
|
|
16949
|
-
async function
|
|
16903
|
+
async function Cu(s) {
|
|
16950
16904
|
const e = globalThis.crypto;
|
|
16951
16905
|
if (!(e != null && e.subtle))
|
|
16952
16906
|
throw new Error("Resource cache key generation requires Web Crypto SHA-256 support.");
|
|
16953
16907
|
const t = await e.subtle.digest("SHA-256", new TextEncoder().encode(s));
|
|
16954
|
-
return
|
|
16908
|
+
return vu(new Uint8Array(t));
|
|
16955
16909
|
}
|
|
16956
16910
|
function Cr(s) {
|
|
16957
16911
|
return s ? [...s] : [...ti.allowedMimeTypes];
|
|
16958
16912
|
}
|
|
16959
|
-
function
|
|
16913
|
+
function bu(s) {
|
|
16960
16914
|
return s ? s === !0 ? {
|
|
16961
16915
|
...ti,
|
|
16962
16916
|
enabled: !0,
|
|
@@ -16971,7 +16925,7 @@ function wu(s) {
|
|
|
16971
16925
|
allowedMimeTypes: Cr(void 0)
|
|
16972
16926
|
};
|
|
16973
16927
|
}
|
|
16974
|
-
function
|
|
16928
|
+
function Tu(s) {
|
|
16975
16929
|
try {
|
|
16976
16930
|
const e = new URL(s);
|
|
16977
16931
|
return e.hash = "", e.toString();
|
|
@@ -16979,10 +16933,10 @@ function ku(s) {
|
|
|
16979
16933
|
return s.trim();
|
|
16980
16934
|
}
|
|
16981
16935
|
}
|
|
16982
|
-
async function
|
|
16936
|
+
async function wu(s) {
|
|
16983
16937
|
var t;
|
|
16984
|
-
const e = ((t = s.sourceKey) == null ? void 0 : t.trim()) ||
|
|
16985
|
-
return
|
|
16938
|
+
const e = ((t = s.sourceKey) == null ? void 0 : t.trim()) || Tu(s.url);
|
|
16939
|
+
return Cu(e);
|
|
16986
16940
|
}
|
|
16987
16941
|
function Ss(s, e = ti.allowedMimeTypes) {
|
|
16988
16942
|
if (!s.url)
|
|
@@ -17000,7 +16954,7 @@ function Ss(s, e = ti.allowedMimeTypes) {
|
|
|
17000
16954
|
const i = ys(s.mimeType);
|
|
17001
16955
|
return !e.some((r) => ys(r) === i);
|
|
17002
16956
|
}
|
|
17003
|
-
function
|
|
16957
|
+
function ku(s) {
|
|
17004
16958
|
return s && s.split(";", 1)[0].trim().toLowerCase() || null;
|
|
17005
16959
|
}
|
|
17006
16960
|
function vs(s) {
|
|
@@ -17009,7 +16963,7 @@ function vs(s) {
|
|
|
17009
16963
|
const e = Number(s);
|
|
17010
16964
|
return Number.isSafeInteger(e) && e >= 0 ? e : null;
|
|
17011
16965
|
}
|
|
17012
|
-
function
|
|
16966
|
+
function xu(s) {
|
|
17013
16967
|
if (!s)
|
|
17014
16968
|
return null;
|
|
17015
16969
|
const e = s.match(/^bytes\s+(?:\d+-\d+|\*)\/(\d+|\*)$/i);
|
|
@@ -17023,14 +16977,14 @@ function Cs(s, e, t) {
|
|
|
17023
16977
|
url: e,
|
|
17024
16978
|
ok: s.ok,
|
|
17025
16979
|
status: s.status,
|
|
17026
|
-
mimeType:
|
|
16980
|
+
mimeType: ku(s.headers.get("content-type")),
|
|
17027
16981
|
sizeBytes: t,
|
|
17028
16982
|
etag: s.headers.get("etag"),
|
|
17029
16983
|
lastModified: s.headers.get("last-modified"),
|
|
17030
16984
|
acceptRanges: s.headers.get("accept-ranges")
|
|
17031
16985
|
};
|
|
17032
16986
|
}
|
|
17033
|
-
class
|
|
16987
|
+
class Pu {
|
|
17034
16988
|
async probe(e) {
|
|
17035
16989
|
var r;
|
|
17036
16990
|
try {
|
|
@@ -17044,7 +16998,7 @@ class Iu {
|
|
|
17044
16998
|
headers: {
|
|
17045
16999
|
Range: "bytes=0-0"
|
|
17046
17000
|
}
|
|
17047
|
-
}), i =
|
|
17001
|
+
}), i = xu(t.headers.get("content-range")) ?? vs(t.headers.get("content-length"));
|
|
17048
17002
|
try {
|
|
17049
17003
|
await ((r = t.body) == null ? void 0 : r.cancel());
|
|
17050
17004
|
} catch {
|
|
@@ -17058,7 +17012,7 @@ class Iu {
|
|
|
17058
17012
|
return t.blob();
|
|
17059
17013
|
}
|
|
17060
17014
|
}
|
|
17061
|
-
const
|
|
17015
|
+
const _u = {
|
|
17062
17016
|
createObjectURL(s) {
|
|
17063
17017
|
return URL.createObjectURL(s);
|
|
17064
17018
|
},
|
|
@@ -17073,10 +17027,10 @@ function St(s, e) {
|
|
|
17073
17027
|
sourceUrl: s.url
|
|
17074
17028
|
};
|
|
17075
17029
|
}
|
|
17076
|
-
function
|
|
17030
|
+
function Iu(s, e) {
|
|
17077
17031
|
return s.etag || e.etag ? s.etag === e.etag && s.sizeBytes === e.contentLength : s.sizeBytes === e.contentLength && s.lastModified === e.lastModified;
|
|
17078
17032
|
}
|
|
17079
|
-
class
|
|
17033
|
+
class Au {
|
|
17080
17034
|
constructor(e = {}) {
|
|
17081
17035
|
p(this, "options");
|
|
17082
17036
|
p(this, "metadataStore");
|
|
@@ -17088,7 +17042,7 @@ class Ru {
|
|
|
17088
17042
|
p(this, "onEvent");
|
|
17089
17043
|
p(this, "objectUrls", /* @__PURE__ */ new Set());
|
|
17090
17044
|
p(this, "inflightDownloads", /* @__PURE__ */ new Map());
|
|
17091
|
-
this.options =
|
|
17045
|
+
this.options = bu(e.options), this.metadataStore = e.metadataStore ?? new du(), this.storagePromise = e.storage ? Promise.resolve(e.storage) : Su({ preferStorage: this.options.preferStorage }), this.http = e.http ?? new Pu(), this.objectUrl = e.objectUrl ?? _u, this.now = e.now ?? (() => Date.now()), this.cacheKeyBuilder = e.cacheKeyBuilder ?? wu, this.onEvent = e.onEvent;
|
|
17092
17046
|
}
|
|
17093
17047
|
async resolve(e) {
|
|
17094
17048
|
return this.resolvePlayableUrl(e);
|
|
@@ -17155,7 +17109,7 @@ class Ru {
|
|
|
17155
17109
|
const a = await this.probeCacheable(e);
|
|
17156
17110
|
if (a.cacheStatus !== "miss")
|
|
17157
17111
|
return a.result;
|
|
17158
|
-
if (
|
|
17112
|
+
if (Iu(a.probe, i)) {
|
|
17159
17113
|
const c = this.now(), h = {
|
|
17160
17114
|
...i,
|
|
17161
17115
|
updatedAt: c,
|
|
@@ -17254,7 +17208,7 @@ class Ru {
|
|
|
17254
17208
|
(i = this.onEvent) == null || i.call(this, e, t);
|
|
17255
17209
|
}
|
|
17256
17210
|
}
|
|
17257
|
-
function
|
|
17211
|
+
function Eu(s) {
|
|
17258
17212
|
return !!s && typeof s.then == "function";
|
|
17259
17213
|
}
|
|
17260
17214
|
class br {
|
|
@@ -17320,7 +17274,7 @@ class br {
|
|
|
17320
17274
|
return r.value;
|
|
17321
17275
|
}
|
|
17322
17276
|
const n = t();
|
|
17323
|
-
if (!
|
|
17277
|
+
if (!Eu(n))
|
|
17324
17278
|
return this.previewSourceCache.set(e, {
|
|
17325
17279
|
value: n,
|
|
17326
17280
|
promise: null,
|
|
@@ -17384,7 +17338,7 @@ class bs {
|
|
|
17384
17338
|
);
|
|
17385
17339
|
}
|
|
17386
17340
|
}
|
|
17387
|
-
class
|
|
17341
|
+
class Ru {
|
|
17388
17342
|
constructor(e) {
|
|
17389
17343
|
this.tracks = e;
|
|
17390
17344
|
}
|
|
@@ -17521,13 +17475,13 @@ class Du {
|
|
|
17521
17475
|
return typeof e.getId == "function" ? e.getId() : typeof e.id == "string" ? e.id : null;
|
|
17522
17476
|
}
|
|
17523
17477
|
}
|
|
17524
|
-
function
|
|
17478
|
+
function Lu(s) {
|
|
17525
17479
|
return s === "text" ? "文本" : s === "video" ? "视频" : "音频";
|
|
17526
17480
|
}
|
|
17527
17481
|
function Ri(s) {
|
|
17528
17482
|
return s === "text" ? 0 : s === "video" ? 1 : 2;
|
|
17529
17483
|
}
|
|
17530
|
-
class
|
|
17484
|
+
class Du {
|
|
17531
17485
|
constructor(e = []) {
|
|
17532
17486
|
p(this, "tracks", []);
|
|
17533
17487
|
p(this, "trackCounter", 0);
|
|
@@ -17535,7 +17489,7 @@ class Ou {
|
|
|
17535
17489
|
}
|
|
17536
17490
|
createTrack(e, t, i, r, n) {
|
|
17537
17491
|
this.trackCounter++;
|
|
17538
|
-
const a = t || `${
|
|
17492
|
+
const a = t || `${Lu(e)}轨道 ${this.trackCounter}`, o = n ?? (this.tracks.length === 0 ? "primary" : "normal");
|
|
17539
17493
|
o === "primary" && this.tracks.forEach((c) => {
|
|
17540
17494
|
c.role === "primary" && (c.role = "normal");
|
|
17541
17495
|
});
|
|
@@ -17633,7 +17587,7 @@ class Ou {
|
|
|
17633
17587
|
return this.tracks.filter((t) => t.type === e).length;
|
|
17634
17588
|
}
|
|
17635
17589
|
}
|
|
17636
|
-
class
|
|
17590
|
+
class Mu {
|
|
17637
17591
|
constructor() {
|
|
17638
17592
|
p(this, "container", null);
|
|
17639
17593
|
}
|
|
@@ -17743,7 +17697,7 @@ class Bu {
|
|
|
17743
17697
|
}
|
|
17744
17698
|
}
|
|
17745
17699
|
const Fa = 200, Wr = 8, Ts = "timeline-manager-managed-layout-styles";
|
|
17746
|
-
function
|
|
17700
|
+
function Ou() {
|
|
17747
17701
|
if (typeof document > "u" || document.getElementById(Ts))
|
|
17748
17702
|
return;
|
|
17749
17703
|
const s = document.createElement("style");
|
|
@@ -17775,17 +17729,17 @@ function Fu() {
|
|
|
17775
17729
|
}
|
|
17776
17730
|
`, document.head.appendChild(s);
|
|
17777
17731
|
}
|
|
17778
|
-
function
|
|
17779
|
-
|
|
17732
|
+
function Bu(s, e) {
|
|
17733
|
+
Ou();
|
|
17780
17734
|
const t = {
|
|
17781
17735
|
theme: e.theme,
|
|
17782
17736
|
timeScaleHeight: e.timeScaleHeight,
|
|
17783
17737
|
leftPanelWidth: e.leftPanelWidth ?? Fa,
|
|
17784
17738
|
scrollbarSize: e.scrollbarSize ?? Wr
|
|
17785
17739
|
};
|
|
17786
|
-
return new
|
|
17740
|
+
return new Mu().mount(s, t);
|
|
17787
17741
|
}
|
|
17788
|
-
class
|
|
17742
|
+
class Fu {
|
|
17789
17743
|
constructor(e) {
|
|
17790
17744
|
p(this, "currentTime");
|
|
17791
17745
|
p(this, "playState");
|
|
@@ -17855,7 +17809,7 @@ class Ga {
|
|
|
17855
17809
|
return this.selectedClipIds.size;
|
|
17856
17810
|
}
|
|
17857
17811
|
}
|
|
17858
|
-
class
|
|
17812
|
+
class Gu {
|
|
17859
17813
|
constructor(e) {
|
|
17860
17814
|
p(this, "zoom");
|
|
17861
17815
|
p(this, "duration");
|
|
@@ -17914,11 +17868,11 @@ class ws {
|
|
|
17914
17868
|
p(this, "selectionStore");
|
|
17915
17869
|
p(this, "playbackStore");
|
|
17916
17870
|
p(this, "viewportStore");
|
|
17917
|
-
this.selectionStore = new Ga(), this.playbackStore = new
|
|
17871
|
+
this.selectionStore = new Ga(), this.playbackStore = new Fu({
|
|
17918
17872
|
currentTime: e.currentTime,
|
|
17919
17873
|
playState: e.playState,
|
|
17920
17874
|
speed: e.speed
|
|
17921
|
-
}), this.viewportStore = new
|
|
17875
|
+
}), this.viewportStore = new Gu({
|
|
17922
17876
|
zoom: e.zoom,
|
|
17923
17877
|
duration: e.duration,
|
|
17924
17878
|
scrollLeft: e.scrollLeft,
|
|
@@ -18013,7 +17967,7 @@ class ws {
|
|
|
18013
17967
|
this.viewportStore.setContentHeight(e);
|
|
18014
17968
|
}
|
|
18015
17969
|
}
|
|
18016
|
-
class
|
|
17970
|
+
class Hu {
|
|
18017
17971
|
constructor(e, t, i, r, n) {
|
|
18018
17972
|
p(this, "stage");
|
|
18019
17973
|
p(this, "layer");
|
|
@@ -18364,11 +18318,11 @@ class ks {
|
|
|
18364
18318
|
p(this, "handleStageMouseLeave", () => {
|
|
18365
18319
|
this.isDragging || (this.container.style.cursor = "default");
|
|
18366
18320
|
});
|
|
18367
|
-
this.container = e.container, this.orientation = e.orientation, this.theme = e.theme, this.onScrollChange = e.onScrollChange, this.leadingInset = Math.max(0, e.leadingInset || 0), this.trailingInset = Math.max(0, e.trailingInset || 0), this.container.innerHTML = "", this.container.style.userSelect = "none", this.container.style.background = "transparent", this.stage = new
|
|
18321
|
+
this.container = e.container, this.orientation = e.orientation, this.theme = e.theme, this.onScrollChange = e.onScrollChange, this.leadingInset = Math.max(0, e.leadingInset || 0), this.trailingInset = Math.max(0, e.trailingInset || 0), this.container.innerHTML = "", this.container.style.userSelect = "none", this.container.style.background = "transparent", this.stage = new q.Stage({
|
|
18368
18322
|
container: this.container,
|
|
18369
18323
|
width: this.container.clientWidth,
|
|
18370
18324
|
height: this.container.clientHeight
|
|
18371
|
-
}), this.layer = new
|
|
18325
|
+
}), this.layer = new q.Layer(), this.layer.name("scrollbar-layer"), this.stage.add(this.layer), this.hitAreaRect = se.createRect(0, 0, 0, 0, ye.hitArea, "transparent", 0), this.hitAreaRect.name("scrollbar-hit-area"), this.thumbRect = se.createRect(
|
|
18372
18326
|
0,
|
|
18373
18327
|
0,
|
|
18374
18328
|
0,
|
|
@@ -18479,7 +18433,7 @@ class xs {
|
|
|
18479
18433
|
this.entries.clear();
|
|
18480
18434
|
}
|
|
18481
18435
|
}
|
|
18482
|
-
class
|
|
18436
|
+
class Nu {
|
|
18483
18437
|
constructor() {
|
|
18484
18438
|
p(this, "panel", null);
|
|
18485
18439
|
p(this, "config", null);
|
|
@@ -18488,7 +18442,7 @@ class zu {
|
|
|
18488
18442
|
init(e) {
|
|
18489
18443
|
this.config = e;
|
|
18490
18444
|
const t = this.convertTheme(e.theme);
|
|
18491
|
-
this.panel = new
|
|
18445
|
+
this.panel = new jh({
|
|
18492
18446
|
container: e.container,
|
|
18493
18447
|
theme: t,
|
|
18494
18448
|
voiceCatalog: e.voiceCatalog,
|
|
@@ -18536,17 +18490,17 @@ class zu {
|
|
|
18536
18490
|
};
|
|
18537
18491
|
}
|
|
18538
18492
|
}
|
|
18539
|
-
const
|
|
18540
|
-
name:
|
|
18541
|
-
version:
|
|
18542
|
-
},
|
|
18493
|
+
const $u = "@linker-design-plus/timeline-track", zu = "2.0.19", Ft = {
|
|
18494
|
+
name: $u,
|
|
18495
|
+
version: zu
|
|
18496
|
+
}, Vu = 1, Uu = 2, Wu = 120, Yu = 250;
|
|
18543
18497
|
function Ps(s) {
|
|
18544
18498
|
return s == null ? s : JSON.parse(JSON.stringify(s));
|
|
18545
18499
|
}
|
|
18546
|
-
function
|
|
18500
|
+
function Xu(s) {
|
|
18547
18501
|
return s === "text" ? "文本" : s === "video" ? "视频" : "音频";
|
|
18548
18502
|
}
|
|
18549
|
-
class
|
|
18503
|
+
class rp {
|
|
18550
18504
|
constructor(e = {}) {
|
|
18551
18505
|
p(this, "timeline", null);
|
|
18552
18506
|
p(this, "tracks", []);
|
|
@@ -18603,7 +18557,7 @@ class sp {
|
|
|
18603
18557
|
p(this, "previewPlaybackAutoResume", !1);
|
|
18604
18558
|
p(this, "previewBufferingSuspendTimeoutId", null);
|
|
18605
18559
|
p(this, "lastSelectedClipId", null);
|
|
18606
|
-
p(this, "previewAspectRatio", { ...
|
|
18560
|
+
p(this, "previewAspectRatio", { ...Be });
|
|
18607
18561
|
p(this, "bodyViewportScrollListener", () => {
|
|
18608
18562
|
this.handleBodyViewportScroll();
|
|
18609
18563
|
});
|
|
@@ -18622,7 +18576,6 @@ class sp {
|
|
|
18622
18576
|
p(this, "clipRemovalBatchDepth", 0);
|
|
18623
18577
|
p(this, "splitOperationDepth", 0);
|
|
18624
18578
|
p(this, "diagnostics");
|
|
18625
|
-
p(this, "diagnosticsPanel", null);
|
|
18626
18579
|
p(this, "previewRuntimeState", {
|
|
18627
18580
|
phase: "idle",
|
|
18628
18581
|
loadingCount: 0,
|
|
@@ -18656,7 +18609,7 @@ class sp {
|
|
|
18656
18609
|
resourceCache: e.resourceCache,
|
|
18657
18610
|
textPreviewFont: e.textPreviewFont ?? null,
|
|
18658
18611
|
keyboardShortcuts: e.keyboardShortcuts
|
|
18659
|
-
}, this.diagnostics = new Oc(this.config.diagnostics), this.resourceCacheManager = this.config.resourceCache ? new
|
|
18612
|
+
}, this.diagnostics = new Oc(this.config.diagnostics), this.resourceCacheManager = this.config.resourceCache ? new Au({
|
|
18660
18613
|
options: this.config.resourceCache,
|
|
18661
18614
|
onEvent: (t, i) => {
|
|
18662
18615
|
this.emitDiagnostic({
|
|
@@ -18674,7 +18627,7 @@ class sp {
|
|
|
18674
18627
|
userAgent: typeof navigator < "u" ? navigator.userAgent : null,
|
|
18675
18628
|
href: typeof location < "u" ? location.href : null,
|
|
18676
18629
|
configuredPreviewBackend: this.config.previewBackend
|
|
18677
|
-
}), this.thumbnailProvider = e.thumbnailProvider || null, this.trackInfoPanelController = new
|
|
18630
|
+
}), this.thumbnailProvider = e.thumbnailProvider || null, this.trackInfoPanelController = new ru(), this.eventDispatcher = new gs({
|
|
18678
18631
|
can_play_change: () => ({ canPlay: this.canPlay }),
|
|
18679
18632
|
selection_change: () => this.resolveSelectionChangeData(),
|
|
18680
18633
|
selected_clip_change: () => this.resolveSelectedClipSnapshot(),
|
|
@@ -18700,7 +18653,7 @@ class sp {
|
|
|
18700
18653
|
findTrackByClipId: this.findTrackByClipId.bind(this),
|
|
18701
18654
|
getDefaultTrack: () => this.getDefaultTrackForHistory(),
|
|
18702
18655
|
loadClipThumbnails: this.loadClipThumbnails.bind(this)
|
|
18703
|
-
}), this.trackManager = new
|
|
18656
|
+
}), this.trackManager = new Du(), this.timelineStore = new ws({
|
|
18704
18657
|
currentTime: this.config.currentTime,
|
|
18705
18658
|
playState: this.config.playState,
|
|
18706
18659
|
speed: this.config.speed || 1,
|
|
@@ -18759,10 +18712,6 @@ class sp {
|
|
|
18759
18712
|
runtimeState: this.buildDiagnosticsRuntimeState()
|
|
18760
18713
|
};
|
|
18761
18714
|
}
|
|
18762
|
-
mountDiagnosticsPanel() {
|
|
18763
|
-
var e;
|
|
18764
|
-
!this.rootContainer || !((e = this.config.diagnostics) != null && e.enablePanel) || this.diagnosticsPanel || (this.rootContainer.style.position = this.rootContainer.style.position || "relative", this.diagnosticsPanel = new Gc(this.diagnostics), this.diagnosticsPanel.mount(this.rootContainer));
|
|
18765
|
-
}
|
|
18766
18715
|
getTimelineStore() {
|
|
18767
18716
|
var e, t, i, r, n;
|
|
18768
18717
|
if (!this.timelineStore) {
|
|
@@ -18781,7 +18730,7 @@ class sp {
|
|
|
18781
18730
|
return this.timelineCommands || (this.timelineCommands = new rs(this.getTimelineStore())), this.timelineCommands;
|
|
18782
18731
|
}
|
|
18783
18732
|
getTrackCollection() {
|
|
18784
|
-
return new
|
|
18733
|
+
return new Ru(this.tracks);
|
|
18785
18734
|
}
|
|
18786
18735
|
getTimelinePresentationAdapter() {
|
|
18787
18736
|
return this.timelinePresentationAdapter || (this.timelinePresentationAdapter = new ms()), this.timelinePresentationAdapter;
|
|
@@ -18808,7 +18757,7 @@ class sp {
|
|
|
18808
18757
|
})), this.timelineTrackBridge;
|
|
18809
18758
|
}
|
|
18810
18759
|
getTimelinePlaybackResolver() {
|
|
18811
|
-
return this.timelinePlaybackResolver || (this.timelinePlaybackResolver = new
|
|
18760
|
+
return this.timelinePlaybackResolver || (this.timelinePlaybackResolver = new Fd()), this.timelinePlaybackResolver;
|
|
18812
18761
|
}
|
|
18813
18762
|
get previewSession() {
|
|
18814
18763
|
return this.getPreviewRuntimeController().previewSession;
|
|
@@ -18865,7 +18814,7 @@ class sp {
|
|
|
18865
18814
|
this.getPreviewStateController().nextPendingPreviewSyncRequestId = e;
|
|
18866
18815
|
}
|
|
18867
18816
|
getPreviewStateController() {
|
|
18868
|
-
return this.previewStateController || (this.previewStateController = new
|
|
18817
|
+
return this.previewStateController || (this.previewStateController = new $d({
|
|
18869
18818
|
callbacks: {
|
|
18870
18819
|
applyPendingState: (e) => {
|
|
18871
18820
|
var t, i;
|
|
@@ -18887,9 +18836,9 @@ class sp {
|
|
|
18887
18836
|
})), this.previewStateController;
|
|
18888
18837
|
}
|
|
18889
18838
|
getPreviewRuntimeController() {
|
|
18890
|
-
return this.previewRuntimeController || (this.previewRuntimeController = new
|
|
18839
|
+
return this.previewRuntimeController || (this.previewRuntimeController = new Gd({
|
|
18891
18840
|
createBackendCallbacks: (e) => this.createPreviewBackendCallbacks(e),
|
|
18892
|
-
createBackend: (e, t) => new
|
|
18841
|
+
createBackend: (e, t) => new Rd({
|
|
18893
18842
|
callbacks: t,
|
|
18894
18843
|
diagnostics: this.diagnostics,
|
|
18895
18844
|
getDiagnosticsContext: () => this.buildPreviewDiagnosticsContext(),
|
|
@@ -18898,7 +18847,7 @@ class sp {
|
|
|
18898
18847
|
textPreviewFont: this.config.textPreviewFont,
|
|
18899
18848
|
sourceMediaRegistry: this.sourceMediaRegistry
|
|
18900
18849
|
}),
|
|
18901
|
-
resolveConfiguredBackend: (e) => e ||
|
|
18850
|
+
resolveConfiguredBackend: (e) => e || Ld(this.config.previewBackend)
|
|
18902
18851
|
})), this.previewRuntimeController;
|
|
18903
18852
|
}
|
|
18904
18853
|
resolveConfiguredPreviewBackend() {
|
|
@@ -19198,7 +19147,7 @@ class sp {
|
|
|
19198
19147
|
});
|
|
19199
19148
|
}
|
|
19200
19149
|
shouldSkipSteadyPlaybackPreviewSync(e, t, i) {
|
|
19201
|
-
return t !== "playing" || i !== "steady" || this.pendingPreviewState || this.previewBuffering || this.lastPreviewSyncedPlayState !== "playing" || this.lastPreviewSyncSignature !== e ? !1 : Date.now() - this.lastSteadyPlaybackPreviewSyncAt <
|
|
19150
|
+
return t !== "playing" || i !== "steady" || this.pendingPreviewState || this.previewBuffering || this.lastPreviewSyncedPlayState !== "playing" || this.lastPreviewSyncSignature !== e ? !1 : Date.now() - this.lastSteadyPlaybackPreviewSyncAt < Yu;
|
|
19202
19151
|
}
|
|
19203
19152
|
syncPreviewSession(e) {
|
|
19204
19153
|
var h, d, u, g;
|
|
@@ -19329,22 +19278,22 @@ class sp {
|
|
|
19329
19278
|
F.warn("TimelineManager", "TimelineManager has already been initialized");
|
|
19330
19279
|
return;
|
|
19331
19280
|
}
|
|
19332
|
-
this.rootContainer = e, this.layout =
|
|
19281
|
+
this.rootContainer = e, this.layout = Bu(e, {
|
|
19333
19282
|
theme: this.config.theme,
|
|
19334
19283
|
timeScaleHeight: this.getTimeScaleHeight(),
|
|
19335
19284
|
leftPanelWidth: Fa,
|
|
19336
19285
|
scrollbarSize: Wr
|
|
19337
|
-
}), this.layout.bodyViewport.addEventListener("scroll", this.bodyViewportScrollListener), (r = (i = this.layout.bodyCanvasHost).addEventListener) == null || r.call(i, "click", this.bodyCanvasHostClickListener), (a = (n = this.rootContainer) == null ? void 0 : n.addEventListener) == null || a.call(n, "wheel", this.rootWheelListener, { passive: !1 }), this.initKeyboardShortcuts(), this.headerStage = new
|
|
19286
|
+
}), this.layout.bodyViewport.addEventListener("scroll", this.bodyViewportScrollListener), (r = (i = this.layout.bodyCanvasHost).addEventListener) == null || r.call(i, "click", this.bodyCanvasHostClickListener), (a = (n = this.rootContainer) == null ? void 0 : n.addEventListener) == null || a.call(n, "wheel", this.rootWheelListener, { passive: !1 }), this.initKeyboardShortcuts(), this.headerStage = new q.Stage({
|
|
19338
19287
|
container: this.layout.headerCanvasHost,
|
|
19339
19288
|
width: this.layout.headerViewport.clientWidth,
|
|
19340
19289
|
height: this.getTimeScaleHeight()
|
|
19341
|
-
}), this.headerLayer = new
|
|
19290
|
+
}), this.headerLayer = new q.Layer({ name: "timelineHeaderLayer" }), this.headerStage.add(this.headerLayer), this.stage = new q.Stage({
|
|
19342
19291
|
container: this.layout.bodyCanvasHost,
|
|
19343
19292
|
width: this.layout.bodyViewport.clientWidth,
|
|
19344
19293
|
height: 0
|
|
19345
|
-
}), this.backgroundLayer = new
|
|
19294
|
+
}), this.backgroundLayer = new q.Layer({ name: "trackBackgroundLayer" }), this.trackLayer = new q.Layer({ name: "trackLayer" }), this.dragOverlayLayer = new q.Layer({ name: "trackDragOverlayLayer", listening: !1 }), this.snapGuideLayer = new q.Layer({ name: "trackSnapGuideLayer", listening: !1 }), this.selectionBoxLayer = new q.Layer({ name: "selectionBoxLayer", listening: !1 }), this.stage.add(this.backgroundLayer), this.stage.add(this.trackLayer), this.stage.add(this.dragOverlayLayer), this.stage.add(this.snapGuideLayer), this.stage.add(this.selectionBoxLayer);
|
|
19346
19295
|
const t = (l = (o = this.stage) == null ? void 0 : o.container) == null ? void 0 : l.call(o);
|
|
19347
|
-
if (t && t.addEventListener("mousedown", this.handleStageMouseDown.bind(this)), this.timeline = new
|
|
19296
|
+
if (t && t.addEventListener("mousedown", this.handleStageMouseDown.bind(this)), this.timeline = new Hu(
|
|
19348
19297
|
this.headerStage,
|
|
19349
19298
|
this.headerLayer,
|
|
19350
19299
|
this.config,
|
|
@@ -19381,7 +19330,7 @@ class sp {
|
|
|
19381
19330
|
onMuteTrack: this.muteTrack.bind(this)
|
|
19382
19331
|
}), this.resizeObserver = new ResizeObserver(() => {
|
|
19383
19332
|
this.updateViewportLayout();
|
|
19384
|
-
}), this.resizeObserver.observe(e), this.
|
|
19333
|
+
}), this.resizeObserver.observe(e), this.createTrack("video", "视频轨道 1"), this.isInitialized = !0, this.updateViewportLayout(), this.syncScrollLeft(this.getScrollLeftState()), this.syncScrollTop(this.getScrollTopState()), (c = this.stage) == null || c.batchDraw(), this.pendingDraftData) {
|
|
19385
19334
|
const h = this.pendingDraftData;
|
|
19386
19335
|
this.pendingDraftData = null, queueMicrotask(() => {
|
|
19387
19336
|
this.importTimeline(h).catch((d) => {
|
|
@@ -19451,7 +19400,7 @@ class sp {
|
|
|
19451
19400
|
}
|
|
19452
19401
|
updateAllTrackPositions() {
|
|
19453
19402
|
var t, i;
|
|
19454
|
-
const e =
|
|
19403
|
+
const e = Vh(this.trackManager.getTracks(), this.getTrackContentTopOffset());
|
|
19455
19404
|
for (const r of e) {
|
|
19456
19405
|
const n = this.getTrackCollection().findById(r.trackId);
|
|
19457
19406
|
n && ((t = n.setTrackY) == null || t.call(n, r.y), (i = n.setTrackHeight) == null || i.call(n, r.height));
|
|
@@ -19557,7 +19506,7 @@ class sp {
|
|
|
19557
19506
|
this.bodyBackgroundRect.width(e), this.bodyBackgroundRect.height(t), this.bodyBackgroundRect.fill(this.config.theme.background), this.bodyBackgroundRect.stroke(this.config.theme.border), i && this.backgroundLayer.batchDraw();
|
|
19558
19507
|
return;
|
|
19559
19508
|
}
|
|
19560
|
-
const r = new
|
|
19509
|
+
const r = new q.Rect({
|
|
19561
19510
|
x: 0,
|
|
19562
19511
|
y: 0,
|
|
19563
19512
|
width: e,
|
|
@@ -19647,9 +19596,9 @@ class sp {
|
|
|
19647
19596
|
normalizeWheelDelta(e, t, i) {
|
|
19648
19597
|
if (!Number.isFinite(e) || e === 0)
|
|
19649
19598
|
return 0;
|
|
19650
|
-
if (t ===
|
|
19599
|
+
if (t === Vu)
|
|
19651
19600
|
return e * 16;
|
|
19652
|
-
if (t ===
|
|
19601
|
+
if (t === Uu) {
|
|
19653
19602
|
const r = i === "x" ? this.getViewportWidth() : this.getViewportHeight();
|
|
19654
19603
|
return e * (r || 1);
|
|
19655
19604
|
}
|
|
@@ -19730,7 +19679,7 @@ class sp {
|
|
|
19730
19679
|
return;
|
|
19731
19680
|
this.previewBufferingSuspendTimeoutId = setTimeout(() => {
|
|
19732
19681
|
this.previewBufferingSuspendTimeoutId = null, !(this.getPlayStateState() !== "playing" || !this.previewBuffering || this.previewPlaybackSuspendedByBuffering) && (this.previewPlaybackSuspendedByBuffering = !0, this.animationFrameId && (cancelAnimationFrame(this.animationFrameId), this.animationFrameId = null), this.previewRuntimeState.loadingCount <= 0 && this.syncPreviewPlaybackStateIfNeeded("paused"));
|
|
19733
|
-
},
|
|
19682
|
+
}, Wu);
|
|
19734
19683
|
return;
|
|
19735
19684
|
}
|
|
19736
19685
|
if (this.clearPreviewBufferingSuspendTimeout(), !this.previewPlaybackSuspendedByBuffering)
|
|
@@ -20059,7 +20008,7 @@ class sp {
|
|
|
20059
20008
|
})
|
|
20060
20009
|
}), this.primeOrLoadClipThumbnails(g), g.id;
|
|
20061
20010
|
}
|
|
20062
|
-
const f = this.getTimelineCommands().planTrackPlacement(g, this.getTracksSortedByOrder()), y = this.getTrackCollection(), S =
|
|
20011
|
+
const f = this.getTimelineCommands().planTrackPlacement(g, this.getTracksSortedByOrder()), y = this.getTrackCollection(), S = eu({
|
|
20063
20012
|
clip: g,
|
|
20064
20013
|
placement: f,
|
|
20065
20014
|
trackCollection: y,
|
|
@@ -20169,7 +20118,7 @@ class sp {
|
|
|
20169
20118
|
var n, a, o;
|
|
20170
20119
|
const e = this.getPreviewAspectRatio();
|
|
20171
20120
|
let t = e.width, i = e.height;
|
|
20172
|
-
if (Ut(e.mode) && t ===
|
|
20121
|
+
if (Ut(e.mode) && t === Be.width && i === Be.height) {
|
|
20173
20122
|
const l = (n = this.getAutoAspectRatioClip()) == null ? void 0 : n.clip, c = (a = l == null ? void 0 : l.style) == null ? void 0 : a.sys_width, h = (o = l == null ? void 0 : l.style) == null ? void 0 : o.sys_height;
|
|
20174
20123
|
typeof c == "number" && c > 0 && typeof h == "number" && h > 0 && (t = c, i = h);
|
|
20175
20124
|
}
|
|
@@ -20390,7 +20339,7 @@ class sp {
|
|
|
20390
20339
|
handleClipUpdate(e, t, i) {
|
|
20391
20340
|
this.isExecutingHistoryAction || this.getTimelineHistoryRecorder().recordClipUpdate(e, t, i), this.emitEvent("clip_updated", { clip: e });
|
|
20392
20341
|
const r = this.selectedClipId === e.id;
|
|
20393
|
-
|
|
20342
|
+
ed({
|
|
20394
20343
|
notifySelectionChange: this.notifySelectionChange.bind(this),
|
|
20395
20344
|
emitSelectionChangeEvent: this.emitSelectionChangeEvent.bind(this),
|
|
20396
20345
|
reloadClipThumbnailsIfNeeded: () => this.reloadClipThumbnailsIfNeeded(e, t),
|
|
@@ -20421,7 +20370,7 @@ class sp {
|
|
|
20421
20370
|
* @param originalClip 原始片段
|
|
20422
20371
|
*/
|
|
20423
20372
|
reloadClipThumbnailsIfNeeded(e, t) {
|
|
20424
|
-
|
|
20373
|
+
td(e, t, !!this.thumbnailProvider) && this.loadClipThumbnails(e).catch((i) => {
|
|
20425
20374
|
F.warn("TimelineManager", "Error reloading clip thumbnails during update:", { error: i, clipId: e.id });
|
|
20426
20375
|
});
|
|
20427
20376
|
}
|
|
@@ -20429,8 +20378,8 @@ class sp {
|
|
|
20429
20378
|
* 更新 canPlay 状态
|
|
20430
20379
|
*/
|
|
20431
20380
|
updateCanPlayState() {
|
|
20432
|
-
const e = this.getClips(), t = this.getCurrentTime(), i =
|
|
20433
|
-
this.canPlay =
|
|
20381
|
+
const e = this.getClips(), t = this.getCurrentTime(), i = id(e, t), r = this.canPlay;
|
|
20382
|
+
this.canPlay = rd({
|
|
20434
20383
|
currentCanPlay: this.canPlay,
|
|
20435
20384
|
nextCanPlay: i,
|
|
20436
20385
|
playState: this.getPlayStateState(),
|
|
@@ -20830,7 +20779,7 @@ class sp {
|
|
|
20830
20779
|
return !e || e.length !== t.length ? !1 : e.every((i, r) => i === t[r]);
|
|
20831
20780
|
}
|
|
20832
20781
|
handleClipSplit(e, t) {
|
|
20833
|
-
|
|
20782
|
+
ad({
|
|
20834
20783
|
clip1: e,
|
|
20835
20784
|
clip2: t,
|
|
20836
20785
|
isExecutingHistoryAction: this.isExecutingHistoryAction,
|
|
@@ -20850,7 +20799,7 @@ class sp {
|
|
|
20850
20799
|
});
|
|
20851
20800
|
}
|
|
20852
20801
|
handleClipSelect(e) {
|
|
20853
|
-
const t =
|
|
20802
|
+
const t = nd(e);
|
|
20854
20803
|
t.shouldJumpToTime && t.jumpTime !== null ? (this.setCurrentTime(t.jumpTime), this.emitEvent("clip_selected", { clip: e }), F.debugLazy("TimelineManager", () => "Empty track clicked, jumping to time", () => ({ time: e.startTime }))) : t.shouldSelectClip && this.selectClip(e.id, e);
|
|
20855
20804
|
}
|
|
20856
20805
|
handleActionUndo(e) {
|
|
@@ -20869,7 +20818,7 @@ class sp {
|
|
|
20869
20818
|
this.getEventDispatcher().emit(e, t);
|
|
20870
20819
|
}
|
|
20871
20820
|
emitSelectedClipChangeIfNeeded() {
|
|
20872
|
-
this.lastSelectedClipId =
|
|
20821
|
+
this.lastSelectedClipId = Jd({
|
|
20873
20822
|
lastSelectedClipId: this.lastSelectedClipId,
|
|
20874
20823
|
resolveSelectedClip: () => this.resolveSelectedClipSnapshot(),
|
|
20875
20824
|
emitSelectedClipChange: (e) => this.emitEvent("selected_clip_change", e)
|
|
@@ -20894,7 +20843,7 @@ class sp {
|
|
|
20894
20843
|
F.debugLazy("TimelineManager", () => "检测到 clip 重叠,需要创建新轨道", () => ({ clipId: e.id, currentTrackId: t }));
|
|
20895
20844
|
const r = this.getTrackCollection();
|
|
20896
20845
|
if (!r.findById(t)) return;
|
|
20897
|
-
const n = e.type, a = this.trackManager.getTracksByType(n).length + 1, o = `${
|
|
20846
|
+
const n = e.type, a = this.trackManager.getTracksByType(n).length + 1, o = `${Xu(n)}轨道 ${a}`, l = this.createTrack(n, o);
|
|
20898
20847
|
if (!l) return;
|
|
20899
20848
|
const c = ((d = (h = r.findById(l)) == null ? void 0 : h.getId) == null ? void 0 : d.call(h)) || ((g = (u = r.getLastTrack()) == null ? void 0 : u.getId) == null ? void 0 : g.call(u)) || l;
|
|
20900
20849
|
this.moveClipToTrackWithHistorySnapshot(e.id, c, i ?? null, e), this.cleanupEmptyTracks();
|
|
@@ -21285,7 +21234,7 @@ class sp {
|
|
|
21285
21234
|
}));
|
|
21286
21235
|
}
|
|
21287
21236
|
attachClipConfig(e, t = {}) {
|
|
21288
|
-
const i = new
|
|
21237
|
+
const i = new Nu(), r = t.generateVoiceBatch, n = r, a = r ? async (c) => {
|
|
21289
21238
|
i.setVoiceGenerationBusy(!0);
|
|
21290
21239
|
try {
|
|
21291
21240
|
return await r(c);
|
|
@@ -21372,7 +21321,7 @@ class sp {
|
|
|
21372
21321
|
}
|
|
21373
21322
|
resetPreviewAspectRatioToAuto() {
|
|
21374
21323
|
var e, t;
|
|
21375
|
-
this.previewAspectRatio = { ...
|
|
21324
|
+
this.previewAspectRatio = { ...Be }, (e = this.previewSession) == null || e.applyAspectRatio(this.previewAspectRatio), this.previewAspectRatio = ((t = this.previewSession) == null ? void 0 : t.getAspectRatio()) || this.previewAspectRatio, this.syncPreviewSession(), this.emitEvent("preview_aspect_ratio_change", { aspectRatio: this.getPreviewAspectRatio() });
|
|
21376
21325
|
}
|
|
21377
21326
|
/**
|
|
21378
21327
|
* 删除当前选中的 clip
|
|
@@ -21551,14 +21500,14 @@ class sp {
|
|
|
21551
21500
|
}), !1;
|
|
21552
21501
|
if (n.status !== "ready")
|
|
21553
21502
|
return !1;
|
|
21554
|
-
const { sourceTrackId: a, targetTrackId: o } = n, l = i ? { ...i } : { ...n.clip }, c = r ? { ...r } : { ...n.clip }, h = this.cloneTrackSnapshot(a), d = this.cloneTrackSnapshot(o), u =
|
|
21503
|
+
const { sourceTrackId: a, targetTrackId: o } = n, l = i ? { ...i } : { ...n.clip }, c = r ? { ...r } : { ...n.clip }, h = this.cloneTrackSnapshot(a), d = this.cloneTrackSnapshot(o), u = tu({
|
|
21555
21504
|
command: {
|
|
21556
21505
|
...n,
|
|
21557
21506
|
clip: c
|
|
21558
21507
|
},
|
|
21559
21508
|
trackCollection: this.getTrackCollection()
|
|
21560
21509
|
}), g = this.getClips().find((f) => f.id === e) ?? null;
|
|
21561
|
-
return
|
|
21510
|
+
return sd({
|
|
21562
21511
|
applied: u,
|
|
21563
21512
|
clipId: e,
|
|
21564
21513
|
sourceTrackId: a,
|
|
@@ -21569,7 +21518,7 @@ class sp {
|
|
|
21569
21518
|
targetTrackSnapshot: d,
|
|
21570
21519
|
isExecutingHistoryAction: this.isExecutingHistoryAction,
|
|
21571
21520
|
recordMoveClipBetweenTracks: this.getTimelineHistoryRecorder().recordMoveClipBetweenTracks.bind(this.getTimelineHistoryRecorder()),
|
|
21572
|
-
applyEffects: () =>
|
|
21521
|
+
applyEffects: () => iu({
|
|
21573
21522
|
notifySelectionChange: this.notifySelectionChange.bind(this),
|
|
21574
21523
|
cleanupEmptyTracks: this.cleanupEmptyTracks.bind(this),
|
|
21575
21524
|
updateTrackInfoPanel: this.updateTrackInfoPanel.bind(this),
|
|
@@ -21608,13 +21557,13 @@ class sp {
|
|
|
21608
21557
|
await ((e = this.resourceCacheManager) == null ? void 0 : e.clear());
|
|
21609
21558
|
}
|
|
21610
21559
|
destroy() {
|
|
21611
|
-
var e, t, i, r, n, a, o, l, c, h, d, u
|
|
21560
|
+
var e, t, i, r, n, a, o, l, c, h, d, u;
|
|
21612
21561
|
this.mountManager.destroyAll(), this.animationFrameId && cancelAnimationFrame(this.animationFrameId), this.clearPreviewBufferingSuspendTimeout(), this.clearPendingPreviewState(), (e = this.resourceCacheManager) == null || e.cleanupExpired().catch(() => {
|
|
21613
|
-
}), this.previewSession && (this.previewSession.hasPreview() ? (this.detachPreview(), this.previewSession = void 0) : this.destroyPreviewSession(!0)), this.resizeObserver && (this.resizeObserver.disconnect(), this.resizeObserver = null), this.trackInfoPanelController.destroy(), (t = this.
|
|
21562
|
+
}), this.previewSession && (this.previewSession.hasPreview() ? (this.detachPreview(), this.previewSession = void 0) : this.destroyPreviewSession(!0)), this.resizeObserver && (this.resizeObserver.disconnect(), this.resizeObserver = null), this.trackInfoPanelController.destroy(), (t = this.layout) == null || t.bodyViewport.removeEventListener("scroll", this.bodyViewportScrollListener), (n = (i = this.layout) == null ? void 0 : (r = i.bodyCanvasHost).removeEventListener) == null || n.call(r, "click", this.bodyCanvasHostClickListener), (o = (a = this.rootContainer) == null ? void 0 : a.removeEventListener) == null || o.call(a, "wheel", this.rootWheelListener), (l = this.horizontalScrollbar) == null || l.destroy(), (c = this.verticalScrollbar) == null || c.destroy(), (h = this.playhead) == null || h.destroy(), (d = this.timeline) == null || d.destroy(), (u = this.stage) == null || u.destroy(), this.rootContainer && (this.rootContainer.innerHTML = ""), this.getEventDispatcher().clear();
|
|
21614
21563
|
}
|
|
21615
21564
|
initKeyboardShortcuts() {
|
|
21616
21565
|
var e;
|
|
21617
|
-
this.rootContainer && (this.mountManager || (this.mountManager = new xs()), (e = this.keyboardShortcutsController) == null || e.destroy(), this.keyboardShortcutsController = new
|
|
21566
|
+
this.rootContainer && (this.mountManager || (this.mountManager = new xs()), (e = this.keyboardShortcutsController) == null || e.destroy(), this.keyboardShortcutsController = new Kd({
|
|
21618
21567
|
root: this.rootContainer,
|
|
21619
21568
|
config: this.config.keyboardShortcuts,
|
|
21620
21569
|
callbacks: {
|
|
@@ -22058,7 +22007,7 @@ class sp {
|
|
|
22058
22007
|
var t;
|
|
22059
22008
|
if (this.selectionBoxRect)
|
|
22060
22009
|
return this.selectionBoxRect;
|
|
22061
|
-
const e = new
|
|
22010
|
+
const e = new q.Rect({
|
|
22062
22011
|
fill: sn.fill,
|
|
22063
22012
|
stroke: sn.stroke,
|
|
22064
22013
|
strokeWidth: 1,
|
|
@@ -22252,7 +22201,7 @@ class sp {
|
|
|
22252
22201
|
});
|
|
22253
22202
|
}
|
|
22254
22203
|
resolveSelectionChangeData() {
|
|
22255
|
-
return
|
|
22204
|
+
return Zd({
|
|
22256
22205
|
getPrimarySelectedClip: () => {
|
|
22257
22206
|
var e;
|
|
22258
22207
|
try {
|
|
@@ -22324,27 +22273,26 @@ class sp {
|
|
|
22324
22273
|
}
|
|
22325
22274
|
export {
|
|
22326
22275
|
Is as ASPECT_RATIO_BASELINE_SHORT_EDGE_PX,
|
|
22327
|
-
|
|
22276
|
+
Ku as CLIP_LAYER,
|
|
22328
22277
|
lr as Clip,
|
|
22329
|
-
|
|
22278
|
+
jh as ClipConfigPanel,
|
|
22330
22279
|
za as DEFAULT_CLIP_VIEW_STATE,
|
|
22331
|
-
|
|
22280
|
+
Be as DEFAULT_PREVIEW_ASPECT_RATIO,
|
|
22332
22281
|
$a as DEFAULT_TEXT_CLIP_STYLE,
|
|
22333
22282
|
Oc as DiagnosticsCenter,
|
|
22334
|
-
Gc as DiagnosticsPanel,
|
|
22335
22283
|
ns as HistoryManager,
|
|
22336
22284
|
Ni as MIN_CLIP_LINE_WIDTH,
|
|
22337
|
-
|
|
22338
|
-
|
|
22285
|
+
ju as PREVIEW_ASPECT_RATIO_PRESETS,
|
|
22286
|
+
Qu as Playhead,
|
|
22339
22287
|
pe as TIMELINE_LEFT_PADDING,
|
|
22340
|
-
|
|
22288
|
+
Zu as TIME_SCALE,
|
|
22341
22289
|
Qi as TRACK_HEIGHT,
|
|
22342
22290
|
$ as TimeUtils,
|
|
22343
|
-
|
|
22344
|
-
|
|
22291
|
+
Ju as Timeline,
|
|
22292
|
+
rp as TimelineManager,
|
|
22345
22293
|
$r as Track,
|
|
22346
|
-
|
|
22347
|
-
|
|
22294
|
+
Wh as TrackInfoPanel,
|
|
22295
|
+
Du as TrackManager,
|
|
22348
22296
|
Va as ZOOM_ANIMATION,
|
|
22349
22297
|
ke as ZOOM_PRESETS,
|
|
22350
22298
|
Ua as createClipViewState,
|