@pie-players/pie-assessment-toolkit 0.3.56 → 0.3.58

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.
@@ -4720,6 +4720,29 @@ function set_attribute2(element, attribute, value, skip_warning) {
4720
4720
  element.setAttribute(attribute, value);
4721
4721
  }
4722
4722
  }
4723
+ function set_custom_element_data(node, prop, value) {
4724
+ var previous_reaction = active_reaction;
4725
+ var previous_effect = active_effect;
4726
+ let was_hydrating = hydrating;
4727
+ if (hydrating) {
4728
+ set_hydrating(false);
4729
+ }
4730
+ set_active_reaction(null);
4731
+ set_active_effect(null);
4732
+ try {
4733
+ if (prop !== "style" && (setters_cache.has(node.getAttribute("is") || node.nodeName) || !customElements || customElements.get(node.getAttribute("is") || node.nodeName.toLowerCase()) ? get_setters(node).includes(prop) : value && typeof value === "object")) {
4734
+ node[prop] = value;
4735
+ } else {
4736
+ set_attribute2(node, prop, value == null ? value : String(value));
4737
+ }
4738
+ } finally {
4739
+ set_active_reaction(previous_reaction);
4740
+ set_active_effect(previous_effect);
4741
+ if (was_hydrating) {
4742
+ set_hydrating(true);
4743
+ }
4744
+ }
4745
+ }
4723
4746
  function get_attributes(element) {
4724
4747
  return element[ATTRIBUTES_CACHE] ??= {
4725
4748
  [IS_CUSTOM_ELEMENT]: element.nodeName.includes("-"),
@@ -6099,7 +6122,7 @@ class DesmosToolProvider {
6099
6122
  providerId = "desmos-calculator";
6100
6123
  providerName = "Desmos Calculator";
6101
6124
  category = "calculator";
6102
- version = "1.10";
6125
+ version = "1.12";
6103
6126
  requiresAuth = true;
6104
6127
  desmosProvider = null;
6105
6128
  config = null;
@@ -7805,880 +7828,8 @@ function createPackagedToolRegistry(options = {}) {
7805
7828
  });
7806
7829
  }
7807
7830
 
7808
- // dist/components/vendor/nds/nds-icon-button.js
7809
- var H = globalThis;
7810
- var D = H.ShadowRoot && (H.ShadyCSS === undefined || H.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
7811
- var tt = Symbol();
7812
- var W = /* @__PURE__ */ new WeakMap;
7813
- var nt = class {
7814
- constructor(t, e, s) {
7815
- if (this._$cssResult$ = true, s !== tt)
7816
- throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
7817
- this.cssText = t, this.t = e;
7818
- }
7819
- get styleSheet() {
7820
- let t = this.o;
7821
- const e = this.t;
7822
- if (D && t === undefined) {
7823
- const s = e !== undefined && e.length === 1;
7824
- s && (t = W.get(e)), t === undefined && ((this.o = t = new CSSStyleSheet).replaceSync(this.cssText), s && W.set(e, t));
7825
- }
7826
- return t;
7827
- }
7828
- toString() {
7829
- return this.cssText;
7830
- }
7831
- };
7832
- var rt = (o) => new nt(typeof o == "string" ? o : o + "", undefined, tt);
7833
- var at = (o, t) => {
7834
- if (D)
7835
- o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
7836
- else
7837
- for (const e of t) {
7838
- const s = document.createElement("style"), i = H.litNonce;
7839
- i !== undefined && s.setAttribute("nonce", i), s.textContent = e.cssText, o.appendChild(s);
7840
- }
7841
- };
7842
- var V = D ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
7843
- let e = "";
7844
- for (const s of t.cssRules)
7845
- e += s.cssText;
7846
- return rt(e);
7847
- })(o) : o;
7848
- var { is: ht, defineProperty: ct, getOwnPropertyDescriptor: lt, getOwnPropertyNames: dt, getOwnPropertySymbols: ut, getPrototypeOf: pt } = Object;
7849
- var R = globalThis;
7850
- var F = R.trustedTypes;
7851
- var ft = F ? F.emptyScript : "";
7852
- var bt = R.reactiveElementPolyfillSupport;
7853
- var S = (o, t) => o;
7854
- var N = { toAttribute(o, t) {
7855
- switch (t) {
7856
- case Boolean:
7857
- o = o ? ft : null;
7858
- break;
7859
- case Object:
7860
- case Array:
7861
- o = o == null ? o : JSON.stringify(o);
7862
- }
7863
- return o;
7864
- }, fromAttribute(o, t) {
7865
- let e = o;
7866
- switch (t) {
7867
- case Boolean:
7868
- e = o !== null;
7869
- break;
7870
- case Number:
7871
- e = o === null ? null : Number(o);
7872
- break;
7873
- case Object:
7874
- case Array:
7875
- try {
7876
- e = JSON.parse(o);
7877
- } catch {
7878
- e = null;
7879
- }
7880
- }
7881
- return e;
7882
- } };
7883
- var L = (o, t) => !ht(o, t);
7884
- var J = { attribute: true, type: String, converter: N, reflect: false, useDefault: false, hasChanged: L };
7885
- Symbol.metadata ??= Symbol("metadata"), R.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap;
7886
- var A = class extends HTMLElement {
7887
- static addInitializer(t) {
7888
- this._$Ei(), (this.l ??= []).push(t);
7889
- }
7890
- static get observedAttributes() {
7891
- return this.finalize(), this._$Eh && [...this._$Eh.keys()];
7892
- }
7893
- static createProperty(t, e = J) {
7894
- if (e.state && (e.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = true), this.elementProperties.set(t, e), !e.noAccessor) {
7895
- const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
7896
- i !== undefined && ct(this.prototype, t, i);
7897
- }
7898
- }
7899
- static getPropertyDescriptor(t, e, s) {
7900
- const { get: i, set: n } = lt(this.prototype, t) ?? { get() {
7901
- return this[e];
7902
- }, set(r) {
7903
- this[e] = r;
7904
- } };
7905
- return { get: i, set(r) {
7906
- const h = i?.call(this);
7907
- n?.call(this, r), this.requestUpdate(t, h, s);
7908
- }, configurable: true, enumerable: true };
7909
- }
7910
- static getPropertyOptions(t) {
7911
- return this.elementProperties.get(t) ?? J;
7912
- }
7913
- static _$Ei() {
7914
- if (this.hasOwnProperty(S("elementProperties")))
7915
- return;
7916
- const t = pt(this);
7917
- t.finalize(), t.l !== undefined && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
7918
- }
7919
- static finalize() {
7920
- if (this.hasOwnProperty(S("finalized")))
7921
- return;
7922
- if (this.finalized = true, this._$Ei(), this.hasOwnProperty(S("properties"))) {
7923
- const e = this.properties, s = [...dt(e), ...ut(e)];
7924
- for (const i of s)
7925
- this.createProperty(i, e[i]);
7926
- }
7927
- const t = this[Symbol.metadata];
7928
- if (t !== null) {
7929
- const e = litPropertyMetadata.get(t);
7930
- if (e !== undefined)
7931
- for (const [s, i] of e)
7932
- this.elementProperties.set(s, i);
7933
- }
7934
- this._$Eh = /* @__PURE__ */ new Map;
7935
- for (const [e, s] of this.elementProperties) {
7936
- const i = this._$Eu(e, s);
7937
- i !== undefined && this._$Eh.set(i, e);
7938
- }
7939
- this.elementStyles = this.finalizeStyles(this.styles);
7940
- }
7941
- static finalizeStyles(t) {
7942
- const e = [];
7943
- if (Array.isArray(t)) {
7944
- const s = new Set(t.flat(1 / 0).reverse());
7945
- for (const i of s)
7946
- e.unshift(V(i));
7947
- } else
7948
- t !== undefined && e.push(V(t));
7949
- return e;
7950
- }
7951
- static _$Eu(t, e) {
7952
- const s = e.attribute;
7953
- return s === false ? undefined : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : undefined;
7954
- }
7955
- constructor() {
7956
- super(), this._$Ep = undefined, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
7957
- }
7958
- _$Ev() {
7959
- this._$ES = new Promise((t) => this.enableUpdating = t), this._$AL = /* @__PURE__ */ new Map, this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t) => t(this));
7960
- }
7961
- addController(t) {
7962
- (this._$EO ??= /* @__PURE__ */ new Set).add(t), this.renderRoot !== undefined && this.isConnected && t.hostConnected?.();
7963
- }
7964
- removeController(t) {
7965
- this._$EO?.delete(t);
7966
- }
7967
- _$E_() {
7968
- const t = /* @__PURE__ */ new Map, e = this.constructor.elementProperties;
7969
- for (const s of e.keys())
7970
- this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
7971
- t.size > 0 && (this._$Ep = t);
7972
- }
7973
- createRenderRoot() {
7974
- const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
7975
- return at(t, this.constructor.elementStyles), t;
7976
- }
7977
- connectedCallback() {
7978
- this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t) => t.hostConnected?.());
7979
- }
7980
- enableUpdating(t) {}
7981
- disconnectedCallback() {
7982
- this._$EO?.forEach((t) => t.hostDisconnected?.());
7983
- }
7984
- attributeChangedCallback(t, e, s) {
7985
- this._$AK(t, s);
7986
- }
7987
- _$ET(t, e) {
7988
- const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
7989
- if (i !== undefined && s.reflect === true) {
7990
- const n = (s.converter?.toAttribute !== undefined ? s.converter : N).toAttribute(e, s.type);
7991
- this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
7992
- }
7993
- }
7994
- _$AK(t, e) {
7995
- const s = this.constructor, i = s._$Eh.get(t);
7996
- if (i !== undefined && this._$Em !== i) {
7997
- const n = s.getPropertyOptions(i), r = typeof n.converter == "function" ? { fromAttribute: n.converter } : n.converter?.fromAttribute !== undefined ? n.converter : N;
7998
- this._$Em = i;
7999
- const h = r.fromAttribute(e, n.type);
8000
- this[i] = h ?? this._$Ej?.get(i) ?? h, this._$Em = null;
8001
- }
8002
- }
8003
- requestUpdate(t, e, s) {
8004
- if (t !== undefined) {
8005
- const i = this.constructor, n = this[t];
8006
- if (s ??= i.getPropertyOptions(t), !((s.hasChanged ?? L)(n, e) || s.useDefault && s.reflect && n === this._$Ej?.get(t) && !this.hasAttribute(i._$Eu(t, s))))
8007
- return;
8008
- this.C(t, e, s);
8009
- }
8010
- this.isUpdatePending === false && (this._$ES = this._$EP());
8011
- }
8012
- C(t, e, { useDefault: s, reflect: i, wrapped: n }, r) {
8013
- s && !(this._$Ej ??= /* @__PURE__ */ new Map).has(t) && (this._$Ej.set(t, r ?? e ?? this[t]), n !== true || r !== undefined) || (this._$AL.has(t) || (this.hasUpdated || s || (e = undefined), this._$AL.set(t, e)), i === true && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set).add(t));
8014
- }
8015
- async _$EP() {
8016
- this.isUpdatePending = true;
8017
- try {
8018
- await this._$ES;
8019
- } catch (e) {
8020
- Promise.reject(e);
8021
- }
8022
- const t = this.scheduleUpdate();
8023
- return t != null && await t, !this.isUpdatePending;
8024
- }
8025
- scheduleUpdate() {
8026
- return this.performUpdate();
8027
- }
8028
- performUpdate() {
8029
- if (!this.isUpdatePending)
8030
- return;
8031
- if (!this.hasUpdated) {
8032
- if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
8033
- for (const [i, n] of this._$Ep)
8034
- this[i] = n;
8035
- this._$Ep = undefined;
8036
- }
8037
- const s = this.constructor.elementProperties;
8038
- if (s.size > 0)
8039
- for (const [i, n] of s) {
8040
- const { wrapped: r } = n, h = this[i];
8041
- r !== true || this._$AL.has(i) || h === undefined || this.C(i, undefined, n, h);
8042
- }
8043
- }
8044
- let t = false;
8045
- const e = this._$AL;
8046
- try {
8047
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), this._$EO?.forEach((s) => s.hostUpdate?.()), this.update(e)) : this._$EM();
8048
- } catch (s) {
8049
- throw t = false, this._$EM(), s;
8050
- }
8051
- t && this._$AE(e);
8052
- }
8053
- willUpdate(t) {}
8054
- _$AE(t) {
8055
- this._$EO?.forEach((e) => e.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
8056
- }
8057
- _$EM() {
8058
- this._$AL = /* @__PURE__ */ new Map, this.isUpdatePending = false;
8059
- }
8060
- get updateComplete() {
8061
- return this.getUpdateComplete();
8062
- }
8063
- getUpdateComplete() {
8064
- return this._$ES;
8065
- }
8066
- shouldUpdate(t) {
8067
- return true;
8068
- }
8069
- update(t) {
8070
- this._$Eq &&= this._$Eq.forEach((e) => this._$ET(e, this[e])), this._$EM();
8071
- }
8072
- updated(t) {}
8073
- firstUpdated(t) {}
8074
- };
8075
- A.elementStyles = [], A.shadowRootOptions = { mode: "open" }, A[S("elementProperties")] = /* @__PURE__ */ new Map, A[S("finalized")] = /* @__PURE__ */ new Map, bt?.({ ReactiveElement: A }), (R.reactiveElementVersions ??= []).push("2.1.1");
8076
- var I = globalThis;
8077
- var T = I.trustedTypes;
8078
- var K = T ? T.createPolicy("lit-html", { createHTML: (o) => o }) : undefined;
8079
- var et = "$lit$";
8080
- var v = `lit$${Math.random().toFixed(9).slice(2)}$`;
8081
- var st = "?" + v;
8082
- var $t = `<${st}>`;
8083
- var g = document;
8084
- var k = () => g.createComment("");
8085
- var P = (o) => o === null || typeof o != "object" && typeof o != "function";
8086
- var B = Array.isArray;
8087
- var vt = (o) => B(o) || typeof o?.[Symbol.iterator] == "function";
8088
- var j = `[
8089
- \f\r]`;
8090
- var x = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
8091
- var Z = /-->/g;
8092
- var G = />/g;
8093
- var y = RegExp(`>|${j}(?:([^\\s"'>=/]+)(${j}*=${j}*(?:[^
8094
- \f\r"'\`<>=]|("|')|))|$)`, "g");
8095
- var Q = /'/g;
8096
- var X = /"/g;
8097
- var it = /^(?:script|style|textarea|title)$/i;
8098
- var _t = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e });
8099
- var yt = _t(1);
8100
- var w = Symbol.for("lit-noChange");
8101
- var d = Symbol.for("lit-nothing");
8102
- var Y = /* @__PURE__ */ new WeakMap;
8103
- var m = g.createTreeWalker(g, 129);
8104
- function ot(o, t) {
8105
- if (!B(o) || !o.hasOwnProperty("raw"))
8106
- throw Error("invalid template strings array");
8107
- return K !== undefined ? K.createHTML(t) : t;
8108
- }
8109
- var mt = (o, t) => {
8110
- const e = o.length - 1, s = [];
8111
- let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = x;
8112
- for (let h = 0;h < e; h++) {
8113
- const a = o[h];
8114
- let l, u, c = -1, f = 0;
8115
- for (;f < a.length && (r.lastIndex = f, u = r.exec(a), u !== null); )
8116
- f = r.lastIndex, r === x ? u[1] === "!--" ? r = Z : u[1] !== undefined ? r = G : u[2] !== undefined ? (it.test(u[2]) && (i = RegExp("</" + u[2], "g")), r = y) : u[3] !== undefined && (r = y) : r === y ? u[0] === ">" ? (r = i ?? x, c = -1) : u[1] === undefined ? c = -2 : (c = r.lastIndex - u[2].length, l = u[1], r = u[3] === undefined ? y : u[3] === '"' ? X : Q) : r === X || r === Q ? r = y : r === Z || r === G ? r = x : (r = y, i = undefined);
8117
- const $ = r === y && o[h + 1].startsWith("/>") ? " " : "";
8118
- n += r === x ? a + $t : c >= 0 ? (s.push(l), a.slice(0, c) + et + a.slice(c) + v + $) : a + v + (c === -2 ? h : $);
8119
- }
8120
- return [ot(o, n + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
8121
- };
8122
-
8123
- class O {
8124
- constructor({ strings: t, _$litType$: e }, s) {
8125
- let i;
8126
- this.parts = [];
8127
- let n = 0, r = 0;
8128
- const h = t.length - 1, a = this.parts, [l, u] = mt(t, e);
8129
- if (this.el = O.createElement(l, s), m.currentNode = this.el.content, e === 2 || e === 3) {
8130
- const c = this.el.content.firstChild;
8131
- c.replaceWith(...c.childNodes);
8132
- }
8133
- for (;(i = m.nextNode()) !== null && a.length < h; ) {
8134
- if (i.nodeType === 1) {
8135
- if (i.hasAttributes())
8136
- for (const c of i.getAttributeNames())
8137
- if (c.endsWith(et)) {
8138
- const f = u[r++], $ = i.getAttribute(c).split(v), M = /([.?@])?(.*)/.exec(f);
8139
- a.push({ type: 1, index: n, name: M[2], strings: $, ctor: M[1] === "." ? At : M[1] === "?" ? wt : M[1] === "@" ? Et : z }), i.removeAttribute(c);
8140
- } else
8141
- c.startsWith(v) && (a.push({ type: 6, index: n }), i.removeAttribute(c));
8142
- if (it.test(i.tagName)) {
8143
- const c = i.textContent.split(v), f = c.length - 1;
8144
- if (f > 0) {
8145
- i.textContent = T ? T.emptyScript : "";
8146
- for (let $ = 0;$ < f; $++)
8147
- i.append(c[$], k()), m.nextNode(), a.push({ type: 2, index: ++n });
8148
- i.append(c[f], k());
8149
- }
8150
- }
8151
- } else if (i.nodeType === 8)
8152
- if (i.data === st)
8153
- a.push({ type: 2, index: n });
8154
- else {
8155
- let c = -1;
8156
- for (;(c = i.data.indexOf(v, c + 1)) !== -1; )
8157
- a.push({ type: 7, index: n }), c += v.length - 1;
8158
- }
8159
- n++;
8160
- }
8161
- }
8162
- static createElement(t, e) {
8163
- const s = g.createElement("template");
8164
- return s.innerHTML = t, s;
8165
- }
8166
- }
8167
- function E(o, t, e = o, s) {
8168
- if (t === w)
8169
- return t;
8170
- let i = s !== undefined ? e._$Co?.[s] : e._$Cl;
8171
- const n = P(t) ? undefined : t._$litDirective$;
8172
- return i?.constructor !== n && (i?._$AO?.(false), n === undefined ? i = undefined : (i = new n(o), i._$AT(o, e, s)), s !== undefined ? (e._$Co ??= [])[s] = i : e._$Cl = i), i !== undefined && (t = E(o, i._$AS(o, t.values), i, s)), t;
8173
- }
8174
-
8175
- class gt {
8176
- constructor(t, e) {
8177
- this._$AV = [], this._$AN = undefined, this._$AD = t, this._$AM = e;
8178
- }
8179
- get parentNode() {
8180
- return this._$AM.parentNode;
8181
- }
8182
- get _$AU() {
8183
- return this._$AM._$AU;
8184
- }
8185
- u(t) {
8186
- const { el: { content: e }, parts: s } = this._$AD, i = (t?.creationScope ?? g).importNode(e, true);
8187
- m.currentNode = i;
8188
- let n = m.nextNode(), r = 0, h = 0, a = s[0];
8189
- for (;a !== undefined; ) {
8190
- if (r === a.index) {
8191
- let l;
8192
- a.type === 2 ? l = new U(n, n.nextSibling, this, t) : a.type === 1 ? l = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (l = new xt(n, this, t)), this._$AV.push(l), a = s[++h];
8193
- }
8194
- r !== a?.index && (n = m.nextNode(), r++);
8195
- }
8196
- return m.currentNode = g, i;
8197
- }
8198
- p(t) {
8199
- let e = 0;
8200
- for (const s of this._$AV)
8201
- s !== undefined && (s.strings !== undefined ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
8202
- }
8203
- }
8204
-
8205
- class U {
8206
- get _$AU() {
8207
- return this._$AM?._$AU ?? this._$Cv;
8208
- }
8209
- constructor(t, e, s, i) {
8210
- this.type = 2, this._$AH = d, this._$AN = undefined, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = i?.isConnected ?? true;
8211
- }
8212
- get parentNode() {
8213
- let t = this._$AA.parentNode;
8214
- const e = this._$AM;
8215
- return e !== undefined && t?.nodeType === 11 && (t = e.parentNode), t;
8216
- }
8217
- get startNode() {
8218
- return this._$AA;
8219
- }
8220
- get endNode() {
8221
- return this._$AB;
8222
- }
8223
- _$AI(t, e = this) {
8224
- t = E(this, t, e), P(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== w && this._(t) : t._$litType$ !== undefined ? this.$(t) : t.nodeType !== undefined ? this.T(t) : vt(t) ? this.k(t) : this._(t);
8225
- }
8226
- O(t) {
8227
- return this._$AA.parentNode.insertBefore(t, this._$AB);
8228
- }
8229
- T(t) {
8230
- this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
8231
- }
8232
- _(t) {
8233
- this._$AH !== d && P(this._$AH) ? this._$AA.nextSibling.data = t : this.T(g.createTextNode(t)), this._$AH = t;
8234
- }
8235
- $(t) {
8236
- const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === undefined && (s.el = O.createElement(ot(s.h, s.h[0]), this.options)), s);
8237
- if (this._$AH?._$AD === i)
8238
- this._$AH.p(e);
8239
- else {
8240
- const n = new gt(i, this), r = n.u(this.options);
8241
- n.p(e), this.T(r), this._$AH = n;
8242
- }
8243
- }
8244
- _$AC(t) {
8245
- let e = Y.get(t.strings);
8246
- return e === undefined && Y.set(t.strings, e = new O(t)), e;
8247
- }
8248
- k(t) {
8249
- B(this._$AH) || (this._$AH = [], this._$AR());
8250
- const e = this._$AH;
8251
- let s, i = 0;
8252
- for (const n of t)
8253
- i === e.length ? e.push(s = new U(this.O(k()), this.O(k()), this, this.options)) : s = e[i], s._$AI(n), i++;
8254
- i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
8255
- }
8256
- _$AR(t = this._$AA.nextSibling, e) {
8257
- for (this._$AP?.(false, true, e);t !== this._$AB; ) {
8258
- const s = t.nextSibling;
8259
- t.remove(), t = s;
8260
- }
8261
- }
8262
- setConnected(t) {
8263
- this._$AM === undefined && (this._$Cv = t, this._$AP?.(t));
8264
- }
8265
- }
8266
-
8267
- class z {
8268
- get tagName() {
8269
- return this.element.tagName;
8270
- }
8271
- get _$AU() {
8272
- return this._$AM._$AU;
8273
- }
8274
- constructor(t, e, s, i, n) {
8275
- this.type = 1, this._$AH = d, this._$AN = undefined, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String), this.strings = s) : this._$AH = d;
8276
- }
8277
- _$AI(t, e = this, s, i) {
8278
- const n = this.strings;
8279
- let r = false;
8280
- if (n === undefined)
8281
- t = E(this, t, e, 0), r = !P(t) || t !== this._$AH && t !== w, r && (this._$AH = t);
8282
- else {
8283
- const h = t;
8284
- let a, l;
8285
- for (t = n[0], a = 0;a < n.length - 1; a++)
8286
- l = E(this, h[s + a], e, a), l === w && (l = this._$AH[a]), r ||= !P(l) || l !== this._$AH[a], l === d ? t = d : t !== d && (t += (l ?? "") + n[a + 1]), this._$AH[a] = l;
8287
- }
8288
- r && !i && this.j(t);
8289
- }
8290
- j(t) {
8291
- t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
8292
- }
8293
- }
8294
-
8295
- class At extends z {
8296
- constructor() {
8297
- super(...arguments), this.type = 3;
8298
- }
8299
- j(t) {
8300
- this.element[this.name] = t === d ? undefined : t;
8301
- }
8302
- }
8303
-
8304
- class wt extends z {
8305
- constructor() {
8306
- super(...arguments), this.type = 4;
8307
- }
8308
- j(t) {
8309
- this.element.toggleAttribute(this.name, !!t && t !== d);
8310
- }
8311
- }
8312
-
8313
- class Et extends z {
8314
- constructor(t, e, s, i, n) {
8315
- super(t, e, s, i, n), this.type = 5;
8316
- }
8317
- _$AI(t, e = this) {
8318
- if ((t = E(this, t, e, 0) ?? d) === w)
8319
- return;
8320
- const s = this._$AH, i = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== d && (s === d || i);
8321
- i && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
8322
- }
8323
- handleEvent(t) {
8324
- typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
8325
- }
8326
- }
8327
-
8328
- class xt {
8329
- constructor(t, e, s) {
8330
- this.element = t, this.type = 6, this._$AN = undefined, this._$AM = e, this.options = s;
8331
- }
8332
- get _$AU() {
8333
- return this._$AM._$AU;
8334
- }
8335
- _$AI(t) {
8336
- E(this, t);
8337
- }
8338
- }
8339
- var St = I.litHtmlPolyfillSupport;
8340
- St?.(O, U), (I.litHtmlVersions ??= []).push("3.3.1");
8341
- var Ct = (o, t, e) => {
8342
- const s = e?.renderBefore ?? t;
8343
- let i = s._$litPart$;
8344
- if (i === undefined) {
8345
- const n = e?.renderBefore ?? null;
8346
- s._$litPart$ = i = new U(t.insertBefore(k(), n), n, undefined, e ?? {});
8347
- }
8348
- return i._$AI(o), i;
8349
- };
8350
- var q = globalThis;
8351
-
8352
- class C extends A {
8353
- constructor() {
8354
- super(...arguments), this.renderOptions = { host: this }, this._$Do = undefined;
8355
- }
8356
- createRenderRoot() {
8357
- const t = super.createRenderRoot();
8358
- return this.renderOptions.renderBefore ??= t.firstChild, t;
8359
- }
8360
- update(t) {
8361
- const e = this.render();
8362
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Ct(e, this.renderRoot, this.renderOptions);
8363
- }
8364
- connectedCallback() {
8365
- super.connectedCallback(), this._$Do?.setConnected(true);
8366
- }
8367
- disconnectedCallback() {
8368
- super.disconnectedCallback(), this._$Do?.setConnected(false);
8369
- }
8370
- render() {
8371
- return w;
8372
- }
8373
- }
8374
- C._$litElement$ = true, C.finalized = true, q.litElementHydrateSupport?.({ LitElement: C });
8375
- var kt = q.litElementPolyfillSupport;
8376
- kt?.({ LitElement: C });
8377
- (q.litElementVersions ??= []).push("4.2.1");
8378
- var Pt = (o) => (t, e) => {
8379
- e !== undefined ? e.addInitializer(() => {
8380
- customElements.get(o) || customElements.define(o, t);
8381
- }) : customElements.get(o) || customElements.define(o, t);
8382
- };
8383
- var Ot = { attribute: true, type: String, converter: N, reflect: false, hasChanged: L };
8384
- var Ut = (o = Ot, t, e) => {
8385
- const { kind: s, metadata: i } = e;
8386
- let n = globalThis.litPropertyMetadata.get(i);
8387
- if (n === undefined && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map), s === "setter" && ((o = Object.create(o)).wrapped = true), n.set(e.name, o), s === "accessor") {
8388
- const { name: r } = e;
8389
- return { set(h) {
8390
- const a = t.get.call(this);
8391
- t.set.call(this, h), this.requestUpdate(r, a, o);
8392
- }, init(h) {
8393
- return h !== undefined && this.C(r, undefined, o, h), h;
8394
- } };
8395
- }
8396
- if (s === "setter") {
8397
- const { name: r } = e;
8398
- return function(h) {
8399
- const a = this[r];
8400
- t.call(this, h), this.requestUpdate(r, a, o);
8401
- };
8402
- }
8403
- throw Error("Unsupported decorator location: " + s);
8404
- };
8405
- function _(o) {
8406
- return (t, e) => typeof e == "object" ? Ut(o, t, e) : ((s, i, n) => {
8407
- const r = i.hasOwnProperty(n);
8408
- return i.constructor.createProperty(n, s), r ? Object.getOwnPropertyDescriptor(i, n) : undefined;
8409
- })(o, t, e);
8410
- }
8411
- var Mt = Object.defineProperty;
8412
- var Ht = Object.getOwnPropertyDescriptor;
8413
- var b = (o, t, e, s) => {
8414
- for (var i = s > 1 ? undefined : s ? Ht(t, e) : t, n = o.length - 1, r;n >= 0; n--)
8415
- (r = o[n]) && (i = (s ? r(t, e, i) : r(i)) || i);
8416
- return s && i && Mt(t, e, i), i;
8417
- };
8418
- var p = class extends C {
8419
- constructor() {
8420
- super(...arguments), this.variant = "primary", this.size = "default", this.type = "circle", this.state = "default", this.iconName = "home", this.disabled = false, this.buttonAriaLabel = "Icon button";
8421
- }
8422
- createRenderRoot() {
8423
- return this;
8424
- }
8425
- connectedCallback() {
8426
- if (super.connectedCallback(), !document.querySelector('link[href*="Roboto"]')) {
8427
- const o = document.createElement("link");
8428
- o.rel = "stylesheet", o.href = "https://ui.renaissance.com/fonts/Roboto/style.css", document.head.appendChild(o);
8429
- }
8430
- }
8431
- set shape(o) {
8432
- this.type = o;
8433
- }
8434
- get shape() {
8435
- return this.type;
8436
- }
8437
- get buttonClasses() {
8438
- return [
8439
- "nds-icon-button",
8440
- `nds-icon-button--${this.variant}`,
8441
- `nds-icon-button--${this.size}`,
8442
- `nds-icon-button--${this.type}`,
8443
- this.state !== "default" ? `nds-icon-button--${this.state}` : "",
8444
- this.disabled ? "nds-icon-button--disabled" : ""
8445
- ].filter(Boolean).join(" ");
8446
- }
8447
- handleClick(o) {
8448
- if (this.disabled) {
8449
- o.preventDefault(), o.stopPropagation();
8450
- return;
8451
- }
8452
- this.dispatchEvent(new CustomEvent("icon-button-click", {
8453
- bubbles: true,
8454
- composed: true,
8455
- detail: { originalEvent: o }
8456
- }));
8457
- }
8458
- render() {
8459
- return yt`
8460
- <style>
8461
- nds-icon-button {
8462
- display: inline-block;
8463
- }
8464
-
8465
- .nds-icon-button {
8466
- display: inline-flex;
8467
- align-items: center;
8468
- justify-content: center;
8469
- cursor: pointer;
8470
- font-family: var(--font-family-roboto, "Roboto", sans-serif);
8471
- font-weight: var(--font-weight-regular, 400);
8472
- line-height: 1;
8473
- text-decoration: none;
8474
- background: none;
8475
- position: relative;
8476
- box-sizing: border-box;
8477
- margin: 0;
8478
- padding: 0;
8479
- border: none;
8480
- transition: background-color 0.2s ease-in-out,
8481
- color 0.2s ease-in-out,
8482
- box-shadow 0.2s ease-in-out;
8483
- }
8484
-
8485
- /* ── Sizes ── */
8486
- .nds-icon-button--small {
8487
- width: var(--height-32, 32px);
8488
- height: var(--height-32, 32px);
8489
- }
8490
-
8491
- .nds-icon-button--medium {
8492
- width: var(--height-36, 36px);
8493
- height: var(--height-36, 36px);
8494
- }
8495
-
8496
- .nds-icon-button--default {
8497
- width: var(--height-40, 40px);
8498
- height: var(--height-40, 40px);
8499
- }
8500
-
8501
- .nds-icon-button--large {
8502
- width: var(--height-48, 48px);
8503
- height: var(--height-48, 48px);
8504
- }
8505
-
8506
- /* ── Shapes ── */
8507
- .nds-icon-button--circle {
8508
- border-radius: var(--radius-circle, 50%);
8509
- }
8510
-
8511
- .nds-icon-button--rounded {
8512
- border-radius: var(--radius-8, 8px);
8513
- }
8514
-
8515
- /* ── Primary ── */
8516
- .nds-icon-button--primary {
8517
- background-color: var(--color-interactive-blue, #146eb3);
8518
- color: var(--color-primary-white, #ffffff);
8519
- }
8520
-
8521
- .nds-icon-button--primary:hover:not(:disabled):not(.nds-icon-button--disabled) {
8522
- box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
8523
- }
8524
-
8525
- .nds-icon-button--primary:active:not(:disabled):not(.nds-icon-button--disabled) {
8526
- box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
8527
- }
8528
-
8529
- /* ── Secondary ── */
8530
- .nds-icon-button--secondary {
8531
- background-color: var(--color-primary-white, #ffffff);
8532
- color: var(--color-interactive-blue, #146eb3);
8533
- box-shadow: inset 0 0 0 var(--stroke-1, 1px) var(--color-interactive-blue, #146eb3);
8534
- }
8535
-
8536
- .nds-icon-button--secondary:hover:not(:disabled):not(.nds-icon-button--disabled) {
8537
- background-color: var(--color-interactive-blue, #146eb3);
8538
- color: var(--color-primary-white, #ffffff);
8539
- box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
8540
- }
8541
-
8542
- .nds-icon-button--secondary:active:not(:disabled):not(.nds-icon-button--disabled) {
8543
- background-color: var(--color-interactive-blue, #146eb3);
8544
- color: var(--color-primary-white, #ffffff);
8545
- box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
8546
- }
8547
-
8548
- /* ── Tertiary ── */
8549
- .nds-icon-button--tertiary {
8550
- background-color: var(--color-new-gray, #f3f5f7);
8551
- color: var(--color-interactive-blue, #146eb3);
8552
- }
8553
-
8554
- .nds-icon-button--tertiary:hover:not(:disabled):not(.nds-icon-button--disabled) {
8555
- box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-interactive-blue, #146eb3);
8556
- }
8557
-
8558
- .nds-icon-button--tertiary:active:not(:disabled):not(.nds-icon-button--disabled) {
8559
- box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
8560
- }
8561
-
8562
- /* ── Ghost ── */
8563
- .nds-icon-button--ghost {
8564
- background-color: transparent;
8565
- color: var(--color-interactive-blue, #146eb3);
8566
- }
8567
-
8568
- .nds-icon-button--ghost:hover:not(:disabled):not(.nds-icon-button--disabled) {
8569
- background-color: var(--color-new-gray, #f3f5f7);
8570
- box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-interactive-blue, #146eb3);
8571
- }
8572
-
8573
- .nds-icon-button--ghost:active:not(:disabled):not(.nds-icon-button--disabled) {
8574
- background-color: var(--color-new-gray, #f3f5f7);
8575
- box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
8576
- }
8577
-
8578
- /* ── Dark (for dark backgrounds) ── */
8579
- .nds-icon-button--dark {
8580
- background-color: transparent;
8581
- color: var(--color-primary-white, #ffffff);
8582
- box-shadow: inset 0 0 0 var(--stroke-1, 1px) var(--color-primary-white, #ffffff);
8583
- }
8584
-
8585
- .nds-icon-button--dark:hover:not(:disabled):not(.nds-icon-button--disabled) {
8586
- background-color: var(--color-interactive-blue, #146eb3);
8587
- box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-white, #ffffff);
8588
- }
8589
-
8590
- .nds-icon-button--dark:active:not(:disabled):not(.nds-icon-button--disabled) {
8591
- background-color: var(--color-interactive-blue, #146eb3);
8592
- box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-white, #ffffff);
8593
- }
8594
-
8595
- /* ── Disabled ── */
8596
- .nds-icon-button--disabled,
8597
- .nds-icon-button:disabled {
8598
- opacity: 0.5;
8599
- cursor: not-allowed;
8600
- }
8601
-
8602
- /* ── Icon sizing ── */
8603
- .nds-icon-button__icon {
8604
- line-height: 1;
8605
- display: inline-flex;
8606
- align-items: center;
8607
- justify-content: center;
8608
- color: inherit;
8609
- }
8610
-
8611
- .nds-icon-button--small .nds-icon-button__icon {
8612
- font-size: var(--nds-icon-small, 12px);
8613
- }
8614
-
8615
- .nds-icon-button--medium .nds-icon-button__icon {
8616
- font-size: var(--nds-icon-medium, 14px);
8617
- }
8618
-
8619
- .nds-icon-button--default .nds-icon-button__icon {
8620
- font-size: var(--nds-icon-default, 16px);
8621
- }
8622
-
8623
- .nds-icon-button--large .nds-icon-button__icon {
8624
- font-size: var(--nds-icon-large, 20px);
8625
- }
8626
-
8627
- /* ── Focus ── */
8628
- .nds-icon-button:focus-visible {
8629
- outline: 2px solid var(--color-focus-blue, #2b87ff);
8630
- outline-offset: 2px;
8631
- }
8632
-
8633
- /* ── Reduced motion ── */
8634
- @media (prefers-reduced-motion: reduce) {
8635
- .nds-icon-button {
8636
- transition: none;
8637
- }
8638
- }
8639
- </style>
8640
- <button
8641
- type="button"
8642
- class="${this.buttonClasses}"
8643
- ?disabled="${this.disabled}"
8644
- aria-disabled="${this.disabled ? "true" : "false"}"
8645
- aria-label="${this.buttonAriaLabel}"
8646
- @click="${this.handleClick}"
8647
- >
8648
- <i class="fa-light fa-${this.iconName} nds-icon-button__icon" aria-hidden="true"></i>
8649
- </button>
8650
- `;
8651
- }
8652
- };
8653
- b([
8654
- _()
8655
- ], p.prototype, "variant", 2);
8656
- b([
8657
- _()
8658
- ], p.prototype, "size", 2);
8659
- b([
8660
- _()
8661
- ], p.prototype, "type", 2);
8662
- b([
8663
- _()
8664
- ], p.prototype, "state", 2);
8665
- b([
8666
- _({ attribute: "icon-name" })
8667
- ], p.prototype, "iconName", 2);
8668
- b([
8669
- _({ type: Boolean })
8670
- ], p.prototype, "disabled", 2);
8671
- b([
8672
- _({ attribute: "button-aria-label" })
8673
- ], p.prototype, "buttonAriaLabel", 2);
8674
- b([
8675
- _()
8676
- ], p.prototype, "shape", 1);
8677
- p = b([
8678
- Pt("nds-icon-button")
8679
- ], p);
8680
-
8681
7831
  // dist/components/.ItemToolBar.custom-element.unbundled.js
