pptx-svelte-viewer 4.55.0 → 4.56.1
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/CHANGELOG.md +30 -0
- package/dist/{export-BJPif0uf.js → export-BPoswxgr.js} +17 -12
- package/dist/index.d.ts +19 -2
- package/dist/index.js +1 -1
- package/dist/internals.js +1 -1
- package/dist/{transition-overlay-BSugeWHT.js → transition-overlay-DdHKcrCY.js} +293 -293
- package/dist/viewer/index.d.ts +20 -1
- package/dist/viewer/index.js +2 -2
- package/dist/{y-webrtc-UWmmFjVf.js → y-webrtc-C7DZFzI3.js} +1 -1
- package/package.json +3 -3
|
@@ -6,18 +6,18 @@ import { getContext as he, onDestroy as Qt, onMount as Pn, setContext as ke, tic
|
|
|
6
6
|
import * as Rn from "ooxml-core/pptx";
|
|
7
7
|
var Ln = Object.create, Ue = Object.defineProperty, An = Object.getOwnPropertyDescriptor, Mn = Object.getOwnPropertyNames, On = Object.getPrototypeOf, $t = Object.prototype.hasOwnProperty, rc = (a, t) => () => (t || (a((t = { exports: {} }).exports, t, t.exports), a = null), t.exports), Fn = (a, t) => {
|
|
8
8
|
let i = {};
|
|
9
|
-
for (var
|
|
10
|
-
Ue(i,
|
|
11
|
-
get: a[
|
|
9
|
+
for (var v in a)
|
|
10
|
+
Ue(i, v, {
|
|
11
|
+
get: a[v],
|
|
12
12
|
enumerable: !0
|
|
13
13
|
});
|
|
14
14
|
return t || Ue(i, Symbol.toStringTag, { value: "Module" }), i;
|
|
15
|
-
}, $e = (a, t, i,
|
|
15
|
+
}, $e = (a, t, i, v) => {
|
|
16
16
|
if (t && typeof t == "object" || typeof t == "function")
|
|
17
17
|
for (var n = Mn(t), w = 0, d = n.length, s; w < d; w++)
|
|
18
18
|
s = n[w], !$t.call(a, s) && s !== i && Ue(a, s, {
|
|
19
19
|
get: ((c) => t[c]).bind(null, s),
|
|
20
|
-
enumerable: !(
|
|
20
|
+
enumerable: !(v = An(t, s)) || v.enumerable
|
|
21
21
|
});
|
|
22
22
|
return a;
|
|
23
23
|
}, Bn = (a, t, i) => ($e(a, t, "default"), i && $e(i, t, "default")), ic = (a, t, i) => (i = a != null ? Ln(On(a)) : {}, $e(t || !a || !a.__esModule || !$t.call(a, "default") ? Ue(i, "default", {
|
|
@@ -82,7 +82,7 @@ var Un = class {
|
|
|
82
82
|
applyPreferences(a) {
|
|
83
83
|
const t = _t(this.options);
|
|
84
84
|
let i = this.options;
|
|
85
|
-
for (const
|
|
85
|
+
for (const v of Object.keys(t)) t[v] !== a[v] && (i = Ba(i, v, a[v]));
|
|
86
86
|
i !== this.options && this.#e.setOptions(i);
|
|
87
87
|
}
|
|
88
88
|
screenTip(a, t, i) {
|
|
@@ -176,11 +176,11 @@ function Vn() {
|
|
|
176
176
|
}
|
|
177
177
|
function jn(a) {
|
|
178
178
|
if (!a) return;
|
|
179
|
-
const t = a.getColorScheme(), i = a.getTableStyleMap(),
|
|
180
|
-
return t || i ||
|
|
179
|
+
const t = a.getColorScheme(), i = a.getTableStyleMap(), v = a.getFontScheme?.(), n = a.getFormatScheme?.();
|
|
180
|
+
return t || i || v || n ? {
|
|
181
181
|
colorScheme: t,
|
|
182
182
|
tableStyleMap: i,
|
|
183
|
-
fontScheme:
|
|
183
|
+
fontScheme: v,
|
|
184
184
|
formatScheme: n
|
|
185
185
|
} : void 0;
|
|
186
186
|
}
|
|
@@ -204,8 +204,8 @@ function Yn(a) {
|
|
|
204
204
|
function j(a) {
|
|
205
205
|
if (!a) return "";
|
|
206
206
|
const t = [];
|
|
207
|
-
for (const [i,
|
|
208
|
-
|
|
207
|
+
for (const [i, v] of Object.entries(a))
|
|
208
|
+
v == null || v === "" || t.push(`${Yn(i)}: ${String(v)}`);
|
|
209
209
|
return t.join("; ");
|
|
210
210
|
}
|
|
211
211
|
function je(...a) {
|
|
@@ -224,7 +224,7 @@ function ge(a, t) {
|
|
|
224
224
|
function ue(a) {
|
|
225
225
|
return Cr(a);
|
|
226
226
|
}
|
|
227
|
-
function nt(a, t, i,
|
|
227
|
+
function nt(a, t, i, v) {
|
|
228
228
|
const n = Xt(a);
|
|
229
229
|
if (n) return { ...n };
|
|
230
230
|
if (!(0, oe.hasShapeProperties)(a)) return {};
|
|
@@ -233,7 +233,7 @@ function nt(a, t, i, u) {
|
|
|
233
233
|
const g = i ? void 0 : Ur(a, t);
|
|
234
234
|
g && (g.backgroundColor !== void 0 && (d.backgroundColor = g.backgroundColor), g.backgroundImage !== void 0 && (d.backgroundImage = g.backgroundImage), g.backgroundRepeat !== void 0 && (d.backgroundRepeat = g.backgroundRepeat), g.backgroundSize !== void 0 && (d.backgroundSize = g.backgroundSize), g.backgroundPosition !== void 0 && (d.backgroundPosition = g.backgroundPosition));
|
|
235
235
|
const y = Nr(a);
|
|
236
|
-
y.borderWidth > 0 && (
|
|
236
|
+
y.borderWidth > 0 && (v ? (d.borderWidth = y.cssBorderWidth, d.borderStyle = y.borderStyle ?? "solid") : d.border = y.border ?? ""), y.strokeLinejoin && (d.strokeLinejoin = y.strokeLinejoin), y.strokeLinecap && (d.strokeLinecap = y.strokeLinecap), y.strokeMiterlimit !== void 0 && (d.strokeMiterlimit = y.strokeMiterlimit);
|
|
237
237
|
}
|
|
238
238
|
const s = Ke(a);
|
|
239
239
|
s.boxShadow && (d.boxShadow = s.boxShadow), s.filter && (d.filter = s.filter), s.mixBlendMode && (d.mixBlendMode = s.mixBlendMode), s.opacity !== void 0 && (d.opacity = (typeof a.opacity == "number" ? a.opacity : 1) * s.opacity), s.overflowVisible && (d.overflow = "visible"), Zn(d, Rr(a)), wi(a) && (d.pointerEvents = "none");
|
|
@@ -253,8 +253,8 @@ function nt(a, t, i, u) {
|
|
|
253
253
|
return d;
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
|
-
function Kn(a, t, i,
|
|
257
|
-
const w = ge(a, t), d = nt(a, i,
|
|
256
|
+
function Kn(a, t, i, v, n) {
|
|
257
|
+
const w = ge(a, t), d = nt(a, i, v, n), s = {
|
|
258
258
|
...w,
|
|
259
259
|
...d
|
|
260
260
|
};
|
|
@@ -274,17 +274,17 @@ function et(a) {
|
|
|
274
274
|
height: a.height
|
|
275
275
|
});
|
|
276
276
|
if (!i) return t;
|
|
277
|
-
const
|
|
277
|
+
const v = {
|
|
278
278
|
...t,
|
|
279
279
|
...i
|
|
280
280
|
};
|
|
281
|
-
return t.transform && i.transform && (
|
|
281
|
+
return t.transform && i.transform && (v.transform = `${String(t.transform)} ${String(i.transform)}`), v;
|
|
282
282
|
}
|
|
283
283
|
var Qn = e.from_html('<img class="pptx-svelte-activex-overlay-image svelte-pz2b0p" draggable="false"/>'), $n = e.from_html('<div class="pptx-svelte-activex-overlay-placeholder svelte-pz2b0p"> </div>'), es = e.from_html('<div class="pptx-svelte-activex-overlay svelte-pz2b0p" data-testid="pptx-activex-overlay"></div>');
|
|
284
284
|
function ts(a, t) {
|
|
285
285
|
e.push(t, !0);
|
|
286
286
|
var i = es();
|
|
287
|
-
e.each(i, 23, () => t.controls, (
|
|
287
|
+
e.each(i, 23, () => t.controls, (v, n) => v.relId + String(n), (v, n, w) => {
|
|
288
288
|
const d = e.derived(() => Lr(e.get(n), t.canvasSize, e.get(w)));
|
|
289
289
|
var s = e.comment(), c = e.first_child(s), g = (F) => {
|
|
290
290
|
var A = Qn();
|
|
@@ -299,18 +299,18 @@ function ts(a, t) {
|
|
|
299
299
|
};
|
|
300
300
|
e.if(c, (F) => {
|
|
301
301
|
e.get(d).className === "image" && e.get(d).imageUrl ? F(g) : F(y, -1);
|
|
302
|
-
}), e.append(
|
|
302
|
+
}), e.append(v, s);
|
|
303
303
|
}), e.reset(i), e.append(a, i), e.pop();
|
|
304
304
|
}
|
|
305
305
|
var as = e.from_html('<button type="button" class="pptx-svelte-comment-marker svelte-8xt3mb"> </button>'), rs = e.from_html('<div class="pptx-svelte-comment-markers svelte-8xt3mb"></div>');
|
|
306
306
|
function is(a, t) {
|
|
307
307
|
e.push(t, !0);
|
|
308
|
-
const i = ye(),
|
|
308
|
+
const i = ye(), v = e.derived(() => Ha(t.comments, t.canvasSize.width, t.canvasSize.height, i("pptx.comments.unknownAuthor"))), n = Ne / 2;
|
|
309
309
|
function w(s, c) {
|
|
310
310
|
s.stopPropagation(), t.onmarkerclick?.(c);
|
|
311
311
|
}
|
|
312
312
|
var d = rs();
|
|
313
|
-
e.each(d, 21, () => e.get(
|
|
313
|
+
e.each(d, 21, () => e.get(v), (s) => s.commentId, (s, c) => {
|
|
314
314
|
var g = as(), y = e.only_child(g, !0);
|
|
315
315
|
e.template_effect(() => {
|
|
316
316
|
e.set_style(g, `left:${e.get(c).x - n}px;top:${e.get(c).y - n}px;width:${Ne}px;height:${Ne}px`), e.set_attribute(g, "title", e.get(c).title), e.set_text(y, e.get(c).label);
|
|
@@ -347,27 +347,27 @@ function ds(a) {
|
|
|
347
347
|
return a.columnWidths.map((t) => `width: ${(t * 100).toFixed(2)}%`);
|
|
348
348
|
}
|
|
349
349
|
function gs(a, t) {
|
|
350
|
-
const i = a.rows.length,
|
|
350
|
+
const i = a.rows.length, v = a.columnWidths.length;
|
|
351
351
|
return a.rows.map((n, w) => ({
|
|
352
352
|
key: `r${w}`,
|
|
353
353
|
style: n.height && n.height > 0 ? `height: ${n.height}px` : void 0,
|
|
354
354
|
cells: n.cells.map((d, s) => ({
|
|
355
355
|
cell: d,
|
|
356
356
|
cellIndex: s
|
|
357
|
-
})).filter(({ cell: d }) => !d.hMerge && !d.vMerge).map(({ cell: d, cellIndex: s }) => cs(a, d, w, s, i,
|
|
357
|
+
})).filter(({ cell: d }) => !d.hMerge && !d.vMerge).map(({ cell: d, cellIndex: s }) => cs(a, d, w, s, i, v, t))
|
|
358
358
|
}));
|
|
359
359
|
}
|
|
360
|
-
function cs(a, t, i,
|
|
360
|
+
function cs(a, t, i, v, n, w, d) {
|
|
361
361
|
const s = Cn(a, t, {
|
|
362
362
|
rowIndex: i,
|
|
363
|
-
cellIndex:
|
|
363
|
+
cellIndex: v,
|
|
364
364
|
rowCount: n,
|
|
365
365
|
columnCount: w
|
|
366
366
|
}, d), c = t.style ? or(t.style) : null;
|
|
367
367
|
return c && (delete s.backgroundColor, delete s.background, c.backgroundImage && (s.backgroundImage = c.backgroundImage), c.backgroundColor && (s.backgroundColor = c.backgroundColor)), {
|
|
368
|
-
key: `c${i}-${
|
|
368
|
+
key: `c${i}-${v}`,
|
|
369
369
|
rowIndex: i,
|
|
370
|
-
cellIndex:
|
|
370
|
+
cellIndex: v,
|
|
371
371
|
colSpan: t.gridSpan && t.gridSpan > 1 ? t.gridSpan : void 0,
|
|
372
372
|
rowSpan: t.rowSpan && t.rowSpan > 1 ? t.rowSpan : void 0,
|
|
373
373
|
style: j({
|
|
@@ -376,7 +376,7 @@ function cs(a, t, i, u, n, w, d) {
|
|
|
376
376
|
}),
|
|
377
377
|
diagonals: Br(t.style, a, {
|
|
378
378
|
rowIndex: i,
|
|
379
|
-
cellIndex:
|
|
379
|
+
cellIndex: v,
|
|
380
380
|
rowCount: n,
|
|
381
381
|
columnCount: w
|
|
382
382
|
}, d),
|
|
@@ -387,7 +387,7 @@ function cs(a, t, i, u, n, w, d) {
|
|
|
387
387
|
}
|
|
388
388
|
function vs(a, t) {
|
|
389
389
|
const i = a.textRuns;
|
|
390
|
-
return !i || i.length === 0 ? null : i.map((
|
|
390
|
+
return !i || i.length === 0 ? null : i.map((v, n) => ia(v, n, t));
|
|
391
391
|
}
|
|
392
392
|
function ia(a, t, i) {
|
|
393
393
|
return {
|
|
@@ -403,26 +403,26 @@ function ia(a, t, i) {
|
|
|
403
403
|
}
|
|
404
404
|
function us(a, t) {
|
|
405
405
|
const i = lr(a);
|
|
406
|
-
return i ? i.map((
|
|
406
|
+
return i ? i.map((v, n) => ({
|
|
407
407
|
key: `para${n}`,
|
|
408
408
|
style: j({
|
|
409
409
|
display: "block",
|
|
410
|
-
...
|
|
410
|
+
...v.css
|
|
411
411
|
}),
|
|
412
|
-
runs:
|
|
412
|
+
runs: v.runs.map((w, d) => ia(w, d, t))
|
|
413
413
|
})) : null;
|
|
414
414
|
}
|
|
415
415
|
function fs(a) {
|
|
416
416
|
return Gi(a);
|
|
417
417
|
}
|
|
418
418
|
function _s(a, t) {
|
|
419
|
-
const i = a.chartData,
|
|
419
|
+
const i = a.chartData, v = (s) => ({
|
|
420
420
|
kind: "placeholder",
|
|
421
421
|
label: t ? cr(s, t) : `Chart: ${s ?? "bar"}`
|
|
422
422
|
});
|
|
423
|
-
if (!i || i.series.length === 0) return
|
|
423
|
+
if (!i || i.series.length === 0) return v(i?.chartType ?? "bar");
|
|
424
424
|
const n = Jt(i.chartType ?? "bar");
|
|
425
|
-
if (n === "unsupported") return
|
|
425
|
+
if (n === "unsupported") return v(i.chartType);
|
|
426
426
|
const w = {
|
|
427
427
|
...a,
|
|
428
428
|
chartData: {
|
|
@@ -437,8 +437,8 @@ function _s(a, t) {
|
|
|
437
437
|
};
|
|
438
438
|
}
|
|
439
439
|
function ms(a, t) {
|
|
440
|
-
return fr(a, t).map((i,
|
|
441
|
-
key: `lg${
|
|
440
|
+
return fr(a, t).map((i, v) => ({
|
|
441
|
+
key: `lg${v}`,
|
|
442
442
|
transform: `translate(${i.x.toFixed(1)},${i.y.toFixed(1)})`,
|
|
443
443
|
color: i.color,
|
|
444
444
|
label: i.label,
|
|
@@ -467,9 +467,9 @@ function hs(a) {
|
|
|
467
467
|
return a.smartArtData ? Ye(a.smartArtData).label : void 0;
|
|
468
468
|
}
|
|
469
469
|
function bs(a, t) {
|
|
470
|
-
const i = a.smartArtData,
|
|
470
|
+
const i = a.smartArtData, v = i?.nodes ?? [], n = i?.drawingShapes ?? [], { nodes: w } = an(v, t, i?.presLayoutVars), d = n.length > 0 ? tn(n, v, t) : n;
|
|
471
471
|
if (i && n.length > 0) {
|
|
472
|
-
const s = i.style ?? "flat", c = mr(n), g = mt(Ye(i).nodes), y = en(n, d,
|
|
472
|
+
const s = i.style ?? "flat", c = mr(n), g = mt(Ye(i).nodes), y = en(n, d, v), F = Wi(a.id, d, c, Je(i), s);
|
|
473
473
|
return {
|
|
474
474
|
kind: "drawing",
|
|
475
475
|
viewBox: `0 0 ${c.width} ${c.height}`,
|
|
@@ -484,7 +484,7 @@ function bs(a, t) {
|
|
|
484
484
|
shadow: Dn(s)
|
|
485
485
|
};
|
|
486
486
|
}
|
|
487
|
-
if (i &&
|
|
487
|
+
if (i && v.length > 0) {
|
|
488
488
|
const s = br(i, w, {
|
|
489
489
|
width: a.width,
|
|
490
490
|
height: a.height
|
|
@@ -512,8 +512,8 @@ function xs(a, t = !1) {
|
|
|
512
512
|
return Ja(a, {
|
|
513
513
|
color: Ut,
|
|
514
514
|
width: 1
|
|
515
|
-
}).map((
|
|
516
|
-
...
|
|
515
|
+
}).map((v, n) => ({
|
|
516
|
+
...v,
|
|
517
517
|
replay: i[n] ?? null
|
|
518
518
|
}));
|
|
519
519
|
}
|
|
@@ -525,19 +525,19 @@ function ks(a, t) {
|
|
|
525
525
|
};
|
|
526
526
|
}
|
|
527
527
|
function Ss(a) {
|
|
528
|
-
const t = Ji(a), i = si(t),
|
|
528
|
+
const t = Ji(a), i = si(t), v = li(t), n = ri(t);
|
|
529
529
|
return {
|
|
530
530
|
type: t,
|
|
531
531
|
typeColor: i,
|
|
532
|
-
typeLabel:
|
|
532
|
+
typeLabel: v,
|
|
533
533
|
badgeLabel: n,
|
|
534
534
|
badgeFontSize: n.length > 4 ? 6 : 10,
|
|
535
535
|
ariaLabel: ai(a),
|
|
536
|
-
titleText: ws(a,
|
|
536
|
+
titleText: ws(a, v).join(`
|
|
537
537
|
`),
|
|
538
538
|
previewSrc: a.previewImageData,
|
|
539
539
|
displayName: ii(a),
|
|
540
|
-
sublabel: a.fileName ?
|
|
540
|
+
sublabel: a.fileName ? v : void 0,
|
|
541
541
|
placeholderStyle: j({
|
|
542
542
|
...ci(t),
|
|
543
543
|
width: "100%",
|
|
@@ -550,14 +550,14 @@ function Ss(a) {
|
|
|
550
550
|
boxSizing: "border-box"
|
|
551
551
|
}),
|
|
552
552
|
embeddedData: a.oleEmbeddedData,
|
|
553
|
-
downloadName: a.oleEmbeddedFileName ?? a.fileName ??
|
|
553
|
+
downloadName: a.oleEmbeddedFileName ?? a.fileName ?? v,
|
|
554
554
|
size: Gt(a.oleEmbeddedByteSize),
|
|
555
555
|
canOpen: yi(a.oleEmbeddedMimeType)
|
|
556
556
|
};
|
|
557
557
|
}
|
|
558
558
|
function ws(a, t) {
|
|
559
|
-
const i = [t],
|
|
560
|
-
|
|
559
|
+
const i = [t], v = a.oleEmbeddedFileName ?? a.fileName;
|
|
560
|
+
v && i.push(v);
|
|
561
561
|
const n = Gt(a.oleEmbeddedByteSize);
|
|
562
562
|
return n && i.push(n), a.oleProgId && i.push(a.oleProgId), i;
|
|
563
563
|
}
|
|
@@ -573,7 +573,7 @@ function qs(a, t) {
|
|
|
573
573
|
if (!a) return;
|
|
574
574
|
const i = (0, oe.parseDataUrlToBytes)(a);
|
|
575
575
|
if (!i) return;
|
|
576
|
-
const
|
|
576
|
+
const v = new Uint8Array(i.bytes), n = new Blob([v], { type: t ?? "model/gltf-binary" });
|
|
577
577
|
return URL.createObjectURL(n);
|
|
578
578
|
}
|
|
579
579
|
var sa = /* @__PURE__ */ Symbol("pptx-svelte-rendering-3d-flags"), zs = {
|
|
@@ -613,44 +613,44 @@ var Cs = class {
|
|
|
613
613
|
}, pt = e.from_svg("<stop></stop>"), Is = e.from_svg("<linearGradient></linearGradient>"), Es = e.from_svg("<radialGradient></radialGradient>"), Ps = e.from_svg('<pattern><image x="0" y="0"></image></pattern>'), Ts = e.from_svg("<defs></defs>"), Ls = e.from_svg('<rect x="0" y="0"></rect>'), As = e.from_svg("<tspan> </tspan>"), Ms = e.from_svg('<text text-anchor="middle" data-chart-part="title"><!></text>'), Oe = e.from_svg("<line></line>"), Le = e.from_svg("<text> </text>"), Ce = e.from_svg("<title> </title>"), Os = e.from_svg("<rect><!></rect>"), Fs = e.from_svg("<path><!></path>"), Bs = e.from_svg("<polyline><!></polyline>"), Rs = e.from_svg("<circle><!></circle>"), Us = e.from_svg("<line><!></line>"), Ws = e.from_svg("<polygon><!></polygon>"), Ns = e.from_svg("<rect></rect>"), Vs = e.from_svg("<circle></circle>"), js = e.from_svg("<polygon></polygon>"), Gs = e.from_svg("<path></path>"), Hs = e.from_svg('<rect x="0" y="-7" width="10" height="10" rx="2"></rect>'), Xs = e.from_svg('<g class="pptx-svelte-chart-legend-item"><!><text x="13" y="3"> </text></g>'), Ys = e.from_svg('<svg class="pptx-svelte-chart-svg svelte-1n665n0"><!><!><!><!><!><!><!><!><!><!><!><!></svg>');
|
|
614
614
|
function ht(a, t) {
|
|
615
615
|
e.push(t, !0);
|
|
616
|
-
var i = Ys(),
|
|
616
|
+
var i = Ys(), v = e.child(i), n = (h) => {
|
|
617
617
|
var r = Ts();
|
|
618
618
|
e.each(r, 21, () => t.vm.defs.map(Hi), (l) => l.id, (l, q) => {
|
|
619
619
|
var D = e.comment(), T = e.first_child(D), S = (f) => {
|
|
620
|
-
var
|
|
621
|
-
e.each(
|
|
620
|
+
var u = Is();
|
|
621
|
+
e.each(u, 21, () => e.get(q).stops, e.index, (_, o) => {
|
|
622
622
|
var m = pt();
|
|
623
623
|
e.template_effect(() => {
|
|
624
624
|
e.set_attribute(m, "offset", e.get(o).offset), e.set_attribute(m, "stop-color", e.get(o).color), e.set_attribute(m, "stop-opacity", e.get(o).opacity);
|
|
625
625
|
}), e.append(_, m);
|
|
626
|
-
}), e.reset(
|
|
627
|
-
e.set_attribute(
|
|
628
|
-
}), e.append(f,
|
|
626
|
+
}), e.reset(u), e.template_effect(() => {
|
|
627
|
+
e.set_attribute(u, "id", e.get(q).id), e.set_attribute(u, "gradientUnits", e.get(q).gradientUnits), e.set_attribute(u, "x1", e.get(q).x1), e.set_attribute(u, "y1", e.get(q).y1), e.set_attribute(u, "x2", e.get(q).x2), e.set_attribute(u, "y2", e.get(q).y2);
|
|
628
|
+
}), e.append(f, u);
|
|
629
629
|
}, x = (f) => {
|
|
630
|
-
var
|
|
631
|
-
e.each(
|
|
630
|
+
var u = Es();
|
|
631
|
+
e.each(u, 21, () => e.get(q).stops, e.index, (_, o) => {
|
|
632
632
|
var m = pt();
|
|
633
633
|
e.template_effect(() => {
|
|
634
634
|
e.set_attribute(m, "offset", e.get(o).offset), e.set_attribute(m, "stop-color", e.get(o).color), e.set_attribute(m, "stop-opacity", e.get(o).opacity);
|
|
635
635
|
}), e.append(_, m);
|
|
636
|
-
}), e.reset(
|
|
637
|
-
e.set_attribute(
|
|
638
|
-
}), e.append(f,
|
|
636
|
+
}), e.reset(u), e.template_effect(() => {
|
|
637
|
+
e.set_attribute(u, "id", e.get(q).id), e.set_attribute(u, "cx", e.get(q).cx), e.set_attribute(u, "cy", e.get(q).cy), e.set_attribute(u, "r", e.get(q).r);
|
|
638
|
+
}), e.append(f, u);
|
|
639
639
|
}, k = (f) => {
|
|
640
|
-
var
|
|
640
|
+
var u = Ps(), _ = e.only_child(u);
|
|
641
641
|
e.template_effect(() => {
|
|
642
|
-
e.set_attribute(
|
|
643
|
-
}), e.append(f,
|
|
642
|
+
e.set_attribute(u, "id", e.get(q).id), e.set_attribute(u, "patternUnits", e.get(q).patternUnits), e.set_attribute(u, "patternContentUnits", e.get(q).patternContentUnits), e.set_attribute(u, "x", e.get(q).x), e.set_attribute(u, "y", e.get(q).y), e.set_attribute(u, "width", e.get(q).width), e.set_attribute(u, "height", e.get(q).height), e.set_attribute(_, "href", e.get(q).href), e.set_attribute(_, "width", e.get(q).width), e.set_attribute(_, "height", e.get(q).height), e.set_attribute(_, "preserveAspectRatio", e.get(q).preserveAspectRatio);
|
|
643
|
+
}), e.append(f, u);
|
|
644
644
|
};
|
|
645
645
|
e.if(T, (f) => {
|
|
646
646
|
e.get(q).kind === "linearGradient" ? f(S) : e.get(q).kind === "radialGradient" ? f(x, 1) : f(k, -1);
|
|
647
647
|
}), e.append(l, D);
|
|
648
648
|
}), e.reset(r), e.append(h, r);
|
|
649
649
|
};
|
|
650
|
-
e.if(
|
|
650
|
+
e.if(v, (h) => {
|
|
651
651
|
t.vm.defs && t.vm.defs.length > 0 && h(n);
|
|
652
652
|
});
|
|
653
|
-
var w = e.sibling(
|
|
653
|
+
var w = e.sibling(v), d = (h) => {
|
|
654
654
|
var r = Ls();
|
|
655
655
|
e.template_effect(() => {
|
|
656
656
|
e.set_attribute(r, "width", t.vm.svgWidth), e.set_attribute(r, "height", t.vm.svgHeight), e.set_attribute(r, "rx", t.vm.areaRadius), e.set_attribute(r, "fill", t.vm.areaFill);
|
|
@@ -663,10 +663,10 @@ function ht(a, t) {
|
|
|
663
663
|
var r = Ms(), l = e.child(r), q = (T) => {
|
|
664
664
|
var S = e.comment(), x = e.first_child(S);
|
|
665
665
|
e.each(x, 19, () => t.vm.titleRunSpans, (k, f) => `title-run-${f}`, (k, f) => {
|
|
666
|
-
var
|
|
666
|
+
var u = As(), _ = e.only_child(u, !0);
|
|
667
667
|
e.template_effect(() => {
|
|
668
|
-
e.set_attribute(
|
|
669
|
-
}), e.append(k,
|
|
668
|
+
e.set_attribute(u, "font-size", e.get(f).fontSize), e.set_attribute(u, "font-weight", e.get(f).fontWeight), e.set_attribute(u, "font-style", e.get(f).fontStyle), e.set_attribute(u, "font-family", e.get(f).fontFamily), e.set_attribute(u, "fill", e.get(f).fill), e.set_text(_, e.get(f).text);
|
|
669
|
+
}), e.append(k, u);
|
|
670
670
|
}), e.append(T, S);
|
|
671
671
|
}, D = (T) => {
|
|
672
672
|
var S = e.text();
|
|
@@ -830,14 +830,14 @@ function ht(a, t) {
|
|
|
830
830
|
e.if(m, (R) => {
|
|
831
831
|
e.get(r).title !== void 0 && R(z);
|
|
832
832
|
}), e.reset(o), e.append(_, o);
|
|
833
|
-
},
|
|
833
|
+
}, u = (_) => {
|
|
834
834
|
var o = Le(), m = e.only_child(o, !0);
|
|
835
835
|
e.template_effect(() => {
|
|
836
836
|
e.set_attribute(o, "x", e.get(r).x), e.set_attribute(o, "y", e.get(r).y), e.set_attribute(o, "text-anchor", e.get(r).textAnchor), e.set_attribute(o, "font-size", e.get(r).fontSize), e.set_attribute(o, "fill", e.get(r).fill), e.set_attribute(o, "font-weight", e.get(r).fontWeight ?? "normal"), e.set_attribute(o, "font-style", e.get(r).fontStyle ?? "normal"), e.set_attribute(o, "font-family", e.get(r).fontFamily), e.set_attribute(o, "dominant-baseline", e.get(r).dominantBaseline), e.set_attribute(o, "opacity", e.get(r).opacity ?? 1), e.set_attribute(o, "transform", e.get(r).transform), e.set_text(m, e.get(r).text);
|
|
837
837
|
}), e.append(_, o);
|
|
838
838
|
};
|
|
839
839
|
e.if(q, (_) => {
|
|
840
|
-
e.get(r).kind === "rect" ? _(D) : e.get(r).kind === "path" ? _(T, 1) : e.get(r).kind === "polyline" ? _(S, 2) : e.get(r).kind === "circle" ? _(x, 3) : e.get(r).kind === "line" ? _(k, 4) : e.get(r).kind === "polygon" ? _(f, 5) : e.get(r).kind === "text" && _(
|
|
840
|
+
e.get(r).kind === "rect" ? _(D) : e.get(r).kind === "path" ? _(T, 1) : e.get(r).kind === "polyline" ? _(S, 2) : e.get(r).kind === "circle" ? _(x, 3) : e.get(r).kind === "line" ? _(k, 4) : e.get(r).kind === "polygon" ? _(f, 5) : e.get(r).kind === "text" && _(u, 6);
|
|
841
841
|
}), e.append(h, l);
|
|
842
842
|
});
|
|
843
843
|
var I = e.sibling(B);
|
|
@@ -850,8 +850,8 @@ function ht(a, t) {
|
|
|
850
850
|
var b = e.sibling(I);
|
|
851
851
|
e.each(b, 17, () => t.legendItems, (h) => h.key, (h, r) => {
|
|
852
852
|
var l = Xs(), q = e.child(l), D = (k) => {
|
|
853
|
-
var f = e.comment(),
|
|
854
|
-
e.each(
|
|
853
|
+
var f = e.comment(), u = e.first_child(f);
|
|
854
|
+
e.each(u, 19, () => e.get(r).lineSwatch.primitives, (_, o) => `${e.get(r).key}-sw${o}`, (_, o) => {
|
|
855
855
|
var m = e.comment(), z = e.first_child(m), R = (L) => {
|
|
856
856
|
var P = Ns();
|
|
857
857
|
e.template_effect(() => {
|
|
@@ -950,7 +950,7 @@ var Zs = class {
|
|
|
950
950
|
a.stopPropagation(), this.selectedPart = t;
|
|
951
951
|
const i = this.#r();
|
|
952
952
|
if (!i.chartData) return;
|
|
953
|
-
const
|
|
953
|
+
const v = Nt(i);
|
|
954
954
|
let n = !1;
|
|
955
955
|
const w = Jt(i.chartData.chartType ?? "bar");
|
|
956
956
|
if (t.pointIndex !== void 0 && w !== "unsupported") {
|
|
@@ -965,8 +965,8 @@ var Zs = class {
|
|
|
965
965
|
part: t,
|
|
966
966
|
geometry: d,
|
|
967
967
|
chartData: i.chartData,
|
|
968
|
-
svgWidth:
|
|
969
|
-
svgHeight:
|
|
968
|
+
svgWidth: v.svgWidth,
|
|
969
|
+
svgHeight: v.svgHeight,
|
|
970
970
|
clientX: a.clientX,
|
|
971
971
|
clientY: a.clientY
|
|
972
972
|
});
|
|
@@ -975,7 +975,7 @@ var Zs = class {
|
|
|
975
975
|
if (!n) {
|
|
976
976
|
const d = Na({
|
|
977
977
|
part: t,
|
|
978
|
-
viewModel:
|
|
978
|
+
viewModel: v,
|
|
979
979
|
chartData: i.chartData,
|
|
980
980
|
clientY: a.clientY
|
|
981
981
|
});
|
|
@@ -1028,7 +1028,7 @@ var Zs = class {
|
|
|
1028
1028
|
}
|
|
1029
1029
|
const i = this.#l;
|
|
1030
1030
|
if (!i) return;
|
|
1031
|
-
const
|
|
1031
|
+
const v = this.#s()?.querySelector("svg")?.getBoundingClientRect().height ?? 0, n = Ta(i, a.clientY, v);
|
|
1032
1032
|
n && (this.preview = n.chartData, this.label = Ze(n.value));
|
|
1033
1033
|
};
|
|
1034
1034
|
#d = () => {
|
|
@@ -1042,25 +1042,25 @@ var Zs = class {
|
|
|
1042
1042
|
this.#l = null, this.#o = null, this.#g(), this.preview = null, this.label = null, a && (t?.moved && t.lastData ? this.#n(this.#r().id, t.lastData) : i?.moved && i.lastData && this.#n(this.#r().id, i.lastData));
|
|
1043
1043
|
}
|
|
1044
1044
|
};
|
|
1045
|
-
function Ks(a, t, i,
|
|
1046
|
-
|
|
1045
|
+
function Ks(a, t, i, v) {
|
|
1046
|
+
v && t && i.type === "chart" && v.setTarget(i.id, jt(a, t, i));
|
|
1047
1047
|
}
|
|
1048
|
-
function Js(a, t, i,
|
|
1049
|
-
if (!
|
|
1048
|
+
function Js(a, t, i, v) {
|
|
1049
|
+
if (!v || !t || i.type !== "chart") return !1;
|
|
1050
1050
|
const n = jt(a, t, i);
|
|
1051
|
-
return n === "title" ? !1 : (a.stopPropagation(),
|
|
1051
|
+
return n === "title" ? !1 : (a.stopPropagation(), v.openPane(i.id, n), !0);
|
|
1052
1052
|
}
|
|
1053
1053
|
var Qs = e.from_html("<pptx-three-view><!></pptx-three-view>", 2);
|
|
1054
1054
|
function la(a, t) {
|
|
1055
1055
|
e.push(t, !0), Dr();
|
|
1056
|
-
const i = e.prop(t, "interactive", 3, !1),
|
|
1056
|
+
const i = e.prop(t, "interactive", 3, !1), v = e.prop(t, "selectedPart", 3, null);
|
|
1057
1057
|
let n = e.state(void 0);
|
|
1058
1058
|
e.user_effect(() => {
|
|
1059
1059
|
e.get(n) && (e.get(n).spec = t.spec);
|
|
1060
1060
|
}), e.user_effect(() => {
|
|
1061
1061
|
e.get(n) && (e.get(n).interactive = i());
|
|
1062
1062
|
}), e.user_effect(() => {
|
|
1063
|
-
e.get(n) && (e.get(n).selectedPart =
|
|
1063
|
+
e.get(n) && (e.get(n).selectedPart = v());
|
|
1064
1064
|
}), e.user_effect(() => {
|
|
1065
1065
|
e.get(n) && (e.get(n).textStyle = t.textStyle);
|
|
1066
1066
|
}), e.user_effect(() => {
|
|
@@ -1077,12 +1077,12 @@ function la(a, t) {
|
|
|
1077
1077
|
var $s = e.from_html('<div aria-hidden="true" data-pptx-hit-target="true"></div>'), el = e.from_html('<div class="pptx-svelte-placeholder pptx-svelte-chart-placeholder svelte-1r880r8"> </div>'), tl = e.from_html('<div class="pptx-svelte-chart-drag-badge svelte-1r880r8"> </div>'), al = e.from_html('<input type="text" class="pptx-svelte-chart-title-input svelte-1r880r8"/>'), rl = e.from_html("<div><!> <!> <!> <!></div>");
|
|
1078
1078
|
function il(a, t) {
|
|
1079
1079
|
e.push(t, !0);
|
|
1080
|
-
const i = e.prop(t, "interactive", 3, !1),
|
|
1080
|
+
const i = e.prop(t, "interactive", 3, !1), v = e.prop(t, "marked", 3, !1), n = e.prop(t, "selected", 3, !1), w = e.prop(t, "editable", 3, !1), d = e.prop(t, "presenting", 3, !1), s = ye(), c = e.derived(() => ve(w(), d()) ? ue(t.element) : void 0);
|
|
1081
1081
|
let g = e.state(null), y = e.state(null);
|
|
1082
1082
|
const F = e.derived(() => i() && !!t.onchartpointcommit && t.element.type === "chart" && tt(t.element)), A = e.derived(() => e.get(F) && n()), p = new Zs({
|
|
1083
1083
|
element: () => t.element,
|
|
1084
1084
|
root: () => e.get(g),
|
|
1085
|
-
commit: (f,
|
|
1085
|
+
commit: (f, u) => t.onchartpointcommit?.(f, u)
|
|
1086
1086
|
});
|
|
1087
1087
|
e.user_effect(() => () => p.destroy());
|
|
1088
1088
|
const C = Nn();
|
|
@@ -1095,10 +1095,10 @@ function il(a, t) {
|
|
|
1095
1095
|
const I = e.derived(() => {
|
|
1096
1096
|
const f = p.rendered();
|
|
1097
1097
|
if (f.type !== "chart" || !f.chartData) return f;
|
|
1098
|
-
const
|
|
1099
|
-
return
|
|
1098
|
+
const u = $i(f.chartData, t.animationState);
|
|
1099
|
+
return u === f.chartData ? f : {
|
|
1100
1100
|
...f,
|
|
1101
|
-
chartData:
|
|
1101
|
+
chartData: u
|
|
1102
1102
|
};
|
|
1103
1103
|
}), b = new Cs();
|
|
1104
1104
|
e.user_effect(() => () => b.destroy());
|
|
@@ -1129,7 +1129,7 @@ function il(a, t) {
|
|
|
1129
1129
|
p.titleDraft !== null && (e.get(y)?.focus(), e.get(y)?.select());
|
|
1130
1130
|
});
|
|
1131
1131
|
var S = e.comment(), x = e.first_child(S), k = (f) => {
|
|
1132
|
-
var
|
|
1132
|
+
var u = rl(), _ = e.child(u), o = (P) => {
|
|
1133
1133
|
var V = $s();
|
|
1134
1134
|
e.template_effect((E) => e.set_style(V, E), [() => j(e.get(c))]), e.append(P, V);
|
|
1135
1135
|
};
|
|
@@ -1204,13 +1204,13 @@ function il(a, t) {
|
|
|
1204
1204
|
};
|
|
1205
1205
|
e.if(Y, (P) => {
|
|
1206
1206
|
p.titleDraft !== null && P(L);
|
|
1207
|
-
}), e.reset(
|
|
1208
|
-
e.set_class(
|
|
1209
|
-
}), e.delegated("pointerdown",
|
|
1207
|
+
}), e.reset(u), e.bind_this(u, (P) => e.set(g, P), () => e.get(g)), e.template_effect(() => {
|
|
1208
|
+
e.set_class(u, 1, `pptx-svelte-element pptx-svelte-chart${e.get(A) ? " pptx-chart-interactive" : ""}`, "svelte-1r880r8"), e.set_style(u, e.get(l)), e.set_attribute(u, "data-element-id", t.element.id), e.set_attribute(u, "data-pptx-element", i() || v() ? "true" : void 0);
|
|
1209
|
+
}), e.delegated("pointerdown", u, function(...P) {
|
|
1210
1210
|
(e.get(A) ? M : void 0)?.apply(this, P);
|
|
1211
|
-
}), e.delegated("dblclick",
|
|
1211
|
+
}), e.delegated("dblclick", u, function(...P) {
|
|
1212
1212
|
(e.get(A) ? B : void 0)?.apply(this, P);
|
|
1213
|
-
}), e.append(f,
|
|
1213
|
+
}), e.append(f, u);
|
|
1214
1214
|
};
|
|
1215
1215
|
e.if(x, (f) => {
|
|
1216
1216
|
e.get(h) && f(k);
|
|
@@ -1237,22 +1237,22 @@ function sl(a) {
|
|
|
1237
1237
|
};
|
|
1238
1238
|
}
|
|
1239
1239
|
function ll(a, t) {
|
|
1240
|
-
const i = a.style,
|
|
1240
|
+
const i = a.style, v = {
|
|
1241
1241
|
fontFamily: i?.fontFamily ?? t?.fontFamily ?? "inherit",
|
|
1242
1242
|
color: i?.color ?? t?.color ?? "#000000",
|
|
1243
1243
|
fontWeight: i?.bold || t?.bold ? "bold" : "normal",
|
|
1244
1244
|
fontStyle: i?.italic || t?.italic ? "italic" : "normal",
|
|
1245
1245
|
textDecoration: i?.underline ? "underline" : "none"
|
|
1246
1246
|
};
|
|
1247
|
-
return i?.fontSize && (
|
|
1247
|
+
return i?.fontSize && (v.fontSize = `${i.fontSize}px`), v;
|
|
1248
1248
|
}
|
|
1249
1249
|
var ol = e.from_html("<span> </span>"), dl = e.from_html('<div class="pptx-svelte-connector-text svelte-4yj58g"><div class="pptx-svelte-connector-text-block svelte-4yj58g"></div></div>');
|
|
1250
1250
|
function gl(a, t) {
|
|
1251
1251
|
e.push(t, !0);
|
|
1252
|
-
const i = e.derived(() => t.element.text?.trim() ?? ""),
|
|
1252
|
+
const i = e.derived(() => t.element.text?.trim() ?? ""), v = e.derived(() => t.element.textSegments ?? []);
|
|
1253
1253
|
var n = e.comment(), w = e.first_child(n), d = (s) => {
|
|
1254
1254
|
var c = dl(), g = e.child(c);
|
|
1255
|
-
e.each(g, 21, () => e.get(
|
|
1255
|
+
e.each(g, 21, () => e.get(v), e.index, (y, F) => {
|
|
1256
1256
|
var A = ol(), p = e.only_child(A, !0);
|
|
1257
1257
|
e.template_effect((C) => {
|
|
1258
1258
|
e.set_style(A, C), e.set_text(p, e.get(F).text);
|
|
@@ -1262,18 +1262,18 @@ function gl(a, t) {
|
|
|
1262
1262
|
}, [() => j(nl(t.element.textStyle)), () => j(sl(t.element.textStyle))]), e.append(s, c);
|
|
1263
1263
|
};
|
|
1264
1264
|
e.if(w, (s) => {
|
|
1265
|
-
e.get(i) && e.get(
|
|
1265
|
+
e.get(i) && e.get(v).length > 0 && s(d);
|
|
1266
1266
|
}), e.append(a, n), e.pop();
|
|
1267
1267
|
}
|
|
1268
1268
|
var bt = e.from_svg('<circle cx="5" cy="5" r="4"></circle>'), yt = e.from_svg('<path fill="none"></path>'), xt = e.from_svg("<path></path>"), kt = e.from_svg('<marker viewBox="0 0 10 10" refY="5" preserveAspectRatio="none" orient="auto-start-reverse" markerUnits="strokeWidth"><!></marker>'), cl = e.from_svg('<filter x="-50%" y="-50%" width="200%" height="200%"><feDropShadow></feDropShadow></filter>'), vl = e.from_svg('<path fill="none" stroke-linejoin="round"></path>'), ul = e.from_svg("<line></line>"), fl = e.from_html('<div class="pptx-svelte-element pptx-svelte-connector"><svg style="overflow: visible; display: block"><defs><!><!><!></defs><path class="pptx-svelte-connector-hit" fill="none" stroke="transparent" stroke-linecap="round" stroke-linejoin="round" style="pointer-events: stroke"></path><!></svg> <!></div>');
|
|
1269
1269
|
function _l(a, t) {
|
|
1270
1270
|
e.push(t, !0);
|
|
1271
|
-
const i = e.prop(t, "interactive", 3, !1),
|
|
1271
|
+
const i = e.prop(t, "interactive", 3, !1), v = e.prop(t, "marked", 3, !1), n = e.derived(() => Xa(t.element, t.zIndex)), w = e.derived(() => t.animationState?.animatesStroke ? "inherit" : e.get(n).strokeColor), d = e.derived(() => (0, oe.hasShapeProperties)(t.element) ? t.element.shapeStyle : void 0), s = e.derived(() => ti(e.get(d))), c = e.derived(() => ei(e.get(d))), g = e.derived(() => `${e.get(n).startMarkerId.replace(/-start$/u, "")}-line-shadow`), y = e.derived(() => e.get(c) ? `${e.get(n).wrapperStyle};filter:${e.get(c)}` : e.get(n).wrapperStyle), F = e.derived(() => (0, oe.hasTextProperties)(t.element) ? t.element : void 0);
|
|
1272
1272
|
var A = fl(), p = e.child(A), C = e.child(p), M = e.child(C), B = (S) => {
|
|
1273
1273
|
var x = kt(), k = e.child(x), f = (o) => {
|
|
1274
1274
|
var m = bt();
|
|
1275
1275
|
e.template_effect(() => e.set_attribute(m, "fill", e.get(w))), e.append(o, m);
|
|
1276
|
-
},
|
|
1276
|
+
}, u = (o) => {
|
|
1277
1277
|
var m = yt();
|
|
1278
1278
|
e.template_effect(() => {
|
|
1279
1279
|
e.set_attribute(m, "d", e.get(n).startMarker.d), e.set_attribute(m, "stroke", e.get(w));
|
|
@@ -1285,7 +1285,7 @@ function _l(a, t) {
|
|
|
1285
1285
|
}), e.append(o, m);
|
|
1286
1286
|
};
|
|
1287
1287
|
e.if(k, (o) => {
|
|
1288
|
-
e.get(n).startMarker.shape === "circle" ? o(f) : e.get(n).startMarker.strokeOnly ? o(
|
|
1288
|
+
e.get(n).startMarker.shape === "circle" ? o(f) : e.get(n).startMarker.strokeOnly ? o(u, 1) : o(_, -1);
|
|
1289
1289
|
}), e.reset(x), e.template_effect(() => {
|
|
1290
1290
|
e.set_attribute(x, "id", e.get(n).startMarkerId), e.set_attribute(x, "refX", e.get(n).startMarker.refX), e.set_attribute(x, "markerWidth", e.get(n).startMarker.markerWidth), e.set_attribute(x, "markerHeight", e.get(n).startMarker.markerHeight);
|
|
1291
1291
|
}), e.append(S, x);
|
|
@@ -1297,7 +1297,7 @@ function _l(a, t) {
|
|
|
1297
1297
|
var x = kt(), k = e.child(x), f = (o) => {
|
|
1298
1298
|
var m = bt();
|
|
1299
1299
|
e.template_effect(() => e.set_attribute(m, "fill", e.get(w))), e.append(o, m);
|
|
1300
|
-
},
|
|
1300
|
+
}, u = (o) => {
|
|
1301
1301
|
var m = yt();
|
|
1302
1302
|
e.template_effect(() => {
|
|
1303
1303
|
e.set_attribute(m, "d", e.get(n).endMarker.d), e.set_attribute(m, "stroke", e.get(w));
|
|
@@ -1309,7 +1309,7 @@ function _l(a, t) {
|
|
|
1309
1309
|
}), e.append(o, m);
|
|
1310
1310
|
};
|
|
1311
1311
|
e.if(k, (o) => {
|
|
1312
|
-
e.get(n).endMarker.shape === "circle" ? o(f) : e.get(n).endMarker.strokeOnly ? o(
|
|
1312
|
+
e.get(n).endMarker.shape === "circle" ? o(f) : e.get(n).endMarker.strokeOnly ? o(u, 1) : o(_, -1);
|
|
1313
1313
|
}), e.reset(x), e.template_effect(() => {
|
|
1314
1314
|
e.set_attribute(x, "id", e.get(n).endMarkerId), e.set_attribute(x, "refX", e.get(n).endMarker.refX), e.set_attribute(x, "markerWidth", e.get(n).endMarker.markerWidth), e.set_attribute(x, "markerHeight", e.get(n).endMarker.markerHeight);
|
|
1315
1315
|
}), e.append(S, x);
|
|
@@ -1328,7 +1328,7 @@ function _l(a, t) {
|
|
|
1328
1328
|
}), e.reset(C);
|
|
1329
1329
|
var l = e.sibling(C), q = e.sibling(l);
|
|
1330
1330
|
e.each(q, 17, () => e.get(n).compoundOffsets, e.index, (S, x, k) => {
|
|
1331
|
-
var f = e.comment(),
|
|
1331
|
+
var f = e.comment(), u = e.first_child(f), _ = (m) => {
|
|
1332
1332
|
var z = vl();
|
|
1333
1333
|
let R;
|
|
1334
1334
|
e.template_effect((U, O, N) => {
|
|
@@ -1345,7 +1345,7 @@ function _l(a, t) {
|
|
|
1345
1345
|
e.set_attribute(z, "x1", e.get(n).x1), e.set_attribute(z, "y1", e.get(n).y1 + e.get(x)), e.set_attribute(z, "x2", e.get(n).x2), e.set_attribute(z, "y2", e.get(n).y2 + e.get(x)), e.set_attribute(z, "stroke", e.get(w)), e.set_attribute(z, "stroke-width", U), e.set_attribute(z, "stroke-opacity", e.get(n).strokeOpacity), e.set_attribute(z, "stroke-dasharray", e.get(n).dashArray), e.set_attribute(z, "stroke-linecap", e.get(n).strokeLinecap), e.set_attribute(z, "filter", k === 0 && e.get(s) ? `url(#${e.get(g)})` : void 0), e.set_attribute(z, "marker-start", k === 0 ? e.get(n).startMarkerRef ?? void 0 : void 0), e.set_attribute(z, "marker-end", k === e.get(n).compoundOffsets.length - 1 ? e.get(n).endMarkerRef ?? void 0 : void 0), R = e.set_style(z, "", R, { "stroke-width": O });
|
|
1346
1346
|
}, [() => Math.max(e.get(n).compoundWidths[k] ?? e.get(n).strokeWidth, 1), () => Re(Math.max(e.get(n).compoundWidths[k] ?? e.get(n).strokeWidth, 1))]), e.append(m, z);
|
|
1347
1347
|
};
|
|
1348
|
-
e.if(
|
|
1348
|
+
e.if(u, (m) => {
|
|
1349
1349
|
e.get(n).pathD ? m(_) : m(o, -1);
|
|
1350
1350
|
}), e.append(S, f);
|
|
1351
1351
|
}), e.reset(p);
|
|
@@ -1357,34 +1357,34 @@ function _l(a, t) {
|
|
|
1357
1357
|
e.if(D, (S) => {
|
|
1358
1358
|
e.get(F)?.textSegments?.length && S(T);
|
|
1359
1359
|
}), e.reset(A), e.template_effect(() => {
|
|
1360
|
-
e.set_style(A, e.get(y)), e.set_attribute(A, "data-element-id", t.element.id), e.set_attribute(A, "data-pptx-element", i() ||
|
|
1360
|
+
e.set_style(A, e.get(y)), e.set_attribute(A, "data-element-id", t.element.id), e.set_attribute(A, "data-pptx-element", i() || v() ? "true" : void 0), e.set_attribute(p, "width", e.get(n).svgW), e.set_attribute(p, "height", e.get(n).svgH), e.set_attribute(p, "viewBox", `0 0 ${e.get(n).svgW} ${e.get(n).svgH}`), e.set_attribute(l, "d", e.get(n).hitPathD), e.set_attribute(l, "stroke-width", e.get(n).hitStrokeWidth);
|
|
1361
1361
|
}), e.append(a, A), e.pop();
|
|
1362
1362
|
}
|
|
1363
1363
|
var ml = e.from_svg('<svg width="0" height="0" aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden"><defs></defs></svg>');
|
|
1364
1364
|
function pl(a, t) {
|
|
1365
1365
|
e.push(t, !0);
|
|
1366
1366
|
const i = e.derived(() => (0, oe.hasShapeProperties)(t.element) && t.element.shapeStyle?.dagDuotone ? Hr(t.element.shapeStyle, t.element.id) : void 0);
|
|
1367
|
-
var
|
|
1367
|
+
var v = e.comment(), n = e.first_child(v), w = (d) => {
|
|
1368
1368
|
var s = ml(), c = e.child(s);
|
|
1369
1369
|
e.html(c, () => e.get(i).filterMarkup, !0), e.reset(c), e.reset(s), e.append(d, s);
|
|
1370
1370
|
};
|
|
1371
1371
|
e.if(n, (d) => {
|
|
1372
1372
|
e.get(i) && d(w);
|
|
1373
|
-
}), e.append(a,
|
|
1373
|
+
}), e.append(a, v), e.pop();
|
|
1374
1374
|
}
|
|
1375
1375
|
var hl = e.from_html('<span aria-hidden="true"> </span>'), Ge = e.from_html("<span> </span>"), bl = e.from_html("<!><!>", 1), yl = e.from_html("<br/>"), xl = e.from_html('<span style="display: inline-block; white-space: nowrap"></span><!>', 1);
|
|
1376
1376
|
function Fe(a, t) {
|
|
1377
1377
|
e.push(t, !0);
|
|
1378
1378
|
const i = e.derived(() => t.run.scriptRuns ?? t.run.underlineWordPieces);
|
|
1379
|
-
var
|
|
1379
|
+
var v = e.comment(), n = e.first_child(v), w = (c) => {
|
|
1380
1380
|
var g = e.comment(), y = e.first_child(g);
|
|
1381
1381
|
e.each(y, 17, () => t.run.tabLines, e.index, (F, A, p) => {
|
|
1382
1382
|
var C = xl(), M = e.first_child(C);
|
|
1383
1383
|
e.each(M, 21, () => e.get(A).pieces, e.index, (b, h) => {
|
|
1384
1384
|
var r = bl(), l = e.first_child(r), q = (x) => {
|
|
1385
1385
|
var k = hl(), f = e.only_child(k, !0);
|
|
1386
|
-
e.template_effect((
|
|
1387
|
-
e.set_style(k,
|
|
1386
|
+
e.template_effect((u) => {
|
|
1387
|
+
e.set_style(k, u), e.set_text(f, e.get(h).leaderText);
|
|
1388
1388
|
}, [() => j(e.get(h).leaderStyle)]), e.append(x, k);
|
|
1389
1389
|
};
|
|
1390
1390
|
e.if(l, (x) => {
|
|
@@ -1392,16 +1392,16 @@ function Fe(a, t) {
|
|
|
1392
1392
|
});
|
|
1393
1393
|
var D = e.sibling(l), T = (x) => {
|
|
1394
1394
|
var k = e.comment(), f = e.first_child(k);
|
|
1395
|
-
e.each(f, 17, () => e.get(h).words, e.index, (
|
|
1395
|
+
e.each(f, 17, () => e.get(h).words, e.index, (u, _) => {
|
|
1396
1396
|
var o = Ge(), m = e.only_child(o, !0);
|
|
1397
1397
|
e.template_effect((z) => {
|
|
1398
1398
|
e.set_style(o, z), e.set_text(m, e.get(_).text);
|
|
1399
|
-
}, [() => j(e.get(_).style)]), e.append(
|
|
1399
|
+
}, [() => j(e.get(_).style)]), e.append(u, o);
|
|
1400
1400
|
}), e.append(x, k);
|
|
1401
1401
|
}, S = (x) => {
|
|
1402
1402
|
var k = Ge(), f = e.only_child(k, !0);
|
|
1403
|
-
e.template_effect((
|
|
1404
|
-
e.set_style(k,
|
|
1403
|
+
e.template_effect((u) => {
|
|
1404
|
+
e.set_style(k, u), e.set_text(f, e.get(h).text);
|
|
1405
1405
|
}, [() => j(e.get(h).style)]), e.append(x, k);
|
|
1406
1406
|
};
|
|
1407
1407
|
e.if(D, (x) => {
|
|
@@ -1438,15 +1438,15 @@ function Fe(a, t) {
|
|
|
1438
1438
|
};
|
|
1439
1439
|
e.if(n, (c) => {
|
|
1440
1440
|
t.run.tabLines ? c(w) : e.get(i) ? c(d, 1) : c(s, -1);
|
|
1441
|
-
}), e.append(a,
|
|
1441
|
+
}), e.append(a, v), e.pop();
|
|
1442
1442
|
}
|
|
1443
1443
|
var kl = e.from_html('<span class="pptx-svelte-equation svelte-38qj8g"></span>'), Sl = e.from_html('<span class="pptx-svelte-equation-fallback svelte-38qj8g">…</span>'), wl = e.from_html('<span class="pptx-svelte-equation-number svelte-38qj8g"> </span>'), Dl = e.from_html('<span class="pptx-svelte-inline-equation"><!><!></span>'), ql = e.from_html('<a class="pptx-svelte-link svelte-38qj8g" role="link" tabindex="0"><!></a>'), zl = e.from_html("<ruby><!><rp>(</rp><rt> </rt><rp>)</rp></ruby>"), Cl = e.from_html("<span><!></span>");
|
|
1444
1444
|
function St(a, t) {
|
|
1445
1445
|
e.push(t, !0);
|
|
1446
|
-
const i = ye(),
|
|
1446
|
+
const i = ye(), v = Wn(), n = e.derived(() => t.run.equation ? cn(t.run.equation) : "");
|
|
1447
1447
|
function w(p) {
|
|
1448
1448
|
const C = t.run.hyperlink?.href;
|
|
1449
|
-
C && !
|
|
1449
|
+
C && !v.confirmHyperlink(C, i("pptx.options.trust.confirmHyperlinks")) && p.preventDefault();
|
|
1450
1450
|
}
|
|
1451
1451
|
var d = e.comment(), s = e.first_child(d), c = (p) => {
|
|
1452
1452
|
var C = Dl(), M = e.child(C), B = (r) => {
|
|
@@ -1496,7 +1496,7 @@ e.delegate(["click"]);
|
|
|
1496
1496
|
var Il = e.from_html('<span style="position: relative; display: inline-block"><!><span class="pptx-svelte-text-reflection" aria-hidden="true"><span><!></span></span></span>');
|
|
1497
1497
|
function wt(a, t) {
|
|
1498
1498
|
e.push(t, !0);
|
|
1499
|
-
var i = e.comment(),
|
|
1499
|
+
var i = e.comment(), v = e.first_child(i), n = (d) => {
|
|
1500
1500
|
var s = Il(), c = e.child(s);
|
|
1501
1501
|
St(c, { get run() {
|
|
1502
1502
|
return t.run;
|
|
@@ -1512,7 +1512,7 @@ function wt(a, t) {
|
|
|
1512
1512
|
return t.run;
|
|
1513
1513
|
} });
|
|
1514
1514
|
};
|
|
1515
|
-
e.if(
|
|
1515
|
+
e.if(v, (d) => {
|
|
1516
1516
|
t.run.reflection ? d(n) : d(w, -1);
|
|
1517
1517
|
}), e.append(a, i), e.pop();
|
|
1518
1518
|
}
|
|
@@ -1520,7 +1520,7 @@ var El = e.from_html('<img class="pptx-svelte-bullet-image" draggable="false"/>'
|
|
|
1520
1520
|
function oa(a, t) {
|
|
1521
1521
|
e.push(t, !0);
|
|
1522
1522
|
const i = `
|
|
1523
|
-
`,
|
|
1523
|
+
`, v = e.derived(() => t.paragraphs.map((d, s) => t.elementId ? ir(t.elementId, s, d.runs.filter((c) => c.text !== i), t.subElementAnimStates) : void 0));
|
|
1524
1524
|
function n(d) {
|
|
1525
1525
|
const s = {
|
|
1526
1526
|
...d.paragraphStyle,
|
|
@@ -1551,7 +1551,7 @@ function oa(a, t) {
|
|
|
1551
1551
|
var h = e.comment(), r = e.first_child(h), l = (D) => {
|
|
1552
1552
|
var T = Tl();
|
|
1553
1553
|
e.each(T, 21, () => e.get(s).runs, e.index, (S, x) => {
|
|
1554
|
-
var k = e.comment(), f = e.first_child(k),
|
|
1554
|
+
var k = e.comment(), f = e.first_child(k), u = (o) => {
|
|
1555
1555
|
var m = He();
|
|
1556
1556
|
e.append(o, m);
|
|
1557
1557
|
}, _ = (o) => {
|
|
@@ -1561,17 +1561,17 @@ function oa(a, t) {
|
|
|
1561
1561
|
};
|
|
1562
1562
|
e.if(f, (o) => {
|
|
1563
1563
|
e.get(x).text === `
|
|
1564
|
-
` ? o(
|
|
1564
|
+
` ? o(u) : o(_, -1);
|
|
1565
1565
|
}), e.append(S, k);
|
|
1566
1566
|
}), e.reset(T), e.template_effect((S) => {
|
|
1567
|
-
e.set_attribute(T, "data-anim-id", e.get(
|
|
1568
|
-
}, [() => j(ft(e.get(
|
|
1567
|
+
e.set_attribute(T, "data-anim-id", e.get(v)[c].animId), e.set_style(T, S);
|
|
1568
|
+
}, [() => j(ft(e.get(v)[c]))]), e.append(D, T);
|
|
1569
1569
|
}, q = (D) => {
|
|
1570
1570
|
var T = e.comment(), S = e.first_child(T);
|
|
1571
|
-
e.each(S, 17, () => e.get(
|
|
1572
|
-
var f = Ll(),
|
|
1571
|
+
e.each(S, 17, () => e.get(v)[c].spans ?? [], e.index, (x, k) => {
|
|
1572
|
+
var f = Ll(), u = e.only_child(f, !0);
|
|
1573
1573
|
e.template_effect((_) => {
|
|
1574
|
-
e.set_attribute(f, "data-anim-id", e.get(k).animId), e.set_style(f, _), e.set_text(
|
|
1574
|
+
e.set_attribute(f, "data-anim-id", e.get(k).animId), e.set_style(f, _), e.set_text(u, e.get(k).text);
|
|
1575
1575
|
}, [() => j({
|
|
1576
1576
|
...e.get(k).style ?? {},
|
|
1577
1577
|
...ft(e.get(k))
|
|
@@ -1579,7 +1579,7 @@ function oa(a, t) {
|
|
|
1579
1579
|
}), e.append(D, T);
|
|
1580
1580
|
};
|
|
1581
1581
|
e.if(r, (D) => {
|
|
1582
|
-
e.get(
|
|
1582
|
+
e.get(v)[c].granularity === "paragraph" ? D(l) : D(q, -1);
|
|
1583
1583
|
}), e.append(b, h);
|
|
1584
1584
|
}, M = (b) => {
|
|
1585
1585
|
var h = e.comment(), r = e.first_child(h);
|
|
@@ -1599,7 +1599,7 @@ function oa(a, t) {
|
|
|
1599
1599
|
}), e.append(b, h);
|
|
1600
1600
|
};
|
|
1601
1601
|
e.if(p, (b) => {
|
|
1602
|
-
e.get(
|
|
1602
|
+
e.get(v)[c] ? b(C) : b(M, -1);
|
|
1603
1603
|
});
|
|
1604
1604
|
var B = e.sibling(p), I = (b) => {
|
|
1605
1605
|
var h = He();
|
|
@@ -1613,7 +1613,7 @@ function oa(a, t) {
|
|
|
1613
1613
|
var Ol = e.from_html("<div><!></div>"), Dt = e.from_html("<div><!> <!></div>"), Fl = e.from_html('<img alt="" draggable="false"/>');
|
|
1614
1614
|
function da(a, t) {
|
|
1615
1615
|
e.push(t, !0);
|
|
1616
|
-
const i = e.prop(t, "topLevel", 3, !0),
|
|
1616
|
+
const i = e.prop(t, "topLevel", 3, !0), v = e.derived(() => t.element.type === "group"), n = e.derived(() => (0, oe.isImageLikeElement)(t.element)), w = e.derived(() => e.get(v) ? t.element.children ?? [] : []), d = e.derived(() => Yt(t.element, t.parentGroupFill)), s = e.derived(() => j(nt(t.element, t.parentGroupFill))), c = e.derived(() => Vt(t.element)), g = e.derived(() => e.get(c).some((I) => I.runs.length > 0)), y = e.derived(() => j(et(t.element))), F = e.derived(() => e.get(n) ? at(t.element, t.mediaDataUrls) : void 0), A = e.derived(() => j(Zt(t.element)));
|
|
1617
1617
|
var p = e.comment(), C = e.first_child(p), M = (I) => {
|
|
1618
1618
|
var b = Dt(), h = e.child(b);
|
|
1619
1619
|
Ae(h, {
|
|
@@ -1678,56 +1678,56 @@ function da(a, t) {
|
|
|
1678
1678
|
}), e.reset(b), e.template_effect(() => e.set_style(b, `width:100%;height:100%;${e.get(s) ?? ""}`)), e.append(I, b);
|
|
1679
1679
|
};
|
|
1680
1680
|
e.if(C, (I) => {
|
|
1681
|
-
e.get(
|
|
1681
|
+
e.get(v) ? I(M) : I(B, -1);
|
|
1682
1682
|
}), e.append(a, p), e.pop();
|
|
1683
1683
|
}
|
|
1684
1684
|
var Bl = e.from_svg('<path stroke="none"></path>'), Rl = e.from_svg('<svg class="pptx-svelte-subpath-fill" aria-hidden="true" preserveAspectRatio="none" style="position:absolute;inset:0;width:100%;height:100%"></svg>'), qt = e.from_svg('<svg width="0" height="0" aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden"><defs></defs></svg>'), Ul = e.from_svg('<svg aria-hidden="true" preserveAspectRatio="none" style="position:absolute;inset:0;width:100%;height:100%;min-width:1px;min-height:1px;overflow:visible;pointer-events:none"><path fill="none" stroke="transparent" style="pointer-events:stroke"></path></svg>'), Wl = e.from_html('<div class="pptx-svelte-fill-overlay" aria-hidden="true"></div>'), Nl = e.from_svg('<pattern patternUnits="userSpaceOnUse"><image></image></pattern>'), Vl = e.from_svg('<pattern patternUnits="objectBoundingBox" width="1" height="1"><image x="0" y="0" width="1" height="1" preserveAspectRatio="none"></image></pattern>'), zt = e.from_svg("<stop></stop>"), jl = e.from_svg("<radialGradient></radialGradient>"), Gl = e.from_svg("<linearGradient></linearGradient>"), Hl = e.from_svg("<defs><!></defs>"), Xl = e.from_svg("<defs></defs>"), Yl = e.from_svg('<path fill="none"></path>'), Zl = e.from_svg('<svg class="pptx-svelte-gradient-outline" aria-hidden="true" preserveAspectRatio="none" style="position:absolute;inset:0;width:100%;height:100%;min-width:1px;min-height:1px;overflow:visible;pointer-events:none"><!><!><!></svg>'), Kl = e.from_html('<div class="pptx-svelte-reflection" aria-hidden="true"><!></div>'), Jl = e.from_html("<!> <!> <!> <!> <!> <!> <!>", 1);
|
|
1685
1685
|
function Ae(a, t) {
|
|
1686
1686
|
e.push(t, !0);
|
|
1687
|
-
const i = e.prop(t, "suppressReflection", 3, !1),
|
|
1688
|
-
var C = Jl(), M = e.first_child(C), B = (
|
|
1687
|
+
const i = e.prop(t, "suppressReflection", 3, !1), v = e.derived(() => er(t.element)), n = e.derived(() => e.get(v) ? `0 0 ${e.get(v).viewBoxWidth} ${e.get(v).viewBoxHeight}` : void 0), w = e.derived(() => Ke(t.element).fillOverlay), d = e.derived(() => e.get(w) ? `position:absolute;inset:0;background:${e.get(w).color};mix-blend-mode:${e.get(w).blendMode};pointer-events:none` : void 0), s = e.derived(() => ui(Xr(t.element), t.element.id)), c = e.derived(() => Or(t.element)), g = e.derived(() => $a(t.element)), y = e.derived(() => wn(t.element)), F = e.derived(() => Ka(t.element)), A = e.derived(() => i() ? void 0 : Ke(t.element).reflection), p = e.derived(() => e.get(A) ? j(e.get(A)) : void 0);
|
|
1688
|
+
var C = Jl(), M = e.first_child(C), B = (u) => {
|
|
1689
1689
|
var _ = Rl();
|
|
1690
|
-
e.each(_, 21, () => e.get(
|
|
1690
|
+
e.each(_, 21, () => e.get(v).paints, e.index, (o, m) => {
|
|
1691
1691
|
var z = Bl();
|
|
1692
1692
|
e.template_effect(() => {
|
|
1693
1693
|
e.set_attribute(z, "d", e.get(m).d), e.set_attribute(z, "fill", e.get(m).fill);
|
|
1694
1694
|
}), e.append(o, z);
|
|
1695
|
-
}), e.reset(_), e.template_effect(() => e.set_attribute(_, "viewBox", e.get(n))), e.append(
|
|
1695
|
+
}), e.reset(_), e.template_effect(() => e.set_attribute(_, "viewBox", e.get(n))), e.append(u, _);
|
|
1696
1696
|
};
|
|
1697
|
-
e.if(M, (
|
|
1698
|
-
e.get(
|
|
1697
|
+
e.if(M, (u) => {
|
|
1698
|
+
e.get(v) && u(B);
|
|
1699
1699
|
});
|
|
1700
|
-
var I = e.sibling(M, 2), b = (
|
|
1700
|
+
var I = e.sibling(M, 2), b = (u) => {
|
|
1701
1701
|
var _ = qt(), o = e.child(_);
|
|
1702
|
-
e.html(o, () => e.get(s).filterMarkup, !0), e.reset(o), e.reset(_), e.append(
|
|
1702
|
+
e.html(o, () => e.get(s).filterMarkup, !0), e.reset(o), e.reset(_), e.append(u, _);
|
|
1703
1703
|
};
|
|
1704
|
-
e.if(I, (
|
|
1705
|
-
e.get(s) &&
|
|
1704
|
+
e.if(I, (u) => {
|
|
1705
|
+
e.get(s) && u(b);
|
|
1706
1706
|
});
|
|
1707
|
-
var h = e.sibling(I, 2), r = (
|
|
1707
|
+
var h = e.sibling(I, 2), r = (u) => {
|
|
1708
1708
|
var _ = qt(), o = e.child(_);
|
|
1709
|
-
e.html(o, () => e.get(c).filterMarkup, !0), e.reset(o), e.reset(_), e.append(
|
|
1709
|
+
e.html(o, () => e.get(c).filterMarkup, !0), e.reset(o), e.reset(_), e.append(u, _);
|
|
1710
1710
|
};
|
|
1711
|
-
e.if(h, (
|
|
1712
|
-
e.get(c) &&
|
|
1711
|
+
e.if(h, (u) => {
|
|
1712
|
+
e.get(c) && u(r);
|
|
1713
1713
|
});
|
|
1714
|
-
var l = e.sibling(h, 2), q = (
|
|
1714
|
+
var l = e.sibling(h, 2), q = (u) => {
|
|
1715
1715
|
var _ = Ul(), o = e.only_child(_);
|
|
1716
1716
|
e.template_effect(() => {
|
|
1717
1717
|
e.set_attribute(_, "viewBox", e.get(y)), e.set_attribute(o, "d", e.get(F).d), e.set_attribute(o, "stroke-width", e.get(F).strokeWidth);
|
|
1718
|
-
}), e.append(
|
|
1718
|
+
}), e.append(u, _);
|
|
1719
1719
|
};
|
|
1720
|
-
e.if(l, (
|
|
1721
|
-
e.get(F) &&
|
|
1720
|
+
e.if(l, (u) => {
|
|
1721
|
+
e.get(F) && u(q);
|
|
1722
1722
|
});
|
|
1723
|
-
var D = e.sibling(l, 2), T = (
|
|
1723
|
+
var D = e.sibling(l, 2), T = (u) => {
|
|
1724
1724
|
var _ = Wl();
|
|
1725
|
-
e.template_effect(() => e.set_style(_, e.get(d))), e.append(
|
|
1725
|
+
e.template_effect(() => e.set_style(_, e.get(d))), e.append(u, _);
|
|
1726
1726
|
};
|
|
1727
|
-
e.if(D, (
|
|
1728
|
-
e.get(d) &&
|
|
1727
|
+
e.if(D, (u) => {
|
|
1728
|
+
e.get(d) && u(T);
|
|
1729
1729
|
});
|
|
1730
|
-
var S = e.sibling(D, 2), x = (
|
|
1730
|
+
var S = e.sibling(D, 2), x = (u) => {
|
|
1731
1731
|
var _ = Zl(), o = e.child(_), m = (O) => {
|
|
1732
1732
|
var N = Hl(), Y = e.child(N), L = (W) => {
|
|
1733
1733
|
var H = Nl(), ee = e.only_child(H);
|
|
@@ -1781,12 +1781,12 @@ function Ae(a, t) {
|
|
|
1781
1781
|
e.template_effect(() => {
|
|
1782
1782
|
e.set_attribute(L, "d", e.get(N).d ?? e.get(g).d), e.set_attribute(L, "marker-start", Y === 0 ? e.get(g).markers?.start : void 0), e.set_attribute(L, "marker-end", Y === 0 ? e.get(g).markers?.end : void 0), e.set_attribute(L, "stroke", e.get(g).stroke), e.set_attribute(L, "stroke-width", e.get(N).strokeWidth), e.set_attribute(L, "stroke-dasharray", e.get(g).dashArray), e.set_attribute(L, "stroke-linecap", e.get(g).lineCap), e.set_attribute(L, "stroke-linejoin", e.get(g).lineJoin), P = e.set_style(L, e.get(N).offset !== 0 ? `transform:translate(0, ${e.get(N).offset}px)` : void 0, P, { "stroke-width": e.get(N).cssStrokeWidth });
|
|
1783
1783
|
}), e.append(O, L);
|
|
1784
|
-
}), e.reset(_), e.template_effect(() => e.set_attribute(_, "viewBox", e.get(y))), e.append(
|
|
1784
|
+
}), e.reset(_), e.template_effect(() => e.set_attribute(_, "viewBox", e.get(y))), e.append(u, _);
|
|
1785
1785
|
};
|
|
1786
|
-
e.if(S, (
|
|
1787
|
-
e.get(g) &&
|
|
1786
|
+
e.if(S, (u) => {
|
|
1787
|
+
e.get(g) && u(x);
|
|
1788
1788
|
});
|
|
1789
|
-
var k = e.sibling(S, 2), f = (
|
|
1789
|
+
var k = e.sibling(S, 2), f = (u) => {
|
|
1790
1790
|
var _ = Kl(), o = e.child(_);
|
|
1791
1791
|
da(o, {
|
|
1792
1792
|
get element() {
|
|
@@ -1795,16 +1795,16 @@ function Ae(a, t) {
|
|
|
1795
1795
|
get mediaDataUrls() {
|
|
1796
1796
|
return t.mediaDataUrls;
|
|
1797
1797
|
}
|
|
1798
|
-
}), e.reset(_), e.template_effect(() => e.set_style(_, e.get(p))), e.append(
|
|
1798
|
+
}), e.reset(_), e.template_effect(() => e.set_style(_, e.get(p))), e.append(u, _);
|
|
1799
1799
|
};
|
|
1800
|
-
e.if(k, (
|
|
1801
|
-
e.get(p) &&
|
|
1800
|
+
e.if(k, (u) => {
|
|
1801
|
+
e.get(p) && u(f);
|
|
1802
1802
|
}), e.append(a, C), e.pop();
|
|
1803
1803
|
}
|
|
1804
1804
|
var Ql = e.from_html('<div aria-hidden="true" data-pptx-hit-target="true"></div>'), $l = e.from_html('<span class="pptx-svelte-equation-numbered svelte-1qte3tc"><span class="pptx-svelte-equation-number-spacer svelte-1qte3tc" aria-hidden="true"> </span> <span class="pptx-svelte-equation pptx-svelte-equation-centered svelte-1qte3tc"></span> <span class="pptx-svelte-equation-number svelte-1qte3tc"> </span></span>'), eo = e.from_html('<span class="pptx-svelte-equation svelte-1qte3tc"></span>'), to = e.from_html('<div class="pptx-svelte-element pptx-svelte-equation-wrapper svelte-1qte3tc"><!> <!></div>');
|
|
1805
1805
|
function ao(a, t) {
|
|
1806
1806
|
e.push(t, !0);
|
|
1807
|
-
const i = e.prop(t, "interactive", 3, !1),
|
|
1807
|
+
const i = e.prop(t, "interactive", 3, !1), v = e.prop(t, "marked", 3, !1), n = e.prop(t, "editable", 3, !1), w = e.prop(t, "presenting", 3, !1), d = e.derived(() => ve(n(), w()) ? ue(t.element) : void 0), s = e.derived(() => (0, oe.hasTextProperties)(t.element) ? (t.element.textSegments ?? []).flatMap((p, C) => {
|
|
1808
1808
|
if (!p.equationXml) return [];
|
|
1809
1809
|
const M = kr(p.equationXml);
|
|
1810
1810
|
return M ? [{
|
|
@@ -1837,7 +1837,7 @@ function ao(a, t) {
|
|
|
1837
1837
|
e.get(C).number ? h(I) : h(b, -1);
|
|
1838
1838
|
}), e.append(p, M);
|
|
1839
1839
|
}), e.reset(g), e.template_effect(() => {
|
|
1840
|
-
e.set_style(g, e.get(c)), e.set_attribute(g, "data-element-id", t.element.id), e.set_attribute(g, "data-pptx-element", i() ||
|
|
1840
|
+
e.set_style(g, e.get(c)), e.set_attribute(g, "data-element-id", t.element.id), e.set_attribute(g, "data-pptx-element", i() || v() ? "true" : void 0);
|
|
1841
1841
|
}), e.append(a, g), e.pop();
|
|
1842
1842
|
}
|
|
1843
1843
|
var ro = e.from_html('<div class="pptx-svelte-extrusion-panel"></div>'), io = e.from_html('<div class="pptx-svelte-extrusion-material"></div>'), no = e.from_html('<div class="pptx-svelte-extrusion" aria-hidden="true"><!> <!></div>');
|
|
@@ -1846,7 +1846,7 @@ function so(a, t) {
|
|
|
1846
1846
|
function i(s) {
|
|
1847
1847
|
return Object.entries(s).map(([c, g]) => `${c.replace(/[A-Z]/gu, (y) => `-${y.toLowerCase()}`)}:${typeof g == "number" ? `${g}px` : g}`).join(";");
|
|
1848
1848
|
}
|
|
1849
|
-
const
|
|
1849
|
+
const v = e.derived(() => t.data.materialOverlay ? i({
|
|
1850
1850
|
position: "absolute",
|
|
1851
1851
|
inset: 0,
|
|
1852
1852
|
backgroundImage: t.data.materialOverlay,
|
|
@@ -1867,10 +1867,10 @@ function so(a, t) {
|
|
|
1867
1867
|
});
|
|
1868
1868
|
var y = e.sibling(g, 2), F = (A) => {
|
|
1869
1869
|
var p = io();
|
|
1870
|
-
e.template_effect(() => e.set_style(p, e.get(
|
|
1870
|
+
e.template_effect(() => e.set_style(p, e.get(v))), e.append(A, p);
|
|
1871
1871
|
};
|
|
1872
1872
|
e.if(y, (A) => {
|
|
1873
|
-
e.get(
|
|
1873
|
+
e.get(v) && A(F);
|
|
1874
1874
|
}), e.reset(c), e.template_effect((A) => e.set_style(c, A), [() => i(t.data.wrapperStyle)]), e.append(s, c);
|
|
1875
1875
|
};
|
|
1876
1876
|
e.if(w, (s) => {
|
|
@@ -1880,7 +1880,7 @@ function so(a, t) {
|
|
|
1880
1880
|
var lo = e.from_html('<div aria-hidden="true" data-pptx-hit-target="true"></div>'), oo = e.from_svg("<ellipse></ellipse>"), Ct = e.from_svg("<g></g>"), go = e.from_svg("<circle></circle>"), co = e.from_svg('<path fill="none" stroke-linecap="round" stroke-linejoin="round" vector-effect="non-scaling-stroke"></path>'), vo = e.from_svg('<svg class="pptx-svelte-contentpart-svg svelte-bw2ra4" preserveAspectRatio="none"><!><!></svg>'), uo = e.from_html('<div class="pptx-svelte-contentpart-fallback svelte-bw2ra4"><span class="pptx-svelte-contentpart-fallback-label svelte-bw2ra4"> </span></div>'), fo = e.from_html('<div class="pptx-svelte-element pptx-svelte-contentpart"><!> <!></div>');
|
|
1881
1881
|
function _o(a, t) {
|
|
1882
1882
|
e.push(t, !0);
|
|
1883
|
-
const i = e.prop(t, "presenting", 3, !1),
|
|
1883
|
+
const i = e.prop(t, "presenting", 3, !1), v = e.prop(t, "interactive", 3, !1), n = e.prop(t, "marked", 3, !1), w = e.prop(t, "editable", 3, !1), d = ye(), s = e.derived(() => ve(w(), i()) ? ue(t.element) : void 0), c = e.derived(() => t.element.type === "contentPart" ? t.element : void 0), g = e.derived(() => e.get(c) ? Ya(e.get(c)) : []), y = e.derived(() => e.get(c) && i() ? Vr(e.get(c).inkStrokes ?? []) : []), F = e.derived(() => j(ge(t.element, t.zIndex)));
|
|
1884
1884
|
function A(B) {
|
|
1885
1885
|
return B === "multiply" ? "mix-blend-mode:multiply" : void 0;
|
|
1886
1886
|
}
|
|
@@ -1894,45 +1894,45 @@ function _o(a, t) {
|
|
|
1894
1894
|
});
|
|
1895
1895
|
var r = e.sibling(b, 2), l = (D) => {
|
|
1896
1896
|
var T = vo(), S = e.child(T), x = (f) => {
|
|
1897
|
-
var
|
|
1897
|
+
var u = e.comment(), _ = e.first_child(u);
|
|
1898
1898
|
e.element(_, () => "style", !0, (o, m) => {
|
|
1899
1899
|
var z = e.text();
|
|
1900
1900
|
e.template_effect(() => e.set_text(z, Wt)), e.append(m, z);
|
|
1901
|
-
}), e.append(f,
|
|
1901
|
+
}), e.append(f, u);
|
|
1902
1902
|
};
|
|
1903
1903
|
e.if(S, (f) => {
|
|
1904
1904
|
i() && f(x);
|
|
1905
1905
|
});
|
|
1906
1906
|
var k = e.sibling(S);
|
|
1907
|
-
e.each(k, 19, () => e.get(g), (f) => f.key, (f,
|
|
1907
|
+
e.each(k, 19, () => e.get(g), (f) => f.key, (f, u, _) => {
|
|
1908
1908
|
var o = e.comment(), m = e.first_child(o), z = (O) => {
|
|
1909
1909
|
var N = Ct();
|
|
1910
|
-
e.each(N, 21, () => e.get(
|
|
1910
|
+
e.each(N, 21, () => e.get(u).nibMarks, e.index, (Y, L) => {
|
|
1911
1911
|
var P = oo();
|
|
1912
1912
|
e.template_effect(() => {
|
|
1913
|
-
e.set_attribute(P, "cx", e.get(L).cx), e.set_attribute(P, "cy", e.get(L).cy), e.set_attribute(P, "rx", e.get(L).rPerp), e.set_attribute(P, "ry", e.get(L).rTilt), e.set_attribute(P, "transform", `rotate(${e.get(L).rotationDeg} ${e.get(L).cx} ${e.get(L).cy})`), e.set_attribute(P, "fill", e.get(
|
|
1913
|
+
e.set_attribute(P, "cx", e.get(L).cx), e.set_attribute(P, "cy", e.get(L).cy), e.set_attribute(P, "rx", e.get(L).rPerp), e.set_attribute(P, "ry", e.get(L).rTilt), e.set_attribute(P, "transform", `rotate(${e.get(L).rotationDeg} ${e.get(L).cx} ${e.get(L).cy})`), e.set_attribute(P, "fill", e.get(u).color);
|
|
1914
1914
|
}), e.append(Y, P);
|
|
1915
1915
|
}), e.reset(N), e.template_effect((Y) => {
|
|
1916
|
-
e.set_attribute(N, "opacity", e.get(
|
|
1917
|
-
}, [() => A(e.get(
|
|
1916
|
+
e.set_attribute(N, "opacity", e.get(u).opacity), e.set_style(N, Y);
|
|
1917
|
+
}, [() => A(e.get(u).blendMode)]), e.append(O, N);
|
|
1918
1918
|
}, R = (O) => {
|
|
1919
1919
|
var N = Ct();
|
|
1920
|
-
e.each(N, 21, () => e.get(
|
|
1920
|
+
e.each(N, 21, () => e.get(u).circles, e.index, (Y, L) => {
|
|
1921
1921
|
var P = go();
|
|
1922
1922
|
e.template_effect(() => {
|
|
1923
|
-
e.set_attribute(P, "cx", e.get(L).cx), e.set_attribute(P, "cy", e.get(L).cy), e.set_attribute(P, "r", e.get(L).r), e.set_attribute(P, "fill", e.get(
|
|
1923
|
+
e.set_attribute(P, "cx", e.get(L).cx), e.set_attribute(P, "cy", e.get(L).cy), e.set_attribute(P, "r", e.get(L).r), e.set_attribute(P, "fill", e.get(u).color);
|
|
1924
1924
|
}), e.append(Y, P);
|
|
1925
1925
|
}), e.reset(N), e.template_effect((Y) => {
|
|
1926
|
-
e.set_attribute(N, "opacity", e.get(
|
|
1927
|
-
}, [() => A(e.get(
|
|
1926
|
+
e.set_attribute(N, "opacity", e.get(u).opacity), e.set_style(N, Y);
|
|
1927
|
+
}, [() => A(e.get(u).blendMode)]), e.append(O, N);
|
|
1928
1928
|
}, U = (O) => {
|
|
1929
1929
|
var N = co();
|
|
1930
1930
|
e.template_effect((Y) => {
|
|
1931
|
-
e.set_attribute(N, "d", e.get(
|
|
1932
|
-
}, [() => [e.get(y)[e.get(_)] ? `animation: ${e.get(y)[e.get(_)].animation}; --ink-path-length: ${e.get(y)[e.get(_)].pathLength}` : void 0, A(e.get(
|
|
1931
|
+
e.set_attribute(N, "d", e.get(u).d), e.set_attribute(N, "stroke", e.get(u).color), e.set_attribute(N, "stroke-width", e.get(u).width), e.set_attribute(N, "stroke-opacity", e.get(u).opacity), e.set_attribute(N, "stroke-dasharray", e.get(y)[e.get(_)]?.strokeDasharray), e.set_attribute(N, "stroke-dashoffset", e.get(y)[e.get(_)]?.strokeDashoffset), e.set_style(N, Y);
|
|
1932
|
+
}, [() => [e.get(y)[e.get(_)] ? `animation: ${e.get(y)[e.get(_)].animation}; --ink-path-length: ${e.get(y)[e.get(_)].pathLength}` : void 0, A(e.get(u).blendMode)].filter(Boolean).join(";") || void 0]), e.append(O, N);
|
|
1933
1933
|
};
|
|
1934
1934
|
e.if(m, (O) => {
|
|
1935
|
-
e.get(
|
|
1935
|
+
e.get(u).nibMarks ? O(z) : e.get(u).circles ? O(R, 1) : O(U, -1);
|
|
1936
1936
|
}), e.append(f, o);
|
|
1937
1937
|
}), e.reset(T), e.template_effect((f) => e.set_attribute(T, "viewBox", f), [() => xr(e.get(c))]), e.append(D, T);
|
|
1938
1938
|
}, q = (D) => {
|
|
@@ -1942,7 +1942,7 @@ function _o(a, t) {
|
|
|
1942
1942
|
e.if(r, (D) => {
|
|
1943
1943
|
e.get(g).length > 0 ? D(l) : D(q, -1);
|
|
1944
1944
|
}), e.reset(I), e.template_effect(() => {
|
|
1945
|
-
e.set_style(I, e.get(F)), e.set_attribute(I, "data-element-id", t.element.id), e.set_attribute(I, "data-pptx-element",
|
|
1945
|
+
e.set_style(I, e.get(F)), e.set_attribute(I, "data-element-id", t.element.id), e.set_attribute(I, "data-pptx-element", v() || n() ? "true" : void 0);
|
|
1946
1946
|
}), e.append(B, I);
|
|
1947
1947
|
};
|
|
1948
1948
|
e.if(C, (B) => {
|
|
@@ -1981,7 +1981,7 @@ function wo(a, t) {
|
|
|
1981
1981
|
e.if(U, (Y) => {
|
|
1982
1982
|
e.get(r) ? Y(O) : e.get(I) && Y(N, 1);
|
|
1983
1983
|
}), e.append(m, z);
|
|
1984
|
-
},
|
|
1984
|
+
}, v = e.prop(t, "interactive", 3, !1), n = e.prop(t, "marked", 3, !1), w = e.prop(t, "editable", 3, !1), d = e.prop(t, "presenting", 3, !1), s = e.derived(() => ve(w(), d()) ? ue(t.element) : void 0), c = e.derived(() => {
|
|
1985
1985
|
if (!(0, oe.isImageLikeElement)(t.element)) return;
|
|
1986
1986
|
const m = Qe(t.element);
|
|
1987
1987
|
return m.kind === "borderRadius" ? m.radius : void 0;
|
|
@@ -2036,14 +2036,14 @@ function wo(a, t) {
|
|
|
2036
2036
|
e.if(x, (m) => {
|
|
2037
2037
|
e.get(s) && m(k);
|
|
2038
2038
|
});
|
|
2039
|
-
var f = e.sibling(x, 2),
|
|
2039
|
+
var f = e.sibling(x, 2), u = (m) => {
|
|
2040
2040
|
var z = ko(), R = e.child(z);
|
|
2041
2041
|
i(R), e.reset(z), e.template_effect((U) => e.set_style(z, U), [() => j(e.get(F).surface)]), e.append(m, z);
|
|
2042
2042
|
}, _ = (m) => {
|
|
2043
2043
|
i(m);
|
|
2044
2044
|
};
|
|
2045
2045
|
e.if(f, (m) => {
|
|
2046
|
-
e.get(F).surface ? m(
|
|
2046
|
+
e.get(F).surface ? m(u) : m(_, -1);
|
|
2047
2047
|
});
|
|
2048
2048
|
var o = e.sibling(f, 2);
|
|
2049
2049
|
Ae(o, {
|
|
@@ -2057,13 +2057,13 @@ function wo(a, t) {
|
|
|
2057
2057
|
return t.zIndex;
|
|
2058
2058
|
}
|
|
2059
2059
|
}), e.reset(S), e.template_effect(() => {
|
|
2060
|
-
e.set_style(S, e.get(A)), e.set_attribute(S, "data-element-id", t.element.id), e.set_attribute(S, "data-pptx-element",
|
|
2060
|
+
e.set_style(S, e.get(A)), e.set_attribute(S, "data-element-id", t.element.id), e.set_attribute(S, "data-pptx-element", v() || n() ? "true" : void 0);
|
|
2061
2061
|
}), e.append(a, S), e.pop();
|
|
2062
2062
|
}
|
|
2063
2063
|
var Do = e.from_html('<div aria-hidden="true" data-pptx-hit-target="true"></div>'), qo = e.from_svg("<ellipse></ellipse>"), It = e.from_svg("<g></g>"), zo = e.from_svg("<circle></circle>"), Co = e.from_svg('<path fill="none" stroke-linecap="round" stroke-linejoin="round" vector-effect="non-scaling-stroke"></path>'), Io = e.from_svg('<svg class="pptx-svelte-ink-svg svelte-j5kjo8" preserveAspectRatio="none"><!><!></svg>'), Eo = e.from_html('<div class="pptx-svelte-element pptx-svelte-ink"><!> <!></div>');
|
|
2064
2064
|
function Po(a, t) {
|
|
2065
2065
|
e.push(t, !0);
|
|
2066
|
-
const i = e.prop(t, "presenting", 3, !1),
|
|
2066
|
+
const i = e.prop(t, "presenting", 3, !1), v = e.prop(t, "interactive", 3, !1), n = e.prop(t, "marked", 3, !1), w = e.prop(t, "editable", 3, !1), d = e.derived(() => ve(w(), i()) ? ue(t.element) : void 0), s = e.derived(() => t.element.type === "ink" ? t.element : void 0), c = e.derived(() => e.get(s) ? xs(e.get(s), i()) : []), g = e.derived(() => j(ge(t.element, t.zIndex)));
|
|
2067
2067
|
function y(C) {
|
|
2068
2068
|
return C === "multiply" ? "mix-blend-mode:multiply" : void 0;
|
|
2069
2069
|
}
|
|
@@ -2078,9 +2078,9 @@ function Po(a, t) {
|
|
|
2078
2078
|
var b = e.sibling(B, 2), h = (r) => {
|
|
2079
2079
|
var l = Io(), q = e.child(l), D = (S) => {
|
|
2080
2080
|
var x = e.comment(), k = e.first_child(x);
|
|
2081
|
-
e.element(k, () => "style", !0, (f,
|
|
2081
|
+
e.element(k, () => "style", !0, (f, u) => {
|
|
2082
2082
|
var _ = e.text();
|
|
2083
|
-
e.template_effect(() => e.set_text(_, Wt)), e.append(
|
|
2083
|
+
e.template_effect(() => e.set_text(_, Wt)), e.append(u, _);
|
|
2084
2084
|
}), e.append(S, x);
|
|
2085
2085
|
};
|
|
2086
2086
|
e.if(q, (S) => {
|
|
@@ -2088,7 +2088,7 @@ function Po(a, t) {
|
|
|
2088
2088
|
});
|
|
2089
2089
|
var T = e.sibling(q);
|
|
2090
2090
|
e.each(T, 17, () => e.get(c), (S) => S.key, (S, x) => {
|
|
2091
|
-
var k = e.comment(), f = e.first_child(k),
|
|
2091
|
+
var k = e.comment(), f = e.first_child(k), u = (m) => {
|
|
2092
2092
|
var z = It();
|
|
2093
2093
|
e.each(z, 21, () => e.get(x).nibMarks, e.index, (R, U) => {
|
|
2094
2094
|
var O = qo();
|
|
@@ -2115,14 +2115,14 @@ function Po(a, t) {
|
|
|
2115
2115
|
}, [() => [e.get(x).replay ? `animation:${e.get(x).replay.animation};--ink-path-length:${e.get(x).replay.pathLength}` : void 0, y(e.get(x).blendMode)].filter(Boolean).join(";") || void 0]), e.append(m, z);
|
|
2116
2116
|
};
|
|
2117
2117
|
e.if(f, (m) => {
|
|
2118
|
-
e.get(x).nibMarks ? m(
|
|
2118
|
+
e.get(x).nibMarks ? m(u) : e.get(x).circles ? m(_, 1) : m(o, -1);
|
|
2119
2119
|
}), e.append(S, k);
|
|
2120
2120
|
}), e.reset(l), e.template_effect((S) => e.set_attribute(l, "viewBox", S), [() => ys(e.get(s))]), e.append(r, l);
|
|
2121
2121
|
};
|
|
2122
2122
|
e.if(b, (r) => {
|
|
2123
2123
|
e.get(c).length > 0 && r(h);
|
|
2124
2124
|
}), e.reset(M), e.template_effect(() => {
|
|
2125
|
-
e.set_style(M, e.get(g)), e.set_attribute(M, "data-element-id", t.element.id), e.set_attribute(M, "data-pptx-element",
|
|
2125
|
+
e.set_style(M, e.get(g)), e.set_attribute(M, "data-element-id", t.element.id), e.set_attribute(M, "data-pptx-element", v() || n() ? "true" : void 0);
|
|
2126
2126
|
}), e.append(C, M);
|
|
2127
2127
|
};
|
|
2128
2128
|
e.if(A, (C) => {
|
|
@@ -2132,7 +2132,7 @@ function Po(a, t) {
|
|
|
2132
2132
|
var To = e.from_html('<div aria-hidden="true" data-pptx-hit-target="true"></div>'), Lo = e.from_html('<iframe class="pptx-svelte-media-video pptx-svelte-media-iframe svelte-g8s3j6" allowfullscreen=""></iframe>'), Ao = e.from_html('<video class="pptx-svelte-media-video svelte-g8s3j6" preload="metadata" playsinline=""></video>', 2), Mo = e.from_html('<audio class="pptx-svelte-media-audio svelte-g8s3j6"></audio>'), Et = e.from_svg("<path></path>"), Pt = e.from_html("<span> </span>"), Oo = e.from_html('<div><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" class="svelte-g8s3j6"></svg> <!></div>'), Fo = e.from_html('<img alt="" draggable="false"/> <!>', 1), Bo = e.from_svg('<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" class="svelte-g8s3j6"></svg>'), Ro = e.from_html('<div class="pptx-svelte-media-placeholder svelte-g8s3j6"><!> <!></div>'), Uo = e.from_html('<button type="button" class="pptx-svelte-media-fullscreen-stop svelte-g8s3j6" style="pointer-events: auto"><svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" stroke="none"><rect x="6" y="6" width="12" height="12" rx="1"></rect></svg></button>'), Wo = e.from_html("<div><!><!><!></div>");
|
|
2133
2133
|
function No(a, t) {
|
|
2134
2134
|
e.push(t, !0);
|
|
2135
|
-
const i = e.prop(t, "presenting", 3, !1),
|
|
2135
|
+
const i = e.prop(t, "presenting", 3, !1), v = e.prop(t, "interactive", 3, !1), n = e.prop(t, "marked", 3, !1), w = e.prop(t, "editable", 3, !1), d = ye(), s = e.derived(() => ve(w(), i()) ? ue(t.element) : void 0), c = e.derived(() => t.element.type === "media" ? t.element : void 0), g = e.derived(() => e.get(c) ? ks(e.get(c), t.mediaDataUrls) : void 0);
|
|
2136
2136
|
let y = e.state(!1);
|
|
2137
2137
|
const F = e.derived(() => ({
|
|
2138
2138
|
fullScreen: e.get(c)?.fullScreen,
|
|
@@ -2142,7 +2142,7 @@ function No(a, t) {
|
|
|
2142
2142
|
...ge(t.element, t.zIndex),
|
|
2143
2143
|
...Da
|
|
2144
2144
|
} : ge(t.element, t.zIndex))), M = e.derived(() => e.get(c)?.trimStartMs), B = e.derived(() => ut(e.get(c) ?? {})), I = e.derived(() => Kt({
|
|
2145
|
-
interactive:
|
|
2145
|
+
interactive: v(),
|
|
2146
2146
|
presenting: i()
|
|
2147
2147
|
})), b = e.derived(() => Ti({
|
|
2148
2148
|
...e.get(I),
|
|
@@ -2153,14 +2153,14 @@ function No(a, t) {
|
|
|
2153
2153
|
})), r = e.derived(() => Ii(e.get(h), e.get(c)?.mediaType)), l = e.derived(() => Ei(e.get(h), e.get(c)?.mediaType)), q = e.derived(() => e.get(g) !== void 0 && !e.get(g).mediaSrc && e.get(h).placeholder !== "none");
|
|
2154
2154
|
let D = e.state(void 0);
|
|
2155
2155
|
e.user_effect(() => {
|
|
2156
|
-
const f = e.get(D),
|
|
2156
|
+
const f = e.get(D), u = e.get(M), _ = e.get(c);
|
|
2157
2157
|
if (!(!f || !_))
|
|
2158
2158
|
if (Fa(f, _), i()) {
|
|
2159
2159
|
if (Vi(_, e.get(g)?.mediaSrc)) {
|
|
2160
2160
|
f.muted = !0, f.paused || f.pause();
|
|
2161
2161
|
return;
|
|
2162
2162
|
}
|
|
2163
|
-
return kn(f, { trimStartMs:
|
|
2163
|
+
return kn(f, { trimStartMs: u }), un(f, {
|
|
2164
2164
|
trimStartMs: _.trimStartMs,
|
|
2165
2165
|
trimEndMs: _.trimEndMs,
|
|
2166
2166
|
fadeInDuration: _.fadeInDuration,
|
|
@@ -2174,22 +2174,22 @@ function No(a, t) {
|
|
|
2174
2174
|
e.set(y, !1);
|
|
2175
2175
|
return;
|
|
2176
2176
|
}
|
|
2177
|
-
const
|
|
2177
|
+
const u = () => {
|
|
2178
2178
|
e.set(y, !0);
|
|
2179
2179
|
}, _ = () => {
|
|
2180
2180
|
e.set(y, !1);
|
|
2181
2181
|
};
|
|
2182
|
-
return f.addEventListener("play",
|
|
2183
|
-
f.removeEventListener("play",
|
|
2182
|
+
return f.addEventListener("play", u), f.addEventListener("pause", _), f.addEventListener("ended", _), () => {
|
|
2183
|
+
f.removeEventListener("play", u), f.removeEventListener("pause", _), f.removeEventListener("ended", _);
|
|
2184
2184
|
};
|
|
2185
2185
|
});
|
|
2186
2186
|
function T() {
|
|
2187
2187
|
e.get(D) && !e.get(D).paused && e.get(D).pause();
|
|
2188
2188
|
}
|
|
2189
2189
|
var S = e.comment(), x = e.first_child(S), k = (f) => {
|
|
2190
|
-
var
|
|
2190
|
+
var u = Wo();
|
|
2191
2191
|
let _;
|
|
2192
|
-
var o = e.child(
|
|
2192
|
+
var o = e.child(u), m = (V) => {
|
|
2193
2193
|
var E = To();
|
|
2194
2194
|
e.template_effect((W) => e.set_style(E, W), [() => j(e.get(s))]), e.append(V, E);
|
|
2195
2195
|
};
|
|
@@ -2265,9 +2265,9 @@ function No(a, t) {
|
|
|
2265
2265
|
};
|
|
2266
2266
|
e.if(L, (V) => {
|
|
2267
2267
|
e.get(p) && V(P);
|
|
2268
|
-
}), e.reset(
|
|
2269
|
-
_ = e.set_class(
|
|
2270
|
-
}), e.append(f,
|
|
2268
|
+
}), e.reset(u), e.template_effect(() => {
|
|
2269
|
+
_ = e.set_class(u, 1, "pptx-svelte-element pptx-svelte-media svelte-g8s3j6", null, _, { "pptx-svelte-media-fallback": e.get(q) }), e.set_style(u, e.get(C)), e.set_attribute(u, "data-element-id", t.element.id), e.set_attribute(u, "data-pptx-element", v() || n() ? "true" : void 0);
|
|
2270
|
+
}), e.append(f, u);
|
|
2271
2271
|
};
|
|
2272
2272
|
e.if(x, (f) => {
|
|
2273
2273
|
e.get(c) && e.get(g) && f(k);
|
|
@@ -2277,7 +2277,7 @@ e.delegate(["click"]);
|
|
|
2277
2277
|
var Vo = e.from_html('<div aria-hidden="true" data-pptx-hit-target="true"></div>'), jo = e.from_html('<img class="pptx-svelte-model3d-poster svelte-tga34u" draggable="false"/>'), Go = e.from_html('<div class="pptx-svelte-model3d-placeholder svelte-tga34u"><svg class="pptx-svelte-model3d-icon svelte-tga34u" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg> <span class="pptx-svelte-model3d-label"> </span></div>'), Ho = e.from_html('<div class="pptx-svelte-model3d-scene svelte-tga34u"></div>'), Xo = e.from_html('<button type="button" class="pptx-svelte-model3d-view svelte-tga34u"> </button>'), Yo = e.from_html('<div class="pptx-svelte-element pptx-svelte-model3d"><!> <!> <!> <!></div>');
|
|
2278
2278
|
function Zo(a, t) {
|
|
2279
2279
|
e.push(t, !0);
|
|
2280
|
-
const i = e.prop(t, "interactive", 3, !1),
|
|
2280
|
+
const i = e.prop(t, "interactive", 3, !1), v = e.prop(t, "marked", 3, !1), n = e.prop(t, "editable", 3, !1), w = e.prop(t, "presenting", 3, !1), d = ye(), s = e.derived(() => ve(n(), w()) ? ue(t.element) : void 0), c = e.derived(() => t.element.type === "model3d" ? t.element : void 0), g = e.derived(() => j(ge(t.element, t.zIndex))), y = e.derived(() => e.get(c)?.posterImage ?? e.get(c)?.imageData), F = d("pptx.model3d.label");
|
|
2281
2281
|
let A = e.state(void 0), p = e.state("idle"), C;
|
|
2282
2282
|
Qt(() => {
|
|
2283
2283
|
C?.dispose();
|
|
@@ -2339,16 +2339,16 @@ function Zo(a, t) {
|
|
|
2339
2339
|
e.if(k, (o) => {
|
|
2340
2340
|
(e.get(p) === "loading" || e.get(p) === "mounted") && o(f);
|
|
2341
2341
|
});
|
|
2342
|
-
var
|
|
2342
|
+
var u = e.sibling(k, 2), _ = (o) => {
|
|
2343
2343
|
var m = Xo(), z = e.only_child(m, !0);
|
|
2344
2344
|
e.template_effect(() => {
|
|
2345
2345
|
m.disabled = e.get(p) === "loading", e.set_attribute(m, "aria-label", F), e.set_attribute(m, "title", F), e.set_text(z, F);
|
|
2346
2346
|
}), e.delegated("pointerdown", m, B), e.delegated("mousedown", m, B), e.delegated("click", m, I), e.append(o, m);
|
|
2347
2347
|
};
|
|
2348
|
-
e.if(
|
|
2348
|
+
e.if(u, (o) => {
|
|
2349
2349
|
e.get(c).modelData && (e.get(p) === "idle" || e.get(p) === "loading") && o(_);
|
|
2350
2350
|
}), e.reset(q), e.template_effect(() => {
|
|
2351
|
-
e.set_style(q, e.get(g)), e.set_attribute(q, "data-element-id", t.element.id), e.set_attribute(q, "data-pptx-element", i() ||
|
|
2351
|
+
e.set_style(q, e.get(g)), e.set_attribute(q, "data-element-id", t.element.id), e.set_attribute(q, "data-pptx-element", i() || v() ? "true" : void 0);
|
|
2352
2352
|
}), e.append(l, q);
|
|
2353
2353
|
};
|
|
2354
2354
|
e.if(h, (l) => {
|
|
@@ -2363,7 +2363,7 @@ e.delegate([
|
|
|
2363
2363
|
var Ko = e.from_html('<div aria-hidden="true" data-pptx-hit-target="true"></div>'), Jo = e.from_html('<div class="pptx-svelte-ole-preview svelte-cy7pvy"><img class="pptx-svelte-ole-img svelte-cy7pvy" draggable="false"/> <svg class="pptx-svelte-ole-badge svelte-cy7pvy" width="24" height="24" viewBox="0 0 24 24"><rect x="2" y="2" width="20" height="20" rx="3"></rect><text x="12" y="16" text-anchor="middle" fill="white" font-weight="bold"> </text></svg></div>'), Qo = e.from_svg("<rect></rect>"), $o = e.from_svg("<line></line>"), ed = e.from_svg("<text> </text>"), td = e.from_html('<span class="pptx-svelte-ole-sublabel svelte-cy7pvy"> </span>'), ad = e.from_html('<div class="pptx-svelte-ole-placeholder"><svg width="36" height="36" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg> <span class="pptx-svelte-ole-name svelte-cy7pvy"> </span> <!></div>'), rd = e.from_html('<span class="pptx-svelte-ole-meta svelte-cy7pvy"> </span>'), id = e.from_html('<button type="button" class="pptx-svelte-ole-action svelte-cy7pvy"> </button>'), nd = e.from_html('<div class="pptx-svelte-ole-actions svelte-cy7pvy"><!> <a class="pptx-svelte-ole-action svelte-cy7pvy"> </a> <!></div>'), sd = e.from_html('<div class="pptx-svelte-element pptx-svelte-ole" role="group"><!> <!> <!></div>');
|
|
2364
2364
|
function ld(a, t) {
|
|
2365
2365
|
e.push(t, !0);
|
|
2366
|
-
const i = e.prop(t, "interactive", 3, !1),
|
|
2366
|
+
const i = e.prop(t, "interactive", 3, !1), v = e.prop(t, "marked", 3, !1), n = e.prop(t, "editable", 3, !1), w = e.prop(t, "presenting", 3, !1), d = ye(), s = e.derived(() => ve(n(), w()) ? ue(t.element) : void 0), c = e.derived(() => Oi(Kt({
|
|
2367
2367
|
interactive: i(),
|
|
2368
2368
|
presenting: w()
|
|
2369
2369
|
}))), g = e.derived(() => t.element.type === "ole" ? Ss(t.element) : void 0), y = e.derived(() => j(ge(t.element, t.zIndex)));
|
|
@@ -2379,9 +2379,9 @@ function ld(a, t) {
|
|
|
2379
2379
|
e.get(s) && T(b);
|
|
2380
2380
|
});
|
|
2381
2381
|
var h = e.sibling(I, 2), r = (T) => {
|
|
2382
|
-
var S = Jo(), x = e.child(S), k = e.sibling(x, 2), f = e.child(k),
|
|
2382
|
+
var S = Jo(), x = e.child(S), k = e.sibling(x, 2), f = e.child(k), u = e.sibling(f), _ = e.only_child(u, !0);
|
|
2383
2383
|
e.reset(k), e.reset(S), e.template_effect(() => {
|
|
2384
|
-
e.set_attribute(x, "src", e.get(g).previewSrc), e.set_attribute(x, "alt", e.get(g).ariaLabel), e.set_attribute(f, "fill", e.get(g).typeColor), e.set_attribute(
|
|
2384
|
+
e.set_attribute(x, "src", e.get(g).previewSrc), e.set_attribute(x, "alt", e.get(g).ariaLabel), e.set_attribute(f, "fill", e.get(g).typeColor), e.set_attribute(u, "font-size", e.get(g).badgeFontSize), e.set_text(_, e.get(g).badgeLabel);
|
|
2385
2385
|
}), e.append(T, S);
|
|
2386
2386
|
}, l = (T) => {
|
|
2387
2387
|
var S = ad(), x = e.child(S);
|
|
@@ -2411,11 +2411,11 @@ function ld(a, t) {
|
|
|
2411
2411
|
e.get(m).tag === "rect" ? Y(U) : e.get(m).tag === "line" ? Y(O, 1) : Y(N, -1);
|
|
2412
2412
|
}), e.append(o, z);
|
|
2413
2413
|
}), e.reset(x);
|
|
2414
|
-
var k = e.sibling(x, 2), f = e.only_child(k, !0),
|
|
2414
|
+
var k = e.sibling(x, 2), f = e.only_child(k, !0), u = e.sibling(k, 2), _ = (o) => {
|
|
2415
2415
|
var m = td(), z = e.only_child(m, !0);
|
|
2416
2416
|
e.template_effect(() => e.set_text(z, e.get(g).sublabel)), e.append(o, m);
|
|
2417
2417
|
};
|
|
2418
|
-
e.if(
|
|
2418
|
+
e.if(u, (o) => {
|
|
2419
2419
|
e.get(g).sublabel && o(_);
|
|
2420
2420
|
}), e.reset(S), e.template_effect(() => {
|
|
2421
2421
|
e.set_style(S, e.get(g).placeholderStyle), e.set_style(k, `color: ${e.get(g).typeColor}`), e.set_text(f, e.get(g).displayName);
|
|
@@ -2433,7 +2433,7 @@ function ld(a, t) {
|
|
|
2433
2433
|
e.if(k, (z) => {
|
|
2434
2434
|
e.get(g).size && z(f);
|
|
2435
2435
|
});
|
|
2436
|
-
var
|
|
2436
|
+
var u = e.sibling(k, 2), _ = e.only_child(u, !0), o = e.sibling(u, 2), m = (z) => {
|
|
2437
2437
|
var R = id(), U = e.only_child(R, !0);
|
|
2438
2438
|
e.template_effect((O, N, Y) => {
|
|
2439
2439
|
e.set_attribute(R, "aria-label", O), e.set_attribute(R, "title", N), e.set_text(U, Y);
|
|
@@ -2446,7 +2446,7 @@ function ld(a, t) {
|
|
|
2446
2446
|
e.if(o, (z) => {
|
|
2447
2447
|
e.get(g).canOpen && z(m);
|
|
2448
2448
|
}), e.reset(x), e.template_effect((z, R, U) => {
|
|
2449
|
-
e.set_attribute(
|
|
2449
|
+
e.set_attribute(u, "href", e.get(S)), e.set_attribute(u, "download", e.get(g).downloadName), e.set_attribute(u, "aria-label", z), e.set_attribute(u, "title", R), e.set_text(_, U);
|
|
2450
2450
|
}, [
|
|
2451
2451
|
() => d("pptx.ole.downloadName", { name: e.get(g).downloadName }),
|
|
2452
2452
|
() => d("pptx.ole.downloadName", { name: e.get(g).downloadName }),
|
|
@@ -2456,7 +2456,7 @@ function ld(a, t) {
|
|
|
2456
2456
|
e.if(q, (T) => {
|
|
2457
2457
|
e.get(g).embeddedData && e.get(c) && T(D);
|
|
2458
2458
|
}), e.reset(B), e.template_effect(() => {
|
|
2459
|
-
e.set_style(B, e.get(y)), e.set_attribute(B, "data-element-id", t.element.id), e.set_attribute(B, "data-pptx-element", i() ||
|
|
2459
|
+
e.set_style(B, e.get(y)), e.set_attribute(B, "data-element-id", t.element.id), e.set_attribute(B, "data-pptx-element", i() || v() ? "true" : void 0), e.set_attribute(B, "aria-label", e.get(g).ariaLabel), e.set_attribute(B, "title", e.get(g).titleText);
|
|
2460
2460
|
}), e.append(M, B);
|
|
2461
2461
|
};
|
|
2462
2462
|
e.if(p, (M) => {
|
|
@@ -2471,7 +2471,7 @@ e.delegate([
|
|
|
2471
2471
|
var od = e.from_html('<div aria-hidden="true" data-pptx-hit-target="true"></div>'), dd = e.from_html('<div class="pptx-svelte-element pptx-svelte-placeholder svelte-1msb0wc"><!> <span class="pptx-svelte-placeholder-label svelte-1msb0wc"> </span></div>');
|
|
2472
2472
|
function gd(a, t) {
|
|
2473
2473
|
e.push(t, !0);
|
|
2474
|
-
const i = e.prop(t, "interactive", 3, !1),
|
|
2474
|
+
const i = e.prop(t, "interactive", 3, !1), v = e.prop(t, "marked", 3, !1), n = e.prop(t, "editable", 3, !1), w = e.prop(t, "presenting", 3, !1), d = e.derived(() => j(ge(t.element, t.zIndex))), s = e.derived(() => ve(n(), w()) ? ue(t.element) : void 0);
|
|
2475
2475
|
var c = dd(), g = e.child(c), y = (p) => {
|
|
2476
2476
|
var C = od();
|
|
2477
2477
|
e.template_effect((M) => e.set_style(C, M), [() => j(e.get(s))]), e.append(p, C);
|
|
@@ -2481,14 +2481,14 @@ function gd(a, t) {
|
|
|
2481
2481
|
});
|
|
2482
2482
|
var F = e.sibling(g, 2), A = e.only_child(F, !0);
|
|
2483
2483
|
e.reset(c), e.template_effect(() => {
|
|
2484
|
-
e.set_style(c, e.get(d)), e.set_attribute(c, "data-element-id", t.element.id), e.set_attribute(c, "data-element-type", t.element.type), e.set_attribute(c, "data-pptx-element", i() ||
|
|
2484
|
+
e.set_style(c, e.get(d)), e.set_attribute(c, "data-element-id", t.element.id), e.set_attribute(c, "data-element-type", t.element.type), e.set_attribute(c, "data-pptx-element", i() || v() ? "true" : void 0), e.set_text(A, t.element.type);
|
|
2485
2485
|
}), e.append(a, c), e.pop();
|
|
2486
2486
|
}
|
|
2487
2487
|
var cd = e.from_svg("<title> </title>"), Tt = e.from_svg("<stop></stop>"), vd = e.from_svg("<radialGradient></radialGradient>"), ud = e.from_svg("<linearGradient></linearGradient>"), fd = e.from_svg("<defs><!></defs>"), _d = e.from_svg('<image preserveAspectRatio="xMidYMid meet"></image>'), md = e.from_svg("<ellipse></ellipse>"), pd = e.from_svg("<path></path>"), hd = e.from_svg("<rect></rect>"), bd = e.from_svg("<tspan> </tspan>"), yd = e.from_svg('<text text-anchor="middle" dominant-baseline="central"></text>'), xd = e.from_svg("<g><!><!><!><!></g>"), kd = e.from_svg('<svg class="pptx-svelte-smartart-svg" preserveAspectRatio="xMidYMid meet"></svg>');
|
|
2488
2488
|
function Sd(a, t) {
|
|
2489
2489
|
e.push(t, !0);
|
|
2490
2490
|
var i = kd();
|
|
2491
|
-
e.each(i, 21, () => t.view.shapes, (
|
|
2491
|
+
e.each(i, 21, () => t.view.shapes, (v) => v.key, (v, n) => {
|
|
2492
2492
|
var w = xd(), d = e.child(w), s = (I) => {
|
|
2493
2493
|
var b = cd(), h = e.only_child(b, !0);
|
|
2494
2494
|
e.template_effect(() => e.set_text(h, e.get(n).ariaLabel)), e.append(I, b);
|
|
@@ -2566,7 +2566,7 @@ function Sd(a, t) {
|
|
|
2566
2566
|
e.set_style(w, `${t.view.shadow ? `filter: ${t.view.shadow};` : ""}${e.get(n).nodeId && t.canEditNodeText ? "pointer-events: auto; cursor: text;" : ""}`), e.set_attribute(w, "data-smartart-node-id", e.get(n).nodeId), e.set_attribute(w, "role", e.get(n).ariaLabel ? "img" : void 0), e.set_attribute(w, "aria-label", e.get(n).ariaLabel);
|
|
2567
2567
|
}), e.delegated("dblclick", w, (I) => t.onopeneditor(I, e.get(n).nodeId)), e.event("mouseenter", w, (I) => t.onshowstyle(I, e.get(n).nodeId)), e.event("mouseleave", w, function(...I) {
|
|
2568
2568
|
t.onhidestyle?.apply(this, I);
|
|
2569
|
-
}), e.append(
|
|
2569
|
+
}), e.append(v, w);
|
|
2570
2570
|
}), e.reset(i), e.template_effect(() => {
|
|
2571
2571
|
e.set_attribute(i, "viewBox", t.view.viewBox), e.set_style(i, na);
|
|
2572
2572
|
}), e.append(a, i), e.pop();
|
|
@@ -2574,7 +2574,7 @@ function Sd(a, t) {
|
|
|
2574
2574
|
e.delegate(["dblclick"]);
|
|
2575
2575
|
var wd = (a, t = e.noop) => {
|
|
2576
2576
|
const i = e.derived(() => xn(t()));
|
|
2577
|
-
var
|
|
2577
|
+
var v = e.comment(), n = e.first_child(v), w = (d) => {
|
|
2578
2578
|
var s = qd();
|
|
2579
2579
|
e.each(s, 21, () => e.get(i).lines, e.index, (c, g) => {
|
|
2580
2580
|
var y = Dd(), F = e.only_child(y, !0);
|
|
@@ -2587,21 +2587,21 @@ var wd = (a, t = e.noop) => {
|
|
|
2587
2587
|
};
|
|
2588
2588
|
e.if(n, (d) => {
|
|
2589
2589
|
e.get(i).visible && d(w);
|
|
2590
|
-
}), e.append(a,
|
|
2590
|
+
}), e.append(a, v);
|
|
2591
2591
|
}, Dd = e.from_svg("<tspan> </tspan>"), qd = e.from_svg("<text></text>"), zd = e.from_html('<div aria-hidden="true" data-pptx-hit-target="true"></div>'), Cd = e.from_svg('<path fill="none"></path>'), Id = e.from_svg("<title> </title>"), Ed = e.from_svg("<circle></circle>"), Pd = e.from_svg("<polygon></polygon>"), Td = e.from_svg("<rect></rect>"), Ld = e.from_svg("<g><!><!><!></g>"), Ad = e.from_svg('<svg class="pptx-svelte-smartart-svg" preserveAspectRatio="xMidYMid meet"><!><!></svg>'), Md = e.from_html('<div class="pptx-svelte-smartart-placeholder svelte-ifrpg4"> </div>'), Od = e.from_html('<button type="button" data-pptx-compact="" class="svelte-ifrpg4"></button>'), Fd = e.from_html('<div class="pptx-svelte-smartart-swatches svelte-ifrpg4" role="group"></div>'), Bd = e.from_html('<textarea class="pptx-svelte-smartart-editor svelte-ifrpg4"></textarea>'), Rd = e.from_html('<div class="pptx-svelte-element pptx-svelte-smartart" aria-roledescription="diagram"><!> <div class="pptx-svelte-smartart-chrome"><!> <!> <!></div></div>');
|
|
2592
2592
|
function Be(a, t) {
|
|
2593
2593
|
e.push(t, !0);
|
|
2594
|
-
const i = e.prop(t, "marked", 3, !1),
|
|
2594
|
+
const i = e.prop(t, "marked", 3, !1), v = e.prop(t, "editable", 3, !1), n = e.prop(t, "presenting", 3, !1), w = ye(), d = e.derived(() => ve(v(), n()) ? ue(t.element) : void 0), s = e.derived(() => t.element.type === "smartArt" ? t.element : void 0), c = e.derived(() => e.get(s) ? bs(e.get(s), t.animationState) : void 0), g = e.derived(() => e.get(s) ? ps(e.get(s)) : ""), y = e.derived(() => e.get(s) ? hs(e.get(s)) : void 0), F = e.derived(() => j(ge(t.element, t.zIndex))), A = e.derived(() => e.get(s)?.smartArtData ? Je(e.get(s).smartArtData) : []);
|
|
2595
2595
|
let p = e.state(void 0), C = e.state(null), M = e.state(""), B = e.state(null);
|
|
2596
|
-
function I(
|
|
2596
|
+
function I(u) {
|
|
2597
2597
|
if (!e.get(p)) return null;
|
|
2598
|
-
const _ =
|
|
2599
|
-
return o && o.width > 0 ? o : vt(
|
|
2598
|
+
const _ = u.querySelector("text"), o = _ ? vt(_) : null;
|
|
2599
|
+
return o && o.width > 0 ? o : vt(u);
|
|
2600
2600
|
}
|
|
2601
|
-
function b(
|
|
2601
|
+
function b(u, _) {
|
|
2602
2602
|
if (!_ || !e.get(s)?.smartArtData || !t.onsmartartnodecommit || !tt(e.get(s))) return;
|
|
2603
|
-
const o = I(
|
|
2604
|
-
o && (
|
|
2603
|
+
const o = I(u.currentTarget);
|
|
2604
|
+
o && (u.stopPropagation(), e.set(B, null), e.set(M, Pr(e.get(s).smartArtData, _) ?? "", !0), e.set(C, {
|
|
2605
2605
|
nodeId: _,
|
|
2606
2606
|
left: o.left - 4,
|
|
2607
2607
|
top: o.top - 4,
|
|
@@ -2616,9 +2616,9 @@ function Be(a, t) {
|
|
|
2616
2616
|
function l() {
|
|
2617
2617
|
r(), h = setTimeout(() => e.set(B, null), 150);
|
|
2618
2618
|
}
|
|
2619
|
-
function q(
|
|
2619
|
+
function q(u, _) {
|
|
2620
2620
|
if (r(), !_ || !t.onsmartartnodefill || e.get(C)) return;
|
|
2621
|
-
const o = I(
|
|
2621
|
+
const o = I(u.currentTarget);
|
|
2622
2622
|
o && e.set(B, {
|
|
2623
2623
|
nodeId: _,
|
|
2624
2624
|
left: Math.max(0, o.left),
|
|
@@ -2628,15 +2628,15 @@ function Be(a, t) {
|
|
|
2628
2628
|
function D() {
|
|
2629
2629
|
!e.get(C) || !e.get(s) || (t.onsmartartnodecommit?.(e.get(s).id, e.get(C).nodeId, e.get(M)), e.set(C, null));
|
|
2630
2630
|
}
|
|
2631
|
-
function T(
|
|
2631
|
+
function T(u) {
|
|
2632
2632
|
queueMicrotask(() => {
|
|
2633
|
-
|
|
2633
|
+
u.isConnected && (u.focus(), u.select());
|
|
2634
2634
|
});
|
|
2635
2635
|
}
|
|
2636
|
-
function S(
|
|
2637
|
-
|
|
2636
|
+
function S(u) {
|
|
2637
|
+
u.key === "Escape" ? (u.preventDefault(), e.set(C, null)) : u.key === "Enter" && !u.shiftKey && (u.preventDefault(), D());
|
|
2638
2638
|
}
|
|
2639
|
-
var x = e.comment(), k = e.first_child(x), f = (
|
|
2639
|
+
var x = e.comment(), k = e.first_child(x), f = (u) => {
|
|
2640
2640
|
var _ = Rd(), o = e.child(_), m = (E) => {
|
|
2641
2641
|
var W = zd();
|
|
2642
2642
|
e.template_effect((H) => e.set_style(W, H), [() => j(e.get(d))]), e.append(E, W);
|
|
@@ -2734,10 +2734,10 @@ function Be(a, t) {
|
|
|
2734
2734
|
e.get(C) && E(V);
|
|
2735
2735
|
}), e.reset(z), e.bind_this(z, (E) => e.set(p, E), () => e.get(p)), e.reset(_), e.template_effect(() => {
|
|
2736
2736
|
e.set_style(_, e.get(F)), e.set_attribute(_, "data-element-id", t.element.id), e.set_attribute(_, "data-pptx-element", t.interactive || i() ? "true" : void 0), e.set_attribute(_, "data-testid", `smartart-${e.get(s)?.smartArtData?.layout ?? "diagram"}`), e.set_style(z, e.get(g)), e.set_attribute(z, "role", e.get(y) !== void 0 ? "img" : void 0), e.set_attribute(z, "aria-label", e.get(y));
|
|
2737
|
-
}), e.append(
|
|
2737
|
+
}), e.append(u, _);
|
|
2738
2738
|
};
|
|
2739
|
-
e.if(k, (
|
|
2740
|
-
e.get(c) &&
|
|
2739
|
+
e.if(k, (u) => {
|
|
2740
|
+
e.get(c) && u(f);
|
|
2741
2741
|
}), e.append(a, x), e.pop();
|
|
2742
2742
|
}
|
|
2743
2743
|
e.delegate([
|
|
@@ -2749,7 +2749,7 @@ e.delegate([
|
|
|
2749
2749
|
var Ud = e.from_html('<div aria-hidden="true" data-pptx-hit-target="true"></div>'), Wd = e.from_html('<div class="pptx-svelte-smartart-3d-edit-layer svelte-5v07uj" data-smartart-3d-edit-layer="true" aria-hidden="true"><!></div>'), Nd = e.from_html('<div class="pptx-svelte-element pptx-svelte-smartart-3d"><!> <!> <!></div>');
|
|
2750
2750
|
function Vd(a, t) {
|
|
2751
2751
|
e.push(t, !0);
|
|
2752
|
-
const i = e.prop(t, "interactive", 3, !1),
|
|
2752
|
+
const i = e.prop(t, "interactive", 3, !1), v = e.prop(t, "marked", 3, !1), n = e.prop(t, "editable", 3, !1), w = e.prop(t, "presenting", 3, !1), d = lt(), s = e.derived(() => sn(t.element, d().smartArt3D)), c = e.derived(() => Ir(t.element)), g = e.derived(() => j(ge(t.element, t.zIndex))), y = e.derived(() => ve(n(), w()) ? ue(t.element) : void 0);
|
|
2753
2753
|
function F(B) {
|
|
2754
2754
|
const I = () => Sn(B);
|
|
2755
2755
|
I();
|
|
@@ -2824,7 +2824,7 @@ function Vd(a, t) {
|
|
|
2824
2824
|
e.if(l, (D) => {
|
|
2825
2825
|
n() && !w() && t.onsmartartnodecommit && D(q);
|
|
2826
2826
|
}), e.reset(I), e.template_effect(() => {
|
|
2827
|
-
e.set_style(I, e.get(g)), e.set_attribute(I, "data-element-id", t.element.id), e.set_attribute(I, "data-pptx-element", i() ||
|
|
2827
|
+
e.set_style(I, e.get(g)), e.set_attribute(I, "data-element-id", t.element.id), e.set_attribute(I, "data-pptx-element", i() || v() ? "true" : void 0), e.set_attribute(I, "data-testid", `smartart-${t.element.type === "smartArt" ? t.element.smartArtData?.layout ?? "diagram" : "diagram"}`);
|
|
2828
2828
|
}), e.append(B, I);
|
|
2829
2829
|
}, M = (B) => {
|
|
2830
2830
|
Be(B, {
|
|
@@ -2862,9 +2862,9 @@ function jd() {
|
|
|
2862
2862
|
var Lt = 3;
|
|
2863
2863
|
function Gd(a) {
|
|
2864
2864
|
const t = [...a.querySelectorAll("tbody > tr")], i = [];
|
|
2865
|
-
let
|
|
2865
|
+
let v = 0;
|
|
2866
2866
|
return t.forEach((n, w) => {
|
|
2867
|
-
|
|
2867
|
+
v += n.offsetHeight, w < t.length - 1 && i.push(v);
|
|
2868
2868
|
}), i;
|
|
2869
2869
|
}
|
|
2870
2870
|
var Hd = class {
|
|
@@ -2943,9 +2943,9 @@ var Hd = class {
|
|
|
2943
2943
|
onpointerdown = (a) => {
|
|
2944
2944
|
const t = this.#s(), i = this.#n();
|
|
2945
2945
|
if (!t || !i) return;
|
|
2946
|
-
const
|
|
2946
|
+
const v = t.getBoundingClientRect(), n = a.clientX - v.left, w = a.clientY - v.top, d = fi(v.height, t.offsetHeight);
|
|
2947
2947
|
for (let s = 0; s < this.colBoundaries.length; s++) {
|
|
2948
|
-
const c = this.colBoundaries[s] / 100 *
|
|
2948
|
+
const c = this.colBoundaries[s] / 100 * v.width;
|
|
2949
2949
|
if (Math.abs(n - c) <= Lt && !xi(this.crossings, s, this.rowBounds, w / d)) {
|
|
2950
2950
|
this.#v(a, {
|
|
2951
2951
|
type: "col",
|
|
@@ -2956,7 +2956,7 @@ var Hd = class {
|
|
|
2956
2956
|
return;
|
|
2957
2957
|
}
|
|
2958
2958
|
}
|
|
2959
|
-
for (let s = 0; s < this.rowBounds.length; s++) if (Math.abs(w - this.rowBounds[s] * d) <= Lt && !qi(this.crossings, s, i.columnWidths, n / (
|
|
2959
|
+
for (let s = 0; s < this.rowBounds.length; s++) if (Math.abs(w - this.rowBounds[s] * d) <= Lt && !qi(this.crossings, s, i.columnWidths, n / (v.width || 1))) {
|
|
2960
2960
|
const c = t.querySelectorAll("table tbody > tr")[s];
|
|
2961
2961
|
this.#v(a, {
|
|
2962
2962
|
type: "row",
|
|
@@ -2978,8 +2978,8 @@ var Hd = class {
|
|
|
2978
2978
|
const t = this.#d;
|
|
2979
2979
|
if (this.#d = null, this.dragType = null, this.dragIndex = null, this.dragOffset = null, this.#_(), !!t) {
|
|
2980
2980
|
if (a.clientX !== t.startPos && t.type === "col" && t.initialWidths) {
|
|
2981
|
-
const i = this.#s()?.getBoundingClientRect(),
|
|
2982
|
-
this.#g(pr(t.initialWidths, t.index,
|
|
2981
|
+
const i = this.#s()?.getBoundingClientRect(), v = (a.clientX - t.startPos) / (i?.width || 1);
|
|
2982
|
+
this.#g(pr(t.initialWidths, t.index, v));
|
|
2983
2983
|
} else if (a.clientY !== t.startPos && t.type === "row") {
|
|
2984
2984
|
const i = a.clientY - t.startPos;
|
|
2985
2985
|
this.#c(t.index, hr(t.initialRowHeight ?? dt, i));
|
|
@@ -2996,7 +2996,7 @@ var Hd = class {
|
|
|
2996
2996
|
}, Xd = e.from_html('<div aria-hidden="true" data-pptx-hit-target="true"></div>'), Yd = e.from_html("<col/>"), Zd = e.from_html("<colgroup></colgroup>"), Kd = e.from_svg('<line x1="0" y1="0" x2="100%" y2="100%"></line>'), Jd = e.from_svg('<line x1="0" y1="100%" x2="100%" y2="0"></line>'), Qd = e.from_svg('<svg class="pptx-svelte-table-diag" aria-hidden="true" preserveAspectRatio="none" style="position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible"><!><!></svg>'), $d = e.from_html('<input data-inline-editor="" type="text" class="svelte-vqu1rc"/>'), At = e.from_html("<br/>"), Mt = e.from_html('<span class="pptx-svelte-table-run"> </span>'), eg = e.from_html('<div class="pptx-svelte-table-para"></div>'), tg = e.from_html('<div class="pptx-svelte-table-para-break" style="display: block; height: 0"></div>'), ag = e.from_html('<span class="pptx-svelte-table-text" style="position: relative"> </span>'), rg = e.from_html("<td><!><!></td>"), ig = e.from_html("<tr></tr>"), ng = e.from_html('<div class="pptx-svelte-table-resize-segment pptx-svelte-table-resize-col-segment svelte-vqu1rc"></div>'), sg = e.from_html('<div class="pptx-svelte-table-resize-col svelte-vqu1rc"></div>'), lg = e.from_html('<div class="pptx-svelte-table-resize-segment pptx-svelte-table-resize-row-segment svelte-vqu1rc"></div>'), og = e.from_html('<div class="pptx-svelte-table-resize-row svelte-vqu1rc"></div>'), dg = e.from_html("<!> <!>", 1), gg = e.from_html('<div class="pptx-svelte-element pptx-svelte-table"><!> <table class="pptx-svelte-table-grid svelte-vqu1rc"><!><tbody></tbody></table> <!></div>');
|
|
2997
2997
|
function cg(a, t) {
|
|
2998
2998
|
e.push(t, !0);
|
|
2999
|
-
const i = e.prop(t, "interactive", 3, !1),
|
|
2999
|
+
const i = e.prop(t, "interactive", 3, !1), v = e.prop(t, "marked", 3, !1), n = e.prop(t, "editable", 3, !1), w = e.prop(t, "presenting", 3, !1), d = e.derived(() => ve(n(), w()) ? ue(t.element) : void 0), s = e.derived(() => t.element.type === "table" ? t.element.tableData : void 0), c = e.derived(Vn), g = e.derived(() => e.get(s) ? gs(e.get(s), e.get(c)) : []), y = e.derived(() => e.get(s) ? ds(e.get(s)) : []), F = e.derived(() => os(e.get(s))), A = e.derived(() => j({
|
|
3000
3000
|
...ge(t.element, t.zIndex),
|
|
3001
3001
|
overflow: "hidden"
|
|
3002
3002
|
}));
|
|
@@ -3040,7 +3040,7 @@ function cg(a, t) {
|
|
|
3040
3040
|
e.if(k, (U) => {
|
|
3041
3041
|
e.get(d) && U(f);
|
|
3042
3042
|
});
|
|
3043
|
-
var
|
|
3043
|
+
var u = e.sibling(k, 2), _ = e.child(u), o = (U) => {
|
|
3044
3044
|
var O = Zd();
|
|
3045
3045
|
e.each(O, 21, () => e.get(y), e.index, (N, Y) => {
|
|
3046
3046
|
var L = Yd();
|
|
@@ -3134,8 +3134,8 @@ function cg(a, t) {
|
|
|
3134
3134
|
V = e.set_class(P, 1, "pptx-svelte-table-cell svelte-vqu1rc", null, V, { "is-cell-selected": Z }), e.set_attribute(P, "data-cell-row", e.get(L).rowIndex), e.set_attribute(P, "data-cell-col", e.get(L).cellIndex), e.set_attribute(P, "data-cell-selected", $), e.set_attribute(P, "colspan", e.get(L).colSpan), e.set_attribute(P, "rowspan", e.get(L).rowSpan), e.set_style(P, e.get(L).style);
|
|
3135
3135
|
}, [() => B(t.element.id, e.get(L).rowIndex, e.get(L).cellIndex), () => B(t.element.id, e.get(L).rowIndex, e.get(L).cellIndex) ? "true" : void 0]), e.delegated("dblclick", P, (Z) => h(e.get(L), Z)), e.append(Y, P);
|
|
3136
3136
|
}), e.reset(N), e.template_effect(() => e.set_style(N, e.get(O).style)), e.append(U, N);
|
|
3137
|
-
}), e.reset(m), e.reset(
|
|
3138
|
-
var z = e.sibling(
|
|
3137
|
+
}), e.reset(m), e.reset(u);
|
|
3138
|
+
var z = e.sibling(u, 2), R = (U) => {
|
|
3139
3139
|
var O = dg(), N = e.first_child(O);
|
|
3140
3140
|
e.each(N, 17, () => M.colBoundaries, e.index, (L, P, V) => {
|
|
3141
3141
|
var E = sg();
|
|
@@ -3156,7 +3156,7 @@ function cg(a, t) {
|
|
|
3156
3156
|
e.if(z, (U) => {
|
|
3157
3157
|
e.get(C) && U(R);
|
|
3158
3158
|
}), e.reset(x), e.bind_this(x, (U) => e.set(p, U), () => e.get(p)), e.template_effect(() => {
|
|
3159
|
-
e.set_style(x, e.get(A)), e.set_attribute(x, "data-element-id", t.element.id), e.set_attribute(x, "data-pptx-element", i() ||
|
|
3159
|
+
e.set_style(x, e.get(A)), e.set_attribute(x, "data-element-id", t.element.id), e.set_attribute(x, "data-pptx-element", i() || v() ? "true" : void 0), e.set_style(u, e.get(F));
|
|
3160
3160
|
}), e.delegated("pointerdown", x, function(...U) {
|
|
3161
3161
|
(e.get(C) ? M.onpointerdown : void 0)?.apply(this, U);
|
|
3162
3162
|
}), e.append(S, x);
|
|
@@ -3190,7 +3190,7 @@ function Ot(a, t) {
|
|
|
3190
3190
|
var ug = e.from_html('<div aria-hidden="true" data-pptx-hit-target="true"></div>'), fg = e.from_html('<img draggable="false" class="svelte-1s2yoox"/>'), _g = e.from_html("<div> </div><div> </div>", 1), mg = e.from_html('<div class="pptx-svelte-summary-zoom-tile svelte-1s2yoox"><!></div>'), pg = e.from_html('<div class="pptx-svelte-summary-zoom"><!> <div class="pptx-svelte-zoom-badge svelte-1s2yoox"> </div></div>'), hg = e.from_html('<img class="pptx-svelte-zoom-img svelte-1s2yoox" draggable="false"/>'), bg = e.from_html('<div class="pptx-svelte-zoom-section-label svelte-1s2yoox"> </div>'), yg = e.from_html('<div class="pptx-svelte-zoom-thumbnail svelte-1s2yoox"><div class="pptx-svelte-zoom-slide-label svelte-1s2yoox"> </div> <!></div>'), xg = e.from_html('<div class="pptx-svelte-zoom-tile svelte-1s2yoox"><!> <div class="pptx-svelte-zoom-badge svelte-1s2yoox"> </div></div>'), kg = e.from_html("<div><!> <!></div>");
|
|
3191
3191
|
function Sg(a, t) {
|
|
3192
3192
|
e.push(t, !0);
|
|
3193
|
-
const i = e.prop(t, "presenting", 3, !1),
|
|
3193
|
+
const i = e.prop(t, "presenting", 3, !1), v = e.prop(t, "interactive", 3, !1), n = e.prop(t, "marked", 3, !1), w = e.prop(t, "editable", 3, !1), d = ye(), s = vg(), c = e.derived(() => ve(w(), i()) ? ue(t.element) : void 0), g = e.derived(() => t.element.type === "zoom" ? t.element : void 0), y = e.derived(() => e.get(g) ? Ds(e.get(g)) : void 0), F = e.derived(() => j(ge(t.element, t.zIndex))), A = e.derived(() => e.get(y) ? Ot(s, e.get(y).target) : void 0), p = e.derived(() => e.get(g) ? tr(e.get(g), (k) => Ot(s, k), d) : void 0), C = e.derived(() => !!(i() && s && e.get(y))), M = e.derived(() => e.get(A)?.slideNumber ?? (e.get(y)?.target ?? 0) + 1), B = e.derived(() => e.get(A)?.sectionName ?? e.get(y)?.sectionId), I = e.derived(() => e.get(A)?.backgroundColor ? `background-color: ${e.get(A).backgroundColor}` : void 0), b = e.derived(() => e.get(y) === void 0 ? void 0 : e.get(y).zoomType === "section" && e.get(y).sectionId ? d("pptx.zoom.ariaLabelSection", {
|
|
3194
3194
|
number: e.get(y).target + 1,
|
|
3195
3195
|
section: e.get(y).sectionId
|
|
3196
3196
|
}) : d("pptx.zoom.ariaLabel", { number: e.get(y).target + 1 })), h = e.derived(() => e.get(y) === void 0 ? "" : d(e.get(y).zoomType === "section" ? "pptx.zoom.sectionZoom" : "pptx.zoom.slideZoom"));
|
|
@@ -3215,7 +3215,7 @@ function Sg(a, t) {
|
|
|
3215
3215
|
}
|
|
3216
3216
|
var T = e.comment(), S = e.first_child(T), x = (k) => {
|
|
3217
3217
|
var f = kg();
|
|
3218
|
-
let
|
|
3218
|
+
let u;
|
|
3219
3219
|
var _ = e.child(f), o = (U) => {
|
|
3220
3220
|
var O = ug();
|
|
3221
3221
|
e.template_effect((N) => e.set_style(O, N), [() => j(e.get(c))]), e.append(U, O);
|
|
@@ -3278,7 +3278,7 @@ function Sg(a, t) {
|
|
|
3278
3278
|
e.if(m, (U) => {
|
|
3279
3279
|
e.get(p) ? U(z) : U(R, -1);
|
|
3280
3280
|
}), e.reset(f), e.template_effect(() => {
|
|
3281
|
-
|
|
3281
|
+
u = e.set_class(f, 1, "pptx-svelte-element pptx-svelte-zoom svelte-1s2yoox", null, u, { "pptx-svelte-zoom-interactive": e.get(C) }), e.set_style(f, e.get(F)), e.set_attribute(f, "data-element-id", t.element.id), e.set_attribute(f, "data-pptx-element", v() || n() ? "true" : void 0), e.set_attribute(f, "data-zoom-type", e.get(y).zoomType), e.set_attribute(f, "data-zoom-target", e.get(y).target), e.set_attribute(f, "aria-label", e.get(p)?.ariaLabel ?? e.get(b)), e.set_attribute(f, "role", e.get(p) ? "group" : e.get(C) ? "button" : void 0), e.set_attribute(f, "tabindex", !e.get(p) && e.get(C) ? 0 : void 0);
|
|
3282
3282
|
}), e.delegated("click", f, q), e.delegated("keydown", f, D), e.append(k, f);
|
|
3283
3283
|
};
|
|
3284
3284
|
e.if(S, (k) => {
|
|
@@ -3301,7 +3301,7 @@ va.subscribe(() => {
|
|
|
3301
3301
|
var Dg = Sr(va), qg = e.from_svg("<path></path>"), zg = e.from_svg("<text> </text>"), Cg = e.from_svg('<clipPath clipPathUnits="userSpaceOnUse"><rect></rect></clipPath><text> </text>', 1), Ig = e.from_svg("<g></g>"), Eg = e.from_svg('<svg class="pptx-svelte-wordart svelte-1cyqvvh" aria-hidden="true"></svg>'), Pg = e.from_svg('<path fill="none"></path>'), Tg = e.from_svg("<tspan> </tspan>"), Lg = e.from_svg("<text><textPath></textPath></text>"), Ag = e.from_svg('<svg class="pptx-svelte-wordart svelte-1cyqvvh" aria-hidden="true"><defs></defs><!></svg>');
|
|
3302
3302
|
function Mg(a, t) {
|
|
3303
3303
|
e.push(t, !0);
|
|
3304
|
-
const i = it(),
|
|
3304
|
+
const i = it(), v = e.derived(() => (0, oe.hasTextProperties)(t.element) ? t.element : void 0), n = e.derived(() => e.get(v)?.textStyle?.textWarpPreset), w = e.derived(() => bn(e.get(n))), d = e.derived(() => e.get(v) ? _i(e.get(v), (r) => {
|
|
3305
3305
|
if (!r.fieldType) return r;
|
|
3306
3306
|
const l = zn(r.text, r.fieldType, i?.(), r.style?.language);
|
|
3307
3307
|
return l === r.text ? r : {
|
|
@@ -3309,7 +3309,7 @@ function Mg(a, t) {
|
|
|
3309
3309
|
text: l
|
|
3310
3310
|
};
|
|
3311
3311
|
}) : []), s = e.derived(() => Math.max(t.element.width, 1)), c = e.derived(() => Math.max(t.element.height, 1)), g = e.derived(() => `warp-${t.element.id.replace(/[^a-zA-Z0-9_-]/gu, "_")}`), y = e.derived(() => {
|
|
3312
|
-
switch (e.get(
|
|
3312
|
+
switch (e.get(v)?.textStyle?.align ?? "center") {
|
|
3313
3313
|
case "center":
|
|
3314
3314
|
return {
|
|
3315
3315
|
offset: "50%",
|
|
@@ -3328,7 +3328,7 @@ function Mg(a, t) {
|
|
|
3328
3328
|
}
|
|
3329
3329
|
});
|
|
3330
3330
|
function F(r) {
|
|
3331
|
-
const l = r.style ?? {}, q = e.get(
|
|
3331
|
+
const l = r.style ?? {}, q = e.get(v)?.textStyle, D = [l.underline || l.hyperlink ? "underline" : "", l.strikethrough ? "line-through" : ""].filter(Boolean), T = l.fontFamily ?? q?.fontFamily, S = {
|
|
3332
3332
|
color: Mi(l.color ?? q?.color, l.hyperlink ? "#0563C1" : "#111827"),
|
|
3333
3333
|
fontSize: `${l.fontSize ?? q?.fontSize ?? 24}px`,
|
|
3334
3334
|
fontWeight: l.bold || q?.bold ? 700 : 400,
|
|
@@ -3338,11 +3338,11 @@ function Mg(a, t) {
|
|
|
3338
3338
|
return D.length && (S.textDecoration = D.join(" ")), S;
|
|
3339
3339
|
}
|
|
3340
3340
|
function A(r) {
|
|
3341
|
-
return sr(e.get(n), e.get(s), e.get(c), r, e.get(d).length, e.get(
|
|
3341
|
+
return sr(e.get(n), e.get(s), e.get(c), r, e.get(d).length, e.get(v)?.textStyle?.textWarpAdj, e.get(v)?.textStyle?.textWarpAdj2);
|
|
3342
3342
|
}
|
|
3343
3343
|
const p = e.derived(() => e.get(d).length > 0 && mi(e.get(n) ?? ""));
|
|
3344
3344
|
function C(r) {
|
|
3345
|
-
const l = r.style ?? {}, q = e.get(
|
|
3345
|
+
const l = r.style ?? {}, q = e.get(v)?.textStyle, D = l.fontFamily ?? q?.fontFamily;
|
|
3346
3346
|
return {
|
|
3347
3347
|
fontFamily: D ? (0, oe.getSubstituteFontFamily)(D) : Xe,
|
|
3348
3348
|
fontSizePx: l.fontSize ?? q?.fontSize ?? 24,
|
|
@@ -3357,7 +3357,7 @@ function Mg(a, t) {
|
|
|
3357
3357
|
text: q.text,
|
|
3358
3358
|
font: C(q),
|
|
3359
3359
|
segmentIndex: D
|
|
3360
|
-
}))), e.get(s), e.get(c), e.get(
|
|
3360
|
+
}))), e.get(s), e.get(c), e.get(v)?.textStyle?.align, e.get(v)?.textStyle?.textWarpAdj, e.get(v)?.textStyle?.textWarpAdj2, Dg, e.get(v)?.textStyle);
|
|
3361
3361
|
return e.get(d).flatMap((l, q) => (r[q] ?? []).map((D) => {
|
|
3362
3362
|
const T = F(l.segments[D.segmentIndex]);
|
|
3363
3363
|
return {
|
|
@@ -3380,7 +3380,7 @@ function Mg(a, t) {
|
|
|
3380
3380
|
e.template_effect(() => {
|
|
3381
3381
|
e.set_attribute(o, "x", e.get(D).x), e.set_attribute(o, "y", e.get(D).y), e.set_attribute(o, "transform", e.get(D).transform), e.set_style(o, e.get(D).styleStr), e.set_text(m, e.get(D).char);
|
|
3382
3382
|
}), e.append(_, o);
|
|
3383
|
-
},
|
|
3383
|
+
}, u = (_) => {
|
|
3384
3384
|
var o = Ig();
|
|
3385
3385
|
e.each(o, 21, () => e.get(D).slices, e.index, (m, z, R) => {
|
|
3386
3386
|
var U = Cg(), O = e.first_child(U), N = e.child(O);
|
|
@@ -3392,7 +3392,7 @@ function Mg(a, t) {
|
|
|
3392
3392
|
}), e.reset(o), e.template_effect(() => e.set_attribute(o, "data-glyph-slices", e.get(D).slices.length)), e.append(_, o);
|
|
3393
3393
|
};
|
|
3394
3394
|
e.if(x, (_) => {
|
|
3395
|
-
e.get(D).outlinePath ? _(k) : !e.get(D).slices || e.get(D).slices.length <= 1 ? _(f, 1) : _(
|
|
3395
|
+
e.get(D).outlinePath ? _(k) : !e.get(D).slices || e.get(D).slices.length <= 1 ? _(f, 1) : _(u, -1);
|
|
3396
3396
|
}), e.append(q, S);
|
|
3397
3397
|
}), e.reset(l), e.template_effect(() => {
|
|
3398
3398
|
e.set_attribute(l, "width", e.get(s)), e.set_attribute(l, "height", e.get(c)), e.set_attribute(l, "viewBox", `0 0 ${e.get(s)} ${e.get(c)}`), e.set_style(l, `z-index:${t.zIndex}`);
|
|
@@ -3408,11 +3408,11 @@ function Mg(a, t) {
|
|
|
3408
3408
|
var D = e.sibling(q);
|
|
3409
3409
|
e.each(D, 17, () => e.get(d), e.index, (T, S, x) => {
|
|
3410
3410
|
var k = Lg(), f = e.child(k);
|
|
3411
|
-
e.each(f, 21, () => e.get(S).segments, e.index, (
|
|
3411
|
+
e.each(f, 21, () => e.get(S).segments, e.index, (u, _) => {
|
|
3412
3412
|
var o = Tg(), m = e.only_child(o, !0);
|
|
3413
3413
|
e.template_effect((z) => {
|
|
3414
3414
|
e.set_style(o, z), e.set_text(m, e.get(_).text);
|
|
3415
|
-
}, [() => j(F(e.get(_)))]), e.append(
|
|
3415
|
+
}, [() => j(F(e.get(_)))]), e.append(u, o);
|
|
3416
3416
|
}), e.reset(f), e.reset(k), e.template_effect(() => {
|
|
3417
3417
|
e.set_attribute(f, "href", `#${e.get(g)}-${x}`), e.set_attribute(f, "startOffset", e.get(y).offset), e.set_attribute(f, "text-anchor", e.get(y).anchor);
|
|
3418
3418
|
}), e.append(T, k);
|
|
@@ -3427,10 +3427,10 @@ function Mg(a, t) {
|
|
|
3427
3427
|
var Ft = e.from_html('<div aria-hidden="true" data-pptx-hit-target="true"></div>'), Og = e.from_html('<div class="pptx-svelte-element pptx-svelte-group"><!> <!> <!></div>'), Fg = e.from_html('<div class="pptx-svelte-placeholder-prompt"> </div>'), Bg = e.from_html('<div class="pptx-svelte-element pptx-svelte-shape"><!> <!> <!> <div><!> <!></div> <!></div>'), Rg = e.from_html("<!> <!>", 1);
|
|
3428
3428
|
function fa(a, t) {
|
|
3429
3429
|
e.push(t, !0);
|
|
3430
|
-
const i = e.prop(t, "presenting", 3, !1),
|
|
3430
|
+
const i = e.prop(t, "presenting", 3, !1), v = e.prop(t, "interactive", 3, !1), n = e.prop(t, "marked", 3, !1), w = e.prop(t, "editTemplateMode", 3, !1), d = e.prop(t, "editingElementId", 3, null), s = e.prop(t, "editable", 3, !1), c = e.derived(() => t.selectedElementIds?.includes(t.element.id) ?? !1), g = e.derived(() => t.element.id === d()), y = e.derived(() => v() && (!Ci(t.element) || w())), F = e.derived(() => bi({
|
|
3431
3431
|
interactive: e.get(y),
|
|
3432
3432
|
presenting: i()
|
|
3433
|
-
})), A = e.derived(() => e.get(F) ? { pointerEvents: e.get(F) } : void 0), p = e.derived(() =>
|
|
3433
|
+
})), A = e.derived(() => e.get(F) ? { pointerEvents: e.get(F) } : void 0), p = e.derived(() => v() || n()), C = e.derived(() => Yt(t.element, t.parentGroupFill)), M = e.derived(() => ns(t.element.id)), B = e.derived(() => nr(t.element.id, e.get(M)?.textStyle)), I = ss(), b = e.derived(() => I?.()), h = e.derived(() => Mr(t.element, e.get(b))), r = e.derived(() => e.get(h) ?? e.get(M)), l = e.derived(() => Ar(t.element, Kn(t.element, t.zIndex, t.parentGroupFill, e.get(r)?.animatesFill, e.get(r)?.animatesStroke), e.get(h))), q = lt(), D = e.derived(() => q().smartArt3D), T = e.derived(() => t.element.type === "text" || t.element.type === "shape"), S = e.derived(() => t.element.type === "picture" || t.element.type === "image"), x = it(), k = e.derived(() => x?.()), f = Xn(), u = e.derived(() => di(t.element, f?.())), _ = e.derived(() => Vt(t.element, e.get(k), e.get(u))), o = e.derived(() => e.get(_).some((G) => G.runs.length > 0 || G.bulletMarker !== void 0)), m = e.derived(() => s() && !e.get(o) ? Bi(t.element, "edit") : null), z = e.derived(() => (0, oe.hasTextProperties)(t.element) && Si(t.element.textSegments)), R = e.derived(() => pi(t.element)), U = e.derived(() => ki(t.element)), O = e.derived(() => {
|
|
3434
3434
|
const G = (0, oe.hasShapeProperties)(t.element) ? t.element.shapeStyle : void 0;
|
|
3435
3435
|
return Va(G?.shape3d, G?.scene3d, G?.fillColor, t.element.width, t.element.height);
|
|
3436
3436
|
}), N = e.derived(() => ve(s(), i()) ? ue(t.element) : void 0);
|
|
@@ -3471,7 +3471,7 @@ function fa(a, t) {
|
|
|
3471
3471
|
return i();
|
|
3472
3472
|
},
|
|
3473
3473
|
get interactive() {
|
|
3474
|
-
return
|
|
3474
|
+
return v();
|
|
3475
3475
|
},
|
|
3476
3476
|
get marked() {
|
|
3477
3477
|
return n();
|
|
@@ -3996,7 +3996,7 @@ function fa(a, t) {
|
|
|
3996
3996
|
var Ug = e.from_html('<div class="pptx-svelte-stage"><!> <!> <!></div>');
|
|
3997
3997
|
function Ie(a, t) {
|
|
3998
3998
|
e.push(t, !0);
|
|
3999
|
-
const i = e.prop(t, "scale", 3, 1),
|
|
3999
|
+
const i = e.prop(t, "scale", 3, 1), v = e.prop(t, "presenting", 3, !1), n = e.prop(t, "interactive", 3, !1), w = e.prop(t, "editTemplateMode", 3, !1), d = e.prop(t, "editingElementId", 3, null), s = e.prop(t, "editable", 3, !1), c = e.prop(t, "transparentBackground", 3, !1), g = e.prop(t, "comments", 19, () => []), y = ye(), F = it();
|
|
4000
4000
|
Gn(() => qr(F?.(), t.slide)), Hn(() => t.slide?.elements);
|
|
4001
4001
|
const A = e.derived(() => j({
|
|
4002
4002
|
width: `${t.canvasSize.width}px`,
|
|
@@ -4044,7 +4044,7 @@ function Ie(a, t) {
|
|
|
4044
4044
|
return e.get(q);
|
|
4045
4045
|
},
|
|
4046
4046
|
get presenting() {
|
|
4047
|
-
return
|
|
4047
|
+
return v();
|
|
4048
4048
|
},
|
|
4049
4049
|
get interactive() {
|
|
4050
4050
|
return n();
|
|
@@ -4111,7 +4111,7 @@ function Ie(a, t) {
|
|
|
4111
4111
|
g().length > 0 && r(h);
|
|
4112
4112
|
}), e.reset(C), e.action(C, (r, l) => p?.(r, l), () => ({
|
|
4113
4113
|
elements: t.slide?.elements ?? [],
|
|
4114
|
-
presenting:
|
|
4114
|
+
presenting: v(),
|
|
4115
4115
|
interactive: n()
|
|
4116
4116
|
})), e.template_effect((r) => {
|
|
4117
4117
|
e.set_style(C, e.get(A)), e.set_attribute(C, "role", n() ? "region" : void 0), e.set_attribute(C, "aria-roledescription", n() ? "slide" : void 0), e.set_attribute(C, "aria-label", r);
|
|
@@ -4129,7 +4129,7 @@ var Ng = e.from_html("<div><!></div>"), Vg = e.from_html('<div class="pptx-svelt
|
|
|
4129
4129
|
function Bt(a, t) {
|
|
4130
4130
|
e.push(t, !0);
|
|
4131
4131
|
const i = e.prop(t, "scale", 3, 1);
|
|
4132
|
-
function
|
|
4132
|
+
function v(w) {
|
|
4133
4133
|
return j({
|
|
4134
4134
|
position: "absolute",
|
|
4135
4135
|
inset: 0,
|
|
@@ -4162,7 +4162,7 @@ function Bt(a, t) {
|
|
|
4162
4162
|
}
|
|
4163
4163
|
}), e.reset(s), e.template_effect((g) => {
|
|
4164
4164
|
e.set_attribute(s, "data-pptx-transition-fragment", e.get(d).id), e.set_style(s, g);
|
|
4165
|
-
}, [() =>
|
|
4165
|
+
}, [() => v(e.get(d))]), e.append(w, s);
|
|
4166
4166
|
}), e.reset(n), e.template_effect((w) => {
|
|
4167
4167
|
e.set_attribute(n, "data-pptx-transition-layer", t.layerName), e.set_attribute(n, "data-pptx-transition-fragments", t.layer.keyframesName), e.set_style(n, w);
|
|
4168
4168
|
}, [() => j({ zIndex: t.zIndex })]), e.append(a, n), e.pop();
|
|
@@ -4170,7 +4170,7 @@ function Bt(a, t) {
|
|
|
4170
4170
|
var jg = e.from_html('<div class="pptx-svelte-transition-layer svelte-agcfe5"><!></div>'), Gg = e.from_html('<div><div class="pptx-svelte-transition-layer svelte-agcfe5" data-pptx-transition-layer="outgoing" data-pptx-morph-outgoing="true"><!></div> <div class="pptx-svelte-transition-layer svelte-agcfe5" data-pptx-transition-layer="lifted" data-pptx-morph-lifted="true"><!></div></div>'), Hg = e.from_html("<!> <!>", 1);
|
|
4171
4171
|
function Xg(a, t) {
|
|
4172
4172
|
const i = e.prop(t, "scale", 3, 1);
|
|
4173
|
-
var
|
|
4173
|
+
var v = Hg(), n = e.first_child(v);
|
|
4174
4174
|
e.each(n, 17, () => t.overlayLayers, (d) => d.key, (d, s) => {
|
|
4175
4175
|
var c = jg(), g = e.child(c);
|
|
4176
4176
|
Ie(g, {
|
|
@@ -4227,7 +4227,7 @@ function Xg(a, t) {
|
|
|
4227
4227
|
}), e.reset(F), e.reset(c), e.template_effect(() => {
|
|
4228
4228
|
e.set_attribute(c, "data-pptx-morph-crossfade", e.get(s).key), e.set_style(c, e.get(s).style), e.set_style(g, e.get(s).outgoingStyle), e.set_style(F, e.get(s).incomingStyle);
|
|
4229
4229
|
}), e.append(d, c);
|
|
4230
|
-
}), e.append(a,
|
|
4230
|
+
}), e.append(a, v);
|
|
4231
4231
|
}
|
|
4232
4232
|
function Yg(a) {
|
|
4233
4233
|
const t = e.derived(() => a.transition()?.type === "morph" ? Qa(a.outgoingSlide(), a.incomingSlide(), a.durationMs(), Li(a.transition().morphOption)) : void 0), i = e.derived(() => {
|
|
@@ -4245,7 +4245,7 @@ function Yg(a) {
|
|
|
4245
4245
|
}] : [];
|
|
4246
4246
|
});
|
|
4247
4247
|
});
|
|
4248
|
-
function
|
|
4248
|
+
function v(d) {
|
|
4249
4249
|
return `mix-blend-mode: ${za};${d === void 0 ? "" : ` animation: ${d};`}`;
|
|
4250
4250
|
}
|
|
4251
4251
|
const n = e.derived(() => {
|
|
@@ -4253,8 +4253,8 @@ function Yg(a) {
|
|
|
4253
4253
|
return !e.get(t) || !d || !s ? [] : e.get(t).crossfadeGroups.map((c, g) => ({
|
|
4254
4254
|
key: c.incoming.id,
|
|
4255
4255
|
style: `${qa} z-index: ${Rt + e.get(t).overlayLayers.length + g};`,
|
|
4256
|
-
outgoingStyle:
|
|
4257
|
-
incomingStyle:
|
|
4256
|
+
outgoingStyle: v(c.outgoingAnimation),
|
|
4257
|
+
incomingStyle: v(c.incomingAnimation),
|
|
4258
4258
|
outgoing: {
|
|
4259
4259
|
...d,
|
|
4260
4260
|
elements: [c.outgoing]
|
|
@@ -4288,17 +4288,17 @@ function Yg(a) {
|
|
|
4288
4288
|
var Rt = 2, Zg = e.from_html('<div class="pptx-svelte-transition-layer svelte-1e74vrc" data-pptx-transition-layer="outgoing"><!></div>'), Kg = e.from_html('<div class="pptx-svelte-transition-layer svelte-1e74vrc" data-pptx-transition-layer="incoming"><!></div>'), Jg = e.from_html('<div class="pptx-svelte-transition-overlay svelte-1e74vrc" data-pptx-transition-overlay=""><!> <!> <!> <!></div>');
|
|
4289
4289
|
function Qg(a, t) {
|
|
4290
4290
|
e.push(t, !0);
|
|
4291
|
-
const i = e.prop(t, "scale", 3, 1),
|
|
4291
|
+
const i = e.prop(t, "scale", 3, 1), v = e.derived(() => nn(t.transition)), n = e.derived(() => ln(t.transition)), w = e.derived(() => Yr(t.transition?.type ?? "none", e.get(n), t.transition?.direction, t.transition?.spokes, t.transition?.pattern));
|
|
4292
4292
|
function d(k, f) {
|
|
4293
|
-
const
|
|
4294
|
-
return k !== "none" && (
|
|
4293
|
+
const u = { zIndex: f };
|
|
4294
|
+
return k !== "none" && (u.animation = k), u;
|
|
4295
4295
|
}
|
|
4296
4296
|
const s = Yg({
|
|
4297
4297
|
transition: () => t.transition,
|
|
4298
4298
|
outgoingSlide: () => t.outgoingSlide,
|
|
4299
4299
|
incomingSlide: () => t.incomingSlide,
|
|
4300
4300
|
durationMs: () => e.get(n)
|
|
4301
|
-
}), c = e.derived(() => s.morphPlan), g = e.derived(() => s.morphOverlayLayers), y = e.derived(() => s.morphCrossfadeGroups), F = e.derived(() => s.morphCss), A = e.derived(() => e.get(
|
|
4301
|
+
}), c = e.derived(() => s.morphPlan), g = e.derived(() => s.morphOverlayLayers), y = e.derived(() => s.morphCrossfadeGroups), F = e.derived(() => s.morphCss), A = e.derived(() => e.get(v).outgoingOnTop ? 2 : 1), p = e.derived(() => e.get(c) || e.get(v).outgoingOnTop ? 1 : 2), C = e.derived(() => j(d(e.get(v).outgoing, e.get(A)))), M = e.derived(() => j(d(e.get(c) ? "none" : e.get(v).incoming, e.get(p))));
|
|
4302
4302
|
e.user_effect(() => {
|
|
4303
4303
|
Ua(t.transition, (k) => t.mediaDataUrls.get(k), {
|
|
4304
4304
|
play: Wg,
|
|
@@ -4314,8 +4314,8 @@ function Qg(a, t) {
|
|
|
4314
4314
|
B !== null && (clearTimeout(B), B = null);
|
|
4315
4315
|
});
|
|
4316
4316
|
var I = Jg(), b = e.child(I), h = (k) => {
|
|
4317
|
-
var f = e.comment(),
|
|
4318
|
-
e.element(
|
|
4317
|
+
var f = e.comment(), u = e.first_child(f);
|
|
4318
|
+
e.element(u, () => "style", !1, (_, o) => {
|
|
4319
4319
|
var m = e.text();
|
|
4320
4320
|
e.template_effect(() => e.set_text(m, e.get(F))), e.append(o, m);
|
|
4321
4321
|
}), e.append(k, f);
|
|
@@ -4346,8 +4346,8 @@ function Qg(a, t) {
|
|
|
4346
4346
|
layerName: "outgoing"
|
|
4347
4347
|
});
|
|
4348
4348
|
}, q = (k) => {
|
|
4349
|
-
var f = Zg(),
|
|
4350
|
-
Ie(
|
|
4349
|
+
var f = Zg(), u = e.child(f);
|
|
4350
|
+
Ie(u, {
|
|
4351
4351
|
get slide() {
|
|
4352
4352
|
return t.outgoingSlide;
|
|
4353
4353
|
},
|
|
@@ -4388,8 +4388,8 @@ function Qg(a, t) {
|
|
|
4388
4388
|
layerName: "incoming"
|
|
4389
4389
|
});
|
|
4390
4390
|
}, S = (k) => {
|
|
4391
|
-
var f = Kg(),
|
|
4392
|
-
Ie(
|
|
4391
|
+
var f = Kg(), u = e.child(f);
|
|
4392
|
+
Ie(u, {
|
|
4393
4393
|
get slide() {
|
|
4394
4394
|
return t.incomingSlide;
|
|
4395
4395
|
},
|