hs-admin-ui 16.5.1 → 16.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-ChpPesV-.js → bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-CM0zGaQx.js} +40 -36
- package/dist/{bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DWaJnabv.cjs → bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DT0_XkNN.cjs} +1 -1
- package/dist/{components-B_qE00Yu.cjs → components-C8Gcxg9s.cjs} +1 -1
- package/dist/{components-CmD6XRNU.js → components-Dd3wannf.js} +1 -1
- package/dist/element-plus-ui.js +1 -1
- package/dist/element-plus-ui.mjs +5 -5
- package/dist/h5.js +1 -1
- package/dist/h5.mjs +2 -2
- package/dist/{index-DXETorvd.cjs → index-A1hYnCGa.cjs} +1 -1
- package/dist/{index-CZsg5dYm.js → index-BO_BrOv5.js} +1 -1
- package/dist/{index-CHT4lBkp.cjs → index-CSqPQf9f.cjs} +1 -1
- package/dist/{index-BXVOZU9L.js → index-CqE9hGX5.js} +2 -2
- package/dist/{index-D6Fdkh8w.cjs → index-KF9EcOo8.cjs} +1 -1
- package/dist/{index-9auarALr.js → index-YDqo4GPX.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +10 -10
- package/dist/vxe-table-ui.js +1 -1
- package/dist/vxe-table-ui.mjs +4 -4
- package/package.json +1 -1
- package/readme.md +2 -0
|
@@ -57049,82 +57049,86 @@ function rnt(e = "code", t = !0) {
|
|
|
57049
57049
|
}
|
|
57050
57050
|
let qM, Ate;
|
|
57051
57051
|
function fXe(e, t, n) {
|
|
57052
|
-
var
|
|
57052
|
+
var E;
|
|
57053
57053
|
const i = Sl.value;
|
|
57054
57054
|
Sl.value = "";
|
|
57055
57055
|
let a, s = () => {
|
|
57056
57056
|
};
|
|
57057
57057
|
const c = {
|
|
57058
57058
|
...n.slots,
|
|
57059
|
-
title: ((
|
|
57059
|
+
title: ((E = n.slots) == null ? void 0 : E.title) || (() => n.title),
|
|
57060
57060
|
default: () => w(
|
|
57061
57061
|
YKe,
|
|
57062
57062
|
{
|
|
57063
|
-
onSuccess:
|
|
57063
|
+
onSuccess: _,
|
|
57064
57064
|
showFooter: n.showFooter,
|
|
57065
57065
|
closeLoading: n.closeLoading,
|
|
57066
57066
|
confirmButtonText: n.confirmButtonText,
|
|
57067
57067
|
cancelButtonText: n.cancelButtonText
|
|
57068
57068
|
},
|
|
57069
57069
|
{
|
|
57070
|
-
default: () => w(e, { ...t, onVnodeMounted:
|
|
57070
|
+
default: () => w(e, { ...t, onVnodeMounted: v, onReady: y, close: m })
|
|
57071
57071
|
}
|
|
57072
57072
|
)
|
|
57073
|
-
}
|
|
57073
|
+
};
|
|
57074
|
+
let u = w(
|
|
57074
57075
|
v3,
|
|
57075
57076
|
Object.assign({}, Ate, {
|
|
57076
57077
|
...Qt.omit(n, ["success"]),
|
|
57077
57078
|
className: "custom-popup ".concat((n == null ? void 0 : n.className) || ""),
|
|
57078
57079
|
modelValue: !0,
|
|
57079
|
-
onHide(
|
|
57080
|
-
a(), typeof (n == null ? void 0 : n.onHide) == "function" && n.onHide(
|
|
57080
|
+
onHide(C) {
|
|
57081
|
+
a(), typeof (n == null ? void 0 : n.onHide) == "function" && n.onHide(C);
|
|
57081
57082
|
},
|
|
57082
57083
|
slots: c
|
|
57083
57084
|
})
|
|
57084
57085
|
);
|
|
57085
57086
|
qM && (u.appContext = qM);
|
|
57086
|
-
|
|
57087
|
+
let h = wt(
|
|
57088
|
+
() => {
|
|
57089
|
+
var C;
|
|
57090
|
+
return (C = bte.value) == null ? void 0 : C.value.path;
|
|
57091
|
+
},
|
|
57092
|
+
() => {
|
|
57093
|
+
a();
|
|
57094
|
+
}
|
|
57095
|
+
);
|
|
57096
|
+
function f() {
|
|
57087
57097
|
SS.value++;
|
|
57088
|
-
const
|
|
57089
|
-
|
|
57098
|
+
const C = document.createDocumentFragment();
|
|
57099
|
+
Nh(u, C), document.body.appendChild(C);
|
|
57100
|
+
const T = setTimeout(() => {
|
|
57090
57101
|
if (!Qt.isEmpty(n == null ? void 0 : n.position)) {
|
|
57091
|
-
const
|
|
57092
|
-
if (/%/.test(
|
|
57093
|
-
/%/.test(
|
|
57102
|
+
const I = n.position;
|
|
57103
|
+
if (/%/.test(I == null ? void 0 : I.top) || /%/.test(I == null ? void 0 : I.left)) {
|
|
57104
|
+
/%/.test(I == null ? void 0 : I.top) && (u.el.nextSibling.querySelector(".vxe-modal--box").style.top = `${I.top}`), /%/.test(I == null ? void 0 : I.left) && (u.el.nextSibling.querySelector(".vxe-modal--box").style.top = `${I.left}`);
|
|
57094
57105
|
return;
|
|
57095
57106
|
}
|
|
57096
|
-
(
|
|
57107
|
+
(I == null ? void 0 : I.top) > -1 && (u.el.nextSibling.querySelector(".vxe-modal--box").style.top = `${I.top}px`), (I == null ? void 0 : I.left) > -1 && (u.el.nextSibling.querySelector(".vxe-modal--box").style.left = `${I.left}px`);
|
|
57097
57108
|
}
|
|
57098
|
-
}, 100)
|
|
57099
|
-
|
|
57109
|
+
}, 100);
|
|
57110
|
+
return () => {
|
|
57111
|
+
SS.value--, Sl.value = i, Nh(null, C), clearTimeout(T), u = null, h && h();
|
|
57100
57112
|
};
|
|
57101
57113
|
}
|
|
57102
|
-
a =
|
|
57103
|
-
|
|
57104
|
-
|
|
57105
|
-
return (E = bte.value) == null ? void 0 : E.value.path;
|
|
57106
|
-
},
|
|
57107
|
-
() => {
|
|
57108
|
-
a();
|
|
57109
|
-
}
|
|
57110
|
-
);
|
|
57111
|
-
async function f(E) {
|
|
57112
|
-
a(), typeof n.success == "function" && n.success({ type: E, data: E });
|
|
57114
|
+
a = f();
|
|
57115
|
+
async function m(C) {
|
|
57116
|
+
a(), typeof n.success == "function" && n.success({ type: C, data: C });
|
|
57113
57117
|
}
|
|
57114
|
-
function
|
|
57115
|
-
var
|
|
57116
|
-
s = (
|
|
57118
|
+
function v(C) {
|
|
57119
|
+
var T;
|
|
57120
|
+
s = (T = C.component.exposed) == null ? void 0 : T.getData;
|
|
57117
57121
|
}
|
|
57118
|
-
async function
|
|
57119
|
-
const
|
|
57122
|
+
async function _(C) {
|
|
57123
|
+
const T = await s();
|
|
57120
57124
|
typeof n.success == "function" && n.success({
|
|
57121
|
-
type:
|
|
57122
|
-
data:
|
|
57125
|
+
type: C,
|
|
57126
|
+
data: T,
|
|
57123
57127
|
close: a
|
|
57124
57128
|
});
|
|
57125
57129
|
}
|
|
57126
|
-
function
|
|
57127
|
-
typeof n.onReady == "function" && n.onReady(
|
|
57130
|
+
function y(C) {
|
|
57131
|
+
typeof n.onReady == "function" && n.onReady(C);
|
|
57128
57132
|
}
|
|
57129
57133
|
return a;
|
|
57130
57134
|
}
|
|
@@ -109,7 +109,7 @@ Pn.version="2.30.1";uBe(Wi);Pn.fn=bn;Pn.min=ZFe;Pn.max=QFe;Pn.now=e$e;Pn.utc=eu;
|
|
|
109
109
|
${a[p]}
|
|
110
110
|
${p}`}).replaceAll(",",";").replaceAll('"',"").replaceAll("\\","");n+=`
|
|
111
111
|
export interface ${o.baseData.tableName} ${d}
|
|
112
|
-
`}),console.debug(n)}function cXe(e){return{all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map(function(a){a(n)}),(o=e.get("*"))&&o.slice().map(function(a){a(t,n)})}}}const h8=cXe();function uXe(){const e=i.getCurrentScope(),t=new Map;let n={};function o(p,h){t.set(p,h),h8.on(p,h),n[p]&&(n[p].forEach(v=>h(v)),delete n[p])}function a(p,h){const v=(..._)=>{u(p,v),h(..._)};o(p,v)}function l(p,h){n[p]||(n[p]=[]),n[p].push(h),h8.emit(p,h)}function u(p,h){t.delete(p),h8.off(p,h)}function d(){for(const[p,h]of t.entries())u(p,h);n={}}return e&&i.onScopeDispose(d),{on:o,once:a,emit:l,off:u,clear:d}}function Q7(e){let t=e.replace(/(^\s*)|(\s*$)/g,"");return t=t.replace(/[^\d.]/g,""),t=t.replace(/^0{2}$/g,"0"),t=t.replace(/^\./g,""),t=t.replace(".","$#$").replace(/\./g,"").replace("$#$","."),t=t.replace(/^(\-)*(\d+)\.(\d\d).*$/,"$1$2.$3"),t}function dXe(e){let t=e.replace(/(^\s*)|(\s*$)/g,"");return t=t.replace(/[^\d]/g,""),t=t.replace(/^0/g,""),t=t.replace(/^[1-9]\d\d{1,3}$/,"100"),t}function fXe(e){let t=Q7(e);return t=t.replace(/^[1-9]\d\d{1,3}$/,"100"),t=t.replace(/^100\.$/,"100"),t}function hXe(e){let t=e.replace(/(^\s*)|(\s*$)/g,"");return t=t.replace(/[\.]*/g,""),t=t.replace(/(^0[\d]*)$/g,"0"),t=t.replace(/^0\d$/g,"0"),t=t.replace(/[^\d]/g,""),t}function pXe(e){let t=e.replace(/[\u4e00-\u9fa5\s]+/g,"");return t=t.replace(/(^\s*)|(\s*$)/g,""),t}function mXe(e){let t=e.replace(/[a-zA-Z]+/g,"");return t=t.replace(/(^\s*)|(\s*$)/g,""),t}function vXe(e){return e.replace(/(^\s*)|(\s*$)/g,"")}function gXe(e){let t=Q7(e);return t=t.toString().split("."),t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t=t.join("."),t}function _Xe(e,t="",n="red"){return t.replace(new RegExp(e,"gi"),`<span style='color: ${n}'>${e}</span>`)}function yXe(e,t="仟佰拾亿仟佰拾万仟佰拾元角分",n=""){e+="00";let o=e.indexOf(".");o>=0&&(e=e.substring(0,o)+e.substr(o+1,2)),t=t.substr(t.length-e.length);for(let a=0;a<e.length;a++)n+="零壹贰叁肆伍陆柒捌玖".substr(e.substr(a,1),1)+t.substr(a,1);return n=n.replace(/零角零分$/,"整").replace(/零[仟佰拾]/g,"零").replace(/零{2,}/g,"零").replace(/零([亿|万])/g,"$1").replace(/零+元/,"元").replace(/亿零{0,3}万/,"亿").replace(/^元/,"零元"),n}function bXe(e){return!!/^1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}$/.test(e)}function xXe(e){return!!/\d{3}-\d{8}|\d{4}-\d{7}/.test(e)}function EXe(e){return!!/^[a-zA-Z][a-zA-Z0-9_]{4,15}$/.test(e)}function wXe(e){return!!/^[a-zA-Z]\w{5,15}$/.test(e)}function SXe(e){return!!/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&\.*]+$)(?![a-zA-z\d]+$)(?![a-zA-z!@#$%^&\.*]+$)(?![\d!@#$%^&\.*]+$)[a-zA-Z\d!@#$%^&\.*]{6,16}$/.test(e)}function CXe(e){let t="";return/^(?:\d+|[a-zA-Z]+|[!@#$%^&\.*]+){6,16}$/.test(e)&&(t="弱"),/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&\.*]+$)[a-zA-Z\d!@#$%^&\.*]{6,16}$/.test(e)&&(t="中"),/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&\.*]+$)(?![a-zA-z\d]+$)(?![a-zA-z!@#$%^&\.*]+$)(?![\d!@#$%^&\.*]+$)[a-zA-Z\d!@#$%^&\.*]{6,16}$/.test(e)&&(t="强"),t}function TXe(e){return!!/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/.test(e)}function IXe(e){return!!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function kXe(e){return!!/^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/.test(e)}function AXe(e){return!!/^[\u4e00-\u9fa5]{1,6}(·[\u4e00-\u9fa5]{1,6}){0,2}$/.test(e)}function DXe(e){return!!/^[1-9][0-9]{5}$/.test(e)}function xne(e){return!!/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)}function NXe(e){return!!/^(([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$/.test(e)}const RXe=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./bcIcon-BnzU9Y20.cjs")));function Ene(e){const t=J3e;for(const n in t)e.component(`ele-${t[n].name}`,t[n]);e.component("SvgIcon",RXe)}function wne(e){document.title=e}function Sne(e){let t="";const{query:n,params:o,meta:a}=e;return n!=null&&n.tagsViewName||o!=null&&o.tagsViewName?t=(n==null?void 0:n.tagsViewName)||(o==null?void 0:o.tagsViewName):t=a.title,t}const Cne=(e,t)=>{const n=new IntersectionObserver(o=>{o.forEach(a=>{if(a.isIntersecting){const{img:l,key:u}=a.target.dataset;a.target.src=l,a.target.onload=()=>{n.unobserve(a.target),t[u].loading=!1}}})});i.nextTick(()=>{document.querySelectorAll(e).forEach(o=>n.observe(o))})},Tne=()=>"",Ine=$t.cloneDeep;function kne(){return!!navigator.userAgent.match(/('phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone')/i)}function Ane(e){const t=[];for(const n in e){const o=[];for(const l in e[n])o.push(e[n][l]);o.filter(l=>l==="").length!==o.length&&t.push(e[n])}return t}function Dne(e){var o;const{origin:t,pathname:n}=window.location;if(e.link&&!((o=e==null?void 0:e.meta)!=null&&o.isIframe))return Mr.get("userInfo").then(a=>{var u;const l=pne(`${location.origin}${e.link}`,{isIframe:(u=e.meta)==null?void 0:u.isIframe,jti:a.jti});window.open(l,a.jti)});xne(e.link)?window.open(e.link):window.open(`${t}${n}`)}const OXe={elSvg:e=>{Ene(e)},useTitle:e=>{wne(e)},setTagsViewNameI18n(e){return Sne(e)},lazyImg:(e,t)=>{Cne(e,t)},globalComponentSize:()=>Tne(),deepClone:e=>Ine(e),isMobile:()=>kne(),handleEmpty:e=>Ane(e),handleOpenLink:e=>{Dne(e)}},dq={success(e){return Sa({message:e,type:"success"})},warning(e){return Sa({message:e,type:"warning"})},info(e){return Sa({message:e,type:"info"})},error(e){return Sa({message:e,type:"error"})}},Vc=new Proxy(Sa,{get(e,t){return t in dq?dq[t]:e[t]}}),MXe={install(e){e.config.globalProperties.$message=Vc}},ny={alert(e,t,n){const o=Rs.value;return Rs.value="",lg.alert(e,t,{...n,callback:a=>{typeof(n==null?void 0:n.callback)=="function"&&(Rs.value=o,n.callback(a,a))}})},confirm(e,t,n){const o=Rs.value;return Rs.value="",lg.confirm(e,t,n).finally(()=>{Rs.value=o})},prompt(e,t,n){const o=Rs.value;return Rs.value="",lg.prompt(e,t,n).finally(()=>{Rs.value=o})}},Y8=new Proxy(lg,{get(e,t){return t in ny?ny[t]:e[t]}}),PXe={install(e){e.config.globalProperties.$MessageBox=Y8,e.config.globalProperties.$messageBox=Y8,e.config.globalProperties.$confirm=ny.confirm,e.config.globalProperties.$alert=ny.alert,e.config.globalProperties.$prompt=ny.prompt}},fq={success(e){return S4({...e,type:"success"})},warning(e){return S4({...e,type:"warning"})},info(e){return S4({...e,type:"info"})},error(e){return S4({...e,type:"error"})}},Nne=new Proxy(S4,{get(e,t){return t in fq?fq[t]:e[t]}}),VXe={install(e){e.config.globalProperties.$notification=Nne}},LXe={class:"popup-wrapper"},BXe={class:"content"},FXe={key:0},$Xe=i.defineComponent({__name:"showPopup",props:{closeLoading:{type:Boolean,default:!1},showFooter:{type:Boolean,default:!0},confirmButtonText:{type:String,default:"确定"},cancelButtonText:{type:String,default:"取消"}},emits:["success"],setup(e){const t=i.ref(0),n=i.computed({get:()=>t.value>0,set:a=>{t.value+=a,t.value=Math.max(0,t.value)}});function o(a){n.value=a?1:-1}return i.provide("popupApi",{setLoading:o}),(a,l)=>{const u=i.resolveComponent("hs-button"),d=i.resolveDirective("loading");return i.withDirectives((i.openBlock(),i.createElementBlock("div",LXe,[i.createElementVNode("div",BXe,[i.createVNode(i.unref(LX),{locale:i.unref(tJ)},{default:i.withCtx(()=>[i.renderSlot(a.$slots,"default",{},void 0,!0)]),_:3},8,["locale"])]),e.showFooter?(i.openBlock(),i.createElementBlock("footer",FXe,[i.createVNode(u,{size:"default",onClick:l[0]||(l[0]=p=>a.$emit("success","cancel"))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.cancelButtonText),1)]),_:1}),i.createVNode(u,{type:"primary",size:"default",onClick:l[1]||(l[1]=p=>a.$emit("success","confirm"))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.confirmButtonText),1)]),_:1})])):i.createCommentVNode("",!0)])),[[d,!e.closeLoading&&n.value]])}}}),UXe=d7($Xe,[["__scopeId","data-v-304dce2d"]]);function i3(e){return i.getCurrentScope()?(i.onScopeDispose(e),!0):!1}function dd(e){return typeof e=="function"?e():i.unref(e)}const UT=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const zXe=e=>e!=null,HXe=Object.prototype.toString,WXe=e=>HXe.call(e)==="[object Object]",p8=()=>{},jXe=GXe();function GXe(){var e,t;return UT&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function qXe(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const o=t;t=void 0,o&&await o},n}function YXe(e){return i.getCurrentInstance()}function Rne(e,t=!0,n){YXe()?i.onMounted(e,n):t?e():i.nextTick(e)}function KXe(e,t,n){const o=i.watch(e,(...a)=>(i.nextTick(()=>o()),t(...a)),n);return o}const hl=UT?window:void 0,XXe=UT?window.document:void 0,eV=UT?window.navigator:void 0;function cs(e){var t;const n=dd(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Zi(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=hl):[t,n,o,a]=e,!t)return p8;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const l=[],u=()=>{l.forEach(v=>v()),l.length=0},d=(v,_,y,b)=>(v.addEventListener(_,y,b),()=>v.removeEventListener(_,y,b)),p=i.watch(()=>[cs(t),dd(a)],([v,_])=>{if(u(),!v)return;const y=WXe(_)?{..._}:_;l.push(...n.flatMap(b=>o.map(w=>d(v,b,w,y))))},{immediate:!0,flush:"post"}),h=()=>{p(),u()};return i3(h),h}let hq=!1;function JXe(e,t,n={}){const{window:o=hl,ignore:a=[],capture:l=!0,detectIframe:u=!1}=n;if(!o)return p8;jXe&&!hq&&(hq=!0,Array.from(o.document.body.children).forEach(C=>C.addEventListener("click",p8)),o.document.documentElement.addEventListener("click",p8));let d=!0;const p=C=>dd(a).some(T=>{if(typeof T=="string")return Array.from(o.document.querySelectorAll(T)).some(I=>I===C.target||C.composedPath().includes(I));{const I=cs(T);return I&&(C.target===I||C.composedPath().includes(I))}});function h(C){const T=dd(C);return T&&T.$.subTree.shapeFlag===16}function v(C,T){const I=dd(C),D=I.$.subTree&&I.$.subTree.children;return D==null||!Array.isArray(D)?!1:D.some(k=>k.el===T.target||T.composedPath().includes(k.el))}const _=C=>{const T=cs(e);if(C.target!=null&&!(!(T instanceof Element)&&h(e)&&v(e,C))&&!(!T||T===C.target||C.composedPath().includes(T))){if(C.detail===0&&(d=!p(C)),!d){d=!0;return}t(C)}};let y=!1;const b=[Zi(o,"click",C=>{y||(y=!0,setTimeout(()=>{y=!1},0),_(C))},{passive:!0,capture:l}),Zi(o,"pointerdown",C=>{const T=cs(e);d=!p(C)&&!!(T&&!C.composedPath().includes(T))},{passive:!0}),u&&Zi(o,"blur",C=>{setTimeout(()=>{var T;const I=cs(e);((T=o.document.activeElement)==null?void 0:T.tagName)==="IFRAME"&&!(I!=null&&I.contains(o.document.activeElement))&&t(C)},0)})].filter(Boolean);return()=>b.forEach(C=>C())}function ZXe(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function VM(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:a=hl,eventName:l="keydown",passive:u=!1,dedupe:d=!1}=o,p=ZXe(t);return Zi(a,l,v=>{v.repeat&&dd(d)||p(v)&&n(v)},u)}function QXe(){const e=i.ref(!1),t=i.getCurrentInstance();return t&&i.onMounted(()=>{e.value=!0},t),e}function d2(e){const t=QXe();return i.computed(()=>(t.value,!!e()))}function eJe(e,t,n={}){const{window:o=hl,...a}=n;let l;const u=d2(()=>o&&"MutationObserver"in o),d=()=>{l&&(l.disconnect(),l=void 0)},p=i.computed(()=>{const y=dd(e),b=(Array.isArray(y)?y:[y]).map(cs).filter(zXe);return new Set(b)}),h=i.watch(()=>p.value,y=>{d(),u.value&&y.size&&(l=new MutationObserver(t),y.forEach(b=>l.observe(b,a)))},{immediate:!0,flush:"post"}),v=()=>l==null?void 0:l.takeRecords(),_=()=>{h(),d()};return i3(_),{isSupported:u,stop:_,takeRecords:v}}function tJe(e={}){var t;const{window:n=hl,deep:o=!0,triggerOnRemoval:a=!1}=e,l=(t=e.document)!=null?t:n==null?void 0:n.document,u=()=>{var h;let v=l==null?void 0:l.activeElement;if(o)for(;v!=null&&v.shadowRoot;)v=(h=v==null?void 0:v.shadowRoot)==null?void 0:h.activeElement;return v},d=i.ref(),p=()=>{d.value=u()};return n&&(Zi(n,"blur",h=>{h.relatedTarget===null&&p()},!0),Zi(n,"focus",p,!0)),a&&eJe(l,h=>{h.filter(v=>v.removedNodes.length).map(v=>Array.from(v.removedNodes)).flat().forEach(v=>{v===d.value&&p()})},{childList:!0,subtree:!0}),p(),d}function nJe(e,t={}){const{window:n=hl}=t,o=d2(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const l=i.ref(!1),u=h=>{l.value=h.matches},d=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",u):a.removeListener(u))},p=i.watchEffect(()=>{o.value&&(d(),a=n.matchMedia(dd(e)),"addEventListener"in a?a.addEventListener("change",u):a.addListener(u),l.value=a.matches)});return i3(()=>{p(),d(),a=void 0}),l}function rJe(e,t={}){const{controls:n=!1,navigator:o=eV}=t,a=d2(()=>o&&"permissions"in o),l=i.shallowRef(),u={name:e},d=i.shallowRef(),p=()=>{var v,_;d.value=(_=(v=l.value)==null?void 0:v.state)!=null?_:"prompt"};Zi(l,"change",p);const h=qXe(async()=>{if(a.value){if(!l.value)try{l.value=await o.permissions.query(u)}catch{l.value=void 0}finally{p()}if(n)return i.toRaw(l.value)}});return h(),n?{state:d,isSupported:a,query:h}:d}function iJe(e={}){const{navigator:t=eV,requestPermissions:n=!1,constraints:o={audio:!0,video:!0},onUpdated:a}=e,l=i.ref([]),u=i.computed(()=>l.value.filter(w=>w.kind==="videoinput")),d=i.computed(()=>l.value.filter(w=>w.kind==="audioinput")),p=i.computed(()=>l.value.filter(w=>w.kind==="audiooutput")),h=d2(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),v=i.ref(!1);let _;async function y(){h.value&&(l.value=await t.mediaDevices.enumerateDevices(),a==null||a(l.value),_&&(_.getTracks().forEach(w=>w.stop()),_=null))}async function b(){if(!h.value)return!1;if(v.value)return!0;const{state:w,query:C}=rJe("camera",{controls:!0});if(await C(),w.value!=="granted"){let T=!0;try{_=await t.mediaDevices.getUserMedia(o)}catch{_=null,T=!1}y(),v.value=T}else v.value=!0;return v.value}return h.value&&(n&&b(),Zi(t.mediaDevices,"devicechange",y),y()),{devices:l,ensurePermissions:b,permissionGranted:v,videoInputs:u,audioInputs:d,audioOutputs:p,isSupported:h}}function oJe(e={}){const{document:t=XXe}=e;if(!t)return i.ref("visible");const n=i.ref(t.visibilityState);return Zi(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function aJe(e,t,n={}){const{window:o=hl,...a}=n;let l;const u=d2(()=>o&&"ResizeObserver"in o),d=()=>{l&&(l.disconnect(),l=void 0)},p=i.computed(()=>{const _=dd(e);return Array.isArray(_)?_.map(y=>cs(y)):[cs(_)]}),h=i.watch(p,_=>{if(d(),u.value&&o){l=new ResizeObserver(t);for(const y of _)y&&l.observe(y,a)}},{immediate:!0,flush:"post"}),v=()=>{d(),h()};return i3(v),{isSupported:u,stop:v}}function sJe(e,t={width:0,height:0},n={}){const{window:o=hl,box:a="content-box"}=n,l=i.computed(()=>{var _,y;return(y=(_=cs(e))==null?void 0:_.namespaceURI)==null?void 0:y.includes("svg")}),u=i.ref(t.width),d=i.ref(t.height),{stop:p}=aJe(e,([_])=>{const y=a==="border-box"?_.borderBoxSize:a==="content-box"?_.contentBoxSize:_.devicePixelContentBoxSize;if(o&&l.value){const b=cs(e);if(b){const w=b.getBoundingClientRect();u.value=w.width,d.value=w.height}}else if(y){const b=Array.isArray(y)?y:[y];u.value=b.reduce((w,{inlineSize:C})=>w+C,0),d.value=b.reduce((w,{blockSize:C})=>w+C,0)}else u.value=_.contentRect.width,d.value=_.contentRect.height},n);Rne(()=>{const _=cs(e);_&&(u.value="offsetWidth"in _?_.offsetWidth:t.width,d.value="offsetHeight"in _?_.offsetHeight:t.height)});const h=i.watch(()=>cs(e),_=>{u.value=_?t.width:0,d.value=_?t.height:0});function v(){p(),h()}return{width:u,height:d,stop:v}}const lJe={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function cJe(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:o=!1,initialValue:a={x:0,y:0},window:l=hl,target:u=l,scroll:d=!0,eventFilter:p}=e;let h=null,v=0,_=0;const y=i.ref(a.x),b=i.ref(a.y),w=i.ref(null),C=typeof t=="function"?t:lJe[t],T=L=>{const $=C(L);h=L,$&&([y.value,b.value]=$,w.value="mouse"),l&&(v=l.scrollX,_=l.scrollY)},I=L=>{if(L.touches.length>0){const $=C(L.touches[0]);$&&([y.value,b.value]=$,w.value="touch")}},D=()=>{if(!h||!l)return;const L=C(h);h instanceof MouseEvent&&L&&(y.value=L[0]+l.scrollX-v,b.value=L[1]+l.scrollY-_)},k=()=>{y.value=a.x,b.value=a.y},O=p?L=>p(()=>T(L),{}):L=>T(L),V=p?L=>p(()=>I(L),{}):L=>I(L),P=p?()=>p(()=>D(),{}):()=>D();if(u){const L={passive:!0};Zi(u,["mousemove","dragover"],O,L),n&&t!=="movement"&&(Zi(u,["touchstart","touchmove"],V,L),o&&Zi(u,"touchend",k,L)),d&&t==="page"&&Zi(l,"scroll",P,{passive:!0})}return{x:y,y:b,sourceType:w}}function uJe(e,t={}){const{handleOutside:n=!0,window:o=hl}=t,a=t.type||"page",{x:l,y:u,sourceType:d}=cJe(t),p=i.ref(e??(o==null?void 0:o.document.body)),h=i.ref(0),v=i.ref(0),_=i.ref(0),y=i.ref(0),b=i.ref(0),w=i.ref(0),C=i.ref(!0);let T=()=>{};return o&&(T=i.watch([p,l,u],()=>{const I=cs(p);if(!I||!(I instanceof Element))return;const{left:D,top:k,width:O,height:V}=I.getBoundingClientRect();_.value=D+(a==="page"?o.pageXOffset:0),y.value=k+(a==="page"?o.pageYOffset:0),b.value=V,w.value=O;const P=l.value-_.value,L=u.value-y.value;C.value=O===0||V===0||P<0||L<0||P>O||L>V,(n||!C.value)&&(h.value=P,v.value=L)},{immediate:!0}),Zi(document,"mouseleave",()=>{C.value=!0})),{x:l,y:u,sourceType:d,elementX:h,elementY:v,elementPositionX:_,elementPositionY:y,elementHeight:b,elementWidth:w,isOutside:C,stop:T}}function dJe(e={}){const{touch:t=!0,drag:n=!0,capture:o=!1,initialValue:a=!1,window:l=hl}=e,u=i.ref(a),d=i.ref(null);if(!l)return{pressed:u,sourceType:d};const p=_=>()=>{u.value=!0,d.value=_},h=()=>{u.value=!1,d.value=null},v=i.computed(()=>cs(e.target)||l);return Zi(v,"mousedown",p("mouse"),{passive:!0,capture:o}),Zi(l,"mouseleave",h,{passive:!0,capture:o}),Zi(l,"mouseup",h,{passive:!0,capture:o}),n&&(Zi(v,"dragstart",p("mouse"),{passive:!0,capture:o}),Zi(l,"drop",h,{passive:!0,capture:o}),Zi(l,"dragend",h,{passive:!0,capture:o})),t&&(Zi(v,"touchstart",p("touch"),{passive:!0,capture:o}),Zi(l,"touchend",h,{passive:!0,capture:o}),Zi(l,"touchcancel",h,{passive:!0,capture:o})),{pressed:u,sourceType:d}}function fJe(e={}){var t,n;const o=i.ref((t=e.enabled)!=null?t:!1),a=i.ref((n=e.autoSwitch)!=null?n:!0),l=i.ref(e.constraints),{navigator:u=eV}=e,d=d2(()=>{var C;return(C=u==null?void 0:u.mediaDevices)==null?void 0:C.getUserMedia}),p=i.shallowRef();function h(C){switch(C){case"video":{if(l.value)return l.value.video||!1;break}case"audio":{if(l.value)return l.value.audio||!1;break}}}async function v(){if(!(!d.value||p.value))return p.value=await u.mediaDevices.getUserMedia({video:h("video"),audio:h("audio")}),p.value}function _(){var C;(C=p.value)==null||C.getTracks().forEach(T=>T.stop()),p.value=void 0}function y(){_(),o.value=!1}async function b(){return await v(),p.value&&(o.value=!0),p.value}async function w(){return _(),await b()}return i.watch(o,C=>{C?v():_()},{immediate:!0}),i.watch(l,()=>{a.value&&p.value&&w()},{immediate:!0}),i3(()=>{y()}),{isSupported:d,stream:p,start:b,stop:y,restart:w,constraints:l,enabled:o,autoSwitch:a}}function hJe(e={}){const{window:t=hl,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:l=!0,type:u="inner"}=e,d=i.ref(n),p=i.ref(o),h=()=>{t&&(u==="outer"?(d.value=t.outerWidth,p.value=t.outerHeight):l?(d.value=t.innerWidth,p.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,p.value=t.document.documentElement.clientHeight))};if(h(),Rne(h),Zi("resize",h,{passive:!0}),a){const v=nJe("(orientation: portrait)");i.watch(v,()=>h())}return{width:d,height:p}}const Ey=i.ref(1);function pJe(e="code",t=!0){const n=i.ref();let o=[],a={};const l=oJe();let u=()=>{},d=()=>{};function p(_){h(),u=i.watch(Ey,(w,C)=>{w>C?h(C):p(w)}),d=i.watch(l,w=>{w==="hidden"&&(o=[])});const y=VM(w=>{o.push(w[e]),v(w)},{dedupe:!0,eventName:"keydown"}),b=VM(w=>{o=o.filter(C=>C!==w[e])},{dedupe:!0,eventName:"keyup"});$t.set(a,_??Ey.value,{onKeydown:y,onKeyup:b})}function h(_=-1){var w;if(o=[],_===-1){(w=Object.values(a))==null||w.forEach(C=>{var T,I;typeof C.onKeydown=="function"&&((T=C==null?void 0:C.onKeydown)==null||T.call(C)),typeof C.onKeyup=="function"&&((I=C==null?void 0:C.onKeyup)==null||I.call(C))}),a={};return}const{onKeydown:y,onKeyup:b}=$t.get(a,_,{});typeof y=="function"&&(y==null||y()),typeof b=="function"&&(b==null||b()),delete a[_],u(),d()}function v(_){var w,C,T,I,D,k;const y=(w=n.value)==null?void 0:w.querySelectorAll("[shortcut]");if(!y)return;let b;for(let O in y)if((((C=y[O])==null?void 0:C.getAttribute)&&((T=y[O])==null?void 0:T.getAttribute("shortcut"))||"")===String(o)){b=y[O];break}if(!(!b||b!=null&&b.disabled||b!=null&&b.readOnly||(I=b==null?void 0:b.className)!=null&&I.includes("disabled"))){if(_.preventDefault(),(D=b==null?void 0:b.className)!=null&&D.includes("el-select")){if(b.querySelector(".is-disabled"))return;(k=b.querySelector("input"))==null||k.click();return}if((b==null?void 0:b.tagName)==="TEXTAREA"){typeof(b==null?void 0:b.focus)=="function"&&(b==null||b.focus()),typeof(b==null?void 0:b.click)=="function"&&(b==null||b.click());return}typeof(b==null?void 0:b.click)=="function"&&(b==null||b.click())}}return i.onMounted(()=>{t&&p()}),i.onBeforeUnmount(()=>{h()}),i.onDeactivated(()=>{o=[]}),{bcBoxRef:n,start:p,end:h}}let LM,One;function Mne(e,t,n){var b;const o=Rs.value;Rs.value="";let a,l=()=>{};const u={...n.slots,title:((b=n.slots)==null?void 0:b.title)||(()=>n.title),default:()=>i.h(UXe,{onSuccess:_,showFooter:n.showFooter,closeLoading:n.closeLoading,confirmButtonText:n.confirmButtonText,cancelButtonText:n.cancelButtonText},{default:()=>i.h(e,{...t,onVnodeMounted:v,onReady:y,close:h})})},d=i.h(n2,Object.assign({},One,{...$t.omit(n,["success"]),className:"custom-popup ".concat((n==null?void 0:n.className)||""),modelValue:!0,onHide(w){a(),typeof(n==null?void 0:n.onHide)=="function"&&n.onHide(w)},slots:u}));LM&&(d.appContext=LM);function p(){Ey.value++;const w=document.createDocumentFragment();return i.render(d,w),document.body.appendChild(w),setTimeout(()=>{if(!$t.isEmpty(n==null?void 0:n.position)){const C=n.position;if(/%/.test(C==null?void 0:C.top)||/%/.test(C==null?void 0:C.left)){/%/.test(C==null?void 0:C.top)&&(d.el.nextSibling.querySelector(".vxe-modal--box").style.top=`${C.top}`),/%/.test(C==null?void 0:C.left)&&(d.el.nextSibling.querySelector(".vxe-modal--box").style.top=`${C.left}`);return}(C==null?void 0:C.top)>-1&&(d.el.nextSibling.querySelector(".vxe-modal--box").style.top=`${C.top}px`),(C==null?void 0:C.left)>-1&&(d.el.nextSibling.querySelector(".vxe-modal--box").style.left=`${C.left}px`)}},100),()=>{Ey.value--,Rs.value=o,i.render(null,w)}}a=p(),i.watch(()=>{var w;return(w=K7.value)==null?void 0:w.value.path},()=>{a()});async function h(w){a(),typeof n.success=="function"&&n.success({type:w,data:w})}function v(w){var C;l=(C=w.component.exposed)==null?void 0:C.getData}async function _(w){const C=await l();typeof n.success=="function"&&n.success({type:w,data:C,close:a})}function y(w){typeof n.onReady=="function"&&n.onReady(w)}return a}const mJe={install(e,t){LM=e._context,One=t}};function vJe({option:e,row:t}){return t.field1===Number(e.data)}const gJe=(e,t)=>{const n={},o=(t==null?void 0:t.reduce((a,l)=>(a[l.data.field]=!!l.data.formatAmount,$t.set(n,l.data.field,!!l.data.formatFooter),a),{}))||{};return[e.columns.map((a,l)=>{if(l===0)return"合计";if(!$t.isEmpty(e.data,"0.customTotal")){const u=$t.get(e.data,`0.customTotal.${a.field}`,"");return($t.get(o,a.field)||$t.get(n,a.field))&&u!==""?P7(u):u}return""})]};function _Je(e){console.debug("params.$table.getData()",e.$table.getData())}function yJe(e,t){console.debug("form =>> 表单单击",e,t)}const BM={filterAgeMethod:vJe,footerMethod:gJe,cellDetailMethod:_Je,formBtnMethod:yJe},Rs=i.ref(""),FM=i.ref({}),Ds=i.ref({}),zg=i.ref(!1),zc=i.ref({}),Pne=i.ref({}),bJe=i.ref({}),xJe=i.ref(!0),Vne=i.ref({}),EJe=["checkbox","radio","expand","seq","html"],K8="system_params",zT="custome_field_",X8="query_field_",wJe="column_field_",tV="_REGEXP_",Lne="force_update_list",Bne={},SJe=["hs-select","bc-tree-search","hs-tree-select","hs-radio","hs-checkbox","hs-upload","hs-date-picker"],CJe="Home,PrevJump,PrevPage,JumpNumber,NextPage,NextJump,End,Sizes,FullJump,Total".split(","),k4=(e,t)=>e.isSimulate&&!e.requestUrl||e.isGetCanche?jne(e,t):Pi(t);function nV(e){return Vne.value[e.uniqueId]?!e.isShow||!e.fieldShow?!1:e.userFieldShow:!0}function TJe(e){return JSON.stringify(e,function(t,n){return n instanceof RegExp?`${tV}${n.toString()}`:n})}function Ip(e){const t=/method=/,n=/functionBody=/,o=/string=/;function a(l){for(let u in l){if(l[`${u}_1`])l[u]=BM[l[`${u}_1`]];else if(t.test(l[u])&&l[u].split("=")[1]){const d=l[u].replace(t,"");l[`${u}_1`]=d,l[u]=BM[d]}if(l[`${u}_2`])l[u]=new Function("return "+l[`${u}_2`])();else if(n.test(l[u])&&l[u].split("=")[1]){const d=l[u].replace(n,"");l[`${u}_2`]=d,l[u]=new Function("return "+d)()}if(o.test(l[u]))if(l[u].split("=")[1]){const d=l[u].replace(o,"");l[u]=new Function("return "+d)()}else l[u]=[];if(typeof l[u]=="string"&&l[u].startsWith(tV)){const d=l[u].slice(9).replace(/\/$/,"");l[u]=new RegExp(d)}u==="formatAmount"&&l[u]&&$t.set(l,"formatter",function(d){var p,h;return P7((h=d==null?void 0:d.row)==null?void 0:h[(p=d==null?void 0:d.column)==null?void 0:p.field])}),$t.isObject(l[u])&&!$t.isEmpty(l[u])&&a(l[u]),$t.isEmpty($t.get(l,`${u}.children`))||a($t.get(l,`${u}.children`))}}return a(e),e}function Fne(e){return e.groupMark?(e.el2=e.el,e.groupField=zT+e.groupMark,"bc-group"):$ne(e.el)}function $ne(e){return{"hs-select":"bc-select","hs-tree-select":"bc-tree-select","hs-radio":"bc-radio","hs-checkbox":"bc-checkbox","hs-upload":"bc-upload"}[e]||e}async function Une(e){if(!e.form)return Promise.resolve({});const t=e.form,n=t==null?void 0:t.formConfig.map(l=>{const u=Ip(l.data.elData);return l.data.elData={...u==null?void 0:u.attrs,...$t.omit(u,"attrs")},l.data.baseData.el=Fne(l.data.baseData),l}),o=$t.omit(Ip(e.form.baseData),["inline","gutter","justify","align"]),a=$t.cloneDeep($t.get(zc.value,`${e==null?void 0:e.config_unique_id}`));return zg.value&&a&&(e!=null&&e.form)&&(e.form.formData=$t.cloneDeep(a)),{id:e.form.id,baseData:o,formConfig:n,formData:e.form.formData}}function IJe(e){return Promise.all(e.tables.map(t=>kJe(t,e)))}async function kJe(e,t){var p,h,v,_,y,b,w,C;const n=$t.cloneDeep(e);if(n.baseData=Ip($t.omit(n.baseData,"data")),n.baseData.mid=t.mid,n.baseData.config_unique_id=t.config_unique_id,n.baseData.is_apply_page){const T=await Mr.get(K8),I=n.baseData.uuid?`${n.baseData.uuid}${n.baseData.id}`:n.baseData.id,D=$t.get(T,`_user_pageSize.${I}`,T==null?void 0:T._sys_pageSize);n.baseData.table_page_data.pageSize=Number(D??((p=n.baseData.table_page_data)==null?void 0:p.pageSize)??20),$t.isEmpty((h=n.baseData.table_page_data)==null?void 0:h.layouts)&&(n.baseData.table_page_data.layouts=CJe),$t.isEmpty(T==null?void 0:T._sys_pageSize_s)||(n.baseData.table_page_data.pageSizes=T._sys_pageSize_s)}n.tableConfig=n.tableConfig.map(T=>($t.isEmpty(T==null?void 0:T.children)?T.data=Ip(T.data):T.children=Ip(T.children),T));let o={};const a=$t.get(Pne.value,`query.${n.id}`)||[],l=$t.get(zc.value,`${(v=n==null?void 0:n.baseData)==null?void 0:v.config_unique_id}`);zg.value&&((y=(_=t==null?void 0:t.form)==null?void 0:_.baseData)!=null&&y.isShowQuerySearch)&&l?a.forEach(T=>{o[T]=l[T]}):o=$t.cloneDeep((b=t==null?void 0:t.form)==null?void 0:b.formData);const u=await rV(n.baseData,o,(C=(w=t==null?void 0:t.form)==null?void 0:w.baseData)==null?void 0:C.isShowQuerySearch),d=T=>{var I;return(I=T.treeConfig)!=null&&I.transform?delete T.stripe:delete T.treeConfig,$t.has(T==null?void 0:T.rowConfig,"height")&&($t.set(T,"cellConfig.height",$t.get(T,"rowConfig.height")),$t.unset(T,"rowConfig.height")),T};return{id:n.id,baseData:d(n.baseData),tableConfig:n.tableConfig,tableData:u}}async function rV(e,t,n=!1){let o=t&&$t.cloneDeep(t);if(typeof FM.value[e.id]=="function"){const l=await FM.value[e.id](o,e);$t.isEmpty(l)?n||(o=zc.value[e.config_unique_id]):o=l}const a=await zne(e,o,n);if(!e.isSimulate&&!e.requestUrl){console.log("未配置接口,不请求数据");const l=$t.get(Bne,e.id,[]);return e.is_apply_page&&(e.table_page_data.total=l.length),l}return e.isCloseInitData&&zg.value&&(e.isCloseInitData=!1),e.isCloseInitData&&!zg.value?(e.isCloseInitData=!1,[]):(e.loading=!0,e.isSplitInterface?k4(e,{...a,params:{...a.params,url_type:"data"}}).then(l=>{var u,d;if(e.is_apply_page){const p=((u=l.data)==null?void 0:u.pageList)??((d=l.data)==null?void 0:d.customPageList)??[];return typeof Ds.value[e.id]=="function"?Ds.value[e.id](p):p}else{const p=l.data||[];return typeof Ds.value[e.id]=="function"?Ds.value[e.id](p):p}}).finally(()=>{e.loading=!1}):e.isRemoteTotal?Promise.all([k4(e,{...a,params:{...a.params,url_type:"total"}}),k4(e,{...a,params:{...a.params,url_type:"data"}})]).then(([l,u])=>{var p,h,v;let d=((p=l==null?void 0:l.data)==null?void 0:p.customTotal)||{};if(e.is_apply_page){const y=(((h=u.data)==null?void 0:h.pageList)??((v=u.data)==null?void 0:v.customPageList)??[]).map(b=>Object.assign(b,{customTotal:d}));return typeof Ds.value[e.id]=="function"?Ds.value[e.id](y):y}else{const y=((u==null?void 0:u.data)||[]).map(b=>Object.assign(b,{customTotal:d}));return typeof Ds.value[e.id]=="function"?Ds.value[e.id](y):y}}).finally(()=>{e.loading=!1}):k4(e,a).then(l=>{var d,p,h;const u=((d=l==null?void 0:l.data)==null?void 0:d.customTotal)||{};if(e.is_apply_page){e.table_page_data.currentPage=l.data.page.currentPage||1,e.table_page_data.pageSize=l.data.page.pageSize,e.table_page_data.total=l.data.page.totalItem;const _=(((p=l.data)==null?void 0:p.pageList)??((h=l.data)==null?void 0:h.customPageList)??[]).map(y=>Object.assign(y,{customTotal:u}));return typeof Ds.value[e.id]=="function"?Ds.value[e.id](_):_}else{const _=(l.data||[]).map(y=>Object.assign(y,{customTotal:u}));return typeof Ds.value[e.id]=="function"?Ds.value[e.id](_):_}}).finally(()=>{e.loading=!1}))}function AJe(e,t,n){const o=n&&$t.cloneDeep(n),a=async(l,u)=>{if(l.baseData.isRemoteTotal||l.baseData.isSplitInterface){const d=await zne(l.baseData,o);return Promise.all([l.baseData.is_apply_page?k4(l.baseData,{...d,params:{...d.params,url_type:"count"}}):Promise.resolve(null)]).then(async p=>{var h,v,_,y,b,w,C,T,I;if(l.baseData.is_apply_page){const[D]=p;l.baseData.table_page_data.currentPage!==((v=(h=D==null?void 0:D.data)==null?void 0:h.page)==null?void 0:v.currentPage)&&(l.baseData.table_page_data.currentPage=((y=(_=D==null?void 0:D.data)==null?void 0:_.page)==null?void 0:y.currentPage)||1,l.tableData=await rV(l.baseData,o,(C=(w=(b=u.value)==null?void 0:b.form)==null?void 0:w.baseData)==null?void 0:C.isShowQuerySearch)),l.baseData.table_page_data.currentPage=((I=(T=D==null?void 0:D.data)==null?void 0:T.page)==null?void 0:I.currentPage)||1,l.baseData.table_page_data.pageSize=D.data.page.pageSize,l.baseData.table_page_data.total=D.data.page.totalItem}return p})}};return t?Promise.all(e.value.tables.filter(l=>l.id===t).map(l=>a(l,e))):Promise.all(e.value.tables.map(l=>a(l,e)))}async function zne(e,t,n=!1){var b,w;const o=(e==null?void 0:e.proxy)||"scmp-web",a=e.method||"get",l={url:"/"+o+e.requestUrl,method:a},u={currentPage:((b=e.table_page_data)==null?void 0:b.currentPage)||1,pageSize:((w=e.table_page_data)==null?void 0:w.pageSize)||10};$t.set(e,"scrollX.enabled",u.pageSize>=50),$t.set(e,"scrollX.gt",0),$t.set(e,"scrollY.enabled",u.pageSize>=50),$t.set(e,"scrollY.gt",0);const d=Hne(e,t,!0,!0,n),p=e.requestParams?new Function("return "+e.requestParams)():{},h=$t.cloneDeep(Object.assign({},d,e.is_apply_page?u:{},p)),v=Object.keys(h).filter(C=>C.startsWith("_")).map(C=>{const[T,I,D]=C.split("|");return{type:T.slice(1),key:I,code:D,value:h[C]}}),_=Object.keys(h).filter(C=>!C.startsWith("_")).reduce((C,T)=>($t.set(C,T,h[T]),C),{}),y=v.length>0?Object.assign({qry_json_data:JSON.stringify(v)},_):_;return a==="get"?l.params=y:l.data=y,l}function Hne(e,t,n=!0,o=!0,a=!1){const l=Gne(e.config_unique_id);a&&t&&Object.keys(t).forEach(v=>{zc.value[e.config_unique_id]||(zc.value[e.config_unique_id]={}),zc.value[e.config_unique_id][v]=t[v]});const u=a?t||{}:zc.value[e.config_unique_id]||{},d=$t.cloneDeep(zg.value?Object.assign(l,t||{},u):Object.assign(u,l,t||{}));if($t.isEmpty(d))return{};const p=new RegExp(zT),h=new RegExp(X8);for(let v in d){Array.isArray(d[v])&&(d[v]=String(d[v]));const _=p.test(v),y=h.test(v),b=d[`${X8}${e.id}`];if(y&&b&&o){const C=Object.keys(b).reduce((T,I)=>(b[I]&&(typeof b[I]=="string"?T[I]=b[I].trim():T[I]=b[I]),T),{});Object.assign(d,C)}(_||y)&&delete d[v],(typeof d[v]=="string"&&d[v]===""||d[v]===void 0)&&n&&delete d[v]}return d}async function DJe(e){const t=$t.cloneDeep(e);if(t.preParsing)return t;const n=await Une(t),o=(await IJe(t)).filter(Boolean);return u2.value==!0&&bne(o),{...t,form:n,tables:o}}function NJe(e){var l;const t=$t.cloneDeep(e);if(t.preParsing)return t;const n=Ip(t.data),o=Wne(t);for(let u in n)$t.isEmpty(n[u])||$t.set(n,`${u}.${Lne}`,o);const a=((l=t.form)==null?void 0:l.map(u=>(u.config=Ip(u.config),u)))||[];return u2.value==!0&&console.debug(yne(t)),{...t,data:n,form:a}}function Wne(e){var t,n,o,a;return((a=(o=(n=(t=e==null?void 0:e.form)==null?void 0:t.filter(l=>l.formItemType==="form"))==null?void 0:n.map(l=>l.config.map(d=>d.config.filter(p=>nV({...p.baseData,uniqueId:e.config_unique_id})).map(p=>p.baseData.prop).toString())))==null?void 0:o.flat(2))==null?void 0:a.filter(Boolean))||[]}function RJe({mid:e,id:t,uid:n,tableId:o,uuid:a,data:l,pageSize:u,is_apply_page:d}){const p=a?`cache_${o}_${a}`:`cache_${o}`;return Z7({mid:e,id:t,uid:n},$t.cloneDeep(l),p).then(()=>{const h=Math.ceil(l.length/u);return{currentPage:h,totalPage:l.length,data:d?l.slice((h-1)*u,h*u):l,currentData:d?l.slice(0,u):l}})}async function jne(e,t){const n=e.uuid,o=n?`cache_${e.id}_${n}`:`cache_${e.id}`,a=e.mid||Qo().mid;return J7({mid:a,id:e.config_unique_id},o).then(l=>{if(!t)return l||[];let u=l||[];const d=u.length,p=t.method.toLocaleLowerCase()==="get"?"params":"data";let h=t[p].currentPage||1,v=t[p].pageSize;const _=(b,w,C)=>{const T=(I,D)=>I[w]<D[w]?C==="asc"?-1:1:I[w]>D[w]?C==="asc"?1:-1:0;return b.sort(T)};if($t.get(t,`${p}.query_order_by`)){const[b,w]=$t.get(t,`${p}.query_order_by`).split(" ");u=_(u,b,w)}return e.is_apply_page?{code:1,data:{customPageList:u.slice((h-1)*v,h*v),page:{currentPage:h,pageSize:v,totalItem:d}}}:{code:1,data:u}})}function OJe(e,t){var u,d,p;const n=t||$t.omit((u=e==null?void 0:e.form)==null?void 0:u.formData,["currentPage","pageSize"]),o=((p=(d=e==null?void 0:e.form)==null?void 0:d.formConfig)==null?void 0:p.reduce((h,v)=>(nV({...v.data.baseData,uniqueId:e==null?void 0:e.config_unique_id})&&Object.assign(h,{[v.data.baseData.prop]:""}),h),{}))||{};if($t.isEmpty(o))return{};const a=new RegExp(zT),l=new Set(Object.keys(o));return Object.keys(n).forEach(h=>{a.test(h)?n[h].some(v=>l.has(v))&&n[h].map(v=>{Object.assign(o,{[v]:n[v]})}):Reflect.has(o,h)&&(o[h]=n[h])}),o}function Gne(e){const t=new RegExp(X8),n=$t.get(zc.value,e,{});return Object.keys(n).reduce((o,a)=>(t.test(a)&&Object.assign(o,{[a]:$t.get(n,a,{})}),o),{})}class To{constructor(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}static hashStr(t,n=!1){return this.onePassHasher.start().appendStr(t).end(n)}static hashAsciiStr(t,n=!1){return this.onePassHasher.start().appendAsciiStr(t).end(n)}static _hex(t){const n=To.hexChars,o=To.hexOut;let a,l,u,d;for(d=0;d<4;d+=1)for(l=d*8,a=t[d],u=0;u<8;u+=2)o[l+1+u]=n.charAt(a&15),a>>>=4,o[l+0+u]=n.charAt(a&15),a>>>=4;return o.join("")}static _md5cycle(t,n){let o=t[0],a=t[1],l=t[2],u=t[3];o+=(a&l|~a&u)+n[0]-680876936|0,o=(o<<7|o>>>25)+a|0,u+=(o&a|~o&l)+n[1]-389564586|0,u=(u<<12|u>>>20)+o|0,l+=(u&o|~u&a)+n[2]+606105819|0,l=(l<<17|l>>>15)+u|0,a+=(l&u|~l&o)+n[3]-1044525330|0,a=(a<<22|a>>>10)+l|0,o+=(a&l|~a&u)+n[4]-176418897|0,o=(o<<7|o>>>25)+a|0,u+=(o&a|~o&l)+n[5]+1200080426|0,u=(u<<12|u>>>20)+o|0,l+=(u&o|~u&a)+n[6]-1473231341|0,l=(l<<17|l>>>15)+u|0,a+=(l&u|~l&o)+n[7]-45705983|0,a=(a<<22|a>>>10)+l|0,o+=(a&l|~a&u)+n[8]+1770035416|0,o=(o<<7|o>>>25)+a|0,u+=(o&a|~o&l)+n[9]-1958414417|0,u=(u<<12|u>>>20)+o|0,l+=(u&o|~u&a)+n[10]-42063|0,l=(l<<17|l>>>15)+u|0,a+=(l&u|~l&o)+n[11]-1990404162|0,a=(a<<22|a>>>10)+l|0,o+=(a&l|~a&u)+n[12]+1804603682|0,o=(o<<7|o>>>25)+a|0,u+=(o&a|~o&l)+n[13]-40341101|0,u=(u<<12|u>>>20)+o|0,l+=(u&o|~u&a)+n[14]-1502002290|0,l=(l<<17|l>>>15)+u|0,a+=(l&u|~l&o)+n[15]+1236535329|0,a=(a<<22|a>>>10)+l|0,o+=(a&u|l&~u)+n[1]-165796510|0,o=(o<<5|o>>>27)+a|0,u+=(o&l|a&~l)+n[6]-1069501632|0,u=(u<<9|u>>>23)+o|0,l+=(u&a|o&~a)+n[11]+643717713|0,l=(l<<14|l>>>18)+u|0,a+=(l&o|u&~o)+n[0]-373897302|0,a=(a<<20|a>>>12)+l|0,o+=(a&u|l&~u)+n[5]-701558691|0,o=(o<<5|o>>>27)+a|0,u+=(o&l|a&~l)+n[10]+38016083|0,u=(u<<9|u>>>23)+o|0,l+=(u&a|o&~a)+n[15]-660478335|0,l=(l<<14|l>>>18)+u|0,a+=(l&o|u&~o)+n[4]-405537848|0,a=(a<<20|a>>>12)+l|0,o+=(a&u|l&~u)+n[9]+568446438|0,o=(o<<5|o>>>27)+a|0,u+=(o&l|a&~l)+n[14]-1019803690|0,u=(u<<9|u>>>23)+o|0,l+=(u&a|o&~a)+n[3]-187363961|0,l=(l<<14|l>>>18)+u|0,a+=(l&o|u&~o)+n[8]+1163531501|0,a=(a<<20|a>>>12)+l|0,o+=(a&u|l&~u)+n[13]-1444681467|0,o=(o<<5|o>>>27)+a|0,u+=(o&l|a&~l)+n[2]-51403784|0,u=(u<<9|u>>>23)+o|0,l+=(u&a|o&~a)+n[7]+1735328473|0,l=(l<<14|l>>>18)+u|0,a+=(l&o|u&~o)+n[12]-1926607734|0,a=(a<<20|a>>>12)+l|0,o+=(a^l^u)+n[5]-378558|0,o=(o<<4|o>>>28)+a|0,u+=(o^a^l)+n[8]-2022574463|0,u=(u<<11|u>>>21)+o|0,l+=(u^o^a)+n[11]+1839030562|0,l=(l<<16|l>>>16)+u|0,a+=(l^u^o)+n[14]-35309556|0,a=(a<<23|a>>>9)+l|0,o+=(a^l^u)+n[1]-1530992060|0,o=(o<<4|o>>>28)+a|0,u+=(o^a^l)+n[4]+1272893353|0,u=(u<<11|u>>>21)+o|0,l+=(u^o^a)+n[7]-155497632|0,l=(l<<16|l>>>16)+u|0,a+=(l^u^o)+n[10]-1094730640|0,a=(a<<23|a>>>9)+l|0,o+=(a^l^u)+n[13]+681279174|0,o=(o<<4|o>>>28)+a|0,u+=(o^a^l)+n[0]-358537222|0,u=(u<<11|u>>>21)+o|0,l+=(u^o^a)+n[3]-722521979|0,l=(l<<16|l>>>16)+u|0,a+=(l^u^o)+n[6]+76029189|0,a=(a<<23|a>>>9)+l|0,o+=(a^l^u)+n[9]-640364487|0,o=(o<<4|o>>>28)+a|0,u+=(o^a^l)+n[12]-421815835|0,u=(u<<11|u>>>21)+o|0,l+=(u^o^a)+n[15]+530742520|0,l=(l<<16|l>>>16)+u|0,a+=(l^u^o)+n[2]-995338651|0,a=(a<<23|a>>>9)+l|0,o+=(l^(a|~u))+n[0]-198630844|0,o=(o<<6|o>>>26)+a|0,u+=(a^(o|~l))+n[7]+1126891415|0,u=(u<<10|u>>>22)+o|0,l+=(o^(u|~a))+n[14]-1416354905|0,l=(l<<15|l>>>17)+u|0,a+=(u^(l|~o))+n[5]-57434055|0,a=(a<<21|a>>>11)+l|0,o+=(l^(a|~u))+n[12]+1700485571|0,o=(o<<6|o>>>26)+a|0,u+=(a^(o|~l))+n[3]-1894986606|0,u=(u<<10|u>>>22)+o|0,l+=(o^(u|~a))+n[10]-1051523|0,l=(l<<15|l>>>17)+u|0,a+=(u^(l|~o))+n[1]-2054922799|0,a=(a<<21|a>>>11)+l|0,o+=(l^(a|~u))+n[8]+1873313359|0,o=(o<<6|o>>>26)+a|0,u+=(a^(o|~l))+n[15]-30611744|0,u=(u<<10|u>>>22)+o|0,l+=(o^(u|~a))+n[6]-1560198380|0,l=(l<<15|l>>>17)+u|0,a+=(u^(l|~o))+n[13]+1309151649|0,a=(a<<21|a>>>11)+l|0,o+=(l^(a|~u))+n[4]-145523070|0,o=(o<<6|o>>>26)+a|0,u+=(a^(o|~l))+n[11]-1120210379|0,u=(u<<10|u>>>22)+o|0,l+=(o^(u|~a))+n[2]+718787259|0,l=(l<<15|l>>>17)+u|0,a+=(u^(l|~o))+n[9]-343485551|0,a=(a<<21|a>>>11)+l|0,t[0]=o+t[0]|0,t[1]=a+t[1]|0,t[2]=l+t[2]|0,t[3]=u+t[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(To.stateIdentity),this}appendStr(t){const n=this._buffer8,o=this._buffer32;let a=this._bufferLength,l,u;for(u=0;u<t.length;u+=1){if(l=t.charCodeAt(u),l<128)n[a++]=l;else if(l<2048)n[a++]=(l>>>6)+192,n[a++]=l&63|128;else if(l<55296||l>56319)n[a++]=(l>>>12)+224,n[a++]=l>>>6&63|128,n[a++]=l&63|128;else{if(l=(l-55296)*1024+(t.charCodeAt(++u)-56320)+65536,l>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");n[a++]=(l>>>18)+240,n[a++]=l>>>12&63|128,n[a++]=l>>>6&63|128,n[a++]=l&63|128}a>=64&&(this._dataLength+=64,To._md5cycle(this._state,o),a-=64,o[0]=o[16])}return this._bufferLength=a,this}appendAsciiStr(t){const n=this._buffer8,o=this._buffer32;let a=this._bufferLength,l,u=0;for(;;){for(l=Math.min(t.length-u,64-a);l--;)n[a++]=t.charCodeAt(u++);if(a<64)break;this._dataLength+=64,To._md5cycle(this._state,o),a=0}return this._bufferLength=a,this}appendByteArray(t){const n=this._buffer8,o=this._buffer32;let a=this._bufferLength,l,u=0;for(;;){for(l=Math.min(t.length-u,64-a);l--;)n[a++]=t[u++];if(a<64)break;this._dataLength+=64,To._md5cycle(this._state,o),a=0}return this._bufferLength=a,this}getState(){const t=this._state;return{buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[t[0],t[1],t[2],t[3]]}}setState(t){const n=t.buffer,o=t.state,a=this._state;let l;for(this._dataLength=t.length,this._bufferLength=t.buflen,a[0]=o[0],a[1]=o[1],a[2]=o[2],a[3]=o[3],l=0;l<n.length;l+=1)this._buffer8[l]=n.charCodeAt(l)}end(t=!1){const n=this._bufferLength,o=this._buffer8,a=this._buffer32,l=(n>>2)+1;this._dataLength+=n;const u=this._dataLength*8;if(o[n]=128,o[n+1]=o[n+2]=o[n+3]=0,a.set(To.buffer32Identity.subarray(l),l),n>55&&(To._md5cycle(this._state,a),a.set(To.buffer32Identity)),u<=4294967295)a[14]=u;else{const d=u.toString(16).match(/(.*?)(.{0,8})$/);if(d===null)return;const p=parseInt(d[2],16),h=parseInt(d[1],16)||0;a[14]=p,a[15]=h}return To._md5cycle(this._state,a),t?this._state:To._hex(this._state)}}To.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]);To.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);To.hexChars="0123456789abcdef";To.hexOut=[];To.onePassHasher=new To;if(To.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592")throw new Error("Md5 self test failed.");const MJe=i.reactive({rowIndex:{},columnIndex:{}});function PJe(e,t){const n=i.inject("bcTableApi"),o=i.watch(e,l);i.onBeforeUnmount(()=>{o()});async function a(v){var T,I;const _=t.data.tables.find(D=>D.id===e.value);_.baseData.table_page_data.currentPage=v.currentPage,_.baseData.table_page_data.pageSize=v.pageSize;const y=await Mr.get(K8)||{},b=t.data.uuid?`${t.data.uuid}${_.id}`:_.id;y._user_pageSize={...y._user_pageSize,[b]:v.pageSize},await Mr.set(K8,y);const w=$t.cloneDeep(((I=(T=t.data)==null?void 0:T.form)==null?void 0:I.formData)||{}),C=$t.cloneDeep(zc.value[t.data.config_unique_id]);return $t.isEmpty(C)||$t.merge(w,C),n==null?void 0:n.setQueryData(Object.assign(w,{currentPage:v.currentPage,pageSize:v.pageSize})).then(()=>n.search(n.getActiveTab(),n.getQueryData(!1)))}function l(){return i.nextTick().then(()=>{var _;const v=(_=t.data)==null?void 0:_.btns.find(y=>["exportSelect","exportSelectedData"].includes(y.data.key));if(v){const{data:y}=n.getCheckboxRow();v.data.disabled=$t.isEmpty(y)}})}function u(v){const _=n==null?void 0:n.getApi(),y=_==null?void 0:_.getCheckboxRecords();if(!$t.isEmpty(y))n==null||n.setCheckboxRow(y,v.checked);else{const b=t.data.tables.find(w=>w.id===e.value).tableData;n==null||n.setCheckboxRow(b,v.checked)}l()}function d(v){n==null||n.setCheckboxRow([v.row],v.checked),l()}function p(v,_){return J7({mid:t.data.mid,id:t.data.config_unique_id,uid:t.data.uid},t.data.batch_id?`batch_${t.data.batch_id}`:"").then(async y=>{const b=t.data.batch_id?`table.${t.data.config_unique_id}`:"table",{tableConfig:w}=$t.get(y,b).tables.find(I=>I.id===_),C=w.find(I=>I.data.field===v.column.field);C&&(C.data.width=v.column.resizeWidth.toString()),await Z7({mid:t.data.mid,id:t.data.config_unique_id,uid:t.data.uid},y,t.data.batch_id?`batch_${t.data.batch_id}`:"");const T=w.reduce((I,D)=>(I[D.data.field]=D.data.width,I),{});await vne({table_id:_,uid:t.data.uid},T)})}function h(){setTimeout(()=>{n==null||n.search(n.getActiveTab(),n==null?void 0:n.getQueryData(!1))},16)}return{onPageChange:a,onTabClick:h,onCheckboxAll:u,onCheckboxChange:d,onResizableChange:p,onCheckboxSelect:l}}/*!
|
|
112
|
+
`}),console.debug(n)}function cXe(e){return{all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map(function(a){a(n)}),(o=e.get("*"))&&o.slice().map(function(a){a(t,n)})}}}const h8=cXe();function uXe(){const e=i.getCurrentScope(),t=new Map;let n={};function o(p,h){t.set(p,h),h8.on(p,h),n[p]&&(n[p].forEach(v=>h(v)),delete n[p])}function a(p,h){const v=(..._)=>{u(p,v),h(..._)};o(p,v)}function l(p,h){n[p]||(n[p]=[]),n[p].push(h),h8.emit(p,h)}function u(p,h){t.delete(p),h8.off(p,h)}function d(){for(const[p,h]of t.entries())u(p,h);n={}}return e&&i.onScopeDispose(d),{on:o,once:a,emit:l,off:u,clear:d}}function Q7(e){let t=e.replace(/(^\s*)|(\s*$)/g,"");return t=t.replace(/[^\d.]/g,""),t=t.replace(/^0{2}$/g,"0"),t=t.replace(/^\./g,""),t=t.replace(".","$#$").replace(/\./g,"").replace("$#$","."),t=t.replace(/^(\-)*(\d+)\.(\d\d).*$/,"$1$2.$3"),t}function dXe(e){let t=e.replace(/(^\s*)|(\s*$)/g,"");return t=t.replace(/[^\d]/g,""),t=t.replace(/^0/g,""),t=t.replace(/^[1-9]\d\d{1,3}$/,"100"),t}function fXe(e){let t=Q7(e);return t=t.replace(/^[1-9]\d\d{1,3}$/,"100"),t=t.replace(/^100\.$/,"100"),t}function hXe(e){let t=e.replace(/(^\s*)|(\s*$)/g,"");return t=t.replace(/[\.]*/g,""),t=t.replace(/(^0[\d]*)$/g,"0"),t=t.replace(/^0\d$/g,"0"),t=t.replace(/[^\d]/g,""),t}function pXe(e){let t=e.replace(/[\u4e00-\u9fa5\s]+/g,"");return t=t.replace(/(^\s*)|(\s*$)/g,""),t}function mXe(e){let t=e.replace(/[a-zA-Z]+/g,"");return t=t.replace(/(^\s*)|(\s*$)/g,""),t}function vXe(e){return e.replace(/(^\s*)|(\s*$)/g,"")}function gXe(e){let t=Q7(e);return t=t.toString().split("."),t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t=t.join("."),t}function _Xe(e,t="",n="red"){return t.replace(new RegExp(e,"gi"),`<span style='color: ${n}'>${e}</span>`)}function yXe(e,t="仟佰拾亿仟佰拾万仟佰拾元角分",n=""){e+="00";let o=e.indexOf(".");o>=0&&(e=e.substring(0,o)+e.substr(o+1,2)),t=t.substr(t.length-e.length);for(let a=0;a<e.length;a++)n+="零壹贰叁肆伍陆柒捌玖".substr(e.substr(a,1),1)+t.substr(a,1);return n=n.replace(/零角零分$/,"整").replace(/零[仟佰拾]/g,"零").replace(/零{2,}/g,"零").replace(/零([亿|万])/g,"$1").replace(/零+元/,"元").replace(/亿零{0,3}万/,"亿").replace(/^元/,"零元"),n}function bXe(e){return!!/^1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}$/.test(e)}function xXe(e){return!!/\d{3}-\d{8}|\d{4}-\d{7}/.test(e)}function EXe(e){return!!/^[a-zA-Z][a-zA-Z0-9_]{4,15}$/.test(e)}function wXe(e){return!!/^[a-zA-Z]\w{5,15}$/.test(e)}function SXe(e){return!!/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&\.*]+$)(?![a-zA-z\d]+$)(?![a-zA-z!@#$%^&\.*]+$)(?![\d!@#$%^&\.*]+$)[a-zA-Z\d!@#$%^&\.*]{6,16}$/.test(e)}function CXe(e){let t="";return/^(?:\d+|[a-zA-Z]+|[!@#$%^&\.*]+){6,16}$/.test(e)&&(t="弱"),/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&\.*]+$)[a-zA-Z\d!@#$%^&\.*]{6,16}$/.test(e)&&(t="中"),/^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&\.*]+$)(?![a-zA-z\d]+$)(?![a-zA-z!@#$%^&\.*]+$)(?![\d!@#$%^&\.*]+$)[a-zA-Z\d!@#$%^&\.*]{6,16}$/.test(e)&&(t="强"),t}function TXe(e){return!!/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/.test(e)}function IXe(e){return!!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function kXe(e){return!!/^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/.test(e)}function AXe(e){return!!/^[\u4e00-\u9fa5]{1,6}(·[\u4e00-\u9fa5]{1,6}){0,2}$/.test(e)}function DXe(e){return!!/^[1-9][0-9]{5}$/.test(e)}function xne(e){return!!/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)}function NXe(e){return!!/^(([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$/.test(e)}const RXe=i.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./bcIcon-BnzU9Y20.cjs")));function Ene(e){const t=J3e;for(const n in t)e.component(`ele-${t[n].name}`,t[n]);e.component("SvgIcon",RXe)}function wne(e){document.title=e}function Sne(e){let t="";const{query:n,params:o,meta:a}=e;return n!=null&&n.tagsViewName||o!=null&&o.tagsViewName?t=(n==null?void 0:n.tagsViewName)||(o==null?void 0:o.tagsViewName):t=a.title,t}const Cne=(e,t)=>{const n=new IntersectionObserver(o=>{o.forEach(a=>{if(a.isIntersecting){const{img:l,key:u}=a.target.dataset;a.target.src=l,a.target.onload=()=>{n.unobserve(a.target),t[u].loading=!1}}})});i.nextTick(()=>{document.querySelectorAll(e).forEach(o=>n.observe(o))})},Tne=()=>"",Ine=$t.cloneDeep;function kne(){return!!navigator.userAgent.match(/('phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone')/i)}function Ane(e){const t=[];for(const n in e){const o=[];for(const l in e[n])o.push(e[n][l]);o.filter(l=>l==="").length!==o.length&&t.push(e[n])}return t}function Dne(e){var o;const{origin:t,pathname:n}=window.location;if(e.link&&!((o=e==null?void 0:e.meta)!=null&&o.isIframe))return Mr.get("userInfo").then(a=>{var u;const l=pne(`${location.origin}${e.link}`,{isIframe:(u=e.meta)==null?void 0:u.isIframe,jti:a.jti});window.open(l,a.jti)});xne(e.link)?window.open(e.link):window.open(`${t}${n}`)}const OXe={elSvg:e=>{Ene(e)},useTitle:e=>{wne(e)},setTagsViewNameI18n(e){return Sne(e)},lazyImg:(e,t)=>{Cne(e,t)},globalComponentSize:()=>Tne(),deepClone:e=>Ine(e),isMobile:()=>kne(),handleEmpty:e=>Ane(e),handleOpenLink:e=>{Dne(e)}},dq={success(e){return Sa({message:e,type:"success"})},warning(e){return Sa({message:e,type:"warning"})},info(e){return Sa({message:e,type:"info"})},error(e){return Sa({message:e,type:"error"})}},Vc=new Proxy(Sa,{get(e,t){return t in dq?dq[t]:e[t]}}),MXe={install(e){e.config.globalProperties.$message=Vc}},ny={alert(e,t,n){const o=Rs.value;return Rs.value="",lg.alert(e,t,{...n,callback:a=>{typeof(n==null?void 0:n.callback)=="function"&&(Rs.value=o,n.callback(a,a))}})},confirm(e,t,n){const o=Rs.value;return Rs.value="",lg.confirm(e,t,n).finally(()=>{Rs.value=o})},prompt(e,t,n){const o=Rs.value;return Rs.value="",lg.prompt(e,t,n).finally(()=>{Rs.value=o})}},Y8=new Proxy(lg,{get(e,t){return t in ny?ny[t]:e[t]}}),PXe={install(e){e.config.globalProperties.$MessageBox=Y8,e.config.globalProperties.$messageBox=Y8,e.config.globalProperties.$confirm=ny.confirm,e.config.globalProperties.$alert=ny.alert,e.config.globalProperties.$prompt=ny.prompt}},fq={success(e){return S4({...e,type:"success"})},warning(e){return S4({...e,type:"warning"})},info(e){return S4({...e,type:"info"})},error(e){return S4({...e,type:"error"})}},Nne=new Proxy(S4,{get(e,t){return t in fq?fq[t]:e[t]}}),VXe={install(e){e.config.globalProperties.$notification=Nne}},LXe={class:"popup-wrapper"},BXe={class:"content"},FXe={key:0},$Xe=i.defineComponent({__name:"showPopup",props:{closeLoading:{type:Boolean,default:!1},showFooter:{type:Boolean,default:!0},confirmButtonText:{type:String,default:"确定"},cancelButtonText:{type:String,default:"取消"}},emits:["success"],setup(e){const t=i.ref(0),n=i.computed({get:()=>t.value>0,set:a=>{t.value+=a,t.value=Math.max(0,t.value)}});function o(a){n.value=a?1:-1}return i.provide("popupApi",{setLoading:o}),(a,l)=>{const u=i.resolveComponent("hs-button"),d=i.resolveDirective("loading");return i.withDirectives((i.openBlock(),i.createElementBlock("div",LXe,[i.createElementVNode("div",BXe,[i.createVNode(i.unref(LX),{locale:i.unref(tJ)},{default:i.withCtx(()=>[i.renderSlot(a.$slots,"default",{},void 0,!0)]),_:3},8,["locale"])]),e.showFooter?(i.openBlock(),i.createElementBlock("footer",FXe,[i.createVNode(u,{size:"default",onClick:l[0]||(l[0]=p=>a.$emit("success","cancel"))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.cancelButtonText),1)]),_:1}),i.createVNode(u,{type:"primary",size:"default",onClick:l[1]||(l[1]=p=>a.$emit("success","confirm"))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.confirmButtonText),1)]),_:1})])):i.createCommentVNode("",!0)])),[[d,!e.closeLoading&&n.value]])}}}),UXe=d7($Xe,[["__scopeId","data-v-304dce2d"]]);function i3(e){return i.getCurrentScope()?(i.onScopeDispose(e),!0):!1}function dd(e){return typeof e=="function"?e():i.unref(e)}const UT=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const zXe=e=>e!=null,HXe=Object.prototype.toString,WXe=e=>HXe.call(e)==="[object Object]",p8=()=>{},jXe=GXe();function GXe(){var e,t;return UT&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function qXe(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const o=t;t=void 0,o&&await o},n}function YXe(e){return i.getCurrentInstance()}function Rne(e,t=!0,n){YXe()?i.onMounted(e,n):t?e():i.nextTick(e)}function KXe(e,t,n){const o=i.watch(e,(...a)=>(i.nextTick(()=>o()),t(...a)),n);return o}const hl=UT?window:void 0,XXe=UT?window.document:void 0,eV=UT?window.navigator:void 0;function cs(e){var t;const n=dd(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Zi(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=hl):[t,n,o,a]=e,!t)return p8;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const l=[],u=()=>{l.forEach(v=>v()),l.length=0},d=(v,_,y,b)=>(v.addEventListener(_,y,b),()=>v.removeEventListener(_,y,b)),p=i.watch(()=>[cs(t),dd(a)],([v,_])=>{if(u(),!v)return;const y=WXe(_)?{..._}:_;l.push(...n.flatMap(b=>o.map(w=>d(v,b,w,y))))},{immediate:!0,flush:"post"}),h=()=>{p(),u()};return i3(h),h}let hq=!1;function JXe(e,t,n={}){const{window:o=hl,ignore:a=[],capture:l=!0,detectIframe:u=!1}=n;if(!o)return p8;jXe&&!hq&&(hq=!0,Array.from(o.document.body.children).forEach(C=>C.addEventListener("click",p8)),o.document.documentElement.addEventListener("click",p8));let d=!0;const p=C=>dd(a).some(T=>{if(typeof T=="string")return Array.from(o.document.querySelectorAll(T)).some(I=>I===C.target||C.composedPath().includes(I));{const I=cs(T);return I&&(C.target===I||C.composedPath().includes(I))}});function h(C){const T=dd(C);return T&&T.$.subTree.shapeFlag===16}function v(C,T){const I=dd(C),D=I.$.subTree&&I.$.subTree.children;return D==null||!Array.isArray(D)?!1:D.some(k=>k.el===T.target||T.composedPath().includes(k.el))}const _=C=>{const T=cs(e);if(C.target!=null&&!(!(T instanceof Element)&&h(e)&&v(e,C))&&!(!T||T===C.target||C.composedPath().includes(T))){if(C.detail===0&&(d=!p(C)),!d){d=!0;return}t(C)}};let y=!1;const b=[Zi(o,"click",C=>{y||(y=!0,setTimeout(()=>{y=!1},0),_(C))},{passive:!0,capture:l}),Zi(o,"pointerdown",C=>{const T=cs(e);d=!p(C)&&!!(T&&!C.composedPath().includes(T))},{passive:!0}),u&&Zi(o,"blur",C=>{setTimeout(()=>{var T;const I=cs(e);((T=o.document.activeElement)==null?void 0:T.tagName)==="IFRAME"&&!(I!=null&&I.contains(o.document.activeElement))&&t(C)},0)})].filter(Boolean);return()=>b.forEach(C=>C())}function ZXe(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function VM(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:a=hl,eventName:l="keydown",passive:u=!1,dedupe:d=!1}=o,p=ZXe(t);return Zi(a,l,v=>{v.repeat&&dd(d)||p(v)&&n(v)},u)}function QXe(){const e=i.ref(!1),t=i.getCurrentInstance();return t&&i.onMounted(()=>{e.value=!0},t),e}function d2(e){const t=QXe();return i.computed(()=>(t.value,!!e()))}function eJe(e,t,n={}){const{window:o=hl,...a}=n;let l;const u=d2(()=>o&&"MutationObserver"in o),d=()=>{l&&(l.disconnect(),l=void 0)},p=i.computed(()=>{const y=dd(e),b=(Array.isArray(y)?y:[y]).map(cs).filter(zXe);return new Set(b)}),h=i.watch(()=>p.value,y=>{d(),u.value&&y.size&&(l=new MutationObserver(t),y.forEach(b=>l.observe(b,a)))},{immediate:!0,flush:"post"}),v=()=>l==null?void 0:l.takeRecords(),_=()=>{h(),d()};return i3(_),{isSupported:u,stop:_,takeRecords:v}}function tJe(e={}){var t;const{window:n=hl,deep:o=!0,triggerOnRemoval:a=!1}=e,l=(t=e.document)!=null?t:n==null?void 0:n.document,u=()=>{var h;let v=l==null?void 0:l.activeElement;if(o)for(;v!=null&&v.shadowRoot;)v=(h=v==null?void 0:v.shadowRoot)==null?void 0:h.activeElement;return v},d=i.ref(),p=()=>{d.value=u()};return n&&(Zi(n,"blur",h=>{h.relatedTarget===null&&p()},!0),Zi(n,"focus",p,!0)),a&&eJe(l,h=>{h.filter(v=>v.removedNodes.length).map(v=>Array.from(v.removedNodes)).flat().forEach(v=>{v===d.value&&p()})},{childList:!0,subtree:!0}),p(),d}function nJe(e,t={}){const{window:n=hl}=t,o=d2(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const l=i.ref(!1),u=h=>{l.value=h.matches},d=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",u):a.removeListener(u))},p=i.watchEffect(()=>{o.value&&(d(),a=n.matchMedia(dd(e)),"addEventListener"in a?a.addEventListener("change",u):a.addListener(u),l.value=a.matches)});return i3(()=>{p(),d(),a=void 0}),l}function rJe(e,t={}){const{controls:n=!1,navigator:o=eV}=t,a=d2(()=>o&&"permissions"in o),l=i.shallowRef(),u={name:e},d=i.shallowRef(),p=()=>{var v,_;d.value=(_=(v=l.value)==null?void 0:v.state)!=null?_:"prompt"};Zi(l,"change",p);const h=qXe(async()=>{if(a.value){if(!l.value)try{l.value=await o.permissions.query(u)}catch{l.value=void 0}finally{p()}if(n)return i.toRaw(l.value)}});return h(),n?{state:d,isSupported:a,query:h}:d}function iJe(e={}){const{navigator:t=eV,requestPermissions:n=!1,constraints:o={audio:!0,video:!0},onUpdated:a}=e,l=i.ref([]),u=i.computed(()=>l.value.filter(w=>w.kind==="videoinput")),d=i.computed(()=>l.value.filter(w=>w.kind==="audioinput")),p=i.computed(()=>l.value.filter(w=>w.kind==="audiooutput")),h=d2(()=>t&&t.mediaDevices&&t.mediaDevices.enumerateDevices),v=i.ref(!1);let _;async function y(){h.value&&(l.value=await t.mediaDevices.enumerateDevices(),a==null||a(l.value),_&&(_.getTracks().forEach(w=>w.stop()),_=null))}async function b(){if(!h.value)return!1;if(v.value)return!0;const{state:w,query:C}=rJe("camera",{controls:!0});if(await C(),w.value!=="granted"){let T=!0;try{_=await t.mediaDevices.getUserMedia(o)}catch{_=null,T=!1}y(),v.value=T}else v.value=!0;return v.value}return h.value&&(n&&b(),Zi(t.mediaDevices,"devicechange",y),y()),{devices:l,ensurePermissions:b,permissionGranted:v,videoInputs:u,audioInputs:d,audioOutputs:p,isSupported:h}}function oJe(e={}){const{document:t=XXe}=e;if(!t)return i.ref("visible");const n=i.ref(t.visibilityState);return Zi(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function aJe(e,t,n={}){const{window:o=hl,...a}=n;let l;const u=d2(()=>o&&"ResizeObserver"in o),d=()=>{l&&(l.disconnect(),l=void 0)},p=i.computed(()=>{const _=dd(e);return Array.isArray(_)?_.map(y=>cs(y)):[cs(_)]}),h=i.watch(p,_=>{if(d(),u.value&&o){l=new ResizeObserver(t);for(const y of _)y&&l.observe(y,a)}},{immediate:!0,flush:"post"}),v=()=>{d(),h()};return i3(v),{isSupported:u,stop:v}}function sJe(e,t={width:0,height:0},n={}){const{window:o=hl,box:a="content-box"}=n,l=i.computed(()=>{var _,y;return(y=(_=cs(e))==null?void 0:_.namespaceURI)==null?void 0:y.includes("svg")}),u=i.ref(t.width),d=i.ref(t.height),{stop:p}=aJe(e,([_])=>{const y=a==="border-box"?_.borderBoxSize:a==="content-box"?_.contentBoxSize:_.devicePixelContentBoxSize;if(o&&l.value){const b=cs(e);if(b){const w=b.getBoundingClientRect();u.value=w.width,d.value=w.height}}else if(y){const b=Array.isArray(y)?y:[y];u.value=b.reduce((w,{inlineSize:C})=>w+C,0),d.value=b.reduce((w,{blockSize:C})=>w+C,0)}else u.value=_.contentRect.width,d.value=_.contentRect.height},n);Rne(()=>{const _=cs(e);_&&(u.value="offsetWidth"in _?_.offsetWidth:t.width,d.value="offsetHeight"in _?_.offsetHeight:t.height)});const h=i.watch(()=>cs(e),_=>{u.value=_?t.width:0,d.value=_?t.height:0});function v(){p(),h()}return{width:u,height:d,stop:v}}const lJe={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function cJe(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:o=!1,initialValue:a={x:0,y:0},window:l=hl,target:u=l,scroll:d=!0,eventFilter:p}=e;let h=null,v=0,_=0;const y=i.ref(a.x),b=i.ref(a.y),w=i.ref(null),C=typeof t=="function"?t:lJe[t],T=L=>{const $=C(L);h=L,$&&([y.value,b.value]=$,w.value="mouse"),l&&(v=l.scrollX,_=l.scrollY)},I=L=>{if(L.touches.length>0){const $=C(L.touches[0]);$&&([y.value,b.value]=$,w.value="touch")}},D=()=>{if(!h||!l)return;const L=C(h);h instanceof MouseEvent&&L&&(y.value=L[0]+l.scrollX-v,b.value=L[1]+l.scrollY-_)},k=()=>{y.value=a.x,b.value=a.y},O=p?L=>p(()=>T(L),{}):L=>T(L),V=p?L=>p(()=>I(L),{}):L=>I(L),P=p?()=>p(()=>D(),{}):()=>D();if(u){const L={passive:!0};Zi(u,["mousemove","dragover"],O,L),n&&t!=="movement"&&(Zi(u,["touchstart","touchmove"],V,L),o&&Zi(u,"touchend",k,L)),d&&t==="page"&&Zi(l,"scroll",P,{passive:!0})}return{x:y,y:b,sourceType:w}}function uJe(e,t={}){const{handleOutside:n=!0,window:o=hl}=t,a=t.type||"page",{x:l,y:u,sourceType:d}=cJe(t),p=i.ref(e??(o==null?void 0:o.document.body)),h=i.ref(0),v=i.ref(0),_=i.ref(0),y=i.ref(0),b=i.ref(0),w=i.ref(0),C=i.ref(!0);let T=()=>{};return o&&(T=i.watch([p,l,u],()=>{const I=cs(p);if(!I||!(I instanceof Element))return;const{left:D,top:k,width:O,height:V}=I.getBoundingClientRect();_.value=D+(a==="page"?o.pageXOffset:0),y.value=k+(a==="page"?o.pageYOffset:0),b.value=V,w.value=O;const P=l.value-_.value,L=u.value-y.value;C.value=O===0||V===0||P<0||L<0||P>O||L>V,(n||!C.value)&&(h.value=P,v.value=L)},{immediate:!0}),Zi(document,"mouseleave",()=>{C.value=!0})),{x:l,y:u,sourceType:d,elementX:h,elementY:v,elementPositionX:_,elementPositionY:y,elementHeight:b,elementWidth:w,isOutside:C,stop:T}}function dJe(e={}){const{touch:t=!0,drag:n=!0,capture:o=!1,initialValue:a=!1,window:l=hl}=e,u=i.ref(a),d=i.ref(null);if(!l)return{pressed:u,sourceType:d};const p=_=>()=>{u.value=!0,d.value=_},h=()=>{u.value=!1,d.value=null},v=i.computed(()=>cs(e.target)||l);return Zi(v,"mousedown",p("mouse"),{passive:!0,capture:o}),Zi(l,"mouseleave",h,{passive:!0,capture:o}),Zi(l,"mouseup",h,{passive:!0,capture:o}),n&&(Zi(v,"dragstart",p("mouse"),{passive:!0,capture:o}),Zi(l,"drop",h,{passive:!0,capture:o}),Zi(l,"dragend",h,{passive:!0,capture:o})),t&&(Zi(v,"touchstart",p("touch"),{passive:!0,capture:o}),Zi(l,"touchend",h,{passive:!0,capture:o}),Zi(l,"touchcancel",h,{passive:!0,capture:o})),{pressed:u,sourceType:d}}function fJe(e={}){var t,n;const o=i.ref((t=e.enabled)!=null?t:!1),a=i.ref((n=e.autoSwitch)!=null?n:!0),l=i.ref(e.constraints),{navigator:u=eV}=e,d=d2(()=>{var C;return(C=u==null?void 0:u.mediaDevices)==null?void 0:C.getUserMedia}),p=i.shallowRef();function h(C){switch(C){case"video":{if(l.value)return l.value.video||!1;break}case"audio":{if(l.value)return l.value.audio||!1;break}}}async function v(){if(!(!d.value||p.value))return p.value=await u.mediaDevices.getUserMedia({video:h("video"),audio:h("audio")}),p.value}function _(){var C;(C=p.value)==null||C.getTracks().forEach(T=>T.stop()),p.value=void 0}function y(){_(),o.value=!1}async function b(){return await v(),p.value&&(o.value=!0),p.value}async function w(){return _(),await b()}return i.watch(o,C=>{C?v():_()},{immediate:!0}),i.watch(l,()=>{a.value&&p.value&&w()},{immediate:!0}),i3(()=>{y()}),{isSupported:d,stream:p,start:b,stop:y,restart:w,constraints:l,enabled:o,autoSwitch:a}}function hJe(e={}){const{window:t=hl,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:l=!0,type:u="inner"}=e,d=i.ref(n),p=i.ref(o),h=()=>{t&&(u==="outer"?(d.value=t.outerWidth,p.value=t.outerHeight):l?(d.value=t.innerWidth,p.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,p.value=t.document.documentElement.clientHeight))};if(h(),Rne(h),Zi("resize",h,{passive:!0}),a){const v=nJe("(orientation: portrait)");i.watch(v,()=>h())}return{width:d,height:p}}const Ey=i.ref(1);function pJe(e="code",t=!0){const n=i.ref();let o=[],a={};const l=oJe();let u=()=>{},d=()=>{};function p(_){h(),u=i.watch(Ey,(w,C)=>{w>C?h(C):p(w)}),d=i.watch(l,w=>{w==="hidden"&&(o=[])});const y=VM(w=>{o.push(w[e]),v(w)},{dedupe:!0,eventName:"keydown"}),b=VM(w=>{o=o.filter(C=>C!==w[e])},{dedupe:!0,eventName:"keyup"});$t.set(a,_??Ey.value,{onKeydown:y,onKeyup:b})}function h(_=-1){var w;if(o=[],_===-1){(w=Object.values(a))==null||w.forEach(C=>{var T,I;typeof C.onKeydown=="function"&&((T=C==null?void 0:C.onKeydown)==null||T.call(C)),typeof C.onKeyup=="function"&&((I=C==null?void 0:C.onKeyup)==null||I.call(C))}),a={};return}const{onKeydown:y,onKeyup:b}=$t.get(a,_,{});typeof y=="function"&&(y==null||y()),typeof b=="function"&&(b==null||b()),delete a[_],u(),d()}function v(_){var w,C,T,I,D,k;const y=(w=n.value)==null?void 0:w.querySelectorAll("[shortcut]");if(!y)return;let b;for(let O in y)if((((C=y[O])==null?void 0:C.getAttribute)&&((T=y[O])==null?void 0:T.getAttribute("shortcut"))||"")===String(o)){b=y[O];break}if(!(!b||b!=null&&b.disabled||b!=null&&b.readOnly||(I=b==null?void 0:b.className)!=null&&I.includes("disabled"))){if(_.preventDefault(),(D=b==null?void 0:b.className)!=null&&D.includes("el-select")){if(b.querySelector(".is-disabled"))return;(k=b.querySelector("input"))==null||k.click();return}if((b==null?void 0:b.tagName)==="TEXTAREA"){typeof(b==null?void 0:b.focus)=="function"&&(b==null||b.focus()),typeof(b==null?void 0:b.click)=="function"&&(b==null||b.click());return}typeof(b==null?void 0:b.click)=="function"&&(b==null||b.click())}}return i.onMounted(()=>{t&&p()}),i.onBeforeUnmount(()=>{h()}),i.onDeactivated(()=>{o=[]}),{bcBoxRef:n,start:p,end:h}}let LM,One;function Mne(e,t,n){var w;const o=Rs.value;Rs.value="";let a,l=()=>{};const u={...n.slots,title:((w=n.slots)==null?void 0:w.title)||(()=>n.title),default:()=>i.h(UXe,{onSuccess:y,showFooter:n.showFooter,closeLoading:n.closeLoading,confirmButtonText:n.confirmButtonText,cancelButtonText:n.cancelButtonText},{default:()=>i.h(e,{...t,onVnodeMounted:_,onReady:b,close:v})})};let d=i.h(n2,Object.assign({},One,{...$t.omit(n,["success"]),className:"custom-popup ".concat((n==null?void 0:n.className)||""),modelValue:!0,onHide(C){a(),typeof(n==null?void 0:n.onHide)=="function"&&n.onHide(C)},slots:u}));LM&&(d.appContext=LM);let p=i.watch(()=>{var C;return(C=K7.value)==null?void 0:C.value.path},()=>{a()});function h(){Ey.value++;const C=document.createDocumentFragment();i.render(d,C),document.body.appendChild(C);const T=setTimeout(()=>{if(!$t.isEmpty(n==null?void 0:n.position)){const I=n.position;if(/%/.test(I==null?void 0:I.top)||/%/.test(I==null?void 0:I.left)){/%/.test(I==null?void 0:I.top)&&(d.el.nextSibling.querySelector(".vxe-modal--box").style.top=`${I.top}`),/%/.test(I==null?void 0:I.left)&&(d.el.nextSibling.querySelector(".vxe-modal--box").style.top=`${I.left}`);return}(I==null?void 0:I.top)>-1&&(d.el.nextSibling.querySelector(".vxe-modal--box").style.top=`${I.top}px`),(I==null?void 0:I.left)>-1&&(d.el.nextSibling.querySelector(".vxe-modal--box").style.left=`${I.left}px`)}},100);return()=>{Ey.value--,Rs.value=o,i.render(null,C),clearTimeout(T),d=null,p&&p()}}a=h();async function v(C){a(),typeof n.success=="function"&&n.success({type:C,data:C})}function _(C){var T;l=(T=C.component.exposed)==null?void 0:T.getData}async function y(C){const T=await l();typeof n.success=="function"&&n.success({type:C,data:T,close:a})}function b(C){typeof n.onReady=="function"&&n.onReady(C)}return a}const mJe={install(e,t){LM=e._context,One=t}};function vJe({option:e,row:t}){return t.field1===Number(e.data)}const gJe=(e,t)=>{const n={},o=(t==null?void 0:t.reduce((a,l)=>(a[l.data.field]=!!l.data.formatAmount,$t.set(n,l.data.field,!!l.data.formatFooter),a),{}))||{};return[e.columns.map((a,l)=>{if(l===0)return"合计";if(!$t.isEmpty(e.data,"0.customTotal")){const u=$t.get(e.data,`0.customTotal.${a.field}`,"");return($t.get(o,a.field)||$t.get(n,a.field))&&u!==""?P7(u):u}return""})]};function _Je(e){console.debug("params.$table.getData()",e.$table.getData())}function yJe(e,t){console.debug("form =>> 表单单击",e,t)}const BM={filterAgeMethod:vJe,footerMethod:gJe,cellDetailMethod:_Je,formBtnMethod:yJe},Rs=i.ref(""),FM=i.ref({}),Ds=i.ref({}),zg=i.ref(!1),zc=i.ref({}),Pne=i.ref({}),bJe=i.ref({}),xJe=i.ref(!0),Vne=i.ref({}),EJe=["checkbox","radio","expand","seq","html"],K8="system_params",zT="custome_field_",X8="query_field_",wJe="column_field_",tV="_REGEXP_",Lne="force_update_list",Bne={},SJe=["hs-select","bc-tree-search","hs-tree-select","hs-radio","hs-checkbox","hs-upload","hs-date-picker"],CJe="Home,PrevJump,PrevPage,JumpNumber,NextPage,NextJump,End,Sizes,FullJump,Total".split(","),k4=(e,t)=>e.isSimulate&&!e.requestUrl||e.isGetCanche?jne(e,t):Pi(t);function nV(e){return Vne.value[e.uniqueId]?!e.isShow||!e.fieldShow?!1:e.userFieldShow:!0}function TJe(e){return JSON.stringify(e,function(t,n){return n instanceof RegExp?`${tV}${n.toString()}`:n})}function Ip(e){const t=/method=/,n=/functionBody=/,o=/string=/;function a(l){for(let u in l){if(l[`${u}_1`])l[u]=BM[l[`${u}_1`]];else if(t.test(l[u])&&l[u].split("=")[1]){const d=l[u].replace(t,"");l[`${u}_1`]=d,l[u]=BM[d]}if(l[`${u}_2`])l[u]=new Function("return "+l[`${u}_2`])();else if(n.test(l[u])&&l[u].split("=")[1]){const d=l[u].replace(n,"");l[`${u}_2`]=d,l[u]=new Function("return "+d)()}if(o.test(l[u]))if(l[u].split("=")[1]){const d=l[u].replace(o,"");l[u]=new Function("return "+d)()}else l[u]=[];if(typeof l[u]=="string"&&l[u].startsWith(tV)){const d=l[u].slice(9).replace(/\/$/,"");l[u]=new RegExp(d)}u==="formatAmount"&&l[u]&&$t.set(l,"formatter",function(d){var p,h;return P7((h=d==null?void 0:d.row)==null?void 0:h[(p=d==null?void 0:d.column)==null?void 0:p.field])}),$t.isObject(l[u])&&!$t.isEmpty(l[u])&&a(l[u]),$t.isEmpty($t.get(l,`${u}.children`))||a($t.get(l,`${u}.children`))}}return a(e),e}function Fne(e){return e.groupMark?(e.el2=e.el,e.groupField=zT+e.groupMark,"bc-group"):$ne(e.el)}function $ne(e){return{"hs-select":"bc-select","hs-tree-select":"bc-tree-select","hs-radio":"bc-radio","hs-checkbox":"bc-checkbox","hs-upload":"bc-upload"}[e]||e}async function Une(e){if(!e.form)return Promise.resolve({});const t=e.form,n=t==null?void 0:t.formConfig.map(l=>{const u=Ip(l.data.elData);return l.data.elData={...u==null?void 0:u.attrs,...$t.omit(u,"attrs")},l.data.baseData.el=Fne(l.data.baseData),l}),o=$t.omit(Ip(e.form.baseData),["inline","gutter","justify","align"]),a=$t.cloneDeep($t.get(zc.value,`${e==null?void 0:e.config_unique_id}`));return zg.value&&a&&(e!=null&&e.form)&&(e.form.formData=$t.cloneDeep(a)),{id:e.form.id,baseData:o,formConfig:n,formData:e.form.formData}}function IJe(e){return Promise.all(e.tables.map(t=>kJe(t,e)))}async function kJe(e,t){var p,h,v,_,y,b,w,C;const n=$t.cloneDeep(e);if(n.baseData=Ip($t.omit(n.baseData,"data")),n.baseData.mid=t.mid,n.baseData.config_unique_id=t.config_unique_id,n.baseData.is_apply_page){const T=await Mr.get(K8),I=n.baseData.uuid?`${n.baseData.uuid}${n.baseData.id}`:n.baseData.id,D=$t.get(T,`_user_pageSize.${I}`,T==null?void 0:T._sys_pageSize);n.baseData.table_page_data.pageSize=Number(D??((p=n.baseData.table_page_data)==null?void 0:p.pageSize)??20),$t.isEmpty((h=n.baseData.table_page_data)==null?void 0:h.layouts)&&(n.baseData.table_page_data.layouts=CJe),$t.isEmpty(T==null?void 0:T._sys_pageSize_s)||(n.baseData.table_page_data.pageSizes=T._sys_pageSize_s)}n.tableConfig=n.tableConfig.map(T=>($t.isEmpty(T==null?void 0:T.children)?T.data=Ip(T.data):T.children=Ip(T.children),T));let o={};const a=$t.get(Pne.value,`query.${n.id}`)||[],l=$t.get(zc.value,`${(v=n==null?void 0:n.baseData)==null?void 0:v.config_unique_id}`);zg.value&&((y=(_=t==null?void 0:t.form)==null?void 0:_.baseData)!=null&&y.isShowQuerySearch)&&l?a.forEach(T=>{o[T]=l[T]}):o=$t.cloneDeep((b=t==null?void 0:t.form)==null?void 0:b.formData);const u=await rV(n.baseData,o,(C=(w=t==null?void 0:t.form)==null?void 0:w.baseData)==null?void 0:C.isShowQuerySearch),d=T=>{var I;return(I=T.treeConfig)!=null&&I.transform?delete T.stripe:delete T.treeConfig,$t.has(T==null?void 0:T.rowConfig,"height")&&($t.set(T,"cellConfig.height",$t.get(T,"rowConfig.height")),$t.unset(T,"rowConfig.height")),T};return{id:n.id,baseData:d(n.baseData),tableConfig:n.tableConfig,tableData:u}}async function rV(e,t,n=!1){let o=t&&$t.cloneDeep(t);if(typeof FM.value[e.id]=="function"){const l=await FM.value[e.id](o,e);$t.isEmpty(l)?n||(o=zc.value[e.config_unique_id]):o=l}const a=await zne(e,o,n);if(!e.isSimulate&&!e.requestUrl){console.log("未配置接口,不请求数据");const l=$t.get(Bne,e.id,[]);return e.is_apply_page&&(e.table_page_data.total=l.length),l}return e.isCloseInitData&&zg.value&&(e.isCloseInitData=!1),e.isCloseInitData&&!zg.value?(e.isCloseInitData=!1,[]):(e.loading=!0,e.isSplitInterface?k4(e,{...a,params:{...a.params,url_type:"data"}}).then(l=>{var u,d;if(e.is_apply_page){const p=((u=l.data)==null?void 0:u.pageList)??((d=l.data)==null?void 0:d.customPageList)??[];return typeof Ds.value[e.id]=="function"?Ds.value[e.id](p):p}else{const p=l.data||[];return typeof Ds.value[e.id]=="function"?Ds.value[e.id](p):p}}).finally(()=>{e.loading=!1}):e.isRemoteTotal?Promise.all([k4(e,{...a,params:{...a.params,url_type:"total"}}),k4(e,{...a,params:{...a.params,url_type:"data"}})]).then(([l,u])=>{var p,h,v;let d=((p=l==null?void 0:l.data)==null?void 0:p.customTotal)||{};if(e.is_apply_page){const y=(((h=u.data)==null?void 0:h.pageList)??((v=u.data)==null?void 0:v.customPageList)??[]).map(b=>Object.assign(b,{customTotal:d}));return typeof Ds.value[e.id]=="function"?Ds.value[e.id](y):y}else{const y=((u==null?void 0:u.data)||[]).map(b=>Object.assign(b,{customTotal:d}));return typeof Ds.value[e.id]=="function"?Ds.value[e.id](y):y}}).finally(()=>{e.loading=!1}):k4(e,a).then(l=>{var d,p,h;const u=((d=l==null?void 0:l.data)==null?void 0:d.customTotal)||{};if(e.is_apply_page){e.table_page_data.currentPage=l.data.page.currentPage||1,e.table_page_data.pageSize=l.data.page.pageSize,e.table_page_data.total=l.data.page.totalItem;const _=(((p=l.data)==null?void 0:p.pageList)??((h=l.data)==null?void 0:h.customPageList)??[]).map(y=>Object.assign(y,{customTotal:u}));return typeof Ds.value[e.id]=="function"?Ds.value[e.id](_):_}else{const _=(l.data||[]).map(y=>Object.assign(y,{customTotal:u}));return typeof Ds.value[e.id]=="function"?Ds.value[e.id](_):_}}).finally(()=>{e.loading=!1}))}function AJe(e,t,n){const o=n&&$t.cloneDeep(n),a=async(l,u)=>{if(l.baseData.isRemoteTotal||l.baseData.isSplitInterface){const d=await zne(l.baseData,o);return Promise.all([l.baseData.is_apply_page?k4(l.baseData,{...d,params:{...d.params,url_type:"count"}}):Promise.resolve(null)]).then(async p=>{var h,v,_,y,b,w,C,T,I;if(l.baseData.is_apply_page){const[D]=p;l.baseData.table_page_data.currentPage!==((v=(h=D==null?void 0:D.data)==null?void 0:h.page)==null?void 0:v.currentPage)&&(l.baseData.table_page_data.currentPage=((y=(_=D==null?void 0:D.data)==null?void 0:_.page)==null?void 0:y.currentPage)||1,l.tableData=await rV(l.baseData,o,(C=(w=(b=u.value)==null?void 0:b.form)==null?void 0:w.baseData)==null?void 0:C.isShowQuerySearch)),l.baseData.table_page_data.currentPage=((I=(T=D==null?void 0:D.data)==null?void 0:T.page)==null?void 0:I.currentPage)||1,l.baseData.table_page_data.pageSize=D.data.page.pageSize,l.baseData.table_page_data.total=D.data.page.totalItem}return p})}};return t?Promise.all(e.value.tables.filter(l=>l.id===t).map(l=>a(l,e))):Promise.all(e.value.tables.map(l=>a(l,e)))}async function zne(e,t,n=!1){var b,w;const o=(e==null?void 0:e.proxy)||"scmp-web",a=e.method||"get",l={url:"/"+o+e.requestUrl,method:a},u={currentPage:((b=e.table_page_data)==null?void 0:b.currentPage)||1,pageSize:((w=e.table_page_data)==null?void 0:w.pageSize)||10};$t.set(e,"scrollX.enabled",u.pageSize>=50),$t.set(e,"scrollX.gt",0),$t.set(e,"scrollY.enabled",u.pageSize>=50),$t.set(e,"scrollY.gt",0);const d=Hne(e,t,!0,!0,n),p=e.requestParams?new Function("return "+e.requestParams)():{},h=$t.cloneDeep(Object.assign({},d,e.is_apply_page?u:{},p)),v=Object.keys(h).filter(C=>C.startsWith("_")).map(C=>{const[T,I,D]=C.split("|");return{type:T.slice(1),key:I,code:D,value:h[C]}}),_=Object.keys(h).filter(C=>!C.startsWith("_")).reduce((C,T)=>($t.set(C,T,h[T]),C),{}),y=v.length>0?Object.assign({qry_json_data:JSON.stringify(v)},_):_;return a==="get"?l.params=y:l.data=y,l}function Hne(e,t,n=!0,o=!0,a=!1){const l=Gne(e.config_unique_id);a&&t&&Object.keys(t).forEach(v=>{zc.value[e.config_unique_id]||(zc.value[e.config_unique_id]={}),zc.value[e.config_unique_id][v]=t[v]});const u=a?t||{}:zc.value[e.config_unique_id]||{},d=$t.cloneDeep(zg.value?Object.assign(l,t||{},u):Object.assign(u,l,t||{}));if($t.isEmpty(d))return{};const p=new RegExp(zT),h=new RegExp(X8);for(let v in d){Array.isArray(d[v])&&(d[v]=String(d[v]));const _=p.test(v),y=h.test(v),b=d[`${X8}${e.id}`];if(y&&b&&o){const C=Object.keys(b).reduce((T,I)=>(b[I]&&(typeof b[I]=="string"?T[I]=b[I].trim():T[I]=b[I]),T),{});Object.assign(d,C)}(_||y)&&delete d[v],(typeof d[v]=="string"&&d[v]===""||d[v]===void 0)&&n&&delete d[v]}return d}async function DJe(e){const t=$t.cloneDeep(e);if(t.preParsing)return t;const n=await Une(t),o=(await IJe(t)).filter(Boolean);return u2.value==!0&&bne(o),{...t,form:n,tables:o}}function NJe(e){var l;const t=$t.cloneDeep(e);if(t.preParsing)return t;const n=Ip(t.data),o=Wne(t);for(let u in n)$t.isEmpty(n[u])||$t.set(n,`${u}.${Lne}`,o);const a=((l=t.form)==null?void 0:l.map(u=>(u.config=Ip(u.config),u)))||[];return u2.value==!0&&console.debug(yne(t)),{...t,data:n,form:a}}function Wne(e){var t,n,o,a;return((a=(o=(n=(t=e==null?void 0:e.form)==null?void 0:t.filter(l=>l.formItemType==="form"))==null?void 0:n.map(l=>l.config.map(d=>d.config.filter(p=>nV({...p.baseData,uniqueId:e.config_unique_id})).map(p=>p.baseData.prop).toString())))==null?void 0:o.flat(2))==null?void 0:a.filter(Boolean))||[]}function RJe({mid:e,id:t,uid:n,tableId:o,uuid:a,data:l,pageSize:u,is_apply_page:d}){const p=a?`cache_${o}_${a}`:`cache_${o}`;return Z7({mid:e,id:t,uid:n},$t.cloneDeep(l),p).then(()=>{const h=Math.ceil(l.length/u);return{currentPage:h,totalPage:l.length,data:d?l.slice((h-1)*u,h*u):l,currentData:d?l.slice(0,u):l}})}async function jne(e,t){const n=e.uuid,o=n?`cache_${e.id}_${n}`:`cache_${e.id}`,a=e.mid||Qo().mid;return J7({mid:a,id:e.config_unique_id},o).then(l=>{if(!t)return l||[];let u=l||[];const d=u.length,p=t.method.toLocaleLowerCase()==="get"?"params":"data";let h=t[p].currentPage||1,v=t[p].pageSize;const _=(b,w,C)=>{const T=(I,D)=>I[w]<D[w]?C==="asc"?-1:1:I[w]>D[w]?C==="asc"?1:-1:0;return b.sort(T)};if($t.get(t,`${p}.query_order_by`)){const[b,w]=$t.get(t,`${p}.query_order_by`).split(" ");u=_(u,b,w)}return e.is_apply_page?{code:1,data:{customPageList:u.slice((h-1)*v,h*v),page:{currentPage:h,pageSize:v,totalItem:d}}}:{code:1,data:u}})}function OJe(e,t){var u,d,p;const n=t||$t.omit((u=e==null?void 0:e.form)==null?void 0:u.formData,["currentPage","pageSize"]),o=((p=(d=e==null?void 0:e.form)==null?void 0:d.formConfig)==null?void 0:p.reduce((h,v)=>(nV({...v.data.baseData,uniqueId:e==null?void 0:e.config_unique_id})&&Object.assign(h,{[v.data.baseData.prop]:""}),h),{}))||{};if($t.isEmpty(o))return{};const a=new RegExp(zT),l=new Set(Object.keys(o));return Object.keys(n).forEach(h=>{a.test(h)?n[h].some(v=>l.has(v))&&n[h].map(v=>{Object.assign(o,{[v]:n[v]})}):Reflect.has(o,h)&&(o[h]=n[h])}),o}function Gne(e){const t=new RegExp(X8),n=$t.get(zc.value,e,{});return Object.keys(n).reduce((o,a)=>(t.test(a)&&Object.assign(o,{[a]:$t.get(n,a,{})}),o),{})}class To{constructor(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}static hashStr(t,n=!1){return this.onePassHasher.start().appendStr(t).end(n)}static hashAsciiStr(t,n=!1){return this.onePassHasher.start().appendAsciiStr(t).end(n)}static _hex(t){const n=To.hexChars,o=To.hexOut;let a,l,u,d;for(d=0;d<4;d+=1)for(l=d*8,a=t[d],u=0;u<8;u+=2)o[l+1+u]=n.charAt(a&15),a>>>=4,o[l+0+u]=n.charAt(a&15),a>>>=4;return o.join("")}static _md5cycle(t,n){let o=t[0],a=t[1],l=t[2],u=t[3];o+=(a&l|~a&u)+n[0]-680876936|0,o=(o<<7|o>>>25)+a|0,u+=(o&a|~o&l)+n[1]-389564586|0,u=(u<<12|u>>>20)+o|0,l+=(u&o|~u&a)+n[2]+606105819|0,l=(l<<17|l>>>15)+u|0,a+=(l&u|~l&o)+n[3]-1044525330|0,a=(a<<22|a>>>10)+l|0,o+=(a&l|~a&u)+n[4]-176418897|0,o=(o<<7|o>>>25)+a|0,u+=(o&a|~o&l)+n[5]+1200080426|0,u=(u<<12|u>>>20)+o|0,l+=(u&o|~u&a)+n[6]-1473231341|0,l=(l<<17|l>>>15)+u|0,a+=(l&u|~l&o)+n[7]-45705983|0,a=(a<<22|a>>>10)+l|0,o+=(a&l|~a&u)+n[8]+1770035416|0,o=(o<<7|o>>>25)+a|0,u+=(o&a|~o&l)+n[9]-1958414417|0,u=(u<<12|u>>>20)+o|0,l+=(u&o|~u&a)+n[10]-42063|0,l=(l<<17|l>>>15)+u|0,a+=(l&u|~l&o)+n[11]-1990404162|0,a=(a<<22|a>>>10)+l|0,o+=(a&l|~a&u)+n[12]+1804603682|0,o=(o<<7|o>>>25)+a|0,u+=(o&a|~o&l)+n[13]-40341101|0,u=(u<<12|u>>>20)+o|0,l+=(u&o|~u&a)+n[14]-1502002290|0,l=(l<<17|l>>>15)+u|0,a+=(l&u|~l&o)+n[15]+1236535329|0,a=(a<<22|a>>>10)+l|0,o+=(a&u|l&~u)+n[1]-165796510|0,o=(o<<5|o>>>27)+a|0,u+=(o&l|a&~l)+n[6]-1069501632|0,u=(u<<9|u>>>23)+o|0,l+=(u&a|o&~a)+n[11]+643717713|0,l=(l<<14|l>>>18)+u|0,a+=(l&o|u&~o)+n[0]-373897302|0,a=(a<<20|a>>>12)+l|0,o+=(a&u|l&~u)+n[5]-701558691|0,o=(o<<5|o>>>27)+a|0,u+=(o&l|a&~l)+n[10]+38016083|0,u=(u<<9|u>>>23)+o|0,l+=(u&a|o&~a)+n[15]-660478335|0,l=(l<<14|l>>>18)+u|0,a+=(l&o|u&~o)+n[4]-405537848|0,a=(a<<20|a>>>12)+l|0,o+=(a&u|l&~u)+n[9]+568446438|0,o=(o<<5|o>>>27)+a|0,u+=(o&l|a&~l)+n[14]-1019803690|0,u=(u<<9|u>>>23)+o|0,l+=(u&a|o&~a)+n[3]-187363961|0,l=(l<<14|l>>>18)+u|0,a+=(l&o|u&~o)+n[8]+1163531501|0,a=(a<<20|a>>>12)+l|0,o+=(a&u|l&~u)+n[13]-1444681467|0,o=(o<<5|o>>>27)+a|0,u+=(o&l|a&~l)+n[2]-51403784|0,u=(u<<9|u>>>23)+o|0,l+=(u&a|o&~a)+n[7]+1735328473|0,l=(l<<14|l>>>18)+u|0,a+=(l&o|u&~o)+n[12]-1926607734|0,a=(a<<20|a>>>12)+l|0,o+=(a^l^u)+n[5]-378558|0,o=(o<<4|o>>>28)+a|0,u+=(o^a^l)+n[8]-2022574463|0,u=(u<<11|u>>>21)+o|0,l+=(u^o^a)+n[11]+1839030562|0,l=(l<<16|l>>>16)+u|0,a+=(l^u^o)+n[14]-35309556|0,a=(a<<23|a>>>9)+l|0,o+=(a^l^u)+n[1]-1530992060|0,o=(o<<4|o>>>28)+a|0,u+=(o^a^l)+n[4]+1272893353|0,u=(u<<11|u>>>21)+o|0,l+=(u^o^a)+n[7]-155497632|0,l=(l<<16|l>>>16)+u|0,a+=(l^u^o)+n[10]-1094730640|0,a=(a<<23|a>>>9)+l|0,o+=(a^l^u)+n[13]+681279174|0,o=(o<<4|o>>>28)+a|0,u+=(o^a^l)+n[0]-358537222|0,u=(u<<11|u>>>21)+o|0,l+=(u^o^a)+n[3]-722521979|0,l=(l<<16|l>>>16)+u|0,a+=(l^u^o)+n[6]+76029189|0,a=(a<<23|a>>>9)+l|0,o+=(a^l^u)+n[9]-640364487|0,o=(o<<4|o>>>28)+a|0,u+=(o^a^l)+n[12]-421815835|0,u=(u<<11|u>>>21)+o|0,l+=(u^o^a)+n[15]+530742520|0,l=(l<<16|l>>>16)+u|0,a+=(l^u^o)+n[2]-995338651|0,a=(a<<23|a>>>9)+l|0,o+=(l^(a|~u))+n[0]-198630844|0,o=(o<<6|o>>>26)+a|0,u+=(a^(o|~l))+n[7]+1126891415|0,u=(u<<10|u>>>22)+o|0,l+=(o^(u|~a))+n[14]-1416354905|0,l=(l<<15|l>>>17)+u|0,a+=(u^(l|~o))+n[5]-57434055|0,a=(a<<21|a>>>11)+l|0,o+=(l^(a|~u))+n[12]+1700485571|0,o=(o<<6|o>>>26)+a|0,u+=(a^(o|~l))+n[3]-1894986606|0,u=(u<<10|u>>>22)+o|0,l+=(o^(u|~a))+n[10]-1051523|0,l=(l<<15|l>>>17)+u|0,a+=(u^(l|~o))+n[1]-2054922799|0,a=(a<<21|a>>>11)+l|0,o+=(l^(a|~u))+n[8]+1873313359|0,o=(o<<6|o>>>26)+a|0,u+=(a^(o|~l))+n[15]-30611744|0,u=(u<<10|u>>>22)+o|0,l+=(o^(u|~a))+n[6]-1560198380|0,l=(l<<15|l>>>17)+u|0,a+=(u^(l|~o))+n[13]+1309151649|0,a=(a<<21|a>>>11)+l|0,o+=(l^(a|~u))+n[4]-145523070|0,o=(o<<6|o>>>26)+a|0,u+=(a^(o|~l))+n[11]-1120210379|0,u=(u<<10|u>>>22)+o|0,l+=(o^(u|~a))+n[2]+718787259|0,l=(l<<15|l>>>17)+u|0,a+=(u^(l|~o))+n[9]-343485551|0,a=(a<<21|a>>>11)+l|0,t[0]=o+t[0]|0,t[1]=a+t[1]|0,t[2]=l+t[2]|0,t[3]=u+t[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(To.stateIdentity),this}appendStr(t){const n=this._buffer8,o=this._buffer32;let a=this._bufferLength,l,u;for(u=0;u<t.length;u+=1){if(l=t.charCodeAt(u),l<128)n[a++]=l;else if(l<2048)n[a++]=(l>>>6)+192,n[a++]=l&63|128;else if(l<55296||l>56319)n[a++]=(l>>>12)+224,n[a++]=l>>>6&63|128,n[a++]=l&63|128;else{if(l=(l-55296)*1024+(t.charCodeAt(++u)-56320)+65536,l>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");n[a++]=(l>>>18)+240,n[a++]=l>>>12&63|128,n[a++]=l>>>6&63|128,n[a++]=l&63|128}a>=64&&(this._dataLength+=64,To._md5cycle(this._state,o),a-=64,o[0]=o[16])}return this._bufferLength=a,this}appendAsciiStr(t){const n=this._buffer8,o=this._buffer32;let a=this._bufferLength,l,u=0;for(;;){for(l=Math.min(t.length-u,64-a);l--;)n[a++]=t.charCodeAt(u++);if(a<64)break;this._dataLength+=64,To._md5cycle(this._state,o),a=0}return this._bufferLength=a,this}appendByteArray(t){const n=this._buffer8,o=this._buffer32;let a=this._bufferLength,l,u=0;for(;;){for(l=Math.min(t.length-u,64-a);l--;)n[a++]=t[u++];if(a<64)break;this._dataLength+=64,To._md5cycle(this._state,o),a=0}return this._bufferLength=a,this}getState(){const t=this._state;return{buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[t[0],t[1],t[2],t[3]]}}setState(t){const n=t.buffer,o=t.state,a=this._state;let l;for(this._dataLength=t.length,this._bufferLength=t.buflen,a[0]=o[0],a[1]=o[1],a[2]=o[2],a[3]=o[3],l=0;l<n.length;l+=1)this._buffer8[l]=n.charCodeAt(l)}end(t=!1){const n=this._bufferLength,o=this._buffer8,a=this._buffer32,l=(n>>2)+1;this._dataLength+=n;const u=this._dataLength*8;if(o[n]=128,o[n+1]=o[n+2]=o[n+3]=0,a.set(To.buffer32Identity.subarray(l),l),n>55&&(To._md5cycle(this._state,a),a.set(To.buffer32Identity)),u<=4294967295)a[14]=u;else{const d=u.toString(16).match(/(.*?)(.{0,8})$/);if(d===null)return;const p=parseInt(d[2],16),h=parseInt(d[1],16)||0;a[14]=p,a[15]=h}return To._md5cycle(this._state,a),t?this._state:To._hex(this._state)}}To.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]);To.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);To.hexChars="0123456789abcdef";To.hexOut=[];To.onePassHasher=new To;if(To.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592")throw new Error("Md5 self test failed.");const MJe=i.reactive({rowIndex:{},columnIndex:{}});function PJe(e,t){const n=i.inject("bcTableApi"),o=i.watch(e,l);i.onBeforeUnmount(()=>{o()});async function a(v){var T,I;const _=t.data.tables.find(D=>D.id===e.value);_.baseData.table_page_data.currentPage=v.currentPage,_.baseData.table_page_data.pageSize=v.pageSize;const y=await Mr.get(K8)||{},b=t.data.uuid?`${t.data.uuid}${_.id}`:_.id;y._user_pageSize={...y._user_pageSize,[b]:v.pageSize},await Mr.set(K8,y);const w=$t.cloneDeep(((I=(T=t.data)==null?void 0:T.form)==null?void 0:I.formData)||{}),C=$t.cloneDeep(zc.value[t.data.config_unique_id]);return $t.isEmpty(C)||$t.merge(w,C),n==null?void 0:n.setQueryData(Object.assign(w,{currentPage:v.currentPage,pageSize:v.pageSize})).then(()=>n.search(n.getActiveTab(),n.getQueryData(!1)))}function l(){return i.nextTick().then(()=>{var _;const v=(_=t.data)==null?void 0:_.btns.find(y=>["exportSelect","exportSelectedData"].includes(y.data.key));if(v){const{data:y}=n.getCheckboxRow();v.data.disabled=$t.isEmpty(y)}})}function u(v){const _=n==null?void 0:n.getApi(),y=_==null?void 0:_.getCheckboxRecords();if(!$t.isEmpty(y))n==null||n.setCheckboxRow(y,v.checked);else{const b=t.data.tables.find(w=>w.id===e.value).tableData;n==null||n.setCheckboxRow(b,v.checked)}l()}function d(v){n==null||n.setCheckboxRow([v.row],v.checked),l()}function p(v,_){return J7({mid:t.data.mid,id:t.data.config_unique_id,uid:t.data.uid},t.data.batch_id?`batch_${t.data.batch_id}`:"").then(async y=>{const b=t.data.batch_id?`table.${t.data.config_unique_id}`:"table",{tableConfig:w}=$t.get(y,b).tables.find(I=>I.id===_),C=w.find(I=>I.data.field===v.column.field);C&&(C.data.width=v.column.resizeWidth.toString()),await Z7({mid:t.data.mid,id:t.data.config_unique_id,uid:t.data.uid},y,t.data.batch_id?`batch_${t.data.batch_id}`:"");const T=w.reduce((I,D)=>(I[D.data.field]=D.data.width,I),{});await vne({table_id:_,uid:t.data.uid},T)})}function h(){setTimeout(()=>{n==null||n.search(n.getActiveTab(),n==null?void 0:n.getQueryData(!1))},16)}return{onPageChange:a,onTabClick:h,onCheckboxAll:u,onCheckboxChange:d,onResizableChange:p,onCheckboxSelect:l}}/*!
|
|
113
113
|
* better-scroll / core
|
|
114
114
|
* (c) 2016-2023 ustbhuangyi
|
|
115
115
|
* Released under the MIT License.
|