7832
+ import"@pie-players/pie-players-shared/nds-icon-button";
8682
7833
  var __pieDefineSafely = (tagName, ctor) => {
8683
7834
  if (customElements.get(tagName))
8684
7835
  return;
@@ -8692,7 +7843,7 @@ var __pieDefineSafely = (tagName, ctor) => {
8692
7843
  }
8693
7844
  };
8694
7845
  var root_1 = from_html(`<span class="item-toolbar__element-host svelte-rnx3ie"></span>`);
8695
- var root_2 = from_html(`<span class="item-toolbar__calculator-icon svelte-rnx3ie" aria-hidden="true"><i class="fa-regular fa-calculator svelte-rnx3ie"></i></span>`);
7846
+ var root_2 = from_html(`<nds-icon-button></nds-icon-button>`, 2);
8696
7847
  var root_3 = from_html(`<span aria-hidden="true"></span>`);
8697
7848
  var root_4 = from_html(`<img class="item-toolbar__icon-image svelte-rnx3ie" alt=""/>`);
8698
7849
  var root_5 = from_html(`<i aria-hidden="true"></i>`);
@@ -8707,12 +7858,18 @@ var $$css = {
8707
7858
  .item-toolbar--bottom.svelte-rnx3ie {align-items:flex-end;}.item-toolbar--left.svelte-rnx3ie,
8708
7859
  .item-toolbar--right.svelte-rnx3ie {align-items:stretch;}.item-toolbar--left.svelte-rnx3ie .item-toolbar__tools-row:where(.svelte-rnx3ie),
8709
7860
  .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),
