UNPKG

vue3-json-schema-editor-ts

Version:

A json-schema editor of high efficient and easy-to-use, base on Vue3

1,722 lines 770 kB
import { Fragment as Te, isVNode as go, Comment as wv, Text as gf, defineComponent as J, reactive as ke, getCurrentInstance as Kt, onMounted as we, onUpdated as vo, onUnmounted as er, watch as ae, computed as I, inject as _e, provide as Me, ref as re, unref as ie, shallowRef as U, watchEffect as Ee, onBeforeUnmount as Ae, triggerRef as Cv, createVNode as h, h as oo, Transition as dn, withDirectives as rn, resolveDirective as $v, cloneVNode as tr, render as ln, nextTick as Ne, toRef as zt, withModifiers as cu, vShow as In, onBeforeMount as vf, Teleport as hf, createTextVNode as yt, isRef as bf, toRefs as Ov, toRaw as sn, TransitionGroup as Dl, onBeforeUpdate as Pv, resolveComponent as Iv, createElementBlock as Zt, openBlock as ge, createElementVNode as Ft, createCommentVNode as Vn, createBlock as Re, withCtx as ce, normalizeStyle as Tv, toDisplayString as tt, renderList as wo } from "vue"; function du(e) { return typeof e > "u" || e === null ? !0 : e === ""; } function Ev(e, [t, n]) { const o = Object.getOwnPropertyDescriptors(e); return Object.prototype.hasOwnProperty.call(o, t) && Object.entries(o).reduce((r, [i, a]) => (Reflect.deleteProperty(r, i), i === t && (i = n), Reflect.defineProperty(r, i, a), r), e), e; } const _v = { description: null, maxProperties: null, minProperties: null }, Mv = { description: { name: "描述", type: "string" }, maxProperties: { name: "最大属性个数", type: "integer" }, minProperties: { name: "最小属性个数", type: "integer" } }, Av = { value: _v, attr: Mv }, Rv = { description: null, maxLength: null, minLength: null, pattern: null, format: void 0, enum: void 0 }, Nv = { description: { name: "描述", type: "string" }, maxLength: { name: "最大字符数", type: "integer" }, minLength: { name: "最小字符数", type: "integer" }, pattern: { name: "正则表达式", type: "string" }, format: { name: "格式", type: "array", enums: ["date", "date-time", "email", "hostname", "ipv4", "ipv6", "uri"] }, enum: { name: "枚举", type: "array" } }, Fv = { value: Rv, attr: Nv }, Dv = { description: null, minItems: null, maxItems: null, uniqueItems: !1 }, Bv = { description: { name: "描述", type: "string" }, maxItems: { name: "最大元素个数", type: "integer" }, minItems: { name: "最小元素个数", type: "integer" }, uniqueItems: { name: "元素不可重复", type: "boolean" } }, zv = { value: Dv, attr: Bv }, jv = { description: null }, Hv = { description: { name: "描述", type: "string" } }, Lv = { value: jv, attr: Hv }, Vv = { description: null, maximum: null, minimum: null, exclusiveMaximum: null, exclusiveMinimum: null, enum: null }, Wv = { description: { name: "描述", type: "string" }, maximum: { name: "最大值", type: "integer" }, minimum: { name: "最小值", type: "integer" }, exclusiveMaximum: { name: "不包含最大值", type: "boolean" }, exclusiveMinimum: { name: "不包含最小值", type: "boolean" }, enum: { name: "枚举", type: "array" } }, kv = { value: Vv, attr: Wv }, Gv = { description: null, maximum: null, minimum: null, exclusiveMaximum: null, exclusiveMinimum: null, enum: null }, qv = { description: { name: "描述", type: "string" }, maximum: { name: "最大值", type: "number" }, minimum: { name: "最小值", type: "number" }, exclusiveMaximum: { name: "不包含最大值", type: "boolean" }, exclusiveMinimum: { name: "不包含最小值", type: "boolean" }, enum: { name: "枚举", type: "array" } }, Kv = { value: Gv, attr: qv }, Xv = ["string", "number", "integer", "object", "array", "boolean"], fu = { object: Av, string: Fv, array: zv, boolean: Lv, integer: kv, number: Kv }; function jo(e) { "@babel/helpers - typeof"; return jo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, jo(e); } function Uv(e, t) { if (jo(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var o = n.call(e, t); if (jo(o) != "object") return o; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function Yv(e) { var t = Uv(e, "string"); return jo(t) == "symbol" ? t : t + ""; } function Qv(e, t, n) { return (t = Yv(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function pu(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); t && (o = o.filter(function(r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), n.push.apply(n, o); } return n; } function H(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? pu(Object(n), !0).forEach(function(o) { Qv(e, o, n[o]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pu(Object(n)).forEach(function(o) { Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(n, o)); }); } return e; } function p() { return p = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var o in n) ({}).hasOwnProperty.call(n, o) && (e[o] = n[o]); } return e; }, p.apply(null, arguments); } const Zv = (e) => typeof e == "function", Jv = Array.isArray, eh = (e) => typeof e == "string", th = (e) => e !== null && typeof e == "object", nh = /^on[^a-z]/, oh = (e) => nh.test(e), yf = (e) => { const t = /* @__PURE__ */ Object.create(null); return (n) => t[n] || (t[n] = e(n)); }, rh = /-(\w)/g, Sf = yf((e) => e.replace(rh, (t, n) => n ? n.toUpperCase() : "")), ih = /\B([A-Z])/g, ah = yf((e) => e.replace(ih, "-$1").toLowerCase()), lh = Object.prototype.hasOwnProperty, mu = (e, t) => lh.call(e, t); function sh(e, t, n, o) { const r = e[n]; if (r != null) { const i = mu(r, "default"); if (i && o === void 0) { const a = r.default; o = r.type !== Function && Zv(a) ? a() : a; } r.type === Boolean && (!mu(t, n) && !i ? o = !1 : o === "" && (o = !0)); } return o; } function Un(e) { let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 ? arguments[2] : void 0; return typeof e == "function" ? e(t) : e ?? n; } function uh(e) { let t; const n = new Promise((r) => { t = e(() => { r(!0); }); }), o = () => { t == null || t(); }; return o.then = (r, i) => n.then(r, i), o.promise = n, o; } function ne() { const e = []; for (let t = 0; t < arguments.length; t++) { const n = t < 0 || arguments.length <= t ? void 0 : arguments[t]; if (n) { if (eh(n)) e.push(n); else if (Jv(n)) for (let o = 0; o < n.length; o++) { const r = ne(n[o]); r && e.push(r); } else if (th(n)) for (const o in n) n[o] && e.push(o); } } return e.join(" "); } var xf = function() { if (typeof Map < "u") return Map; function e(t, n) { var o = -1; return t.some(function(r, i) { return r[0] === n ? (o = i, !0) : !1; }), o; } return ( /** @class */ function() { function t() { this.__entries__ = []; } return Object.defineProperty(t.prototype, "size", { /** * @returns {boolean} */ get: function() { return this.__entries__.length; }, enumerable: !0, configurable: !0 }), t.prototype.get = function(n) { var o = e(this.__entries__, n), r = this.__entries__[o]; return r && r[1]; }, t.prototype.set = function(n, o) { var r = e(this.__entries__, n); ~r ? this.__entries__[r][1] = o : this.__entries__.push([n, o]); }, t.prototype.delete = function(n) { var o = this.__entries__, r = e(o, n); ~r && o.splice(r, 1); }, t.prototype.has = function(n) { return !!~e(this.__entries__, n); }, t.prototype.clear = function() { this.__entries__.splice(0); }, t.prototype.forEach = function(n, o) { o === void 0 && (o = null); for (var r = 0, i = this.__entries__; r < i.length; r++) { var a = i[r]; n.call(o, a[1], a[0]); } }, t; }() ); }(), za = typeof window < "u" && typeof document < "u" && window.document === document, kr = function() { return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")(); }(), ch = function() { return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(kr) : function(e) { return setTimeout(function() { return e(Date.now()); }, 1e3 / 60); }; }(), dh = 2; function fh(e, t) { var n = !1, o = !1, r = 0; function i() { n && (n = !1, e()), o && l(); } function a() { ch(i); } function l() { var s = Date.now(); if (n) { if (s - r < dh) return; o = !0; } else n = !0, o = !1, setTimeout(a, t); r = s; } return l; } var ph = 20, mh = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], gh = typeof MutationObserver < "u", vh = ( /** @class */ function() { function e() { this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = fh(this.refresh.bind(this), ph); } return e.prototype.addObserver = function(t) { ~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_(); }, e.prototype.removeObserver = function(t) { var n = this.observers_, o = n.indexOf(t); ~o && n.splice(o, 1), !n.length && this.connected_ && this.disconnect_(); }, e.prototype.refresh = function() { var t = this.updateObservers_(); t && this.refresh(); }, e.prototype.updateObservers_ = function() { var t = this.observers_.filter(function(n) { return n.gatherActive(), n.hasActive(); }); return t.forEach(function(n) { return n.broadcastActive(); }), t.length > 0; }, e.prototype.connect_ = function() { !za || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), gh ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, { attributes: !0, childList: !0, characterData: !0, subtree: !0 })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0); }, e.prototype.disconnect_ = function() { !za || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1); }, e.prototype.onTransitionEnd_ = function(t) { var n = t.propertyName, o = n === void 0 ? "" : n, r = mh.some(function(i) { return !!~o.indexOf(i); }); r && this.refresh(); }, e.getInstance = function() { return this.instance_ || (this.instance_ = new e()), this.instance_; }, e.instance_ = null, e; }() ), wf = function(e, t) { for (var n = 0, o = Object.keys(t); n < o.length; n++) { var r = o[n]; Object.defineProperty(e, r, { value: t[r], enumerable: !1, writable: !1, configurable: !0 }); } return e; }, ro = function(e) { var t = e && e.ownerDocument && e.ownerDocument.defaultView; return t || kr; }, Cf = ui(0, 0, 0, 0); function Gr(e) { return parseFloat(e) || 0; } function gu(e) { for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]; return t.reduce(function(o, r) { var i = e["border-" + r + "-width"]; return o + Gr(i); }, 0); } function hh(e) { for (var t = ["top", "right", "bottom", "left"], n = {}, o = 0, r = t; o < r.length; o++) { var i = r[o], a = e["padding-" + i]; n[i] = Gr(a); } return n; } function bh(e) { var t = e.getBBox(); return ui(0, 0, t.width, t.height); } function yh(e) { var t = e.clientWidth, n = e.clientHeight; if (!t && !n) return Cf; var o = ro(e).getComputedStyle(e), r = hh(o), i = r.left + r.right, a = r.top + r.bottom, l = Gr(o.width), s = Gr(o.height); if (o.boxSizing === "border-box" && (Math.round(l + i) !== t && (l -= gu(o, "left", "right") + i), Math.round(s + a) !== n && (s -= gu(o, "top", "bottom") + a)), !xh(e)) { var c = Math.round(l + i) - t, u = Math.round(s + a) - n; Math.abs(c) !== 1 && (l -= c), Math.abs(u) !== 1 && (s -= u); } return ui(r.left, r.top, l, s); } var Sh = /* @__PURE__ */ function() { return typeof SVGGraphicsElement < "u" ? function(e) { return e instanceof ro(e).SVGGraphicsElement; } : function(e) { return e instanceof ro(e).SVGElement && typeof e.getBBox == "function"; }; }(); function xh(e) { return e === ro(e).document.documentElement; } function wh(e) { return za ? Sh(e) ? bh(e) : yh(e) : Cf; } function Ch(e) { var t = e.x, n = e.y, o = e.width, r = e.height, i = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, a = Object.create(i.prototype); return wf(a, { x: t, y: n, width: o, height: r, top: n, right: t + o, bottom: r + n, left: t }), a; } function ui(e, t, n, o) { return { x: e, y: t, width: n, height: o }; } var $h = ( /** @class */ function() { function e(t) { this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = ui(0, 0, 0, 0), this.target = t; } return e.prototype.isActive = function() { var t = wh(this.target); return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight; }, e.prototype.broadcastRect = function() { var t = this.contentRect_; return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t; }, e; }() ), Oh = ( /** @class */ /* @__PURE__ */ function() { function e(t, n) { var o = Ch(n); wf(this, { target: t, contentRect: o }); } return e; }() ), Ph = ( /** @class */ function() { function e(t, n, o) { if (this.activeObservations_ = [], this.observations_ = new xf(), typeof t != "function") throw new TypeError("The callback provided as parameter 1 is not a function."); this.callback_ = t, this.controller_ = n, this.callbackCtx_ = o; } return e.prototype.observe = function(t) { if (!arguments.length) throw new TypeError("1 argument required, but only 0 present."); if (!(typeof Element > "u" || !(Element instanceof Object))) { if (!(t instanceof ro(t).Element)) throw new TypeError('parameter 1 is not of type "Element".'); var n = this.observations_; n.has(t) || (n.set(t, new $h(t)), this.controller_.addObserver(this), this.controller_.refresh()); } }, e.prototype.unobserve = function(t) { if (!arguments.length) throw new TypeError("1 argument required, but only 0 present."); if (!(typeof Element > "u" || !(Element instanceof Object))) { if (!(t instanceof ro(t).Element)) throw new TypeError('parameter 1 is not of type "Element".'); var n = this.observations_; n.has(t) && (n.delete(t), n.size || this.controller_.removeObserver(this)); } }, e.prototype.disconnect = function() { this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this); }, e.prototype.gatherActive = function() { var t = this; this.clearActive(), this.observations_.forEach(function(n) { n.isActive() && t.activeObservations_.push(n); }); }, e.prototype.broadcastActive = function() { if (this.hasActive()) { var t = this.callbackCtx_, n = this.activeObservations_.map(function(o) { return new Oh(o.target, o.broadcastRect()); }); this.callback_.call(t, n, t), this.clearActive(); } }, e.prototype.clearActive = function() { this.activeObservations_.splice(0); }, e.prototype.hasActive = function() { return this.activeObservations_.length > 0; }, e; }() ), $f = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new xf(), Of = ( /** @class */ /* @__PURE__ */ function() { function e(t) { if (!(this instanceof e)) throw new TypeError("Cannot call a class as a function."); if (!arguments.length) throw new TypeError("1 argument required, but only 0 present."); var n = vh.getInstance(), o = new Ph(t, n, this); $f.set(this, o); } return e; }() ); [ "observe", "unobserve", "disconnect" ].forEach(function(e) { Of.prototype[e] = function() { var t; return (t = $f.get(this))[e].apply(t, arguments); }; }); var Pf = function() { return typeof kr.ResizeObserver < "u" ? kr.ResizeObserver : Of; }(); const Ih = (e) => e != null && e !== "", Ct = (e, t) => { const n = p({}, e); return Object.keys(t).forEach((o) => { const r = n[o]; if (r) r.type || r.default ? r.default = t[o] : r.def ? r.def(t[o]) : n[o] = { type: r, default: t[o] }; else throw new Error(`not have ${o} prop`); }), n; }, Th = (e) => { const t = Object.keys(e), n = {}, o = {}, r = {}; for (let i = 0, a = t.length; i < a; i++) { const l = t[i]; oh(l) ? (n[l[2].toLowerCase() + l.slice(3)] = e[l], o[l] = e[l]) : r[l] = e[l]; } return { onEvents: o, events: n, extraAttrs: r }; }, Eh = function() { let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1; const n = {}, o = /;(?![^(]*\))/g, r = /:(.+)/; return typeof e == "object" ? e : (e.split(o).forEach(function(i) { if (i) { const a = i.split(r); if (a.length > 1) { const l = t ? Sf(a[0].trim()) : a[0].trim(); n[l] = a[1].trim(); } } }), n); }, _h = (e, t) => e[t] !== void 0, Mh = Symbol("skipFlatten"), Ze = function() { let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; const n = Array.isArray(e) ? e : [e], o = []; return n.forEach((r) => { Array.isArray(r) ? o.push(...Ze(r, t)) : r && r.type === Te ? r.key === Mh ? o.push(r) : o.push(...Ze(r.children, t)) : r && go(r) ? t && !If(r) ? o.push(r) : t || o.push(r) : Ih(r) && o.push(r); }), o; }, Ah = function(e) { let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "default", n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; if (go(e)) return e.type === Te ? t === "default" ? Ze(e.children) : [] : e.children && e.children[t] ? Ze(e.children[t](n)) : []; { const o = e.$slots[t] && e.$slots[t](n); return Ze(o); } }, Lt = (e) => { var t; let n = ((t = e == null ? void 0 : e.vnode) === null || t === void 0 ? void 0 : t.el) || e && (e.$el || e); for (; n && !n.tagName; ) n = n.nextSibling; return n; }, Rh = (e) => { const t = {}; if (e.$ && e.$.vnode) { const n = e.$.vnode.props || {}; Object.keys(e.$props).forEach((o) => { const r = e.$props[o], i = ah(o); (r !== void 0 || i in n) && (t[o] = r); }); } else if (go(e) && typeof e.type == "object") { const n = e.props || {}, o = {}; Object.keys(n).forEach((i) => { o[Sf(i)] = n[i]; }); const r = e.type.props || {}; Object.keys(r).forEach((i) => { const a = sh(r, o, i, o[i]); (a !== void 0 || i in o) && (t[i] = a); }); } return t; }, Nh = function(e) { let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "default", n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, r; if (e.$) { const i = e[t]; if (i !== void 0) return typeof i == "function" && o ? i(n) : i; r = e.$slots[t], r = o && r ? r(n) : r; } else if (go(e)) { const i = e.props && e.props[t]; if (i !== void 0 && e.props !== null) return typeof i == "function" && o ? i(n) : i; e.type === Te ? r = e.children : e.children && e.children[t] && (r = e.children[t], r = o && r ? r(n) : r); } return Array.isArray(r) && (r = Ze(r), r = r.length === 1 ? r[0] : r, r = r.length === 0 ? void 0 : r), r; }; function vu() { let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, n = {}; return e.$ ? n = p(p({}, n), e.$attrs) : n = p(p({}, n), e.props), Th(n)[t ? "onEvents" : "events"]; } function Fh(e, t) { let o = ((go(e) ? e.props : e.$attrs) || {}).style || {}; return typeof o == "string" && (o = Eh(o, t)), o; } function Dh(e) { return e.length === 1 && e[0].type === Te; } function If(e) { return e && (e.type === wv || e.type === Te && e.children.length === 0 || e.type === gf && e.children.trim() === ""); } function Xt() { let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []; const t = []; return e.forEach((n) => { Array.isArray(n) ? t.push(...n) : (n == null ? void 0 : n.type) === Te ? t.push(...Xt(n.children)) : t.push(n); }), t.filter((n) => !If(n)); } function un(e) { return Array.isArray(e) && e.length === 1 && (e = e[0]), e && e.__v_isVNode && typeof e.type != "symbol"; } function ja(e, t) { let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "default"; var o, r; return (o = t[n]) !== null && o !== void 0 ? o : (r = e[n]) === null || r === void 0 ? void 0 : r.call(e); } const ci = J({ compatConfig: { MODE: 3 }, name: "ResizeObserver", props: { disabled: Boolean, onResize: Function }, emits: ["resize"], setup(e, t) { let { slots: n } = t; const o = ke({ width: 0, height: 0, offsetHeight: 0, offsetWidth: 0 }); let r = null, i = null; const a = () => { i && (i.disconnect(), i = null); }, l = (u) => { const { onResize: d } = e, f = u[0].target, { width: m, height: g } = f.getBoundingClientRect(), { offsetWidth: b, offsetHeight: S } = f, y = Math.floor(m), $ = Math.floor(g); if (o.width !== y || o.height !== $ || o.offsetWidth !== b || o.offsetHeight !== S) { const x = { width: y, height: $, offsetWidth: b, offsetHeight: S }; p(o, x), d && Promise.resolve().then(() => { d(p(p({}, x), { offsetWidth: b, offsetHeight: S }), f); }); } }, s = Kt(), c = () => { const { disabled: u } = e; if (u) { a(); return; } const d = Lt(s); d !== r && (a(), r = d), !i && d && (i = new Pf(l), i.observe(d)); }; return we(() => { c(); }), vo(() => { c(); }), er(() => { a(); }), ae(() => e.disabled, () => { c(); }, { flush: "post" }), () => { var u; return (u = n.default) === null || u === void 0 ? void 0 : u.call(n)[0]; }; } }); let Tf = (e) => setTimeout(e, 16), Ef = (e) => clearTimeout(e); typeof window < "u" && "requestAnimationFrame" in window && (Tf = (e) => window.requestAnimationFrame(e), Ef = (e) => window.cancelAnimationFrame(e)); let hu = 0; const Bl = /* @__PURE__ */ new Map(); function _f(e) { Bl.delete(e); } function ye(e) { let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1; hu += 1; const n = hu; function o(r) { if (r === 0) _f(n), e(); else { const i = Tf(() => { o(r - 1); }); Bl.set(n, i); } } return o(t), n; } ye.cancel = (e) => { const t = Bl.get(e); return _f(t), Ef(t); }; const Wt = function() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; return t; }, Fn = (e) => { const t = e; return t.install = function(n) { n.component(t.displayName || t.name, e); }, e; }; function qr() { return { type: [Function, Array] }; } function be(e) { return { type: Object, default: e }; } function Se(e) { return { type: Boolean, default: e }; } function Fe(e) { return { type: Function, default: e }; } function St(e, t) { const n = { validator: () => !0, default: e }; return n; } function Ho(e) { return { type: Array, default: e }; } function Qe(e) { return { type: String, default: e }; } function it(e, t) { return e ? { type: e, default: t } : St(t); } let Xe = !1; try { const e = Object.defineProperty({}, "passive", { get() { Xe = !0; } }); window.addEventListener("testPassive", null, e), window.removeEventListener("testPassive", null, e); } catch { } function Yn(e, t, n, o) { if (e && e.addEventListener) { let r = o; r === void 0 && Xe && (t === "touchstart" || t === "touchmove" || t === "wheel") && (r = { passive: !1 }), e.addEventListener(t, n, r); } return { remove: () => { e && e.removeEventListener && e.removeEventListener(t, n); } }; } const zl = "anticon", Mf = Symbol("GlobalFormContextKey"), Bh = (e) => { Me(Mf, e); }, zh = () => _e(Mf, { validateMessages: I(() => { }) }), jh = () => ({ iconPrefixCls: String, getTargetContainer: { type: Function }, getPopupContainer: { type: Function }, prefixCls: String, getPrefixCls: { type: Function }, renderEmpty: { type: Function }, transformCellText: { type: Function }, csp: be(), input: be(), autoInsertSpaceInButton: { type: Boolean, default: void 0 }, locale: be(), pageHeader: be(), componentSize: { type: String }, componentDisabled: { type: Boolean, default: void 0 }, direction: { type: String, default: "ltr" }, space: be(), virtual: { type: Boolean, default: void 0 }, dropdownMatchSelectWidth: { type: [Number, Boolean], default: !0 }, form: be(), pagination: be(), theme: be(), select: be(), wave: be() }), jl = Symbol("configProvider"), Af = { getPrefixCls: (e, t) => t || (e ? `ant-${e}` : "ant"), iconPrefixCls: I(() => zl), getPopupContainer: I(() => () => document.body), direction: I(() => "ltr") }, di = () => _e(jl, Af), Hh = (e) => Me(jl, e), Rf = Symbol("DisabledContextKey"), Ut = () => _e(Rf, re(void 0)), Nf = (e) => { const t = Ut(); return Me(Rf, I(() => { var n; return (n = e.value) !== null && n !== void 0 ? n : t.value; })), e; }, Lh = { // Options.jsx items_per_page: "/ page", jump_to: "Go to", jump_to_confirm: "confirm", page: "", // Pagination.jsx prev_page: "Previous Page", next_page: "Next Page", prev_5: "Previous 5 Pages", next_5: "Next 5 Pages", prev_3: "Previous 3 Pages", next_3: "Next 3 Pages" }, Vh = { locale: "en_US", today: "Today", now: "Now", backToToday: "Back to today", ok: "Ok", clear: "Clear", month: "Month", year: "Year", timeSelect: "select time", dateSelect: "select date", weekSelect: "Choose a week", monthSelect: "Choose a month", yearSelect: "Choose a year", decadeSelect: "Choose a decade", yearFormat: "YYYY", dateFormat: "M/D/YYYY", dayFormat: "D", dateTimeFormat: "M/D/YYYY HH:mm:ss", monthBeforeYear: !0, previousMonth: "Previous month (PageUp)", nextMonth: "Next month (PageDown)", previousYear: "Last year (Control + left)", nextYear: "Next year (Control + right)", previousDecade: "Last decade", nextDecade: "Next decade", previousCentury: "Last century", nextCentury: "Next century" }, Ff = { placeholder: "Select time", rangePlaceholder: ["Start time", "End time"] }, bu = { lang: p({ placeholder: "Select date", yearPlaceholder: "Select year", quarterPlaceholder: "Select quarter", monthPlaceholder: "Select month", weekPlaceholder: "Select week", rangePlaceholder: ["Start date", "End date"], rangeYearPlaceholder: ["Start year", "End year"], rangeQuarterPlaceholder: ["Start quarter", "End quarter"], rangeMonthPlaceholder: ["Start month", "End month"], rangeWeekPlaceholder: ["Start week", "End week"] }, Vh), timePickerLocale: p({}, Ff) }, nt = "${label} is not a valid ${type}", cn = { locale: "en", Pagination: Lh, DatePicker: bu, TimePicker: Ff, Calendar: bu, global: { placeholder: "Please select" }, Table: { filterTitle: "Filter menu", filterConfirm: "OK", filterReset: "Reset", filterEmptyText: "No filters", filterCheckall: "Select all items", filterSearchPlaceholder: "Search in filters", emptyText: "No data", selectAll: "Select current page", selectInvert: "Invert current page", selectNone: "Clear all data", selectionAll: "Select all data", sortTitle: "Sort", expand: "Expand row", collapse: "Collapse row", triggerDesc: "Click to sort descending", triggerAsc: "Click to sort ascending", cancelSort: "Click to cancel sorting" }, Tour: { Next: "Next", Previous: "Previous", Finish: "Finish" }, Modal: { okText: "OK", cancelText: "Cancel", justOkText: "OK" }, Popconfirm: { okText: "OK", cancelText: "Cancel" }, Transfer: { titles: ["", ""], searchPlaceholder: "Search here", itemUnit: "item", itemsUnit: "items", remove: "Remove", selectCurrent: "Select current page", removeCurrent: "Remove current page", selectAll: "Select all data", removeAll: "Remove all data", selectInvert: "Invert current page" }, Upload: { uploading: "Uploading...", removeFile: "Remove file", uploadError: "Upload error", previewFile: "Preview file", downloadFile: "Download file" }, Empty: { description: "No data" }, Icon: { icon: "icon" }, Text: { edit: "Edit", copy: "Copy", copied: "Copied", expand: "Expand" }, PageHeader: { back: "Back" }, Form: { optional: "(optional)", defaultValidateMessages: { default: "Field validation error for ${label}", required: "Please enter ${label}", enum: "${label} must be one of [${enum}]", whitespace: "${label} cannot be a blank character", date: { format: "${label} date format is invalid", parse: "${label} cannot be converted to a date", invalid: "${label} is an invalid date" }, types: { string: nt, method: nt, array: nt, object: nt, number: nt, date: nt, boolean: nt, integer: nt, float: nt, regexp: nt, email: nt, url: nt, hex: nt }, string: { len: "${label} must be ${len} characters", min: "${label} must be at least ${min} characters", max: "${label} must be up to ${max} characters", range: "${label} must be between ${min}-${max} characters" }, number: { len: "${label} must be equal to ${len}", min: "${label} must be minimum ${min}", max: "${label} must be maximum ${max}", range: "${label} must be between ${min}-${max}" }, array: { len: "Must be ${len} ${label}", min: "At least ${min} ${label}", max: "At most ${max} ${label}", range: "The amount of ${label} must be between ${min}-${max}" }, pattern: { mismatch: "${label} does not match the pattern ${pattern}" } } }, Image: { preview: "Preview" }, QRCode: { expired: "QR code expired", refresh: "Refresh", scanned: "Scanned" } }, Df = J({ compatConfig: { MODE: 3 }, name: "LocaleReceiver", props: { componentName: String, defaultLocale: { type: [Object, Function] }, children: { type: Function } }, setup(e, t) { let { slots: n } = t; const o = _e("localeData", {}), r = I(() => { const { componentName: a = "global", defaultLocale: l } = e, s = l || cn[a || "global"], { antLocale: c } = o, u = a && c ? c[a] : {}; return p(p({}, typeof s == "function" ? s() : s), u || {}); }), i = I(() => { const { antLocale: a } = o, l = a && a.locale; return a && a.exist && !l ? cn.locale : l; }); return () => { const a = e.children || n.default, { antLocale: l } = o; return a == null ? void 0 : a(r.value, i.value, l); }; } }); function fi(e, t, n) { const o = _e("localeData", {}); return [I(() => { const { antLocale: i } = o, a = ie(t) || cn[e || "global"], l = e && i ? i[e] : {}; return p(p(p({}, typeof a == "function" ? a() : a), l || {}), ie(n) || {}); })]; } function Hl(e) { for (var t = 0, n, o = 0, r = e.length; r >= 4; ++o, r -= 4) n = e.charCodeAt(o) & 255 | (e.charCodeAt(++o) & 255) << 8 | (e.charCodeAt(++o) & 255) << 16 | (e.charCodeAt(++o) & 255) << 24, n = /* Math.imul(k, m): */ (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */ n >>> 24, t = /* Math.imul(k, m): */ (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16); switch (r) { case 3: t ^= (e.charCodeAt(o + 2) & 255) << 16; case 2: t ^= (e.charCodeAt(o + 1) & 255) << 8; case 1: t ^= e.charCodeAt(o) & 255, t = /* Math.imul(h, m): */ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16); } return t ^= t >>> 13, t = /* Math.imul(h, m): */ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36); } const yu = "%"; class Wh { constructor(t) { this.cache = /* @__PURE__ */ new Map(), this.instanceId = t; } get(t) { return this.cache.get(Array.isArray(t) ? t.join(yu) : t) || null; } update(t, n) { const o = Array.isArray(t) ? t.join(yu) : t, r = this.cache.get(o), i = n(r); i === null ? this.cache.delete(o) : this.cache.set(o, i); } } const Bf = "data-token-hash", Tn = "data-css-hash", kh = "data-cache-path", Qn = "__cssinjs_instance__"; function Lo() { const e = Math.random().toString(12).slice(2); if (typeof document < "u" && document.head && document.body) { const t = document.body.querySelectorAll(`style[${Tn}]`) || [], { firstChild: n } = document.head; Array.from(t).forEach((r) => { r[Qn] = r[Qn] || e, r[Qn] === e && document.head.insertBefore(r, n); }); const o = {}; Array.from(document.querySelectorAll(`style[${Tn}]`)).forEach((r) => { var i; const a = r.getAttribute(Tn); o[a] ? r[Qn] === e && ((i = r.parentNode) === null || i === void 0 || i.removeChild(r)) : o[a] = !0; }); } return new Wh(e); } const zf = Symbol("StyleContextKey"), Gh = () => { var e, t, n; const o = Kt(); let r; if (o && o.appContext) { const i = (n = (t = (e = o.appContext) === null || e === void 0 ? void 0 : e.config) === null || t === void 0 ? void 0 : t.globalProperties) === null || n === void 0 ? void 0 : n.__ANTDV_CSSINJS_CACHE__; i ? r = i : (r = Lo(), o.appContext.config.globalProperties && (o.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__ = r)); } else r = Lo(); return r; }, jf = { cache: Lo(), defaultCache: !0, hashPriority: "low" }, pi = () => { const e = Gh(); return _e(zf, U(p(p({}, jf), { cache: e }))); }, qh = (e) => { const t = pi(), n = U(p(p({}, jf), { cache: Lo() })); return ae([() => ie(e), t], () => { const o = p({}, t.value), r = ie(e); Object.keys(r).forEach((a) => { const l = r[a]; r[a] !== void 0 && (o[a] = l); }); const { cache: i } = r; o.cache = o.cache || Lo(), o.defaultCache = !i && t.value.defaultCache, n.value = o; }, { immediate: !0 }), Me(zf, n), n; }, Kh = () => ({ autoClear: Se(), /** @private Test only. Not work in production. */ mock: Qe(), /** * Only set when you need ssr to extract style on you own. * If not provided, it will auto create <style /> on the end of Provider in server side. */ cache: be(), /** Tell children that this context is default generated context */ defaultCache: Se(), /** Use `:where` selector to reduce hashId css selector priority */ hashPriority: Qe(), /** Tell cssinjs where to inject style in */ container: it(), /** Component wil render inline `<style />` for fallback in SSR. Not recommend. */ ssrInline: Se(), /** Transform css before inject in document. Please note that `transformers` do not support dynamic update */ transformers: Ho(), /** * Linters to lint css before inject in document. * Styles will be linted after transforming. * Please note that `linters` do not support dynamic update. */ linters: Ho() }); Fn(J({ name: "AStyleProvider", inheritAttrs: !1, props: Kh(), setup(e, t) { let { slots: n } = t; return qh(e), () => { var o; return (o = n.default) === null || o === void 0 ? void 0 : o.call(n); }; } })); function Xh() { return !1; } let Ha = !1; function Uh() { return Ha; } const Yh = process.env.NODE_ENV === "production" ? Xh : Uh; if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && module.hot && typeof window < "u") { const e = window; if (typeof e.webpackHotUpdate == "function") { const t = e.webpackHotUpdate; e.webpackHotUpdate = function() { return Ha = !0, setTimeout(() => { Ha = !1; }, 0), t(...arguments); }; } } function Hf(e, t, n, o) { const r = pi(), i = U(""), a = U(); Ee(() => { i.value = [e, ...t.value].join("%"); }); const l = Yh(), s = (c) => { r.value.cache.update(c, (u) => { const [d = 0, f] = u || []; return d - 1 === 0 ? (o == null || o(f, !1), null) : [d - 1, f]; }); }; return ae(i, (c, u) => { u && s(u), r.value.cache.update(c, (d) => { const [f = 0, m] = d || []; let g = m; process.env.NODE_ENV !== "production" && m && l && (o == null || o(g, l), g = null); const b = g || n(); return [f + 1, b]; }), a.value = r.value.cache.get(i.value)[1]; }, { immediate: !0 }), Ae(() => { s(i.value); }), a; } function mt() { return !!(typeof window < "u" && window.document && window.document.createElement); } function tn(e, t) { return e && e.contains ? e.contains(t) : !1; } const Su = "data-vc-order", Qh = "vc-util-key", La = /* @__PURE__ */ new Map(); function Lf() { let { mark: e } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; return e ? e.startsWith("data-") ? e : `data-${e}` : Qh; } function mi(e) { return e.attachTo ? e.attachTo : document.querySelector("head") || document.body; } function Zh(e) { return e === "queue" ? "prependQueue" : e ? "prepend" : "append"; } function Vf(e) { return Array.from((La.get(e) || e).children).filter((t) => t.tagName === "STYLE"); } function Wf(e) { let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; if (!mt()) return null; const { csp: n, prepend: o } = t, r = document.createElement("style"); r.setAttribute(Su, Zh(o)), n != null && n.nonce && (r.nonce = n == null ? void 0 : n.nonce), r.innerHTML = e; const i = mi(t), { firstChild: a } = i; if (o) { if (o === "queue") { const l = Vf(i).filter((s) => ["prepend", "prependQueue"].includes(s.getAttribute(Su))); if (l.length) return i.insertBefore(r, l[l.length - 1].nextSibling), r; } i.insertBefore(r, a); } else i.appendChild(r); return r; } function kf(e) { let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; const n = mi(t); return Vf(n).find((o) => o.getAttribute(Lf(t)) === e); } function Kr(e) { let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; const n = kf(e, t); n && mi(t).removeChild(n); } function Jh(e, t) { const n = La.get(e); if (!n || !tn(document, n)) { const o = Wf("", t), { parentNode: r } = o; La.set(e, r), e.removeChild(o); } } function Vo(e, t) { let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; var o, r, i; const a = mi(n); Jh(a, n); const l = kf(t, n); if (l) return !((o = n.csp) === null || o === void 0) && o.nonce && l.nonce !== ((r = n.csp) === null || r === void 0 ? void 0 : r.nonce) && (l.nonce = (i = n.csp) === null || i === void 0 ? void 0 : i.nonce), l.innerHTML !== e && (l.innerHTML = e), l; const s = Wf(e, n); return s.setAttribute(Lf(n), t), s; } function e0(e, t) { if (e.length !== t.length) return !1; for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1; return !0; } class io { constructor() { this.cache = /* @__PURE__ */ new Map(), this.keys = [], this.cacheCallTimes = 0; } size() { return this.keys.length; } internalGet(t) { let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, o = { map: this.cache }; return t.forEach((r) => { var i; o ? o = (i = o == null ? void 0 : o.map) === null || i === void 0 ? void 0 : i.get(r) : o = void 0; }), o != null && o.value && n && (o.value[1] = this.cacheCallTimes++), o == null ? void 0 : o.value; } get(t) { var n; return (n = this.internalGet(t, !0)) === null || n === void 0 ? void 0 : n[0]; } has(t) { return !!this.internalGet(t); } set(t, n) { if (!this.has(t)) { if (this.size() + 1 > io.MAX_CACHE_SIZE + io.MAX_CACHE_OFFSET) { const [r] = this.keys.reduce((i, a) => { const [, l] = i; return this.internalGet(a)[1] < l ? [a, this.internalGet(a)[1]] : i; }, [this.keys[0], this.cacheCallTimes]); this.delete(r); } this.keys.push(t); } let o = this.cache; t.forEach((r, i) => { if (i === t.length - 1) o.set(r, { value: [n, this.cacheCallTimes++] }); else { const a = o.get(r); a ? a.map || (a.map = /* @__PURE__ */ new Map()) : o.set(r, { map: /* @__PURE__ */ new Map() }), o = o.get(r).map; } }); } deleteByPath(t, n) { var o; const r = t.get(n[0]); if (n.length === 1) return r.map ? t.set(n[0], { map: r.map }) : t.delete(n[0]), (o = r.value) === null || o === void 0 ? void 0 : o[0]; const i = this.deleteByPath(r.map, n.slice(1)); return (!r.map || r.map.size === 0) && !r.value && t.delete(n[0]), i; } delete(t) { if (this.has(t)) return this.keys = this.keys.filter((n) => !e0(n, t)), this.deleteByPath(this.cache, t); } } io.MAX_CACHE_SIZE = 20; io.MAX_CACHE_OFFSET = 5; let Va = {}; function ao(e, t) { process.env.NODE_ENV !== "production" && !e && console !== void 0 && console.error(`Warning: ${t}`); } function t0(e, t) { process.env.NODE_ENV !== "production" && !e && console !== void 0 && console.warn(`Note: ${t}`); } function n0() { Va = {}; } function Gf(e, t, n) { !t && !Va[n] && (e(!1, n), Va[n] = !0); } function ft(e, t) { Gf(ao, e, t); } function xu(e, t) { Gf(t0, e, t); } function o0() { } let Ye = o0; process.env.NODE_ENV !== "production" && (Ye = (e, t, n) => { ft(e, `[ant-design-vue: ${t}] ${n}`), process.env.NODE_ENV === "test" && n0(); }); let wu = 0; class qf { constructor(t) { this.derivatives = Array.isArray(t) ? t : [t], this.id = wu, t.length === 0 && Ye(t.length > 0, "[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."), wu += 1; } getDerivativeToken(t) { return this.derivatives.reduce((n, o) => o(t, n), void 0); } } const ea = new io(); function Kf(e) { const t = Array.isArray(e) ? e : [e]; return ea.has(t) || ea.set(t, new qf(t)), ea.get(t); } const Cu = /* @__PURE__ */ new WeakMap(); function Xr(e) { let t = Cu.get(e) || ""; return t || (Object.keys(e).forEach((n) => { const o = e[n]; t += n, o instanceof qf ? t += o.id : o && typeof o == "object" ? t += Xr(o) : t += o; }), Cu.set(e, t)), t; } function r0(e, t) { return Hl(`${t}_${Xr(e)}`); } const Mo = `random-${Date.now()}-${Math.random()}`.replace(/\./g, ""), Xf = "_bAmBoO_"; function i0(e, t, n) { var o, r; if (mt()) { Vo(e, Mo); const i = document.createElement("div"); i.style.position = "fixed", i.style.left = "0", i.style.top = "0", t == null || t(i), document.body.appendChild(i), process.env.NODE_ENV !== "production" && (i.innerHTML = "Test", i.style.zIndex = "9999999"); const a = n ? n(i) : (o = getComputedStyle(i).content) === null || o === void 0 ? void 0 : o.includes(Xf); return (r = i.parentNode) === null || r === void 0 || r.removeChild(i), Kr(Mo), a; } return !1; } let ta; function a0() { return ta === void 0 && (ta = i0(`@layer ${Mo} { .${Mo} { content: "${Xf}"!important; } }`, (e) => { e.className = Mo; })), ta; } const $u = {}, l0 = process.env.NODE_ENV === "production", s0 = process.env.NODE_ENV === "prerender", u0 = !l0 && !s0 ? "css-dev-only-do-not-override" : "css", xn = /* @__PURE__ */ new Map(); function c0(e) { xn.set(e, (xn.get(e) || 0) + 1); } function d0(e, t) { typeof document < "u" && document.querySelectorAll(`style[${Bf}="${e}"]`).forEach((o) => { var r; o[Qn] === t && ((r = o.parentNode) === null || r === void 0 || r.removeChild(o)); }); } const f0 = 0; function p0(e, t) { xn.set(e, (xn.get(e) || 0) - 1); const n = Array.from(xn.keys()), o = n.filter((r) => (xn.get(r) || 0) <= 0); n.length - o.length > f0 && o.forEach((r) => { d0(r, t), xn.delete(r); }); } const m0 = (e, t, n, o) => { const r = n.getDerivativeToken(e); let i = p(p({}, r), t); return o && (i = o(i)), i; }; function g0(e, t) { let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : re({}); const o = pi(), r = I(() => p({}, ...t.value)), i = I(() => Xr(r.value)), a = I(() => Xr(n.value.override || $u)); return Hf("token", I(() => [n.value.salt || "", e.value.id, i.value, a.value]), () => { const { salt: s = "", override: c = $u, formatToken: u, getComputedToken: d } = n.value, f = d ? d(r.value, c, e.value) : m0(r.value, c, e.value, u), m = r0(f, s); f._tokenKey = m, c0(m); const g = `${u0}-${Hl(m)}`; return f._hashId = g, [f, g]; }, (s) => { var c; p0(s[0]._tokenKey, (c = o.value) === null || c === void 0 ? void 0 : c.cache.instanceId); }); } var v0 = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, boxFlex: 1, boxFlexGroup: 1, boxOrdinalGroup: 1, columnCount: 1, columns: 1, flex: 1, flexGrow: 1, flexPositive: 1, flexShrink: 1, flexNegative: 1, flexOrder: 1, gridRow: 1, gridRowEnd: 1, gridRowSpan: 1, gridRowStart: 1, gridColumn: 1, gridColumnEnd: 1, gridColumnSpan: 1, gridColumnStart: 1, msGridRow: 1, msGridRowSpan: 1, msGridColumn: 1, msGridColumnSpan: 1, fontWeight: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, // SVG-related properties fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 }, Uf = "comm", Yf = "rule", Qf = "decl", h0 = "@import", b0 = "@namespace", y0 = "@keyframes", S0 = "@layer", Zf = Math.abs, Ll = String.fromCharCode; function Jf(e) { return e.trim(); } function Mr(e, t, n) { return e.replace(t, n); } function x0(e, t, n) { return e.indexOf(t, n); } function Jn(e, t) { return e.charCodeAt(t) | 0; } function lo(e, t, n) { return e.slice(t, n); } function Tt(e) { return e.length; } function w0(e) { return e.length; } function mr(e, t) { return t.push(e), e; } var gi = 1, so = 1, ep = 0, gt = 0, Be = 0, ho = ""; function Vl(e, t, n, o, r, i, a, l) { return { value: e, root: t, parent: n, type: o, props: r, children: i, line: gi, column: so, length: a, return: "", siblings: l }; } function C0() { return Be; } function $0() { return Be = gt > 0 ? Jn(ho, --gt) : 0, so--, Be === 10 && (so = 1, gi--), Be; } function wt() { return Be = gt < ep ? Jn(ho, gt++) : 0, so++, Be === 10 && (so = 1, gi++), Be; } function nn() { return Jn(ho, gt); } function Ar() { return gt; } function vi(e, t) { return lo(ho, e, t); } function Wo(e) { switch (e) { case 0: case 9: case 10: case 13: case 32: return 5; case 33: case 43: case 44: case 47: case 62: case 64: case 126: case 59: case 123: case 125: return 4; case 58: return 3; case 34: case 39: case 40: case 91: return 2; case 41: case 93: return 1; } return 0; } function O0(e) { return gi =