diff --git a/web/js/gallery_extension.js b/web/js/gallery_extension.js index ab68a1d..265e67d 100644 --- a/web/js/gallery_extension.js +++ b/web/js/gallery_extension.js @@ -1,6 +1,6 @@ import { api as te } from "/scripts/api.js"; import { app as Yc } from "/scripts/app.js"; -function ym(e) { +function vm(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var Xc = { exports: {} }, re = {}; @@ -13,8 +13,8 @@ var Xc = { exports: {} }, re = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var ul = Symbol.for("react.element"), vm = Symbol.for("react.portal"), wm = Symbol.for("react.fragment"), xm = Symbol.for("react.strict_mode"), _m = Symbol.for("react.profiler"), km = Symbol.for("react.provider"), Sm = Symbol.for("react.context"), jm = Symbol.for("react.forward_ref"), bm = Symbol.for("react.suspense"), Em = Symbol.for("react.memo"), Cm = Symbol.for("react.lazy"), _i = Symbol.iterator; -function Nm(e) { +var ul = Symbol.for("react.element"), wm = Symbol.for("react.portal"), xm = Symbol.for("react.fragment"), _m = Symbol.for("react.strict_mode"), km = Symbol.for("react.profiler"), Sm = Symbol.for("react.provider"), jm = Symbol.for("react.context"), bm = Symbol.for("react.forward_ref"), Em = Symbol.for("react.suspense"), Cm = Symbol.for("react.memo"), Nm = Symbol.for("react.lazy"), _i = Symbol.iterator; +function Mm(e) { return e === null || typeof e != "object" ? null : (e = _i && e[_i] || e["@@iterator"], typeof e == "function" ? e : null); } var Zc = { isMounted: function() { @@ -57,13 +57,13 @@ function ld(e, t, n) { if (e && e.defaultProps) for (r in i = e.defaultProps, i) l[r] === void 0 && (l[r] = i[r]); return { $$typeof: ul, type: e, key: a, ref: o, props: l, _owner: vo.current }; } -function Mm(e, t) { +function Im(e, t) { return { $$typeof: ul, type: e.type, key: t, ref: e.ref, props: e.props, _owner: e._owner }; } function wo(e) { return typeof e == "object" && e !== null && e.$$typeof === ul; } -function Im(e) { +function Tm(e) { var t = { "=": "=0", ":": "=2" }; return "$" + e.replace(/[=:]/g, function(n) { return t[n]; @@ -71,7 +71,7 @@ function Im(e) { } var Si = /\/+/g; function Vs(e, t) { - return typeof e == "object" && e !== null && e.key != null ? Im("" + e.key) : t.toString(36); + return typeof e == "object" && e !== null && e.key != null ? Tm("" + e.key) : t.toString(36); } function Wl(e, t, n, r, l) { var a = typeof e; @@ -86,19 +86,19 @@ function Wl(e, t, n, r, l) { case "object": switch (e.$$typeof) { case ul: - case vm: + case wm: o = !0; } } if (o) return o = e, l = l(o), e = r === "" ? "." + Vs(o, 0) : r, ki(l) ? (n = "", e != null && (n = e.replace(Si, "$&/") + "/"), Wl(l, t, n, "", function(d) { return d; - })) : l != null && (wo(l) && (l = Mm(l, n + (!l.key || o && o.key === l.key ? "" : ("" + l.key).replace(Si, "$&/") + "/") + e)), t.push(l)), 1; + })) : l != null && (wo(l) && (l = Im(l, n + (!l.key || o && o.key === l.key ? "" : ("" + l.key).replace(Si, "$&/") + "/") + e)), t.push(l)), 1; if (o = 0, r = r === "" ? "." : r + ":", ki(e)) for (var i = 0; i < e.length; i++) { a = e[i]; var c = r + Vs(a, i); o += Wl(a, t, n, c, l); } - else if (c = Nm(e), typeof c == "function") for (e = c.call(e), i = 0; !(a = e.next()).done; ) a = a.value, c = r + Vs(a, i++), o += Wl(a, t, n, c, l); + else if (c = Mm(e), typeof c == "function") for (e = c.call(e), i = 0; !(a = e.next()).done; ) a = a.value, c = r + Vs(a, i++), o += Wl(a, t, n, c, l); else if (a === "object") throw t = String(e), Error("Objects are not valid as a React child (found: " + (t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead."); return o; } @@ -109,7 +109,7 @@ function vl(e, t, n) { return t.call(n, a, l++); }), r; } -function Tm(e) { +function Lm(e) { if (e._status === -1) { var t = e._result; t = t(), t.then(function(n) { @@ -121,7 +121,7 @@ function Tm(e) { if (e._status === 1) return e._result.default; throw e._result; } -var He = { current: null }, $l = { transition: null }, Lm = { ReactCurrentDispatcher: He, ReactCurrentBatchConfig: $l, ReactCurrentOwner: vo }; +var He = { current: null }, $l = { transition: null }, Dm = { ReactCurrentDispatcher: He, ReactCurrentBatchConfig: $l, ReactCurrentOwner: vo }; function sd() { throw Error("act(...) is not supported in production builds of React."); } @@ -143,12 +143,12 @@ re.Children = { map: vl, forEach: function(e, t, n) { return e; } }; re.Component = mr; -re.Fragment = wm; -re.Profiler = _m; +re.Fragment = xm; +re.Profiler = km; re.PureComponent = go; -re.StrictMode = xm; -re.Suspense = bm; -re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Lm; +re.StrictMode = _m; +re.Suspense = Em; +re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Dm; re.act = sd; re.cloneElement = function(e, t, n) { if (e == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + "."); @@ -167,7 +167,7 @@ re.cloneElement = function(e, t, n) { return { $$typeof: ul, type: e.type, key: l, ref: a, props: r, _owner: o }; }; re.createContext = function(e) { - return e = { $$typeof: Sm, _currentValue: e, _currentValue2: e, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, e.Provider = { $$typeof: km, _context: e }, e.Consumer = e; + return e = { $$typeof: jm, _currentValue: e, _currentValue2: e, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, e.Provider = { $$typeof: Sm, _context: e }, e.Consumer = e; }; re.createElement = ld; re.createFactory = function(e) { @@ -178,14 +178,14 @@ re.createRef = function() { return { current: null }; }; re.forwardRef = function(e) { - return { $$typeof: jm, render: e }; + return { $$typeof: bm, render: e }; }; re.isValidElement = wo; re.lazy = function(e) { - return { $$typeof: Cm, _payload: { _status: -1, _result: e }, _init: Tm }; + return { $$typeof: Nm, _payload: { _status: -1, _result: e }, _init: Lm }; }; re.memo = function(e, t) { - return { $$typeof: Em, type: e, compare: t === void 0 ? null : t }; + return { $$typeof: Cm, type: e, compare: t === void 0 ? null : t }; }; re.startTransition = function(e) { var t = $l.transition; @@ -244,7 +244,7 @@ re.useTransition = function() { re.version = "18.3.1"; Xc.exports = re; var h = Xc.exports; -const en = /* @__PURE__ */ ym(h); +const en = /* @__PURE__ */ vm(h); var ad = { exports: {} }, st = {}, od = { exports: {} }, id = {}; /** * @license React @@ -453,7 +453,7 @@ var ad = { exports: {} }, st = {}, od = { exports: {} }, id = {}; }; })(id); od.exports = id; -var Dm = od.exports; +var Rm = od.exports; /** * @license React * react-dom.production.min.js @@ -463,7 +463,7 @@ var Dm = od.exports; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var Rm = h, lt = Dm; +var Pm = h, lt = Rm; function V(e) { for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++) t += "&args[]=" + encodeURIComponent(arguments[n]); return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; @@ -475,11 +475,11 @@ function Dn(e, t) { function sr(e, t) { for (Ur[e] = t, e = 0; e < t.length; e++) cd.add(t[e]); } -var zt = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"), wa = Object.prototype.hasOwnProperty, Pm = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, ji = {}, bi = {}; -function Om(e) { - return wa.call(bi, e) ? !0 : wa.call(ji, e) ? !1 : Pm.test(e) ? bi[e] = !0 : (ji[e] = !0, !1); +var zt = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"), wa = Object.prototype.hasOwnProperty, Om = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, ji = {}, bi = {}; +function Am(e) { + return wa.call(bi, e) ? !0 : wa.call(ji, e) ? !1 : Om.test(e) ? bi[e] = !0 : (ji[e] = !0, !1); } -function Am(e, t, n, r) { +function zm(e, t, n, r) { if (n !== null && n.type === 0) return !1; switch (typeof t) { case "function": @@ -491,8 +491,8 @@ function Am(e, t, n, r) { return !1; } } -function zm(e, t, n, r) { - if (t === null || typeof t > "u" || Am(e, t, n, r)) return !0; +function Fm(e, t, n, r) { + if (t === null || typeof t > "u" || zm(e, t, n, r)) return !0; if (r) return !1; if (n !== null) switch (n.type) { case 3: @@ -566,9 +566,9 @@ ze.xlinkHref = new Ke("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/ }); function ko(e, t, n, r) { var l = ze.hasOwnProperty(t) ? ze[t] : null; - (l !== null ? l.type !== 0 : r || !(2 < t.length) || t[0] !== "o" && t[0] !== "O" || t[1] !== "n" && t[1] !== "N") && (zm(t, n, l, r) && (n = null), r || l === null ? Om(t) && (n === null ? e.removeAttribute(t) : e.setAttribute(t, "" + n)) : l.mustUseProperty ? e[l.propertyName] = n === null ? l.type === 3 ? !1 : "" : n : (t = l.attributeName, r = l.attributeNamespace, n === null ? e.removeAttribute(t) : (l = l.type, n = l === 3 || l === 4 && n === !0 ? "" : "" + n, r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n)))); + (l !== null ? l.type !== 0 : r || !(2 < t.length) || t[0] !== "o" && t[0] !== "O" || t[1] !== "n" && t[1] !== "N") && (Fm(t, n, l, r) && (n = null), r || l === null ? Am(t) && (n === null ? e.removeAttribute(t) : e.setAttribute(t, "" + n)) : l.mustUseProperty ? e[l.propertyName] = n === null ? l.type === 3 ? !1 : "" : n : (t = l.attributeName, r = l.attributeNamespace, n === null ? e.removeAttribute(t) : (l = l.type, n = l === 3 || l === 4 && n === !0 ? "" : "" + n, r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n)))); } -var Vt = Rm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, wl = Symbol.for("react.element"), Wn = Symbol.for("react.portal"), $n = Symbol.for("react.fragment"), So = Symbol.for("react.strict_mode"), xa = Symbol.for("react.profiler"), dd = Symbol.for("react.provider"), ud = Symbol.for("react.context"), jo = Symbol.for("react.forward_ref"), _a = Symbol.for("react.suspense"), ka = Symbol.for("react.suspense_list"), bo = Symbol.for("react.memo"), Yt = Symbol.for("react.lazy"), fd = Symbol.for("react.offscreen"), Ei = Symbol.iterator; +var Vt = Pm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, wl = Symbol.for("react.element"), Wn = Symbol.for("react.portal"), $n = Symbol.for("react.fragment"), So = Symbol.for("react.strict_mode"), xa = Symbol.for("react.profiler"), dd = Symbol.for("react.provider"), ud = Symbol.for("react.context"), jo = Symbol.for("react.forward_ref"), _a = Symbol.for("react.suspense"), ka = Symbol.for("react.suspense_list"), bo = Symbol.for("react.memo"), Yt = Symbol.for("react.lazy"), fd = Symbol.for("react.offscreen"), Ei = Symbol.iterator; function wr(e) { return e === null || typeof e != "object" ? null : (e = Ei && e[Ei] || e["@@iterator"], typeof e == "function" ? e : null); } @@ -639,7 +639,7 @@ function Hs(e, t) { } return (e = e ? e.displayName || e.name : "") ? Nr(e) : ""; } -function Fm(e) { +function Wm(e) { switch (e.tag) { case 5: return Nr(e.type); @@ -698,7 +698,7 @@ function Sa(e) { } return null; } -function Wm(e) { +function $m(e) { var t = e.type; switch (e.tag) { case 24: @@ -765,7 +765,7 @@ function md(e) { var t = e.type; return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio"); } -function $m(e) { +function Um(e) { var t = md(e) ? "checked" : "value", n = Object.getOwnPropertyDescriptor(e.constructor.prototype, t), r = "" + e[t]; if (!e.hasOwnProperty(t) && typeof n < "u" && typeof n.get == "function" && typeof n.set == "function") { var l = n.get, a = n.set; @@ -783,7 +783,7 @@ function $m(e) { } } function xl(e) { - e._valueTracker || (e._valueTracker = $m(e)); + e._valueTracker || (e._valueTracker = Um(e)); } function hd(e) { if (!e) return !1; @@ -956,9 +956,9 @@ var Lr = { strokeMiterlimit: !0, strokeOpacity: !0, strokeWidth: !0 -}, Um = ["Webkit", "ms", "Moz", "O"]; +}, Vm = ["Webkit", "ms", "Moz", "O"]; Object.keys(Lr).forEach(function(e) { - Um.forEach(function(t) { + Vm.forEach(function(t) { t = t + e.charAt(0).toUpperCase() + e.substring(1), Lr[t] = Lr[e]; }); }); @@ -972,10 +972,10 @@ function xd(e, t) { n === "float" && (n = "cssFloat"), r ? e.setProperty(n, l) : e[n] = l; } } -var Vm = je({ menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0 }); +var Bm = je({ menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0 }); function Ma(e, t) { if (t) { - if (Vm[e] && (t.children != null || t.dangerouslySetInnerHTML != null)) throw Error(V(137, e)); + if (Bm[e] && (t.children != null || t.dangerouslySetInnerHTML != null)) throw Error(V(137, e)); if (t.dangerouslySetInnerHTML != null) { if (t.children != null) throw Error(V(60)); if (typeof t.dangerouslySetInnerHTML != "object" || !("__html" in t.dangerouslySetInnerHTML)) throw Error(V(61)); @@ -1071,7 +1071,7 @@ if (zt) try { } catch { Da = !1; } -function Bm(e, t, n, r, l, a, o, i, c) { +function Qm(e, t, n, r, l, a, o, i, c) { var d = Array.prototype.slice.call(arguments, 3); try { t.apply(n, d); @@ -1079,14 +1079,14 @@ function Bm(e, t, n, r, l, a, o, i, c) { this.onError(p); } } -var Dr = !1, es = null, ts = !1, Ra = null, Qm = { onError: function(e) { +var Dr = !1, es = null, ts = !1, Ra = null, Hm = { onError: function(e) { Dr = !0, es = e; } }; -function Hm(e, t, n, r, l, a, o, i, c) { - Dr = !1, es = null, Bm.apply(Qm, arguments); -} function Km(e, t, n, r, l, a, o, i, c) { - if (Hm.apply(this, arguments), Dr) { + Dr = !1, es = null, Qm.apply(Hm, arguments); +} +function Gm(e, t, n, r, l, a, o, i, c) { + if (Km.apply(this, arguments), Dr) { if (Dr) { var d = es; Dr = !1, es = null; @@ -1115,7 +1115,7 @@ function Ed(e) { function Li(e) { if (Rn(e) !== e) throw Error(V(188)); } -function Gm(e) { +function qm(e) { var t = e.alternate; if (!t) { if (t = Rn(e), t === null) throw Error(V(188)); @@ -1174,7 +1174,7 @@ function Gm(e) { return n.stateNode.current === n ? e : t; } function Cd(e) { - return e = Gm(e), e !== null ? Nd(e) : null; + return e = qm(e), e !== null ? Nd(e) : null; } function Nd(e) { if (e.tag === 5 || e.tag === 6) return e; @@ -1185,16 +1185,16 @@ function Nd(e) { } return null; } -var Md = lt.unstable_scheduleCallback, Di = lt.unstable_cancelCallback, qm = lt.unstable_shouldYield, Ym = lt.unstable_requestPaint, Ce = lt.unstable_now, Xm = lt.unstable_getCurrentPriorityLevel, Co = lt.unstable_ImmediatePriority, Id = lt.unstable_UserBlockingPriority, ns = lt.unstable_NormalPriority, Zm = lt.unstable_LowPriority, Td = lt.unstable_IdlePriority, js = null, Nt = null; -function Jm(e) { +var Md = lt.unstable_scheduleCallback, Di = lt.unstable_cancelCallback, Ym = lt.unstable_shouldYield, Xm = lt.unstable_requestPaint, Ce = lt.unstable_now, Zm = lt.unstable_getCurrentPriorityLevel, Co = lt.unstable_ImmediatePriority, Id = lt.unstable_UserBlockingPriority, ns = lt.unstable_NormalPriority, Jm = lt.unstable_LowPriority, Td = lt.unstable_IdlePriority, js = null, Nt = null; +function eh(e) { if (Nt && typeof Nt.onCommitFiberRoot == "function") try { Nt.onCommitFiberRoot(js, e, void 0, (e.current.flags & 128) === 128); } catch { } } -var kt = Math.clz32 ? Math.clz32 : nh, eh = Math.log, th = Math.LN2; -function nh(e) { - return e >>>= 0, e === 0 ? 32 : 31 - (eh(e) / th | 0) | 0; +var kt = Math.clz32 ? Math.clz32 : rh, th = Math.log, nh = Math.LN2; +function rh(e) { + return e >>>= 0, e === 0 ? 32 : 31 - (th(e) / nh | 0) | 0; } var kl = 64, Sl = 4194304; function Ir(e) { @@ -1259,7 +1259,7 @@ function rs(e, t) { if (r & 4 && (r |= n & 16), t = e.entangledLanes, t !== 0) for (e = e.entanglements, t &= r; 0 < t; ) n = 31 - kt(t), l = 1 << n, r |= e[n], t &= ~l; return r; } -function rh(e, t) { +function lh(e, t) { switch (e) { case 1: case 2: @@ -1300,10 +1300,10 @@ function rh(e, t) { return -1; } } -function lh(e, t) { +function sh(e, t) { for (var n = e.suspendedLanes, r = e.pingedLanes, l = e.expirationTimes, a = e.pendingLanes; 0 < a; ) { var o = 31 - kt(a), i = 1 << o, c = l[o]; - c === -1 ? (!(i & n) || i & r) && (l[o] = rh(i, t)) : c <= t && (e.expiredLanes |= i), a &= ~i; + c === -1 ? (!(i & n) || i & r) && (l[o] = lh(i, t)) : c <= t && (e.expiredLanes |= i), a &= ~i; } } function Pa(e) { @@ -1320,7 +1320,7 @@ function Gs(e) { function fl(e, t, n) { e.pendingLanes |= t, t !== 536870912 && (e.suspendedLanes = 0, e.pingedLanes = 0), e = e.eventTimes, t = 31 - kt(t), e[t] = n; } -function sh(e, t) { +function ah(e, t) { var n = e.pendingLanes & ~t; e.pendingLanes = t, e.suspendedLanes = 0, e.pingedLanes = 0, e.expiredLanes &= t, e.mutableReadLanes &= t, e.entangledLanes &= t, t = e.entanglements; var r = e.eventTimes; @@ -1340,7 +1340,7 @@ var ce = 0; function Dd(e) { return e &= -e, 1 < e ? 4 < e ? e & 268435455 ? 16 : 536870912 : 4 : 1; } -var Rd, Mo, Pd, Od, Ad, Oa = !1, jl = [], rn = null, ln = null, sn = null, Qr = /* @__PURE__ */ new Map(), Hr = /* @__PURE__ */ new Map(), Zt = [], ah = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "); +var Rd, Mo, Pd, Od, Ad, Oa = !1, jl = [], rn = null, ln = null, sn = null, Qr = /* @__PURE__ */ new Map(), Hr = /* @__PURE__ */ new Map(), Zt = [], oh = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "); function Ri(e, t) { switch (e) { case "focusin": @@ -1367,7 +1367,7 @@ function Ri(e, t) { function _r(e, t, n, r, l, a) { return e === null || e.nativeEvent !== a ? (e = { blockedOn: t, domEventName: n, eventSystemFlags: r, nativeEvent: a, targetContainers: [l] }, t !== null && (t = hl(t), t !== null && Mo(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, l !== null && t.indexOf(l) === -1 && t.push(l), e); } -function oh(e, t, n, r, l) { +function ih(e, t, n, r, l) { switch (t) { case "focusin": return rn = _r(rn, e, t, n, r, l), !0; @@ -1419,11 +1419,11 @@ function Ul(e) { function Pi(e, t, n) { Ul(e) && n.delete(t); } -function ih() { +function ch() { Oa = !1, rn !== null && Ul(rn) && (rn = null), ln !== null && Ul(ln) && (ln = null), sn !== null && Ul(sn) && (sn = null), Qr.forEach(Pi), Hr.forEach(Pi); } function kr(e, t) { - e.blockedOn === t && (e.blockedOn = null, Oa || (Oa = !0, lt.unstable_scheduleCallback(lt.unstable_NormalPriority, ih))); + e.blockedOn === t && (e.blockedOn = null, Oa || (Oa = !0, lt.unstable_scheduleCallback(lt.unstable_NormalPriority, ch))); } function Kr(e) { function t(l) { @@ -1440,7 +1440,7 @@ function Kr(e) { for (; 0 < Zt.length && (n = Zt[0], n.blockedOn === null); ) zd(n), n.blockedOn === null && Zt.shift(); } var tr = Vt.ReactCurrentBatchConfig, ls = !0; -function ch(e, t, n, r) { +function dh(e, t, n, r) { var l = ce, a = tr.transition; tr.transition = null; try { @@ -1449,7 +1449,7 @@ function ch(e, t, n, r) { ce = l, tr.transition = a; } } -function dh(e, t, n, r) { +function uh(e, t, n, r) { var l = ce, a = tr.transition; tr.transition = null; try { @@ -1462,8 +1462,8 @@ function Io(e, t, n, r) { if (ls) { var l = Aa(e, t, n, r); if (l === null) la(e, t, r, ss, n), Ri(e, r); - else if (oh(l, e, t, n, r)) r.stopPropagation(); - else if (Ri(e, r), t & 4 && -1 < ah.indexOf(e)) { + else if (ih(l, e, t, n, r)) r.stopPropagation(); + else if (Ri(e, r), t & 4 && -1 < oh.indexOf(e)) { for (; l !== null; ) { var a = hl(l); if (a !== null && Rd(a), a = Aa(e, t, n, r), a === null && la(e, t, r, ss, n), a === l) break; @@ -1560,13 +1560,13 @@ function Fd(e) { case "pointerleave": return 4; case "message": - switch (Xm()) { + switch (Zm()) { case Co: return 1; case Id: return 4; case ns: - case Zm: + case Jm: return 16; case Td: return 536870912; @@ -1614,15 +1614,15 @@ function at(e) { } var hr = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(e) { return e.timeStamp || Date.now(); -}, defaultPrevented: 0, isTrusted: 0 }, Lo = at(hr), ml = je({}, hr, { view: 0, detail: 0 }), uh = at(ml), qs, Ys, Sr, bs = je({}, ml, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: Do, button: 0, buttons: 0, relatedTarget: function(e) { +}, defaultPrevented: 0, isTrusted: 0 }, Lo = at(hr), ml = je({}, hr, { view: 0, detail: 0 }), fh = at(ml), qs, Ys, Sr, bs = je({}, ml, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: Do, button: 0, buttons: 0, relatedTarget: function(e) { return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget; }, movementX: function(e) { return "movementX" in e ? e.movementX : (e !== Sr && (Sr && e.type === "mousemove" ? (qs = e.screenX - Sr.screenX, Ys = e.screenY - Sr.screenY) : Ys = qs = 0, Sr = e), qs); }, movementY: function(e) { return "movementY" in e ? e.movementY : Ys; -} }), Ai = at(bs), fh = je({}, bs, { dataTransfer: 0 }), mh = at(fh), hh = je({}, ml, { relatedTarget: 0 }), Xs = at(hh), ph = je({}, hr, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), gh = at(ph), yh = je({}, hr, { clipboardData: function(e) { +} }), Ai = at(bs), mh = je({}, bs, { dataTransfer: 0 }), hh = at(mh), ph = je({}, ml, { relatedTarget: 0 }), Xs = at(ph), gh = je({}, hr, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), yh = at(gh), vh = je({}, hr, { clipboardData: function(e) { return "clipboardData" in e ? e.clipboardData : window.clipboardData; -} }), vh = at(yh), wh = je({}, hr, { data: 0 }), zi = at(wh), xh = { +} }), wh = at(vh), xh = je({}, hr, { data: 0 }), zi = at(xh), _h = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", @@ -1635,7 +1635,7 @@ var hr = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(e) { Apps: "ContextMenu", Scroll: "ScrollLock", MozPrintableKey: "Unidentified" -}, _h = { +}, kh = { 8: "Backspace", 9: "Tab", 12: "Clear", @@ -1672,27 +1672,27 @@ var hr = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(e) { 144: "NumLock", 145: "ScrollLock", 224: "Meta" -}, kh = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" }; -function Sh(e) { +}, Sh = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" }; +function jh(e) { var t = this.nativeEvent; - return t.getModifierState ? t.getModifierState(e) : (e = kh[e]) ? !!t[e] : !1; + return t.getModifierState ? t.getModifierState(e) : (e = Sh[e]) ? !!t[e] : !1; } function Do() { - return Sh; + return jh; } -var jh = je({}, ml, { key: function(e) { +var bh = je({}, ml, { key: function(e) { if (e.key) { - var t = xh[e.key] || e.key; + var t = _h[e.key] || e.key; if (t !== "Unidentified") return t; } - return e.type === "keypress" ? (e = Bl(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? _h[e.keyCode] || "Unidentified" : ""; + return e.type === "keypress" ? (e = Bl(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? kh[e.keyCode] || "Unidentified" : ""; }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: Do, charCode: function(e) { return e.type === "keypress" ? Bl(e) : 0; }, keyCode: function(e) { return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0; }, which: function(e) { return e.type === "keypress" ? Bl(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0; -} }), bh = at(jh), Eh = je({}, bs, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }), Fi = at(Eh), Ch = je({}, ml, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: Do }), Nh = at(Ch), Mh = je({}, hr, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), Ih = at(Mh), Th = je({}, bs, { +} }), Eh = at(bh), Ch = je({}, bs, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }), Fi = at(Ch), Nh = je({}, ml, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: Do }), Mh = at(Nh), Ih = je({}, hr, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), Th = at(Ih), Lh = je({}, bs, { deltaX: function(e) { return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0; }, @@ -1701,13 +1701,13 @@ var jh = je({}, ml, { key: function(e) { }, deltaZ: 0, deltaMode: 0 -}), Lh = at(Th), Dh = [9, 13, 27, 32], Ro = zt && "CompositionEvent" in window, Rr = null; +}), Dh = at(Lh), Rh = [9, 13, 27, 32], Ro = zt && "CompositionEvent" in window, Rr = null; zt && "documentMode" in document && (Rr = document.documentMode); -var Rh = zt && "TextEvent" in window && !Rr, $d = zt && (!Ro || Rr && 8 < Rr && 11 >= Rr), Wi = " ", $i = !1; +var Ph = zt && "TextEvent" in window && !Rr, $d = zt && (!Ro || Rr && 8 < Rr && 11 >= Rr), Wi = " ", $i = !1; function Ud(e, t) { switch (e) { case "keyup": - return Dh.indexOf(t.keyCode) !== -1; + return Rh.indexOf(t.keyCode) !== -1; case "keydown": return t.keyCode !== 229; case "keypress": @@ -1722,7 +1722,7 @@ function Vd(e) { return e = e.detail, typeof e == "object" && "data" in e ? e.data : null; } var Un = !1; -function Ph(e, t) { +function Oh(e, t) { switch (e) { case "compositionend": return Vd(t); @@ -1734,7 +1734,7 @@ function Ph(e, t) { return null; } } -function Oh(e, t) { +function Ah(e, t) { if (Un) return e === "compositionend" || !Ro && Ud(e, t) ? (e = Wd(), Vl = To = tn = null, Un = !1, e) : null; switch (e) { case "paste": @@ -1751,23 +1751,23 @@ function Oh(e, t) { return null; } } -var Ah = { color: !0, date: !0, datetime: !0, "datetime-local": !0, email: !0, month: !0, number: !0, password: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0 }; +var zh = { color: !0, date: !0, datetime: !0, "datetime-local": !0, email: !0, month: !0, number: !0, password: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0 }; function Ui(e) { var t = e && e.nodeName && e.nodeName.toLowerCase(); - return t === "input" ? !!Ah[e.type] : t === "textarea"; + return t === "input" ? !!zh[e.type] : t === "textarea"; } function Bd(e, t, n, r) { _d(r), t = as(t, "onChange"), 0 < t.length && (n = new Lo("onChange", "change", null, n, r), e.push({ event: n, listeners: t })); } var Pr = null, Gr = null; -function zh(e) { +function Fh(e) { tu(e, 0); } function Es(e) { var t = Qn(e); if (hd(t)) return e; } -function Fh(e, t) { +function Wh(e, t) { if (e === "change") return t; } var Qd = !1; @@ -1789,25 +1789,25 @@ function Bi() { function Hd(e) { if (e.propertyName === "value" && Es(Gr)) { var t = []; - Bd(t, Gr, e, Eo(e)), bd(zh, t); + Bd(t, Gr, e, Eo(e)), bd(Fh, t); } } -function Wh(e, t, n) { +function $h(e, t, n) { e === "focusin" ? (Bi(), Pr = t, Gr = n, Pr.attachEvent("onpropertychange", Hd)) : e === "focusout" && Bi(); } -function $h(e) { +function Uh(e) { if (e === "selectionchange" || e === "keyup" || e === "keydown") return Es(Gr); } -function Uh(e, t) { +function Vh(e, t) { if (e === "click") return Es(t); } -function Vh(e, t) { +function Bh(e, t) { if (e === "input" || e === "change") return Es(t); } -function Bh(e, t) { +function Qh(e, t) { return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t; } -var jt = typeof Object.is == "function" ? Object.is : Bh; +var jt = typeof Object.is == "function" ? Object.is : Qh; function qr(e, t) { if (jt(e, t)) return !0; if (typeof e != "object" || e === null || typeof t != "object" || t === null) return !1; @@ -1864,7 +1864,7 @@ function Po(e) { var t = e && e.nodeName && e.nodeName.toLowerCase(); return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true"); } -function Qh(e) { +function Hh(e) { var t = Gd(), n = e.focusedElem, r = e.selectionRange; if (t !== n && n && n.ownerDocument && Kd(n.ownerDocument.documentElement, n)) { if (r !== null && Po(n)) { @@ -1884,7 +1884,7 @@ function Qh(e) { for (typeof n.focus == "function" && n.focus(), n = 0; n < t.length; n++) e = t[n], e.element.scrollLeft = e.left, e.element.scrollTop = e.top; } } -var Hh = zt && "documentMode" in document && 11 >= document.documentMode, Vn = null, za = null, Or = null, Fa = !1; +var Kh = zt && "documentMode" in document && 11 >= document.documentMode, Vn = null, za = null, Or = null, Fa = !1; function Ki(e, t, n) { var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument; Fa || Vn == null || Vn !== Jl(r) || (r = Vn, "selectionStart" in r && Po(r) ? r = { start: r.selectionStart, end: r.selectionEnd } : (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection(), r = { anchorNode: r.anchorNode, anchorOffset: r.anchorOffset, focusNode: r.focusNode, focusOffset: r.focusOffset }), Or && qr(Or, r) || (Or = r, r = as(za, "onSelect"), 0 < r.length && (t = new Lo("onSelect", "select", null, t, n), e.push({ event: t, listeners: r }), t.target = Vn))); @@ -1907,8 +1907,8 @@ function hn(e, t) { eu.set(e, t), Dn(t, [e]); } for (var ta = 0; ta < Gi.length; ta++) { - var na = Gi[ta], Kh = na.toLowerCase(), Gh = na[0].toUpperCase() + na.slice(1); - hn(Kh, "on" + Gh); + var na = Gi[ta], Gh = na.toLowerCase(), qh = na[0].toUpperCase() + na.slice(1); + hn(Gh, "on" + qh); } hn(Yd, "onAnimationEnd"); hn(Xd, "onAnimationIteration"); @@ -1927,10 +1927,10 @@ Dn("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]); Dn("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")); Dn("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")); Dn("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); -var Tr = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), qh = new Set("cancel close invalid load scroll toggle".split(" ").concat(Tr)); +var Tr = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), Yh = new Set("cancel close invalid load scroll toggle".split(" ").concat(Tr)); function qi(e, t, n) { var r = e.type || "unknown-event"; - e.currentTarget = n, Km(r, t, void 0, e), e.currentTarget = null; + e.currentTarget = n, Gm(r, t, void 0, e), e.currentTarget = null; } function tu(e, t) { t = (t & 4) !== 0; @@ -1966,7 +1966,7 @@ var Cl = "_reactListening" + Math.random().toString(36).slice(2); function Yr(e) { if (!e[Cl]) { e[Cl] = !0, cd.forEach(function(n) { - n !== "selectionchange" && (qh.has(n) || ra(n, !1, e), ra(n, !0, e)); + n !== "selectionchange" && (Yh.has(n) || ra(n, !1, e), ra(n, !0, e)); }); var t = e.nodeType === 9 ? e : e.ownerDocument; t === null || t[Cl] || (t[Cl] = !0, ra("selectionchange", !1, t)); @@ -1975,10 +1975,10 @@ function Yr(e) { function nu(e, t, n, r) { switch (Fd(t)) { case 1: - var l = ch; + var l = dh; break; case 4: - l = dh; + l = uh; break; default: l = Io; @@ -2020,7 +2020,7 @@ function la(e, t, n, r, l) { if (Bl(n) === 0) break e; case "keydown": case "keyup": - k = bh; + k = Eh; break; case "focusin": w = "focus", k = Xs; @@ -2052,32 +2052,32 @@ function la(e, t, n, r, l) { case "dragover": case "dragstart": case "drop": - k = mh; + k = hh; break; case "touchcancel": case "touchend": case "touchmove": case "touchstart": - k = Nh; + k = Mh; break; case Yd: case Xd: case Zd: - k = gh; + k = yh; break; case Jd: - k = Ih; + k = Th; break; case "scroll": - k = uh; + k = fh; break; case "wheel": - k = Lh; + k = Dh; break; case "copy": case "cut": case "paste": - k = vh; + k = wh; break; case "gotpointercapture": case "lostpointercapture": @@ -2120,13 +2120,13 @@ function la(e, t, n, r, l) { } } e: { - if (y = d ? Qn(d) : window, k = y.nodeName && y.nodeName.toLowerCase(), k === "select" || k === "input" && y.type === "file") var j = Fh; - else if (Ui(y)) if (Qd) j = Vh; + if (y = d ? Qn(d) : window, k = y.nodeName && y.nodeName.toLowerCase(), k === "select" || k === "input" && y.type === "file") var j = Wh; + else if (Ui(y)) if (Qd) j = Bh; else { - j = $h; - var S = Wh; + j = Uh; + var S = $h; } - else (k = y.nodeName) && k.toLowerCase() === "input" && (y.type === "checkbox" || y.type === "radio") && (j = Uh); + else (k = y.nodeName) && k.toLowerCase() === "input" && (y.type === "checkbox" || y.type === "radio") && (j = Vh); if (j && (j = j(e, d))) { Bd(v, j, n, p); break e; @@ -2149,7 +2149,7 @@ function la(e, t, n, r, l) { Fa = !1, Ki(v, n, p); break; case "selectionchange": - if (Hh) break; + if (Kh) break; case "keydown": case "keyup": Ki(v, n, p); @@ -2170,7 +2170,7 @@ function la(e, t, n, r, l) { I = void 0; } else Un ? Ud(e, n) && (I = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (I = "onCompositionStart"); - I && ($d && n.locale !== "ko" && (Un || I !== "onCompositionStart" ? I === "onCompositionEnd" && Un && (b = Wd()) : (tn = p, To = "value" in tn ? tn.value : tn.textContent, Un = !0)), S = as(d, I), 0 < S.length && (I = new zi(I, e, null, n, p), v.push({ event: I, listeners: S }), b ? I.data = b : (b = Vd(n), b !== null && (I.data = b)))), (b = Rh ? Ph(e, n) : Oh(e, n)) && (d = as(d, "onBeforeInput"), 0 < d.length && (p = new zi("onBeforeInput", "beforeinput", null, n, p), v.push({ event: p, listeners: d }), p.data = b)); + I && ($d && n.locale !== "ko" && (Un || I !== "onCompositionStart" ? I === "onCompositionEnd" && Un && (b = Wd()) : (tn = p, To = "value" in tn ? tn.value : tn.textContent, Un = !0)), S = as(d, I), 0 < S.length && (I = new zi(I, e, null, n, p), v.push({ event: I, listeners: S }), b ? I.data = b : (b = Vd(n), b !== null && (I.data = b)))), (b = Ph ? Oh(e, n) : Ah(e, n)) && (d = as(d, "onBeforeInput"), 0 < d.length && (p = new zi("onBeforeInput", "beforeinput", null, n, p), v.push({ event: p, listeners: d }), p.data = b)); } tu(v, t); }); @@ -2200,10 +2200,10 @@ function Yi(e, t, n, r, l) { } o.length !== 0 && e.push({ event: t, listeners: o }); } -var Yh = /\r\n?/g, Xh = /\u0000|\uFFFD/g; +var Xh = /\r\n?/g, Zh = /\u0000|\uFFFD/g; function Xi(e) { - return (typeof e == "string" ? e : "" + e).replace(Yh, ` -`).replace(Xh, ""); + return (typeof e == "string" ? e : "" + e).replace(Xh, ` +`).replace(Zh, ""); } function Nl(e, t, n) { if (t = Xi(t), Xi(e) !== t && n) throw Error(V(425)); @@ -2214,10 +2214,10 @@ var Wa = null, $a = null; function Ua(e, t) { return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null; } -var Va = typeof setTimeout == "function" ? setTimeout : void 0, Zh = typeof clearTimeout == "function" ? clearTimeout : void 0, Zi = typeof Promise == "function" ? Promise : void 0, Jh = typeof queueMicrotask == "function" ? queueMicrotask : typeof Zi < "u" ? function(e) { - return Zi.resolve(null).then(e).catch(ep); +var Va = typeof setTimeout == "function" ? setTimeout : void 0, Jh = typeof clearTimeout == "function" ? clearTimeout : void 0, Zi = typeof Promise == "function" ? Promise : void 0, ep = typeof queueMicrotask == "function" ? queueMicrotask : typeof Zi < "u" ? function(e) { + return Zi.resolve(null).then(e).catch(tp); } : Va; -function ep(e) { +function tp(e) { setTimeout(function() { throw e; }); @@ -2262,7 +2262,7 @@ function Ji(e) { } return null; } -var pr = Math.random().toString(36).slice(2), Ct = "__reactFiber$" + pr, Zr = "__reactProps$" + pr, Ft = "__reactContainer$" + pr, Ba = "__reactEvents$" + pr, tp = "__reactListeners$" + pr, np = "__reactHandles$" + pr; +var pr = Math.random().toString(36).slice(2), Ct = "__reactFiber$" + pr, Zr = "__reactProps$" + pr, Ft = "__reactContainer$" + pr, Ba = "__reactEvents$" + pr, np = "__reactListeners$" + pr, rp = "__reactHandles$" + pr; function kn(e) { var t = e[Ct]; if (t) return t; @@ -2322,7 +2322,7 @@ function ru(e, t, n) { var r = e.stateNode; if (t = t.childContextTypes, typeof r.getChildContext != "function") return n; r = r.getChildContext(); - for (var l in r) if (!(l in t)) throw Error(V(108, Wm(e) || "Unknown", l)); + for (var l in r) if (!(l in t)) throw Error(V(108, $m(e) || "Unknown", l)); return je({}, n, r); } function cs(e) { @@ -2337,7 +2337,7 @@ var Rt = null, Ms = !1, aa = !1; function lu(e) { Rt === null ? Rt = [e] : Rt.push(e); } -function rp(e) { +function lp(e) { Ms = !0, lu(e); } function gn() { @@ -2464,7 +2464,7 @@ function or() { function zo(e) { xt === null ? xt = [e] : xt.push(e); } -var lp = Vt.ReactCurrentBatchConfig; +var sp = Vt.ReactCurrentBatchConfig; function jr(e, t, n) { if (e = n.ref, e !== null && typeof e != "function" && typeof e != "object") { if (n._owner) { @@ -2886,7 +2886,7 @@ function Ho() { for (var e = 0; e < oa.length; e++) oa[e]._workInProgressVersionPrimary = null; oa.length = 0; } -var Hl = Vt.ReactCurrentDispatcher, ia = Vt.ReactCurrentBatchConfig, Mn = 0, Se = null, Ie = null, Re = null, gs = !1, Ar = !1, tl = 0, sp = 0; +var Hl = Vt.ReactCurrentDispatcher, ia = Vt.ReactCurrentBatchConfig, Mn = 0, Se = null, Ie = null, Re = null, gs = !1, Ar = !1, tl = 0, ap = 0; function We() { throw Error(V(321)); } @@ -2896,11 +2896,11 @@ function Ko(e, t) { return !0; } function Go(e, t, n, r, l, a) { - if (Mn = a, Se = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, Hl.current = e === null || e.memoizedState === null ? cp : dp, e = n(r, l), Ar) { + if (Mn = a, Se = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, Hl.current = e === null || e.memoizedState === null ? dp : up, e = n(r, l), Ar) { a = 0; do { if (Ar = !1, tl = 0, 25 <= a) throw Error(V(301)); - a += 1, Re = Ie = null, t.updateQueue = null, Hl.current = up, e = n(r, l); + a += 1, Re = Ie = null, t.updateQueue = null, Hl.current = fp, e = n(r, l); } while (Ar); } if (Hl.current = ys, t = Ie !== null && Ie.next !== null, Mn = 0, Re = Ie = Se = null, gs = !1, t) throw Error(V(300)); @@ -3022,7 +3022,7 @@ function wu(e) { } function oc(e) { var t = Et(); - return typeof e == "function" && (e = e()), t.memoizedState = t.baseState = e, e = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: nl, lastRenderedState: e }, t.queue = e, e = e.dispatch = ip.bind(null, Se, e), [t.memoizedState, e]; + return typeof e == "function" && (e = e()), t.memoizedState = t.baseState = e, e = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: nl, lastRenderedState: e }, t.queue = e, e = e.dispatch = cp.bind(null, Se, e), [t.memoizedState, e]; } function rl(e, t, n, r) { return e = { tag: e, create: t, destroy: n, deps: r, next: null }, t = Se.updateQueue, t === null ? (t = { lastEffect: null, stores: null }, Se.updateQueue = t, t.lastEffect = e.next = e) : (n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e)), e; @@ -3087,7 +3087,7 @@ function Eu(e, t) { function Cu(e, t, n) { return Mn & 21 ? (jt(n, t) || (n = Ld(), Se.lanes |= n, In |= n, e.baseState = !0), t) : (e.baseState && (e.baseState = !1, Xe = !0), e.memoizedState = n); } -function ap(e, t) { +function op(e, t) { var n = ce; ce = n !== 0 && 4 > n ? n : 4, e(!0); var r = ia.transition; @@ -3101,7 +3101,7 @@ function ap(e, t) { function Nu() { return pt().memoizedState; } -function op(e, t, n) { +function ip(e, t, n) { var r = dn(e); if (n = { lane: r, action: n, hasEagerState: !1, eagerState: null, next: null }, Mu(e)) Iu(t, n); else if (n = du(e, t, n, r), n !== null) { @@ -3109,7 +3109,7 @@ function op(e, t, n) { St(n, e, r, l), Tu(n, t, r); } } -function ip(e, t, n) { +function cp(e, t, n) { var r = dn(e), l = { lane: r, action: n, hasEagerState: !1, eagerState: null, next: null }; if (Mu(e)) Iu(t, l); else { @@ -3142,7 +3142,7 @@ function Tu(e, t, n) { r &= e.pendingLanes, n |= r, t.lanes = n, No(e, n); } } -var ys = { readContext: ht, useCallback: We, useContext: We, useEffect: We, useImperativeHandle: We, useInsertionEffect: We, useLayoutEffect: We, useMemo: We, useReducer: We, useRef: We, useState: We, useDebugValue: We, useDeferredValue: We, useTransition: We, useMutableSource: We, useSyncExternalStore: We, useId: We, unstable_isNewReconciler: !1 }, cp = { readContext: ht, useCallback: function(e, t) { +var ys = { readContext: ht, useCallback: We, useContext: We, useEffect: We, useImperativeHandle: We, useInsertionEffect: We, useLayoutEffect: We, useMemo: We, useReducer: We, useRef: We, useState: We, useDebugValue: We, useDeferredValue: We, useTransition: We, useMutableSource: We, useSyncExternalStore: We, useId: We, unstable_isNewReconciler: !1 }, dp = { readContext: ht, useCallback: function(e, t) { return Et().memoizedState = [e, t === void 0 ? null : t], e; }, useContext: ht, useEffect: ic, useImperativeHandle: function(e, t, n) { return n = n != null ? n.concat([e]) : null, Kl( @@ -3160,7 +3160,7 @@ var ys = { readContext: ht, useCallback: We, useContext: We, useEffect: We, useI return t = t === void 0 ? null : t, e = e(), n.memoizedState = [e, t], e; }, useReducer: function(e, t, n) { var r = Et(); - return t = n !== void 0 ? n(t) : t, r.memoizedState = r.baseState = t, e = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: e, lastRenderedState: t }, r.queue = e, e = e.dispatch = op.bind(null, Se, e), [r.memoizedState, e]; + return t = n !== void 0 ? n(t) : t, r.memoizedState = r.baseState = t, e = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: e, lastRenderedState: t }, r.queue = e, e = e.dispatch = ip.bind(null, Se, e), [r.memoizedState, e]; }, useRef: function(e) { var t = Et(); return e = { current: e }, t.memoizedState = e; @@ -3168,7 +3168,7 @@ var ys = { readContext: ht, useCallback: We, useContext: We, useEffect: We, useI return Et().memoizedState = e; }, useTransition: function() { var e = oc(!1), t = e[0]; - return e = ap.bind(null, e[1]), Et().memoizedState = e, [t, e]; + return e = op.bind(null, e[1]), Et().memoizedState = e, [t, e]; }, useMutableSource: function() { }, useSyncExternalStore: function(e, t, n) { var r = Se, l = Et(); @@ -3192,9 +3192,9 @@ var ys = { readContext: ht, useCallback: We, useContext: We, useEffect: We, useI if (xe) { var n = Ot, r = Pt; n = (r & ~(1 << 32 - kt(r) - 1)).toString(32) + n, t = ":" + t + "R" + n, n = tl++, 0 < n && (t += "H" + n.toString(32)), t += ":"; - } else n = sp++, t = ":" + t + "r" + n.toString(32) + ":"; + } else n = ap++, t = ":" + t + "r" + n.toString(32) + ":"; return e.memoizedState = t; -}, unstable_isNewReconciler: !1 }, dp = { +}, unstable_isNewReconciler: !1 }, up = { readContext: ht, useCallback: bu, useContext: ht, @@ -3221,7 +3221,7 @@ var ys = { readContext: ht, useCallback: We, useContext: We, useEffect: We, useI useSyncExternalStore: hu, useId: Nu, unstable_isNewReconciler: !1 -}, up = { readContext: ht, useCallback: bu, useContext: ht, useEffect: Yo, useImperativeHandle: ju, useInsertionEffect: _u, useLayoutEffect: ku, useMemo: Eu, useReducer: da, useRef: xu, useState: function() { +}, fp = { readContext: ht, useCallback: bu, useContext: ht, useEffect: Yo, useImperativeHandle: ju, useInsertionEffect: _u, useLayoutEffect: ku, useMemo: Eu, useReducer: da, useRef: xu, useState: function() { return da(nl); }, useDebugValue: Xo, useDeferredValue: function(e) { var t = pt(); @@ -3276,7 +3276,7 @@ function dr(e, t) { try { var n = "", r = t; do - n += Fm(r), r = r.return; + n += Wm(r), r = r.return; while (r); var l = n; } catch (a) { @@ -3298,7 +3298,7 @@ function Xa(e, t) { }); } } -var fp = typeof WeakMap == "function" ? WeakMap : Map; +var mp = typeof WeakMap == "function" ? WeakMap : Map; function Du(e, t, n) { n = At(-1, n), n.tag = 3, n.payload = { element: null }; var r = t.value; @@ -3327,11 +3327,11 @@ function Ru(e, t, n) { function uc(e, t, n) { var r = e.pingCache; if (r === null) { - r = e.pingCache = new fp(); + r = e.pingCache = new mp(); var l = /* @__PURE__ */ new Set(); r.set(t, l); } else l = r.get(t), l === void 0 && (l = /* @__PURE__ */ new Set(), r.set(t, l)); - l.has(n) || (l.add(n), e = Ep.bind(null, e, t, n), t.then(e, e)); + l.has(n) || (l.add(n), e = Cp.bind(null, e, t, n), t.then(e, e)); } function fc(e) { do { @@ -3344,7 +3344,7 @@ function fc(e) { function mc(e, t, n, r, l) { return e.mode & 1 ? (e.flags |= 65536, e.lanes = l, e) : (e === t ? e.flags |= 65536 : (e.flags |= 128, n.flags |= 131072, n.flags &= -52805, n.tag === 1 && (n.alternate === null ? n.tag = 17 : (t = At(-1, 1), t.tag = 2, on(n, t, 1))), n.lanes |= 1), e); } -var mp = Vt.ReactCurrentOwner, Xe = !1; +var hp = Vt.ReactCurrentOwner, Xe = !1; function Be(e, t, n, r) { t.child = e === null ? cu(t, null, n, r) : ir(t, e.child, n, r); } @@ -3418,7 +3418,7 @@ function Ja(e, t, n, r, l, a) { Au(e, t); var o = (t.flags & 128) !== 0; if (!r && !o) return l && tc(t, n, !1), $t(e, t, a); - r = t.stateNode, mp.current = t; + r = t.stateNode, hp.current = t; var i = o && typeof n.getDerivedStateFromError != "function" ? null : r.render(); return t.flags |= 1, e !== null && o ? (t.child = ir(t, e.child, null, a), t.child = ir(t, null, i, a)) : Be(e, t, i, a), t.memoizedState = r.state, l && tc(t, n, !0), t.child; } @@ -3437,7 +3437,7 @@ function Fu(e, t, n) { var r = t.pendingProps, l = ke.current, a = !1, o = (t.flags & 128) !== 0, i; if ((i = o) || (i = e !== null && e.memoizedState === null ? !1 : (l & 2) !== 0), i ? (a = !0, t.flags &= -129) : (e === null || e.memoizedState !== null) && (l |= 1), he(ke, l & 1), e === null) return Ka(t), e = t.memoizedState, e !== null && (e = e.dehydrated, e !== null) ? (t.mode & 1 ? e.data === "$!" ? t.lanes = 8 : t.lanes = 1073741824 : t.lanes = 1, null) : (o = r.children, e = r.fallback, a ? (r = t.mode, a = t.child, o = { mode: "hidden", children: o }, !(r & 1) && a !== null ? (a.childLanes = 0, a.pendingProps = o) : a = Rs(o, r, 0, null), e = En(e, r, n, null), a.return = t, e.return = t, a.sibling = e, t.child = a, t.child.memoizedState = to(n), t.memoizedState = eo, e) : Zo(t, o)); - if (l = e.memoizedState, l !== null && (i = l.dehydrated, i !== null)) return hp(e, t, o, r, i, l, n); + if (l = e.memoizedState, l !== null && (i = l.dehydrated, i !== null)) return pp(e, t, o, r, i, l, n); if (a) { a = r.fallback, o = t.mode, l = e.child, i = l.sibling; var c = { mode: "hidden", children: r.children }; @@ -3451,7 +3451,7 @@ function Zo(e, t) { function Tl(e, t, n, r) { return r !== null && zo(r), ir(t, e.child, null, n), e = Zo(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e; } -function hp(e, t, n, r, l, a, o) { +function pp(e, t, n, r, l, a, o) { if (n) return t.flags & 256 ? (t.flags &= -257, r = ua(Error(V(422))), Tl(e, t, o, r)) : t.memoizedState !== null ? (t.child = e.child, t.flags |= 128, null) : (a = r.fallback, l = t.mode, r = Rs({ mode: "visible", children: r.children }, l, 0, null), a = En(a, l, o, null), a.flags |= 2, r.return = t, a.return = t, r.sibling = a, t.child = r, t.mode & 1 && ir(t, e.child, null, o), t.child.memoizedState = to(o), t.memoizedState = eo, a); if (!(t.mode & 1)) return Tl(e, t, o, null); @@ -3501,7 +3501,7 @@ function hp(e, t, n, r, l, a, o) { } return li(), r = ua(Error(V(421))), Tl(e, t, o, r); } - return l.data === "$?" ? (t.flags |= 128, t.child = e.child, t = Cp.bind(null, e), l._reactRetry = t, null) : (e = a.treeContext, nt = an(l.nextSibling), rt = t, xe = !0, xt = null, e !== null && (ct[dt++] = Pt, ct[dt++] = Ot, ct[dt++] = Nn, Pt = e.id, Ot = e.overflow, Nn = t), t = Zo(t, r.children), t.flags |= 4096, t); + return l.data === "$?" ? (t.flags |= 128, t.child = e.child, t = Np.bind(null, e), l._reactRetry = t, null) : (e = a.treeContext, nt = an(l.nextSibling), rt = t, xe = !0, xt = null, e !== null && (ct[dt++] = Pt, ct[dt++] = Ot, ct[dt++] = Nn, Pt = e.id, Ot = e.overflow, Nn = t), t = Zo(t, r.children), t.flags |= 4096, t); } function vc(e, t, n) { e.lanes |= t; @@ -3568,7 +3568,7 @@ function $t(e, t, n) { } return t.child; } -function pp(e, t, n) { +function gp(e, t, n) { switch (t.tag) { case 3: zu(t), or(); @@ -3685,7 +3685,7 @@ function $e(e) { else for (l = e.child; l !== null; ) n |= l.lanes | l.childLanes, r |= l.subtreeFlags, r |= l.flags, l.return = e, l = l.sibling; return e.subtreeFlags |= r, e.childLanes = n, t; } -function gp(e, t, n) { +function yp(e, t, n) { var r = t.pendingProps; switch (Ao(t), t.tag) { case 2: @@ -3931,7 +3931,7 @@ function gp(e, t, n) { } throw Error(V(156, t.tag)); } -function yp(e, t) { +function vp(e, t) { switch (Ao(t), t.tag) { case 1: return Je(t.type) && is(), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null; @@ -3960,7 +3960,7 @@ function yp(e, t) { return null; } } -var Ll = !1, Ue = !1, vp = typeof WeakSet == "function" ? WeakSet : Set, G = null; +var Ll = !1, Ue = !1, wp = typeof WeakSet == "function" ? WeakSet : Set, G = null; function Yn(e, t) { var n = e.ref; if (n !== null) if (typeof n == "function") try { @@ -3978,7 +3978,7 @@ function ro(e, t, n) { } } var wc = !1; -function wp(e, t) { +function xp(e, t) { if (Wa = ls, e = Gd(), Po(e)) { if ("selectionStart" in e) var n = { start: e.selectionStart, end: e.selectionEnd }; else e: { @@ -4090,7 +4090,7 @@ function lo(e) { } function Bu(e) { var t = e.alternate; - t !== null && (e.alternate = null, Bu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && (delete t[Ct], delete t[Zr], delete t[Ba], delete t[tp], delete t[np])), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null; + t !== null && (e.alternate = null, Bu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && (delete t[Ct], delete t[Zr], delete t[Ba], delete t[np], delete t[rp])), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null; } function Qu(e) { return e.tag === 5 || e.tag === 3 || e.tag === 4; @@ -4176,8 +4176,8 @@ function _c(e) { if (t !== null) { e.updateQueue = null; var n = e.stateNode; - n === null && (n = e.stateNode = new vp()), t.forEach(function(r) { - var l = Np.bind(null, e, r); + n === null && (n = e.stateNode = new wp()), t.forEach(function(r) { + var l = Mp.bind(null, e, r); n.has(r) || (n.add(r), r.then(l, l)); }); } @@ -4414,7 +4414,7 @@ function bt(e) { } t & 4096 && (e.flags &= -4097); } -function xp(e, t, n) { +function _p(e, t, n) { G = e, Gu(e); } function Gu(e, t, n) { @@ -4600,12 +4600,12 @@ function jc(e) { G = t.return; } } -var _p = Math.ceil, vs = Vt.ReactCurrentDispatcher, Jo = Vt.ReactCurrentOwner, ft = Vt.ReactCurrentBatchConfig, ae = 0, Pe = null, Me = null, Ae = 0, tt = 0, Xn = pn(0), Te = 0, ll = null, In = 0, Ds = 0, ei = 0, Fr = null, qe = null, ti = 0, ur = 1 / 0, Dt = null, ws = !1, oo = null, cn = null, Dl = !1, nn = null, xs = 0, Wr = 0, io = null, ql = -1, Yl = 0; +var kp = Math.ceil, vs = Vt.ReactCurrentDispatcher, Jo = Vt.ReactCurrentOwner, ft = Vt.ReactCurrentBatchConfig, ae = 0, Pe = null, Me = null, Ae = 0, tt = 0, Xn = pn(0), Te = 0, ll = null, In = 0, Ds = 0, ei = 0, Fr = null, qe = null, ti = 0, ur = 1 / 0, Dt = null, ws = !1, oo = null, cn = null, Dl = !1, nn = null, xs = 0, Wr = 0, io = null, ql = -1, Yl = 0; function Qe() { return ae & 6 ? Ce() : ql !== -1 ? ql : ql = Ce(); } function dn(e) { - return e.mode & 1 ? ae & 2 && Ae !== 0 ? Ae & -Ae : lp.transition !== null ? (Yl === 0 && (Yl = Ld()), Yl) : (e = ce, e !== 0 || (e = window.event, e = e === void 0 ? 16 : Fd(e.type)), e) : 1; + return e.mode & 1 ? ae & 2 && Ae !== 0 ? Ae & -Ae : sp.transition !== null ? (Yl === 0 && (Yl = Ld()), Yl) : (e = ce, e !== 0 || (e = window.event, e = e === void 0 ? 16 : Fd(e.type)), e) : 1; } function St(e, t, n, r) { if (50 < Wr) throw Wr = 0, io = null, Error(V(185)); @@ -4613,11 +4613,11 @@ function St(e, t, n, r) { } function et(e, t) { var n = e.callbackNode; - lh(e, t); + sh(e, t); var r = rs(e, e === Pe ? Ae : 0); if (r === 0) n !== null && Di(n), e.callbackNode = null, e.callbackPriority = 0; else if (t = r & -r, e.callbackPriority !== t) { - if (n != null && Di(n), t === 1) e.tag === 0 ? rp(bc.bind(null, e)) : lu(bc.bind(null, e)), Jh(function() { + if (n != null && Di(n), t === 1) e.tag === 0 ? lp(bc.bind(null, e)) : lu(bc.bind(null, e)), ep(function() { !(ae & 6) && gn(); }), n = null; else { @@ -4657,7 +4657,7 @@ function qu(e, t) { (Pe !== e || Ae !== t) && (Dt = null, ur = Ce() + 500, bn(e, t)); do try { - jp(); + bp(); break; } catch (i) { Yu(e, i); @@ -4669,7 +4669,7 @@ function qu(e, t) { if (t === 2 && (l = Pa(e), l !== 0 && (r = l, t = co(e, l))), t === 1) throw n = ll, bn(e, 0), Jt(e, r), et(e, Ce()), n; if (t === 6) Jt(e, r); else { - if (l = e.current.alternate, !(r & 30) && !kp(l) && (t = _s(e, r), t === 2 && (a = Pa(e), a !== 0 && (r = a, t = co(e, a))), t === 1)) throw n = ll, bn(e, 0), Jt(e, r), et(e, Ce()), n; + if (l = e.current.alternate, !(r & 30) && !Sp(l) && (t = _s(e, r), t === 2 && (a = Pa(e), a !== 0 && (r = a, t = co(e, a))), t === 1)) throw n = ll, bn(e, 0), Jt(e, r), et(e, Ce()), n; switch (e.finishedWork = l, e.finishedLanes = r, t) { case 0: case 1: @@ -4695,7 +4695,7 @@ function qu(e, t) { var o = 31 - kt(r); a = 1 << o, o = t[o], o > l && (l = o), r &= ~a; } - if (r = l, r = Ce() - r, r = (120 > r ? 120 : 480 > r ? 480 : 1080 > r ? 1080 : 1920 > r ? 1920 : 3e3 > r ? 3e3 : 4320 > r ? 4320 : 1960 * _p(r / 1960)) - r, 10 < r) { + if (r = l, r = Ce() - r, r = (120 > r ? 120 : 480 > r ? 480 : 1080 > r ? 1080 : 1920 > r ? 1920 : 3e3 > r ? 3e3 : 4320 > r ? 4320 : 1960 * kp(r / 1960)) - r, 10 < r) { e.timeoutHandle = Va(_n.bind(null, e, qe, Dt), r); break; } @@ -4718,7 +4718,7 @@ function co(e, t) { function uo(e) { qe === null ? qe = e : qe.push.apply(qe, e); } -function kp(e) { +function Sp(e) { for (var t = e; ; ) { if (t.flags & 16384) { var n = t.updateQueue; @@ -4790,7 +4790,7 @@ function ri() { function bn(e, t) { e.finishedWork = null, e.finishedLanes = 0; var n = e.timeoutHandle; - if (n !== -1 && (e.timeoutHandle = -1, Zh(n)), Me !== null) for (n = Me.return; n !== null; ) { + if (n !== -1 && (e.timeoutHandle = -1, Jh(n)), Me !== null) for (n = Me.return; n !== null; ) { var r = n; switch (Ao(r), r.tag) { case 1: @@ -4923,7 +4923,7 @@ function _s(e, t) { (Pe !== e || Ae !== t) && (Dt = null, bn(e, t)); do try { - Sp(); + jp(); break; } catch (l) { Yu(e, l); @@ -4932,11 +4932,11 @@ function _s(e, t) { if (Wo(), ae = n, vs.current = r, Me !== null) throw Error(V(261)); return Pe = null, Ae = 0, Te; } -function Sp() { +function jp() { for (; Me !== null; ) Zu(Me); } -function jp() { - for (; Me !== null && !qm(); ) Zu(Me); +function bp() { + for (; Me !== null && !Ym(); ) Zu(Me); } function Zu(e) { var t = tf(e.alternate, e, tt); @@ -4947,7 +4947,7 @@ function Ju(e) { do { var n = t.alternate; if (e = t.return, t.flags & 32768) { - if (n = yp(n, t), n !== null) { + if (n = vp(n, t), n !== null) { n.flags &= 32767, Me = n; return; } @@ -4956,7 +4956,7 @@ function Ju(e) { Te = 6, Me = null; return; } - } else if (n = gp(n, t, tt), n !== null) { + } else if (n = yp(n, t, tt), n !== null) { Me = n; return; } @@ -4971,13 +4971,13 @@ function Ju(e) { function _n(e, t, n) { var r = ce, l = ft.transition; try { - ft.transition = null, ce = 1, bp(e, t, n, r); + ft.transition = null, ce = 1, Ep(e, t, n, r); } finally { ft.transition = l, ce = r; } return null; } -function bp(e, t, n, r) { +function Ep(e, t, n, r) { do rr(); while (nn !== null); @@ -4988,16 +4988,16 @@ function bp(e, t, n, r) { if (e.finishedWork = null, e.finishedLanes = 0, n === e.current) throw Error(V(177)); e.callbackNode = null, e.callbackPriority = 0; var a = n.lanes | n.childLanes; - if (sh(e, a), e === Pe && (Me = Pe = null, Ae = 0), !(n.subtreeFlags & 2064) && !(n.flags & 2064) || Dl || (Dl = !0, nf(ns, function() { + if (ah(e, a), e === Pe && (Me = Pe = null, Ae = 0), !(n.subtreeFlags & 2064) && !(n.flags & 2064) || Dl || (Dl = !0, nf(ns, function() { return rr(), null; })), a = (n.flags & 15990) !== 0, n.subtreeFlags & 15990 || a) { a = ft.transition, ft.transition = null; var o = ce; ce = 1; var i = ae; - ae |= 4, Jo.current = null, wp(e, n), Ku(n, e), Qh($a), ls = !!Wa, $a = Wa = null, e.current = n, xp(n), Ym(), ae = i, ce = o, ft.transition = a; + ae |= 4, Jo.current = null, xp(e, n), Ku(n, e), Hh($a), ls = !!Wa, $a = Wa = null, e.current = n, _p(n), Xm(), ae = i, ce = o, ft.transition = a; } else e.current = n; - if (Dl && (Dl = !1, nn = e, xs = l), a = e.pendingLanes, a === 0 && (cn = null), Jm(n.stateNode), et(e, Ce()), t !== null) for (r = e.onRecoverableError, n = 0; n < t.length; n++) l = t[n], r(l.value, { componentStack: l.stack, digest: l.digest }); + if (Dl && (Dl = !1, nn = e, xs = l), a = e.pendingLanes, a === 0 && (cn = null), eh(n.stateNode), et(e, Ce()), t !== null) for (r = e.onRecoverableError, n = 0; n < t.length; n++) l = t[n], r(l.value, { componentStack: l.stack, digest: l.digest }); if (ws) throw ws = !1, e = oo, oo = null, e; return xs & 1 && e.tag !== 0 && rr(), a = e.pendingLanes, a & 1 ? e === io ? Wr++ : (Wr = 0, io = e) : Wr = 0, gn(), null; } @@ -5131,7 +5131,7 @@ function Ee(e, t, n) { t = t.return; } } -function Ep(e, t, n) { +function Cp(e, t, n) { var r = e.pingCache; r !== null && r.delete(t), t = Qe(), e.pingedLanes |= e.suspendedLanes & n, Pe === e && (Ae & n) === n && (Te === 4 || Te === 3 && (Ae & 130023424) === Ae && 500 > Ce() - ti ? bn(e, 0) : ei |= n), et(e, t); } @@ -5140,11 +5140,11 @@ function ef(e, t) { var n = Qe(); e = Wt(e, t), e !== null && (fl(e, t, n), et(e, n)); } -function Cp(e) { +function Np(e) { var t = e.memoizedState, n = 0; t !== null && (n = t.retryLane), ef(e, n); } -function Np(e, t) { +function Mp(e, t) { var n = 0; switch (e.tag) { case 13: @@ -5163,7 +5163,7 @@ var tf; tf = function(e, t, n) { if (e !== null) if (e.memoizedProps !== t.pendingProps || Ze.current) Xe = !0; else { - if (!(e.lanes & n) && !(t.flags & 128)) return Xe = !1, pp(e, t, n); + if (!(e.lanes & n) && !(t.flags & 128)) return Xe = !1, gp(e, t, n); Xe = !!(e.flags & 131072); } else Xe = !1, xe && t.flags & 1048576 && su(t, us, t.index); @@ -5178,7 +5178,7 @@ tf = function(e, t, n) { case 16: r = t.elementType; e: { - switch (Gl(e, t), e = t.pendingProps, l = r._init, r = l(r._payload), t.type = r, l = t.tag = Ip(r), e = vt(r, e), l) { + switch (Gl(e, t), e = t.pendingProps, l = r._init, r = l(r._payload), t.type = r, l = t.tag = Tp(r), e = vt(r, e), l) { case 0: t = Za(null, t, r, e, n); break e; @@ -5312,16 +5312,16 @@ tf = function(e, t, n) { function nf(e, t) { return Md(e, t); } -function Mp(e, t, n, r) { +function Ip(e, t, n, r) { this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null; } function ut(e, t, n, r) { - return new Mp(e, t, n, r); + return new Ip(e, t, n, r); } function si(e) { return e = e.prototype, !(!e || !e.isReactComponent); } -function Ip(e) { +function Tp(e) { if (typeof e == "function") return si(e) ? 1 : 0; if (e != null) { if (e = e.$$typeof, e === jo) return 11; @@ -5385,13 +5385,13 @@ function ma(e, t, n) { function ha(e, t, n) { return t = ut(4, e.children !== null ? e.children : [], e.key, t), t.lanes = n, t.stateNode = { containerInfo: e.containerInfo, pendingChildren: null, implementation: e.implementation }, t; } -function Tp(e, t, n, r, l) { +function Lp(e, t, n, r, l) { this.tag = t, this.containerInfo = e, this.finishedWork = this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.pendingContext = this.context = null, this.callbackPriority = 0, this.eventTimes = Gs(0), this.expirationTimes = Gs(-1), this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = Gs(0), this.identifierPrefix = r, this.onRecoverableError = l, this.mutableSourceEagerHydrationData = null; } function ai(e, t, n, r, l, a, o, i, c) { - return e = new Tp(e, t, n, i, c), t === 1 ? (t = 1, a === !0 && (t |= 8)) : t = 0, a = ut(3, null, null, t), e.current = a, a.stateNode = e, a.memoizedState = { element: r, isDehydrated: n, cache: null, transitions: null, pendingSuspenseBoundaries: null }, Vo(a), e; + return e = new Lp(e, t, n, i, c), t === 1 ? (t = 1, a === !0 && (t |= 8)) : t = 0, a = ut(3, null, null, t), e.current = a, a.stateNode = e, a.memoizedState = { element: r, isDehydrated: n, cache: null, transitions: null, pendingSuspenseBoundaries: null }, Vo(a), e; } -function Lp(e, t, n) { +function Dp(e, t, n) { var r = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; return { $$typeof: Wn, key: r == null ? null : "" + r, children: e, containerInfo: t, implementation: n }; } @@ -5447,7 +5447,7 @@ function Cc(e, t) { function oi(e, t) { Cc(e, t), (e = e.alternate) && Cc(e, t); } -function Dp() { +function Rp() { return null; } var sf = typeof reportError == "function" ? reportError : function(e) { @@ -5490,7 +5490,7 @@ function As(e) { } function Nc() { } -function Rp(e, t, n, r, l) { +function Pp(e, t, n, r, l) { if (l) { if (typeof r == "function") { var a = r; @@ -5527,7 +5527,7 @@ function zs(e, t, n, r, l) { }; } Ps(t, o, e, l); - } else o = Rp(n, t, e, l, r); + } else o = Pp(n, t, e, l, r); return ks(o); } Rd = function(e) { @@ -5604,21 +5604,21 @@ La = function(e, t, n) { }; Sd = ni; jd = Tn; -var Pp = { usingClientEntryPoint: !1, Events: [hl, Qn, Ns, _d, kd, ni] }, Er = { findFiberByHostInstance: kn, bundleType: 0, version: "18.3.1", rendererPackageName: "react-dom" }, Op = { bundleType: Er.bundleType, version: Er.version, rendererPackageName: Er.rendererPackageName, rendererConfig: Er.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, overrideProps: null, overridePropsDeletePath: null, overridePropsRenamePath: null, setErrorHandler: null, setSuspenseHandler: null, scheduleUpdate: null, currentDispatcherRef: Vt.ReactCurrentDispatcher, findHostInstanceByFiber: function(e) { +var Op = { usingClientEntryPoint: !1, Events: [hl, Qn, Ns, _d, kd, ni] }, Er = { findFiberByHostInstance: kn, bundleType: 0, version: "18.3.1", rendererPackageName: "react-dom" }, Ap = { bundleType: Er.bundleType, version: Er.version, rendererPackageName: Er.rendererPackageName, rendererConfig: Er.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, overrideProps: null, overridePropsDeletePath: null, overridePropsRenamePath: null, setErrorHandler: null, setSuspenseHandler: null, scheduleUpdate: null, currentDispatcherRef: Vt.ReactCurrentDispatcher, findHostInstanceByFiber: function(e) { return e = Cd(e), e === null ? null : e.stateNode; -}, findFiberByHostInstance: Er.findFiberByHostInstance || Dp, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, reconcilerVersion: "18.3.1-next-f1338f8080-20240426" }; +}, findFiberByHostInstance: Er.findFiberByHostInstance || Rp, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, reconcilerVersion: "18.3.1-next-f1338f8080-20240426" }; if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") { var Rl = __REACT_DEVTOOLS_GLOBAL_HOOK__; if (!Rl.isDisabled && Rl.supportsFiber) try { - js = Rl.inject(Op), Nt = Rl; + js = Rl.inject(Ap), Nt = Rl; } catch { } } -st.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Pp; +st.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Op; st.createPortal = function(e, t) { var n = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null; if (!ci(t)) throw Error(V(200)); - return Lp(e, t, null, n); + return Dp(e, t, null, n); }; st.createRoot = function(e, t) { if (!ci(e)) throw Error(V(299)); @@ -5689,15 +5689,15 @@ var cf = { exports: {} }, Fs = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var Ap = h, zp = Symbol.for("react.element"), Fp = Symbol.for("react.fragment"), Wp = Object.prototype.hasOwnProperty, $p = Ap.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, Up = { key: !0, ref: !0, __self: !0, __source: !0 }; +var zp = h, Fp = Symbol.for("react.element"), Wp = Symbol.for("react.fragment"), $p = Object.prototype.hasOwnProperty, Up = zp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, Vp = { key: !0, ref: !0, __self: !0, __source: !0 }; function df(e, t, n) { var r, l = {}, a = null, o = null; n !== void 0 && (a = "" + n), t.key !== void 0 && (a = "" + t.key), t.ref !== void 0 && (o = t.ref); - for (r in t) Wp.call(t, r) && !Up.hasOwnProperty(r) && (l[r] = t[r]); + for (r in t) $p.call(t, r) && !Vp.hasOwnProperty(r) && (l[r] = t[r]); if (e && e.defaultProps) for (r in t = e.defaultProps, t) l[r] === void 0 && (l[r] = t[r]); - return { $$typeof: zp, type: e, key: a, ref: o, props: l, _owner: $p.current }; + return { $$typeof: Fp, type: e, key: a, ref: o, props: l, _owner: Up.current }; } -Fs.Fragment = Fp; +Fs.Fragment = Wp; Fs.jsx = df; Fs.jsxs = df; cf.exports = Fs; @@ -5708,7 +5708,7 @@ var s = cf.exports; * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -var Vp = { +var Bp = { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, @@ -5725,7 +5725,7 @@ var Vp = { * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const Bp = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().trim(), J = (e, t) => { +const Qp = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().trim(), J = (e, t) => { const n = h.forwardRef( ({ color: r = "currentColor", @@ -5739,12 +5739,12 @@ const Bp = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase().trim(), "svg", { ref: p, - ...Vp, + ...Bp, width: l, height: l, stroke: r, strokeWidth: o ? Number(a) * 24 / Number(l) : a, - className: ["lucide", `lucide-${Bp(e)}`, i].join(" "), + className: ["lucide", `lucide-${Qp(e)}`, i].join(" "), ...d }, [ @@ -5772,7 +5772,7 @@ const uf = J("AlertCircle", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const Qp = J("AlertTriangle", [ +const Hp = J("AlertTriangle", [ [ "path", { @@ -5799,7 +5799,7 @@ const ff = J("ArrowDown", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const Hp = J("ArrowUpDown", [ +const Kp = J("ArrowUpDown", [ ["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }], ["path", { d: "M17 20V4", key: "1ejh1v" }], ["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }], @@ -5821,7 +5821,7 @@ const mf = J("ArrowUp", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const Kp = J("Box", [ +const Gp = J("Box", [ [ "path", { @@ -5838,7 +5838,7 @@ const Kp = J("Box", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const Gp = J("Calendar", [ +const qp = J("Calendar", [ ["path", { d: "M8 2v4", key: "1cmpym" }], ["path", { d: "M16 2v4", key: "4m81vk" }], ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }], @@ -5850,7 +5850,7 @@ const Gp = J("Calendar", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const qp = J("CheckCircle", [ +const Yp = J("CheckCircle", [ ["path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14", key: "g774vq" }], ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }] ]); @@ -5867,7 +5867,7 @@ const di = J("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]); * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const Yp = J("ChevronDown", [ +const Xp = J("ChevronDown", [ ["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }] ]); /** @@ -5894,7 +5894,7 @@ const ui = J("ChevronRight", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const Xp = J("Circle", [ +const Zp = J("Circle", [ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }] ]); /** @@ -5903,7 +5903,7 @@ const Xp = J("Circle", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const Zp = J("Copy", [ +const Jp = J("Copy", [ ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }], ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }] ]); @@ -5924,7 +5924,7 @@ const sl = J("Download", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const Jp = J("Eraser", [ +const eg = J("Eraser", [ [ "path", { @@ -5959,7 +5959,7 @@ const fi = J("FileJson", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const eg = J("FileText", [ +const tg = J("FileText", [ ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }], ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }], ["path", { d: "M10 9H8", key: "b1mrlr" }], @@ -5972,7 +5972,7 @@ const eg = J("FileText", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const tg = J("Folder", [ +const ng = J("Folder", [ [ "path", { @@ -5987,7 +5987,7 @@ const tg = J("Folder", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const ng = J("Info", [ +const rg = J("Info", [ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }], ["path", { d: "M12 16v-4", key: "1dtifu" }], ["path", { d: "M12 8h.01", key: "e9boi3" }] @@ -5998,7 +5998,7 @@ const ng = J("Info", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const rg = J("Lasso", [ +const lg = J("Lasso", [ ["path", { d: "M7 22a5 5 0 0 1-2-4", key: "umushi" }], [ "path", @@ -6027,7 +6027,7 @@ const pf = J("LayoutGrid", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const lg = J("LayoutList", [ +const sg = J("LayoutList", [ ["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }], ["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }], ["path", { d: "M14 4h7", key: "3xa0d5" }], @@ -6041,7 +6041,7 @@ const lg = J("LayoutList", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const sg = J("Link2Off", [ +const ag = J("Link2Off", [ ["path", { d: "M9 17H7A5 5 0 0 1 7 7", key: "10o201" }], ["path", { d: "M15 7h2a5 5 0 0 1 4 8", key: "1d3206" }], ["line", { x1: "8", x2: "12", y1: "12", y2: "12", key: "rvw6j4" }], @@ -6053,7 +6053,7 @@ const sg = J("Link2Off", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const ag = J("Link", [ +const og = J("Link", [ ["path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71", key: "1cjeqo" }], ["path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71", key: "19qd67" }] ]); @@ -6072,7 +6072,7 @@ const Ic = J("Loader2", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const og = J("Maximize", [ +const ig = J("Maximize", [ ["path", { d: "M8 3H5a2 2 0 0 0-2 2v3", key: "1dcmit" }], ["path", { d: "M21 8V5a2 2 0 0 0-2-2h-3", key: "1e4gt3" }], ["path", { d: "M3 16v3a2 2 0 0 0 2 2h3", key: "wsl5sc" }], @@ -6084,7 +6084,7 @@ const og = J("Maximize", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const ig = J("Menu", [ +const cg = J("Menu", [ ["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }], ["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }], ["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }] @@ -6095,7 +6095,7 @@ const ig = J("Menu", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const cg = J("Minimize", [ +const dg = J("Minimize", [ ["path", { d: "M8 3v3a2 2 0 0 1-2 2H3", key: "hohbtr" }], ["path", { d: "M21 8h-3a2 2 0 0 1-2-2V3", key: "5jw1f3" }], ["path", { d: "M3 16h3a2 2 0 0 1 2 2v3", key: "198tvr" }], @@ -6107,7 +6107,7 @@ const cg = J("Minimize", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const dg = J("MoreVertical", [ +const ug = J("MoreVertical", [ ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }], ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }], ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }] @@ -6118,7 +6118,7 @@ const dg = J("MoreVertical", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const ug = J("PanelBottom", [ +const fg = J("PanelBottom", [ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }], ["path", { d: "M3 15h18", key: "5xshup" }] ]); @@ -6168,7 +6168,7 @@ const ol = J("RefreshCw", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const fg = J("ScanLine", [ +const mg = J("ScanLine", [ ["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }], ["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }], ["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }], @@ -6231,7 +6231,7 @@ const fr = J("Star", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const mg = J("StickyNote", [ +const hg = J("StickyNote", [ ["path", { d: "M16 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8Z", key: "qazsjp" }], ["path", { d: "M15 3v4a2 2 0 0 0 2 2h4", key: "40519r" }] ]); @@ -6270,7 +6270,7 @@ const Ut = J("Trash2", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const hg = J("Trash", [ +const pg = J("Trash", [ ["path", { d: "M3 6h18", key: "d0wm0j" }], ["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }], ["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }] @@ -6281,7 +6281,7 @@ const hg = J("Trash", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const pg = J("Type", [ +const gg = J("Type", [ ["polyline", { points: "4 7 4 4 20 4 20 7", key: "1nosan" }], ["line", { x1: "9", x2: "15", y1: "20", y2: "20", key: "swin9y" }], ["line", { x1: "12", x2: "12", y1: "4", y2: "20", key: "1tx1rr" }] @@ -6292,7 +6292,7 @@ const pg = J("Type", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const gg = J("Undo2", [ +const yg = J("Undo2", [ ["path", { d: "M9 14 4 9l5-5", key: "102s5s" }], ["path", { d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5v0a5.5 5.5 0 0 1-5.5 5.5H11", key: "llx8ln" }] ]); @@ -6302,7 +6302,7 @@ const gg = J("Undo2", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const yg = J("Upload", [ +const vg = J("Upload", [ ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }], ["polyline", { points: "17 8 12 3 7 8", key: "t8dd8p" }], ["line", { x1: "12", x2: "12", y1: "3", y2: "15", key: "widbto" }] @@ -6313,7 +6313,7 @@ const yg = J("Upload", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const vg = J("Workflow", [ +const wg = J("Workflow", [ ["rect", { width: "8", height: "8", x: "3", y: "3", rx: "2", key: "by2w9f" }], ["path", { d: "M7 11v4a2 2 0 0 0 2 2h4", key: "xkn7yn" }], ["rect", { width: "8", height: "8", x: "13", y: "13", rx: "2", key: "1cgmvn" }] @@ -6334,7 +6334,7 @@ const pe = J("X", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const wg = J("ZoomIn", [ +const xg = J("ZoomIn", [ ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }], ["line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65", key: "13gj7c" }], ["line", { x1: "11", x2: "11", y1: "8", y2: "14", key: "1vmskp" }], @@ -6346,7 +6346,7 @@ const wg = J("ZoomIn", [ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const xg = J("ZoomOut", [ +const _g = J("ZoomOut", [ ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }], ["line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65", key: "13gj7c" }], ["line", { x1: "8", x2: "14", y1: "11", y2: "11", key: "durymu" }] @@ -6390,7 +6390,7 @@ async function mi(e) { } return t; } -const _g = async () => { +const kg = async () => { const e = await te.fetchApi("/meld/home-dir"); return (await le(e)).home; }, Le = ({ @@ -6407,19 +6407,19 @@ const _g = async () => { }, [e, t, n]); }; let Ss = !1; -const kg = (e) => { +const Sg = (e) => { Ss = e, Ss && console.log("[Meld] Logger initialized in DEV mode (MELD_DEV=true)."); -}, Sg = (...e) => { - Ss && console.log("[Meld]", ...e); }, jg = (...e) => { - Ss && console.warn("[Meld]", ...e); + Ss && console.log("[Meld]", ...e); }, bg = (...e) => { + Ss && console.warn("[Meld]", ...e); +}, Eg = (...e) => { console.error("[Meld]", ...e); }, P = { - log: Sg, - warn: jg, - error: bg, - init: kg + log: jg, + warn: bg, + error: Eg, + init: Sg }, Zl = async (e = 0, t = 30, n = "", r = "default", l = !1) => { const a = await te.fetchApi( `/meld/list?offset=${e}&limit=${t}&query=${encodeURIComponent(n)}&view=${r}${l ? "&minimal=true" : ""}` @@ -6428,7 +6428,7 @@ const kg = (e) => { }, xf = async (e) => { const t = await te.fetchApi(`/meld/image/${e}/details`); return le(t); -}, Eg = async (e, t = !1) => { +}, Cg = async (e, t = !1) => { const n = await te.fetchApi("/meld/bulk-delete", { method: "POST", headers: { "Content-Type": "application/json" }, @@ -6459,7 +6459,7 @@ const kg = (e) => { body: JSON.stringify({ childId: e, parentId: t }) }); await le(n); -}, Cg = async (e, t) => { +}, Ng = async (e, t) => { const n = t !== void 0 ? `&threshold=${t}` : "", r = await te.fetchApi(`/meld/suggest-parents?id=${e}${n}`); try { return await le(r); @@ -6473,14 +6473,14 @@ const kg = (e) => { } catch { return []; } -}, Ng = async (e, t) => { +}, Mg = async (e, t) => { const n = await te.fetchApi("/meld/image-tags", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ imageId: e, tags: t }) }); await le(n); -}, Mg = async (e, t) => { +}, Ig = async (e, t) => { const n = await te.fetchApi("/meld/image-notes", { method: "POST", headers: { "Content-Type": "application/json" }, @@ -6494,13 +6494,13 @@ const kg = (e) => { body: JSON.stringify({ imageIds: e, addTags: t, removeTags: n }) }); await le(r); -}, Ig = async (e) => { +}, Tg = async (e) => { const t = await te.fetchApi(`/meld/image/${e}/workflow`); return le(t); -}, Tg = async (e) => { +}, Lg = async (e) => { const t = await te.fetchApi(`/meld/image/${e}/snapshot_data`); return le(t); -}, Lg = async (e, t) => { +}, Dg = async (e, t) => { const n = await te.fetchApi("/meld/api/download/zip", { method: "POST", headers: { "Content-Type": "application/json" }, @@ -6510,7 +6510,7 @@ const kg = (e) => { throw new Error("Failed to download ZIP"); const r = await n.blob(), l = window.URL.createObjectURL(r), a = document.createElement("a"); a.href = l, a.download = `meld_images_${Date.now()}.zip`, document.body.appendChild(a), a.click(), window.URL.revokeObjectURL(l), document.body.removeChild(a); -}, Dg = async (e, t) => { +}, Rg = async (e, t) => { const n = await te.fetchApi("/meld/api/download/raw", { method: "POST", headers: { "Content-Type": "application/json" }, @@ -6526,22 +6526,22 @@ const kg = (e) => { } const a = await n.blob(), o = window.URL.createObjectURL(a), i = document.createElement("a"); i.href = o, i.download = l, document.body.appendChild(i), i.click(), window.URL.revokeObjectURL(o), document.body.removeChild(i); -}, Rg = async (e, t) => { +}, Pg = async (e, t) => { const n = `/meld/suggest?query=${encodeURIComponent(e)}${t ? `&type=${t}` : ""}`, r = await te.fetchApi(n); return le(r); -}, Pg = async () => { +}, Og = async () => { const e = await te.fetchApi("/meld/search-suggestions"); return le(e); -}, Og = async () => { +}, Ag = async () => { const e = await te.fetchApi("/meld/search-keywords"); return le(e); -}, Ag = async () => { +}, zg = async () => { const e = await te.fetchApi("/meld/search-config"); return le(e); -}, zg = async () => { +}, Fg = async () => { const e = await te.fetchApi("/meld/favorites"); return le(e); -}, Fg = async (e, t) => { +}, Wg = async (e, t) => { const n = await te.fetchApi("/meld/favorites", { method: "POST", headers: { "Content-Type": "application/json" }, @@ -6555,14 +6555,14 @@ const kg = (e) => { body: JSON.stringify({ id: e }) }); await le(t); -}, Wg = async (e, t, n) => { +}, $g = async (e, t, n) => { const r = await te.fetchApi("/meld/favorites/update", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ id: e, name: t, query: n }) }); await le(r); -}, $g = { +}, Ug = { dev_mode: !1, "gallery.show_parent_image": !0, "gallery.show_parent_images": !1, @@ -6642,17 +6642,17 @@ const kg = (e) => { const t = await te.fetchApi("/meld/settings"); e = await le(t); } catch (t) { - return P.error("Failed to fetch settings, using defaults", t), $g; + return P.error("Failed to fetch settings, using defaults", t), Ug; } return typeof e["sidebar.show_filename"] == "boolean" && (e["sidebar.show_filename"] = e["sidebar.show_filename"] ? "filename" : "none"), typeof e["viewer.details.show_filename"] == "boolean" && (e["viewer.details.show_filename"] = e["viewer.details.show_filename"] ? "filename" : "none"), typeof e["fullscreen.details.show_filename"] == "boolean" && (e["fullscreen.details.show_filename"] = e["fullscreen.details.show_filename"] ? "filename" : "none"), e; -}, Ug = async (e, t) => { +}, Vg = async (e, t) => { const n = await te.fetchApi("/meld/settings", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ key: e, value: t }) }); await le(n); -}, Vg = async () => { +}, Bg = async () => { const e = await te.fetchApi("/meld/clear-thumbnail-cache", { method: "POST" }); @@ -6661,7 +6661,7 @@ const kg = (e) => { function Cr(e) { return Array.from(new Map(e.map((t) => [t.id, t])).values()); } -const Bg = (e, t) => { +const Qg = (e, t) => { switch (t.type) { case "SET_FAVORITES": return { @@ -6771,7 +6771,7 @@ function jf(e) { const t = e.initialMaskMode; return t ? t === "apply" || t === "run" ? t : t === !0 ? "run" : !1 : !1; } -const Qg = (e, t) => { +const Hg = (e, t) => { switch (t.type) { case "OPEN_MODAL": return { @@ -6810,7 +6810,7 @@ const Qg = (e, t) => { default: return e; } -}, Hg = (e, t) => { +}, Kg = (e, t) => { switch (t.type) { case "TOGGLE_SELECT": { const n = new Set(e.selectedIds); @@ -6882,7 +6882,7 @@ const Qg = (e, t) => { default: return e; } -}, Kg = (e, t) => { +}, Gg = (e, t) => { switch (t.type) { case "SET_SCAN_STATUS": return { @@ -6939,7 +6939,7 @@ function Rc(e, t) { (r) => r.exists !== !1 && (e.settings["gallery.show_parent_images"] || n || !r.has_children) ); } -const Gg = (e, t) => { +const qg = (e, t) => { var n, r, l, a, o; switch (t.type) { case "SET_IMAGES": { @@ -7002,14 +7002,14 @@ const Gg = (e, t) => { default: return e; } -}, qg = [ - Gg, - Bg, - Hg, +}, Yg = [ + qg, Qg, - Kg + Kg, + Hg, + Gg ]; -function Yg(e, t) { +function Xg(e, t) { return t.type === "REFRESH" ? e : t.type === "SET_VIEW_SCOPE" ? { ...e, viewScope: t.payload, @@ -7022,9 +7022,9 @@ function Yg(e, t) { total: 0, hasMore: !1 } - } : qg.reduce((n, r) => r(n, t), e); + } : Yg.reduce((n, r) => r(n, t), e); } -const Xg = { +const Zg = { images: [], selectedIds: /* @__PURE__ */ new Set(), isLoading: !1, @@ -7134,11 +7134,11 @@ const Xg = { toastType: "info", confirmModal: null }; -function Zg(e, t) { - return Yg(e, t); +function Jg(e, t) { + return Xg(e, t); } -const bf = h.createContext(void 0), Jg = ({ children: e }) => { - const [t, n] = h.useReducer(Zg, Xg), r = h.useRef(t.images.length), l = h.useRef(0), a = h.useRef(/* @__PURE__ */ new Map()); +const bf = h.createContext(void 0), ey = ({ children: e }) => { + const [t, n] = h.useReducer(Jg, Zg), r = h.useRef(t.images.length), l = h.useRef(0), a = h.useRef(/* @__PURE__ */ new Map()); h.useEffect(() => { r.current = t.images.length; }, [t.images.length]); @@ -7239,7 +7239,7 @@ const bf = h.createContext(void 0), Jg = ({ children: e }) => { t.viewScope ]), d = h.useCallback(async () => { try { - const w = await zg(); + const w = await Fg(); n({ type: "SET_FAVORITES", payload: w }); } catch (w) { P.error("Failed to load favorites", w); @@ -7272,7 +7272,7 @@ const bf = h.createContext(void 0), Jg = ({ children: e }) => { }, [t.selectedIds, t.viewScope]), y = h.useCallback( async (w, x) => { try { - await Ug(w, x), n({ type: "SET_SETTINGS", payload: { [w]: x } }); + await Vg(w, x), n({ type: "SET_SETTINGS", payload: { [w]: x } }); } catch (_) { n({ type: "SET_ERROR", @@ -7390,41 +7390,41 @@ const bf = h.createContext(void 0), Jg = ({ children: e }) => { }, gi = async () => { const e = await te.fetchApi("/meld/tags"); return le(e); -}, ey = async (e) => { +}, ty = async (e) => { const t = await te.fetchApi("/meld/tags", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ name: e }) }); return le(t); -}, ty = async (e) => { +}, ny = async (e) => { const t = await te.fetchApi(`/meld/tags?id=${e}`, { method: "DELETE" }); await le(t); -}, ny = async (e, t) => { +}, ry = async (e, t) => { const n = await te.fetchApi("/meld/tags/rename", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ id: e, name: t }) }); await le(n); -}, ry = (e) => { +}, ly = (e) => { if (typeof e != "object" || e === null) return !1; const t = e; return typeof t.name == "string" && typeof t.subfolder == "string" && typeof t.type == "string"; -}, ly = async (e) => { +}, sy = async (e) => { const t = new FormData(); t.append("image", e); const n = await te.fetchApi("/upload/image", { method: "POST", body: t }), r = await mi(n); - if (!ry(r)) + if (!ly(r)) throw new Error("Invalid upload image response shape"); return r; -}, sy = async (e, t, n = !1, r) => { +}, ay = async (e, t, n = !1, r) => { const l = await te.fetchApi( `/meld/folders?type=${e}&path=${encodeURIComponent(t)}&fast=${n}`, { signal: r } @@ -7434,7 +7434,7 @@ const bf = h.createContext(void 0), Jg = ({ children: e }) => { } catch (a) { return P.error("Failed to fetch folders", a), { folders: [], images: [], image_count: 0 }; } -}, ay = async (e, t, n, r) => { +}, oy = async (e, t, n, r) => { if (n.length === 0) return {}; const l = await te.fetchApi( `/meld/folder-metadata?type=${e}&path=${encodeURIComponent(t)}&folders=${encodeURIComponent(n.join(","))}`, @@ -7445,7 +7445,7 @@ const bf = h.createContext(void 0), Jg = ({ children: e }) => { } catch (a) { return P.error("Failed to fetch folder metadata", a), {}; } -}, oy = async (e, t, n) => { +}, iy = async (e, t, n) => { const r = await te.fetchApi( `/meld/path-image-count?type=${e}&path=${encodeURIComponent(t)}`, { signal: n } @@ -7455,14 +7455,14 @@ const bf = h.createContext(void 0), Jg = ({ children: e }) => { } catch { return 0; } -}, iy = async (e) => { +}, cy = async (e) => { const t = await te.fetchApi("/meld/scan", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(e) }); await le(t); -}, cy = async () => { +}, dy = async () => { const e = await te.fetchApi("/meld/scan/cancel", { method: "POST" }); @@ -7499,7 +7499,7 @@ const bf = h.createContext(void 0), Jg = ({ children: e }) => { h.useEffect(() => { (async () => { try { - const Q = await _g(); + const Q = await kg(); n((D) => D.custom_path ? D : { ...D, custom_path: Q }); } catch (Q) { P.error("Failed to fetch home directory:", Q); @@ -7517,7 +7517,7 @@ const bf = h.createContext(void 0), Jg = ({ children: e }) => { const L = D, N = t.type; try { P.log("Step 1: Fast load starting..."); - const T = await sy(t.type, D, !0, C.signal); + const T = await ay(t.type, D, !0, C.signal); if (C.signal.aborted) { P.log("Step 1: Aborted."); return; @@ -7526,7 +7526,7 @@ const bf = h.createContext(void 0), Jg = ({ children: e }) => { `Step 1 complete. Found ${T.folders.length} folders, ${T.images.length} images.` ), l(T.folders), o(T.images), c(null); const W = T.folders.map((E) => E.name); - W.length > 0 && (P.log(`Step 2: Metadata fetch starting for ${W.length} folders...`), ay(N, L, W, C.signal).then((E) => { + W.length > 0 && (P.log(`Step 2: Metadata fetch starting for ${W.length} folders...`), oy(N, L, W, C.signal).then((E) => { if (C.signal.aborted) { P.log("Step 2: Aborted."); return; @@ -7539,7 +7539,7 @@ const bf = h.createContext(void 0), Jg = ({ children: e }) => { ); }).catch((E) => { E.name !== "AbortError" && P.error("Step 2: Metadata fetch failed:", E); - })), P.log("Step 3: Path image count starting..."), oy(N, L, C.signal).then((E) => { + })), P.log("Step 3: Path image count starting..."), iy(N, L, C.signal).then((E) => { if (C.signal.aborted) { P.log("Step 3: Aborted."); return; @@ -7590,7 +7590,7 @@ const bf = h.createContext(void 0), Jg = ({ children: e }) => { C.key === "Enter" && k.trim() && (C.preventDefault(), I(k.trim())); }, M = async () => { try { - await iy(t), e({ + await cy(t), e({ type: "SET_SCAN_STATUS", payload: { isRunning: !0, @@ -7819,7 +7819,7 @@ const bf = h.createContext(void 0), Jg = ({ children: e }) => { src: mt(C.preview, 64), alt: "" } - ) : /* @__PURE__ */ s.jsx(tg, { size: 16 }) }), + ) : /* @__PURE__ */ s.jsx(ng, { size: 16 }) }), /* @__PURE__ */ s.jsx("span", { className: "meld-folder-name", children: C.name }), /* @__PURE__ */ s.jsx( "span", @@ -7884,8 +7884,33 @@ const bf = h.createContext(void 0), Jg = ({ children: e }) => { ), document.fullscreenElement || document.body ); -}, dy = ({ imageIds: e, onSuccess: t, onClose: n }) => { - const [r, l] = h.useState("zip"), [a, o] = h.useState(!1), [i, c] = h.useState(!1), d = h.useRef(!1), p = (k) => { +}, Cf = "meld-download-options"; +function uy() { + try { + const e = localStorage.getItem(Cf); + if (e) { + const t = JSON.parse(e), n = t.removeMetadata, r = n === !0 || n === "true" || typeof n == "number" && n === 1; + return { + format: t.format === "raw" ? "raw" : "zip", + removeMetadata: r + }; + } + } catch { + } + return { format: "zip", removeMetadata: !1 }; +} +function fy(e) { + try { + localStorage.setItem(Cf, JSON.stringify(e)); + } catch { + } +} +const my = ({ imageIds: e, onSuccess: t, onClose: n }) => { + const [r, l] = h.useState(() => uy()), { format: a, removeMetadata: o } = r, [i, c] = h.useState(!1), d = h.useRef(!1); + h.useEffect(() => { + fy(r); + }, [r]); + const p = (k) => { k.target === k.currentTarget && (d.current = !0); }, v = (k) => { k.target === k.currentTarget && d.current && (i || n()), d.current = !1; @@ -7898,11 +7923,11 @@ const bf = h.createContext(void 0), Jg = ({ children: e }) => { const y = async () => { c(!0); try { - if (r === "zip") - await Lg(e, a); + if (a === "zip") + await Dg(e, o); else for (const k of e) - await Dg(k, a), await new Promise((w) => setTimeout(w, 200)); + await Rg(k, o), await new Promise((w) => setTimeout(w, 200)); n(), t == null || t(); } catch (k) { P.error("Download failed:", k), alert("Failed to download images."); @@ -7971,8 +7996,8 @@ const bf = h.createContext(void 0), Jg = ({ children: e }) => { type: "radio", name: "format", value: "zip", - checked: r === "zip", - onChange: () => l("zip"), + checked: a === "zip", + onChange: () => l((k) => ({ ...k, format: "zip" })), disabled: i } ), @@ -7996,8 +8021,8 @@ const bf = h.createContext(void 0), Jg = ({ children: e }) => { type: "radio", name: "format", value: "raw", - checked: r === "raw", - onChange: () => l("raw"), + checked: a === "raw", + onChange: () => l((k) => ({ ...k, format: "raw" })), disabled: i } ), @@ -8034,8 +8059,8 @@ const bf = h.createContext(void 0), Jg = ({ children: e }) => { "input", { type: "checkbox", - checked: a, - onChange: (k) => o(k.target.checked), + checked: o, + onChange: (k) => l((w) => ({ ...w, removeMetadata: k.target.checked })), disabled: i } ), @@ -8086,8 +8111,8 @@ const bf = h.createContext(void 0), Jg = ({ children: e }) => { } }, l = () => t, i = { setState: r, getState: l, getInitialState: () => c, subscribe: (d) => (n.add(d), () => n.delete(d)) }, c = t = e(r, l, i); return i; -}, uy = (e) => e ? Pc(e) : Pc, fy = (e) => e; -function my(e, t = fy) { +}, hy = (e) => e ? Pc(e) : Pc, py = (e) => e; +function gy(e, t = py) { const n = en.useSyncExternalStore( e.subscribe, en.useCallback(() => t(e.getState()), [e, t]), @@ -8095,11 +8120,11 @@ function my(e, t = fy) { ); return en.useDebugValue(n), n; } -const hy = (e) => { - const t = uy(e), n = (r) => my(t, r); +const yy = (e) => { + const t = hy(e), n = (r) => gy(t, r); return Object.assign(n, t), n; -}, py = (e) => hy; -function gy(e, t) { +}, vy = (e) => yy; +function wy(e, t) { let n; try { n = e(); @@ -8137,9 +8162,9 @@ const mo = (e) => (t) => { } }; } -}, yy = (e, t) => (n, r, l) => { +}, xy = (e, t) => (n, r, l) => { let a = { - storage: gy(() => window.localStorage), + storage: wy(() => window.localStorage), partialize: (_) => _, version: 0, merge: (_, f) => ({ @@ -8236,7 +8261,7 @@ const mo = (e) => (t) => { d.delete(_); }) }, a.skipHydration || x(), w || k; -}, vy = yy, wy = [ +}, _y = xy, ky = [ { id: "keep", label: "Keep", @@ -8257,11 +8282,11 @@ const mo = (e) => (t) => { } ]; let Pl = null; -const se = py()( - vy( +const se = vy()( + _y( (e) => ({ isOpen: !1, - slots: wy, + slots: ky, buckets: {}, images: {}, toastMessage: null, @@ -8347,16 +8372,16 @@ const se = py()( }) } ) -), Cf = async () => { +), Nf = async () => { const e = await te.fetchApi("/meld/workflows"); return le(e); -}, Nf = async (e) => { +}, Mf = async (e) => { const t = await te.fetchApi(`/meld/workflow/raw?name=${encodeURIComponent(e)}`); return le(t); -}, Mf = (e) => e ? e.replace(/\s+/g, "").toLowerCase() : "", lr = (e) => { - const t = Mf(e); +}, If = (e) => e ? e.replace(/\s+/g, "").toLowerCase() : "", lr = (e) => { + const t = If(e); return t === "meldimageloader" || t === "loadimage"; -}, $r = (e) => Mf(e) === "loadimagemask", xy = (e) => Array.isArray(e) && e.every( +}, $r = (e) => If(e) === "loadimagemask", Sy = (e) => Array.isArray(e) && e.every( (t) => typeof t == "object" && t !== null && "id" in t && "type" in t ), yi = () => ({ executeWorkflow: h.useCallback( async (t, n, r, l) => { @@ -8367,7 +8392,7 @@ const se = py()( maskFilename: r, targetLoaderNodeId: l }); - const a = await Nf(t); + const a = await Mf(t); P.log("Workflow fetched:", t); let o = l || null, i = null, c = !1; if (a.nodes && Array.isArray(a.nodes)) { @@ -8410,7 +8435,7 @@ const se = py()( if (typeof g != "object" || g === null || !("graph" in g)) throw new Error("Active ComfyUI graph is not available. Please open a workflow first."); const j = g; - if (!j.graph || !xy(j.graph._nodes)) + if (!j.graph || !Sy(j.graph._nodes)) throw new Error("Active ComfyUI graph is not available. Please open a workflow first."); const S = t.replace(/\.json$/i, ""); let b = !1; @@ -8479,8 +8504,8 @@ const se = py()( return mi(w); }, [] -) }), If = (e) => !!(e && Array.isArray(e.widgets)); -function _y(e) { +) }), Tf = (e) => !!(e && Array.isArray(e.widgets)); +function jy(e) { let t = e.filename; return e.subfolder && (t = `${e.subfolder}/${e.filename}`), e.type && e.type !== "input" && (t = `${t} [${e.type}]`), t; } @@ -8491,7 +8516,7 @@ function il(e, t) { return { ok: !1, reason: "no_app_graph" }; if (!Array.isArray(n.graph._nodes)) return { ok: !1, reason: "no_loader_node" }; - const r = _y(e), l = n.graph._nodes.filter((d) => lr(d.type)); + const r = jy(e), l = n.graph._nodes.filter((d) => lr(d.type)); if (l.length === 0) return { ok: !1, reason: "no_loader_node" }; let a = l[0]; @@ -8499,12 +8524,12 @@ function il(e, t) { const d = l.find((p) => String(p.id) === t); d && (a = d); } - if (!If(a)) + if (!Tf(a)) return { ok: !1, reason: "no_widgets" }; const o = a.widgets.find((d) => d.name === "image"); return o ? (o.value = r, typeof o.callback == "function" && o.callback(r), (c = (i = n.graph).afterChange) == null || c.call(i), n.graph.setDirtyCanvas(!0, !0), { ok: !0 }) : { ok: !1, reason: "no_image_widget" }; } -const ky = () => { +const by = () => { const { dispatch: e } = ge(); return { injectMaskToGraph: h.useCallback( (n, r) => { @@ -8527,7 +8552,7 @@ const ky = () => { const o = a[0]; if (!o) return !1; - if (!If(o)) + if (!Tf(o)) return P.log("[Meld-Debug] injectMaskToGraph: target mask node has no widgets", o.id), !1; const i = o.widgets.find((y) => y.name === "image"), c = `${r} [temp]`; P.log( @@ -8549,7 +8574,7 @@ function Ol(e, t) { height: t }; } -function Sy(e, t, n = 255) { +function Ey(e, t, n = 255) { const { width: r, height: l } = e, a = document.createElement("canvas"); a.width = r, a.height = l; const o = a.getContext("2d", { willReadFrequently: !0 }); @@ -8571,7 +8596,7 @@ function ho(e, t = [255, 255, 255], n = 255) { } return o; } -function jy(e) { +function Cy(e) { return e.data.every((t) => t === 0); } const Oc = (e) => e === "rect" || e === "ellipse" || e === "lasso", vi = ({ @@ -8583,7 +8608,7 @@ const Oc = (e) => e === "rect" || e === "ellipse" || e === "lasso", vi = ({ }) => { const { state: a, dispatch: o } = ge(), i = h.useMemo(() => a.images.find(($) => $.id === e) ?? a.lineageImages.find(($) => $.id === e) ?? se.getState().images[String(e)], [a.images, a.lineageImages, e]), c = h.useRef(void 0); i && (c.current = i); - const d = i ?? c.current, { injectMaskToGraph: p } = ky(), { executeWorkflow: v } = yi(); + const d = i ?? c.current, { injectMaskToGraph: p } = by(), { executeWorkflow: v } = yi(); Le({ onEscape: l }); const y = h.useRef(null), k = h.useRef(null), w = h.useRef(null), x = h.useRef(null), [_, f] = h.useState(!1), [u, m] = h.useState(() => { const $ = localStorage.getItem("meld-mask-tool"); @@ -8771,15 +8796,15 @@ const Oc = (e) => e === "rect" || e === "ellipse" || e === "lasso", vi = ({ const Ne = { x: (ee.clientX - ne.left - D.x) / C, y: (ee.clientY - ne.top - D.y) / C - }, fe = Math.max(q.left, Math.min(Ne.x, q.left + q.width)), _e = Math.max(q.top, Math.min(Ne.y, q.top + q.height)), we = Math.min(g.x, fe), Fe = Math.min(g.y, _e), Kt = Math.abs(g.x - fe), vr = Math.abs(g.y - _e), um = u === "lasso"; - if (Kt > 5 || vr > 5 || um && I.length > 2) { - const fm = w.current.naturalWidth, mm = w.current.naturalHeight, On = fm / q.width, An = mm / q.height, hm = Sy(ue, (yn) => { + }, fe = Math.max(q.left, Math.min(Ne.x, q.left + q.width)), _e = Math.max(q.top, Math.min(Ne.y, q.top + q.height)), we = Math.min(g.x, fe), Fe = Math.min(g.y, _e), Kt = Math.abs(g.x - fe), vr = Math.abs(g.y - _e), fm = u === "lasso"; + if (Kt > 5 || vr > 5 || fm && I.length > 2) { + const mm = w.current.naturalWidth, hm = w.current.naturalHeight, On = mm / q.width, An = hm / q.height, pm = Ey(ue, (yn) => { if (u === "rect") { const vn = (we - q.left) * On, wn = (Fe - q.top) * An, Gt = Kt * On, yl = vr * An; yn.rect(vn, wn, Gt, yl); } else if (u === "ellipse") { - const vn = (we - q.left) * On, wn = (Fe - q.top) * An, Gt = Kt * On, yl = vr * An, pm = vn + Gt / 2, gm = wn + yl / 2; - yn.ellipse(pm, gm, Gt / 2, yl / 2, 0, 0, 2 * Math.PI); + const vn = (we - q.left) * On, wn = (Fe - q.top) * An, Gt = Kt * On, yl = vr * An, gm = vn + Gt / 2, ym = wn + yl / 2; + yn.ellipse(gm, ym, Gt / 2, yl / 2, 0, 0, 2 * Math.PI); } else if (u === "lasso" && I.length > 2) { const vn = I[0]; if (!vn) return; @@ -8794,7 +8819,7 @@ const Oc = (e) => e === "rect" || e === "ellipse" || e === "lasso", vi = ({ yn.closePath(); } }); - De((yn) => [...yn, hm]); + De((yn) => [...yn, pm]); } } Bt.current = Date.now(), f(!1), R([]); @@ -8887,7 +8912,7 @@ const Oc = (e) => e === "rect" || e === "ellipse" || e === "lasso", vi = ({ onSuccess: r } })); - }, Lt = h.useMemo(() => ue && !jy(ue), [ue]); + }, Lt = h.useMemo(() => ue && !Cy(ue), [ue]); return d ? /* @__PURE__ */ s.jsx( "div", { @@ -8928,7 +8953,7 @@ const Oc = (e) => e === "rect" || e === "ellipse" || e === "lasso", vi = ({ type: "button", title: "Ellipse Tool", children: [ - /* @__PURE__ */ s.jsx(Xp, { size: 18 }), + /* @__PURE__ */ s.jsx(Zp, { size: 18 }), /* @__PURE__ */ s.jsx("span", { children: "Ellipse" }) ] } @@ -8941,7 +8966,7 @@ const Oc = (e) => e === "rect" || e === "ellipse" || e === "lasso", vi = ({ type: "button", title: "Lasso Tool", children: [ - /* @__PURE__ */ s.jsx(rg, { size: 18 }), + /* @__PURE__ */ s.jsx(lg, { size: 18 }), /* @__PURE__ */ s.jsx("span", { children: "Lasso" }) ] } @@ -8964,7 +8989,7 @@ const Oc = (e) => e === "rect" || e === "ellipse" || e === "lasso", vi = ({ type: "button", title: "Zoom Out", "aria-label": "Zoom Out", - children: /* @__PURE__ */ s.jsx(xg, { size: 18 }) + children: /* @__PURE__ */ s.jsx(_g, { size: 18 }) } ), /* @__PURE__ */ s.jsxs( @@ -8996,7 +9021,7 @@ const Oc = (e) => e === "rect" || e === "ellipse" || e === "lasso", vi = ({ type: "button", title: "Zoom In", "aria-label": "Zoom In", - children: /* @__PURE__ */ s.jsx(wg, { size: 18 }) + children: /* @__PURE__ */ s.jsx(xg, { size: 18 }) } ) ] }), @@ -9090,7 +9115,7 @@ const Oc = (e) => e === "rect" || e === "ellipse" || e === "lasso", vi = ({ type: "button", title: "Undo last area", children: [ - /* @__PURE__ */ s.jsx(gg, { size: 16 }), + /* @__PURE__ */ s.jsx(yg, { size: 16 }), /* @__PURE__ */ s.jsx("span", { children: "Undo" }) ] } @@ -9117,7 +9142,7 @@ const Oc = (e) => e === "rect" || e === "ellipse" || e === "lasso", vi = ({ ) } ) : null; -}, Tf = ({ +}, Lf = ({ images: e, currentIndex: t, workflowName: n, @@ -9145,11 +9170,11 @@ const Oc = (e) => e === "rect" || e === "ellipse" || e === "lasso", vi = ({ }, o.id ) : null; -}, Lf = (e) => { +}, Df = (e) => { const t = /(?:[^\s"']+|"[^"]*"|'[^']*')+/g; return e.trim().match(t) || []; -}, Al = (e) => e.replace(/^["']|["']$/g, ""), by = (e) => e.trim() ? Lf(e).every((n) => !!(n === "next" || n === "prev" || n === "delete" || n.startsWith("tag:") && n.length > 4 || n.startsWith("-tag:") && n.length > 5 || n.startsWith("tag-toggle:") && n.length > 11 || n.startsWith("lt:") && n.length > 3)) : !0, Ey = (e, t) => { - const n = Lf(e), r = { +}, Al = (e) => e.replace(/^["']|["']$/g, ""), Ny = (e) => e.trim() ? Df(e).every((n) => !!(n === "next" || n === "prev" || n === "delete" || n.startsWith("tag:") && n.length > 4 || n.startsWith("-tag:") && n.length > 5 || n.startsWith("tag-toggle:") && n.length > 11 || n.startsWith("lt:") && n.length > 3)) : !0, My = (e, t) => { + const n = Df(e), r = { addTags: [], removeTags: [], toggleTags: [], @@ -9179,7 +9204,7 @@ const Oc = (e) => e === "rect" || e === "ellipse" || e === "lasso", vi = ({ o && (r.sendToLtSlot = o); } return r; -}, Cy = () => { +}, Iy = () => { const { state: e, dispatch: t, updateSetting: n } = ge(), [r, l] = h.useState("Gallery"), [a, o] = h.useState({ ...e.settings }), [i, c] = h.useState({}), [d, p] = h.useState( @@ -9272,7 +9297,7 @@ const Oc = (e) => e === "rect" || e === "ellipse" || e === "lasso", vi = ({ message: "Are you sure you want to delete all cached thumbnails?", onConfirm: async () => { try { - await Vg(), t({ + await Bg(), t({ type: "SHOW_TOAST", payload: "Thumbnail cache cleared" }); @@ -9286,7 +9311,7 @@ const Oc = (e) => e === "rect" || e === "ellipse" || e === "lasso", vi = ({ } }); }, - validateShortcut: (K) => typeof K != "string" ? !1 : by(K), + validateShortcut: (K) => typeof K != "string" ? !1 : Ny(K), // Input states initialLoadCountInput: d, maxLoadCountInput: v, @@ -9307,7 +9332,7 @@ const Oc = (e) => e === "rect" || e === "ellipse" || e === "lasso", vi = ({ /* @__PURE__ */ s.jsx("div", { className: "meld-settings-item__description", children: t }) ] }), /* @__PURE__ */ s.jsx("div", { className: "meld-settings-item__control", children: n }) -] }), Ny = ({ +] }), Ty = ({ localSettings: e, setLocalSettings: t, handleToggle: n, @@ -9675,7 +9700,7 @@ function It({ size: e = 24, color: t, children: n, ...r }) { } ); } -function Df() { +function Rf() { return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [ /* @__PURE__ */ s.jsx("path", { d: "M18 16.6v2.8", stroke: "var(--meld-icon-halo, transparent)", strokeWidth: 4 }), /* @__PURE__ */ s.jsx("path", { d: "M16.6 18h2.8", stroke: "var(--meld-icon-halo, transparent)", strokeWidth: 4 }), @@ -9683,13 +9708,13 @@ function Df() { /* @__PURE__ */ s.jsx("path", { d: "M16.6 18h2.8" }) ] }); } -function Rf(e) { +function Pf(e) { return /* @__PURE__ */ s.jsxs(It, { ...e, children: [ /* @__PURE__ */ s.jsx("path", { d: "M6 12h12" }), /* @__PURE__ */ s.jsx("path", { d: "M14 8l4 4-4 4" }) ] }); } -function Pf(e) { +function Of(e) { return /* @__PURE__ */ s.jsxs(It, { ...e, children: [ /* @__PURE__ */ s.jsx("path", { d: "M4.5 5.5h7l2 2h6v11a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2v-13a2 2 0 0 1 2-2z" }), /* @__PURE__ */ s.jsx("path", { d: "M8 12h4" }), @@ -9698,37 +9723,37 @@ function Pf(e) { /* @__PURE__ */ s.jsx("path", { d: "M15.5 10.5l3 1.5-3 1.5" }) ] }); } -function Of(e) { +function Af(e) { return /* @__PURE__ */ s.jsxs(It, { ...e, children: [ /* @__PURE__ */ s.jsx("path", { d: "M6 12h8" }), /* @__PURE__ */ s.jsx("path", { d: "M12 8l4 4-4 4" }), /* @__PURE__ */ s.jsx("path", { d: "M16 8l4 4-4 4" }) ] }); } -function Af(e) { +function zf(e) { return /* @__PURE__ */ s.jsxs(It, { ...e, children: [ /* @__PURE__ */ s.jsx("path", { d: "M6 12h8" }), /* @__PURE__ */ s.jsx("path", { d: "M12 8l4 4-4 4" }), /* @__PURE__ */ s.jsx("path", { d: "M16 8l4 4-4 4" }), - /* @__PURE__ */ s.jsx(Df, {}) - ] }); -} -function zf(e) { - return /* @__PURE__ */ s.jsxs(It, { ...e, children: [ - /* @__PURE__ */ s.jsx("rect", { x: "4.5", y: "4.5", width: "15", height: "15", rx: "2" }), - /* @__PURE__ */ s.jsx("path", { d: "M8 12h7" }), - /* @__PURE__ */ s.jsx("path", { d: "M13 9l3 3-3 3" }) + /* @__PURE__ */ s.jsx(Rf, {}) ] }); } function Ff(e) { return /* @__PURE__ */ s.jsxs(It, { ...e, children: [ /* @__PURE__ */ s.jsx("rect", { x: "4.5", y: "4.5", width: "15", height: "15", rx: "2" }), /* @__PURE__ */ s.jsx("path", { d: "M8 12h7" }), - /* @__PURE__ */ s.jsx("path", { d: "M13 9l3 3-3 3" }), - /* @__PURE__ */ s.jsx(Df, {}) + /* @__PURE__ */ s.jsx("path", { d: "M13 9l3 3-3 3" }) ] }); } function Wf(e) { + return /* @__PURE__ */ s.jsxs(It, { ...e, children: [ + /* @__PURE__ */ s.jsx("rect", { x: "4.5", y: "4.5", width: "15", height: "15", rx: "2" }), + /* @__PURE__ */ s.jsx("path", { d: "M8 12h7" }), + /* @__PURE__ */ s.jsx("path", { d: "M13 9l3 3-3 3" }), + /* @__PURE__ */ s.jsx(Rf, {}) + ] }); +} +function $f(e) { return /* @__PURE__ */ s.jsxs(It, { ...e, children: [ /* @__PURE__ */ s.jsx("rect", { x: "4.5", y: "6", width: "12.5", height: "10.5", rx: "2" }), /* @__PURE__ */ s.jsx("path", { d: "M7.5 13l2-2 2 2 2.5-3 2.5 3" }), @@ -9736,13 +9761,13 @@ function Wf(e) { /* @__PURE__ */ s.jsx("path", { d: "M16.5 19.5l3-3" }) ] }); } -function $f(e) { +function Uf(e) { return /* @__PURE__ */ s.jsxs(It, { ...e, children: [ /* @__PURE__ */ s.jsx("path", { d: "M20 12l-8 8-9-9v-5a2 2 0 0 1 2-2h5z" }), /* @__PURE__ */ s.jsx("circle", { cx: "7.5", cy: "8.5", r: "1" }) ] }); } -function Uf(e) { +function Vf(e) { return /* @__PURE__ */ s.jsxs(It, { ...e, children: [ /* @__PURE__ */ s.jsx("path", { d: "M15.5 4.5h-8a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2v-9l-3-4z" }), /* @__PURE__ */ s.jsx("path", { d: "M15.5 4.5v4h4" }), @@ -9750,7 +9775,7 @@ function Uf(e) { /* @__PURE__ */ s.jsx("path", { d: "M9 15h6" }) ] }); } -function Vf(e) { +function Bf(e) { return /* @__PURE__ */ s.jsxs(It, { ...e, children: [ /* @__PURE__ */ s.jsx("path", { d: "M7 7h10" }), /* @__PURE__ */ s.jsx("path", { d: "M9 7v-2h6v2" }), @@ -9759,48 +9784,48 @@ function Vf(e) { /* @__PURE__ */ s.jsx("path", { d: "M14.5 9.5v3h-3" }) ] }); } -const Bf = [ +const Qf = [ { id: "", label: "None", icon: null }, { id: "add_unified_loader", label: "Add Unified Loader", - icon: Rf + icon: Pf }, { id: "send_to_workflow", label: "Send to Workflow", - icon: zf + icon: Ff }, { id: "send_to_workflow_mask", label: "Send to Workflow (Mask)", - icon: Ff + icon: Wf }, - { id: "queue_workflow", label: "Queue Workflow", icon: Of }, + { id: "queue_workflow", label: "Queue Workflow", icon: Af }, { id: "queue_workflow_mask", label: "Queue Workflow (Mask)", - icon: Af + icon: zf }, { id: "restore_full_workflow", label: "Restore Full Workflow", - icon: Pf + icon: Of }, - { id: "edit_tags", label: "Edit Tags", icon: $f }, - { id: "edit_notes", label: "Edit Notes", icon: Uf }, + { id: "edit_tags", label: "Edit Tags", icon: Uf }, + { id: "edit_notes", label: "Edit Notes", icon: Vf }, { id: "edit_source_image", label: "Edit Source Image", - icon: Wf + icon: $f }, { id: "restore_image", label: "Restore Image (Trash)", - icon: Vf + icon: Bf }, { id: "delete_or_trash", label: "Delete / Trash", icon: Ut } -], My = ({ +], Ly = ({ localSettings: e, setLocalSettings: t, handleToggle: n, @@ -10095,14 +10120,14 @@ const Bf = [ ...p, [`gallery.quick_shortcut.${c}`]: d.target.value })), - children: Bf.map((d) => /* @__PURE__ */ s.jsx("option", { value: d.id, children: d.label }, d.id)) + children: Qf.map((d) => /* @__PURE__ */ s.jsx("option", { value: d.id, children: d.label }, d.id)) } ) }, c )) ] }) -] }), Iy = () => /* @__PURE__ */ s.jsxs("div", { className: "meld-settings-list meld-information-tab", children: [ +] }), Dy = () => /* @__PURE__ */ s.jsxs("div", { className: "meld-settings-list meld-information-tab", children: [ /* @__PURE__ */ s.jsxs("div", { className: "meld-settings-group", children: [ /* @__PURE__ */ s.jsx("div", { className: "meld-settings-group-title", children: "ComfyUI Meld" }), /* @__PURE__ */ s.jsx("div", { className: "meld-settings-item", children: /* @__PURE__ */ s.jsxs("div", { className: "meld-settings-item__info", children: [ @@ -10196,7 +10221,7 @@ const Bf = [ ] } ) -] }), Ty = ({ +] }), Ry = ({ localSettings: e, setLocalSettings: t, shortcutErrors: n, @@ -10338,7 +10363,7 @@ const Bf = [ } ) }) ] }); -}, Ly = ({ +}, Py = ({ localSettings: e, handleNumberChange: t, handleNumberBlur: n, @@ -10512,7 +10537,7 @@ const Bf = [ } ) ] }) -] }), Dy = ({ +] }), Oy = ({ localSettings: e, setLocalSettings: t, handleToggle: n, @@ -10864,7 +10889,7 @@ const Bf = [ /* @__PURE__ */ s.jsx("span", { className: "meld-switch__slider" }) ] }) }) ] }) -] }), Qf = () => { +] }), Hf = () => { const { activeTab: e, setActiveTab: t, @@ -10893,7 +10918,7 @@ const Bf = [ fullscreenMaxPositivePromptLinesInput: b, fullscreenMaxNegativePromptLinesInput: I, thumbnailSizeInput: R - } = Cy(); + } = Iy(); Le({ onEscape: o }); const A = h.useRef(!1), M = (Q) => { Q.target === Q.currentTarget && (A.current = !0); @@ -10910,7 +10935,7 @@ const Bf = [ switch (e) { case "System": return /* @__PURE__ */ s.jsx( - Ly, + Py, { localSettings: n, handleNumberChange: c, @@ -10927,7 +10952,7 @@ const Bf = [ ); case "Gallery": return /* @__PURE__ */ s.jsx( - My, + Ly, { localSettings: n, setLocalSettings: r, @@ -10941,7 +10966,7 @@ const Bf = [ ); case "View": return /* @__PURE__ */ s.jsx( - Dy, + Oy, { localSettings: n, setLocalSettings: r, @@ -10955,7 +10980,7 @@ const Bf = [ ); case "Full Screen": return /* @__PURE__ */ s.jsx( - Ny, + Ty, { localSettings: n, setLocalSettings: r, @@ -10968,7 +10993,7 @@ const Bf = [ ); case "Shortcuts": return /* @__PURE__ */ s.jsx( - Ty, + Ry, { localSettings: n, setLocalSettings: r, @@ -10980,7 +11005,7 @@ const Bf = [ } ); case "Information": - return /* @__PURE__ */ s.jsx(Iy, {}); + return /* @__PURE__ */ s.jsx(Dy, {}); default: return null; } @@ -11028,13 +11053,13 @@ const Bf = [ e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(); }, Ye = (e) => { e.preventDefault(), e.stopPropagation(), e.nativeEvent.stopImmediatePropagation(); -}, Ry = () => { +}, Ay = () => { const e = document.activeElement; if (!(e instanceof HTMLElement)) return !1; const t = e.tagName; return t === "INPUT" || t === "TEXTAREA" || !!e.isContentEditable; -}, Hf = ({ +}, Kf = ({ imageIds: e, initialTags: t, onClose: n, @@ -11081,7 +11106,7 @@ const Bf = [ const M = e[0]; if (M === void 0) throw new Error("No image selected"); - await Ng(M, c); + await Mg(M, c); } await a(), l({ type: "CLEAR_SELECTION" }), r == null || r(), n(); } catch (M) { @@ -11204,14 +11229,14 @@ const Bf = [ [] ), l = h.useCallback(async (x) => { try { - const _ = await Ig(x.id); + const _ = await Tg(x.id); return _.workflow ? (await window.app.loadGraphData(_.workflow), P.log("Workflow restored successfully from Meld"), !0) : (alert("No workflow information is saved for this image."), !1); } catch (_) { return P.error("Error restoring workflow:", _), alert("Failed to restore workflow."), !1; } }, []), a = h.useCallback(async (x) => { try { - const _ = await Tg(x.id), f = _.is_flux ? "MeldUnifiedFluxLoader" : "MeldUnifiedLoader", u = window.app, m = window.LiteGraph; + const _ = await Lg(x.id), f = _.is_flux ? "MeldUnifiedFluxLoader" : "MeldUnifiedLoader", u = window.app, m = window.LiteGraph; if (!u.graph || !u.canvas || !m) return alert("ComfyUI graph is not ready. Please open a workflow first."), !1; const g = m.createNode(f); @@ -11402,7 +11427,7 @@ const Bf = [ return; } try { - if (!(await Cf()).some((j) => j.valid && j.mask_count >= 1)) { + if (!(await Nf()).some((j) => j.valid && j.mask_count >= 1)) { t({ type: "OPEN_MODAL", payload: { @@ -11454,7 +11479,7 @@ const Bf = [ ), w = h.useCallback( async (x, _) => { try { - const f = await Mg(x, _); + const f = await Ig(x, _); t({ type: "UPDATE_IMAGE", payload: f }); } catch (f) { t({ @@ -11480,7 +11505,7 @@ const Bf = [ handleEditNotes: i, handleUpdateUserNotes: w }; -}, Kf = ({ imageId: e, initialNotes: t, onClose: n }) => { +}, Gf = ({ imageId: e, initialNotes: t, onClose: n }) => { const { state: r, dispatch: l } = ge(), { handleUpdateUserNotes: a } = $s(r, l), [o, i] = h.useState(t), [c, d] = h.useState(!1), p = h.useRef(null), v = h.useRef(!1), y = (x) => { x.target === x.currentTarget && (v.current = !0); }, k = (x) => { @@ -11518,7 +11543,7 @@ const Bf = [ children: /* @__PURE__ */ s.jsxs("div", { className: "meld-modal-content", onClick: (x) => x.stopPropagation(), children: [ /* @__PURE__ */ s.jsxs("div", { className: "meld-modal-header", children: [ /* @__PURE__ */ s.jsxs("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [ - /* @__PURE__ */ s.jsx(mg, { size: 18 }), + /* @__PURE__ */ s.jsx(hg, { size: 18 }), /* @__PURE__ */ s.jsx("h3", { style: { margin: 0 }, children: "Edit Notes" }) ] }), /* @__PURE__ */ s.jsx("button", { type: "button", className: "meld-modal-close", onClick: n, children: /* @__PURE__ */ s.jsx(pe, { size: 20 }) }) @@ -11576,7 +11601,7 @@ const Bf = [ ), document.fullscreenElement || document.body ); -}, Gf = ({ +}, qf = ({ image: e, nodes: t, onSelect: n @@ -11657,7 +11682,7 @@ const Bf = [ ), document.fullscreenElement || document.body ); -}, qf = ({ +}, Yf = ({ images: e, onExecute: t, onSuccess: n, @@ -11674,7 +11699,7 @@ const Bf = [ }, [S, m]), I = h.useCallback(async () => { try { c(!0); - const L = await Cf(); + const L = await Nf(); o(L), p(null); } catch (L) { p(L instanceof Error ? L.message : String(L)); @@ -11711,7 +11736,7 @@ const Bf = [ if (!(x[L] || f[L])) try { u((E) => ({ ...E, [L]: !0 })); - const N = await Nf(L), T = [], W = (E) => { + const N = await Mf(L), T = [], W = (E) => { if (!E) return !1; const F = E.replace(/\s+/g, "").toLowerCase(); return r ? F === "loadimagemask" : F === "meldimageloader" || F === "loadimage"; @@ -11958,7 +11983,7 @@ const Bf = [ ), document.fullscreenElement || document.body ); -}, Py = ({ message: e, onConfirm: t, onCancel: n }) => { +}, zy = ({ message: e, onConfirm: t, onCancel: n }) => { const r = h.useRef(null), l = h.useRef(null); return Le({ onEscape: n }), h.useEffect(() => { if (l.current = document.activeElement, r.current) { @@ -12030,8 +12055,8 @@ const Bf = [ } ); }, po = async (e, t) => { - await Eg(e, t), se.getState().removeImages(e); -}, Yf = ({ + await Cg(e, t), se.getState().removeImages(e); +}, Xf = ({ imageIds: e, hasLineage: t, isPermanent: n = !1, @@ -12208,7 +12233,7 @@ const Bf = [ }, children: [ /* @__PURE__ */ s.jsx( - Qp, + Hp, { size: 20, style: { @@ -12278,7 +12303,7 @@ const Bf = [ ), document.fullscreenElement || document.body ); -}, Xf = ({ message: e }) => { +}, Zf = ({ message: e }) => { const { dispatch: t } = ge(), n = h.useCallback(() => { t({ type: "CLOSE_MODAL" }); }, [t]); @@ -12293,7 +12318,7 @@ const Bf = [ /* @__PURE__ */ s.jsx("div", { className: "meld-modal-body", children: /* @__PURE__ */ s.jsx("div", { style: { padding: "20px 0", textAlign: "center", fontSize: "14px" }, children: e }) }), /* @__PURE__ */ s.jsx("div", { className: "meld-modal-footer", children: /* @__PURE__ */ s.jsx("button", { className: "meld-btn meld-btn--primary", onClick: n, type: "button", children: "OK" }) }) ] }) }); -}, Zf = ({ imageId: e }) => { +}, Jf = ({ imageId: e }) => { const { state: t, dispatch: n, refreshImages: r } = ge(), [l, a] = h.useState([]), [o, i] = h.useState(!0), [c, d] = h.useState(!1), p = h.useCallback(() => { n({ type: "CLOSE_MODAL" }); }, [n]); @@ -12305,7 +12330,7 @@ const Bf = [ }, w = t.images.find((S) => S.id === e), x = h.useCallback(async () => { i(!0); try { - const S = t.settings["gallery.suggest_phash_threshold"], b = await Cg(e, S); + const S = t.settings["gallery.suggest_phash_threshold"], b = await Ng(e, S); a(b); } catch (S) { P.error("Failed to load suggestions:", S); @@ -12337,7 +12362,7 @@ const Bf = [ }, u = async (S) => { i(!0); try { - const b = await ly(S), { id: I } = await _f({ + const b = await sy(S), { id: I } = await _f({ filename: b.name, subfolder: b.subfolder || "", type: b.type || "input" @@ -12399,7 +12424,7 @@ const Bf = [ minWidth: 0 }, children: [ - /* @__PURE__ */ s.jsx(ag, { size: 16, color: "var(--meld-accent-color)" }), + /* @__PURE__ */ s.jsx(og, { size: 16, color: "var(--meld-accent-color)" }), /* @__PURE__ */ s.jsxs( "div", { @@ -12517,7 +12542,7 @@ const Bf = [ }, onClick: f, title: "Remove Source", - children: /* @__PURE__ */ s.jsx(sg, { size: 16 }) + children: /* @__PURE__ */ s.jsx(ag, { size: 16 }) } ) ] @@ -12538,7 +12563,7 @@ const Bf = [ }, onDrop: m, children: [ - /* @__PURE__ */ s.jsx(yg, { size: 32 }), + /* @__PURE__ */ s.jsx(vg, { size: 32 }), /* @__PURE__ */ s.jsx("p", { children: "Drop an image file here to set it as source" }) ] } @@ -12646,7 +12671,7 @@ const Bf = [ ), document.fullscreenElement || document.body ); -}, Oy = () => { +}, Fy = () => { const { state: e, dispatch: t } = ge(), n = e.toastMessage; return h.useEffect(() => { if (n) { @@ -12664,11 +12689,11 @@ const Bf = [ children: n } ) : null; -}, Ay = () => { +}, Wy = () => { const { state: e, dispatch: t } = ge(), { executeWorkflow: n } = yi(); return e.viewerImageId !== null ? null : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [ e.activeModal.type === "workflow_selection" && /* @__PURE__ */ s.jsx( - qf, + Yf, { images: e.activeModal.images, isMaskMode: !!e.activeModal.maskFilename || !!e.activeModal.isMaskSequence, @@ -12694,7 +12719,7 @@ const Bf = [ } ), e.activeModal.type === "node_selection" && /* @__PURE__ */ s.jsx( - Gf, + qf, { image: e.activeModal.image, nodes: e.activeModal.nodes, @@ -12703,12 +12728,12 @@ const Bf = [ } } ), - e.activeModal.type === "parent_selection" && /* @__PURE__ */ s.jsx(Zf, { imageId: e.activeModal.imageId }), + e.activeModal.type === "parent_selection" && /* @__PURE__ */ s.jsx(Jf, { imageId: e.activeModal.imageId }), e.activeModal.type === "import" && /* @__PURE__ */ s.jsx(Ef, {}), - e.activeModal.type === "settings" && /* @__PURE__ */ s.jsx(Qf, {}), + e.activeModal.type === "settings" && /* @__PURE__ */ s.jsx(Hf, {}), e.activeModal.type === "tag_edit" && me.createPortal( /* @__PURE__ */ s.jsx( - Hf, + Kf, { imageIds: e.activeModal.imageIds, initialTags: e.activeModal.tags, @@ -12718,10 +12743,10 @@ const Bf = [ ), document.body ), - e.activeModal.type === "error" && me.createPortal(/* @__PURE__ */ s.jsx(Xf, { message: e.activeModal.message }), document.body), + e.activeModal.type === "error" && me.createPortal(/* @__PURE__ */ s.jsx(Zf, { message: e.activeModal.message }), document.body), e.activeModal.type === "delete_confirm" && me.createPortal( /* @__PURE__ */ s.jsx( - Yf, + Xf, { imageIds: e.activeModal.imageIds, hasLineage: e.activeModal.hasLineage, @@ -12748,7 +12773,7 @@ const Bf = [ ), e.activeModal.type === "mask_sequence_step" && me.createPortal( /* @__PURE__ */ s.jsx( - Tf, + Lf, { images: e.activeModal.images, currentIndex: e.activeModal.currentIndex, @@ -12773,7 +12798,7 @@ const Bf = [ ), e.activeModal.type === "note_edit" && me.createPortal( /* @__PURE__ */ s.jsx( - Kf, + Gf, { imageId: e.activeModal.imageId, initialNotes: e.activeModal.notes, @@ -12784,7 +12809,7 @@ const Bf = [ ), e.activeModal.type === "download_options" && me.createPortal( /* @__PURE__ */ s.jsx( - dy, + my, { imageIds: e.activeModal.imageIds, onSuccess: e.activeModal.onSuccess, @@ -12795,7 +12820,7 @@ const Bf = [ ), e.confirmModal && me.createPortal( /* @__PURE__ */ s.jsx( - Py, + zy, { message: e.confirmModal.message, onConfirm: () => { @@ -12810,15 +12835,15 @@ const Bf = [ ), document.body ), - e.toastMessage && me.createPortal(/* @__PURE__ */ s.jsx(Oy, {}), document.body) + e.toastMessage && me.createPortal(/* @__PURE__ */ s.jsx(Fy, {}), document.body) ] }); -}, zy = () => { +}, $y = () => { const { state: e, dispatch: t } = ge(), { scanStatus: n } = e; if (!n.isRunning && !n.isFinished) return null; const r = async () => { try { - await cy(), t({ type: "SET_SCAN_STATUS", payload: { shouldCancel: !0 } }); + await dy(), t({ type: "SET_SCAN_STATUS", payload: { shouldCancel: !0 } }); } catch (p) { P.error("Failed to cancel scan:", p); } @@ -12851,7 +12876,7 @@ const Bf = [ ) ] }) : /* @__PURE__ */ s.jsxs("div", { className: "meld-scan-finished--compact", children: [ /* @__PURE__ */ s.jsxs("div", { className: "meld-finished-info", children: [ - /* @__PURE__ */ s.jsx(qp, { size: 14, className: "meld-success-icon" }), + /* @__PURE__ */ s.jsx(Yp, { size: 14, className: "meld-success-icon" }), /* @__PURE__ */ s.jsxs("span", { className: "meld-finished-text", children: [ "Done! ", n.newCount, @@ -12871,7 +12896,7 @@ const Bf = [ id: "meld-bulk-bar-portal", preferredParentSelector: ".comfyui-body-bottom" } -}, Fy = Object.keys(wi), Ac = /* @__PURE__ */ new Map(), zc = "data-meld-portal-root"; +}, Uy = Object.keys(wi), Ac = /* @__PURE__ */ new Map(), zc = "data-meld-portal-root"; let pa = null, ga = null; const Fc = ".comfyui-body-bottom"; function Wc(e) { @@ -12885,37 +12910,37 @@ function Wc(e) { } return !1; } -function Wy(e) { +function Vy(e) { const t = document.querySelector(e); return t instanceof HTMLElement ? t : document.body; } -function $y(e) { +function By(e) { const t = wi[e], n = document.getElementById(t.id); if (n instanceof HTMLDivElement) return n.dataset.meldPortalRoot = e, n; const r = document.createElement("div"); return r.id = t.id, r.dataset.meldPortalRoot = e, r; } -function Jf(e) { - const t = wi[e], n = Ac.get(e) ?? $y(e); +function em(e) { + const t = wi[e], n = Ac.get(e) ?? By(e); Ac.set(e, n); - const r = Wy(t.preferredParentSelector); + const r = Vy(t.preferredParentSelector); return (n.parentElement !== r || !document.contains(n)) && r.appendChild(n), n; } -function em() { - for (const e of Fy) - Jf(e); +function tm() { + for (const e of Uy) + em(e); } function $c() { ga === null && (ga = requestAnimationFrame(() => { - ga = null, em(); + ga = null, tm(); })); } -function tm(e) { - return Jf(e); +function nm(e) { + return em(e); } -function Uy() { - pa || typeof document > "u" || !document.body || (em(), pa = new MutationObserver((e) => { +function Qy() { + pa || typeof document > "u" || !document.body || (tm(), pa = new MutationObserver((e) => { for (const t of e) { if (Wc(t.addedNodes)) { $c(); @@ -12941,10 +12966,10 @@ const Us = ({ window.removeEventListener("keydown", e, { capture: !0 }); }; }, [e, t]); -}, Vy = () => { +}, Hy = () => { const { state: e } = ge(), t = se((a) => a.slots), n = se((a) => a.addToBucket), r = t.length > 0 && e.selectedIds.size > 0, l = h.useCallback( (a) => { - if (Ry()) + if (Ay()) return; const o = e.selectedIds; if (!o || o.size === 0) @@ -12957,7 +12982,7 @@ const Us = ({ [t, n, e.selectedIds] ); Us({ onKeyDown: l, enabled: r }); -}, nm = ({ message: e, onConfirm: t, onCancel: n }) => (Le({ onEscape: n }), /* @__PURE__ */ s.jsx( +}, rm = ({ message: e, onConfirm: t, onCancel: n }) => (Le({ onEscape: n }), /* @__PURE__ */ s.jsx( "div", { className: "meld-confirm-modal__overlay", @@ -13031,7 +13056,7 @@ const Us = ({ }); }; }, [e, l, a]); -}, By = (e, t, n, r, l) => { +}, Ky = (e, t, n, r, l) => { if (t.length !== 0) switch (e.type) { case "delete": @@ -13094,7 +13119,7 @@ const Us = ({ P.log(`Action ${e.type} executed on ${t.length} images`); break; } -}, Qy = ({ config: e }) => { +}, Gy = ({ config: e }) => { var W; const t = se((E) => E.buckets), n = se((E) => E.slots), r = se((E) => E.images), l = n.length, { state: a, dispatch: o } = ge(), [i, c] = h.useState(!1), [d, p] = h.useState(!1), [v, y] = h.useState(!1), [k, w] = h.useState(e.label), [x, _] = h.useState(e.color), [f, u] = h.useState([]), [m, g] = h.useState(null), j = h.useRef(null), S = h.useRef(null); dl({ @@ -13156,7 +13181,7 @@ const Us = ({ run_with_mask: "Opened Mask Editor", download: "Opened Download Options" }; - By(F, U, O, o, () => { + Ky(F, U, O, o, () => { se.getState().showToast(K[E] ?? "Done"); }); }, N = () => { @@ -13222,7 +13247,7 @@ const Us = ({ title: "Actions", children: [ M ? `Action (${A.length})` : "Action", - /* @__PURE__ */ s.jsx(Yp, { size: 12 }) + /* @__PURE__ */ s.jsx(Xp, { size: 12 }) ] } ), @@ -13240,7 +13265,7 @@ const Us = ({ { type: "run_with_mask", label: "Queue Workflow (Mask)", - icon: vg + icon: wg }, { type: "download", @@ -13277,7 +13302,7 @@ const Us = ({ onClick: () => p(!0), title: "Clear Tab", disabled: I === 0, - children: /* @__PURE__ */ s.jsx(Jp, { size: 14 }) + children: /* @__PURE__ */ s.jsx(eg, { size: 14 }) } ), /* @__PURE__ */ s.jsxs("div", { className: "meld-lt-slot__settings-wrapper", ref: S, children: [ @@ -13388,7 +13413,7 @@ const Us = ({ ] }) ] }), d && /* @__PURE__ */ s.jsx( - nm, + rm, { message: `Clear all items in the "${e.label}" tab?`, onConfirm: N, @@ -13398,7 +13423,7 @@ const Us = ({ ] } ); -}, Hy = () => { +}, qy = () => { const e = se((n) => n.toastMessage), t = se((n) => n.toastType); return e ? /* @__PURE__ */ s.jsx( "div", @@ -13409,9 +13434,9 @@ const Us = ({ children: e } ) : null; -}, Ky = () => { +}, Yy = () => { var k; - Vy(); + Hy(); const e = se((w) => w.isOpen), t = se((w) => w.setIsOpen), [n, r] = h.useState(!1); Le({ onEscape: () => t(!1), @@ -13419,7 +13444,7 @@ const Us = ({ }), h.useEffect(() => { e || r(!1); }, [e]); - const l = se((w) => w.slots), a = se((w) => w.buckets), { state: o } = ge(), [i, c] = h.useState(((k = l[0]) == null ? void 0 : k.id) || "keep"), d = tm("lightTable"); + const l = se((w) => w.slots), a = se((w) => w.buckets), { state: o } = ge(), [i, c] = h.useState(((k = l[0]) == null ? void 0 : k.id) || "keep"), d = nm("lightTable"); if (!e) return null; const p = () => { const w = `slot_${Date.now().toString(36)}`; @@ -13495,7 +13520,7 @@ const Us = ({ onClick: () => r(!0), title: "Clear All Tabs", children: [ - /* @__PURE__ */ s.jsx(hg, { size: 14 }), + /* @__PURE__ */ s.jsx(pg, { size: 14 }), /* @__PURE__ */ s.jsx("span", { children: "Clear All" }) ] } @@ -13526,22 +13551,22 @@ const Us = ({ { className: "meld-light-table__tab-panel", style: { display: i === w.id ? "block" : "none" }, - children: /* @__PURE__ */ s.jsx(Qy, { config: w }) + children: /* @__PURE__ */ s.jsx(Gy, { config: w }) }, w.id )) }), n && /* @__PURE__ */ s.jsx( - nm, + rm, { message: "Are you sure you want to clear all items in all tabs?", onConfirm: v, onCancel: () => r(!1) } ), - /* @__PURE__ */ s.jsx(Hy, {}) + /* @__PURE__ */ s.jsx(qy, {}) ] }); return me.createPortal(y, d); -}, rm = () => { +}, lm = () => { const { state: e, refreshFavorites: t } = ge(), [n, r] = h.useState(!1), [l, a] = h.useState(null), [o, i] = h.useState("info"), [c, d] = h.useState(null), [p, v] = h.useState(""), [y, k] = h.useState(""); h.useEffect(() => { if (l) { @@ -13566,7 +13591,7 @@ const Us = ({ }, []), _ = h.useCallback(async () => { if (!(!c || !p.trim() || !y.trim())) try { - r(!0), await Wg(c.id, p, y), await t(), d(null); + r(!0), await $g(c.id, p, y), await t(), d(null); } catch (u) { P.error("Failed to update favorite", u), a("Failed to update favorite."), i("error"); } finally { @@ -13590,7 +13615,7 @@ const Us = ({ } r(!0); try { - return await Fg(e.searchQuery, e.searchQuery), await t(), !0; + return await Wg(e.searchQuery, e.searchQuery), await t(), !0; } catch (m) { return P.error("Failed to save favorite:", m), !1; } finally { @@ -13615,7 +13640,7 @@ const Us = ({ a(u), i(m); } }; -}, lm = ({ fav: e, onSelect: t, onEdit: n, onDelete: r }) => { +}, sm = ({ fav: e, onSelect: t, onEdit: n, onDelete: r }) => { const [l, a] = h.useState(!1), [o, i] = h.useState(!1), [c, d] = h.useState(!1); return /* @__PURE__ */ s.jsxs( "div", @@ -13740,20 +13765,20 @@ const Us = ({ ] } ); -}, Gy = "_menu_jab2z_1", qy = "_header_jab2z_14", Yy = "_title_jab2z_23", Xy = "_count_jab2z_32", Zy = "_list_jab2z_37", Jy = "_toast_jab2z_46", ev = "_editTitle_jab2z_56", tv = "_form_jab2z_62", nv = "_fieldGroup_jab2z_69", rv = "_label_jab2z_75", lv = "_input_jab2z_81", sv = "_textarea_jab2z_82", Ge = { - menu: Gy, - header: qy, - title: Yy, - count: Xy, - list: Zy, - toast: Jy, - editTitle: ev, - form: tv, - fieldGroup: nv, - label: rv, - input: lv, - textarea: sv -}, av = ({ +}, Xy = "_menu_jab2z_1", Zy = "_header_jab2z_14", Jy = "_title_jab2z_23", ev = "_count_jab2z_32", tv = "_list_jab2z_37", nv = "_toast_jab2z_46", rv = "_editTitle_jab2z_56", lv = "_form_jab2z_62", sv = "_fieldGroup_jab2z_69", av = "_label_jab2z_75", ov = "_input_jab2z_81", iv = "_textarea_jab2z_82", Ge = { + menu: Xy, + header: Zy, + title: Jy, + count: ev, + list: tv, + toast: nv, + editTitle: rv, + form: lv, + fieldGroup: sv, + label: av, + input: ov, + textarea: iv +}, cv = ({ anchorRect: e, onClose: t, onSelect: n @@ -13770,7 +13795,7 @@ const Us = ({ handleDeleteFavorite: y, handleEditFavorite: k, handleSaveEditFavorite: w - } = rm(), [x, _] = h.useState({ top: 0, left: 0 }), f = h.useRef(null), u = h.useRef(null); + } = lm(), [x, _] = h.useState({ top: 0, left: 0 }), f = h.useRef(null), u = h.useRef(null); return Le({ onEscape: () => { o ? i(null) : t(); @@ -13818,7 +13843,7 @@ const Us = ({ ] }) ] }), /* @__PURE__ */ s.jsx("div", { className: Ge.list, children: r.favorites.map((m) => /* @__PURE__ */ s.jsx( - lm, + sm, { fav: m, onSelect: (g) => { @@ -13941,14 +13966,14 @@ const Us = ({ n += a; } return t.push(n), t; -}, ov = () => { +}, dv = () => { const { state: e, dispatch: t, updateSetting: n } = ge(), [r, l] = h.useState(e.searchQuery), [a, o] = h.useState([]), [i, c] = h.useState(!1), [d, p] = h.useState([]), [v, y] = h.useState([]), k = e.settings["search.show_all_keywords"], [w, x] = h.useState(-1), [_, f] = h.useState(null), u = h.useRef(null), m = h.useRef(e.searchQuery), g = h.useCallback(async () => { if (v.length > 0) return; - const D = await Og(); + const D = await Ag(); y(D); }, [v.length]); h.useEffect(() => { - Ag().then((D) => { + zg().then((D) => { f(D); }), k && g(); }, [g, k]); @@ -13965,7 +13990,7 @@ const Us = ({ p([]); return; } - Pg().then((D) => { + Og().then((D) => { p(D); }); }, [e.settings["search.quick_suggestions"]]), h.useEffect(() => { @@ -14000,7 +14025,7 @@ const Us = ({ } const F = W.toLowerCase(); E.startsWith('"') && (E = E.substring(1)), E.endsWith('"') && (E = E.substring(0, E.length - 1)); - const U = await Rg(E, F); + const U = await Pg(E, F); o(U), c(U.length > 0), x(-1); } else { const W = N.replace(/^([-!])/, "").toLowerCase(); @@ -14114,26 +14139,26 @@ const Us = ({ case "tag": return /* @__PURE__ */ s.jsx(gr, { size: 12 }); case "model": - return /* @__PURE__ */ s.jsx(Kp, { size: 12 }); + return /* @__PURE__ */ s.jsx(Gp, { size: 12 }); case "pos": case "neg": - return /* @__PURE__ */ s.jsx(pg, { size: 12 }); + return /* @__PURE__ */ s.jsx(gg, { size: 12 }); case "date": case "after": case "before": - return /* @__PURE__ */ s.jsx(Gp, { size: 12 }); + return /* @__PURE__ */ s.jsx(qp, { size: 12 }); case "has_source": return /* @__PURE__ */ s.jsx(mf, { size: 12 }); case "has_derivatives": return /* @__PURE__ */ s.jsx(ff, { size: 12 }); case "note": - return /* @__PURE__ */ s.jsx(eg, { size: 12 }); + return /* @__PURE__ */ s.jsx(tg, { size: 12 }); case "sort": - return /* @__PURE__ */ s.jsx(Hp, { size: 12 }); + return /* @__PURE__ */ s.jsx(Kp, { size: 12 }); default: return null; } -}, iv = ({ +}, uv = ({ showSuggestions: e, suggestions: t, selectedIndex: n, @@ -14447,7 +14472,7 @@ const Us = ({ gap: "4px" }, children: y.map((g) => /* @__PURE__ */ s.jsx( - lm, + sm, { fav: g, onSelect: k, @@ -14475,7 +14500,7 @@ const Us = ({ ] } ); -}, cv = () => { +}, fv = () => { const { state: e } = ge(), { inputValue: t, setInputValue: n, @@ -14497,7 +14522,7 @@ const Us = ({ handleInputChange: u, handleInputFocus: m, handleInputBlur: g - } = ov(), { + } = dv(), { isSaving: j, toastMessage: S, toastType: b, @@ -14512,7 +14537,7 @@ const Us = ({ handleSaveEditFavorite: D, handleSaveFavorite: L, setToastMessage: N - } = rm(), T = async () => { + } = lm(), T = async () => { const O = e.favorites.some((Z) => Z.query === e.searchQuery); await L() && N( O ? "Removed from favorites." : "Added to favorites.", @@ -14712,7 +14737,7 @@ const Us = ({ } ), /* @__PURE__ */ s.jsx( - iv, + uv, { showSuggestions: l, suggestions: r, @@ -14902,7 +14927,7 @@ const Us = ({ ] } ); -}, dv = ({ onClose: e, onSearch: t }) => { +}, mv = ({ onClose: e, onSearch: t }) => { const [n, r] = h.useState([]), [l, a] = h.useState(!0), [o, i] = h.useState(""), [c, d] = h.useState(""), [p, v] = h.useState(!1), [y, k] = h.useState(null), [w, x] = h.useState(""), [_, f] = h.useState(!1), u = h.useRef(null), m = h.useCallback(async () => { a(!0); try { @@ -14933,7 +14958,7 @@ const Us = ({ } v(!0); try { - await ey(z), d(""), await m(); + await ty(z), d(""), await m(); } catch (B) { P.error("Failed to add tag:", B); } finally { @@ -14943,7 +14968,7 @@ const Us = ({ }, j = async (M, z) => { if (confirm(`Are you sure you want to delete tag "${z}"?`)) try { - await ty(M), await m(); + await ny(M), await m(); } catch (B) { P.error("Failed to delete tag:", B); } @@ -14970,7 +14995,7 @@ const Us = ({ } f(!0); try { - await ny(y, z), b(), await m(); + await ry(y, z), b(), await m(); } catch (C) { P.error("Failed to rename tag:", C), alert(C instanceof Error ? C.message : "Failed to rename tag"); } finally { @@ -15105,7 +15130,7 @@ const Us = ({ ] }) }, M.id)) }) ] }) ] }); -}, ya = 56, sm = (e, t) => { +}, ya = 56, am = (e, t) => { const n = h.useCallback(async (l) => hi(l), []), r = h.useCallback( (l) => { const a = t["gallery.lineage_max_depth"]; @@ -15173,7 +15198,7 @@ const Us = ({ ...r === "lighttable" && l ? { slotId: l } : {} } } : { type: "CLOSE_VIEWER" }), o && o.length > 0 && a({ type: "REMOVE_IMAGES", payload: o }); -}, uv = ({ +}, hv = ({ state: e, dispatch: t, image: n, @@ -15359,7 +15384,7 @@ const Us = ({ ]), A = h.useCallback( async (M) => { if (!M || typeof M != "string" || !n) return; - const z = n.id, B = [...n.tags], C = Ey(M, n), { addTags: Q, removeTags: D, isDeleted: L, moveNext: N, movePrev: T, sendToLtSlot: W } = C; + const z = n.id, B = [...n.tags], C = My(M, n), { addTags: Q, removeTags: D, isDeleted: L, moveNext: N, movePrev: T, sendToLtSlot: W } = C; if (W) { const E = se.getState(), F = E.slots.find( (U) => U.id.toLowerCase() === W.toLowerCase() || U.label.toLowerCase() === W.toLowerCase() @@ -15420,7 +15445,7 @@ const Us = ({ handleUndo: R, executeCommand: A }; -}, fv = ({ +}, pv = ({ overlayRef: e, settings: t, setShowDetails: n @@ -15444,7 +15469,7 @@ const Us = ({ document.removeEventListener("fullscreenchange", o); }; }, [t, n]), { isFullscreen: r, toggleFullscreen: a }; -}, mv = ({ +}, gv = ({ viewerImageId: e, activeModalType: t, viewScope: n, @@ -15527,7 +15552,7 @@ const Us = ({ enabled: e !== null, onKeyDown: _ }); -}, hv = ({ +}, yv = ({ viewerMode: e, viewerImageId: t, lineageLength: n, @@ -15551,7 +15576,7 @@ const Us = ({ c = !0; }; }, [r, l, n, t, e]), { isLoadingLineage: a }; -}, pv = ({ +}, vv = ({ dispatch: e, isFullscreen: t, settings: n, @@ -15609,14 +15634,14 @@ const Us = ({ ]); return { handleNext: y, handlePrevious: k }; }; -function gv(e) { +function wv(e) { const { ids: t, index: n, loopEnabled: r, hasMore: l } = e; if (t.length === 0 || n < 0 || n >= t.length) return { prevId: null, nextId: null }; const a = n === 0, i = n === t.length - 1 ? l || !r ? null : t[0] ?? null : t[n + 1] ?? null; return { prevId: a ? l || !r ? null : t[t.length - 1] ?? null : t[n - 1] ?? null, nextId: i }; } -const yv = ({ +const xv = ({ viewerImageId: e, currentThumbnails: t, currentIndex: n, @@ -15642,7 +15667,7 @@ const yv = ({ if (e === null || t.length === 0) return; const p = t.map((_) => _.id), v = p.indexOf(e); if (v === -1) return; - const y = r ? l["fullscreen.loop"] : l["viewer.loop"], { prevId: k, nextId: w } = gv({ + const y = r ? l["fullscreen.loop"] : l["viewer.loop"], { prevId: k, nextId: w } = wv({ ids: p, index: v, loopEnabled: y, @@ -15679,7 +15704,7 @@ const yv = ({ return () => clearTimeout(v); }, [n, t, e]); }; -function vv(e) { +function _v(e) { return { id: e, filename: `__missing_${e}__`, @@ -15693,7 +15718,7 @@ function vv(e) { is_minimal: !0 }; } -const wv = ({ +const kv = ({ state: e, dispatch: t, loadMoreImages: n, @@ -15713,7 +15738,7 @@ const wv = ({ handleRunWithWorkflow: u, handleRunWithMask: m, handleEditSource: g - } = $s(e, t), { getParentChain: j, fetchLineage: S } = sm(a, c), [b, I] = h.useState(!1), [R, A] = h.useState(c["viewer.show_details_by_default"]), [M, z] = h.useState(null), B = M ?? c["viewer.show_thumbnails"], [C, Q] = h.useState(!1), [D, L] = h.useState(null), N = h.useRef(null), T = { + } = $s(e, t), { getParentChain: j, fetchLineage: S } = am(a, c), [b, I] = h.useState(!1), [R, A] = h.useState(c["viewer.show_details_by_default"]), [M, z] = h.useState(null), B = M ?? c["viewer.show_thumbnails"], [C, Q] = h.useState(!1), [D, L] = h.useState(null), N = h.useRef(null), T = { isMountedRef: h.useRef(!0), viewerImageIdRef: h.useRef(l) }; @@ -15728,7 +15753,7 @@ const wv = ({ const ot = se.getState(), gt = ot.buckets[e.viewerLightTableSlotId] || [], Lt = new Map(a.map((H) => [H.id, H])), $ = new Map(i.map((H) => [H.id, H])); return gt.map((H) => { const ee = Number.parseInt(H, 10); - return Lt.get(ee) || $.get(ee) || ot.images[H] || vv(ee); + return Lt.get(ee) || $.get(ee) || ot.images[H] || _v(ee); }); } return o === "lineage" ? i : a.filter( @@ -15741,11 +15766,11 @@ const wv = ({ a, c, e.searchQuery - ]), E = l === null ? -1 : W.findIndex((be) => be.id === l), U = (o === "lineage" && i.length > 0 ? i : o === "lighttable" ? W : a).find((be) => be.id === l) || (l === ((gl = e.viewerFallbackImage) == null ? void 0 : gl.id) ? e.viewerFallbackImage : void 0), { isFullscreen: O, toggleFullscreen: K } = fv({ + ]), E = l === null ? -1 : W.findIndex((be) => be.id === l), U = (o === "lineage" && i.length > 0 ? i : o === "lighttable" ? W : a).find((be) => be.id === l) || (l === ((gl = e.viewerFallbackImage) == null ? void 0 : gl.id) ? e.viewerFallbackImage : void 0), { isFullscreen: O, toggleFullscreen: K } = pv({ overlayRef: N, settings: c, setShowDetails: A - }), { handleNext: Z, handlePrevious: oe } = pv({ + }), { handleNext: Z, handlePrevious: oe } = vv({ dispatch: t, isFullscreen: O, settings: c, @@ -15765,7 +15790,7 @@ const wv = ({ handleRestoreAction: Y, handleUndo: Bt, executeCommand: Qt - } = uv({ + } = hv({ state: e, dispatch: t, image: U, @@ -15783,14 +15808,14 @@ const wv = ({ fetchLineage: S, restoreImages: d, bulkUpdateImageTags: p - }), { isLoadingLineage: Ht } = hv({ + }), { isLoadingLineage: Ht } = yv({ viewerMode: o, viewerImageId: l, lineageLength: i.length, dispatch: t, isMountedRef: T.isMountedRef }); - mv({ + gv({ viewerImageId: l, activeModalType: e.activeModal.type, viewScope: e.viewScope, @@ -15813,7 +15838,7 @@ const wv = ({ l !== null && r(l).catch((be) => { P.error("Failed to fetch full image details for viewer:", be); }); - }, [r, l]), yv({ + }, [r, l]), xv({ viewerImageId: l, currentThumbnails: W, currentIndex: E, @@ -15963,11 +15988,11 @@ const wv = ({ R.stopPropagation(), t(!e); }, title: "Menu", - children: /* @__PURE__ */ s.jsx(dg, { size: u }) + children: /* @__PURE__ */ s.jsx(ug, { size: u }) } ), _ && b.map((R, A) => { - const M = Bf.find((C) => C.id === R); + const M = Qf.find((C) => C.id === R); if (!M || !M.icon) return null; const z = M.icon, B = S(R); return !B || R === "restore_image" && !w ? null : /* @__PURE__ */ s.jsx( @@ -15992,62 +16017,62 @@ const wv = ({ { id: "add_unified_loader", label: "Add Unified Loader", - icon: Rf, + icon: Pf, handler: l }, { id: "send_to_workflow", label: "Send to Workflow", - icon: zf, + icon: Ff, handler: o }, { id: "send_to_workflow_mask", label: "Send to Workflow (Mask)", - icon: Ff, + icon: Wf, handler: () => c("apply") }, { id: "queue_workflow", label: "Queue Workflow", - icon: Of, + icon: Af, handler: i }, { id: "queue_workflow_mask", label: "Queue Workflow (Mask)", - icon: Af, + icon: zf, handler: () => c("run") }, { id: "restore_full_workflow", label: "Restore Full Workflow", - icon: Pf, + icon: Of, handler: a }, { id: "edit_tags", label: "Edit Tags", - icon: $f, + icon: Uf, handler: p }, { id: "edit_notes", label: "Edit Notes", - icon: Uf, + icon: Vf, handler: v }, { id: "edit_source_image", label: "Edit Source Image", - icon: Wf, + icon: $f, handler: d }, ...w ? [ { id: "restore_image", label: "Restore Image", - icon: Vf, + icon: Bf, handler: k, color: "var(--meld-accent-color)" } @@ -16078,7 +16103,7 @@ const wv = ({ } ) ] }); -}, xv = ({ +}, Sv = ({ settings: e, activeShortcutKey: t }) => e["viewer.shortcut.show_cheat_sheet"] ? /* @__PURE__ */ s.jsx("div", { className: "meld-viewer-cheat-sheet", children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 0].map((n) => { @@ -16094,7 +16119,7 @@ const wv = ({ }, n ) : null; -}) }) : null, _v = ({ +}) }) : null, jv = ({ image: e, isFullscreen: t, settings: n, @@ -16222,7 +16247,7 @@ const wv = ({ ] } ); -}, am = h.memo( +}, om = h.memo( ({ thumb: e, viewerImageId: t, @@ -16261,8 +16286,8 @@ const wv = ({ ) }); } ); -am.displayName = "ThumbnailItem"; -const kv = ({ +om.displayName = "ThumbnailItem"; +const bv = ({ windowedThumbnails: e, viewerImageId: t, currentImage: n, @@ -16282,7 +16307,7 @@ const kv = ({ children: "Loading lineage..." } ) : e.map(({ img: c }) => /* @__PURE__ */ s.jsx( - am, + om, { thumb: c, viewerImageId: t, @@ -16295,7 +16320,7 @@ const kv = ({ )), o === "gallery" && a && /* @__PURE__ */ s.jsx("div", { className: "meld-viewer-thumbnail meld-viewer-thumbnail--loading", children: /* @__PURE__ */ s.jsx(ol, { className: "animate-spin", size: 20 }) }) ] }) }); -function Sv() { +function Ev() { const { state: e, dispatch: t, loadMoreImages: n, fetchFullImageDetails: r } = ge(), { isFullscreen: l, showDetails: a, @@ -16325,7 +16350,7 @@ function Sv() { image: B, windowedThumbnails: C, parentChain: Q - } = wv({ + } = kv({ state: e, dispatch: t, loadMoreImages: n, @@ -16379,7 +16404,7 @@ function Sv() { onClick: () => o(!a), type: "button", title: a ? "Hide Details (I)" : "Show Details (I)", - children: /* @__PURE__ */ s.jsx(ng, { size: 20 }) + children: /* @__PURE__ */ s.jsx(rg, { size: 20 }) } ), /* @__PURE__ */ s.jsx( @@ -16389,7 +16414,7 @@ function Sv() { onClick: z, type: "button", title: l ? "Exit Fullscreen (F/Enter)" : "Fullscreen (F/Enter)", - children: l ? /* @__PURE__ */ s.jsx(cg, { size: 20 }) : /* @__PURE__ */ s.jsx(og, { size: 20 }) + children: l ? /* @__PURE__ */ s.jsx(dg, { size: 20 }) : /* @__PURE__ */ s.jsx(ig, { size: 20 }) } ), /* @__PURE__ */ s.jsx( @@ -16460,7 +16485,7 @@ function Sv() { } ), a && /* @__PURE__ */ s.jsx( - _v, + jv, { image: B, isFullscreen: l, @@ -16472,7 +16497,7 @@ function Sv() { } ), !l && i && e.settings["viewer.thumbnail_window_size"] > 1 && /* @__PURE__ */ s.jsx( - kv, + bv, { windowedThumbnails: C, viewerImageId: W, @@ -16484,12 +16509,12 @@ function Sv() { lightTableSlotId: e.viewerLightTableSlotId } ), - /* @__PURE__ */ s.jsx(xv, { settings: e.settings, activeShortcutKey: k }) + /* @__PURE__ */ s.jsx(Sv, { settings: e.settings, activeShortcutKey: k }) ] } ), e.activeModal.type === "workflow_selection" && /* @__PURE__ */ s.jsx( - qf, + Yf, { images: e.activeModal.images, isMaskMode: !!e.activeModal.maskFilename || !!e.activeModal.isMaskSequence, @@ -16515,7 +16540,7 @@ function Sv() { } ), e.activeModal.type === "node_selection" && /* @__PURE__ */ s.jsx( - Gf, + qf, { image: e.activeModal.image, nodes: e.activeModal.nodes, @@ -16524,9 +16549,9 @@ function Sv() { } } ), - e.activeModal.type === "error" && /* @__PURE__ */ s.jsx(Xf, { message: e.activeModal.message }), + e.activeModal.type === "error" && /* @__PURE__ */ s.jsx(Zf, { message: e.activeModal.message }), e.activeModal.type === "delete_confirm" && /* @__PURE__ */ s.jsx( - Yf, + Xf, { imageIds: e.activeModal.imageIds, hasLineage: e.activeModal.hasLineage, @@ -16534,11 +16559,11 @@ function Sv() { onSuccess: w } ), - e.activeModal.type === "parent_selection" && /* @__PURE__ */ s.jsx(Zf, { imageId: e.activeModal.imageId }), + e.activeModal.type === "parent_selection" && /* @__PURE__ */ s.jsx(Jf, { imageId: e.activeModal.imageId }), e.activeModal.type === "import" && /* @__PURE__ */ s.jsx(Ef, {}), - e.activeModal.type === "settings" && /* @__PURE__ */ s.jsx(Qf, {}), + e.activeModal.type === "settings" && /* @__PURE__ */ s.jsx(Hf, {}), e.activeModal.type === "tag_edit" && /* @__PURE__ */ s.jsx( - Hf, + Kf, { imageIds: e.activeModal.imageIds, initialTags: e.activeModal.tags, @@ -16554,7 +16579,7 @@ function Sv() { } ), e.activeModal.type === "mask_sequence_step" && /* @__PURE__ */ s.jsx( - Tf, + Lf, { images: e.activeModal.images, currentIndex: e.activeModal.currentIndex, @@ -16576,7 +16601,7 @@ function Sv() { } ), e.activeModal.type === "note_edit" && /* @__PURE__ */ s.jsx( - Kf, + Gf, { imageId: e.activeModal.imageId, initialNotes: e.activeModal.notes, @@ -16589,7 +16614,7 @@ function Sv() { document.body ); } -const jv = () => { +const Cv = () => { const { state: e, dispatch: t, refreshImages: n, loadMoreImages: r, updateSetting: l } = ge(), [a, o] = h.useState("gallery"), [i, c] = h.useState(""), d = e.searchQuery.trim() !== "", p = h.useRef(null), v = h.useRef(null), y = se((_) => _.buckets), k = h.useMemo(() => { const _ = /* @__PURE__ */ new Set(); for (const f of Object.values(y)) @@ -16664,8 +16689,8 @@ const jv = () => { isSearchActive: d, loadMoreRef: p }; -}, bv = () => { - const { state: e, dispatch: t, deleteSelected: n, restoreSelected: r } = ge(), { handleRunWithWorkflow: l, handleRunWithMask: a } = $s(e, t), o = e.selectedIds.size, [i, c] = h.useState(!1), [d, p] = h.useState(null), v = h.useRef(null), y = h.useRef(null), k = tm("bulkActionBar"); +}, Nv = () => { + const { state: e, dispatch: t, deleteSelected: n, restoreSelected: r } = ge(), { handleRunWithWorkflow: l, handleRunWithMask: a } = $s(e, t), o = e.selectedIds.size, [i, c] = h.useState(!1), [d, p] = h.useState(null), v = h.useRef(null), y = h.useRef(null), k = nm("bulkActionBar"); if (Le({ onEscape: () => c(!1), enabled: i @@ -16723,7 +16748,7 @@ const jv = () => { className: "meld-bulk-bar__button meld-bulk-bar__button--action", onClick: _, children: [ - /* @__PURE__ */ s.jsx(ig, { size: 16, style: { marginRight: "8px", verticalAlign: "middle" } }), + /* @__PURE__ */ s.jsx(cg, { size: 16, style: { marginRight: "8px", verticalAlign: "middle" } }), "Action" ] } @@ -16806,7 +16831,7 @@ const jv = () => { className: "meld-bulk-bar-menu__item", onClick: () => f(g), children: [ - /* @__PURE__ */ s.jsx(fg, { size: 14 }), + /* @__PURE__ */ s.jsx(mg, { size: 14 }), " Queue Workflow (Mask)" ] } @@ -16882,7 +16907,7 @@ function Bc(e, t) { throw new Error("Unexpected undefined"); return e; } -const Ev = (e, t) => Math.abs(e - t) < 1.01, Cv = (e, t, n) => { +const Mv = (e, t) => Math.abs(e - t) < 1.01, Iv = (e, t, n) => { let r; return function(...l) { e.clearTimeout(r), r = e.setTimeout(() => t.apply(this, l), n); @@ -16890,12 +16915,12 @@ const Ev = (e, t) => Math.abs(e - t) < 1.01, Cv = (e, t, n) => { }, Qc = (e) => { const { offsetWidth: t, offsetHeight: n } = e; return { width: t, height: n }; -}, Nv = (e) => e, Mv = (e) => { +}, Tv = (e) => e, Lv = (e) => { const t = Math.max(e.startIndex - e.overscan, 0), n = Math.min(e.endIndex + e.overscan, e.count - 1), r = []; for (let l = t; l <= n; l++) r.push(l); return r; -}, Iv = (e, t) => { +}, Dv = (e, t) => { const n = e.scrollElement; if (!n) return; @@ -16928,7 +16953,7 @@ const Ev = (e, t) => Math.abs(e - t) < 1.01, Cv = (e, t, n) => { }; }, Hc = { passive: !0 -}, Kc = typeof window > "u" ? !0 : "onscrollend" in window, Tv = (e, t) => { +}, Kc = typeof window > "u" ? !0 : "onscrollend" in window, Rv = (e, t) => { const n = e.scrollElement; if (!n) return; @@ -16937,7 +16962,7 @@ const Ev = (e, t) => Math.abs(e - t) < 1.01, Cv = (e, t, n) => { return; let l = 0; const a = e.options.useScrollendEvent && Kc ? () => { - } : Cv( + } : Iv( r, () => { t(l, !1); @@ -16952,7 +16977,7 @@ const Ev = (e, t) => Math.abs(e - t) < 1.01, Cv = (e, t, n) => { return d && n.addEventListener("scrollend", c, Hc), () => { n.removeEventListener("scroll", i), d && n.removeEventListener("scrollend", c); }; -}, Lv = (e, t, n) => { +}, Pv = (e, t, n) => { if (t != null && t.borderBoxSize) { const r = t.borderBoxSize[0]; if (r) @@ -16961,7 +16986,7 @@ const Ev = (e, t) => Math.abs(e - t) < 1.01, Cv = (e, t, n) => { ); } return e[n.options.horizontal ? "offsetWidth" : "offsetHeight"]; -}, Dv = (e, { +}, Ov = (e, { adjustments: t = 0, behavior: n }, r) => { @@ -16972,7 +16997,7 @@ const Ev = (e, t) => Math.abs(e - t) < 1.01, Cv = (e, t, n) => { behavior: n }); }; -class Rv { +class Av { constructor(t) { this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.currentScrollToIndex = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => { let n = null; @@ -17010,11 +17035,11 @@ class Rv { scrollPaddingStart: 0, scrollPaddingEnd: 0, horizontal: !1, - getItemKey: Nv, - rangeExtractor: Mv, + getItemKey: Tv, + rangeExtractor: Lv, onChange: () => { }, - measureElement: Lv, + measureElement: Pv, initialRect: { width: 0, height: 0 }, scrollMargin: 0, gap: 0, @@ -17163,7 +17188,7 @@ class Rv { this.getScrollOffset(), this.options.lanes ], - (n, r, l, a) => this.range = n.length > 0 && r > 0 ? Pv({ + (n, r, l, a) => this.range = n.length > 0 && r > 0 ? zv({ measurements: n, outerSize: r, scrollOffset: l, @@ -17241,7 +17266,7 @@ class Rv { const r = this.getMeasurements(); if (r.length !== 0) return Bc( - r[om( + r[im( 0, r.length - 1, (l) => Bc(r[l]).start, @@ -17311,7 +17336,7 @@ class Rv { console.warn("Failed to get offset for index:", n); return; } - Ev(x[0], w) || c(y); + Mv(x[0], w) || c(y); }; this.isDynamicMode() ? this.targetWindow.requestAnimationFrame(k) : k(); }); @@ -17359,7 +17384,7 @@ class Rv { }, this.setOptions(t); } } -const om = (e, t, n, r) => { +const im = (e, t, n, r) => { for (; e <= t; ) { const l = (e + t) / 2 | 0, a = n(l); if (a < r) @@ -17371,7 +17396,7 @@ const om = (e, t, n, r) => { } return e > 0 ? e - 1 : 0; }; -function Pv({ +function zv({ measurements: e, outerSize: t, scrollOffset: n, @@ -17383,7 +17408,7 @@ function Pv({ startIndex: 0, endIndex: l }; - let o = om( + let o = im( 0, l, a, @@ -17408,7 +17433,7 @@ function Pv({ return { startIndex: o, endIndex: i }; } const Gc = typeof document < "u" ? h.useLayoutEffect : h.useEffect; -function Ov({ +function Fv({ useFlushSync: e = !0, ...t }) { @@ -17419,19 +17444,19 @@ function Ov({ e && o ? me.flushSync(n) : n(), (i = t.onChange) == null || i.call(t, a, o); } }, [l] = h.useState( - () => new Rv(r) + () => new Av(r) ); return l.setOptions(r), Gc(() => l._didMount(), []), Gc(() => l._willUpdate()), l; } -function Av(e) { - return Ov({ - observeElementRect: Iv, - observeElementOffset: Tv, - scrollToFn: Dv, +function Wv(e) { + return Fv({ + observeElementRect: Dv, + observeElementOffset: Rv, + scrollToFn: Ov, ...e }); } -const im = (e) => { +const cm = (e) => { const { state: t, dispatch: n, fetchFullImageDetails: r } = ge(), l = t.selectedIds.has(e.id), a = t.settings["gallery.view_mode"] || "grid_details", { handleRestoreWorkflow: o, handleAddUnifiedLoader: i, @@ -17444,7 +17469,7 @@ const im = (e) => { handleDelete: w, handleEditNotes: x, handleUpdateUserNotes: _ - } = $s(t, n), { getParentChain: f } = sm(t.images, t.settings), [u, m] = h.useState(null), [g, j] = h.useState(!1), [S, b] = h.useState(null), [I, R] = h.useState(!1), A = h.useRef(null); + } = $s(t, n), { getParentChain: f } = am(t.images, t.settings), [u, m] = h.useState(null), [g, j] = h.useState(!1), [S, b] = h.useState(null), [I, R] = h.useState(!1), A = h.useRef(null); dl({ enabled: g, insideRefs: [A], @@ -17536,7 +17561,7 @@ const im = (e) => { handleUpdateUserNotes: (Y) => _(e.id, Y), fetchFullImageDetails: r }; -}, zv = ({ +}, $v = ({ title: e, text: t, onClose: n, @@ -17554,7 +17579,7 @@ const im = (e) => { /* @__PURE__ */ s.jsxs("div", { className: "meld-prompt-popup__header", children: [ /* @__PURE__ */ s.jsx("span", { children: e }), /* @__PURE__ */ s.jsxs("div", { style: { display: "flex", alignItems: "center", gap: "10px" }, children: [ - l ? /* @__PURE__ */ s.jsx(di, { size: 18, style: { color: "var(--meld-success-color)" } }) : /* @__PURE__ */ s.jsx(Zp, { className: "meld-prompt-popup__copy", size: 18, onClick: () => r(t) }), + l ? /* @__PURE__ */ s.jsx(di, { size: 18, style: { color: "var(--meld-success-color)" } }) : /* @__PURE__ */ s.jsx(Jp, { className: "meld-prompt-popup__copy", size: 18, onClick: () => r(t) }), /* @__PURE__ */ s.jsx(pe, { className: "meld-prompt-popup__close", size: 18, onClick: n }) ] }) ] }), @@ -17563,7 +17588,7 @@ const im = (e) => { } ), document.body -)), cm = en.memo(({ image: e }) => { +)), dm = en.memo(({ image: e }) => { const { state: t, dispatch: n, @@ -17595,7 +17620,7 @@ const im = (e) => { handleRunWithWorkflow: z, handleRunWithMask: B, fetchFullImageDetails: C - } = im(e), [Q, D] = h.useState("idle"); + } = cm(e), [Q, D] = h.useState("idle"); h.useEffect(() => { e.user_notes && Q === "saving" && D("idle"); }, [e.user_notes, Q]); @@ -17854,7 +17879,7 @@ const im = (e) => { } ), l && /* @__PURE__ */ s.jsx( - zv, + $v, { title: l.title, text: l.text, @@ -17867,8 +17892,8 @@ const im = (e) => { } ); }); -cm.displayName = "DetailedImageCard"; -const dm = en.memo(({ image: e }) => { +dm.displayName = "DetailedImageCard"; +const um = en.memo(({ image: e }) => { const { isSelected: t, imgSrc: n, @@ -17891,7 +17916,7 @@ const dm = en.memo(({ image: e }) => { handleEditNotes: m, handleDelete: g, handleRestore: j - } = im(e), S = v.viewScope === "trash", b = S ? "Delete Permanently" : "Move to Trash", I = (R) => { + } = cm(e), S = v.viewScope === "trash", b = S ? "Delete Permanently" : "Move to Trash", I = (R) => { R.stopPropagation(); let A = String(e.id); t && v.selectedIds.size > 0 && (A = Array.from(v.selectedIds).join(",")), R.dataTransfer.setData("text/plain", A), se.getState().setIsOpen(!0); @@ -17984,11 +18009,11 @@ const dm = en.memo(({ image: e }) => { } ); }); -dm.displayName = "SimpleImageCard"; +um.displayName = "SimpleImageCard"; const qc = ({ image: e }) => { const { state: t } = ge(); - return (t.settings["gallery.view_mode"] || "grid_details") === "grid_only" ? /* @__PURE__ */ s.jsx(dm, { image: e }) : /* @__PURE__ */ s.jsx(cm, { image: e }); -}, va = 6, Fv = 10, Wv = ({ + return (t.settings["gallery.view_mode"] || "grid_details") === "grid_only" ? /* @__PURE__ */ s.jsx(um, { image: e }) : /* @__PURE__ */ s.jsx(dm, { image: e }); +}, va = 6, Uv = 10, Vv = ({ visibleImages: e, settings: t, loadMoreRef: n, @@ -18024,8 +18049,8 @@ const qc = ({ image: e }) => { }, []); const k = v + 10, w = y ? Math.max( 1, - Math.floor((i - Fv * 2 + va) / (k + va)) - ) : 1, x = y ? Math.ceil(e.length / w) : e.length, _ = y ? v + 14 : v + 40, f = Av({ + Math.floor((i - Uv * 2 + va) / (k + va)) + ) : 1, x = y ? Math.ceil(e.length / w) : e.length, _ = y ? v + 14 : v + 40, f = Wv({ count: x, getScrollElement: () => o.current, estimateSize: () => _, @@ -18151,7 +18176,7 @@ const qc = ({ image: e }) => { ] } ); -}, $v = () => { +}, Bv = () => { const { state: e, dispatch: t, @@ -18165,7 +18190,7 @@ const qc = ({ image: e }) => { visibleImages: d, isSearchActive: p, loadMoreRef: v - } = jv(), y = se((b) => b.isOpen), k = se((b) => b.setIsOpen), w = se((b) => b.buckets), x = Object.values(w).some( + } = Cv(), y = se((b) => b.isOpen), k = se((b) => b.setIsOpen), w = se((b) => b.buckets), x = Object.values(w).some( (b) => b && b.length > 0 ); P.log("GalleryPanel: isLightTableOpen =", y); @@ -18316,7 +18341,7 @@ const qc = ({ image: e }) => { alignItems: "center" }, title: e.settings["gallery.view_mode"] === "grid_only" ? "Switch to Details View" : "Switch to Grid Only View", - children: e.settings["gallery.view_mode"] === "grid_only" ? /* @__PURE__ */ s.jsx(lg, { size: 14 }) : /* @__PURE__ */ s.jsx(pf, { size: 14 }) + children: e.settings["gallery.view_mode"] === "grid_only" ? /* @__PURE__ */ s.jsx(sg, { size: 14 }) : /* @__PURE__ */ s.jsx(pf, { size: 14 }) } ), /* @__PURE__ */ s.jsx( @@ -18343,7 +18368,7 @@ const qc = ({ image: e }) => { title: "Light Table", children: /* @__PURE__ */ s.jsxs("div", { style: { position: "relative" }, children: [ /* @__PURE__ */ s.jsx( - ug, + fg, { size: 14, fill: y ? "var(--brand-yellow, #ffd700)" : "none", @@ -18421,13 +18446,13 @@ const qc = ({ image: e }) => { } ) ] }), - l === "search" && /* @__PURE__ */ s.jsx("div", { className: "meld-gallery__search-wrapper", children: /* @__PURE__ */ s.jsx(cv, {}) }) + l === "search" && /* @__PURE__ */ s.jsx("div", { className: "meld-gallery__search-wrapper", children: /* @__PURE__ */ s.jsx(fv, {}) }) ] }), /* @__PURE__ */ s.jsxs("div", { className: "meld-gallery__content", children: [ - /* @__PURE__ */ s.jsx(zy, {}), + /* @__PURE__ */ s.jsx($y, {}), e.error && /* @__PURE__ */ s.jsx("div", { className: "meld-gallery__error", children: e.error }), l === "tags" ? /* @__PURE__ */ s.jsx( - dv, + mv, { onClose: () => a("gallery"), onSearch: (b) => { @@ -18473,7 +18498,7 @@ const qc = ({ image: e }) => { flexDirection: "column" }, children: /* @__PURE__ */ s.jsx( - Wv, + Vv, { visibleImages: d, settings: e.settings, @@ -18485,19 +18510,19 @@ const qc = ({ image: e }) => { ) } ), - /* @__PURE__ */ s.jsx(bv, {}) + /* @__PURE__ */ s.jsx(Nv, {}) ] }), - e.viewerImageId !== null && /* @__PURE__ */ s.jsx(Sv, {}), - /* @__PURE__ */ s.jsx(Ay, {}), + e.viewerImageId !== null && /* @__PURE__ */ s.jsx(Ev, {}), + /* @__PURE__ */ s.jsx(Wy, {}), _ && /* @__PURE__ */ s.jsx( - av, + cv, { anchorRect: u, onClose: () => f(!1), onSelect: S } ), - /* @__PURE__ */ s.jsx(Ky, {}) + /* @__PURE__ */ s.jsx(Yy, {}) ] } ); @@ -18517,8 +18542,8 @@ Yc.registerExtension({ t(), setTimeout(t, 1), setTimeout(t, 100); } }); -const Uv = document.getElementById("meld-gallery-style"); -if (!Uv) { +const Qv = document.getElementById("meld-gallery-style"); +if (!Qv) { const e = document.createElement("link"); e.id = "meld-gallery-style", e.rel = "stylesheet", e.type = "text/css"; try { @@ -18547,7 +18572,7 @@ Yc.registerExtension({ }, async setup(e) { var t; - Uy(); + Qy(); try { const n = await Sf(); P.init(n.dev_mode), P.log("Settings received:", n); @@ -18622,7 +18647,7 @@ Yc.registerExtension({ for (; r && !r.classList.contains("sidebar-content-container"); ) r.style.height = "100%", r.style.overflow = "hidden", r = r.parentElement; r && (r.style.overflow = "hidden"), it || (P.log("galleryContainer not found, creating new one"), it = document.createElement("div"), it.id = "meld-gallery-container", it.style.height = "100%", it.style.width = "100%", it.style.display = "flex", it.style.flexDirection = "column", it.style.overflow = "hidden"), n.contains(it) || (P.log("Appending galleryContainer to el"), n.appendChild(it)), Fl ? P.log("Gallery root already exists, React should handle re-render if needed") : (P.log("Creating new gallery root"), Fl = of(it), Fl.render( - en.createElement(Jg, null, en.createElement($v)) + en.createElement(ey, null, en.createElement(Bv)) )); } });