8710
- .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;}.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;}
8711
-
8712
- /* Decorative only — the outer link/button owns focus and aria semantics. */.item-toolbar__calculator-icon.svelte-rnx3ie {pointer-events:none;display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%;}
7861
+ .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;}
8713
7862
 
8714
- /* Defensive: if FA fails to load (shadow injection misses, CSP blocks the
8715
- stylesheet, etc.), the <i> would otherwise render as italic text. */.item-toolbar__calculator-icon.svelte-rnx3ie > i:where(.svelte-rnx3ie) {font-style:normal;}`
7863
+ /* Drive the vendored NDS icon button's outer size via its own \`--height-32\`
7864
+ custom property so its light-DOM inner button matches the toolbar's
7865
+ md/sm/lg dimensions (32 / 44 / 40 px) without a layout shift. The glyph
7866
+ keeps the NDS-native icon size (we render size="small"), so it isn't
7867
+ oversized. */.item-toolbar.svelte-rnx3ie nds-icon-button:where(.svelte-rnx3ie) {
7868
+ /* Host-settable button size per toolbar size (drives the NDS outer button
7869
+ via its own --height-32). */--height-32: var(--pie-calculator-button-size, 2rem);
7870
+ /* Host-settable accent for the calculator button: the NDS tertiary glyph
7871
+ colour derives from --color-interactive-blue, remapped here to a
7872
+ themeable variable. */--color-interactive-blue: var(--pie-calculator-button-color, #146eb3);}.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;}`
8716
7873
  };
