@pie-qti/player-elements 0.1.23 → 0.1.25

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.
Files changed (81) hide show
  1. package/dist/ItemToolBar-d36g3aw4-B6TGPyKt.js +3079 -0
  2. package/dist/ItemToolBar-d36g3aw4-B6TGPyKt.js.map +1 -0
  3. package/dist/ar-SA-BDmOol_3.js +854 -0
  4. package/dist/ar-SA-BDmOol_3.js.map +1 -0
  5. package/dist/{define-CqE08oOW.js → define-D80uAEx4.js} +2891 -4399
  6. package/dist/define-D80uAEx4.js.map +1 -0
  7. package/dist/dist-BSG0NOza.js +229 -0
  8. package/dist/dist-BSG0NOza.js.map +1 -0
  9. package/dist/{dist-CsEP48m1.js → dist-C8BDh5vZ.js} +1129 -760
  10. package/dist/dist-C8BDh5vZ.js.map +1 -0
  11. package/dist/dist-CQel8-vi.js +2507 -0
  12. package/dist/dist-CQel8-vi.js.map +1 -0
  13. package/dist/{dist-DQ_jFQFX.js → dist-L-bDDBry.js} +231 -147
  14. package/dist/dist-L-bDDBry.js.map +1 -0
  15. package/dist/{element-DU-n15ch.js → element-C5rTAwch.js} +2 -2
  16. package/dist/{element-DU-n15ch.js.map → element-C5rTAwch.js.map} +1 -1
  17. package/dist/{element-class-DBV-1lkb-BeszDwN_.js → element-class-B_qAd8ET-DGj15cBY.js} +4404 -3503
  18. package/dist/element-class-B_qAd8ET-DGj15cBY.js.map +1 -0
  19. package/dist/elements/BaseSvelteMountElement.d.ts +1 -0
  20. package/dist/elements/QtiAssessmentPlayerElement.d.ts +1 -0
  21. package/dist/elements.js +3 -3
  22. package/dist/es-ES-C98YtDtb.js +802 -0
  23. package/dist/es-ES-C98YtDtb.js.map +1 -0
  24. package/dist/fr-FR-CrmmiRPf.js +802 -0
  25. package/dist/fr-FR-CrmmiRPf.js.map +1 -0
  26. package/dist/index.js +2 -2
  27. package/dist/item-toolbar-element-BgqPFwsS.js +1990 -0
  28. package/dist/item-toolbar-element-BgqPFwsS.js.map +1 -0
  29. package/dist/{types-BFOGFD4R.js → language-tags-BwFWXo71.js} +24 -3
  30. package/dist/language-tags-BwFWXo71.js.map +1 -0
  31. package/dist/nl-NL-BRA_1Wcl.js +507 -0
  32. package/dist/nl-NL-BRA_1Wcl.js.map +1 -0
  33. package/dist/nl-NL-CAR7pgVz.js +802 -0
  34. package/dist/nl-NL-CAR7pgVz.js.map +1 -0
  35. package/dist/pie-DwmznDHb.js +363 -0
  36. package/dist/pie-DwmznDHb.js.map +1 -0
  37. package/dist/pie-assessment-toolkit-Cruxm385.js +5 -0
  38. package/dist/pie-assessment-toolkit-Cruxm385.js.map +1 -0
  39. package/dist/pie-assessment-toolkit-DJfg6laX.js +5 -0
  40. package/dist/pie-assessment-toolkit-DJfg6laX.js.map +1 -0
  41. package/dist/{pie-assessment-toolkit-element-BGOTMhdG.js → pie-assessment-toolkit-element-CT5UuvVY.js} +1679 -1245
  42. package/dist/pie-assessment-toolkit-element-CT5UuvVY.js.map +1 -0
  43. package/dist/pie-tool-calculator-Crfk-IZe.js +378 -0
  44. package/dist/pie-tool-calculator-Crfk-IZe.js.map +1 -0
  45. package/dist/{root-Dqg3cyBt.js → provider-gBXlGb0d.js} +4 -44
  46. package/dist/provider-gBXlGb0d.js.map +1 -0
  47. package/dist/register-players.js +1 -1
  48. package/dist/register.js +10603 -10162
  49. package/dist/register.js.map +1 -1
  50. package/dist/{resolveItems-DhQQhD2k.js → resolveItems-CNMvD8LP.js} +2 -2
  51. package/dist/{resolveItems-DhQQhD2k.js.map → resolveItems-CNMvD8LP.js.map} +1 -1
  52. package/dist/ro-RO-DTZbhL0e.js +802 -0
  53. package/dist/ro-RO-DTZbhL0e.js.map +1 -0
  54. package/dist/root-dCY6j_Hh.js +47 -0
  55. package/dist/root-dCY6j_Hh.js.map +1 -0
  56. package/dist/tag-names-DZGvnAgd.js +2495 -0
  57. package/dist/tag-names-DZGvnAgd.js.map +1 -0
  58. package/dist/th-TH-aqlT_oK3.js +802 -0
  59. package/dist/th-TH-aqlT_oK3.js.map +1 -0
  60. package/dist/tool-tts-inline-k3hLJUfp.js +4447 -0
  61. package/dist/tool-tts-inline-k3hLJUfp.js.map +1 -0
  62. package/dist/zh-CN-DCqaRRhU.js +802 -0
  63. package/dist/zh-CN-DCqaRRhU.js.map +1 -0
  64. package/package.json +8 -8
  65. package/dist/define-CqE08oOW.js.map +0 -1
  66. package/dist/dist-B1Rc9Jhz.js +0 -220
  67. package/dist/dist-B1Rc9Jhz.js.map +0 -1
  68. package/dist/dist-CQEJemjs.js +0 -5061
  69. package/dist/dist-CQEJemjs.js.map +0 -1
  70. package/dist/dist-CsEP48m1.js.map +0 -1
  71. package/dist/dist-DQ_jFQFX.js.map +0 -1
  72. package/dist/element-class-DBV-1lkb-BeszDwN_.js.map +0 -1
  73. package/dist/item-toolbar-element-iE73NEkH.js +0 -1922
  74. package/dist/item-toolbar-element-iE73NEkH.js.map +0 -1
  75. package/dist/pie-assessment-toolkit-element-BGOTMhdG.js.map +0 -1
  76. package/dist/pie-tool-calculator-CkQb5qxg.js +0 -2243
  77. package/dist/pie-tool-calculator-CkQb5qxg.js.map +0 -1
  78. package/dist/root-Dqg3cyBt.js.map +0 -1
  79. package/dist/tool-tts-inline-CA3VjWU4.js +0 -3670
  80. package/dist/tool-tts-inline-CA3VjWU4.js.map +0 -1
  81. package/dist/types-BFOGFD4R.js.map +0 -1
