vue-launchers
Version:
1,694 lines (1,693 loc) • 10.8 MB
JavaScript
var ewe = Object.defineProperty;
var twe = (t, e, r) => e in t ? ewe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
var Et = (t, e, r) => (twe(t, typeof e != "symbol" ? e + "" : e, r), r);
import { watch as ht, effectScope as GH, reactive as Wo, computed as X, ref as $, readonly as S0, getCurrentInstance as id, onMounted as Gr, onBeforeUnmount as hn, onBeforeMount as FA, inject as Lt, onActivated as koe, onDeactivated as QH, createTextVNode as Bt, Fragment as Mt, Comment as BC, defineComponent as ie, provide as pr, withDirectives as dn, toRef as _e, h as B, Teleport as _6, nextTick as ea, renderSlot as yA, mergeProps as Io, vShow as Ao, isVNode as rwe, shallowRef as a5, watchEffect as mr, Transition as cn, TransitionGroup as FH, cloneVNode as wA, Text as awe, onUnmounted as zo, onBeforeUpdate as Moe, onUpdated as nwe, normalizeStyle as ir, markRaw as E1, normalizeClass as Of, createApp as XH, unref as k, renderList as zr, openBlock as le, createElementBlock as me, createElementVNode as V, createStaticVNode as $6, createBlock as er, withCtx as H, createVNode as D, toDisplayString as Ir, createCommentVNode as Ea, resolveComponent as Ne, toRaw as zc, hasInjectionContext as owe, isRef as L3, isReactive as UH, getCurrentScope as iwe, onScopeDispose as swe, toRefs as Nt, resolveDynamicComponent as Eoe, toHandlers as Poe, useCssVars as qf, shallowReactive as Wf, withAsyncContext as lwe, Suspense as fwe } from "vue";
const Boe = !!(typeof window < "u" && window.document && window.document.createElement);
var oT = !1, iT = !1;
try {
var jE = {
get passive() {
return oT = !0;
},
get once() {
return iT = oT = !0;
}
};
Boe && (window.addEventListener("test", jE, jE), window.removeEventListener("test", jE, !0));
} catch {
}
function uwe(t, e, r, a) {
if (a && typeof a != "boolean" && !iT) {
var n = a.once, o = a.capture, i = r;
!iT && n && (i = r.__once || function s(l) {
this.removeEventListener(e, s, o), r.call(this, l);
}, r.__once = i), t.addEventListener(e, i, oT ? a : o);
}
t.addEventListener(e, r, a);
}
function cwe(t, e, r, a) {
var n = a && typeof a != "boolean" ? a.capture : a;
t.removeEventListener(e, r, n), r.__once && t.removeEventListener(e, r.__once, n);
}
function MU(t, e, r, a) {
return uwe(t, e, r, a), function() {
cwe(t, e, r, a);
};
}
var EU = (/* @__PURE__ */ new Date()).getTime();
function dwe(t) {
var e = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (e - EU)), a = setTimeout(t, r);
return EU = e, a;
}
var hwe = ["", "webkit", "moz", "o", "ms"], PU = dwe, BU = function(e, r) {
return e + (e ? r[0].toUpperCase() + r.substr(1) : r) + "AnimationFrame";
};
Boe && hwe.some(function(t) {
var e = BU(t, "request");
return e in window && (BU(t, "cancel"), PU = function(a) {
return window[e](a);
}), !!PU;
});
Function.prototype.bind.call(Function.prototype.call, [].slice);
Function.prototype.bind.call(Function.prototype.call, [].slice);
function Awe() {
return zoe().__VUE_DEVTOOLS_GLOBAL_HOOK__;
}
function zoe() {
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
}
const vwe = typeof Proxy == "function", pwe = "devtools-plugin:setup", gwe = "plugin:settings:set";
let Hv, sT;
function mwe() {
var t;
return Hv !== void 0 || (typeof window < "u" && window.performance ? (Hv = !0, sT = window.performance) : typeof globalThis < "u" && (!((t = globalThis.perf_hooks) === null || t === void 0) && t.performance) ? (Hv = !0, sT = globalThis.perf_hooks.performance) : Hv = !1), Hv;
}
function bwe() {
return mwe() ? sT.now() : Date.now();
}
class ywe {
constructor(e, r) {
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = e, this.hook = r;
const a = {};
if (e.settings)
for (const i in e.settings) {
const s = e.settings[i];
a[i] = s.defaultValue;
}
const n = `__vue-devtools-plugin-settings__${e.id}`;
let o = Object.assign({}, a);
try {
const i = localStorage.getItem(n), s = JSON.parse(i);
Object.assign(o, s);
} catch {
}
this.fallbacks = {
getSettings() {
return o;
},
setSettings(i) {
try {
localStorage.setItem(n, JSON.stringify(i));
} catch {
}
o = i;
},
now() {
return bwe();
}
}, r && r.on(gwe, (i, s) => {
i === this.plugin.id && this.fallbacks.setSettings(s);
}), this.proxiedOn = new Proxy({}, {
get: (i, s) => this.target ? this.target.on[s] : (...l) => {
this.onQueue.push({
method: s,
args: l
});
}
}), this.proxiedTarget = new Proxy({}, {
get: (i, s) => this.target ? this.target[s] : s === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(s) ? (...l) => (this.targetQueue.push({
method: s,
args: l,
resolve: () => {
}
}), this.fallbacks[s](...l)) : (...l) => new Promise((f) => {
this.targetQueue.push({
method: s,
args: l,
resolve: f
});
})
});
}
async setRealTarget(e) {
this.target = e;
for (const r of this.onQueue)
this.target.on[r.method](...r.args);
for (const r of this.targetQueue)
r.resolve(await this.target[r.method](...r.args));
}
}
function YH(t, e) {
const r = t, a = zoe(), n = Awe(), o = vwe && r.enableEarlyProxy;
if (n && (a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !o))
n.emit(pwe, t, e);
else {
const i = o ? new ywe(r, n) : null;
(a.__VUE_DEVTOOLS_PLUGINS__ = a.__VUE_DEVTOOLS_PLUGINS__ || []).push({
pluginDescriptor: r,
setupFn: e,
proxy: i
}), i && e(i.proxiedTarget);
}
}
/*!
* vuex v4.1.0
* (c) 2022 Evan You
* @license MIT
*/
var wwe = "store";
function XA(t, e) {
Object.keys(t).forEach(function(r) {
return e(t[r], r);
});
}
function xwe(t) {
return t !== null && typeof t == "object";
}
function Cwe(t) {
return t && typeof t.then == "function";
}
function Nu(t, e) {
if (!t)
throw new Error("[vuex] " + e);
}
function kwe(t, e) {
return function() {
return t(e);
};
}
function Noe(t, e, r) {
return e.indexOf(t) < 0 && (r && r.prepend ? e.unshift(t) : e.push(t)), function() {
var a = e.indexOf(t);
a > -1 && e.splice(a, 1);
};
}
function Doe(t, e) {
t._actions = /* @__PURE__ */ Object.create(null), t._mutations = /* @__PURE__ */ Object.create(null), t._wrappedGetters = /* @__PURE__ */ Object.create(null), t._modulesNamespaceMap = /* @__PURE__ */ Object.create(null);
var r = t.state;
zC(t, r, [], t._modules.root, !0), VH(t, r, e);
}
function VH(t, e, r) {
var a = t._state, n = t._scope;
t.getters = {}, t._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
var o = t._wrappedGetters, i = {}, s = {}, l = GH(!0);
l.run(function() {
XA(o, function(f, u) {
i[u] = kwe(f, t), s[u] = X(function() {
return i[u]();
}), Object.defineProperty(t.getters, u, {
get: function() {
return s[u].value;
},
enumerable: !0
// for local getters
});
});
}), t._state = Wo({
data: e
}), t._scope = l, t.strict && zwe(t), a && r && t._withCommit(function() {
a.data = null;
}), n && n.stop();
}
function zC(t, e, r, a, n) {
var o = !r.length, i = t._modules.getNamespace(r);
if (a.namespaced && (t._modulesNamespaceMap[i] && process.env.NODE_ENV !== "production" && console.error("[vuex] duplicate namespace " + i + " for the namespaced module " + r.join("/")), t._modulesNamespaceMap[i] = a), !o && !n) {
var s = ZH(e, r.slice(0, -1)), l = r[r.length - 1];
t._withCommit(function() {
process.env.NODE_ENV !== "production" && l in s && console.warn(
'[vuex] state field "' + l + '" was overridden by a module with the same name at "' + r.join(".") + '"'
), s[l] = a.state;
});
}
var f = a.context = Mwe(t, i, r);
a.forEachMutation(function(u, c) {
var d = i + c;
Ewe(t, d, u, f);
}), a.forEachAction(function(u, c) {
var d = u.root ? c : i + c, h = u.handler || u;
Pwe(t, d, h, f);
}), a.forEachGetter(function(u, c) {
var d = i + c;
Bwe(t, d, u, f);
}), a.forEachChild(function(u, c) {
zC(t, e, r.concat(c), u, n);
});
}
function Mwe(t, e, r) {
var a = e === "", n = {
dispatch: a ? t.dispatch : function(o, i, s) {
var l = ww(o, i, s), f = l.payload, u = l.options, c = l.type;
if ((!u || !u.root) && (c = e + c, process.env.NODE_ENV !== "production" && !t._actions[c])) {
console.error("[vuex] unknown local action type: " + l.type + ", global type: " + c);
return;
}
return t.dispatch(c, f);
},
commit: a ? t.commit : function(o, i, s) {
var l = ww(o, i, s), f = l.payload, u = l.options, c = l.type;
if ((!u || !u.root) && (c = e + c, process.env.NODE_ENV !== "production" && !t._mutations[c])) {
console.error("[vuex] unknown local mutation type: " + l.type + ", global type: " + c);
return;
}
t.commit(c, f, u);
}
};
return Object.defineProperties(n, {
getters: {
get: a ? function() {
return t.getters;
} : function() {
return Toe(t, e);
}
},
state: {
get: function() {
return ZH(t.state, r);
}
}
}), n;
}
function Toe(t, e) {
if (!t._makeLocalGettersCache[e]) {
var r = {}, a = e.length;
Object.keys(t.getters).forEach(function(n) {
if (n.slice(0, a) === e) {
var o = n.slice(a);
Object.defineProperty(r, o, {
get: function() {
return t.getters[n];
},
enumerable: !0
});
}
}), t._makeLocalGettersCache[e] = r;
}
return t._makeLocalGettersCache[e];
}
function Ewe(t, e, r, a) {
var n = t._mutations[e] || (t._mutations[e] = []);
n.push(function(i) {
r.call(t, a.state, i);
});
}
function Pwe(t, e, r, a) {
var n = t._actions[e] || (t._actions[e] = []);
n.push(function(i) {
var s = r.call(t, {
dispatch: a.dispatch,
commit: a.commit,
getters: a.getters,
state: a.state,
rootGetters: t.getters,
rootState: t.state
}, i);
return Cwe(s) || (s = Promise.resolve(s)), t._devtoolHook ? s.catch(function(l) {
throw t._devtoolHook.emit("vuex:error", l), l;
}) : s;
});
}
function Bwe(t, e, r, a) {
if (t._wrappedGetters[e]) {
process.env.NODE_ENV !== "production" && console.error("[vuex] duplicate getter key: " + e);
return;
}
t._wrappedGetters[e] = function(o) {
return r(
a.state,
// local state
a.getters,
// local getters
o.state,
// root state
o.getters
// root getters
);
};
}
function zwe(t) {
ht(function() {
return t._state.data;
}, function() {
process.env.NODE_ENV !== "production" && Nu(t._committing, "do not mutate vuex store state outside mutation handlers.");
}, { deep: !0, flush: "sync" });
}
function ZH(t, e) {
return e.reduce(function(r, a) {
return r[a];
}, t);
}
function ww(t, e, r) {
return xwe(t) && t.type && (r = e, e = t, t = t.type), process.env.NODE_ENV !== "production" && Nu(typeof t == "string", "expects string as the type, but found " + typeof t + "."), { type: t, payload: e, options: r };
}
var Nwe = "vuex bindings", zU = "vuex:mutations", OE = "vuex:actions", Lv = "vuex", Dwe = 0;
function Twe(t, e) {
YH(
{
id: "org.vuejs.vuex",
app: t,
label: "Vuex",
homepage: "https://next.vuex.vuejs.org/",
logo: "https://vuejs.org/images/icons/favicon-96x96.png",
packageName: "vuex",
componentStateTypes: [Nwe]
},
function(r) {
r.addTimelineLayer({
id: zU,
label: "Vuex Mutations",
color: NU
}), r.addTimelineLayer({
id: OE,
label: "Vuex Actions",
color: NU
}), r.addInspector({
id: Lv,
label: "Vuex",
icon: "storage",
treeFilterPlaceholder: "Filter stores..."
}), r.on.getInspectorTree(function(a) {
if (a.app === t && a.inspectorId === Lv)
if (a.filter) {
var n = [];
Hoe(n, e._modules.root, a.filter, ""), a.rootNodes = n;
} else
a.rootNodes = [
Roe(e._modules.root, "")
];
}), r.on.getInspectorState(function(a) {
if (a.app === t && a.inspectorId === Lv) {
var n = a.nodeId;
Toe(e, n), a.state = Rwe(
Lwe(e._modules, n),
n === "root" ? e.getters : e._makeLocalGettersCache,
n
);
}
}), r.on.editInspectorState(function(a) {
if (a.app === t && a.inspectorId === Lv) {
var n = a.nodeId, o = a.path;
n !== "root" && (o = n.split("/").filter(Boolean).concat(o)), e._withCommit(function() {
a.set(e._state.data, o, a.state.value);
});
}
}), e.subscribe(function(a, n) {
var o = {};
a.payload && (o.payload = a.payload), o.state = n, r.notifyComponentUpdate(), r.sendInspectorTree(Lv), r.sendInspectorState(Lv), r.addTimelineEvent({
layerId: zU,
event: {
time: Date.now(),
title: a.type,
data: o
}
});
}), e.subscribeAction({
before: function(a, n) {
var o = {};
a.payload && (o.payload = a.payload), a._id = Dwe++, a._time = Date.now(), o.state = n, r.addTimelineEvent({
layerId: OE,
event: {
time: a._time,
title: a.type,
groupId: a._id,
subtitle: "start",
data: o
}
});
},
after: function(a, n) {
var o = {}, i = Date.now() - a._time;
o.duration = {
_custom: {
type: "duration",
display: i + "ms",
tooltip: "Action duration",
value: i
}
}, a.payload && (o.payload = a.payload), o.state = n, r.addTimelineEvent({
layerId: OE,
event: {
time: Date.now(),
title: a.type,
groupId: a._id,
subtitle: "end",
data: o
}
});
}
});
}
);
}
var NU = 8702998, Swe = 6710886, Iwe = 16777215, Soe = {
label: "namespaced",
textColor: Iwe,
backgroundColor: Swe
};
function Ioe(t) {
return t && t !== "root" ? t.split("/").slice(-2, -1)[0] : "Root";
}
function Roe(t, e) {
return {
id: e || "root",
// all modules end with a `/`, we want the last segment only
// cart/ -> cart
// nested/cart/ -> cart
label: Ioe(e),
tags: t.namespaced ? [Soe] : [],
children: Object.keys(t._children).map(
function(r) {
return Roe(
t._children[r],
e + r + "/"
);
}
)
};
}
function Hoe(t, e, r, a) {
a.includes(r) && t.push({
id: a || "root",
label: a.endsWith("/") ? a.slice(0, a.length - 1) : a || "Root",
tags: e.namespaced ? [Soe] : []
}), Object.keys(e._children).forEach(function(n) {
Hoe(t, e._children[n], r, a + n + "/");
});
}
function Rwe(t, e, r) {
e = r === "root" ? e : e[r];
var a = Object.keys(e), n = {
state: Object.keys(t.state).map(function(i) {
return {
key: i,
editable: !0,
value: t.state[i]
};
})
};
if (a.length) {
var o = Hwe(e);
n.getters = Object.keys(o).map(function(i) {
return {
key: i.endsWith("/") ? Ioe(i) : i,
editable: !1,
value: lT(function() {
return o[i];
})
};
});
}
return n;
}
function Hwe(t) {
var e = {};
return Object.keys(t).forEach(function(r) {
var a = r.split("/");
if (a.length > 1) {
var n = e, o = a.pop();
a.forEach(function(i) {
n[i] || (n[i] = {
_custom: {
value: {},
display: i,
tooltip: "Module",
abstract: !0
}
}), n = n[i]._custom.value;
}), n[o] = lT(function() {
return t[r];
});
} else
e[r] = lT(function() {
return t[r];
});
}), e;
}
function Lwe(t, e) {
var r = e.split("/").filter(function(a) {
return a;
});
return r.reduce(
function(a, n, o) {
var i = a[n];
if (!i)
throw new Error('Missing module "' + n + '" for path "' + e + '".');
return o === r.length - 1 ? i : i._children;
},
e === "root" ? t : t.root._children
);
}
function lT(t) {
try {
return t();
} catch (e) {
return e;
}
}
var Lu = function(e, r) {
this.runtime = r, this._children = /* @__PURE__ */ Object.create(null), this._rawModule = e;
var a = e.state;
this.state = (typeof a == "function" ? a() : a) || {};
}, Loe = { namespaced: { configurable: !0 } };
Loe.namespaced.get = function() {
return !!this._rawModule.namespaced;
};
Lu.prototype.addChild = function(e, r) {
this._children[e] = r;
};
Lu.prototype.removeChild = function(e) {
delete this._children[e];
};
Lu.prototype.getChild = function(e) {
return this._children[e];
};
Lu.prototype.hasChild = function(e) {
return e in this._children;
};
Lu.prototype.update = function(e) {
this._rawModule.namespaced = e.namespaced, e.actions && (this._rawModule.actions = e.actions), e.mutations && (this._rawModule.mutations = e.mutations), e.getters && (this._rawModule.getters = e.getters);
};
Lu.prototype.forEachChild = function(e) {
XA(this._children, e);
};
Lu.prototype.forEachGetter = function(e) {
this._rawModule.getters && XA(this._rawModule.getters, e);
};
Lu.prototype.forEachAction = function(e) {
this._rawModule.actions && XA(this._rawModule.actions, e);
};
Lu.prototype.forEachMutation = function(e) {
this._rawModule.mutations && XA(this._rawModule.mutations, e);
};
Object.defineProperties(Lu.prototype, Loe);
var UA = function(e) {
this.register([], e, !1);
};
UA.prototype.get = function(e) {
return e.reduce(function(r, a) {
return r.getChild(a);
}, this.root);
};
UA.prototype.getNamespace = function(e) {
var r = this.root;
return e.reduce(function(a, n) {
return r = r.getChild(n), a + (r.namespaced ? n + "/" : "");
}, "");
};
UA.prototype.update = function(e) {
joe([], this.root, e);
};
UA.prototype.register = function(e, r, a) {
var n = this;
a === void 0 && (a = !0), process.env.NODE_ENV !== "production" && Ooe(e, r);
var o = new Lu(r, a);
if (e.length === 0)
this.root = o;
else {
var i = this.get(e.slice(0, -1));
i.addChild(e[e.length - 1], o);
}
r.modules && XA(r.modules, function(s, l) {
n.register(e.concat(l), s, a);
});
};
UA.prototype.unregister = function(e) {
var r = this.get(e.slice(0, -1)), a = e[e.length - 1], n = r.getChild(a);
if (!n) {
process.env.NODE_ENV !== "production" && console.warn(
"[vuex] trying to unregister module '" + a + "', which is not registered"
);
return;
}
n.runtime && r.removeChild(a);
};
UA.prototype.isRegistered = function(e) {
var r = this.get(e.slice(0, -1)), a = e[e.length - 1];
return r ? r.hasChild(a) : !1;
};
function joe(t, e, r) {
if (process.env.NODE_ENV !== "production" && Ooe(t, r), e.update(r), r.modules)
for (var a in r.modules) {
if (!e.getChild(a)) {
process.env.NODE_ENV !== "production" && console.warn(
"[vuex] trying to add a new module '" + a + "' on hot reloading, manual reload is needed"
);
return;
}
joe(
t.concat(a),
e.getChild(a),
r.modules[a]
);
}
}
var DU = {
assert: function(t) {
return typeof t == "function";
},
expected: "function"
}, jwe = {
assert: function(t) {
return typeof t == "function" || typeof t == "object" && typeof t.handler == "function";
},
expected: 'function or object with "handler" function'
}, TU = {
getters: DU,
mutations: DU,
actions: jwe
};
function Ooe(t, e) {
Object.keys(TU).forEach(function(r) {
if (e[r]) {
var a = TU[r];
XA(e[r], function(n, o) {
Nu(
a.assert(n),
Owe(t, r, o, n, a.expected)
);
});
}
});
}
function Owe(t, e, r, a, n) {
var o = e + " should be " + n + ' but "' + e + "." + r + '"';
return t.length > 0 && (o += ' in module "' + t.join(".") + '"'), o += " is " + JSON.stringify(a) + ".", o;
}
function Gwe(t) {
return new rl(t);
}
var rl = function t(e) {
var r = this;
e === void 0 && (e = {}), process.env.NODE_ENV !== "production" && (Nu(typeof Promise < "u", "vuex requires a Promise polyfill in this browser."), Nu(this instanceof t, "store must be called with the new operator."));
var a = e.plugins;
a === void 0 && (a = []);
var n = e.strict;
n === void 0 && (n = !1);
var o = e.devtools;
this._committing = !1, this._actions = /* @__PURE__ */ Object.create(null), this._actionSubscribers = [], this._mutations = /* @__PURE__ */ Object.create(null), this._wrappedGetters = /* @__PURE__ */ Object.create(null), this._modules = new UA(e), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null), this._scope = null, this._devtools = o;
var i = this, s = this, l = s.dispatch, f = s.commit;
this.dispatch = function(d, h) {
return l.call(i, d, h);
}, this.commit = function(d, h, A) {
return f.call(i, d, h, A);
}, this.strict = n;
var u = this._modules.root.state;
zC(this, u, [], this._modules.root), VH(this, u), a.forEach(function(c) {
return c(r);
});
}, qH = { state: { configurable: !0 } };
rl.prototype.install = function(e, r) {
e.provide(r || wwe, this), e.config.globalProperties.$store = this;
var a = this._devtools !== void 0 ? this._devtools : process.env.NODE_ENV !== "production" || !1;
a && Twe(e, this);
};
qH.state.get = function() {
return this._state.data;
};
qH.state.set = function(t) {
process.env.NODE_ENV !== "production" && Nu(!1, "use store.replaceState() to explicit replace store state.");
};
rl.prototype.commit = function(e, r, a) {
var n = this, o = ww(e, r, a), i = o.type, s = o.payload, l = o.options, f = { type: i, payload: s }, u = this._mutations[i];
if (!u) {
process.env.NODE_ENV !== "production" && console.error("[vuex] unknown mutation type: " + i);
return;
}
this._withCommit(function() {
u.forEach(function(d) {
d(s);
});
}), this._subscribers.slice().forEach(function(c) {
return c(f, n.state);
}), process.env.NODE_ENV !== "production" && l && l.silent && console.warn(
"[vuex] mutation type: " + i + ". Silent option has been removed. Use the filter functionality in the vue-devtools"
);
};
rl.prototype.dispatch = function(e, r) {
var a = this, n = ww(e, r), o = n.type, i = n.payload, s = { type: o, payload: i }, l = this._actions[o];
if (!l) {
process.env.NODE_ENV !== "production" && console.error("[vuex] unknown action type: " + o);
return;
}
try {
this._actionSubscribers.slice().filter(function(u) {
return u.before;
}).forEach(function(u) {
return u.before(s, a.state);
});
} catch (u) {
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in before action subscribers: "), console.error(u));
}
var f = l.length > 1 ? Promise.all(l.map(function(u) {
return u(i);
})) : l[0](i);
return new Promise(function(u, c) {
f.then(function(d) {
try {
a._actionSubscribers.filter(function(h) {
return h.after;
}).forEach(function(h) {
return h.after(s, a.state);
});
} catch (h) {
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error(h));
}
u(d);
}, function(d) {
try {
a._actionSubscribers.filter(function(h) {
return h.error;
}).forEach(function(h) {
return h.error(s, a.state, d);
});
} catch (h) {
process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in error action subscribers: "), console.error(h));
}
c(d);
});
});
};
rl.prototype.subscribe = function(e, r) {
return Noe(e, this._subscribers, r);
};
rl.prototype.subscribeAction = function(e, r) {
var a = typeof e == "function" ? { before: e } : e;
return Noe(a, this._actionSubscribers, r);
};
rl.prototype.watch = function(e, r, a) {
var n = this;
return process.env.NODE_ENV !== "production" && Nu(typeof e == "function", "store.watch only accepts a function."), ht(function() {
return e(n.state, n.getters);
}, r, Object.assign({}, a));
};
rl.prototype.replaceState = function(e) {
var r = this;
this._withCommit(function() {
r._state.data = e;
});
};
rl.prototype.registerModule = function(e, r, a) {
a === void 0 && (a = {}), typeof e == "string" && (e = [e]), process.env.NODE_ENV !== "production" && (Nu(Array.isArray(e), "module path must be a string or an Array."), Nu(e.length > 0, "cannot register the root module by using registerModule.")), this._modules.register(e, r), zC(this, this.state, e, this._modules.get(e), a.preserveState), VH(this, this.state);
};
rl.prototype.unregisterModule = function(e) {
var r = this;
typeof e == "string" && (e = [e]), process.env.NODE_ENV !== "production" && Nu(Array.isArray(e), "module path must be a string or an Array."), this._modules.unregister(e), this._withCommit(function() {
var a = ZH(r.state, e.slice(0, -1));
delete a[e[e.length - 1]];
}), Doe(this);
};
rl.prototype.hasModule = function(e) {
return typeof e == "string" && (e = [e]), process.env.NODE_ENV !== "production" && Nu(Array.isArray(e), "module path must be a string or an Array."), this._modules.isRegistered(e);
};
rl.prototype.hotUpdate = function(e) {
this._modules.update(e), Doe(this, !0);
};
rl.prototype._withCommit = function(e) {
var r = this._committing;
this._committing = !0, e(), this._committing = r;
};
Object.defineProperties(rl.prototype, qH);
const Us = Gwe({
state: {
count: null,
userId: null,
receiveResponse: null,
HworkId: "",
reportToken: "",
isKeepAlive: !1,
recruitY: "",
localApplication: [],
// 本地应用列表
recentApplications: [],
//最近应用
idle: "995887235295133696"
},
mutations: {
SET_COUNT: (t, e) => {
t.count = e;
},
SET_USERID: (t, e) => {
t.userId = e;
},
SET_RESPONSE: (t, e) => {
t.receiveResponse = e;
},
SET_HWORK_ID: (t, e) => {
t.HworkId = e;
},
SET_REPORT: (t, e) => {
t.reportToken = e;
},
SET_KEEP_ALIVE: (t, e) => {
t.isKeepAlive = e;
},
changeRecruitY: (t, e) => {
t.recruitY = e;
},
// 存储本地应用
SET_LOCAL_APPLICATION: (t, e) => {
console.log("存储的本地应用", e), t.localApplication = e, console.log("存储的本地应用", t.localApplication);
},
//最近应用
SET_RERCENT_APPLICATIONS: (t, e) => {
console.log("data", e);
const r = (/* @__PURE__ */ new Date()).toLocaleString("zh-CN", { hour12: !1 });
e.openTime = r;
const a = e.appName;
let n = -1;
for (let o = 0; o < t.recentApplications.length; o++)
if (t.recentApplications[o].appName === a) {
n = o;
break;
}
console.log("foundIndex", n), n !== -1 && t.recentApplications.splice(n, 1), t.recentApplications.length > 7 ? (t.recentApplications.unshift(e), t.recentApplications.pop()) : t.recentApplications.unshift(e), console.log("最近存储的应用信息", t.recentApplications);
},
clearRecentApplications: (t) => {
t.recentApplications = [];
},
setIdle: (t, e) => {
console.log("设置空闲状态", e), t.idle = e;
}
}
});
function Qwe(t) {
let e = ".", r = "__", a = "--", n;
if (t) {
let A = t.blockPrefix;
A && (e = A), A = t.elementPrefix, A && (r = A), A = t.modifierPrefix, A && (a = A);
}
const o = {
install(A) {
n = A.c;
const v = A.context;
v.bem = {}, v.bem.b = null, v.bem.els = null;
}
};
function i(A) {
let v, p;
return {
before(g) {
v = g.bem.b, p = g.bem.els, g.bem.els = null;
},
after(g) {
g.bem.b = v, g.bem.els = p;
},
$({ context: g, props: m }) {
return A = typeof A == "string" ? A : A({ context: g, props: m }), g.bem.b = A, `${(m == null ? void 0 : m.bPrefix) || e}${g.bem.b}`;
}
};
}
function s(A) {
let v;
return {
before(p) {
v = p.bem.els;
},
after(p) {
p.bem.els = v;
},
$({ context: p, props: g }) {
return A = typeof A == "string" ? A : A({ context: p, props: g }), p.bem.els = A.split(",").map((m) => m.trim()), p.bem.els.map((m) => `${(g == null ? void 0 : g.bPrefix) || e}${p.bem.b}${r}${m}`).join(", ");
}
};
}
function l(A) {
return {
$({ context: v, props: p }) {
A = typeof A == "string" ? A : A({ context: v, props: p });
const g = A.split(",").map((y) => y.trim());
function m(y) {
return g.map((C) => `&${(p == null ? void 0 : p.bPrefix) || e}${v.bem.b}${y !== void 0 ? `${r}${y}` : ""}${a}${C}`).join(", ");
}
const b = v.bem.els;
if (b !== null) {
if (process.env.NODE_ENV !== "production" && b.length >= 2)
throw Error(`[css-render/plugin-bem]: m(${A}) is invalid, using modifier inside multiple elements is not allowed`);
return m(b[0]);
} else
return m();
}
};
}
function f(A) {
return {
$({ context: v, props: p }) {
A = typeof A == "string" ? A : A({ context: v, props: p });
const g = v.bem.els;
if (process.env.NODE_ENV !== "production" && g !== null && g.length >= 2)
throw Error(`[css-render/plugin-bem]: notM(${A}) is invalid, using modifier inside multiple elements is not allowed`);
return `&:not(${(p == null ? void 0 : p.bPrefix) || e}${v.bem.b}${g !== null && g.length > 0 ? `${r}${g[0]}` : ""}${a}${A})`;
}
};
}
return Object.assign(o, {
cB: (...A) => n(i(A[0]), A[1], A[2]),
cE: (...A) => n(s(A[0]), A[1], A[2]),
cM: (...A) => n(l(A[0]), A[1], A[2]),
cNotM: (...A) => n(f(A[0]), A[1], A[2])
}), o;
}
function Fwe(t) {
let e = 0;
for (let r = 0; r < t.length; ++r)
t[r] === "&" && ++e;
return e;
}
const Goe = /\s*,(?![^(]*\))\s*/g, Xwe = /\s+/g;
function Uwe(t, e) {
const r = [];
return e.split(Goe).forEach((a) => {
let n = Fwe(a);
if (n) {
if (n === 1) {
t.forEach((i) => {
r.push(a.replace("&", i));
});
return;
}
} else {
t.forEach((i) => {
r.push(
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
(i && i + " ") + a
);
});
return;
}
let o = [
a
];
for (; n--; ) {
const i = [];
o.forEach((s) => {
t.forEach((l) => {
i.push(s.replace("&", l));
});
}), o = i;
}
o.forEach((i) => r.push(i));
}), r;
}
function Ywe(t, e) {
const r = [];
return e.split(Goe).forEach((a) => {
t.forEach((n) => {
r.push((n && n + " ") + a);
});
}), r;
}
function Vwe(t) {
let e = [""];
return t.forEach((r) => {
r = r && r.trim(), // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
r && (r.includes("&") ? e = Uwe(e, r) : e = Ywe(e, r));
}), e.join(", ").replace(Xwe, " ");
}
function SU(t) {
if (!t)
return;
const e = t.parentElement;
e && e.removeChild(t);
}
function NC(t, e) {
return (e ?? document.head).querySelector(`style[cssr-id="${t}"]`);
}
function Zwe(t) {
const e = document.createElement("style");
return e.setAttribute("cssr-id", t), e;
}
function Zb(t) {
return t ? /^\s*@(s|m)/.test(t) : !1;
}
const qwe = /[A-Z]/g;
function Qoe(t) {
return t.replace(qwe, (e) => "-" + e.toLowerCase());
}
function Wwe(t, e = " ") {
return typeof t == "object" && t !== null ? ` {
` + Object.entries(t).map((r) => e + ` ${Qoe(r[0])}: ${r[1]};`).join(`
`) + `
` + e + "}" : `: ${t};`;
}
function Jwe(t, e, r) {
return typeof t == "function" ? t({
context: e.context,
props: r
}) : t;
}
function IU(t, e, r, a) {
if (!e)
return "";
const n = Jwe(e, r, a);
if (!n)
return "";
if (typeof n == "string")
return `${t} {
${n}
}`;
const o = Object.keys(n);
if (o.length === 0)
return r.config.keepEmptyBlock ? t + ` {
}` : "";
const i = t ? [
t + " {"
] : [];
return o.forEach((s) => {
const l = n[s];
if (s === "raw") {
i.push(`
` + l + `
`);
return;
}
s = Qoe(s), l != null && i.push(` ${s}${Wwe(l)}`);
}), t && i.push("}"), i.join(`
`);
}
function fT(t, e, r) {
t && t.forEach((a) => {
if (Array.isArray(a))
fT(a, e, r);
else if (typeof a == "function") {
const n = a(e);
Array.isArray(n) ? fT(n, e, r) : n && r(n);
} else
a && r(a);
});
}
function Foe(t, e, r, a, n) {
const o = t.$;
let i = "";
if (!o || typeof o == "string")
Zb(o) ? i = o : e.push(o);
else if (typeof o == "function") {
const f = o({
context: a.context,
props: n
});
Zb(f) ? i = f : e.push(f);
} else if (o.before && o.before(a.context), !o.$ || typeof o.$ == "string")
Zb(o.$) ? i = o.$ : e.push(o.$);
else if (o.$) {
const f = o.$({
context: a.context,
props: n
});
Zb(f) ? i = f : e.push(f);
}
const s = Vwe(e), l = IU(s, t.props, a, n);
i ? r.push(`${i} {`) : l.length && r.push(l), t.children && fT(t.children, {
context: a.context,
props: n
}, (f) => {
if (typeof f == "string") {
const u = IU(s, { raw: f }, a, n);
r.push(u);
} else
Foe(f, e, r, a, n);
}), e.pop(), i && r.push("}"), o && o.after && o.after(a.context);
}
function Kwe(t, e, r) {
const a = [];
return Foe(t, [], a, e, r), a.join(`
`);
}
function F5(t) {
for (var e = 0, r, a = 0, n = t.length; n >= 4; ++a, n -= 4)
r = t.charCodeAt(a) & 255 | (t.charCodeAt(++a) & 255) << 8 | (t.charCodeAt(++a) & 255) << 16 | (t.charCodeAt(++a) & 255) << 24, r = /* Math.imul(k, m): */
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
r >>> 24, e = /* Math.imul(k, m): */
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
switch (n) {
case 3:
e ^= (t.charCodeAt(a + 2) & 255) << 16;
case 2:
e ^= (t.charCodeAt(a + 1) & 255) << 8;
case 1:
e ^= t.charCodeAt(a) & 255, e = /* Math.imul(h, m): */
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
}
return e ^= e >>> 13, e = /* Math.imul(h, m): */
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
}
typeof window < "u" && (window.__cssrContext = {});
function _we(t, e, r, a) {
const { els: n } = e;
if (r === void 0)
n.forEach(SU), e.els = [];
else {
const o = NC(r, a);
o && n.includes(o) && (SU(o), e.els = n.filter((i) => i !== o));
}
}
function RU(t, e) {
t.push(e);
}
function $we(t, e, r, a, n, o, i, s, l) {
let f;
if (r === void 0 && (f = e.render(a), r = F5(f)), l) {
l.adapter(r, f ?? e.render(a));
return;
}
s === void 0 && (s = document.head);
const u = NC(r, s);
if (u !== null && !o)
return u;
const c = u ?? Zwe(r);
if (f === void 0 && (f = e.render(a)), c.textContent = f, u !== null)
return u;
if (i) {
const d = s.querySelector(`meta[name="${i}"]`);
if (d)
return s.insertBefore(c, d), RU(e.els, c), c;
}
return n ? s.insertBefore(c, s.querySelector("style, link")) : s.appendChild(c), RU(e.els, c), c;
}
function exe(t) {
return Kwe(this, this.instance, t);
}
function txe(t = {}) {
const { id: e, ssr: r, props: a, head: n = !1, force: o = !1, anchorMetaName: i, parent: s } = t;
return $we(this.instance, this, e, a, n, o, i, s, r);
}
function rxe(t = {}) {
const { id: e, parent: r } = t;
_we(this.instance, this, e, r);
}
const qb = function(t, e, r, a) {
return {
instance: t,
$: e,
props: r,
children: a,
els: [],
render: exe,
mount: txe,
unmount: rxe
};
}, axe = function(t, e, r, a) {
return Array.isArray(e) ? qb(t, { $: null }, null, e) : Array.isArray(r) ? qb(t, e, null, r) : Array.isArray(a) ? qb(t, e, r, a) : qb(t, e, r, null);
};
function Xoe(t = {}) {
const e = {
c: (...r) => axe(e, ...r),
use: (r, ...a) => r.install(e, ...a),
find: NC,
context: {},
config: t
};
return e;
}
function nxe(t, e) {
if (t === void 0)
return !1;
if (e) {
const { context: { ids: r } } = e;
return r.has(t);
}
return NC(t) !== null;
}
const oxe = "n", X5 = `.${oxe}-`, ixe = "__", sxe = "--", Uoe = Xoe(), Yoe = Qwe({
blockPrefix: X5,
elementPrefix: ixe,
modifierPrefix: sxe
});
Uoe.use(Yoe);
const {
c: te,
find: Msr
} = Uoe, {
cB: F,
cE: oe,
cM: ne,
cNotM: Rr
} = Yoe;
function sd(t) {
return te(({
props: {
bPrefix: e
}
}) => `${e || X5}modal, ${e || X5}drawer`, [t]);
}
function oh(t) {
return te(({
props: {
bPrefix: e
}
}) => `${e || X5}popover`, [t]);
}
function Voe(t) {
return te(({
props: {
bPrefix: e
}
}) => `&${e || X5}modal`, t);
}
const lxe = (...t) => te(">", [F(...t)]);
function $e(t, e) {
return t + (e === "default" ? "" : e.replace(/^[a-z]/, (r) => r.toUpperCase()));
}
let xw = [];
const Zoe = /* @__PURE__ */ new WeakMap();
function fxe() {
xw.forEach((t) => t(...Zoe.get(t))), xw = [];
}
function j3(t, ...e) {
Zoe.set(t, e), !xw.includes(t) && xw.push(t) === 1 && requestAnimationFrame(fxe);
}
function uxe(t) {
return t.nodeType === 9 ? null : t.parentNode;
}
function qoe(t) {
if (t === null)
return null;
const e = uxe(t);
if (e === null)
return null;
if (e.nodeType === 9)
return document.documentElement;
if (e.nodeType === 1) {
const { overflow: r, overflowX: a, overflowY: n } = getComputedStyle(e);
if (/(auto|scroll|overlay)/.test(r + n + a))
return e;
}
return qoe(e);
}
function cxe(t) {
return typeof t == "string" ? document.querySelector(t) : typeof t == "function" ? t() : t;
}
function Yo(t, e) {
let { target: r } = t;
for (; r; ) {
if (r.dataset && r.dataset[e] !== void 0)
return !0;
r = r.parentElement;
}
return !1;
}
function Du(t) {
return t.composedPath()[0] || null;
}
function dxe(t) {
if (typeof t == "number")
return {
"": t.toString()
};
const e = {};
return t.split(/ +/).forEach((r) => {
if (r === "")
return;
const [a, n] = r.split(":");
n === void 0 ? e[""] = a : e[a] = n;
}), e;
}
function jv(t, e) {
var r;
if (t == null)
return;
const a = dxe(t);
if (e === void 0)
return a[""];
if (typeof e == "string")
return (r = a[e]) !== null && r !== void 0 ? r : a[""];
if (Array.isArray(e)) {
for (let n = e.length - 1; n >= 0; --n) {
const o = e[n];
if (o in a)
return a[o];
}
return a[""];
} else {
let n, o = -1;
return Object.keys(a).forEach((i) => {
const s = Number(i);
!Number.isNaN(s) && e >= s && s >= o && (o = s, n = a[i]);
}), n;
}
}
function On(t) {
return typeof t == "string" ? t.endsWith("px") ? Number(t.slice(0, t.length - 2)) : Number(t) : t;
}
function rn(t) {
if (t != null)
return typeof t == "number" ? `${t}px` : t.endsWith("px") ? t : `${t}px`;
}
function eo(t, e) {
const r = t.trim().split(/\s+/g), a = {
top: r[0]
};
switch (r.length) {
case 1:
a.right = r[0], a.bottom = r[0], a.left = r[0];
break;
case 2:
a.right = r[1], a.left = r[1], a.bottom = r[0];
break;
case 3:
a.right = r[1], a.bottom = r[2], a.left = r[1];
break;
case 4:
a.right = r[1], a.bottom = r[2], a.left = r[3];
break;
default:
throw new Error("[seemly/getMargin]:" + t + " is not a valid value.");
}
return e === void 0 ? a : a[e];
}
function hxe(t, e) {
const [r, a] = t.split(" ");
return e ? e === "row" ? r : a : {
row: r,
col: a || r
};
}
const HU = {
aliceblue: "#F0F8FF",
antiquewhite: "#FAEBD7",
aqua: "#0FF",
aquamarine: "#7FFFD4",
azure: "#F0FFFF",
beige: "#F5F5DC",
bisque: "#FFE4C4",
black: "#000",
blanchedalmond: "#FFEBCD",
blue: "#00F",
blueviolet: "#8A2BE2",
brown: "#A52A2A",
burlywood: "#DEB887",
cadetblue: "#5F9EA0",
chartreuse: "#7FFF00",
chocolate: "#D2691E",
coral: "#FF7F50",
cornflowerblue: "#6495ED",
cornsilk: "#FFF8DC",
crimson: "#DC143C",
cyan: "#0FF",
darkblue: "#00008B",
darkcyan: "#008B8B",
darkgoldenrod: "#B8860B",
darkgray: "#A9A9A9",
darkgrey: "#A9A9A9",
darkgreen: "#006400",
darkkhaki: "#BDB76B",
darkmagenta: "#8B008B",
darkolivegreen: "#556B2F",
darkorange: "#FF8C00",
darkorchid: "#9932CC",
darkred: "#8B0000",
darksalmon: "#E9967A",
darkseagreen: "#8FBC8F",
darkslateblue: "#483D8B",
darkslategray: "#2F4F4F",
darkslategrey: "#2F4F4F",
darkturquoise: "#00CED1",
darkviolet: "#9400D3",
deeppink: "#FF1493",
deepskyblue: "#00BFFF",
dimgray: "#696969",
dimgrey: "#696969",
dodgerblue: "#1E90FF",
firebrick: "#B22222",
floralwhite: "#FFFAF0",
forestgreen: "#228B22",
fuchsia: "#F0F",
gainsboro: "#DCDCDC",
ghostwhite: "#F8F8FF",
gold: "#FFD700",
goldenrod: "#DAA520",
gray: "#808080",
grey: "#808080",
green: "#008000",
greenyellow: "#ADFF2F",
honeydew: "#F0FFF0",
hotpink: "#FF69B4",
indianred: "#CD5C5C",
indigo: "#4B0082",
ivory: "#FFFFF0",
khaki: "#F0E68C",
lavender: "#E6E6FA",
lavenderblush: "#FFF0F5",
lawngreen: "#7CFC00",
lemonchiffon: "#FFFACD",
lightblue: "#ADD8E6",
lightcoral: "#F08080",
lightcyan: "#E0FFFF",
lightgoldenrodyellow: "#FAFAD2",
lightgray: "#D3D3D3",
lightgrey: "#D3D3D3",
lightgreen: "#90EE90",
lightpink: "#FFB6C1",
lightsalmon: "#FFA07A",
lightseagreen: "#20B2AA",
lightskyblue: "#87CEFA",
lightslategray: "#778899",
lightslategrey: "#778899",
lightsteelblue: "#B0C4DE",
lightyellow: "#FFFFE0",
lime: "#0F0",
limegreen: "#32CD32",
linen: "#FAF0E6",
magenta: "#F0F",
maroon: "#800000",
mediumaquamarine: "#66CDAA",
mediumblue: "#0000CD",
mediumorchid: "#BA55D3",
mediumpurple: "#9370DB",
mediumseagreen: "#3CB371",
mediumslateblue: "#7B68EE",
mediumspringgreen: "#00FA9A",
mediumturquoise: "#48D1CC",
mediumvioletred: "#C71585",
midnightblue: "#191970",
mintcream: "#F5FFFA",
mistyrose: "#FFE4E1",
moccasin: "#FFE4B5",
navajowhite: "#FFDEAD",
navy: "#000080",
oldlace: "#FDF5E6",
olive: "#808000",
olivedrab: "#6B8E23",
orange: "#FFA500",
orangered: "#FF4500",
orchid: "#DA70D6",
palegoldenrod: "#EEE8AA",
palegreen: "#98FB98",
paleturquoise: "#AFEEEE",
palevioletred: "#DB7093",
papayawhip: "#FFEFD5",
peachpuff: "#FFDAB9",
peru: "#CD853F",
pink: "#FFC0CB",
plum: "#DDA0DD",
powderblue: "#B0E0E6",
purple: "#800080",
rebeccapurple: "#663399",
red: "#F00",
rosybrown: "#BC8F8F",
royalblue: "#4169E1",
saddlebrown: "#8B4513",
salmon: "#FA8072",
sandybrown: "#F4A460",
seagreen: "#2E8B57",
seashell: "#FFF5EE",
sienna: "#A0522D",
silver: "#C0C0C0",
skyblue: "#87CEEB",
slateblue: "#6A5ACD",
slategray: "#708090",
slategrey: "#708090",
snow: "#FFFAFA",
springgreen: "#00FF7F",
steelblue: "#4682B4",
tan: "#D2B48C",
teal: "#008080",
thistle: "#D8BFD8",
tomato: "#FF6347",
turquoise: "#40E0D0",
violet: "#EE82EE",
wheat: "#F5DEB3",
white: "#FFF",
whitesmoke: "#F5F5F5",
yellow: "#FF0",
yellowgreen: "#9ACD32",
transparent: "#0000"
};
function Woe(t, e, r) {
e /= 100, r /= 100;
const a = e * Math.min(r, 1 - r) + r;
return [t, a ? (2 - 2 * r / a) * 100 : 0, a * 100];
}
function ky(t, e, r) {
e /= 100, r /= 100;
const a = r - r * e / 2, n = Math.min(a, 1 - a);
return [t, n ? (r - a) / n * 100 : 0, a * 100];
}
function k1(t, e, r) {
e /= 100, r /= 100;
let a = (n, o = (n + t / 60) % 6) => r - r * e * Math.max(Math.min(o, 4 - o, 1), 0);
return [a(5) * 255, a(3) * 255, a(1) * 255];
}
function uT(t, e, r) {
t /= 255, e /= 255, r /= 255;
let a = Math.max(t, e, r), n = a - Math.min(t, e, r), o = n && (a == t ? (e - r) / n : a == e ? 2 + (r - t) / n : 4 + (t - e) / n);
return [60 * (o < 0 ? o + 6 : o), a && n / a * 100, a * 100];
}
function cT(t, e, r) {
t /= 255, e /= 255, r /= 255;
let a = Math.max(t, e, r), n = a - Math.min(t, e, r), o = 1 - Math.abs(a + a - n - 1), i = n && (a == t ? (e - r) / n : a == e ? 2 + (r - t) / n : 4 + (t - e) / n);
return [60 * (i < 0 ? i + 6 : i), o ? n / o * 100 : 0, (a + a - n) * 50];
}
function Cw(t, e, r) {
e /= 100, r /= 100;
let a = e * Math.min(r, 1 - r), n = (o, i = (o + t / 30) % 12) => r - a * Math.max(Math.min(i - 3, 9 - i, 1), -1);
return [n(0) * 255, n(8) * 255, n(4) * 255];
}
const jc = "^\\s*", Oc = "\\s*$", I0 = "\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*", zl = "\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*", R2 = "([0-9A-Fa-f])", H2 = "([0-9A-Fa-f]{2})", Joe = new RegExp(`${jc}hsl\\s*\\(${zl},${I0},${I0}\\)${Oc}`), Koe = new RegExp(`${jc}hsv\\s*\\(${zl},${I0},${I0}\\)${Oc}`), _oe = new RegExp(`${jc}hsla\\s*\\(${zl},${I0},${I0},${zl}\\)${Oc}`), $oe = new RegExp(`${jc}hsva\\s*\\(${zl},${I0},${I0},${zl}\\)${Oc}`), Axe = new RegExp(`${jc}rgb\\s*\\(${zl},${zl},${zl}\\)${Oc}`), vxe = new RegExp(`${jc}rgba\\s*\\(${zl},${zl},${zl},${zl}\\)${Oc}`), WH = new RegExp(`${jc}#${R2}${R2}${R2}${Oc}`), JH = new RegExp(`${jc}#${H2}${H2}${H2}${Oc}`), KH = new RegExp(`${jc}#${R2}${R2}${R2}${R2}${Oc}`), _H = new RegExp(`${jc}#${H2}${H2}${H2}${H2}${Oc}`);
function Rs(t) {
return parseInt(t, 16);
}
function $2(t) {
try {
let e;
if (e = _oe.exec(t))
return [
Nc(e[1]),
Vo(e[5]),
Vo(e[9]),
H1(e[13])
];
if (e = Joe.exec(t))
return [Nc(e[1]), Vo(e[5]), Vo(e[9]), 1];
throw new Error(`[seemly/hsla]: Invalid color value ${t}.`);
} catch (e) {
throw e;
}
}
function b0(t) {
try {
let e;
if (e = $oe.exec(t))
return [
Nc(e[1]),
Vo(e[5]),
Vo(e[9]),
H1(e[13])
];
if (e = Koe.exec(t))
return [Nc(e[1]), Vo(e[5]), Vo(e[9]), 1];
throw new Error(`[seemly/hsva]: Invalid color value ${t}.`);
} catch (e) {
throw e;
}
}
function Xo(t) {
try {
let e;
if (e = JH.exec(t))
return [Rs(e[1]), Rs(e[2]), Rs(e[3]), 1];
if (e = Axe.exec(t))
return [so(e[1]), so(e[5]), so(e[9]), 1];
if (e = vxe.exec(t))
return [
so(e[1]),
so(e[5]),
so(e[9]),
H1(e[13])
];
if (e = WH.exec(t))
return [
Rs(e[1] + e[1]),
Rs(e[2] + e[2]),
Rs(e[3] + e[3]),
1
];
if (e = _H.exec(t))
return [
Rs(e[1]),
Rs(e[2]),
Rs(e[3]),
H1(Rs(e[4]) / 255)
];
if (e = KH.exec(t))
return [
Rs(e[1] + e[1]),
Rs(e[2] + e[2]),
Rs(e[3] + e[3]),
H1(Rs(e[4] + e[4]) / 255)
];
if (t in HU)
return Xo(HU[t]);
if (Joe.test(t) || _oe.test(t)) {
const [r, a, n, o] = $2(t);
return [...Cw(r, a, n), o];
} else if (Koe.test(t) || $oe.test(t)) {
const [r, a, n, o] = b0(t);
return [...k1(r, a, n), o];
}
throw new Error(`[seemly/rgba]: Invalid color value ${t}.`);
} catch (e) {
throw e;
}
}
function pxe(t) {
return t > 1 ? 1 : t < 0 ? 0 : t;
}
function gxe(t, e, r) {
return `rgb(${so(t)}, ${so(e)}, ${so(r)})`;
}
function dT(t, e, r, a) {
return `rgba(${so(t)}, ${so(e)}, ${so(r)}, ${pxe(a)})`;
}
function GE(t, e, r, a, n) {
return so((t * e * (1 - a) + r * a) / n);
}
function ur(t, e) {
Array.isArray(t) || (t = Xo(t)), Array.isArray(e) || (e = Xo(e));
const r = t[3], a = e[3], n = H1(r + a - r * a);
return dT(GE(t[0], r, e[0], a, n), GE(t[1], r, e[1], a, n), GE(t[2], r, e[2], a, n), n);
}
function Dt(t, e) {
const [r, a, n, o = 1] = Array.isArray(t) ? t : Xo(t);
return typeof e.alpha == "number" ? dT(r, a, n, e.alpha) : dT(r, a, n, o);
}
function ko(t, e) {
const [r, a, n, o = 1] = Array.isArray(t) ? t : Xo(t), { lightness: i = 1, alpha: s = 1 } = e;
return wc([r * i, a * i, n * i, o * s]);
}
function H1(t) {
const e = Math.round(Number(t) * 100) / 100;
return e > 1 ? 1 : e < 0 ? 0 : e;
}
function Nc(t) {
const e = Math.round(Number(t));
return e >= 360 || e < 0 ? 0 : e;
}
function so(t) {
const e = Math.round(Number(t));
return e > 255 ? 255 : e < 0 ? 0 : e;
}
function Vo(t) {
const e = Math.round(Number(t));
return e > 100 ? 100 : e < 0 ? 0 : e;
}
function hT(t) {
const [e, r, a] = Array.isArray(t) ? t : Xo(t);
return gxe(e, r, a);
}
function wc(t) {
const [e, r, a] = t;
return 3 in t ? `rgba(${so(e)}, ${so(r)}, ${so(a)}, ${H1(t[3])})` : `rgba(${so(e)}, ${so(r)}, ${so(a)}, 1)`;
}
function AT(t) {
return `hsv(${Nc(t[0])}, ${Vo(t[1])}%, ${Vo(t[2])}%)`;
}
function eA(t) {
const [e, r, a] = t;
return 3 in t ? `hsva(${Nc(e)}, ${Vo(r)}%, ${Vo(a)}%, ${H1(t[3])})` : `hsva(${Nc(e)}, ${Vo(r)}%, ${Vo(a)}%, 1)`;
}
function vT(t) {
return `hsl(${Nc(t[0])}, ${Vo(t[1])}%, ${Vo(t[2])}%)`;
}
function y0(t) {
const [e, r, a] = t;
return 3 in t ? `hsla(${Nc(e)}, ${Vo(r)}%, ${Vo(a)}%, ${H1(t[3])})` : `hsla(${Nc(e)}, ${Vo(r)}%, ${Vo(a)}%, 1)`;
}
function w0(t) {
if (typeof t == "string") {
let a;
if (a = JH.exec(t))
return `${a[0]}FF`;
if (a = _H.exec(t))
return a[0];
if (a = WH.exec(t))
return `#${a[1]}${a[1]}${a[2