8717
7874
  function ItemToolBar($$anchor, $$props) {
8718
7875
  push($$props, true);
@@ -8779,6 +7936,28 @@ function ItemToolBar($$anchor, $$props) {
8779
7936
  installFaInToolbarShadow(node);
8780
7937
  return {};
8781
7938
  };
7939
+ const reflectToggleState = (node, pressed) => {
7940
+ let current = pressed;
7941
+ const apply2 = () => {
7942
+ const inner = node.querySelector("button");
7943
+ if (inner)
7944
+ inner.setAttribute("aria-pressed", current ? "true" : "false");
7945
+ };
7946
+ apply2();
7947
+ const observer = new MutationObserver(apply2);
7948
+ observer.observe(node, { childList: true, subtree: true });
7949
+ return {
7950
+ update(next2) {
7951
+ current = next2;
7952
+ apply2();
7953
+ },
7954
+ destroy() {
7955
+ observer.disconnect();
7956
+ }
7957
+ };
7958
+ };
7959
+ const TOOL_FA_ICON_BY_ID = { calculator: "calculator" };
7960
+ const resolveFaIconName = (item2) => TOOL_FA_ICON_BY_ID[item2.id] ?? null;
8782
7961
  const fallbackToolRegistry = createPackagedToolRegistry();
8783
7962
  let activeToolState = state(proxy({}));
8784
7963
  let level = prop($$props, "level", 7, "item"), scopeId = prop($$props, "scopeId", 7, ""), itemId = prop($$props, "itemId", 7, ""), sectionId = prop($$props, "sectionId", 7, ""), catalogId = prop($$props, "catalogId", 7, ""), tools = prop($$props, "tools", 7, "calculator,textToSpeech,answerEliminator"), contentKind = prop($$props, "contentKind", 7, "assessment-item"), position = prop($$props, "position", 7, "bottom"), scopeElement = prop($$props, "scopeElement", 7, null), toolRegistry = prop($$props, "toolRegistry", 7, null), item = prop($$props, "item", 7, null), hostButtons = prop($$props, "hostButtons", 23, () => []), className = prop($$props, "class", 7, ""), size = prop($$props, "size", 7, "md"), language = prop($$props, "language", 7, "en-US");
@@ -9393,8 +8572,8 @@ function ItemToolBar($$anchor, $$props) {
9393
8572
  let resizeStartShellY = 0;
9394
8573
  let resizeCorner = null;
9395
8574
  const resizeHandleEls = [];
9396
- let x2 = 0;
9397
- let y2 = 0;
8575
+ let x = 0;
8576
+ let y = 0;
9398
8577
  let width = currentArgs.mounted.entry.shell?.initialWidth ?? 720;
9399
8578
  let height = currentArgs.mounted.entry.shell?.initialHeight ?? 560;
9400
8579
  let focusTrapCleanup = null;
@@ -9504,16 +8683,16 @@ function ItemToolBar($$anchor, $$props) {
9504
8683
  const effectiveMinHeight = Math.min(minHeight, window.innerHeight);
9505
8684
  width = clamp(width, effectiveMinWidth, Math.max(effectiveMinWidth, Math.min(maxWidth, window.innerWidth)));
9506
8685
  height = clamp(height, effectiveMinHeight, Math.max(effectiveMinHeight, Math.min(maxHeight, window.innerHeight)));
9507
- x2 = clamp(x2, 0, Math.max(0, window.innerWidth - width));
9508
- y2 = clamp(y2, 0, Math.max(0, window.innerHeight - height));
8686
+ x = clamp(x, 0, Math.max(0, window.innerWidth - width));
8687
+ y = clamp(y, 0, Math.max(0, window.innerHeight - height));
9509
8688
  applyShellStyle();
9510
8689
  applyContentMinWidth();
9511
8690
  applyContentLayout();
9512
8691
  notifyHostedResize();
9513
8692
  };
9514
8693
  const moveBy = (dx, dy) => {
9515
- x2 += dx;
9516
- y2 += dy;
8694
+ x += dx;
8695
+ y += dy;
9517
8696
  applyPositionAndSize();
9518
8697
  };
9519
8698
  const resizeBy = (dw, dh) => {
@@ -9594,8 +8773,8 @@ function ItemToolBar($$anchor, $$props) {
9594
8773
  const applyShellStyle = () => {
9595
8774
  if (!shellEl)
9596
8775
  return;
9597
- shellEl.style.left = `${x2}px`;
9598
- shellEl.style.top = `${y2}px`;
8776
+ shellEl.style.left = `${x}px`;
8777
+ shellEl.style.top = `${y}px`;
9599
8778
  shellEl.style.width = `${width}px`;
9600
8779
  shellEl.style.height = `${height}px`;
9601
8780
  shellEl.style.display = currentArgs.active ? "flex" : "none";
@@ -9641,24 +8820,24 @@ function ItemToolBar($$anchor, $$props) {
9641
8820
  const verticalMargin = margin + 60;
9642
8821
  switch (align) {
9643
8822
  case "top-left":
9644
- x2 = margin;
9645
- y2 = verticalMargin;
8823
+ x = margin;
8824
+ y = verticalMargin;
9646
8825
  break;
9647
8826
  case "top-right":
9648
- x2 = Math.max(0, viewportW - width - margin);
9649
- y2 = verticalMargin;
8827
+ x = Math.max(0, viewportW - width - margin);
8828
+ y = verticalMargin;
9650
8829
  break;
9651
8830
  case "bottom-left":
9652
- x2 = margin;
9653
- y2 = Math.max(0, viewportH - height - verticalMargin);
8831
+ x = margin;
8832
+ y = Math.max(0, viewportH - height - verticalMargin);
9654
8833
  break;
9655
8834
  case "bottom-right":
9656
- x2 = Math.max(0, viewportW - width - margin);
9657
- y2 = Math.max(0, viewportH - height - verticalMargin);
8835
+ x = Math.max(0, viewportW - width - margin);
8836
+ y = Math.max(0, viewportH - height - verticalMargin);
9658
8837
  break;
9659
8838
  default:
9660
- x2 = Math.max(0, Math.round((viewportW - width) / 2));
9661
- y2 = Math.max(0, Math.round((viewportH - height) / 2));
8839
+ x = Math.max(0, Math.round((viewportW - width) / 2));
8840
+ y = Math.max(0, Math.round((viewportH - height) / 2));
9662
8841
  }
9663
8842
  applyPositionAndSize();
9664
8843
  };
@@ -9823,8 +9002,8 @@ function ItemToolBar($$anchor, $$props) {
9823
9002
  return;
9824
9003
  event2.preventDefault();
9825
9004
  dragPointerId = event2.pointerId;
9826
- dragOffsetX = event2.clientX - x2;
9827
- dragOffsetY = event2.clientY - y2;
9005
+ dragOffsetX = event2.clientX - x;
9006
+ dragOffsetY = event2.clientY - y;
9828
9007
  shellEl.setPointerCapture(event2.pointerId);
9829
9008
  bringToFront();
9830
9009
  };
@@ -9839,8 +9018,8 @@ function ItemToolBar($$anchor, $$props) {
9839
9018
  resizeStartHeight = height;
9840
9019
  resizeStartX = event2.clientX;
9841
9020
  resizeStartY = event2.clientY;
9842
- resizeStartShellX = x2;
9843
- resizeStartShellY = y2;
9021
+ resizeStartShellX = x;
9022
+ resizeStartShellY = y;
9844
9023
  shellEl.setPointerCapture(event2.pointerId);
9845
9024
  bringToFront();
9846
9025
  };
@@ -9851,8 +9030,8 @@ function ItemToolBar($$anchor, $$props) {
9851
9030
  event2.preventDefault();
9852
9031
  const maxX = Math.max(0, window.innerWidth - width);
9853
9032
  const maxY = Math.max(0, window.innerHeight - height);
9854
- x2 = clamp(event2.clientX - dragOffsetX, 0, maxX);
9855
- y2 = clamp(event2.clientY - dragOffsetY, 0, maxY);
9033
+ x = clamp(event2.clientX - dragOffsetX, 0, maxX);
9034
+ y = clamp(event2.clientY - dragOffsetY, 0, maxY);
9856
9035
  applyShellStyle();
9857
9036
  return;
9858
9037
  }
@@ -9868,28 +9047,28 @@ function ItemToolBar($$anchor, $$props) {
9868
9047
  const dx = event2.clientX - resizeStartX;
9869
9048
  const dy = event2.clientY - resizeStartY;
9870
9049
  if (resizeCorner === "se") {
9871
- width = clamp(resizeStartWidth + dx, minWidth, Math.max(minWidth, Math.min(maxWidth, window.innerWidth - x2)));
9872
- height = clamp(resizeStartHeight + dy, minHeight, Math.max(minHeight, Math.min(maxHeight, window.innerHeight - y2)));
9050
+ width = clamp(resizeStartWidth + dx, minWidth, Math.max(minWidth, Math.min(maxWidth, window.innerWidth - x)));
9051
+ height = clamp(resizeStartHeight + dy, minHeight, Math.max(minHeight, Math.min(maxHeight, window.innerHeight - y)));
9873
9052
  } else if (resizeCorner === "sw") {
9874
9053
  const rightEdge = resizeStartShellX + resizeStartWidth;
9875
9054
  const newWidth = clamp(resizeStartWidth - dx, minWidth, Math.min(maxWidth, rightEdge));
9876
- x2 = rightEdge - newWidth;
9055
+ x = rightEdge - newWidth;
9877
9056
  width = newWidth;
9878
- height = clamp(resizeStartHeight + dy, minHeight, Math.max(minHeight, Math.min(maxHeight, window.innerHeight - y2)));
9057
+ height = clamp(resizeStartHeight + dy, minHeight, Math.max(minHeight, Math.min(maxHeight, window.innerHeight - y)));
9879
9058
  } else if (resizeCorner === "ne") {
9880
9059
  const bottomEdge = resizeStartShellY + resizeStartHeight;
9881
- width = clamp(resizeStartWidth + dx, minWidth, Math.max(minWidth, Math.min(maxWidth, window.innerWidth - x2)));
9060
+ width = clamp(resizeStartWidth + dx, minWidth, Math.max(minWidth, Math.min(maxWidth, window.innerWidth - x)));
9882
9061
  const newHeight = clamp(resizeStartHeight - dy, minHeight, Math.min(maxHeight, bottomEdge));
9883
- y2 = bottomEdge - newHeight;
9062
+ y = bottomEdge - newHeight;
9884
9063
  height = newHeight;
9885
9064
  } else if (resizeCorner === "nw") {
9886
9065
  const rightEdge = resizeStartShellX + resizeStartWidth;
9887
9066
  const bottomEdge = resizeStartShellY + resizeStartHeight;
9888
9067
  const newWidth = clamp(resizeStartWidth - dx, minWidth, Math.min(maxWidth, rightEdge));
9889
- x2 = rightEdge - newWidth;
9068
+ x = rightEdge - newWidth;
9890
9069
  width = newWidth;
9891
9070
  const newHeight = clamp(resizeStartHeight - dy, minHeight, Math.min(maxHeight, bottomEdge));
9892
- y2 = bottomEdge - newHeight;
9071
+ y = bottomEdge - newHeight;
9893
9072
  height = newHeight;
9894
9073
  }
9895
9074
  applyShellStyle();
@@ -10382,7 +9561,7 @@ function ItemToolBar($$anchor, $$props) {
10382
9561
  var fragment = comment();
10383
9562
  var node_1 = first_child(fragment);
10384
9563
  {
10385
- var consequent_15 = ($$anchor2) => {
9564
+ var consequent_14 = ($$anchor2) => {
10386
9565
  var div = root_10();
10387
9566
  let classes;
10388
9567
  var div_1 = child(div);
@@ -10415,9 +9594,27 @@ function ItemToolBar($$anchor, $$props) {
10415
9594
  });
10416
9595
  var node_4 = sibling(node_2, 2);
10417
9596
  each(node_4, 17, () => get2(toolbarItems), (item2) => item2.id, ($$anchor3, item2, $$index_1, $$array) => {
9597
+ const faIconName = user_derived(() => isToolbarLinkItem(get2(item2)) ? null : resolveFaIconName(get2(item2)));
10418
9598
  var fragment_2 = comment();
10419
9599
  var node_5 = first_child(fragment_2);
10420
9600
  {
9601
+ var consequent_1 = ($$anchor4) => {
9602
+ var nds_icon_button = root_2();
9603
+ set_class(nds_icon_button, 1, "item-toolbar__nds-button svelte-rnx3ie");
9604
+ set_custom_element_data(nds_icon_button, "type", "circle");
9605
+ set_custom_element_data(nds_icon_button, "size", "small");
9606
+ set_custom_element_data(nds_icon_button, "variant", "tertiary");
9607
+ template_effect(() => set_custom_element_data(nds_icon_button, "icon-name", get2(faIconName)));
9608
+ template_effect(() => set_custom_element_data(nds_icon_button, "button-aria-label", get2(item2).ariaLabel || get2(item2).label));
9609
+ template_effect(() => set_custom_element_data(nds_icon_button, "title", get2(item2).tooltip || get2(item2).label));
9610
+ template_effect(() => set_custom_element_data(nds_icon_button, "disabled", get2(item2).disabled));
9611
+ action(nds_icon_button, ($$node) => ndsIconButtonAction?.($$node));
9612
+ action(nds_icon_button, ($$node, $$action_arg) => reflectToggleState?.($$node, $$action_arg), () => isToolbarItemActive(get2(item2)));
9613
+ delegated("click", nds_icon_button, function(...$$args) {
9614
+ get2(item2).onClick?.apply(this, $$args);
9615
+ });
9616
+ append($$anchor4, nds_icon_button);
9617
+ };
10421
9618
  var consequent_6 = ($$anchor4) => {
10422
9619
  var a = root_6();
10423
9620
  let classes_1;
@@ -10427,18 +9624,13 @@ function ItemToolBar($$anchor, $$props) {
10427
9624
  var fragment_3 = comment();
10428
9625
  var node_7 = first_child(fragment_3);
10429
9626
  {
10430
- var consequent_1 = ($$anchor6) => {
10431
- var span_2 = root_2();
10432
- action(span_2, ($$node) => ndsIconButtonAction?.($$node));
10433
- append($$anchor6, span_2);
10434
- };
10435
9627
  var consequent_2 = ($$anchor6) => {
10436
- var span_3 = root_3();
10437
- html(span_3, () => sanitizeSvgIcon(get2(item2).icon), true);
10438
- reset(span_3);
10439
- append($$anchor6, span_3);
9628
+ var span_2 = root_3();
9629
+ html(span_2, () => sanitizeSvgIcon(get2(item2).icon), true);
9630
+ reset(span_2);
9631
+ append($$anchor6, span_2);
10440
9632
  };
10441
- var d2 = user_derived(() => isInlineSvgIcon(get2(item2).icon));
9633
+ var d = user_derived(() => isInlineSvgIcon(get2(item2).icon));
10442
9634
  var consequent_3 = ($$anchor6) => {
10443
9635
  var img = root_4();
10444
9636
  template_effect(() => set_attribute2(img, "src", get2(item2).icon));
@@ -10451,10 +9643,10 @@ function ItemToolBar($$anchor, $$props) {
10451
9643
  var node_8 = first_child(fragment_4);
10452
9644
  {
10453
9645
  var consequent_4 = ($$anchor7) => {
10454
- var span_4 = root_3();
10455
- html(span_4, () => sanitizeSvgIcon(get2(fallbackIcon)), true);
10456
- reset(span_4);
10457
- append($$anchor7, span_4);
9646
+ var span_3 = root_3();
9647
+ html(span_3, () => sanitizeSvgIcon(get2(fallbackIcon)), true);
9648
+ reset(span_3);
9649
+ append($$anchor7, span_3);
10458
9650
  };
10459
9651
  var alternate_1 = ($$anchor7) => {
10460
9652
  var i_1 = root_5();
@@ -10471,12 +9663,10 @@ function ItemToolBar($$anchor, $$props) {
10471
9663
  append($$anchor6, fragment_4);
10472
9664
  };
10473
9665
  if_block(node_7, ($$render) => {
10474
- if (get2(item2).icon === "calculator")
10475
- $$render(consequent_1);
10476
- else if (get2(d2))
10477
- $$render(consequent_2, 1);
9666
+ if (get2(d))
9667
+ $$render(consequent_2);
10478
9668
  else if (get2(d_1))
10479
- $$render(consequent_3, 2);
9669
+ $$render(consequent_3, 1);
10480
9670
  else
10481
9671
  $$render(alternate_2, -1);
10482
9672
  });
@@ -10515,23 +9705,18 @@ function ItemToolBar($$anchor, $$props) {
10515
9705
  let classes_2;
10516
9706
  var node_9 = child(button_1);
10517
9707
  {
10518
- var consequent_11 = ($$anchor5) => {
9708
+ var consequent_10 = ($$anchor5) => {
10519
9709
  var fragment_5 = comment();
10520
9710
  var node_10 = first_child(fragment_5);
10521
9711
  {
10522
9712
  var consequent_7 = ($$anchor6) => {
10523
- var span_5 = root_2();
10524
- action(span_5, ($$node) => ndsIconButtonAction?.($$node));
10525
- append($$anchor6, span_5);
10526
- };
10527
- var consequent_8 = ($$anchor6) => {
10528
- var span_6 = root_3();
10529
- html(span_6, () => sanitizeSvgIcon(get2(item2).icon), true);
10530
- reset(span_6);
10531
- append($$anchor6, span_6);
9713
+ var span_4 = root_3();
9714
+ html(span_4, () => sanitizeSvgIcon(get2(item2).icon), true);
9715
+ reset(span_4);
9716
+ append($$anchor6, span_4);
10532
9717
  };
10533
9718
  var d_3 = user_derived(() => isInlineSvgIcon(get2(item2).icon));
10534
- var consequent_9 = ($$anchor6) => {
9719
+ var consequent_8 = ($$anchor6) => {
10535
9720
  var img_1 = root_4();
10536
9721
  template_effect(() => set_attribute2(img_1, "src", get2(item2).icon));
10537
9722
  append($$anchor6, img_1);
@@ -10542,11 +9727,11 @@ function ItemToolBar($$anchor, $$props) {
10542
9727
  var fragment_6 = comment();
10543
9728
  var node_11 = first_child(fragment_6);
10544
9729
  {
10545
- var consequent_10 = ($$anchor7) => {
10546
- var span_7 = root_3();
10547
- html(span_7, () => sanitizeSvgIcon(get2(fallbackIcon)), true);
10548
- reset(span_7);
10549
- append($$anchor7, span_7);
9730
+ var consequent_9 = ($$anchor7) => {
9731
+ var span_5 = root_3();
9732
+ html(span_5, () => sanitizeSvgIcon(get2(fallbackIcon)), true);
9733
+ reset(span_5);
9734
+ append($$anchor7, span_5);
10550
9735
  };
10551
9736
  var alternate_3 = ($$anchor7) => {
10552
9737
  var i_2 = root_5();
@@ -10555,7 +9740,7 @@ function ItemToolBar($$anchor, $$props) {
10555
9740
  };
10556
9741
  if_block(node_11, ($$render) => {
10557
9742
  if (get2(fallbackIcon))
10558
- $$render(consequent_10);
9743
+ $$render(consequent_9);
10559
9744
  else
10560
9745
  $$render(alternate_3, -1);
10561
9746
  });
@@ -10563,12 +9748,10 @@ function ItemToolBar($$anchor, $$props) {
10563
9748
  append($$anchor6, fragment_6);
10564
9749
  };
10565
9750
  if_block(node_10, ($$render) => {
10566
- if (get2(item2).icon === "calculator")
9751
+ if (get2(d_3))
10567
9752
  $$render(consequent_7);
10568
- else if (get2(d_3))
10569
- $$render(consequent_8, 1);
10570
9753
  else if (get2(d_4))
10571
- $$render(consequent_9, 2);
9754
+ $$render(consequent_8, 1);
10572
9755
  else
10573
9756
  $$render(alternate_4, -1);
10574
9757
  });
@@ -10577,7 +9760,7 @@ function ItemToolBar($$anchor, $$props) {
10577
9760
  };
10578
9761
  if_block(node_9, ($$render) => {
10579
9762
  if (get2(item2).icon)
10580
- $$render(consequent_11);
9763
+ $$render(consequent_10);
10581
9764
  });
10582
9765
  }
10583
9766
  reset(button_1);
@@ -10599,8 +9782,10 @@ function ItemToolBar($$anchor, $$props) {
10599
9782
  append($$anchor4, button_1);
10600
9783
  };
10601
9784
  if_block(node_5, ($$render) => {
10602
- if (get2(d_2))
10603
- $$render(consequent_6);
9785
+ if (get2(faIconName))
9786
+ $$render(consequent_1);
9787
+ else if (get2(d_2))
9788
+ $$render(consequent_6, 1);
10604
9789
  else
10605
9790
  $$render(alternate_5, -1);
10606
9791
  });
@@ -10612,22 +9797,22 @@ function ItemToolBar($$anchor, $$props) {
10612
9797
  var fragment_7 = comment();
10613
9798
  var node_13 = first_child(fragment_7);
10614
9799
  {
10615
- var consequent_12 = ($$anchor4) => {
10616
- var span_8 = root_1();
10617
- action(span_8, ($$node, $$action_arg) => mountElementWithShell?.($$node, $$action_arg), () => ({
9800
+ var consequent_11 = ($$anchor4) => {
9801
+ var span_6 = root_1();
9802
+ action(span_6, ($$node, $$action_arg) => mountElementWithShell?.($$node, $$action_arg), () => ({
10618
9803
  mounted: get2(mounted),
10619
9804
  active: get2(renderedToolActiveById)[get2(mounted).toolId] ?? false
10620
9805
  }));
10621
- append($$anchor4, span_8);
9806
+ append($$anchor4, span_6);
10622
9807
  };
10623
9808
  var alternate_6 = ($$anchor4) => {
10624
- var span_9 = root_1();
10625
- action(span_9, ($$node, $$action_arg) => mountElement?.($$node, $$action_arg), () => get2(mounted).entry.element);
10626
- append($$anchor4, span_9);
9809
+ var span_7 = root_1();
9810
+ action(span_7, ($$node, $$action_arg) => mountElement?.($$node, $$action_arg), () => get2(mounted).entry.element);
9811
+ append($$anchor4, span_7);
10627
9812
  };
10628
9813
  if_block(node_13, ($$render) => {
10629
9814
  if (get2(mounted).entry.shell)
10630
- $$render(consequent_12);
9815
+ $$render(consequent_11);
10631
9816
  else
10632
9817
  $$render(alternate_6, -1);
10633
9818
  });
@@ -10637,29 +9822,29 @@ function ItemToolBar($$anchor, $$props) {
10637
9822
  reset(div_1);
10638
9823
  var node_14 = sibling(div_1, 2);
10639
9824
  {
10640
- var consequent_14 = ($$anchor3) => {
9825
+ var consequent_13 = ($$anchor3) => {
10641
9826
  var div_2 = root_9();
10642
9827
  let classes_3;
10643
9828
  each(div_2, 21, () => get2(mountedElementsControlsRow), (mounted) => mounted.key, ($$anchor4, mounted) => {
10644
9829
  var fragment_8 = comment();
10645
9830
  var node_15 = first_child(fragment_8);
10646
9831
  {
10647
- var consequent_13 = ($$anchor5) => {
10648
- var span_10 = root_8();
10649
- action(span_10, ($$node, $$action_arg) => mountElementWithShell?.($$node, $$action_arg), () => ({
9832
+ var consequent_12 = ($$anchor5) => {
9833
+ var span_8 = root_8();
9834
+ action(span_8, ($$node, $$action_arg) => mountElementWithShell?.($$node, $$action_arg), () => ({
10650
9835
  mounted: get2(mounted),
10651
9836
  active: get2(renderedToolActiveById)[get2(mounted).toolId] ?? false
10652
9837
  }));
10653
- append($$anchor5, span_10);
9838
+ append($$anchor5, span_8);
10654
9839
  };
10655
9840
  var alternate_7 = ($$anchor5) => {
10656
- var span_11 = root_8();
10657
- action(span_11, ($$node, $$action_arg) => mountElement?.($$node, $$action_arg), () => get2(mounted).entry.element);
10658
- append($$anchor5, span_11);
9841
+ var span_9 = root_8();
9842
+ action(span_9, ($$node, $$action_arg) => mountElement?.($$node, $$action_arg), () => get2(mounted).entry.element);
9843
+ append($$anchor5, span_9);
10659
9844
  };
10660
9845
  if_block(node_15, ($$render) => {
10661
9846
  if (get2(mounted).entry.shell)
10662
- $$render(consequent_13);
9847
+ $$render(consequent_12);
10663
9848
  else
10664
9849
  $$render(alternate_7, -1);
10665
9850
  });
@@ -10676,7 +9861,7 @@ function ItemToolBar($$anchor, $$props) {
10676
9861
  };
10677
9862
  if_block(node_14, ($$render) => {
10678
9863
  if (get2(shouldRenderControlsRow))
10679
- $$render(consequent_14);
9864
+ $$render(consequent_13);
10680
9865
  });
10681
9866
  }
10682
9867
  reset(div);
@@ -10696,7 +9881,7 @@ function ItemToolBar($$anchor, $$props) {
10696
9881
  };
10697
9882
  if_block(node_1, ($$render) => {
10698
9883
  if (isBrowser)
10699
- $$render(consequent_15);
9884
+ $$render(consequent_14);
10700
9885
  });
10701
9886
  }
10702
9887
  append($$anchor, fragment);