@@ -1,1922 +0,0 @@
1
- import { B as e, D as t, E as n, F as r, G as i, H as a, I as o, J as s, M as c, O as l, P as u, Q as d, R as f, S as p, T as m, U as h, V as g, W as ee, X as _, Y as v, Z as y, _ as te, b as ne, c as re, d as b, f as ie, g as ae, h as x, k as S, l as C, m as w, n as oe, p as T, q as E, r as se, t as ce, u as D, v as le, x as ue, y as O } from "./dist-CQEJemjs.js";
2
- //#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.67/node_modules/@pie-players/pie-players-shared/dist/ui/zoom-compensation.js
3
- var de = {
4
- maxZoom: 2,
5
- minCompensation: .25
6
- };
7
- function fe(e, t) {
8
- let n = e / t;
9
- return Number.isFinite(n) && n > 0 ? n : 1;
10
- }
11
- function pe(e, t, n) {
12
- return Math.max(n, Math.min(1, t / e));
13
- }
14
- //#endregion
15
- //#region ../../node_modules/.bun/@pie-players+pie-players-shared@0.3.67/node_modules/@pie-players/pie-players-shared/dist/components/vendor/nds/nds-icon-button.js
16
- var k = globalThis, me = k.ShadowRoot && (k.ShadyCSS === void 0 || k.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, he = Symbol(), ge = /* @__PURE__ */ new WeakMap(), _e = class {
17
- constructor(e, t, n) {
18
- if (this._$cssResult$ = !0, n !== he) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
19
- this.cssText = e, this.t = t;
20
- }
21
- get styleSheet() {
22
- let e = this.o, t = this.t;
23
- if (me && e === void 0) {
24
- let n = t !== void 0 && t.length === 1;
25
- n && (e = ge.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && ge.set(t, e));
26
- }
27
- return e;
28
- }
29
- toString() {
30
- return this.cssText;
31
- }
32
- }, ve = (e) => new _e(typeof e == "string" ? e : e + "", void 0, he), ye = (e, t) => {
33
- if (me) e.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
34
- else for (let n of t) {
35
- let t = document.createElement("style"), r = k.litNonce;
36
- r !== void 0 && t.setAttribute("nonce", r), t.textContent = n.cssText, e.appendChild(t);
37
- }
38
- }, be = me ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
39
- let t = "";
40
- for (let n of e.cssRules) t += n.cssText;
41
- return ve(t);
42
- })(e) : e, { is: A, defineProperty: xe, getOwnPropertyDescriptor: Se, getOwnPropertyNames: Ce, getOwnPropertySymbols: j, getPrototypeOf: we } = Object, M = globalThis, Te = M.trustedTypes, Ee = Te ? Te.emptyScript : "", De = M.reactiveElementPolyfillSupport, N = (e, t) => e, P = {
43
- toAttribute(e, t) {
44
- switch (t) {
45
- case Boolean:
46
- e = e ? Ee : null;
47
- break;
48
- case Object:
49
- case Array: e = e == null ? e : JSON.stringify(e);
50
- }
51
- return e;
52
- },
53
- fromAttribute(e, t) {
54
- let n = e;
55
- switch (t) {
56
- case Boolean:
57
- n = e !== null;
58
- break;
59
- case Number:
60
- n = e === null ? null : Number(e);
61
- break;
62
- case Object:
63
- case Array: try {
64
- n = JSON.parse(e);
65
- } catch {
66
- n = null;
67
- }
68
- }
69
- return n;
70
- }
71
- }, F = (e, t) => !A(e, t), I = {
72
- attribute: !0,
73
- type: String,
74
- converter: P,
75
- reflect: !1,
76
- useDefault: !1,
77
- hasChanged: F
78
- };
79
- Symbol.metadata ??= Symbol("metadata"), M.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
80
- var L = class extends HTMLElement {
81
- static addInitializer(e) {
82
- this._$Ei(), (this.l ??= []).push(e);
83
- }
84
- static get observedAttributes() {
85
- return this.finalize(), this._$Eh && [...this._$Eh.keys()];
86
- }
87
- static createProperty(e, t = I) {
88
- if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
89
- let n = Symbol(), r = this.getPropertyDescriptor(e, n, t);
90
- r !== void 0 && xe(this.prototype, e, r);
91
- }
92
- }
93
- static getPropertyDescriptor(e, t, n) {
94
- let { get: r, set: i } = Se(this.prototype, e) ?? {
95
- get() {
96
- return this[t];
97
- },
98
- set(e) {
99
- this[t] = e;
100
- }
101
- };
102
- return {
103
- get: r,
104
- set(t) {
105
- let a = r?.call(this);
106
- i?.call(this, t), this.requestUpdate(e, a, n);
107
- },
108
- configurable: !0,
109
- enumerable: !0
110
- };
111
- }
112
- static getPropertyOptions(e) {
113
- return this.elementProperties.get(e) ?? I;
114
- }
115
- static _$Ei() {
116
- if (this.hasOwnProperty(N("elementProperties"))) return;
117
- let e = we(this);
118
- e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
119
- }
120
- static finalize() {
121
- if (this.hasOwnProperty(N("finalized"))) return;
122
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(N("properties"))) {
123
- let e = this.properties, t = [...Ce(e), ...j(e)];
124
- for (let n of t) this.createProperty(n, e[n]);
125
- }
126
- let e = this[Symbol.metadata];
127
- if (e !== null) {
128
- let t = litPropertyMetadata.get(e);
129
- if (t !== void 0) for (let [e, n] of t) this.elementProperties.set(e, n);
130
- }
131
- this._$Eh = /* @__PURE__ */ new Map();
132
- for (let [e, t] of this.elementProperties) {
133
- let n = this._$Eu(e, t);
134
- n !== void 0 && this._$Eh.set(n, e);
135
- }
136
- this.elementStyles = this.finalizeStyles(this.styles);
137
- }
138
- static finalizeStyles(e) {
139
- let t = [];
140
- if (Array.isArray(e)) {
141
- let n = new Set(e.flat(1 / 0).reverse());
142
- for (let e of n) t.unshift(be(e));
143
- } else e !== void 0 && t.push(be(e));
144
- return t;
145
- }
146
- static _$Eu(e, t) {
147
- let n = t.attribute;
148
- return n === !1 ? void 0 : typeof n == "string" ? n : typeof e == "string" ? e.toLowerCase() : void 0;
149
- }
150
- constructor() {
151
- super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
152
- }
153
- _$Ev() {
154
- this._$ES = new Promise(((e) => this.enableUpdating = e)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((e) => e(this)));
155
- }
156
- addController(e) {
157
- (this._$EO ??= /* @__PURE__ */ new Set()).add(e), this.renderRoot !== void 0 && this.isConnected && e.hostConnected?.();
158
- }
159
- removeController(e) {
160
- this._$EO?.delete(e);
161
- }
162
- _$E_() {
163
- let e = /* @__PURE__ */ new Map(), t = this.constructor.elementProperties;
164
- for (let n of t.keys()) this.hasOwnProperty(n) && (e.set(n, this[n]), delete this[n]);
165
- e.size > 0 && (this._$Ep = e);
166
- }
167
- createRenderRoot() {
168
- let e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
169
- return ye(e, this.constructor.elementStyles), e;
170
- }
171
- connectedCallback() {
172
- this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((e) => e.hostConnected?.()));
173
- }
174
- enableUpdating(e) {}
175
- disconnectedCallback() {
176
- this._$EO?.forEach(((e) => e.hostDisconnected?.()));
177
- }
178
- attributeChangedCallback(e, t, n) {
179
- this._$AK(e, n);
180
- }
181
- _$ET(e, t) {
182
- let n = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, n);
183
- if (r !== void 0 && n.reflect === !0) {
184
- let i = (n.converter?.toAttribute === void 0 ? P : n.converter).toAttribute(t, n.type);
185
- this._$Em = e, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$Em = null;
186
- }
187
- }
188
- _$AK(e, t) {
189
- let n = this.constructor, r = n._$Eh.get(e);
190
- if (r !== void 0 && this._$Em !== r) {
191
- let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? P : e.converter;
192
- this._$Em = r;
193
- let a = i.fromAttribute(t, e.type);
194
- this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
195
- }
196
- }
197
- requestUpdate(e, t, n) {
198
- if (e !== void 0) {
199
- let r = this.constructor, i = this[e];
200
- if (n ??= r.getPropertyOptions(e), !((n.hasChanged ?? F)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, n)))) return;
201
- this.C(e, t, n);
202
- }
203
- this.isUpdatePending === !1 && (this._$ES = this._$EP());
204
- }
205
- C(e, t, { useDefault: n, reflect: r, wrapped: i }, a) {
206
- n && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(e) && (this._$Ej.set(e, a ?? t ?? this[e]), i !== !0 || a !== void 0) || (this._$AL.has(e) || (this.hasUpdated || n || (t = void 0), this._$AL.set(e, t)), r === !0 && this._$Em !== e && (this._$Eq ??= /* @__PURE__ */ new Set()).add(e));
207
- }
208
- async _$EP() {
209
- this.isUpdatePending = !0;
210
- try {
211
- await this._$ES;
212
- } catch (e) {
213
- Promise.reject(e);
214
- }
215
- let e = this.scheduleUpdate();
216
- return e != null && await e, !this.isUpdatePending;
217
- }
218
- scheduleUpdate() {
219
- return this.performUpdate();
220
- }
221
- performUpdate() {
222
- if (!this.isUpdatePending) return;
223
- if (!this.hasUpdated) {
224
- if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
225
- for (let [e, t] of this._$Ep) this[e] = t;
226
- this._$Ep = void 0;
227
- }
228
- let e = this.constructor.elementProperties;
229
- if (e.size > 0) for (let [t, n] of e) {
230
- let { wrapped: e } = n, r = this[t];
231
- e !== !0 || this._$AL.has(t) || r === void 0 || this.C(t, void 0, n, r);
232
- }
233
- }
234
- let e = !1, t = this._$AL;
235
- try {
236
- e = this.shouldUpdate(t), e ? (this.willUpdate(t), this._$EO?.forEach(((e) => e.hostUpdate?.())), this.update(t)) : this._$EM();
237
- } catch (t) {
238
- throw e = !1, this._$EM(), t;
239
- }
240
- e && this._$AE(t);
241
- }
242
- willUpdate(e) {}
243
- _$AE(e) {
244
- this._$EO?.forEach(((e) => e.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
245
- }
246
- _$EM() {
247
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
248
- }
249
- get updateComplete() {
250
- return this.getUpdateComplete();
251
- }
252
- getUpdateComplete() {
253
- return this._$ES;
254
- }
255
- shouldUpdate(e) {
256
- return !0;
257
- }
258
- update(e) {
259
- this._$Eq &&= this._$Eq.forEach(((e) => this._$ET(e, this[e]))), this._$EM();
260
- }
261
- updated(e) {}
262
- firstUpdated(e) {}
263
- };
264
- L.elementStyles = [], L.shadowRootOptions = { mode: "open" }, L[N("elementProperties")] = /* @__PURE__ */ new Map(), L[N("finalized")] = /* @__PURE__ */ new Map(), De?.({ ReactiveElement: L }), (M.reactiveElementVersions ??= []).push("2.1.1");
265
- var Oe = globalThis, R = Oe.trustedTypes, ke = R ? R.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Ae = "$lit$", z = `lit$${Math.random().toFixed(9).slice(2)}$`, B = "?" + z, je = `<${B}>`, V = document, H = () => V.createComment(""), U = (e) => e === null || typeof e != "object" && typeof e != "function", W = Array.isArray, Me = (e) => W(e) || typeof e?.[Symbol.iterator] == "function", Ne = "[ \n\f\r]", Pe = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, G = /-->/g, Fe = />/g, K = RegExp(`>|${Ne}(?:([^\\s"'>=/]+)(${Ne}*=${Ne}*(?:[^
266
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Ie = /'/g, Le = /"/g, q = /^(?:script|style|textarea|title)$/i, Re = ((e) => (t, ...n) => ({
267
- _$litType$: e,
268
- strings: t,
269
- values: n
270
- }))(1), J = Symbol.for("lit-noChange"), Y = Symbol.for("lit-nothing"), X = /* @__PURE__ */ new WeakMap(), ze = V.createTreeWalker(V, 129);
271
- function Z(e, t) {
272
- if (!W(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
273
- return ke === void 0 ? t : ke.createHTML(t);
274
- }
275
- var Q = (e, t) => {
276
- let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = Pe;
277
- for (let t = 0; t < n; t++) {
278
- let n = e[t], s, c, l = -1, u = 0;
279
- for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === Pe ? c[1] === "!--" ? o = G : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = K) : (q.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = K) : o = Fe : o === K ? c[0] === ">" ? (o = i ?? Pe, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? K : c[3] === "\"" ? Le : Ie) : o === Le || o === Ie ? o = K : o === G || o === Fe ? o = Pe : (o = K, i = void 0);
280
- let d = o === K && e[t + 1].startsWith("/>") ? " " : "";
281
- a += o === Pe ? n + je : l >= 0 ? (r.push(s), n.slice(0, l) + Ae + n.slice(l) + z + d) : n + z + (l === -2 ? t : d);
282
- }
283
- return [Z(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
284
- }, Be = class e {
285
- constructor({ strings: t, _$litType$: n }, r) {
286
- let i;
287
- this.parts = [];
288
- let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = Q(t, n);
289
- if (this.el = e.createElement(l, r), ze.currentNode = this.el.content, n === 2 || n === 3) {
290
- let e = this.el.content.firstChild;
291
- e.replaceWith(...e.childNodes);
292
- }
293
- for (; (i = ze.nextNode()) !== null && c.length < s;) {
294
- if (i.nodeType === 1) {
295
- if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(Ae)) {
296
- let t = u[o++], n = i.getAttribute(e).split(z), r = /([.?@])?(.*)/.exec(t);
297
- c.push({
298
- type: 1,
299
- index: a,
300
- name: r[2],
301
- strings: n,
302
- ctor: r[1] === "." ? Ge : r[1] === "?" ? Ke : r[1] === "@" ? qe : We
303
- }), i.removeAttribute(e);
304
- } else e.startsWith(z) && (c.push({
305
- type: 6,
306
- index: a
307
- }), i.removeAttribute(e));
308
- if (q.test(i.tagName)) {
309
- let e = i.textContent.split(z), t = e.length - 1;
310
- if (t > 0) {
311
- i.textContent = R ? R.emptyScript : "";
312
- for (let n = 0; n < t; n++) i.append(e[n], H()), ze.nextNode(), c.push({
313
- type: 2,
314
- index: ++a
315
- });
316
- i.append(e[t], H());
317
- }
318
- }
319
- } else if (i.nodeType === 8) {
320
- if (i.data === B) c.push({
321
- type: 2,
322
- index: a
323
- });
324
- else {
325
- let e = -1;
326
- for (; (e = i.data.indexOf(z, e + 1)) !== -1;) c.push({
327
- type: 7,
328
- index: a
329
- }), e += z.length - 1;
330
- }
331
- }
332
- a++;
333
- }
334
- }
335
- static createElement(e, t) {
336
- let n = V.createElement("template");
337
- return n.innerHTML = e, n;
338
- }
339
- };
340
- function Ve(e, t, n = e, r) {
341
- if (t === J) return t;
342
- let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = U(t) ? void 0 : t._$litDirective$;
343
- return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = Ve(e, i._$AS(e, t.values), i, r)), t;
344
- }
345
- var He = class {
346
- constructor(e, t) {
347
- this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
348
- }
349
- get parentNode() {
350
- return this._$AM.parentNode;
351
- }
352
- get _$AU() {
353
- return this._$AM._$AU;
354
- }
355
- u(e) {
356
- let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? V).importNode(t, !0);
357
- ze.currentNode = r;
358
- let i = ze.nextNode(), a = 0, o = 0, s = n[0];
359
- for (; s !== void 0;) {
360
- if (a === s.index) {
361
- let t;
362
- s.type === 2 ? t = new Ue(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new Je(i, this, e)), this._$AV.push(t), s = n[++o];
363
- }
364
- a !== s?.index && (i = ze.nextNode(), a++);
365
- }
366
- return ze.currentNode = V, r;
367
- }
368
- p(e) {
369
- let t = 0;
370
- for (let n of this._$AV) n !== void 0 && (n.strings === void 0 ? n._$AI(e[t]) : (n._$AI(e, n, t), t += n.strings.length - 2)), t++;
371
- }
372
- }, Ue = class e {
373
- get _$AU() {
374
- return this._$AM?._$AU ?? this._$Cv;
375
- }
376
- constructor(e, t, n, r) {
377
- this.type = 2, this._$AH = Y, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cv = r?.isConnected ?? !0;
378
- }
379
- get parentNode() {
380
- let e = this._$AA.parentNode, t = this._$AM;
381
- return t !== void 0 && e?.nodeType === 11 && (e = t.parentNode), e;
382
- }
383
- get startNode() {
384
- return this._$AA;
385
- }
386
- get endNode() {
387
- return this._$AB;
388
- }
389
- _$AI(e, t = this) {
390
- e = Ve(this, e, t), U(e) ? e === Y || e == null || e === "" ? (this._$AH !== Y && this._$AR(), this._$AH = Y) : e !== this._$AH && e !== J && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? Me(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
391
- }
392
- O(e) {
393
- return this._$AA.parentNode.insertBefore(e, this._$AB);
394
- }
395
- T(e) {
396
- this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
397
- }
398
- _(e) {
399
- this._$AH !== Y && U(this._$AH) ? this._$AA.nextSibling.data = e : this.T(V.createTextNode(e)), this._$AH = e;
400
- }
401
- $(e) {
402
- let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = Be.createElement(Z(n.h, n.h[0]), this.options)), n);
403
- if (this._$AH?._$AD === r) this._$AH.p(t);
404
- else {
405
- let e = new He(r, this), n = e.u(this.options);
406
- e.p(t), this.T(n), this._$AH = e;
407
- }
408
- }
409
- _$AC(e) {
410
- let t = X.get(e.strings);
411
- return t === void 0 && X.set(e.strings, t = new Be(e)), t;
412
- }
413
- k(t) {
414
- W(this._$AH) || (this._$AH = [], this._$AR());
415
- let n = this._$AH, r, i = 0;
416
- for (let a of t) i === n.length ? n.push(r = new e(this.O(H()), this.O(H()), this, this.options)) : r = n[i], r._$AI(a), i++;
417
- i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
418
- }
419
- _$AR(e = this._$AA.nextSibling, t) {
420
- for (this._$AP?.(!1, !0, t); e !== this._$AB;) {
421
- let t = e.nextSibling;
422
- e.remove(), e = t;
423
- }
424
- }
425
- setConnected(e) {
426
- this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
427
- }
428
- }, We = class {
429
- get tagName() {
430
- return this.element.tagName;
431
- }
432
- get _$AU() {
433
- return this._$AM._$AU;
434
- }
435
- constructor(e, t, n, r, i) {
436
- this.type = 1, this._$AH = Y, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(/* @__PURE__ */ new String()), this.strings = n) : this._$AH = Y;
437
- }
438
- _$AI(e, t = this, n, r) {
439
- let i = this.strings, a = !1;
440
- if (i === void 0) e = Ve(this, e, t, 0), a = !U(e) || e !== this._$AH && e !== J, a && (this._$AH = e);
441
- else {
442
- let r = e, o, s;
443
- for (e = i[0], o = 0; o < i.length - 1; o++) s = Ve(this, r[n + o], t, o), s === J && (s = this._$AH[o]), a ||= !U(s) || s !== this._$AH[o], s === Y ? e = Y : e !== Y && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
444
- }
445
- a && !r && this.j(e);
446
- }
447
- j(e) {
448
- e === Y ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
449
- }
450
- }, Ge = class extends We {
451
- constructor() {
452
- super(...arguments), this.type = 3;
453
- }
454
- j(e) {
455
- this.element[this.name] = e === Y ? void 0 : e;
456
- }
457
- }, Ke = class extends We {
458
- constructor() {
459
- super(...arguments), this.type = 4;
460
- }
461
- j(e) {
462
- this.element.toggleAttribute(this.name, !!e && e !== Y);
463
- }
464
- }, qe = class extends We {
465
- constructor(e, t, n, r, i) {
466
- super(e, t, n, r, i), this.type = 5;
467
- }
468
- _$AI(e, t = this) {
469
- if ((e = Ve(this, e, t, 0) ?? Y) === J) return;
470
- let n = this._$AH, r = e === Y && n !== Y || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== Y && (n === Y || r);
471
- r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
472
- }
473
- handleEvent(e) {
474
- typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
475
- }
476
- }, Je = class {
477
- constructor(e, t, n) {
478
- this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
479
- }
480
- get _$AU() {
481
- return this._$AM._$AU;
482
- }
483
- _$AI(e) {
484
- Ve(this, e);
485
- }
486
- }, Ye = Oe.litHtmlPolyfillSupport;
487
- Ye?.(Be, Ue), (Oe.litHtmlVersions ??= []).push("3.3.1");
488
- var Xe = (e, t, n) => {
489
- let r = n?.renderBefore ?? t, i = r._$litPart$;
490
- if (i === void 0) {
491
- let e = n?.renderBefore ?? null;
492
- r._$litPart$ = i = new Ue(t.insertBefore(H(), e), e, void 0, n ?? {});
493
- }
494
- return i._$AI(e), i;
495
- }, Ze = globalThis, Qe = class extends L {
496
- constructor() {
497
- super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
498
- }
499
- createRenderRoot() {
500
- let e = super.createRenderRoot();
501
- return this.renderOptions.renderBefore ??= e.firstChild, e;
502
- }
503
- update(e) {
504
- let t = this.render();
505
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Xe(t, this.renderRoot, this.renderOptions);
506
- }
507
- connectedCallback() {
508
- super.connectedCallback(), this._$Do?.setConnected(!0);
509
- }
510
- disconnectedCallback() {
511
- super.disconnectedCallback(), this._$Do?.setConnected(!1);
512
- }
513
- render() {
514
- return J;
515
- }
516
- };
517
- Qe._$litElement$ = !0, Qe.finalized = !0, Ze.litElementHydrateSupport?.({ LitElement: Qe });
518
- var $e = Ze.litElementPolyfillSupport;
519
- $e?.({ LitElement: Qe }), (Ze.litElementVersions ??= []).push("4.2.1");
520
- var et = (e) => (t, n) => {
521
- n === void 0 ? customElements.get(e) || customElements.define(e, t) : n.addInitializer((() => {
522
- customElements.get(e) || customElements.define(e, t);
523
- }));
524
- }, tt = {
525
- attribute: !0,
526
- type: String,
527
- converter: P,
528
- reflect: !1,
529
- hasChanged: F
530
- }, nt = (e = tt, t, n) => {
531
- let { kind: r, metadata: i } = n, a = globalThis.litPropertyMetadata.get(i);
532
- if (a === void 0 && globalThis.litPropertyMetadata.set(i, a = /* @__PURE__ */ new Map()), r === "setter" && ((e = Object.create(e)).wrapped = !0), a.set(n.name, e), r === "accessor") {
533
- let { name: r } = n;
534
- return {
535
- set(n) {
536
- let i = t.get.call(this);
537
- t.set.call(this, n), this.requestUpdate(r, i, e);
538
- },
539
- init(t) {
540
- return t !== void 0 && this.C(r, void 0, e, t), t;
541
- }
542
- };
543
- }
544
- if (r === "setter") {
545
- let { name: r } = n;
546
- return function(n) {
547
- let i = this[r];
548
- t.call(this, n), this.requestUpdate(r, i, e);
549
- };
550
- }
551
- throw Error("Unsupported decorator location: " + r);
552
- };
553
- function rt(e) {
554
- return (t, n) => typeof n == "object" ? nt(e, t, n) : ((e, t, n) => {
555
- let r = t.hasOwnProperty(n);
556
- return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
557
- })(e, t, n);
558
- }
559
- var it = Object.defineProperty, at = Object.getOwnPropertyDescriptor, ot = (e, t, n, r) => {
560
- for (var i = r > 1 ? void 0 : r ? at(t, n) : t, a = e.length - 1, o; a >= 0; a--) (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
561
- return r && i && it(t, n, i), i;
562
- }, $ = class extends Qe {
563
- constructor() {
564
- super(...arguments), this.variant = "primary", this.size = "default", this.type = "circle", this.state = "default", this.iconName = "home", this.disabled = !1, this.buttonAriaLabel = "Icon button";
565
- }
566
- createRenderRoot() {
567
- return this;
568
- }
569
- connectedCallback() {
570
- if (super.connectedCallback(), !document.querySelector("link[href*=\"Roboto\"]")) {
571
- let e = document.createElement("link");
572
- e.rel = "stylesheet", e.href = "https://ui.renaissance.com/fonts/Roboto/style.css", document.head.appendChild(e);
573
- }
574
- }
575
- set shape(e) {
576
- this.type = e;
577
- }
578
- get shape() {
579
- return this.type;
580
- }
581
- get buttonClasses() {
582
- return [
583
- "nds-icon-button",
584
- `nds-icon-button--${this.variant}`,
585
- `nds-icon-button--${this.size}`,
586
- `nds-icon-button--${this.type}`,
587
- this.state === "default" ? "" : `nds-icon-button--${this.state}`,
588
- this.disabled ? "nds-icon-button--disabled" : ""
589
- ].filter(Boolean).join(" ");
590
- }
591
- handleClick(e) {
592
- if (this.disabled) {
593
- e.preventDefault(), e.stopPropagation();
594
- return;
595
- }
596
- this.dispatchEvent(new CustomEvent("icon-button-click", {
597
- bubbles: !0,
598
- composed: !0,
599
- detail: { originalEvent: e }
600
- }));
601
- }
602
- render() {
603
- return Re`
604
- <style>
605
- nds-icon-button {
606
- display: inline-block;
607
- }
608
-
609
- .nds-icon-button {
610
- display: inline-flex;
611
- align-items: center;
612
- justify-content: center;
613
- cursor: pointer;
614
- font-family: var(--font-family-roboto, "Roboto", sans-serif);
615
- font-weight: var(--font-weight-regular, 400);
616
- line-height: 1;
617
- text-decoration: none;
618
- background: none;
619
- position: relative;
620
- box-sizing: border-box;
621
- margin: 0;
622
- padding: 0;
623
- border: none;
624
- transition: background-color 0.2s ease-in-out,
625
- color 0.2s ease-in-out,
626
- box-shadow 0.2s ease-in-out;
627
- }
628
-
629
- /* ── Sizes ── */
630
- .nds-icon-button--small {
631
- width: var(--height-32, 32px);
632
- height: var(--height-32, 32px);
633
- }
634
-
635
- .nds-icon-button--medium {
636
- width: var(--height-36, 36px);
637
- height: var(--height-36, 36px);
638
- }
639
-
640
- .nds-icon-button--default {
641
- width: var(--height-40, 40px);
642
- height: var(--height-40, 40px);
643
- }
644
-
645
- .nds-icon-button--large {
646
- width: var(--height-48, 48px);
647
- height: var(--height-48, 48px);
648
- }
649
-
650
- /* ── Shapes ── */
651
- .nds-icon-button--circle {
652
- border-radius: var(--radius-circle, 50%);
653
- }
654
-
655
- .nds-icon-button--rounded {
656
- border-radius: var(--radius-8, 8px);
657
- }
658
-
659
- /* ── Primary ── */
660
- .nds-icon-button--primary {
661
- background-color: var(--color-interactive-blue, #146eb3);
662
- color: var(--color-primary-white, #ffffff);
663
- }
664
-
665
- .nds-icon-button--primary:hover:not(:disabled):not(.nds-icon-button--disabled) {
666
- box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
667
- }
668
-
669
- .nds-icon-button--primary:active:not(:disabled):not(.nds-icon-button--disabled) {
670
- box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
671
- }
672
-
673
- /* ── Secondary ── */
674
- .nds-icon-button--secondary {
675
- background-color: var(--color-primary-white, #ffffff);
676
- color: var(--color-interactive-blue, #146eb3);
677
- box-shadow: inset 0 0 0 var(--stroke-1, 1px) var(--color-interactive-blue, #146eb3);
678
- }
679
-
680
- .nds-icon-button--secondary:hover:not(:disabled):not(.nds-icon-button--disabled) {
681
- background-color: var(--color-interactive-blue, #146eb3);
682
- color: var(--color-primary-white, #ffffff);
683
- box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
684
- }
685
-
686
- .nds-icon-button--secondary:active:not(:disabled):not(.nds-icon-button--disabled) {
687
- background-color: var(--color-interactive-blue, #146eb3);
688
- color: var(--color-primary-white, #ffffff);
689
- box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
690
- }
691
-
692
- /* ── Tertiary ── */
693
- .nds-icon-button--tertiary {
694
- background-color: var(--color-new-gray, #f3f5f7);
695
- color: var(--color-interactive-blue, #146eb3);
696
- }
697
-
698
- .nds-icon-button--tertiary:hover:not(:disabled):not(.nds-icon-button--disabled) {
699
- box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-interactive-blue, #146eb3);
700
- }
701
-
702
- .nds-icon-button--tertiary:active:not(:disabled):not(.nds-icon-button--disabled) {
703
- box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
704
- }
705
-
706
- /* ── Ghost ── */
707
- .nds-icon-button--ghost {
708
- background-color: transparent;
709
- color: var(--color-interactive-blue, #146eb3);
710
- }
711
-
712
- .nds-icon-button--ghost:hover:not(:disabled):not(.nds-icon-button--disabled) {
713
- background-color: var(--color-new-gray, #f3f5f7);
714
- box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-interactive-blue, #146eb3);
715
- }
716
-
717
- .nds-icon-button--ghost:active:not(:disabled):not(.nds-icon-button--disabled) {
718
- background-color: var(--color-new-gray, #f3f5f7);
719
- box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
720
- }
721
-
722
- /* ── Dark (for dark backgrounds) ── */
723
- .nds-icon-button--dark {
724
- background-color: transparent;
725
- color: var(--color-primary-white, #ffffff);
726
- box-shadow: inset 0 0 0 var(--stroke-1, 1px) var(--color-primary-white, #ffffff);
727
- }
728
-
729
- .nds-icon-button--dark:hover:not(:disabled):not(.nds-icon-button--disabled) {
730
- background-color: var(--color-interactive-blue, #146eb3);
731
- box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-white, #ffffff);
732
- }
733
-
734
- .nds-icon-button--dark:active:not(:disabled):not(.nds-icon-button--disabled) {
735
- background-color: var(--color-interactive-blue, #146eb3);
736
- box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-white, #ffffff);
737
- }
738
-
739
- /* ── Disabled ── */
740
- .nds-icon-button--disabled,
741
- .nds-icon-button:disabled {
742
- opacity: 0.5;
743
- cursor: not-allowed;
744
- }
745
-
746
- /* ── Icon sizing ── */
747
- .nds-icon-button__icon {
748
- line-height: 1;
749
- display: inline-flex;
750
- align-items: center;
751
- justify-content: center;
752
- color: inherit;
753
- }
754
-
755
- .nds-icon-button--small .nds-icon-button__icon {
756
- font-size: var(--nds-icon-small, 12px);
757
- }
758
-
759
- .nds-icon-button--medium .nds-icon-button__icon {
760
- font-size: var(--nds-icon-medium, 14px);
761
- }
762
-
763
- .nds-icon-button--default .nds-icon-button__icon {
764
- font-size: var(--nds-icon-default, 16px);
765
- }
766
-
767
- .nds-icon-button--large .nds-icon-button__icon {
768
- font-size: var(--nds-icon-large, 20px);
769
- }
770
-
771
- /* ── Focus ── */
772
- .nds-icon-button:focus-visible {
773
- outline: 2px solid var(--color-focus-blue, #2b87ff);
774
- outline-offset: 2px;
775
- }
776
-
777
- /* ── Reduced motion ── */
778
- @media (prefers-reduced-motion: reduce) {
779
- .nds-icon-button {
780
- transition: none;
781
- }
782
- }
783
- </style>
784
- <button
785
- type="button"
786
- class="${this.buttonClasses}"
787
- ?disabled="${this.disabled}"
788
- aria-disabled="${this.disabled ? "true" : "false"}"
789
- aria-label="${this.buttonAriaLabel}"
790
- @click="${this.handleClick}"
791
- >
792
- <i class="fa-light fa-${this.iconName} nds-icon-button__icon" aria-hidden="true"></i>
793
- </button>
794
- `;
795
- }
796
- };
797
- ot([rt()], $.prototype, "variant", 2), ot([rt()], $.prototype, "size", 2), ot([rt()], $.prototype, "type", 2), ot([rt()], $.prototype, "state", 2), ot([rt({ attribute: "icon-name" })], $.prototype, "iconName", 2), ot([rt({ type: Boolean })], $.prototype, "disabled", 2), ot([rt({ attribute: "button-aria-label" })], $.prototype, "buttonAriaLabel", 2), ot([rt()], $.prototype, "shape", 1), $ = ot([et("nds-icon-button")], $);
798
- //#endregion
799
- //#region ../../node_modules/.bun/@pie-players+pie-assessment-toolkit@0.3.67+03501a34a1c61663/node_modules/@pie-players/pie-assessment-toolkit/dist/components/chunks/ItemToolBar-cvs646j3.js
800
- function st(e) {
801
- return typeof e.href == "string";
802
- }
803
- function ct(e) {
804
- if (!e || typeof e != "object" || Array.isArray(e)) return !1;
805
- let t = e;
806
- if (typeof t.id != "string" || t.id.trim().length === 0 || typeof t.label != "string" || t.label.trim().length === 0 || t.ariaLabel !== void 0 && typeof t.ariaLabel != "string" || t.icon !== void 0 && typeof t.icon != "string" || t.tooltip !== void 0 && typeof t.tooltip != "string" || t.active !== void 0 && typeof t.active != "boolean" || t.disabled !== void 0 && typeof t.disabled != "boolean") return !1;
807
- let n = typeof t.href == "string", r = typeof t.onClick == "function";
808
- return n === r ? !1 : n ? !0 : r;
809
- }
810
- function lt(e) {
811
- return typeof e == "string" && e.trimStart().startsWith("<svg");
812
- }
813
- function ut(e) {
814
- return typeof e == "string" && e.trimStart().startsWith("http");
815
- }
816
- var dt = /* @__PURE__ */ new Set([
817
- "assessment",
818
- "section",
819
- "item",
820
- "passage",
821
- "rubric"
822
- ]);
823
- function ft(e) {
824
- return dt.has(e);
825
- }
826
- function pt(e, t, n) {
827
- let r = e.trim(), i = n.trim();
828
- if (!r || !i) throw Error("Tool instance ids require non-empty tool and scope ids");
829
- if (!ft(t)) throw Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
830
- return `${r}:${t}:${i}`;
831
- }
832
- function mt(e) {
833
- let t = e.split(":");
834
- if (t.length !== 3) return null;
835
- let [n, r, i] = t;
836
- return !n || !i || !ft(r) ? null : {
837
- baseToolId: n,
838
- scopeLevel: r,
839
- scopeId: i
840
- };
841
- }
842
- var ht = (e, t) => {
843
- if (!customElements.get(e)) try {
844
- customElements.define(e, t);
845
- } catch (t) {
846
- if (!(t instanceof DOMException && t.name === "NotSupportedError" || t && typeof t == "object" && t.name === "NotSupportedError") || !customElements.get(e)) throw t;
847
- }
848
- }, gt = y("<span class=\"item-toolbar__element-host svelte-rnx3ie\"></span>"), _t = y("<span class=\"item-toolbar__nds-button-zoom svelte-rnx3ie\"><nds-icon-button></nds-icon-button></span>", 2), vt = y("<span aria-hidden=\"true\"></span>"), yt = y("<img class=\"item-toolbar__icon-image svelte-rnx3ie\" alt=\"\"/>"), bt = y("<i aria-hidden=\"true\"></i>"), xt = y("<a><!></a>"), St = y("<button type=\"button\"><!></button>"), Ct = y("<span class=\"item-toolbar__controls-host svelte-rnx3ie\"></span>"), wt = y("<div></div>"), Tt = y("<div><div class=\"item-toolbar__tools-row svelte-rnx3ie\"><!> <!> <!></div> <!></div>"), Et = {
849
- hash: "svelte-rnx3ie",
850
- code: ".item-toolbar.svelte-rnx3ie {display:flex;flex-direction:column;align-items:flex-end;gap:0;--pie-toolbar-tools-row-height: 2rem;--pie-tts-controls-row-height: 2.875rem;}.item-toolbar__tools-row.svelte-rnx3ie {display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;\n /* Cap the gap between toolbar items (e.g. TTS play ↔ calculator) at its\n 200%-zoom size with the same factor the buttons use, so the spacing\n doesn't keep growing past 200% while the buttons themselves freeze. */gap:calc(0.5rem * var(--pie-toolbar-zoom-comp, 1));min-height:var(--pie-toolbar-tools-row-height);}.item-toolbar__controls-row.svelte-rnx3ie {display:flex;align-items:center;justify-content:flex-end;width:100%;min-height:0;height:auto;}.item-toolbar__controls-row--reserve.svelte-rnx3ie {min-height:var(--pie-tts-controls-row-height);height:var(--pie-tts-controls-row-height);}.item-toolbar__controls-row--active.svelte-rnx3ie {min-height:var(--pie-tts-controls-row-height);height:var(--pie-tts-controls-row-height);}.item-toolbar__controls-row--align-start.svelte-rnx3ie {justify-content:flex-start;}.item-toolbar__controls-host.svelte-rnx3ie {display:inline-flex;align-items:center;justify-content:flex-end;width:100%;}.item-toolbar--top.svelte-rnx3ie,\n .item-toolbar--bottom.svelte-rnx3ie {align-items:flex-end;}.item-toolbar--left.svelte-rnx3ie,\n .item-toolbar--right.svelte-rnx3ie {align-items:stretch;}.item-toolbar--left.svelte-rnx3ie .item-toolbar__tools-row:where(.svelte-rnx3ie),\n .item-toolbar--right.svelte-rnx3ie .item-toolbar__tools-row:where(.svelte-rnx3ie) {flex-direction:column;align-items:center;justify-content:flex-start;flex-wrap:nowrap;}.item-toolbar--left.svelte-rnx3ie .item-toolbar__controls-row:where(.svelte-rnx3ie),\n .item-toolbar--right.svelte-rnx3ie .item-toolbar__controls-row:where(.svelte-rnx3ie) {justify-content:flex-start;width:auto;min-height:0;height:auto;}.item-toolbar__button.svelte-rnx3ie {display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0.25rem;border:1px solid var(--pie-button-border, var(--pie-border, #ccc));border-radius:0.25rem;background-color:var(--pie-button-bg, var(--pie-background, white));color:var(--pie-button-color, var(--pie-text, #333));cursor:pointer;transition:all 0.15s ease;text-decoration:none;}\n\n /* Drive the vendored NDS icon button's outer size via its own `--height-32`\n custom property so its light-DOM inner button matches the toolbar's\n md/sm/lg dimensions (32 / 44 / 40 px) without a layout shift. The glyph\n keeps the NDS-native icon size (we render size=\"small\"), so it isn't\n oversized. */\n /* Freeze the calculator's header open/close button at its 200%-zoom size\n (factor is 1 at zoom <= 200%). Zoom on this wrapper, not the host. */.item-toolbar__nds-button-zoom.svelte-rnx3ie {display:inline-flex;zoom:var(--pie-toolbar-zoom-comp, 1);}.item-toolbar.svelte-rnx3ie nds-icon-button:where(.svelte-rnx3ie) {\n /* Host-settable button size per toolbar size (drives the NDS outer button\n via its own --height-32). */--height-32: var(--pie-calculator-button-size, 2rem);\n /* Host-settable accent for the calculator button: the NDS tertiary glyph\n colour derives from --color-interactive-blue, remapped here to a\n themeable variable. --pie-calculator-button-color is package-private, so\n nothing sets it and the default is what ships: it now resolves through\n --pie-button-color (DaisyUI base-content) instead of holding the Figma\n blue on every theme, with the literal as the no-theme last resort.\n Not --pie-primary or --pie-tertiary: both are `direct` mappings of\n DaisyUI slots chosen to pair with their own -content colour, so a glyph\n taken from either sits at 1.37:1 against the page under `pastel` and 11\n of the 35 shipped themes fall under SC 1.4.11's 3:1. */--color-interactive-blue: var(--pie-calculator-button-color, var(--pie-button-color, var(--pie-text, #222)));\n /* NDS palette bridge — keep in sync with the copies in tool-tts-inline\n and section-player SectionItemsPane (asserted by\n scripts/check-theme-tokens.mjs). The vendored button paints its fill,\n its on-accent glyph, its hover ring and its focus ring from the NDS\n design-system palette, which no PIE theme sets, so a tertiary button\n kept a #f3f5f7 pill on every page — and once the glyph followed the\n theme, a light glyph landed on that light pill. */--color-new-gray: var(--pie-background-dark, #f3f5f7);--color-primary-white: var(--pie-white, #ffffff);--color-primary-black: var(--pie-text, #000000);--color-focus-blue: var(--pie-button-focus-outline, #2b87ff);}.item-toolbar--sm.svelte-rnx3ie nds-icon-button:where(.svelte-rnx3ie) {--height-32: var(--pie-calculator-button-size-sm, 2.75rem);}.item-toolbar--lg.svelte-rnx3ie nds-icon-button:where(.svelte-rnx3ie) {--height-32: var(--pie-calculator-button-size-lg, 2.5rem);}.item-toolbar__element-host.svelte-rnx3ie {display:contents;}.item-toolbar--sm.svelte-rnx3ie .item-toolbar__button:where(.svelte-rnx3ie) {width:2.75rem;height:2.75rem;}.item-toolbar--sm.svelte-rnx3ie {--pie-toolbar-tools-row-height: 2.75rem;--pie-tts-controls-row-height: 3.625rem;}.item-toolbar--lg.svelte-rnx3ie .item-toolbar__button:where(.svelte-rnx3ie) {width:2.5rem;height:2.5rem;}.item-toolbar--lg.svelte-rnx3ie {--pie-toolbar-tools-row-height: 2.5rem;--pie-tts-controls-row-height: 3.375rem;}.item-toolbar__button.svelte-rnx3ie:hover:not(:disabled) {background-color:var(--pie-button-hover-bg, var(--pie-secondary-background, #f5f5f5));border-color:var(--pie-button-hover-border, var(--pie-button-border, var(--pie-border, #ccc)));color:var(--pie-button-hover-color, var(--pie-button-color, var(--pie-text, #333)));transform:translateY(-1px);box-shadow:0 2px 4px color-mix(in srgb, var(--pie-black, #000) 10%, transparent);}.item-toolbar__button.svelte-rnx3ie:active:not(:disabled) {transform:translateY(0);box-shadow:none;}.item-toolbar__button--active.svelte-rnx3ie {background-color:var(--pie-primary, #1976d2);color:var(--pie-white, #fff);border-color:var(--pie-primary, #1976d2);}.item-toolbar__button--active.svelte-rnx3ie:hover:not(:disabled) {background-color:var(--pie-primary-dark, #1565c0);}.item-toolbar__button.svelte-rnx3ie:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #1976d2));outline-offset:2px;}.item-toolbar__button.svelte-rnx3ie:disabled {opacity:0.5;cursor:not-allowed;}.item-toolbar__button.svelte-rnx3ie svg {width:100%;height:100%;}.item-toolbar__icon-image.svelte-rnx3ie {width:100%;height:100%;object-fit:contain;}"
851
- };
852
- function Dt(t, y) {
853
- D(y, !0), le(t, Et);
854
- let ie = typeof window < "u", k = ["/_fa-pro/fontawesome.min.css", "/_fa-pro/light.min.css"], me = "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css", he = /font.?awesome|fa-?pro/i, ge = !1, _e = () => {
855
- if (!(!ie || ge)) {
856
- if (ge = !0, !document.querySelector("link[href*=\"Roboto\"]")) {
857
- let e = document.createElement("link");
858
- e.rel = "stylesheet", e.href = "https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap", document.head.appendChild(e);
859
- }
860
- if (!Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).some((e) => he.test(e.href))) {
861
- if (!document.querySelector(`link[href="${me}"]`)) {
862
- let e = document.createElement("link");
863
- e.rel = "stylesheet", e.href = me, document.head.appendChild(e);
864
- }
865
- for (let e of k) {
866
- if (document.querySelector(`link[href="${e}"]`)) continue;
867
- let t = document.createElement("link");
868
- t.rel = "stylesheet", t.href = e, document.head.appendChild(t);
869
- }
870
- }
871
- }
872
- }, ve = "__pieFaToolbarShadowInstalled", ye = (e) => {
873
- let t = e.getRootNode();
874
- if (!(t instanceof ShadowRoot)) return;
875
- let n = t;
876
- if (n[ve]) return;
877
- n[ve] = !0;
878
- let r = /* @__PURE__ */ new Set(), i = (e) => {
879
- if (!e || r.has(e)) return;
880
- r.add(e);
881
- let n = document.createElement("link");
882
- n.rel = "stylesheet", n.href = e, t.appendChild(n);
883
- }, a = Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).filter((e) => he.test(e.href));
884
- for (let e of a) i(e.href);
885
- }, be = (e) => (_e(), ye(e), {}), A = (e, t) => {
886
- let n = t, r = () => {
887
- let t = e.querySelector("button");
888
- t && t.setAttribute("aria-pressed", n ? "true" : "false");
889
- };
890
- r();
891
- let i = new MutationObserver(r);
892
- return i.observe(e, {
893
- childList: !0,
894
- subtree: !0
895
- }), {
896
- update(e) {
897
- n = e, r();
898
- },
899
- destroy() {
900
- i.disconnect();
901
- }
902
- };
903
- }, xe = { calculator: "calculator" }, Se = (e) => xe[e.id] ?? null, Ce = new o(), j = O(w({})), we = _(y, "level", 7, "item"), M = _(y, "scopeId", 7, ""), Te = _(y, "itemId", 7, ""), Ee = _(y, "sectionId", 7, ""), De = _(y, "catalogId", 7, ""), N = _(y, "tools", 7, "calculator,textToSpeech,answerEliminator"), P = _(y, "contentKind", 7, "assessment-item"), F = _(y, "position", 7, "bottom"), I = _(y, "scopeElement", 7, null), L = _(y, "toolRegistry", 7, null), Oe = _(y, "item", 7, null), R = _(y, "hostButtons", 23, () => []), ke = _(y, "class", 7, ""), Ae = _(y, "size", 7, "md"), z = _(y, "language", 7, "en-US"), B = O(null);
904
- function je() {
905
- return typeof window > "u" ? 1 : pe(fe(window.outerWidth, window.innerWidth), de.maxZoom, de.minCompensation);
906
- }
907
- let V = O(1);
908
- d(() => {
909
- if (typeof window > "u") return;
910
- let e = () => {
911
- p(V, je(), !0);
912
- };
913
- return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
914
- });
915
- let H = O(null), U = x(() => n(H)?.ndsIcons === !0), W = O(null), Me = O(0), Ne = O(0), Pe = O(0);
916
- d(() => {
917
- if (n(B)) return i(n(B), (e) => {
918
- p(H, e, !0);
919
- });
920
- }), d(() => {
921
- if (n(B)) return S(n(B), (e) => {
922
- p(W, e, !0);
923
- });
924
- }), d(() => {
925
- let e = n(H)?.toolkitCoordinator;
926
- if (!e || typeof e.onPolicyChange != "function") return;
927
- let t = e.onPolicyChange(() => {
928
- p(Ne, n(Ne) + 1);
929
- });
930
- return () => {
931
- try {
932
- t?.();
933
- } catch {}
934
- };
935
- }), d(() => {
936
- let e = n(H)?.toolkitCoordinator;
937
- if (!e || typeof e.onToolContextResolverChange != "function") return;
938
- let t = e.onToolContextResolverChange(() => {
939
- p(Pe, n(Pe) + 1);
940
- });
941
- return () => {
942
- try {
943
- t?.();
944
- } catch {}
945
- };
946
- });
947
- let G = x(() => n(H)?.toolCoordinator), Fe = x(() => n(H)?.ttsService), K = x(() => n(H)?.elementToolStateStore), Ie = x(() => n(H)?.assessmentId ?? ""), Le = x(() => Te() || n(W)?.itemId || ""), q = x(() => n(W)?.canonicalItemId || n(Le)), Re = x(() => Ee() || n(H)?.sectionId || ""), J = x(() => P() || n(W)?.contentKind || (we() === "section" ? "section" : "assessment-item")), Y = x(() => we() && we() !== "item" ? we() : n(J) === "rubric-block-stimulus" ? "passage" : "item"), X = x(() => M() ? M() : n(Y) === "section" ? n(Re) || n(H)?.sectionId || "default-section" : n(Y) === "assessment" ? n(H)?.assessmentId || "default-assessment" : n(q) || n(Le) || "default-item"), ze = x(() => De() || n(X)), Z = x(() => Oe() || n(W)?.item || null), Q = x(() => L() || Ce), Be = x(() => ue(N())), Ve = x(() => n(Q).normalizeToolIds(n(Be)).filter(Boolean)), He = x(() => n(Y) === "section" ? "section" : n(Y) === "passage" || n(J) === "rubric-block-stimulus" ? "passage" : "item"), Ue = x(() => {
948
- n(Ne);
949
- let e = n(H)?.toolkitCoordinator;
950
- return !e || typeof e.decideToolPolicy != "function" ? null : e.decideToolPolicy({
951
- level: n(He),
952
- scope: {
953
- level: n(Y),
954
- scopeId: n(X),
955
- assessmentId: n(H)?.assessmentId,
956
- sectionId: n(Re) || void 0,
957
- itemId: n(Le) || void 0,
958
- canonicalItemId: n(q) || void 0,
959
- contentKind: n(J)
960
- }
961
- });
962
- }), We = x(() => {
963
- let e = (e) => Array.from(new Set(e));
964
- return n(Ue) ? e(n(Q).normalizeToolIds(n(Ue).visibleTools.map((e) => e.toolId)).filter(Boolean)) : e(n(Ve));
965
- }), Ge = x(() => {
966
- if (n(Y) === "section" || n(Y) === "assessment") return !0;
967
- let e = n(Z)?.config;
968
- return !!(n(Z) && e && typeof e == "object");
969
- }), Ke = x(() => {
970
- n(Ne);
971
- let e = n(H)?.toolkitCoordinator;
972
- return !e || typeof e.getPolicyInputs != "function" ? null : e.getPolicyInputs();
973
- }), qe = x(() => n(Ke)?.assessment ?? null), Je = x(() => n(Ke)?.currentItemRef ?? null), Ye = x(() => n(Y) === "section" ? {
974
- level: "section",
975
- assessment: n(qe) || {},
976
- section: {}
977
- } : n(Y) === "assessment" ? {
978
- level: "assessment",
979
- assessment: n(qe) || {}
980
- } : !n(Ge) || !n(Z) ? null : n(Y) === "passage" ? {
981
- level: "passage",
982
- assessment: n(qe) || {},
983
- itemRef: n(Je) || { id: n(q) },
984
- passage: n(Z)
985
- } : {
986
- level: "item",
987
- assessment: n(qe) || {},
988
- itemRef: n(Je) || { id: n(q) },
989
- item: n(Z)
990
- }), Xe = x(() => n(Ye) ? n(Ye) : {
991
- level: "item",
992
- assessment: n(qe) || {},
993
- itemRef: n(Je) || { id: n(q) },
994
- item: n(Z) || {
995
- id: n(q),
996
- config: {}
997
- }
998
- }), Ze = x(() => {
999
- if (n(Y) !== "item" && n(Y) !== "passage" || !n(Ge) || !n(Z)) return [];
1000
- let e = n(Z)?.config?.models;
1001
- return (Array.isArray(e) ? e : e && typeof e == "object" ? Object.values(e) : []).filter((e) => e && typeof e == "object" && typeof e.id == "string").map((e) => ({
1002
- level: "element",
1003
- assessment: n(qe) || {},
1004
- itemRef: n(Je) || { id: n(q) },
1005
- item: n(Z),
1006
- elementId: e.id
1007
- }));
1008
- }), Qe = x(() => {
1009
- let e = n(H)?.toolkitCoordinator || null, t = (e) => mt(e) ? e : pt(e, n(Y), n(X));
1010
- return {
1011
- scope: {
1012
- level: n(Y),
1013
- scopeId: n(X),
1014
- assessmentId: n(H)?.assessmentId,
1015
- sectionId: n(Re),
1016
- itemId: n(Le),
1017
- canonicalItemId: n(q),
1018
- contentKind: n(J)
1019
- },
1020
- itemId: n(X),
1021
- catalogId: n(ze),
1022
- language: z(),
1023
- ui: { size: Ae() },
1024
- getScopeElement: () => I() || n(W)?.scopeElement || null,
1025
- getGlobalElementId: () => !n(K) || !n(Ie) || !n(Re) || !n(q) ? null : n(K).getGlobalElementId(n(Ie), n(Re), n(q), n(q)),
1026
- toolCoordinator: n(G) || null,
1027
- toolkitCoordinator: e,
1028
- ttsService: n(Fe) || null,
1029
- elementToolStateStore: n(K) || null,
1030
- toggleTool: (e) => {
1031
- if (!n(G)) return;
1032
- let r = t(e);
1033
- n(G).getToolState(r) || n(G).registerTool(r, e), n(G).toggleTool(r);
1034
- },
1035
- isToolVisible: (e) => n(G) ? n(G).isToolVisible(t(e)) : !1,
1036
- subscribeVisibility: n(G) ? (e) => n(G).subscribe(e) : null
1037
- };
1038
- }), $e = x(() => {
1039
- n(Pe);
1040
- let e = n(H)?.toolkitCoordinator;
1041
- if (!e || typeof e.hasToolContextResolver != "function" || typeof e.resolveToolContext != "function") return {};
1042
- let t = {};
1043
- for (let r of n(We)) {
1044
- if (!n(Q).get(r)?.supportedLevels.includes(n(Y)) || !e.hasToolContextResolver(r)) continue;
1045
- let i = e.resolveToolContext({
1046
- toolId: r,
1047
- context: n(Xe),
1048
- toolbarContext: n(Qe)
1049
- });
1050
- i && (t[r] = i);
1051
- }
1052
- return t;
1053
- }), et = x(() => {
1054
- let e = n(We).filter((e) => {
1055
- let t = n(Q).get(e);
1056
- return t ? t.supportedLevels.includes(n(Y)) : !1;
1057
- }), t = Object.values(n($e)), r = new Set(t.map((e) => e.toolId)), i = new Set(t.filter((e) => e.visible).map((e) => e.toolId)), a = e.filter((e) => !r.has(e));
1058
- if (n(Y) === "section" || !n(Ge) || !n(Ye) && n(Ze).length === 0) return a.forEach((e) => i.add(e)), Array.from(i);
1059
- n(Ye) && n(Q).filterVisibleInContext(a, n(Ye)).forEach((e) => i.add(e.toolId));
1060
- for (let e of n(Ze)) n(Q).filterVisibleInContext(a, e).forEach((e) => i.add(e.toolId));
1061
- return Array.from(i);
1062
- }), tt = x(() => n(Q).filterToolIdsByActivation(n(et), "toolbar-toggle"));
1063
- d(() => {
1064
- if (!ie) return;
1065
- let e = !1;
1066
- return n(Q).ensureToolModulesLoaded(n(tt)).then(() => {
1067
- e || p(Me, n(Me) + 1);
1068
- }).catch((e) => {
1069
- console.error("[ItemToolBar] Failed to load one or more tool modules:", e);
1070
- }), () => {
1071
- e = !0;
1072
- };
1073
- });
1074
- function nt() {
1075
- return I() ? I() : n(W)?.scopeElement || null;
1076
- }
1077
- function rt() {
1078
- return !n(K) || !n(Ie) || !n(Re) || !n(q) ? null : n(K).getGlobalElementId(n(Ie), n(Re), n(q), n(q));
1079
- }
1080
- let it = x(() => {
1081
- let e = n(H)?.toolkitCoordinator || null, t = (e) => mt(e) ? e : pt(e, n(Y), n(X));
1082
- return {
1083
- scope: {
1084
- level: n(Y),
1085
- scopeId: n(X),
1086
- assessmentId: n(H)?.assessmentId,
1087
- sectionId: n(Re),
1088
- itemId: n(Le),
1089
- canonicalItemId: n(q),
1090
- contentKind: n(J)
1091
- },
1092
- itemId: n(X),
1093
- catalogId: n(ze),
1094
- language: z(),
1095
- ui: { size: Ae() },
1096
- getScopeElement: nt,
1097
- getGlobalElementId: rt,
1098
- toolCoordinator: n(G) || null,
1099
- toolkitCoordinator: e,
1100
- ttsService: n(Fe) || null,
1101
- elementToolStateStore: n(K) || null,
1102
- toggleTool: (e) => {
1103
- if (!n(G)) return;
1104
- let r = t(e);
1105
- n(G).getToolState(r) || n(G).registerTool(r, e), n(G).toggleTool(r);
1106
- },
1107
- isToolVisible: (e) => n(G) ? n(G).isToolVisible(t(e)) : !1,
1108
- subscribeVisibility: n(G) ? (e) => n(G).subscribe(e) : null,
1109
- getResolvedToolContext: (e) => n($e)[e] ?? null,
1110
- getToolRenderParams: (e) => n($e)[e]?.params ?? null
1111
- };
1112
- }), at = x(() => {
1113
- if (!ie) return [];
1114
- n(Me);
1115
- let e = [];
1116
- for (let t of n(tt)) {
1117
- let r = n(Q).renderForToolbar(t, n(Xe), n(it));
1118
- r && e.push(r);
1119
- }
1120
- return e;
1121
- }), ot = x(() => {
1122
- if (!Array.isArray(R())) return [];
1123
- let e = [];
1124
- return R().forEach((t, n) => {
1125
- if (ct(t)) {
1126
- e.push(t);
1127
- return;
1128
- }
1129
- console.warn(`[ItemToolBar] Ignoring invalid host button at index ${n}. Expected { id, label, href | onClick } with valid types.`);
1130
- }), e;
1131
- }), $ = x(() => n(at).filter((e) => !!e.button).map((e) => {
1132
- let t = e.button;
1133
- return {
1134
- id: e.toolId,
1135
- label: t.label,
1136
- ariaLabel: t.ariaLabel || t.label,
1137
- icon: t.icon,
1138
- tooltip: t.tooltip || t.label,
1139
- disabled: t.disabled,
1140
- active: n(j)[e.toolId] ?? t.active ?? !1,
1141
- onClick: () => {
1142
- t.onClick(), zt();
1143
- }
1144
- };
1145
- })), dt = x(() => [...n($), ...n(ot)]), ft = x(() => {
1146
- let e = {};
1147
- for (let t of n(at)) e[t.toolId] = n(j)[t.toolId] ?? t.button?.active ?? !1;
1148
- return e;
1149
- }), ht = x(() => n(at).flatMap((e) => (e.elements || []).filter((e) => e.mount === "before-buttons").filter((e) => !!e.element).map((t, n) => ({
1150
- key: `before-${e.toolId}-${n}`,
1151
- toolId: e.toolId,
1152
- entry: t
1153
- })))), Dt = x(() => n(at).flatMap((e) => (e.elements || []).filter((e) => e.mount === "after-buttons").filter((e) => !!e.element).map((t, n) => ({
1154
- key: `after-${e.toolId}-${n}`,
1155
- toolId: e.toolId,
1156
- entry: t
1157
- })))), Ot = x(() => n(at).flatMap((e) => (e.elements || []).filter((e) => e.mount === "controls-row").filter((e) => !!e.element).map((t, n) => ({
1158
- key: `controls-row-${e.toolId}-${n}`,
1159
- toolId: e.toolId,
1160
- entry: t
1161
- })))), kt = x(() => n(at).flatMap((e) => (e.elements || []).map((t) => ({
1162
- toolId: e.toolId,
1163
- hint: t.layoutHints?.controlsRow
1164
- })).filter((e) => !!e.hint))), At = x(() => n(at).flatMap((e) => (e.elements || []).map((t) => ({
1165
- toolId: e.toolId,
1166
- hint: t.layoutHints?.headerOverlay
1167
- })).filter((e) => !!e.hint))), jt = x(() => n(kt).some((e) => e.hint?.reserveSpace === !0)), Mt = x(() => n(kt).some((e) => e.hint?.showWhenToolActive === !0 && (n(ft)[e.toolId] ?? !1))), Nt = x(() => F() === "left" || F() === "right"), Pt = x(() => n(At).some((e) => e.hint?.showWhenToolActive === !0 && (n(ft)[e.toolId] ?? !1))), Ft = x(() => n(Ot).length > 0 || n(jt) || n(Mt));
1168
- function It() {
1169
- if (!n(B)) return null;
1170
- let e = n(B).getRootNode();
1171
- return e instanceof ShadowRoot ? e.host : null;
1172
- }
1173
- d(() => {
1174
- let e = It();
1175
- if (!e) return;
1176
- let t = n(At).length > 0, r = n(Pt);
1177
- return e.setAttribute("data-pie-header-overlay", t ? "true" : "false"), e.setAttribute("data-pie-header-overlay-active", r ? "true" : "false"), () => {
1178
- e.removeAttribute("data-pie-header-overlay"), e.removeAttribute("data-pie-header-overlay-active");
1179
- };
1180
- }), d(() => {
1181
- ie && n(dt).some((e) => e.icon === "calculator") && _e();
1182
- });
1183
- function Lt(e) {
1184
- return e.id in n(j) ? n(j)[e.id] === !0 : e.active === !0;
1185
- }
1186
- function Rt(e) {
1187
- return {
1188
- calculator: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm0 2v4h10V4H7Zm0 6v2h2v-2H7Zm4 0v2h2v-2h-2Zm4 0v2h2v-2h-2Zm-8 4v2h2v-2H7Zm4 0v2h2v-2h-2Zm4 0v2h2v-2h-2Zm-8 4v2h2v-2H7Zm4 0v2h2v-2h-2Zm4 0v2h2v-2h-2Z\" fill=\"currentColor\"/></svg>",
1189
- "volume-up": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M14 3.23v2.06A7.002 7.002 0 0 1 19 12a7 7 0 0 1-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77Zm-2 17.75V3L7 8H3v8h4l5 5Zm4.5-9a4.5 4.5 0 0 0-2.5-4.03v8.05A4.5 4.5 0 0 0 16.5 12Z\" fill=\"currentColor\"/></svg>",
1190
- swatch: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M12 3a9 9 0 1 0 9 9c0-.55-.45-1-1-1h-2.5a1.5 1.5 0 0 1 0-3H20a1 1 0 0 0 1-1 8.99 8.99 0 0 0-9-4Zm-5.5 9A1.5 1.5 0 1 1 8 13.5 1.5 1.5 0 0 1 6.5 12Zm3-4A1.5 1.5 0 1 1 11 9.5 1.5 1.5 0 0 1 9.5 8Zm5 0A1.5 1.5 0 1 1 16 9.5 1.5 1.5 0 0 1 14.5 8Z\" fill=\"currentColor\"/></svg>",
1191
- "chart-bar": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M4.75 5a.76.76 0 0 1 .75.75v11c0 .438.313.75.75.75h13a.76.76 0 0 1 .696 1.039.74.74 0 0 1-.696.461h-13C5 19 4 18 4 16.75v-11A.74.74 0 0 1 4.75 5ZM8 8.25a.74.74 0 0 1 .75-.75h6.5a.76.76 0 0 1 .696 1.039.74.74 0 0 1-.696.461h-6.5A.722.722 0 0 1 8 8.25Zm.75 2.25h4.5a.76.76 0 0 1 .696 1.039.74.74 0 0 1-.696.461h-4.5a.723.723 0 0 1-.75-.75.74.74 0 0 1 .75-.75Zm0 3h8.5a.76.76 0 0 1 .696 1.039.74.74 0 0 1-.696.461h-8.5a.723.723 0 0 1-.75-.75.74.74 0 0 1 .75-.75Z\" fill=\"currentColor\"/></svg>",
1192
- beaker: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M5 21c-.85 0-1.454-.38-1.813-1.137-.358-.759-.27-1.463.263-2.113L9 11V5H8a.968.968 0 0 1-.713-.287A.968.968 0 0 1 7 4c0-.283.096-.52.287-.712A.968.968 0 0 1 8 3h8c.283 0 .52.096.712.288.192.191.288.429.288.712s-.096.52-.288.713A.968.968 0 0 1 16 5h-1v6l5.55 6.75c.533.65.62 1.354.262 2.113C20.454 20.62 19.85 21 19 21H5Zm2-3h10l-3.4-4h-3.2L7 18Zm-2 1h14l-6-7.3V5h-2v6.7L5 19Z\" fill=\"currentColor\"/></svg>",
1193
- protractor: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"m6.75 21-.25-2.2 2.85-7.85a3.95 3.95 0 0 0 1.75.95l-2.75 7.55L6.75 21Zm10.5 0-1.6-1.55-2.75-7.55a3.948 3.948 0 0 0 1.75-.95l2.85 7.85-.25 2.2ZM12 11a2.893 2.893 0 0 1-2.125-.875A2.893 2.893 0 0 1 9 8c0-.65.188-1.23.563-1.737A2.935 2.935 0 0 1 11 5.2V3h2v2.2c.583.2 1.063.554 1.438 1.063C14.812 6.77 15 7.35 15 8c0 .833-.292 1.542-.875 2.125A2.893 2.893 0 0 1 12 11Zm0-2c.283 0 .52-.096.713-.287A.967.967 0 0 0 13 8a.967.967 0 0 0-.287-.713A.968.968 0 0 0 12 7a.968.968 0 0 0-.713.287A.967.967 0 0 0 11 8c0 .283.096.52.287.713.192.191.43.287.713.287Z\" fill=\"currentColor\"/></svg>",
1194
- "bars-3": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M6.85 15c.517 0 .98-.15 1.388-.45.408-.3.695-.692.862-1.175l.375-1.15c.267-.8.2-1.537-.2-2.213C8.875 9.337 8.3 9 7.55 9H4.025l.475 3.925c.083.583.346 1.075.787 1.475.442.4.963.6 1.563.6Zm10.3 0c.6 0 1.12-.2 1.563-.6.441-.4.704-.892.787-1.475L19.975 9h-3.5c-.75 0-1.325.342-1.725 1.025-.4.683-.467 1.425-.2 2.225l.35 1.125c.167.483.454.875.862 1.175.409.3.871.45 1.388.45Zm-10.3 2c-1.1 0-2.063-.363-2.887-1.088a4.198 4.198 0 0 1-1.438-2.737L2 9H1V7h6.55c.733 0 1.404.18 2.013.537A3.906 3.906 0 0 1 11 9h2.025c.35-.617.83-1.104 1.438-1.463A3.892 3.892 0 0 1 16.474 7H23v2h-1l-.525 4.175a4.198 4.198 0 0 1-1.438 2.737A4.238 4.238 0 0 1 17.15 17c-.95 0-1.804-.27-2.562-.813A4.234 4.234 0 0 1 13 14.026l-.375-1.125a21.35 21.35 0 0 1-.1-.363 4.926 4.926 0 0 1-.1-.537h-.85c-.033.2-.067.363-.1.488a21.35 21.35 0 0 1-.1.362L11 14a4.3 4.3 0 0 1-1.588 2.175A4.258 4.258 0 0 1 6.85 17Z\" fill=\"currentColor\"/></svg>",
1195
- ruler: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"m8.8 10.95 2.15-2.175-1.4-1.425-1.1 1.1-1.4-1.4 1.075-1.1L7 4.825 4.825 7 8.8 10.95Zm8.2 8.225L19.175 17l-1.125-1.125-1.1 1.075-1.4-1.4 1.075-1.1-1.425-1.4-2.15 2.15L17 19.175ZM7.25 21H3v-4.25l4.375-4.375L2 7l5-5 5.4 5.4 3.775-3.8c.2-.2.425-.35.675-.45a2.068 2.068 0 0 1 1.55 0c.25.1.475.25.675.45L20.4 4.95c.2.2.35.425.45.675.1.25.15.508.15.775a1.975 1.975 0 0 1-.6 1.425l-3.775 3.8L22 17l-5 5-5.375-5.375L7.25 21ZM5 19h1.4l9.8-9.775L14.775 7.8 5 17.6V19Z\" fill=\"currentColor\"/></svg>"
1196
- }[e] || null;
1197
- }
1198
- function zt() {
1199
- let e = {};
1200
- for (let t of n(at)) t.sync?.(), t.button && (e[t.toolId] = t.button.active ?? !1);
1201
- p(j, e, !0);
1202
- }
1203
- d(() => {
1204
- let e = [];
1205
- zt();
1206
- for (let t of n(at)) if (t.subscribeActive) {
1207
- let r = !1, i = t.subscribeActive((e) => {
1208
- queueMicrotask(() => {
1209
- r || (p(j, {
1210
- ...n(j),
1211
- [t.toolId]: e
1212
- }, !0), t.sync?.());
1213
- });
1214
- });
1215
- e.push(() => {
1216
- r = !0, i();
1217
- });
1218
- }
1219
- return () => {
1220
- e.forEach((e) => e());
1221
- };
1222
- }), d(() => {
1223
- if (!n(it).subscribeVisibility) return;
1224
- let e = !1, t = n(it).subscribeVisibility(() => {
1225
- queueMicrotask(() => {
1226
- e || zt();
1227
- });
1228
- });
1229
- return () => {
1230
- e = !0, t?.();
1231
- };
1232
- }), d(() => {
1233
- let e = n(it).toolkitCoordinator;
1234
- if (typeof e?.subscribeTelemetry != "function") return;
1235
- let t = !1, r = e.subscribeTelemetry(({ eventName: e, payload: r }) => {
1236
- e === "pie-toolkit-tool-config-updated" && (r?.toolId && !n(tt).includes(r.toolId) || queueMicrotask(() => {
1237
- t || (p(Me, n(Me) + 1), zt());
1238
- }));
1239
- });
1240
- return () => {
1241
- t = !0, r?.();
1242
- };
1243
- });
1244
- function Bt(e, t) {
1245
- let n = null, r = (e) => {
1246
- if (!e) return;
1247
- let t = e.__pieToolElementUnmount;
1248
- typeof t == "function" && t();
1249
- }, i = (t) => {
1250
- n !== t && (n && (r(n), n.parentNode === e && e.removeChild(n)), n = t, n && (n.parentNode && n.parentNode !== e && n.parentNode.removeChild(n), e.appendChild(n)));
1251
- };
1252
- return i(t), {
1253
- update(e) {
1254
- i(e);
1255
- },
1256
- destroy() {
1257
- i(null);
1258
- }
1259
- };
1260
- }
1261
- function Vt(e, t) {
1262
- let r = t, i = null, a = null, o = null, s = null, c = null, l = null, u = null, d = null, f = !1, p = !1, m = null, h = null, g = null, ee = 0, _ = 0, v = 0, y = 0, te = 0, ne = 0, re = 0, b = 0, ae = null, x = [], S = 0, C = 0, w = r.mounted.entry.shell?.initialWidth ?? 720, T = r.mounted.entry.shell?.initialHeight ?? 560, E = null, D = null, le = !1, ue = (e) => {
1263
- if (!e) return;
1264
- let t = e.__pieToolElementUnmount;
1265
- typeof t == "function" && t();
1266
- }, O = () => {
1267
- let e = r.mounted.entry.shell;
1268
- return e ? {
1269
- toolId: r.mounted.toolId,
1270
- toolbarContext: n(it),
1271
- shellConfig: e
1272
- } : null;
1273
- }, de = (e) => {
1274
- let t = n(Q).get(r.mounted.toolId), i = O();
1275
- !t?.onHostedMount || !i || t.onHostedMount(e, i);
1276
- }, fe = () => {
1277
- let e = n(Q).get(r.mounted.toolId), t = O();
1278
- !e?.onHostedResize || !t || e.onHostedResize({
1279
- width: w,
1280
- height: T
1281
- }, r.mounted.entry.element, t);
1282
- }, pe = () => {
1283
- let e = n(Q).get(r.mounted.toolId), t = O();
1284
- !e?.onHostedUnmount || !t || e.onHostedUnmount(r.mounted.entry.element, t);
1285
- }, k = (e, t, n) => Math.max(t, Math.min(e, n)), me = () => {
1286
- let e = r.mounted.entry.shell;
1287
- return {
1288
- minWidth: e?.minWidth ?? 320,
1289
- minHeight: e?.minHeight ?? 240,
1290
- maxWidth: e?.maxWidth ?? window.innerWidth,
1291
- maxHeight: e?.maxHeight ?? window.innerHeight
1292
- };
1293
- }, he = () => {
1294
- let e = r.mounted.entry.shell?.minWidth, t = typeof e == "number" && e > 0 && w < e, n = t ? `${e}px` : "";
1295
- m && (m.style.minWidth = n), a && (a.style.minWidth = n), o && (o.style.minWidth = n), i && (i.style.overflowX = t ? "auto" : "visible", i.style.overflowY = "visible");
1296
- }, ge = () => r.mounted.entry.shell?.content?.overflowY === "auto" ? "auto" : "hidden", ve = () => {
1297
- if (!a) return 0;
1298
- let e = a.getBoundingClientRect().height;
1299
- return e > 0 ? e : a.offsetHeight || 0;
1300
- }, ye = () => {
1301
- if (!o) return;
1302
- let e = r.mounted.entry.shell;
1303
- if (o.style.overflowX = "hidden", o.style.overflowY = ge(), m) {
1304
- if (e?.content?.preserveMinHeight === !0) {
1305
- let t = ve(), n = e.minHeight ?? 240, r = Math.max(0, n - t), i = Math.max(0, T - t), a = Math.max(i, r);
1306
- m.style.height = `${a}px`, m.style.minHeight = "0", m.style.flex = `0 0 ${a}px`;
1307
- return;
1308
- }
1309
- m.style.height = "100%", m.style.minHeight = "0", m.style.flex = "1 1 auto";
1310
- }
1311
- }, be = () => {
1312
- let { minWidth: e, minHeight: t, maxWidth: n, maxHeight: r } = me(), i = Math.min(e, window.innerWidth), a = Math.min(t, window.innerHeight);
1313
- w = k(w, i, Math.max(i, Math.min(n, window.innerWidth))), T = k(T, a, Math.max(a, Math.min(r, window.innerHeight))), S = k(S, 0, Math.max(0, window.innerWidth - w)), C = k(C, 0, Math.max(0, window.innerHeight - T)), j(), he(), ye(), fe();
1314
- }, A = (e, t) => {
1315
- S += e, C += t, be();
1316
- }, xe = (e, t) => {
1317
- w += e, T += t, be();
1318
- }, Se = (e, t, n, r = "fa-regular") => {
1319
- let i = document.createElement("nds-icon-button");
1320
- if (i.setAttribute("variant", "tertiary"), i.setAttribute("size", "small"), i.setAttribute("type", "circle"), i.setAttribute("icon-name", t), i.setAttribute("button-aria-label", e), i.title = e, i.addEventListener("click", (e) => {
1321
- e.stopPropagation(), n(), M();
1322
- }), r !== "fa-light") {
1323
- let e = (e) => {
1324
- e.classList.remove("fa-light"), e.classList.add(r);
1325
- }, t = i.querySelector("i.fa-light");
1326
- if (t) e(t);
1327
- else {
1328
- let t = new MutationObserver(() => {
1329
- let n = i.querySelector("i.fa-light");
1330
- n && (e(n), t.disconnect());
1331
- });
1332
- t.observe(i, {
1333
- childList: !0,
1334
- subtree: !0
1335
- });
1336
- }
1337
- }
1338
- return i;
1339
- }, Ce = (e, t, n) => {
1340
- let r = document.createElement("button");
1341
- return r.type = "button", r.className = "pie-tool-shell__control", r.setAttribute("aria-label", e), r.title = e, r.textContent = t, r.style.border = "1px solid transparent", r.style.background = "color-mix(in srgb, var(--pie-white, #fff) 10%, transparent)", r.style.color = "inherit", r.style.cursor = "pointer", r.style.display = "inline-flex", r.style.alignItems = "center", r.style.justifyContent = "center", r.style.width = "28px", r.style.height = "28px", r.style.padding = "0", r.style.fontSize = "14px", r.style.fontWeight = "700", r.style.borderRadius = "8px", r.style.lineHeight = "1", r.onclick = (e) => {
1342
- e.stopPropagation(), n(), M();
1343
- }, r.onfocus = () => {
1344
- r.style.outline = "2px solid var(--pie-button-focus-outline, var(--pie-primary, #4A90E2))", r.style.outlineOffset = "2px";
1345
- }, r.onblur = () => {
1346
- r.style.outline = "none", r.style.outlineOffset = "0";
1347
- }, r;
1348
- }, j = () => {
1349
- i && (i.style.left = `${S}px`, i.style.top = `${C}px`, i.style.width = `${w}px`, i.style.height = `${T}px`, i.style.display = r.active ? "flex" : "none", i.style.setProperty("--pie-tool-shell-zoom-comp", String(je())));
1350
- }, we = () => {
1351
- if (!o) return;
1352
- let e = r.mounted.entry.element;
1353
- e.style.display = "block", e.style.width = "100%", e.style.height = "100%", e.style.flex = "1 1 auto", e.style.minHeight = "0", m && m !== e && (m.parentNode === o && (ue(m), o.removeChild(m)), m = null), e.parentNode && e.parentNode !== o && e.parentNode.removeChild(e), e.parentNode !== o && o.appendChild(e), m = e, he(), ye(), de(e);
1354
- }, M = () => {
1355
- n(G) && i && n(G).bringToFront(i);
1356
- }, Te = () => {
1357
- let { innerWidth: e, innerHeight: t } = window, n = r.mounted.entry.shell, i = n?.initialAlign ?? "center", a = n?.initialMargin ?? 16, o = a + 60;
1358
- switch (i) {
1359
- case "top-left":
1360
- S = a, C = o;
1361
- break;
1362
- case "top-right":
1363
- S = Math.max(0, e - w - a), C = o;
1364
- break;
1365
- case "bottom-left":
1366
- S = a, C = Math.max(0, t - T - o);
1367
- break;
1368
- case "bottom-right":
1369
- S = Math.max(0, e - w - a), C = Math.max(0, t - T - o);
1370
- break;
1371
- default: S = Math.max(0, Math.round((e - w) / 2)), C = Math.max(0, Math.round((t - T) / 2));
1372
- }
1373
- be();
1374
- }, Ee = () => {
1375
- let e = D;
1376
- e && queueMicrotask(() => {
1377
- if (e.isConnected) try {
1378
- e.focus();
1379
- } catch {}
1380
- });
1381
- }, De = () => {
1382
- if (typeof document > "u") return null;
1383
- let e = document.activeElement;
1384
- for (; e;) {
1385
- let t = e.shadowRoot;
1386
- if (t && t.activeElement && t.activeElement !== e) e = t.activeElement;
1387
- else break;
1388
- }
1389
- return e ?? null;
1390
- }, N = () => {
1391
- if (!i || E) return;
1392
- let e = De();
1393
- !D && e && !i.contains(e) && (D = e);
1394
- let t = r.mounted.toolId === "calculator";
1395
- t && !p && (document.addEventListener("keydown", I, !0), p = !0), E = ce(i, {
1396
- initialFocus: l,
1397
- onEscape: () => {
1398
- Oe();
1399
- },
1400
- wrap: !t,
1401
- onTabExit: t ? (e, t) => {
1402
- if (e === "backward") {
1403
- if (D?.isConnected) {
1404
- t.preventDefault();
1405
- try {
1406
- D.focus();
1407
- } catch {}
1408
- }
1409
- return;
1410
- }
1411
- let n = P();
1412
- if (n) {
1413
- t.preventDefault();
1414
- try {
1415
- n.focus();
1416
- } catch {}
1417
- }
1418
- } : void 0
1419
- });
1420
- }, P = () => {
1421
- let e = n(it).getScopeElement?.() ?? null;
1422
- if (!e) return null;
1423
- let t = (e) => !!(n(B) && n(B).contains(e) || i && i.contains(e)), r = (e) => {
1424
- if (e instanceof HTMLElement) {
1425
- if (t(e)) return null;
1426
- if (e.matches?.(oe) && se(e)) return e;
1427
- }
1428
- let n = e.shadowRoot;
1429
- if (n) for (let e = 0; e < n.children.length; e++) {
1430
- let t = r(n.children[e]);
1431
- if (t) return t;
1432
- }
1433
- for (let t = 0; t < e.children.length; t++) {
1434
- let n = r(e.children[t]);
1435
- if (n) return n;
1436
- }
1437
- return null;
1438
- };
1439
- return r(e);
1440
- }, F = () => i ? Array.from(i.querySelectorAll(oe)).filter((e) => e !== u && e !== d).filter(se) : [], I = (e) => {
1441
- if (e.key !== "Tab" || !i || !r.active) return;
1442
- let t = De();
1443
- if (!t || i.contains(t)) return;
1444
- let n = F();
1445
- if (n.length !== 0) {
1446
- if (e.shiftKey) {
1447
- if (t !== P()) return;
1448
- e.preventDefault();
1449
- try {
1450
- n[n.length - 1].focus();
1451
- } catch {}
1452
- return;
1453
- }
1454
- if (t === D) {
1455
- e.preventDefault();
1456
- try {
1457
- n[0].focus();
1458
- } catch {}
1459
- }
1460
- }
1461
- }, L = () => {
1462
- if (p &&= (document.removeEventListener("keydown", I, !0), !1), !E) return;
1463
- let e = E;
1464
- E = null;
1465
- try {
1466
- e();
1467
- } catch {}
1468
- Ee();
1469
- }, Oe = () => {
1470
- n(it).toggleTool(r.mounted.toolId), zt();
1471
- }, R = (e) => {
1472
- r.mounted.entry.shell?.draggable && (e.target.closest("button") || !i || (e.preventDefault(), h = e.pointerId, ee = e.clientX - S, _ = e.clientY - C, i.setPointerCapture(e.pointerId), M()));
1473
- }, ke = (e) => (t) => {
1474
- !i || !r.mounted.entry.shell?.resizable || (t.preventDefault(), t.stopPropagation(), g = t.pointerId, ae = e, v = w, y = T, te = t.clientX, ne = t.clientY, re = S, b = C, i.setPointerCapture(t.pointerId), M());
1475
- }, Ae = (e) => {
1476
- if (i) {
1477
- if (h === e.pointerId) {
1478
- e.preventDefault();
1479
- let t = Math.max(0, window.innerWidth - w), n = Math.max(0, window.innerHeight - T);
1480
- S = k(e.clientX - ee, 0, t), C = k(e.clientY - _, 0, n), j();
1481
- return;
1482
- }
1483
- if (g === e.pointerId) {
1484
- e.preventDefault();
1485
- let t = r.mounted.entry.shell, n = t?.minWidth ?? 320, i = t?.minHeight ?? 240, a = Math.min(n, window.innerWidth), o = Math.min(i, window.innerHeight), s = t?.maxWidth ?? window.innerWidth, c = t?.maxHeight ?? window.innerHeight, l = e.clientX - te, u = e.clientY - ne;
1486
- if (ae === "se") w = k(v + l, a, Math.max(a, Math.min(s, window.innerWidth - S))), T = k(y + u, o, Math.max(o, Math.min(c, window.innerHeight - C)));
1487
- else if (ae === "sw") {
1488
- let e = re + v, t = k(v - l, a, Math.min(s, e));
1489
- S = e - t, w = t, T = k(y + u, o, Math.max(o, Math.min(c, window.innerHeight - C)));
1490
- } else if (ae === "ne") {
1491
- let e = b + y;
1492
- w = k(v + l, a, Math.max(a, Math.min(s, window.innerWidth - S)));
1493
- let t = k(y - u, o, Math.min(c, e));
1494
- C = e - t, T = t;
1495
- } else if (ae === "nw") {
1496
- let e = re + v, t = b + y, n = k(v - l, a, Math.min(s, e));
1497
- S = e - n, w = n;
1498
- let r = k(y - u, o, Math.min(c, t));
1499
- C = t - r, T = r;
1500
- }
1501
- j(), he(), ye(), fe();
1502
- }
1503
- }
1504
- }, z = (e) => {
1505
- i && (h === e.pointerId && (h = null, i.releasePointerCapture(e.pointerId)), g === e.pointerId && (g = null, i.releasePointerCapture(e.pointerId)));
1506
- }, V = () => {
1507
- be();
1508
- };
1509
- if (ie && r.mounted.entry.shell) {
1510
- let e = r.mounted.toolId === "calculator", t = e && n(U);
1511
- t && _e(), i = document.createElement("div"), i.className = "pie-tool-shell", i.setAttribute("data-pie-tool-shell", r.mounted.toolId), i.style.position = "fixed", i.style.zIndex = "2000", i.style.background = "var(--pie-background, #fff)", i.style.border = "1px solid var(--pie-border-light, #d1d5db)", i.style.borderRadius = "12px", i.style.boxShadow = "0 10px 40px color-mix(in srgb, var(--pie-black, #000) 25%, transparent)", i.style.setProperty("--color-interactive-blue", "var(--pie-calculator-button-color, var(--pie-button-color, var(--pie-text, #222)))"), i.style.setProperty("--color-new-gray", "var(--pie-background-dark, #f3f5f7)"), i.style.setProperty("--color-primary-white", "var(--pie-white, #ffffff)"), i.style.setProperty("--color-primary-black", "var(--pie-text, #000000)"), i.style.setProperty("--color-focus-blue", "var(--pie-button-focus-outline, #2b87ff)"), i.style.overflow = "visible", i.style.display = r.active ? "flex" : "none", i.style.flexDirection = "column", i.style.userSelect = "none", i.style.webkitUserSelect = "none", i.style.touchAction = "none", i.setAttribute("draggable", "false"), i.addEventListener("dragstart", (e) => e.preventDefault()), a = document.createElement("div"), a.className = "pie-tool-shell__header", a.style.display = "flex", a.style.alignItems = "center", a.style.justifyContent = "space-between", a.style.gap = "6px", a.style.padding = e ? "12px 12px 12px 28px" : "10px 12px", e && (a.style.minHeight = "48px"), e ? (a.style.background = "var(--pie-section-player-card-header-background, var(--pie-button-active-bg, #f3f4f6))", a.style.color = "var(--pie-text, #111827)", a.style.borderBottom = "1px solid var(--pie-border-light, #e5e7eb)") : (a.style.background = "var(--pie-primary-dark, #2c3e50)", a.style.color = "var(--pie-white, #fff)"), a.style.cursor = r.mounted.entry.shell.draggable === !1 ? "default" : "move", a.style.flex = "0 0 auto", a.style.borderRadius = "12px 12px 0 0", a.style.overflow = "hidden", a.style.userSelect = "none", a.style.webkitUserSelect = "none", a.style.touchAction = "none", a.setAttribute("draggable", "false"), a.addEventListener("dragstart", (e) => e.preventDefault()), s = document.createElement("span"), s.className = "pie-tool-shell__title", s.textContent = r.mounted.entry.shell.title || r.mounted.toolId, a.appendChild(s), c = document.createElement("div"), c.className = "pie-tool-shell__controls", c.style.display = "inline-flex", c.style.alignItems = "center", c.style.gap = e ? "6px" : "4px";
1512
- let p = r.mounted.entry.shell, m = (e, n, r, i, a = "fa-regular") => {
1513
- c && c.appendChild(t ? Se(e, r, i, a) : Ce(e, n, i));
1514
- };
1515
- p?.draggable !== !1 && (m("Move tool left", "←", "chevron-left", () => A(-24, 0)), m("Move tool right", "→", "chevron-right", () => A(24, 0)), m("Move tool up", "↑", "chevron-up", () => A(0, -24)), m("Move tool down", "↓", "chevron-down", () => A(0, 24))), p?.resizable !== !1 && (m("Shrink tool window", "−", "magnifying-glass-minus", () => xe(-40, -40)), m("Grow tool window", "+", "magnifying-glass-plus", () => xe(40, 40))), e || c.appendChild(Ce("Center tool window", "◎", Te));
1516
- let h = null;
1517
- if (e ? (h = document.createElement("div"), h.className = "pie-tool-shell__header-right", h.style.display = "inline-flex", h.style.alignItems = "center", h.style.gap = "6px", h.style.setProperty("zoom", "var(--pie-tool-shell-zoom-comp, 1)"), h.appendChild(c), a.appendChild(h)) : a.appendChild(c), t) l = Se("Close tool", "xmark", Oe, "fa-regular"), l.style.display = r.mounted.entry.shell.closeable === !1 ? "none" : "inline-block";
1518
- else {
1519
- let e = document.createElement("button");
1520
- e.type = "button", e.className = "pie-tool-shell__close", e.setAttribute("aria-label", "Close tool");
1521
- let t = "http://www.w3.org/2000/svg", n = document.createElementNS(t, "svg");
1522
- n.setAttribute("xmlns", t), n.setAttribute("viewBox", "0 0 16 16"), n.setAttribute("aria-hidden", "true");
1523
- let i = document.createElementNS(t, "path");
1524
- i.setAttribute("d", "M3.5 3.5L12.5 12.5M12.5 3.5L3.5 12.5"), i.setAttribute("stroke", "currentColor"), i.setAttribute("stroke-width", "1.8"), i.setAttribute("stroke-linecap", "round"), n.appendChild(i), e.appendChild(n);
1525
- let a = n.style;
1526
- a.width = "16px", a.height = "16px", a.display = "block", a.flexShrink = "0", a.pointerEvents = "none";
1527
- let o = "color-mix(in srgb, var(--pie-white, #fff) 8%, transparent)";
1528
- e.style.border = "1px solid transparent", e.style.background = o, e.style.color = "inherit", e.style.cursor = "pointer", e.style.display = "inline-flex", e.style.alignItems = "center", e.style.justifyItems = "center", e.style.width = "28px", e.style.height = "28px", e.style.padding = "0", e.style.borderRadius = "8px", e.style.lineHeight = "0", e.style.transition = "background-color 0.15s ease, border-color 0.15s ease", e.style.display = r.mounted.entry.shell.closeable === !1 ? "none" : "inline-flex", e.onmouseenter = () => {
1529
- e.style.background = "color-mix(in srgb, var(--pie-white, #fff) 18%, transparent)";
1530
- }, e.onmouseleave = () => {
1531
- e.style.background = o;
1532
- }, e.onfocus = () => {
1533
- e.style.outline = "2px solid var(--pie-button-focus-outline, var(--pie-primary, #4A90E2))", e.style.outlineOffset = "2px";
1534
- }, e.onblur = () => {
1535
- e.style.outline = "none", e.style.outlineOffset = "0";
1536
- }, e.onclick = Oe, l = e;
1537
- }
1538
- if (h ? h.appendChild(l) : a.appendChild(l), a.tabIndex = 0, a.onkeydown = (e) => {
1539
- if (e.key === "Home") {
1540
- e.preventDefault(), Te();
1541
- return;
1542
- }
1543
- let t = r.mounted.entry.shell;
1544
- if (e.shiftKey && t?.resizable !== !1) {
1545
- if (e.key === "ArrowRight" || e.key === "ArrowDown") {
1546
- e.preventDefault(), xe(40, 40);
1547
- return;
1548
- }
1549
- if (e.key === "ArrowLeft" || e.key === "ArrowUp") {
1550
- e.preventDefault(), xe(-40, -40);
1551
- return;
1552
- }
1553
- }
1554
- t?.draggable !== !1 && (e.key === "ArrowLeft" ? (e.preventDefault(), A(-24, 0)) : e.key === "ArrowRight" ? (e.preventDefault(), A(24, 0)) : e.key === "ArrowUp" ? (e.preventDefault(), A(0, -24)) : e.key === "ArrowDown" && (e.preventDefault(), A(0, 24)));
1555
- }, o = document.createElement("div"), o.className = "pie-tool-shell__content", o.style.position = "relative", o.style.width = "100%", o.style.flex = "1 1 auto", o.style.minHeight = "0", o.style.overflowX = "hidden", o.style.overflowY = ge(), o.style.borderRadius = "0 0 12px 12px", e) {
1556
- let e = (e) => {
1557
- let t = document.createElement("div");
1558
- return t.tabIndex = 0, t.setAttribute("aria-hidden", "true"), t.setAttribute("data-pie-tool-shell-focus-guard", e), t.style.position = "absolute", t.style.width = "1px", t.style.height = "1px", t.style.padding = "0", t.style.margin = "-1px", t.style.overflow = "hidden", t.style.clipPath = "inset(50%)", t.style.whiteSpace = "nowrap", t.style.border = "0", t;
1559
- };
1560
- u = e("start"), d = e("end"), u.addEventListener("focus", (e) => {
1561
- if (!f) {
1562
- f = !0;
1563
- try {
1564
- if (e.stopPropagation(), D?.isConnected) try {
1565
- D.focus();
1566
- } catch {}
1567
- } finally {
1568
- queueMicrotask(() => {
1569
- f = !1;
1570
- });
1571
- }
1572
- }
1573
- }), d.addEventListener("focus", (e) => {
1574
- if (!f) {
1575
- f = !0;
1576
- try {
1577
- e.stopPropagation();
1578
- let t = P();
1579
- if (t) try {
1580
- t.focus();
1581
- } catch {}
1582
- } finally {
1583
- queueMicrotask(() => {
1584
- f = !1;
1585
- });
1586
- }
1587
- }
1588
- }), i.appendChild(u);
1589
- }
1590
- if (i.appendChild(a), i.appendChild(o), e && d && i.appendChild(d), r.mounted.entry.shell.resizable !== !1) {
1591
- let e = (e, t, n, r, a, o, s) => {
1592
- let c = document.createElement("div");
1593
- c.className = "pie-tool-shell__resize", c.style.position = "absolute", c.style.width = "24px", c.style.height = "24px", c.style.cursor = o, c.style.zIndex = "10", c.style.touchAction = "none", c.setAttribute("draggable", "false"), t !== null && (c.style.top = t), n !== null && (c.style.right = n), r !== null && (c.style.bottom = r), a !== null && (c.style.left = a), s !== null && (c.style.background = `linear-gradient(${s}, transparent 0%, transparent 40%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.35) 60%, transparent 60%, transparent 100%)`);
1594
- let l = ke(e);
1595
- c.addEventListener("pointerdown", l), i.appendChild(c), x.push({
1596
- el: c,
1597
- handler: l
1598
- });
1599
- };
1600
- e("se", null, "0", "0", null, "nwse-resize", null), e("nw", "0", null, null, "0", "nwse-resize", "135deg"), e("ne", "0", "0", null, null, "nesw-resize", null), e("sw", null, null, "0", "0", "nesw-resize", null);
1601
- }
1602
- a.addEventListener("pointerdown", R), i.addEventListener("pointermove", Ae), i.addEventListener("pointerup", z), i.addEventListener("pointerdown", M), window.addEventListener("resize", V), document.body.appendChild(i), Te(), j(), we(), fe(), r.active && N(), le = r.active;
1603
- }
1604
- return {
1605
- update(e) {
1606
- if (r = e, !i || !o || !s || !l) return;
1607
- s.textContent = r.mounted.entry.shell?.title || r.mounted.toolId;
1608
- let t = r.mounted.toolId === "calculator" ? "inline-block" : "inline-flex";
1609
- l.style.display = r.mounted.entry.shell?.closeable === !1 ? "none" : t, j(), we(), fe(), !le && r.active ? N() : le && !r.active && (L(), D = null), le = r.active;
1610
- },
1611
- destroy() {
1612
- pe(), E && L(), p &&= (document.removeEventListener("keydown", I, !0), !1);
1613
- for (let { el: e, handler: t } of x) e.removeEventListener("pointerdown", t);
1614
- D = null, x.length = 0, a && (a.removeEventListener("pointerdown", R), a.onkeydown = null), i && (i.removeEventListener("pointermove", Ae), i.removeEventListener("pointerup", z), i.removeEventListener("pointerdown", M)), window.removeEventListener("resize", V), m && o && m.parentNode === o && (ue(m), o.removeChild(m)), m = null, i && i.parentElement && i.remove();
1615
- }
1616
- };
1617
- }
1618
- var Ht = {
1619
- get level() {
1620
- return we();
1621
- },
1622
- set level(e) {
1623
- we(e), s();
1624
- },
1625
- get scopeId() {
1626
- return M();
1627
- },
1628
- set scopeId(e) {
1629
- M(e), s();
1630
- },
1631
- get itemId() {
1632
- return Te();
1633
- },
1634
- set itemId(e) {
1635
- Te(e), s();
1636
- },
1637
- get sectionId() {
1638
- return Ee();
1639
- },
1640
- set sectionId(e) {
1641
- Ee(e), s();
1642
- },
1643
- get catalogId() {
1644
- return De();
1645
- },
1646
- set catalogId(e) {
1647
- De(e), s();
1648
- },
1649
- get tools() {
1650
- return N();
1651
- },
1652
- set tools(e) {
1653
- N(e), s();
1654
- },
1655
- get contentKind() {
1656
- return P();
1657
- },
1658
- set contentKind(e) {
1659
- P(e), s();
1660
- },
1661
- get position() {
1662
- return F();
1663
- },
1664
- set position(e) {
1665
- F(e), s();
1666
- },
1667
- get scopeElement() {
1668
- return I();
1669
- },
1670
- set scopeElement(e) {
1671
- I(e), s();
1672
- },
1673
- get toolRegistry() {
1674
- return L();
1675
- },
1676
- set toolRegistry(e) {
1677
- L(e), s();
1678
- },
1679
- get item() {
1680
- return Oe();
1681
- },
1682
- set item(e) {
1683
- Oe(e), s();
1684
- },
1685
- get hostButtons() {
1686
- return R();
1687
- },
1688
- set hostButtons(e) {
1689
- R(e), s();
1690
- },
1691
- get class() {
1692
- return ke();
1693
- },
1694
- set class(e) {
1695
- ke(e), s();
1696
- },
1697
- get size() {
1698
- return Ae();
1699
- },
1700
- set size(e) {
1701
- Ae(e), s();
1702
- },
1703
- get language() {
1704
- return z();
1705
- },
1706
- set language(e) {
1707
- z(e), s();
1708
- }
1709
- }, Ut = g(), Wt = b(Ut), Gt = (t) => {
1710
- var i = Tt();
1711
- let o;
1712
- var s = C(i), d = C(s);
1713
- c(d, 17, () => n(ht), (e) => e.key, (e, t) => {
1714
- var r = g(), i = b(r), a = (e) => {
1715
- var r = g(), i = b(r);
1716
- ee(i, () => n(U), (e) => {
1717
- var r = gt();
1718
- m(r, (e, t) => Vt?.(e, t), () => ({
1719
- mounted: n(t),
1720
- active: n(ft)[n(t).toolId] ?? !1
1721
- })), h(e, r);
1722
- }), h(e, r);
1723
- }, o = (e) => {
1724
- var r = gt();
1725
- m(r, (e, t) => Bt?.(e, t), () => n(t).entry.element), h(e, r);
1726
- };
1727
- v(i, (e) => {
1728
- n(t).entry.shell ? e(a) : e(o, -1);
1729
- }), h(e, r);
1730
- });
1731
- var _ = te(d, 2);
1732
- c(_, 17, () => n(dt), (e) => e.id, (e, t, i, o) => {
1733
- let s = x(() => n(U) && !st(n(t)) ? Se(n(t)) : null);
1734
- var c = g(), d = b(c), p = (e) => {
1735
- var i = _t(), o = C(i);
1736
- r(o, 1, "item-toolbar__nds-button svelte-rnx3ie"), ne(o, "type", "circle"), ne(o, "size", "small"), ne(o, "variant", "tertiary"), f(() => ne(o, "icon-name", n(s))), f(() => ne(o, "button-aria-label", n(t).ariaLabel || n(t).label)), f(() => ne(o, "title", n(t).tooltip || n(t).label)), f(() => ne(o, "disabled", n(t).disabled)), m(o, (e) => be?.(e)), m(o, (e, t) => A?.(e, t), () => Lt(n(t))), l(i), a("click", o, function(...e) {
1737
- n(t).onClick?.apply(this, e);
1738
- }), h(e, i);
1739
- }, ee = (e) => {
1740
- var i = xt();
1741
- let o;
1742
- var s = C(i), c = (e) => {
1743
- var i = g(), a = b(i), o = (e) => {
1744
- var r = vt();
1745
- E(r, () => re(n(t).icon), !0), l(r), h(e, r);
1746
- }, s = x(() => lt(n(t).icon)), c = (e) => {
1747
- var r = yt();
1748
- f(() => u(r, "src", n(t).icon)), h(e, r);
1749
- }, d = x(() => ut(n(t).icon)), p = (e) => {
1750
- let i = x(() => Rt(n(t).icon));
1751
- var a = g(), o = b(a), s = (e) => {
1752
- var t = vt();
1753
- E(t, () => re(n(i)), !0), l(t), h(e, t);
1754
- }, c = (e) => {
1755
- var i = bt();
1756
- f(() => r(i, 1, `icon icon-${n(t).icon}`, "svelte-rnx3ie")), h(e, i);
1757
- };
1758
- v(o, (e) => {
1759
- n(i) ? e(s) : e(c, -1);
1760
- }), h(e, a);
1761
- };
1762
- v(a, (e) => {
1763
- n(s) ? e(o) : n(d) ? e(c, 1) : e(p, -1);
1764
- }), h(e, i);
1765
- };
1766
- v(s, (e) => {
1767
- n(t).icon && e(c);
1768
- }), l(i), f((e) => {
1769
- o = r(i, 1, "item-toolbar__button svelte-rnx3ie", null, o, e), u(i, "href", n(t).disabled ? void 0 : n(t).href), u(i, "target", n(t).target), u(i, "rel", n(t).rel), u(i, "aria-label", n(t).ariaLabel || n(t).label), u(i, "title", n(t).tooltip || n(t).label), u(i, "aria-disabled", n(t).disabled ? "true" : void 0);
1770
- }, [() => ({ "item-toolbar__button--active": Lt(n(t)) })]), a("click", i, (e) => {
1771
- n(t).disabled && e.preventDefault();
1772
- }), h(e, i);
1773
- }, _ = x(() => st(n(t))), y = (e) => {
1774
- var i = St();
1775
- let o;
1776
- var s = C(i), c = (e) => {
1777
- var i = g(), a = b(i), o = (e) => {
1778
- var r = vt();
1779
- E(r, () => re(n(t).icon), !0), l(r), h(e, r);
1780
- }, s = x(() => lt(n(t).icon)), c = (e) => {
1781
- var r = yt();
1782
- f(() => u(r, "src", n(t).icon)), h(e, r);
1783
- }, d = x(() => ut(n(t).icon)), p = (e) => {
1784
- let i = x(() => Rt(n(t).icon));
1785
- var a = g(), o = b(a), s = (e) => {
1786
- var t = vt();
1787
- E(t, () => re(n(i)), !0), l(t), h(e, t);
1788
- }, c = (e) => {
1789
- var i = bt();
1790
- f(() => r(i, 1, `icon icon-${n(t).icon}`, "svelte-rnx3ie")), h(e, i);
1791
- };
1792
- v(o, (e) => {
1793
- n(i) ? e(s) : e(c, -1);
1794
- }), h(e, a);
1795
- };
1796
- v(a, (e) => {
1797
- n(s) ? e(o) : n(d) ? e(c, 1) : e(p, -1);
1798
- }), h(e, i);
1799
- };
1800
- v(s, (e) => {
1801
- n(t).icon && e(c);
1802
- }), l(i), f((e, a) => {
1803
- o = r(i, 1, "item-toolbar__button svelte-rnx3ie", null, o, e), u(i, "aria-label", n(t).ariaLabel || n(t).label), u(i, "aria-pressed", a), u(i, "title", n(t).tooltip || n(t).label), i.disabled = n(t).disabled;
1804
- }, [() => ({ "item-toolbar__button--active": Lt(n(t)) }), () => Lt(n(t))]), a("click", i, function(...e) {
1805
- n(t).onClick?.apply(this, e);
1806
- }), h(e, i);
1807
- };
1808
- v(d, (e) => {
1809
- n(s) ? e(p) : n(_) ? e(ee, 1) : e(y, -1);
1810
- }), h(e, c);
1811
- });
1812
- var y = te(_, 2);
1813
- c(y, 17, () => n(Dt), (e) => e.key, (e, t) => {
1814
- var r = g(), i = b(r), a = (e) => {
1815
- var r = g(), i = b(r);
1816
- ee(i, () => n(U), (e) => {
1817
- var r = gt();
1818
- m(r, (e, t) => Vt?.(e, t), () => ({
1819
- mounted: n(t),
1820
- active: n(ft)[n(t).toolId] ?? !1
1821
- })), h(e, r);
1822
- }), h(e, r);
1823
- }, o = (e) => {
1824
- var r = gt();
1825
- m(r, (e, t) => Bt?.(e, t), () => n(t).entry.element), h(e, r);
1826
- };
1827
- v(i, (e) => {
1828
- n(t).entry.shell ? e(a) : e(o, -1);
1829
- }), h(e, r);
1830
- }), l(s);
1831
- var ie = te(s, 2), ae = (e) => {
1832
- var t = wt();
1833
- let i;
1834
- c(t, 21, () => n(Ot), (e) => e.key, (e, t) => {
1835
- var r = g(), i = b(r), a = (e) => {
1836
- var r = g(), i = b(r);
1837
- ee(i, () => n(U), (e) => {
1838
- var r = Ct();
1839
- m(r, (e, t) => Vt?.(e, t), () => ({
1840
- mounted: n(t),
1841
- active: n(ft)[n(t).toolId] ?? !1
1842
- })), h(e, r);
1843
- }), h(e, r);
1844
- }, o = (e) => {
1845
- var r = Ct();
1846
- m(r, (e, t) => Bt?.(e, t), () => n(t).entry.element), h(e, r);
1847
- };
1848
- v(i, (e) => {
1849
- n(t).entry.shell ? e(a) : e(o, -1);
1850
- }), h(e, r);
1851
- }), l(t), f(() => i = r(t, 1, "item-toolbar__controls-row svelte-rnx3ie", null, i, {
1852
- "item-toolbar__controls-row--reserve": n(jt),
1853
- "item-toolbar__controls-row--active": n(Mt),
1854
- "item-toolbar__controls-row--align-start": n(Nt)
1855
- })), h(e, t);
1856
- };
1857
- v(ie, (e) => {
1858
- n(Ft) && e(ae);
1859
- }), l(i), T(i, (e) => p(B, e), () => n(B)), f(() => {
1860
- o = r(i, 1, `item-toolbar ${ke() ?? ""} item-toolbar--${Ae() ?? ""}`, "svelte-rnx3ie", o, {
1861
- "item-toolbar--top": F() === "top",
1862
- "item-toolbar--right": F() === "right",
1863
- "item-toolbar--bottom": F() === "bottom",
1864
- "item-toolbar--left": F() === "left",
1865
- "item-toolbar--header-overlay-active": n(Pt)
1866
- }), u(i, "data-content-kind", n(J)), u(i, "data-level", n(Y)), e(i, `--pie-toolbar-zoom-comp: ${n(V)};`);
1867
- }), h(t, i);
1868
- };
1869
- return v(Wt, (e) => {
1870
- ie && e(Gt);
1871
- }), h(t, Ut), ae(Ht);
1872
- }
1873
- ie(["click"]), ht("pie-item-toolbar", t(Dt, {
1874
- level: {
1875
- attribute: "level",
1876
- type: "String"
1877
- },
1878
- scopeId: {
1879
- attribute: "scope-id",
1880
- type: "String"
1881
- },
1882
- itemId: {
1883
- attribute: "item-id",
1884
- type: "String"
1885
- },
1886
- sectionId: {
1887
- attribute: "section-id",
1888
- type: "String"
1889
- },
1890
- catalogId: {
1891
- attribute: "catalog-id",
1892
- type: "String"
1893
- },
1894
- tools: {
1895
- attribute: "tools",
1896
- type: "String"
1897
- },
1898
- contentKind: {
1899
- attribute: "content-kind",
1900
- type: "String"
1901
- },
1902
- position: {
1903
- attribute: "position",
1904
- type: "String"
1905
- },
1906
- size: {
1907
- attribute: "size",
1908
- type: "String"
1909
- },
1910
- language: {
1911
- attribute: "language",
1912
- type: "String"
1913
- },
1914
- scopeElement: { type: "Object" },
1915
- toolRegistry: { type: "Object" },
1916
- item: { type: "Object" },
1917
- hostButtons: { type: "Object" },
1918
- class: {}
1919
- }, [], [], { mode: "open" }));
1920
- //#endregion
1921
-
1922
- //# sourceMappingURL=item-toolbar-element-iE73NEkH.js.map