UNPKG

@yzsf2e/render-core

Version:

1,648 lines 1.71 MB
import { getCurrentInstance as zr, defineComponent as Se, ref as gt, computed as Xt, createVNode as Bt, mergeProps as je, openBlock as yt, createBlock as Lt, resolveDynamicComponent as Wr, resolveComponent as Nt, normalizeStyle as Kr, withCtx as xt, renderSlot as ur, createCommentVNode as xe, effectScope as xu, unref as se, isRef as Qe, toRefs as gr, customRef as Su, onMounted as Ir, nextTick as ir, getCurrentScope as ku, onScopeDispose as Cu, readonly as Eu, watch as ve, shallowRef as Fn, createElementBlock as ee, Fragment as Te, createTextVNode as Re, toDisplayString as de, createElementVNode as ye, reactive as cr, createSlots as vn, normalizeProps as vr, guardReactiveProps as Un, onUnmounted as ti, watchEffect as Gr, renderList as ar, createApp as Tu, inject as Ue, toRaw as Ye, h as er, onRenderTriggered as Au, isVNode as Mu, resolveDirective as ws, withDirectives as mn, withModifiers as La, normalizeClass as $a, vShow as za, provide as Lr } from "vue"; import { DatePicker as Ua, Modal as Hn, Button as ei, Space as En, message as De, InputGroup as Ou, InputNumber as fo, Input as Ru, Select as Ei, Cascader as Iu, RangePicker as ju, Table as Pu, Form as Ds, Col as Nu, Row as Du, Alert as ho, Spin as Fu, Transfer as Bu, Menu as Lu, MenuItem as $u, Dropdown as zu, Pagination as Uu, DropdownButton as Hu } from "ant-design-vue"; import * as Vu from "@ant-design/icons-vue"; import { CloseOutlined as qu, ShrinkOutlined as Wu, ArrowsAltOutlined as Ku, HolderOutlined as Xu, CopyOutlined as Yu, LoadingOutlined as Ha, FilterOutlined as Gu, DownOutlined as Va, UpOutlined as Zu, SettingOutlined as Ju } from "@ant-design/icons-vue"; import { useI18n as qa } from "vue-i18n"; import { useRouter as Qu } from "vue-router"; /*! * @yzsf2e/render-core v1.0.2-alpha.218 Mon Nov 03 2025 13:22:48 GMT+0800 (中国标准时间) * (c) 2023 @yzsf2e. */ const tc = "@yzsf2e/render-core", ec = "1.0.2-alpha.218", rc = "dist/render-core", nc = "dist/render-core", ic = [ "dist" ], sc = { dev: "storybook dev -p 6006", build: "vite build", lint: "vite lint", release: "node scripts/release.js --gitTag", "build-storybook": "storybook build" }, oc = { registry: "https://registry.npmjs.org/", access: "public" }, ac = "yzsf2e", lc = [ "vue3", "antdv", "frontend", "component", "components" ], uc = { "@ant-design/icons-vue": "7.0.1", "@vueuse/components": "^10.5.0", "@vueuse/core": "^10.5.0", "@yzsf2e/use": "workspace:^", "ant-design-vue": "3.2.20", axios: "^1.6.2", "big.js": "^6.2.1", dayjs: "1.11.10", exceljs: "^4.4.0", "file-saver": "^2.0.5", "lodash-es": "^4.17.21", store: "^2.0.12", "v-viewer": "^3.0.13", viewerjs: "^1.11.6", "vue-i18n": "^10.0.1", "vue-request": "^2.0.3", "vue-router": "^4.2.5" }, cc = { "@ant-design/icons-vue": "7.0.1", "ant-design-vue": "3.2.20", axios: "^1.6.2", vue: "3.3.4", "vue-i18n": "^10.0.1", "vue-router": "^4.2.5" }, fc = { "@storybook/addon-essentials": "^7.6.6", "@storybook/addon-interactions": "^7.6.6", "@storybook/addon-links": "^7.6.6", "@storybook/blocks": "^7.6.6", "@storybook/test": "^7.6.6", "@storybook/vue3": "^7.6.6", "@storybook/vue3-vite": "^7.6.6", "@types/file-saver": "^2.0.7", "@types/node": "^18.16.3", "@types/vue-i18n": "^7.0.0", "@vitejs/plugin-vue": "^4.0.0", "@vitejs/plugin-vue-jsx": "^3.0.0", autoprefixer: "^10.4.16", postcss: "^8.4.32", react: "^18.2.0", "react-dom": "^18.2.0", sass: "^1.69.5", storybook: "^7.6.6", typescript: "^5.0.4", vite: "^4.4.2", vue: "3.3.4" }, hc = { name: tc, version: ec, main: rc, module: nc, files: ic, scripts: sc, publishConfig: oc, author: ac, keywords: lc, dependencies: uc, peerDependencies: cc, devDependencies: fc }, Fs = Object.assign, tr = location.href.includes("carrierglobe") ? "https://api.carrierglobe.com" : "https://api.fat.driverglobe.com/api", ri = () => zr().appContext.config.globalProperties.$axios; function po(f) { return Object.entries(f).map(([k, t]) => ({ label: t, value: k })); } const as = () => ({ type: Array, default: () => [] }), dc = (f) => ({ type: Number, default: f }); function Ze(f) { return [`yzs-${f}`]; } const pc = /-(\w)/g, mc = (f) => f.replace(pc, (k, t) => t.toUpperCase()), rr = (f) => { const k = f; return k.install = function(t) { t.component(k.name, k), t.component(mc(`-${k.name}`), k); }, f; }, [gc] = Ze("date-picker"), bc = { allowClear: !0, autofocus: !1, bordered: !0, format: "YYYY-MM-DD", nextIcon: "icon-right", open: !1, placement: "bottomLeft", popupStyle: {}, prevIcon: "icon-left", size: "small", suffixIcon: "icon-calendar", superNextIcon: "icon-double-right", superPrevIcon: "icon-double-left", valueFormat: "YYYY-MM-DD", renderExtraFooter: () => null, showNow: !0, showTime: !1, showToday: !0 }, yc = { dateRender: Function, disabled: Boolean, disabledDate: Function, dropdownClassName: String, getPopupContainer: Function, inputReadOnly: Boolean, locale: Object, mode: String, picker: String, placeholder: String, presets: Array, status: String, defaultPickerValue: Object, disabledTime: Function, format: String, value: Object }, vc = /* @__PURE__ */ Se({ name: gc, props: yc, emits: ["change", "ok", "update:value", "openChange", "panelChange"], setup(f, { emit: k, expose: t }) { const b = gt(null), g = Xt(() => Fs(f, bc)), c = (i) => { k("ok", i); }, s = (i) => { k("change", i), k("update:value", i); }, a = (i) => { k("openChange", i); }, n = (i, o) => { k("openChange", i, o); }; t({ blur: () => { var i; (i = b.value) == null || i.blur(); }, focus: () => { var i; (i = b.value) == null || i.focus(); } }); const l = { ...g.value, ok: c, onChange: s, onOpenChange: a, panelChange: n }; return () => Bt(Ua, je({ ref: b }, l), null); } }), wc = rr(vc), _c = Se({ name: "AIcon", components: Vu, props: { type: { required: !0, type: String } } }), fr = (f, k) => { const t = f.__vccOpts || f; for (const [b, g] of k) t[b] = g; return t; }; function xc(f, k, t, b, g, c) { return yt(), Lt(Wr(f.type)); } const Bs = /* @__PURE__ */ fr(_c, [["render", xc]]), [Sc] = Ze("debounce-button"), kc = { name: Sc }, Cc = /* @__PURE__ */ Se({ ...kc, props: { block: { type: Boolean }, danger: { type: Boolean }, disabled: { type: Boolean }, ghost: { type: Boolean }, href: {}, htmlType: {}, icon: {}, shape: {}, size: { default: "middle" }, target: {}, type: { default: "primary" }, loadingTime: { default: 5e3 }, style: {} }, emits: ["click"], setup(f, { emit: k }) { const t = f, b = gt(!1); let g = null; function c() { b.value || (b.value = !0, k("click", () => { b.value = !1, clearTimeout(g); }), g = setTimeout(() => { b.value = !1; }, t.loadingTime || 0)); } return (s, a) => { const n = Nt("a-button"); return yt(), Lt(n, { block: s.block, danger: s.danger, disabled: s.disabled, ghost: s.ghost, href: s.href, "html-type": s.htmlType, icon: s.icon, shape: s.shape, size: s.size, target: s.target, type: s.type, loading: b.value, style: Kr(s.style), onClick: c }, { default: xt(() => [ s.$slots.default ? ur(s.$slots, "default", { key: 0 }) : xe("", !0) ]), _: 3 }, 8, ["block", "danger", "disabled", "ghost", "href", "html-type", "icon", "shape", "size", "target", "type", "loading", "style"]); }; } }), Ec = rr(Cc); function Wa(f) { return ku() ? (Cu(f), !0) : !1; } function ni(f) { let k = !1, t; const b = xu(!0); return (...g) => (k || (t = b.run(() => f(...g)), k = !0), t); } function or(f) { return typeof f == "function" ? f() : se(f); } const Ka = typeof window < "u" && typeof document < "u"; typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope; const Tc = (f) => typeof f < "u", Ac = Object.prototype.toString, Mc = (f) => Ac.call(f) === "[object Object]", Oc = () => { }; function Rc(f, k) { function t(...b) { return new Promise((g, c) => { Promise.resolve(f(() => k.apply(this, b), { fn: k, thisArg: this, args: b })).then(g).catch(c); }); } return t; } const Xa = (f) => f(); function Ic(f = Xa) { const k = gt(!0); function t() { k.value = !1; } function b() { k.value = !0; } const g = (...c) => { k.value && f(...c); }; return { isActive: Eu(k), pause: t, resume: b, eventFilter: g }; } function jc(f) { return f || zr(); } function Pc(f, k, t = {}) { const { eventFilter: b = Xa, ...g } = t; return ve( f, Rc( b, k ), g ); } function Nc(f, k, t = {}) { const { eventFilter: b, ...g } = t, { eventFilter: c, pause: s, resume: a, isActive: n } = Ic(b); return { stop: Pc( f, k, { ...g, eventFilter: c } ), pause: s, resume: a, isActive: n }; } function Dc(f, k = {}) { if (!Qe(f)) return gr(f); const t = Array.isArray(f.value) ? Array.from({ length: f.value.length }) : {}; for (const b in f.value) t[b] = Su(() => ({ get() { return f.value[b]; }, set(g) { var c; if ((c = or(k.replaceRef)) != null ? c : !0) if (Array.isArray(f.value)) { const a = [...f.value]; a[b] = g, f.value = a; } else { const a = { ...f.value, [b]: g }; Object.setPrototypeOf(a, Object.getPrototypeOf(f.value)), f.value = a; } else f.value[b] = g; } })); return t; } function Fc(f, k = !0, t) { const b = jc(t); b ? Ir(f, b) : k ? f() : ir(f); } function _s(f) { var k; const t = or(f); return (k = t == null ? void 0 : t.$el) != null ? k : t; } const Vn = Ka ? window : void 0; function Bn(...f) { let k, t, b, g; if (typeof f[0] == "string" || Array.isArray(f[0]) ? ([t, b, g] = f, k = Vn) : [k, t, b, g] = f, !k) return Oc; Array.isArray(t) || (t = [t]), Array.isArray(b) || (b = [b]); const c = [], s = () => { c.forEach((r) => r()), c.length = 0; }, a = (r, l, i, o) => (r.addEventListener(l, i, o), () => r.removeEventListener(l, i, o)), n = ve( () => [_s(k), or(g)], ([r, l]) => { if (s(), !r) return; const i = Mc(l) ? { ...l } : l; c.push( ...t.flatMap((o) => b.map((h) => a(r, o, h, i))) ); }, { immediate: !0, flush: "post" } ), e = () => { n(), s(); }; return Wa(e), e; } function Bc() { const f = gt(!1); return zr() && Ir(() => { f.value = !0; }), f; } function Lc(f) { const k = Bc(); return Xt(() => (k.value, !!f())); } function $c(f) { return JSON.parse(JSON.stringify(f)); } const gi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, bi = "__vueuse_ssr_handlers__", zc = /* @__PURE__ */ Uc(); function Uc() { return bi in gi || (gi[bi] = gi[bi] || {}), gi[bi]; } function Hc(f, k) { return zc[f] || k; } function Vc(f) { return f == null ? "any" : f instanceof Set ? "set" : f instanceof Map ? "map" : f instanceof Date ? "date" : typeof f == "boolean" ? "boolean" : typeof f == "string" ? "string" : typeof f == "object" ? "object" : Number.isNaN(f) ? "any" : "number"; } const qc = { boolean: { read: (f) => f === "true", write: (f) => String(f) }, object: { read: (f) => JSON.parse(f), write: (f) => JSON.stringify(f) }, number: { read: (f) => Number.parseFloat(f), write: (f) => String(f) }, any: { read: (f) => f, write: (f) => String(f) }, string: { read: (f) => f, write: (f) => String(f) }, map: { read: (f) => new Map(JSON.parse(f)), write: (f) => JSON.stringify(Array.from(f.entries())) }, set: { read: (f) => new Set(JSON.parse(f)), write: (f) => JSON.stringify(Array.from(f)) }, date: { read: (f) => new Date(f), write: (f) => f.toISOString() } }, mo = "vueuse-storage"; function Ya(f, k, t, b = {}) { var g; const { flush: c = "pre", deep: s = !0, listenToStorageChanges: a = !0, writeDefaults: n = !0, mergeDefaults: e = !1, shallow: r, window: l = Vn, eventFilter: i, onError: o = (N) => { console.error(N); }, initOnMounted: h } = b, d = (r ? Fn : gt)(typeof k == "function" ? k() : k); if (!t) try { t = Hc("getDefaultStorage", () => { var N; return (N = Vn) == null ? void 0 : N.localStorage; })(); } catch (N) { o(N); } if (!t) return d; const u = or(k), p = Vc(u), m = (g = b.serializer) != null ? g : qc[p], { pause: S, resume: C } = Nc( d, () => A(d.value), { flush: c, deep: s, eventFilter: i } ); return l && a && Fc(() => { Bn(l, "storage", R), Bn(l, mo, L), h && R(); }), h || R(), d; function A(N) { try { if (N == null) t.removeItem(f); else { const F = m.write(N), z = t.getItem(f); z !== F && (t.setItem(f, F), l && l.dispatchEvent(new CustomEvent(mo, { detail: { key: f, oldValue: z, newValue: F, storageArea: t } }))); } } catch (F) { o(F); } } function P(N) { const F = N ? N.newValue : t.getItem(f); if (F == null) return n && u != null && t.setItem(f, m.write(u)), u; if (!N && e) { const z = m.read(F); return typeof e == "function" ? e(z, u) : p === "object" && !Array.isArray(z) ? { ...u, ...z } : z; } else return typeof F != "string" ? F : m.read(F); } function L(N) { R(N.detail); } function R(N) { if (!(N && N.storageArea !== t)) { if (N && N.key == null) { d.value = u; return; } if (!(N && N.key !== f)) { S(); try { (N == null ? void 0 : N.newValue) !== m.write(d.value) && (d.value = P(N)); } catch (F) { o(F); } finally { N ? ir(C) : C(); } } } } } function Wc(f, k = {}) { var t, b; const { pointerTypes: g, preventDefault: c, stopPropagation: s, exact: a, onMove: n, onEnd: e, onStart: r, initialValue: l, axis: i = "both", draggingElement: o = Vn, containerElement: h, handle: d = f } = k, u = gt( (t = or(l)) != null ? t : { x: 0, y: 0 } ), p = gt(), m = (L) => g ? g.includes(L.pointerType) : !0, S = (L) => { or(c) && L.preventDefault(), or(s) && L.stopPropagation(); }, C = (L) => { var R; if (!m(L) || or(a) && L.target !== or(f)) return; const N = or(h), F = (R = N == null ? void 0 : N.getBoundingClientRect) == null ? void 0 : R.call(N), z = or(f).getBoundingClientRect(), $ = { x: L.clientX - (N ? z.left - F.left : z.left), y: L.clientY - (N ? z.top - F.top : z.top) }; (r == null ? void 0 : r($, L)) !== !1 && (p.value = $, S(L)); }, A = (L) => { var R; if (!m(L) || !p.value) return; const N = or(h), F = (R = N == null ? void 0 : N.getBoundingClientRect) == null ? void 0 : R.call(N), z = or(f).getBoundingClientRect(); let { x: $, y: E } = u.value; (i === "x" || i === "both") && ($ = L.clientX - p.value.x, N && ($ = Math.min(Math.max(0, $), F.width - z.width))), (i === "y" || i === "both") && (E = L.clientY - p.value.y, N && (E = Math.min(Math.max(0, E), F.height - z.height))), u.value = { x: $, y: E }, n == null || n(u.value, L), S(L); }, P = (L) => { m(L) && p.value && (p.value = void 0, e == null || e(u.value, L), S(L)); }; if (Ka) { const L = { capture: (b = k.capture) != null ? b : !0 }; Bn(d, "pointerdown", C, L), Bn(o, "pointermove", A, L), Bn(o, "pointerup", P, L); } return { ...Dc(u), position: u, isDragging: Xt(() => !!p.value), style: Xt( () => `left:${u.value.x}px;top:${u.value.y}px;` ) }; } function Kc(f, k, t = {}) { const { window: b = Vn, ...g } = t; let c; const s = Lc(() => b && "ResizeObserver" in b), a = () => { c && (c.disconnect(), c = void 0); }, n = Xt(() => Array.isArray(f) ? f.map((l) => _s(l)) : [_s(f)]), e = ve( n, (l) => { if (a(), s.value && b) { c = new ResizeObserver(k); for (const i of l) i && c.observe(i, g); } }, { immediate: !0, flush: "post", deep: !0 } ), r = () => { a(), e(); }; return Wa(r), { isSupported: s, stop: r }; } function _r(f, k, t, b = {}) { var g, c, s; const { clone: a = !1, passive: n = !1, eventName: e, deep: r = !1, defaultValue: l, shouldEmit: i } = b, o = zr(), h = t || (o == null ? void 0 : o.emit) || ((g = o == null ? void 0 : o.$emit) == null ? void 0 : g.bind(o)) || ((s = (c = o == null ? void 0 : o.proxy) == null ? void 0 : c.$emit) == null ? void 0 : s.bind(o == null ? void 0 : o.proxy)); let d = e; k || (k = "modelValue"), d = d || `update:${k.toString()}`; const u = (S) => a ? typeof a == "function" ? a(S) : $c(S) : S, p = () => Tc(f[k]) ? u(f[k]) : l, m = (S) => { i ? i(S) && h(d, S) : h(d, S); }; if (n) { const S = p(), C = gt(S); let A = !1; return ve( () => f[k], (P) => { A || (A = !0, C.value = u(P), ir(() => A = !1)); } ), ve( C, (P) => { !A && (P !== f[k] || r) && m(P); }, { deep: r } ), C; } else return Xt({ get() { return p(); }, set(S) { m(S); } }); } const [Xc] = Ze("drag-drawer"), Yc = Se({ name: Xc, components: { CloseOutlined: qu, ShrinkOutlined: Wu, ArrowsAltOutlined: Ku }, props: { visible: { type: Boolean, default: !1 }, title: { type: String, default: "" }, mask: { type: Boolean, default: !1 }, width: { type: [Number, String], default: 500 }, getContainer: { type: Function, default: () => { if (document.querySelector(".page-renderer-wrapper")) return document.querySelector(".page-renderer-wrapper"); if (document.querySelector(".main__container")) return document.querySelector(".main__container"); } }, hideFooter: { type: Boolean, default: !1 } }, setup(f, { emit: k }) { const t = gt(null), b = _r(f, "visible", k), g = gt(f.width), c = gt(!1), s = () => b.value = !1, a = () => f.getContainer(), n = a(), e = 500, r = () => { g.value = c.value ? f.width : "100%", c.value = !c.value; }; return ve(b, (i) => { i || (c.value = !1, g.value = f.width); }), { show: b, fullScreen: c, dragDrawer: t, actualWidth: g, getContainerFn: a, handleClose: s, toggleFullScreen: r, handleMouseDown: (i) => { const o = i.clientX, h = g.value, d = (n == null ? void 0 : n.clientWidth) || document.body.clientWidth; document.body.classList.add("disable-select-in-dragging"), window.onmousemove = function(u) { const m = u.clientX - o, S = typeof h == "number" ? h - m : window.innerWidth - u.x; g.value = Math.min(S < e ? e : S, d); }, window.onmouseup = () => { window.onmousemove = null, document.body.classList.remove("disable-select-in-dragging"); }; } }; } }); const Gc = { key: 0, style: { position: "absolute", bottom: "0", left: "0", height: "50px", "line-height": "49px", width: "100%", "border-top": "1px solid #eee", "box-sizing": "content-box", "background-color": "#fff", "z-index": "2" } }; function Zc(f, k, t, b, g, c) { const s = Nt("ArrowsAltOutlined"), a = Nt("ShrinkOutlined"), n = Nt("CloseOutlined"), e = Nt("a-space"), r = Nt("a-button"), l = Nt("a-drawer"); return yt(), Lt(l, { ref: "dragDrawer", class: "drag-drawer-warpper", placement: "right", mask: f.mask, width: f.actualWidth, "get-container": f.getContainerFn, closable: !1, "destroy-on-close": !0, push: !0, visible: f.show, "onUpdate:visible": k[1] || (k[1] = (i) => f.show = i) }, { title: xt(() => [ f.title ? (yt(), ee(Te, { key: 0 }, [ Re(de(f.title), 1) ], 64)) : ur(f.$slots, "title", { key: 1 }) ]), extra: xt(() => [ Bt(e, { style: { transform: "translateY(2px)" } }, { default: xt(() => [ f.fullScreen ? (yt(), Lt(a, { key: 1, style: { color: "#000", "font-size": "18px", cursor: "pointer", "margin-right": "10px" }, onClick: f.toggleFullScreen }, null, 8, ["onClick"])) : (yt(), Lt(s, { key: 0, style: { color: "#000", "font-size": "18px", cursor: "pointer", "margin-right": "10px" }, onClick: f.toggleFullScreen }, null, 8, ["onClick"])), Bt(n, { style: { color: "#000", "font-size": "18px", cursor: "pointer", "margin-right": "10px" }, onClick: f.handleClose }, null, 8, ["onClick"]) ]), _: 1 }) ]), default: xt(() => [ ur(f.$slots, "default"), ye("div", { class: "drag-trigger", onMousedown: k[0] || (k[0] = (i) => f.handleMouseDown(i)) }, null, 32), f.hideFooter ? xe("", !0) : (yt(), ee("div", Gc, [ Bt(e, { style: { "padding-left": "20px" } }, { default: xt(() => [ Bt(r, { onClick: f.handleClose }, { default: xt(() => [ Re(de(f.$t("close") || "关闭"), 1) ]), _: 1 }, 8, ["onClick"]), ur(f.$slots, "footBtn") ]), _: 3 }) ])) ]), _: 3 }, 8, ["mask", "width", "get-container", "visible"]); } const Jc = /* @__PURE__ */ fr(Yc, [["render", Zc]]), Qc = rr(Jc), hr = () => { try { return qa(); } catch { return { t: () => { } }; } }, [tf] = Ze("page-renderer-form-modal"), ef = Se({ name: tf, components: { Modal: Hn, Button: ei, Space: En }, props: { form: { type: Object, required: !0 }, rows: { type: Array, default: () => [] }, extraData: { type: Object }, getContainer: { type: Function, default: () => { if (document.querySelector(".page-renderer-wrapper")) return document.querySelector(".page-renderer-wrapper"); if (document.querySelector(".main__container")) return document.querySelector(".main__container"); } } }, emits: ["refresh"], setup(f, { expose: k, emit: t }) { const { t: b } = hr(), { form: g } = gr(f), c = gt(!1), s = gt(!1), a = gt(null), n = cr({ showOk: !0 }), e = async () => { var o, h; s.value = !0; const i = ((o = a.value) == null ? void 0 : o.finish) || (() => Promise.resolve({ success: !0 })); (h = a.value) != null && h.finish || console.warn("form组件没有提供finish方法"), i().then((d) => { const { needFeedback: u = !0, needRefresh: p = !0, successMsg: m = b("operationSuccessful") || "操作成功" } = g.value; s.value = !1, d && d.success && (u && De.success(m), l(), p && t("refresh")); }).catch((d) => { var p; if (s.value = !1, console.log("[PageRendererFormModal handleOk Error]: ", d), typeof d == "string") return De.warn(d); const { errorFields: u } = d; u && u.length && De.warn((p = u[0]) == null ? void 0 : p.errors.join("、")); }); }; ve(c, (i) => { i && ir(() => { const o = document.querySelector(".ant-modal-root"), h = o == null ? void 0 : o.querySelector(".ant-modal-header"), d = o == null ? void 0 : o.querySelector(".ant-modal"); h.style.cursor = "move"; const u = d.currentStyle || window.getComputedStyle(d, null); h.onmousedown = (p) => { const m = p.clientX - h.offsetLeft, S = p.clientY - h.offsetTop; let C, A; u.left.includes("%") ? (C = +document.body.clientWidth * (+u.left.replace(/%/g, "") / 100), A = +document.body.clientHeight * (+u.top.replace(/%/g, "") / 100)) : (C = +u.left.replace(/\px/g, ""), A = +u.top.replace(/\px/g, "")), document.onmousemove = function(P) { const L = P.clientX - m, R = P.clientY - S; d.style.left = `${L + C}px`, d.style.top = `${R + A}px`; }, document.onmouseup = function() { document.onmousemove = null, document.onmouseup = null; }; }; }); }); const r = () => c.value = !0, l = () => { var i, o; (o = (i = a.value) == null ? void 0 : i.reset) == null || o.call(i), c.value = !1; }; return k({ openModal: r, closeModal: l }), { handleOk: e, closeModal: l, visible: c, modalConfig: n, currentForm: a, confirmLoading: s }; } }); const rf = { key: 1 }; function nf(f, k, t, b, g, c) { const s = Nt("Button"), a = Nt("Space"), n = Nt("Modal"); return yt(), Lt(n, je({ "wrap-class-name": "drag-modal-wrapper", visible: f.visible, "onUpdate:visible": k[1] || (k[1] = (e) => f.visible = e) }, f.form.modalProps, { "destroy-on-close": !0, "get-container": f.getContainer, onCancel: f.closeModal }), { title: xt(() => [ ye("span", null, de(f.form.title), 1) ]), footer: xt(() => { var e; return [ ((e = f.form.modalProps) == null ? void 0 : e.hideFooter) !== !0 ? (yt(), Lt(a, { key: 0 }, { default: xt(() => { var r; return [ Bt(s, { onClick: f.closeModal }, { default: xt(() => { var l; return [ Re(de(((l = f.form.modalProps) == null ? void 0 : l.cancelText) || f.$t("cancel") || "取消"), 1) ]; }), _: 1 }, 8, ["onClick"]), ((r = f.form.modalProps) == null ? void 0 : r.hideOkButton) !== !0 && f.modalConfig.showOk ? (yt(), Lt(s, { key: 0, type: "primary", onClick: f.handleOk, loading: f.confirmLoading }, { default: xt(() => { var l; return [ Re(de(((l = f.form.modalProps) == null ? void 0 : l.okText) || f.$t("ok") || "确定"), 1) ]; }), _: 1 }, 8, ["onClick", "loading"])) : xe("", !0) ]; }), _: 1 })) : xe("", !0) ]; }), default: xt(() => [ f.form.component ? (yt(), Lt(Wr(f.form.component), je({ key: 0, rows: f.rows, "extra-data": f.extraData }, f.form.props, { modalConfig: f.modalConfig, "onUpdate:modalConfig": k[0] || (k[0] = (e) => f.modalConfig = e), ref: "currentForm" }), null, 16, ["rows", "extra-data", "modalConfig"])) : (yt(), ee("span", rf, "form配置中没有为【" + de(f.form.title) + "】事件提供组件", 1)) ]), _: 1 }, 16, ["visible", "get-container", "onCancel"]); } const Ga = /* @__PURE__ */ fr(ef, [["render", nf]]), sf = rr(Ga), [of] = Ze("drag-modal-plus"), af = Se({ name: of, components: { Modal: Hn, Button: ei, Space: En }, props: { visible: { type: Boolean, default: !1 }, title: { type: String, default: "标题" }, width: { type: [Number, String], default: 500 }, cancelText: { type: String, default: "" }, modalProps: { type: Object, default: () => ({}) }, getContainer: { type: Function, default: () => { if (document.querySelector(".page-renderer-wrapper")) return document.querySelector(".page-renderer-wrapper"); if (document.querySelector(".main__container")) return document.querySelector(".main__container"); } }, hideFooter: { type: Boolean, default: !1 } }, emits: ["update:visible"], setup(f, { expose: k, emit: t }) { const b = gt(null), g = _r(f, "visible", t); function c() { if (!g.value) return; const n = document.querySelector(".ant-modal-root"), e = n == null ? void 0 : n.querySelector(".ant-modal-header"), r = n == null ? void 0 : n.querySelector(".ant-modal"); e.style.cursor = "move"; const l = r.currentStyle || window.getComputedStyle(r, null); e.onmousedown = (i) => { const o = i.clientX - e.offsetLeft, h = i.clientY - e.offsetTop; let d, u; l.left.includes("%") ? (d = +document.body.clientWidth * (+l.left.replace(/%/g, "") / 100), u = +document.body.clientHeight * (+l.top.replace(/%/g, "") / 100)) : (d = +l.left.replace(/\px/g, ""), u = +l.top.replace(/\px/g, "")), document.onmousemove = function(p) { const m = p.clientX - o, S = p.clientY - h; r.style.left = `${m + d}px`, r.style.top = `${S + u}px`; }, document.onmouseup = function() { document.onmousemove = null, document.onmouseup = null; }; }; } ve(g, (n) => { ir(() => { setTimeout(c, 500); }); }, { immediate: !0, flush: "post" }); const s = () => g.value = !1; return k({ openModal: () => g.value = !0, closeModal: s }), { show: g, closeModal: s, dragModalPlusRef: b }; } }); function lf(f, k, t, b, g, c) { const s = Nt("Button"), a = Nt("Space"), n = Nt("Modal"); return yt(), Lt(n, je({ ref: "dragModalPlusRef", "wrap-class-name": "drag-modal-wrapper" }, f.modalProps, { visible: f.show, "onUpdate:visible": k[0] || (k[0] = (e) => f.show = e), width: f.width, "destroy-on-close": !0, "get-container": f.getContainer, onCancel: f.closeModal }), { title: xt(() => [ ye("span", null, de(f.title), 1) ]), footer: xt(() => [ f.hideFooter ? xe("", !0) : (yt(), Lt(a, { key: 0 }, { default: xt(() => [ Bt(s, { onClick: f.closeModal }, { default: xt(() => [ Re(de(f.cancelText || f.$t("cancel") || "取消"), 1) ]), _: 1 }, 8, ["onClick"]), ur(f.$slots, "footBtn") ]), _: 3 })) ]), default: xt(() => [ ur(f.$slots, "default") ]), _: 3 }, 16, ["visible", "width", "get-container", "onCancel"]); } const uf = /* @__PURE__ */ fr(af, [["render", lf]]), cf = rr(uf), Tn = ni(() => { const f = ri(), k = gt({}), t = gt({}), b = gt({}), g = async (n, e) => { const r = `${n}-${e}`; if (b.value[r]) return b.value[r]; const l = await f({ url: `${tr}/base-biz-data-server/query/data/apiDataSource/${n}/${e}`, method: "get" }); return b.value[r] = l.data, b.value[r]; }; return { getApiDataSource: g, getEnumData: async (n, e, r) => { const l = `${n}-${e}`; if (t.value[l]) return t.value[l]; const i = await g(n, e); i.async && !location.href.includes("carrierglobe") && (De.warn(`当前词条 ${e} 是懒加载数据源,请使用 YzsEnumFuzzySelect 组件!`), console.error(`当前词条 ${e} 是懒加载数据源,请使用 YzsEnumFuzzySelect 组件!`)); let o = {}; try { o = JSON.parse(i.apiParam); } catch { o = {}; } const h = await f({ url: `${tr}${i.apiUrl}`, method: i.apiPost ? "post" : "get", [i.apiPost ? "data" : "params"]: { ...o, ...r } }); return t.value[l] = h, t.value[l]; }, getI18nBizCodeList: async (n, e, r) => (await f({ url: `${tr}/base-biz-data-server/query/i18n/biz/code/list`, method: "post", data: { codeType: n, attributeName: e, dataCodes: r } })).data, getDepartmentAuthData: async () => { if (k.value.auth) return k.value; const [n, e] = await Promise.all([ f({ url: `${tr}/iam-auth-web/auth/user/token/userInfo`, method: "post" }), f({ url: `${tr}/iam-auth-web/auth/user/user/data/org`, method: "get" }) ]); return k.value.auth = e.data, k.value.userInfo = n.data, k.value; } }; }), [ff] = Ze("enum-select"), hf = { name: ff }, df = /* @__PURE__ */ Se({ ...hf, props: { value: {}, code: {}, name: {}, label: {}, codeType: { default: "we" }, required: { type: Boolean }, showLabel: { type: Boolean, default: !0 }, disabled: { type: Boolean }, placeholder: {}, params: {}, formItemProps: {}, selectProps: { default: () => ({ allowClear: !0, showSearch: !0 }) }, transform: {} }, emits: ["update:value", "pressEnter", "change"], setup(f, { emit: k }) { const t = f, { t: b } = hr(), g = _r(t, "value", k); let c = ""; const s = gt([]), { getEnumData: a } = Tn(), n = Xt(() => ({ required: t.required, ...t.formItemProps })), e = Xt(() => ({ allowClear: !0, showSearch: !0, optionFilterProp: "label", ...t.selectProps, disabled: t.disabled, placeholder: t.disabled ? "" : r() })); function r() { return t.placeholder ? t.placeholder : b("pleaseSelect") ? `${b("pleaseSelect")}${t.label || b(t.code)}` : ""; } l(); async function l() { const d = await a(t.codeType, t.code, t.params); s.value = await (t.transform ? Promise.resolve(t.transform(d)) : Promise.resolve(d.data)); } function i(d) { (d.keyCode === 13 || d.key === "Enter") && setTimeout(() => k("pressEnter")); } function o(d) { k("change", d); } function h(d) { c = d; } return (d, u) => { const p = Nt("a-select"), m = Nt("a-form-item"); return d.showLabel !== !1 ? (yt(), Lt(m, je({ key: 0, name: d.name, label: d.label || se(b)(d.code) || d.code }, n.value), { default: xt(() => [ Bt(p, je({ value: se(g), "onUpdate:value": u[0] || (u[0] = (S) => Qe(g) ? g.value = S : null), options: s.value }, e.value, { class: [{ "enum-select-selector-active": Array.isArray(se(g)) ? se(g).length > 0 : se(g) }, "enum-select-selector"], onSearch: h, onChange: o, onKeydown: i }), vn({ _: 2 }, [ d.$slots.option ? { name: "option", fn: xt((S) => [ ur(d.$slots, "option", vr(Un({ ...S, searchValue: se(c) }))) ]), key: "0" } : void 0 ]), 1040, ["value", "options", "class"]) ]), _: 3 }, 16, ["name", "label"])) : (yt(), Lt(p, je({ key: 1, value: se(g), "onUpdate:value": u[1] || (u[1] = (S) => Qe(g) ? g.value = S : null), options: s.value }, e.value, { class: [{ "enum-select-selector-active": Array.isArray(se(g)) ? se(g).length > 0 : se(g) }, "enum-select-selector"], onSearch: h, onChange: o, onKeydown: i }), vn({ _: 2 }, [ d.$slots.option ? { name: "option", fn: xt((S) => [ ur(d.$slots, "option", vr(Un({ ...S, searchValue: se(c) }))) ]), key: "0" } : void 0 ]), 1040, ["value", "options", "class"])); }; } }); const Za = rr(df), pf = ["title"], mf = ["innerHTML"], gf = { key: 0, class: "yzs-select-staff-option-extinfo" }, bf = { key: 1, class: "yzs-select-staff-option-resigned" }, [yf] = Ze("select-staff-option"), vf = { name: yf }, Ja = /* @__PURE__ */ Se({ ...vf, props: { label: { default: "" }, value: {}, searchValue: { default: "" }, ext: { default: { resign: 0, mainDeptNames: "" // '北方营销中心/智能科技部', } } }, setup(f) { const k = (t, b) => { if (!b) return t; const g = new RegExp(`(${b})`, "gi"); return t.replace( g, '<span style="color:#448ef7;">$1</span>' ); }; return (t, b) => (yt(), ee("div", { class: "yzs-select-staff-option", title: `${t.label} ${t.ext.mainDeptNames ? "/" + t.ext.mainDeptNames : ""} ${t.ext.resign == 1 ? "[已离职]" : ""}` }, [ ye("span", { innerHTML: k(t.label, t.searchValue) }, null, 8, mf), Re("   "), t.ext.mainDeptNames ? (yt(), ee("span", gf, "/" + de(t.ext.mainDeptNames) + "  ", 1)) : xe("", !0), t.ext.resign == 1 ? (yt(), ee("span", bf, "已离职")) : xe("", !0) ], 8, pf)); } }); const [wf] = Ze("enum-custom-select"), _f = { name: wf }, xf = /* @__PURE__ */ Se({ ..._f, props: { value: {}, code: {}, name: {}, label: {}, codeType: { default: "we" }, required: { type: Boolean }, showLabel: { type: Boolean, default: !0 }, disabled: { type: Boolean }, placeholder: {}, params: {}, formItemProps: {}, selectProps: {}, transform: {}, auth: {} }, emits: ["update:value", "pressEnter", "change"], setup(f, { emit: k }) { const t = f, b = _r(t, "value", k), g = gt(!1), c = gt({ access: "", departments: [] }); let s = (l) => (l == null ? void 0 : l.data) || []; const { getDepartmentAuthData: a } = Tn(); n(t.auth); function n(l) { l === "DEPARTMENT" && (g.value = !0, a().then((i) => { c.value = i.auth, s = (o) => { if (i.auth.access === "SELF") return [{ label: i.userInfo.nick, value: i.userInfo.huid, ext: { mainDeptNames: "", resign: "0" } }]; if (i.auth.access === "DEPT") { const h = (o == null ? void 0 : o.data) || [], d = (i.auth.departments || []).map((u) => u.departmentId); return h.filter((u) => d.some((p) => { var m; return (((m = u == null ? void 0 : u.ext) == null ? void 0 : m.mainDeptIds) || "").includes(p); })); } else if (i.auth.access === "ALL") return (o == null ? void 0 : o.data) || []; return (o == null ? void 0 : o.data) || []; }; }).finally(() => { g.value = !1; })); } const e = () => k("pressEnter"), r = (l) => k("change", l); return (l, i) => { const o = Nt("YzsEnumFuzzyCustomSelect"), h = Nt("YzsEnumSelect"); return g.value ? xe("", !0) : (yt(), ee(Te, { key: 0 }, [ c.value.access === "ALL" ? (yt(), Lt(o, je({ key: 0 }, t, { value: se(b), "onUpdate:value": i[0] || (i[0] = (d) => Qe(b) ? b.value = d : null), "show-warn": !1, onPressEnter: e, onChange: r }), null, 16, ["value"])) : (yt(), Lt(h, je({ key: 1 }, t, { value: se(b), "onUpdate:value": i[1] || (i[1] = (d) => Qe(b) ? b.value = d : null), transform: se(s), onPressEnter: e, onChange: r }), { option: xt(({ value: d, label: u, ext: p, searchValue: m }) => [ Bt(Ja, { value: d, label: u, ext: p, searchValue: m }, null, 8, ["value", "label", "ext", "searchValue"]) ]), _: 1 }, 16, ["value", "transform"])) ], 64)); }; } }), Qa = rr(xf); var Sf = typeof global == "object" && global && global.Object === Object && global; const tl = Sf; var kf = typeof self == "object" && self && self.Object === Object && self, Cf = tl || kf || Function("return this")(); const xr = Cf; var Ef = xr.Symbol; const Er = Ef; var el = Object.prototype, Tf = el.hasOwnProperty, Af = el.toString, Pn = Er ? Er.toStringTag : void 0; function Mf(f) { var k = Tf.call(f, Pn), t = f[Pn]; try { f[Pn] = void 0; var b = !0; } catch { } var g = Af.call(f); return b && (k ? f[Pn] = t : delete f[Pn]), g; } var Of = Object.prototype, Rf = Of.toString; function If(f) { return Rf.call(f); } var jf = "[object Null]", Pf = "[object Undefined]", go = Er ? Er.toStringTag : void 0; function Qr(f) { return f == null ? f === void 0 ? Pf : jf : go && go in Object(f) ? Mf(f) : If(f); } function Or(f) { return f != null && typeof f == "object"; } var Nf = "[object Symbol]"; function wn(f) { return typeof f == "symbol" || Or(f) && Qr(f) == Nf; } function Xr(f, k) { for (var t = -1, b = f == null ? 0 : f.length, g = Array(b); ++t < b; ) g[t] = k(f[t], t, f); return g; } var Df = Array.isArray; const Ge = Df; var Ff = 1 / 0, bo = Er ? Er.prototype : void 0, yo = bo ? bo.toString : void 0; function rl(f) { if (typeof f == "string") return f; if (Ge(f)) return Xr(f, rl) + ""; if (wn(f)) return yo ? yo.call(f) : ""; var k = f + ""; return k == "0" && 1 / f == -Ff ? "-0" : k; } var Bf = /\s/; function Lf(f) { for (var k = f.length; k-- && Bf.test(f.charAt(k)); ) ; return k; } var $f = /^\s+/; function zf(f) { return f && f.slice(0, Lf(f) + 1).replace($f, ""); } function mr(f) { var k = typeof f; return f != null && (k == "object" || k == "function"); } var vo = 0 / 0, Uf = /^[-+]0x[0-9a-f]+$/i, Hf = /^0b[01]+$/i, Vf = /^0o[0-7]+$/i, qf = parseInt; function xs(f) { if (typeof f == "number") return f; if (wn(f)) return vo; if (mr(f)) { var k = typeof f.valueOf == "function" ? f.valueOf() : f; f = mr(k) ? k + "" : k; } if (typeof f != "string") return f === 0 ? f : +f; f = zf(f); var t = Hf.test(f); return t || Vf.test(f) ? qf(f.slice(2), t ? 2 : 8) : Uf.test(f) ? vo : +f; } var wo = 1 / 0, Wf = 17976931348623157e292; function Kf(f) { if (!f) return f === 0 ? f : 0; if (f = xs(f), f === wo || f === -wo) { var k = f < 0 ? -1 : 1; return k * Wf; } return f === f ? f : 0; } function Xf(f) { var k = Kf(f), t = k % 1; return k === k ? t ? k - t : k : 0; } function nl(f) { return f; } var Yf = "[object AsyncFunction]", Gf = "[object Function]", Zf = "[object GeneratorFunction]", Jf = "[object Proxy]"; function il(f) { if (!mr(f)) return !1; var k = Qr(f); return k == Gf || k == Zf || k == Yf || k == Jf; } var Qf = xr["__core-js_shared__"]; const ls = Qf; var _o = function() { var f = /[^.]+$/.exec(ls && ls.keys && ls.keys.IE_PROTO || ""); return f ? "Symbol(src)_1." + f : ""; }(); function th(f) { return !!_o && _o in f; } var eh = Function.prototype, rh = eh.toString; function tn(f) { if (f != null) { try { return rh.call(f); } catch { } try { return f + ""; } catch { } } return ""; } var nh = /[\\^$.*+?()[\]{}|]/g, ih = /^\[object .+?Constructor\]$/, sh = Function.prototype, oh = Object.prototype, ah = sh.toString, lh = oh.hasOwnProperty, uh = RegExp( "^" + ah.call(lh).replace(nh, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); function ch(f) { if (!mr(f) || th(f)) return !1; var k = il(f) ? uh : ih; return k.test(tn(f)); } function fh(f, k) { return f == null ? void 0 : f[k]; } function en(f, k) { var t = fh(f, k); return ch(t) ? t : void 0; } var hh = en(xr, "WeakMap"); const Ss = hh; var xo = Object.create, dh = function() { function f() { } return function(k) { if (!mr(k)) return {}; if (xo) return xo(k); f.prototype = k; var t = new f(); return f.prototype = void 0, t; }; }(); const ph = dh; function mh() { } function gh(f, k) { var t = -1, b = f.length; for (k || (k = Array(b)); ++t < b; ) k[t] = f[t]; return k; } var bh = function() { try { var f = en(Object, "defineProperty"); return f({}, "", {}), f; } catch { } }(); const So = bh; function yh(f, k) { for (var t = -1, b = f == null ? 0 : f.length; ++t < b && k(f[t], t, f) !== !1; ) ; return f; } function vh(f, k, t, b) { for (var g = f.length, c = t + (b ? 1 : -1); b ? c-- : ++c < g; ) if (k(f[c], c, f)) return c; return -1; } function wh(f) { return f !== f; } function _h(f, k, t) { for (var b = t - 1, g = f.length; ++b < g; ) if (f[b] === k) return b; return -1; } function sl(f, k, t) { return k === k ? _h(f, k, t) : vh(f, wh, t); } function xh(f, k) { var t = f == null ? 0 : f.length; return !!t && sl(f, k, 0) > -1; } var Sh = 9007199254740991, kh = /^(?:0|[1-9]\d*)$/; function Hi(f, k) { var t = typeof f; return k = k ?? Sh, !!k && (t == "number" || t != "symbol" && kh.test(f)) && f > -1 && f % 1 == 0 && f < k; } function Ls(f, k, t) { k == "__proto__" && So ? So(f, k, { configurable: !0, enumerable: !0, value: t, writable: !0 }) : f[k] = t; } function Vi(f, k) { return f === k || f !== f && k !== k; } var Ch = Object.prototype, Eh = Ch.hasOwnProperty; function $s(f, k, t) { var b = f[k]; (!(Eh.call(f, k) && Vi(b, t)) || t === void 0 && !(k in f)) && Ls(f, k, t); } function qi(f, k, t, b) { var g = !t; t || (t = {}); for (var c = -1, s = k.length; ++c < s; ) { var a = k[c], n = b ? b(t[a], f[a], a, t, f) : void 0; n === void 0 && (n = f[a]), g ? Ls(t, a, n) : $s(t, a, n); } return t; } var Th = 9007199254740991; function zs(f) { return typeof f == "number" && f > -1 && f % 1 == 0 && f <= Th; } function An(f) { return f != null && zs(f.length) && !il(f); } function Ah(f, k, t) { if (!mr(t)) return !1; var b = typeof k; return (b == "number" ? An(t) && Hi(k, t.length) : b == "string" && k in t) ? Vi(t[k], f) : !1; } var Mh = Object.prototype; function Us(f) { var k = f && f.constructor, t = typeof k == "function" && k.prototype || Mh; return f === t; } function Oh(f, k) { for (var t = -1, b = Array(f); ++t < f; ) b[t] = k(t); return b; } var Rh = "[object Arguments]"; function ko(f) { return Or(f) && Qr(f) == Rh; } var ol = Object.prototype, Ih = ol.hasOwnProperty, jh = ol.propertyIsEnumerable, Ph = ko(function() { return arguments; }()) ? ko : function(f) { return Or(f) && Ih.call(f, "callee") && !jh.call(f, "callee"); }; const al = Ph; function Nh() { return !1; } var ll = typeof exports == "object" && exports && !exports.nodeType && exports, Co = ll && typeof module == "object" && module && !module.nodeType && module, Dh = Co && Co.exports === ll, Eo = Dh ? xr.Buffer : void 0, Fh = Eo ? Eo.isBuffer : void 0, Bh = Fh || Nh; const Pi = Bh; var Lh = "[object Arguments]", $h = "[object Array]", zh = "[object Boolean]", Uh = "[object Date]", Hh = "[object Error]", Vh = "[object Function]", qh = "[object Map]", Wh = "[object Number]", Kh = "[object Object]", Xh = "[object RegExp]", Yh = "[object Set]", Gh = "[object String]", Zh = "[object WeakMap]", Jh = "[object ArrayBuffer]", Qh = "[object DataView]", td = "[object Float32Array]", ed = "[object Float64Array]", rd = "[object Int8Array]", nd = "[object Int16Array]", id = "[object Int32Array]", sd = "[object Uint8Array]", od = "[object Uint8ClampedArray]", ad = "[object Uint16Array]", ld = "[object Uint32Array]", Be = {}; Be[td] = Be[ed] = Be[rd] = Be[nd] = Be[id] = Be[sd] = Be[od] = Be[ad] = Be[ld] = !0; Be[Lh] = Be[$h] = Be[Jh] = Be[zh] = Be[Qh] = Be[Uh] = Be[Hh] = Be[Vh] = Be[qh] = Be[Wh] = Be[Kh] = Be[Xh] = Be[Yh] = Be[Gh] = Be[Zh] = !1; function ud(f) { return Or(f) && zs(f.length) && !!Be[Qr(f)]; } function Wi(f) { return function(k) { return f(k); }; } var ul = typeof exports == "object" && exports && !exports.nodeType && exports, Ln = ul && typeof module == "object" && module && !module.nodeType && module, cd = Ln && Ln.exports === ul, us = cd && tl.process, fd = function() { try { var f = Ln && Ln.require && Ln.require("util").types; return f || us && us.binding && us.binding("util"); } catch { } }(); const _n = fd; var To = _n && _n.isTypedArray, hd = To ? Wi(To) : ud; const cl = hd; var dd = Object.prototype, pd = dd.hasOwnProperty; function fl(f, k) { var t = Ge(f), b = !t && al(f), g = !t && !b && Pi(f), c = !t && !b && !g && cl(f), s = t || b || g || c, a = s ? Oh(f.length, String) : [], n = a.length; for (var e in f) (k || pd.call(f, e)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode. (e == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. g && (e == "offset" || e == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. c && (e == "buffer" || e == "byteLength" || e == "byteOffset") || // Skip index properties. Hi(e, n))) && a.push(e); return a; } function hl(f, k) { return function(t) { return f(k(t)); }; } var md = hl(Object.keys, Object); const gd = md; var bd = Object.prototype, yd = bd.hasOwnProperty; function vd(f) { if (!Us(f)) return gd(f); var k = []; for (var t in Object(f)) yd.call(f, t) && t != "constructor" && k.push(t); return k; } function Mn(f) { return An(f) ? fl(f) : vd(f); } function wd(f) { var k = []; if (f != null) for (var t in Object(f)) k.push(t); return k; } var _d = Object.prototype, xd = _d.hasOwnProperty; function Sd(f) { if (!mr(f)) return wd(f); var k = Us(f), t = []; for (var b in f) b == "constructor" && (k || !xd.call(f, b)) || t.push(b); return t; } function Hs(f) { return An(f) ? fl(f, !0) : Sd(f); } var kd = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Cd = /^\w*$/; function Vs(f, k) { if (Ge(f)) return !1; var t = typeof f; return t == "number" || t == "symbol" || t == "boolean" || f == null || wn(f) ? !0 : Cd.test(f) || !kd.test(f) || k != null && f in Object(k); } var Ed = en(Object, "create"); const qn = Ed; function Td() { this.__data__ = qn ? qn(null) : {}, this.size = 0; } function Ad(f) { var k = this.has(f) && delete this.__data__[f]; return this.size -= k ? 1 : 0, k; } var Md = "__lodash_hash_undefined__", Od = Object.prototype, Rd = Od.hasOwnProperty; function Id(f) { var k = this.__data__; if (qn) { var t = k[f]; return t