@cimom-ui/standard-ui 1.1.12 → 1.1.13
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/README.md +5 -3
- package/dist/standard-ui.common.js +17 -10
- package/dist/standard-ui.umd.js +17 -10
- package/dist/standard-ui.umd.min.js +1 -1
- package/package.json +1 -1
|
@@ -21,4 +21,4 @@
|
|
|
21
21
|
* @internal
|
|
22
22
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
23
23
|
*/
|
|
24
|
-
function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"===typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=o},777(e,t,n){"use strict";var r=n(8751),i=n(8125),o=10,a=40,s=800;function l(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*o,i=n*o,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(1==e.deltaMode?(r*=a,i*=a):(r*=s,i*=s)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}l.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},e.exports=l},3591(e,t,n){"use strict";n.r(t);var r=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),i="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,o=function(){return"undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),a=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),s=2;function l(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&c()}function l(){a(o)}function c(){var e=Date.now();if(n){if(e-i<s)return;r=!0}else n=!0,r=!1,setTimeout(l,t);i=e}return c}var c=20,u=["top","right","bottom","left","width","height","size","weight"],d="undefined"!==typeof MutationObserver,h=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=l(this.refresh.bind(this),c)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=u.some(function(e){return!!~n.indexOf(e)});r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),p=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||o},m=k(0,0,0,0);function g(e){return parseFloat(e)||0}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){var r=e["border-"+n+"-width"];return t+g(r)},0)}function b(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],a=e["padding-"+o];n[o]=g(a)}return n}function y(e){var t=e.getBBox();return k(0,0,t.width,t.height)}function x(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return m;var r=f(e).getComputedStyle(e),i=b(r),o=i.left+i.right,a=i.top+i.bottom,s=g(r.width),l=g(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=v(r,"left","right")+o),Math.round(l+a)!==n&&(l-=v(r,"top","bottom")+a)),!C(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return k(i.left,i.top,s,l)}var w=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"===typeof e.getBBox}}();function C(e){return e===f(e).document.documentElement}function _(e){return i?w(e)?y(e):x(e):m}function S(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return p(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}function k(e,t,n,r){return{x:e,y:t,width:n,height:r}}var E=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=k(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=_(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),O=function(){function e(e,t){var n=S(t);p(this,{target:e,contentRect:n})}return e}(),T=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new E(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new O(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),$="undefined"!==typeof WeakMap?new WeakMap:new r,D=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=h.getInstance(),r=new T(t,n,this);$.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){D.prototype[e]=function(){var t;return(t=$.get(this))[e].apply(t,arguments)}});var M=function(){return"undefined"!==typeof o.ResizeObserver?o.ResizeObserver:D}();const F=M;n.d(t,["default",0,F])},3820(e,t,n){var r=n(9119);e.exports=function(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}},2887(e,t,n){var r=n(9119),i=n(3820);e.exports={throttle:r,debounce:i}},9119(e){e.exports=function(e,t,n,r){var i,o=0;function a(){var a=this,s=Number(new Date)-o,l=arguments;function c(){o=Number(new Date),n.apply(a,l)}function u(){i=void 0}r&&!i&&c(),i&&clearTimeout(i),void 0===r&&s>e?c():!0!==t&&(i=setTimeout(r?u:c,void 0===r?e-s:e))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),a}},5714(e,t,n){var r=n(879);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("4206c8f8",r,!0,{sourceMap:!1,shadowMode:!1})},1480(e,t,n){var r=n(6117);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("9f6e4134",r,!0,{sourceMap:!1,shadowMode:!1})},3948(e,t,n){var r=n(6343);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("21670536",r,!0,{sourceMap:!1,shadowMode:!1})},9127(e,t,n){var r=n(754);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("236f2acb",r,!0,{sourceMap:!1,shadowMode:!1})},6920(e,t,n){var r=n(7331);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("836d7778",r,!0,{sourceMap:!1,shadowMode:!1})},9787(e,t,n){var r=n(8236);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("04063f86",r,!0,{sourceMap:!1,shadowMode:!1})},2441(e,t,n){var r=n(2234);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("063fad21",r,!0,{sourceMap:!1,shadowMode:!1})},6701(e,t,n){var r=n(9078);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("c360aeaa",r,!0,{sourceMap:!1,shadowMode:!1})},4003(e,t,n){var r=n(8908);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("7b42ed21",r,!0,{sourceMap:!1,shadowMode:!1})},7192(e,t,n){var r=n(3533);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("785286b1",r,!0,{sourceMap:!1,shadowMode:!1})},4780(e,t,n){var r=n(9193);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("36ee8551",r,!0,{sourceMap:!1,shadowMode:!1})},6588(e,t,n){var r=n(3221);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("50f51b0d",r,!0,{sourceMap:!1,shadowMode:!1})},1492(e,t,n){var r=n(2145);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("4ffd55a9",r,!0,{sourceMap:!1,shadowMode:!1})},8810(e,t,n){var r=n(9723);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("481cc505",r,!0,{sourceMap:!1,shadowMode:!1})},9548(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[0],s=o[1],l=o[2],c=o[3],u={id:e+":"+i,css:s,media:l,sourceMap:c};r[a]?r[a].parts.push(u):n.push(r[a]={id:a,parts:[u]})}return n}n.d(t,{A:()=>f});var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},d=null,h="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(e,t,n,i){c=n,d=i||{};var a=r(e,t);return m(a),function(t){for(var n=[],i=0;i<a.length;i++){var s=a[i],l=o[s.id];l.refs--,n.push(l)}t?(a=r(e,t),m(a)):a=[];for(i=0;i<n.length;i++){l=n[i];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete o[l.id]}}}}function m(e){for(var t=0;t<e.length;t++){var n=e[t],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(v(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(v(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:a}}}}function g(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function v(e){var t,n,r=document.querySelector("style["+h+'~="'+e.id+'"]');if(r){if(c)return u;r.parentNode.removeChild(r)}if(p){var i=l++;r=s||(s=g()),t=y.bind(null,r,i,!1),n=y.bind(null,r,i,!0)}else r=g(),t=x.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function y(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function x(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),d.ssrId&&e.setAttribute(h,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},1515(e,t,n){"use strict";n.r(t),n.d(t,{Colgroup:()=>mf,Column:()=>hf,Grid:()=>sw,Table:()=>SC,Toolbar:()=>EC,VXETable:()=>qd,VxeColgroup:()=>ff,VxeColumn:()=>df,VxeGrid:()=>aw,VxeTable:()=>_C,VxeToolbar:()=>kC,VxeUI:()=>ad,_t:()=>Wd,clipboard:()=>Nd,commands:()=>Pd,config:()=>zd,formats:()=>Ad,getConfig:()=>Sd,getI18n:()=>$d,getIcon:()=>Ed,getTheme:()=>Cd,globalEvents:()=>Dd,globalResize:()=>Md,install:()=>$C,interceptor:()=>Ld,log:()=>jd,menus:()=>Id,modal:()=>Kd,print:()=>Ud,readFile:()=>Yd,renderer:()=>Fd,saveFile:()=>Gd,setConfig:()=>_d,setI18n:()=>Td,setIcon:()=>kd,setLanguage:()=>Od,setTheme:()=>wd,setup:()=>Vd,t:()=>Hd,use:()=>Bd,validators:()=>Rd,version:()=>"3.24.2"});const r="3.4.24",i={coreVersion:r,uiVersion:"",tableVersion:"",designVersion:"",ganttVersion:""};var o={keyId:1,cookies:{path:"/"},treeOptions:{parentKey:"parentId",key:"id",children:"children"},parseDateFormat:"yyyy-MM-dd HH:mm:ss",firstDayOfWeek:1};const a=o;function s(e,t,n){if(e)if(e.forEach)e.forEach(t,n);else for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)}const l=s;var c=Object.prototype.toString;const u=c;function d(e){return function(t){return"[object "+e+"]"===u.call(t)}}const h=d;var p=Array.isArray||h("Array");const f=p;var m="undefined";const g=m;var v=typeof Map!==g;function b(e){return v&&e instanceof Map}const y=b;var x=typeof Set!==g;function w(e){return x&&e instanceof Set}const C=w;var _=Object.prototype.hasOwnProperty,S=Object.hasOwn,k=S||function(e,t){return _.call(e,t)};function E(e,t){return null!=e&&k(e,t)}const O=E;function T(e,t,n){if(e)for(var r in e)O(e,r)&&t.call(n,e[r],r,e)}const $=T;function D(e,t,n){return e&&e.forEach(function(r,i,o){t.call(n||e,r,i,o)}),e}const M=D;function F(e,t,n){return e&&e.forEach(function(r,i,o){t.call(n||e,r,i,o)}),e}const R=F;function I(e,t,n){return e&&(f(e)?l(e,t,n):y(e)?M(e,t,n):C(e)?R(e,t,n):$(e,t,n)),e}const A=I;function P(e){return function(t){return typeof t===e}}const L=P;var N=L("function");const j=N;function B(e,t){var n=Object[e];return function(e){var r=[];if(e){if(n)return n(e);A(e,t>1?function(t){r.push([""+t,e[t]])}:function(){r.push(arguments[t])})}return r}}const V=B;var z=V("keys",1);const H=z;function W(e,t){var n=e.__proto__.constructor;return t?new n(t):new n}function q(e,t){return t?G(e,t):e}function G(e,t){if(e)switch(u.call(e)){case"[object Object]":var n=Object.create(Object.getPrototypeOf(e));return $(e,function(e,r){n[r]=q(e,t)}),n;case"[object Date]":case"[object RegExp]":return W(e,e.valueOf());case"[object Array]":case"[object Arguments]":var r=[];return l(e,function(e){r.push(q(e,t))}),r;case"[object Set]":var i=W(e);return i.forEach(function(e){i.add(q(e,t))}),i;case"[object Map]":var o=W(e);return o.forEach(function(e,n){o.set(n,q(e,t))}),o}return e}function Y(e,t){return e?G(e,t):e}const U=Y;var K=Object.assign;function X(e,t,n){for(var r,i=t.length,o=1;o<i;o++)r=t[o],l(H(t[o]),n?function(t){e[t]=U(r[t],n)}:function(t){e[t]=r[t]});return e}var Z=function(e){if(e){var t=arguments;if(!0!==e)return K?K.apply(Object,t):X(e,t);if(t.length>1)return e=f(e[1])?[]:{},X(e,t,!0)}return e};const Q=Z;var J=function(){};function ee(){l(arguments,function(e){A(e,function(e,t){J[t]=j(e)?function(){var t=e.apply(J.$context,arguments);return J.$context=null,t}:e})})}function te(e){return Q(a,e)}function ne(){return a}var re="4.1.2";J.VERSION=re,J.version=re,J.mixin=ee,J.setup=te,J.setConfig=te,J.getConfig=ne;const ie=J;function oe(e,t,n){for(var r=e.length-1;r>=0;r--)t.call(n,e[r],r,e)}const ae=oe;function se(e,t,n){ae(H(e),function(r){t.call(n,e[r],r,e)})}const le=se;function ce(e){return null===e}const ue=ce;function de(e,t){return function(n){return ue(n)?t:n[e]}}const he=de;function pe(e,t,n){var r={};if(e){if(!t)return e;j(t)||(t=he(t)),A(e,function(i,o){r[o]=t.call(n,i,o,e)})}return r}const fe=pe;function me(e,t,n){for(var r=Array.from(e),i=r.length-1;i>=0;i--){var o=r[i][0],a=r[i][1];t.call(n,a,o,e)}}const ge=me;function ve(e,t,n){for(var r=Array.from(e),i=r.length-1;i>=0;i--)t.call(n,r[i],r[i],e)}const be=ve;function ye(e){return!!e&&e.constructor===Object}const xe=ye;function we(e){return"__proto__"!==e&&"constructor"!==e}const Ce=we;function _e(e,t){return xe(e)&&xe(t)||f(e)&&f(t)?(A(t,function(n,r){Ce(r)&&(e[r]=j(t)?n:_e(e[r],n))}),e):U(t,!0)}var Se=function(e){e||(e={});for(var t,n=arguments,r=n.length,i=1;i<r;i++)t=n[i],t&&_e(e,t);return e};const ke=Se;function Ee(e,t,n){var r=[];if(e&&arguments.length>1){if(e.map)return e.map(t,n);A(e,function(){r.push(t.apply(n,arguments))})}return r}const Oe=Ee;function Te(e,t,n,r,i){return function(o,a,s){if(o&&a){if(e&&o[e])return o[e](a,s);if(t&&f(o)){for(var l=0,c=o.length;l<c;l++)if(!!a.call(s,o[l],l,o)===r)return[!0,!1,l,o[l]][n]}else for(var u in o)if(O(o,u)&&!!a.call(s,o[u],u,o)===r)return[!0,!1,u,o[u]][n]}return i}}const $e=Te;var De=$e("some",1,0,!0,!1);const Me=De;var Fe=$e("every",1,1,!1,!0);const Re=Fe;function Ie(e,t){if(e){if(e.includes)return e.includes(t);for(var n in e)if(O(e,n)&&t===e[n])return!0}return!1}const Ae=Ie;function Pe(e,t){var n,r=0;if(f(e)&&f(t)){for(n=t.length;r<n;r++)if(!Ae(e,t[r]))return!1;return!0}return Ae(e,t)}const Le=Pe;function Ne(e,t,n){var r=[];if(t){j(t)||(t=he(t));var i,o={};A(e,function(a,s){i=t.call(n,a,s,e),o[i]||(o[i]=1,r.push(a))})}else A(e,function(e){Ae(r,e)||r.push(e)});return r}const je=Ne;function Be(e){return Oe(e,function(e){return e})}const Ve=Be;function ze(){for(var e=arguments,t=[],n=0,r=e.length;n<r;n++)t=t.concat(Ve(e[n]));return je(t)}const He=ze;var We=L(g);const qe=We;function Ge(e){return ue(e)||qe(e)}const Ye=Ge;var Ue=/(.+)?\[(\d+)\]$/;const Ke=Ue;function Xe(e){return e?e.splice&&e.join?e:(""+e).replace(/(\[\d+\])\.?/g,"$1.").replace(/\.$/,"").split("."):[]}const Ze=Xe;function Qe(e,t,n){if(Ye(e))return n;var r=et(e,t);return qe(r)?n:r}function Je(e,t){var n=t?t.match(Ke):"";return n?n[1]?e[n[1]]?e[n[1]][n[2]]:void 0:e[n[2]]:e[t]}function et(e,t){if(e){var n,r,i,o=0;if(e[t]||O(e,t))return e[t];if(r=Ze(t),i=r.length,i)for(n=e;o<i;o++)if(n=Je(n,r[o]),Ye(n))return o===i-1?n:void 0;return n}}const tt=Qe;var nt="asc",rt="desc";function it(e,t){return qe(e)?1:ue(e)?qe(t)?-1:1:e&&e.localeCompare?e.localeCompare(t):e>t?1:-1}function ot(e,t,n){return function(r,i){var o=r[e],a=i[e];return o===a?n?n(r,i):0:t.order===rt?it(a,o):it(o,a)}}function at(e,t,n,r){var i=[];return n=f(n)?n:[n],l(n,function(n,o){if(n){var a,s=n;f(n)?(s=n[0],a=n[1]):xe(n)&&(s=n.field,a=n.order),i.push({field:s,order:a||nt}),l(t,j(s)?function(t,n){t[o]=s.call(r,t.data,n,e)}:function(e){e[o]=s?tt(e.data,s):e.data})}}),i}function st(e,t,n){if(e){if(Ye(t))return Ve(e).sort(it);var r,i=Oe(e,function(e){return{data:e}}),o=at(e,i,t,n),a=o.length-1;while(a>=0)r=ot(a,o[a],r),a--;return r&&(i=i.sort(r)),Oe(i,he("data"))}return[]}const lt=st;var ct=lt;const ut=ct;function dt(e,t){return e>=t?e:(e|=0)+Math.round(Math.random()*((t||9)-e))}const ht=dt;var pt=V("values",0);const ft=pt;function mt(e){for(var t,n=[],r=ft(e),i=r.length-1;i>=0;i--)t=i>0?ht(0,i):0,n.push(r[t]),r.splice(t,1);return n}const gt=mt;function vt(e,t){var n=gt(e);return arguments.length<=1?n[0]:(t<n.length&&(n.length=t||0),n)}const bt=vt;function yt(e){return function(t){if(t){var n=e(t&&t.replace?t.replace(/,/g,""):t);if(!isNaN(n))return n}return 0}}const xt=yt;var wt=xt(parseFloat);const Ct=wt;var _t=L("string");const St=_t;function kt(e,t,n){var r=St(e),i=r?"":[],o=arguments.length;if(e){if(t=o>=2?Ct(t):0,n=o>=3?Ct(n):e.length,e.slice)return e.slice(t,n);if(t<0&&(t=Math.max(0,e.length+t)),r)return e.substring(t,n);for(;t<n;t++)i.push(e[t])}return i}const Et=kt;function Ot(e,t,n){var r=[];if(e&&t){if(e.filter)return e.filter(t,n);A(e,function(i,o){t.call(n,i,o,e)&&r.push(i)})}return r}const Tt=Ot;var $t=$e("",0,2,!0);const Dt=$t;var Mt=$e("find",1,3,!0);const Ft=Mt;function Rt(e,t,n){if(e){f(e)||(e=ft(e));for(var r=e.length-1;r>=0;r--)if(t.call(n,e[r],r,e))return e[r]}}const It=Rt;function At(e,t,n){if(e){var r,i,o=0,a=null,s=n,l=arguments.length>2,c=H(e);if(e.length&&e.reduce)return i=function(){return t.apply(a,arguments)},l?e.reduce(i,s):e.reduce(i);for(l&&(o=1,s=e[c[0]]),r=c.length;o<r;o++)s=t.call(a,s,e[c[o]],o,e);return s}}const Pt=At;function Lt(e,t,n,r){if(f(e)&&e.copyWithin)return e.copyWithin(t,n,r);var i,o,a=t|0,s=n|0,l=e.length,c=arguments.length>3?r|0:l;if(a<l&&(a=a>=0?a:l+a,a>=0&&(s=s>=0?s:l+s,c=c>=0?c:l+c,s<c)))for(i=0,o=e.slice(s,c);a<l;a++){if(o.length<=i)break;e[a]=o[i++]}return e}const Nt=Lt;function jt(e,t){var n,r=[],i=t|0||1;if(f(e))if(i>=0&&e.length>i){n=0;while(n<e.length)r.push(e.slice(n,n+i)),n+=i}else r=e.length?[e]:e;return r}const Bt=jt;function Vt(e,t){return Oe(e,he(t))}const zt=Vt;function Ht(e){return function(t,n){var r,i;return t&&t.length?(l(t,function(o,a){n&&(o=j(n)?n(o,a,t):tt(o,n)),Ye(o)||!Ye(r)&&!e(r,o)||(i=a,r=o)}),t[i]):r}}const Wt=Ht;var qt=Wt(function(e,t){return e<t});const Gt=qt;function Yt(e){var t,n,r,i=[];if(e&&e.length)for(t=0,n=Gt(e,function(e){return e?e.length:0}),r=n?n.length:0;t<r;t++)i.push(zt(e,t));return i}const Ut=Yt;function Kt(){return Ut(arguments)}const Xt=Kt;function Zt(e,t){var n={};return t=t||[],A(ft(e),function(e,r){n[e]=t[r]}),n}const Qt=Zt;function Jt(e,t){var n=[];return l(e,function(e){n=n.concat(f(e)?t?Jt(e,t):e:[e])}),n}function en(e,t){return f(e)?Jt(e,t):[]}const tn=en;function nn(e,t){var n=0,r=t.length;while(e&&n<r)e=e[t[n++]];return r&&e?e:0}function rn(e,t){for(var n,r=arguments,i=[],o=[],a=2,s=r.length;a<s;a++)i.push(r[a]);if(f(t)){for(s=t.length-1,a=0;a<s;a++)o.push(t[a]);t=t[s]}return Oe(e,function(e){if(o.length&&(e=nn(e,o)),n=e[t]||t,n&&n.apply)return n.apply(e,i)})}const on=rn;function an(e,t){return(console[e]||console.log)(t)}const sn=an;function ln(e,t){try{delete e[t]}catch(n){e[t]=void 0}}const cn=ln;function un(e,t,n){return e&&(f(e)?ae(e,t,n):y(e)?ge(e,t,n):C(e)?be(e,t,n):le(e,t,n)),e}const dn=un;var hn=L("object");const pn=hn;function fn(e,t,n){if(e){var r,i=arguments.length>1&&(ue(t)||!pn(t)),o=i?n:t;if(xe(e))$(e,i?function(n,r){e[r]=t}:function(t,n){cn(e,n)}),o&&Q(e,o);else if(f(e)){if(i){r=e.length;while(r>0)r--,e[r]=t}else e.length=0;o&&e.push.apply(e,o)}}return e}const mn=fn;function gn(e){return function(t,n){return n===e}}function vn(e,t,n){if(e){if(!Ye(t)){var r=[],i=[];return j(t)||(t=gn(t)),A(e,function(e,i,o){t.call(n,e,i,o)&&r.push(i)}),f(e)?dn(r,function(t,n){i.push(e[t]),e.splice(t,1)}):(i={},l(r,function(t){i[t]=e[t],cn(e,t)})),i}return mn(e)}return e}const bn=vn;function yn(e,t){A(e,function(e){e[t]&&!e[t].length&&bn(e,t)})}function xn(e,t){var n,r,i,o,s,l,c,u,d=Q({},a.treeOptions,t),h=d.strict,p=d.key,f=d.parentKey,m=d.children,g=d.mapChildren,v=d.rootValues,b=d.rootParentValue,y=d.sortKey,x=d.reverse,w=d.data,C=[],_={},S={},k={},E={},O={},T=void 0===b;return y&&(e=lt(U(e),y),x&&(e=e.reverse())),v&&v.length&&A(v,function(e){O[e]=1}),A(e,function(e){n=e[p],o=Ye(n)?E:k,o[n]&&sn("warn","Duplicate primary key="+n),o[n]=!0}),A(e,function(e){n=e[p],s=Ye(n),w?(r={},r[w]=e):r=e,i=e[f],l=Ye(i),c=s?S:_,c[n]=c[n]||[],r[p]=n,r[f]=i,n===i&&(i=null,sn("warn","Error infinite Loop. key="+n+" parentKey="+n)),u=l?S:_,o=l?E:k,u[i]=u[i]||[],u[i].push(r),r[m]=c[n],g&&(r[g]=c[n]),v&&v.length?O[n]&&C.push(r):T?(!h||h&&l)&&(o[i]||C.push(r)):i===b&&C.push(r)}),h&&yn(e,m),C}const wn=xn;function Cn(e,t,n,r){var i=r.key,o=r.parentKey,a=r.children,s=r.data,c=r.updated,u=r.clear;return l(n,function(n){var l=n[a];s&&(n=n[s]),!1!==c&&(n[o]=t?t[i]:null),e.push(n),l&&l.length&&Cn(e,n,l,r),u&&delete n[a]}),e}function _n(e,t){return Cn([],null,e,Q({},a.treeOptions,t))}const Sn=_n;function kn(e){return function(t,n,r,i){var o=r||{},a=o.children||"children";return e(null,t,n,i,[],[],a,o)}}const En=kn;function On(e,t,n,r,i,o,a,s){var l,c,u,d,h,p;if(t)for(c=0,u=t.length;c<u;c++){if(l=t[c],d=i.concat([""+c]),h=o.concat([l]),n.call(r,l,c,t,d,e,h))return{index:c,item:l,path:d,items:t,parent:e,nodes:h};if(a&&l&&(p=On(l,l[a],n,r,d.concat([a]),h,a,s),p))return p}}var Tn=En(On);const $n=Tn;function Dn(e,t,n,r,i,o,a,s){var l,c;A(t,function(u,d){l=i.concat([""+d]),c=o.concat([u]),n.call(r,u,d,t,l,e,c),u&&a&&(l.push(a),Dn(u,u[a],n,r,l,c,a,s))})}var Mn=En(Dn);const Fn=Mn;function Rn(e,t,n,r,i,o,a,s){var l,c,u,d=s.mapChildren||a;return Oe(t,function(h,p){return l=i.concat([""+p]),c=o.concat([h]),u=n.call(r,h,p,t,l,e,c),u&&h&&a&&h[a]&&(u[d]=Rn(h,h[a],n,r,l,c,a,s)),u})}var In=En(Rn);const An=In;function Pn(e,t,n,r){var i=[];return e&&t&&Fn(e,function(e,n,o,a,s,l){t.call(r,e,n,o,a,s,l)&&i.push(e)},n),i}const Ln=Pn;function Nn(e,t,n,r,i,o,a,s,c){var u,d,h,p,f,m=[],g=c.original,v=c.data,b=c.mapChildren||s,y=c.isEvery;return l(n,function(l,x){u=o.concat([""+x]),d=a.concat([l]),p=e&&!y||r.call(i,l,x,n,u,t,d),f=s&&l[s],p||f?(g?h=l:(h=Q({},l),v&&(h[v]=l)),h[b]=Nn(p,l,l[s],r,i,u,d,s,c),(p||h[b].length)&&m.push(h)):p&&m.push(h)}),m}var jn=En(function(e,t,n,r,i,o,a,s){return Nn(0,e,t,n,r,i,o,a,s)});const Bn=jn;function Vn(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(t===e[n])return n}const zn=Vn;function Hn(e,t){if(e.lastIndexOf)return e.lastIndexOf(t);for(var n=e.length-1;n>=0;n--)if(t===e[n])return n;return-1}const Wn=Hn;var qn=L("number");const Gn=qn;function Yn(e){return Gn(e)&&isNaN(e)}const Un=Yn;var Kn=h("Date");const Xn=Kn;var Zn=parseInt;const Qn=Zn;function Jn(e){return Date.UTC(e.y,e.M||0,e.d||1,e.H||0,e.m||0,e.s||0,e.S||0)}const er=Jn;function tr(e){return e.getTime()}const nr=tr;function rr(e){return"(\\d{"+e+"})"}function ir(e){return e<10?100*e:e<100?10*e:e}function or(e){return isNaN(e)?e:Qn(e)}for(var ar=rr(2),sr=rr("1,2"),lr=rr("1,7"),cr=rr("3,4"),ur=".{1}",dr=ur+sr,hr="(([zZ])|([-+]\\d{2}:?\\d{2}))",pr=[cr,dr,dr,dr,dr,dr,ur+lr,hr],fr=[],mr=pr.length-1;mr>=0;mr--){for(var gr="",vr=0;vr<mr+1;vr++)gr+=pr[vr];fr.push(new RegExp("^"+gr))}function br(e){for(var t,n={},r=0,i=fr.length;r<i;r++)if(t=e.match(fr[r]),t){n.y=t[1],n.M=t[2],n.d=t[3],n.H=t[4],n.m=t[5],n.s=t[6],n.S=t[7],n.Z=t[8];break}return n}var yr=[["yyyy",cr],["yy",ar],["MM",ar],["M",sr],["dd",ar],["d",sr],["HH",ar],["H",sr],["mm",ar],["m",sr],["ss",ar],["s",sr],["SSS",rr(3)],["S",lr],["Z",hr]],xr={},wr=["\\[([^\\]]+)\\]"];for(vr=0;vr<yr.length;vr++){var Cr=yr[vr];xr[Cr[0]]=Cr[1]+"?",wr.push(Cr[0])}var _r=new RegExp(wr.join("|"),"g"),Sr={};function kr(e,t){var n=Sr[t];if(!n){var r=[],i=t.replace(/([$(){}*+.?\\^|])/g,"\\$1").replace(_r,function(e,t){var n=e.charAt(0);return"["===n?t:(r.push(n),xr[e])});n=Sr[t]={_i:r,_r:new RegExp(i)}}var o={},a=e.match(n._r);if(a){for(var s=n._i,l=1,c=a.length;l<c;l++)o[s[l-1]]=a[l];return o}return o}function Er(e){if(/^[zZ]/.test(e.Z))return new Date(er(e));var t=e.Z.match(/([-+])(\d{2}):?(\d{2})/);return t?new Date(er(e)-("-"===t[1]?-1:1)*Qn(t[2])*36e5+6e4*Qn(t[3])):new Date("")}function Or(e,t){if(e){var n=Xn(e);if(n||(!t||Gn(e))&&/^[0-9]{11,15}$/.test(e))return new Date(n?nr(e):Qn(e));if(St(e)){var r=t?kr(e,t):br(e);if(r.y)return r.M&&(r.M=or(r.M)-1),r.S&&(r.S=ir(or(r.S.substring(0,3)))),r.Z?Er(r):new Date(r.y,r.M||0,r.d||1,r.H||0,r.m||0,r.s||0,r.S||0)}}return new Date("")}const Tr=Or;function $r(){return new Date}const Dr=$r;function Mr(e){var t,n=e?Tr(e):Dr();return!!Xn(n)&&(t=n.getFullYear(),t%4===0&&(t%100!==0||t%400===0))}const Fr=Mr;function Rr(e,t,n){if(e)if(f(e)){for(var r=0,i=e.length;r<i;r++)if(!1===t.call(n,e[r],r,e))break}else for(var o in e)if(O(e,o)&&!1===t.call(n,e[o],o,e))break}const Ir=Rr;function Ar(e,t,n){var r,i;if(e)if(f(e)){for(r=e.length-1;r>=0;r--)if(!1===t.call(n,e[r],r,e))break}else for(i=O(e),r=i.length-1;r>=0;r--)if(!1===t.call(n,e[i[r]],i[r],e))break}const Pr=Ar;function Lr(e,t){return function(n,r){if(n){if(n[e])return n[e](r);if(St(n)||f(n))return t(n,r);for(var i in n)if(O(n,i)&&r===n[i])return i}return-1}}const Nr=Lr;var jr=Nr("indexOf",zn);const Br=jr;var Vr=Nr("lastIndexOf",Wn);const zr=Vr;function Hr(e){var t=0;return St(e)||f(e)?e.length:(A(e,function(){t++}),t)}const Wr=Hr;function qr(e){return Gn(e)&&isFinite(e)}const Gr=qr;var Yr=function(e){return!ue(e)&&!isNaN(e)&&!f(e)&&e%1===0};const Ur=Yr;function Kr(e){return!ue(e)&&!isNaN(e)&&!f(e)&&!Ur(e)}const Xr=Kr;var Zr=L("boolean");const Qr=Zr;var Jr=h("RegExp");const ei=Jr;var ti=h("Error");const ni=ti;function ri(e){return!!e&&e.constructor===TypeError}const ii=ri;function oi(e){for(var t in e)return!1;return!0}const ai=oi;var si=typeof Symbol!==g;function li(e){return si&&Symbol.isSymbol?Symbol.isSymbol(e):"symbol"===typeof e}const ci=li;var ui=h("Arguments");const di=ui;function hi(e){return!!(e&&St(e.nodeName)&&Gn(e.nodeType))}const pi=hi;var fi=typeof document===g?0:document;const mi=fi;function gi(e){return!(!e||!mi||9!==e.nodeType)}const vi=gi;var bi=typeof window===g?0:window;const yi=bi;function xi(e){return!(!yi||!e||e!==e.window)}const wi=xi;var Ci=typeof FormData!==g;function _i(e){return Ci&&e instanceof FormData}const Si=_i;var ki=typeof WeakMap!==g;function Ei(e){return ki&&e instanceof WeakMap}const Oi=Ei;var Ti=typeof WeakSet!==g;function $i(e){return Ti&&e instanceof WeakSet}const Di=$i;function Mi(e){return function(t,n,r){if(t&&j(n)){if(f(t)||St(t))return e(t,n,r);for(var i in t)if(O(t,i)&&n.call(r,t[i],i,t))return i}return-1}}const Fi=Mi;var Ri=Fi(function(e,t,n){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return r;return-1});const Ii=Ri;function Ai(e,t,n,r,i,o,a){if(e===t)return!0;if(e&&t&&!Gn(e)&&!Gn(t)&&!St(e)&&!St(t)){if(ei(e))return n(""+e,""+t,i,o,a);if(Xn(e)||Qr(e))return n(+e,+t,i,o,a);var s,l,c,u=f(e),d=f(t);if(u||d?u&&d:e.constructor===t.constructor)return l=H(e),c=H(t),r&&(s=r(e,t,i)),l.length===c.length&&(qe(s)?Re(l,function(i,o){return i===c[o]&&Ai(e[i],t[c[o]],n,r,u||d?o:i,e,t)}):!!s)}return n(e,t,i,o,a)}const Pi=Ai;function Li(e,t){return e===t}const Ni=Li;function ji(e,t){return Pi(e,t,Ni)}const Bi=ji;function Vi(e,t){var n=H(e),r=H(t);return!r.length||(Le(n,r)?Me(r,function(r){return Ii(n,function(n){return n===r&&Bi(e[n],t[r])})>-1}):Bi(e,t))}const zi=Vi;function Hi(e,t,n){return j(n)?Pi(e,t,function(e,t,r,i,o){var a=n(e,t,r,i,o);return qe(a)?Ni(e,t):!!a},n):Pi(e,t,Ni)}const Wi=Hi;function qi(e){return ue(e)?"null":ci(e)?"symbol":Xn(e)?"date":f(e)?"array":ei(e)?"regexp":ni(e)?"error":typeof e}const Gi=qi;function Yi(e){return""+(Ye(e)?"":e)+a.keyId++}const Ui=Yi;var Ki=Fi(function(e,t,n){for(var r=e.length-1;r>=0;r--)if(t.call(n,e[r],r,e))return r;return-1});const Xi=Ki;function Zi(e){if(xe(e))return e;if(St(e))try{return JSON.parse(e)}catch(t){}return{}}const Qi=Zi;function Ji(e){return Ye(e)?"":JSON.stringify(e)}const eo=Ji;var to=V("entries",2);const no=to;function ro(e,t){return function(n,r){var i,o,a={},s=[],l=this,c=arguments,u=c.length;if(!j(r)){for(o=1;o<u;o++)i=c[o],s.push.apply(s,f(i)?i:[i]);r=0}return A(n,function(i,o){((r?r.call(l,i,o,n):Ii(s,function(e){return e===o})>-1)?e:t)&&(a[o]=i)}),a}}const io=ro;var oo=io(1,0);const ao=oo;var so=io(0,1);const lo=so;function co(e){return ft(e)[0]}const uo=co;function ho(e){var t=ft(e);return t[t.length-1]}const po=ho;function fo(e,t){if(e){if(O(e,t))return!0;var n,r,i,o,a,s,l=Ze(t),c=0,u=l.length;for(a=e;c<u;c++){if(s=!1,n=l[c],o=n?n.match(Ke):"",o?(r=o[1],i=o[2],r?a[r]&&O(a[r],i)&&(s=!0,a=a[r][i]):O(a,i)&&(s=!0,a=a[i])):O(a,n)&&(s=!0,a=a[n]),!s)break;if(c===u-1)return!0}}return!1}const mo=fo;var go=/(.+)?\[(\d+)\]$/;function vo(e,t,n,r,i){if(!e[t]){var o,a,s=t?t.match(go):null;if(n)a=i;else{var l=r?r.match(go):null;a=l&&!l[1]?new Array(Qn(l[2])+1):{}}return s?s[1]?(o=Qn(s[2]),e[s[1]]?n?e[s[1]][o]=a:e[s[1]][o]?a=e[s[1]][o]:e[s[1]][o]=a:(e[s[1]]=new Array(o+1),e[s[1]][o]=a)):e[s[2]]=a:e[t]=a,a}return n&&(e[t]=i),e[t]}function bo(e,t,n){if(e&&Ce(t))if(!e[t]&&!O(e,t)||yo(t)){for(var r=e,i=Ze(t),o=i.length,a=0;a<o;a++)if(!yo(i[a])){var s=a===o-1;r=vo(r,i[a],s,s?null:i[a+1],n)}}else e[t]=n;return e}function yo(e){return"__proto__"===e||"constructor"===e||"prototype"===e}const xo=bo;function wo(e){return function(){return ai(e)}}function Co(e,t,n){var r,i={};return e&&(t&&pn(t)?t=wo(t):j(t)||(t=he(t)),A(e,function(o,a){r=t?t.call(n,o,a,e):o,i[r]?i[r].push(o):i[r]=[o]})),i}const _o=Co;function So(e,t,n){var r=_o(e,t,n||this);return $(r,function(e,t){r[t]=e.length}),r}const ko=So;function Eo(e,t,n){var r,i,o=[],a=arguments;if(a.length<2&&(t=a[0],e=0),r=e|0,i=t|0,r<t)for(n=n|0||1;r<i;r+=n)o.push(r);return o}const Oo=Eo;function To(e,t){if(e&&t){var n=Q.apply(this,[{}].concat(Et(arguments,1))),r=H(n);l(H(e),function(t){Ae(r,t)&&(e[t]=n[t])})}return e}const $o=To;var Do=Wt(function(e,t){return e>t});const Mo=Do;function Fo(e){return(e.split(".")[1]||"").length}const Ro=Fo;function Io(e,t){if(e.repeat)return e.repeat(t);var n=isNaN(t)?[]:new Array(Qn(t));return n.join(e)+(n.length>0?e:"")}const Ao=Io;function Po(e,t){return e.substring(0,t)+"."+e.substring(t,e.length)}const Lo=Po;function No(e){var t=""+e,n=t.match(/^([-+]?)((\d+)|((\d+)?[.](\d+)?))e([-+]{1})([0-9]+)$/);if(n){var r=e<0,i=r?"-":"",o=n[3]||"",a=n[5]||"",s=n[6]||"",l=n[7],c=n[8],u=c-s.length,d=c-o.length,h=c-a.length;return"+"===l?o?i+o+Ao("0",c):u>0?i+a+s+Ao("0",u):i+a+Lo(s,c):o?d>0?i+"0."+Ao("0",Math.abs(d))+o:i+Lo(o,d):h>0?i+"0."+Ao("0",Math.abs(h))+a+s:i+Lo(a,h)+s}return t}const jo=No;function Bo(e,t){var n=jo(e),r=jo(t);return parseInt(n.replace(".",""))*parseInt(r.replace(".",""))/Math.pow(10,Ro(n)+Ro(r))}const Vo=Bo;function zo(e,t){return function(n,r,i){var o=Ct(n),a=o;if(o){r|=0;var s=jo(o),l=s.split("."),c=l[0],u=l[1]||"",d=u.substring(0,r+1),h=c+(d?"."+d:"");if(r>=u.length)return Ct(h);if(h=o,r>0){var p=Math.pow(10,r),f=Vo(h,p);a=t&&h<0&&!1!==i?-Math[e](Math.abs(f))/p:Math[e](f)/p}else a=Math[e](h)}return a}}const Ho=zo;var Wo=Ho("round",!0);const qo=Wo;var Go=Ho("ceil");const Yo=Go;var Uo=Ho("floor");const Ko=Uo;function Xo(e){return Gn(e)?jo(e):""+(Ye(e)?"":e)}const Zo=Xo;function Qo(e,t,n){t|=0;var r=Zo(qo(e,t,n)),i=r.split("."),o=i[0],a=i[1]||"",s=t-a.length;return t?s>0?o+"."+a+Ao("0",s):o+Lo(a,Math.abs(s)):o}const Jo=Qo;function ea(e,t){var n,r,i,o,s,l=Q({},a.commafyOptions,t),c=l.digits,u=Gn(e);return u?(n=(l.ceil?Yo:l.floor?Ko:qo)(e,c),r=jo(c?Jo(n,c):n).split("."),o=r[0],s=r[1],i=o&&n<0,i&&(o=o.substring(1,o.length))):(n=Zo(e).replace(/,/g,""),r=n?[n]:[],o=r[0]),r.length?(i?"-":"")+o.replace(new RegExp("(?=(?!(\\b))(.{"+(l.spaceNumber||3)+"})+$)","g"),l.separator||",")+(s?"."+s:""):n}const ta=ea;var na=xt(Qn);const ra=na;function ia(e,t){var n=Ct(e),r=Ct(t);return Vo(n,r)}const oa=ia;function aa(e,t){var n=jo(e),r=jo(t),i=Math.pow(10,Math.max(Ro(n),Ro(r)));return(oa(e,i)+oa(t,i))/i}const sa=aa;function la(e,t){return sa(Ct(e),Ct(t))}const ca=la;function ua(e,t){var n=Ct(e),r=Ct(t),i=jo(n),o=jo(r),a=Ro(i),s=Ro(o),l=Math.pow(10,Math.max(a,s)),c=a>=s?a:s;return parseFloat(Jo((n*l-r*l)/l,c))}const da=ua;function ha(e,t){var n=jo(e),r=jo(t),i=Ro(n),o=Ro(r),a=o-i,s=a<0,l=Math.pow(10,s?Math.abs(a):a);return oa(n.replace(".","")/r.replace(".",""),s?1/l:l)}const pa=ha;function fa(e,t){return pa(Ct(e),Ct(t))}const ma=fa;function ga(e,t,n){var r=0;return A(e&&e.length>2&&f(e)?e.sort():e,t?j(t)?function(){r=sa(r,t.apply(n,arguments))}:function(e){r=sa(r,tt(e,t))}:function(e){r=sa(r,e)}),r}const va=ga;function ba(e,t,n){return pa(va(e,t,n),Wr(e))}const ya=ba;var xa="first";const wa=xa;var Ca="last";const _a=Ca;function Sa(e){return e.getFullYear()}const ka=Sa;var Ea=864e5;const Oa=Ea;function Ta(e){return e.getMonth()}const $a=Ta;function Da(e){return Xn(e)&&!isNaN(nr(e))}const Ma=Da;function Fa(e,t,n){var r=t&&!isNaN(t)?t:0;if(e=Tr(e),Ma(e)){if(n===wa)return new Date(ka(e),$a(e)+r,1);if(n===_a)return new Date(nr(Fa(e,r+1,wa))-1);if(Gn(n)&&e.setDate(n),r){var i=e.getDate();if(e.setMonth($a(e)+r),i!==e.getDate())return e.setDate(1),new Date(nr(e)-Oa)}}return e}const Ra=Fa;function Ia(e,t,n){var r;if(e=Tr(e),Ma(e)&&(t&&(r=t&&!isNaN(t)?t:0,e.setFullYear(ka(e)+r)),n||!isNaN(n))){if(n===wa)return new Date(ka(e),0,1);if(n===_a)return e.setMonth(11),Ra(e,0,_a);e.setMonth(n)}return e}const Aa=Ia;function Pa(e){var t=e.getMonth();return t<3?1:t<6?2:t<9?3:4}function La(e,t,n){var r,i=t&&!isNaN(t)?3*t:0;return e=Tr(e),Ma(e)?(r=3*(Pa(e)-1)+("last"===n?2:0),e.setMonth(r),Ra(e,i,n)):e}const Na=La;var ja=7*Oa;const Ba=ja;function Va(e,t,n,r){if(e=Tr(e),Ma(e)){var i,o,s=Gn(r),l=nr(e),c=s?r:a.firstDayOfWeek,u=e.getDay(),d=!1;return"first"===n?(d=!0,o=c):"last"===n?(d=!0,o=(c+6)%7):(o=Gn(n)?n:u,d=!0),d&&u!==o&&(i=0,c>u?i=-(7-c+u):c<u&&(i=c-u),l+=o>c?((0===o?7:o)-c+i)*Oa:o<c?(7-c+o+i)*Oa:i*Oa),t&&!isNaN(t)&&(l+=t*Ba),new Date(l)}return e}const za=Va;function Ha(e,t,n){if(e=Tr(e),Ma(e)&&!isNaN(t)){if(e.setDate(e.getDate()+Qn(t)),n===wa)return new Date(ka(e),$a(e),e.getDate());if(n===_a)return new Date(nr(Ha(e,1,wa))-1)}return e}const Wa=Ha;function qa(e,t,n){if(e=Tr(e),Ma(e)&&!isNaN(t)){if(e.setHours(e.getHours()+Qn(t)),n===wa)return new Date(ka(e),$a(e),e.getDate(),e.getHours());if(n===_a)return new Date(nr(qa(e,1,wa))-1)}return e}const Ga=qa;function Ya(e,t,n){if(e=Tr(e),Ma(e)&&!isNaN(t)){if(e.setMinutes(e.getMinutes()+Qn(t)),n===wa)return new Date(ka(e),$a(e),e.getDate(),e.getHours(),e.getMinutes());if(n===_a)return new Date(nr(Ya(e,1,wa))-1)}return e}const Ua=Ya;function Ka(e,t,n){if(e=Tr(e),Ma(e)&&!isNaN(t)){if(e.setSeconds(e.getSeconds()+Qn(t)),n===wa)return new Date(ka(e),$a(e),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());if(n===_a)return new Date(nr(Ka(e,1,wa))-1)}return e}const Xa=Ka;function Za(e){return e.toUpperCase()}const Qa=Za;var Ja=Oe(Oo(0,7),function(e){return[(e+1)%7,(e+2)%7,(e+3)%7]});function es(e,t){var n=new Date(e).getDay();return Ae(Ja[t],n)}function ts(e,t){return function(n,r){var i=Gn(r)?r:a.firstDayOfWeek,o=Tr(n);if(Ma(o)){var s,l=za(o,0,i,i),c=e(l),u=nr(c),d=nr(l),h=d+6*Oa,p=new Date(h),f=za(c,0,i,i),m=nr(f);if(d===m)return 1;if(t(l,p))for(s=nr(e(p));s<h;s+=Oa)if(es(s,i))return 1;var g=m+6*Oa,v=new Date(h),b=1;if(t(f,v))for(b=0,s=u;s<g;s+=Oa)if(es(s,i)){b++;break}return Math.floor((d-m)/Ba)+b}return NaN}}const ns=ts;var rs=ns(function(e){return new Date(e.getFullYear(),0,1)},function(e,t){return e.getFullYear()!==t.getFullYear()});const is=rs;function os(e){return new Date(ka(e),$a(e),e.getDate())}const as=os;function ss(e){return nr(as(e))}const ls=ss;function cs(e){return e=Tr(e),Ma(e)?Math.floor((ls(e)-ls(Aa(e,0,wa)))/Oa)+1:NaN}const us=cs;function ds(e,t,n){var r=Zo(e);return t|=0,n=qe(n)?" ":""+n,r.padStart?r.padStart(t,n):t>r.length?(t-=r.length,t>n.length&&(n+=Ao(n,t/n.length)),n.slice(0,t)+r):r}const hs=ds;function ps(e,t,n,r){var i=t[n];return i?j(i)?i(r,n,e):i[r]:r}var fs=/\[([^\]]+)]|y{2,4}|M{1,2}|d{1,2}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|S{1,3}|Z{1,2}|W{1,2}|D{1,3}|[aAeEq]/g;function ms(e,t,n){if(e){if(e=Tr(e),Ma(e)){var r=n||{},i=t||a.parseDateFormat||a.formatString,o=e.getHours(),s=o<12?"am":"pm",l=Q({},a.parseDateRules||a.formatStringMatchs,r.formats),c=function(t,n){return(""+ka(e)).substring(4-n)},u=function(t,n){return hs($a(e)+1,n,"0")},d=function(t,n){return hs(e.getDate(),n,"0")},h=function(e,t){return hs(o,t,"0")},p=function(e,t){return hs(o<=12?o:o-12,t,"0")},f=function(t,n){return hs(e.getMinutes(),n,"0")},m=function(t,n){return hs(e.getSeconds(),n,"0")},g=function(t,n){return hs(e.getMilliseconds(),n,"0")},v=function(t,n){var r=e.getTimezoneOffset()/60*-1;return ps(e,l,t,(r>=0?"+":"-")+hs(r,2,"0")+(1===n?":":"")+"00")},b=function(t,n){return hs(ps(e,l,t,is(e,Ye(r.firstDay)?a.firstDayOfWeek:r.firstDay)),n,"0")},y=function(t,n){return hs(ps(e,l,t,us(e)),n,"0")},x={yyyy:c,yy:c,MM:u,M:u,dd:d,d,HH:h,H:h,hh:p,h:p,mm:f,m:f,ss:m,s:m,SSS:g,S:g,ZZ:v,Z:v,WW:b,W:b,DDD:y,D:y,a:function(t){return ps(e,l,t,s)},A:function(t){return ps(e,l,t,Qa(s))},e:function(t){return ps(e,l,t,e.getDay())},E:function(t){return ps(e,l,t,e.getDay())},q:function(t){return ps(e,l,t,Math.floor(($a(e)+3)/3))}};return i.replace(fs,function(e,t){return t||(x[e]?x[e](e,e.length):e)})}return"Invalid Date"}return""}const gs=ms;var vs=Date.now||function(){return nr(Dr())};const bs=vs;var ys=function(e,t){if(e){var n=Tr(e,t);return Xn(n)?nr(n):n}return bs()};const xs=ys;function ws(e,t,n){return!(!e||!t)&&(e=gs(e,n),"Invalid Date"!==e&&e===gs(t,n))}const Cs=ws;var _s=ns(function(e){return new Date(e.getFullYear(),e.getMonth(),1)},function(e,t){return e.getMonth()!==t.getMonth()});const Ss=_s;function ks(e,t){return e=Tr(e),Ma(e)?Fr(Aa(e,t))?366:365:NaN}const Es=ks;function Os(e,t){return e=Tr(e),Ma(e)?Math.floor((nr(Na(e,t,_a))-nr(Na(e,t,wa)))/Oa)+1:NaN}const Ts=Os;function $s(e,t){return e=Tr(e),Ma(e)?Math.floor((nr(Ra(e,t,_a))-nr(Ra(e,t,wa)))/Oa)+1:NaN}const Ds=$s;var Ms=[["yyyy",31536e6],["MM",2592e6],["dd",864e5],["HH",36e5],["mm",6e4],["ss",1e3],["S",0]];function Fs(e,t){var n,r,i,o,a,s,l={done:!1,status:!1,time:0};if(e=Tr(e),t=t?Tr(t):Dr(),Ma(e)&&Ma(t)&&(n=nr(e),r=nr(t),n<r))for(o=l.time=r-n,l.done=!0,l.status=!0,s=0,a=Ms.length;s<a;s++)i=Ms[s],o>=i[1]?s===a-1?l[i[0]]=o||0:(l[i[0]]=Math.floor(o/i[1]),o-=l[i[0]]*i[1]):l[i[0]]=0;return l}const Rs=Fs;function Is(e,t,n){var r=Zo(e);return t|=0,n=qe(n)?" ":""+n,r.padEnd?r.padEnd(t,n):t>r.length?(t-=r.length,t>n.length&&(n+=Ao(n,t/n.length)),r+n.slice(0,t)):r}const As=Is;function Ps(e,t){return Ao(Zo(e),t)}const Ls=Ps;function Ns(e){return e&&e.trimRight?e.trimRight():Zo(e).replace(/[\s\uFEFF\xA0]+$/g,"")}const js=Ns;function Bs(e){return e&&e.trimLeft?e.trimLeft():Zo(e).replace(/^[\s\uFEFF\xA0]+/g,"")}const Vs=Bs;function zs(e){return e&&e.trim?e.trim():js(Vs(e))}const Hs=zs;var Ws={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"};const qs=Ws;function Gs(e){var t=new RegExp("(?:"+H(e).join("|")+")","g");return function(n){return Zo(n).replace(t,function(t){return e[t]})}}const Ys=Gs;var Us=Ys(qs);const Ks=Us;var Xs={};A(qs,function(e,t){Xs[qs[t]]=t});var Zs=Ys(Xs);const Qs=Zs;function Js(e,t,n){return e.substring(t,n)}const el=Js;function tl(e){return e.toLowerCase()}const nl=tl;var rl={};function il(e){if(e=Zo(e),rl[e])return rl[e];var t=e.length,n=e.replace(/([-]+)/g,function(e,n,r){return r&&r+n.length<t?"-":""});return t=n.length,n=n.replace(/([A-Z]+)/g,function(e,n,r){var i=n.length;return n=nl(n),r?i>2&&r+i<t?Qa(el(n,0,1))+el(n,1,i-1)+Qa(el(n,i-1,i)):Qa(el(n,0,1))+el(n,1,i):i>1&&r+i<t?el(n,0,i-1)+Qa(el(n,i-1,i)):n}).replace(/(-[a-zA-Z])/g,function(e,t){return Qa(el(t,1,t.length))}),rl[e]=n,n}const ol=il;var al={};function sl(e){if(e=Zo(e),al[e])return al[e];if(/^[A-Z]+$/.test(e))return nl(e);var t=e.replace(/^([a-z])([A-Z]+)([a-z]+)$/,function(e,t,n,r){var i=n.length;return i>1?t+"-"+nl(el(n,0,i-1))+"-"+nl(el(n,i-1,i))+r:nl(t+"-"+n+r)}).replace(/^([A-Z]+)([a-z]+)?$/,function(e,t,n){var r=t.length;return nl(el(t,0,r-1)+"-"+el(t,r-1,r)+(n||""))}).replace(/([a-z]?)([A-Z]+)([a-z]?)/g,function(e,t,n,r,i){var o=n.length;return o>1&&(t&&(t+="-"),r)?(t||"")+nl(el(n,0,o-1))+"-"+nl(el(n,o-1,o))+r:(t||"")+(i?"-":"")+nl(n)+(r||"")});return t=t.replace(/([-]+)/g,function(e,n,r){return r&&r+n.length<t.length?"-":""}),al[e]=t,t}const ll=sl;function cl(e,t,n){var r=Zo(e);return 0===(1===arguments.length?r:r.substring(n)).indexOf(t)}const ul=cl;function dl(e,t,n){var r=Zo(e),i=arguments.length;return i>1&&(i>2?r.substring(0,n).indexOf(t)===n-1:r.indexOf(t)===r.length-1)}const hl=dl;function pl(e,t,n){return Zo(e).replace((n||a).tmplRE||/\{{2}([.\w[\]\s]+)\}{2}/g,function(e,n){return tt(t,Hs(n))})}const fl=pl;function ml(e,t){return fl(e,t,{tmplRE:/\{([.\w[\]\s]+)\}/g})}const gl=ml;function vl(){}const bl=vl;function yl(e,t){var n=Et(arguments,2);return function(){return e.apply(t,Et(arguments).concat(n))}}const xl=yl;function wl(e,t){var n=!1,r=null,i=Et(arguments,2);return function(){return n||(r=e.apply(t,Et(arguments).concat(i)),n=!0),r}}const Cl=wl;function _l(e,t,n){var r=0,i=[];return function(){var o=arguments;r++,r<=e&&i.push(o[0]),r>=e&&t.apply(n,[i].concat(Et(o)))}}const Sl=_l;function kl(e,t,n){var r=0,i=[];return n=n||this,function(){var o=arguments;r++,r<e&&(i.push(o[0]),t.apply(n,[i].concat(Et(o))))}}const El=kl;function Ol(e,t,n){var r=null,i=null,o=!1,a=null,s=Q({leading:!0,trailing:!0},n),l=s.leading,c=s.trailing,u=function(){r=null,i=null},d=function(){o=!0,e.apply(i,r),a=setTimeout(h,t),u()},h=function(){a=null,o||!0!==c?u():d()},p=function(){var e=null!==a;return e&&clearTimeout(a),u(),a=null,o=!1,e},f=function(){r=arguments,i=this,o=!1,null!==a||!0!==l?!0===c&&(a=setTimeout(h,t)):d()};return f.cancel=p,f}const Tl=Ol;function $l(e,t,n){var r=null,i=null,o="boolean"===typeof n?{leading:n,trailing:!n}:Q({leading:!1,trailing:!0},n),a=!1,s=null,l=o.leading,c=o.trailing,u=function(){r=null,i=null},d=function(){a=!0,e.apply(i,r),u()},h=function(){!0===l&&(s=null),a||!0!==c?u():d()},p=function(){var e=null!==s;return e&&clearTimeout(s),u(),s=null,a=!1,e},f=function(){a=!1,r=arguments,i=this,null===s?!0===l&&d():clearTimeout(s),s=setTimeout(h,t)};return f.cancel=p,f}const Dl=$l;function Ml(e,t){var n=Et(arguments,2),r=this;return setTimeout(function(){e.apply(r,n)},t)}const Fl=Ml;var Rl=decodeURIComponent;const Il=Rl;function Al(e){var t,n={};return e&&St(e)&&l(e.split("&"),function(e){t=e.split("="),n[Il(t[0])]=Il(t[1]||"")}),n}const Pl=Al;var Ll=encodeURIComponent;const Nl=Ll;function jl(e,t,n){var r,i=[];return A(e,function(e,o){r=f(e),xe(e)||r?i=i.concat(jl(e,t+"["+o+"]",r)):i.push(Nl(t+"["+(n?"":o)+"]")+"="+Nl(ue(e)?"":e))}),i}function Bl(e){var t,n=[];return A(e,function(e,r){qe(e)||(t=f(e),xe(e)||t?n=n.concat(jl(e,r,t)):n.push(Nl(r)+"="+Nl(ue(e)?"":e)))}),n.join("&").replace(/%20/g,"+")}const Vl=Bl;var zl=typeof location===g?0:location;const Hl=zl;function Wl(){return Hl?Hl.origin||Hl.protocol+"//"+Hl.host:""}const ql=Wl;function Gl(e){return Pl(e.split("?")[1]||"")}function Yl(e){var t,n,r,i,o=""+e;return 0===o.indexOf("//")?o=(Hl?Hl.protocol:"")+o:0===o.indexOf("/")&&(o=ql()+o),r=o.replace(/#.*/,"").match(/(\?.*)/),i={href:o,hash:"",host:"",hostname:"",protocol:"",port:"",search:r&&r[1]&&r[1].length>1?r[1]:""},i.path=o.replace(/^([a-z0-9.+-]*:)\/\//,function(e,t){return i.protocol=t,""}).replace(/^([a-z0-9.+-]*)(:\d+)?\/?/,function(e,t,r){return n=r||"",i.port=n.replace(":",""),i.hostname=t,i.host=t+n,"/"}).replace(/(#.*)/,function(e,t){return i.hash=t.length>1?t:"",""}),t=i.hash.match(/#((.*)\?|(.*))/),i.pathname=i.path.replace(/(\?|#.*).*/,""),i.origin=i.protocol+"//"+i.host,i.hashKey=t&&(t[2]||t[1])||"",i.hashQuery=Gl(i.hash),i.searchQuery=Gl(i.search),i}const Ul=Yl;function Kl(){if(Hl){var e=Hl.pathname,t=zr(e,"/")+1;return ql()+(t===e.length?e:e.substring(0,t))}return""}const Xl=Kl;function Zl(){return Hl?Ul(Hl.href):{}}const Ql=Zl;function Jl(e,t){var n=parseFloat(t),r=Dr(),i=nr(r);switch(e){case"y":return nr(Aa(r,n));case"M":return nr(Ra(r,n));case"d":return nr(Wa(r,n));case"h":case"H":return i+60*n*60*1e3;case"m":return i+60*n*1e3;case"s":return i+1e3*n}return i}function ec(e){return(Xn(e)?e:new Date(e)).toUTCString()}function tc(e,t,n){if(mi){var r,i,o,s,c,u,d=[],h=arguments;return f(e)?d=e:h.length>1?d=[Q({name:e,value:t},n)]:pn(e)&&(d=[e]),d.length>0?(l(d,function(e){r=Q({},a.cookies,e),o=[],r.name&&(i=r.expires,o.push(Nl(r.name)+"="+Nl(pn(r.value)?JSON.stringify(r.value):r.value)),i&&(i=isNaN(i)?i.replace(/^([0-9]+)(y|M|d|H|h|m|s)$/,function(e,t,n){return ec(Jl(n,t))}):/^[0-9]{11,13}$/.test(i)||Xn(i)?ec(i):ec(Jl("d",i)),r.expires=i),l(["expires","path","domain","secure"],function(e){qe(r[e])||o.push(r[e]&&"secure"===e?e:e+"="+r[e])})),mi.cookie=o.join("; ")}),!0):(s={},c=mi.cookie,c&&l(c.split("; "),function(e){u=e.indexOf("="),s[Il(e.substring(0,u))]=Il(e.substring(u+1)||"")}),1===h.length?s[e]:s)}return!1}function nc(e){return Ae(ac(),e)}function rc(e){return tc(e)}function ic(e,t,n){return tc(e,t,n),tc}function oc(e,t){tc(e,"",Q({expires:-1},a.cookies,t))}function ac(){return H(tc())}function sc(){return tc()}Q(tc,{has:nc,set:ic,setItem:ic,get:rc,getItem:rc,remove:oc,removeItem:oc,keys:ac,getJSON:sc});const lc=tc;function cc(e){try{var t="__xe_t";return e.setItem(t,1),e.removeItem(t),!0}catch(n){return!1}}function uc(e){return navigator.userAgent.indexOf(e)>-1}function dc(){var e,t,n,r=!1,i=!1,o=!1,a={isNode:!1,isMobile:r,isPC:!1,isDoc:!!mi};if(yi||typeof process===g){n=uc("Edge"),t=uc("Chrome"),r=/(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent),a.isDoc&&(e=mi.body||mi.documentElement,l(["webkit","khtml","moz","ms","o"],function(t){a["-"+t]=!!e[t+"MatchesSelector"]}));try{i=cc(yi.localStorage)}catch(s){}try{o=cc(yi.sessionStorage)}catch(s){}Q(a,{edge:n,firefox:uc("Firefox"),msie:!n&&a["-ms"],safari:!t&&!n&&uc("Safari"),isMobile:r,isPC:!r,isLocalStorage:i,isSessionStorage:o})}else a.isNode=!0;return a}const hc=dc;Q(ie,{assign:Q,objectEach:$,lastObjectEach:le,objectMap:fe,mapEach:M,lastMapEach:ge,setEach:R,lastSetEach:be,merge:ke,uniq:je,union:He,sortBy:ut,orderBy:lt,shuffle:gt,sample:bt,some:Me,every:Re,slice:Et,filter:Tt,find:Ft,findLast:It,findKey:Dt,includes:Ae,arrayIndexOf:zn,arrayLastIndexOf:Wn,map:Oe,reduce:Pt,copyWithin:Nt,chunk:Bt,zip:Xt,unzip:Ut,zipObject:Qt,flatten:tn,toArray:Ve,includeArrays:Le,pluck:zt,invoke:on,arrayEach:l,lastArrayEach:ae,toArrayTree:wn,toTreeArray:Sn,findTree:$n,eachTree:Fn,mapTree:An,filterTree:Ln,searchTree:Bn,hasOwnProp:O,eqNull:Ye,isNaN:Un,isFinite:Gr,isUndefined:qe,isArray:f,isFloat:Xr,isInteger:Ur,isFunction:j,isBoolean:Qr,isString:St,isNumber:Gn,isRegExp:ei,isObject:pn,isPlainObject:xe,isDate:Xn,isError:ni,isTypeError:ii,isEmpty:ai,isNull:ue,isSymbol:ci,isArguments:di,isElement:pi,isDocument:vi,isWindow:wi,isFormData:Si,isMap:y,isWeakMap:Oi,isSet:C,isWeakSet:Di,isLeapYear:Fr,isMatch:zi,isEqual:Bi,isEqualWith:Wi,getType:Gi,uniqueId:Ui,getSize:Wr,indexOf:Br,lastIndexOf:zr,findIndexOf:Ii,findLastIndexOf:Xi,toStringJSON:Qi,toJSONString:eo,keys:H,values:ft,entries:no,pick:ao,omit:lo,first:uo,last:po,each:A,forOf:Ir,lastForOf:Pr,lastEach:dn,has:mo,get:tt,set:xo,groupBy:_o,countBy:ko,clone:U,clear:mn,remove:bn,range:Oo,destructuring:$o,random:ht,min:Mo,max:Gt,commafy:ta,round:qo,ceil:Yo,floor:Ko,toFixed:Jo,toNumber:Ct,toNumberString:jo,toInteger:ra,add:ca,subtract:da,multiply:oa,divide:ma,sum:va,mean:ya,now:bs,timestamp:xs,isValidDate:Ma,isDateSame:Cs,toStringDate:Tr,toDateString:gs,getWhatYear:Aa,getWhatQuarter:Na,getWhatMonth:Ra,getWhatWeek:za,getWhatDay:Wa,getWhatHours:Ga,getWhatMinutes:Ua,getWhatSeconds:Xa,getYearDay:us,getYearWeek:is,getMonthWeek:Ss,getDayOfYear:Es,getDayOfQuarter:Ts,getDayOfMonth:Ds,getDateDiff:Rs,trim:Hs,trimLeft:Vs,trimRight:js,escape:Ks,unescape:Qs,camelCase:ol,kebabCase:ll,repeat:Ls,padStart:hs,padEnd:As,startsWith:ul,endsWith:hl,template:fl,toFormatString:gl,toString:Zo,toValueString:Zo,noop:bl,property:he,bind:xl,once:Cl,after:Sl,before:El,throttle:Tl,debounce:Dl,delay:Fl,unserialize:Pl,serialize:Vl,parseUrl:Ul,getBaseURL:Xl,locat:Ql,browse:hc,cookie:lc});const pc=ie;var fc=null,mc=null,gc=null,vc="z-index-manage",bc=null,yc="z-index-style",xc="m",wc="s",Cc={m:1e3,s:1e3};function _c(){return fc||"undefined"!==typeof document&&(fc=document),fc}function Sc(){return fc&&!mc&&(mc=fc.body||fc.getElementsByTagName("body")[0]),mc}function kc(){var e=0,t=_c();if(t){var n=Sc();if(n)for(var r=n.getElementsByTagName("*"),i=0;i<r.length;i++){var o=r[i];if(o&&o.style&&1===o.nodeType){var a=o.style.zIndex;a&&/^\d+$/.test(a)&&(e=Math.max(e,Number(a)))}}}return e}function Ec(){if(!bc){var e=_c();e&&(bc=e.getElementById(yc),bc||(bc=e.createElement("style"),bc.id=yc,e.getElementsByTagName("head")[0].appendChild(bc)))}return bc}function Oc(){var e=Ec();if(e){var t="--dom-",n="-z-index";e.innerHTML=":root{"+t+"main"+n+":"+Fc()+";"+t+"sub"+n+":"+Pc()+"}"}}function Tc(){if(!gc){var e=_c();if(e&&(gc=e.getElementById(vc),!gc)){var t=Sc();t&&(gc=e.createElement("div"),gc.id=vc,gc.style.display="none",t.appendChild(gc),Dc(Cc.m),Ic(Cc.s))}}return gc}function $c(e){return function(t){if(t){t=Number(t),Cc[e]=t;var n=Tc();n&&(n.dataset?n.dataset[e]=t+"":n.setAttribute("data-"+e,t+""))}return Oc(),Cc[e]}}var Dc=$c(xc);function Mc(e,t){return function(n){var r,i=Tc();if(i){var o=i.dataset?i.dataset[e]:i.getAttribute("data-"+e);o&&(r=Number(o))}return r||(r=Cc[e]),n?Number(n)<r?t():n:r}}var Fc=Mc(xc,Rc);function Rc(){return Dc(Fc()+1)}var Ic=$c(wc),Ac=Mc(wc,Lc);function Pc(){return Fc()+Ac()}function Lc(){return Ic(Ac()+1),Pc()}var Nc={setCurrent:Dc,getCurrent:Fc,getNext:Rc,setSubCurrent:Ic,getSubCurrent:Pc,getSubNext:Lc,getMax:kc};Oc();const jc=Nc,Bc={size:"",version:1,zIndex:999,resizeInterval:500},Vc={theme:""};function zc(e){const t=e&&"default"!==e?e:"light";if(Vc.theme=t,"undefined"!==typeof document){const e=document.documentElement;e&&e.setAttribute("data-vxe-ui-theme",t)}return i}function Hc(){return Vc.theme}function Wc(e){return e&&(e.zIndex&&jc.setCurrent(e.zIndex),e.theme&&zc(e.theme),pc.merge(Bc,e)),i}function qc(e,t){return arguments.length?pc.get(Bc,e,t):Bc}const Gc={},Yc={};function Uc(e){return pc.isArray(e)?e:e?[e]:[]}function Kc(e){return e&&Object.assign(Yc,e),i}function Xc(e){return arguments.length?pc.get(Yc,e):Yc}function Zc(e,t){const n=Xc(t);return Qc(e,n,t)}function Qc(e,t,n){return pc.isFunction(t)?e("span",{},Uc(t({name:n}))):e("i",{class:t})}const Jc={F2:"F2",F10:"F10",TAB:"Tab",ESCAPE:"Escape",ENTER:"Enter",DELETE:"Delete",BACKSPACE:"Backspace",SPACEBAR:" ",CONTEXT_MENU:"ContextMenu",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",HOME:"Home",END:"End",PROCESS:"Process",A:"A",X:"X",C:"C",V:"V",D:"D",F:"F",H:"H",M:"M",Y:"Y",Z:"Z",R:"R",P:"P"},eu=pc.browse(),tu={" ":"Spacebar",Apps:Jc.CONTEXT_MENU,Del:Jc.DELETE,Up:Jc.ARROW_UP,Down:Jc.ARROW_DOWN,Left:Jc.ARROW_LEFT,Right:Jc.ARROW_RIGHT},nu=eu.firefox?"DOMMouseScroll":"mousewheel",ru=[];function iu(e){const t=e.type===nu;ru.forEach(({type:n,cb:r})=>{e.cancelBubble||(n===e.type||t&&"mousewheel"===n)&&r(e)})}class ou{constructor(e,t,n){Object.defineProperty(this,"$event",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"key",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:""}),this.$event=e,e&&(e.type&&(this.type=e.type),e.key&&(this.key=e.key),e.code&&(this.code=e.code)),Object.assign(this,t),pc.objectEach(n,(e,t)=>{if(pc.isFunction(e)){let n=null,r=!1;Object.defineProperty(this,t,{get(){return r||(r=!0,n=e()),n}})}else this[t]=e})}stopPropagation(){const e=this.$event;e&&e.stopPropagation()}preventDefault(){const e=this.$event;e&&e.preventDefault()}}const au=(e,t,n)=>(e instanceof ou&&(e=e.$event),new ou(e,t,n)),su={on(e,t,n){ru.push({comp:e,type:t,cb:n})},off(e,t){pc.remove(ru,n=>n.comp===e&&n.type===t)},hasKey(e,t){if(!t)return!1;const{key:n}=e;return t=t.toLowerCase(),!!n&&(t===n.toLowerCase()||!(!tu[n]||tu[n].toLowerCase()!==t))}};let lu;eu.isDoc&&(eu.msie||(window.addEventListener("copy",iu,!1),window.addEventListener("cut",iu,!1),window.addEventListener("paste",iu,!1)),document.addEventListener("scroll",iu,!0),document.addEventListener("keydown",iu,!1),document.addEventListener("contextmenu",iu,!1),window.addEventListener("click",iu,!1),window.addEventListener("mousedown",iu,!1),window.addEventListener("blur",iu,!1),window.addEventListener("resize",iu,!1),window.addEventListener(nu,pc.throttle(iu,100,{leading:!0,trailing:!1}),{passive:!0,capture:!1}));const cu=[],uu=500;function du(){cu.length&&(cu.forEach(e=>{e.tarList.forEach(t=>{const{target:n,width:r,heighe:i}=t,o=n.clientWidth,a=n.clientHeight,s=o&&r!==o,l=a&&i!==a;(s||l)&&(t.width=o,t.heighe=a,setTimeout(e.callback))})}),hu())}function hu(){clearTimeout(lu),lu=setTimeout(du,Bc.resizeInterval||uu)}class pu{constructor(e){Object.defineProperty(this,"tarList",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"callback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.callback=e}observe(e){if(e){const{tarList:t}=this;t.some(t=>t.target===e)||t.push({target:e,width:e.clientWidth,heighe:e.clientHeight}),cu.length||hu(),cu.some(e=>e===this)||cu.push(this)}}unobserve(e){pc.remove(cu,t=>t.tarList.some(t=>t.target===e))}disconnect(){pc.remove(cu,e=>e===this)}}const fu={create(e){return window.ResizeObserver?new window.ResizeObserver(e):new pu(e)}};var mu=n(9274),gu=n.n(mu);const vu=gu().extend({data(){return{language:"",langMaps:{}}}}),bu=new vu;let yu=!1,xu={};function wu(e){return e&&e.__esModule?e.default:e}function Cu(e,t){const{langMaps:n,language:r}=bu,{i18n:o}=Bc;if(o)return`${o(e,t)||""}`;if(yu||(n[r]||console.error(`[vxe core] 语言包未安装。Language not installed. https://${i.uiVersion?"vxeui.com":"vxetable.cn"}/#/start/i18n`),yu=!0),!t&&xu[e])return xu[e];const a=pc.toFormatString(pc.get(n[r],e,e),t);return t||(xu[e]=a),a}function _u(e){const{language:t}=bu,n=e||"zh-CN";return t!==n&&(bu.language=n,xu={}),i}function Su(e,t){const{langMaps:n}=bu;return bu.langMaps=Object.assign({},n,{[e]:Object.assign({},wu(t))}),i}function ku(e){const{langMaps:t}=bu;return!!t[e]}function Eu(){const{language:e}=bu;return e}function Ou(e,t){return function(n,r){const i=`[vxe ${t||""}] ${Cu(n,r)}`;return console[e](i),i}}const Tu="3.4.24",$u={create:Ou,warn:Ou("warn",`v${Tu}`),err:Ou("error",`v${Tu}`)},Du={},Mu={mixin(e){return pc.each(e,(e,t)=>{Mu.add(t,e)}),Mu},get(e){return Du[e]||null},add(e,t){if(e&&t){const n=Du[e];n?(pc.each(t,(t,r)=>{pc.eqNull(n[r])||n[r]===t||$u.warn("vxe.error.coverProp",[`Renderer.${e}`,r])}),Object.assign(n,t)):Du[e]=t}return Mu},forEach(e){return pc.objectEach(Du,e),Mu},delete(e){return delete Du[e],Mu}};class Fu{constructor(){Object.defineProperty(this,"store",{enumerable:!0,configurable:!0,writable:!0,value:{}})}mixin(e){return pc.each(e,(e,t)=>{this.add(t,e)}),this}has(e){return!!this.get(e)}get(e){return this.store[e]}add(e,t){const n=this.store[e],r=pc.keys(n);return pc.each(t,(t,n)=>{r.includes(n)&&$u.warn("vxe.error.coverProp",[e,n])}),this.store[e]=n?pc.merge(n,t):t,this}delete(e){delete this.store[e]}forEach(e){pc.objectEach(this.store,e)}}const Ru=Fu,Iu=new Ru;Object.assign(Iu,{_name:"Validators"});class Au{constructor(){Object.defineProperty(this,"store",{enumerable:!0,configurable:!0,writable:!0,value:{}})}mixin(e){return pc.each(e,(e,t)=>{this.add(t,e)}),this}has(e){return!!this.get(e)}get(e){return this.store[e]}add(e,t){const n=this.store[e];pc.isFunction(t)&&($u.warn("vxe.error.delProp",["menus -> callback","menuMethod"]),t={menuMethod:t});const r=pc.keys(n);return pc.each(t,(t,n)=>{r.includes(n)&&$u.warn("vxe.error.coverProp",[e,n])}),this.store[e]=n?pc.merge(n,t):t,this}delete(e){delete this.store[e]}forEach(e){pc.objectEach(this.store,e)}}const Pu=new Au;Object.assign(Pu,{_name:"Menus"});class Lu{constructor(){Object.defineProperty(this,"store",{enumerable:!0,configurable:!0,writable:!0,value:{}})}mixin(e){return pc.each(e,(e,t)=>{this.add(t,e)}),this}has(e){return!!this.get(e)}get(e){return this.store[e]}add(e,t){const n=this.store[e];pc.isFunction(t)&&($u.warn("vxe.error.delProp",["formats -> callback","cellFormatMethod"]),t={cellFormatMethod:t});const r=pc.keys(n);return pc.each(t,(t,n)=>{r.includes(n)&&$u.warn("vxe.error.coverProp",[e,n])}),this.store[e]=n?pc.merge(n,t):t,this}delete(e){delete this.store[e]}forEach(e){pc.objectEach(this.store,e)}}const Nu=new Lu;Object.assign(Nu,{_name:"Formats"});class ju{constructor(){Object.defineProperty(this,"store",{enumerable:!0,configurable:!0,writable:!0,value:{}})}mixin(e){return pc.each(e,(e,t)=>{this.add(t,e)}),this}has(e){return!!this.get(e)}get(e){return this.store[e]}add(e,t){const n=this.store[e];pc.isFunction(t)&&($u.warn("vxe.error.delProp",["commands -> callback","commandMethod"]),t={commandMethod:t});const r=pc.keys(n);return pc.each(t,(t,n)=>{r.includes(n)&&$u.warn("vxe.error.coverProp",[e,n])}),this.store[e]=n?pc.merge(n,t):t,this}delete(e){delete this.store[e]}forEach(e){pc.objectEach(this.store,e)}}const Bu=new ju;Object.assign(Bu,{_name:"Commands"});const Vu={},zu={mixin(e){return pc.each(e,(e,t)=>{zu.add(t,e)}),zu},get(e){return e&&Vu[e]||[]},add(e,t){pc.isFunction(t)&&(t={tableInterceptorMethod:t});const n=t.tableInterceptorMethod;if(n){let t=Vu[e];t||(t=Vu[e]=[]),t.indexOf(n)>-1&&$u.warn("vxe.error.coverProp",["Interceptor",e]),t.push(n)}return zu},delete(e,t){const n=Vu[e];if(n){pc.isFunction(t)&&(t={tableInterceptorMethod:t});const r=t?t.tableInterceptorMethod:null;r?pc.remove(n,e=>e===r):delete Vu[e]}}};let Hu;const Wu={text:"",html:""};function qu(e){if(!Hu){Hu=document.createElement("textarea"),Hu.id="$VxeCopy";const e=Hu.style;e.width="48px",e.height="24px",e.position="fixed",e.zIndex="0",e.left="-500px",e.top="-500px",document.body.appendChild(Hu)}Hu.value=e}const Gu={getStore(){return Wu},setStore(e){Object.assign(Wu,e||{})},copy(e){let t=!1;try{const n=pc.toValueString(e);qu(n),Hu.select(),Hu.setSelectionRange(0,Hu.value.length),t=document.execCommand("copy"),Hu.blur(),Wu.text=n,Wu.html=""}catch(n){}return t},getText(){return Wu.text||""}};function Yu(e,t){let n=!0,r=!1;const i=t||Bc.permissionMethod;if(e&&i){n=!1,r=!0;let t=!1,o=!1;const a=String(e).split("|");for(let e=0;e<a.length;e++){const s=a[e];let l=!0,c=!1;const u=i({code:s});if(pc.isBoolean(u)?l=u:u&&(l=!!u.visible,c=!!u.disabled),c||o||(o=!0,r=c),l&&!t&&(t=!0,n=l),t&&o)break}}const o={code:e,visible:n,disabled:r};return o}const Uu={getCheckInfo(e){return Yu(e)},checkVisible(e){const t=Yu(e);return t.visible},checkDisable(e){const t=Yu(e);return t.disabled}},Ku=gu().extend({inject:{$xeSizeInfo:{default:null}},provide(){return{$xeSizeInfo:{getSize:()=>this.computeSize}}},computed:{computeSize(){const{size:e}=this,t=this.$xeSizeInfo;return e||(t?t.getSize():null)}}}),Xu=gu().extend({computed:{computePermissionInfo(){return Yu(this.permissionCode,this.permissionMethod)}}}),Zu={sizeMixin:Ku,permissionMixin:Xu},Qu=[];function Ju(e,t){return e&&e.install&&-1===Qu.indexOf(e)&&(e.install(ad,t),Qu.push(e)),ad}const ed={};function td(e){return ed[e]||null}function nd(e){e&&e.name&&(ed[e.name]=e,ed[pc.kebabCase(e.name)]=e)}function rd(e){return!!ed[e]}function id(e){const{_e:t}=e;return t()}function od(e,t,n){if(e){const r=`${e}`.match(/(\d+).(\d+).(\d+)/);if(r){const e=pc.toNumber(r[1]);if(n){const i=pc.toNumber(r[2]);return e>=t&&i>=n}return e>=t}}return!1}const ad=Object.assign(i,{renderEmptyElement:id,setTheme:zc,getTheme:Hc,setConfig:Wc,getConfig:qc,setIcon:Kc,getIcon:Xc,renderGlobalIcon:Zc,renderCustomIcon:Qc,setLanguage:_u,hasLanguage:ku,getLanguage:Eu,setI18n:Su,getI18n:Cu,globalEvents:su,GLOBAL_EVENT_KEYS:Jc,createEvent:au,globalResize:fu,renderer:Mu,validators:Iu,menus:Pu,formats:Nu,commands:Bu,interceptor:zu,clipboard:Gu,log:$u,permission:Uu,globalStore:Gc,component:nd,getComponent:td,hasComponent:rd,globalMixins:Zu,getSlotVNs:Uc,checkVersion:od,use:Ju});zc();const{getConfig:sd}=ad;function ld(e){return e&&!1!==e.enabled}function cd(e){return null===e||void 0===e||""===e}function ud(e){const t=e.name,n=pc.lastIndexOf(t,"."),r=t.substring(n+1,t.length).toLowerCase(),i=t.substring(0,n);return{filename:i,type:r}}function dd(){return jc.getNext()}function hd(){return jc.getCurrent()}function pd(e){return e&&e.children&&e.children.length>0}function fd(e,t){if(pc.eqNull(e))return"";const n=sd().translate;return`${n?n(""+e,t):e}`}function md(e,t){return""+(cd(e)?t?sd().emptyCell:"":e)}function gd(e){return""===e||pc.eqNull(e)}function vd(e,t){return e?pc.isFunction(e)?e(t):e:""}function bd(e,t){return pc.eqNull(e)?t:e}const yd="3.24.2";ad.version=yd,ad.tableVersion=yd,ad.setConfig({emptyCell:" ",table:{fit:!0,showHeader:!0,animat:!0,delayHover:250,autoResize:!0,padding:!0,resizeConfig:{},resizableConfig:{dragMode:"auto",showDragTip:!0,isSyncAutoHeight:!0,isSyncAutoWidth:!0,minHeight:18},currentRowConfig:{strict:!0},currentColumnConfig:{strict:!0},radioConfig:{strict:!0},rowDragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},columnDragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},checkboxConfig:{strict:!0},tooltipConfig:{mode:"tooltip",enterable:!0,defaultPlacement:"top"},headerTooltipConfig:{mode:"tooltip",enterable:!0},footerTooltipConfig:{mode:"tooltip",enterable:!0},validConfig:{showErrorMessage:!0,autoClear:!0,autoPos:!0,message:"inline",msgMode:"single",theme:"beautify"},columnConfig:{autoOptions:{isCalcHeader:!0,isCalcBody:!0,isCalcFooter:!0},maxFixedSize:4},cellConfig:{padding:!0},headerCellConfig:{height:"unset"},footerCellConfig:{height:"unset"},menuConfig:{destroyOnClose:!0},customConfig:{allowVisible:!0,allowResizable:!0,allowFixed:!0,allowSort:!0,allowAlign:!0,showSortDragButton:!0,showFooter:!0,placement:"top-right",storeOptions:{visible:!0,resizable:!0,sort:!0,fixed:!0,align:!0,headerAlign:!0,footerAlign:!0,aggFunc:!0},modalOptions:{showMaximize:!0,mask:!0,lockView:!0,resize:!0,escClosable:!0},drawerOptions:{mask:!0,lockView:!0,escClosable:!0,resize:!0}},sortConfig:{showIcon:!0,allowClear:!0,allowBtn:!0,iconLayout:"vertical"},filterConfig:{destroyOnClose:!0,multiple:!0,showIcon:!0,maxHeight:280},floatingFilterConfig:{},aggregateConfig:{padding:!0,placement:"left",rowField:"id",parentField:"_X_ROW_PARENT_KEY",childrenField:"_X_ROW_CHILDREN",mapChildrenField:"_X_ROW_CHILD_LIST",indent:20,showIcon:!0,maxGroupSize:4,showAggFuncTitle:!0},treeConfig:{padding:!0,rowField:"id",parentField:"parentId",childrenField:"children",hasChildField:"hasChild",mapChildrenField:"_X_ROW_CHILD",indent:20,showIcon:!0,showRootLine:!0},expandConfig:{showIcon:!0,mode:"fixed"},editConfig:{showIcon:!0,showAsterisk:!0,autoFocus:!0,isReuseKeep:!0},importConfig:{_typeMaps:{csv:1,html:1,xml:1,txt:1}},exportConfig:{_typeMaps:{csv:1,html:1,xml:1,txt:1}},printConfig:{},mouseConfig:{extension:!0},keyboardConfig:{isAll:!0,isEsc:!0},areaConfig:{autoClear:!0,selectCellByHeader:!0,selectCellByBody:!0,extendDirection:{top:!0,left:!0,bottom:!0,right:!0}},clipConfig:{isCopy:!0,isCut:!0,isPaste:!0},fnrConfig:{isFind:!0,isReplace:!0},virtualXConfig:{gt:24,preSize:0,oSize:0},virtualYConfig:{gt:100,preSize:1,oSize:0},scrollbarConfig:{x:{visible:!0},y:{visible:!0}},undoRedoHistoryConfig:{stackSize:50}},grid:{formConfig:{enabled:!0},pagerConfig:{enabled:!0},toolbarConfig:{enabled:!0},proxyConfig:{enabled:!0,autoLoad:!0,showLoading:!0,showResponseMsg:!0,showActionMsg:!0,response:{list:"list",result:"result",total:"page.total",footerData:"footerData",message:"message"}}},toolbar:{},gantt:{}});const xd="vxe-table-icon-";ad.setIcon({TABLE_SORT_ASC:xd+"caret-up",TABLE_SORT_DESC:xd+"caret-down",TABLE_FILTER_NONE:xd+"funnel",TABLE_FILTER_MATCH:xd+"funnel",TABLE_EDIT:xd+"edit",TABLE_TITLE_PREFIX:xd+"question-circle-fill",TABLE_TITLE_SUFFIX:xd+"question-circle-fill",TABLE_TREE_LOADED:xd+"spinner roll",TABLE_TREE_OPEN:xd+"caret-right rotate90",TABLE_TREE_CLOSE:xd+"caret-right",TABLE_EXPAND_LOADED:xd+"spinner roll",TABLE_EXPAND_OPEN:xd+"arrow-right rotate90",TABLE_EXPAND_CLOSE:xd+"arrow-right",TABLE_CHECKBOX_CHECKED:xd+"checkbox-checked-fill",TABLE_CHECKBOX_UNCHECKED:xd+"checkbox-unchecked",TABLE_CHECKBOX_INDETERMINATE:xd+"checkbox-indeterminate-fill",TABLE_CHECKBOX_DISABLED_UNCHECKED:xd+"checkbox-unchecked-fill",TABLE_RADIO_CHECKED:xd+"radio-checked-fill",TABLE_RADIO_UNCHECKED:xd+"radio-unchecked",TABLE_RADIO_DISABLED_UNCHECKED:xd+"radio-unchecked-fill",TABLE_CUSTOM_SORT:xd+"drag-handle",TABLE_CUSTOM_FIXED_LEFT:xd+"fixed-left",TABLE_CUSTOM_FIXED_RIGHT:xd+"fixed-right",TABLE_CUSTOM_ALIGN_LEFT:xd+"align-left",TABLE_CUSTOM_ALIGN_CENTER:xd+"align-center",TABLE_CUSTOM_ALIGN_RIGHT:xd+"align-right",TABLE_CUSTOM_MOVE_UP:xd+"arrows-up",TABLE_CUSTOM_MOVE_DN:xd+"arrows-down",TABLE_CUSTOM_PUT_TOP:xd+"top",TABLE_CUSTOM_PUT_BOTTOM:xd+"bottom",TABLE_MENU_OPTIONS:xd+"arrow-right",TABLE_MENU_OPTION_LOADING:xd+"repeat roll",TABLE_DRAG_ROW:xd+"drag-handle",TABLE_DRAG_COLUMN:xd+"drag-handle",TABLE_DRAG_STATUS_ROW:xd+"sort",TABLE_DRAG_STATUS_SUB_ROW:xd+"add-sub",TABLE_DRAG_STATUS_AGG_GROUP:xd+"grouping",TABLE_DRAG_STATUS_AGG_VALUES:xd+"values",TABLE_DRAG_STATUS_COLUMN:xd+"swap",TABLE_DRAG_DISABLED:xd+"no-drop",TABLE_ROW_GROUP_OPEN:xd+"arrow-right rotate90",TABLE_ROW_GROUP_CLOSE:xd+"arrow-right",TABLE_AGGREGATE_GROUPING:xd+"grouping",TABLE_AGGREGATE_VALUES:xd+"values",TABLE_AGGREGATE_SORT:xd+"drag-handle",TABLE_AGGREGATE_DELETE:xd+"close",TOOLBAR_TOOLS_REFRESH:xd+"repeat",TOOLBAR_TOOLS_REFRESH_LOADING:xd+"repeat roll",TOOLBAR_TOOLS_IMPORT:xd+"upload",TOOLBAR_TOOLS_EXPORT:xd+"download",TOOLBAR_TOOLS_PRINT:xd+"print",TOOLBAR_TOOLS_FULLSCREEN:xd+"fullscreen",TOOLBAR_TOOLS_MINIMIZE:xd+"minimize",TOOLBAR_TOOLS_CUSTOM:xd+"setting",TOOLBAR_TOOLS_FIXED_LEFT:xd+"fixed-left",TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE:xd+"fixed-left-fill",TOOLBAR_TOOLS_FIXED_RIGHT:xd+"fixed-right",TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE:xd+"fixed-right-fill"});const wd=ad.setTheme,Cd=ad.getTheme,_d=ad.setConfig,Sd=ad.getConfig,kd=ad.setIcon,Ed=ad.getIcon,Od=ad.setLanguage,Td=ad.setI18n,$d=ad.getI18n,Dd=ad.globalEvents,Md=ad.globalResize,Fd=ad.renderer,Rd=ad.validators,Id=ad.menus,Ad=ad.formats,Pd=ad.commands,Ld=ad.interceptor,Nd=ad.clipboard,jd=ad.log,Bd=ad.use,Vd=e=>ad.setConfig(e);ad.setup=Vd;const zd=e=>ad.setConfig(e);ad.config=zd;const Hd=(e,t)=>ad.getI18n(e,t);ad.t=Hd;const Wd=(e,t)=>fd(e,t);ad._t=Wd;const qd=ad,Gd=e=>ad.saveFile(e),Yd=e=>ad.readFile(e),Ud=e=>ad.print(e),Kd={get(e){return ad.modal.get(e)},close(e){return ad.modal.close(e)},open(e){return ad.modal.open(e)},alert(e,t,n){return ad.modal.alert(e,t,n)},confirm(e,t,n){return ad.modal.confirm(e,t,n)},message(e,t){return ad.modal.message(e,t)},notification(e,t,n){return ad.modal.notification(e,t,n)}};const Xd={};let Zd;function Qd(){return Zd||(Zd=new Image,Zd.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="),Zd}function Jd(){return Zd||Qd()}function eh(e,t){return e&&(pc.isFunction(e)?e(t):e)||""}function th(e){return Xd[e]||(Xd[e]=new RegExp(`(?:^|\\s)${e}(?!\\S)`,"g")),Xd[e]}function nh(e){return e&&/^\d+(\.\d+)?(px)?$/.test(e)}function rh(e){return e&&/^\d+(\.\d+)?%$/.test(e)}function ih(e,t){return!!e&&(e.classList?e.classList.contains(t):!!(e.className&&e.className.match&&e.className.match(th(t))))}function oh(e,t){e&&ih(e,t)&&(e.className=e.className.replace(th(t),""))}function ah(e,t){e&&!ih(e,t)&&(oh(e,t),e.className=`${e.className} ${t}`)}function sh(e){return e.ctrlKey||e.metaKey}function lh(e,t="px"){return pc.isNumber(e)||/^\d+$/.test(`${e}`)?`${e}${t}`:`${e||""}`}function ch(e,t){return e?e.querySelector(t):null}function uh(){const e=document.documentElement,t=document.body;return{scrollTop:e.scrollTop||t.scrollTop,scrollLeft:e.scrollLeft||t.scrollLeft,visibleHeight:e.clientHeight||t.clientHeight,visibleWidth:e.clientWidth||t.clientWidth}}function dh(e){return e?e.offsetHeight:0}function hh(e){if(e){const t=getComputedStyle(e),n=pc.toNumber(t.paddingTop),r=pc.toNumber(t.paddingBottom);return n+r}return 0}function ph(e,t){e&&(e.scrollTop=t)}function fh(e,t){e&&(e.scrollLeft=t)}function mh(e,t){const n="html"===t.type?e.innerText:e.textContent;e.getAttribute("title")!==n&&e.setAttribute("title",n)}function gh(e,t,n){let r=e;if(!t||!t.length)return!1;const[i,o,a]=t;while(r){if(i===r||o&&r===o||a&&r===a)return!0;if(n&&r===n)return!1;r=r.parentElement}return!1}function vh(e,t,n,r){let i,o=e.target.shadowRoot&&e.composed&&e.composedPath()[0]||e.target;while(o&&o.nodeType&&o!==document){if(n&&ih(o,n)&&(!r||r(o)))i=o;else if(o===t)return{flag:!n||!!i,container:t,targetElem:i};o=o.parentNode}return{flag:!1}}function bh(e){const t=e.getBoundingClientRect(),n=t.top,r=t.left,{scrollTop:i,scrollLeft:o,visibleHeight:a,visibleWidth:s}=uh();return{boundingTop:n,top:i+n,boundingLeft:r,left:o+r,visibleHeight:a,visibleWidth:s}}function yh(e){const t=e?e.tagName:"";return t&&["input","textarea"].includes(t.toLowerCase())}function xh(e){return!!e&&ih(e,"vxe-reusekeep-contro")}function wh(e){return!!yh(e)&&!xh(e)}const Ch="scrollIntoViewIfNeeded",_h="scrollIntoView";function Sh(e){e&&(e[Ch]?e[Ch]():e[_h]&&e[_h]())}function kh(e,t){e&&e.dispatchEvent(new Event(t))}let Eh,Oh;function Th(e,t){Eh&&cancelAnimationFrame(Eh),Eh=requestAnimationFrame(()=>{t(e),Eh=null})}function $h(e,t){Oh&&cancelAnimationFrame(Oh),Oh=requestAnimationFrame(()=>{const n=e;t(n),Oh=null})}function Dh(e,t,n){const{defaultTop:r,defaultLeft:i,placement:o,defaultPlacement:a,teleportTo:s,marginSize:l,isMinWidth:c}=Object.assign({teleportTo:!1,marginSize:18,isMinWidth:!0},n);let u="bottom",d="",h="",p=0,f="",m="";const g={};if(t&&e){const n=document.body,v=Mh(t);if(v){const b=e.offsetWidth,y=e.offsetHeight,x=t.offsetWidth,w=t.offsetHeight,C=v.getBoundingClientRect(),_=t.getBoundingClientRect(),S=e.getBoundingClientRect(),k=n.clientHeight,E=n.clientWidth,O=C.left,T=C.top,$=S.left,D=S.top;f=e.offsetWidth,s?(p=i||$-(x-b)/2,d=r||D+y,"top"===o?(u="top",d=D-w):o||("top"===a?(u="top",r||(d=D-w),d<l&&(u="bottom",d=D+y),d+w+l>k&&(u="top",d=D-w)):(d+w+l>k&&(u="top",d=D-w),d<l&&(u="bottom",d=D+y))),p+x+l>E&&(p-=p+x+l-E),p<l&&(p=l),d-=T,p-=O):("top"===o?(u="top",h=y):o||(d=y,D+y+w+l>k&&D-y-w>l&&(u="top",d="",h=y)),_.left+_.width+l>E&&(p=-(_.left+_.width+l-E))),pc.isNumber(d)&&(g.top=lh(d)),pc.isNumber(h)&&(g.bottom=lh(h)),pc.isNumber(p)&&(g.left=lh(p)),c&&pc.isNumber(f)&&(g.minWidth=lh(f)),p===$?b<=x&&(m=b/2):p<$&&(m=p+x>$+b?$-p+b/2:$-p+(x-($-p))/2)}}return{top:d||0,bottom:h||0,left:p||0,arrowLeft:m||0,style:g,placement:u}}function Mh(e){if(!e)return null;const t=document.body,n=e.parentElement;return(n===t?document.documentElement:n)||null}const{log:Fh}=ad,Rh="table v3.24.2";function Ih(e){const t=ad.uiVersion?`ui v${ad.uiVersion}`:"",n=ad.ganttVersion?`gantt v${ad.ganttVersion}`:"",r=ad.designVersion?`design v${ad.designVersion}`:"",i=[t,Rh,n,r].filter(e=>e).join(" ");return{warnLog:Fh.create("warn",i+"] ["+e),errLog:Fh.create("error",i+"] ["+e)}}Fh.create("warn",Rh),Fh.create("error",Rh);const{warnLog:Ah,errLog:Ph}=Ih("table"),{getI18n:Lh,formats:Nh,renderer:jh}=ad;class Bh{constructor(e,t,{renderHeader:n,renderCell:r,renderFooter:i,renderData:o}={}){const a=e,s=e.$xeGrid,l=e.$xeGantt,c=s||l,{type:u,field:d,width:h,visible:p,fixed:f,align:m,headerAlign:g,footerAlign:v,aggFunc:b,formatter:y,filterMultiple:x,cellRender:w,editRender:C,filterRender:_}=t,S=t.colId||pc.uniqueId("col_"),k=s?s.computeProxyOpts:null,E=!pc.isBoolean(p)||p,O=h&&nh(h)&&"auto"!==h?Math.max(0,pc.toInteger(h)):0,T=e.computeRendererOpts,$=_&&ld(_)&&_.name?T[_.name]||jh.get(_.name):null,D=$?$.createTableFilterOptions:null,M=yp(t.filters,S),F=["seq","checkbox","radio","expand","html"];if(u&&-1===F.indexOf(u)&&Ah("vxe.error.errProp",[`type=${u}`,F.join(", ")]),(pc.isBoolean(w)||w&&!pc.isObject(w))&&Ah("vxe.error.errProp",[`column.cell-render=${w}`,"column.cell-render={}"]),(pc.isBoolean(C)||C&&!pc.isObject(C))&&Ah("vxe.error.errProp",[`column.edit-render=${C}`,"column.edit-render={}"]),"expand"===u){const{treeConfig:t}=a;t&&(e.treeOpts.showLine||e.treeOpts.line)&&Ph("vxe.error.errConflicts",["tree-config.line","column.type=expand"])}if(t.remoteSort&&Ah("vxe.error.delProp",["column.remote-sort","sort-config.remote"]),t.sortMethod&&Ah("vxe.error.delProp",["column.sort-method","sort-config.sortMethod"]),y)if(pc.isString(y)){const e=Nh.get(y)||pc[y];e&&pc.isFunction(e.tableCellFormatMethod||e.cellFormatMethod)||Ph("vxe.error.notFormats",[y])}else if(pc.isArray(y)){const e=Nh.get(y[0])||pc[y[0]];e&&pc.isFunction(e.tableCellFormatMethod||e.cellFormatMethod)||Ph("vxe.error.notFormats",[y[0]])}b&&(e.handlePivotTableAggData||!0===b||Ph("vxe.error.errProp",[`column.agg-func=${b}`,"column.agg-func=true"])),d&&C&&(C.startField&&`${C.startField}`.indexOf(d)>=0&&Ph("vxe.error.modelConflicts",[`field=${d}`,`edit-render.startField=${C.startField}`]),C.endField&&`${C.endField}`.indexOf(d)>=0&&Ph("vxe.error.modelConflicts",[`field=${d}`,`edit-render.endField=${C.endField}`])),Object.assign(this,{type:t.type,property:t.field,field:d,title:t.title,width:t.width,minWidth:t.minWidth,maxWidth:t.maxWidth,resizable:t.resizable,fixed:f,align:m,headerAlign:g,footerAlign:v,showOverflow:t.showOverflow,showHeaderOverflow:t.showHeaderOverflow,showFooterOverflow:t.showFooterOverflow,className:t.className,headerClassName:t.headerClassName,footerClassName:t.footerClassName,formatter:y,headerFormatter:t.headerFormatter,footerFormatter:t.footerFormatter,padding:t.padding,verticalAlign:t.verticalAlign,sortable:t.sortable,sortBy:t.sortBy,sortType:t.sortType,sortMethod:t.sortMethod,remoteSort:t.remoteSort,filters:M,filterMultiple:!pc.isBoolean(x)||x,filterMethod:t.filterMethod,filterResetMethod:t.filterResetMethod,filterRecoverMethod:t.filterRecoverMethod,filterRender:_,floatingFilters:t.floatingFilters,rules:t.rules,rowGroupNode:t.rowGroupNode,treeNode:t.treeNode,dragSort:t.dragSort,rowResize:t.rowResize,cellType:t.cellType,cellRender:t.cellRender,editRender:C,contentRender:t.contentRender,headerExportMethod:t.headerExportMethod,exportMethod:t.exportMethod,footerExportMethod:t.footerExportMethod,titleHelp:t.titleHelp,titlePrefix:t.titlePrefix,titleSuffix:t.titleSuffix,aggFunc:b,copyMethod:t.copyMethod,cutMethod:t.cutMethod,pasteMethod:t.pasteMethod,params:t.params,id:S,parentId:null,visible:E,defaultParentId:null,halfVisible:!1,defaultVisible:E,defaultFixed:f,defaultAlign:m,defaultHeaderAlign:g,defaultFooterAlign:v,defaultAggFunc:t.aggFunc,checked:!1,halfChecked:!1,disabled:!1,level:1,rowSpan:1,colSpan:1,order:null,sortTime:0,sortNumber:0,renderSortNumber:0,renderAggFn:"",renderAggDigits:null,renderAggFormat:null,renderAlign:"",renderHeaderAlign:"",renderFooterAlign:"",renderFixed:"",renderVisible:!1,renderWidth:O,renderHeight:0,renderResizeWidth:0,renderAutoWidth:0,resizeWidth:0,renderLeft:0,renderArgs:[],model:{},renderHeader:n||t.renderHeader,renderCell:r||t.renderCell,renderFooter:i||t.renderFooter,renderData:o,slots:t.slots}),!D||M&&M.length||(this.filters=yp(D({$table:e,column:this}),S)),c&&k&&k.beforeColumn&&k.beforeColumn({$table:e,$grid:s,$gantt:l,column:this})}getTitle(){return fd(this.title||("seq"===this.type?Lh("vxe.table.seqTitle"):""))}getKey(){const{type:e,field:t}=this;return t||(e?`type=${e}`:null)}update(e,t){"filters"!==e&&("field"===e&&(this.property=t),this[e]=t)}}const{warnLog:Vh,errLog:zh}=Ih("table");function Hh(){return{tZindex:0,currKeyField:"",isCurrDeepKey:!1,elemStore:{},scrollXStore:{preloadSize:0,offsetSize:0,visibleSize:0,visibleStartIndex:0,visibleEndIndex:0,startIndex:0,endIndex:0},scrollYStore:{preloadSize:0,offsetSize:0,visibleSize:0,visibleStartIndex:0,visibleEndIndex:0,startIndex:0,endIndex:0},tableWidth:0,tableHeight:0,customHeight:0,customMinHeight:0,customMaxHeight:0,hoverRow:null,hoverCol:null,currentRow:null,currentCol:null,lastScrollLeft:0,lastScrollTop:0,radioReserveRow:null,checkboxReserveRowMap:{},rowExpandedReserveRowMap:{},treeExpandedReserveRowMap:{},treeIndeterminateRowMaps:{},tableFullData:[],afterFullData:[],afterTreeFullData:[],afterGroupFullData:[],afterFullRowMaps:{},tableFullTreeData:[],tableFullGroupData:[],tableSynchData:[],tableSourceData:[],collectColumn:[],tableFullColumn:[],visibleColumn:[],fullAllDataRowIdData:{},fullDataRowIdData:{},visibleDataRowIdData:{},keepUpdateFieldMaps:{},headerFullDataColData:{},footerFullDataRowData:{},sourceDataRowIdData:{},fullColumnIdData:{},fullColumnFieldData:{},fullCellHeightMaps:{},fullCellStoreMaps:{},mergeHeaderList:[],mergeHeaderMaps:{},mergeHeaderCellMaps:{},mergeHeaderRowMaps:{},mergeHeaderColMaps:{},mergeBodyList:[],mergeBodyMaps:{},mergeBodyCellMaps:{},mergeBodyRowMaps:{},mergeBodyColMaps:{},mergeFooterList:[],mergeFooterMaps:{},mergeFooterCellMaps:{},mergeFooterRowMaps:{},mergeFooterColMaps:{},rowExpandedMaps:{},rowExpandLazyLoadedMaps:{},rowGroupExpandedMaps:{},treeExpandedMaps:{},treeExpandLazyLoadedMaps:{},selectCheckboxMaps:{},pendingRowMaps:{},insertRowMaps:{},removeRowMaps:{},cvCacheMaps:{},tHeaderHeight:0,tBodyHeight:0,tFooterHeight:0,stackHistoryStore:{undoStacks:[],redoStacks:[]},teleportToWrapperElem:null,popupToWrapperElem:null,customPopupToElem:null,lastSTime:0,inited:!1,tooltipTimeout:null,initStatus:!1,isActivated:!1,rceDelay:0}}function Wh(){return{updateColFlag:0,staticColumns:[],tableGroupColumn:[],tableColumn:[],tableData:[],scrollXLoad:!1,scrollYLoad:!1,overflowY:!0,overflowX:!1,scrollbarWidth:0,scrollbarHeight:0,rowHeight:0,parentHeight:0,isGroup:!1,isAllOverflow:!1,isAllSelected:!1,isIndeterminate:!1,selectRadioRow:null,footerTableData:[],rowGroupColumn:null,expandColumn:null,checkboxColumn:null,radioColumn:null,treeNodeColumn:null,hasFixedColumn:!1,upDataFlag:0,reColumnFlag:0,initStore:{filter:!1,import:!1,export:!1,custom:!1},customStore:{btnEl:null,isAll:!1,isIndeterminate:!1,activeBtn:!1,activeWrapper:!1,visible:!1,maxHeight:null,defPopupStyle:{},panePopupStyle:{},oldSortMaps:{},oldFixedMaps:{},oldVisibleMaps:{}},customColumnList:[],filterStore:{targetEl:null,isAllSelected:!1,isIndeterminate:!1,style:null,column:null,visible:!1,maxHeight:null},columnStore:{leftList:[],centerList:[],rightList:[],resizeList:[],pxList:[],pxMinList:[],autoMinList:[],scaleList:[],scaleMinList:[],autoList:[],remainList:[]},ctxMenuStore:{selected:null,visible:!1,showChild:!1,selectChild:null,list:[],style:null},editStore:{indexs:{columns:[]},titles:{columns:[]},selected:{row:null,column:null},copyed:{cut:!1,rows:[],columns:[]},actived:{row:null,column:null},focused:{row:null,column:null}},tooltipStore:{row:null,column:null,content:"",visible:!1,type:null,currOpts:{}},validStore:{visible:!1},validErrorMaps:{},importStore:{inited:!1,file:null,type:"",modeList:[],typeList:[],filename:"",visible:!1},importParams:{mode:"",types:null,message:!0},exportStore:{inited:!1,name:"",modeList:[],typeList:[],columns:[],isPrint:!1,hasFooter:!1,hasMerge:!1,hasTree:!1,hasRowGroup:!1,hasColgroup:!1,visible:!1},exportParams:{filename:"",sheetName:"",mode:"",type:"",isColgroup:!1,isMerge:!1,isTreeAllExpanded:!1,isRowGroupAllExpanded:!1,useStyle:!1,original:!1,message:!0,isHeader:!1,isTitle:!1,isFooter:!1},visiblwRowsFlag:1,isRowGroupStatus:!1,rowGroupList:[],aggHandleFields:[],aggHandleAggColumns:[],rowGroupExpandedFlag:1,rowExpandedFlag:1,treeExpandedFlag:1,updateCheckboxFlag:1,pendingRowFlag:1,insertRowFlag:1,removeRowFlag:1,mergeHeadFlag:1,mergeBodyFlag:1,mergeFootFlag:1,rowHeightStore:{xlarge:54,large:52,default:48,medium:44,small:40,mini:36},scrollVMLoading:!1,scrollYHeight:0,scrollYTop:0,isScrollYBig:!1,scrollXLeft:0,scrollXWidth:0,isScrollXBig:!1,lazScrollLoading:!1,rowExpandHeightFlag:1,calcCellHeightFlag:1,resizeHeightFlag:1,resizeWidthFlag:1,isCustomStatus:!1,isCustomDragStatus:!0,ctPopupFlag:1,isCrossDragRow:!1,dragRow:null,isCrossDragCol:!1,dragCol:null,dragTipText:"",isDragResize:!1,isRowLoading:!1,isColLoading:!1,currColFlag:1}}const qh="__max";function Gh(e,t){if(t||!e[qh]){let t=0;for(const n in e){const r=e[n];n!==qh&&pc.isNumber(r)&&r>t&&(t=r)}return e[qh]=t,t}return e[qh]}const Yh=(e,t)=>{const n=[];return e.forEach(e=>{e.parentId=t?t.id:null,e.visible&&(e.children&&e.children.length&&e.children.some(e=>e.visible)?(n.push(e),n.push(...Yh(e.children,e))):n.push(e))}),n},Uh=e=>{let t=1;const n=(e,r)=>{if(r&&(e.level=r.level+1,t<e.level&&(t=e.level)),e.children&&e.children.length&&e.children.some(e=>e.visible)){let t=0;e.children.forEach(r=>{r.visible&&(n(r,e),t+=r.colSpan)}),e.colSpan=t}else e.colSpan=1};e.forEach(e=>{e.level=1,n(e)});const r=[];for(let o=0;o<t;o++)r.push([]);const i=Yh(e);return i.forEach(e=>{e.children&&e.children.length&&e.children.some(e=>e.visible)?e.rowSpan=1:e.rowSpan=t-e.level+1,r[e.level-1].push(e)}),r};function Kh(e){const t=e.length,n=e[0].reduce((e,t)=>e+t.colSpan,0),r=[],i=[];for(let o=0;o<t;o++){const e=[],t=[];for(let r=0;r<n;r++)e.push(!1),t.push("");r.push(e),i.push(t)}for(let o=0;o<t;o++){let t=0;for(const a of e[o]){const{colSpan:e,rowSpan:s}=a;let l=-1;for(let i=t;i<=n-e;i++){let t=!0;for(let n=0;n<e;n++)if(r[o][i+n]){t=!1;break}if(t){l=i;break}}if(-1===l){for(let t=0;t<=n-e;t++){let n=!0;for(let i=0;i<e;i++)if(r[o][t+i]){n=!1;break}if(n){l=t;break}}if(-1===l)break}for(let t=o;t<o+s;t++)for(let n=l;n<l+e;n++)r[t][n]=!0,i[t][n]=a;t=l+e}}return i}function Xh(e,t,n){const r=e;return t||n?(r.intoRunScroll=!1,r.inVirtualScroll=!1,r.inWheelScroll=!1,r.inHeaderScroll=!1,r.inBodyScroll=!1,r.inFooterScroll=!1,r.scrollRenderType="",e.scrollTo(t,n)):e.clearScroll()}function Zh(e){return e.map((e,t)=>t%2===0?Number(e)+1:".").join("")}function Qh(){return pc.uniqueId("row_")}function Jh(e,t,n){const{createKeyMethod:r}=e;return r?""+r({row:t,keyField:n}):Qh()}function ep(e){return e.indexOf(".")>-1}function tp(e){const t=e,{currKeyField:n}=t;return n}function np(e,t){const n=e,{isCurrDeepKey:r,currKeyField:i}=n;return t?op((r?ap:lp)(t,i)):""}function rp(e){const t=e,{isCurrDeepKey:n,currKeyField:r}=t,i=e.computeRowOpts,o=n?sp:cp;return{rowKey:r,handleUpdateRowId(e){return e?o(i,e,r):""}}}function ip(e){const t=e,{isCurrDeepKey:n,currKeyField:r}=t,i=n?ap:lp;return{rowKey:r,handleGetRowId(e){return e?op(i(e,r)):""}}}function op(e){return pc.eqNull(e)?"":encodeURIComponent(e)}function ap(e,t){return pc.get(e,t)}function sp(e,t,n){let r=op(ap(t,n));if(gd(r)){const i=Jh(e,t,n);r=""+i,pc.set(t,n,r)}return r}function lp(e,t){return e[t]}function cp(e,t,n){let r=op(lp(t,n));if(gd(r)){const i=Jh(e,t,n);r=""+i,t[n]=i}return r}function up(e){if(e){const t=getComputedStyle(e),n=pc.toNumber(t.paddingLeft),r=pc.toNumber(t.paddingRight);return n+r}return 0}function dp(e){if(e){const t=getComputedStyle(e),n=pc.toNumber(t.marginLeft),r=pc.toNumber(t.marginRight);return e.offsetWidth+n+r}return 0}function hp(e){return"unset"===e?0:e||0}function pp(e,t){return t?pc.isString(t)||pc.isNumber(t)?e.getColumnByField(`${t}`):t:null}function fp(e,t){if(t){const n=pc.isString(t)||pc.isNumber(t)?t:np(e,t);return e.getRowById(n)}return null}function mp(e,t,n,r){const{height:i,minHeight:o,maxHeight:a}=t;let s=e.resizeHeight||i||n.height||e.height||r;return a&&a<=s&&(s=a),o&&o>=s&&(s=o),s}function gp(e){const t=e.$xeTable,n=t,{staticColumns:r}=n,{$el:i,$xeColumn:o,columnConfig:a}=e,s=o?o.columnConfig:null;s?("vxe-table-column"===o.$options._componentTag?zh("vxe.error.groupTag",[`<vxe-table-colgroup title=${o.title} ...>`,`<vxe-table-column title=${o.title} ...>`]):"vxe-column"===o.$options._componentTag&&Vh("vxe.error.groupTag",[`<vxe-colgroup title=${o.title} ...>`,`<vxe-column title=${o.title} ...>`]),s.children||(s.children=[]),a.defaultParentId=s.id,s.children.splice(pc.arrayIndexOf(o.$el.children,i),0,a)):r.splice(pc.arrayIndexOf(t.$refs.hideColumn.children,i),0,a)}function vp(e){const t=e.$xeTable,n=t,{staticColumns:r}=n,{columnConfig:i}=e,o=pc.findTree(r,e=>e===i);o&&o.items.splice(o.index,1)}function bp(e,t){const n=e,{fullColumnIdData:r}=n;if(!t)return null;let i=t.parentId;while(r[i]){const e=r[i].column;if(i=e.parentId,!i)return e}return t}function yp(e,t){return e?pc.isArray(e)?e.map(({label:e,value:n,data:r,resetValue:i,checked:o})=>({label:e,value:n,data:r,resetValue:i,checked:!!o,_checked:!!o,_colId:t})):[]:e}function xp(e){const{$table:t,column:n,cell:r}=e,i=t,{elemStore:o}=i,a=t.computeResizableOpts,s=t.computeColumnOpts,{maxWidth:l}=a,c=n.maxWidth||s.maxWidth;if(l){const t=pc.isFunction(l)?l(e):l;if("auto"!==t)return Math.max(1,pc.toNumber(t))}const u=pc.floor(1.8*(pc.toNumber(getComputedStyle(r).fontSize)||14)),d=up(r)+up(ch(r,".vxe-cell")),h=u+d;if(c){const e=Ep(o["main-body-scroll"]);if(e){if(rh(c)){const t=e.clientWidth-1,n=t/100;return Math.max(h,Math.floor(pc.toInteger(c)*n))}if(nh(c))return Math.max(h,pc.toInteger(c))}}return-1}function wp(e){const{$table:t,column:n,cell:r}=e,i=t,o=t,a=t.computeResizableOpts,s=t.computeColumnOpts,{minWidth:l}=a;if(l){const t=pc.isFunction(l)?l(e):l;if("auto"!==t)return Math.max(1,pc.toNumber(t))}const{elemStore:c}=o,{showHeaderOverflow:u}=i,{showHeaderOverflow:d}=n,h=n.minWidth||s.minWidth,p=pc.isUndefined(d)||pc.isNull(d)?u:d,f="ellipsis"===p,m="title"===p,g=!0===p||"tooltip"===p,v=m||g||f,b=pc.floor(1.8*(pc.toNumber(getComputedStyle(r).fontSize)||14)),y=up(r)+up(ch(r,".vxe-cell"));let x=b+y;if(v){const e=dp(ch(r,".vxe-cell--drag-handle")),t=dp(ch(r,".vxe-cell--checkbox")),n=dp(ch(r,".vxe-cell--required-icon")),i=dp(ch(r,".vxe-cell--edit-icon")),o=dp(ch(r,".vxe-cell-title-prefix-icon")),a=dp(ch(r,".vxe-cell-title-suffix-icon")),s=dp(ch(r,".vxe-cell--sort")),l=dp(ch(r,".vxe-cell--filter"));x+=e+t+n+i+o+a+l+s}if(h){const e=Ep(c["main-body-scroll"]);if(e){if(rh(h)){const t=e.clientWidth-1,n=t/100;return Math.max(x,Math.floor(pc.toInteger(h)*n))}if(nh(h))return Math.max(x,pc.toInteger(h))}}return x}function Cp(e){const{children:t}=e;return t&&t.length?Cp(pc.first(t)):e}function _p(e){const{children:t}=e;return t&&t.length?Cp(pc.last(t)):e}function Sp(e,t){return t?pc.get(e,t.field):null}function kp(e,t,n){t&&pc.set(e,t.field,n)}function Ep(e){return e?e.$el||e:null}function Op(e){const t=e,n=e;n.initStatus=!1;const r=[e.clearSort(),e.clearCurrentRow(),e.clearCurrentColumn(),e.clearRadioRow(),e.clearRadioReserve(),e.clearCheckboxRow(),e.clearCheckboxReserve(),e.clearRowExpand(),e.clearTreeExpand(),e.clearTreeExpandReserve(),e.clearPendingRow()];return e.clearFilter&&r.push(e.clearFilter()),e.clearSelected&&(t.keyboardConfig||t.mouseConfig)&&r.push(e.clearSelected()),e.clearCellAreas&&t.mouseConfig&&r.push(e.clearCellAreas(),e.clearCopyCellArea()),Promise.all(r).then(()=>e.clearScroll())}function Tp(e){return e.clearFilter&&e.clearFilter(),Op(e)}function $p(e){return e instanceof Bh}function Dp(e){const t=[];return e.forEach(e=>{t.push(...e.children&&e.children.length?Dp(e.children):[e])}),t}function Mp(e,t,n){return $p(t)?t:new Bh(e,t,n)}function Fp(e,t){const n=e,r=e,{scrollYLoad:i,scrollYTop:o,isAllOverflow:a}=n,{elemStore:s,afterFullData:l,fullAllDataRowIdData:c,isResizeCellHeight:u}=r,d=e.computeRowOpts,h=e.computeCellOpts,p=e.computeDefaultRowHeight,f=e.computeLeftFixedWidth,m=e.computeRightFixedWidth,g=Ep(s["main-body-scroll"]),v=np(e,t);if(g){const n=g.clientHeight,r=g.scrollTop,s=g.querySelector(`[rowid="${v}"]`);if(s){const t=s.offsetTop+(i?o:0),a=s.clientHeight;if(t<r||t>r+n)return e.scrollTo(null,t);if(t+a>=n+r)return e.scrollTo(null,r+a)}else if(i){const i=u||h.height||d.height;if(!i&&a)return e.scrollTo(null,(e.findRowIndexOf(l,t)-1)*p);const o=c[v]||{},s=o.resizeHeight||h.height||d.height||o.height||p,g=o.oTop;return g<r?e.scrollTo(null,g-f-1):e.scrollTo(null,g+s-(n-m-1))}}return Promise.resolve()}function Rp(e,t,n,r){const i=e,o=e,{scrollXLoad:a,scrollXLeft:s}=i,{elemStore:l,visibleColumn:c}=o,u=e.computeLeftFixedWidth,d=e.computeRightFixedWidth,h=Ep(l["main-body-scroll"]);if(n.fixed)return Promise.resolve();if(h){const i=h.clientWidth,o=h.scrollLeft;let l=null;if(r){const t=np(e,r);l=h.querySelector(`[rowid="${t}"] .${n.id}`)}if(l||(l=h.querySelector(`.${n.id}`)),l){const n=l.offsetLeft+(a?s:0),r=l.clientWidth;if(t||!(n<=o+u&&n+r>o+u)&&!(n>=o+u&&n<o+i-d)){if(n<o+u)return e.scrollTo(n-u-1);if(n+r-o>i-d)return e.scrollTo(n+r-(i-d-1))}}else if(a){let r=0;const a=n.renderWidth;for(let e=0;e<c.length;e++){const t=c[e];if(t===n||t.id===n.id)break;r+=t.renderWidth}if(t||!(r<=o+u&&r+a>o+u)&&!(r>=o+u&&r<o+i-d))return r<o?e.scrollTo(r-u-1):e.scrollTo(r+a-(i-d-1))}}return Promise.resolve()}function Ip(e,t){return pc.isBoolean(e)?e:t}function Ap(e){const t=e.computeCustomOpts,{storage:n,storeOptions:r}=t,i=!0===n,o=Object.assign({},i?{}:n||{},r),a=Ip(o.align,i),s=Ip(o.headerAlign,i),l=Ip(o.footerAlign,i),c=Ip(o.resizable,i),u=Ip(o.visible,i),d=Ip(o.fixed,i),h=Ip(o.sort,i),p=Ip(o.aggGroup,i),f=Ip(o.aggFunc,i),m=Ip(o.pager,i);return{isCustomAlign:a,isCustomHeaderAlign:s,isCustomFooterAlign:l,isCustomResizable:c,isCustomVisible:u,isCustomFixed:d,isCustomSort:h,isCustomAggGroup:p,isCustomAggFunc:f,isCustomPager:m}}function Pp(e){return pc.kebabCase(e)}function Lp(e){switch(e.name){case"VxeInput":case"VxeTextarea":case"VxeNumberInput":case"VxePasswordInput":case"VxeSelect":case"VxeTreeSelect":case"VxeTableSelect":case"VxeDatePicker":case"VxeDateRangePicker":case"VxeIconPicker":case"VxeColorPicker":case"VxeSlider":case"VxeUpload":return"modelValue";case"select":return"change"}return"input"}function Np(e){switch(e.name){case"input":case"textarea":case"VxeInput":case"VxeTextarea":case"$input":case"$textarea":return"input"}return"change"}function jp(e){switch(e.name){case"VxeInput":case"VxeNumberInput":case"VxeTextarea":case"$input":case"$textarea":return!0}return!1}function Bp(e){return null===e||void 0===e?[]:pc.isArray(e)?e:[e]}const{getConfig:Vp,getI18n:zp,getIcon:Hp,renderer:Wp,renderEmptyElement:qp}=ad;function Gp(e,t){const{$table:n,column:r}=t,i=r.titlePrefix||r.titleHelp;return i?e("i",{class:["vxe-cell-title-prefix-icon",i.iconStatus?`theme--${i.iconStatus}`:""],on:{mouseenter(e){n.triggerHeaderTitleEvent(e,i,t)},mouseleave(e){n.handleTargetLeaveEvent(e)}}},[e("i",{class:i.icon||Hp().TABLE_TITLE_PREFIX})]):qp(n)}function Yp(e,t){const{$table:n,column:r}=t,i=r.titleSuffix;return i?e("i",{class:["vxe-cell-title-suffix-icon",i.iconStatus?`theme--${i.iconStatus}`:""],on:{mouseenter(e){n.triggerHeaderTitleEvent(e,i,t)},mouseleave(e){n.handleTargetLeaveEvent(e)}}},[e("i",{class:i.icon||Hp().TABLE_TITLE_SUFFIX})]):qp(n)}function Up(e,t){const{$table:n}=t,r=n.$scopedSlots,i=n,{dragConfig:o}=i,a=n.computeRowDragOpts,{icon:s,trigger:l,disabledMethod:c}=a,u=c||(o?o.rowDisabledMethod:null),d=u&&u(t),h=r.rowDragIcon||r["row-drag-icon"],p={};return"cell"!==l&&(p.mousedown=e=>{d||n.handleCellDragMousedownEvent(e,t)},p.mouseup=n.handleCellDragMouseupEvent),e("span",{key:"dg",class:["vxe-cell--drag-handle",{"is--disabled":d}],on:p},h?n.callSlot(h,t,e):[e("i",{class:s||(o?o.rowIcon:"")||Hp().TABLE_DRAG_ROW})])}function Kp(e,t,n){const{$table:r,column:i,level:o}=t,{dragSort:a}=i,s=r,{treeConfig:l,dragConfig:c}=s,u=r.computeRowOpts,d=r.computeRowDragOpts,h=r.computeTreeOpts,{showIcon:p,isPeerDrag:f,isCrossDrag:m,visibleMethod:g}=d,v=g||(c?c.rowVisibleMethod:null),b=[];return a&&u.drag&&(p||c&&c.showRowIcon)&&(!v||v(t))&&(l?h.transform&&(f||m||!o)&&b.unshift(Up(e,t)):b.unshift(Up(e,t))),b.concat(pc.isArray(n)?n:[n])}function Xp(e,t){const{$table:n,column:r}=t,i=n.$scopedSlots,{slots:o}=r,a=n.computeColumnOpts,s=n.computeColumnDragOpts,{showIcon:l,icon:c,trigger:u,isPeerDrag:d,isCrossDrag:h,visibleMethod:p,disabledMethod:f}=s;if(a.drag&&l&&(!p||p(t))&&!r.fixed&&(d||h||!r.parentId)){const r=f&&f(t),a=(o?o.columnDragIcon||o["column-drag-icon"]:null)||i.columnDragIcon||i["column-drag-icon"],s={};return"cell"!==u&&(s.mousedown=e=>{r||n.handleHeaderCellDragMousedownEvent(e,t)},s.mouseup=n.handleHeaderCellDragMouseupEvent),e("span",{key:"dg",class:["vxe-cell--drag-handle",{"is--disabled":r}],on:s},a?n.callSlot(a,t,e):[e("i",{class:c||Hp().TABLE_DRAG_COLUMN})])}return qp(n)}function Zp(e,t,n){const r=[Gp(e,t),Xp(e,t),...pc.isArray(n)?n:[n],Yp(e,t)];return r}function Qp(e,t,n){return"html"===t.type&&pc.isString(n)?e("span",{key:"ch",domProps:{innerHTML:n}}):e("span",{key:"ct"},Bp(n))}function Jp(e,t,n){const{$table:r,column:i}=t,o=r,a=r,{showHeaderOverflow:s}=o,{isRowGroupStatus:l}=a,{showHeaderOverflow:c,slots:u}=i,d=u?u.title:null,h=r.computeHeaderTooltipOpts,p=h.showAll,f=pc.eqNull(c)?s:c,m="title"===(!0===f?h.mode:f),g="tooltip"===(!0===f?h.mode:f),v={};(m||g||p)&&(v.mouseenter=e=>{a.isDragResize||(m?mh(e.currentTarget,i):(g||p)&&r.triggerHeaderTooltipEvent(e,t))}),(g||p)&&(v.mouseleave=e=>{a.isDragResize||(g||p)&&r.handleTargetLeaveEvent(e)});const b=Qp(e,i,n);return[e("span",{class:"vxe-cell--title",on:v},l&&i.aggFunc&&r.getPivotTableAggregateRenderColTitles?r.getPivotTableAggregateRenderColTitles(e,i,b):d?r.callSlot(d,t,e):[b])]}function ef(e,t){const{$table:n,column:r,row:i}=t,o=n,{editConfig:a}=o,{slots:s,editRender:l,cellRender:c}=r,u=s?s.footer:null;if(u)return n.callSlot(u,t,e);const d=a&&ld(a),h=d&&ld(l)?l:null,p=ld(c)?c:null,f=h||p,m=n.getFooterCellLabel(i,r);if(f){const r=n.computeRendererOpts,i=f.name?r[f.name]||Wp.get(f.name):null,o=i?i.renderTableFooter||i.renderFooter:null;if(o){const r=Object.assign(t,{cellValue:m,itemValue:m});return Bp(o.call(n,e,f,r))}}return[md(m,1)]}function tf(e){const{$table:t,row:n,column:r}=e;return md(t.getCellLabel(n,r),1)}function nf(e,t){const{column:n,row:r,$table:i}=t,o=i,a=i,{editConfig:s}=o,{isRowGroupStatus:l}=a,{type:c,treeNode:u,rowGroupNode:d,editRender:h}=n,p=i.computeAggregateOpts,{mode:f}=p,m=i.computeCheckboxOpts,g=i.computeEditOpts,v=u||l&&("column"===f?n.field===r.groupField:d);switch(c){case"seq":return v?af.renderDeepIndexCell(e,t):af.renderSeqCell(e,t);case"radio":return v?af.renderDeepRadioCell(e,t):af.renderRadioCell(e,t);case"checkbox":return m.checkField?v?af.renderDeepSelectionCellByProp(e,t):af.renderCheckboxCellByProp(e,t):v?af.renderDeepSelectionCell(e,t):af.renderCheckboxCell(e,t);case"expand":return af.renderExpandCell(e,t);case"html":return v?af.renderDeepHTMLCell(e,t):af.renderHTMLCell(e,t)}const b=s&&ld(s),y=b&&ld(h)?h:null;return y?"cell"===g.mode?v?af.renderDeepCellEdit(e,t):af.renderCellEdit(e,t):v?af.renderDeepRowEdit(e,t):af.renderRowEdit(e,t):v?af.renderDeepCell(e,t):af.renderDefaultCell(e,t)}function rf(e,t){const{column:n,$table:r}=t,i=r,{editConfig:o}=i,{type:a,filters:s,sortable:l,editRender:c,slots:u}=n;if("obsolete"!==Vp().tableHeadeSlotToTitleSlot){const n=u?u.header:null;if(n)return Jp(e,t,r.callSlot(n,t,e))}switch(a){case"seq":return af.renderSeqHeader(e,t);case"radio":return af.renderRadioHeader(e,t);case"checkbox":return af.renderCheckboxHeader(e,t);case"html":if(s&&l)return af.renderSortAndFilterHeader(e,t);if(l)return af.renderSortHeader(e,t);if(s)return af.renderFilterHeader(e,t);break}const d=o&&ld(o),h=d&&ld(c)?c:null;return h?af.renderEditHeader(e,t):s&&l?af.renderSortAndFilterHeader(e,t):l?af.renderSortHeader(e,t):s?af.renderFilterHeader(e,t):af.renderDefaultHeader(e,t)}function of(e,t){return af.renderDefaultFooter(e,t)}const af={createColumn(e,t){const{type:n}=t,r={renderHeader:rf,renderCell:nf,renderFooter:of};return"expand"===n&&(r.renderData=af.renderExpandData),Mp(e,t,r)},renderHeaderTitle(e,t){const{$table:n,column:r}=t,i=n,{editConfig:o}=i,{slots:a,editRender:s,cellRender:l}=r,c=o&&ld(o),u=c&&ld(s)?s:null,d=ld(l)?l:null,h=u||d;if("obsolete"===Vp().tableHeadeSlotToTitleSlot){const r=a?a.header:null;if(r)return Jp(e,t,n.callSlot(r,t,e))}if(h){const r=n.computeRendererOpts,i=h.name?r[h.name]||Wp.get(h.name):null,o=i?i.renderTableHeader||i.renderHeader:null;if(o)return Bp(Jp(e,t,o.call(n,e,h,t)))}return Jp(e,t,n.getHeaderCellLabel(r))},renderDefaultHeader(e,t){return Zp(e,t,af.renderHeaderTitle(e,t))},renderDefaultCell(e,t){const{$table:n,row:r,column:i}=t,o=n,a=n,s=n,{isRowGroupStatus:l}=a,{editConfig:c}=o,{field:u,slots:d,editRender:h,cellRender:p,rowGroupNode:f,aggFunc:m}=i,g=c&&ld(c),v=g&&ld(h)?h:null,b=ld(p)?p:null,y=d?d.default:null,x=d?d.groupContent||d["group-content"]:null,w=d?d.groupValues||d["group-values"]:null;let C="";if(l&&u&&r.isAggregate){const o=r,{fullColumnFieldData:a}=s,l=n.computeAggregateOpts,{mode:c,showTotal:d,totalMethod:h,countFields:p,contentMethod:g,formatValuesMethod:v,mapChildrenField:b}=l,y=o.aggData,_=y?y[u]:null,S=o.groupField,k=o.groupContent,E=b&&o[b]||[],O=o.childCount,T=a[S]||{},$={$table:n,groupField:S,groupColumn:T?T.column:null,column:i,groupValue:k,childList:E,childCount:O,aggValue:null,children:E,totalValue:O};if("column"===c?u===o.groupField:f){if(C=k,g&&(C=`${g($)}`),d&&(C=zp("vxe.table.rowGroupContentTotal",[C,h?h($):O,O])),x)return Kp(e,t,n.callSlot(x,Object.assign({groupField:S,groupContent:k,childList:E,childCount:O},t),e))}else if(n.getPivotTableAggregateCellAggValue){if(C=n.getPivotTableAggregateCellAggValue(t),$.aggValue=C,w)return Kp(e,t,n.callSlot(w,Object.assign({groupField:S,groupContent:k,childList:E,childCount:O},t,$),e))}else if((!0===m||p&&p.includes(u))&&(C=_?_.value:O,$.aggValue=C,v&&(C=v($)),w))return Kp(e,t,n.callSlot(w,Object.assign({groupField:S,groupContent:k,childList:E,childCount:O},t,$),e))}else{if(y)return Kp(e,t,n.callSlot(y,t,e));const o=n.computeRendererOpts,a=b&&b.name?o[b.name]||Wp.get(b.name):null;if(b){const n=a?a.renderTableDefault||a.renderDefault:null;if(n&&b)return Kp(e,t,Bp(n(e,b,Object.assign({$type:v?"edit":"cell"},t))))}if(v){const n=v&&v.name?o[v.name]||Wp.get(v.name):null,r=n?n.renderTableCell||n.renderCell||n.renderTableDefault||n.renderDefault:null;if(r)return Kp(e,t,Bp(r(e,v,Object.assign({$type:v?"edit":"cell"},t))))}C=n.getCellLabel(r,i)}const _=v?v.placeholder:"";return Kp(e,t,[e("span",{class:"vxe-cell--label"},[v&&gd(C)?e("span",{class:"vxe-cell--placeholder"},md(fd(_),1)):e("span",md(C,1))])])},renderDeepCell(e,t){return af.renderDeepNodeBtn(e,t,af.renderDefaultCell(e,t))},renderDefaultFooter(e,t){return ef(e,t)},renderRowGroupBtn(e,t,n){const{$table:r}=t,i=r,o=r,{row:a,level:s}=t,{rowGroupExpandedFlag:l}=i,{rowGroupExpandedMaps:c}=o,u=r.computeAggregateOpts,{mode:d,padding:h,indent:p,showIcon:f,iconOpen:m,iconClose:g}=u,v=np(r,a),b=!!l&&!!c[v];return e("div",{class:["vxe-row-group--tree-node",{"is--expanded":b}],style:"column"!==d&&h&&p?{paddingLeft:s*p+"px"}:void 0},[f&&a.isAggregate?e("span",{class:"vxe-row-group--node-btn",on:{click(e){r.triggerRowGroupExpandEvent(e,t)}}},[e("i",{class:b?m||Hp().TABLE_ROW_GROUP_OPEN:g||Hp().TABLE_ROW_GROUP_CLOSE})]):qp(r),e("div",{class:"vxe-row-group-cell"},n)])},renderTreeNodeBtn(e,t,n){const{$table:r,isHidden:i}=t,o=r,a=r,{treeExpandedFlag:s}=o,{fullAllDataRowIdData:l,treeExpandedMaps:c,treeExpandLazyLoadedMaps:u}=a,d=r.computeTreeOpts,{row:h,column:p,level:f}=t,{slots:m}=p,{padding:g,indent:v,lazy:b,trigger:y,visibleMethod:x,iconLoaded:w,showIcon:C,iconOpen:_,iconClose:S}=d,k=d.children||d.childrenField,E=d.hasChild||d.hasChildField,O=h[k],T=O&&O.length,$=m?m.icon:null;let D=!1,M=!1,F=!1,R=!1;const I={};if($)return r.callSlot($,t,e);if(!i){const e=np(r,h);if(M=!!s&&!!c[e],b){const t=l[e];F=!!u[e],D=h[E],R=!!t.treeLoaded}}return y&&"default"!==y||(I.click=e=>{r.triggerTreeExpandEvent(e,t)}),[e("div",{class:["vxe-cell--tree-node",{"is--active":M}],style:g&&v?{paddingLeft:f*v+"px"}:void 0},[C&&(b?R?T:T||D:T)&&(!x||x(t))?[e("div",{class:"vxe-cell--tree-btn",on:I},[e("i",{class:F?w||Hp().TABLE_TREE_LOADED:M?_||Hp().TABLE_TREE_OPEN:S||Hp().TABLE_TREE_CLOSE})])]:null,e("div",{class:"vxe-tree-cell"},n)])]},renderDeepNodeBtn(e,t,n){const{$table:r,row:i,column:o}=t,{rowGroupNode:a}=o,s=r,{rowGroupList:l}=s;if(l.length){const s=r.computeAggregateOpts,{mode:l}=s;if("column"===l)return i.groupField&&o.field===i.groupField?[af.renderRowGroupBtn(e,t,n)]:n;if(a)return[af.renderRowGroupBtn(e,t,n)]}return[af.renderTreeNodeBtn(e,t,n)]},renderSeqHeader(e,t){const{$table:n,column:r}=t;if("obsolete"===Vp().tableHeadeSlotToTitleSlot){const{slots:i}=r,o=i?i.header:null;return Zp(e,t,Jp(e,t,o?n.callSlot(o,t,e):n.getHeaderCellLabel(r)))}return Zp(e,t,Jp(e,t,n.getHeaderCellLabel(r)))},renderSeqCell(e,t){const{$table:n,column:r}=t,i=n,{treeConfig:o}=i,a=n.computeSeqOpts,{slots:s}=r;if(s&&s.default)return Kp(e,t,n.callSlot(s.default,t,e));const{seq:l}=t,c=a.seqMethod;return Kp(e,t,[e("span",`${md(c?c(t):o?l:(a.startIndex||0)+l,1)}`)])},renderDeepIndexCell(e,t){return af.renderDeepNodeBtn(e,t,af.renderSeqCell(e,t))},renderRadioHeader(e,t){const{$table:n,column:r}=t,{slots:i}=r,o=i?i.title:null;if("obsolete"===Vp().tableHeadeSlotToTitleSlot){const a=i?i.header:null;return Zp(e,t,Jp(e,t,a?n.callSlot(a,t,e):[e("span",{class:"vxe-radio--label"},o?n.callSlot(o,t,e):n.getHeaderCellLabel(r))]))}return Zp(e,t,Jp(e,t,[e("span",{class:"vxe-radio--label"},o?n.callSlot(o,t,e):n.getHeaderCellLabel(r))]))},renderRadioCell(e,t){const{$table:n,column:r,isHidden:i}=t,o=n,{selectRadioRow:a}=o,s=n.computeRadioOpts,{slots:l}=r,{labelField:c,checkMethod:u,visibleMethod:d}=s,{row:h}=t,p=l?l.default:null,f=l?l.radio:null,m=h===a,g=!d||d({$table:n,row:h});let v,b=!!u;i||(v={click(e){!b&&g&&n.triggerRadioRowEvent(e,t)}},u&&(b=!u({$table:n,row:h})));const y=Object.assign(Object.assign({},t),{checked:m,disabled:b,visible:g});if(f)return Kp(e,t,n.callSlot(f,y,e));const x=[];return g&&x.push(e("span",{class:["vxe-radio--icon",m?Hp().TABLE_RADIO_CHECKED:b?Hp().TABLE_RADIO_DISABLED_UNCHECKED:Hp().TABLE_RADIO_UNCHECKED]})),(p||c)&&x.push(e("span",{class:"vxe-radio--label"},p?n.callSlot(p,y,e):pc.get(h,c))),Kp(e,t,[e("span",{class:["vxe-cell--radio",{"is--checked":m,"is--disabled":b}],on:v},x)])},renderDeepRadioCell(e,t){return af.renderDeepNodeBtn(e,t,af.renderRadioCell(e,t))},renderCheckboxHeader(e,t){const{$table:n,column:r,isHidden:i}=t,o=n,{isAllSelected:a,isIndeterminate:s}=o,l=n.computeIsAllCheckboxDisabled,{slots:c}=r,u=c?c.title:null,d=n.computeCheckboxOpts,{checkStrictly:h,showHeader:p,headerTitle:f}=d,m=n.getHeaderCellLabel(r),g={};i||(g.click=e=>{l||n.triggerCheckAllEvent(e,!a)});const v=Object.assign(Object.assign({},t),{checked:a,disabled:l,indeterminate:s});if("obsolete"===Vp().tableHeadeSlotToTitleSlot){const r=c?c.header:null;if(r)return Zp(e,t,Jp(e,v,n.callSlot(r,v,e)))}return Zp(e,t,Jp(e,v,(h?p:!1!==p)?[e("span",{class:["vxe-cell--checkbox",{"is--checked":a,"is--disabled":l,"is--indeterminate":s}],attrs:{title:pc.eqNull(f)?zp("vxe.table.allTitle"):`${f||""}`},on:g},[e("span",{class:["vxe-checkbox--icon",s?Hp().TABLE_CHECKBOX_INDETERMINATE:a?Hp().TABLE_CHECKBOX_CHECKED:l?Hp().TABLE_CHECKBOX_DISABLED_UNCHECKED:Hp().TABLE_CHECKBOX_UNCHECKED]})].concat(u||m?[e("span",{class:"vxe-checkbox--label"},u?n.callSlot(u,v,e):m)]:[]))]:[e("span",{class:"vxe-checkbox--label"},u?n.callSlot(u,v,e):m)]))},renderCheckboxCell(e,t){const{$table:n,row:r,column:i,isHidden:o}=t,a=n,s=n,l=n,{treeConfig:c}=a,{updateCheckboxFlag:u,isRowGroupStatus:d}=s,{selectCheckboxMaps:h,treeIndeterminateRowMaps:p}=l,f=n.computeAggregateOpts,{mapChildrenField:m}=f,g=n.computeCheckboxOpts,{labelField:v,checkMethod:b,visibleMethod:y}=g,{slots:x}=i,w=x?x.default:null,C=x?x.checkbox:null;let _=!1,S=!1,k=!0,E=!1;const O={};if(!o){const e=np(n,r);if(S=!!u&&!!h[e],b&&d&&n.isAggregateRecord(r)){const e=r[m||""];e&&e.length&&!e.every(e=>!b({$table:n,row:e}))||(E=!0)}else k=!y||y({$table:n,row:r}),E=b?!b({$table:n,row:r}):!!b;(c||d)&&(_=!!p[e]),O.click=e=>{!E&&k&&n.triggerCheckRowEvent(e,t,!S)}}const T=Object.assign(Object.assign({},t),{checked:S,disabled:E,visible:k,indeterminate:_});if(C)return Kp(e,t,n.callSlot(C,T,e));const $=[];return k&&$.push(e("span",{class:["vxe-checkbox--icon",_?Hp().TABLE_CHECKBOX_INDETERMINATE:S?Hp().TABLE_CHECKBOX_CHECKED:E?Hp().TABLE_CHECKBOX_DISABLED_UNCHECKED:Hp().TABLE_CHECKBOX_UNCHECKED]})),(w||v)&&$.push(e("span",{class:"vxe-checkbox--label"},w?n.callSlot(w,T,e):pc.get(r,v))),Kp(e,t,[e("span",{class:["vxe-cell--checkbox",{"is--checked":S,"is--disabled":E,"is--indeterminate":_,"is--hidden":!k}],on:O},$)])},renderDeepSelectionCell(e,t){return af.renderDeepNodeBtn(e,t,af.renderCheckboxCell(e,t))},renderCheckboxCellByProp(e,t){const{$table:n,row:r,column:i,isHidden:o}=t,a=n,s=n,l=n,{treeConfig:c}=a,{updateCheckboxFlag:u,isRowGroupStatus:d}=s,{treeIndeterminateRowMaps:h}=l,p=n.computeAggregateOpts,{mapChildrenField:f}=p,m=n.computeCheckboxOpts,{labelField:g,checkField:v,checkMethod:b,visibleMethod:y}=m,x=m.indeterminateField||m.halfField,{slots:w}=i,C=w?w.default:null,_=w?w.checkbox:null;let S=!1,k=!1,E=!0,O=!1;const T={};if(!o){const e=np(n,r);if(k=!!u&&pc.get(r,v),b&&d&&n.isAggregateRecord(r)){const e=r[f||""];e&&e.length&&!e.every(e=>!b({$table:n,row:e}))||(O=!0)}else E=!y||y({$table:n,row:r}),O=b?!b({$table:n,row:r}):!!b;(c||d)&&(S=!!h[e]),T.click=e=>{!O&&E&&n.triggerCheckRowEvent(e,t,!k)}}const $=Object.assign(Object.assign({},t),{checked:k,disabled:O,visible:E,indeterminate:S});if(_)return Kp(e,t,n.callSlot(_,$,e));const D=[];return E&&D.push(e("span",{class:["vxe-checkbox--icon",S?Hp().TABLE_CHECKBOX_INDETERMINATE:k?Hp().TABLE_CHECKBOX_CHECKED:O?Hp().TABLE_CHECKBOX_DISABLED_UNCHECKED:Hp().TABLE_CHECKBOX_UNCHECKED]})),(C||g)&&D.push(e("span",{class:"vxe-checkbox--label"},C?n.callSlot(C,$,e):pc.get(r,g))),Kp(e,t,[e("span",{class:["vxe-cell--checkbox",{"is--checked":k,"is--disabled":O,"is--indeterminate":x&&!k?r[x]:S,"is--hidden":!E}],on:T},D)])},renderDeepSelectionCellByProp(e,t){return af.renderDeepNodeBtn(e,t,af.renderCheckboxCellByProp(e,t))},renderExpandCell(e,t){const{$table:n,isHidden:r,row:i,column:o}=t,a=n,s=n,{isRowGroupStatus:l}=a,{rowExpandedMaps:c,rowExpandLazyLoadedMaps:u}=s,d=n.computeExpandOpts,{lazy:h,labelField:p,iconLoaded:f,showIcon:m,iconOpen:g,iconClose:v,visibleMethod:b}=d,{slots:y}=o,x=y?y.default:null,w=y?y.icon:null;let C=!1,_=!1;if(l&&i.isAggregate)return Kp(e,t,[]);if(w)return Kp(e,t,n.callSlot(w,t,e));if(!r){const e=np(n,i);C=!!c[e],h&&(_=!!u[e])}return Kp(e,t,[!m||b&&!b(t)?qp(n):e("div",{class:["vxe-table--expanded",{"is--active":C}]},[e("span",{class:"vxe-table--expand-btn",on:{mousedown(e){e.stopPropagation()},click(e){n.triggerRowExpandEvent(e,t)}}},[e("i",{class:_?f||Hp().TABLE_EXPAND_LOADED:C?g||Hp().TABLE_EXPAND_OPEN:v||Hp().TABLE_EXPAND_CLOSE})])]),x||p?e("span",{class:"vxe-table--expand-label"},x?n.callSlot(x,t,e):pc.get(i,p)):qp(n)])},renderExpandData(e,t){const{$table:n,column:r}=t,{slots:i,contentRender:o}=r;if(i&&i.content)return n.callSlot(i.content,t,e);if(o){const r=n.computeRendererOpts,i=o.name?r[o.name]||Wp.get(o.name):null,a=i?i.renderTableExpand||i.renderExpand:null;if(a)return Bp(a.call(n,e,o,t))}return[]},renderHTMLCell(e,t){const{$table:n,column:r}=t,{slots:i}=r;return i&&i.default?Kp(e,t,n.callSlot(i.default,t,e)):Kp(e,t,[e("span",{class:"vxe-cell--html",domProps:{innerHTML:tf(t)}})])},renderDeepHTMLCell(e,t){return af.renderDeepNodeBtn(e,t,af.renderHTMLCell(e,t))},renderSortAndFilterHeader(e,t){return Zp(e,t,af.renderHeaderTitle(e,t).concat(af.renderSortIcon(e,t).concat(af.renderFilterIcon(e,t))))},renderSortHeader(e,t){return Zp(e,t,af.renderHeaderTitle(e,t).concat(af.renderSortIcon(e,t)))},renderSortIcon(e,t){const{$table:n,column:r}=t,i=n.computeSortOpts,{showIcon:o,allowBtn:a,ascTitle:s,descTitle:l,iconLayout:c,iconAsc:u,iconDesc:d,iconVisibleMethod:h}=i,{order:p,slots:f}=r;if(o&&(!h||h(t))){const i=f?f.sort:null;return i?Bp(n.callSlot(i,t,e)):[e("span",{class:["vxe-cell--sort",`vxe-cell--sort-${c}-layout`]},[e("i",{class:["vxe-sort--asc-btn",u||Hp().TABLE_SORT_ASC,{"sort--active":"asc"===p}],attrs:{title:pc.eqNull(s)?zp("vxe.table.sortAsc"):`${s||""}`},on:a?{click(e){e.stopPropagation(),n.triggerSortEvent(e,r,"asc")}}:void 0}),e("i",{class:["vxe-sort--desc-btn",d||Hp().TABLE_SORT_DESC,{"sort--active":"desc"===p}],attrs:{title:pc.eqNull(l)?zp("vxe.table.sortDesc"):`${l||""}`},on:a?{click(e){e.stopPropagation(),n.triggerSortEvent(e,r,"desc")}}:void 0})])]}return[]},renderFilterHeader(e,t){return Zp(e,t,af.renderHeaderTitle(e,t).concat(af.renderFilterIcon(e,t)))},renderFilterIcon(e,t){const{$table:n,column:r,hasFilter:i}=t,o=n,{filterStore:a}=o,s=n.computeFilterOpts,{showIcon:l,iconNone:c,iconMatch:u,iconVisibleMethod:d}=s;return!l||d&&!d(t)?[]:[e("span",{class:["vxe-cell--filter",{"is--active":a.visible&&a.column===r}],on:{click(e){n.triggerFilterEvent&&n.triggerFilterEvent(e,t.column,t)}}},[e("i",{class:["vxe-filter--btn",i?u||Hp().TABLE_FILTER_MATCH:c||Hp().TABLE_FILTER_NONE],attrs:{title:zp("vxe.table.filter")}})])]},renderEditHeader(e,t){const{$table:n,column:r}=t,i=n,{editConfig:o,editRules:a}=i,s=n.computeEditOpts,{sortable:l,filters:c,editRender:u}=r,d=o&&ld(o),h=d&&ld(u)?u:null;let p=!1;if(a){const e=r.rules?r.rules:pc.get(a,r.field);e&&(p=e.some(e=>e.required))}let f=[];if(d){const{showAsterisk:t,showIcon:r,icon:i}=s;f=[p&&t?e("i",{class:"vxe-cell--required-icon"},[e("i",{class:"vxe-cell--required-icon"})]):qp(n),h&&r?e("i",{class:"vxe-cell--edit-icon"},pc.isFunction(i)?Bp(i({})):[e("i",{class:i||Hp().TABLE_EDIT})]):qp(n)]}return Zp(e,t,f.concat(af.renderHeaderTitle(e,t)).concat(l?af.renderSortIcon(e,t):[]).concat(c?af.renderFilterIcon(e,t):[]))},renderRowEdit(e,t){const{$table:n,column:r}=t,i=n,o=n,{editConfig:a}=i,{editStore:s}=o,{actived:l}=s,{editRender:c}=r,u=a&&ld(a),d=u&&ld(c)?c:null;return af.runRenderer(e,t,!(!d||!l||l.row!==t.row))},renderDeepRowEdit(e,t){return af.renderDeepNodeBtn(e,t,af.renderRowEdit(e,t))},renderCellEdit(e,t){const{$table:n,column:r}=t,i=n,o=n,{editConfig:a}=i,{editStore:s}=o,{actived:l}=s,{editRender:c}=r,u=a&&ld(a),d=u&&ld(c)?c:null;return af.runRenderer(e,t,!(!d||!l||l.row!==t.row||l.column!==t.column))},renderDeepCellEdit(e,t){return af.renderDeepNodeBtn(e,t,af.renderCellEdit(e,t))},runRenderer(e,t,n){const{$table:r,row:i,column:o}=t,a=r,s=r,{editConfig:l}=a,{isRowGroupStatus:c}=s,{slots:u,field:d,editRender:h,formatter:p}=o,f=l&&ld(l),m=f&&ld(h)?h:null,g=u?u.default:null,v=u?u.groupContent||u["group-content"]:null,b=Object.assign({$type:"",isEdit:n},t);if(n&&m){if(u&&u.edit)return r.callSlot(u.edit,b,e);const t=r.computeRendererOpts,n=m.name?t[m.name]||Wp.get(m.name):null,i=n?n.renderTableEdit||n.renderEdit:null;return i?Bp(i.call(r,e,h,b)):[]}if(c&&d&&i.isAggregate){const n=i,o=r.computeAggregateOpts,{mapChildrenField:a}=o,s=n.groupField,l=n.groupContent,c=a&&n[a]||[],u=n.childCount;if(v)return Kp(e,t,r.callSlot(v,Object.assign({groupField:s,groupContent:l,childList:c,childCount:u},t),e))}else if(g)return Kp(e,t,r.callSlot(g,b,e));return p?Kp(e,t,[e("span",{class:"vxe-cell--label"},[tf(b)])]):af.renderDefaultCell(e,b)}},sf=af,lf={colId:[String,Number],type:String,field:String,title:String,width:[Number,String],minWidth:[Number,String],maxWidth:[Number,String],resizable:{type:Boolean,default:null},fixed:String,align:String,headerAlign:String,footerAlign:String,showOverflow:{type:[Boolean,String],default:null},showHeaderOverflow:{type:[Boolean,String],default:null},showFooterOverflow:{type:[Boolean,String],default:null},className:[String,Function],headerClassName:[String,Function],footerClassName:[String,Function],formatter:[Function,Array,String],headerFormatter:[Function,Array,String],footerFormatter:[Function,Array,String],padding:{type:Boolean,default:null},verticalAlign:{type:String,default:null},sortable:Boolean,remoteSort:{type:Boolean,default:null},sortBy:[String,Function],sortType:String,sortMethod:Function,filters:{type:Array,default:null},filterMultiple:{type:Boolean,default:!0},filterMethod:Function,filterResetMethod:Function,filterRecoverMethod:Function,filterRender:Object,floatingFilters:Object,rules:Array,rowGroupNode:Boolean,treeNode:Boolean,dragSort:Boolean,rowResize:Boolean,visible:{type:Boolean,default:null},headerExportMethod:Function,exportMethod:Function,footerExportMethod:Function,titleHelp:Object,titlePrefix:Object,titleSuffix:Object,cellType:String,cellRender:Object,editRender:Object,contentRender:Object,aggFunc:[Boolean,String],copyMethod:Function,cutMethod:Function,pasteMethod:Function,params:Object},cf={};Object.keys(lf).forEach(e=>{cf[e]=function(t){const n=this.$xeTable;this.columnConfig.update(e,t),n&&("filters"===e?(n.setFilter(this.columnConfig,t),n.handleUpdateDataQueue()):["visible","fixed","width","minWidth","maxWidth"].includes(e)&&n.handleRefreshColumnQueue())}});const uf={name:"VxeColumn",props:lf,provide(){const e=this;return{$xeColumn:e,$xeGrid:null,$xeGantt:null}},inject:{$xeTable:{default:null},$xeColumn:{default:null}},watch:cf,created(){const e=this,t=e,n=this.$xeTable;this.columnConfig=sf.createColumn(n,t)},mounted(){const e=this;this.columnConfig.slots=this.$scopedSlots,gp(e)},destroyed(){const e=this;vp(e)},render(e){return e("div",this.$slots.default)},methods:sf},df=Object.assign({},uf,{install(e){e.component(uf.name,uf),e.component("VxeTableColumn",uf)}});ad.dynamicApp&&(ad.dynamicApp.component(uf.name,uf),ad.dynamicApp.component("VxeTableColumn",uf)),ad.component(uf);const hf=df,pf={name:"VxeColgroup",props:lf,provide(){const e=this;return{$xeColumn:e,$xeGrid:null,$xeGantt:null}},inject:{$xeTable:{default:null},$xeColumn:{default:null}},watch:cf,created(){const e=this,t=e,n=this.$xeTable;this.columnConfig=sf.createColumn(n,t)},mounted(){const e=this,{$scopedSlots:t}=this,n={};t.header&&(n.header=t.header),t.title&&(n.title=t.title),this.columnConfig.slots=n,gp(e)},destroyed(){const e=this;vp(e)},render(e){return e("div",this.$slots.default)},methods:sf},ff=Object.assign({},pf,{install(e){e.component(pf.name,pf),e.component("VxeTableColgroup",pf)}});ad.dynamicApp&&(ad.dynamicApp.component(pf.name,pf),ad.dynamicApp.component("VxeTableColgroup",pf)),ad.component(pf);const mf=ff,{getConfig:gf}=ad,vf={id:[String,Function],data:Array,height:[Number,String],minHeight:{type:[Number,String],default:()=>null},maxHeight:[Number,String],resizable:{type:Boolean,default:()=>gf().table.resizable},stripe:{type:Boolean,default:()=>gf().table.stripe},border:{type:[Boolean,String],default:()=>gf().table.border},padding:{type:Boolean,default:null},round:{type:Boolean,default:()=>gf().table.round},size:{type:String,default:()=>gf().table.size||gf().size},fit:{type:Boolean,default:()=>gf().table.fit},loading:Boolean,align:{type:String,default:()=>gf().table.align},headerAlign:{type:String,default:()=>gf().table.headerAlign},footerAlign:{type:String,default:()=>gf().table.footerAlign},showHeader:{type:Boolean,default:()=>gf().table.showHeader},highlightCurrentRow:{type:Boolean,default:()=>gf().table.highlightCurrentRow},highlightHoverRow:{type:Boolean,default:()=>gf().table.highlightHoverRow},highlightCurrentColumn:{type:Boolean,default:()=>gf().table.highlightCurrentColumn},highlightHoverColumn:{type:Boolean,default:()=>gf().table.highlightHoverColumn},highlightCell:Boolean,showFooter:Boolean,footerData:Array,footerMethod:Function,rowClassName:[String,Function],cellClassName:[String,Function],headerRowClassName:[String,Function],headerCellClassName:[String,Function],footerRowClassName:[String,Function],footerCellClassName:[String,Function],cellStyle:[Object,Function],headerCellStyle:[Object,Function],footerCellStyle:[Object,Function],rowStyle:[Object,Function],headerRowStyle:[Object,Function],footerRowStyle:[Object,Function],showCustomHeader:{type:Boolean,default:()=>gf().table.showCustomHeader},mergeHeaderCells:Array,mergeCells:Array,mergeFooterCells:Array,mergeFooterItems:Array,spanMethod:Function,footerSpanMethod:Function,showOverflow:{type:[Boolean,String],default:()=>gf().table.showOverflow},showHeaderOverflow:{type:[Boolean,String],default:()=>gf().table.showHeaderOverflow},showFooterOverflow:{type:[Boolean,String],default:()=>gf().table.showFooterOverflow},columnKey:Boolean,rowKey:Boolean,rowId:{type:String,default:()=>gf().table.rowId},zIndex:Number,emptyText:{type:String,default:()=>gf().table.emptyText},keepSource:{type:Boolean,default:()=>gf().table.keepSource},autoResize:{type:Boolean,default:()=>gf().table.autoResize},syncResize:[Boolean,String,Number],resizeConfig:Object,columnConfig:Object,currentColumnConfig:Object,cellConfig:Object,headerCellConfig:Object,footerCellConfig:Object,rowConfig:Object,aggregateConfig:Object,aggregateAccuracyConfig:Object,rowGroupConfig:Object,currentRowConfig:Object,dragConfig:Object,rowDragConfig:Object,columnDragConfig:Object,resizableConfig:Object,seqConfig:Object,sortConfig:Object,filterConfig:Object,floatingFilterConfig:Object,radioConfig:Object,checkboxConfig:Object,tooltipConfig:Object,headerTooltipConfig:Object,footerTooltipConfig:Object,exportConfig:[Boolean,Object],importConfig:[Boolean,Object],printConfig:Object,expandConfig:Object,treeConfig:[Boolean,Object],menuConfig:[Boolean,Object],contextMenu:[Boolean,Object],mouseConfig:Object,areaConfig:Object,keyboardConfig:Object,clipConfig:Object,fnrConfig:Object,editConfig:[Boolean,Object],editDirtyConfig:Object,validConfig:Object,editRules:Object,loadingConfig:Object,emptyRender:[Boolean,Object],customConfig:Object,scrollX:Object,scrollY:Object,virtualXConfig:Object,virtualYConfig:Object,scrollbarConfig:Object,undoRedoHistoryConfig:Object,animat:{type:Boolean,default:()=>gf().table.animat},delayHover:{type:Number,default:()=>gf().table.delayHover},rendererConfig:Object,params:Object},bf="row--drag-move",yf="col--drag-move";function xf(e,t){pc.arrayEach(e,e=>{e.style.transform=`translateY(${t}px)`}),requestAnimationFrame(()=>{pc.arrayEach(e,e=>{ah(e,bf),e.style.transform=""})})}function wf(e,t){setTimeout(()=>{e&&pc.arrayEach(e.querySelectorAll(t.map(e=>`${e}.${bf}`).join(",")),e=>oh(e,bf))},500)}function Cf(e,t){pc.arrayEach(e,e=>{e.style.transform=`translateX(${t}px)`}),requestAnimationFrame(()=>{pc.arrayEach(e,e=>{ah(e,yf),e.style.transform=""})})}function _f(e,t){setTimeout(()=>{e&&pc.arrayEach(e.querySelectorAll(t.map(e=>`${e}.${bf}`).join(",")),e=>oh(e,yf))},500)}const Sf={row:null};function kf(e){const t=e.crossTableDragRowInfo;return t}const{warnLog:Ef,errLog:Of}=Ih("table"),{getConfig:Tf,getI18n:$f,renderer:Df,formats:Mf,interceptor:Ff,createEvent:Rf,globalEvents:If,GLOBAL_EVENT_KEYS:Af}=ad,Pf=5e6,Lf="VXE_CUSTOM_STORE",Nf=5e6,jf=5e6,Bf="table";let Vf=null;function zf(e,t,n){const r=pc.get(e,n),i=pc.get(t,n);let o=!1;return o=!(!gd(r)||!gd(i))||(pc.isString(r)||pc.isNumber(r)?""+r===""+i:pc.isEqual(r,i)),{newValue:r,oldValue:i,result:o}}function Hf(e,t){const n=e.computeSortOpts,{orders:r=[]}=n,i=t.order||null,o=r.indexOf(i)+1;return r[o<r.length?o:0]}const Wf=e=>{const t=Tf().version,n=pc.toStringJSON(localStorage.getItem(Lf)||""),r=n&&n._v===t?n:{_v:t};return(e?r[e]:r)||{}},qf=(e,t)=>{const n=Tf().version,r=Wf();r[e]=t||void 0,r._v=n,localStorage.setItem(Lf,pc.toJSONString(r))},Gf=(e,t)=>{const n=e,{fullAllDataRowIdData:r}=n,i={};return pc.each(t,(e,t)=>{r[t]&&(i[t]=e)}),i};function Yf(e,t){const n=e,{fullDataRowIdData:r}=n,i=[];return pc.each(t,(e,t)=>{r[t]&&-1===i.indexOf(r[t].row)&&i.push(r[t].row)}),i}function Uf(e){const t=e,n=e,{isScrollXBig:r,scrollXWidth:i}=t,{elemStore:o,visibleColumn:a,fullColumnIdData:s}=n,l=e.computeLeftFixedWidth,c=e.computeRightFixedWidth,u=Ep(o["main-body-scroll"]);if(u){const e=u.clientWidth;let t=u.scrollLeft;r&&(t=Math.ceil((i-e)*Math.min(1,t/(jf-e))));const n=t+l,o=t+e-c;let d=0,h=a.length;while(d<h){const e=Math.floor((d+h)/2),t=a[e],r=t.id,i=s[r]||{};i.oLeft<=n?d=e+1:h=e}let p=0;const f=d===a.length?d:Math.max(0,d<a.length?d-2:0);for(let r=f,i=a.length;r<i;r++){const e=a[r],t=e.id,n=s[t]||{};if(p++,n.oLeft>o||p>=60)break}return{toVisibleIndex:Math.max(0,f),visibleSize:Math.max(6,p)}}return{toVisibleIndex:0,visibleSize:6}}function Kf(e,t){const n=e,r=e,i=e,o=e.$xeGrid,a=e.$xeGantt,s=o||a,{aggregateConfig:l,rowGroupConfig:c}=n,{collectColumn:u}=i,{isCustomAlign:d,isCustomHeaderAlign:h,isCustomFooterAlign:p,isCustomResizable:f,isCustomVisible:m,isCustomFixed:g,isCustomSort:v,isCustomAggGroup:b,isCustomAggFunc:y,isCustomPager:x}=Ap(e);let{alignData:w,headerAlignData:C,footerAlignData:_,resizableData:S,sortData:k,visibleData:E,fixedData:O,aggGroupData:T,aggFuncData:$,pagerData:D}=t;if(d&&w||h&&C||p&&_||f&&S||v&&k||m&&E||g&&O||b&&T||y&&$||x&&D&&s){const t={};if(v&&k){if(!pc.isArray(k)){const e=[];pc.each(k,(t,n)=>{e.push({key:n,index:t})}),k=pc.orderBy(e,{field:"index",order:"asc"}).map(e=>({k:e.key}))}let e=1;pc.eachTree(k,(n,r,i,o,a)=>{t[n.k]={key:n.k,sNum:e++,pKey:a?a.k:null}},{children:"c"})}const n={},o=[],a=[];if(pc.eachTree(u,(e,t,r,i,s)=>{const u=e.getKey();s||g&&O&&void 0!==O[u]&&(e.fixed=O[u]),f&&S&&pc.isNumber(S[u])&&(e.resizeWidth=S[u]),m&&E&&pc.isBoolean(E[u])&&(e.visible=E[u]),y&&$&&(l||c)&&$[u]&&(e.aggFunc=$[u]),b&&T&&T[u]&&a.push({field:e.field}),n[u]=e,o.push(e)}),(l||c)&&a.length){const t=_g(e,i.tableFullData,a);i.tableFullTreeData=[],i.tableFullGroupData=t.treeData,r.isRowGroupStatus=!0,r.rowGroupList=a,e.cacheRowMap(!1)}if(v&&k){o.forEach(e=>{const r=e.getKey(),i=t[r];if(i){const t=i.pKey?n[i.pKey]:null;e.parentId=t?t.id:null,e.renderSortNumber=i.sNum}});const e=pc.toArrayTree(pc.orderBy(o,"renderSortNumber"),{key:"id",parentKey:"parentId",children:"children"});i.collectColumn=e,i.tableFullColumn=Dp(e),r.updateColFlag++}r.isCustomStatus=!0}else r.isCustomStatus=!1}function Xf(e){const t=e,{customConfig:n}=t,r=e.computeTableId,i=e.computeCustomOpts,{storage:o,restoreStore:a}=i,{isCustomAlign:s,isCustomHeaderAlign:l,isCustomFooterAlign:c,isCustomResizable:u,isCustomVisible:d,isCustomFixed:h,isCustomSort:p,isCustomAggGroup:f,isCustomAggFunc:m}=Ap(e);if(o&&(n?ld(i):i.enabled)&&(s||l||c||u||d||h||p||f||m)){if(!r)return void Of("vxe.error.reqProp",["id"]);const t=Wf(r);return a?Promise.resolve(a({$table:e,id:r,type:"restore",storeData:t})).then(t=>{if(t)return Kf(e,t)}).catch(e=>e):Kf(e,t)}}function Zf(e){const t=e,n=e,r=e,{treeConfig:i,showOverflow:o}=t,{tableFullColumn:a,collectColumn:s}=r,l=r.fullColumnIdData={},c=r.fullColumnFieldData={},u=e.computeMouseOpts,d=e.computeExpandOpts,h=e.computeColumnOpts,p=e.computeColumnDragOpts,f=e.computeVirtualYOpts,{isCrossDrag:m,isSelfToChildDrag:g}=p,v=e.computeCustomOpts,b=e.computeTreeOpts,{storage:y}=v,x=e.computeRowOpts,w=s.some(pd);let C,_,S,k,E,O,T,$=!!o;const D=(e,t,n,r,i)=>{const{id:o,field:a,fixed:s,type:u,treeNode:d,rowGroupNode:p}=e,f={$index:-1,_index:-1,column:e,colid:o,index:t,items:n,parent:i||null,width:0,oLeft:0};a?(c[a]&&Of("vxe.error.colRepet",["field",a]),c[a]=f):(y&&!u&&Of("vxe.error.reqSupportProp",["storage",`[${u?`type=${u}`:`title=${e.getTitle()}`}]field=?`]),h.drag&&(m||g)&&Of("vxe.error.reqSupportProp",["column-drag-config.isCrossDrag | column-drag-config.isSelfToChildDrag",`${e.getTitle()||u||""} -> field=?`])),!T&&s&&(T=s),O||"html"!==u||(O=e),d&&(S&&Ef("vxe.error.colRepet",["tree-node",d]),S||(S=e)),p&&(S&&Ef("vxe.error.colRepet",["row-group-node",p]),C||(C=e)),"expand"===u&&(_&&Ef("vxe.error.colRepet",["type",u]),_||(_=e)),"checkbox"===u?(k&&Ef("vxe.error.colRepet",["type",u]),k||(k=e)):"radio"===u&&(E&&Ef("vxe.error.colRepet",["type",u]),E||(E=e)),$&&!1===e.showOverflow&&($=!1),l[o]&&Of("vxe.error.colRepet",["colId",o]),l[o]=f};w?pc.eachTree(s,(e,t,n,r,i,o)=>{e.level=o.length,D(e,t,n,r,i)}):a.forEach(D),_&&("fixed"!==d.mode&&f.enabled&&Ef("vxe.error.notConflictProp",['column.type="expand',"virtual-y-config.enabled=false"]),"fixed"!==d.mode&&u.area&&Of("vxe.error.errConflicts",["mouse-config.area","column.type=expand"]),"inside"!==d.mode&&i&&!b.transform&&Of("vxe.error.notConflictProp",["tree-config.transform=false","expand-config.mode=inside"])),O&&(h.useKey||Of("vxe.error.notSupportProp",["column.type=html","column-config.useKey=false","column-config.useKey=true"]),x.useKey||Of("vxe.error.notSupportProp",["column.type=html","row-config.useKey=false","row-config.useKey=true"])),n.isGroup=w,n.rowGroupColumn=C,n.treeNodeColumn=S,n.expandColumn=_,n.checkboxColumn=k,n.radioColumn=E,n.isAllOverflow=$}function Qf(e,t){const n=e,r=e,i=e.computeVirtualXOpts,o=t||r.tableFullColumn,a=!!i.enabled&&i.gt>-1&&(0===i.gt||i.gt<o.length);return n.scrollXLoad=a,a}function Jf(e){const t=e,n=e,r=n.xeGanttView;r&&r.handleUpdateSYStatus&&r.handleUpdateSYStatus(t.scrollYLoad)}function em(e,t){const n=e,r=e,i=e,{treeConfig:o}=n,a=e.computeVirtualYOpts,s=e.computeTreeOpts,{transform:l}=s,c=t||i.tableFullData;let u=!!a.enabled&&a.gt>-1&&(0===a.gt||a.gt<c.length);return u&&o&&!l&&(Of("vxe.error.notSupportProp",["[table] virtual-y-config.enabled=true","tree-config.transform=false","tree-config.transform=true"]),u=!1),r.scrollYLoad=u,Jf(e),u}function tm(e,t,n){const r=e,i=e,{treeNodeColumn:o}=r,{fullAllDataRowIdData:a,tableFullTreeData:s,treeExpandedMaps:l,treeExpandLazyLoadedMaps:c}=i,u=e.computeTreeOpts,{reserve:d,lazy:h,accordion:p,toggleMethod:f}=u,m=u.children||u.childrenField,g=u.hasChild||u.hasChildField,v=[],b=e.getColumnIndex(o),y=e.getVMColumnIndex(o),x=e.getVTColumnIndex(o),{handleGetRowId:w}=ip(e);let C=f?t.filter(t=>f({$table:e,expanded:n,column:o,columnIndex:b,$columnIndex:y,_columnIndex:x,row:t})):t;if(p){C=C.length?[C[C.length-1]]:[];const e=pc.findTree(s,e=>e===C[0],{children:m});e&&e.items.forEach(e=>{const t=w(e);l[t]&&delete l[t]})}return n?C.forEach(t=>{const n=w(t);if(!l[n]){const r=a[n];if(r){const i=h&&t[g]&&!r.treeLoaded&&!c[n];i?v.push(km(e,t)):t[m]&&t[m].length&&(l[n]=t)}}}):C.forEach(e=>{const t=w(e);l[t]&&delete l[t]}),d&&C.forEach(t=>Em(e,t,n)),r.treeExpandedFlag++,Promise.all(v).then(()=>(Qg(e),e.recalculate()))}function nm(e,t,n){const r=e;return tm(e,t,n).then(()=>(cm(e),e.handleTableData(),r.treeExpandedFlag++,lm(e),e.$nextTick())).then(()=>mg(e,!0,!0,!0)).then(()=>{Qg(e),setTimeout(()=>{e.updateCellAreas()},30)})}function rm(e,t,n){const r=e,i=e,{fullAllDataRowIdData:o,tableFullGroupData:a,rowGroupExpandedMaps:s}=i,l=e.computeAggregateOpts,{mapChildrenField:c,accordion:u}=l,{handleGetRowId:d}=ip(e);let h=t;if(c){if(u){h=h.length?[h[h.length-1]]:[];const t=pc.findTree(a,t=>np(e,t)===np(e,h[0]),{children:c});t&&t.items.forEach(e=>{const t=d(e);s[t]&&delete s[t]})}n?h.forEach(e=>{const t=d(e);if(!s[t]){const n=o[t];n&&e[c]&&e[c].length&&(s[t]=e)}}):h.forEach(e=>{const t=d(e);s[t]&&delete s[t]})}return r.rowGroupExpandedFlag++,e.recalculate()}function im(e,t,n){const r=e;return rm(e,t,n).then(()=>(cm(e),e.handleTableData(),r.rowGroupExpandedFlag++,lm(e),e.$nextTick())).then(()=>vg(e,!0,!0,!0)).then(()=>{setTimeout(()=>{e.updateCellAreas()},30)})}function om(e){const t=e,{isRowGroupStatus:n}=t;if(n){const t=e.computeAggregateOpts,{expandAll:n,expandGroupFields:r}=t;n?e.setAllRowGroupExpand(!0):r&&r.length&&e.setRowGroupExpandByField(r,!0)}}function am(e){const t=e,{fullDataRowIdData:n,fullAllDataRowIdData:r,afterFullData:i,afterTreeFullData:o}=t,a=e.computeTreeOpts,{transform:s,mapChildrenField:l}=a,c=a.children||a.childrenField,u={};let d=0;const{handleGetRowId:h}=ip(e);pc.eachTree(o,(e,t,i,o,a)=>{const s=h(e),l=r[s],c=o.map((e,t)=>t%2===0?Number(e)+1:".").join("");if(l)l.seq=c,l._seq=d,l.treeIndex=t,l._index=d,l._tIndex=d;else{const o={row:e,rowid:s,_seq:d,seq:c,index:t,$index:-1,_index:d,treeIndex:t,_tIndex:d,items:i,parent:a,level:0,height:0,resizeHeight:0,oTop:0,expandHeight:0};r[s]=o,n[s]=o}d++,u[s]=e},{children:s?l:c}),s&&i.forEach((e,t)=>{const n=h(e),i=r[n];i&&(i._index=t)}),t.afterFullRowMaps=u}function sm(e){const t=e,{afterFullData:n,fullDataRowIdData:r,fullAllDataRowIdData:i}=t,{handleGetRowId:o}=ip(e),a={};let s=0;n.forEach((e,t)=>{const n=o(e),l=i[n],c=t+1;if(l)l.seq=c,l._seq=s,l._index=t;else{const o={row:e,rowid:n,_seq:s,seq:c,index:-1,$index:-1,_index:t,treeIndex:-1,_tIndex:-1,items:[],parent:null,level:0,height:0,resizeHeight:0,oTop:0,expandHeight:0};i[n]=o,r[n]=o}s++,a[n]=e}),t.afterFullRowMaps=a}function lm(e){const t=e,{treeConfig:n}=t;n?am(e):sm(e)}function cm(e){const t=e,n=e,r=e,{treeConfig:i}=t,{isRowGroupStatus:o}=n,{fullAllDataRowIdData:a,treeExpandedMaps:s,rowGroupExpandedMaps:l}=r,c=e.computeAggregateOpts,u=e.computeTreeOpts,{handleGetRowId:d}=ip(e),h=[],p={};if(i&&u.transform){const t=u.children||u.childrenField;return pc.eachTree(r.afterTreeFullData,(e,t,n,r,i)=>{const o=d(e),l=d(i);if(!i||p[l]&&s[l]){const t=a[o];t&&(t._index=h.length),p[o]=1,h.push(e)}},{children:t}),r.afterFullData=h,em(e,h),h}if(o){const{childrenField:t}=c;return pc.eachTree(r.afterGroupFullData,(e,t,n,r,i)=>{const o=d(e),s=d(i);if(!i||p[s]&&l[s]){const t=a[o];t&&(t._index=h.length),p[o]=1,h.push(e)}},{children:t}),r.afterFullData=h,em(e,h),h}return r.afterFullData}function um(e){const t=e,n=e,r=e,{treeConfig:i}=t,{isRowGroupStatus:o}=n,{tableFullColumn:a,tableFullData:s,tableFullTreeData:l,tableFullGroupData:c}=r,u=e.computeFilterOpts,d=e.computeSortOpts,h=e.computeAggregateOpts,p=e.computeRendererOpts,f=e.computeTreeOpts,m=f.children||f.childrenField,{transform:g,rowField:v,parentField:b,mapChildrenField:y}=f,{isEvery:x,remote:w,filterMethod:C,isDeep:_}=u,{remote:S,sortMethod:k,multiple:E,chronological:O,isDeep:T}=d;let $=[],D=[];if(w&&S)o?(D=pc.searchTree(c,()=>!0,{original:!0,isEvery:!0,children:h.mapChildrenField,mapChildren:h.childrenField}),$=D):i&&g&&!1!==T?(D=pc.searchTree(l,()=>!0,{original:!0,isEvery:x,children:y,mapChildren:m}),$=D):($=i?l.slice(0):s.slice(0),D=$);else{const t=[];let n=[];if(a.forEach(e=>{const{field:r,sortable:i,order:o,filters:a}=e;if(!w&&a&&a.length){const n=[],r=[];a.forEach(e=>{e.checked&&(r.push(e),n.push(e.value))}),r.length&&t.push({column:e,valueList:n,itemList:r})}!S&&i&&o&&n.push({column:e,field:r,property:r,order:o,sortTime:e.sortTime})}),E&&O&&n.length>1&&(n=pc.orderBy(n,"sortTime")),!w&&t.length){const n=n=>t.every(({column:t,valueList:r,itemList:i})=>{const{filterMethod:o,filterRender:a}=t,s=ld(a)&&a.name?p[a.name]||Df.get(a.name):null,l=s?s.tableFilterMethod||s.filterMethod:null,c=s?s.tableFilterDefaultMethod||s.defaultTableFilterMethod||s.defaultFilterMethod:null,u=Sp(n,t);return o?i.some(r=>o({value:r.value,option:r,cellValue:u,row:n,column:t,$table:e})):l?i.some(r=>l({value:r.value,option:r,cellValue:u,row:n,column:t,$table:e})):C?C({$table:e,options:i,values:r,cellValue:u,row:n,column:t}):c?i.some(r=>c({value:r.value,option:r,cellValue:u,row:n,column:t,$table:e})):r.indexOf(pc.get(n,t.field))>-1});o?(D=pc.searchTree(c,n,{original:!0,isEvery:!0,children:h.mapChildrenField,mapChildren:h.childrenField}),$=D):i&&g&&!1!==_?(D=pc.searchTree(l,n,{original:!0,isEvery:x,children:y,mapChildren:m}),$=D):($=i?l.filter(n):s.filter(n),D=$)}else o?(D=pc.searchTree(c,()=>!0,{original:!0,isEvery:!0,children:h.mapChildrenField,mapChildren:h.childrenField}),$=D):i&&g&&!1!==_?(D=pc.searchTree(l,()=>!0,{original:!0,isEvery:x,children:y,mapChildren:m}),$=D):($=i?l.slice(0):s.slice(0),D=$);if(!S&&n.length)if(o){if(k){const t=k({data:D,sortList:n,$table:e});D=pc.isArray(t)?t:D}else{const t=pc.toTreeArray(D,{key:h.rowField,parentKey:h.parentField,children:h.mapChildrenField});D=pc.toArrayTree(pc.orderBy(t,n.map(({column:t,order:n})=>[qm(e,t),n])),{key:h.rowField,parentKey:h.parentField,children:h.childrenField,mapChildren:h.mapChildrenField})}$=D}else if(i&&g&&!1!==T){if(k){const t=k({data:D,sortList:n,$table:e});D=pc.isArray(t)?t:D}else{const t=pc.toTreeArray(D,{children:y});D=pc.toArrayTree(pc.orderBy(t,n.map(({column:t,order:n})=>[qm(e,t),n])),{key:v,parentKey:b,children:m,mapChildren:y})}$=D}else{if(k){const t=k({data:$,sortList:n,$table:e});$=pc.isArray(t)?t:$}else{if(E)$=pc.orderBy($,n.map(({column:t,order:n})=>[qm(e,t),n]));else{const t=n[0];let r;pc.isArray(t.sortBy)&&(r=t.sortBy.map(e=>[e,t.order])),$=pc.orderBy($,r||[t].map(({column:t,order:n})=>[qm(e,t),n]))}$=pc.orderBy($,n.map(({column:t,order:n})=>[qm(e,t),n]))}D=$}}r.afterFullData=$,r.afterTreeFullData=D,r.afterGroupFullData=D,lm(e)}function dm(e){const t=e,n=e,r=e,i=e.$xeGantt,{mouseConfig:o}=t,{isGroup:a,tableColumn:s,overflowX:l,scrollbarWidth:c,overflowY:u,scrollbarHeight:d,scrollXWidth:h,columnStore:p,editStore:f,isColLoading:m}=n,{visibleColumn:g,tableHeight:v,elemStore:b,currentRow:y,customHeight:x,customMinHeight:w,customMaxHeight:C,tHeaderHeight:_,tFooterHeight:S}=r,k=r.xeGanttView,E=e.$refs.refElem;if(!E||r.tBodyHeight&&!E.clientHeight)return;const O=pc.browse(),T=["main","left","right"],{leftList:$,rightList:D}=p;let M=u?c:0,F=l?d:0;const R=e.$refs.refEmptyPlaceholder,I=e.computeIsHeaderRenderOptimize,A=e.computeIsBodyRenderOptimize,P=e.computeIsFooterRenderOptimize,L=e.computeScrollbarOpts,N=e.computeMouseOpts,j=Ep(b["main-body-wrapper"]),B=Ep(b["main-body-table"]);R&&(R.style.top=`${_}px`,R.style.height=j?j.offsetHeight-F+"px":"");const V=L.x||{},z=L.y||{},H=e.computeScrollbarYToLeft;let W=l?"visible":"hidden";"visible"===V.visible||k?(F=d,W="visible"):"hidden"!==V.visible&&!1!==V.visible||(F=0,W="hidden");let q=u?"visible":"hidden";"hidden"===z.visible||!1===z.visible||i&&k&&i.reactData.showRightView&&!H?(M=0,q="hidden"):"visible"===z.visible&&(M=c,q="visible");let G=0,Y=0;const U=w-_-S-F;C&&(Y=Math.max(U,C-_-S-F)),x&&(G=x-_-S-F),G||B&&(G=B.clientHeight),G&&(Y&&(G=Math.min(Y,G)),G=Math.max(U,G));const K=e.$refs.refScrollXLeftCornerElem,X=e.$refs.refScrollXRightCornerElem,Z=e.$refs.refScrollXVirtualElem;Z&&(Z.style.height=`${F}px`,Z.style.visibility=W);const Q=e.$refs.refScrollXWrapperElem;Q&&(Q.style.width=E.clientWidth-M+"px",Q.style.left=H?`${M}px`:""),K&&(H?(K.style.width=`${M}px`,K.style.display=u&&M?"block":""):K.style.display=""),X&&(H?X.style.display="":(X.style.width=`${M}px`,X.style.display="visible"===W?"block":""));const J=e.$refs.refScrollYVirtualElem;J&&(J.style.width=`${M}px`,J.style.height=`${G+_+S}px`,J.style.visibility=q);const ee=e.$refs.refScrollYTopCornerElem;ee&&(ee.style.height=`${_}px`,ee.style.display=_&&"visible"===q?"block":"");const te=e.$refs.refScrollYWrapperElem;te&&(te.style.height=`${G}px`,te.style.top=`${_}px`);const ne=e.$refs.refScrollYBottomCornerElem;ne&&(ne.style.height=`${S}px`,ne.style.top=`${_+G}px`,ne.style.display=S&&"visible"===q?"block":"");const re=e.$refs.refRowExpandElem;return re&&(re.style.height=`${G}px`,re.style.top=`${_}px`),r.tBodyHeight=G,T.forEach((t,n)=>{const r=n>0?t:"",i=["header","body","footer"],o="left"===r;let c,u=[];r&&(u=o?$:D,c=o?e.$refs.refLeftContainer:e.$refs.refRightContainer),i.forEach(e=>{const n=Ep(b[`${t}-${e}-wrapper`]),i=Ep(b[`${t}-${e}-scroll`]),o=Ep(b[`${t}-${e}-table`]);if("header"===e){let e=s;const t=I;a?e=g:(t&&(m||!r&&l)||(e=g),r&&t&&(e=u||[]));const c=e.reduce((e,t)=>e+t.renderWidth,0);r&&(a?n&&(n.style.width=h?`${h}px`:""):t?n&&(n.style.width=c?`${c}px`:""):n&&(n.style.width=h?`${h}px`:"")),i&&(i.style.height=`${_}px`),o&&(o.style.width=c?`${c}px`:"")}else if("body"===e){i&&(i.style.maxHeight=C?`${Y}px`:"",i.style.height=x?`${G}px`:"",i.style.minHeight=`${U}px`),c&&(n&&(n.style.top=`${_}px`),c.style.height=`${x>0?x:v+_+S+F}px`,c.style.width=`${u.reduce((e,t)=>e+t.renderWidth,0)}px`);let a=s;const l=A;r&&(a=g,l&&(a=u||[]));const d=a.reduce((e,t)=>e+t.renderWidth,0);r&&(l?n&&(n.style.width=d?`${d}px`:""):n&&(n.style.width=h?`${h}px`:"")),o&&(o.style.width=d?`${d}px`:"",o.style.paddingRight=M&&r&&(O.firefox||O.safari)?`${M}px`:"");const p=Ep(b[`${t}-${e}-emptyBlock`]);p&&(p.style.width=d?`${d}px`:"")}else if("footer"===e){let e=s;const t=P;t&&(m||!r&&l)||(e=g),r&&t&&(e=u||[]);const a=e.reduce((e,t)=>e+t.renderWidth,0);r&&(t?n&&(n.style.width=a?`${a}px`:""):n&&(n.style.width=h?`${h}px`:"")),i&&(i.style.height=`${S}px`,c&&n&&(n.style.top=`${x>0?x-S-F:v+_}px`)),o&&(o.style.width=a?`${a}px`:"")}})}),y&&e.setCurrentRow(y),o&&N.selected&&f.selected.row&&f.selected.column&&e.addCellSelectedClass(),k&&k.handleUpdateStyle&&k.handleUpdateStyle(),e.$nextTick()}function hm(e,t){return e.triggerValidate?e.triggerValidate(t):e.$nextTick()}function pm(e,t,n){hm(e,"blur").catch(e=>e).then(()=>{e.handleEdit(n,t).then(()=>hm(e,"change")).catch(e=>e)})}function fm(e){const t=e,{sortConfig:n}=t;if(n){const t=e.computeSortOpts;let{defaultSort:r}=t;r&&(pc.isArray(r)||(r=[r]),r.length&&((n.multiple?r:r.slice(0,1)).forEach((t,n)=>{const{field:r,order:i}=t;if(r&&i){const t=e.getColumnByField(r);t&&t.sortable&&(t.order=i,t.sortTime=Date.now()+n)}}),t.remote||e.handleTableData(!0).then(dm)))}}function mm(e){const t=e,n=e,{checkboxConfig:r}=t;if(r){const{fullDataRowIdData:t}=n,r=e.computeCheckboxOpts,{checkAll:i,checkRowKeys:o}=r;if(i)Cm(e,!0,!0);else if(o){const n=[];o.forEach(e=>{const r=op(e);t[r]&&n.push(t[r].row)}),wm(e,n,!0,!0)}}}function gm(e){const t=e,n=e,{radioConfig:r}=t;if(r){const{fullDataRowIdData:t}=n,r=e.computeRadioOpts,{checkRowKey:i,reserve:o}=r,a=i?op(i):null;if(a&&(t[a]&&xm(e,t[a].row,!0),o)){const t=tp(e);n.radioReserveRow={[t]:a}}}}function vm(e){const t=e,n=e,{expandConfig:r}=t;if(r){const{fullDataRowIdData:t}=n,r=e.computeExpandOpts,{expandAll:i,expandRowKeys:o}=r;if(i)e.setAllRowExpand(!0);else if(o){const n=[];o.forEach(e=>{const r=op(e);t[r]&&n.push(t[r].row)}),e.setRowExpand(n,!0)}}}function bm(e,t){const n=e,r=e.computeRadioOpts;r.reserve&&(n.radioReserveRow=t)}function ym(e,t,n){const r=e,{checkboxReserveRowMap:i}=r,o=e.computeCheckboxOpts;if(o.reserve){const r=np(e,t);n?i[r]=t:i[r]&&delete i[r]}}function xm(e,t,n){const r=e,i=e.computeRadioOpts,{checkMethod:o}=i;return t&&(n||!o||o({$table:e,row:t}))&&(r.selectRadioRow=t,bm(e,t)),e.$nextTick()}function wm(e,t,n,r){return t&&!pc.isArray(t)&&(t=[t]),e.handleBatchSelectRows(t,!!n,r),e.checkSelectionStatus(),e.$nextTick()}function Cm(e,t,n){const r=e,i=e,o=e,{treeConfig:a}=r,{isRowGroupStatus:s}=i,{afterFullData:l,afterTreeFullData:c,afterGroupFullData:u,checkboxReserveRowMap:d,selectCheckboxMaps:h}=o,p=e.computeTreeOpts,f=e.computeAggregateOpts,m=p.children||p.childrenField,g=e.computeCheckboxOpts,{checkField:v,reserve:b,checkMethod:y}=g,{handleGetRowId:x}=ip(e),w=g.indeterminateField||g.halfField,C={};if(v){const r=r=>{(n||!y||y({$table:e,row:r}))&&(t&&(C[x(r)]=r),pc.set(r,v,t)),(a||s)&&w&&pc.set(r,w,!1)};a||s?pc.eachTree(l,r,{children:m}):l.forEach(r)}else s?t?pc.eachTree(u,t=>{if(n||!y||y({$table:e,row:t})){const e=x(t);C[e]=t}},{children:f.mapChildrenField}):!n&&y&&pc.eachTree(u,t=>{const n=x(t);!y({$table:e,row:t})&&h[n]&&(C[n]=t)},{children:f.mapChildrenField}):a?t?pc.eachTree(c,t=>{if(n||!y||y({$table:e,row:t})){const e=x(t);C[e]=t}},{children:m}):!n&&y&&pc.eachTree(c,t=>{const n=x(t);!y({$table:e,row:t})&&h[n]&&(C[n]=t)},{children:m}):t?!n&&y?l.forEach(t=>{const n=x(t);(h[n]||y({$table:e,row:t}))&&(C[n]=t)}):l.forEach(e=>{const t=x(e);C[t]=e}):!n&&y&&l.forEach(t=>{const n=x(t);!y({$table:e,row:t})&&h[n]&&(C[n]=t)});return b&&(t?pc.each(C,(e,t)=>{d[t]=e}):l.forEach(t=>ym(e,t,!1))),i.updateCheckboxFlag++,o.selectCheckboxMaps=v?{}:C,i.isAllSelected=t,i.isIndeterminate=!1,o.treeIndeterminateRowMaps={},e.checkSelectionStatus(),e.$nextTick()}function _m(e){const t=e,n=e,r=e,{treeConfig:i}=t,{expandColumn:o,selectRadioRow:a}=n,{fullDataRowIdData:s,fullAllDataRowIdData:l,radioReserveRow:c,selectCheckboxMaps:u,treeExpandedMaps:d,rowExpandedMaps:h,currentRow:p}=r,f=e.computeExpandOpts,m=e.computeTreeOpts,g=e.computeRadioOpts,v=e.computeCheckboxOpts;if(a&&!l[np(e,a)]&&(n.selectRadioRow=null),g.reserve&&c){const t=np(e,c);s[t]&&xm(e,s[t].row,!0)}r.selectCheckboxMaps=Gf(e,u),n.updateCheckboxFlag++,v.reserve&&wm(e,Yf(e,r.checkboxReserveRowMap),!0,!0),p&&!l[np(e,p)]&&(r.currentRow=null),r.rowExpandedMaps=o?Gf(e,h):{},n.rowExpandedFlag++,o&&f.reserve&&e.setRowExpand(Yf(e,r.rowExpandedReserveRowMap),!0),r.treeExpandedMaps=i?Gf(e,d):{},n.treeExpandedFlag++,i&&m.reserve&&e.setTreeExpand(Yf(e,r.treeExpandedReserveRowMap),!0)}const Sm=e=>{const t=e,n=e,{treeConfig:r}=t;if(r){const{fullAllDataRowIdData:t}=n,r=e.computeTreeOpts,{expandAll:i,expandRowKeys:o}=r;if(i)e.setAllTreeExpand(!0);else if(o){const n=[];o.forEach(e=>{const r=op(e),i=t[r];i&&n.push(i.row)}),e.setTreeExpand(n,!0)}}},km=(e,t)=>{const n=e,r=e,i=e.computeTreeOpts,o=e.computeCheckboxOpts,{transform:a,loadMethod:s}=i,{checkStrictly:l}=o;return new Promise(i=>{if(s){const{fullAllDataRowIdData:o,treeExpandLazyLoadedMaps:c}=r,u=np(e,t),d=o[u];c[u]=t,Promise.resolve(s({$table:e,row:t})).then(i=>{if(d&&(d.treeLoaded=!0),c[u]&&delete c[u],pc.isArray(i)||(i=[]),i)return e.loadTreeChildren(t,i).then(i=>{const{treeExpandedMaps:o}=r;return i.length&&!o[u]&&(o[u]=t),n.treeExpandedFlag++,!l&&e.isCheckedByCheckboxRow(t)&&wm(e,i,!0),e.$nextTick().then(()=>{if(a)return e.handleTableData(),lm(e),e.$nextTick()})})}).catch(()=>{const{treeExpandLazyLoadedMaps:e}=r;d&&(d.treeLoaded=!1),e[u]&&delete e[u]}).finally(()=>{n.treeExpandedFlag++,e.$nextTick().then(()=>e.recalculate()).then(()=>i())})}else i()})},Em=(e,t,n)=>{const r=e,{treeExpandedReserveRowMap:i}=r,o=e.computeTreeOpts;if(o.reserve){const r=np(e,t);n?i[r]=t:i[r]&&delete i[r]}},Om=(e,t)=>{const n=e,r=e;return new Promise(i=>{const o=e.computeExpandOpts,{loadMethod:a}=o;if(a){const{fullAllDataRowIdData:o,rowExpandLazyLoadedMaps:s}=r,l=np(e,t),c=o[l];s[l]=t,a({$table:e,row:t,rowIndex:e.getRowIndex(t),$rowIndex:e.getVMRowIndex(t)}).then(()=>{const{rowExpandedMaps:e}=r;c&&(c.expandLoaded=!0),e[l]=t,n.rowExpandedFlag++}).catch(()=>{c&&(c.expandLoaded=!1)}).finally(()=>{const{rowExpandLazyLoadedMaps:t}=r;t[l]&&delete t[l],n.rowExpandedFlag++,e.$nextTick().then(()=>e.recalculate()).then(()=>e.updateCellAreas()).then(()=>i())})}else i()})};function Tm(e,t,n){const r=e,{rowHeightStore:i}=r;n&&n.clientHeight&&(i[t]=n.clientHeight)}function $m(e){const t=e,{isAllOverflow:n}=t,r=e.$refs.refTableHeader,i=e.$refs.refTableBody,o=i?i.$el:null,a=e.computeDefaultRowHeight;let s=0;if(n){if(o){const e=r?r.$el:null;let t;t=o.querySelector("tr"),!t&&e&&(t=e.querySelector("tr")),t&&(s=t.clientHeight)}s||(s=a)}else s=a;return Math.max(18,s)}function Dm(e){const t=e,n=e,{isAllOverflow:r,expandColumn:i,isScrollYBig:o,scrollYHeight:a}=t,{elemStore:s,isResizeCellHeight:l,afterFullData:c,fullAllDataRowIdData:u}=n,d=e.computeRowOpts,h=e.computeCellOpts,p=e.computeDefaultRowHeight,f=Ep(s["main-body-scroll"]);if(f){const t=f.clientHeight;let n=f.scrollTop;o&&(n=Math.ceil((a-t)*Math.min(1,n/(Nf-t))));const s=n,m=n+t;let g=-1,v=0;const b=l||h.height||d.height;if(b||i||!r){const{handleGetRowId:t}=ip(e);let n=0,r=c.length;while(n<r){const e=Math.floor((n+r)/2),i=c[e],o=t(i),a=u[o]||{};a.oTop<=s?n=e+1:r=e}g=n===c.length?n:Math.max(0,n<c.length?n-2:0);for(let e=g,i=c.length;e<i;e++){const n=c[e],r=t(n),i=u[r]||{};if(v++,i.oTop>m||v>=100)break}}else g=Math.floor(s/p)-1,v=Math.ceil(t/p)+1;return{toVisibleIndex:Math.max(0,g),visibleSize:Math.max(6,v)}}return{toVisibleIndex:0,visibleSize:6}}function Mm(e,t,n,r){const i=`${n.startIndex}:${n.endIndex}`,o=t[i];if(o)n.startIndex=o.startIndex,n.endIndex=o.endIndex;else{for(let t=0,i=e.length;t<i;t++){const i=e[t],{startIndex:o,endIndex:a}=n,s=i[r],l=i[r+"span"],c=s+l;s<o&&o<c&&(n.startIndex=s),s<a&&a<c&&(n.endIndex=c),n.startIndex===o&&n.endIndex===a||(t=-1)}t[i]=n}}function Fm(e){const t={},n={},r={};if(e&&e.length)for(let i=0;i<e.length;i++){const{row:n,col:r,rowspan:o,colspan:a}=e[i];for(let e=0;e<o;e++){const i=n+e;for(let n=0;n<a;n++){const s=r+n;t[`${i}:${s}`]=e||n?{rowspan:0,colspan:0}:{rowspan:o,colspan:a}}}}return{mergeMaps:t,mergeRowMaps:n,mergeColMaps:r}}function Rm(e,t){const n=e,{fullAllDataRowIdData:r,fullColumnIdData:i,visibleColumn:o,afterFullData:a,mergeBodyList:s,mergeBodyMaps:l}=n;if(t){const{handleGetRowId:n}=ip(e);pc.isArray(t)||(t=[t]),t.forEach(e=>{let{row:t,col:c,rowspan:u,colspan:d}=e,h=-1,p=-1;if(pc.isNumber(t))h=t;else{const e=t?n(t):null,i=e?r[e]:null;i&&(h=i._index)}if(pc.isNumber(c))p=c;else{const e=c?c.id:null,t=e?i[e]:null;t&&(p=t._index)}if(h>-1&&p>-1&&(u||d)&&(u=pc.toNumber(u)||1,d=pc.toNumber(d)||1,u>1||d>1)){const e=a[h],t=o[p];let n=l[`${h}:${p}`];n?(n.rowspan=u,n.colspan=d,n._rowspan=u,n._colspan=d):(n={row:h,col:p,rowspan:u,colspan:d,_row:e,_col:t,_rowspan:u,_colspan:d},l[`${h}:${p}`]=n,s.push(n))}})}}function Im(e,t){const n=e,{mergeBodyList:r,fullColumnIdData:i,fullAllDataRowIdData:o,mergeBodyMaps:a}=n,s=[];if(t){const{handleGetRowId:n}=ip(e);pc.isArray(t)||(t=[t]),t.forEach(e=>{const{row:t,col:l}=e;let c=-1,u=-1;if(pc.isNumber(t))c=t;else{const e=t?n(t):null,r=e?o[e]:null;r&&(c=r._index)}if(pc.isNumber(l))u=l;else{const e=l?l.id:null,t=e?i[e]:null;t&&(u=t._index)}const d=pc.findIndexOf(r,e=>e.row===c&&e.col===u);if(d>-1){const e=r.splice(d,1),t=e[0];t&&(s.push(e[0]),a[`${c}:${u}`]&&delete a[`${c}:${u}`])}})}return s}function Am(e,t){const n=e,r=e,i=e,{showCustomHeader:o}=n,{footerTableData:a}=r,{mergeHeaderList:s,mergeHeaderMaps:l,fullColumnIdData:c}=i;if(t){const{visibleColumn:e}=i;pc.isArray(t)||(t=[t]),t.forEach(t=>{let{row:n,col:r,rowspan:i,colspan:u}=t;const d=pc.isNumber(n)?n:-1;let h=-1;if(pc.isNumber(r))h=r;else{const e=r?r.id:null,t=e?c[e]:null;t&&(h=t._index)}if(d>-1&&h>-1&&(i||u)){if(i=pc.toNumber(i)||1,u=pc.toNumber(u)||1,!o&&i>1)return void Of("vxe.error.notSupportProp",["[table] show-custom-header=false",`rowspan=${i}`,"rowspan=1"]);if(i>1||u>1){const t=a[d],n=e[h];let r=l[`${d}:${h}`];r?(r.rowspan=i,r.colspan=u,r._rowspan=i,r._colspan=u):(r={row:d,col:h,rowspan:i,colspan:u,_row:t,_col:n,_rowspan:i,_colspan:u},l[`${d}:${h}`]=r,s.push(r))}}})}}function Pm(e,t){const n=e,{mergeHeaderList:r,fullColumnIdData:i,mergeHeaderMaps:o}=n,a=[];return t&&(pc.isArray(t)||(t=[t]),t.forEach(e=>{const{row:t,col:n}=e,s=pc.isNumber(t)?t:-1;let l=-1;if(pc.isNumber(n))l=n;else{const e=n?n.id:null,t=e?i[e]:null;t&&(l=t._index)}const c=pc.findIndexOf(r,e=>e.row===s&&e.col===l);if(c>-1){const e=r.splice(c,1),t=e[0];t&&(a.push(t),o[`${s}:${l}`]&&delete o[`${s}:${l}`])}})),a}function Lm(e,t){const n=e,r=e,{footerTableData:i}=n,{mergeFooterList:o,mergeFooterMaps:a,fullColumnIdData:s}=r;if(t){const{visibleColumn:e}=r;pc.isArray(t)||(t=[t]),t.forEach(t=>{let{row:n,col:r,rowspan:l,colspan:c}=t;const u=pc.isNumber(n)?n:-1;let d=-1;if(pc.isNumber(r))d=r;else{const e=r?r.id:null,t=e?s[e]:null;t&&(d=t._index)}if(u>-1&&d>-1&&(l||c)&&(l=pc.toNumber(l)||1,c=pc.toNumber(c)||1,l>1||c>1)){const t=i[u],n=e[d];let r=a[`${u}:${d}`];r?(r.rowspan=l,r.colspan=c,r._rowspan=l,r._colspan=c):(r={row:u,col:d,rowspan:l,colspan:c,_row:t,_col:n,_rowspan:l,_colspan:c},a[`${u}:${d}`]=r,o.push(r))}})}}function Nm(e,t){const n=e,{mergeFooterList:r,fullColumnIdData:i,mergeFooterMaps:o}=n,a=[];return t&&(pc.isArray(t)||(t=[t]),t.forEach(e=>{const{row:t,col:n}=e,s=pc.isNumber(t)?t:-1;let l=-1;if(pc.isNumber(n))l=n;else{const e=n?n.id:null,t=e?i[e]:null;t&&(l=t._index)}const c=pc.findIndexOf(r,e=>e.row===s&&e.col===l);if(c>-1){const e=r.splice(c,1),t=e[0];t&&(a.push(t),o[`${s}:${l}`]&&delete o[`${s}:${l}`])}})),a}function jm(e,t,n,r){const i=e,{tableFullColumn:o}=i,a=e.computeSortOpts,{multiple:s,remote:l,orders:c}=a;if(pc.isArray(n)||(n=[n]),n&&n.length){const i={};s||(n=[n[0]],o.forEach(e=>{e.order&&(i[e.id]=e)}));const a={};let u=null;return n.forEach((t,n)=>{let{field:r,order:i}=t,o=r;pc.isString(r)&&(o=e.getColumnByField(r)),u||(u=o),o&&o.sortable&&(c&&-1===c.indexOf(i)&&(i=Hf(e,o)),o.order!==i&&(o.order=i),o.sortTime=Date.now()+n,a[o.id]=o)}),s||pc.each(i,(e,t)=>{a[t]||(e.order=null)}),r&&(l||e.handleTableData(!0)),t&&e.handleColumnSortEvent(t,u),e.$nextTick().then(()=>(Xg(e),e.updateCellAreas(),dm(e)))}return e.$nextTick()}function Bm(e){const t=e,{tableFullColumn:n}=t;n.forEach(e=>{e.order=null})}function Vm(e,t){const n=e,r=e,{editConfig:i,editRules:o}=n,{parentHeight:a,tableColumn:s}=r;let l=n[t];if("minHeight"===t){const e=Tf().table.minHeight;pc.eqNull(l)&&(gd(e)?s.length?o&&ld(i)&&(l=144):l=40:l=e)}let c=0;if(l)if("100%"===l||"auto"===l)c=a;else{const t=e.getExcludeHeight();c=rh(l)?Math.floor((pc.toInteger(l)||1)/100*a):pc.toNumber(l),c=Math.max(40,c-t)}return c}function zm(e){const t=e,n=e,r=e,{elemStore:i}=r,o=Ep(i["main-body-wrapper"]);if(!o)return;const a=e.$refs.refScrollYHandleElem;if(!a)return;const s=e.$refs.refScrollXHandleElem;if(!s)return;const l=e.computeColumnOpts;let c=0;const u=40,d=o.clientWidth;let h=d,p=h/100;const{fit:f}=t,{columnStore:m}=n,{resizeList:g,pxMinList:v,autoMinList:b,pxList:y,scaleList:x,scaleMinList:w,autoList:C,remainList:_}=m,S=e=>{const t=e.maxWidth||l.maxWidth;return t&&"auto"!==t?rh(t)?Math.floor(pc.toInteger(t)*p):pc.toInteger(t):0};v.forEach(e=>{let t=pc.toInteger(e.minWidth);const n=S(e);n&&(t=Math.min(t,n)),c+=t,e.renderWidth=t}),b.forEach(e=>{let t=Math.max(60,pc.toInteger(e.renderAutoWidth));const n=S(e);n&&(t=Math.min(t,n)),c+=t,e.renderWidth=t}),w.forEach(e=>{let t=Math.floor(pc.toInteger(e.minWidth)*p);const n=S(e);n&&(t=Math.min(t,n)),c+=t,e.renderWidth=t}),x.forEach(e=>{let t=Math.floor(pc.toInteger(e.width)*p);const n=S(e);n&&(t=Math.min(t,n)),c+=t,e.renderWidth=t}),y.forEach(e=>{let t=pc.toInteger(e.width);const n=S(e);n&&(t=Math.min(t,n)),c+=t,e.renderWidth=t}),C.forEach(e=>{let t=Math.max(60,pc.toInteger(e.renderAutoWidth));const n=S(e);n&&(t=Math.min(t,n)),c+=t,e.renderWidth=t}),g.forEach(e=>{const t=pc.toInteger(e.resizeWidth);c+=t,e.renderWidth=t});const k=w.concat(v).concat(b).filter(e=>!S(e));if(h-=c,p=h>0?Math.floor(h/(k.length+_.length)):0,f?h>0&&k.forEach(e=>{c+=p,e.renderWidth+=p}):p=u,_.forEach(e=>{const t=Math.max(p,u);e.renderWidth=t,c+=t}),f){const e=x.concat(w).concat(v).concat(b).concat(_).filter(e=>!S(e));let t=e.length-1;if(t>0){let n=d-c;if(n>0){while(n>0&&t>=0)n--,e[t--].renderWidth++;c=d}}}n.scrollXWidth=c,n.resizeWidthFlag++,Kg(e),Wg(e)}const Hm=(e,t,n,r)=>{const i=e,{fullCellHeightMaps:o}=i;let a=o[t];a||(a={},o[t]=a);const s=r.querySelectorAll(`.vxe-cell--wrapper[rowid="${n.rowid}"]`);let l=null,c=0,u=!1;for(let h=0;h<s.length;h++){const e=s[h],t=e.parentElement,n=t.style,r=n.height,i=e.getAttribute("colid")||"";n.height="",l||(l=getComputedStyle(t),c=l?Math.ceil(pc.toNumber(l.paddingTop)+pc.toNumber(l.paddingBottom)):0);const o=e?e.clientHeight:0,d=Math.ceil(o+c);a[i]!==d&&(u=!0,a[i]=d),n.height=r}const d=Gh(a,u);return d},Wm=e=>{const t=e,n=e,r=e,{treeConfig:i}=t,{tableData:o,isAllOverflow:a,scrollYLoad:s,scrollXLoad:l}=n,{fullAllDataRowIdData:c}=r,u=e.$refs.refElem;if(!u||!u.clientWidth)return;const d=e.computeTreeOpts,h=e.computeDefaultRowHeight;if(!a&&(s||l||i&&d.showLine)){const{handleGetRowId:t}=ip(e);u.setAttribute("data-calc-row","Y"),o.forEach(n=>{const r=t(n),i=c[r];if(i){const t=Hm(e,r,i,u);i.height=Math.max(h,t)}u.removeAttribute("data-calc-row")}),n.calcCellHeightFlag++}};function qm(e,t){const n=e,{isRowGroupStatus:r}=n,{sortBy:i,sortType:o,aggFunc:a}=t;return r&&a?n=>{if(n.isAggregate){const e=n.aggData,r=e?e[t.field]:null;return r?r.value:null}let r;return r=i?pc.isFunction(i)?i({row:n,column:t}):pc.get(n,i):e.getCellLabel(n,t),o&&"auto"!==o?"number"===o?pc.toNumber(r):"string"===o?pc.toValueString(r):r:gd(r)||isNaN(r)?r:pc.toNumber(r)}:n=>{let r;return r=i?pc.isFunction(i)?i({row:n,column:t}):pc.get(n,i):e.getCellLabel(n,t),o&&"auto"!==o?"number"===o?pc.toNumber(r):"string"===o?pc.toValueString(r):r:gd(r)||isNaN(r)?r:pc.toNumber(r)}}function Gm(e,t){const n=e,r=e.$refs.refTooltip;clearTimeout(n.tooltipTimeout),t?e.closeTooltip():r&&r.setActived&&r.setActived(!0)}function Ym(e){const t=kf(e);Vf=null,t.row=null}function Um(e){const t=e,{dragRow:n,dragCol:r}=t;(n||r)&&(tg(e),Zm(e),ig(e),Ym(e),t.dragRow=null,t.dragCol=null)}function Km(e){og(e),Ym(e),mg(e,!1,!0,!0)}function Xm(e){ag(e),Ym(e),mg(e,!0,!0,!0)}function Zm(e){const t=e.$el;if(t){const e="row--drag-origin";pc.arrayEach(t.querySelectorAll(`.${e}`),t=>{t.draggable=!1,oh(t,e)})}}function Qm(e,t){const n=e.$el;if(n){const r="row--drag-origin",i=np(e,t);pc.arrayEach(n.querySelectorAll(`[rowid="${i}"]`),e=>{ah(e,r)})}}function Jm(e,t){const n=e,r=e,{dragConfig:i}=r,{dragRow:o}=n,a=e.computeRowDragOpts,{tooltipMethod:s}=a,l=s||(i?i.rowTooltipMethod:null);let c="";if(l){const t={$table:e,row:o};c=`${l(t)||""}`}else c=$f("vxe.table.dragTip",[t.textContent||""]);n.dragTipText=c}function eg(e,t){const n=e.$el;if(n){const e=[];pc.eachTree([t],t=>{e.push(`[colid="${t.id}"]`)});const r="col--drag-origin";pc.arrayEach(n.querySelectorAll(e.join(",")),e=>{ah(e,r)})}}function tg(e){const t=e.$el;if(t){const e="col--drag-origin";pc.arrayEach(t.querySelectorAll(`.${e}`),t=>{t.draggable=!1,oh(t,e)})}}function ng(e,t){const n=e,{dragCol:r}=n,i=e.computeColumnDragOpts,{tooltipMethod:o}=i;let a="";if(o){const t={$table:e,column:r};a=`${o(t)||""}`}else a=$f("vxe.table.dragTip",[t.textContent||""]);n.dragTipText=a}function rg(e,t,n,r,i,o){const a=e.$xeGantt,s=e,l=e;let c=e.$refs.refElem;if(a&&n){const e=a.$refs.refGanttContainerElem;e&&(c=e)}if(!c)return;const{overflowX:u,scrollbarWidth:d,overflowY:h,scrollbarHeight:p}=s,{prevDragToChild:f}=l,m=c.getBoundingClientRect(),g=h?d:0,v=u?p:0,b=c.clientWidth,y=c.clientHeight;if(n){const t=e.$refs.refDragRowLineElem;if(t)if(i){const r=e.computeScrollbarYToLeft,i=n.getBoundingClientRect();let a=n.clientHeight;const s=Math.max(1,i.y-m.y);s+a>y-v&&(a=y-s-v),t.style.display="block",t.style.left=`${r?g:0}px`,t.style.top=`${s}px`,t.style.height=`${a}px`,t.style.width=b-g+"px",t.setAttribute("drag-pos",o),t.setAttribute("drag-to-child",f?"y":"n")}else t.style.display=""}else if(r){const t=e.$refs.refDragColLineElem;if(t)if(i){const n=e.computeScrollbarXToTop,i=e.$refs.refLeftContainer,a=i?i.clientWidth:0,s=e.$refs.refRightContainer,l=s?s.clientWidth:0,c=r.getBoundingClientRect();let u=r.clientWidth;const d=Math.max(0,c.y-m.y),h=a;let p=c.x-m.x;p<h&&(u-=h-p,p=h);const x=b-l-(l?0:g);p+u>x&&(u=x-p),t.style.display="block",t.style.top=`${d}px`,t.style.left=`${p}px`,t.style.width=`${u}px`,t.style.height=f?`${c.height}px`:y-d-(n?0:v)+"px",t.setAttribute("drag-pos",o),t.setAttribute("drag-to-child",f?"y":"n")}else t.style.display=""}const x=e.$refs.refDragTipElem;x&&(x.style.display="block",x.style.top=`${Math.min(c.clientHeight-c.scrollTop-x.clientHeight,t.clientY-m.y)}px`,x.style.left=`${Math.min(c.clientWidth-c.scrollLeft-x.clientWidth-16,t.clientX-m.x)}px`,x.setAttribute("drag-status",i?f?"sub":"normal":"disabled"))}function ig(e){const t=e.$refs.refDragTipElem,n=e.$refs.refDragRowLineElem,r=e.$refs.refDragColLineElem;t&&(t.style.display=""),n&&(n.style.display=""),r&&(r.style.display="")}function og(e){const t=e.$xeGantt,n=e,r=e;let i=e.$refs.refElem;const o=[".vxe-body--row"];if(t){const e=t.$refs.refGanttContainerElem;e&&(i=e),o.push(".vxe-gantt-view--body-row",".vxe-gantt-view--chart-row")}ig(e),Zm(e),wf(i,o),r.prevDragToChild=!1,n.dragRow=null,n.dragCol=null}function ag(e){const t=e,n=e,r=e.$refs.refElem;ig(e),tg(e),_f(r,[".vxe-table--column"]),n.prevDragToChild=!1,t.dragRow=null,t.dragCol=null}function sg(e,t,n,r,i,o,a,s){const l=e,c=o||i;if(!c)return e.$nextTick();s.cell=i;const{tooltipStore:u}=l,{column:d,row:h}=s,{showAll:p,contentMethod:f}=n,m=pc.toString("html"===d.type?c.innerText:c.textContent).trim(),g=c.scrollWidth>c.clientWidth;let v=!1,b=null,y="";if(f&&(b=f(s)),p?pc.eqNull(b)?(v=!0,y=m):""!==b&&!1!==b&&(v=!0,y=""+b):pc.eqNull(b)?(v=g,y=m):""!==b&&!1!==b?(v=!0,y=b):y=m,v&&y){const t=md(y);Object.assign(u,{row:h,column:d,visible:!0,content:t,type:r,currOpts:n}),e.$nextTick(()=>{const n=e.$refs.refTooltip;n&&n.open&&n.open(g?c:a,t)})}return e.$nextTick()}function lg(e,t,n,r){const i=e,{fullColumnIdData:o}=i,a=pp(e,t);return a&&o[a.id]?Rp(e,!r||!1!==r.colAlign,a,n):e.$nextTick()}function cg(e,t,n){const r=e,{rowExpandedReserveRowMap:i}=r,o=e.computeExpandOpts;if(o.reserve){const r=np(e,t);n?i[r]=t:i[r]&&delete i[r]}}function ug(e){const t=e,{mergeCells:n}=t;n&&e.setMergeCells(n)}function dg(e){const t=e,{mergeHeaderCells:n}=t;n&&e.setMergeHeaderCells(n)}function hg(e){const t=e,{mergeFooterCells:n,mergeFooterItems:r}=t,i=n||r;i&&e.setMergeFooterCells(i)}function pg(e){const t=e,n=e;return e.$nextTick().then(()=>{const{scrollXLoad:r,scrollYLoad:i}=t,{scrollXStore:o,scrollYStore:a}=n,s=e.computeVirtualYOpts,l=e.computeVirtualXOpts;if(r){const{toVisibleIndex:t,visibleSize:n}=Uf(e),r=Math.max(0,l.oSize?pc.toNumber(l.oSize):0);o.preloadSize=pc.toNumber(l.preSize),o.offsetSize=r,o.visibleSize=n,o.endIndex=Math.max(o.startIndex+o.visibleSize+r,o.endIndex),o.visibleStartIndex=Math.max(o.startIndex,t),o.visibleEndIndex=Math.min(o.endIndex,t+n),e.updateScrollXData().then(()=>{Dg(e)})}else e.updateScrollXSpace();const c=$m(e);a.rowHeight=c,t.rowHeight=c;const{toVisibleIndex:u,visibleSize:d}=Dm(e);if(i){const t=Math.max(0,s.oSize?pc.toNumber(s.oSize):0);a.preloadSize=pc.toNumber(s.preSize),a.offsetSize=t,a.visibleSize=d,a.endIndex=Math.max(a.startIndex+d+t,a.endIndex),a.visibleStartIndex=Math.max(a.startIndex,u),a.visibleEndIndex=Math.min(a.endIndex,u+d),e.updateScrollYData().then(()=>{Ag(e)})}else e.updateScrollYSpace()})}function fg(e){const t=e,n=e,{scrollXWidth:r,scrollYHeight:i}=t,{elemStore:o}=n,a=e.computeScrollbarOpts,s=e.$refs.refElem;if(!s||!s.clientWidth)return;const l=Ep(o["main-body-wrapper"]),c=Ep(o["main-header-table"]),u=Ep(o["main-footer-table"]),d=e.$refs.refScrollXHandleElem,h=e.$refs.refScrollYHandleElem;let p=!1,f=!1;if(l){p=i>l.clientHeight,h&&(t.scrollbarWidth=a.width||h.offsetWidth-h.clientWidth||14),t.overflowY=p,f=r>l.clientWidth,d&&(t.scrollbarHeight=a.height||d.offsetHeight-d.clientHeight||14),t.overflowX=f;const o=c?c.clientHeight:0,s=u?u.clientHeight:0;n.tableHeight=l.offsetHeight,n.tHeaderHeight=o,n.tFooterHeight=s,t.overflowX=f,t.parentHeight=Math.max(o+s+20,e.getParentHeight())}f&&e.checkScrolling()}function mg(e,t,n,r){const i=e,o=e.$refs.refElem;if(!o||!o.clientWidth)return e.$nextTick();const a=e.$refs.refVarElem;if(a){const[t,n,r,i]=a.children;Tm(e,"default",t),Tm(e,"medium",n),Tm(e,"small",r),Tm(e,"mini",i)}return n&&Gg(e),t&&zm(e),fg(e),dm(e),Zg(e),t&&Qg(e),i.rceRunTime=Date.now(),pg(e).then(()=>{if(n&&Gg(e),t&&zm(e),r&&Wm(e),dm(e),fg(e),t&&Xg(e),Zg(e),t&&Qg(e),i.rceRunTime=Date.now(),t)return pg(e)})}const gg=50;function vg(e,t,n,r,i){const o=e,a=e,s=(i?i.minRunDelay:gg)||gg;return new Promise(i=>{const{customStore:l,tableData:c,tableColumn:u}=o,{rceTimeout:d,rceRunTime:h}=a,p=a.xeGanttView,f=e.computeResizeOpts;let m=a.rceDelay;m=h&&h>Date.now()-500?Math.min(Math.max(60,Math.min(800,c.length/8)),m+50):0,a.rceDelay=m;const g=f.refreshDelay||30,v=m+g,b=e.$refs.refElem;b&&b.clientWidth&&(zm(e),Zg(e)),l.visible&&e.handleCustomStyle&&e.handleCustomStyle();const y=c.length*u.length;y<400?m=20:y<600?m=40:y<800&&(m=80),d?(clearTimeout(d),h&&h+s<Date.now()?i(mg(e,t,n,r)):e.$nextTick(()=>{i()})):i(mg(e,t,n,r)),p&&p.handleLazyRecalculate&&p.handleLazyRecalculate(),a.rceTimeout=setTimeout(()=>{a.rceDelay=0,a.rceTimeout=void 0,mg(e,t,n,r),p&&p.handleLazyRecalculate&&p.handleLazyRecalculate()},v)})}function bg(e){const t=e;t.rsePending||(t.rsePending=!0,vg(e,!0,!0,!0,{minRunDelay:200}).then(()=>{t.rsePending=!1}).catch(()=>{t.rsePending=!1}))}function yg(e){const t=e,n=e,{visibleColumn:r}=n,i=[];r.forEach(e=>{e.aggFunc&&i.push(e)}),t.aggHandleAggColumns=i}function xg(e,t){const n=e,r=[],i=[];t&&(pc.isArray(t)?t:[t]).forEach(e=>{r.push(e),i.push({field:e})}),n.rowGroupList=i,n.aggHandleFields=r,yg(e)}function wg(e,t){const n=e,{fullColumnFieldData:r}=n,i=e.computeAggregateOpts,o=e.computeAggFuncColumns,{mapChildrenField:a}=i,s=i.calcValuesMethod||i.countMethod||i.aggregateMethod;a&&(pc.lastEach(t,e=>{let t=0;pc.each(e[a],e=>{e.isAggregate?t+=e.childCount||0:t++}),e.childCount=t}),e.handlePivotTableAggData?e.handlePivotTableAggData(t):pc.lastEach(t,t=>{const n={},i=t.aggData,l=t.groupField,c=t.groupContent,u=a&&t[a]||[],d=t.childCount,h=r[l]||{};o.forEach(r=>{const{field:o}=r,a=i?i[o]:null,p={$table:e,groupField:l,groupColumn:h?h.column:null,column:r,groupValue:c,childList:u,childCount:d,aggValue:a?a.value:0,children:u,totalValue:d};let f=0;u.length&&u[0].isAggregate?pc.each(u,e=>{if(e.isAggregate){const t=e.aggData[o];t&&(f+=t.value)}}):f=s?s(p):t.childCount,n[o]={type:"count",value:f,label:f}}),t.aggData=n}))}function Cg(e){const t=e,n=e,r=e,{aggregateConfig:i,rowGroupConfig:o}=t,{isRowGroupStatus:a}=n,{tableFullGroupData:s}=r,l=e.computeAggregateOpts,{mapChildrenField:c}=l;if((i||o)&&a){const t=[];pc.eachTree(s,e=>{e.isAggregate&&t.push(e)},{children:c}),wg(e,t)}}function _g(e,t,n,r){let i=t,o=t;if(n){const a=e.computeAggregateOpts,{rowField:s,parentField:l,separator:c,childrenField:u,mapChildrenField:d}=a,h=e.computeRowOpts,p=e.computeCheckboxOpts,{checkField:f}=p,m=p.indeterminateField||p.halfField,g=n[0];if(g&&s&&l&&u&&d){i=[],o=[];const a=g.field,p=e.getColumnByField(a),v={},b={},y=[],x=tp(e);t.forEach(t=>{const i=p?e.getCellLabel(t,p):pc.get(t,a);let o=pc.eqNull(i)?"":i;if(r){const r=[o];n.slice(1).forEach(n=>{const i=n.field,a=e.getColumnByField(i),s=a?e.getCellLabel(t,a):pc.get(t,i),l=pc.eqNull(s)?"":s;o+=(c||" / ")+l,r.push(l)}),b[o]||(b[o]=r)}let s=v[o];s||(s=[],v[o]=s),t.isAggregate&&(t.isAggregate=void 0),s.push(t)}),r?pc.objectEach(v,(e,t)=>{const n={isAggregate:!0,aggData:{},groupContent:t,groupCombineds:b[t],groupField:a,childCount:0,[s]:Qh(),[l]:null,[u]:e,[d]:e};n[x]=Jh(h,n,x),f&&(n[f]=!1),m&&(n[m]=!1),y.push(n),o.push(n),i.push(n)}):pc.objectEach(v,(t,r)=>{const{fullData:c,treeData:p}=_g(e,t,n.slice(1)),g={isAggregate:!0,aggData:{},groupContent:r,groupCombineds:[],groupField:a,childCount:0,[s]:Qh(),[l]:null,[u]:p,[d]:p};g[x]=Jh(h,g,x),f&&(g[f]=!1),m&&(g[m]=!1),y.push(g),o.push(g),i.push(g),c.length&&i.push(...c)}),wg(e,y)}}return{treeData:o,fullData:i}}function Sg(e,t,n){const r=e.computeAggregateOpts,{mode:i}=r,o="combined"===i,a=_g(e,t,n,o);return a}function kg(e,t,n,r){const i=e,o=e,a=e,{keepSource:s,treeConfig:l,aggregateConfig:c,rowGroupConfig:u}=i,{rowGroupList:d,scrollYLoad:h}=o,{initStatus:p,scrollYStore:f,scrollXStore:m,lastScrollLeft:g,lastScrollTop:v}=a,b=e.computeRowOpts,y=e.computeTreeOpts,x=e.computeExpandOpts,{transform:w}=y,C=y.children||y.childrenField;let _=[],S=t?t.slice(0):[];if(S.length>Pf&&Of("vxe.error.errMaxRow",[Pf]),l&&d.length)return Of("vxe.error.noTree",["aggregate-config"]),e.$nextTick();if(b.drag&&d.length)return Of("vxe.error.errConflicts",["row-config.drag","aggregate-config"]),e.$nextTick();let k=!1;if(l)w?(y.rowField||Of("vxe.error.reqProp",["tree-config.rowField"]),y.parentField||Of("vxe.error.reqProp",["tree-config.parentField"]),C||Of("vxe.error.reqProp",["tree-config.childrenField"]),y.mapChildrenField||Of("vxe.error.reqProp",["tree-config.mapChildrenField"]),C===y.mapChildrenField&&Of("vxe.error.errConflicts",["tree-config.childrenField","tree-config.mapChildrenField"]),_=pc.toArrayTree(S,{key:y.rowField,parentKey:y.parentField,children:C,mapChildren:y.mapChildrenField}),S=_.slice(0)):_=S.slice(0);else if((c||u)&&d.length){const t=Sg(e,S,d);_=t.treeData,S=t.fullData,k=!0}o.isRowGroupStatus=k,f.startIndex=0,f.endIndex=1,m.startIndex=0,m.endIndex=1,a.cvCacheMaps={},o.isRowLoading=!0,o.scrollVMLoading=!1,o.treeExpandedFlag++,o.rowExpandedFlag++,a.insertRowMaps={},o.insertRowFlag++,a.removeRowMaps={},o.removeRowFlag++,a.fullCellHeightMaps={},a.fullCellStoreMaps={};const E=em(e,S);return a.tableFullData=S,a.tableFullTreeData=k?[]:_,a.tableFullGroupData=k?_:[],e.cacheRowMap(r),a.tableSynchData=t,r&&(a.isResizeCellHeight=!1),s&&e.cacheSourceMap(S),e.clearCellAreas&&i.mouseConfig&&(e.clearCellAreas(),e.clearCopyCellArea()),e.clearMergeCells(),e.clearMergeFooterItems(),e.clearHistory(),e.handleTableData(!0),e.updateFooter(),e.handleUpdateBodyMerge(),e.$nextTick().then(()=>{Wg(e),dm(e)}).then(()=>{pg(e),Jf(e)}).then(()=>{const t=e.computeVirtualYOpts;return E&&(f.endIndex=f.visibleSize),E&&(o.expandColumn&&"fixed"!==x.mode&&Of("vxe.error.notConflictProp",['column.type="expand','expand-config.mode="fixed"']),"scroll"===t.mode&&o.expandColumn&&"fixed"===x.mode&&Ef("vxe.error.notConflictProp",["virtual-y-config.mode=scroll","expand-config.mode=inside"]),i.height||i.maxHeight||Of("vxe.error.reqSupportProp",["virtual-y-config.enabled = true","height | max-height"])),_m(e),e.checkSelectionStatus(),e.dispatchEvent("data-change",{visibleColumn:a.visibleColumn,visibleData:a.afterFullData},null),new Promise(t=>{e.$nextTick().then(()=>mg(e,!1,!1,!1)).then(()=>{mg(e,!1,!0,!0),Xg(e)}).then(()=>{let n=g,r=v;const a=e.computeVirtualXOpts,s=e.computeVirtualYOpts;a.scrollToLeftOnChange&&(n=0),s.scrollToTopOnChange&&(r=0),o.isRowLoading=!1,mg(e,!1,!1,!1),Qg(e),Jf(e),i.showOverflow||setTimeout(()=>{vg(e,!1,!0,!0),setTimeout(()=>vg(e,!1,!0,!0),3e3)},2e3),h===E?Xh(e,n,r).then(()=>{mg(e,!1,!0,!0),Xg(e),Qg(e),e.$nextTick(()=>t())}):setTimeout(()=>{Xh(e,n,r).then(()=>{mg(e,!1,!0,!0),Xg(e),Qg(e),e.$nextTick(()=>t())})})})}).then(()=>{p?e.dispatchEvent("data-rendered",{isReload:n,visibleColumn:a.visibleColumn,visibleData:a.afterFullData},null):e.dispatchEvent("init-rendered",{visibleColumn:a.visibleColumn,visibleData:a.afterFullData},null)})})}function Eg(e){mm(e),gm(e),vm(e),Sm(e),om(e),ug(e),dg(e),hg(e),e.$nextTick(()=>{const t=e;e.dispatchEvent("init-rendered",{visibleColumn:t.visibleColumn,visibleData:t.afterFullData},null),setTimeout(()=>e.recalculate())})}function Og(e){fm(e)}function Tg(e){const t=e,n=e,{scrollXLoad:r}=t,{visibleColumn:i,scrollXStore:o,fullColumnIdData:a}=n,s=r?i.slice(o.startIndex,o.endIndex):i.slice(0);s.forEach((e,t)=>{const n=e.id,r=a[n];r&&(r.$index=t)}),t.tableColumn=s}function $g(e){const t=e,n=e,r=pc.orderBy(n.collectColumn,"renderSortNumber");n.collectColumn=r;const i=Dp(r);n.tableFullColumn=i,t.updateColFlag++,Zf(e)}function Dg(e){const t=e,n=e,{isScrollXBig:r}=t,{mergeBodyList:i,mergeFooterList:o,mergeBodyColMaps:a,scrollXStore:s}=n,{preloadSize:l,startIndex:c,endIndex:u,offsetSize:d}=s,{toVisibleIndex:h,visibleSize:p}=Uf(e),f={startIndex:Math.max(0,r?h-1:h-1-d-l),endIndex:r?h+p:h+p+d+l};s.visibleStartIndex=h-1,s.visibleEndIndex=h+p+1,Mm(i.concat(o),a,f,"col");const{startIndex:m,endIndex:g}=f;(h<=c||h>=u-p-1)&&(c===m&&u===g||(s.startIndex=m,s.endIndex=g,e.updateScrollXData())),e.closeTooltip()}function Mg(e,t){const n=e,r=e,i=e,o=[],a=[],s=[],{isGroup:l,columnStore:c}=r,{collectColumn:u,tableFullColumn:d,scrollXStore:h,fullColumnIdData:p}=i;if(l){const e=[],t=[],n=[];pc.eachTree(u,(e,t,n,r,i)=>{const l=pd(e);i&&i.fixed&&(e.fixed=i.fixed),i&&(e.fixed||"")!==(i.fixed||"")&&Of("vxe.error.groupFixed"),l?e.visible=!!pc.findTree(e.children,e=>!pd(e)&&e.visible):e.visible&&("left"===e.fixed?o.push(e):"right"===e.fixed?s.push(e):a.push(e))}),u.forEach(r=>{r.visible&&("left"===r.fixed?e.push(r):"right"===r.fixed?n.push(r):t.push(r))}),r.tableGroupColumn=e.concat(t).concat(n)}else d.forEach(e=>{e.visible&&("left"===e.fixed?o.push(e):"right"===e.fixed?s.push(e):a.push(e))});const f=o.concat(a).concat(s);i.visibleColumn=f,Kg(e);const m=Qf(e);if(r.hasFixedColumn=o.length>0||s.length>0,Object.assign(c,{leftList:o,centerList:a,rightList:s}),m&&(n.spanMethod&&Ef("vxe.error.scrollErrProp",["span-method"]),n.footerSpanMethod&&Ef("vxe.error.scrollErrProp",["footer-span-method"]),t)){const{visibleSize:t}=Uf(e);h.startIndex=0,h.endIndex=t,h.visibleSize=t,h.visibleStartIndex=0,h.visibleEndIndex=t}return f.length===i.visibleColumn.length&&i.visibleColumn.every((e,t)=>e===f[t])||(e.clearMergeCells(),e.clearMergeFooterItems()),f.forEach((e,t)=>{const n=e.id,r=p[n];r&&(r._index=t)}),Tg(e),yg(e),t?e.updateFooter().then(()=>e.recalculate()).then(()=>(e.updateCellAreas(),e.recalculate())):e.updateFooter()}function Fg(e){const t=e,{collectColumn:n}=t,r={},i={};let o=1;pc.eachTree(n,(e,t,n,a,s)=>{const{id:l,field:c}=e,u=s?s.id:null,d={$index:-1,_index:-1,column:e,colid:l,index:t,items:n,parent:s||null,width:0,oLeft:0};e.parentId=u,e.defaultParentId=u,e.sortNumber=o,e.renderSortNumber=o,o++,c&&(i[c]&&Of("vxe.error.colRepet",["field",c]),i[c]=d),r[l]=d}),t.fullColumnIdData=r,t.fullColumnFieldData=i}function Rg(e){const t=e,n=e.$refs.$xeToolbar,r=e,i=e,{scrollXLoad:o,scrollYLoad:a,expandColumn:s}=r,l=e.computeExpandOpts;return Zf(e),Mg(e,!0).then(()=>{r.scrollXLoad&&Dg(e)}),e.clearHeaderFormatterCache(),e.clearMergeCells(),e.clearMergeFooterItems(),e.handleTableData(!0),e.handleAggregateSummaryData(),(o||a)&&s&&"fixed"!==l.mode&&Ef("vxe.error.scrollErrProp",["column.type=expand"]),e.$nextTick().then(()=>{n&&n.syncUpdate({collectColumn:i.collectColumn,$table:e}),e.handleUpdateCustomColumn&&e.handleUpdateCustomColumn();const o=e.computeColumnOpts;return t.showCustomHeader&&r.isGroup&&(o.resizable||t.resizable)&&Ef("vxe.error.notConflictProp",["show-custom-header & colgroup","column-config.resizable=false"]),r.isColLoading=!1,vg(e,!1,!0,!0)})}function Ig(e,t){const n=e,r=e;r.collectColumn=t;const i=Dp(t);return r.tableFullColumn=i,n.updateColFlag++,n.isColLoading=!0,Fg(e),Promise.resolve(Xf(e)).then(()=>Rg(e))}function Ag(e){const t=e,n=e,{isAllOverflow:r,isScrollYBig:i}=t,{mergeBodyList:o,mergeBodyRowMaps:a,scrollYStore:s}=n,{preloadSize:l,startIndex:c,endIndex:u,offsetSize:d}=s,h=r?d:d+1,{toVisibleIndex:p,visibleSize:f}=Dm(e),m={startIndex:Math.max(0,i?p-1:p-1-d-l),endIndex:i?p+f:p+f+h+l};s.visibleStartIndex=p-1,s.visibleEndIndex=p+f+1,Mm(o,a,m,"row");const{startIndex:g,endIndex:v}=m;(p<=c||p>=u-f-1)&&(c===g&&u===v||(s.startIndex=g,s.endIndex=v,e.updateScrollYData()))}const Pg=e=>function(t){const n=this,r=n,{fullAllDataRowIdData:i}=r;if(t){const r=np(n,t),o=i[r];if(o)return o[e]}return-1},Lg=e=>function(t){const n=this,r=n,{fullColumnIdData:i}=r;if(t){const n=i[t.id];if(n)return n[e]}return-1};function Ng(e){const t=e,{lxTimeout:n,lxRunTime:r,scrollXStore:i}=t,{visibleSize:o}=i,a=o>26?26:o>16?14:6;n&&clearTimeout(n),(!r||r+a<Date.now())&&(t.lxRunTime=Date.now(),Dg(e)),t.lxTimeout=setTimeout(()=>{t.lxTimeout=void 0,t.lxRunTime=void 0,Dg(e)},a)}function jg(e){const t=e,{lyTimeout:n,lyRunTime:r,scrollYStore:i}=t,{visibleSize:o}=i,a=o>30?32:o>20?18:8;n&&clearTimeout(n),(!r||r+a<Date.now())&&(t.lyRunTime=Date.now(),Ag(e)),t.lyTimeout=setTimeout(()=>{t.lyTimeout=void 0,t.lyRunTime=void 0,Ag(e)},a)}function Bg(e,t,n){const r=e,i=e,{scrollXLoad:o,scrollYLoad:a,isAllOverflow:s}=r,l=e.computeAutoWidthColumnList;i.lcsRunTime=Date.now(),i.lcsTimeout=void 0,i.intoRunScroll=!1,i.inVirtualScroll=!1,i.inWheelScroll=!1,i.inHeaderScroll=!1,i.inBodyScroll=!1,i.inFooterScroll=!1,r.lazScrollLoading=!1,i.scrollRenderType="";let c=null,u=null;return s||(Wm(e),Xg(e)),t&&o&&(c=e.updateScrollXData()),n&&a&&(l.length&&Gg(e),u=e.updateScrollYData().then(()=>(l.length&&(Gg(e),zm(e)),s||(Wm(e),Xg(e)),e.updateScrollYSpace()))),Zg(e),Promise.all([c,u,o||a?e.updateCellAreas():null])}function Vg(e,t,n){const r=e,i=e,{lcsTimeout:o}=i;r.lazScrollLoading=!0,o&&clearTimeout(o),i.lcsTimeout=setTimeout(()=>{Bg(e,t,n).then(()=>{(r.scrollXLoad||r.scrollYLoad)&&e.$nextTick(()=>{Zg(e),i.lcsTimeout||Bg(e,t,n)})})},240)}const zg=e=>{let t=1;const n=Date.now();return e+25>n?t=1.18:e+30>n?t=1.15:e+40>n?t=1.12:e+55>n?t=1.09:e+75>n?t=1.06:e+100>n&&(t=1.03),t},Hg=(e,t)=>{const n=e,r=n.xeGanttView;if(r){const e=r.internalData,{elemStore:n}=e,i=Ep(n["main-body-scroll"]);i&&(i.scrollTop=t)}};function Wg(e){const t=e,n=e;n.customHeight=Vm(e,"height"),n.customMinHeight=Vm(e,"minHeight"),n.customMaxHeight=Vm(e,"maxHeight"),t.scrollYLoad&&!(n.customHeight||n.customMinHeight||n.customMaxHeight)&&(n.customHeight=300)}function qg(e,t,n){const r=e,{scrollYLoad:i}=r,o=e.computeColumnOpts,{autoOptions:a}=o,{isCalcHeader:s,isCalcBody:l,isCalcFooter:c}=a||{},u=[];s&&u.push(`.vxe-header-cell--wrapper[colid="${t.id}"]`),l&&u.push(`.vxe-body-cell--wrapper[colid="${t.id}"]`),c&&u.push(`.vxe-footer-cell--wrapper[colid="${t.id}"]`);const d=u.length?n.querySelectorAll(u.join(",")):[];let h=0;const p=d[0];if(p&&p.parentElement){const e=getComputedStyle(p.parentElement);h=Math.ceil(pc.toNumber(e.paddingLeft)+pc.toNumber(e.paddingRight))}let f=(i?t.renderAutoWidth:0)-h;for(let m=0;m<d.length;m++){const e=d[m];f=Math.max(f,e?Math.ceil(e.scrollWidth)+4:0)}return f+h}function Gg(e){const t=e,n=e.computeAutoWidthColumnList,{fullColumnIdData:r}=t,i=e.$refs.refElem;i&&n.length&&(i.setAttribute("data-calc-col","Y"),n.forEach(t=>{const n=t.id,o=r[n],a=qg(e,t,i);o&&(o.width=Math.max(a,o.width)),t.renderAutoWidth=a}),e.analyColumnWidth(),i.removeAttribute("data-calc-col"))}function Yg(e,t,n){e.analyColumnWidth(),e.recalculate().then(()=>{e.saveCustomStore("update:width"),e.refreshScroll().then(()=>{e.updateCellAreas()}),e.dispatchEvent("column-resizable-change",n,t),e.dispatchEvent("resizable-change",n,t),setTimeout(()=>e.recalculate(!0),300)})}function Ug(e,t,n){const r=e;r.resizeHeightFlag++,e.recalculate().then(()=>{e.refreshScroll().then(()=>{e.updateCellAreas()}),e.dispatchEvent("row-resizable-change",n,t),setTimeout(()=>e.recalculate(!0),300)})}function Kg(e){const t=e,{visibleColumn:n,fullColumnIdData:r}=t,i=e.$refs.refElem;if(!i||!i.clientWidth)return;let o=0;for(let a=0,s=n.length;a<s;a++){const e=n[a],t=e.id,i=r[t];i&&(i.oLeft=o),o+=e.renderWidth}}function Xg(e){const t=e,n=e,{expandColumn:r}=t,{afterFullData:i,fullAllDataRowIdData:o,rowExpandedMaps:a}=n,s=e.$refs.refElem;if(!s||!s.clientWidth)return;const l=e.computeExpandOpts,c=e.computeRowOpts,u=e.computeCellOpts,d=e.computeDefaultRowHeight,{handleGetRowId:h}=ip(e);let p=0;for(let f=0,m=i.length;f<m;f++){const e=i[f],t=h(e),n=o[t]||{};n.oTop=p,p+=mp(n,u,c,d),r&&a[t]&&(p+=n.expandHeight||l.height||0)}}function Zg(e){const t=e,n=e,{expandColumn:r,scrollYLoad:i,scrollYTop:o,isScrollYBig:a}=t,s=e.$refs.refElem;if(!s||!s.clientWidth)return;const l=e.computeExpandOpts,{mode:c}=l;if(r&&"fixed"===c){const{elemStore:r,fullAllDataRowIdData:s}=n,l=e.computeRowOpts,c=e.computeCellOpts,u=e.computeDefaultRowHeight,d=e.$refs.refRowExpandElem,h=Ep(r["main-body-scroll"]);if(d&&h){let n=!1;pc.arrayEach(d.children,e=>{const t=e,r=t.getAttribute("rowid")||"",d=s[r];if(d){const e=t.offsetHeight,s=h.querySelector(`.vxe-body--row[rowid="${r}"]`);let p=0;i?p=a&&s?s.offsetTop+s.offsetHeight:d.oTop+mp(d,c,l,u):s&&(p=s.offsetTop+s.offsetHeight),a&&(p+=o),t.style.top=lh(p),n||d.expandHeight!==e&&(n=!0),d.expandHeight=e}}),n&&(t.rowExpandHeightFlag++,e.$nextTick(()=>{Xg(e)}))}}}function Qg(e){const t=e,n=e,r=e,{treeConfig:i}=t;if(!i)return;const{tableData:o}=n,{fullAllDataRowIdData:a,treeExpandedMaps:s}=r,l=e.$refs.refElem;if(!l||!l.clientWidth)return;const c=e.computeCellOpts,u=e.computeRowOpts,d=e.computeDefaultRowHeight,h=e.computeTreeOpts,{transform:p,mapChildrenField:f}=h,m=h.children||h.childrenField,{handleGetRowId:g}=ip(e),v=[],b=(e,t,n)=>{const r=g(e),i=a[r]||{},o=e[p?f:m],l=n[t-1]||null,h=n[t+1]||null;if(o&&o.length&&s[r])v.push({row:e,prevRow:l,nextRow:h}),o.forEach((e,t)=>{const n=g(e);s[n]&&b(e,t,o)});else if(h){const e=g(h),t=a[e]||{},n=mp(i,c,u,d),r=mp(t,c,u,d);i.oHeight=n,i.lineHeight=Math.floor(n/2+r/2)}else i.oHeight=0,i.lineHeight=0};o.forEach((e,t)=>{b(e,t,o)}),pc.lastArrayEach(v,({row:e,nextRow:t})=>{const n=g(e),r=e[p?f:m],i=a[n];if(i){const e=mp(i,c,u,d);let n=e,o=0;if(r.forEach(e=>{const t=g(e),r=a[t]||{},i=e[p?f:m];if(s[t]&&i&&i.length)n+=r.oHeight||0,o+=r.oHeight||0;else{const e=mp(r,c,u,d);r.oHeight=e,r.lineHeight=e,n+=e,o+=e}}),t){const e=g(t),r=a[e]||{},s=mp(i,c,u,d),l=mp(r,c,u,d);n+=s,o+=Math.floor(s/2+l/2)}i.lineHeight=o,i.oHeight=n}})}function Jg(e){const t=e,{elemStore:n}=t,r=e.$refs.refRowExpandElem,i=Ep(n["main-body-scroll"]);r&&i&&(r.scrollTop=i.scrollTop)}function ev(e){return function(t){const n=this;let r=!1;const i=pc.isArray(t)?t:[t];return i.forEach(t=>{const i=pp(n,t);i&&(i.children&&i.children.length?pc.eachTree([i],t=>{t.visible=e,t.renderVisible=e}):(i.visible=e,i.renderVisible=e),r||(r=!0))}),r?n.handleCustom():n.$nextTick()}}function tv(e,t){const n=e,{customStore:r}=n,i=e.computeCustomOpts,{popupOptions:o}=i,{transfer:a}=o||{};if(a&&r.visible){const n=e.$refs.refTableCustom;n&&e.handleCustomStyle&&!gh(t.target,[n.$el],t.currentTarget)&&e.handleCustomStyle().then(()=>{e.handleCustomStyle()})}}function nv(e){const t=e,{stackHistoryStore:n}=t,{undoStacks:r}=n,i=e.computeUndoRedoHistoryOpts,{stackSize:o}=i;r.length>pc.toNumber(o)&&r.shift()}function rv(e){const t=e,n=e,{editStore:r}=t,{afterFullData:i,elemStore:o,insertRowMaps:a,removeRowMaps:s}=n,{selected:l,actived:c}=r,{row:u,column:d}=l,{row:h,column:p}=c,f=Ep(o["main-body-scroll"]),m={selectActiveInfo:u&&d?{rowid:np(e,u),colid:d.id}:void 0,editActiveInfo:h&&p?{rowid:np(e,h),colid:p.id}:void 0,scrollInfo:{top:f?f.scrollTop:0,left:f?f.scrollLeft:0},insertData:pc.clone(pc.values(a),!0),removeData:pc.clone(pc.values(s),!0),visibleData:pc.clone(i,!0),visibleTreeData:[],visibleColumn:[]};return e.getCellAreaPushStackObj?e.getCellAreaPushStackObj(m):m}function iv(e,t){const n=e,r=e,i=e,{treeConfig:o}=n,{editStore:a}=r,{fullAllDataRowIdData:s,fullColumnIdData:l}=i;if(!t)return;const c=e.computeTreeOpts,{transform:u}=c,{visibleData:d,editActiveInfo:h,selectActiveInfo:p,scrollInfo:f,insertData:m,removeData:g}=t,v={};m.forEach(t=>{const n=np(e,t),r=s[n];let i=t;r&&(i=r.row,Object.assign(i,t)),v[n]=i});const b={};g.forEach(t=>{const n=np(e,t),r=s[n];let i=t;r&&(i=r.row,Object.assign(i,t)),b[n]=i});const y=d.map(t=>{const n=np(e,t),r=s[n];let i=t;return r&&(i=r.row,Object.assign(i,t)),i});if(i.insertRowMaps=v,i.removeRowMaps=b,i.afterFullData=y,e.cacheRowMap(!1),e.handleTableData(o&&u),e.updateFooter(),e.handleUpdateBodyMerge(),o&&u||e.updateAfterDataIndex(),e.checkSelectionStatus(),r.scrollYLoad&&e.updateScrollYSpace(),e.handleCellAreaSnapshotStackData)e.handleCellAreaSnapshotStackData(t);else{const{selected:t}=a,n=e.computeMouseOpts;let r="",i="";if(h?(r=h.rowid,i=h.colid):p&&(r=p.rowid,i=p.colid),r&&i&&n.selected){const n=s[r]?s[r].row:null,o=l[i]?l[i].column:null;if(n&&o){const r={row:n,column:o};t.row=n,t.column=o,t.args=r,e.$nextTick(()=>{e.addCellSelectedClass(),e.scrollTo(f)})}}}}const ov={callSlot(e,t,n,r){const i=this,o=i.$xeGrid,a=i.$xeGantt,s=o||a;if(e){if(s)return s.callSlot(e,t,n);if(pc.isFunction(e))return Bp(e.call(this,t,n,r))}return[]},getEl(){const e=this;return e.$refs.refElem},getParentElem(){const e=this,t=e.$xeGrid,n=e.$xeGantt,r=t||n,{$el:i}=this;return r?r.$el.parentNode:i.parentNode},getParentHeight(){const e=this,t=e.$xeGrid,n=e.$xeGantt,r=e,{height:i}=r,o=e.$refs.refElem;if(o){const e=o.parentNode,r="100%"===i||"auto"===i?hh(e):0;let a=0;return e&&(a=n&&ih(e,"vxe-gantt--table-wrapper")?n.getParentHeight():t&&ih(e,"vxe-grid--table-wrapper")?t.getParentHeight():e.clientHeight),Math.floor(a-r)}return 0},getExcludeHeight(){const e=this,t=e.$xeGrid,n=e.$xeGantt,r=t||n;return r?r.getExcludeHeight():0},clearAll(){const e=this;return Tp(e)},handleUpdateRowGroup(e){const t=this;xg(t,e)},syncData(){const e=this,t=e,n=e;return Of("vxe.error.delFunc",["syncData","getData"]),e.$nextTick().then(()=>(t.tableData=[],e.$nextTick().then(()=>kg(e,n.tableFullData,!0,!0))))},updateData(){const e=this,t=e,{scrollXLoad:n,scrollYLoad:r}=t;return e.handleTableData(!0).then(()=>{if(e.updateFooter(),n||r)return n&&e.updateScrollXSpace(),r&&e.updateScrollYSpace(),e.refreshScroll()}).then(()=>(e.updateCellAreas(),vg(e,!0,!0,!0))).then(()=>{setTimeout(()=>vg(e,!1,!0,!0),50)})},handleTableData(e){const t=this,n=t,r=t,{scrollYLoad:i}=n,{scrollYStore:o,fullDataRowIdData:a}=r,s=r.xeGanttView;let l=r.afterFullData;e&&(um(t),l=cm(t),r.mergeHeaderRowMaps={},r.mergeHeaderColMaps={},r.mergeBodyRowMaps={},r.mergeBodyColMaps={},r.mergeFooterRowMaps={},r.mergeFooterColMaps={});const c=i?l.slice(o.startIndex,o.endIndex):l.slice(0),u={};return c.forEach((e,n)=>{const r=np(t,e),i=a[r];i&&(i.$index=n),u[r]=e}),n.tableData=c,r.visibleDataRowIdData=u,s&&s.updateViewData&&s.updateViewData(e),t.$nextTick()},initData(){const e=this,t=e,n=e,r=e,{data:i}=t;kg(e,i||[],!0,!0).then(()=>{i&&i.length&&(r.inited=!0,r.initStatus=!0,Eg(e)),Og(e),dm(e),n.isAllOverflow||(Wm(e),Xg(e))}),e.$nextTick().then(()=>{e.dispatchEvent("ready",{},null)})},loadTableData(e,t,n){const r=this;return kg(r,e,t,n)},loadData(e){const t=this,n=t,{initStatus:r}=n;return kg(t,e,!1,!1).then(()=>(n.inited=!0,n.initStatus=!0,r&&Eg(t),vg(t,!1,!0,!0)))},reloadData(e){const t=this,n=t;return t.clearAll().then(()=>(n.inited=!0,n.initStatus=!0,kg(t,e,!0,!0))).then(()=>(Eg(t),vg(t,!1,!0,!0)))},setRow(e,t){const n=this;if(t){let n=e;pc.isArray(e)||(n=[e]),n.forEach(e=>Object.assign(e,t))}return n.$nextTick()},reloadRow(e,t,n){const r=this,i=r,o=r,a=r,{keepSource:s}=i,{tableData:l}=o,{sourceDataRowIdData:c}=a;if(s){if(r.isAggregateRecord(e))return r.$nextTick();const i=tp(r),a=pc.get(e,i),s=c[a];if(s&&e)if(n){const r=pc.clone(pc.get(t||e,n),!0);pc.set(e,n,r),pc.set(s,n,r)}else{const n=pc.clone(Object.assign({},t),!0);pc.set(n,i,a),pc.destructuring(s,Object.assign(e,n))}o.tableData=l.slice(0)}else Of("vxe.error.reqProp",["keep-source"]);return r.$nextTick()},loadColumn(e){const t=this,n=t,{lastScrollLeft:r,lastScrollTop:i}=n,o=pc.mapTree(e,e=>sf.createColumn(t,e),{children:"children"});return Ig(t,o).then(()=>{let e=r,n=i;const o=t.computeVirtualXOpts,a=t.computeVirtualYOpts;o.scrollToLeftOnChange&&(e=0),a.scrollToTopOnChange&&(n=0),Xh(t,e,n)})},reloadColumn(e){const t=this;return t.clearAll().then(()=>t.loadColumn(e))},handleInitColumn(e){const t=this;return Ig(t,e)},cacheRowMap(e){const t=this,n=t,r=t,i=t,{treeConfig:o}=n,{isRowGroupStatus:a}=r,{currKeyField:s,fullAllDataRowIdData:l,tableFullData:c,tableFullTreeData:u,tableFullGroupData:d,treeExpandedMaps:h,rowExpandedMaps:p,selectCheckboxMaps:f}=i,m=e?{}:Object.assign({},l),g={},v={},{handleUpdateRowId:b}=rp(t);let y=0;const x=(e,t,n,r,i,o,a,l)=>{let c=m[o];v[o]&&Of("vxe.error.repeatKey",[s,o]),c||(c={row:e,rowid:o,_seq:-1,seq:l,index:-1,_index:-1,$index:-1,treeIndex:t,_tIndex:-1,items:n,parent:i,level:a,height:0,resizeHeight:0,oTop:0,expandHeight:0}),c.treeLoaded=!1,c.expandLoaded=!1,c._seq=y++,c.row=e,c.items=n,c.parent=i,c.level=a,c.index=r,c.treeIndex=t,f[o]&&(f[o]=e),p[o]&&(p[o]=e),v[o]=!0,g[o]=c,m[o]=c};if(o){const e=t.computeTreeOpts,{lazy:n}=e,r=e.children||e.childrenField,i=e.hasChild||e.hasChildField;pc.eachTree(u,(e,t,o,a,s,l)=>{const c=b(e);n&&(e[i]&&void 0===e[r]&&(e[r]=null),h[c]&&(e[r]&&e[r].length||delete h[c])),x(e,t,o,s?-1:t,s,c,l.length-1,Zh(a))},{children:r})}else if(a){const e=t.computeAggregateOpts,{mapChildrenField:n}=e;pc.eachTree(d,(e,t,n,r,i,o)=>{const a=b(e);x(e,t,n,i?-1:t,i,a,o.length-1,Zh(r))},{children:n})}else c.forEach((e,t,n)=>{x(e,t,n,t,null,b(e),0,t+1)});i.fullDataRowIdData=g,i.fullAllDataRowIdData=m,r.treeExpandedFlag++},cacheSourceMap(e){const t=this,n=t,r=t,{treeConfig:i}=n,o=t.computeTreeOpts,a=pc.clone(e,!0),{handleUpdateRowId:s}=rp(t),l={},c=e=>{const t=s(e);l[t]=e};if(i){const e=o.children||o.childrenField;pc.eachTree(a,c,{children:o.transform?o.mapChildrenField:e})}else a.forEach(c);r.sourceDataRowIdData=l,r.tableSourceData=a},getParams(){const e=this,t=e;return t.params},loadTreeChildren(e,t){const n=this,r=n,i=n,{keepSource:o}=r,{tableSourceData:a,fullDataRowIdData:s,fullAllDataRowIdData:l,sourceDataRowIdData:c}=i,u=n.computeTreeOpts,{transform:d,mapChildrenField:h}=u,p=u.children||u.childrenField,f=l[np(n,e)],m=f?f.level:0;return n.createData(t).then(t=>{if(o){const r=np(n,e),i=pc.findTree(a,e=>r===np(n,e),{children:p});i&&(i.item[p]=pc.clone(t,!0)),t.forEach(e=>{const t=np(n,e);c[t]=pc.clone(e,!0)})}return pc.eachTree(t,(e,t,r,i,o,a)=>{const c=np(n,e),u=o||f.row,d={row:e,rowid:c,_seq:-1,seq:-1,index:t,_index:-1,$index:-1,treeIndex:-1,_tIndex:-1,items:r,parent:u,level:m+a.length,height:0,resizeHeight:0,oTop:0,expandHeight:0};s[c]=d,l[c]=d},{children:p}),e[p]=t,d&&(e[h]=pc.clone(t,!1)),lm(n),t})},getRowNode(e){const t=this,n=t;if(e){const{fullAllDataRowIdData:t}=n,r=e.getAttribute("rowid");if(r){const e=t[r];if(e)return{rowid:e.rowid,item:e.row,index:e.index,items:e.items,parent:e.parent}}}return null},getColumnNode(e){const t=this,n=t;if(e){const{fullColumnIdData:t}=n,r=e.getAttribute("colid");if(r){const e=t[r];if(e)return{colid:e.colid,item:e.column,index:e.index,items:e.items,parent:e.parent}}}return null},getRowSeq:Pg("seq"),getRowIndex:Pg("index"),getVTRowIndex:Pg("_index"),getVMRowIndex:Pg("$index"),_getRowIndex(e){const t=this;return Ef("vxe.error.delFunc",["_getRowIndex","getVTRowIndex"]),t.getVTRowIndex(e)},$getRowIndex(e){const t=this;return Ef("vxe.error.delFunc",["$getRowIndex","getVMRowIndex"]),t.getVMRowIndex(e)},getColumnIndex:Lg("index"),getVTColumnIndex:Lg("_index"),getVMColumnIndex:Lg("$index"),_getColumnIndex(e){const t=this;return Ef("vxe.error.delFunc",["_getColumnIndex","getVTColumnIndex"]),t.getVTColumnIndex(e)},$getColumnIndex(e){const t=this;return Ef("vxe.error.delFunc",["$getColumnIndex","getVMColumnIndex"]),t.getVMColumnIndex(e)},isSeqColumn(e){return e&&"seq"===e.type},defineField(e){const t=this,n=t,r=t,{treeConfig:i}=n,o=t.computeExpandOpts,a=t.computeTreeOpts,s=t.computeRadioOpts,l=t.computeRowOpts,c=t.computeCheckboxOpts,u=a.children||a.childrenField,d=tp(t);return pc.isArray(e)||(e=[e||{}]),e.map(e=>{r.tableFullColumn.forEach(t=>{const{field:n,editRender:r}=t;if(n&&!pc.has(e,n)){let i=null;if(r){const{defaultValue:e}=r;pc.isFunction(e)?i=e({column:t}):pc.isUndefined(e)||(i=e)}pc.set(e,n,i)}});const t=[s.labelField,c.checkField,c.labelField,o.labelField];return t.forEach(t=>{t&&gd(pc.get(e,t))&&pc.set(e,t,null)}),i&&a.lazy&&pc.isUndefined(e[u])&&(e[u]=null),gd(pc.get(e,d))&&pc.set(e,d,Jh(l,e,d)),e})},createData(e){const t=this;return t.$nextTick().then(()=>t.defineField(e))},createRow(e){const t=this,n=pc.isArray(e);return n||(e=[e]),t.createData(e).then(e=>n?e:e[0])},revertData(e,t){const n=this,r=n,i=n,o=n,{keepSource:a,treeConfig:s}=r,{fullAllDataRowIdData:l,fullDataRowIdData:c,tableSourceData:u,sourceDataRowIdData:d,tableFullData:h,afterFullData:p,removeRowMaps:f}=o,m=n.computeTreeOpts,{transform:g}=m,{handleGetRowId:v}=ip(n);if(!a)return Of("vxe.error.reqProp",["keep-source"]),n.$nextTick();let b=e;e?pc.isArray(e)||(b=[e]):b=pc.toArray(n.getUpdateRecords());let y=!1;return b.length&&b.forEach(e=>{const r=v(e),i=l[r];if(i){const e=i.row;if(!n.isInsertByRow(e)){const i=d[r];i&&e&&(t?pc.set(e,t,pc.clone(pc.get(i,t),!0)):pc.destructuring(e,pc.clone(i,!0)),!c[r]&&n.isRemoveByRow(e)&&(f[r]&&delete f[r],h.unshift(e),p.unshift(e),y=!0))}}}),e?(y&&(i.removeRowFlag++,n.updateFooter(),n.cacheRowMap(!1),n.handleTableData(s&&g),s&&g||n.updateAfterDataIndex(),n.checkSelectionStatus(),i.scrollYLoad&&n.updateScrollYSpace()),n.$nextTick().then(()=>(n.updateCellAreas(),vg(n,!1,!0,!0)))):n.reloadData(u)},clearData(e,t){const n=this,r=n,{tableFullData:i,visibleColumn:o}=r;return arguments.length?e&&!pc.isArray(e)&&(e=[e]):e=i,t?e.forEach(e=>pc.set(e,t,null)):e.forEach(e=>{o.forEach(t=>{t.field&&kp(e,t,null)})}),n.$nextTick()},effectCellData(e,t,n){const r=this,i=r,{fullCellStoreMaps:o}=i,a=r.computeEditOpts,{key:s,isChanged:l,setValue:c,getResult:u}=n,d=np(r,e),h=t.id;let p=o[d];const f=pc.get(e,t.field),m={$table:r,row:e,rowid:d,column:t,colid:h,cellValue:f,oldValue:null};if(!1===a.cache&&"render_table_cell"===s){const e=m;return e.cellResult=u?u(m):f,e}p||(p={},o[d]=p);let g=p[h];g||(g={value:void 0,result:{}},p[h]=g);const v=p[h],b=v.value;m.oldValue=b,(l?l(m):b===f)||(v.value=c?c(m):f,v.result={});const y=v.result;pc.isUndefined(y[s])&&(y[s]=u?u(m):f);const x=y[s],w=m;return w.cellResult=x,w},getCellElement(e,t){const n=this,r=n,{elemStore:i}=r,o=pp(n,t);if(!o)return null;const a=np(n,e),s=Ep(i["main-body-scroll"]),l=Ep(i["left-body-scroll"]),c=Ep(i["right-body-scroll"]);let u;return o&&(o.fixed&&("left"===o.fixed?l&&(u=l):c&&(u=c)),u||(u=s),u)?u.querySelector(`.vxe-body--row[rowid="${a}"] .${o.id}`):null},getCellLabel(e,t){const n=this,r=n,i=n,o=pp(n,t);if(!o)return null;const{editConfig:a}=r,{formatter:s,editRender:l,cellRender:c}=o,u=n.computeRendererOpts;let d=null,h=null,p=null,f=null;l&&(d=l.options?l.options.length:0,h=l.optionGroups?l.optionGroups.length:0),c&&(p=c.options?c.options.length:0,f=c.optionGroups?c.optionGroups.length:0);const m=a&&ld(a),g=s?null:m&&ld(l)?l:null,v=s?null:ld(c)?c:null,b=v&&v.name?u[v.name]||Df.get(v.name):null,y=g&&g.name?u[g.name]||Df.get(g.name):null,x=b?b.tableCellFormatter:null,w=y?y.tableCellFormatter:null,C=Sp(e,o);let _=C;if(s||x||w){let t;const{fullAllDataRowIdData:r}=i,a=np(n,e),l=o.id,c=r[a];if(c&&(t=c.formatData,t||(t=r[a].formatData={}),c&&t[l])){const e=t[l].value;if(e&&e[0]===C&&e[1]===d&&e[2]===h&&e[3]===p&&e[4]===f)return t[l].label}const u={$table:n,cellValue:C,row:e,rowIndex:n.getRowIndex(e),column:o,columnIndex:n.getColumnIndex(o)};if(s)if(pc.isString(s)){const e=Mf.get(s),t=e?e.tableCellFormatMethod||e.cellFormatMethod:null;_=t?t(u):""}else if(pc.isArray(s)){const e=Mf.get(s[0]),t=e?e.tableCellFormatMethod||e.cellFormatMethod:null;_=t?t(u,...s.slice(1)):""}else _=s(u);else v&&x?_=x(v,u):g&&w&&(_=w(g,u));if(t){const e=[C,d,h,p,f];t[l]={value:e,label:_}}}return _},updateCellLabel(e,t){const n=this,r=n,i=pp(n,t);if(!i)return null;const{fullAllDataRowIdData:o}=r,a=np(n,e);if(a){const t=i.id,r=np(n,e),a=o[r];if(a){const e=a.formatData;e&&delete e[t]}}return n.getFooterCellLabel(e,i)},clearFormatterCache(e){const t=this,n=t,r=t,{tableData:i,tableColumn:o}=n,{fullAllDataRowIdData:a}=r;return pc.each(a,e=>{e.formatData&&(e.formatData=void 0)}),e&&i.forEach(e=>{o.forEach(n=>{t.getCellLabel(e,n)})}),t.$nextTick()},getHeaderCellLabel(e){const t=this,n=t,r=pp(t,e);if(!r)return null;const{headerFormatter:i}=r,o=t.getVTColumnIndex(r);let a=r.getTitle();if(i){let e;const{headerFullDataColData:s}=n,l=r.id;let c=s[l];c||(c=s[l]={});const u=c.formatObj;if(u&&u.value===a)return u.label;const d={$table:t,cellTitle:a,cellValue:a,column:r,_columnIndex:o,columnIndex:t.getColumnIndex(r)};if(pc.isString(i)){const e=Mf.get(i),t=e?e.tableHeaderCellFormatMethod:null;a=pc.toValueString(t?t(d):"")}else if(pc.isArray(i)){const e=Mf.get(i[0]),t=e?e.tableHeaderCellFormatMethod:null;a=pc.toValueString(t?t(d,...i.slice(1)):"")}else a=pc.toValueString(i(d));e&&(c.formatObj={value:a,label:a})}return a},updateHeaderCellLabel(e){const t=this,n=t,r=pp(t,e);if(!r)return"";const{headerFullDataColData:i}=n,o=r.id,a=i[o];return a&&(a.formatObj=void 0),t.getHeaderCellLabel(r)},clearHeaderFormatterCache(e){const t=this,n=t,r=t,{tableColumn:i}=n,{headerFullDataColData:o}=r;return pc.each(o,e=>{e.formatObj&&(e.formatObj=void 0)}),e&&i.forEach(e=>{t.getHeaderCellLabel(e)}),t.$nextTick()},getFooterCellLabel(e,t){const n=this,r=n,i=n,o=pp(n,t);if(!o)return null;const{footerFormatter:a}=o,s=n.getVTColumnIndex(o);let l="";l=pc.isArray(e)?e[s]:pc.get(e,o.field);let c=l;if(a){let t;const{footerTableData:u}=r,{footerFullDataRowData:d}=i,h=o.id,p=u.indexOf(e);let f=null;if(p>-1&&(f=d[p],f||(f=d[p]={}),t=f.formatData,t||(t=d[p].formatData={}),f&&t[h]&&t[h].value===l))return t[h].label;const m={$table:n,cellValue:l,itemValue:l,row:e,items:e,$rowIndex:p,column:o,_columnIndex:s,columnIndex:n.getColumnIndex(o)};if(pc.isString(a)){const e=Mf.get(a),t=e?e.tableFooterCellFormatMethod:null;c=t?t(m):""}else if(pc.isArray(a)){const e=Mf.get(a[0]),t=e?e.tableFooterCellFormatMethod:null;c=t?t(m,...a.slice(1)):""}else c=a(m);t&&(t[h]={value:l,label:c})}return c},updateFooterCellLabel(e,t){const n=this,r=n,i=n,o=pp(n,t);if(!o)return null;const{footerTableData:a}=r,{footerFullDataRowData:s}=i,l=o.id,c=a.indexOf(e),u=s[c];if(u){const e=u.formatData;e&&delete e[l]}return n.getFooterCellLabel(e,o)},clearFooterFormatterCache(e){const t=this,n=t,r=t,{tableData:i,tableColumn:o}=n,{footerFullDataRowData:a}=r;return pc.each(a,e=>{e.formatData&&(e.formatData=void 0)}),e&&i.forEach(e=>{o.forEach(n=>{t.getFooterCellLabel(e,n)})}),t.$nextTick()},isInsertByRow(e){const t=this,n=t,r=t,i=np(t,e);return!!n.insertRowFlag&&!!r.insertRowMaps[i]},isRemoveByRow(e){const t=this,n=t,r=t,i=np(t,e);return!!n.removeRowFlag&&!!r.removeRowMaps[i]},removeInsertRow(){const e=this,t=e,{insertRowMaps:n}=t;return e.remove(pc.values(n))},isUpdateByRow(e,t){const n=this,r=n,i=n,{keepSource:o,editConfig:a}=r,{fullDataRowIdData:s,sourceDataRowIdData:l}=i,c=n.computeKeepFields;if(o&&a){const r=pc.isString(e)||pc.isNumber(e)?e:np(n,e),i=s[r];if(!i)return!1;const o=i.row,a=l[r];if(!a)return!1;if(arguments.length>1)return!zf(o,a,t).result;for(let e=0;e<c.length;e++)if(!zf(o,a,c[e]).result)return!0}return!1},getUpdateCells(){const e=this,t=e,n=e,{keepSource:r,treeConfig:i}=t,{tableFullData:o,tableFullTreeData:a,fullDataRowIdData:s,sourceDataRowIdData:l,fullColumnFieldData:c}=n,u=e.computeTreeOpts,d=e.computeKeepFields,h=[];if(r){const{handleGetRowId:t}=ip(e),n=e=>{const n=t(e),r=s[n];if(!r)return;const i=r.row,o=l[n];if(o)for(let t=0;t<d.length;t++){const e=d[t],{result:r,newValue:a,oldValue:s}=zf(i,o,e);if(!r){const t=c[e]?c[e].column:null;h.push({row:i,rowid:n,column:t,field:e,newValue:a,oldValue:s})}}};i?pc.eachTree(a,n,u):o.forEach(n)}return h},getColumns(e){const t=this,n=t,{visibleColumn:r}=n;return pc.isUndefined(e)?r.slice(0):r[e]},getColid(e){const t=this,n=pp(t,e);return n?n.id:null},getColumnById(e){const t=this,n=t,{fullColumnIdData:r}=n;return r[e]?r[e].column:null},getColumnByField(e){const t=this,n=t,{fullColumnFieldData:r}=n;return r[e]?r[e].column:null},getParentColumn(e){const t=this,n=t,{fullColumnIdData:r}=n,i=pp(t,e);return i&&i.parentId&&r[i.parentId]?r[i.parentId].column:null},getTableColumn(){const e=this,t=e,n=e;return{collectColumn:n.collectColumn.slice(0),fullColumn:n.tableFullColumn.slice(0),visibleColumn:n.visibleColumn.slice(0),tableColumn:t.tableColumn.slice(0)}},moveColumnTo(e,t,n){const r=this,i=r,{fullColumnIdData:o,visibleColumn:a}=i,{dragToChild:s,dragPos:l,isCrossDrag:c}=Object.assign({},n),u=pp(r,e);let d=null;const h=u?o[u.id]:null;let p="left";if(pc.isNumber(t)){if(h&&t){let e=h.items,n=h._index+t;c&&(e=a,n=h._index+t),n>0&&n<e.length-1&&(d=e[n]),t>0&&(p="right")}}else{d=pp(r,t);const e=d?o[d.id]:null;h&&e&&e._index>h._index&&(p="right")}return r.handleColDragSwapEvent(null,!0,u,d,l||p,!0===s)},moveRowTo(e,t,n){const r=this,i=r,o=r,{treeConfig:a}=i,{fullAllDataRowIdData:s,afterFullData:l}=o,{dragToChild:c,dragPos:u,isCrossDrag:d}=Object.assign({},n),h=r.computeTreeOpts,p=fp(r,e);let f=null,m="top";const g=p?s[np(r,p)]:null;if(pc.isNumber(t)){if(g&&t){let e=l,n=g._index+t;a&&(e=g.items,h.transform&&(n=g.treeIndex+t,d&&(e=l,n=g._index+t))),n>=0&&n<=e.length-1&&(f=e[n]),t>0&&(m="bottom")}}else{f=fp(r,t);const e=f?s[np(r,f)]:null;g&&e&&e._index>g._index&&(m="bottom")}const v=r.handleRowDragSwapEvent(null,!0,p,f,u||m,!0===c);return v},getFullColumns(){const e=this,t=e,{collectColumn:n}=t;return n.slice(0)},getData(e){const t=this,n=t,r=t,i=n.data||r.tableSynchData;return pc.isUndefined(e)?i.slice(0):i[e]},getCheckboxRecords(e){const t=this,n=t,r=t,i=t,{treeConfig:o}=n,{updateCheckboxFlag:a}=r,{tableFullData:s,afterFullData:l,tableFullTreeData:c,fullDataRowIdData:u,afterFullRowMaps:d,selectCheckboxMaps:h}=i,p=t.computeTreeOpts,f=t.computeCheckboxOpts,{transform:m,mapChildrenField:g}=p,{checkField:v}=f,b=p.children||p.childrenField;let y=[];if(a)if(v)if(o){const t=e?m?c:s:m?c:l;y=pc.filterTree(t,e=>pc.get(e,v),{children:m?g:b})}else{const t=e?s:l;y=t.filter(e=>pc.get(e,v))}else{const t=e||o&&!m?u:d;pc.each(h,(e,n)=>{t[n]&&y.push(u[n].row)})}return y},updateAfterDataIndex(){const e=this;lm(e)},getTreeRowChildren(e){const t=this,n=t,r=t,{treeConfig:i}=n,{fullAllDataRowIdData:o}=r,a=t.computeTreeOpts,{transform:s,mapChildrenField:l}=a,c=a.children||a.childrenField;if(e&&i){let n;if(n=pc.isString(e)?e:np(t,e),n){const e=o[n],t=e?e.row:null;if(t)return t[s?l:c]||[]}}return[]},getTreeRowLevel(e){const t=this,n=t,r=t,{treeConfig:i}=n,{fullAllDataRowIdData:o}=r;if(e&&i){let n;if(n=pc.isString(e)?e:np(t,e),n){const e=o[n];if(e)return e.level}}return-1},getTreeParentRow(e){const t=this,n=t,r=t,{treeConfig:i}=n,{fullAllDataRowIdData:o}=r;if(e&&i){let n;if(n=pc.isString(e)?e:np(t,e),n){const e=o[n];if(e)return e.parent}}return null},getParentRow(e){const t=this;return Ef("vxe.error.delFunc",["getParentRow","getTreeParentRow"]),t.getTreeParentRow(e)},getRowById(e){const t=this,n=t,{fullAllDataRowIdData:r}=n,i=pc.eqNull(e)?"":encodeURIComponent(e);return r[i]?r[i].row:null},getRowid(e){const t=this;return np(t,e)},getTableData(){const e=this,t=e,n=e,r=e,{tableData:i,footerTableData:o}=n,{tableFullData:a,afterFullData:s,tableFullTreeData:l}=r;return{fullData:t.treeConfig?l.slice(0):a.slice(0),visibleData:s.slice(0),tableData:i.slice(0),footerData:o.slice(0)}},getFullData(){const e=this,t=e,n=e,{treeConfig:r}=t,{tableFullData:i,tableFullTreeData:o}=n;return r?o.slice(0):i.slice(0)},handleLoadDefaults(){const e=this;Eg(e)},handleInitDefaults(){const e=this;Og(e)},setColumnFixed(e,t){const n=this;let r=!1;const i=pc.isArray(e)?e:[e],o=n.computeColumnOpts,a=n.computeIsMaxFixedColumn;for(let s=0;s<i.length;s++){const e=i[s],l=pp(n,e),c=bp(n,l);if(c&&c.fixed!==t){if(!c.fixed&&a)return ad.modal&&ad.modal.message({status:"error",content:$f("vxe.table.maxFixedCol",[o.maxFixedSize])}),n.$nextTick();pc.eachTree([c],e=>{e.fixed=t,e.renderFixed=t}),n.saveCustomStore("update:fixed"),r||(r=!0)}}return r?n.refreshColumn():n.$nextTick()},clearColumnFixed(e){const t=this;let n=!1;const r=pc.isArray(e)?e:[e];return r.forEach(e=>{const r=pp(t,e),i=bp(t,r);i&&i.fixed&&(pc.eachTree([i],e=>{e.fixed=null,e.renderFixed=null}),t.saveCustomStore("update:fixed"),n||(n=!0))}),n?t.refreshColumn():t.$nextTick()},hideColumn:ev(!1),showColumn:ev(!0),setColumnWidth(e,t){const n=this,r=n,{elemStore:i}=r;let o=!1;const a=pc.isArray(e)?e:[e];let s=pc.toInteger(t);if(rh(t)){const e=Ep(i["main-body-scroll"]),t=e?e.clientWidth-1:0;s=Math.floor(s*t)}return s&&(a.forEach(e=>{const t=pp(n,e);t&&(t.resizeWidth=s,o||(o=!0))}),o)?n.refreshColumn().then(()=>({status:o})):n.$nextTick().then(()=>({status:o}))},getColumnWidth(e){const t=pp(this,e);return t?t.renderWidth:0},resetColumn(e){const t=this;return Ef("vxe.error.delFunc",["resetColumn","resetCustom"]),t.resetCustom(e)},handleCustom(){const e=this,t=e,{mouseConfig:n}=t;return n&&(e.clearSelected&&e.clearSelected(),e.clearCellAreas&&(e.clearCellAreas(),e.clearCopyCellArea())),e.analyColumnWidth(),e.refreshColumn(!0)},restoreCustomStorage(){const e=this,t=e,{customConfig:n}=t,r=e.computeTableId,i=e.computeCustomOpts,{storage:o,restoreStore:a}=i,{isCustomAlign:s,isCustomHeaderAlign:l,isCustomFooterAlign:c,isCustomResizable:u,isCustomVisible:d,isCustomFixed:h,isCustomSort:p,isCustomAggGroup:f,isCustomAggFunc:m}=Ap(e);if(o&&(n?ld(i):i.enabled)&&(s||l||c||u||d||h||p||f||m)){if(!r)return void Of("vxe.error.reqProp",["id"]);const t=Wf(r);return a?Promise.resolve(a({$table:e,id:r,type:"restore",storeData:t})).then(t=>{if(t)return Kf(e,t)}).catch(e=>e):Kf(e,t)}},setCustomStoreData(e){const t=this,n=t,r=t;if(!e)return t.$nextTick();const i=t.computeCustomOpts,{checkMethod:o}=i;Tp(t);const a=[];pc.eachTree(r.collectColumn,e=>{e.resizeWidth=0,e.fixed=e.defaultFixed,e.renderSortNumber=e.sortNumber,e.parentId=e.defaultParentId,o&&!o({$table:t,column:e})||(e.visible=e.defaultVisible),e.align=e.defaultAlign,e.headerAlign=e.defaultHeaderAlign,e.footerAlign=e.defaultFooterAlign,e.aggFunc=e.defaultAggFunc,e.renderAggFn=e.defaultAggFunc,e.renderResizeWidth=e.renderWidth,a.push(e)});const s=pc.toArrayTree(pc.orderBy(a,"renderSortNumber"),{key:"id",parentKey:"parentId",children:"children"});return r.collectColumn=s,r.tableFullColumn=Dp(s),n.updateColFlag++,n.isColLoading=!0,Fg(t),Promise.resolve(Kf(t,e)).then(()=>Rg(t)).then(()=>{const{isRowGroupStatus:e,rowGroupList:r}=n;if(e&&t.handlePivotTableAggData){const e=t.computeRowGroupFields;(e?e.length:r.length)?e&&e.length?t.setRowGroups(e):t.clearRowGroups():t.handleUpdateAggData()}})},getCustomStoreData(){const e=this,t=e.$xeGrid,n=e.$xeGantt,r=t||n,i=e,o=e,a=e,{id:s}=i,l=e.computeCustomOpts,{isRowGroupStatus:c,rowGroupList:u}=o,{fullColumnFieldData:d,collectColumn:h}=a,{storage:p,checkMethod:f}=l,{isCustomAlign:m,isCustomHeaderAlign:g,isCustomFooterAlign:v,isCustomResizable:b,isCustomVisible:y,isCustomFixed:x,isCustomSort:w,isCustomAggGroup:C,isCustomAggFunc:_,isCustomPager:S}=Ap(e),k={},E={},O={},T={},$=[],D={},M={},F={},R={},I={pagerData:S&&r&&r.getCustomPagerData?r.getCustomPagerData():void 0,alignData:void 0,headerAlignData:void 0,footerAlignData:void 0,resizableData:void 0,sortData:void 0,visibleData:void 0,fixedData:void 0,aggGroupData:void 0,aggFuncData:void 0};if(!s)return p&&Of("vxe.error.reqProp",["id"]),I;let A=0,P=0,L=0,N=0,j=0,B=0,V=0,z=0;const H={};return pc.eachTree(h,(t,n,r,i,o)=>{const a=t.getKey();if(a){if(o){if(w){const e=o.getKey(),t=H[e];if(j=1,t){const e={k:a};H[a]=e,t.c||(t.c=[]),t.c.push(e)}}}else{if(w){j=1;const e={k:a};H[a]=e,$.push(e)}x&&(t.fixed||"")!==(t.defaultFixed||"")&&(B=1,M[a]=t.fixed)}m&&t.align&&(A=1,k[a]=t.align),g&&t.headerAlign&&(P=1,E[a]=t.headerAlign),v&&t.footerAlign&&(L=1,O[a]=t.footerAlign),b&&t.resizeWidth&&(N=1,T[a]=t.renderWidth),!y||f&&!f({$table:e,column:t})||(!t.visible&&t.defaultVisible?(V=1,D[a]=!1):t.visible&&!t.defaultVisible&&(V=1,D[a]=!0)),_&&(t.aggFunc||"")!==(t.defaultAggFunc||"")&&(z=1,R[a]=t.aggFunc)}else Of("vxe.error.reqProp",[`${t.getTitle()||t.type||""} -> column.field=?`])}),A&&(I.alignData=k),P&&(I.headerAlignData=E),L&&(I.footerAlignData=O),N&&(I.resizableData=T),j&&(I.sortData=$),B&&(I.fixedData=M),V&&(I.visibleData=D),C&&c&&(u.forEach(e=>{const t=d[e.field];t&&(F[t.column.getKey()]=!0)}),I.aggGroupData=F),z&&(I.aggFuncData=R),I},saveCustomStore(e){const t=this,n=t,r=t,{customConfig:i}=n,o=t.computeTableId,a=t.computeCustomOpts,{updateStore:s,storage:l}=a,{isCustomAlign:c,isCustomHeaderAlign:u,isCustomFooterAlign:d,isCustomResizable:h,isCustomVisible:p,isCustomFixed:f,isCustomSort:m,isCustomAggGroup:g,isCustomAggFunc:v,isCustomPager:b}=Ap(t);if("reset"!==e&&(r.isCustomStatus=!0),l&&(i?ld(a):a.enabled)&&(c||u||d||h||p||f||m||g||v||b)){if(!o)return Of("vxe.error.reqProp",["id"]),t.$nextTick();const n="reset"===e?{pagerData:{},alignData:{},headerAlignData:{},footerAlignData:{},resizableData:{},sortData:[],visibleData:{},fixedData:{},aggGroupData:{},aggFuncData:{}}:t.getCustomStoreData();if(s)return s({$table:t,id:o,type:e,storeData:n});qf(o,"reset"===e?null:n)}return t.$nextTick()},handleUpdateDataQueue(){const e=this,t=e;t.upDataFlag++},handleRefreshColumnQueue(){const e=this,t=e;t.reColumnFlag++},handleFilterOptions(e){const t=this,n=t;if(e){const{filterStore:r}=n,{filterRender:i,filters:o}=e,a=t.computeRendererOpts,s=o||[],l=ld(i)&&i.name?a[i.name]||Df.get(i.name):null,c=e.filterRecoverMethod||(l?l.tableFilterRecoverMethod||l.filterRecoverMethod:null);r.column=e,s.forEach(n=>{const{_checked:r,checked:i}=n;n._checked=i,i||r===i||c&&c({option:n,column:e,$table:t})}),t.checkFilterOptions()}},refreshColumn(e){const t=this;return e&&$g(t),Mg(t,!0).then(()=>t.refreshScroll()).then(()=>vg(t,!1,!0,!0))},analyColumnWidth(){const e=this,t=e,n=e,{tableFullColumn:r}=n,i=e.computeColumnOpts,{width:o,minWidth:a}=i,s=[],l=[],c=[],u=[],d=[],h=[],p=[],f=[];r.forEach(e=>{o&&!e.width&&(e.width=o),a&&!e.minWidth&&(e.minWidth=a),e.visible&&(e.resizeWidth?s.push(e):"auto"===e.width?p.push(e):nh(e.width)?l.push(e):rh(e.width)?d.push(e):nh(e.minWidth)?c.push(e):"auto"===e.minWidth?u.push(e):rh(e.minWidth)?h.push(e):f.push(e))}),Object.assign(t.columnStore,{resizeList:s,pxList:l,pxMinList:c,autoMinList:u,scaleList:d,scaleMinList:h,autoList:p,remainList:f})},handleColResizeMousedownEvent(e,t,n){const r=this,i=r,o=r,a=0===e.button;if(!a)return;e.stopPropagation(),e.preventDefault();const{column:s}=n,{columnStore:l,overflowX:c,scrollbarHeight:u}=i,{visibleColumn:d}=o,{leftList:h,rightList:p}=l,f=r.computeResizableOpts,m=c?u:0,g=r.$refs.refElem,v=r.$refs.refLeftContainer,b=r.$refs.refRightContainer,y=r.$refs.refColResizeBar;if(!y)return;const x="left"===t,w="right"===t,C=y.firstElementChild,_=r.computeScrollbarXToTop,{clientX:S}=e,k=e.target;let E=k.parentElement,O=s;const T=s.children&&s.children.length;if(T&&(O=_p(s),T)){const e=E?E.parentElement:null,t=e?e.parentElement:null;E=t?t.querySelector(`.vxe-header--column[colid="${O.id}"]`):null}if(!E)return;const $=pc.assign(n,{cell:E,$table:r});let D=0;const M=g.getBoundingClientRect(),F=b?b.getBoundingClientRect():null,R=E.getBoundingClientRect(),I=k.getBoundingClientRect(),A=k.clientWidth,P=pc.floor(A/2),L=I.x-M.x+P,N=wp($)-P,j=xp($),B=w?0:R.x-M.x+A+N,V=R.x-M.x+E.clientWidth-N;let z=0,H=0;if(x||w){let e=!1;const t=x?h:p;for(let n=0;n<t.length;n++){const r=t[n];e?z+=r.renderWidth:(e=r.id===O.id,e||(H+=r.renderWidth))}}const W=e=>{e.stopPropagation(),e.preventDefault();const t=g.clientHeight,n=e.clientX-S;let r=L+n;x?F&&(r=Math.min(r,F.x-M.x-z-N)):w&&(v&&(r=Math.max(r,v.clientWidth+H+N)),r=Math.min(r,V)),D=Math.max(r,B),j>1&&(D=Math.min(D,j+B-N));const o=Math.max(1,D);if(y.style.left=`${o}px`,y.style.top=`${_?m:0}px`,y.style.height=`${_?t-m:t}px`,f.showDragTip&&C){C.textContent=$f("vxe.table.resizeColTip",[Math.floor(O.renderWidth+(w?L-D:D-L))]);const n=g.clientWidth,r=y.clientWidth,i=C.clientWidth,a=C.clientHeight;let s=-i;o<i+r?s=0:o>n&&(s+=n-o),C.style.left=`${s}px`,C.style.top=`${Math.min(t-a,Math.max(0,e.clientY-M.y-a/2))}px`}i.isDragResize=!0};i.isDragResize=!0,ah(g,"col-drag--resize"),y.style.display="block",document.onmousemove=W,document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null,y.style.display="none",o._lastResizeTime=Date.now(),setTimeout(()=>{i.isDragResize=!1},50);const t=O.renderWidth+(w?L-D:D-L),a=Object.assign(Object.assign({},n),{resizeWidth:t,resizeColumn:O});"fixed"===f.dragMode&&d.forEach(e=>{e.id!==O.id&&(e.resizeWidth||(e.resizeWidth=e.renderWidth))}),r.handleColResizeCellAreaEvent?r.handleColResizeCellAreaEvent(e,a):(O.resizeWidth=t,Yg(r,e,a)),oh(g,"col-drag--resize")},W(e),r.closeMenu&&r.closeMenu()},handleColResizeDblclickEvent(e,t){const n=this,r=n,i=n,o=n.computeResizableOpts,{isDblclickAutoWidth:a}=o,s=n.$refs.refElem;if(a&&s){e.stopPropagation(),e.preventDefault();const{fullColumnIdData:o}=i,{column:a}=t;let l=a;a.children&&a.children.length&&pc.eachTree(a.children,e=>{l=e});const c=l.id,u=o[c],d=e.target,h=d.parentNode,p=Object.assign(t,{cell:h,$table:n}),f=wp(p),m=xp(p);s.setAttribute("data-calc-col","Y");let g=qg(n,l,s);s.removeAttribute("data-calc-col"),u&&(g=Math.max(g,u.width)),g=Math.max(f,g),m>1&&(g=Math.min(m,g));const v=Object.assign(Object.assign({},t),{resizeWidth:g,resizeColumn:l});r.isDragResize=!1,i._lastResizeTime=Date.now(),n.handleColResizeDblclickCellAreaEvent?n.handleColResizeDblclickCellAreaEvent(e,v):(l.resizeWidth=g,Yg(n,e,v))}},handleRowResizeMousedownEvent(e,t){const n=this,r=n,i=n,o=n;e.stopPropagation(),e.preventDefault();const a=n.$xeGantt,{row:s}=t,{showOverflow:l}=r,{overflowX:c,scrollbarWidth:u,overflowY:d,scrollbarHeight:h}=i,{elemStore:p,fullAllDataRowIdData:f}=o,m=d?u:0,g=c?h:0,v=n.computeScrollbarYToLeft,b=n.computeResizableOpts,y=n.computeRowOpts,x=n.computeCellOpts;let w=n.$refs.refElem;if(a){const e=a.$refs.refGanttContainerElem;e&&(w=e)}const C=n.$refs.refRowResizeBar;if(!C)return;const{clientY:_}=e,S=C.firstElementChild,k=e.currentTarget,E=k.parentNode,O=E.parentNode,T=Ep(p["main-body-scroll"]);if(!T)return;const $=np(n,s),D=f[$];if(!D)return;const M=n.computeDefaultRowHeight;let F=mp(D,x,y,M);l||(F=E.clientHeight);const R=w.getBoundingClientRect(),I=O.getBoundingClientRect(),A=_-I.y-O.clientHeight;let P=F;const L=E.querySelector(".vxe-cell");let N=0;if(L){const e=getComputedStyle(L);N=Math.max(1,Math.ceil(pc.toNumber(e.paddingTop)+pc.toNumber(e.paddingBottom)))}const j=I.y-R.y+N,B=e=>{e.stopPropagation(),e.preventDefault();const t=w.clientWidth-m,n=w.clientHeight-g;let r=e.clientY-R.y-A;if(r<j?r=j:P=Math.max(N,F+e.clientY-_),C.style.left=`${v?m:0}px`,C.style.top=`${r}px`,C.style.width=`${t}px`,b.showDragTip&&S){S.textContent=$f("vxe.table.resizeRowTip",[P]);const i=S.clientWidth,o=S.clientHeight;let a=Math.max(2,e.clientX-R.x),s=0;a+i>=t-2&&(a=t-i-2),r+o>=n&&(s=n-(r+o)),S.style.left=`${a}px`,S.style.top=`${s}px`}i.isDragResize=!0};i.isDragResize=!0,ah(w,"row-drag--resize"),C.style.display="block",document.onmousemove=B,document.onmouseup=function(e){if(document.onmousemove=null,document.onmouseup=null,C.style.display="none",o._lastResizeTime=Date.now(),setTimeout(()=>{i.isDragResize=!1},50),P!==F){const r=Object.assign(Object.assign({},t),{resizeHeight:P,resizeRow:s});o.isResizeCellHeight=!0,n.handleRowResizeCellAreaEvent?n.handleRowResizeCellAreaEvent(e,r):(D.resizeHeight=P,Ug(n,e,r),Xg(n))}oh(w,"row-drag--resize")},B(e)},handleRowResizeDblclickEvent(e,t){const n=this,r=n,i=n,o=n.computeResizableOpts,{isDblclickAutoHeight:a}=o,s=n.$refs.refElem;if(a&&s){e.stopPropagation(),e.preventDefault();const{editStore:o}=r,{fullAllDataRowIdData:a}=i,{actived:l}=o,{row:c}=t,u=np(n,c),d=a[u];if(!d)return;const h=()=>{s.setAttribute("data-calc-row","Y");const o=Hm(n,u,d,s);s.removeAttribute("data-calc-row");const a=Object.assign(Object.assign({},t),{resizeHeight:o,resizeRow:c});r.isDragResize=!1,i._lastResizeTime=Date.now(),n.handleRowResizeDblclickCellAreaEvent?n.handleRowResizeDblclickCellAreaEvent(e,a):(d.resizeHeight=o,Ug(n,e,a))};l.row||l.column?n.clearEdit().then(h):h()}},setRowHeightConf(e){const t=this,n=t,r=t,{fullAllDataRowIdData:i}=r;let o=!1;return e&&(pc.each(e,(e,t)=>{const n=i[t];if(n){const t=pc.toInteger(e);t&&(n.resizeHeight=t,o||(o=!0))}}),o&&(r.isResizeCellHeight=!0,n.resizeHeightFlag++)),t.$nextTick().then(()=>(Xg(t),{status:o}))},getRowHeightConf(e){const t=this,n=t,{fullAllDataRowIdData:r,afterFullData:i}=n,{handleGetRowId:o}=ip(t),a=t.computeRowOpts,s=t.computeCellOpts,l=t.computeDefaultRowHeight,c={};return i.forEach(t=>{const n=o(t),i=r[n];if(i){const t=i.resizeHeight;if(t||e){const e=mp(i,s,a,l);c[n]=e}}}),c},recalcRowHeight(e){const t=this,n=t,r=t,{fullAllDataRowIdData:i}=r,o=pc.isArray(e)?e:[e],a=t.$refs.refElem;if(a){const{handleGetRowId:e}=ip(t);a.setAttribute("data-calc-row","Y"),o.forEach(n=>{const r=pc.isString(n)||pc.isNumber(n)?n:e(n),o=i[r];o&&(o.resizeHeight=Hm(t,r,o,a)),a.removeAttribute("data-calc-row")}),n.calcCellHeightFlag++}return t.$nextTick()},setRowHeight(e,t){const n=this,r=n,i=n,{fullAllDataRowIdData:o}=i;let a=!1;const s=pc.isArray(e)?e:[e];let l=pc.toInteger(t);if(rh(t)){const e=n.$refs.refTableBody,t=e?e.$el:null,r=t?t.clientHeight-1:0;l=Math.floor(l*r)}if(l){const{handleGetRowId:e}=ip(n);s.forEach(t=>{const n=pc.isString(t)||pc.isNumber(t)?t:e(t),r=o[n];r&&(r.resizeHeight=l,a||(a=!0))}),a&&(i.isResizeCellHeight=!0,r.resizeHeightFlag++)}return n.$nextTick()},getRowHeight(e){const t=this,n=t,{fullAllDataRowIdData:r}=n,i=t.computeRowOpts,o=t.computeCellOpts,a=t.computeDefaultRowHeight,s=pc.isString(e)||pc.isNumber(e)?e:np(t,e),l=r[s];return l?mp(l,o,i,a):0},refreshScroll(){const e=this,t=e,{elemStore:n,lastScrollLeft:r,lastScrollTop:i}=t,o=Ep(n["main-header-scroll"]),a=Ep(n["main-body-scroll"]),s=Ep(n["main-footer-scroll"]),l=Ep(n["left-body-scroll"]),c=Ep(n["right-body-scroll"]),u=e.$refs.refScrollXHandleElem,d=e.$refs.refScrollYHandleElem;return new Promise(n=>{if(r||i)return Xh(e,r,i).then(()=>{setTimeout(n,10)});t.intoRunScroll=!0,ph(d,i),ph(a,i),ph(l,i),ph(c,i),fh(u,r),fh(a,r),fh(o,r),fh(s,r),setTimeout(()=>{t.intoRunScroll=!1,n()},10)})},handleResizeEvent(){const e=this;bg(e)},recalculate(e){const t=this,n=!!e;return vg(t,n,n,n)},updateStyle(){const e=this;return dm(e)},checkScrolling(){const e=this,t=e,{elemStore:n}=t,r=Ep(n["main-body-scroll"]),i=e.$refs.refLeftContainer,o=e.$refs.refRightContainer,a=e.$refs.refScrollXHandleElem,s=a||r;s&&(i&&(s.scrollLeft>0?ah(i,"scrolling--middle"):oh(i,"scrolling--middle")),o&&(s.clientWidth<s.scrollWidth-Math.ceil(s.scrollLeft)?ah(o,"scrolling--middle"):oh(o,"scrolling--middle")))},preventEvent(e,t,n,r,i){const o=this,a=o.$xeGrid,s=o.$xeGantt;let l=Ff.get(t);l.length||"event.clearEdit"!==t||(l=Ff.get("event.clearActived"),l.length&&Ef("vxe.error.delEvent",["event.clearActived","event.clearEdit"]));let c=null,u=!1;for(let d=0;d<l.length;d++){const t=l[d],r=t(Object.assign({$table:o,$grid:a,$gantt:s,$event:e},n));if(!1===r){u=!0;break}if(r&&!1===r.status){c=r.result,u=!0;break}}return u||r&&(c=r()),i&&i(),c},handleGlobalMousedownEvent(e){const t=this,n=t,r=t.$xeGrid,i=t.$xeGantt,o=r||i,a=t,s=t,{editStore:l,ctxMenuStore:c,customStore:u}=a,{mouseConfig:d,editRules:h}=n,p=t.$refs.refElem,f=t.computeEditOpts,m=t.computeValidOpts,g=t.computeAreaOpts,{actived:v}=l,b=t.$refs.refTableFilter,y=t.$refs.refTableMenu,x=t.$refs.refTableCustom,w=t.$refs.refValidTooltip;if(b&&(vh(e,p,"vxe-cell--filter").flag||vh(e,b.$el).flag||vh(e,document.body,"vxe-table--ignore-clear").flag||t.preventEvent(e,"event.clearFilter",s._currFilterParams,t.closeFilter)),x&&(u.btnEl===e.target||vh(e,document.body,"vxe-toolbar-custom-target").flag||vh(e,x.$el).flag||vh(e,document.body,"vxe-table--ignore-clear").flag||u.visible&&t.closeCustom&&t.preventEvent(e,"event.clearCustom",{},()=>{t.closeCustom(),t.dispatchEvent("custom",{type:"close"},e)})),v.row){if(!1!==f.autoClear){const r=v.args.cell;r&&vh(e,r).flag||w&&vh(e,w.$el).flag||(!s._lastCallTime||s._lastCallTime+50<Date.now())&&(vh(e,document.body,"vxe-table--ignore-clear").flag||t.preventEvent(e,"event.clearEdit",v.args,()=>{let r;if("row"===f.mode){const n=vh(e,p,"vxe-body--row"),i=n.flag?t.getRowNode(n.targetElem):null;r=!!i&&!t.eqRow(i.item,v.args.row)}else r=!vh(e,p,"col--edit").flag;if(r||(r=vh(e,p,"vxe-header--row").flag),r||(r=vh(e,p,"vxe-footer--row").flag),!r&&n.height&&!a.overflowY){const t=e.target;ih(t,"vxe-table--body-wrapper")&&(r=e.offsetY<t.clientHeight)}!r&&vh(e,p).flag||setTimeout(()=>{t.handleClearEdit(e).then(()=>{!s.isActivated&&h&&m.autoClear&&(a.validErrorMaps={})})})}))}}else if(d&&!vh(e,p).flag&&(!o||!vh(e,o.$el).flag)&&(!y||!vh(e,y.$el).flag)&&(!this.$toolbar||!vh(e,this.$toolbar.$el).flag)&&(t.clearSelected&&t.clearSelected(),g.autoClear&&t.getCellAreas)){const n=t.getCellAreas();n&&n.length&&!vh(e,document.body,"vxe-table--ignore-areas-clear").flag&&t.preventEvent(e,"event.clearAreas",{},()=>{t.clearCellAreas(),t.clearCopyCellArea(),t.dispatchEvent("clear-cell-area-selection",{cellAreas:n},e)})}if(c.visible&&y&&!vh(e,y.$el).flag&&t.closeMenu(),!v.row||!vh(e,document.body,"vxe-table--ignore-clear").flag){const n=vh(e,(o||t).$el).flag;!n&&h&&m.autoClear&&(a.validErrorMaps={}),s.isActivated=n}},handleGlobalBlurEvent(){const e=this;e.closeFilter(),e.closeMenu()},handleGlobalScrollEvent(e){const t=this,n=t,{filterStore:r}=n,i=t.computeFilterOpts;r.visible&&i.transfer&&t.handleFilterStyle(),tv(t,e)},handleGlobalMousewheelEvent(){const e=this;e.closeTooltip(),e.closeMenu&&e.closeMenu()},keydownEvent(e){const t=this,n=t,r=t,{mouseConfig:i,keyboardConfig:o}=n,{filterStore:a,ctxMenuStore:s,editStore:l}=r,c=t.computeMouseOpts,u=t.computeKeyboardOpts,{actived:d}=l,h=If.hasKey(e,Af.ESCAPE);h&&t.preventEvent(e,"event.keydown",null,()=>{if(t.dispatchEvent("keydown-start",{},e),o&&i&&c.area&&t.handleKdClAreaEvent)t.handleKdClAreaEvent(e);else if((d.row||a.visible||s.visible)&&(e.stopPropagation(),t.closeFilter(),t.closeMenu(),o&&u.isEsc&&d.row)){const n=d.args;t.handleClearEdit(e),i&&c.selected&&t.$nextTick(()=>t.handleSelected(n,e))}t.dispatchEvent("keydown",{},e),t.dispatchEvent("keydown-end",{},e)})},contextMenuEvent(e){const t=this;t.dispatchEvent("context-menu",{},e)},handleGlobalKeydownEvent(e){const t=this,n=t,r=t,i=t,o=t.$xeGrid,a=t.$xeGantt;r.isActivated&&t.preventEvent(e,"event.keydown",null,()=>{const{mouseConfig:s,keyboardConfig:l,treeConfig:c,editConfig:u,highlightCurrentRow:d,highlightCurrentColumn:h}=n,{ctxMenuStore:p,editStore:f}=i,{afterFullData:m,visibleColumn:g,currentRow:v}=r,b=t.computeIsContentMenu,y=t.computeBodyMenu,x=t.computeKeyboardOpts,w=t.computeMouseOpts,C=t.computeEditOpts,_=t.computeTreeOpts,S=t.computeMenuList,k=t.computeRowOpts,E=t.computeColumnOpts,{isLastEnterAppendRow:O,beforeEnterMethod:T,enterMethod:$,isLastTabAppendRow:D,beforeTabMethod:M,tabMethod:F}=x,{selected:R,actived:I}=f,{keyCode:A}=e,P=If.hasKey(e,Af.PROCESS),L=If.hasKey(e,Af.ESCAPE),N=If.hasKey(e,Af.BACKSPACE),j=If.hasKey(e,Af.TAB),B=If.hasKey(e,Af.ENTER),V=If.hasKey(e,Af.SPACEBAR),z=If.hasKey(e,Af.ARROW_LEFT),H=If.hasKey(e,Af.ARROW_UP),W=If.hasKey(e,Af.ARROW_RIGHT),q=If.hasKey(e,Af.ARROW_DOWN),G=If.hasKey(e,Af.DELETE),Y=If.hasKey(e,Af.Y),U=If.hasKey(e,Af.Z),K=If.hasKey(e,Af.F2),X=If.hasKey(e,Af.CONTEXT_MENU),Z=sh(e),Q=e.shiftKey,J=e.altKey,ee=z||H||W||q,te=b&&p.visible&&(B||V||ee),ne=ld(u)&&I.column&&I.row,re=_.children||_.childrenField,ie=C.beforeEditMethod||C.activeMethod,oe=R.row,ae=R.column;if(te)e.preventDefault(),p.showChild&&pd(p.selected)?t.moveCtxMenu(e,p,"selectChild",z,!1,p.selected.children):t.moveCtxMenu(e,p,"selected",W,!0,S);else if(l&&s&&w.area&&t.handleKdClAreaEvent)t.handleKdClAreaEvent(e);else if(L){if(t.closeMenu&&t.closeMenu(),t.closeFilter(),l&&x.isEsc&&I.row){const n=I.args;t.handleClearEdit(e),w.selected&&t.$nextTick(()=>t.handleSelected(n,e))}}else if(l&&V&&x.isChecked&&oe&&ae&&("checkbox"===ae.type||"radio"===ae.type))e.preventDefault(),"checkbox"===ae.type?t.handleToggleCheckRowEvent(e,R.args):t.triggerRadioRowEvent(e,R.args);else if(K&&ld(u))ne||oe&&ae&&(e.preventDefault(),t.handleEdit(R.args,e));else if(X)r._keyCtx=oe&&ae&&y.length,clearTimeout(r.keyCtxTimeout),r.keyCtxTimeout=setTimeout(()=>{r._keyCtx=!1},1e3);else if(B&&!J&&l&&x.isEnter&&(oe||I.row||c&&(k.isCurrent||d)&&v)){if(Z){if(I.row){const n=I.args;t.handleClearEdit(e),s&&w.selected&&t.$nextTick(()=>t.handleSelected(n,e))}}else if(oe||I.row){const n=oe||I.row,r=ae||I.column;if(r){const i=oe?R.args:I.args;if(Q)x.enterToTab?t.moveTabSelected(i,Q,e):t.moveEnterSelected(i,z,!0,W,!1,e);else{const o=t.getVTRowIndex(n),a=t.getVTColumnIndex(r);if(x.enterToTab){const s={row:n,rowIndex:t.getRowIndex(n),$rowIndex:t.getVMRowIndex(n),_rowIndex:o,column:r,columnIndex:t.getColumnIndex(r),$columnIndex:t.getVMColumnIndex(r),_columnIndex:a,$table:t};if(!M||!1!==M(s)){if(e.preventDefault(),D){const n=g[0];if(o>=m.length-1&&a>=g.length-1)return I.row&&t.handleClearEdit(e),t.insertAt({},-1).then(({row:r})=>{t.scrollToRow(r,n),t.handleSelected(Object.assign(Object.assign({},i),{row:r,column:n}),e)}),void t.dispatchEvent("tab-append-row",s,e)}F?F(s):t.moveTabSelected(i,Q,e)}}else{const s={row:n,rowIndex:t.getRowIndex(n),$rowIndex:t.getVMRowIndex(n),_rowIndex:o,column:r,columnIndex:t.getColumnIndex(r),$columnIndex:t.getVMColumnIndex(r),_columnIndex:a,$table:t};if(!T||!1!==T(s)){if(e.preventDefault(),O&&o>=m.length-1)return t.insertAt({},-1).then(({row:n})=>{t.scrollToRow(n,ae),t.handleSelected(Object.assign(Object.assign({},i),{row:n}),e)}),void t.dispatchEvent("enter-append-row",s,e);$?$(s):(I.row&&t.handleClearEdit(e),t.moveEnterSelected(i,z,!1,W,!0,e))}}}}}else if(c&&(k.isCurrent||d)&&v){const n=v[re];if(n&&n.length){e.preventDefault();const r=n[0],i={$table:t,row:r,rowIndex:t.getRowIndex(r),$rowIndex:t.getVMRowIndex(r)};t.setTreeExpand(v,!0).then(()=>t.scrollToRow(r)).then(()=>t.triggerCurrentRowEvent(e,i))}}}else if(ee&&l&&x.isArrow)ne||(w.selected&&oe&&ae?t.moveArrowSelected(R.args,z,H,W,q,e):((H||q)&&(k.isCurrent||d)&&t.moveCurrentRow(H,q,e),(z||W)&&(E.isCurrent||h)&&t.moveCurrentColumn(z,W,e)));else if(j&&l&&x.isTab){if(oe||I.row){const n=oe||I.row,r=ae||I.column;if(r){const i=oe?R.args:I.args,o=t.getVTRowIndex(n),a=t.getVTColumnIndex(r),s={row:n,rowIndex:t.getRowIndex(n),$rowIndex:t.getVMRowIndex(n),_rowIndex:o,column:r,columnIndex:t.getColumnIndex(r),$columnIndex:t.getVMColumnIndex(r),_columnIndex:a,$table:t};if(!M||!1!==M(s)){if(e.preventDefault(),D){const n=g[0];if(o>=m.length-1&&a>=g.length-1)return I.row&&t.handleClearEdit(e),t.insertAt({},-1).then(({row:r})=>{t.scrollToRow(r,n),t.handleSelected(Object.assign(Object.assign({},i),{row:r,column:n}),e)}),void t.dispatchEvent("tab-append-row",s,e)}F?F(s):(I.row&&t.handleClearEdit(e),t.moveTabSelected(i,Q,e))}}}}else if(l&&x.isDel&&G&&ld(u)&&(oe||ae)){if(!ne){const{delMethod:n}=x,r={row:oe,rowIndex:t.getRowIndex(oe),column:ae,columnIndex:t.getColumnIndex(ae),$table:t,$grid:o,$gantt:a};if(!ie||ie(r)){if(n)n(r);else{const e=Sp(oe,ae);null!==e&&(t.handlePushStack(),kp(oe,ae,null))}t.updateFooter(),t.dispatchEvent("cell-delete-value",r,e)}}}else if(N&&l&&x.isBack&&ld(u)&&(oe||ae)){if(!ne){const{backMethod:n}=x;if(x.isDel&&ld(u)&&(oe||ae)){const r={row:oe,rowIndex:t.getRowIndex(oe),$rowIndex:t.getVMRowIndex(oe),_rowIndex:t.getVTRowIndex(oe),column:ae,columnIndex:t.getColumnIndex(ae),$columnIndex:t.getVMColumnIndex(ae),_columnIndex:t.getVTColumnIndex(ae),$table:t,$grid:o,$gantt:a};ie&&!ie(r)||(n?n(r):t.handleEdit(r,e,{isClear:!0}),t.dispatchEvent("cell-backspace-value",r,e))}}}else if(N&&l&&c&&x.isBack&&(k.isCurrent||d)&&v){const{parent:n}=pc.findTree(r.afterTreeFullData,e=>e===v,{children:re});if(n){e.preventDefault();const r={row:n,rowIndex:t.getRowIndex(n),$rowIndex:t.getVMRowIndex(n),$table:t,$grid:o,$gantt:a};t.setTreeExpand(n,!1).then(()=>t.scrollToRow(n)).then(()=>t.triggerCurrentRowEvent(e,r))}}else if(l&&x.isUndoRedo&&Z&&(U||Y)&&!wh(e.target))Y||Q&&U?(e.preventDefault(),t.handleRedoStackEvent(e)):U&&(e.preventDefault(),t.handleUndoStackEvent(e));else if(l&&x.isEdit&&!Z&&(V||P||A>=48&&A<=57||A>=65&&A<=90||A>=96&&A<=111||A>=186&&A<=192||A>=219&&A<=222)){const{editMode:n,editMethod:r}=x;if(ae&&oe&&ld(ae.editRender)){const i=C.beforeEditMethod||C.activeMethod,s={row:oe,rowIndex:t.getRowIndex(oe),$rowIndex:t.getVMRowIndex(oe),_rowIndex:t.getVTRowIndex(oe),column:ae,columnIndex:t.getColumnIndex(ae),$columnIndex:t.getVMColumnIndex(ae),_columnIndex:t.getVTColumnIndex(ae),$table:t,$grid:o,$gantt:a};if(!i||i(s))if(r)r(s);else{let r=!1;"insert"!==n&&(r=!0),t.handleEdit(s,e,{isClear:r})}}}t.dispatchEvent("keydown",{},e)})},handleGlobalPasteEvent(e){const t=this,n=t,r=t,i=t,{keyboardConfig:o,mouseConfig:a}=n,{editStore:s,filterStore:l}=i,{isActivated:c}=r,u=t.computeMouseOpts,d=t.computeKeyboardOpts,{actived:h}=s;c&&!l.visible&&(h.row||h.column||o&&d.isClip&&a&&u.area&&t.handlePeClAreaEvent&&t.handlePeClAreaEvent(e),t.dispatchEvent("paste",{},e))},handleGlobalCopyEvent(e){const t=this,n=t,r=t,i=t,{keyboardConfig:o,mouseConfig:a}=n,{editStore:s,filterStore:l}=i,{isActivated:c}=r,u=t.computeMouseOpts,d=t.computeKeyboardOpts,{actived:h}=s;c&&!l.visible&&(h.row||h.column||o&&d.isClip&&a&&u.area&&t.handleCyClAreaEvent&&t.handleCyClAreaEvent(e),t.dispatchEvent("copy",{},e))},handleGlobalCutEvent(e){const t=this,n=t,r=t,i=t,{keyboardConfig:o,mouseConfig:a}=n,{editStore:s,filterStore:l}=i,{isActivated:c}=r,u=t.computeMouseOpts,d=t.computeKeyboardOpts,{actived:h}=s;c&&!l.visible&&(h.row||h.column||o&&d.isClip&&a&&u.area&&t.handleCutCellAreaEvent&&t.handleCutCellAreaEvent(e),t.dispatchEvent("cut",{},e))},handleGlobalResizeEvent(){const e=this,t=e,{filterStore:n}=t;n.visible&&e.handleFilterStyle(),e.closeMenu(),e.updateCellAreas(),bg(e),e.updateCellAreas()},handleUpdateHeaderMerge(){const e=this,t=e,n=e,{mergeHeaderList:r}=n,{mergeMaps:i,mergeRowMaps:o,mergeColMaps:a}=Fm(r);n.mergeHeaderCellMaps=i,n.mergeHeaderRowMaps=o,n.mergeHeaderColMaps=a,t.mergeHeadFlag++},handleUpdateBodyMerge(){const e=this,t=e,n=e,{mergeBodyList:r}=n,{mergeMaps:i,mergeRowMaps:o,mergeColMaps:a}=Fm(r);n.mergeBodyCellMaps=i,n.mergeBodyRowMaps=o,n.mergeBodyColMaps=a,t.mergeBodyFlag++},handleUpdateFooterMerge(){const e=this,t=e,n=e,{mergeFooterList:r}=n,{mergeMaps:i,mergeRowMaps:o,mergeColMaps:a}=Fm(r);n.mergeFooterCellMaps=i,n.mergeFooterRowMaps=o,n.mergeFooterColMaps=a,t.mergeFootFlag++},handleAggregateSummaryData(){const e=this;return e.refreshAggregateCalcValues()},handleTargetLeaveEvent(){const e=this,t=e,n=e.computeTooltipOpts;let r=e.$refs.refTooltip;r&&r.setActived&&r.setActived(!1),n.enterable?t.tooltipTimeout=setTimeout(()=>{r=e.$refs.refTooltip,r&&r.isActived&&!r.isActived()&&e.closeTooltip()},n.leaveDelay):e.closeTooltip()},triggerHeaderTitleEvent(e,t,n){const r=this,i=r,o=t.content||t.message;if(o){const{tooltipStore:a}=i,{column:s}=n,l=fd(o);Gm(r,!0),a.row=null,a.column=s,a.visible=!0,a.currOpts=t,r.$nextTick(()=>{const t=r.$refs.refTooltip;t&&t.open&&t.open(e.currentTarget,l)})}},triggerHeaderTooltipEvent(e,t){const n=this,r=n,{tooltipStore:i}=r,o=n.computeHeaderTooltipOpts,{column:a}=t;Gm(n,!0);const s=e.currentTarget;if(!s)return;const l=s.parentElement;if(!l)return;const c=l.parentElement;if(!c)return;const u=c.parentElement;if(u&&(i.column!==a||!i.visible)){const r=u.querySelector(".vxe-cell--title");sg(n,e,o,"header",u,(ih(u,"col--ellipsis")?r:l)||l,r||c,t)}},triggerBodyTooltipEvent(e,t){const n=this,r=n,i=n,{editConfig:o}=r,{editStore:a}=i,{tooltipStore:s}=i,l=n.computeTooltipOpts,c=n.computeEditOpts,{actived:u}=a,{row:d,column:h}=t,p=e.currentTarget;if(Gm(n,s.column!==h||s.row!==d),h.editRender&&ld(o)){if("row"===c.mode&&u.row===d)return;if(u.row===d&&u.column===h)return}if(s.column!==h||s.row!==d||!s.visible){const r=p.querySelector(".vxe-cell--wrapper");let i=null,o=p.querySelector("html"===h.type?".vxe-cell--html":".vxe-cell--label");h.treeNode&&(i=p.querySelector(".vxe-tree-cell")),o||(o=r),sg(n,e,l,"body",p,i||r,o,t)}},triggerFooterTooltipEvent(e,t){const n=this,r=n,{column:i}=t,{tooltipStore:o}=r,a=n.computeFooterTooltipOpts,s=e.currentTarget;if(Gm(n,o.column!==i||!!o.row),o.column!==i||!o.visible){const r=s.querySelector(".vxe-cell--wrapper");let o=null,l=s.querySelector("html"===i.type?".vxe-cell--html":".vxe-cell--label");"html"===i.type&&(o=s.querySelector(".vxe-cell--html")),l||(l=r),sg(n,e,a,"footer",s,o||r,l,t)}},openTooltip(e,t){const n=this,r=n.$refs.refCommTooltip;return r?r.open(e,t):n.$nextTick()},closeTooltip(){const e=this,t=e,{tooltipStore:n}=t,r=e.$refs.refTooltip,i=e.$refs.refCommTooltip;return n.visible&&(Object.assign(n,{row:null,column:null,content:null,visible:!1,type:null,currOpts:{}}),r&&r.close()),i&&i.close(),e.$nextTick()},isAllCheckboxChecked(){const e=this,t=e;return t.isAllSelected},isAllCheckboxIndeterminate(){const e=this,t=e;return!t.isAllSelected&&t.isIndeterminate},isCheckboxIndeterminate(){const e=this;return Ef("vxe.error.delFunc",["isCheckboxIndeterminate","isAllCheckboxIndeterminate"]),e.isAllCheckboxIndeterminate()},getCheckboxIndeterminateRecords(e){const t=this,n=t,r=t,{treeConfig:i}=n,{fullDataRowIdData:o,treeIndeterminateRowMaps:a}=r;if(i){const t=[],n=[];return pc.each(a,(e,r)=>{e&&(t.push(e),o[r]&&n.push(e))}),e?t:n}return[]},handleCheckedCheckboxRow(e,t,n){const r=this;return wm(r,e,t,n)},setCheckboxRow(e,t){const n=this;return e&&!pc.isArray(e)&&(e=[e]),wm(n,e,t,!0)},setCheckboxRowByKey(e,t){const n=this,r=n,{fullAllDataRowIdData:i}=r;e&&!pc.isArray(e)&&(e=[e]);const o=[];return e.forEach(e=>{const t=op(e),n=i[t];n&&o.push(n.row)}),wm(n,o,t,!0)},setCheckboxRowKey(e,t){const n=this;return n.setCheckboxRowByKey(e,t)},isCheckedByCheckboxRow(e){const t=this,n=t,r=t,{updateCheckboxFlag:i}=n,{selectCheckboxMaps:o}=r,a=t.computeCheckboxOpts,{checkField:s}=a;return s?pc.get(e,s):!!i&&!!o[np(t,e)]},isCheckedByCheckboxRowKey(e){const t=this,n=t,r=t,{updateCheckboxFlag:i}=n,{fullAllDataRowIdData:o,selectCheckboxMaps:a}=r,s=t.computeCheckboxOpts,{checkField:l}=s,c=op(e);if(l){const e=o[c];return!!e&&pc.get(e.row,l)}return!!i&&!!a[c]},isIndeterminateByCheckboxRow(e){const t=this,n=t,{treeIndeterminateRowMaps:r}=n;return!!r[np(t,e)]&&!t.isCheckedByCheckboxRow(e)},isIndeterminateByCheckboxRowKey(e){const t=this,n=t,{treeIndeterminateRowMaps:r}=n,i=op(e);return!!r[i]&&!t.isCheckedByCheckboxRowKey(i)},handleBatchSelectRows(e,t,n){const r=this,i=r,o=r,a=r,{treeConfig:s}=i,{isRowGroupStatus:l}=o,{selectCheckboxMaps:c}=a,u=r.computeAggregateOpts,d=r.computeTreeOpts,{transform:h,mapChildrenField:p}=d,f=d.children||d.childrenField,m=r.computeCheckboxOpts,{checkField:g,checkStrictly:v,checkMethod:b}=m,{handleGetRowId:y}=ip(r),x=m.indeterminateField||m.halfField;if(g)return!s&&!l||v?(e.forEach(e=>{(n||!b||b({$table:r,row:e}))&&(pc.set(e,g,t),ym(r,e,t))}),void o.updateCheckboxFlag++):(pc.eachTree(e,e=>{(n||!b||b({$table:r,row:e}))&&(pc.set(e,g,t),x&&pc.set(e,x,!1),ym(r,e,t))},{children:h?p:f}),void o.updateCheckboxFlag++);if(!v){if(l)return pc.eachTree(e,e=>{const i=y(e);(n||!b||b({$table:r,row:e}))&&(t?c[i]=e:c[i]&&delete c[i],ym(r,e,t))},{children:u.mapChildrenField}),void o.updateCheckboxFlag++;if(s)return pc.eachTree(e,e=>{const i=y(e);(n||!b||b({$table:r,row:e}))&&(t?c[i]=e:c[i]&&delete c[i],ym(r,e,t))},{children:h?p:f}),void o.updateCheckboxFlag++}e.forEach(e=>{const i=y(e);(n||!b||b({$table:r,row:e}))&&(t?c[i]||(c[i]=e):c[i]&&delete c[i],ym(r,e,t),o.updateCheckboxFlag++)})},handleSelectRow({row:e},t,n){const r=this;r.handleBatchSelectRows([e],t,n)},handleToggleCheckRowEvent(e,t){const n=this,r=n,{selectCheckboxMaps:i}=r,o=n.computeCheckboxOpts,{checkField:a,trigger:s}=o,{row:l}=t;if("manual"===s)return;let c=!1;c=a?!pc.get(l,a):!i[np(n,l)],e?n.triggerCheckRowEvent(e,t,c):(n.handleBatchSelectRows([l],c),n.checkSelectionStatus())},triggerCheckRowEvent(e,t,n){const r=this,i=r,o=r,a=r,{treeConfig:s}=i,{row:l}=t,{isRowGroupStatus:c}=o,{fullAllDataRowIdData:u,afterFullData:d,afterTreeFullData:h,afterGroupFullData:p}=a,f=r.computeCheckboxOpts,m=r.computeAggregateOpts,g=r.computeTreeOpts,{checkMethod:v,trigger:b,checkStrictly:y}=f;if("manual"!==b){if(e.stopPropagation(),f.isShiftKey&&e.shiftKey){const{handleGetRowId:n}=ip(r),i=r.getCheckboxRecords();let o=-1,a=null;const f=n(l),v=u[f];if(v&&(a=v.row,o=v._seq),a&&i.length){let l=[],v=-1,b=null,x="",w=-1,C=null,_="";const S={};if(i.forEach(e=>{const t=n(e),r=u[t];r&&((!b||v>r._seq)&&(x=r.rowid,b=r.row,v=r._seq),(!C||w<r._seq)&&(_=r.rowid,C=r.row,w=r._seq)),S[t]=e}),b&&C&&(i.length>1||f!==x)&&(Math.abs(v-w)>1||Math.abs(o-v)>1||Math.abs(o-w)>1)){if(s||c){const{transform:e}=g,t=g.children||g.childrenField,r=s?e?g.mapChildrenField:t:m.mapChildrenField;let i=!1,a="",c="";const d=(e,t)=>{const i=u[e];if(i){const e=i.row,o=e[r];if(o&&o.length){const e=t?pc.last(o):pc.first(o);return d(n(e),t)}}return e},b=e=>{const t=u[e];if(t){const e=t.parent;if(e){const t=n(e);if(S[t])return b(t)}}return e},C=e=>{const t=n(e);if(t){const e=u[t];if(e)return e.parent?C(e.parent):e}return null};o<v?(a=d(f,0),c=d(x,1)):(a=o>w?b(_):d(x,0),c=d(f,1));const k=e=>{const t=n(e),o=e[r];return i||t!==a||(i=!0),!i||!y&&o&&o.length||l.push(e),t===c};if(s){const e=u[a],t=e?C(e.row):null;t?pc.findTree(h.slice(t.treeIndex),k,{children:r}):pc.findTree(h,k,{children:r})}else pc.findTree(p,k,{children:r})}else{const e=r.getVTRowIndex(a),t=r.getVTRowIndex(b),n=r.getVTRowIndex(C);l=e<t?d.slice(e,t+1):e>n?d.slice(n,e+1):d.slice(t,e+1)}r.setAllCheckboxRow(!1),r.$nextTick(()=>{wm(r,l,!0,!1)}),r.dispatchEvent("checkbox-range-select",Object.assign({rangeRecords:l},t),e)}}}v&&!v({$table:r,row:l})||(r.handleBatchSelectRows([l],n),r.checkSelectionStatus(),r.dispatchEvent("checkbox-change",Object.assign({records:()=>r.getCheckboxRecords(),reserves:()=>r.getCheckboxReserveRecords(),indeterminates:()=>r.getCheckboxIndeterminateRecords(),checked:n},t),e))}},toggleCheckboxRow(e){const t=this,n=t,{selectCheckboxMaps:r}=n,i=t.computeCheckboxOpts,{checkField:o}=i,a=o?!pc.get(e,o):!r[np(t,e)];return t.handleBatchSelectRows([e],a,!0),t.checkSelectionStatus(),t.$nextTick()},setAllCheckboxRow(e){const t=this;return Cm(t,e,!0)},updateCheckboxStatus(){const e=this,t=e,n=e,r=e,{treeConfig:i}=t,{isRowGroupStatus:o}=n,{afterTreeFullData:a,afterGroupFullData:s,selectCheckboxMaps:l,treeIndeterminateRowMaps:c}=r,u=e.computeAggregateOpts,d=e.computeTreeOpts,h=d.children||d.childrenField,p=e.computeCheckboxOpts,{checkField:f,indeterminateField:m,checkStrictly:g,checkMethod:v}=p;if(!g){if(o||i){const{handleGetRowId:t}=ip(e),n={},r=[];if(o){const e=u.mapChildrenField;e&&pc.eachTree(s,i=>{const o=t(i),a=i[e];a&&a.length&&!n[o]&&(n[o]=1,r.unshift([i,o,a]))},{children:e})}else if(i){const{transform:e,mapChildrenField:i}=d;pc.eachTree(a,o=>{const a=t(o),s=o[e?i:h];s&&s.length&&!n[a]?(n[a]=1,r.unshift([o,a,s])):m&&pc.set(o,m,!1)},{children:e?i:h})}r.forEach(n=>{const r=n[0],i=n[1],o=n[2];let a=0,s=0,u=0;const d=o.length;o.forEach(v?n=>{const r=t(n),i=f?pc.get(n,f):l[r];v({$table:e,row:n})?(i?a++:c[r]&&s++,u++):i?a++:c[r]&&s++}:e=>{const n=t(e),r=f?pc.get(e,f):l[n];r?a++:c[n]&&s++,u++});let h=!1;h=d>0?u>0?(a>0||s>0)&&a>=u:a>0&&a>=u||!!l[i]:l[i];const p=!h&&(a>0||s>0);f&&pc.set(r,f,h),m&&pc.set(r,m,p),h?(f||(l[i]=r),c[i]&&delete c[i]):(f||l[i]&&delete l[i],p?c[i]=r:c[i]&&delete c[i])})}n.updateCheckboxFlag++}},updateAllCheckboxStatus(){const e=this,t=e,n=e,r=e,{treeConfig:i}=t,{isRowGroupStatus:o}=n,{afterFullData:a,afterTreeFullData:s,afterGroupFullData:l,checkboxReserveRowMap:c,selectCheckboxMaps:u,treeIndeterminateRowMaps:d}=r,h=e.computeAggregateOpts,{mapChildrenField:p}=h,f=e.computeCheckboxOpts,{checkField:m,checkMethod:g,showReserveStatus:v}=f,{handleGetRowId:b}=ip(e);let y=0,x=0,w=0,C=0,_=0;const S=i?s:o?l:a;S.forEach(g?t=>{const n=b(t),r=m?pc.get(t,m):u[n];if(o&&e.isAggregateRecord(t)){const i=t[p||""];r?(_++,y++):d[n]?(_++,w++):i&&i.length&&i.some(t=>g({$table:e,row:t}))&&_++}else g({$table:e,row:t})?(r?y++:d[n]&&w++,_++):r?x++:d[n]&&C++}:e=>{const t=b(e),n=m?pc.get(e,m):u[t];n?y++:d[t]&&w++,_++});const k=S.length>0&&(_>0?y>=_:y>=S.length);let E=!k&&(y>0||w>0||x>0||C>0);k||E||!v||(E=!pc.isEmpty(c)),n.isAllSelected=k,n.isIndeterminate=E},checkSelectionStatus(){const e=this;e.updateCheckboxStatus(),e.updateAllCheckboxStatus()},getRadioReserveRecord(e){const t=this,n=t,r=t,{treeConfig:i}=n,{fullDataRowIdData:o,radioReserveRow:a,afterFullData:s}=r,l=t.computeRadioOpts,c=t.computeTreeOpts,u=c.children||c.childrenField;if(l.reserve&&a){const n=np(t,a);if(e){if(!o[n])return a}else{const e=tp(t);if(i){const t=pc.findTree(s,t=>n===pc.get(t,e),{children:u});if(t)return a}else if(!s.some(t=>n===pc.get(t,e)))return a}}return null},clearRadioReserve(){const e=this,t=e;return t.radioReserveRow=null,e.$nextTick()},getCheckboxReserveRecords(e){const t=this,n=t,r=t,{treeConfig:i}=n,{afterFullData:o,fullDataRowIdData:a,checkboxReserveRowMap:s}=r,l=t.computeCheckboxOpts,c=t.computeTreeOpts,u=c.children||c.childrenField,d=[];if(l.reserve){const{handleGetRowId:n}=ip(t),r={};i?pc.eachTree(o,e=>{r[n(e)]=1},{children:u}):o.forEach(e=>{r[n(e)]=1}),pc.each(s,(t,n)=>{t&&(e?a[n]||d.push(t):r[n]||d.push(t))})}return d},clearCheckboxReserve(){const e=this,t=e;return t.checkboxReserveRowMap={},e.$nextTick()},handleCheckboxReserveRow(e,t){const n=this,r=n,{checkboxReserveRowMap:i}=r,o=n.computeCheckboxOpts;if(o.reserve){const r=np(n,e);t?i[r]=e:i[r]&&delete i[r]}},handleCheckAllEvent(e,t){const n=this;Cm(n,t),e&&n.dispatchEvent("checkbox-all",{records:()=>n.getCheckboxRecords(),reserves:()=>n.getCheckboxReserveRecords(),indeterminates:()=>n.getCheckboxIndeterminateRecords(),checked:t},e)},triggerCheckAllEvent(e,t){const{checkboxOpts:n}=this,{trigger:r}=n;"manual"!==r&&(e&&e.stopPropagation(),this.handleCheckAllEvent(e,t))},toggleAllCheckboxRow(){const e=this,t=e;return this.handleCheckAllEvent(null,!t.isAllSelected),e.$nextTick()},clearCheckboxRow(){const e=this,t=e,n=e,r=e,{treeConfig:i}=t,{tableFullData:o}=r,a=e.computeTreeOpts,s=a.children||a.childrenField,l=e.computeCheckboxOpts,{checkField:c,reserve:u}=l,d=l.indeterminateField||l.halfField;if(c){const e=e=>{i&&d&&pc.set(e,d,!1),pc.set(e,c,!1)};i?pc.eachTree(o,e,{children:s}):o.forEach(e)}return u&&o.forEach(e=>this.handleCheckboxReserveRow(e,!1)),n.isAllSelected=!1,n.isIndeterminate=!1,r.selectCheckboxMaps={},r.treeIndeterminateRowMaps={},n.updateCheckboxFlag++,e.$nextTick()},triggerRadioRowEvent(e,t){const n=this,r=n,{selectRadioRow:i}=r,{row:o}=t,a=n.computeRadioOpts,{trigger:s,strict:l,checkMethod:c}=a;if("manual"!==s&&(e.stopPropagation(),!c||c({$table:n,row:o}))){let r=o,a=i!==r;l?xm(n,r,!1):(i===r&&(r=null),a=i!==r,a&&r?xm(n,r,!1):(r=null,n.clearRadioRow())),a&&n.dispatchEvent("radio-change",Object.assign({oldValue:i,newValue:r,selected:!!r},t),e)}},triggerCurrentColumnEvent(e,t){const n=this,r=n,{currentCol:i}=r,o=n.computeColumnOpts,a=n.computeCurrentColumnOpts,s=a.beforeSelectMethod||o.currentMethod;let l=t.column;const{trigger:c,strict:u}=a;if("manual"===c)return;let d=i!==l;!s||s({column:l,$table:n})?(u?n.setCurrentColumn(l):(i===l&&(l=null),d=i!==l,d&&l?n.setCurrentColumn(l):(l=null,n.clearCurrentColumn())),d&&n.dispatchEvent("current-column-change",Object.assign({oldValue:i,newValue:l,selected:!!l},t),e)):n.dispatchEvent("current-column-disabled",t,e)},triggerCurrentRowEvent(e,t){const n=this,r=n,{currentRow:i}=r,o=n.computeRowOpts,a=n.computeCurrentRowOpts,s=a.beforeSelectMethod||o.currentMethod;let{row:l}=t;const{trigger:c,strict:u}=a;if("manual"===c)return;let d=i!==l;!s||s({row:l,$table:n})?(u?n.setCurrentRow(l):(i===l&&(l=null),d=i!==l,d&&l?n.setCurrentRow(l):(l=null,n.clearCurrentRow())),d&&(n.dispatchEvent("current-row-change",Object.assign({oldValue:i,newValue:l,selected:!!l},t),e),n.dispatchEvent("current-change",Object.assign({oldValue:i,newValue:l},t),e))):n.dispatchEvent("current-row-disabled",t,e)},setCurrentRow(e){const t=this,n=t,r=t,i=r.xeGanttView,o=t.$refs.refElem,a=t.computeRowOpts;return t.clearCurrentRow(),r.currentRow=e,(a.isCurrent||n.highlightCurrentRow)&&o&&pc.arrayEach(o.querySelectorAll(`[rowid="${np(t,e)}"]`),e=>ah(e,"row--current")),i&&i.handleUpdateCurrentRow&&i.handleUpdateCurrentRow(e),t.$nextTick()},isCheckedByRadioRow(e){const t=this,n=t,{selectRadioRow:r}=n;return!(!e||!r)&&t.eqRow(r,e)},isCheckedByRadioRowKey(e){const t=this,n=t,{selectRadioRow:r}=n;return!!r&&e===np(t,r)},setRadioRow(e){const t=this;return xm(t,e,!0)},setRadioByRowKey(e){const t=this,n=t,{fullAllDataRowIdData:r}=n,i=op(e),o=r[i];return o?xm(t,o.row,!0):t.$nextTick()},setRadioRowKey(e){const t=this;return t.setRadioByRowKey(e)},clearCurrentRow(){const e=this,t=e,n=t.xeGanttView,r=e.$refs.refElem;return t.currentRow=null,t.hoverRow=null,r&&pc.arrayEach(r.querySelectorAll(".row--current"),e=>oh(e,"row--current")),n&&n.handleUpdateCurrentRow&&n.handleUpdateCurrentRow(),e.$nextTick()},clearRadioRow(){const e=this,t=e;return t.selectRadioRow=null,e.$nextTick()},getCurrentRecord(e){const t=this,n=t,r=t,{fullDataRowIdData:i,afterFullRowMaps:o,currentRow:a}=r,s=t.computeRowOpts;if(s.isCurrent||n.highlightCurrentRow){const n=np(t,a);if(e){if(i[n])return a}else if(o[n])return a}return null},getRadioRecord(e){const{selectRadioRow:t,fullDataRowIdData:n,afterFullRowMaps:r}=this;if(t){const i=np(this,t);if(e){if(n[i])return t}else if(r[i])return t}return null},triggerHoverEvent(e,{row:t}){const n=this;n.setHoverRow(t)},setHoverRow(e){const t=this,n=t,r=n.xeGanttView,i=t.$refs.refElem;t.clearHoverRow(),i&&pc.arrayEach(i.querySelectorAll(`.vxe-body--row[rowid="${np(t,e)}"]`),e=>ah(e,"row--hover")),n.hoverRow=e,r&&r.handleUpdateHoverRow&&r.handleUpdateHoverRow(e)},clearHoverRow(){const e=this,t=e,n=t.xeGanttView,r=e.$refs.refElem;r&&pc.arrayEach(r.querySelectorAll(".vxe-body--row.row--hover"),e=>oh(e,"row--hover")),t.hoverRow=null,n&&n.handleUpdateHoverRow&&n.handleUpdateHoverRow()},triggerHeaderCellClickEvent(e,t){const n=this,r=n.$xeGantt,i=n,o=n,{_lastResizeTime:a}=o,s=n.computeSortOpts,l=n.computeColumnOpts,c=n.computeCurrentColumnOpts,{column:u}=t,d=e.currentTarget,h=a&&a>Date.now()-300,p=vh(e,d,"vxe-cell--sort").flag,f=vh(e,d,"vxe-cell--filter").flag;if("cell"!==s.trigger||h||p||f||n.triggerSortEvent(e,u,Hf(n,u)),r){const e=r.reactData;e.activeBarRowid=null}return n.dispatchEvent("header-cell-click",Object.assign({triggerResizable:h,triggerSort:p,triggerFilter:f,cell:d},t),e),!l.isCurrent&&!i.highlightCurrentColumn||c.trigger&&!["header","default"].includes(c.trigger)||n.triggerCurrentColumnEvent(e,t),n.$nextTick()},triggerHeaderCellDblclickEvent(e,t){const n=this;n.dispatchEvent("header-cell-dblclick",Object.assign({cell:e.currentTarget},t),e)},getCurrentColumn(){const e=this,t=e,n=e,r=e.computeColumnOpts;return r.isCurrent||t.highlightCurrentColumn?n.currentCol:null},setCurrentColumn(e){const t=this,n=t,r=t,i=t,{mouseConfig:o}=n,a=t.computeMouseOpts,s=o&&a.selected,l=pp(t,e);return l&&(t.clearCurrentColumn(),i.currentCol=l,r.currColFlag++),t.$nextTick().then(()=>{s&&t.addCellSelectedClass()})},clearCurrentColumn(){const e=this,t=e,n=e;return n.currentCol=null,t.currColFlag++,e.$nextTick()},triggerCellClickEvent(e,t){const n=this,r=n.$xeGantt,i=n,o=n,{treeConfig:a,highlightCurrentRow:s,highlightCurrentColumn:l,editConfig:c,aggregateConfig:u,rowGroupConfig:d}=i,{editStore:h,isDragResize:p,expandColumn:f,checkboxColumn:m,radioColumn:g}=o;if(p)return;const v=n.computeExpandOpts,b=n.computeEditOpts,y=n.computeTreeOpts,x=n.computeRadioOpts,w=n.computeCheckboxOpts,C=n.computeKeyboardOpts,_=n.computeAggregateOpts,S=n.computeRowOpts,k=n.computeColumnOpts,E=n.computeCurrentColumnOpts,{actived:O,focused:T}=h,{row:$,column:D}=t,{type:M,treeNode:F,rowGroupNode:R}=D,I="radio"===M,A="checkbox"===M,P="expand"===M,L=e.currentTarget,N=I&&vh(e,L,"vxe-cell--radio").flag,j=A&&vh(e,L,"vxe-cell--checkbox").flag,B=F&&vh(e,L,"vxe-cell--tree-btn").flag,V=P&&vh(e,L,"vxe-table--expanded").flag,z=P&&vh(e,L,"vxe-row-group--node-btn").flag;if(t=Object.assign({cell:L,triggerRadio:N,triggerCheckbox:j,triggerTreeNode:B,triggerExpandNode:V},t),j||N||(!V&&(f&&"row"===v.trigger||P&&"cell"===v.trigger)&&n.triggerRowExpandEvent(e,t),a&&("row"===y.trigger||F&&"cell"===y.trigger)&&n.triggerTreeExpandEvent(e,t),(u||d)&&("row"===_.trigger||R&&"cell"===_.trigger)&&n.triggerRowGroupExpandEvent(e,t)),B||(V||z||((S.isCurrent||s)&&(j||N||n.triggerCurrentRowEvent(e,t)),!k.isCurrent&&!l||E.trigger&&!["cell","default"].includes(E.trigger)||j||N||n.triggerCurrentColumnEvent(e,t),!N&&(g&&"row"===x.trigger||I&&"cell"===x.trigger)&&n.triggerRadioRowEvent(e,t),!j&&(m&&"row"===w.trigger||A&&"cell"===w.trigger)&&n.handleToggleCheckRowEvent(e,t)),ld(c)&&(C.arrowCursorLock&&e&&"cell"===b.mode&&e.target&&/^input|textarea$/i.test(e.target.tagName)&&(T.column=D,T.row=$),"manual"===b.trigger?O.args&&O.row===$&&D!==O.column&&("row"===b.mode?pm(n,e,t):hm(n,"blur").catch(e=>e)):O.args&&$===O.row&&D===O.column||("click"===b.trigger||"dblclick"===b.trigger&&"row"===b.mode&&O.row===$)&&pm(n,e,t))),ld(c)&&!1!==b.autoClear&&"dblclick"===b.trigger&&O.row&&O.column&&("row"===b.mode?n.eqRow(O.row,$)||n.handleClearEdit(e):"cell"===b.mode&&(n.eqRow(O.row,$)&&O.column.id===D.id||n.handleClearEdit(e))),r){const e=r.reactData;e.activeBarRowid=null}n.dispatchEvent("cell-click",t,e)},triggerCellDblclickEvent(e,t){const n=this,r=n,i=n,{editConfig:o}=r,{editStore:a,isDragResize:s}=i;if(s)return;const l=n.computeEditOpts,{actived:c}=a,u=e.currentTarget;t=Object.assign({cell:u},t),ld(o)&&"dblclick"===l.trigger&&(c.args&&e.currentTarget===c.args.cell||("row"===l.mode?hm(n,"blur").catch(e=>e).then(()=>{n.handleEdit(t,e).then(()=>hm(n,"change")).catch(e=>e)}):"cell"===l.mode&&n.handleEdit(t,e).then(()=>hm(n,"change")).catch(e=>e))),n.dispatchEvent("cell-dblclick",t,e)},triggerFooterCellClickEvent(e,t){const n=this,r=n.$xeGantt,i=e.currentTarget;if(t=Object.assign({cell:i},t),r){const e=r.reactData;e.activeBarRowid=null}n.dispatchEvent("footer-cell-click",t,e)},triggerFooterCellDblclickEvent(e,t){const n=this,r=e.currentTarget;t=Object.assign({cell:r},t),n.dispatchEvent("footer-cell-dblclick",t,e)},handleColumnSortEvent(e,t){const n=this,r=n,{mouseConfig:i}=r,o=n.computeMouseOpts,{field:a,sortable:s,order:l}=t;if(s){const r={$table:n,$event:e,column:t,field:a,property:a,order:l,sortList:n.getSortColumns(),sortTime:t.sortTime};i&&o.area&&n.handleSortEvent&&n.handleSortEvent(e,r),l||n.dispatchEvent("clear-sort",r,e),n.dispatchEvent("sort-change",r,e)}},triggerSortEvent(e,t,n){const r=this,i=r.computeSortOpts,{multiple:o,allowClear:a}=i,{field:s,sortable:l}=t;(l||t.remoteSort)&&(n&&t.order!==n?r.sort({field:s,order:n}):a&&r.clearSort(o?t:null),r.handleColumnSortEvent(e,t))},handleCellRuleUpdateStatus(e,t,n){const r=this,i=r,{validStore:o}=i,{row:a,column:s}=t;if(r.hasCellRules&&r.hasCellRules(e,a,s)){const t=r.getCellElement(a,s);if(t){const i=!pc.isUndefined(n);return r.validCellRules(e,a,s,n).then(()=>{i&&o.visible&&kp(a,s,n),r.clearValidate(a,s)}).catch(({rule:e})=>{i&&kp(a,s,n),r.showValidTooltip({rule:e,row:a,column:s,cell:t})})}}return r.$nextTick()},triggerHeaderCellMousedownEvent(e,t){const n=this,r=n,{mouseConfig:i}=r,o=n.computeMouseOpts,a=n.computeColumnOpts,s=n.computeColumnDragOpts,{trigger:l,isCrossDrag:c,isPeerDrag:u,disabledMethod:d}=s,h=e.currentTarget,p=h&&h.tagName&&"input"===h.tagName.toLowerCase(),f=vh(e,h,"vxe-cell--checkbox").flag,m=vh(e,h,"vxe-cell--sort").flag,g=vh(e,h,"vxe-cell--filter").flag;let v=!1;const b=a.drag&&"cell"===l;if(!(p||f||m||g)){const{column:r}=t;!b||r.fixed||!c&&!u&&r.parentId||d&&d(t)||(v=!0,n.handleHeaderCellDragMousedownEvent(e,t))}!v&&i&&o.area&&n.handleHeaderCellAreaMouseDnEvent&&n.handleHeaderCellAreaMouseDnEvent(e,Object.assign({cell:h,triggerSort:m,triggerFilter:g},t)),n.focus(),n.closeMenu&&n.closeMenu()},triggerCellMousedownEvent(e,t){const n=this,{column:r}=t,{type:i,treeNode:o}=r,a="radio"===i,s="checkbox"===i,l="expand"===i,c=n.computeRowOpts,u=n.computeRowDragOpts,{trigger:d,isCrossDrag:h,isPeerDrag:p,disabledMethod:f}=u,m=e.currentTarget;t.cell=m;const g=m&&m.tagName&&"input"===m.tagName.toLowerCase(),v=a&&vh(e,m,"vxe-cell--radio").flag,b=s&&vh(e,m,"vxe-cell--checkbox").flag,y=o&&vh(e,m,"vxe-cell--tree-btn").flag,x=l&&vh(e,m,"vxe-table--expanded").flag;let w=!1;c.drag&&(w="row"===d||r.dragSort&&"cell"===d);let C=!1;g||v||b||y||x||!w||!h&&!p&&t.level||f&&f(t)||(C=!0,n.handleCellDragMousedownEvent(e,t)),!C&&n.handleCellMousedownEvent&&n.handleCellMousedownEvent(e,t),n.focus(),n.closeFilter(),n.closeMenu&&n.closeMenu()},triggerCellMouseupEvent(){const e=this;Um(e)},handleRowDragDragstartEvent(e){const t=this;e.dataTransfer&&e.dataTransfer.setDragImage(Jd(),0,0),t.closeTooltip()},handleRowDragSwapEvent(e,t,n,r,i,o){const a=this,s=a.$xeGantt,l=a,c=a,u=a,{treeConfig:d,dragConfig:h}=l,p=a.computeRowDragOpts,{afterFullData:f,tableFullData:m,fullAllDataRowIdData:g}=u,{animation:v,isPeerDrag:b,isCrossDrag:y,isSelfToChildDrag:x,dragEndMethod:w,dragToChildMethod:C}=p,_=a.computeTreeOpts,S=a.computeCellOpts,k=a.computeRowOpts,E=a.computeDefaultRowHeight,{transform:O,rowField:T,mapChildrenField:$,parentField:D}=_,M=_.children||_.childrenField,F=w||(h?h.dragEndMethod:null),R="bottom"===i?1:0,I=a.$refs.refElem,A={status:!1};if(!(I&&r&&n))return Km(a),Promise.resolve(A);if(r!==n){const t={oldRow:n,newRow:r,dragRow:n,dragPos:i,dragToChild:!!o,offsetIndex:R},l=np(a,n),h=g[l]||{},p=h._index;let w=0,_=-1;if(v){w=mp(h,S,k,E);const e=I.querySelector(`.vxe-body--row[rowid="${l}"]`);e&&(_=e.offsetTop)}let P=-1,L=-1;const N=h,j=np(a,r),B=g[j],V={};let z=!1;if(d&&O&&N&&B){const{level:e}=N,{level:t}=B;if(pc.eachTree([n],e=>{V[np(a,e)]=e},{children:$}),e&&t)if(b&&!y){if(N.row[D]!==B.row[D])return Km(a),Promise.resolve(A)}else{if(!y)return Km(a),Promise.resolve(A);if(V[j]&&(z=!0,!y||!x))return ad.modal&&ad.modal.message({status:"error",content:$f("vxe.error.treeDragChild")}),Km(a),Promise.resolve(A)}else if(e){if(!y)return Km(a),Promise.resolve(A)}else if(t){if(!y)return Km(a),Promise.resolve(A);if(V[j]&&(z=!0,!y||!x))return ad.modal&&ad.modal.message({status:"error",content:$f("vxe.error.treeDragChild")}),Km(a),Promise.resolve(A)}}const H=x&&C?C(t):o;return F&&Km(a),Promise.resolve(!F||F(t)).then(t=>{if(!t)return A;if(d){if(O&&N&&B){const e=pc.toTreeArray(u.afterTreeFullData,{updated:!1,key:T,parentKey:D,children:$}),t=a.findRowIndexOf(e,n);e.splice(t,1);const i=a.findRowIndexOf(e,r),o=i+R;e.splice(o,0,n),z&&y&&x&&pc.each(n[M],e=>{e[D]=n[D]}),n[D]=H?r[T]:r[D],u.tableFullTreeData=pc.toArrayTree(e,{key:T,parentKey:D,children:M,mapChildren:$})}}else{P=a.findRowIndexOf(f,n);const e=a.findRowIndexOf(m,n);f.splice(P,1),m.splice(e,1);const t=a.findRowIndexOf(f,r),i=a.findRowIndexOf(m,r);L=t+R;const o=i+R;f.splice(L,0,n),m.splice(o,0,n)}return a.handleClearStack(),a.handleTableData(d&&O),a.cacheRowMap(!1),em(a),d&&O||lm(a),a.checkSelectionStatus(),c.scrollYLoad&&a.updateScrollYSpace(),e&&a.dispatchEvent("row-dragend",{oldRow:n,newRow:r,dragRow:n,dragPos:i,dragToChild:H,offsetIndex:R,_index:{newIndex:L,oldIndex:P}},e),a.$nextTick().then(()=>{if(v){const{tableData:e}=c,{fullAllDataRowIdData:t}=u,n=t[l],r=n._index,i=e[0],o=t[np(a,i)];let d=I;if(s){const e=s.$refs.refGanttContainerElem;e&&(d=e)}if(o){const t=o._index,i=t+e.length;let l=-1,c=-1,u=1;if(p<t)l=0,c=r-t;else if(p>i){const t=n.$index;l=t+1,c=e.length,u=-1}else r>p?(l=p-t,c=l+r-p):(l=r-t,c=l+p-r+1,u=-1);const h=e.slice(l,c);if(h.length){const e=[];h.forEach(t=>{const n=np(a,t);e.push(`.vxe-body--row[rowid="${n}"]`),s&&e.push(`.vxe-gantt-view--body-row[rowid="${n}"]`,`.vxe-gantt-view--chart-row[rowid="${n}"]`)});const t=d.querySelectorAll(e.join(","));xf(t,u*w)}}const h=[`.vxe-body--row[rowid="${l}"]`];s&&h.push(`.vxe-gantt-view--body-row[rowid="${l}"]`,`.vxe-gantt-view--chart-row[rowid="${l}"]`);const f=d.querySelectorAll(h.join(",")),m=f[0];_>-1&&m&&xf(f,_-m.offsetTop)}Xg(a),Zg(a),a.updateCellAreas(),a.recalculate()}).then(()=>({status:!0}))}).catch(()=>A).then(e=>(Km(a),e))}return Km(a),Promise.resolve(A)},handleCrossTableRowDragCancelEvent(){const e=this;Km(e)},handleCrossTableRowDragFinishEvent(e){const t=this,n=t.$xeGantt,r=t,i=t,o=kf(t),{tableData:a}=r,{fullAllDataRowIdData:s}=i,l=t.computeRowOpts,c=t.computeCellOpts,u=t.computeDefaultRowHeight,d=t.computeRowDragOpts,{animation:h,isCrossTableDrag:p}=d,f=t.computeTreeOpts,{mapChildrenField:m}=f,g=t.$refs.refElem;if(p&&Vf&&o){const{row:r}=o;if(r){const o=np(t,r),d=s[o];let p=0,f=-1;d&&(h&&(p=mp(d,c,l,u)),f=d.$index);const v=f>-1&&f<a.length-1?a.slice(f+1):[],b=pc.toTreeArray([r],{updated:!0,children:m});t.remove(b).then(()=>{if(h&&p&&v.length){const e=i.xeGanttView;let r=g;if(n&&e){const e=n.$refs.refGanttContainerElem;e&&(r=e)}const o=[];v.forEach(e=>{const r=np(t,e);o.push(`.vxe-body--row[rowid="${r}"]`),n&&o.push(`.vxe-gantt-view--body-row[rowid="${r}"]`,`.vxe-gantt-view--chart-row[rowid="${r}"]`)});const a=r.querySelectorAll(o.join(","));xf(a,p)}}),t.dispatchEvent("row-remove-dragend",{row:r},e),Km(t)}}},handleCrossTableRowDragoverEmptyEvent(e){const t=this,n=t,r=t,{tableData:i}=n,o=t.computeRowDragOpts,{isCrossTableDrag:a}=o;if(a&&Vf&&!i.length){const{$oldTable:i,$newTable:o}=Vf;if(i){const a=i;i.xID!==t.xID&&(o&&o.xID!==t.xID&&o.hideCrossTableRowDropClearStatus(),e.preventDefault(),i.hideCrossTableRowDropClearStatus(),Vf.$newTable=t,r.prevDragRow=null,n.dragTipText=a.dragTipText,rg(t,e,e.currentTarget,null,!0,""))}}},handleCrossTableRowDragInsertEvent(e){const t=this,n=t.$xeGantt,r=t,i=t,o=t,a=kf(t),{treeConfig:s}=r,{prevDragRow:l,prevDragPos:c,prevDragToChild:u}=o,d=t.computeRowDragOpts,{animation:h,isSelfToChildDrag:p,isCrossTableDrag:f,dragEndMethod:m,dragToChildMethod:g}=d,v=t.computeRowOpts,b=t.computeCellOpts,y=t.computeDefaultRowHeight,x=t.computeTreeOpts,{parentField:w,mapChildrenField:C}=x,_=x.children||x.childrenField;if(f&&Vf&&a){const{row:r}=a,{$oldTable:d}=Vf,f=t.$refs.refElem;if(d&&r){const a=r;let x=-1;l&&(x="bottom"===c?1:0);const S={oldRow:a,newRow:l,dragRow:a,dragPos:c,dragToChild:!!u,offsetIndex:x},k=p&&g?g(S):u,E={status:!1};m&&Km(t),Promise.resolve(!m||m(S)).then(u=>{if(!u)return d&&d.xID!==t.xID&&d.handleCrossTableRowDragCancelEvent(e),Km(t),E;let p=Promise.resolve();if(s){const n=pc.toTreeArray([a],{updated:!0,children:C});d.handleCrossTableRowDragFinishEvent(e),a[w]=l?l[w]:null,n.forEach(e=>{e[_]=void 0,e[C]=void 0}),p=l?"bottom"===c?t.insertNextAt(n,l):t.insertAt(n,l):t.insert(n)}else d.handleCrossTableRowDragFinishEvent(e),p=l?"bottom"===c?t.insertNextAt(a,l):t.insertAt(a,l):t.insert(a);t.dispatchEvent("row-insert-dragend",{oldRow:r,newRow:l,dragRow:a,dragPos:c,dragToChild:k,offsetIndex:x},e),og(t),p.then(()=>{const{tableData:e}=i,{fullAllDataRowIdData:r}=o,s=np(t,a),l=r[s];let c=0,u=-1;l&&(h&&(c=mp(l,b,v,y)),u=l.$index);const d=u>-1?e.slice(u):[];if(h&&c&&d.length){const e=o.xeGanttView;let r=f;if(n&&e){const e=n.$refs.refGanttContainerElem;e&&(r=e)}const i=[];d.forEach(e=>{const r=np(t,e);i.push(`.vxe-body--row[rowid="${r}"]`),n&&i.push(`.vxe-gantt-view--body-row[rowid="${r}"]`,`.vxe-gantt-view--chart-row[rowid="${r}"]`)});const a=r.querySelectorAll(i.join(","));xf(a,-c)}})})}}},hideCrossTableRowDropClearStatus(){const e=this;ig(e)},handleRowDragDragendEvent(e){const t=this,n=t,r=t,i=t,{treeConfig:o}=n,{fullAllDataRowIdData:a,prevDragToChild:s}=i,{dragRow:l}=r,c=t.computeTreeOpts,{lazy:u}=c,d=c.hasChild||c.hasChildField,{prevDragRow:h,prevDragPos:p}=i,f=t.computeRowDragOpts,{isCrossTableDrag:m,isCrossDrag:g}=f;if(m&&Vf){const{$newTable:n}=Vf;if(n&&n.xID!==t.xID)return void(o&&!g||n.handleCrossTableRowDragInsertEvent(e))}if(o&&u&&s){const n=np(t,h),r=a[n];h[d]?r&&r.treeLoaded&&t.handleRowDragSwapEvent(e,!0,l,h,p,s):t.handleRowDragSwapEvent(e,!0,l,h,p,s)}else t.handleRowDragSwapEvent(e,!0,l,h,p,s)},handleRowDragDragoverEvent(e){const t=this,n=t,r=t,i=t,{treeConfig:o}=n,{fullAllDataRowIdData:a}=i,{dragRow:s}=r,l=t.computeTreeOpts,{lazy:c,transform:u,parentField:d}=l,h=l.hasChild||l.hasChildField,p=t.computeRowDragOpts,{isPeerDrag:f,isCrossDrag:m,isToChildDrag:g,isCrossTableDrag:v}=p;if(!s&&(!v||o&&!m||!Vf))return void e.preventDefault();const b=sh(e),y=e.currentTarget,x=y.getAttribute("rowid")||"",w=a[x];if(w){e.preventDefault();const n=w.row,a=e.clientY-y.getBoundingClientRect().y,l=a<y.clientHeight/2?"top":"bottom";if(i.prevDragToChild=!!(o&&u&&m&&g&&b),i.prevDragRow=n,i.prevDragPos=l,v&&(!o||m)&&Vf){const{$oldTable:n,$newTable:i}=Vf;if(n){const a=n;if(n.xID===t.xID)i&&i.hideCrossTableRowDropClearStatus(),r.isCrossDragRow=!1,a.isCrossDragRow=!1,Vf.$newTable=null;else if(!o||m)return i&&i.xID!==t.xID&&i.hideCrossTableRowDropClearStatus(),n.hideCrossTableRowDropClearStatus(),a.isCrossDragRow=!0,r.dragTipText=a.dragTipText,Vf.$newTable=t,void rg(t,e,y,null,!0,l)}}if(t.eqRow(s,n)||b&&o&&c&&n[h]&&w&&!w.treeLoaded||!m&&o&&u&&(f?s[d]!==n[d]:w.level))return void rg(t,e,y,null,!1,l);rg(t,e,y,null,!0,l),t.dispatchEvent("row-dragover",{oldRow:s,targetRow:n,dragPos:l},e)}},handleCellDragMousedownEvent(e,t){var n;const r=this,i=r,o=r,a=kf(r);e.stopPropagation();const{dragConfig:s}=i,l=r.computeRowDragOpts,{isCrossTableDrag:c,trigger:u,dragStartMethod:d}=l,{row:h}=t,p=e.currentTarget,f="cell"===u||"row"===u?p:null===(n=p.parentElement)||void 0===n?void 0:n.parentElement,m=f.parentElement,g=d||(s?s.dragStartMethod:null);if(Zm(r),g&&!g(t))return m.draggable=!1,o.dragRow=null,o.dragCol=null,Ym(r),void ig(r);c&&(a.row=h,Vf={$oldTable:r,$newTable:null}),o.dragRow=h,o.isCrossDragRow=!1,o.dragCol=null,m.draggable=!0,Qm(r,h),Jm(r,f),r.dispatchEvent("row-dragstart",t,e)},handleCellDragMouseupEvent(){const e=this;Um(e)},handleHeaderCellDragDragstartEvent(e){const t=this;e.dataTransfer&&e.dataTransfer.setDragImage(Jd(),0,0),t.closeTooltip()},handleColDragSwapColumn(){const e=this;return $g(e),Mg(e,!1).then(()=>{e.updateCellAreas(),e.saveCustomStore("update:sort")})},handleColDragSwapEvent(e,t,n,r,i,o){const a=this,s=a,l=a,c=a,{mouseConfig:u}=s,d=a.computeColumnDragOpts,{animation:h,isPeerDrag:p,isCrossDrag:f,isSelfToChildDrag:m,isToChildDrag:g,dragEndMethod:v,dragToChildMethod:b}=d,{collectColumn:y,fullColumnIdData:x}=c,w=a.$refs.refElem,C="right"===i?1:0,_={status:!1};if(!(w&&r&&n))return Promise.resolve(_);if(r!==n){const s=n,d=r,S={oldColumn:s,newColumn:d,dragColumn:s,dragPos:i,dragToChild:!!o,offsetIndex:C};let k=null;const E=[];let O=0;h&&pc.eachTree([s],e=>{k||e.children&&e.children.length||(k=e,O+=e.renderWidth),E.push(e)}),k||(k=s);const T=x[k.id]||{},$=T._index;let D=-1;if(h){const e=w.querySelector(`.vxe-table--column[colid="${k.id}"]`);e&&(D=e.offsetLeft)}let M=-1,F=-1;const R={};pc.eachTree([s],e=>{R[e.id]=e});let I=!1;if(s.parentId&&d.parentId)if(p&&!f){if(s.parentId!==d.parentId)return Xm(a),Promise.resolve(_)}else{if(!f)return Xm(a),Promise.resolve(_);if(R[d.id]&&(I=!0,!f||!m))return ad.modal&&ad.modal.message({status:"error",content:$f("vxe.error.treeDragChild")}),Xm(a),Promise.resolve(_)}else if(s.parentId){if(!f)return Xm(a),Promise.resolve(_)}else if(d.parentId){if(!f)return Xm(a),Promise.resolve(_);if(R[d.id]&&(I=!0,!f||!m))return ad.modal&&ad.modal.message({status:"error",content:$f("vxe.error.treeDragChild")}),Xm(a),Promise.resolve(_)}const A=m&&b?b(S):o;return Promise.resolve(!v||v(S)).then(n=>{if(!n)return _;const r=pc.findTree(y,e=>e.id===s.id);if(I&&f&&m){if(r){const{items:e,index:t}=r,n=s.children||[];n.forEach(e=>{e.parentId=s.parentId}),e.splice(t,1,...n),s.children=[]}}else if(r){const{items:e,index:t,parent:n}=r;e.splice(t,1),n||(M=t)}const o=pc.findTree(y,e=>e.id===d.id);if(o){const{items:e,index:t,parent:n}=o;f&&g&&A?(s.parentId=d.id,d.children=(d.children||[]).concat([s])):(s.parentId=d.parentId,e.splice(t+C,0,s)),n||(F=t)}return pc.eachTree(y,(e,t,n,r,i)=>{if(!i){const n=t+1;e.renderSortNumber=n}}),a.handleClearStack(),u&&(a.clearSelected&&a.clearSelected(),a.clearCellAreas&&(a.clearCellAreas(),a.clearCopyCellArea())),e&&a.dispatchEvent("column-dragend",{oldColumn:s,newColumn:d,dragColumn:s,dragPos:i,dragToChild:A,offsetIndex:C,_index:{newIndex:F,oldIndex:M}},e),a.$nextTick().then(()=>{if(t)return a.handleColDragSwapColumn()}).then(()=>{if(h){const{tableColumn:e}=l,{visibleColumn:t,fullColumnIdData:n}=c;let r=null;const i={};if(pc.eachTree([s],e=>{r||e.children&&e.children.length||(r=e),i[e.id]=e}),r||(r=s),O&&E.length){const o=pc.findIndexOf(t,e=>!!r&&e.id===r.id),a=e[0],s=n[a.id];if(s){const t=s._index,n=t+e.length;let r=-1,a=-1,l=1;if($<t)r=0,a=o-t;else if($>n){const t=T.$index;r=t+1,a=e.length,l=-1}else o>$?(r=$-t,a=r+o-$):(r=o-t+1,a=r+$-o,l=-1);const c=[],u={};for(let o=r;o<a;o++){const t=e[o];u[t.id]||i[t.id]||(u[t.id]=t,c.push(t))}if(pc.eachTree([d],e=>{u[e.id]||(u[e.id]=e,c.push(e))}),c.length){const e=w.querySelectorAll(c.map(e=>`.vxe-table--column[colid="${e.id}"]`).join(","));Cf(e,l*O)}}const l=w.querySelectorAll(E.map(e=>`.vxe-table--column[colid="${e.id}"]`).join(",")),c=l[0];D>-1&&c&&Cf(l,D-c.offsetLeft)}}return Kg(a),Dg(a),a.updateCellAreas(),{status:!0}})}).catch(()=>_).then(e=>(Xm(a),e))}return Xm(a),Promise.resolve(_)},handleHeaderCellDragDragendEvent(e){const t=this,n=t,r=t,{dragCol:i}=n,{prevDragCol:o,prevDragPos:a,prevDragToChild:s}=r;t.handleColDragSwapEvent(e,!0,i,o,a,s)},handleHeaderCellDragDragoverEvent(e){const t=this,n=t,r=t,{dragCol:i}=n,o=t.computeColumnDragOpts,{isToChildDrag:a,isPeerDrag:s,isCrossDrag:l}=o;if(!i)return void e.preventDefault();const c=sh(e),u=e.currentTarget,d=u.getAttribute("colid"),h=t.getColumnById(d);if(h){e.preventDefault();const{clientX:n}=e,o=n-u.getBoundingClientRect().x,d=o<u.clientWidth/2?"left":"right";if(r.prevDragToChild=!!(l&&a&&c),r.prevDragCol=h,r.prevDragPos=d,h.fixed||i&&i.id===h.id||!l&&(s?i.parentId!==h.parentId:h.parentId))return void rg(t,e,null,u,!1,d);rg(t,e,null,u,!0,d),t.dispatchEvent("column-dragover",{oldColumn:i,targetColumn:h,dragPos:d},e);const p=t.$refs.refElem;if(!p)return;const f=t.$refs.refScrollXHandleElem,m=t.$refs.refTableBody,g=m?m.$el:null,v=f||g;if(v){const e=p.getBoundingClientRect(),r=p.clientWidth,i=t.$refs.refLeftContainer,o=i?i.clientWidth:0,a=t.$refs.refRightContainer,s=a?a.clientWidth:0,l=e.x+o,c=e.x+r-s,u=28,d=n-l,h=c-n;if(d>0&&d<=u){const e=Math.floor(r/(d>u/2?240:120));v.scrollLeft-=e*(u-d)}else if(h>0&&h<=u){const e=Math.floor(r/(h>u/2?240:120));v.scrollLeft+=e*(u-h)}}}},handleHeaderCellDragMousedownEvent(e,t){var n;const r=this,i=r;e.stopPropagation();const o=r.computeColumnDragOpts,{trigger:a,dragStartMethod:s}=o,{column:l}=t,c=e.currentTarget,u="cell"===a?c:null===(n=c.parentElement)||void 0===n?void 0:n.parentElement;if(tg(r),s&&!s(t))return u.draggable=!1,i.dragRow=null,i.dragCol=null,ig(r),void Ym(r);i.dragCol=l,i.dragRow=null,u.draggable=!0,Ym(r),eg(r,l),ng(r,u),r.dispatchEvent("column-dragstart",t,e)},handleHeaderCellDragMouseupEvent(){const e=this,t=e;tg(e),ig(e),Ym(e),t.dragRow=null,t.dragCol=null},setPendingRow(e,t){const n=this,r=n,i=n,{handleGetRowId:o}=ip(n),{pendingRowMaps:a}=i;return e&&!pc.isArray(e)&&(e=[e]),t?e.forEach(e=>{const t=o(e);t&&!a[t]&&(a[t]=e)}):e.forEach(e=>{const t=o(e);t&&a[t]&&delete a[t]}),r.pendingRowFlag++,n.$nextTick()},togglePendingRow(e){const t=this,n=t,r=t,{handleGetRowId:i}=ip(t),{pendingRowMaps:o}=r;return e&&!pc.isArray(e)&&(e=[e]),e.forEach(e=>{const t=i(e);t&&(o[t]?delete o[t]:o[t]=e)}),n.pendingRowFlag++,t.$nextTick()},hasPendingByRow(e){const t=this;return t.isPendingByRow(e)},isPendingByRow(e){const t=this,n=t,{pendingRowMaps:r}=n,i=np(t,e);return!!r[i]},getPendingRecords(){const e=this,t=e,{fullAllDataRowIdData:n,pendingRowMaps:r}=t,i=[];return pc.each(r,(e,t)=>{n[t]&&i.push(e)}),i},clearPendingRow(){const e=this,t=e,n=e;return n.pendingRowMaps={},t.pendingRowFlag++,e.$nextTick()},sort(e,t){const n=this,r=n.computeSortOpts,{multiple:i,remote:o,orders:a}=r;if(e&&pc.isString(e)&&(e=[{field:e,order:t}]),pc.isArray(e)||(e=[e]),e.length){let t;return i||Bm(n),(i?e:[e[0]]).forEach((e,r)=>{let{field:i,order:o}=e,s=i;pc.isString(i)&&(s=n.getColumnByField(i)),s&&(s.sortable||s.remoteSort)&&(t||(t=s),a&&-1===a.indexOf(o)&&(o=Hf(n,s)),s.order!==o&&(s.order=o),s.sortTime=Date.now()+r)}),(!o||t&&t.remoteSort)&&n.handleTableData(!0),n.$nextTick().then(()=>(Xg(n),n.updateCellAreas(),dm(n)))}return n.$nextTick()},setSort(e,t){const n=this;return jm(n,null,e,t)},setSortByEvent(e,t){const n=this;return jm(n,e,t,!0)},clearSort(e){const t=this,n=t.computeSortOpts;if(e){const n=pp(t,e);n&&(n.order=null)}else Bm(t);return n.remote||t.handleTableData(!0),t.$nextTick().then(()=>(Xg(t),dm(t)))},clearSortByEvent(e,t){const n=this,r=n,{tableFullColumn:i}=r,o=n.computeSortOpts,{multiple:a}=o,s=[];let l=null;if(e&&(t?(l=pp(n,t),l&&(l.order=null)):i.forEach(e=>{e.order&&(e.order=null,s.push(e))}),o.remote||n.handleTableData(!0),a||(l=s[0]),l&&n.handleColumnSortEvent(e,l),a&&s.length)){const t={$table:n,$event:e,cols:s,sortList:[]};n.dispatchEvent("clear-all-sort",t,e)}return n.$nextTick().then(()=>(Xg(n),dm(n)))},getSortColumn(){const e=this,t=e,{tableFullColumn:n}=t;return Ef("vxe.error.delFunc",["getSortColumn","getSortColumns"]),pc.find(n,e=>(e.sortable||e.remoteSort)&&e.order)},isSort(e){const t=this;if(e){const n=pp(t,e);return n&&n.sortable&&!!n.order}return t.getSortColumns().length>0},getSortColumns(){const e=this,t=e,n=e.computeSortOpts,{multiple:r,chronological:i}=n,o=[],{tableFullColumn:a}=t;return a.forEach(e=>{const{field:t,order:n}=e;(e.sortable||e.remoteSort)&&n&&o.push({column:e,field:t,property:t,order:n,sortTime:e.sortTime})}),r&&i&&o.length>1?pc.orderBy(o,"sortTime"):o},setFilterByEvent(e,t,n){const r=this,i=pp(r,t);return i&&i.filters?(i.filters=yp(n||[],i.id),r.handleColumnConfirmFilter(i,e)):r.$nextTick()},closeFilter(){const e=this,t=e,{filterStore:n}=t,{column:r,visible:i}=n;if(n.isAllSelected=!1,n.isIndeterminate=!1,n.visible=!1,i){const t=r?r.field:null;e.dispatchEvent("filter-visible",{column:r,property:t,field:t,filterList:()=>e.getCheckedFilters(),visible:!1},null)}return e.$nextTick()},isActiveFilterByColumn(e){const t=this,n=pp(t,e);return n?n.filters&&n.filters.some(e=>e.checked):t.getCheckedFilters().length>0},isFilter(e){const t=this;return t.isActiveFilterByColumn(e)},clearFilterByEvent(e,t){const n=this,r=n,i=n,{filterStore:o}=r,{tableFullColumn:a}=i,s=n.computeFilterOpts,{multiple:l}=s,c=[];let u=null;if(t?(u=pp(n,t),u&&n.handleClearFilter(u)):a.forEach(e=>{e.filters&&(c.push(e),n.handleClearFilter(e))}),t&&u===o.column||Object.assign(o,{isAllSelected:!1,isIndeterminate:!1,style:null,options:[],column:null,multiple:!1,visible:!1}),s.remote||n.updateData(),l||(u=c[0]),u){const t=()=>n.getCheckedFilters(),r=[],i=[];u.filters.forEach(e=>{e.checked&&(r.push(e.value),i.push(e.data))});const o={$table:n,$event:e,column:u,field:u.field,property:u.field,values:r,datas:i,filters:t,filterList:t};n.dispatchEvent("filter-change",o,e),n.dispatchEvent("clear-filter",o,e)}if(l&&c.length){const t={$table:n,$event:e,cols:c,filterList:[]};n.dispatchEvent("clear-all-filter",t,e)}return n.$nextTick()},isRowExpandLoaded(e){const t=this,{fullAllDataRowIdData:n}=this,r=n[np(t,e)];return r&&!!r.expandLoaded},clearRowExpandLoaded(e){const t=this,n=t,r=t,{fullAllDataRowIdData:i,rowExpandLazyLoadedMaps:o}=r,a=t.computeExpandOpts,{lazy:s}=a,l=np(t,e),c=i[l];return s&&c&&(c.expandLoaded=!1,delete o[l]),n.rowExpandedFlag++,t.$nextTick()},reloadRowExpand(e){const t=this,n=t,{rowExpandLazyLoadedMaps:r}=n,i=t.computeExpandOpts,{lazy:o}=i,a=np(this,e);return o&&!r[a]&&t.clearRowExpandLoaded(e).then(()=>Om(t,e)),t.$nextTick()},reloadExpandContent(e){const t=this;return Ef("vxe.error.delFunc",["reloadExpandContent","reloadRowExpand"]),t.reloadRowExpand(e)},triggerRowExpandEvent(e,t){const n=this,r=n,i=n,{expandColumn:o}=r,{rowExpandLazyLoadedMaps:a}=i,s=n.computeExpandOpts,{row:l}=t,{lazy:c,trigger:u}=s;if("manual"===u)return;e.stopPropagation();const d=np(n,l);if(!c||!a[d]){const t=!n.isRowExpandByRow(l),r=o?n.getColumnIndex(o):-1,i=o?n.getVMColumnIndex(o):-1;n.setRowExpand(l,t),n.dispatchEvent("toggle-row-expand",{expanded:t,column:o,columnIndex:r,$columnIndex:i,row:l,rowIndex:n.getRowIndex(l),$rowIndex:n.getVMRowIndex(l)},e)}},toggleRowExpand(e){const t=this;return t.setRowExpand(e,!t.isRowExpandByRow(e))},setAllRowExpand(e){const t=this,n=t,r=t,i=t.computeTreeOpts,{tableFullData:o,tableFullTreeData:a}=r,s=i.children||i.childrenField;let l=[];return n.treeConfig?pc.eachTree(a,e=>{l.push(e)},{children:s}):l=o,t.setRowExpand(l,e)},setRowExpand(e,t){const n=this,r=n,i=n,{expandColumn:o}=r;let{fullAllDataRowIdData:a,rowExpandedMaps:s,rowExpandLazyLoadedMaps:l}=i;const{handleGetRowId:c}=ip(n),u=n.computeExpandOpts,{reserve:d,lazy:h,accordion:p,toggleMethod:f}=u,m=[],g=o?n.getColumnIndex(o):-1,v=o?n.getVMColumnIndex(o):-1;if(e){pc.isArray(e)||(e=[e]),p&&(s={},i.rowExpandedMaps=s,e=e.slice(e.length-1,e.length));const r=f?e.filter(e=>f({$table:n,expanded:t,column:o,columnIndex:g,$columnIndex:v,row:e,rowIndex:n.getRowIndex(e),$rowIndex:n.getVMRowIndex(e)})):e;t?r.forEach(e=>{const t=c(e);if(!s[t]){const r=a[t],i=h&&!r.expandLoaded&&!l[t];i?m.push(Om(n,e)):s[t]=e}}):r.forEach(e=>{const t=c(e);s[t]&&delete s[t]}),d&&r.forEach(e=>cg(n,e,t))}return r.rowExpandedFlag++,Promise.all(m).then(()=>n.$nextTick()).then(()=>vg(n,!0,!0,!0)).then(()=>(Xg(n),Zg(n),Jg(n),n.updateCellAreas()))},isRowExpandByRow(e){const t=this,n=t,r=t,{rowExpandedFlag:i}=n,{rowExpandedMaps:o}=r,a=np(this,e);return!!i&&!!o[a]},isExpandByRow(e){const t=this;return Ef("vxe.error.delFunc",["isExpandByRow","isRowExpandByRow"]),t.isRowExpandByRow(e)},clearRowExpand(){const e=this,t=e,n=e,{tableFullData:r,scrollYStore:i}=n,o=e.computeExpandOpts,{reserve:a}=o,s=e.getRowExpandRecords();return n.rowExpandedMaps={},a&&r.forEach(t=>cg(e,t,!1)),t.rowExpandedFlag++,i.startIndex=0,i.endIndex=1,e.$nextTick().then(()=>{if(s.length)return vg(e,!0,!0,!0)}).then(()=>(Xg(e),Zg(e),Jg(e),e.updateCellAreas()))},clearRowExpandReserve(){const e=this,t=e;return t.rowExpandedReserveRowMap={},e.$nextTick()},getRowExpandRecords(){const e=this,t=e,n=[];return pc.each(t.rowExpandedMaps,e=>{e&&n.push(e)}),n},setRowGroups(e){const t=this,n=t,r=t,{aggregateConfig:i,rowGroupConfig:o}=n,a=t.computeAggregateOpts,{maxGroupSize:s}=a;if(!i&&!o)return Of("vxe.error.reqProp",["aggregate-config"]),t.$nextTick();const l=e?pc.isArray(e)?e:[e]:[];return s&&l.length>s?(ad.modal&&ad.modal.message({status:"error",content:$f("vxe.table.maxGroupCol",[s])}),t.$nextTick()):l.length?(xg(t,l.map(e=>pc.isString(e)?e:e.field)),kg(t,r.tableSynchData,!1,!0)):t.$nextTick()},getRowGroups(){const e=this,t=e,n=e,r=e,{aggregateConfig:i,rowGroupConfig:o}=t,{fullColumnFieldData:a}=r;if(i||o){const{rowGroupList:e}=n;return e.map(({field:e})=>{const t=a[e];return t?t.column:{field:e}})}return[]},getRowGroupFields(){const e=this;return e.getRowGroups().map(e=>e.field)},clearRowGroups(){const e=this,t=e,n=e,{aggregateConfig:r,rowGroupConfig:i}=t;return r||i?(xg(e,[]),kg(e,n.tableSynchData,!1,!0)):(Of("vxe.error.reqProp",["aggregate-config"]),e.$nextTick())},isRowGroupRecord(e){const t=this;return Ef("vxe.error.delFunc",["isRowGroupRecord","isAggregateRecord"]),t.isAggregateRecord(e)},isRowGroupExpandByRow(e){const t=this;return Ef("vxe.error.delFunc",["isRowGroupExpandByRow","isAggregateExpandByRow"]),t.isAggregateExpandByRow(e)},isAggregateRecord(e){const t=this,n=t,{isRowGroupStatus:r}=n;return r&&e.isAggregate},getAggregateContentByRow(e){const t=this,n=t,{isRowGroupStatus:r}=n;return r&&e&&e.isAggregate?e.groupContent:""},getAggregateRowChildren(e){const t=this,n=t,r=t.computeAggregateOpts,{childrenField:i,mapChildrenField:o}=r,{isRowGroupStatus:a}=n;return a&&e&&e.isAggregate&&i&&o&&e[o]||[]},refreshAggregateCalcValues(){const e=this;return Cg(e),e.$nextTick()},isAggregateExpandByRow(e){const t=this,n=t,r=t,{rowGroupExpandedFlag:i}=n,{rowGroupExpandedMaps:o}=r;return!!i&&!!o[np(t,e)]},setRowGroupExpand(e,t){const n=this;return e?(pc.isArray(e)||(e=[e]),im(n,e,t)):n.$nextTick()},setRowGroupExpandByField(e,t){const n=this,r=n,i=n,{isRowGroupStatus:o}=r,a=n.computeAggregateOpts,{childrenField:s}=a;if(e&&(pc.isArray(e)||(e=[e]),o)){const r=[],o={};if(e.forEach(e=>{o[e]=!0}),pc.eachTree(i.afterGroupFullData,e=>{e.isAggregate&&o[e.groupField]&&r.push(e)},{children:s}),r.length)return im(n,r,t)}return n.$nextTick()},setAllRowGroupExpand(e){const t=this,n=t,r=t,{tableFullGroupData:i}=r,o=t.computeAggregateOpts,{mapChildrenField:a}=o,s={};return e&&a&&pc.eachTree(i,e=>{e[a]&&e[a].length&&(s[np(t,e)]=e)},{children:a}),r.rowGroupExpandedMaps=s,cm(t),t.handleTableData(),lm(t),n.rowGroupExpandedFlag++,vg(t,!0,!0,!0)},clearRowGroupExpand(){const e=this,t=e,n=e;return n.rowGroupExpandedMaps={},cm(e),e.handleTableData(),lm(e),t.rowGroupExpandedFlag++,vg(e,!0,!0,!0)},getTreeExpandRecords(){const e=this,t=e,n=[];return pc.each(t.treeExpandedMaps,e=>{e&&n.push(e)}),n},getTreeStatus(){const e=this,t=e,n=e.computeTreeOpts;return t.treeConfig?{config:n,rowExpandeds:e.getTreeExpandRecords()}:null},isTreeExpandLoaded(e){const t=this,n=t,{fullAllDataRowIdData:r}=n,i=r[np(t,e)];return i&&!!i.treeLoaded},clearTreeExpandLoaded(e){const t=this,n=t,r=t,{fullAllDataRowIdData:i,treeExpandedMaps:o}=r,a=t.computeTreeOpts,{transform:s}=a;return e?(pc.isArray(e)||(e=[e]),e.forEach(e=>{const n=np(t,e),r=i[n];r&&(r.treeLoaded=!1,o[n]&&delete o[n])})):(pc.each(i,e=>{e.treeLoaded=!1}),r.treeExpandedMaps={}),s&&(cm(t),t.handleTableData()),n.treeExpandedFlag++,t.$nextTick()},reloadTreeExpand(e){const t=this,n=t,r=t,{treeExpandLazyLoadedMaps:i}=r,o=t.computeTreeOpts,{transform:a,lazy:s}=o,l=o.hasChild||o.hasChildField,c=np(t,e);return s&&e[l]&&!i[c]?t.clearTreeExpandLoaded(e).then(()=>km(t,e)).then(()=>{a&&(cm(t),t.handleTableData()),n.treeExpandedFlag++}).then(()=>t.recalculate()):t.$nextTick()},reloadTreeChilds(e){const t=this;return Ef("vxe.error.delFunc",["reloadTreeChilds","reloadTreeExpand"]),t.reloadTreeExpand(e)},triggerRowGroupExpandEvent(e,t){const n=this,r=n,{rowGroupExpandedMaps:i}=r,o=n.computeAggregateOpts,{row:a,column:s}=t,{trigger:l}=o;if("manual"===l)return;e.stopPropagation();const c=np(n,a),u=!i[c],d=n.getColumnIndex(s),h=n.getVMColumnIndex(s);n.setRowGroupExpand(a,u),n.dispatchEvent("toggle-row-group-expand",{expanded:u,column:s,columnIndex:d,$columnIndex:h,row:a},e)},triggerTreeExpandEvent(e,t){const n=this,r=n,{treeExpandLazyLoadedMaps:i,treeEATime:o}=r,a=n.computeTreeOpts,{row:s,column:l}=t,{lazy:c,trigger:u,accordion:d}=a;if("manual"===u)return;e.stopPropagation();const h=np(this,s);if(!c||!i[h]){const t=!n.isTreeExpandByRow(s),i=n.getColumnIndex(l),a=n.getVMColumnIndex(l);o&&clearTimeout(o),n.setTreeExpand(s,t).then(()=>{d&&(r.treeEATime=setTimeout(()=>{r.treeEATime=void 0,n.scrollToRow(s)},30))}),n.dispatchEvent("toggle-tree-expand",{expanded:t,column:l,columnIndex:i,$columnIndex:a,row:s},e)}},toggleTreeExpand(e){const t=this;return t.setTreeExpand(e,!t.isTreeExpandByRow(e))},setAllTreeExpand(e){const t=this,n=t,r=t,{tableFullTreeData:i}=r,o=t.computeTreeOpts,{transform:a,lazy:s}=o,l=o.children||o.childrenField,c=[];return pc.eachTree(i,e=>{const t=e[l];(s||t&&t.length)&&c.push(e)},{children:l}),t.setTreeExpand(c,e).then(()=>{if(a)return cm(t),n.treeExpandedFlag++,t.recalculate()})},setTreeExpand(e,t){const n=this,r=n.computeTreeOpts,{transform:i}=r;return e&&(pc.isArray(e)||(e=[e]),e.length)?i?nm(n,e,t):tm(n,e,t):n.$nextTick()},isTreeExpandByRow(e){const t=this,n=t,r=t,{treeExpandedFlag:i}=n,{treeExpandedMaps:o}=r;return!!i&&!!o[np(t,e)]},clearTreeExpand(){const e=this,t=e,n=e,{tableFullTreeData:r}=n,i=e.computeTreeOpts,o=i.children||i.childrenField,{transform:a,reserve:s}=i,l=e.getTreeExpandRecords();return n.treeExpandedMaps={},s&&pc.eachTree(r,t=>Em(e,t,!1),{children:o}),e.handleTableData().then(()=>{a&&(cm(e),e.handleTableData()),t.treeExpandedFlag++}).then(()=>{Qg(e),l.length&&e.recalculate()})},clearTreeExpandReserve(){const e=this,t=e;return t.treeExpandedReserveRowMap={},e.$nextTick()},getScroll(){const e=this;return e.getScrollData()},getScrollData(){const e=this,t=e,n=e,{scrollXLoad:r,scrollYLoad:i,scrollbarHeight:o,scrollbarWidth:a}=t,{elemStore:s}=n,l=Ep(s["main-body-scroll"]),c=l?l.scrollTop:0,u=l?l.scrollLeft:0,d=l?l.clientHeight:0,h=l?l.clientWidth:0,p=l?l.scrollHeight:0,f=l?l.scrollWidth:0,m=c<=0,g=c+d>=p,v=u<=0,b=u+h>=f;return{virtualX:r,virtualY:i,isTop:m,isBottom:g,isLeft:v,isRight:b,scrollbarHeight:o,scrollbarWidth:a,scrollTop:c,scrollLeft:u,scrollHeight:p,scrollWidth:f,clientHeight:d,clientWidth:h}},handleScrollEvent(e,t,n,r,i,o){const a=this,s=a,l=a,{highlightHoverRow:c}=s,{lastScrollLeft:u,lastScrollTop:d}=l,h=a.$refs.refScrollXHandleElem,p=a.$refs.refScrollYHandleElem;if(!h||!p)return;const f=a.computeRowOpts,m=a.$refs.refValidTooltip,g=a.$refs.refTooltip,v=p.clientHeight,b=h.clientWidth,y=p.scrollHeight,x=h.scrollWidth;let w=!1,C=!1,_=!1,S=!1,k="",E=!1,O=!1,T=!1,$=!1;if(n){const e=a.computeScrollXThreshold;_=i<=0,_||(S=i+b>=x-1),i>u?(k="right",i+b>=x-e&&($=!0)):(k="left",i<=e&&(T=!0)),a.checkScrolling(),l.lastScrollLeft=i}if(t){const e=a.computeScrollYThreshold;w=r<=0,w||(C=r+v>=y-1),r>d?(k="bottom",r+v>=y-e&&(O=!0)):(k="top",r<=e&&(E=!0)),l.lastScrollTop=r}l.lastSTime=Date.now();const D=Object.assign({source:Bf,scrollTop:r,scrollLeft:i,bodyHeight:v,bodyWidth:b,scrollHeight:y,scrollWidth:x,isX:n,isY:t,isTop:w,isBottom:C,isLeft:_,isRight:S,direction:k},o);Zg(a),Vg(a,n,t),n&&a.closeFilter(),(f.isHover||c)&&a.clearHoverRow(),m&&m.reactData.visible&&m.close(),g&&g.reactData.visible&&g.close(),(O||E||$||T)&&a.dispatchEvent("scroll-boundary",D,e),a.dispatchEvent("scroll",D,e)},triggerScrollXEvent(){const e=this,t=e.computeVirtualXOpts;t.immediate?Dg(e):Ng(e)},triggerScrollYEvent(){const e=this,t=e.computeVirtualYOpts;t.immediate?Ag(e):jg(e)},triggerBodyScrollEvent(e,t){const n=this,r=n,i=n,{scrollYLoad:o,scrollXLoad:a}=r,{elemStore:s,intoRunScroll:l,lastScrollTop:c,lastScrollLeft:u,inWheelScroll:d,inVirtualScroll:h,inHeaderScroll:p,inBodyScroll:f,scrollRenderType:m,inFooterScroll:g}=i;if(d||h||p||g)return;const v=n.$refs.refScrollXHandleElem,b=n.$refs.refScrollYHandleElem,y=Ep(s["left-body-scroll"]),x=Ep(s["main-body-scroll"]),w=Ep(s["right-body-scroll"]),C=Ep(s["main-header-scroll"]),_=Ep(s["main-footer-scroll"]),S=n.$refs.refRowExpandElem;if(l)return;if(!x)return;if(!v)return;if(!b)return;if(f&&m!==t)return;let k=b.scrollTop,E=v.scrollLeft;y&&"left"===t?k=y.scrollTop:w&&"right"===t?k=w.scrollTop:(k=x.scrollTop,E=x.scrollLeft);const O=E!==u,T=k!==c;i.inBodyScroll=!0,i.scrollRenderType=t,T&&("left"===t?(ph(x,k),ph(w,k)):"right"===t?(ph(x,k),ph(y,k)):(ph(y,k),ph(w,k)),ph(b,k),ph(S,k),Hg(n,k),o&&n.triggerScrollYEvent(e)),O&&(fh(v,E),fh(C,E),fh(_,E),a&&n.triggerScrollXEvent(e)),n.handleScrollEvent(e,T,O,k,E,{type:"body",fixed:t})},triggerHeaderScrollEvent(e,t){const n=this,r=n,i=n,{scrollXLoad:o}=r,{elemStore:a,intoRunScroll:s,inWheelScroll:l,inVirtualScroll:c,inBodyScroll:u,inFooterScroll:d}=i;if(l||c||u||d)return;if(s)return;const h=n.$refs.refScrollXHandleElem,p=n.$refs.refScrollYHandleElem,f=Ep(a["main-body-scroll"]),m=Ep(a["main-header-scroll"]),g=Ep(a["main-footer-scroll"]);if(!m)return;if(!h)return;if(!p)return;const v=p.scrollTop,b=m.scrollLeft,y=!0,x=!1;i.inHeaderScroll=!0,fh(h,b),fh(g,b),fh(f,b),o&&n.triggerScrollXEvent(e),n.handleScrollEvent(e,x,y,v,b,{type:"header",fixed:t})},triggerFooterScrollEvent(e,t){const n=this,r=n,i=n,{scrollXLoad:o}=r,{elemStore:a,intoRunScroll:s,inWheelScroll:l,inVirtualScroll:c,inHeaderScroll:u,inBodyScroll:d}=i;if(l||c||u||d)return;const h=n.$refs.refScrollXHandleElem,p=n.$refs.refScrollYHandleElem,f=Ep(a["main-body-scroll"]),m=Ep(a["main-header-scroll"]),g=Ep(a["main-footer-scroll"]);if(s)return;if(!g)return;if(!h)return;if(!p)return;const v=p.scrollTop,b=g.scrollLeft,y=!0,x=!1;i.inFooterScroll=!0,fh(h,b),fh(m,b),fh(f,b),o&&n.triggerScrollXEvent(e),n.handleScrollEvent(e,x,y,v,b,{type:"footer",fixed:t})},triggerBodyWheelEvent(e){const t=this,n=t.$xeParentTable,r=t,i=t,o=t,{target:a,deltaY:s,deltaX:l,shiftKey:c}=e;if(a&&/^textarea$/i.test(a.tagName))return;if(!s&&!l)return;const{highlightHoverRow:u}=r,{scrollXLoad:d,scrollYLoad:h,overflowX:p,overflowY:f,expandColumn:m}=i,g=t.computeLeftFixedWidth,v=t.computeRightFixedWidth,{elemStore:b,lastScrollTop:y,lastScrollLeft:x}=o,w=t.computeRowOpts,C=t.computeScrollbarXOpts,_=t.computeScrollbarYOpts,S=t.$refs.refScrollXHandleElem,k=t.$refs.refScrollYHandleElem,E=Ep(b["left-body-scroll"]),O=Ep(b["main-header-scroll"]),T=Ep(b["main-body-scroll"]),$=Ep(b["main-footer-scroll"]),D=Ep(b["right-body-scroll"]),M=t.$refs.refRowExpandElem;if(!T)return;const F=zg(o.lastSTime),R=c?0:s*F,I=(c?l||s:l)*F,A=T.scrollTop,P=T.scrollLeft,L=Math.max(0,A+R),N=Math.max(0,P+I),j=p&&N!==x,B=f&&L!==y;if(j&&"hidden"===C.visible)e.preventDefault();else{if(B){if("hidden"===_.visible)return void e.preventDefault();const t=R<0;if(t?A<=0:A>=T.scrollHeight-T.clientHeight)return}if(n){if(B&&gh(e.target,[E,T,D],e.currentTarget))return void e.stopPropagation();if(j&&gh(e.target,[O,T,$],e.currentTarget))return void e.stopPropagation()}(j||g||v||m)&&((w.isHover||u)&&t.clearHoverRow(),j&&(e.preventDefault(),o.inWheelScroll=!0,Th(N,n=>{const r=n;fh(S,r),fh(T,r),fh(O,r),fh($,r),d&&t.triggerScrollXEvent(e),t.handleScrollEvent(e,B,j,T.scrollTop,r,{type:"table",fixed:""})})),B&&(e.preventDefault(),$h(L,n=>{const r=n;o.inWheelScroll=!0,ph(k,r),ph(T,r),ph(E,r),ph(D,r),ph(M,r),Hg(t,r),h&&t.triggerScrollYEvent(e),t.handleScrollEvent(e,B,j,r,T.scrollLeft,{type:"table",fixed:""})})))}},triggerVirtualScrollXEvent(e){const t=this,n=t,r=t,{scrollXLoad:i}=n,{elemStore:o,inWheelScroll:a,lastScrollTop:s,inHeaderScroll:l,inBodyScroll:c,inFooterScroll:u}=r;if(l||c||u)return;if(a)return;const d=Ep(o["main-header-scroll"]),h=Ep(o["main-body-scroll"]),p=Ep(o["main-footer-scroll"]),f=t.$refs.refScrollYHandleElem,m=e.currentTarget,{scrollLeft:g}=m,v=f||h;let b=0;v&&(b=v.scrollTop);const y=!0,x=b!==s;r.inVirtualScroll=!0,fh(h,g),fh(d,g),fh(p,g),i&&t.triggerScrollXEvent(e),t.handleScrollEvent(e,x,y,b,g,{type:"table",fixed:""})},triggerVirtualScrollYEvent(e){const t=this,n=t,r=t,{scrollYLoad:i}=n,{elemStore:o,inWheelScroll:a,lastScrollLeft:s,inHeaderScroll:l,inBodyScroll:c,inFooterScroll:u}=r;if(l||c||u)return;if(a)return;const d=Ep(o["left-body-scroll"]),h=Ep(o["main-body-scroll"]),p=Ep(o["right-body-scroll"]),f=t.$refs.refRowExpandElem,m=t.$refs.refScrollXHandleElem,g=e.currentTarget,{scrollTop:v}=g,b=m||h;let y=0;b&&(y=b.scrollLeft);const x=y!==s,w=!0;r.inVirtualScroll=!0,ph(h,v),ph(d,v),ph(p,v),ph(f,v),Hg(t,v),i&&t.triggerScrollYEvent(e),t.handleScrollEvent(e,w,x,v,y,{type:"table",fixed:""})},updateScrollXData(){const e=this,t=e,{isAllOverflow:n}=t;return Tg(e),e.updateScrollXSpace(),e.$nextTick().then(()=>{Tg(e),e.updateScrollXSpace(),n||e.updateScrollYSpace()})},updateScrollXSpace(){const e=this,t=e,n=e,{scrollXLoad:r,overflowX:i,scrollXWidth:o}=t,{visibleColumn:a,scrollXStore:s,elemStore:l,fullColumnIdData:c}=n,u=n.xeGanttView,d=e.computeMouseOpts,h=e.$refs.refTableBody,p=h?h.$el:null;if(p){const n=Ep(l["main-body-scroll"]),h=Ep(l["main-body-table"]),p=Ep(l["main-header-table"]),f=Ep(l["main-footer-table"]);let m=0;const g=a[s.startIndex];if(g){const e=c[g.id]||{};m=e.oLeft}let v=0;n&&(v=n.clientWidth);let b=!1,y=o;o>jf&&(m=n&&h&&n.scrollLeft+v>=jf?jf-h.clientWidth:m/(o-v)*(jf-v),y=jf,b=!0),r&&i||(m=0),Tf().scrollMarginStyle?(p&&(p.style.marginLeft=p.getAttribute("xvm")?`${m}px`:""),h&&(h.style.marginLeft=`${m}px`),f&&(f.style.marginLeft=f.getAttribute("xvm")?`${m}px`:"")):(p&&(p.style.transform=p.getAttribute("xvm")?`translate(${m}px, 0px)`:""),h&&(h.style.transform=`translate(${m}px, ${t.scrollYTop||0}px)`),f&&(f.style.transform=f.getAttribute("xvm")?`translate(${m}px, 0px)`:""));const x=["main"];x.forEach(e=>{const t=["header","body","footer"];t.forEach(t=>{const n=Ep(l[`${e}-${t}-xSpace`]);n&&(n.style.width=r?`${y}px`:"")})}),t.scrollXLeft=m,t.scrollXWidth=y,t.isScrollXBig=b;const w=e.$refs.refScrollXSpaceElem;return w&&(w.style.width=`${y}px`),fg(e),b&&d.area&&Of("vxe.error.notProp",["mouse-config.area"]),u&&u.handleUpdateSXSpace&&u.handleUpdateSXSpace(),e.$nextTick(()=>{dm(e)})}},updateScrollYData(){const e=this;return e.handleTableData(),e.updateScrollYSpace(),e.$nextTick().then(()=>{e.handleTableData(),e.updateScrollYSpace()})},updateScrollYSpace(){const e=this,t=e,n=e,{isAllOverflow:r,overflowY:i,scrollYLoad:o,scrollYHeight:a,expandColumn:s}=t,{scrollYStore:l,elemStore:c,isResizeCellHeight:u,afterFullData:d,fullAllDataRowIdData:h,rowExpandedMaps:p}=n,f=n.xeGanttView,{startIndex:m}=l,g=e.computeMouseOpts,v=e.computeExpandOpts,b=e.computeRowOpts,y=e.computeCellOpts,x=e.computeDefaultRowHeight,w=Ep(c["main-body-scroll"]),C=Ep(c["main-body-table"]),_=Ep(c["left-body-table"]),S=Ep(c["right-body-table"]),k=["main","left","right"];let E=0,O=a,T=!1;if(o){const t=u||y.height||b.height;if(t||s||!r){const t=d[m];if(t){let n=np(e,t),r=h[n]||{};E=r.oTop||0;const i=d[d.length-1];if(n=np(e,i),r=h[n]||{},r){const e=mp(r,y,b,x);e&&(O=(r.oTop||0)+e,s&&p[n]&&(O+=r.expandHeight||v.height||0))}O>Nf&&(T=!0)}else O=C?C.clientHeight:0}else O=d.length*x,O>Nf&&(T=!0),E=Math.max(0,m*x)}else C&&(O=C.clientHeight);let $=0;w&&($=w.clientHeight);let D=O,M=E;T&&(M=w&&C&&w.scrollTop+$>=Nf?Nf-C.clientHeight:E/(a-$)*(Nf-$),D=Nf),o&&i||(M=0),Tf().scrollMarginStyle?(_&&(_.style.marginTop=`${M}px`),C&&(C.style.marginTop=`${M}px`),S&&(S.style.marginTop=`${M}px`)):(_&&(_.style.transform=`translate(0px, ${M}px)`),C&&(C.style.transform=`translate(${t.scrollXLeft||0}px, ${M}px)`),S&&(S.style.transform=`translate(0px, ${M}px)`)),k.forEach(e=>{const t=["header","body","footer"];t.forEach(t=>{const n=Ep(c[`${e}-${t}-ySpace`]);n&&(n.style.height=D?`${D}px`:"")})});const F=e.$refs.refScrollYSpaceElem;F&&(F.style.height=D?`${D}px`:"");const R=e.$refs.refRowExpandYSpaceElem;return R&&(R.style.height=D?`${D}px`:""),t.scrollYTop=M,t.scrollYHeight=T?O:D,t.isScrollYBig=T,fg(e),T&&g.area&&Of("vxe.error.notProp",["mouse-config.area"]),f&&f.handleUpdateSYSpace&&f.handleUpdateSYSpace(),e.$nextTick().then(()=>dm(e))},updateScrollYStatus(e){const t=this;return em(t,e)},scrollTo(e,t){const n=this,r=n,i=n,{elemStore:o}=i,a=Ep(o["main-header-scroll"]),s=Ep(o["main-body-scroll"]),l=Ep(o["main-footer-scroll"]),c=Ep(o["left-body-scroll"]),u=Ep(o["right-body-scroll"]),d=n.$refs.refScrollXHandleElem,h=n.$refs.refScrollYHandleElem;return i.intoRunScroll=!0,e&&(pc.isNumber(e)||(t=e.top,e=e.left)),pc.isNumber(e)&&(fh(d,e),fh(s,e),fh(a,e),fh(l,e),r.scrollXLoad&&Dg(n)),pc.isNumber(t)&&(ph(h,t),ph(s,t),ph(c,t),ph(u,t),r.scrollYLoad&&Ag(n)),new Promise(e=>{setTimeout(()=>{n.$nextTick(()=>{i.intoRunScroll=!1,e()})},r.scrollXLoad||r.scrollYLoad?30:0)})},scrollToRow(e,t,n){const r=this,i=r,o=r,a=r,{isAllOverflow:s,scrollYLoad:l,scrollXLoad:c}=o,{fullAllDataRowIdData:u,_sToTime:d}=a,h=[];let p;if(pc.isString(e)||pc.isNumber(e)){const t=e,n=t?u[t]:null;n&&(p=n.row)}else p=e;return p&&(i.treeConfig?h.push(r.scrollToTreeRow(p)):h.push(Fp(r,p))),t&&h.push(lg(r,t,p,n)),d&&clearTimeout(d),Promise.all(h).then(()=>{if(p)return s||!l&&!c||(Wm(r),Gg(r),a._sToTime=setTimeout(()=>{a._sToTime=void 0,l&&(i.treeConfig?r.scrollToTreeRow(p):Fp(r,p)),c&&t&&lg(r,t,p,n)},350)),r.$nextTick()})},scrollToStartRow(e,t){const n=this,r=n,{afterFullData:i}=r;return n.scrollToRow(i[0],e,t)},scrollToEndRow(e,t){const n=this,r=n,{afterFullData:i}=r;return n.scrollToRow(i[i.length-1],e,t)},scrollToColumn(e,t){const n=this;return lg(n,null,e,t)},scrollToStartColumn(e){const t=this,n=t,{visibleColumn:r}=n;return t.scrollToColumn(r[0],e)},scrollToEndColumn(e){const t=this,n=t,{visibleColumn:r}=n;return t.scrollToColumn(r[r.length-1],e)},scrollToTreeRow(e){const t=this,n=t,r=t,i=t,{treeConfig:o}=n,{isRowGroupStatus:a}=r,{tableFullData:s}=i,l=[];if(o||a){const n=t.computeAggregateOpts,r=t.computeTreeOpts,i=r.children||r.childrenField,o=pc.findTree(s,n=>t.eqRow(n,e),{children:a?n.mapChildrenField:i});if(o){const e=o.nodes;e.forEach((n,r)=>{r<e.length-1&&!t.isTreeExpandByRow(n)&&l.push(t.setTreeExpand(n,!0))})}}return Promise.all(l).then(()=>Fp(t,e))},clearScroll(){const e=this,t=e,{elemStore:n,scrollXStore:r,scrollYStore:i}=t,o=Ep(n["main-header-scroll"]),a=Ep(n["main-body-scroll"]),s=Ep(n["main-footer-scroll"]),l=Ep(n["left-body-scroll"]),c=Ep(n["right-body-scroll"]),u=e.$refs.refScrollXHandleElem,d=e.$refs.refScrollYHandleElem;return t.intoRunScroll=!0,fh(u,0),fh(a,0),fh(o,0),fh(s,0),ph(d,0),ph(a,0),ph(l,0),ph(c,0),r.startIndex=0,r.visibleStartIndex=0,r.endIndex=r.visibleSize,r.visibleEndIndex=r.visibleSize,i.startIndex=0,i.visibleStartIndex=0,i.endIndex=i.visibleSize,i.visibleEndIndex=i.visibleSize,e.$nextTick().then(()=>{t.lastScrollLeft=0,t.lastScrollTop=0,t.intoRunScroll=!1})},updateFooter(){const e=this,t=e,n=e,r=e,i=e.$xeGrid,o=e.$xeGantt,{showFooter:a,footerData:s,footerMethod:l}=t,{visibleColumn:c,afterFullData:u}=r;let d=[];return a&&s&&s.length?d=s.slice(0):a&&l&&(d=c.length?l({columns:c,data:u,$table:e,$grid:i,$gantt:o}):[]),n.footerTableData=d,e.clearFooterFormatterCache(),e.handleUpdateFooterMerge(),e.dispatchEvent("footer-data-change",{visibleColumn:r.visibleColumn,footData:d},null),e.$nextTick()},updateStatus(e,t){const n=this,r=n,i=n;return n.$nextTick().then(()=>{const{editRules:o}=r,{isActivated:a}=i;if(a&&e&&o)return n.handleCellRuleUpdateStatus("change",e,t)})},setMergeCells(e){const t=this,n=t,r=t,i=t;return n.spanMethod&&Of("vxe.error.errConflicts",["merge-cells","span-method"]),Rm(t,e),t.handleUpdateBodyMerge(),t.$nextTick().then(()=>{const{expandColumn:e}=r,{mergeBodyList:n}=i;return e&&n.length&&Ef("vxe.error.errConflicts",["type=expand","merge-cells | span-method"]),t.updateCellAreas(),dm(t)})},removeMergeCells(e){const t=this,n=t;n.spanMethod&&Of("vxe.error.errConflicts",["merge-cells","span-method"]);const r=Im(t,e);return t.handleUpdateBodyMerge(),t.$nextTick().then(()=>(t.updateCellAreas(),dm(t),r))},getMergeCells(){const e=this,t=e;return t.mergeBodyList.slice(0)},clearMergeCells(){const e=this,t=e,n=e;return n.mergeBodyList=[],n.mergeBodyMaps={},n.mergeBodyCellMaps={},n.mergeBodyRowMaps={},n.mergeBodyColMaps={},t.mergeBodyFlag++,e.$nextTick().then(()=>dm(e))},setMergeHeaderCells(e){const t=this;return Am(t,e),t.handleUpdateHeaderMerge(),t.$nextTick().then(()=>dm(t))},removeMergeHeaderCells(e){const t=this,n=Pm(t,e);return t.handleUpdateHeaderMerge(),t.$nextTick().then(()=>(dm(t),n))},getMergeHeaderCells(){const e=this,t=e;return t.mergeHeaderList.slice(0)},clearMergeHeaderCells(){const e=this,t=e,n=e;return n.mergeHeaderList=[],n.mergeHeaderMaps={},n.mergeHeaderCellMaps={},n.mergeHeaderRowMaps={},n.mergeBodyColMaps={},t.mergeHeadFlag++,e.$nextTick().then(()=>dm(e))},setMergeFooterCells(e){const t=this,n=t;return n.footerSpanMethod&&Of("vxe.error.errConflicts",["merge-footer-cells | merge-footer-items","footer-span-method"]),Lm(t,e),t.handleUpdateFooterMerge(),t.$nextTick().then(()=>dm(t))},setMergeFooterItems(e){const t=this;return t.setMergeFooterCells(e)},removeMergeFooterCells(e){const t=this,n=t;n.footerSpanMethod&&Of("vxe.error.errConflicts",["merge-footer-cells | merge-footer-items","footer-span-method"]);const r=Nm(t,e);return t.handleUpdateFooterMerge(),t.$nextTick().then(()=>(dm(t),r))},removeMergeFooterItems(e){const t=this;return t.removeMergeFooterCells(e)},getMergeFooterCells(){const e=this,t=e;return t.mergeFooterList.slice(0)},getMergeFooterItems(){const e=this;return e.getMergeFooterCells()},clearMergeFooterCells(){const e=this,t=e,n=e;return n.mergeFooterList=[],n.mergeFooterMaps={},n.mergeFooterCellMaps={},n.mergeFooterRowMaps={},n.mergeFooterColMaps={},t.mergeFootFlag++,e.$nextTick().then(()=>dm(e))},clearMergeFooterItems(){const e=this;return e.clearMergeFooterCells()},handleUpdateAggData(){const e=this,t=e;return kg(e,t.tableSynchData,!1,!0)},handlePushStack(){const e=this,t=e,n=e.computeKeyboardOpts;if(!n.isUndoRedo)return;const{stackHistoryStore:r}=t,i=rv(e);r.undoStacks.push(i),r.redoStacks=[],nv(e)},handleUndoStackEvent(e){const t=this,n=t,{stackHistoryStore:r}=n,{undoStacks:i,redoStacks:o}=r;if(i.length){const n=rv(t);return o.push(n),iv(t,i.pop()),e&&t.dispatchEvent("undo",{},e),t.$nextTick(()=>({status:!0}))}return Promise.resolve({status:!1})},handleRedoStackEvent(e){const t=this,n=t,{stackHistoryStore:r}=n,{undoStacks:i,redoStacks:o}=r;if(o.length){const n=rv(t);return i.push(n),iv(t,o.pop()),e&&t.dispatchEvent("redo",{},e),t.$nextTick(()=>({status:!0}))}return Promise.resolve({status:!1})},handleClearStack(){const e=this,t=e,{stackHistoryStore:n}=t;return n.undoStacks=[],n.redoStacks=[],e.$nextTick()},updateZindex(){const e=this,t=e,n=e;t.zIndex?n.tZindex=t.zIndex:n.tZindex<hd()&&(n.tZindex=dd())},updateCellAreas(){const e=this,t=e,{mouseConfig:n}=t,r=e.computeMouseOpts;return n&&r.area&&e.handleRecalculateCellAreaEvent?e.handleRecalculateCellAreaEvent():e.$nextTick()},undo(){const e=this;return e.handleUndoStackEvent(null)},redo(){const e=this;return e.handleRedoStackEvent(null)},clearHistory(){const e=this;return e.handleClearStack()},dispatchEvent(e,t,n){const r=this,i=r.$xeGrid,o=r.$xeGantt;r.$emit(e,Rf(n,{$table:r,$grid:i,$gantt:o},t))},emitEvent(e,t,n){const r=this;r.dispatchEvent(e,t,n)},focus(){const e=this,t=e;return t.isActivated=!0,e.$nextTick()},blur(){const e=this,t=e;return t.isActivated=!1,e.$nextTick()},connect(e){const t=this;return t.connectToolbar(e)},connectToolbar(e){const t=this,n=t;return e&&e.syncUpdate?(e.syncUpdate({collectColumn:n.collectColumn,$table:t}),this.$toolbar=e):Of("vxe.error.barUnableLink"),t.$nextTick()},handleConnectGanttView(e){const t=this,n=t;return e&&e.connectUpdate&&(e.connectUpdate({$table:t}),n.xeGanttView=e),t.$nextTick()},getCell(e,t){const n=this;return n.getCellElement(e,t)},findRowIndexOf(e,t){const n=this;return t?pc.findIndexOf(e,e=>n.eqRow(e,t)):-1},eqRow(e,t){const n=this;return!(!e||!t)&&(e===t||np(n,e)===np(n,t))},getSetupOptions(){return Tf()}},av={},sv=Object.assign({},ov,av),lv="setFilter,openFilter,clearFilter,saveFilter,saveFilterByEvent,resetFilter,resetFilterByEvent,saveFilterPanel,saveFilterPanelByEvent,resetFilterPanel,resetFilterPanelByEvent,getCheckedFilters,updateFilterOptionStatus,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,getCopyCellAreas,clearCopyCellArea,setCellAreas,openFNR,openFind,openReplace,closeFNR,getSelectedCell,clearSelected,insert,insertAt,insertNextAt,insertChild,insertChildAt,insertChildNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearEdit,clearActived,getEditRecord,getEditCell,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,fullValidateField,validateField,openExport,closeExport,openPrint,closePrint,getPrintHtml,exportData,openImport,closeImport,importData,saveFile,readFile,importByFile,print,getCustomVisible,openCustom,closeCustom,toggleCustom,saveCustom,cancelCustom,resetCustom,toggleCustomAllCheckbox,setCustomAllCheckbox".split(",");lv.forEach(e=>{sv[e]=function(...t){return this[`_${e}`]?this[`_${e}`](...t):null}});const cv=sv,{getI18n:uv,renderer:dv,renderEmptyElement:hv}=ad,pv="table",fv="body",mv=e=>{const t=e,n=e,r=e,{delayHover:i}=t,{isDragResize:o}=n,{lastSTime:a}=r;return!!(o||a&&Date.now()<a+i)};function gv(e,t,n,r,i){const o=t,a=t,{column:s}=r,{treeConfig:l}=o,c=t.computeCellOpts,u=t.computeRowOpts,d=t.computeDefaultRowHeight,h=t.computeTreeOpts,{slots:p,treeNode:f}=s,{fullAllDataRowIdData:m}=a;if(l&&f&&(h.showLine||h.line)){if(p&&p.line)return t.callSlot(p.line,r,e);const o=m[n];let a=0,s=null,l=null,f="";if(o&&(a=o.level,s=o.items[o.treeIndex-1],l=o.parent),!a&&!h.showRootLine)return[];if(s){const e=m[np(t,s)]||{};f=`${e.lineHeight||0}px`}else if(a&&l){const e=m[np(t,l)]||{};f=`calc(-1em + ${Math.floor(i/2+mp(e,c,u,d)/2)}px)`}return[e("div",{key:"tl",class:"vxe-tree--line-wrapper"},[e("div",{class:"vxe-tree--line",style:{height:f,bottom:`-${Math.floor(i/2)}px`,left:`calc(${a*h.indent}px + 1em)`}})])]}return[]}function vv(e,t,n,r,i,o,a,s,l,c,u,d,h,p,f){const m=t,g=t,v=t,b=t.$xeGrid,y=t.$xeGantt,{columnKey:x,resizable:w,showOverflow:C,border:_,height:S,treeConfig:k,cellClassName:E,cellStyle:O,align:T,spanMethod:$,mouseConfig:D,editConfig:M,editRules:F,tooltipConfig:R,padding:I}=m,{tableData:A,tableColumn:P,dragRow:L,overflowX:N,overflowY:j,scrollXLoad:B,scrollYLoad:V,mergeBodyFlag:z,calcCellHeightFlag:H,resizeHeightFlag:W,resizeWidthFlag:q,editStore:G,isAllOverflow:Y,validErrorMaps:U,currColFlag:K}=g,{fullAllDataRowIdData:X,fullColumnIdData:Z,mergeBodyCellMaps:Q,visibleColumn:J,afterFullData:ee,mergeBodyList:te,scrollXStore:ne,scrollYStore:re,keepUpdateFieldMaps:ie,currentCol:oe}=v,ae=t.computeCellOpts,se=t.computeValidOpts,le=t.computeCheckboxOpts,ce=t.computeEditOpts,ue=t.computeTooltipOpts,de=t.computeVirtualXOpts,he=t.computeVirtualYOpts,pe=t.computeRendererOpts,{isAllColumnDrag:fe,isAllRowDrag:me}=t.resizableOpts,ge=t.computeRowOpts,ve=t.computeRowDragOpts,be=t.computeDefaultRowHeight,ye=H?ae.height||ge.height:0,{disabledMethod:xe,isCrossDrag:we,isPeerDrag:Ce}=ve,_e=t.computeColumnOpts,Se=t.computeMouseOpts,ke=t.computeAreaOpts,Ee=t.computeCellOffsetWidth,{selectCellToRow:Oe}=ke,{field:Te,type:$e,cellRender:De,editRender:Me,align:Fe,showOverflow:Re,className:Ie,treeNode:Ae,rowResize:Pe,padding:Le,verticalAlign:Ne,slots:je}=d,{verticalAlign:Be,minHeight:Ve,maxHeight:ze}=ae,{actived:He}=G,We=X[r]||{},qe=d.id,Ge=Z[qe]||{},Ye=Me||De,Ue=Ye&&Ye.name?pe[Ye.name]||dv.get(Ye.name):null,Ke=Ue?Ue.tableCellClassName||Ue.cellClassName:null,Xe=Ue?Ue.tableCellStyle||Ue.cellStyle:"",Ze=ue.showAll,Qe=Ge.index,Je=Ge._index,et=ld(Me),tt=W?We.resizeHeight:0;let nt=N&&(i?d.fixed!==i:!!d.fixed);const rt=bd(Le,null===I?ae.padding:I),it=!0===rt,ot=!!rt&&(it||!1!==rt.top),at=!!rt&&(it||!1!==rt.bottom),st=!!rt&&(it||!1!==rt.left),lt=!!rt&&(it||!1!==rt.right),ct=bd(Re,C),ut="ellipsis"===ct,dt="title"===ct,ht=!0===ct?"tooltip"===ue.mode:"tooltip"===ct,pt=Y||dt||ht||ut,ft=pc.isBoolean(d.resizable)?d.resizable:_e.resizable||w,mt=!!ye,gt=tt>0;let vt;const bt={},yt=Fe||(Ue?Ue.tableCellAlign:"")||T,xt=pc.eqNull(Ne)?Be:Ne,wt=U[`${r}:${qe}`],Ct=F&&se.showErrorMessage&&("default"===se.message?S||A.length>1:"inline"===se.message),_t={colid:qe},St={$table:t,$grid:b,$gantt:y,isEdit:!1,seq:n,rowid:r,row:s,rowIndex:l,$rowIndex:c,_rowIndex:u,column:d,columnIndex:Qe,$columnIndex:h,_columnIndex:Je,fixed:i,source:pv,type:fv,isHidden:!!nt,level:a,visibleData:ee,data:A,items:f};let kt=!1,Et=!1;ge.drag&&(kt="row"===ve.trigger||d.dragSort&&"cell"===ve.trigger),kt&&(Et=!(!xe||!xe(St))),(dt||ht||Ze||R)&&(bt.mouseover=e=>{mv(t)||(dt?mh(e.currentTarget,d):(ht||Ze)&&t.triggerBodyTooltipEvent(e,St)),t.dispatchEvent("cell-mouseenter",Object.assign({cell:e.currentTarget},St),e)}),(ht||Ze||R)&&(bt.mouseleave=e=>{mv(t)||(ht||Ze)&&t.handleTargetLeaveEvent(e),t.dispatchEvent("cell-mouseleave",Object.assign({cell:e.currentTarget},St),e)}),(kt||le.range||D)&&(bt.mousedown=e=>{t.triggerCellMousedownEvent(e,St)}),kt&&(bt.mouseup=t.triggerCellMouseupEvent),bt.click=e=>{t.triggerCellClickEvent(e,St)},bt.dblclick=e=>{t.triggerCellDblclickEvent(e,St)};let Ot=!1,Tt=1,$t=1;if(z&&te.length){const e=Q[`${u}:${Je}`];if(e){const{rowspan:n,colspan:r}=e;if(!n||!r)return hv(t);n>1&&(Ot=!0,$t=n,_t.rowspan=n),r>1&&(Ot=!0,Tt=r,_t.colspan=r)}}else if($){const{rowspan:e=1,colspan:n=1}=$(St)||{};if(!e||!n)return hv(t);e>1&&(Ot=!0,$t=e,_t.rowspan=e),n>1&&(Ot=!0,Tt=n,_t.colspan=n)}nt&&Ot&&(_t.colspan>1||_t.rowspan>1)&&(nt=!1),!nt&&M&&(ce.showStatus||ce.showUpdateStatus)&&ie[Te]&&(vt=t.isUpdateByRow(s,Te));const Dt=!pt&&(V||B);let Mt=mp(We,ae,ge,be);const Ft=h===p.length-1,Rt=!d.resizeWidth&&("auto"===d.minWidth||"auto"===d.width);let It=!1;if(Ot||L&&np(t,L)===r||(j&&V&&!k&&A.length>16&&!he.immediate&&(u<re.visibleStartIndex-re.preloadSize||u>re.visibleEndIndex+re.preloadSize)||N&&B&&P.length>10&&!de.immediate&&!d.fixed&&(Je<ne.visibleStartIndex-ne.preloadSize||Je>ne.visibleEndIndex+ne.preloadSize))&&(It=!0),$t>1){const e=ee[u+$t-1];if(e){const n=X[np(t,e)];n&&(Mt+=n.oTop+mp(n,ae,ge,be)-We.oTop-mp(We,ae,ge,be))}}const At={};if(ze&&(At.maxHeight=ze+"px"),pt&&q){let e=0;if(Tt>1)for(let t=1;t<Tt;t++){const n=J[Qe+t];n&&(e+=n.renderWidth)}At.width=d.renderWidth+e-Ee+"px"}V||B||pt||mt||gt?At.height=Mt+"px":At.minHeight=Mt+"px",Ve&&(At.minHeight=Ve+"px");const Pt=[];if(nt&&Y)Pt.push(e("div",{key:"tc",class:["vxe-cell",{"c--title":dt,"c--tooltip":ht,"c--ellipsis":ut}],style:At}));else{k&&Pt.push(...gv(e,t,r,St,Mt));const n=[];if(It||n.push(e("div",{attrs:{colid:qe,rowid:r},class:"vxe-cell--wrapper vxe-body-cell--wrapper"},d.renderCell(e,St))),Pt.push(e("div",{key:"tc",class:["vxe-cell",{"c--title":dt,"c--tooltip":ht,"c--ellipsis":ut}],style:At,attrs:{title:dt?t.getCellLabel(s,d):null}},n)),Ct&&wt){const n=wt.rule,r=je?je.valid:null,i=Object.assign(Object.assign(Object.assign({},St),wt),{rule:wt});Pt.push(e("div",{key:"tcv",class:["vxe-cell--valid-error-tip",vd(se.className,wt)],style:n&&n.maxWidth?{width:n.maxWidth+"px"}:void 0},[e("div",{class:`vxe-cell--valid-error-wrapper vxe-cell--valid-error-theme-${se.theme||"normal"}`},[r?t.callSlot(r,i,e):[e("span",{class:"vxe-cell--valid-error-msg"},wt.content)]])]))}}let Lt=!1;return D&&Se.area&&!Je&&Oe&&(Lt=!0),!nt&&ft&&fe&&Pt.push(e("div",{key:"tcc",class:["vxe-cell--col-resizable",{"is--line":!_||"none"===_}],on:{mousedown:e=>t.handleColResizeMousedownEvent(e,i,St),dblclick:e=>t.handleColResizeDblclickEvent(e,St)}})),(Pe||me)&&ge.resizable&&Pt.push(e("div",{key:"tcr",class:"vxe-cell--row-resizable",on:{mousedown:e=>t.handleRowResizeMousedownEvent(e,St),dblclick:e=>t.handleRowResizeDblclickEvent(e,St)}})),e("td",{class:["vxe-table--column vxe-body--column",qe,xt?`col--vertical-${xt}`:"",yt?`col--${yt}`:"",$e?`col--${$e}`:"",{"col--last":Ft,"col--tree-node":Ae,"col--edit":et,"col--ellipsis":pt,"col--cs-height":mt,"col--rs-height":gt,"col--to-row":Lt,"col--auto-height":Dt,"col--max-height":ze,"fixed--width":!Rt,"fixed--hidden":nt,"is--pg-top":ot,"is--pg-bottom":at,"is--pg-left":st,"is--pg-right":lt,"is--progress":nt&&Y||It,"is--drag-cell":kt&&(we||Ce||!a),"is--drag-disabled":Et,"col--dirty":vt,"col--active":M&&et&&He.row===s&&(He.column===d||"row"===ce.mode),"col--valid-error":!!wt,"show--valid-bg":wt&&se.showErrorBackground,"col--current":K&&oe===d},vd(Ke,St),vd(Ie,St),vd(E,St)],key:x||B||V||_e.useKey||ge.useKey||_e.drag?d.id:h,attrs:_t,style:Object.assign({},pc.isFunction(Xe)?Xe(St):Xe,pc.isFunction(O)?O(St):O),on:bt},o&&nt?[]:Pt)}function bv(e,t,n,r,i,o){const a=t.$parent,s=a,l=a,c=a,u=a.$xeGrid,d=a.$xeGantt,{stripe:h,rowKey:p,highlightHoverRow:f,rowClassName:m,rowStyle:g,editConfig:v,treeConfig:b}=s,{hasFixedColumn:y,treeExpandedFlag:x,scrollYLoad:w,isAllOverflow:C,rowExpandedFlag:_,expandColumn:S,selectRadioRow:k,pendingRowFlag:E,rowExpandHeightFlag:O,isRowGroupStatus:T}=l,{fullAllDataRowIdData:$,fullColumnIdData:D,treeExpandedMaps:M,pendingRowMaps:F,rowExpandedMaps:R,currentRow:I}=c,A=a.computeCheckboxOpts,P=a.computeRadioOpts,L=a.computeTreeOpts,N=a.computeEditOpts,j=a.computeRowOpts,B=a.computeColumnOpts,{transform:V,seqMode:z}=L,H=L.children||L.childrenField,W=[],{handleGetRowId:q}=ip(a),G=b||T;return i.forEach((s,l)=>{const c={},Y=q(s),U=$[Y]||{};let K=l,X=0,Z=-1,Q=-1;const J=T&&s.isAggregate;(j.isHover||f)&&(c.mouseover=e=>{mv(a)||a.triggerHoverEvent(e,{row:s,rowIndex:K})},c.mouseleave=()=>{mv(a)||a.clearHoverRow()}),U&&(K=U.index,Q=U._index,X=U.level,Z=U.seq,J||b&&V&&"increasing"===z?Z=U._index+1:b&&"fixed"===z&&(Z=U._tIndex+1));const ee={$table:a,seq:Z,rowid:Y,fixed:n,type:fv,level:X,row:s,rowIndex:K,$rowIndex:l,_rowIndex:Q},te=S&&!!_&&!!R[Y];let ne=!1,re=[],ie=!1;v&&(ie=a.isInsertByRow(s)),!b||w||V||(re=s[H],ne=!!x&&re&&re.length>0&&!!M[Y]),!j.drag||T||b&&!V||(c.dragstart=a.handleRowDragDragstartEvent,c.dragend=a.handleRowDragDragendEvent,c.dragover=a.handleRowDragDragoverEvent);const oe=["vxe-body--row",G?`row--level-${X}`:"",{"row--stripe":h&&(Q+1)%2===0,"is--new":ie,"is--expand-row":te,"is--expand-tree":ne,"row--new":ie&&(N.showStatus||N.showInsertStatus),"row--radio":P.highlight&&k===s,"row--checked":A.highlight&&a.isCheckedByCheckboxRow(s),"row--pending":!!E&&!!F[Y],"row--group":J,"row--current":I&&Y===np(a,I)},m?pc.isFunction(m)?m(ee):m:""],ae=o.map((t,c)=>vv(e,a,Z,Y,n,r,X,s,K,l,Q,t,c,o,i));if(W.push(e("tr",{class:oe,attrs:{rowid:Y},style:g?pc.isFunction(g)?g(ee):g:void 0,key:p||j.useKey||j.drag||B.drag||T||b?Y:l,on:c},ae)),te){const t=a.computeExpandOpts,{height:r,padding:i,mode:c}=t;if("fixed"===c){const t=U.expandHeight;let n=0;O&&(t||r)&&(n=(t||r||0)+1),W.push(e("tr",{class:"vxe-body--row-expanded-place",key:`expand_${Y}`,attrs:{rowid:Y}},[e("td",{class:"vxe-body--row-expanded-place-column",attrs:{colspan:o.length},style:{height:`${n}px`}})]))}else{const t={};r&&(t.height=`${r}px`),b&&(t.paddingLeft=X*L.indent+30+"px");const{showOverflow:c}=S||{},h=S.id,p=D[h]||{},f=pc.eqNull(c)?C:c;let m=-1,g=-1,v=-1;p&&(m=p.index,g=p.$index,v=p._index);const x={$grid:u,$table:a,$gantt:d,seq:Z,column:S,columnIndex:m,$columnIndex:g,_columnIndex:v,fixed:n,source:pv,type:fv,level:X,row:s,rowid:Y,rowIndex:K,$rowIndex:l,_rowIndex:Q,isHidden:!1,isEdit:!1,visibleData:[],data:[],items:[]};W.push(e("tr",{class:["vxe-body--expanded-row",{"is--padding":i}],key:`expand_${Y}`},[e("td",{class:["vxe-body--expanded-column",{"fixed--hidden":n&&!y,"col--ellipsis":f}],attrs:{colspan:o.length}},[e("div",{class:["vxe-body--expanded-cell",{"is--ellipsis":r}],style:t},[S.renderData(e,x)])])]))}}ne&&W.push(...bv(e,t,n,r,re,o))}),W}const yv={name:"VxeTableBody",props:{tableData:Array,tableColumn:Array,fixedColumn:Array,fixedType:{type:String,default:""}},mounted(){const e=this,t=e,n=e.$parent,r=n,{fixedType:i}=t,{elemStore:o}=r,a=`${i||"main"}-body-`;o[`${a}wrapper`]=e.$refs.refElem,o[`${a}scroll`]=e.$refs.refBodyScroll,o[`${a}table`]=e.$refs.refBodyTable,o[`${a}colgroup`]=e.$refs.refBodyColgroup,o[`${a}list`]=e.$refs.refBodyTBody,o[`${a}xSpace`]=e.$refs.refBodyXSpace,o[`${a}ySpace`]=e.$refs.refBodyYSpace,o[`${a}emptyBlock`]=e.$refs.refBodyEmptyBlock},destroyed(){const e=this,t=this.$parent,n=t,{fixedType:r}=e,{elemStore:i}=n,o=`${r||"main"}-body-`;i[`${o}wrapper`]=null,i[`${o}scroll`]=null,i[`${o}table`]=null,i[`${o}colgroup`]=null,i[`${o}list`]=null,i[`${o}xSpace`]=null,i[`${o}ySpace`]=null,i[`${o}emptyBlock`]=null},render(e){const t=this,n=this.$parent,r=n,i=n,o=n,a=n.$xeGrid,s=n.$xeGantt,l=n.$scopedSlots,{xID:c}=n,{fixedColumn:u,fixedType:d,tableColumn:h}=t,{mouseConfig:p}=r,{isGroup:f,tableData:m,isColLoading:g,overflowX:v,scrollXLoad:b,scrollYLoad:y,dragRow:x,dragCol:w}=i,{visibleColumn:C,fullAllDataRowIdData:_,fullColumnIdData:S}=o,k=n.computeEmptyOpts,E=n.computeMouseOpts,O=n.computeIsBodyRenderOptimize;let T=m,$=h;const D=O;if(g||!d&&v||($=C),d&&D&&($=u||[]),y&&x&&T.length>2){const e=_[np(n,x)];if(e){const t=e._index,r=T[0],i=T[T.length-1],o=_[np(n,r)],a=_[np(n,i)];if(o&&a){const e=o._index,n=a._index;t<e?T=[x].concat(T):t>n&&(T=T.concat([x]))}}}if(!d&&!f&&b&&w&&$.length>2){const e=S[w.id];if(e){const t=e._index,n=$[0],r=$[$.length-1],i=S[n.id],o=S[r.id];if(i&&o){const e=i._index,n=o._index;t<e?$=[w].concat($):t>n&&($=$.concat([w]))}}}let M;const F=l?l.empty:null,R={$table:n,$grid:a,$gantt:s};if(F)M=F.call(n,R);else{const t=n.computeRendererOpts,i=k.name?t[k.name]||dv.get(k.name):null,o=i?i.renderTableEmpty||i.renderTableEmptyView||i.renderEmpty:null;M=o?Bp(o.call(n,e,k,R)):r.emptyText||uv("vxe.table.emptyText")}return e("div",{ref:"refElem",class:["vxe-table--body-wrapper",d?`fixed-${d}--wrapper`:"body--wrapper"],attrs:{xid:c}},[e("div",{ref:"refBodyScroll",class:"vxe-table--body-inner-wrapper",on:{scroll(e){n.triggerBodyScrollEvent(e,d)}}},[d?hv(n):e("div",{ref:"refBodyXSpace",class:"vxe-body--x-space"}),e("div",{ref:"refBodyYSpace",class:"vxe-body--y-space"}),e("table",{ref:"refBodyTable",class:"vxe-table--body",attrs:{xid:c,cellspacing:0,cellpadding:0,border:0,xvm:D?"1":null}},[e("colgroup",{ref:"refBodyColgroup"},$.map((t,n)=>e("col",{attrs:{name:t.id},key:n,style:{width:`${t.renderWidth}px`}}))),e("tbody",{ref:"refBodyTBody"},bv(e,this,d,D,T,$))]),e("div",{class:"vxe-table--checkbox-range"}),p&&E.area?e("div",{class:"vxe-table--cell-area",attrs:{xid:c}},[e("span",{class:"vxe-table--cell-main-area"},E.extension?[e("span",{class:"vxe-table--cell-main-area-btn",on:{mousedown(e){n.triggerCellAreaExtendMousedownEvent&&n.triggerCellAreaExtendMousedownEvent(e,{$table:n,fixed:d,type:fv})}}})]:null),e("span",{class:"vxe-table--cell-clip-area"}),e("span",{class:"vxe-table--cell-extend-area"}),e("span",{class:"vxe-table--cell-multi-area"}),e("span",{class:"vxe-table--cell-active-area"}),e("span",{class:"vxe-table--cell-row-status-area"})]):hv(n),d?hv(n):e("div",{class:"vxe-table--empty-block",ref:"emptyBlock"},[e("div",{class:"vxe-table--empty-content"},M)])])])}},{renderer:xv,renderEmptyElement:wv}=ad,Cv="table",_v="header";function Sv(e,t,n,r,i,o,a){const s=t,l=t.$parent,c=l.$xeGrid,u=l.$xeGantt,d=l,h=l,p=l,{fixedType:f}=s,{resizable:m,columnKey:g,showCustomHeader:v,headerCellClassName:b,headerCellStyle:y,showHeaderOverflow:x,headerAlign:w,align:C,mouseConfig:_}=d,{dragCol:S,scrollXLoad:k,scrollYLoad:E,overflowX:O,mergeHeadFlag:T,tableColumn:$,currColFlag:D}=h,{fullColumnIdData:M,scrollXStore:F,mergeHeaderList:R,mergeHeaderCellMaps:I,currentCol:A}=p,P=l.computeVirtualXOpts,L=l.computeColumnOpts,N=l.computeColumnDragOpts,j=l.computeHeaderTooltipOpts,B=l.computeCellOpts,V=l.computeDefaultRowHeight,z=l.computeHeaderCellOpts,H=l.computeRendererOpts,W=hp(z.height)||V,{disabledMethod:q,isCrossDrag:G,isPeerDrag:Y}=N,U=o===i.length-1;return a.map((t,i)=>{const{type:s,showHeaderOverflow:d,headerAlign:h,align:p,filters:V,headerClassName:K,editRender:X,cellRender:Z}=t,Q=t.id,J=M[Q]||{},ee=X||Z,te=ee&&ee.name?H[ee.name]||xv.get(ee.name):null,ne=t.children&&t.children.length,re=O&&!ne&&(f?t.fixed!==f:!!t.fixed),ie=bd(z.padding,B.padding),oe=!0===ie,ae=!!ie&&(oe||!1!==ie.top),se=!!ie&&(oe||!1!==ie.bottom),le=!!ie&&(oe||!1!==ie.left),ce=!!ie&&(oe||!1!==ie.right),ue=bd(d,x),de=h||(te?te.tableHeaderCellAlign:"")||w||p||(te?te.tableCellAlign:"")||C,he="ellipsis"===ue,pe="title"===ue,fe=!0===ue?"tooltip"===j.mode:"tooltip"===ue,me=pe||fe||he;let ge=!1,ve=null;V&&(ve=V[0],ge=V.some(e=>e.checked));const be=J.index,ye=v?i:J._index,xe={$table:l,$grid:c,$gantt:u,rowIndex:o,_rowIndex:o,$rowIndex:o,column:t,columnIndex:be,$columnIndex:i,_columnIndex:ye,firstFilterOption:ve,fixed:f,source:Cv,type:_v,isHidden:re,hasFilter:ge},we={colid:Q};let Ce=!1;if(v||(we.colspan=t.colSpan>1?t.colSpan:null,we.rowspan=t.rowSpan>1?t.rowSpan:null),T&&R.length&&(v||U)){const e=I[`${o}:${v?i:ye}`];if(e){const{rowspan:t,colspan:n}=e;if(!t||!n)return null;t>1&&(Ce=!0,we.rowspan=t),n>1&&(Ce=!0,we.colspan=n)}}const _e={click:e=>l.triggerHeaderCellClickEvent(e,xe),dblclick:e=>l.triggerHeaderCellDblclickEvent(e,xe)},Se=L.drag&&"cell"===N.trigger;let ke=!1;Se&&(ke=!(!q||!q(xe))),(_||Se)&&(_e.mousedown=e=>l.triggerHeaderCellMousedownEvent(e,xe)),L.drag&&(_e.dragstart=l.handleHeaderCellDragDragstartEvent,_e.dragend=l.handleHeaderCellDragDragendEvent,_e.dragover=l.handleHeaderCellDragDragoverEvent,Se&&(_e.mouseup=l.handleHeaderCellDragMouseupEvent));const Ee=i===a.length-1,Oe=pc.isBoolean(t.resizable)?t.resizable:L.resizable||m,Te=!t.resizeWidth&&("auto"===t.minWidth||"auto"===t.width);let $e=!1;r&&O&&!n&&!Ce&&(S&&S.id===Q||k&&$.length>10&&!t.fixed&&!P.immediate&&(ye<F.visibleStartIndex-F.preloadSize||ye>F.visibleEndIndex+F.preloadSize)&&($e=!0));const De={};if(me?De.height=`${W}px`:De.minHeight=`${W}px`,v);else if(ne&&!U){let e=0;pc.eachTree(t.children,t=>{!t.visible||t.children&&t.children.length||(e+=t.renderWidth)}),De.width=`${e}px`}return e("th",{class:["vxe-table--column vxe-header--column",Q,re?"fixed--hidden":"fixed--visible",{[`col--${de}`]:de,[`col--${s}`]:s,"col--last":Ee,"col--fixed":t.fixed,"col--group":ne,"col--ellipsis":me,"fixed--width":!Te,"is--pg-top":ae,"is--pg-bottom":se,"is--pg-left":le,"is--pg-right":ce,"is--sortable":t.sortable,"col--filter":!!V,"is--filter-active":ge,"is--drag-active":L.drag&&!t.fixed&&!ke&&(G||Y||!t.parentId),"is--drag-disabled":L.drag&&ke,"col--current":D&&A===t},vd(K,xe),vd(b,xe)],attrs:we,style:y?pc.isFunction(y)?y(xe):y:void 0,on:_e,key:v?`${Q}${i}`:g||k||E||L.useKey||L.drag||ne?Q:i},[e("div",{class:["vxe-cell",{"c--title":pe,"c--tooltip":fe,"c--ellipsis":he}],style:De},$e||r&&re?[]:[e("div",{attrs:{colid:Q},class:"vxe-cell--wrapper vxe-header-cell--wrapper"},t.renderHeader(e,xe))]),re||!Oe||v&&!U?wv(l):e("div",{class:"vxe-cell--col-resizable",on:{mousedown:e=>l.handleColResizeMousedownEvent(e,f,xe),dblclick:e=>l.handleColResizeDblclickEvent(e,xe)}})])})}function kv(e,t,n,r){const i=t,o=t.$parent,a=o.$xeGrid,s=o.$xeGantt,l=o,c=o,u=o,{fixedType:d}=i,{showHeaderOverflow:h,headerAlign:p,align:f}=l,{overflowX:m,currColFlag:g}=c,{fullColumnIdData:v,currentCol:b}=u,y=o.computeHeaderTooltipOpts,x=o.computeCellOpts,w=o.computeDefaultRowHeight,C=o.computeHeaderCellOpts,_=o.computeFloatingFilterOpts,S=o.computeRendererOpts,{cellClassName:k}=_,E=hp(C.height)||w;return r.map((t,i)=>{const{type:l,showHeaderOverflow:c,headerAlign:u,align:w,filters:_,editRender:O,cellRender:T,floatingFilters:$,filterRender:D,slots:M}=t,F=t.id,R=v[F]||{},I=O||T,A=I&&I.name?S[I.name]||xv.get(I.name):null,P=ld(D)&&D.name?S[D.name]||xv.get(D.name):null,L=P?P.renderTableFloatingFilter:null,N=M?M.floatingFilter||M["floating-filter"]:null,j=m&&(d?t.fixed!==d:!!t.fixed),B=pc.isBoolean(C.padding)?C.padding:x.padding,V=pc.eqNull(c)?h:c,z=u||(A?A.tableHeaderCellAlign:"")||p||w||(A?A.tableCellAlign:"")||f,H="ellipsis"===(!0===V?y.mode:V),W="title"===(!0===V?y.mode:V),q="tooltip"===(!0===V?y.mode:V),G=W||q||H;let Y=!1,U=null;_&&(U=_[0],Y=_.some(e=>e.checked));const K=R.index,X=R._index,Z={$table:o,$grid:a,$gantt:s,column:t,columnIndex:K,$columnIndex:i,_columnIndex:X,option:U,fixed:d,source:Cv,type:_v,isHidden:j,hasFilter:Y},Q={colid:F},J=i===r.length-1,ee=!t.resizeWidth&&("auto"===t.minWidth||"auto"===t.width),te={};return G?te.height=`${E}px`:te.minHeight=`${E}px`,e("th",{class:["vxe-table--column vxe-header--column is--floating-filters",F,j?"fixed--hidden":"fixed--visible",{[`col--${z}`]:z,[`col--${l}`]:l,"col--last":J,"col--fixed":t.fixed,"col--ellipsis":G,"fixed--width":!ee,"is--padding":B,"is--sortable":t.sortable,"col--current":g&&b===t}],key:F,attrs:Q},[e("div",{class:["vxe-cell",""+(k||""),{"c--title":W,"c--tooltip":q,"c--ellipsis":H}],style:te},n&&j&&!$?[]:[e("div",{attrs:{colid:F},class:"vxe-cell--wrapper vxe-header-cell--wrapper"},N?o.callSlot(N,Z,e):L&&U?Bp(L.call(o,e,D,Z)):[])])])})}function Ev(e,t,n,r,i,o){const a=t,s=t.$parent,l=s,{fixedType:c}=a,{headerRowClassName:u,headerRowStyle:d}=l,h=s.computeFloatingFilterOpts,p=i.map((o,a)=>{const l={$table:s,rowIndex:a,_rowIndex:a,$rowIndex:a,fixed:c,type:_v};return e("tr",{key:a,class:["vxe-header--row",u?pc.isFunction(u)?u(l):u:""],style:d?pc.isFunction(d)?d(l):d:void 0},Sv(e,t,n,r,i,a,o))});return h.enabled&&p.push(e("tr",{key:"ff",class:["vxe-header--row is--floating-filters",""+(h.rowClassName||"")]},kv(e,t,r,o))),p}const Ov={name:"VxeTableHeader",props:{tableData:Array,tableColumn:Array,tableGroupColumn:Array,fixedColumn:Array,fixedType:{type:String,default:null}},data(){const e=[];return{headerColumn:e}},watch:{tableColumn(){const e=this;e.uploadColumn()}},created(){const e=this;e.uploadColumn()},mounted(){const e=this,t=e,n=e.$parent,r=n,{fixedType:i}=t,{elemStore:o}=r,a=`${i||"main"}-header-`;o[`${a}wrapper`]=e.$refs.refElem,o[`${a}scroll`]=e.$refs.refHeaderScroll,o[`${a}table`]=e.$refs.refHeaderTable,o[`${a}colgroup`]=e.$refs.refHeaderColgroup,o[`${a}list`]=e.$refs.refHeaderTHead,o[`${a}xSpace`]=e.$refs.refHeaderXSpace,o[`${a}repair`]=e.$refs.refHeaderBorderRepair},destroyed(){const e=this,t=e,n=e.$parent,r=n,{fixedType:i}=t,{elemStore:o}=r,a=`${i||"main"}-header-`;o[`${a}wrapper`]=null,o[`${a}scroll`]=null,o[`${a}table`]=null,o[`${a}colgroup`]=null,o[`${a}list`]=null,o[`${a}xSpace`]=null,o[`${a}repair`]=null},render(e){const t=this,n=t,r=t.$parent,i=r,o=r,a=r,{xID:s}=r,{fixedType:l,fixedColumn:c,tableColumn:u}=n,{headerColumn:d}=t,{mouseConfig:h}=i,{isGroup:p,isColLoading:f,overflowX:m,scrollXLoad:g,dragCol:v}=o,{visibleColumn:b,fullColumnIdData:y}=a,x=r.computeMouseOpts,w=r.computeIsHeaderRenderOptimize;let C=d,_=u;const S=w;if(p?_=b:(S&&(f||!l&&m)||(_=b),l&&S&&(_=c||[]),C=[_]),!l&&!p&&g&&v&&_.length>2){const e=y[v.id];if(e){const t=e._index,n=_[0],r=_[_.length-1],i=y[n.id],o=y[r.id];if(i&&o){const e=i._index,n=o._index;t<e?(_=[v].concat(_),C=[[v].concat(C[0])].concat(C.slice(1))):t>n&&(_=_.concat([v]),C=[C[0].concat([v])].concat(C.slice(1)))}}}return e("div",{ref:"refElem",class:["vxe-table--header-wrapper",l?`fixed-${l}--wrapper`:"body--wrapper"],attrs:{xid:s}},[e("div",{ref:"refHeaderScroll",class:"vxe-table--header-inner-wrapper",on:{scroll(e){r.triggerHeaderScrollEvent(e,l)}}},[l?wv(r):e("div",{ref:"refHeaderXSpace",class:"vxe-body--x-space"}),e("table",{ref:"refHeaderTable",class:"vxe-table--header",attrs:{xid:s,cellspacing:0,cellpadding:0,border:0,xvm:S?"1":null}},[e("colgroup",{ref:"refHeaderColgroup"},_.map((t,n)=>e("col",{attrs:{name:t.id},key:n,style:{width:`${t.renderWidth}px`}}))),e("thead",{ref:"refHeaderTHead"},Ev(e,t,p,S,C,_))]),h&&x.area?e("div",{class:"vxe-table--cell-area",attrs:{xid:s}},[e("span",{class:"vxe-table--cell-main-area"}),e("span",{class:"vxe-table--cell-clip-area"}),e("span",{class:"vxe-table--cell-extend-area"}),e("span",{class:"vxe-table--cell-multi-area"}),e("span",{class:"vxe-table--cell-active-area"}),e("span",{class:"vxe-table--cell-col-status-area"})]):wv(r)])])},methods:{uploadColumn(){const e=this,t=e.$parent,n=t,r=t,i=t,o=e,{showCustomHeader:a}=n,{collectColumn:s,visibleColumn:l}=i,{tableGroupColumn:c}=o,{isGroup:u}=r;let d=u?Uh(c):[],h=[];a&&d.length>1&&(h=Kh(d),d=h),e.headerColumn=d,t.$nextTick(()=>{t.dispatchEvent("columns-change",{visibleColgroups:h,collectColumn:s,visibleColumn:l},null)})}}},Tv="table",$v="footer",{renderer:Dv,renderEmptyElement:Mv}=ad;function Fv(e,t,n,r,i,o,a,s){const l=t,c=t.$parent,u=c,d=c,h=c,p=c.$xeGrid,f=c.$xeGantt,{fixedType:m}=l,{resizable:g,border:v,footerCellClassName:b,footerCellStyle:y,footerAlign:x,footerSpanMethod:w,align:C,columnKey:_,showFooterOverflow:S}=u,{scrollXLoad:k,scrollYLoad:E,overflowX:O,mergeFootFlag:T,currColFlag:$}=d,{fullColumnIdData:D,mergeFooterList:M,mergeFooterCellMaps:F,scrollXStore:R,currentCol:I}=h,A=c.computeVirtualXOpts,P=c.computeFooterTooltipOpts,L=c.resizableOpts,{isAllColumnDrag:N}=L,j=c.computeColumnOpts,B=c.computeDefaultRowHeight,V=c.computeCellOpts,z=c.computeFooterCellOpts,H=hp(z.height)||B,W=c.computeRendererOpts;return r.map((t,l)=>{const{type:u,showFooterOverflow:d,footerAlign:h,align:L,footerClassName:B,editRender:q,cellRender:G}=t,Y=t.id,U=D[Y]||{},K=q||G,X=K&&K.name?W[K.name]||Dv.get(K.name):null,Z=P.showAll,Q=O&&(m?t.fixed!==m:!!t.fixed),J=bd(z.padding,V.padding),ee=!0===J,te=!!J&&(ee||!1!==J.top),ne=!!J&&(ee||!1!==J.bottom),re=!!J&&(ee||!1!==J.left),ie=!!J&&(ee||!1!==J.right),oe=bd(d,S),ae=h||(X?X.tableFooterCellAlign:"")||x||L||(X?X.tableCellAlign:"")||C,se="ellipsis"===(!0===oe?P.mode:oe),le="title"===(!0===oe?P.mode:oe),ce="tooltip"===(!0===oe?P.mode:oe),ue=le||ce||se,de=pc.isBoolean(t.resizable)?t.resizable:j.resizable||g,he={colid:Y},pe={},fe=U.index,me=U._index,ge=me,ve={source:Tv,$table:c,$grid:p,$gantt:f,row:o,rowIndex:s,_rowIndex:s,$rowIndex:a,column:t,columnIndex:fe,$columnIndex:l,_columnIndex:me,itemIndex:ge,items:o,fixed:m,type:$v,data:i};(le||ce||Z)&&(pe.mouseenter=e=>{le?mh(e.currentTarget,t):(ce||Z)&&c.triggerFooterTooltipEvent(e,ve)}),(ce||Z)&&(pe.mouseleave=e=>{(ce||Z)&&c.handleTargetLeaveEvent(e)}),pe.click=e=>{c.triggerFooterCellClickEvent(e,ve)},pe.dblclick=e=>{c.triggerFooterCellDblclickEvent(e,ve)};let be=!1;if(T&&M.length){const e=F[`${s}:${me}`];if(e){const{rowspan:t,colspan:n}=e;if(!t||!n)return null;t>1&&(be=!0,he.rowspan=t),n>1&&(be=!0,he.colspan=n)}}else if(w){const{rowspan:e=1,colspan:t=1}=w(ve)||{};if(!e||!t)return null;e>1&&(he.rowspan=e),t>1&&(he.colspan=t)}const ye=l===r.length-1,xe=!t.resizeWidth&&("auto"===t.minWidth||"auto"===t.width);let we=!1;n&&O&&!be&&k&&r.length>10&&!t.fixed&&!A.immediate&&(me<R.visibleStartIndex-R.preloadSize||me>R.visibleEndIndex+R.preloadSize)&&(we=!0);const Ce={};return ue?Ce.height=`${H}px`:Ce.minHeight=`${H}px`,e("td",{class:["vxe-table--column vxe-footer--column",t.id,{[`col--${ae}`]:ae,[`col--${u}`]:u,"col--last":ye,"fixed--width":!xe,"fixed--hidden":Q,"is--pg-top":te,"is--pg-bottom":ne,"is--pg-left":re,"is--pg-right":ie,"col--ellipsis":ue,"col--current":$&&I===t},vd(B,ve),vd(b,ve)],attrs:he,style:y?pc.isFunction(y)?y(ve):y:void 0,on:pe,key:_||k||E||j.useKey||j.drag?t.id:l},[e("div",{class:["vxe-cell",{"c--title":le,"c--tooltip":ce,"c--ellipsis":se}],style:Ce},we?[]:[e("div",{attrs:{colid:Y},class:"vxe-cell--wrapper vxe-footer-cell--wrapper"},t.renderFooter(e,ve))]),!Q&&de&&N?e("div",{class:["vxe-cell--col-resizable",{"is--line":!v||"none"===v}],on:{mousedown:e=>c.handleColResizeMousedownEvent(e,m,ve),dblclick:e=>c.handleColResizeDblclickEvent(e,ve)}}):Mv(c)])})}function Rv(e,t,n,r){const i=t,o=t.$parent,a=o,{fixedType:s,footerTableData:l}=i,{footerRowClassName:c,footerRowStyle:u}=a;return l.map((i,a)=>{const d=a,h={$table:o,row:i,rowIndex:a,_rowIndex:a,$rowIndex:d,fixed:s,type:$v};return e("tr",{key:a,class:["vxe-footer--row",c?pc.isFunction(c)?c(h):c:""],style:u?pc.isFunction(u)?u(h):u:void 0},Fv(e,t,n,r,l,i,a,a))})}const Iv={name:"VxeTableFooter",props:{footerTableData:{type:Array,default:()=>[]},tableColumn:{type:Array,default:()=>[]},fixedColumn:{type:Array,default:()=>[]},fixedType:{type:String,default:null}},mounted(){const e=this,t=e,n=e.$parent,r=n,{fixedType:i}=t,{elemStore:o}=r,a=`${i||"main"}-footer-`;o[`${a}wrapper`]=e.$refs.refElem,o[`${a}scroll`]=e.$refs.refFooterScroll,o[`${a}table`]=e.$refs.refFooterTable,o[`${a}colgroup`]=e.$refs.refFooterColgroup,o[`${a}list`]=e.$refs.refFooterTFoot,o[`${a}xSpace`]=e.$refs.refFooterXSpace},destroyed(){const e=this,t=e,n=e.$parent,r=n,{fixedType:i}=t,{elemStore:o}=r,a=`${i||"main"}-footer-`;o[`${a}wrapper`]=null,o[`${a}scroll`]=null,o[`${a}table`]=null,o[`${a}colgroup`]=null,o[`${a}list`]=null,o[`${a}xSpace`]=null},render(e){const t=this,n=t,r=t.$parent,i=r,o=r,{xID:a}=r,{fixedType:s,fixedColumn:l,tableColumn:c}=n,{visibleColumn:u,fullColumnIdData:d}=o,{isGroup:h,isColLoading:p,overflowX:f,scrollXLoad:m,dragCol:g}=i,v=r.computeIsFooterRenderOptimize;let b=c;const y=v;if(y&&(p||!s&&f)||(b=u),s&&y&&(b=l||[]),!s&&!h&&m&&g&&b.length>2){const e=d[g.id];if(e){const t=e._index,n=b[0],r=b[b.length-1],i=d[n.id],o=d[r.id];if(i&&o){const e=i._index,n=o._index;t<e?b=[g].concat(b):t>n&&(b=b.concat([g]))}}}return e("div",{ref:"refElem",class:["vxe-table--footer-wrapper",s?`fixed-${s}--wrapper`:"body--wrapper"],attrs:{xid:a}},[e("div",{ref:"refFooterScroll",class:"vxe-table--footer-inner-wrapper",on:{scroll(e){r.triggerFooterScrollEvent(e,s)}}},[s?Mv(r):e("div",{ref:"refFooterXSpace",class:"vxe-body--x-space"}),e("table",{ref:"refFooterTable",class:"vxe-table--footer",attrs:{xid:a,cellspacing:0,cellpadding:0,border:0,xvm:y?"1":null}},[e("colgroup",{ref:"refFooterColgroup"},b.map((t,n)=>e("col",{attrs:{name:t.id},key:n,style:{width:`${t.renderWidth}px`}}))),e("tfoot",{ref:"refFooterTFoot"},Rv(e,t,y,b))])])])}},{errLog:Av}=Ih("table"),{getI18n:Pv,getIcon:Lv,renderEmptyElement:Nv}=ad;function jv(e,t,n,r,i){const o=e.internalData,a=e.$refs.refBodyWrapperElem;if(!a)return;const s=e.$refs.refCustomBodyElem;if(!s)return;const{prevDragToChild:l}=o,c=a.getBoundingClientRect(),u=s.getBoundingClientRect(),d=e.$refs.refDragLineElem;if(n){if(d)if(r){const e=n.getBoundingClientRect();d.style.display="block",d.style.left=`${Math.max(0,u.x-c.x)}px`,d.style.top=`${Math.max(1,e.y+a.scrollTop-c.y)}px`,d.style.height=`${e.height}px`,d.style.width=`${e.width}px`,d.setAttribute("drag-pos",i),d.setAttribute("drag-to-child",l?"y":"n")}else d.style.display=""}else d&&(d.style.display="node");const h=e.$refs.refDragTipElem;h&&(h.style.display="block",h.style.top=`${Math.min(a.clientHeight+a.scrollTop-h.clientHeight,t.clientY+a.scrollTop-c.y)}px`,h.style.left=`${Math.min(a.clientWidth+a.scrollLeft-h.clientWidth,t.clientX+a.scrollLeft-c.x)}px`,h.setAttribute("drag-status",r?l?"sub":"normal":"disabled"))}function Bv(e){const t=e.$refs.refDragTipElem,n=e.$refs.refDragLineElem;t&&(t.style.display=""),n&&(n.style.display="")}const Vv={name:"VxeTableCustomPanel",props:{customStore:{type:Object,default:()=>({})}},provide(){const e=this;return{$xeTableCustomPanel:e}},inject:{$xeTable:{default:null}},data(){const e={dragCol:null,dragGroupField:null,dragAggFnCol:null,dragTipText:""},t={};return{reactData:e,internalData:t}},computed:Object.assign({},{}),created(){const e=this,t=ad.getComponent("VxeModal"),n=ad.getComponent("VxeDrawer"),r=ad.getComponent("VxeButton"),i=ad.getComponent("VxeNumberInput"),o=ad.getComponent("VxeRadioGroup");e.$nextTick(()=>{const a=e.$xeTable,{customOpts:s}=a,{mode:l}=s;t||"modal"!==l||Av("vxe.error.reqComp",["vxe-modal"]),n||"drawer"!==l||Av("vxe.error.reqComp",["vxe-drawer"]),r||Av("vxe.error.reqComp",["vxe-button"]),i||Av("vxe.error.reqComp",["vxe-number-input"]),o||Av("vxe.error.reqComp",["vxe-radio-group"])})},methods:{handleWrapperMouseenterEvent(e){const t=this,n=t,r=t.$xeTable,{customStore:i}=n;i.activeWrapper=!0,r.customOpenEvent(e)},handleWrapperMouseleaveEvent(e){const t=this,n=t.$xeTable,r=t,{customStore:i}=r;i.activeWrapper=!1,setTimeout(()=>{i.activeBtn||i.activeWrapper||n.customCloseEvent(e)},300)},getStoreData(){return{}},confirmCustomEvent({$event:e}){const t=this,n=t.$xeTable,r=n;r.isCustomStatus=!0,n.saveCustom(),n.closeCustom(),n.emitCustomEvent("confirm",e),n.dispatchEvent("custom-confirm",{},e),n.emitCustomEvent("close",e),n.dispatchEvent("custom-close",{},e)},cancelCloseEvent({$event:e}){const t=this,n=t.$xeTable;n.closeCustom(),n.emitCustomEvent("close",e),n.dispatchEvent("custom-close",{},e)},cancelCustomEvent({$event:e}){const t=this,n=t.$xeTable;n.cancelCustom(),n.closeCustom(),n.emitCustomEvent("cancel",e),n.dispatchEvent("custom-cancel",{},e),n.emitCustomEvent("close",e),n.dispatchEvent("custom-close",{},e)},handleResetCustomEvent(e){const t=this,n=t.$xeTable;n.resetCustom(!0),n.closeCustom(),n.emitCustomEvent("reset",e),n.dispatchEvent("custom-reset",{},e),n.emitCustomEvent("close",e),n.dispatchEvent("custom-close",{},e)},resetCustomEvent(e){ad.modal?ad.modal.confirm({content:Pv("vxe.custom.cstmConfirmRestore"),className:"vxe-table--ignore-clear",escClosable:!0}).then(t=>{"confirm"===t&&this.handleResetCustomEvent(e)}):this.handleResetCustomEvent(e)},handleOptionCheck(e){const t=this,n=t.$xeTable,r=n,{customColumnList:i}=r,o=pc.findTree(i,t=>t===e);if(o&&o.parent){const{parent:e}=o;e.children&&e.children.length&&(e.renderVisible=e.children.every(e=>e.renderVisible),e.halfVisible=!e.renderVisible&&e.children.some(e=>e.renderVisible||e.halfVisible),this.handleOptionCheck(e))}},changeCheckboxOption(e,t){const n=this,r=n.$xeTable,i=r,o=!e.renderVisible,a=r.computeCustomOpts;a.immediate?(pc.eachTree([e],e=>{e.visible=o,e.renderVisible=o,e.halfVisible=!1}),i.isCustomStatus=!0,r.handleCustom(),r.saveCustomStore("update:visible")):pc.eachTree([e],e=>{e.renderVisible=o,e.halfVisible=!1}),this.handleOptionCheck(e),r.checkCustomStatus(),r.dispatchEvent("custom-visible-change",{column:e,checked:o},t)},changeColumnWidth(e){const t=this,n=t.$xeTable,r=n,i=n.computeCustomOpts;i.immediate&&e.renderResizeWidth!==e.renderWidth&&(e.resizeWidth=e.renderResizeWidth,e.renderWidth=e.renderResizeWidth,r.isCustomStatus=!0,n.handleCustom(),n.saveCustomStore("update:width"))},changeFixedOption(e,t,n){const r=this,i=r.$xeTable,o=i,a=i.computeIsMaxFixedColumn,s=i.computeCustomOpts;let l=null;s.immediate?(e.renderFixed===t?(l="",pc.eachTree([e],e=>{e.fixed="",e.renderFixed=""})):a&&!e.renderFixed||(l=t,pc.eachTree([e],e=>{e.fixed=t,e.renderFixed=t})),o.isCustomStatus=!0,i.handleCustom(),i.saveCustomStore("update:fixed")):e.renderFixed===t?(l="",pc.eachTree([e],e=>{e.renderFixed=""})):a&&!e.renderFixed||(l=t,pc.eachTree([e],e=>{e.renderFixed=t})),null!==l&&i.dispatchEvent("custom-fixed-change",{column:e,fixed:l},n)},changeAlignOption(e,t,n,r,i,o){const a=this,s=a.$xeTable,l=s,c=s.computeCustomOpts;c.immediate?(e[n]=t,e[r]=t,l.isCustomStatus=!0,s.handleCustom(),s.saveCustomStore(`update:${n}`)):e[r]=t,s.dispatchEvent(i,{column:e,[n]:t},o)},allOptionEvent(e){const t=this,n=t.$xeTable,r=n,{customStore:i}=r,o=!i.isAll;n.toggleCustomAllCheckbox(),n.dispatchEvent("custom-visible-all",{checked:o},e)},updateColDropTipContent(){const e=this,t=e.$xeTable,n=e.reactData,{dragCol:r}=n,i=t.computeColumnDragOpts,{tooltipMethod:o}=i;let a="";if(o){const e={$table:t,column:r};a=`${o(e)||""}`}else a=Pv("vxe.custom.cstmDragTarget",[r&&"html"!==r.type?r.getTitle():""]);n.dragTipText=a},sortMousedownEvent(e){const t=this,n=t.$xeTable,r=t.reactData,i=e.currentTarget,o=i.parentElement,a=o.parentElement,s=a.parentElement,l=s.getAttribute("colid"),c=n.getColumnById(l);s.draggable=!0,r.dragCol=c,r.dragGroupField=null,r.dragAggFnCol=null,this.updateColDropTipContent(),ah(s,"active--drag-origin")},sortMouseupEvent(e){const t=this,n=t.reactData,r=e.currentTarget,i=r.parentElement,o=i.parentElement,a=o.parentElement;Bv(t),a.draggable=!1,n.dragCol=null,n.dragGroupField=null,n.dragAggFnCol=null,oh(a,"active--drag-origin")},sortDragstartEvent(e){const t=this,n=t.$xeTable,r=n,i=t.internalData,{customDragTime:o}=i;e.dataTransfer&&e.dataTransfer.setDragImage(Jd(),0,0),o&&clearTimeout(o),r.isCustomDragStatus=!0,i.prevDragGroupField=null,i.prevDragAggFnColid=null},sortDragendEvent(e){const t=this,n=t.$xeTable,r=n,i=n,o=n,a=t.reactData,s=t.internalData,{mouseConfig:l}=r,{customColumnList:c}=i,{collectColumn:u}=o,d=n.computeCustomOpts,{immediate:h}=d,p=e.currentTarget,f=n.computeColumnDragOpts,{isCrossDrag:m,isPeerDrag:g,isSelfToChildDrag:v,isToChildDrag:b,dragEndMethod:y}=f,{dragCol:x}=a,{prevDragCol:w,prevDragGroupField:C,prevDragAggFnColid:_,prevDragPos:S,prevDragToChild:k}=s,E="bottom"===S?1:0;if(C||_)n.handlePivotTableAggregatePanelDragendEvent&&n.handlePivotTableAggregatePanelDragendEvent(e);else if(w&&x&&w!==x){const r=x,o=w;Promise.resolve(!y||y({oldColumn:r,newColumn:o,dragColumn:r,dragPos:S,dragToChild:!!k,offsetIndex:E})).then(a=>{if(!a)return;let s=-1,d=-1;const p={};pc.eachTree([r],e=>{p[e.id]=e});let f=!1;if(h){if(r.parentId&&o.parentId)if(g&&!m){if(r.parentId!==o.parentId)return}else{if(!m)return;if(p[o.id]&&(f=!0,!m||!v))return void(ad.modal&&ad.modal.message({status:"error",content:Pv("vxe.error.treeDragChild")}))}else if(r.parentId){if(!m)return}else if(o.parentId){if(!m)return;if(p[o.id]&&(f=!0,!m||!v))return void(ad.modal&&ad.modal.message({status:"error",content:Pv("vxe.error.treeDragChild")}))}const e=pc.findTree(u,e=>e.id===r.id);if(f&&m&&v){if(e){const{items:t,index:n}=e,i=r.children||[];i.forEach(e=>{e.parentId=r.parentId}),t.splice(n,1,...i),r.children=[]}}else if(e){const{items:t,index:n,parent:r}=e;t.splice(n,1),r||(s=n)}const t=pc.findTree(u,e=>e.id===o.id);if(t){const{items:e,index:n,parent:i}=t;m&&b&&k?(r.parentId=o.id,o.children=(o.children||[]).concat([r])):(r.parentId=o.parentId,e.splice(n+E,0,r)),i||(d=n)}pc.eachTree(u,(e,t,n,r,i)=>{if(!i){const n=t+1;e.renderSortNumber=n}})}else s=pc.findIndexOf(c,e=>e.id===r.id),c.splice(s,1),d=pc.findIndexOf(c,e=>e.id===o.id),c.splice(d+E,0,r);l&&(n.clearSelected&&n.clearSelected(),n.clearCellAreas&&(n.clearCellAreas(),n.clearCopyCellArea()));const y={oldColumn:r,newColumn:o,dragColumn:r,dragPos:S,offsetIndex:E,_index:{newIndex:d,oldIndex:s}};n.dispatchEvent("custom-sort-change",y,e),n.dispatchEvent("column-dragend",y,e),h&&(i.customColumnList=u.slice(0),n.handleColDragSwapColumn()),t.clearDragAnimateStatus()}).catch(()=>{})}Bv(t),a.dragCol=null,a.dragGroupField=null,a.dragAggFnCol=null,s.prevDragGroupField=null,s.prevDragAggFnColid=null,p.draggable=!1,p.removeAttribute("drag-pos"),oh(p,"active--drag-target"),oh(p,"active--drag-origin")},sortDragoverEvent(e){const t=this,n=t.$xeTable,r=t.reactData,i=t.internalData,{dragCol:o}=r,a=n.computeCustomOpts,{showSortDragButton:s,allowSort:l,immediate:c}=a,u=n.computeColumnDragOpts,{isCrossDrag:d,isPeerDrag:h,isToChildDrag:p}=u,f=e.currentTarget,m=sh(e),g=f.getAttribute("colid"),v=n.getColumnById(g);if(i.prevDragGroupField=null,i.prevDragAggFnColid=null,v&&(d||h||1===v.level)){e.preventDefault();const n=e.clientY-f.getBoundingClientRect().y,r=n<f.clientHeight/2?"top":"bottom";if(!o||!s||!l||o&&o.id===v.id||!d&&(h?o.parentId!==v.parentId:v.level>1)||!c&&v.level>1||!d&&(h?o.parentId!==v.parentId:o.level>1)||!c&&o.level>1)return void jv(t,e,f,!1,r);i.prevDragToChild=!!(d&&p&&m&&c),i.prevDragCol=v,i.prevDragPos=r,jv(t,e,f,!0,r)}},clearDragAnimateStatus(){const e=this,t=e.$xeTable,n=e.internalData,r=t;n.customDragTime=setTimeout(()=>{r.isCustomDragStatus=!1,n.customDragTime=void 0},350)},sortMoveUpEvent(e,t){const n=this,r=n.$xeTable,i=r,{customColumnList:o}=i,a=pc.findTree(o,e=>e===t);if(a){const{item:e,items:t,index:r}=a;r>0&&(i.isCustomDragStatus=!0,n.$nextTick(()=>{t.splice(r,1),t.splice(r-1,0,e),n.clearDragAnimateStatus()}))}},sortMoveDnEvent(e,t){const n=this,r=n.$xeTable,i=r,{customColumnList:o}=i,a=pc.findTree(o,e=>e===t);if(a){const{item:e,items:t,index:r}=a;r<t.length-1&&(i.isCustomDragStatus=!0,n.$nextTick(()=>{t.splice(r,1),t.splice(r+1,0,e),n.clearDragAnimateStatus()}))}},sortMoveTopEvent(e,t){const n=this,r=n.$xeTable,i=r,{customColumnList:o}=i,a=pc.findTree(o,e=>e===t);if(a){const{item:e,items:t,index:r,parent:s}=a;(s||r>0)&&(i.isCustomDragStatus=!0,n.$nextTick(()=>{e.parentId=null,t.splice(r,1),o.unshift(e),n.clearDragAnimateStatus()}))}},sortMoveBottomEvent(e,t){const n=this,r=n.$xeTable,i=r,{customColumnList:o}=i,a=pc.findTree(o,e=>e===t);if(a){const{item:e,items:t,index:r,parent:s}=a;(s||r<t.length-1)&&(i.isCustomDragStatus=!0,n.$nextTick(()=>{e.parentId=null,t.splice(r,1),o.push(e),n.clearDragAnimateStatus()}))}},renderDragTip(e){const t=this,n=t.$xeTable,r=t.reactData,{dragTipText:i}=r,o=n.computeColumnDragOpts;return e("div",{},[e("div",{ref:"refDragLineElem",class:["vxe-table-custom-popup--drag-line",{"is--guides":o.showGuidesStatus}]}),e("div",{ref:"refDragTipElem",class:"vxe-table-custom-popup--drag-tip"},[e("div",{class:"vxe-table-custom-popup--drag-tip-wrapper"},[e("div",{class:"vxe-table-custom-popup--drag-tip-status"},[e("span",{class:["vxe-table-custom-popup--drag-tip-normal-status",Lv().TABLE_DRAG_STATUS_ROW]}),e("span",{class:["vxe-table-custom-popup--drag-tip-sub-status",Lv().TABLE_DRAG_STATUS_SUB_ROW]}),e("span",{class:["vxe-table-custom-popup--drag-tip-group-status",Lv().TABLE_DRAG_STATUS_AGG_GROUP]}),e("span",{class:["vxe-table-custom-popup--drag-tip-values-status",Lv().TABLE_DRAG_STATUS_AGG_VALUES]}),e("span",{class:["vxe-table-custom-popup--drag-tip-disabled-status",Lv().TABLE_DRAG_DISABLED]})]),e("div",{class:"vxe-table-custom-popup--drag-tip-content"},`${i||""}`)])])])},renderSimplePanel(e){const t=ad.getComponent("VxeButton"),n=this,r=n,i=n.$xeTable,o=i,a=i,s=i.$xeGrid,l=i.$xeGantt,{customStore:c}=r,{treeConfig:u,rowGroupConfig:d,aggregateConfig:h}=o,{isCustomStatus:p,customColumnList:f,isCustomDragStatus:m}=a,g=i.computeCustomOpts,v=i.computeColumnDragOpts,{defPopupStyle:b}=c,{immediate:y,checkMethod:x,visibleMethod:w,allowVisible:C,allowSort:_,allowFixed:S,allowGroup:k,allowValues:E,trigger:O,placement:T,showSortDragButton:$,showSortMoveButton:D,showSortPutButton:M}=g,F=i.computeIsMaxFixedColumn,R=i.computeSize,{isCrossDrag:I,isPeerDrag:A}=v,P=g.slots||{},L=P.header,N=P.top,j=P.bottom,B=P.default,V=P.footer,z=[],H={},W=c.isAll,q=c.isIndeterminate;"hover"===O&&(H.mouseenter=n.handleWrapperMouseenterEvent,H.mouseleave=n.handleWrapperMouseleaveEvent);const G={$table:i,$grid:s,$gantt:l,columns:f,isAllChecked:W,isAllIndeterminate:q,isCustomStatus:p};return pc.eachTree(f,(r,o,a,s,l)=>{const c=!w||w({$table:i,column:r});if(c){const s=r.renderVisible,c=r.halfVisible,u=r.children&&r.children.length,d=md(r.getTitle(),1),h=!!x&&!x({$table:i,column:r}),p=!s,f=!(!I&&!A)&&y||1===r.level;z.push(e("li",{key:r.id,attrs:{colid:r.id},class:["vxe-table-custom--option",`level--${r.level}`,{"is--hidden":h||p,"is--group":u}],on:{dragstart:n.sortDragstartEvent,dragend:n.sortDragendEvent,dragover:n.sortDragoverEvent}},[C?e("div",{class:["vxe-table-custom--checkbox-option",{"is--checked":s,"is--indeterminate":c,"is--disabled":h}],attrs:{title:Pv("vxe.custom.setting.colVisible")},on:{click:e=>{h||n.changeCheckboxOption(r,e)}}},[e("span",{class:["vxe-checkbox--icon",c?Lv().TABLE_CHECKBOX_INDETERMINATE:s?Lv().TABLE_CHECKBOX_CHECKED:Lv().TABLE_CHECKBOX_UNCHECKED]})]):Nv(i),e("div",{class:"vxe-table-custom--name-option"},[(_&&$||k||E)&&(f||(k||E)&&!u)?e("div",{class:"vxe-table-custom--sort-option"},[e("span",{class:["vxe-table-custom--sort-btn",{"is--disabled":p}],attrs:{title:Pv("vxe.custom.setting.sortHelpTip")},on:p?{}:{mousedown:n.sortMousedownEvent,mouseup:n.sortMouseupEvent}},[e("i",{class:Lv().TABLE_CUSTOM_SORT})])]):Nv(i),"html"===r.type?e("div",{key:"1",class:"vxe-table-custom--checkbox-label",domProps:{innerHTML:d}}):e("div",{key:"0",class:"vxe-table-custom--checkbox-label",attrs:{title:d}},d)]),f&&(D||M)?e("div",{class:"vxe-table-custom--move-btn-option"},t?[D?e(t,{props:{mode:"text",icon:"vxe-icon-arrows-up",title:Pv("vxe.custom.setting.moveUpTitle"),disabled:o<=0},on:{click(e){n.sortMoveUpEvent(e,r)}}}):Nv(i),D?e(t,{props:{mode:"text",icon:"vxe-icon-arrows-down",title:Pv("vxe.custom.setting.moveDnTitle"),disabled:o>=a.length-1},on:{click(e){n.sortMoveDnEvent(e,r)}}}):Nv(i),M&&!l?e(t,{props:{mode:"text",icon:"vxe-icon-top",title:Pv("vxe.custom.setting.putTopTitle"),disabled:o<=0},on:{click(e){n.sortMoveTopEvent(e,r)}}}):Nv(i),M&&!l?e(t,{props:{mode:"text",icon:"vxe-icon-bottom",title:Pv("vxe.custom.setting.putBottomTitle"),disabled:o>=a.length-1},on:{click(e){n.sortMoveBottomEvent(e,r)}}}):Nv(i)]:[]):Nv(i),!l&&S?e("div",{class:"vxe-table-custom--fixed-option"},t?[e(t,{props:{mode:"text",icon:"left"===r.renderFixed?Lv().TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE:Lv().TOOLBAR_TOOLS_FIXED_LEFT,status:"left"===r.renderFixed?"primary":"",disabled:p||F&&!r.renderFixed,title:Pv("left"===r.renderFixed?"vxe.toolbar.cancelFixed":"vxe.toolbar.fixedLeft")},on:{click:({$event:e})=>{n.changeFixedOption(r,"left",e)}}}),e(t,{props:{mode:"text",icon:"right"===r.renderFixed?Lv().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE:Lv().TOOLBAR_TOOLS_FIXED_RIGHT,status:"right"===r.renderFixed?"primary":"",disabled:p||F&&!r.renderFixed,title:Pv("right"===r.renderFixed?"vxe.toolbar.cancelFixed":"vxe.toolbar.fixedRight")},on:{click:({$event:e})=>{n.changeFixedOption(r,"right",e)}}})]:[]):Nv(i)]))}}),e("div",{ref:"refElem",key:"simple",class:["vxe-table-custom-wrapper",`placement--${T}`,{[`size--${R}`]:R,"is--active":c.visible}],style:b},c.visible?[e("div",{ref:"refBodyWrapperElem",class:"vxe-table-custom-simple--body-wrapper"},[!u&&(h||d)&&i.getPivotTableAggregateSimplePanel?e(i.getPivotTableAggregateSimplePanel(),{props:{customStore:c}}):Nv(i),e("div",{ref:"refCustomBodyElem",class:"vxe-table-custom--handle-wrapper"},[e("div",{class:"vxe-table-custom--header"},L?i.callSlot(L,G,e):[e("ul",{class:"vxe-table-custom--panel-list"},[e("li",{class:"vxe-table-custom--option"},[C?e("div",{class:["vxe-table-custom--checkbox-option",{"is--checked":W,"is--indeterminate":q}],attrs:{title:Pv("vxe.table.allTitle")},on:{click:n.allOptionEvent}},[e("span",{class:["vxe-checkbox--icon",q?Lv().TABLE_CHECKBOX_INDETERMINATE:W?Lv().TABLE_CHECKBOX_CHECKED:Lv().TABLE_CHECKBOX_UNCHECKED]}),e("span",{class:"vxe-checkbox--label"},Pv("vxe.toolbar.customAll"))]):e("span",{class:"vxe-checkbox--label"},Pv("vxe.table.customTitle"))])])]),e("div",{class:"vxe-table-custom--body"},[N?e("div",{class:"vxe-table-custom--panel-top"},i.callSlot(N,G,e)):Nv(i),B?e("div",{class:"vxe-table-custom--panel-body"},i.callSlot(B,G,e)):e("transition-group",{class:"vxe-table-custom--panel-list",props:{name:m?"vxe-table-custom--list":"",tag:"ul"},on:H},z),j?e("div",{class:"vxe-table-custom--panel-bottom"},i.callSlot(j,G,e)):Nv(i)]),g.showFooter?e("div",{class:"vxe-table-custom--footer"},V?i.callSlot(V,G,e):[e("div",{class:"vxe-table-custom--footer-buttons"},[e(t,{props:{mode:"text",content:g.resetButtonText||Pv("vxe.table.customRestore"),disabled:!p},on:{click:n.resetCustomEvent}}),e(t,y?{props:{mode:"text",content:g.closeButtonText||Pv("vxe.table.customClose")},on:{click:n.cancelCloseEvent}}:{props:{mode:"text",content:g.resetButtonText||Pv("vxe.table.customCancel")},on:{click:n.cancelCustomEvent}}),y?Nv(i):e(t,{props:{mode:"text",status:"primary",content:g.confirmButtonText||Pv("vxe.table.customConfirm")},on:{click:n.confirmCustomEvent}})])]):null]),n.renderDragTip(e)])]:[])},renderPopupBodys(e){const t=ad.getComponent("VxeButton"),n=ad.getComponent("VxeNumberInput"),r=ad.getComponent("VxeRadioGroup"),i=this,o=i.$xeTable,a=o,s=o,{resizable:l}=a,{customColumnList:c}=s,u=o.computeCustomOpts,d=o.computeColumnDragOpts,{immediate:h,showSortDragButton:p,showSortMoveButton:f,showSortPutButton:m,allowVisible:g,allowSort:v,allowFixed:b,allowAlign:y,allowHeaderAlign:x,allowFooterAlign:w,allowResizable:C,allowGroup:_,allowValues:S,checkMethod:k,visibleMethod:E}=u,O=o.computeColumnOpts,T=o.computeResizableOpts,{minWidth:$,maxWidth:D}=T,M=o.computeIsMaxFixedColumn,{isCrossDrag:F,isPeerDrag:R}=d,I=[];return pc.eachTree(c,(a,s,c,u,d)=>{const T=!E||E({$table:o,column:a});if(T){let u=0,E=0;if(C){const e={$table:o,column:a,columnIndex:o.getColumnIndex(a),$columnIndex:o.getVMColumnIndex(a),_columnIndex:o.getVTColumnIndex(a),rowIndex:-1,_rowIndex:-1,$rowIndex:-1};$&&(u=pc.toNumber(pc.isFunction($)?$(e):$)),D&&(E=pc.toNumber(pc.isFunction(D)?D(e):D))}const T=a.renderVisible,A=a.halfVisible,P=md(a.getTitle(),1),L=a.children&&a.children.length,N=!!k&&!k({$table:o,column:a}),j=!T,B=!(!F&&!R)&&h||1===a.level,V=[{icon:Lv().TABLE_CUSTOM_ALIGN_LEFT,value:"left",title:Pv("vxe.custom.setting.anLeftTitle"),disabled:j},{icon:Lv().TABLE_CUSTOM_ALIGN_CENTER,value:"center",title:Pv("vxe.custom.setting.anCenterTitle"),disabled:j},{icon:Lv().TABLE_CUSTOM_ALIGN_RIGHT,value:"right",title:Pv("vxe.custom.setting.anRightTitle"),disabled:j}],z=[];g&&z.push(e("td",{key:"av",class:"vxe-table-custom-popup--column-td col--visible"},[e("div",{class:["vxe-table-custom--checkbox-option",{"is--checked":T,"is--indeterminate":A,"is--disabled":N}],attrs:{title:Pv("vxe.custom.setting.colVisible")},on:{click:e=>{N||i.changeCheckboxOption(a,e)}}},[e("span",{class:["vxe-checkbox--icon",A?Lv().TABLE_CHECKBOX_INDETERMINATE:T?Lv().TABLE_CHECKBOX_CHECKED:Lv().TABLE_CHECKBOX_UNCHECKED]})])])),z.push(e("td",{key:"at",class:"vxe-table-custom-popup--column-td col--name"},[e("div",{class:"vxe-table-custom-popup--name"},[v&&p||_||S?B||(_||S)&&!L?e("div",{class:["vxe-table-custom-popup--column-sort-btn",{"is--disabled":j}],attrs:{title:Pv("vxe.custom.setting.sortHelpTip")},on:j?{}:{mousedown:i.sortMousedownEvent,mouseup:i.sortMouseupEvent}},[e("i",{class:Lv().TABLE_CUSTOM_SORT})]):e("div",{class:"vxe-table-custom-popup--column-sort-placeholder"}):Nv(o),"html"===a.type?e("div",{key:"1",class:"vxe-table-custom-popup--title",domProps:{innerHTML:P}}):e("div",{key:"0",class:"vxe-table-custom-popup--title",attrs:{title:P}},P),B&&(f||m)?e("div",{class:"vxe-table-custom-popup--move-btn"},t?[f?e(t,{props:{mode:"text",icon:"vxe-icon-arrows-up",title:Pv("vxe.custom.setting.moveUpTitle"),disabled:s<=0},on:{click(e){i.sortMoveUpEvent(e,a)}}}):Nv(o),f?e(t,{props:{mode:"text",icon:"vxe-icon-arrows-down",title:Pv("vxe.custom.setting.moveDnTitle"),disabled:s>=c.length-1},on:{click(e){i.sortMoveDnEvent(e,a)}}}):Nv(o),m&&!d?e(t,{props:{mode:"text",icon:"vxe-icon-top",title:Pv("vxe.custom.setting.putTopTitle"),disabled:s<=0},on:{click(e){i.sortMoveTopEvent(e,a)}}}):Nv(o),m&&!d?e(t,{props:{mode:"text",icon:"vxe-icon-bottom",title:Pv("vxe.custom.setting.putBottomTitle"),disabled:s>=c.length-1},on:{click(e){i.sortMoveBottomEvent(e,a)}}}):Nv(o)]:[]):Nv(o)])])),C&&z.push(e("td",{key:"aw",class:"vxe-table-custom-popup--column-td col--resizable"},[a.children&&a.children.length||!(pc.isBoolean(a.resizable)?a.resizable:O.resizable||l)?e("span","-"):n?e(n,{props:{type:"integer",immediate:!1,disabled:j,value:a.renderResizeWidth,min:u||0,max:E||9999},on:{modelValue(e){const t=Math.max(0,Number(e));a.renderResizeWidth=t},change(){i.changeColumnWidth(a)}}}):Nv(o)])),b&&z.push(e("td",{key:"af",class:"vxe-table-custom-popup--column-td col--fixed"},d?[e("span","-")]:r?[e(t,{props:{icon:"left"===a.renderFixed?Lv().TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE:Lv().TOOLBAR_TOOLS_FIXED_LEFT,status:"left"===a.renderFixed?"primary":"",disabled:j||M&&!a.renderFixed,title:Pv("left"===a.renderFixed?"vxe.toolbar.cancelFixed":"vxe.toolbar.fixedLeft")},on:{click:({$event:e})=>{i.changeFixedOption(a,"left",e)}}}),e(t,{props:{icon:"right"===a.renderFixed?Lv().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE:Lv().TOOLBAR_TOOLS_FIXED_RIGHT,status:"right"===a.renderFixed?"primary":"",disabled:j||M&&!a.renderFixed,title:Pv("right"===a.renderFixed?"vxe.toolbar.cancelFixed":"vxe.toolbar.fixedRight")},on:{click:({$event:e})=>{i.changeFixedOption(a,"right",e)}}})]:[])),y&&z.push(e("td",{key:"aa",class:"vxe-table-custom-popup--column-td col--align"},r?[e(r,{props:{value:a.renderAlign||"left",type:"button",strict:!1,disabled:j,options:V},on:{change({value:e,$event:t}){i.changeAlignOption(a,e,"align","renderAlign","custom-align-change",t)}}})]:[])),x&&z.push(e("td",{key:"aha",class:"vxe-table-custom-popup--column-td col--header-align"},L?[e("span","-")]:r?[e(r,{props:{value:a.renderHeaderAlign||"left",type:"button",strict:!1,disabled:j,options:V},on:{change({value:e,$event:t}){i.changeAlignOption(a,e,"headerAlign","renderHeaderAlign","custom-header-align-change",t)}}})]:[])),w&&z.push(e("td",{key:"afa",class:"vxe-table-custom-popup--column-td col--footer-align"},L?[e("span","-")]:r?[e(r,{props:{value:a.renderFooterAlign||"left",type:"button",strict:!1,disabled:j,options:V},on:{change({value:e,$event:t}){i.changeAlignOption(a,e,"footerAlign","renderFooterAlign","custom-footer-align-change",t)}}})]:[])),I.push(e("tr",{key:a.id,attrs:{colid:a.id},class:[`vxe-table-custom-popup--row level--${a.level}`,{"is--group":L}],on:{dragstart:i.sortDragstartEvent,dragend:i.sortDragendEvent,dragover:i.sortDragoverEvent}},z))}}),I},renderPopupPanel(e){const t=ad.getComponent("VxeModal"),n=ad.getComponent("VxeDrawer"),r=ad.getComponent("VxeButton"),i=this,o=i,a=i.$xeTable,s=a,l=a,c=a.$xeGrid,u=a.$xeGantt,{customStore:d}=o,{treeConfig:h,rowGroupConfig:p,aggregateConfig:f}=s,{isCustomStatus:m,customColumnList:g}=l,v=a.computeSize,b=a.computeCustomOpts,y=a.computeAggregateOpts,{panePopupStyle:x}=d,{placement:w}=y,{mode:C,immediate:_,modalOptions:S,drawerOptions:k,allowVisible:E,allowFixed:O,allowAlign:T,allowHeaderAlign:$,allowFooterAlign:D,allowResizable:M}=b,F=a.computeColumnOpts,{maxFixedSize:R}=F,I=Object.assign({},S),A=Object.assign({},k),P=b.slots||{},L=P.header,N=P.top,j=P.bottom,B=P.default,V=P.footer,z=d.isAll,H=d.isIndeterminate,W="right"===w||"bottom"===w,q={$table:a,$grid:c,$gantt:u,columns:g,isAllChecked:z,isAllIndeterminate:H,isCustomStatus:m},G=[],Y=[];E&&(G.push(e("col",{key:"av",class:"vxe-table-custom-popup--column-col col--checkbox"})),Y.push(e("th",{key:"av",class:"vxe-table-custom-popup--column-th col--checkbox"},[e("div",{class:["vxe-table-custom--checkbox-option",{"is--checked":z,"is--indeterminate":H}],attrs:{title:Pv("vxe.table.allTitle")},on:{click:i.allOptionEvent}},[e("span",{class:["vxe-checkbox--icon",H?Lv().TABLE_CHECKBOX_INDETERMINATE:z?Lv().TABLE_CHECKBOX_CHECKED:Lv().TABLE_CHECKBOX_UNCHECKED]})])]))),G.push(e("col",{key:"at",class:"vxe-table-custom-popup--column-col col--title"})),Y.push(e("th",{key:"at",class:"vxe-table-custom-popup--column-th col--title"},Pv("vxe.custom.setting.colTitle"))),M&&(G.push(e("col",{key:"aw",class:"vxe-table-custom-popup--column-col col--width"})),Y.push(e("th",{key:"aw",class:"vxe-table-custom-popup--column-th col--width"},Pv("vxe.custom.setting.colResizable")))),O&&(G.push(e("col",{key:"af",class:"vxe-table-custom-popup--column-col col--fixed"})),Y.push(e("th",{key:"af",class:"vxe-table-custom-popup--column-th col--fixed"},Pv("vxe.custom.setting."+(R?"colFixedMax":"colFixed"),[R])))),T&&(G.push(e("col",{key:"aa",class:"vxe-table-custom-popup--column-col col--align"})),Y.push(e("th",{key:"aa",class:"vxe-table-custom-popup--column-th col--align"},Pv("vxe.custom.setting.colAlign")))),$&&(G.push(e("col",{key:"aha",class:"vxe-table-custom-popup--column-col col--header-align"})),Y.push(e("th",{key:"aha",class:"vxe-table-custom-popup--column-th col--header-align"},Pv("vxe.custom.setting.colHeadAlign")))),D&&(G.push(e("col",{key:"afa",class:"vxe-table-custom-popup--column-col col--footer-align"})),Y.push(e("th",{key:"afa",class:"vxe-table-custom-popup--column-th col--footer-align"},Pv("vxe.custom.setting.colFootAlign"))));const U={default:()=>e("div",{ref:"refBodyWrapperElem",class:["vxe-table-custom-popup--body-wrapper",`agg-layout--${w}`,{[`size--${v}`]:v}],style:x},B?a.callSlot(B,q,e):[W||h||!f&&!p||!a.getPivotTableAggregatePopupPanel?Nv(a):e(a.getPivotTableAggregatePopupPanel(),{props:{customStore:d}}),e("div",{ref:"refCustomBodyElem",class:"vxe-table-custom-popup--handle-wrapper"},[N?e("div",{class:"vxe-table-custom-popup--table-top"},a.callSlot(N,q,e)):Nv(a),e("div",{class:"vxe-table-custom-popup--table-wrapper"},[e("table",{},[e("colgroup",{},G),e("thead",{},[e("tr",{},Y)]),e("transition-group",{class:"vxe-table-custom--panel-list",props:{tag:"tbody",name:"vxe-table-custom--list"}},i.renderPopupBodys(e))])]),j?e("div",{class:"vxe-table-custom-popup--table-bottom"},a.callSlot(j,q,e)):Nv(a),i.renderDragTip(e)]),W&&!h&&(f||p)&&a.getPivotTableAggregatePopupPanel?e(a.getPivotTableAggregatePopupPanel(),{props:{customStore:d}}):Nv(a)]),footer:()=>V?a.callSlot(V,q,e):e("div",{class:"vxe-table-custom-popup--footer"},[e(r,{props:{content:b.resetButtonText||Pv("vxe.custom.cstmRestore"),disabled:!m},on:{click:i.resetCustomEvent}}),e(r,_?{props:{status:"primary",content:b.resetButtonText||Pv("vxe.table.customClose")},on:{click:i.cancelCloseEvent}}:{props:{content:b.resetButtonText||Pv("vxe.custom.cstmCancel")},on:{click:i.cancelCustomEvent}}),_?Nv(a):e(r,{props:{status:"primary",content:b.confirmButtonText||Pv("vxe.custom.cstmConfirm")},on:{click:i.confirmCustomEvent}})])};return L&&(U.header=()=>a.callSlot(L,q,e)),"drawer"===C?n?e(n,{key:"drawer",props:{className:["vxe-table-custom-drawer-wrapper","vxe-table--ignore-clear",A.className||""].join(" "),value:d.visible,title:A.title||Pv("vxe.custom.cstmTitle"),width:A.width||Math.min(880,Math.floor(.6*document.documentElement.clientWidth)),position:A.position,resize:!!A.resize,escClosable:!!A.escClosable,maskClosable:!!A.maskClosable,destroyOnClose:!0,showFooter:!0},on:{input(e){d.visible=e}},scopedSlots:U}):Nv(i):t?e(t,{key:"modal",props:{className:["vxe-table-custom-modal-wrapper","vxe-table--ignore-clear",I.className||""].join(" "),value:d.visible,title:I.title||Pv("vxe.custom.cstmTitle"),width:I.width||Math.min(1e3,document.documentElement.clientWidth),minWidth:I.minWidth||800,height:I.height||Math.min(680,document.documentElement.clientHeight),minHeight:I.minHeight||400,showZoom:I.showZoom,showMaximize:I.showMaximize,showMinimize:I.showMinimize,mask:I.mask,lockView:I.lockView,resize:I.resize,transfer:I.transfer,escClosable:!!I.escClosable,maskClosable:!!I.maskClosable,destroyOnClose:!0,showFooter:!0},on:{input(e){d.visible=e}},scopedSlots:U}):Nv(i)},renderVN(e){const t=this,n=t.$xeTable,r=n.computeCustomOpts;return["modal","drawer","popup"].includes(`${r.mode}`)?t.renderPopupPanel(e):t.renderSimplePanel(e)}},render(e){return this.renderVN(e)}},{warnLog:zv}=Ih("table"),{getI18n:Hv,getIcon:Wv,renderer:qv,globalMixins:Gv,renderEmptyElement:Yv}=ad;function Uv(e,t,n){const r=e,{filterStore:i}=r,{column:o}=i;o&&o.filters&&o.filters.forEach(e=>{e._checked=n,e.checked=n}),i.isAllSelected=n,i.isIndeterminate=!1}const Kv={name:"VxeTableFilterPanel",mixins:[Gv.sizeMixin],props:{filterStore:{type:Object,default:()=>({})}},inject:{$xeTable:{default:null}},computed:Object.assign(Object.assign({},{}),{computeHasCheckOption(){const e=this,t=e,{filterStore:n}=t,{column:r}=n;return r&&r.filters&&r.filters.some(e=>e.checked)}}),mounted(){const e=this,t=e.$xeTable,n=t.computeFilterOpts,{transfer:r}=n,i=e.$refs.refElem;r&&i&&document.body.appendChild(i)},beforeDestroy(){const e=this,t=e.$refs.refElem;t&&t.parentNode&&t.parentNode.removeChild(t)},methods:{changeRadioOption(e,t,n){const r=this,i=r.$xeTable;i.handleFilterChangeRadioOption(e,t,n)},changeMultipleOption(e,t,n){const r=this,i=r.$xeTable;n._checked=t,i.checkFilterOptions()},changeAllOption(e,t){const n=this,r=n,{filterStore:i}=r,{column:o}=i;o&&o.filterMultiple?Uv(n,e,t):n.resetFilter(e)},changeOption(e,t,n){const r=this,i=r.$xeTable;i.handleFilterChangeOption(e,t,n)},confirmFilter(e){const t=this,n=t,r=t.$xeTable,{filterStore:i}=n;e||zv("vxe.error.delFunc",["confirmFilter","saveFilterPanelByEvent"]),r.handleFilterConfirmFilter(e||new Event("click"),i.column||null)},resetFilter(e){const t=this,n=t,r=t.$xeTable,{filterStore:i}=n;r.handleFilterResetFilter(e,i.column||null)},renderOptions(e,t,n){const r=this,i=r,o=r.$xeTable,a=o,{filterStore:s}=i,{column:l,maxHeight:c}=s;if(!l)return[];const{filterMultiple:u,filters:d,slots:h}=l,p=d||[],f=h?h.filter:null,m=Object.assign({},a._currFilterParams,{option:p[0],$panel:r,$table:o}),g=n?n.renderTableFilter||n.renderFilter:null;if(f)return[e("div",{class:"vxe-table--filter-template",style:c?{maxHeight:lh(c)}:{}},o.callSlot(f,m,e))];if(t&&g)return[e("div",{class:"vxe-table--filter-template",style:c?{maxHeight:lh(c)}:{}},Bp(g.call(o,e,t,m)))];const v=u?s.isAllSelected:!p.some(e=>e._checked),b=u&&s.isIndeterminate;return[e("ul",{class:"vxe-table--filter-header"},[e("li",{class:["vxe-table--filter-option",{"is--checked":v,"is--indeterminate":b}],attrs:{title:Hv(u?"vxe.table.allTitle":"vxe.table.allFilter")},on:{click:e=>{r.changeAllOption(e,!s.isAllSelected)}}},(u?[e("span",{class:["vxe-checkbox--icon",b?Wv().TABLE_CHECKBOX_INDETERMINATE:v?Wv().TABLE_CHECKBOX_CHECKED:Wv().TABLE_CHECKBOX_UNCHECKED]})]:[]).concat([e("span",{class:"vxe-checkbox--label"},Hv("vxe.table.allFilter"))]))]),e("ul",{class:"vxe-table--filter-body",style:c?{maxHeight:lh(c)}:{}},p.map(t=>{const n=t._checked,i=!1;return e("li",{class:["vxe-table--filter-option",{"is--checked":n}],attrs:{title:t.label},on:{click:e=>{r.changeOption(e,!t._checked,t)}}},(u?[e("span",{class:["vxe-checkbox--icon",i?Wv().TABLE_CHECKBOX_INDETERMINATE:n?Wv().TABLE_CHECKBOX_CHECKED:Wv().TABLE_CHECKBOX_UNCHECKED]})]:[]).concat([e("span",{class:"vxe-checkbox--label"},md(t.label,1))]))}))]},renderFooter(e){const t=this,n=t,r=t.$xeTable,{filterStore:i}=n,{column:o}=i;if(!o)return[];const a=r.computeFilterOpts,s=r.computeRendererOpts,l=t.computeHasCheckOption,{filterRender:c,filterMultiple:u}=o,d=c&&ld(c)&&c.name?s[c.name]||qv.get(c.name):null,h=!l&&!i.isAllSelected&&!i.isIndeterminate;return u&&(!d||!1!==d.showTableFilterFooter&&!1!==d.showFilterFooter&&!1!==d.isFooter)?[e("div",{class:"vxe-table--filter-footer"},[e("button",{class:{"is--disabled":h},attrs:{disabled:h},on:{click:t.confirmFilter}},a.confirmButtonText||Hv("vxe.table.confirmFilter")),e("button",{on:{click:t.resetFilter}},a.resetButtonText||Hv("vxe.table.resetFilter"))])]:[]},renderVN(e){const t=this,n=t,r=t.$xeTable,i=r,{filterStore:o}=n,{visible:a,column:s}=o;if(!s)return Yv(t);const l=r.computeRendererOpts,c=s?s.filterRender:null,u=c&&ld(c)&&c.name?l[c.name]||qv.get(c.name):null,d=u?u.tableFilterClassName||u.filterClassName:"",h=Object.assign({},i._currFilterParams,{$panel:t,$table:r}),p=r,f=t.computeSize,m=r.computeFilterOpts,{destroyOnClose:g,className:v}=m;return e("div",{ref:"refElem",class:["vxe-table--filter-wrapper","filter--prevent-default",v,u&&u.className?u.className:"",eh(d,h),{[`size--${f}`]:f,"is--animat":p.animat,"is--multiple":s.filterMultiple,"is--active":a}],style:o.style},o.visible&&(!g||a)&&s?t.renderOptions(e,c,u).concat(t.renderFooter(e)):[])}},render(e){return this.renderVN(e)}},{errLog:Xv}=Ih("table"),{getI18n:Zv,getIcon:Qv,globalMixins:Jv,renderEmptyElement:eb}=ad,tb={name:"VxeTableImportPanel",mixins:[Jv.sizeMixin],props:{defaultOptions:{type:Object,default:()=>({})},storeData:{type:Object,default:()=>({})}},inject:{$xeTable:{default:null}},data(){const e={loading:!1};return{reactData:e}},computed:Object.assign(Object.assign({},{}),{computeSelectName(){const e=this,t=e,{storeData:n}=t;return`${n.filename}.${n.type}`},computeHasFile(){const e=this,t=e,{storeData:n}=t;return n.file&&n.type},computeParseTypeLabel(){const e=this,t=e,{storeData:n}=t,{type:r,typeList:i}=n;if(r){const e=pc.find(i,e=>r===e.value);return`${e?e.label:"*.*"}`}return`*.${i.map(e=>e.value).join(", *.")}`}}),created(){const e=this,t=ad.getComponent("VxeModal"),n=ad.getComponent("VxeButton"),r=ad.getComponent("VxeSelect");e.$nextTick(()=>{t||Xv("vxe.error.reqComp",["vxe-modal"]),n||Xv("vxe.error.reqComp",["vxe-button"]),r||Xv("vxe.error.reqComp",["vxe-select"])})},methods:{clearFileEvent(){Object.assign(this.storeData,{filename:"",sheetName:"",type:""})},selectFileEvent(){const e=this,t=e,n=e.$xeTable,{storeData:r,defaultOptions:i}=t;n.readFile(i).then(e=>{const{file:t}=e;Object.assign(r,ud(t),{file:t})}).catch(()=>{})},showEvent(){const e=this;e.$nextTick(()=>{const t=e.$refs.fileBtn;t&&t.focus()})},cancelEvent(){const e=this,t=e,{storeData:n}=t;n.visible=!1},importEvent(){const e=this,t=e,n=e.reactData,r=e.$xeTable,{storeData:i,defaultOptions:o}=t,a=r.computeImportOpts;n.loading=!0,r.importByFile(i.file,Object.assign({},a,o)).then(()=>{n.loading=!1,i.visible=!1}).catch(()=>{n.loading=!1})},renderVN(e){const t=this,n=t,r=t.reactData,i=t.$xeTable,o=i.$xeGrid,a=i.$xeGantt,{defaultOptions:s,storeData:l}=n,c=t.computeSelectName,u=t.computeHasFile,d=i.computeImportOpts,h=t.computeParseTypeLabel,p=d.modelOptions||{},f=d.settingOptions||{},m=s.slots||{},g=m.top,v=m.bottom,b=m.default,y=m.footer;return e("vxe-modal",{ref:"modal",props:{id:"VXE_IMPORT_MODAL",value:l.visible,title:p.title||Zv("vxe.import.impTitle"),width:p.width||540,height:p.height,minWidth:p.minWidth||360,minHeight:p.minHeight||240,mask:bd(p.mask,!0),lockView:bd(p.lockView,!0),showFooter:!0,escClosable:!0,maskClosable:!0,position:p.position,fullscreen:p.fullscreen,remember:p.remember,showMinimize:p.showMinimize,showMaximize:bd(p.showMaximize,!0),resize:bd(p.resize,!0),loading:r.loading},on:{input(e){l.visible=e},show:t.showEvent},scopedSlots:{default:()=>{const n={$table:i,$grid:o,$gantt:a,options:s,params:s.params};return e("div",{class:"vxe-table-export--panel"},[g?e("div",{class:"vxe-table-export--panel-top"},i.callSlot(g,n,e)):eb(i),e("div",{class:"vxe-table-export--panel-body"},b?i.callSlot(b,n,e):[e("table",{class:"vxe-table-export--panel-table",attrs:{cellspacing:0,cellpadding:0,border:0}},[e("tbody",[e("tr",[e("td",Zv("vxe.import.impFile")),e("td",[u?e("div",{class:"vxe-table-export--selected--file",attrs:{title:c}},[e("span",c),e("i",{class:Qv().INPUT_CLEAR,on:{click:t.clearFileEvent}})]):e("button",{ref:"fileBtn",class:"vxe-table-export--select--file",attrs:{type:"button"},on:{click:t.selectFileEvent}},Zv("vxe.import.impSelect"))])]),e("tr",[e("td",Zv("vxe.import.impType")),e("td",h)]),!1===f.showMode?eb(i):e("tr",[e("td",Zv("vxe.import.impMode")),e("td",[e("vxe-select",{props:{value:s.mode,options:l.modeList},on:{modelValue(e){s.mode=e}}})])])])])]),v?e("div",{class:"vxe-table-export--panel-bottom"},i.callSlot(v,n,e)):eb(i)])},footer:()=>{const n={$table:i,$grid:o,$gantt:a,options:s,params:s.params};return e("div",{class:"vxe-table-export--panel-footer"},y?i.callSlot(y,n,e):[e("div",{class:"vxe-table-export--panel-btns"},[e("vxe-button",{on:{click:t.cancelEvent}},Zv("vxe.import.impCancel")),e("vxe-button",{props:{status:"primary",disabled:!u||r.loading},on:{click:t.importEvent}},Zv("vxe.import.impConfirm"))])])}}})}},render(e){return this.renderVN(e)}},{errLog:nb}=Ih("table"),{getI18n:rb,getIcon:ib,globalMixins:ob,renderEmptyElement:ab}=ad,sb={name:"VxeTableExportPanel",mixins:[ob.sizeMixin],props:{defaultOptions:{type:Object,default:()=>({})},storeData:{type:Object,default:()=>({})}},inject:{$xeTable:{default:null}},data(){const e={isAll:!1,isIndeterminate:!1,loading:!1};return{reactData:e}},computed:Object.assign(Object.assign({},{}),{computeColWidthModeOptions(){return[{value:"",label:rb("vxe.export.wdModes.default")},{value:"auto",label:rb("vxe.export.wdModes.auto")},{value:"scale",label:rb("vxe.export.wdModes.scale")}]},computeCheckedAll(){const e=this,t=e,{storeData:n}=t;return n.columns.every(e=>e.checked)},computeShowSheet(){const e=this,t=e,{defaultOptions:n}=t;return["html","xml","xlsx","pdf"].indexOf(n.type)>-1},computeSupportMerge(){const e=this,t=e,{storeData:n,defaultOptions:r}=t;return!r.original&&"current"===r.mode&&(n.isPrint||["html","xlsx"].indexOf(r.type)>-1)},computeSupportStyle(){const e=this,t=e,{defaultOptions:n}=t;return!n.original&&["xlsx"].indexOf(n.type)>-1}}),created(){const e=this,t=ad.getComponent("VxeModal"),n=ad.getComponent("VxeButton"),r=ad.getComponent("VxeSelect"),i=ad.getComponent("VxeInput"),o=ad.getComponent("VxeCheckbox");e.$nextTick(()=>{t||nb("vxe.error.reqComp",["vxe-modal"]),n||nb("vxe.error.reqComp",["vxe-button"]),r||nb("vxe.error.reqComp",["vxe-select"]),i||nb("vxe.error.reqComp",["vxe-input"]),o||nb("vxe.error.reqComp",["vxe-checkbox"])})},methods:{changeOption(e){const t=this,n=!e.checked;pc.eachTree([e],e=>{e.checked=n,e.halfChecked=!1}),t.handleOptionCheck(e),t.checkStatus()},handleOptionCheck(e){const t=this,n=t,{storeData:r}=n,i=pc.findTree(r.columns,t=>t===e);if(i&&i.parent){const{parent:e}=i;e.children&&e.children.length&&(e.checked=e.children.every(e=>e.checked),e.halfChecked=!e.checked&&e.children.some(e=>e.checked||e.halfChecked),t.handleOptionCheck(e))}},checkStatus(){const e=this,t=e,n=e.reactData,{storeData:r}=t,i=r.columns;n.isAll=i.every(e=>e.disabled||e.checked),n.isIndeterminate=!n.isAll&&i.some(e=>!e.disabled&&(e.checked||e.halfChecked))},allColumnEvent(){const e=this,t=e,n=e.reactData,{storeData:r}=t,i=!n.isAll;pc.eachTree(r.columns,e=>{e.disabled||(e.checked=i,e.halfChecked=!1)}),n.isAll=i,e.checkStatus()},showEvent(){const e=this;e.$nextTick(()=>{const t=e.$refs.filename||e.$refs.sheetname||e.$refs.confirmBtn;t&&t.focus()}),e.checkStatus()},getExportOption(){const e=this,t=e,{storeData:n,defaultOptions:r}=t,{hasMerge:i,columns:o}=n,a=e.computeCheckedAll,s=e.computeSupportMerge,l=pc.searchTree(o,e=>e.checked,{children:"children",mapChildren:"_children",original:!0});return Object.assign({},r,{_columns:l,isMerge:!!(i&&s&&a)&&r.isMerge})},cancelEvent(){const e=this,t=e,{storeData:n}=t;n.visible=!1},confirmEvent(){const e=this,t=e,{storeData:n}=t;n.isPrint?e.printEvent():e.exportEvent()},printEvent(){const e=this,t=e,n=e.$xeTable,{storeData:r}=t;r.visible=!1,n.print(Object.assign({},n.printOpts,e.getExportOption()))},exportEvent(){const e=this,t=e,n=e.reactData,r=e.$xeTable,{storeData:i}=t,o=r.exportOpts;n.loading=!0,r.exportData(Object.assign({},o,e.getExportOption())).then(()=>{n.loading=!1,i.visible=!1}).catch(()=>{n.loading=!1})},renderVN(e){const t=ad.getComponent("VxeModal"),n=ad.getComponent("VxeButton"),r=ad.getComponent("VxeSelect"),i=ad.getComponent("VxeInput"),o=ad.getComponent("VxeCheckbox"),a=this,s=a,l=a.reactData,c=a.$xeTable,u=c.$xeGrid,d=c.$xeGantt,{defaultOptions:h,storeData:p}=s,{isAll:f,isIndeterminate:m}=l,{hasTree:g,hasRowGroup:v,hasMerge:b,isPrint:y,hasColgroup:x,columns:w}=p,{isHeader:C}=h,_=[],S=c.computeExportOpts,k=c.computePrintOpts,E=(y?k:S).modelOptions||{},O=(y?k:S).settingOptions||{},T=a.computeCheckedAll,$=a.computeShowSheet,D=a.computeSupportMerge,M=a.computeSupportStyle,F=a.computeColWidthModeOptions,R=h.slots||{},I=R.top,A=R.bottom,P=R.default,L=R.footer,N=R.parameter;return pc.eachTree(w,t=>{const n=md(t.getTitle(),1),r=t.children&&t.children.length,i=t.checked,o=t.halfChecked,s="html"===t.type;_.push(e("li",{class:["vxe-table-export--panel-column-option",`level--${t.level}`,{"is--group":r,"is--checked":i,"is--indeterminate":o,"is--disabled":t.disabled}],attrs:{title:n},on:{click:()=>{t.disabled||a.changeOption(t)}}},[e("span",{class:["vxe-checkbox--icon",o?ib().TABLE_CHECKBOX_INDETERMINATE:i?ib().TABLE_CHECKBOX_CHECKED:ib().TABLE_CHECKBOX_UNCHECKED]}),s?e("span",{key:"1",class:"vxe-checkbox--label",domProps:{innerHTML:n}}):e("span",{key:"0",class:"vxe-checkbox--label"},n)]))}),t?e(t,{ref:"modal",props:{id:"VXE_EXPORT_MODAL",value:p.visible,title:E.title||rb(y?"vxe.export.printTitle":"vxe.export.expTitle"),width:E.width||660,height:E.height,minWidth:E.minWidth||500,minHeight:E.minHeight||400,mask:bd(E.mask,!0),lockView:bd(E.lockView,!0),showFooter:!0,escClosable:!0,maskClosable:!0,position:E.position,fullscreen:E.fullscreen,remember:E.remember,showMinimize:E.showMinimize,showMaximize:bd(E.showMaximize,!0),resize:bd(E.resize,!0),loading:l.loading},on:{input(e){p.visible=e},show:a.showEvent},scopedSlots:{default(){const t={$table:c,$grid:u,$gantt:d,options:h,columns:w,params:h.params},n="empty"===h.mode;return e("div",{class:"vxe-table-export--panel"},[I?e("div",{class:"vxe-table-export--panel-top"},c.callSlot(I,t,e)):ab(c),e("div",{class:"vxe-table-export--panel-body"},P?c.callSlot(P,t,e):[e("table",{attrs:{class:"vxe-table-export--panel-table",cellspacing:0,cellpadding:0,border:0}},[e("tbody",[[y||!1===O.showFileName?ab(c):e("tr",[e("td",rb("vxe.export.expName")),e("td",[i?e(i,{ref:"filename",props:{value:h.filename,type:"text",clearable:!0,placeholder:rb("vxe.export.expNamePlaceholder")},on:{modelValue(e){h.filename=e}}}):ab(c)])]),y||!1===O.showType?ab(c):e("tr",[e("td",rb("vxe.export.expType")),e("td",[e("vxe-select",{props:{value:h.type,options:p.typeList},on:{modelValue(e){h.type=e}}})])]),(y||$)&&!1!==O.showSheet?e("tr",[e("td",rb("vxe.export.expSheetName")),e("td",[i?e(i,{ref:"sheetname",props:{value:h.sheetName,type:"text",clearable:!0,placeholder:rb("vxe.export.expSheetNamePlaceholder")},on:{modelValue(e){h.sheetName=e}}}):ab(c)])]):ab(c),!1===O.showMode?ab(c):e("tr",[e("td",rb("vxe.export.expMode")),e("td",[e(r,{props:{value:h.mode,options:p.modeList},on:{modelValue(e){h.mode=e}}})])]),!1===O.showColumn?ab(c):e("tr",[e("td",[rb("vxe.export.expColumn")]),e("td",[e("div",{class:"vxe-table-export--panel-column"},[e("ul",{class:"vxe-table-export--panel-column-header"},[e("li",{class:["vxe-table-export--panel-column-option",{"is--checked":f,"is--indeterminate":m}],attrs:{title:rb("vxe.table.allTitle")},on:{click:a.allColumnEvent}},[e("span",{class:["vxe-checkbox--icon",m?ib().TABLE_CHECKBOX_INDETERMINATE:f?ib().TABLE_CHECKBOX_CHECKED:ib().TABLE_CHECKBOX_UNCHECKED]}),e("span",{class:"vxe-checkbox--label"},rb("vxe.export.expCurrentColumn"))])]),e("ul",{class:"vxe-table-export--panel-column-body"},_)])])]),y&&!1!==O.showWidthMode?e("tr",[e("td",rb("vxe.export.widthMode")),e("td",[r?e(r,{props:{value:h.widthMode,options:F},on:{modelValue(e){h.widthMode=e}}}):ab(c)])]):ab(c),!1===O.showParameter?ab(c):e("tr",[e("td",rb("vxe.export.expOpts")),e("td",N?[e("div",{class:"vxe-table-export--panel-option-row"},c.callSlot(N,t,e))]:[e("div",{class:"vxe-table-export--panel-option-row"},o?[e(o,{props:{value:n||C,disabled:n,title:rb("vxe.export.expHeaderTitle"),content:rb("vxe.export.expOptHeader")},on:{input(e){h.isHeader=e}}}),e(o,{props:{value:h.isFooter,disabled:!p.hasFooter,title:rb("vxe.export.expFooterTitle"),content:rb("vxe.export.expOptFooter")},on:{input(e){h.isFooter=e}}}),e(o,{props:{value:!!C&&h.isTitle,disabled:!C,title:rb("vxe.export.expTitleTitle"),content:rb("vxe.export.expOptTitle")},on:{input(e){h.isTitle=e}}}),e(o,{props:{value:!!(C&&x&&D)&&h.isColgroup,disabled:!C||!x||!D,title:rb("vxe.export.expColgroupTitle"),content:rb("vxe.export.expOptColgroup")},on:{input(e){h.isColgroup=e}}})]:[]),e("div",{class:"vxe-table-export--panel-option-row"},o?[e(o,{props:{value:!n&&h.original,disabled:n,title:rb("vxe.export.expOriginalTitle"),content:rb("vxe.export.expOptOriginal")},on:{input(e){h.original=e}}}),e(o,{props:{value:!!(b&&D&&T)&&h.isMerge,disabled:n||!b||!D||!T,title:rb("vxe.export.expMergeTitle"),content:rb("vxe.export.expOptMerge")},on:{input(e){h.isMerge=e}}}),y?ab(c):e(o,{props:{value:!!M&&h.useStyle,disabled:!M,title:rb("vxe.export.expUseStyleTitle"),content:rb("vxe.export.expOptUseStyle")},on:{input(e){h.useStyle=e}}})]:[]),e("div",{class:"vxe-table-export--panel-option-row"},o?[e(o,{props:{value:!!g&&h.isTreeAllExpanded,disabled:n||!g,title:rb("vxe.export.expTreeAllExpandTitle"),content:rb("vxe.export.expOptTreeAllExpand")},on:{input(e){h.isTreeAllExpanded=e}}}),e(o,{props:{value:!!v&&h.isRowGroupAllExpanded,disabled:n||!v,title:rb("vxe.export.expRowGroupAllExpandTitle"),content:rb("vxe.export.expOptRowGroupAllExpand")},on:{input(e){h.isRowGroupAllExpanded=e}}})]:[])])])]])])]),A?e("div",{class:"vxe-table-export--panel-bottom"},c.callSlot(A,t,e)):ab(c)])},footer(){const t={$table:c,$grid:u,$gantt:d,options:h,columns:w,params:h.params};return e("div",{class:"vxe-table-export--panel-footer"},L?c.callSlot(L,t,e):[e("div",{class:"vxe-table-export--panel-btns"},[n?e(n,{props:{content:rb("vxe.export.expCancel")},on:{click:a.cancelEvent}}):ab(c),n?e(n,{ref:"confirmBtn",props:{status:"primary",content:rb(y?"vxe.export.expPrint":"vxe.export.expConfirm")},on:{click:a.confirmEvent}}):ab(c)])])}}}):ab(c)}},render(e){return this.renderVN(e)}},{getIcon:lb,getI18n:cb,renderEmptyElement:ub}=ad,db={name:"VxeTableMenuPanel",inject:{$xeTable:{default:null}},computed:Object.assign({},{}),mounted(){const e=this,t=e.$xeTable,n=t.computeMenuOpts,{transfer:r}=n,i=e.$refs.refElem;r&&i&&document.body.appendChild(i)},beforeDestroy(){const e=this,t=e.$refs.refElem;t&&t.parentNode&&t.parentNode.removeChild(t)},methods:{renderVN(e){const t=this,n=t.$xeTable,r=n,{ctxMenuStore:i}=r,o=n.computeMenuOpts,{destroyOnClose:a,className:s}=o,{visible:l,list:c}=i;return e("div",{ref:"refElem",class:["vxe-table--context-menu-wrapper",s,{"is--visible":l}],style:i.style},!a||l?c.map((t,r)=>t.every(e=>!1===e.visible)?ub(n):e("ul",{class:"vxe-table--context-menu-group-wrapper",key:r},t.map((t,o)=>{const{children:a,loading:s}=t,l=a&&a.some(e=>!1!==e.visible),c=Object.assign({},t.prefixConfig),u=c.icon||t.prefixIcon,d=Object.assign({},t.suffixConfig),h=d.icon||t.suffixIcon,p=fd(t.name);return!1===t.visible?ub(n):e("li",{class:["vxe-table--context-menu--option",t.className,{"link--loading":s,"link--disabled":t.disabled,"link--active":t===i.selected}],key:`${r}_${o}`},[e("a",{class:"vxe-context-menu--link",on:{click(e){n.ctxMenuLinkEvent(e,t)},mouseover(e){n.ctxMenuMouseoverEvent(e,t)},mouseout(e){n.ctxMenuMouseoutEvent(e,t)}}},[e("div",{class:["vxe-context-menu--link-prefix",c.className||""]},[s?e("span",{class:lb("TABLE_MENU_OPTION_LOADING")}):u&&pc.isFunction(u)?e("span",{},Bp(u.call(n,{}))):e("span",{},[e("i",{class:u})]),c.content?e("span",{},`${c.content}`):ub(n)]),e("span",{class:"vxe-context-menu--link-content",attrs:{title:p}},s?cb("vxe.table.menuLoading"):p),e("div",{class:["vxe-context-menu--link-suffix",d.className||""]},[h&&pc.isFunction(h)?e("span",{},Bp(h.call(n,{}))):e("i",{class:h||(l?lb().TABLE_MENU_OPTIONS:"")}),d.content?e("span",`${d.content}`):ub(n)])]),l&&a?e("ul",{class:["vxe-table--context-menu-clild-wrapper",{"is--show":t===i.selected&&i.showChild}]},a.map((a,s)=>{const{loading:l}=a,c=Object.assign({},a.prefixConfig),u=c.icon||a.prefixIcon,d=Object.assign({},a.suffixConfig),h=d.icon||a.suffixIcon,p=fd(a.name);return!1===a.visible?null:e("li",{class:["vxe-table--context-menu--option",a.className,{"link--loading":l,"link--disabled":a.disabled,"link--active":a===i.selectChild}],key:`${r}_${o}_${s}`},[e("a",{class:"vxe-context-menu--link",on:{click(e){n.ctxMenuLinkEvent(e,a)},mouseover(e){n.ctxMenuMouseoverEvent(e,t,a)},mouseout(e){n.ctxMenuMouseoutEvent(e,t)}}},[e("div",{class:["vxe-context-menu--link-prefix",c.className||""]},[a.loading?e("span",{class:lb("TABLE_MENU_OPTION_LOADING")}):u&&pc.isFunction(u)?e("span",{},Bp(u({}))):e("span",{},[e("i",{class:u})]),c.content?e("span",`${c.content}`):ub(n)]),e("span",{class:"vxe-context-menu--link-content",attrs:{title:p}},l?cb("vxe.table.menuLoading"):p),e("div",{class:["vxe-context-menu--link-suffix",d.className||""]},[h&&pc.isFunction(h)?e("span",{},Bp(h.call(n,{}))):e("i",{class:h}),d.content?e("span",`${d.content}`):ub(n)])])])})):null])}))):[])}},render(e){return this.renderVN(e)}},{renderer:hb}=ad,pb="table";function fb(e){const t=e.$xeGrid,n=e.$xeGantt,r=e,i=e,o=t||n,{filterStore:a}=r,{elemStore:s}=i,{column:l,targetEl:c}=a;if(!l)return e.$nextTick();const u=e.$refs.refElem,d=e.computeFilterOpts,h=e.computeRendererOpts,{maxHeight:p,transfer:f,zIndex:m}=d,g=l?l.filterRender:null,v=g&&ld(g)&&g.name?h[g.name]||hb.get(g.name):null,b=Ep(s["main-header-scroll"]);if(!b)return e.$nextTick();const y=e.$refs.refTableFilter,x=y?y.$el:null;if(!x)return e.$nextTick();const w=x.querySelector(".vxe-table--filter-header"),C=x.querySelector(".vxe-table--filter-footer"),_=()=>{let t=c;if(!c){const e=Ep(s[`${l.fixed||"main"}-header-wrapper`]||s["main-header-wrapper"]),n=e?e.querySelector(`.vxe-header--column.${l.id}`):null;n&&(t=n)}if(!t)return e.$nextTick();const n=t.getBoundingClientRect(),r=u.getBoundingClientRect();let i=0,d=0,h=0,g={};if(f){const e=Dh(t,x,{defaultPlacement:"bottom",isMinWidth:!1,teleportTo:f});g=e.style}else{const e=x.offsetWidth,a=c?e/2:(e-l.renderWidth)/2;if(h=Math.max(40,u.clientHeight-d-(w?w.clientHeight:0)-(C?C.clientHeight:0)-14),i=n.left-r.left-a,d=n.top-r.top+t.clientHeight,i<1?i=1:i>u.clientWidth-e-1&&(i=u.clientWidth-e-1),o){const e=o.$refs.refElem;if(e){const t=e.getBoundingClientRect();d+=r.top-t.top}}g={top:lh(d),left:lh(i)}}m&&(g.zIndex=m),a.style=g,v&&!v.tableFilterAutoHeight?h=0:p&&(h=p>h?h:p),a.maxHeight=h};return _(),e.$nextTick().then(()=>{_()})}const mb={methods:{_openFilter(e){const t=this,n=t.$xeGrid,r=t.$xeGantt,i=pp(this,e);if(i&&i.filters){const{elemStore:e}=this,{fixed:o,filters:a}=i;return t.scrollToColumn(i).then(()=>{const s=e[`${o||"main"}-header-wrapper`]||e["main-header-wrapper"];if(s){const e=s.querySelector(`.vxe-header--column.${i.id} .vxe-cell--filter`);if(e)kh(e,"click");else{const e=s.querySelector(`.vxe-header--column.${i.id}`);if(e){let s=null;a&&(s=a[0]);const l={$table:t,$grid:n,$gantt:r,$rowIndex:-1,column:i,columnIndex:t.getColumnIndex(i),$columnIndex:t.getVMColumnIndex(i),_columnIndex:t.getVTColumnIndex(i),firstFilterOption:s,fixed:o,source:pb,type:"header"};t.handleOpenFilterColumn(new Event("click"),null,e,i,l)}}}})}return t.$nextTick()},_setFilter(e,t,n){const r=this,i=r,{filterStore:o}=i,a=pp(r,e);if(a&&a.filters){if(a.filters=yp(t||[],a.id),n)return r.handleColumnConfirmFilter(a,null);o.visible&&r.handleFilterOptions(a)}return r.$nextTick()},checkFilterOptions(){const e=this,t=e,{filterStore:n}=t,{column:r}=n;if(r){const e=r.filters||[];n.isAllSelected=e.every(e=>e._checked),n.isIndeterminate=!n.isAllSelected&&e.some(e=>e._checked)}},handleOpenFilterColumn(e,t,n,r,i){const o=this,a=o,s=o,{initStore:l,filterStore:c}=a;c.column===r&&c.visible?c.visible=!1:(o.handleFilterOptions(r),s._currFilterParams=i,c.targetEl=t,c.style=null,c.visible=!0,l.filter=!0,o.$nextTick().then(()=>{fb(o)})),o.dispatchEvent("filter-visible",{column:r,field:r.field,property:r.field,filterList:o.getCheckedFilters(),visible:c.visible},e)},triggerFilterEvent(e,t,n){const r=this,i=r,{elemStore:o}=i,{fixed:a}=t,s=Ep(o[`${a||"main"}-header-wrapper`]||o["main-header-wrapper"]),l=e.currentTarget,c=s?s.querySelector(`.vxe-header--column.${t.id}`):null;r.handleOpenFilterColumn(e,l,c||l,t,n)},handleFilterChangeRadioOption(e,t,n){const r=this,i=r,{filterStore:o}=i,{column:a}=o;if(a){const i=a.filters||[];i.forEach(e=>{e._checked=!1}),n._checked=t,r.checkFilterOptions(),r.handleFilterConfirmFilter(e,a)}},handleFilterChangeMultipleOption(e,t,n){const r=this;n._checked=t,r.checkFilterOptions()},handleFilterChangeOption(e,t,n){const r=this,i=r,o=r,{filterStore:a}=i,{fullColumnIdData:s}=o;let l=a.column;if(!l){const e=s[n._colId];e&&(l=e.column,a.column=l)}l&&(l.filterMultiple?r.handleFilterChangeMultipleOption(e,t,n):r.handleFilterChangeRadioOption(e,t,n))},handleFilterConfirmFilter(e,t){const n=this;if(t){const r=t.filters||[];r.forEach(e=>{e.checked=e._checked}),n.confirmFilterEvent(e,t)}},_saveFilter(e){const t=this;if(e){const n=pp(t,e);t.handleFilterConfirmFilter(null,n)}return t.$nextTick()},_saveFilterByEvent(e,t){const n=this;if(t){const r=pp(n,t);n.handleFilterConfirmFilter(e,r)}return n.$nextTick()},_resetFilter(e){const t=this;if(e){const n=pp(t,e);t.handleFilterResetFilter(null,n)}return t.$nextTick()},_resetFilterByEvent(e,t){const n=this;if(t){const r=pp(n,t);n.handleFilterResetFilter(e,r)}return n.$nextTick()},_saveFilterPanel(){const e=this,t=e,{filterStore:n}=t;return e.handleFilterConfirmFilter(null,n.column||null),e.$nextTick()},_saveFilterPanelByEvent(e){const t=this,n=t,{filterStore:r}=n;return t.handleFilterConfirmFilter(e,r.column||null),t.$nextTick()},_resetFilterPanel(){const e=this,t=e,{filterStore:n}=t;return e.handleFilterResetFilter(null,n.column||null),e.$nextTick()},_resetFilterPanelByEvent(e){const t=this,n=t,{filterStore:r}=n;return t.handleFilterResetFilter(e,r.column||null),t.$nextTick()},_getCheckedFilters(){const e=this,t=e,{tableFullColumn:n}=t,r=[];return n.forEach(e=>{const{field:t,filters:n}=e,i=n||[],o=[],a=[];i&&(i.forEach(e=>{e.checked&&(o.push(e.value),a.push(e.data))}),o.length&&r.push({column:e,field:t,property:t,values:o,datas:a}))}),r},handleColumnConfirmFilter(e,t){const n=this,r=n,i=n,{mouseConfig:o}=r,{scrollXLoad:a,scrollYLoad:s}=i,l=n.computeFilterOpts,c=n.computeMouseOpts,{field:u,filters:d}=e,h=d||[],p=[],f=[];h.forEach(e=>{e.checked&&(p.push(e.value),f.push(e.data))});const m=n.getCheckedFilters(),g={$table:n,$event:t,column:e,field:u,property:u,values:p,datas:f,filters:m,filterList:m};return l.remote||(n.handleTableData(!0),n.checkSelectionStatus()),o&&c.area&&n.handleFilterEvent&&n.handleFilterEvent(t,g),t&&n.dispatchEvent("filter-change",g,t),n.closeFilter(),n.updateFooter().then(()=>{const{scrollXLoad:e,scrollYLoad:t}=i;if(a||e||s||t)return(a||e)&&n.updateScrollXSpace(),(s||t)&&n.updateScrollYSpace(),n.refreshScroll()}).then(()=>(n.updateCellAreas(),n.recalculate(!0))).then(()=>{setTimeout(()=>n.recalculate(),50)})},confirmFilterEvent(e,t){const n=this;t&&n.handleColumnConfirmFilter(t,e)},handleClearFilter(e){const t=this;if(e){const{filters:n,filterRender:r}=e;if(n){const i=t.computeRendererOpts,o=ld(r)&&r.name?i[r.name]||hb.get(r.name):null,a=e.filterResetMethod||(o?o.tableFilterResetMethod||o.filterResetMethod:null);n.forEach(e=>{e._checked=!1,e.checked=!1,a||(e.data=pc.clone(e.resetValue,!0))}),a&&a({options:n,column:e,$table:t})}}},handleFilterResetFilter(e,t){const n=this;t&&(n.handleClearFilter(t),n.confirmFilterEvent(e,t),e&&n.dispatchEvent("clear-filter",{filterList:[]},e))},handleFilterStyle(){const e=this,t=e,{filterStore:n}=t;return n.visible?fb(e):e.$nextTick()},_clearFilter(e){const t=this,n=t,r=t,{filterStore:i}=n,{tableFullColumn:o}=r;let a;return e?(a=pp(t,e),a&&t.handleClearFilter(a)):o.forEach(t.handleClearFilter),e&&a===i.column||Object.assign(i,{isAllSelected:!1,isIndeterminate:!1,style:null,options:[],column:null,multiple:!1,visible:!1}),t.updateData()},_updateFilterOptionStatus(e,t){const n=this;return e._checked=t,e.checked=t,n.$nextTick()}}},{warnLog:gb}=Ih("table"),{menus:vb,globalEvents:bb,GLOBAL_EVENT_KEYS:yb}=ad,xb={methods:{_closeMenu(){const e=this,t=e;return Object.assign(t.ctxMenuStore,{visible:!1,selected:null,selectChild:null,showChild:!1}),e.$nextTick()},moveCtxMenu(e,t,n,r,i,o){const a=this;let s;const l=pc.findIndexOf(o,e=>t[n]===e);if(r)i&&pd(t.selected)?t.showChild=!0:(t.showChild=!1,t.selectChild=null);else if(bb.hasKey(e,yb.ARROW_UP)){for(let e=l-1;e>=0;e--)if(!1!==o[e].visible){s=o[e];break}t[n]=s||o[o.length-1]}else if(bb.hasKey(e,yb.ARROW_DOWN)){for(let e=l+1;e<o.length;e++)if(!1!==o[e].visible){s=o[e];break}t[n]=s||o[0]}else t[n]&&(bb.hasKey(e,yb.ENTER)||bb.hasKey(e,yb.SPACEBAR))&&a.ctxMenuLinkEvent(e,t[n])},handleGlobalContextmenuEvent(e){const t=this,n=t.$xeGrid,r=t.$xeGantt,i=t,o=t,a=t,{xID:s}=t,{mouseConfig:l,menuConfig:c}=i,{editStore:u,ctxMenuStore:d}=o,{visibleColumn:h}=a,p=t.$refs.refTableFilter,f=t.$refs.refTableMenu,m=t.computeMouseOpts,g=t.computeMenuOpts,v=t.$refs.refElem,{selected:b}=u,y=["header","body","footer"];if(ld(c)){if(d.visible&&f&&vh(e,f.$el).flag)return void e.preventDefault();if(a._keyCtx){const i="body",o={source:"table",type:i,$table:t,$grid:n,$gantt:r,keyboard:!0,columns:h.slice(0),$event:e};if(l&&m.area){const n=t.getActiveCellArea();if(n&&n.row&&n.column)return o.row=n.row,o.column=n.column,void t.handleOpenMenuEvent(e,i,o)}else if(l&&m.selected&&b.row&&b.column)return o.row=b.row,o.column=b.column,void t.handleOpenMenuEvent(e,i,o)}for(let i=0;i<y.length;i++){const o=y[i],a=vh(e,v,`vxe-${o}--column`,e=>e.parentNode.parentNode.parentNode.getAttribute("xid")===s),l={source:"table",type:o,$table:t,$grid:n,$gantt:r,columns:h.slice(0),$event:e};if(a.flag){const n=a.targetElem,r=t.getColumnNode(n),i=r?r.item:null;let s=`${o}-`;if(i&&Object.assign(l,{column:i,columnIndex:t.getColumnIndex(i),cell:n}),"body"===o){const e=t.getRowNode(n.parentNode),r=e?e.item:null;s="",r&&(l.row=r,l.rowIndex=t.getRowIndex(r))}const c=`${s}cell-menu`;return t.handleOpenMenuEvent(e,o,l),void(t.$listeners[`${s}cell-context-menu`]?(gb("vxe.error.delEvent",[`${s}cell-context-menu`,`${s}cell-menu`]),t.dispatchEvent(`${s}cell-context-menu`,l,e)):t.dispatchEvent(c,l,e))}if(vh(e,v,`vxe-table--${o}-wrapper`,e=>e.getAttribute("xid")===s).flag||"body"===o&&vh(e,v,"vxe-table--empty-place-wrapper",e=>e.getAttribute("xid")===s).flag)return void("cell"===g.trigger?e.preventDefault():t.handleOpenMenuEvent(e,o,l))}}p&&!vh(e,p.$el).flag&&t.closeFilter(),t.closeMenu()},handleOpenMenuEvent(e,t,n){const r=this,i=r.$xeGrid,o=r.$xeGantt,a=i||o,s=r,l=r,{ctxMenuStore:c}=s,u=r.computeIsContentMenu,d=r.computeMenuOpts,h=d[t],{zIndex:p,transfer:f,width:m,visibleMethod:g}=d;if(h){const{options:t,disabled:i}=h;i?e.preventDefault():u&&t&&t.length&&(n.options=t,r.preventEvent(e,"event.showMenu",n,()=>{if(!g||g(n)){e.preventDefault(),r.updateZindex();const i=a?a.$refs.refElem:r.$refs.refElem,o=i.getBoundingClientRect(),{scrollTop:s,scrollLeft:u,visibleHeight:d,visibleWidth:h}=uh();let g=e.clientY-o.y,v=e.clientX-o.x;f&&(g=e.clientY+s,v=e.clientX+u);const b=()=>{l._currMenuParams=n;const e={zIndex:p||l.tZindex,top:`${g}px`,left:`${v}px`};m&&(e["--vxe-ui-table-menu-item-width"]=lh(m)),Object.assign(c,{visible:!0,list:t,selected:null,selectChild:null,showChild:!1,style:e}),r.$nextTick(()=>{const e=r.$refs.refTableMenu,t=e.$el,n=t.clientHeight,i=t.clientWidth,{boundingTop:o,boundingLeft:a}=bh(t),l=o+n-d,p=a+i-h;l>-10&&(c.style.top=`${Math.max(s+2,g-n-2)}px`),p>-10&&(c.style.left=`${Math.max(u+2,v-i-2)}px`)})},{keyboard:y,row:x,column:w}=n;y&&x&&w?r.scrollToRow(x,w).then(()=>{const e=r.getCellElement(x,w);if(e){const{boundingTop:t,boundingLeft:n}=bh(e);g=t+s+Math.floor(e.offsetHeight/2),v=n+u+Math.floor(e.offsetWidth/2)}b()}):b()}else r.closeMenu()}))}r.closeFilter()},ctxMenuMouseoverEvent(e,t,n){const r=this,i=r,o=e.currentTarget,{ctxMenuStore:a}=i;e.preventDefault(),e.stopPropagation(),a.selected=t,a.selectChild=n,n||(a.showChild=pd(t),a.showChild&&r.$nextTick(()=>{const e=o.nextElementSibling;if(e){const{boundingTop:t,boundingLeft:n,visibleHeight:r,visibleWidth:i}=bh(o),a=t+o.offsetHeight,s=n+o.offsetWidth;let l="",c="";s+e.offsetWidth>i-10&&(l="auto",c=`${o.offsetWidth}px`);let u="",d="";a+e.offsetHeight>r-10&&(u="auto",d="0"),e.style.left=l,e.style.right=c,e.style.top=u,e.style.bottom=d}}))},ctxMenuMouseoutEvent(e,t){const n=this,r=n,{ctxMenuStore:i}=r;t.children||(i.selected=null),i.selectChild=null},ctxMenuLinkEvent(e,t){const n=this,r=n.$xeGrid,i=n.$xeGantt,o=n;if(!t.loading&&!t.disabled&&(t.code||!t.children||!t.children.length)){const a=vb.get(t.code),s=Object.assign({},o._currMenuParams,{menu:t,$table:n,$grid:r,$gantt:i,$event:e}),l=a?a.tableMenuMethod||a.menuMethod:null;l&&l(s,e),n.$listeners["context-menu-click"]?(gb("vxe.error.delEvent",["context-menu-click","menu-click"]),n.dispatchEvent("context-menu-click",s,e)):n.dispatchEvent("menu-click",s,e),n.closeMenu()}}}},{warnLog:wb,errLog:Cb}=Ih("table"),{getConfig:_b,renderer:Sb,getI18n:kb}=ad;function Eb(e,t){const{model:n,editRender:r}=t;r&&(n.value=Sp(e,t),n.update=!1)}function Ob(e,t){const{model:n,editRender:r}=t;r&&n.update&&(kp(e,t,n.value),n.update=!1,n.value=null)}function Tb(e){const t=e.$refs.refElem;if(t){const e=t.querySelector(".col--selected");e&&oh(e,"col--selected")}}function $b(e){const t=e,{editStore:n,tableColumn:r}=t,i=e.computeEditOpts,{actived:o}=n,{row:a,column:s}=o;a&&s&&("row"===i.mode?r.forEach(e=>Ob(a,e)):Ob(a,s))}function Db(e,t,n){const r=e,{tableFullTreeData:i,afterFullData:o,fullDataRowIdData:a,fullAllDataRowIdData:s}=r,l=e.computeTreeOpts,{rowField:c,parentField:u,mapChildrenField:d}=l,h=l.children||l.childrenField,p=n?"push":"unshift";t.forEach(t=>{const n=t[u],r=np(e,t),l=n?pc.findTree(i,e=>n===e[c],{children:d}):null;if(l){const{item:n}=l,i=s[np(e,n)],o=i?i.level:0;let c=n[h],u=n[d];pc.isArray(c)||(c=n[h]=[]),pc.isArray(u)||(u=n[d]=[]),c[p](t),u[p](t);const f={row:t,rowid:r,_seq:-1,seq:-1,index:-1,_index:-1,$index:-1,treeIndex:-1,_tIndex:-1,items:c,parent:n,level:o+1,height:0,resizeHeight:0,oTop:0,expandHeight:0};a[r]=f,s[r]=f}else{n&&wb("vxe.error.unableInsert"),o[p](t),i[p](t);const e={row:t,rowid:r,_seq:-1,seq:-1,index:-1,_index:-1,$index:-1,treeIndex:-1,_tIndex:-1,items:i,parent:null,level:0,height:0,resizeHeight:0,oTop:0,expandHeight:0};a[r]=e,s[r]=e}})}function Mb(e,t,n,r){const i=e,o=e,a=e,{treeConfig:s}=i,{isRowGroupStatus:l}=o,{tableFullTreeData:c,afterFullData:u,mergeBodyList:d,tableFullData:h,fullDataRowIdData:p,fullAllDataRowIdData:f,insertRowMaps:m,removeRowMaps:g}=a,v=e.computeTreeOpts,{transform:b,parentField:y,rowField:x,mapChildrenField:w}=v,C=v.children||v.childrenField;pc.isArray(t)||(t=[t]);let _=n;if(pc.isString(n)||pc.isNumber(n)){const e=f[n];e&&(_=e.row)}if(!t.length)return Promise.resolve({row:null,rows:[]});e.handlePushStack();const S=e.defineField(t.map(e=>Object.assign(s&&b?{[w]:[],[C]:[]}:{},e)));let k=[];if(s&&b&&(k=pc.toArrayTree(S,{key:x,parentKey:y,children:C})),pc.eqNull(_))if(s&&b)Db(e,S,!1);else if(l){if(s)throw new Error(kb("vxe.error.noTree",["insert"]));Cb(kb("vxe.error.noGroup",["insert"]))}else S.forEach(t=>{const n=np(e,t),r={row:t,rowid:n,_seq:-1,seq:-1,index:-1,_index:-1,$index:-1,treeIndex:-1,_tIndex:-1,items:u,parent:null,level:0,height:0,resizeHeight:0,oTop:0,expandHeight:0};p[n]=r,f[n]=r,u.unshift(t),h.unshift(t)}),d.forEach(e=>{const{row:t}=e;t>=0&&(e.row=t+S.length)});else if(-1===_)if(s&&b)Db(e,S,!0);else if(l){if(s)throw new Error(kb("vxe.error.noTree",["insert"]));Cb(kb("vxe.error.noGroup",["insert"]))}else S.forEach(t=>{const n=np(e,t),r={row:t,rowid:n,_seq:-1,seq:-1,index:-1,_index:-1,$index:-1,treeIndex:-1,_tIndex:-1,items:u,parent:null,level:0,height:0,resizeHeight:0,oTop:0,expandHeight:0};p[n]=r,f[n]=r,u.push(t),h.push(t)});else if(s&&b){const t=pc.findTree(c,e=>_[x]===e[x],{children:w});if(t){const{parent:n}=t,i=n?n[w]:c,o=f[np(e,n)],a=o?o.level:0;if(k.forEach((e,o)=>{n?e[y]!==n[x]&&(Cb("vxe.error.errProp",[`${y}=${e[y]}`,`${y}=${n[x]}`]),e[y]=n[x]):null!==e[y]&&(pc.eqNull(e[y])||Cb("vxe.error.errProp",[`${y}=${e[y]}`,"null"]),e[y]=null);let a=t.index+o;r&&(a+=1),i.splice(a,0,e)}),pc.eachTree(k,t=>{const r=np(e,t),o={row:t,rowid:r,_seq:-1,seq:-1,index:-1,_index:-1,$index:-1,treeIndex:-1,_tIndex:-1,items:i,parent:n,level:a+1,height:0,resizeHeight:0,oTop:0,expandHeight:0};t[C]&&(t[w]=t[C]),p[r]=o,f[r]=o},{children:C}),n){const e=pc.findTree(c,e=>_[x]===e[x],{children:C});if(e){const t=e.items;let n=e.index;r&&(n+=1),t.splice(n,0,...k)}}}else wb("vxe.error.unableInsert"),Db(e,S,!0)}else if(l){if(s)throw new Error(kb("vxe.error.noTree",["insert"]));Cb(kb("vxe.error.noGroup",["insert"]))}else{if(s)throw new Error(kb("vxe.error.noTree",["insert"]));let t=-1;if(pc.isNumber(_)?_<u.length&&(t=_):t=e.findRowIndexOf(u,_),r&&(t=Math.min(u.length,t+1)),-1===t)throw new Error(kb("vxe.error.unableInsert"));u.splice(t,0,...S);const n=e.findRowIndexOf(h,_);n>-1?h.splice(n+(r?1:0),0,...S):h.push(...S),d.forEach(e=>{const{row:n,rowspan:i}=e;n>=t?e.row=n+S.length:(r?n+i>=t:n+i>t)&&(e.rowspan=i+S.length)})}const E=t=>{const n=np(e,t);g[n]?(delete g[n],m[n]&&delete m[n]):m[n]=t};return s&&b?pc.eachTree(k,E,{children:w}):S.forEach(E),o.removeRowFlag++,o.insertRowFlag++,e.cacheRowMap(!1),e.updateScrollYStatus(),e.handleTableData(s&&b),s&&b||e.updateAfterDataIndex(),e.updateFooter(),e.handleUpdateBodyMerge(),e.checkSelectionStatus(),o.scrollYLoad&&e.updateScrollYSpace(),e.$nextTick().then(()=>(e.updateCellAreas(),e.recalculate(!0))).then(()=>({row:S.length?S[S.length-1]:null,rows:S}))}function Fb(e,t,n,r,i){const o=e,a=e,{treeConfig:s}=o,{fullAllDataRowIdData:l}=a,c=e.computeTreeOpts,{transform:u,rowField:d,parentField:h}=c;if(s&&u){pc.isArray(t)||(t=[t]);let o=n;if(pc.isString(n)||pc.isNumber(n)){const e=l[n];e&&(o=e.row)}return Mb(e,t.map(e=>Object.assign({},e,{[h]:o[d]})),r,i)}return Cb("vxe.error.errProp",["tree-config.transform=false","tree-config.transform=true"]),Promise.resolve({row:null,rows:[]})}function Rb(e,t,n){const r=e,{editStore:i}=r,{actived:o,focused:a}=i,{row:s,column:l}=o,c=e.computeValidOpts;if(s||l){if(n&&np(e,n)!==np(e,s))return e.$nextTick();$b(e),e.updateFooter(),o.args=null,o.row=null,o.column=null,e.dispatchEvent("edit-closed",{row:s,rowIndex:e.getRowIndex(s),$rowIndex:e.getVMRowIndex(s),column:l,columnIndex:e.getColumnIndex(l),$columnIndex:e.getVMColumnIndex(l)},t||null)}return a.row=null,a.column=null,c.autoClear&&("full"!==c.msgMode||"obsolete"===_b().cellVaildMode)&&e.clearValidate?e.clearValidate():e.$nextTick().then(()=>e.updateCellAreas())}function Ib(e,t,n,r){const i=e,o=e,a=e.$xeGrid,s=e.$xeGantt,{editConfig:l,mouseConfig:c}=i,{editStore:u,tableColumn:d}=o,h=e.computeEditOpts,{mode:p}=h,{actived:f,focused:m}=u,{row:g,column:v}=t,{editRender:b}=v,{isFocus:y,isPos:x,isClear:w}=r,C=t.cell||e.getCellElement(g,v),_=h.beforeEditMethod||h.activeMethod,S=Object.assign(Object.assign({},t),{cell:C});if(C&&ld(l)&&ld(b)&&!e.isPendingByRow(g)&&!e.isAggregateRecord(g)){if(f.row!==g||"cell"===p&&f.column!==v){let t="edit-disabled";if(!_||_(Object.assign(Object.assign({},S),{$table:e,$grid:a,$gantt:s}))){c&&(e.clearSelected(),e.clearCellAreas&&(e.clearCellAreas(),e.clearCopyCellArea())),e.closeTooltip(),f.column&&Rb(e,n),t="edit-activated",v.renderHeight=C.offsetHeight,f.args=S,f.row=g,f.column=v,e.handlePushStack(),w&&kp(g,v,null),"row"===p?d.forEach(e=>Eb(g,e)):Eb(g,v);const r=h.afterEditMethod;e.$nextTick(()=>{y&&e.handleFocus(S,n),r&&r(Object.assign(Object.assign({},S),{$table:e,$grid:a,$gantt:s}))})}e.dispatchEvent(t,{row:g,rowIndex:e.getRowIndex(g),$rowIndex:e.getVMRowIndex(g),column:v,columnIndex:e.getColumnIndex(v),$columnIndex:e.getVMColumnIndex(v)},n),"edit-activated"===t&&e.dispatchEvent("edit-actived",{row:g,rowIndex:e.getRowIndex(g),$rowIndex:e.getVMRowIndex(g),column:v,columnIndex:e.getColumnIndex(v),$columnIndex:e.getVMColumnIndex(v)},n)}else{const{column:t}=f;if(c&&(e.clearSelected(),e.clearCellAreas&&(e.clearCellAreas(),e.clearCopyCellArea())),t&&t!==v){const{model:n}=t;n.update&&kp(g,t,n.value),e.clearValidate&&e.clearValidate(g,v)}v.renderHeight=C.offsetHeight,f.args=S,f.column=v,x&&setTimeout(()=>{e.handleFocus(S,n)})}m.column=null,m.row=null,e.focus()}return e.$nextTick()}function Ab(e,t,n,r){const i=e,o=e,{editConfig:a}=i,{isPos:s}=r,l=pc.isString(n)?e.getColumnByField(n):n;return t&&l&&ld(a)&&ld(l.editRender)&&!e.isAggregateRecord(t)?Promise.resolve(s?e.scrollToRow(t,l):null).then(()=>{const n=e.getCellElement(t,l);return n&&(Ib(e,{row:t,rowIndex:e.getRowIndex(t),$rowIndex:e.getVMRowIndex(t),_rowIndex:e.getVTRowIndex(t),column:l,columnIndex:e.getColumnIndex(l),$columnIndex:e.getVMColumnIndex(l),_columnIndex:e.getVTColumnIndex(l),cell:n,$table:e},null,r),o._lastCallTime=Date.now()),e.$nextTick()}):e.$nextTick()}const Pb={methods:{_insert(e){const t=this;return Mb(t,e,null)},_insertAt(e,t){const n=this;return Mb(n,e,t)},_insertNextAt(e,t){const n=this;return Mb(n,e,t,!0)},_insertChild(e,t){const n=this;return Fb(n,e,t,null)},_insertChildAt(e,t,n){const r=this;return Fb(r,e,t,n)},_insertChildNextAt(e,t,n){const r=this;return Fb(r,e,t,n,!0)},_remove(e){const t=this,n=t,r=t,i=t,{treeConfig:o}=n,{editStore:a,isRowGroupStatus:s}=r,{tableFullTreeData:l,selectCheckboxMaps:c,afterFullData:u,mergeBodyList:d,tableFullData:h,pendingRowMaps:p,insertRowMaps:f,removeRowMaps:m}=i,g=t.computeCheckboxOpts,v=t.computeTreeOpts,{transform:b,mapChildrenField:y}=v,x=v.children||v.childrenField,{actived:w}=a,{checkField:C}=g;let _=[];return e?pc.isArray(e)||(e=[e]):e=h,e.length?(t.handlePushStack(),e.forEach(e=>{if(!t.isInsertByRow(e)){const n=np(t,e);m[n]=e}}),C||(e.forEach(e=>{const t=np(this,e);c[t]&&delete c[t]}),r.updateCheckboxFlag++),h===e?(e=_=h.slice(0),i.tableFullData=[],i.afterFullData=[],t.clearMergeCells()):o&&b?e.forEach(e=>{const n=np(t,e),r=pc.findTree(l,e=>n===np(t,e),{children:y});if(r){const e=r.items.splice(r.index,1);_.push(e[0])}const i=pc.findTree(l,e=>n===np(t,e),{children:x});i&&i.items.splice(i.index,1);const o=t.findRowIndexOf(u,e);o>-1&&u.splice(o,1)}):s?wb(kb("vxe.error.noGroup",["remove"])):e.forEach(e=>{const n=t.findRowIndexOf(h,e);if(n>-1){const e=h.splice(n,1);_.push(e[0])}const r=t.findRowIndexOf(u,e);r>-1&&(d.forEach(e=>{const{row:t,rowspan:n}=e;t>r?e.row=t-1:t+n>r&&(e.rowspan=n-1)}),u.splice(r,1))}),w.row&&t.findRowIndexOf(e,w.row)>-1&&t.clearEdit(),e.forEach(e=>{const n=np(t,e);f[n]&&delete f[n],p[n]&&delete p[n]}),r.removeRowFlag++,r.insertRowFlag++,r.pendingRowFlag++,t.cacheRowMap(!1),t.handleTableData(o&&b),t.updateFooter(),t.handleUpdateBodyMerge(),o&&b||t.updateAfterDataIndex(),t.checkSelectionStatus(),r.scrollYLoad&&t.updateScrollYSpace(),t.$nextTick().then(()=>(t.updateCellAreas(),t.recalculate(!0))).then(()=>({row:_.length?_[_.length-1]:null,rows:_}))):Promise.resolve({row:null,rows:[]})},_removeCheckboxRow(){const e=this;return e.remove(e.getCheckboxRecords()).then(t=>(e.clearCheckboxRow(),t))},_removeRadioRow(){const e=this,t=e.getRadioRecord();return e.remove(t||[]).then(t=>(e.clearRadioRow(),t))},_removeCurrentRow(){const e=this,t=e.getCurrentRecord();return e.remove(t||[]).then(t=>(e.clearCurrentRow(),t))},_getRecordset(){const e=this,t=e.getRemoveRecords(),n=e.getPendingRecords(),r=t.concat(n),i=e.getUpdateRecords().filter(t=>!r.some(n=>e.eqRow(n,t)));return{insertRecords:e.getInsertRecords(),removeRecords:t,updateRecords:i,pendingRecords:n}},_getInsertRecords(){const e=this,t=e,{fullAllDataRowIdData:n,insertRowMaps:r}=t,i=[];return pc.each(r,(e,t)=>{n[t]&&i.push(e)}),i},_getRemoveRecords(){const e=this,t=e,{removeRowMaps:n}=t,r=[];return pc.each(n,e=>{r.push(e)}),r},_getUpdateRecords(){const e=this,t=e,n=e,{keepSource:r,treeConfig:i}=t,{tableFullData:o,tableFullTreeData:a}=n,s=e.computeTreeOpts,l=[];if(r)if($b(e),i){const t=s.children||s.childrenField;pc.eachTree(a,t=>{e.isUpdateByRow(t)&&l.push(t)},{children:t})}else o.forEach(t=>{e.isUpdateByRow(t)&&l.push(t)});return l},handleEdit(e,t,n){const r=this;return Ib(r,e,t,Object.assign({isFocus:!0,isPos:!0},n))},handleActived(e,t){const n=this;return n.handleEdit(e,t)},_getColumnModel(e,t){Eb(e,t)},_setColumnModel(e,t){Ob(e,t)},_syncActivedCell(){const e=this;$b(e)},_clearActived(e){const t=this;return wb("vxe.error.delFunc",["clearActived","clearEdit"]),t.clearEdit(e)},_clearEdit(e){const t=this;return Rb(t,null,e)},handleClearEdit(e,t){const n=this;return Rb(n,e,t)},_getActiveRecord(){const e=this,t=e,n=e;wb("vxe.error.delFunc",["getActiveRecord","getEditCell"]);const{editStore:r}=t,{fullAllDataRowIdData:i}=n,{args:o,row:a}=r.actived;return o&&a&&i[np(e,a)]?Object.assign({},o,{row:a}):null},_getEditRecord(){const e=this,t=e,n=e;wb("vxe.error.delFunc",["getEditRecord","getEditCell"]);const{editStore:r}=t,{fullAllDataRowIdData:i}=n,{args:o,row:a}=r.actived;return o&&a&&i[np(e,a)]?Object.assign({},o,{row:a}):null},_getEditCell(){const e=this,t=e,{editStore:n}=t,{row:r,column:i}=n.actived;return i&&r?{row:r,rowIndex:e.getRowIndex(r),column:i,columnIndex:e.getColumnIndex(i)}:null},_isActiveByRow(e){const t=this;return wb("vxe.error.delFunc",["isActiveByRow","isEditByRow"]),t.isEditByRow(e)},_isEditByRow(e){const t=this,n=t,{editStore:r}=n;return r.actived.row===e},handleCellFocus(e,t){const n=this,r=n,{editConfig:i}=r,{column:o}=t,{editRender:a}=o,s=n.computeEditOpts;if(i&&ld(a)){const r=n.computeRendererOpts,i=a.name,o=i?r[i]||Sb.get(i):null;let l=a.autofocus||a.autoFocus,c=a.autoSelect||a.autoselect,u=null;return s.autoFocus&&(!l&&o&&(l=o.tableAutoFocus||o.tableAutofocus||o.autofocus),!c&&o&&(c=o.tableAutoSelect||o.autoselect),pc.isFunction(l)?u=l(t):l&&(u=!0===l?e.querySelector("input,textarea"):e.querySelector(l),u&&u.focus())),u}return null},handleFocus(e){const t=this,{row:n,column:r,cell:i}=e,{editRender:o}=r,a=t.computeEditOpts;if(ld(o)){const s=pc.browse(),l=o.autoSelect||o.autoselect,c=t.handleCellFocus(i,e);if(c){if(l)c.select();else if(s.msie){const e=c.createTextRange();e.collapse(!1),e.select()}}else a.autoPos&&(r.fixed||t.scrollToRow(n,r))}},_setActiveRow(e){const t=this;return wb("vxe.error.delFunc",["setActiveRow","setEditRow"]),t.setEditRow(e)},_setEditRow(e,t,n){const r=this,i=r,{visibleColumn:o}=i;let a=pc.find(o,e=>ld(e.editRender)),s=!1;return t&&(s=!0,!0!==t&&(a=pc.isString(t)?r.getColumnByField(t):t)),Ab(r,e,a,Object.assign({isPos:s,isFocus:s},n))},_setActiveCell(e,t){const n=this;return wb("vxe.error.delFunc",["setActiveCell","setEditCell"]),n.setEditCell(e,t)},_setEditCell(e,t,n){const r=this;return Ab(r,e,t,Object.assign({isFocus:!0,isPos:!0},n))},_setSelectCell(e,t){const n=this,r=n,{tableData:i}=r,o=n.computeEditOpts,a=pc.isString(t)?n.getColumnByField(t):t;if(e&&a&&"manual"!==o.trigger){const t=n.findRowIndexOf(i,e);if(t>-1){const r=n.getCellElement(e,a),i={$table:n,row:e,rowIndex:t,$rowIndex:n.getVMRowIndex(e),_rowIndex:n.getVTRowIndex(e),column:a,columnIndex:n.getColumnIndex(a),$columnIndex:n.getVMColumnIndex(a),_columnIndex:n.getVTColumnIndex(a),cell:r};n.handleSelected(i,null)}}return n.$nextTick()},handleSelected(e,t){const n=this,r=n,i=n,{mouseConfig:o,editConfig:a}=r,{editStore:s}=i,l=n.computeMouseOpts,c=n.computeEditOpts,{actived:u,selected:d}=s,{row:h,column:p}=e,f=o&&l.selected,m=()=>(!f||d.row===h&&d.column===p||(u.row!==h||"cell"===c.mode&&u.column!==p)&&(Rb(n,t),n.clearSelected(),n.clearCellAreas&&(n.clearCellAreas(),n.clearCopyCellArea()),d.args=e,d.row=h,d.column=p,f&&n.addCellSelectedClass(),n.focus(),a&&c.isReuseKeep&&ld(c)&&ld(p.editRender)&&setTimeout(()=>{const t=n.getCellElement(h,p);if(t){const r=t.querySelector(".vxe-reusekeep-control");r&&(e.cell=t,n.handleCellFocus(t,e))}},0),t&&n.dispatchEvent("cell-selected",e,t)),n.$nextTick());return m()},_getSelectedCell(){const e=this,t=e,{editStore:n}=t,{row:r,column:i}=n.selected;return r&&i?{row:r,column:i}:null},_clearSelected(){const e=this,t=e,{editStore:n}=t,{selected:r}=n;return r.row=null,r.column=null,Tb(e),e.$nextTick()},reColTitleSdCls(){const e=this,t=e,{elemStore:n}=t,r=n["main-header-list"];r&&pc.arrayEach(r.querySelectorAll(".col--title-selected"),e=>oh(e,"col--title-selected"))},addCellSelectedClass(){const e=this,t=e,{editStore:n}=t,{selected:r}=n,{row:i,column:o}=r;if(Tb(e),i&&o){const t=e.getCellElement(i,o);t&&ah(t,"col--selected")}}}},Lb='body{padding:0;color:rgba(0,0,0,0.7);font-family:"Microsoft YaHei",微软雅黑,"MicrosoftJhengHei",华文细黑,STHeiti,MingLiu}body *{-webkit-box-sizing:border-box;box-sizing:border-box}.vxe-table{border-collapse:collapse;text-align:left;border-spacing:0}.vxe-table.is--default-width,.vxe-table.is--auto-width{width:100%}.vxe-table.is--scale-width{table-layout:fixed}.vxe-table,.vxe-table th,.vxe-table td,.vxe-table td{white-space:pre-line;word-break:break-all;border-color:#D0D0D0;border-style:solid;border-width:0}.border--default,.border--full,.border--outer{border-top-width:1px}.border--default,.border--full,.border--outer{border-left-width:1px}.border--outer,.border--default th,.border--default td,.border--full th,.border--full td,.border--outer th,.border--inner th,.border--inner td{border-bottom-width:1px}.border--default,.border--outer,.border--full th,.border--full td{border-right-width:1px}.border--default th,.border--full th,.border--outer th{background-color:#f8f8f9}.vxe-table td>div,.vxe-table th>div{padding:0.5em 0.4em}.col--center{text-align:center}.col--right{text-align:right}.vxe-table .col--ellipsis>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.vxe-table--tree-node{text-align:left}.vxe-table--tree-node-wrapper{position:relative}.vxe-table--tree-icon-wrapper{position:absolute;top:50%;width:1em;height:1em;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.vxe-table--tree-unfold-icon,.vxe-table--tree-fold-icon{position:absolute;width:0;height:0;border-style:solid;border-width:0.5em;border-right-color:transparent;border-bottom-color:transparent}.vxe-table--tree-unfold-icon{left:.3em;top:0;border-left-color:#939599;border-top-color:transparent}.vxe-table--tree-fold-icon{left:0;top:.3em;border-left-color:transparent;border-top-color:#939599}.vxe-table--tree-cell{display:block;padding-left:1.5em}.vxe-table input[type="checkbox"]{margin:0}.vxe-table input[type="checkbox"],.vxe-table input[type="radio"],.vxe-table input[type="checkbox"]+span,.vxe-table input[type="radio"]+span{vertical-align:middle;padding-left:0.4em}';function Nb(e,t){return new Blob([e],{type:`text/${t.type};charset=utf-8;`})}function jb(e,t){const{style:n}=e;return["<!DOCTYPE html><html>","<head>",'<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">',`<title>${e.sheetName}</title>`,'<style media="print">.vxe-page-break-before{page-break-before:always;}.vxe-page-break-after{page-break-after:always;}</style>',`<style>${Lb}</style>`,n?`<style>${n}</style>`:"","</head>",`<body>${t}</body>`,"</html>"].join("")}const{warnLog:Bb,errLog:Vb}=Ih("table"),{getI18n:zb,renderer:Hb}=ad;let Wb;const qb="\ufeff",Gb="\r\n";function Yb(e,t,n,r,i,o){const a=e.computeSeqOpts,s=a.seqMethod||i.seqMethod;return s?s({$table:e,row:n,rowIndex:e.getRowIndex(n),_rowIndex:e.getVTRowIndex(n),$rowIndex:r,column:i,columnIndex:e.getColumnIndex(i),_columnIndex:e.getVTColumnIndex(i),$columnIndex:o}):t}function Ub(e){return!!e.field||-1===["seq","checkbox","radio"].indexOf(e.type||"")}function Kb(e){return!0===e?"full":e||"default"}function Xb(e){return pc.isBoolean(e)?e?"TRUE":"FALSE":e}const Zb=e=>gd(e)?"":`${e}`;function Qb(e,t,n,r){const i=e,o=e,a=e,{isTreeAllExpanded:s,isRowGroupAllExpanded:l,mode:c}=t,{treeConfig:u}=i,{isRowGroupStatus:d}=o,{fullColumnFieldData:h,fullAllDataRowIdData:p}=a,f=e.computeRadioOpts,m=e.computeCheckboxOpts,g=e.computeTreeOpts,v=e.computeColumnOpts,b=e.computeAggregateOpts,y=e.computeRendererOpts;Wb||(Wb=document.createElement("div"));const{handleGetRowId:x}=ip(e);if(d){const{mode:i,showTotal:o,totalMethod:a,countFields:s,contentMethod:u,formatValuesMethod:d,mapChildrenField:p}=b,g=[],w={},C={};return pc.eachTree(r,(r,b,_,S,k,E)=>{const O=r._row||r,T=x(O);if(C[T])return;const $=k&&k._row?k._row:k,D=$?x($):"";if(l||!$||w[D]&&e.isRowExpandByRow($)){const r=p&&O[p]&&O[p].length,l={_row:O,_level:E.length-1,_hasChild:r,_expand:r&&e.isRowExpandByRow(O)};n.forEach((n,r)=>{const{field:g,editRender:x,cellRender:w,aggFunc:C,rowGroupNode:_}=n;let k="";const E=x||w;let T=n.exportMethod||v.exportMethod;if(!T&&E&&E.name){const e=y[E.name]||Hb.get(E.name);e&&(T=e.tableExportMethod||e.exportMethod)}if(T||(T=v.exportMethod),T)k=T({$table:e,row:O,column:n,options:t});else switch(n.type){case"seq":{const t=S.map((e,t)=>t%2===0?Number(e)+1:".").join("");k="all"===c?t:Yb(e,t,O,b,n,r);break}case"checkbox":k=Xb(e.isCheckedByCheckboxRow(O)),l._checkboxLabel=m.labelField?pc.get(O,m.labelField):"",l._checkboxDisabled=m.checkMethod&&!m.checkMethod({$table:e,row:O});break;case"radio":k=Xb(e.isCheckedByRadioRow(O)),l._radioLabel=f.labelField?pc.get(O,f.labelField):"",l._radioDisabled=f.checkMethod&&!f.checkMethod({$table:e,row:O});break;default:if(g&&O.isAggregate){const t=O,r=t.aggData,l=r?r[g]:null,c=t.groupField,f=t.groupContent,m=p&&t[p]||[],v=t.childCount,b=h[c]||{},y={$table:e,groupField:c,groupColumn:b?b.column:null,column:n,groupValue:f,childList:m,childCount:v,aggValue:null,children:m,totalValue:v};if("column"===i?g===t.groupField:_)k=f,u&&(k=`${u(y)}`),o&&(k=zb("vxe.table.rowGroupContentTotal",[k,a?a(y):v,v]));else if(e.getPivotTableAggregateCellAggValue){const t={$table:e,row:O,column:n};k=e.getPivotTableAggregateCellAggValue(t)}else(!0===C||s&&s.includes(g))&&(k=l?l.value:v,y.aggValue=k,d&&(k=d(y)))}else if(t.original)k=Sp(O,n);else if(k=e.getCellLabel(O,n),"html"===n.type)Wb.innerHTML=k,k=Wb.innerText.trim();else{const t=e.getCellElement(O,n);t&&!ih(t,"is--progress")&&(k=t.innerText.trim())}break}l[n.id]=Zb(k)}),C[T]=!0,D&&(w[D]=!0),g.push(Object.assign(l,O))}},{children:p}),g}if(u){const{seqMode:i}=g,o=g.children||g.childrenField,a=[],l={},u={};return pc.eachTree(r,(r,d,h,g,b,w)=>{const C=r._row||r,_=x(C);if(u[_])return;const S=b&&b._row?b._row:b,k=S?x(S):"";if(s||!S||l[k]&&e.isTreeExpandByRow(S)){const r=C[o]&&C[o].length,s={_row:C,_level:w.length-1,_hasChild:r,_expand:r&&e.isTreeExpandByRow(C)},h=p[_]||{};n.forEach((n,r)=>{let o="";const a=n.editRender||n.cellRender;let l=n.exportMethod||v.exportMethod;if(!l&&a&&a.name){const e=y[a.name]||Hb.get(a.name);e&&(l=e.tableExportMethod||e.exportMethod)}if(l||(l=v.exportMethod),l)o=l({$table:e,row:C,column:n,options:t});else switch(n.type){case"seq":{let t=g.map((e,t)=>t%2===0?Number(e)+1:".").join("");"increasing"===i&&(t=h?h._index+1:-1),o="all"===c?t:Yb(e,t,C,d,n,r);break}case"checkbox":o=Xb(e.isCheckedByCheckboxRow(C)),s._checkboxLabel=m.labelField?pc.get(C,m.labelField):"",s._checkboxDisabled=m.checkMethod&&!m.checkMethod({$table:e,row:C});break;case"radio":o=Xb(e.isCheckedByRadioRow(C)),s._radioLabel=f.labelField?pc.get(C,f.labelField):"",s._radioDisabled=f.checkMethod&&!f.checkMethod({$table:e,row:C});break;default:if(t.original)o=Sp(C,n);else if(o=e.getCellLabel(C,n),"html"===n.type)Wb.innerHTML=o,o=Wb.innerText.trim();else{const t=e.getCellElement(C,n);t&&!ih(t,"is--progress")&&(o=t.innerText.trim())}}s[n.id]=Zb(o)}),u[_]=!0,k&&(l[k]=!0),a.push(Object.assign(s,C))}},{children:o}),a}return r.map((r,i)=>{const o={_row:r};return n.forEach((n,a)=>{let s="";const l=n.editRender||n.cellRender;let u=n.exportMethod||v.exportMethod;if(!u&&l&&l.name){const e=y[l.name]||Hb.get(l.name);e&&(u=e.tableExportMethod||e.exportMethod)}if(u)s=u({$table:e,row:r,column:n,options:t});else switch(n.type){case"seq":{const t=i+1;s="all"===c?t:Yb(e,t,r,i,n,a);break}case"checkbox":s=Xb(e.isCheckedByCheckboxRow(r)),o._checkboxLabel=m.labelField?pc.get(r,m.labelField):"",o._checkboxDisabled=m.checkMethod&&!m.checkMethod({$table:e,row:r});break;case"radio":s=Xb(e.isCheckedByRadioRow(r)),o._radioLabel=f.labelField?pc.get(r,f.labelField):"",o._radioDisabled=f.checkMethod&&!f.checkMethod({$table:e,row:r});break;default:if(t.original)s=Sp(r,n);else if(s=e.getCellLabel(r,n),"html"===n.type)Wb.innerHTML=s,s=Wb.innerText.trim();else{const t=e.getCellElement(r,n);t&&!ih(t,"is--progress")&&(s=t.innerText.trim())}}o[n.id]=Zb(s)}),o})}function Jb(e,t){const n=e.$xeGrid,r=e.$xeGantt,{columns:i,dataFilterMethod:o}=t;let a=t.data;return o&&(a=a.filter((t,i)=>o({$table:e,$grid:n,$gantt:r,row:t,$rowIndex:i}))),Qb(e,t,i,a)}function ey(e){return"TRUE"===e||"true"===e||!0===e}function ty(e,t,n){const r=e.computeColumnOpts,i=n.headerExportMethod||r.headerExportMethod;return i?i({column:n,options:t,$table:e}):(t.isTitle?e.getHeaderCellLabel(n):n.field)||""}function ny(e,t,n,r){const i=e.computeColumnOpts,o=e.computeRendererOpts,a=r.editRender||r.cellRender;let s=r.footerExportMethod;if(!s&&a&&a.name){const e=o[a.name]||Hb.get(a.name);e&&(s=e.tableFooterExportMethod||e.footerExportMethod||e.footerCellExportMethod)}if(s||(s=i.footerExportMethod),s){const i=e.getVTColumnIndex(r);return s({$table:e,items:n,itemIndex:i,row:n,_columnIndex:i,column:r,options:t})}const l=e.getFooterCellLabel(n,r);return l}function ry(e,t,n){const r=e.$xeGrid,i=e.$xeGantt,{footerFilterMethod:o}=t;return o?n.filter((t,n)=>o({$table:e,$grid:r,$gantt:i,items:t,$rowIndex:n})):n}function iy(e,t){if(t){if("seq"===e.type)return`\t${t}`;switch(e.cellType){case"string":if(!isNaN(t))return`\t${t}`;break;case"number":break;default:if(t.length>=12&&!isNaN(t))return`\t${t}`;break}}return t}function oy(e){return/[",\s\n]/.test(e)?`"${e.replace(/"/g,'""')}"`:pc.eqNull(e)?"":e}function ay(e,t,n,r){const i=e;let o=qb;if(t.isHeader&&(o+=n.map(n=>oy(ty(e,t,n))).join(",")+Gb),r.forEach(e=>{o+=n.map(t=>oy(iy(t,e[t.id]))).join(",")+Gb}),t.isFooter){const{footerTableData:r}=i,a=ry(e,t,r);a.forEach(r=>{o+=n.map(n=>oy(ny(e,t,r,n))).join(",")+Gb})}return o}function sy(e,t,n,r){const i=e;let o="";if(t.isHeader&&(o+=n.map(n=>oy(ty(e,t,n))).join("\t")+Gb),r.forEach(e=>{o+=n.map(t=>oy(e[t.id])).join("\t")+Gb}),t.isFooter){const{footerTableData:r}=i,a=ry(e,t,r);a.forEach(r=>{o+=n.map(n=>oy(ny(e,t,r,n))).join("\t")+Gb})}return o}function ly(e,t,n,r){const i=e,o=t[n],a=pc.isUndefined(o)||pc.isNull(o)?r:o,s="ellipsis"===a,l="title"===a,c=!0===a||"tooltip"===a;let u=l||c||s;const{scrollXLoad:d,scrollYLoad:h}=i;return!d&&!h||u||(u=!0),u}function cy(e){return`${e.field||""}:${e.type||""}`}function uy(e,t,n,r){const i=e,o=e,a=e,{id:s,border:l,treeConfig:c,headerAlign:u,align:d,footerAlign:h,showOverflow:p,showHeaderOverflow:f}=i,{isAllSelected:m,isIndeterminate:g}=o,{mergeBodyCellMaps:v,mergeFooterCellMaps:b}=a,y=e.computeTreeOpts,{print:x,widthMode:w,isHeader:C,isFooter:_,isColgroup:S,isMerge:k,colgroups:E,_columnConfs:O,original:T}=t,$="auto"===w,D="scale"===w,M=!$&&!D,F={};O&&O.forEach(e=>{$p(e)||(e.field||e.type)&&e.width&&(F[cy(e)]=e.width)});const R={},I={};if(x){let e=0;n.forEach(t=>{e+=t.renderWidth}),E&&E.forEach(t=>{t.forEach(t=>{if(!t.childNodes||!t.childNodes.length)return;let n=0,r=0;pc.eachTree([t],e=>{e.childNodes&&t.childNodes.length||r++;const i=I[e.id];n+=i||0},{children:"childNodes"});const i=n-r;R[t.id]=i,I[t.id]=pc.floor(i/e*180,2)})}),n.forEach(t=>{const n=t.renderWidth;t.width&&(R[t.id]=n),I[t.id]=pc.floor(n/e*180,2)})}const A=e=>{const t=cy(e),n=F[t];return n?"width:"+lh(n):$?"":D?I[e.id]?"width:"+I[e.id]+"mm":"":R[e.id]?"width:"+lh(R[e.id]):""},P=e=>{const t=cy(e),n=F[t];return n?"width:"+lh(n):$||M?"":D?I[e.id]?"width:"+I[e.id]+"mm":"":R[e.id]?"width:"+lh(R[e.id]):""},L="check-all",N=["vxe-table",`border--${Kb(l)}`,x?"is--print":"",$?"is--auto-width":"",D?"is--scale-width":"",M?"is--default-width":"",C?"is--header":""].filter(e=>e),j=[`<table class="${N.join(" ")}" border="0" cellspacing="0" cellpadding="0">`,`<colgroup>${n.map(e=>`<col style="${A(e)}">`).join("")}</colgroup>`];if(C&&(j.push("<thead>"),S&&!T?E.forEach(n=>{j.push(`<tr>${n.map(n=>{const r=n.headerAlign||n.align||u||d,i=ly(e,n,"showHeaderOverflow",f)?["col--ellipsis"]:[],o=ty(e,t,n);return r&&i.push(`col--${r}`),"checkbox"===n.type?`<th class="${i.join(" ")}" colspan="${n._colSpan}" rowspan="${n._rowSpan}"><div style="${P(n)}"><input type="checkbox" class="${L}" ${m?"checked":""}><span>${o}</span></div></th>`:`<th class="${i.join(" ")}" colspan="${n._colSpan}" rowspan="${n._rowSpan}" title="${o}"><div style="${P(n)}"><span>${md(o,!0)}</span></div></th>`}).join("")}</tr>`)}):j.push(`<tr>${n.map(n=>{const r=n.headerAlign||n.align||u||d,i=ly(e,n,"showHeaderOverflow",f)?["col--ellipsis"]:[],o=ty(e,t,n);return r&&i.push(`col--${r}`),"checkbox"===n.type?`<th class="${i.join(" ")}"><div style="${P(n)}"><input type="checkbox" class="${L}" ${m?"checked":""}><span>${o}</span></div></th>`:`<th class="${i.join(" ")}" title="${o}"><div style="${P(n)}"><span>${md(o,!0)}</span></div></th>`}).join("")}</tr>`),j.push("</thead>")),r.length&&(j.push("<tbody>"),c?r.forEach(t=>{j.push("<tr>"+n.map(n=>{const r=n.align||d,i=ly(e,n,"showOverflow",p)?["col--ellipsis"]:[],o=t[n.id];if(r&&i.push(`col--${r}`),n.treeNode){let e="";return t._hasChild&&(e=`<i class="${t._expand?"vxe-table--tree-fold-icon":"vxe-table--tree-unfold-icon"}"></i>`),i.push("vxe-table--tree-node"),"radio"===n.type?`<td class="${i.join(" ")}" title="${o}"><div style="${P(n)}"><div class="vxe-table--tree-node-wrapper" style="padding-left: ${t._level*y.indent}px"><div class="vxe-table--tree-icon-wrapper">${e}</div><div class="vxe-table--tree-cell"><input type="radio" name="radio_${s}" ${t._radioDisabled?"disabled ":""}${ey(o)?"checked":""}><span>${t._radioLabel}</span></div></div></div></td>`:"checkbox"===n.type?`<td class="${i.join(" ")}" title="${o}"><div style="${P(n)}"><div class="vxe-table--tree-node-wrapper" style="padding-left: ${t._level*y.indent}px"><div class="vxe-table--tree-icon-wrapper">${e}</div><div class="vxe-table--tree-cell"><input type="checkbox" ${t._checkboxDisabled?"disabled ":""}${ey(o)?"checked":""}><span>${t._checkboxLabel}</span></div></div></div></td>`:`<td class="${i.join(" ")}" title="${o}"><div style="${P(n)}"><div class="vxe-table--tree-node-wrapper" style="padding-left: ${t._level*y.indent}px"><div class="vxe-table--tree-icon-wrapper">${e}</div><div class="vxe-table--tree-cell">${o}</div></div></div></td>`}return"radio"===n.type?`<td class="${i.join(" ")}"><div style="${P(n)}"><input type="radio" name="radio_${s}" ${t._radioDisabled?"disabled ":""}${ey(o)?"checked":""}><span>${t._radioLabel}</span></div></td>`:"checkbox"===n.type?`<td class="${i.join(" ")}"><div style="${P(n)}"><input type="checkbox" ${t._checkboxDisabled?"disabled ":""}${ey(o)?"checked":""}><span>${t._checkboxLabel}</span></div></td>`:`<td class="${i.join(" ")}" title="${o}"><div style="${P(n)}">${md(o,!0)}</div></td>`}).join("")+"</tr>")}):r.forEach(t=>{j.push("<tr>"+n.map(n=>{const r=n.id,i=n.align||d,o=ly(e,n,"showOverflow",p)?["col--ellipsis"]:[],a=t[r];let l=1,c=1;if(k){const r=e.getVTRowIndex(t._row),i=e.getVTColumnIndex(n),o=v[`${r}:${i}`];if(o){const{rowspan:e,colspan:t}=o;if(!e||!t)return"";e>1&&(l=e),t>1&&(c=t)}}return i&&o.push(`col--${i}`),"radio"===n.type?`<td class="${o.join(" ")}" rowspan="${l}" colspan="${c}"><div style="${P(n)}"><input type="radio" name="radio_${s}" ${t._radioDisabled?"disabled ":""}${ey(a)?"checked":""}><span>${t._radioLabel}</span></div></td>`:"checkbox"===n.type?`<td class="${o.join(" ")}" rowspan="${l}" colspan="${c}"><div style="${P(n)}"><input type="checkbox" ${t._checkboxDisabled?"disabled ":""}${ey(a)?"checked":""}><span>${t._checkboxLabel}</span></div></td>`:`<td class="${o.join(" ")}" rowspan="${l}" colspan="${c}" title="${a}"><div style="${P(n)}">${md(a,!0)}</div></td>`}).join("")+"</tr>")}),j.push("</tbody>")),_){const{footerTableData:r}=o,i=ry(e,t,r);i.length&&(j.push("<tfoot>"),i.forEach((r,i)=>{j.push(`<tr>${n.map(n=>{const o=n.footerAlign||n.align||h||d,a=ly(e,n,"showOverflow",p)?["col--ellipsis"]:[],s=ny(e,t,r,n);let l=1,c=1;if(k){const t=i,r=e.getVTColumnIndex(n),o=b[`${t}:${r}`];if(o){const{rowspan:e,colspan:t}=o;if(!e||!t)return"";e>1&&(l=e),t>1&&(c=t)}}return o&&a.push(`col--${o}`),`<td class="${a.join(" ")}" rowspan="${l}" colspan="${c}" title="${s}"><div style="${P(n)}">${md(s,!0)}</div></td>`}).join("")}</tr>`)}),j.push("</tfoot>"))}const B=!m&&g?`<script>(function(){var a=document.querySelector(".${L}");if(a){a.indeterminate=true}})()<\/script>`:"";return j.push("</table>",B),$?j.join(""):jb(t,j.join(""))}function dy(e,t,n,r){const i=e;let o=['<?xml version="1.0"?>','<?mso-application progid="Excel.Sheet"?>','<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40">','<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">',"<Version>16.00</Version>","</DocumentProperties>",'<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">',"<WindowHeight>7920</WindowHeight>","<WindowWidth>21570</WindowWidth>","<WindowTopX>32767</WindowTopX>","<WindowTopY>32767</WindowTopY>","<ProtectStructure>False</ProtectStructure>","<ProtectWindows>False</ProtectWindows>","</ExcelWorkbook>",`<Worksheet ss:Name="${t.sheetName}">`,"<Table>",n.map(e=>`<Column ss:Width="${e.renderWidth}"/>`).join("")].join("");if(t.isHeader&&(o+=`<Row>${n.map(n=>`<Cell><Data ss:Type="String">${ty(e,t,n)}</Data></Cell>`).join("")}</Row>`),r.forEach(e=>{o+="<Row>"+n.map(t=>`<Cell><Data ss:Type="String">${e[t.id]}</Data></Cell>`).join("")+"</Row>"}),t.isFooter){const{footerTableData:r}=i,a=ry(e,t,r);a.forEach(r=>{o+=`<Row>${n.map(n=>`<Cell><Data ss:Type="String">${ny(e,t,r,n)}</Data></Cell>`).join("")}</Row>`})}return`${o}</Table></Worksheet></Workbook>`}function hy(e,t,n,r){if(n.length)switch(t.type){case"csv":return ay(e,t,n,r);case"txt":return sy(e,t,n,r);case"html":return uy(e,t,n,r);case"xml":return dy(e,t,n,r)}return""}function py(e,t,n){const{filename:r,type:i,download:o}=t;if(!o){const e=Nb(n,t);return Promise.resolve({type:i,content:n,blob:e})}ad.saveFile&&ad.saveFile({filename:r,type:i,content:n}).then(()=>{!1!==t.message&&ad.modal&&ad.modal.message({content:zb("vxe.table.expSuccess"),status:"success"})})}function fy(e){pc.eachTree(e,e=>{delete e._level,delete e._colSpan,delete e._rowSpan,delete e._children,delete e.childNodes},{children:"children"})}function my(e,t){const n=e.$xeGrid,r=e.$xeGantt,{remote:i,columns:o,colgroups:a,exportMethod:s,afterExportMethod:l}=t;return new Promise(l=>{if(i){const i={options:t,$table:e,$grid:n,$gantt:r};l(s?s(i):i)}else{const n=Jb(e,t);l(e.preventEvent(null,"event.export",{options:t,columns:o,colgroups:a,datas:n},()=>py(e,t,hy(e,t,o,n))))}}).then(i=>(fy(o),t.print||l&&l({status:!0,options:t,$table:e,$grid:n,$gantt:r}),Object.assign({status:!0},i))).catch(()=>{fy(o),t.print||l&&l({status:!1,options:t,$table:e,$grid:n,$gantt:r});const i={status:!1};return Promise.reject(i)})}function gy(e,t){return e.getElementsByTagName(t)}function vy(e){return`#${e}@${pc.uniqueId()}`}function by(e,t){return e.replace(/#\d+@\d+/g,e=>pc.hasOwnProp(t,e)?t[e]:e)}function yy(e,t){const n=by(e,t);return n.replace(/^"+$/g,e=>'"'.repeat(Math.ceil(e.length/2)))}function xy(e,t){const{fieldMaps:n,titleMaps:r}=e;if(!n[t]){const e=r[t];e&&e.field&&(t=e.field)}return t}function wy(e,t,n){const r=t.split(Gb),i=[];let o=[];if(r.length){const t={},a=Date.now();r.forEach(r=>{if(r){const s={};r=r.replace(/("")|(\n)/g,(e,n)=>{const r=vy(a);return t[r]=n?'"':"\n",r}).replace(/"(.*?)"/g,(e,n)=>{const r=vy(a);return t[r]=by(n,t),r});const l=r.split(n);o.length?(l.forEach((e,n)=>{n<o.length&&(s[o[n]]=yy(e.trim(),t))}),i.push(s)):o=l.map(n=>xy(e,yy(n.trim(),t)))}})}return{fields:o,rows:i}}function Cy(e,t){return wy(e,t,",")}function _y(e,t){return wy(e,t,"\t")}function Sy(e,t){const n=new DOMParser,r=n.parseFromString(t,"text/html"),i=gy(r,"body"),o=[],a=[];if(i.length){const t=gy(i[0],"table");if(t.length){const n=gy(t[0],"thead");if(n.length){pc.arrayEach(gy(n[0],"tr"),t=>{pc.arrayEach(gy(t,"th"),t=>{a.push(xy(e,t.textContent||""))})});const r=gy(t[0],"tbody");r.length&&pc.arrayEach(gy(r[0],"tr"),e=>{const t={};pc.arrayEach(gy(e,"td"),(e,n)=>{a[n]&&(t[a[n]]=e.textContent||"")}),o.push(t)})}}}return{fields:a,rows:o}}function ky(e,t){const n=new DOMParser,r=n.parseFromString(t,"application/xml"),i=gy(r,"Worksheet"),o=[],a=[];if(i.length){const t=gy(i[0],"Table");if(t.length){const n=gy(t[0],"Row");n.length&&(pc.arrayEach(gy(n[0],"Cell"),t=>{a.push(xy(e,t.textContent||""))}),pc.arrayEach(n,(e,t)=>{if(t){const t={},n=gy(e,"Cell");pc.arrayEach(n,(e,n)=>{a[n]&&(t[a[n]]=e.textContent)}),o.push(t)}}))}}return{fields:a,rows:o}}function Ey(e,t,n){const r=e,{tableFullColumn:i,_importResolve:o,_importReject:a}=r;let s={fields:[],rows:[]};const l={},c={};i.forEach(t=>{const n=t.field,r=e.getHeaderCellLabel(t);n&&(l[n]=t),r&&(c[r]=t)});const u={fieldMaps:l,titleMaps:c};switch(n.type){case"csv":s=Cy(u,t);break;case"txt":s=_y(u,t);break;case"html":s=Sy(u,t);break;case"xml":s=ky(u,t);break}const{fields:d,rows:h}=s,p=d.some(e=>l[e]||c[e]);p?e.createData(h).then(t=>{let r;return r="insert"===n.mode||"insertBottom"===n.mode?e.insertAt(t,-1):"insertTop"===n.mode?e.insert(t):e.reloadData(t),!1!==n.message&&(ad.modal||Vb("vxe.error.reqModule",["Modal"]),ad.modal.message({content:zb("vxe.table.impSuccess",[h.length]),status:"success"})),r.then(()=>{o&&o({status:!0})})}):!1!==n.message&&(ad.modal||Vb("vxe.error.reqModule",["Modal"]),ad.modal.message({content:zb("vxe.error.impFields"),status:"error"}),a&&a({status:!1,msg:"field mismatching"}))}function Oy(e,t,n){const r=e,i=e.computeImportOpts,{importMethod:o,afterImportMethod:a}=n,{type:s,filename:l}=ud(t);if(!o&&!pc.includes(pc.keys(i._typeMaps),s)){!1!==n.message&&(ad.modal||Vb("vxe.error.reqModule",["Modal"]),ad.modal.message({content:zb("vxe.error.notType",[s]),status:"error"}));const e={status:!1,msg:"type error"};return Promise.reject(e)}const c=new Promise((i,a)=>{const c=t=>{i(t),e._importResolve=null,e._importReject=null},u=t=>{a(t),e._importResolve=null,e._importReject=null};if(e._importResolve=c,e._importReject=u,window.FileReader){const i=Object.assign({mode:"insertTop"},n,{type:s,filename:l});if(i.remote)o?Promise.resolve(o({file:t,options:i,$table:e})).then(()=>{c({status:!0})}).catch(()=>{c({status:!0})}):c({status:!0});else{const{tableFullColumn:n}=r;e.preventEvent(null,"event.import",{file:t,options:i,columns:n},()=>{const n=new FileReader;n.onerror=()=>{Vb("vxe.error.notType",[s]),u({status:!1,msg:"reading file error"})},n.onload=t=>{Ey(e,t.target.result,i)},n.readAsText(t,i.encoding||"UTF-8")})}}else Vb("vxe.error.notExp"),c({status:!1,msg:"unsupported browser"})});return c.then(()=>{a&&a({status:!0,options:n,$table:e})}).catch(t=>(a&&a({status:!1,options:n,$table:e}),Promise.reject(t)))}function Ty(){return ad.modal?ad.modal.close("VXE_EXPORT_MODAL"):Promise.resolve()}function $y(e,t,n){return n.some(e=>{if($p(e))return t.id===e.id;if(pc.isString(e))return t.field===e;{const n=e.id||e.colId,r=e.type,i=e.field;if(n)return t.id===n;if(i&&r)return t.field===i&&t.type===r;if(i)return t.field===i;if(r)return t.type===r}return!1})}function Dy(e,t,n,r,i,o){const{field:a}=t;return!i[a]&&(n?!!r[a]:!!o[a]||(e.original?!!a:Ub(t)))}function My(e,t,n){const r=e,i=e,o=e,a=e.$xeGrid,s=e.$xeGantt,l=a||s,{treeConfig:c,showHeader:u,showFooter:d}=r,{initStore:h,isGroup:p,rowGroupList:f,footerTableData:m,exportStore:g,exportParams:v}=i,{collectColumn:b,mergeBodyList:y,mergeFooterList:x}=o,w=e.computeExportOpts,C=!!c,_=f.length>0,S=e.computePrintOpts,k=e.getCheckboxRecords(),E=l?l.computeProxyOpts:{},O=!!m.length,T=!(!y.length&&!x.length),$=Object.assign({message:!0,isHeader:u,isTitle:u,isFooter:d,isColgroup:p,isMerge:T,useStyle:!0,current:"current",modes:(E.ajax&&E.ajax.queryAll?["all"]:[]).concat(["current","selected","empty"])},t);pc.isBoolean($.isAllExpand)&&(Bb("vxe.error.delProp",["isAllExpand","isTreeAllExpanded"]),$.isTreeAllExpanded=$.isAllExpand);const D=n?[]:$.types||pc.keys(w._typeMaps),M=$.modes||[],F=(n?S:w).checkMethod,R=b.slice(0),{columns:I,excludeFields:A,includeFields:P,extraFields:L}=$,N=D.map(e=>({value:e,label:zb(`vxe.export.types.${e}`)})),j=M.map(e=>e&&e.value?{value:e.value,label:e.label||e.value}:{value:e,label:zb(`vxe.export.modes.${e}`)}),B={};A&&A.length&&A.forEach(e=>{B[e]=1});const V={};P&&P.length&&P.forEach(e=>{V[e]=1});const z={};L&&L.forEach(e=>{z[e]=1}),pc.eachTree(R,(t,n,r,i,o)=>{const a=t.children&&t.children.length>0;let s=!1;const l=z[t.field];s=I?$y($,t,I):A||P?Dy($,t,P,V,B,z):!!l||t.visible&&(a||Ub(t)),t.checked=s,t.halfChecked=!1,t.disabled=o&&o.disabled||!!F&&!F({$table:e,column:t})}),g.columns=R,g.typeList=N,g.modeList=j,g.hasFooter=O,g.hasMerge=T,g.hasTree=C,g.hasRowGroup=_,g.isPrint=!!n,g.hasColgroup=p,g.visible=!0,Object.assign(v,{mode:k.length?"selected":"current"},$);const{filename:H,sheetName:W,mode:q,type:G}=v;return H&&(pc.isFunction(H)?v.filename=H({options:$,$table:e,$grid:a,$gantt:s}):v.filename=`${H}`),W&&(pc.isFunction(W)?v.sheetName=W({options:$,$table:e,$grid:a,$gantt:s}):v.sheetName=`${W}`),j.some(e=>e.value===q)||(v.mode=j.length?j[0].value:""),N.some(e=>e.value===G)||(v.type=N.length?N[0].value:""),v.widthMode||(v.widthMode=""),h.export=!0,e.$nextTick()}const Fy=e=>{const t=[];return e.forEach(e=>{e.childNodes&&e.childNodes.length?(t.push(e),t.push(...Fy(e.childNodes))):t.push(e)}),t},Ry=e=>{let t=1;const n=(e,r)=>{if(r&&(e._level=r._level+1,t<e._level&&(t=e._level)),e.childNodes&&e.childNodes.length){let t=0;e.childNodes.forEach(r=>{n(r,e),t+=r._colSpan}),e._colSpan=t}else e._colSpan=1};e.forEach(e=>{e._level=1,n(e)});const r=[];for(let o=0;o<t;o++)r.push([]);const i=Fy(e);return i.forEach(e=>{e.childNodes&&e.childNodes.length?e._rowSpan=1:e._rowSpan=t-e._level+1,r[e._level-1].push(e)}),r},Iy={methods:{_exportData(e){const t=this,n=t,r=t,i=t,o=t.$xeGrid,a=t.$xeGantt,s=o||a,{treeConfig:l,showHeader:c,showFooter:u}=n,{isGroup:d}=r,{tableFullColumn:h,afterFullData:p,afterTreeFullData:f,collectColumn:m,mergeBodyList:g,mergeFooterList:v}=i,b=t.computeExportOpts,y=t.computeTreeOpts,x=s?s.computeProxyOpts:{},w=!(!g.length&&!v.length),C=Object.assign({message:!0,isHeader:c,isTitle:c,isFooter:u,isColgroup:d,isMerge:w,useStyle:!0,current:"current",modes:(x.ajax&&x.ajax.queryAll?["all"]:[]).concat(["current","selected","empty"]),download:!0,type:"csv"},b,e);pc.isBoolean(C.isAllExpand)&&(Bb("vxe.error.delProp",["isAllExpand","isTreeAllExpanded"]),C.isTreeAllExpanded=C.isAllExpand);let{filename:_,sheetName:S,type:k,mode:E,columns:O,columnFilterMethod:T,beforeExportMethod:$,includeFields:D,excludeFields:M,extraFields:F}=C,R=[];const I=t.getCheckboxRecords();E||(E=I.length?"selected":"current");const A={};M&&M.length&&M.forEach(e=>{A[e]=1});const P={};D&&D.length&&D.forEach(e=>{P[e]=1});const L={};F&&F.forEach(e=>{L[e]=1});let N=!1,j=[];const B=C._columns;B?(N=!0,j=pc.searchTree(B,()=>!0,{children:"_children",mapChildren:"childNodes",original:!0})):O?(N=!0,j=pc.searchTree(O,()=>!0,{children:"children",mapChildren:"childNodes",original:!0})):j=pc.searchTree(m,e=>{const t=e.children&&e.children.length>0;let n=!1;const r=L[e.field];return n=O?$y(C,e,O):M||D?Dy(C,e,D,P,A,L):!!r||e.visible&&(t||Ub(e)),n},{children:"children",mapChildren:"childNodes",original:!0});const V=Object.assign({},C,{filename:"",sheetName:"",_columnConfs:O});N||T||(T=({column:e})=>Dy(V,e,D,P,A,L),V.columnFilterMethod=T),j?(V._isCustomColumn=!0,R=pc.searchTree(pc.mapTree(j,e=>{let n;if(e){if($p(e))n=e;else if(pc.isString(e))n=t.getColumnByField(e);else{const r=e.id||e.colId,i=e.type,o=e.field;r?n=t.getColumnById(r):o&&i?n=h.find(e=>e.field===o&&e.type===i):o?n=t.getColumnByField(o):i&&(n=h.find(e=>e.type===i))}return n||{}}},{children:"childNodes",mapChildren:"_children"}),(e,n)=>$p(e)&&(!T||T({$table:t,$grid:o,$gantt:a,column:e,$columnIndex:n})),{children:"_children",mapChildren:"childNodes",original:!0})):R=pc.searchTree(d?m:h,(e,n)=>e.visible&&(!T||T({$table:t,$grid:o,$gantt:a,column:e,$columnIndex:n})),{children:"children",mapChildren:"childNodes",original:!0});const z=[];if(pc.eachTree(R,e=>{const t=e.children&&e.children.length;t||z.push(e)},{children:"childNodes"}),V.columns=z,V.colgroups=Ry(R),_&&(pc.isFunction(_)?V.filename=_({options:C,$table:t,$grid:o,$gantt:a}):V.filename=`${_}`),V.filename||(V.filename=zb(V.original?"vxe.table.expOriginFilename":"vxe.table.expFilename",[pc.toDateString(Date.now(),"yyyyMMddHHmmss")])),S&&(pc.isFunction(S)?V.sheetName=S({options:C,$table:t,$grid:o,$gantt:a}):V.sheetName=`${S}`),V.sheetName||(V.sheetName=document.title||""),!V.exportMethod&&!pc.includes(pc.keys(b._typeMaps),k)){Vb("vxe.error.notType",[k]),["xlsx","pdf"].includes(k)&&Bb("vxe.error.reqPlugin",[3,"plugin-export-xlsx"]);const e={status:!1,msg:"type error"};return Promise.reject(e)}if(!V.print&&$){const e=$({options:V,$table:t,$grid:o,$gantt:a});if(pc.isBoolean(e)){if(!e){const e={status:!1,msg:"before prevent"};return Promise.reject(e)}}else Bb("vxe.error.returnErr",["beforeExportMethod","boolean",e])}if(V.data)V._isCustomData=!0;else if(V.data=[],"selected"===E)["html","pdf"].indexOf(k)>-1&&l?V.data=pc.searchTree(t.getTableData().fullData,e=>t.findRowIndexOf(I,e)>-1,Object.assign({},y,{data:"_row"})):V.data=I;else if("all"===E){if(s||Vb("vxe.error.errProp",["all","mode=current,selected"]),s&&!V.remote){const e=s.reactData,n=s.computeProxyOpts,{sortData:r}=e,{beforeQueryAll:i,afterQueryAll:l,ajax:c={}}=n,u=n.response||n.props||{},d=c.beforeQueryAll,h=c.queryAll,p=c.afterQueryAll,f=c.queryAllSuccess,m=c.queryAllError;if(h||Vb("vxe.error.notFunc",["proxy-config.ajax.queryAll"]),h){const n={$table:t,$grid:o,$gantt:a,sort:r.length?r[0]:{},sorts:r,filters:e.filterData,form:e.formData,options:V},s=()=>Promise.resolve((i||h)(n)).then(e=>{if(p)p(Object.assign(Object.assign({},n),{response:e,status:"success"}));else{const r=u.list;let i=[];r?i=pc.isFunction(r)?r({data:e,$table:t,$grid:o,$gantt:a}):pc.isArray(e)?e:pc.get(e,r):pc.isArray(e)&&(i=e),V.data=i,l&&l(Object.assign(Object.assign({},n),{response:e}))}return f&&f(Object.assign(Object.assign({},n),{response:e})),my(t,V)}).catch(e=>{p&&p(Object.assign(Object.assign({},n),{response:e,status:"error"})),m&&m(Object.assign(Object.assign({},n),{response:e}))});return d?Promise.resolve(d(n)).then(e=>{if(!1!==e)return s()}):s()}}}else"current"===E&&(V.data=l?f:p);return my(t,V)},_importByFile(e,t){const n=this,r=Object.assign({},t),{beforeImportMethod:i}=r;if(i){const e=i({options:r,$table:n});if(pc.isBoolean(e)){if(!e){const e={status:!1,mas:"before prevent"};return Promise.reject(e)}}else Bb("vxe.error.returnErr",["beforeImportMethod","boolean",e])}return Oy(n,e,r)},_importData(e){const t=this,n=t.computeImportOpts,r=Object.assign({types:pc.keys(n._typeMaps)},n,e),{beforeImportMethod:i,afterImportMethod:o}=r;if(i){const e=i({options:r,$table:t});if(pc.isBoolean(e)){if(!e){const e={status:!1,mas:"before prevent"};return Promise.reject(e)}}else Bb("vxe.error.returnErr",["beforeImportMethod","boolean",e])}return ad.readFile(r).catch(e=>(o&&o({status:!1,options:r,$table:t}),Promise.reject(e))).then(e=>{const{file:n}=e;return Oy(t,n,r)})},_saveFile(e){return ad.saveFile(e)},_readFile(e){return ad.readFile(e)},_print(e){const t=this,n=t.$xeGrid,r=t.$xeGantt,i=t.computePrintOpts,o=Object.assign({original:!1},i,e,{type:"html",download:!1,remote:!1,print:!0}),{sheetName:a}=o;let s="";a&&(s=pc.isFunction(a)?a({options:o,$table:t,$grid:n,$gantt:r}):`${a}`),s||(s=document.title||"");const l=o.beforePrintMethod,c=o.printMethod,u=o.html||o.content;return new Promise((e,i)=>{if(ad.print)e(u?ad.print({title:s,html:u,customStyle:o.style,beforeMethod:l?({html:e})=>l({html:e,content:e,options:o,$table:t,$grid:n,$gantt:r}):void 0,beforePrintMethod:l?({html:e})=>l({html:e,content:e,options:o,$table:t,$grid:n,$gantt:r}):void 0,printMethod:c?({html:e})=>c({html:e,content:e,options:o,$table:t,$grid:n,$gantt:r}):void 0}):t.exportData(o).then(({content:e})=>ad.print({title:s,html:e,customStyle:o.style,beforeMethod:l?({html:e})=>l({html:e,content:e,options:o,$table:t,$grid:n,$gantt:r}):void 0,beforePrintMethod:l?({html:e})=>l({html:e,content:e,options:o,$table:t,$grid:n,$gantt:r}):void 0,printMethod:c?({html:e})=>c({html:e,content:e,options:o,$table:t,$grid:n,$gantt:r}):void 0})));else{Vb("vxe.error.reqComp",["vxe-print"]);const e={status:!1,msg:"print not exist"};i(e)}})},_getPrintHtml(e){const t=this,n=t.computePrintOpts,r=Object.assign({original:!1},n,e,{type:"html",download:!1,remote:!1,print:!0});return t.exportData(r).then(({content:e})=>({html:e}))},_closeImport(){return ad.modal?ad.modal.close("VXE_IMPORT_MODAL"):Promise.resolve()},_openImport(e){const t=this,n=t,r=t,{treeConfig:i,importConfig:o}=n,{initStore:a,importStore:s,importParams:l}=r,c=t.computeImportOpts,u=Object.assign({mode:"insertTop",message:!0,types:pc.keys(c._typeMaps),modes:["insertTop","covering"]},c,e),d=u.types||[],h=u.modes||[],p=!!i;if(p)return void(u.message&&ad.modal.message({content:zb("vxe.error.treeNotImp"),status:"error"}));o||Vb("vxe.error.reqProp",["import-config"]);const f=d.map(e=>({value:e,label:zb(`vxe.export.types.${e}`)})),m=h.map(e=>e&&e.value?{value:e.value,label:e.label||e.value}:{value:e,label:zb(`vxe.import.modes.${e}`)});Object.assign(s,{file:null,type:"",filename:"",modeList:m,typeList:f,visible:!0}),Object.assign(l,u),m.some(e=>e.value===l.mode)||(l.mode=m[0].value),a.import=!0},_closeExport:Ty,_openExport(e){const t=this,n=t,r=t.computeExportOpts,i=Object.assign({message:!0,types:pc.keys(r._typeMaps)},r,e);return n.exportConfig||Vb("vxe.error.reqProp",["export-config"]),My(t,i)},_closePrint:Ty,_openPrint(e){const t=this,n=t,r=t.computePrintOpts,i=Object.assign({message:!0},r,e);return n.printConfig||Vb("vxe.error.reqProp",["print-config"]),My(t,i,!0)}}};function Ay(e,t,n,r,i,o,a){const s=e,l=e,c=e,{showOverflow:u}=s,{fullAllDataRowIdData:d,isResizeCellHeight:h}=c,p=e.computeRowOpts,f=e.computeCellOpts,m=e.computeDefaultRowHeight,{row:g}=n;let v=0,b=[],y=0;const x=a>0,{scrollYLoad:w}=l,{afterFullData:C}=c;if(y=x?o+a:i.height-o+Math.abs(a),w){const t=e.getVTRowIndex(g),n=h||f.height||p.height;if(!n&&u)b=x?C.slice(t,t+Math.ceil(y/m)):C.slice(t-Math.floor(y/m),t+1);else if(x)for(let r=t;r<C.length;r++){const t=C[r],n=e.getRowid(t),i=d[n]||{};if(v+=i.resizeHeight||f.height||p.height||i.height||m,b.push(t),v>y)return b}else for(let r=t;r>=0;r--){const t=C[r],n=e.getRowid(t),i=d[n]||{};if(v+=i.resizeHeight||f.height||p.height||i.height||m,b.push(t),v>y)return b}}else{const t=x?"next":"previous";while(r&&v<y){const n=e.getRowNode(r);n&&(b.push(n.item),v+=r.offsetHeight,r=r[`${t}ElementSibling`])}}return b}function Py(e,t,n,r,i,o,a){const s=e,{afterFullData:l,visibleColumn:c}=s,u=Object.assign({},n),{row:d,column:h}=u,p=e.getVTRowIndex(d),f=e.getVTColumnIndex(h),m=e.$refs.refTableBody,g=m?m.$el:null,v=g?g.clientWidth:0;let b=r||o||h.renderWidth<v;return r&&f>=0||o&&f<=c.length-1?b=!1:t.preventDefault(),i&&p>0?(u.rowIndex=p-1,u.row=l[u.rowIndex]):a&&p<l.length-1?(u.rowIndex=p+1,u.row=l[u.rowIndex]):r&&f?(u.columnIndex=f-1,u.column=c[u.columnIndex]):o&&f<c.length-1&&(u.columnIndex=f+1,u.column=c[u.columnIndex]),e.scrollToRow(u.row,u.column,{colAlign:b}).then(()=>{u.cell=e.getCellElement(u.row,u.column),e.handleSelected(u,t)}),u}function Ly(e,t,n){const r=e,{elemStore:i}=r,o=Ep(i["main-body-scroll"]),a=Ep(i["left-body-scroll"]),s=Ep(i["right-body-scroll"]),{column:l,cell:c}=n;if("checkbox"===l.type){let r=o;if(a&&"left"===l.fixed?r=a:s&&"right"===l.fixed&&(r=s),!r)return;const i=r.getBoundingClientRect(),u=e.$refs.refElem,d=t.clientX,h=t.clientY,p=r.querySelector(".vxe-table--checkbox-range"),f=c.parentNode,m=e.getCheckboxRecords();let g=[];const v=1,b=t.clientY-i.y+r.scrollTop,y=t.clientX-i.x+r.scrollLeft,x=r.scrollTop,w=f.offsetHeight,C=f.getBoundingClientRect(),_=h-C.y;let S=null,k=!1,E=1;const O=(t,n)=>{e.dispatchEvent(`checkbox-range-${t}`,{records:()=>e.getCheckboxRecords(),reserves:()=>e.getCheckboxReserveRecords()},n)},T=t=>{const{clientX:i,clientY:o}=t,a=i-d,s=o-h+(r.scrollTop-x);let l=Math.abs(s),c=Math.abs(a),u=b,w=y;s<v?(u+=s,u<v&&(u=v,l=b)):l=Math.min(l,r.scrollHeight-b-v),a<v?(w+=a,c>y&&(w=v,c=y)):c=Math.min(c,r.clientWidth-y-v),p.style.height=`${l}px`,p.style.width=`${c}px`,p.style.left=`${w}px`,p.style.top=`${u}px`,p.style.display="block";const S=Ay(e,t,n,f,C,_,s<v?-l:l);if(l>10&&S.length!==g.length){const n=sh(t);g=S,n?S.forEach(t=>{e.handleBatchSelectRows([t],-1===m.indexOf(t))}):(e.setAllCheckboxRow(!1),e.handleCheckedCheckboxRow(S,!0,!1)),O("change",t)}},$=()=>{clearTimeout(S),S=null},D=t=>{$(),S=setTimeout(()=>{if(S){const{scrollLeft:n,scrollTop:i,clientHeight:o,scrollHeight:a}=r,s=Math.ceil(50*E/w);k?i+o<a?(e.scrollTo(n,i+s),D(t),T(t)):$():i?(e.scrollTo(n,i-s),D(t),T(t)):$()}},50)};ah(u,"drag--range"),document.onmousemove=e=>{e.preventDefault(),e.stopPropagation();const{clientY:t}=e,{boundingTop:n}=bh(r);t<n?(k=!1,E=n-t,S||D(e)):t>n+r.clientHeight?(k=!0,E=t-n-r.clientHeight,S||D(e)):S&&$(),T(e)},document.onmouseup=e=>{$(),oh(u,"drag--range"),p.removeAttribute("style"),document.onmousemove=null,document.onmouseup=null,O("end",e)},O("start",t)}}const Ny={methods:{moveTabSelected(e,t,n){const r=this,i=r,o=r,{editConfig:a}=i,{afterFullData:s,visibleColumn:l}=o,c=r.computeEditOpts,u=r.computeRowOpts,d=r.computeCurrentRowOpts,h=r.computeColumnOpts,p=r.computeCurrentColumnOpts;let f,m,g;const v=Object.assign({},e),b=r.getVTRowIndex(v.row),y=r.getVTColumnIndex(v.column);n.preventDefault(),t?y<=0?b>0&&(m=b-1,f=s[m],g=l.length-1):g=y-1:y>=l.length-1?b<s.length-1&&(m=b+1,f=s[m],g=0):g=y+1;const x=l[g];x&&(f?(v.rowIndex=m,v.row=f):v.rowIndex=b,v.columnIndex=g,v.column=x,v.cell=r.getCellElement(v.row,v.column),u.isCurrent&&d.isFollowSelected&&r.triggerCurrentRowEvent(n,v),h.isCurrent&&p.isFollowSelected&&r.triggerCurrentColumnEvent(n,v),a?"click"!==c.trigger&&"dblclick"!==c.trigger||("row"===c.mode?r.handleEdit(v,n):r.scrollToRow(v.row,v.column).then(()=>{r.handleSelected(v,n)})):r.scrollToRow(v.row,v.column).then(()=>{r.handleSelected(v,n)}))},moveCurrentRow(e,t,n){const r=this,i=r,o=r,{treeConfig:a}=i,{afterFullData:s,currentRow:l}=o,c=r.computeTreeOpts,u=c.children||c.childrenField;let d;if(l)if(a){const{index:n,items:r}=pc.findTree(s,e=>e===l,{children:u});e&&n>0?d=r[n-1]:t&&n<r.length-1&&(d=r[n+1])}else{const n=r.getVTRowIndex(l);e&&n>0?d=s[n-1]:t&&n<s.length-1&&(d=s[n+1])}else d=s[0];if(d){n.preventDefault();const e={$table:r,row:d,rowIndex:r.getRowIndex(d),$rowIndex:r.getVMRowIndex(d)};r.scrollToRow(d).then(()=>r.triggerCurrentRowEvent(n,e))}},moveCurrentColumn(e,t,n){const r=this,i=r,{currentCol:o,visibleColumn:a}=i;let s=null;if(o){const n=r.getVTColumnIndex(o);e&&n>0?s=a[n-1]:t&&n<a.length-1&&(s=a[n+1])}else s=a[0];if(s){n.preventDefault();const e={$table:r,column:s,columnIndex:r.getColumnIndex(s),$columnIndex:r.getVMColumnIndex(s)};r.scrollToColumn(s).then(()=>r.triggerCurrentColumnEvent(n,e))}},moveArrowSelected(e,t,n,r,i,o){const a=this,s=a,{highlightCurrentRow:l,highlightCurrentColumn:c}=s,u=a.computeRowOpts,d=a.computeCurrentRowOpts,h=a.computeColumnOpts,p=a.computeCurrentColumnOpts,f=Py(a,o,e,t,n,r,i);(u.isCurrent||l)&&(d.isFollowSelected?a.triggerCurrentRowEvent(o,f):(n||i)&&(u.isCurrent||l)&&a.moveCurrentRow(n,i,o)),(h.isCurrent||c)&&(p.isFollowSelected?a.triggerCurrentColumnEvent(o,f):(t||r)&&(h.isCurrent||c)&&a.moveCurrentColumn(t,r,o))},moveEnterSelected(e,t,n,r,i,o){const a=this,s=a,{highlightCurrentRow:l,highlightCurrentColumn:c}=s,u=a.computeRowOpts,d=a.computeCurrentRowOpts,h=a.computeColumnOpts,p=a.computeCurrentColumnOpts,f=Py(a,o,e,t,n,r,i);(u.isCurrent||l)&&d.isFollowSelected&&a.triggerCurrentRowEvent(o,f),(h.isCurrent||c)&&p.isFollowSelected&&a.triggerCurrentColumnEvent(o,f)},moveSelected(e,t,n,r,i,o){const a=this;Py(a,o,e,t,n,r,i)},handleCellMousedownEvent(e,t){const n=this,r=n,{editConfig:i,checkboxConfig:o,mouseConfig:a}=r,s=n.computeCheckboxOpts,l=n.computeMouseOpts,c=n.computeEditOpts;if(a&&l.area&&n.triggerClAreaMnEvent)return n.triggerClAreaMnEvent(e,t);o&&s.range&&Ly(n,e,t),a&&l.selected&&(i&&"cell"!==c.mode||n.handleSelected(t,e))}}},{warnLog:jy,errLog:By}=Ih("table"),{getConfig:Vy,validators:zy}=ad;class Hy{constructor(e){Object.defineProperty(this,"$options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.assign(this,{$options:e,required:e.required,min:e.min,max:e.max,type:e.type,pattern:e.pattern,validator:e.validator,trigger:e.trigger,maxWidth:e.maxWidth})}get content(){return fd(this.$options.content||this.$options.message)}get message(){return this.content}}function Wy(e,t){return!(e&&!(pc.isRegExp(e)?e:new RegExp(e)).test(t))}function qy(e,t){return!(!pc.eqNull(e)&&t>pc.toNumber(e))}function Gy(e,t){return!(!pc.eqNull(e)&&t<pc.toNumber(e))}function Yy(e,t,n){const{type:r,min:i,max:o,pattern:a}=e,s="array"===r,l="number"===r,c="string"===r,u=`${t}`;if(!Wy(a,u))return!1;if(s){if(!pc.isArray(t))return!1;if(n&&!t.length)return!1;if(!Gy(i,t.length))return!1;if(!qy(o,t.length))return!1}else if(l){const e=Number(t);if(isNaN(e))return!1;if(!Gy(i,e))return!1;if(!qy(o,e))return!1}else{if(c&&!pc.isString(t))return!1;if(n&&!u)return!1;if(!Gy(i,u.length))return!1;if(!qy(o,u.length))return!1}return!0}function Uy(e,t,n){const{required:r,field:i}=e,o=i?pc.get(t,i):n,a=pc.isArray(o)?!o.length:gd(o);if(r){if(a)return!1;if(!Yy(e,o,r))return!1}else if(!a&&!Yy(e,o,r))return!1;return!0}function Ky(e,t){return new Promise(n=>{const r=e.computeValidOpts;!1===r.autoPos?(e.dispatchEvent("valid-error",t,null),n()):e.handleEdit(t,{type:"valid-error",trigger:"call"}).then(()=>{setTimeout(()=>{n(e.showValidTooltip(t))},10)})})}function Xy(e,t){const n=e.computeValidOpts;if("single"===n.msgMode){const e=Object.keys(t),n={};if(e.length){const r=e[0];n[r]=t[r]}return n}return t}function Zy(e,t,n,r,i){const o=e,a=e,s=e,l={},{editRules:c,treeConfig:u}=o,{isRowGroupStatus:d}=a,{afterFullData:h,pendingRowMaps:p,removeRowMaps:f}=s,m=e.computeTreeOpts,g=e.computeAggregateOpts,v=e.computeValidOpts;let b;!0===t?b=h:t&&(pc.isFunction(t)?r=t:b=pc.isArray(t)?t:[t]),b||(b=e.getInsertRecords().concat(e.getUpdateRecords()));const y=[];s._lastCallTime=Date.now(),s.validRuleErr=!1,e.clearValidate();const x={};if(c){const t=n&&n.length?n:e.getColumns(),o=n=>{const r=np(e,n);if(!f[r]&&!p[r]&&!e.isAggregateRecord(n)&&(i||!s.validRuleErr)){const r=[];t.forEach(t=>{const o=pc.isString(t)?t:t.field;!i&&s.validRuleErr||!pc.has(c,o)||r.push(e.validCellRules("all",n,t).catch(({rule:r,rules:a})=>{const c={rule:r,rules:a,rowIndex:e.getRowIndex(n),row:n,columnIndex:e.getColumnIndex(t),column:t,field:o,$table:e};if(l[o]||(l[o]=[]),x[`${np(e,n)}:${t.id}`]={column:t,row:n,rule:r,content:r.content},l[o].push(c),!i)return s.validRuleErr=!0,Promise.reject(c)}))}),y.push(Promise.all(r))}};if(d)pc.eachTree(b,o,{children:g.mapChildrenField});else if(u){const e=m.children||m.childrenField;pc.eachTree(b,o,{children:e})}else b.forEach(o);return Promise.all(y).then(()=>{const t=Object.keys(l);return a.validErrorMaps=Xy(e,x),e.$nextTick().then(()=>{if(t.length)return Promise.reject(l[t[0]][0]);r&&r()})}).catch(t=>new Promise((n,i)=>{const o=()=>{e.$nextTick(()=>{r?(r(l),n()):"obsolete"===Vy().validToReject?i(l):n(l)})},a=()=>{t.cell=e.getCellElement(t.row,t.column),Sh(t.cell),Ky(e,t).then(o)};if(!1===v.autoPos)o();else{const n=t.row,r=t.column;e.scrollToRow(n,r).then(a)}}))}return a.validErrorMaps={},e.$nextTick().then(()=>{r&&r()})}const Qy={methods:{_fullValidate(e,t){const n=this;return pc.isFunction(t)&&jy("vxe.error.notValidators",["fullValidate(rows, callback)","fullValidate(rows)"]),Zy(n,e,null,t,!0)},_validate(e,t){const n=this;return pc.isFunction(t)&&jy("vxe.error.notValidators",["validate(rows, callback)","validate(rows)"]),Zy(n,e,null,t)},_fullValidateField(e,t){const n=this,r=(pc.isArray(t)?t:t?[t]:[]).map(e=>pp(this,e));return r.length?Zy(n,e,r,null,!0):n.$nextTick()},_validateField(e,t){const n=this,r=(pc.isArray(t)?t:t?[t]:[]).map(e=>pp(this,e));return r.length?Zy(n,e,r,null):n.$nextTick()},hasCellRules(e,t,n){const{editRules:r}=this,{field:i}=n;if(i&&r){const t=n.rules?n.rules:pc.get(r,i);return t&&pc.find(t,t=>"all"===e||!t.trigger||e===t.trigger)}return!1},validCellRules(e,t,n,r){const i=this,o=i,a=i,{editRules:s}=o,{field:l}=n,c=[],u=[];if(l&&s){const o=n.rules?n.rules:pc.get(s,l);if(o){const s=pc.isUndefined(r)?pc.get(t,l):r;o.forEach(r=>{const{trigger:l,validator:d}=r;if("all"===e||!l||e===l)if(d){const e={cellValue:s,rule:r,rules:o,row:t,rowIndex:i.getRowIndex(t),column:n,columnIndex:i.getColumnIndex(n),field:n.field,$table:i};let h;if(pc.isString(d)){const t=zy.get(d);if(t){const n=t.tableCellValidatorMethod||t.cellValidatorMethod;n?h=n(e):By("vxe.error.notValidators",[d])}else By("vxe.error.notValidators",[d])}else h=d(e);h&&(pc.isError(h)?(a.validRuleErr=!0,c.push(new Hy({type:"custom",trigger:l,content:h.message,rule:new Hy(r)}))):h.catch&&u.push(h.catch(e=>{a.validRuleErr=!0,c.push(new Hy({type:"custom",trigger:l,content:e&&e.message?e.message:r.content||r.message,rule:new Hy(r)}))})))}else Uy(r,t,s)||(a.validRuleErr=!0,c.push(new Hy(r)))})}}return Promise.all(u).then(()=>{if(c.length){const e={rules:c,rule:c[0]};return Promise.reject(e)}})},_clearValidate(e,t){const n=this,r=n,{validErrorMaps:i}=r,o=n.$refs.refValidTooltip,a=n.computeValidOpts,s=pc.isArray(e)?e:e?[e]:[],l=(pc.isArray(t)?t:t?[t]:[]).map(e=>pp(n,e));let c={};if(o&&o.reactData.visible&&o.close(),"single"===a.msgMode)return r.validErrorMaps={},n.$nextTick();if(s.length&&l.length)c=Object.assign({},i),s.forEach(e=>{l.forEach(t=>{const r=`${np(n,e)}:${t.id}`;c[r]&&delete c[r]})});else if(s.length){const e=s.map(e=>`${np(n,e)}`);pc.each(i,(t,n)=>{e.indexOf(n.split(":")[0])>-1&&(c[n]=t)})}else if(l.length){const e=l.map(e=>`${e.id}`);pc.each(i,(t,n)=>{e.indexOf(n.split(":")[1])>-1&&(c[n]=t)})}return r.validErrorMaps=c,n.$nextTick()},triggerValidate(e){const t=this,n=t,r=t,{editConfig:i,editRules:o}=n,{editStore:a}=r,{actived:s}=a,l=t.computeEditOpts,c=t.computeValidOpts;if(o&&"single"===c.msgMode&&(r.validErrorMaps={}),i&&o&&s.row){const{row:n,column:r,cell:i}=s.args;if(t.hasCellRules(e,n,r))return t.validCellRules(e,n,r).then(()=>{"row"===l.mode&&t.clearValidate(n,r)}).catch(({rule:o})=>{if(!o.trigger||e===o.trigger){const e={rule:o,row:n,column:r,cell:i};return t.showValidTooltip(e),Promise.reject(e)}return Promise.resolve()})}return Promise.resolve()},showValidTooltip(e){const t=this,n=t,r=t,{height:i}=n,{tableData:o,validStore:a,validErrorMaps:s}=r,{rule:l,row:c,column:u,cell:d}=e,h=t.computeValidOpts,p=t.$refs.refValidTooltip,f=l.content;return a.visible=!0,"single"===h.msgMode?r.validErrorMaps={[`${np(t,c)}:${u.id}`]:{column:u,row:c,rule:l,content:f}}:r.validErrorMaps=Object.assign({},s,{[`${np(t,c)}:${u.id}`]:{column:u,row:c,rule:l,content:f}}),t.dispatchEvent("valid-error",e,null),p&&p&&("tooltip"===h.message||"default"===h.message&&!i&&o.length<2)?p.open(d,f):t.$nextTick()}}},Jy=["checkbox","sort","title","width","fixed","align","header-align","footer-align"];function ex(e){const t=e.$xeGrid,n=e.$xeGantt,r=t||n,i=e,{customStore:o}=i,a=e.computeCustomOpts,{mode:s,placement:l,popupOptions:c}=a,u=!("modal"===s||"drawer"===s),{transfer:d,minWidth:h,maxWidth:p,maxHeight:f}=c||{},m=e.computeCustomSimpleMode,g="outside"===m,v=document.documentElement;let b=e.$refs.refElem,y=0,x=0;const w={},C={};if(n){const e=n.$refs.refGanttContainerElem;e&&(b=e)}const _=b.getBoundingClientRect();u&&d?(y=_.top+v.scrollTop,x=pc.eqNull(f)?360:f):g?(r&&b&&(y=b.offsetTop),x=pc.eqNull(f)?360:f):(b&&(x=b.clientHeight-22),x=Math.max(88,x));let S=0;"left"!==l&&"right"!==l&&(S=pc.eqNull(f)?x:f),l&&["left","right","bottom-left","bottom-right"].includes(l)||y&&(w.top=lh(y)),u&&d&&("bottom-left"!==l&&"bottom-right"!==l||(w.bottom=lh(v.scrollHeight-_.top-_.height+1)),"top-left"===l||"bottom-left"===l?w.left=lh(_.left):l&&"top-right"!==l&&"bottom-right"!==l||(w.right=lh(v.scrollWidth-_.left-_.width+1)));const k=getComputedStyle(v),E=getComputedStyle(b);return Jy.forEach(e=>{const t=`--vxe-ui-vxe-table-custom-column-${e}-${"title"===e?"min-":""}width`,n=E.getPropertyValue(t);n&&n!==k.getPropertyValue(t)&&(C[t]=n)}),h&&(w["--vxe-ui-vxe-table-custom-default-min-width"]=lh(h)),p&&(w["--vxe-ui-vxe-table-custom-default-max-width"]=lh(p)),S&&(w.maxHeight=lh(S)),o.defPopupStyle=w,o.panePopupStyle=C,o.maxHeight=S,e.$nextTick()}function tx(e,t,n){const r=e.$xeGrid,i=e.$xeGantt,o=r||i||e;o.dispatchEvent("custom",{type:t},n)}const nx={methods:{_getCustomVisible(){const e=this,t=e,{customStore:n}=t;return n.visible},_openCustom(){const e=this,t=e,n=e,r=e.$xeGrid,i=e.$xeGantt,o=r||i,{initStore:a,customStore:s}=t,l=e.computeCustomOpts,{mode:c,popupOptions:u}=l,d=!("modal"===c||"drawer"===c),{transfer:h}=u||{},p=e.computeCustomSimpleMode,f="outside"===p;let m=e.$refs.refCustomContainerElem;if(d&&h)m=document.body;else if(f&&o){const e=o.$refs.refPopupContainerElem;e&&(m=e)}if(m){const t=e.$refs.refCustomPopupToElem;t&&t.parentElement!==m&&m.appendChild(t)}return n.customPopupToElem!==m&&t.ctPopupFlag++,n.customPopupToElem=m,s.visible=!0,a.custom=!0,e.handleUpdateCustomColumn(),e.checkCustomStatus(),ex(e),e.$nextTick().then(()=>ex(e))},_closeCustom(){const e=this,t=e,{customStore:n}=t,r=e.computeCustomOpts;return n.visible&&(n.visible=!1,r.immediate||e.handleCustom()),e.$nextTick()},_toggleCustom(){const e=this,t=e,{customStore:n}=t;return n.visible?e.closeCustom():e.openCustom()},_saveCustom(e){const t=this,n=t,r=t,{customColumnList:i,aggHandleFields:o,rowGroupList:a}=n,s=t.computeCustomOpts,{allowVisible:l,allowSort:c,allowFixed:u,allowResizable:d,allowAlign:h,allowHeaderAlign:p,allowFooterAlign:f,allowGroup:m,allowValues:g}=s;return e?pc.eachTree(i,e=>{d&&(!e.renderVisible||e.children&&e.children.length||(e.resizeWidth=Math.max(0,pc.toNumber(e.renderWidth))))}):pc.eachTree(i,(e,t,n,r,i)=>{if(i)e.fixed=i.fixed;else{if(c){const n=t+1;e.renderSortNumber=n}u&&(e.fixed=e.renderFixed)}d&&(!e.renderVisible||e.children&&e.children.length||e.renderResizeWidth!==e.renderWidth&&(e.resizeWidth=e.renderResizeWidth,e.renderWidth=e.renderResizeWidth)),l&&(e.visible=e.renderVisible),h&&(e.align=e.renderAlign),p&&(e.headerAlign=e.renderHeaderAlign),f&&(e.footerAlign=e.renderFooterAlign),m&&g&&(e.aggFunc=e.renderAggFn)}),n.isCustomStatus=!0,m&&t.handlePivotTableAggData&&(a.length!==o.length||a.some((e,t)=>e.field!==o[t])?o.length?t.setRowGroups(o):t.clearRowGroups():g&&t.handleUpdateAggData()),c&&(r.collectColumn=i),t.saveCustomStore("confirm")},_cancelCustom(){const e=this,t=e,{customColumnList:n,customStore:r}=t,{oldSortMaps:i,oldFixedMaps:o,oldVisibleMaps:a}=r,s=e.computeCustomOpts,{allowVisible:l,allowSort:c,allowFixed:u,allowAlign:d,allowHeaderAlign:h,allowFooterAlign:p,allowResizable:f,allowGroup:m,allowValues:g}=s;return pc.eachTree(n,e=>{const t=e.getKey(),n=!!a[t],r=o[t]||"";l&&(e.renderVisible=n,e.visible=n),u&&(e.renderFixed=r,e.fixed=r),c&&(e.renderSortNumber=i[t]||0),f&&(e.renderResizeWidth=e.renderWidth),d&&(e.align=e.renderAlign),h&&(e.headerAlign=e.renderHeaderAlign),p&&(e.footerAlign=e.renderFooterAlign)},{children:"children"}),e.$nextTick()},_resetCustom(e){const t=this,n=t,r=t,{rowGroupList:i}=n,{collectColumn:o}=r,a=t.computeCustomOpts,{checkMethod:s}=a,l=Object.assign({visible:!0,resizable:!0===e,fixed:!0===e,sort:!0===e,aggFunc:!0===e,align:!0===e,headerAlign:!0===e,footerAlign:!0===e},e),c=[];if(pc.eachTree(o,e=>{l.resizable&&(e.resizeWidth=0),l.fixed&&(e.fixed=e.defaultFixed,e.renderFixed=e.defaultFixed),l.sort&&(e.renderSortNumber=e.sortNumber,e.parentId=e.defaultParentId),s&&!s({$table:t,column:e})||(e.visible=e.defaultVisible),l.align&&(e.align=e.defaultAlign,e.renderAlign=e.defaultAlign),l.headerAlign&&(e.headerAlign=e.defaultHeaderAlign,e.renderHeaderAlign=e.defaultHeaderAlign),l.footerAlign&&(e.footerAlign=e.defaultFooterAlign,e.renderFooterAlign=e.defaultFooterAlign),l.aggFunc&&(e.aggFunc=e.defaultAggFunc,e.renderAggFn=e.defaultAggFunc),e.renderResizeWidth=e.renderWidth,c.push(e)}),l.sort){const e=pc.toArrayTree(pc.orderBy(c,"renderSortNumber"),{key:"id",parentKey:"parentId",children:"children"});r.collectColumn=e,r.tableFullColumn=Dp(e)}return n.isCustomStatus=!1,t.handleCustom().then(()=>{if(l.aggFunc&&t.handlePivotTableAggData){const e=t.computeRowGroupFields;(e?e.length:i.length)?e&&e.length?t.setRowGroups(e):t.clearRowGroups():t.handleUpdateAggData()}t.saveCustomStore("reset")})},_toggleCustomAllCheckbox(){const e=this,t=e,{customStore:n}=t,r=!n.isAll;return e.setCustomAllCheckbox(r)},_setCustomAllCheckbox(e){const t=this,n=t,{customStore:r}=n,{customColumnList:i}=n,o=t.computeCustomOpts,{checkMethod:a,visibleMethod:s}=o,l=!!e;o.immediate?(pc.eachTree(i,e=>{s&&!s({$table:t,column:e})||a&&!a({$table:t,column:e})||(e.visible=l,e.renderVisible=l,e.halfVisible=!1)}),r.isAll=l,n.isCustomStatus=!0,t.handleCustom(),t.saveCustomStore("update:visible")):(pc.eachTree(i,e=>{s&&!s({$table:t,column:e})||a&&!a({$table:t,column:e})||(e.renderVisible=l,e.halfVisible=!1)}),r.isAll=l),t.checkCustomStatus()},checkCustomStatus(){const e=this,t=e,n=e,{customStore:r}=t,{collectColumn:i}=n,o=e.computeCustomOpts,{checkMethod:a}=o;r.isAll=i.every(t=>!!a&&!a({$table:e,column:t})||t.renderVisible),r.isIndeterminate=!r.isAll&&i.some(t=>(!a||a({$table:e,column:t}))&&(t.renderVisible||t.halfVisible))},emitCustomEvent(e,t){const n=this;n.dispatchEvent("custom",{type:e},t)},triggerCustomEvent(e){const t=this,n=t,{customStore:r}=n;r.visible?(t.closeCustom(),tx(t,"close",e),t.dispatchEvent("custom-close",{},e)):(r.btnEl=e.target,t.openCustom(),tx(t,"open",e),t.dispatchEvent("custom-open",{},e))},customOpenEvent(e){const t=this,n=t,{customStore:r}=n;r.visible&&(r.activeBtn=!0,r.btnEl=e.target,t.openCustom(),tx(t,"open",e),t.dispatchEvent("custom-open",{},e))},customCloseEvent(e){const t=this,n=t,{customStore:r}=n;r.visible&&(r.activeBtn=!1,t.closeCustom(),tx(t,"close",e),t.dispatchEvent("custom-close",{},e))},handleUpdateCustomColumn(){const e=this,t=e,n=e,{customStore:r}=t,{collectColumn:i}=n;if(r.visible){const e={},n={},o={};pc.eachTree(i,t=>{const r=t.getKey();t.renderFixed=t.fixed,t.renderVisible=t.visible,t.renderResizeWidth=t.renderWidth,t.renderAlign=t.align,t.renderHeaderAlign=t.headerAlign,t.renderFooterAlign=t.footerAlign,e[r]=t.renderSortNumber,n[r]=t.fixed,o[r]=t.visible}),r.oldSortMaps=e,r.oldFixedMaps=n,r.oldVisibleMaps=o,t.customColumnList=i.slice(0)}},handleCustomStyle(){const e=this,t=e,{customStore:n}=t;return n.visible?(t.isCustomDragStatus=!1,ex(e)):e.$nextTick()}}},{warnLog:rx,errLog:ix}=Ih("table"),{getConfig:ox,getIcon:ax,getI18n:sx,renderer:lx,globalResize:cx,globalEvents:ux,globalMixins:dx,renderEmptyElement:hx}=ad;function px(e,t){const n=e;n.mergeBodyList=[],n.mergeBodyMaps={},n.mergeBodyCellMaps={},n.mergeBodyRowMaps={},n.mergeBodyColMaps={},e.setMergeCells(t)}function fx(e,t){const n=e;n.mergeHeaderList=[],n.mergeHeaderMaps={},n.mergeHeaderCellMaps={},n.mergeHeaderRowMaps={},n.mergeBodyColMaps={},e.setMergeHeaderCells(t)}function mx(e,t){const n=e;n.mergeFooterList=[],n.mergeFooterMaps={},n.mergeFooterCellMaps={},n.mergeFooterRowMaps={},n.mergeFooterColMaps={},e.setMergeFooterCells(t)}function gx(e){const t=e,n=e.computeRowField;t.currKeyField=n,t.isCurrDeepKey=ep(n)}function vx(e){const t=e,n=e,r=e,{showOverflow:i}=t,{isGroup:o}=n,{fullAllDataRowIdData:a,tableFullColumn:s,collectColumn:l}=r;let c=!!i;const u=e=>{c&&!1===e.showOverflow&&(c=!1)};o?pc.eachTree(l,u):s.forEach(u),pc.each(a,e=>{e.height=0}),n.isAllOverflow=c}function bx(e,t,n){const r=t,i=t,{showHeader:o,showFooter:a}=r,{tableData:s,tableColumn:l,tableGroupColumn:c,columnStore:u,footerTableData:d}=i,h=t.computeScrollbarOpts,p=t.computeScrollbarXOpts,f=t.computeScrollbarYOpts,{overscrollBehavior:m}=p,{overscrollBehavior:g}=f,v="left"===n,b=v?u.leftList:u.rightList,y=pc.eqNull(m)?h.overscrollBehavior:m,x=pc.eqNull(g)?h.overscrollBehavior:g;return e("div",{ref:v?"refLeftContainer":"refRightContainer",class:[`vxe-table--fixed-${n}-wrapper`,`sx--${p.visible}`,`sy--${f.visible}`,{[`x-ob--${y}`]:y,[`y-ob--${x}`]:x}]},[o?e(Ov,{props:{fixedType:n,tableData:s,tableColumn:l,tableGroupColumn:c,fixedColumn:b},ref:`${n}Header`}):hx(t),e(yv,{props:{fixedType:n,tableData:s,tableColumn:l,fixedColumn:b},ref:`${n}Body`}),a?e(Iv,{props:{footerTableData:d,tableColumn:l,fixedColumn:b,fixedType:n},ref:`${n}Footer`}):hx(t)])}function yx(e,t){const n=t.$scopedSlots,r=t.$xeGrid,i=t.$xeGantt,o=t.computeEmptyOpts,a=n.empty;let s="";const l={$table:t,$grid:r,$gantt:i};if(a)s=a.call(t,l);else{const n=t.computeRendererOpts,r=o.name?n[o.name]||lx.get(o.name):null,i=r?r.renderTableEmpty||r.renderTableEmptyView||r.renderEmpty:null;s=i?Bp(i.call(t,e,o,l)):fd(t.emptyText)||sx("vxe.table.emptyText")}return s}const xx=(e,t)=>{const n=t,r=t,i=kf(t),{dragConfig:o}=n,{dragRow:a,dragCol:s,dragTipText:l}=r,c=t.computeColumnDragOpts,u=t.computeRowDragOpts,d=u.slots||{},h=d.tip||(o&&o.slots?o.slots.rowTip:null),p=c.slots||{},f=p.tip,m=a||(u.isCrossTableDrag?i.row:null);return m&&h?t.callSlot(h,{row:m},e):s&&f?t.callSlot(f,{column:s},e):[e("span",l)]},wx=(e,t)=>{const n=t,r=kf(t),{dragRow:i,dragCol:o}=n,a=t.computeRowOpts,s=t.computeColumnOpts,l=t.computeRowDragOpts,c=t.computeColumnDragOpts,u=i||(l.isCrossTableDrag?r.row:null);return a.drag||s.drag?e("div",{class:"vxe-table--drag-wrapper"},[e("div",{ref:"refDragRowLineElem",class:["vxe-table--drag-row-line",{"is--guides":l.showGuidesStatus}]}),e("div",{ref:"refDragColLineElem",class:["vxe-table--drag-col-line",{"is--guides":c.showGuidesStatus}]}),u&&l.showDragTip||o&&c.showDragTip?e("div",{ref:"refDragTipElem",class:"vxe-table--drag-sort-tip"},[e("div",{class:"vxe-table--drag-sort-tip-wrapper"},[e("div",{class:"vxe-table--drag-sort-tip-status"},[e("span",{class:["vxe-table--drag-sort-tip-normal-status",u?ax().TABLE_DRAG_STATUS_ROW:ax().TABLE_DRAG_STATUS_COLUMN]}),e("span",{class:["vxe-table--drag-sort-tip-sub-status",ax().TABLE_DRAG_STATUS_SUB_ROW]}),e("span",{class:["vxe-table--drag-sort-tip-disabled-status",ax().TABLE_DRAG_DISABLED]})]),e("div",{class:"vxe-table--drag-sort-tip-content"},xx(e,t))])]):hx(t)]):hx(t)};function Cx(e){const t=e.$refs.refElem;t&&t.clientWidth&&t.clientHeight&&e.recalculate()}function _x(e,t){const n=t,r=t,i=t,o=t.$xeGrid,a=t.$xeGantt,{treeConfig:s}=n,{expandColumn:l,isRowGroupStatus:c}=r,u=t.computeTableRowExpandedList,d=t.computeExpandOpts,{mode:h}=d;if("fixed"!==h)return hx(t);const p=[e("div",{key:"repY",ref:"refRowExpandYSpaceElem"})];if(l){const{handleGetRowId:n}=ip(t);u.forEach(r=>{const u=t.computeExpandOpts,{height:d,padding:h,indent:f}=u,{fullAllDataRowIdData:m,fullColumnIdData:g}=i,v=t.computeTreeOpts,{transform:b,seqMode:y}=v,x={},w=n(r),C=m[w],_=l.id,S=g[_]||{};let k=0,E=-1,O=-1,T=-1,$=-1;C&&(T=C.index,$=C.$index,O=C._index,k=C.level,E=C.seq,c||s&&b&&"increasing"===y?E=C._index+1:s&&"fixed"===y&&(E=C._tIndex+1)),d&&(x.height=`${d}px`),(c||s)&&(x.paddingLeft=k*(pc.isNumber(f)?f:v.indent)+30+"px");let D=-1,M=-1,F=-1;S&&(D=S.index,M=S.$index,F=S._index);const R={$table:t,$grid:o,$gantt:a,seq:E,column:l,columnIndex:D,$columnIndex:M,_columnIndex:F,fixed:"",source:"table",type:"body",level:k,rowid:w,row:r,rowIndex:T,$rowIndex:$,_rowIndex:O,isHidden:!1,isEdit:!1,visibleData:[],data:[],items:[]};p.push(e("div",{key:w,class:["vxe-body--row-expanded-cell",{"is--padding":h,"is--ellipsis":d}],attrs:{rowid:w},style:x},[e("div",{class:"vxe-body--row-expanded-content"},l.renderData(e,R))]))})}return e("div",{ref:"refRowExpandElem",class:"vxe-table--row-expanded-wrapper"},p)}function Sx(e,t){return e("div",{key:"vsx",ref:"refScrollXVirtualElem",class:"vxe-table--scroll-x-virtual"},[e("div",{ref:"refScrollXLeftCornerElem",class:"vxe-table--scroll-x-left-corner"}),e("div",{ref:"refScrollXWrapperElem",class:"vxe-table--scroll-x-wrapper"},[e("div",{ref:"refScrollXHandleElem",class:"vxe-table--scroll-x-handle",on:{scroll:t.triggerVirtualScrollXEvent}},[e("div",{ref:"refScrollXSpaceElem",class:"vxe-table--scroll-x-space"})]),e("div",{class:"vxe-table--scroll-x-handle-appearance"})]),e("div",{ref:"refScrollXRightCornerElem",class:"vxe-table--scroll-x-right-corner"})])}function kx(e,t){return e("div",{ref:"refScrollYVirtualElem",class:"vxe-table--scroll-y-virtual"},[e("div",{ref:"refScrollYTopCornerElem",class:"vxe-table--scroll-y-top-corner"}),e("div",{ref:"refScrollYWrapperElem",class:"vxe-table--scroll-y-wrapper"},[e("div",{ref:"refScrollYHandleElem",class:"vxe-table--scroll-y-handle",on:{scroll:t.triggerVirtualScrollYEvent}},[e("div",{ref:"refScrollYSpaceElem",class:"vxe-table--scroll-y-space"})])]),e("div",{ref:"refScrollYBottomCornerElem",class:"vxe-table--scroll-y-bottom-corner"})])}function Ex(e,t){const n=t,r=t,{showHeader:i,showFooter:o}=n,{overflowX:a,tableData:s,tableColumn:l,tableGroupColumn:c,footerTableData:u,columnStore:d}=r,h=t.computeScrollbarOpts,p=t.computeScrollbarXOpts,f=t.computeScrollbarYOpts,{overscrollBehavior:m}=p,{overscrollBehavior:g}=f,{leftList:v,rightList:b}=d,y=pc.eqNull(m)?h.overscrollBehavior:m,x=pc.eqNull(g)?h.overscrollBehavior:g;return e("div",{ref:"refTableViewportElem",class:["vxe-table--viewport-wrapper",{[`x-ob--${y}`]:y,[`y-ob--${x}`]:x}]},[e("div",{class:["vxe-table--main-wrapper",`sx--${p.visible}`,`sy--${f.visible}`]},[i?e(Ov,{ref:"refTableHeader",props:{tableData:s,tableColumn:l,tableGroupColumn:c}}):hx(t),e(yv,{ref:"refTableBody",props:{tableData:s,tableColumn:l}}),o?e(Iv,{ref:"refTableFooter",props:{footerTableData:u,tableColumn:l}}):hx(t)]),e("div",{class:"vxe-table--fixed-wrapper"},[v&&v.length&&a?bx(e,t,"left"):hx(t),b&&b.length&&a?bx(e,t,"right"):hx(t)]),_x(e,t)])}function Ox(e,t){const n=t.computeScrollbarYToLeft;return e("div",{class:"vxe-table--layout-wrapper"},n?[kx(e,t),Ex(e,t)]:[Ex(e,t),kx(e,t)])}const Tx={name:"VxeTable",mixins:[dx.sizeMixin,mb,xb,Pb,Iy,Ny,Qy,nx],props:vf,provide(){const e=this;return{$xeTable:e,xecolgroup:null}},inject:{$xeModal:{default:null},$xeTabs:{default:null},$xeParentTable:{from:"$xeTable",default:null},$xeGrid:{default:null},$xeGantt:{default:null}},data(){const e=pc.uniqueId(),t=Wh();return Object.assign(Object.assign({xID:e},t),{reScrollFlag:0,reLayoutFlag:0,footFlag:0,kfFlag:0,layoutReFlag:0,mergeFooteCellFlag:0,crossTableDragRowInfo:Sf})},computed:Object.assign(Object.assign({},{}),{tableId(){return this.computeTableId},computeTableId(){const e=this,t=e,n=e.$xeGrid,r=e.$xeGantt,{id:i}=t;return i?pc.isFunction(i)?`${i({$table:e,$grid:n,$gantt:r})||""}`:`${i}`:""},computeRowField(){const e=this,t=e,n=e.computeRowOpts;return`${t.rowId||n.keyField||"_X_ROW_KEY"}`},validOpts(){return this.computeValidOpts},computeValidOpts(){const e=this,t=e,n=Object.assign({},ox().table.validConfig,t.validConfig);return pc.isBoolean(n.showMessage)&&(n.showErrorMessage=n.showMessage),n},sXOpts(){return this.computeVirtualXOpts},computeSXOpts(){return this.computeVirtualXOpts},computeScrollXThreshold(){const e=this,t=e.computeVirtualXOpts,{threshold:n}=t;return n?pc.toNumber(n):0},sYOpts(){return this.computeVirtualYOpts},computeSYOpts(){return this.computeVirtualYOpts},computeVirtualXOpts(){const e=this,t=e,{virtualXConfig:n,scrollX:r}=t,i=ox().table.virtualXConfig,o=ox().table.scrollX;return n?Object.assign({},i,n):r?Object.assign({},o,r):i?Object.assign({},i,n):Object.assign({},o,r)},computeVirtualYOpts(){const e=this,t=e,{virtualYConfig:n,scrollY:r}=t,i=ox().table.virtualYConfig,o=ox().table.scrollY;return n?Object.assign({},i,n):r?Object.assign({},o,r):i?Object.assign({},i,n):Object.assign({},o,r)},computeScrollbarOpts(){const e=this,t=e;return Object.assign({},ox().table.scrollbarConfig,t.scrollbarConfig)},computeScrollbarXOpts(){var e;const t=this,n=t,r=t.computeScrollbarOpts;return Object.assign({},r.x,(null===(e=n.scrollbarConfig)||void 0===e?void 0:e.x)||{})},computeScrollbarYOpts(){var e;const t=this,n=t,r=t.computeScrollbarOpts;return Object.assign({},r.y,(null===(e=n.scrollbarConfig)||void 0===e?void 0:e.y)||{})},computeScrollbarXToTop(){const e=this,t=e.computeScrollbarXOpts;return"top"===t.position},computeScrollbarYToLeft(){const e=this,t=e.computeScrollbarYOpts;return"left"===t.position},computeScrollYThreshold(){const e=this,t=e.computeVirtualYOpts,{threshold:n}=t;return n?pc.toNumber(n):0},rowHeightMaps(){return this.computeRowHeightMaps},computeRowHeightMaps(){const e=this,t=e;return t.rowHeightStore},computeDefaultRowHeight(){const e=this,t=e.computeSize,n=e.computeRowHeightMaps;return n[t||"default"]||18},columnOpts(){return this.computeColumnOpts},computeColumnOpts(){const e=this,t=e;return Object.assign({},ox().table.columnConfig,t.columnConfig)},computeCurrentColumnOpts(){const e=this,t=e;return Object.assign({},ox().table.currentColumnConfig,t.currentColumnConfig)},computeCellOpts(){const e=this,t=e,n=Object.assign({},ox().table.cellConfig,t.cellConfig);return n.height&&(n.height=pc.toNumber(n.height)),n},computeHeaderCellOpts(){const e=this,t=e.$xeGantt,n=e,r=Object.assign({},ox().table.headerCellConfig,n.headerCellConfig),i=e.computeDefaultRowHeight,o=e.computeCellOpts;let a=pc.toNumber(hp(r.height||o.height));if(t){const e=t.computeTaskViewScales;if(e&&e.length>2){const t=i/2*e.length;a=Math.max(t,a)}}return r.height=a,r},computeFooterCellOpts(){const e=this,t=e,n=Object.assign({},ox().table.footerCellConfig,t.footerCellConfig),r=e.computeCellOpts;return n.height=pc.toNumber(hp(n.height||r.height)),n},rowOpts(){return this.computeRowOpts},computeRowOpts(){const e=this,t=e;return Object.assign({},ox().table.rowConfig,t.rowConfig)},computeAggregateOpts(){const e=this,t=e;return Object.assign({},ox().table.aggregateConfig||ox().table.rowGroupConfig,t.aggregateConfig||t.rowGroupConfig)},computeAggregateMode(){const e=this,t=e.computeAggregateOpts;return t.mode},computeAggregateAccuracyOpts(){const e=this,t=e;return Object.assign({},ox().table.aggregateAccuracyConfig,t.aggregateAccuracyConfig)},computeRowGroupOpts(){const e=this;return e.computeAggregateOpts},computeCurrentRowOpts(){const e=this,t=e;return Object.assign({},ox().table.currentRowConfig,t.currentRowConfig)},computeRowDragOpts(){const e=this,t=e;return Object.assign({},ox().table.rowDragConfig,t.rowDragConfig)},computeColumnDragOpts(){const e=this,t=e;return Object.assign({},ox().table.columnDragConfig,t.columnDragConfig)},resizeOpts(){return this.computeResizeOpts},computeResizeOpts(){const e=this,t=e;return Object.assign({},ox().table.resizeConfig,t.resizeConfig)},resizableOpts(){return this.computeResizableOpts},computeResizableOpts(){const e=this,t=e;return Object.assign({},ox().table.resizableConfig,t.resizableConfig)},seqOpts(){return this.computeSeqOpts},computeSeqOpts(){const e=this,t=e;return Object.assign({startIndex:0},ox().table.seqConfig,t.seqConfig)},radioOpts(){return this.computeRadioOpts},computeRadioOpts(){const e=this,t=e;return Object.assign({},ox().table.radioConfig,t.radioConfig)},checkboxOpts(){return this.computeCheckboxOpts},computeCheckboxOpts(){const e=this,t=e;return Object.assign({},ox().table.checkboxConfig,t.checkboxConfig)},tooltipOpts(){return this.computeTooltipOpts},computeTooltipOpts(){const e=this,t=e;return Object.assign({},ox().tooltip,ox().table.tooltipConfig,t.tooltipConfig)},tipConfig(){return Object.assign({},this.tooltipOpts)},computeHeaderTooltipOpts(){const e=this,t=e,n=e.computeTooltipOpts;return Object.assign({},ox().tooltip,{enterable:n.enterable,defaultPlacement:n.defaultPlacement},ox().table.headerTooltipConfig,t.headerTooltipConfig)},computeFooterTooltipOpts(){const e=this,t=e,n=e.computeTooltipOpts;return Object.assign({},ox().tooltip,{enterable:n.enterable,defaultPlacement:n.defaultPlacement},ox().table.footerTooltipConfig,t.footerTooltipConfig)},computeTableTipConfig(){const e=this,t=e,{tooltipStore:n}=t,r=e.computeTooltipOpts;return Object.assign({},r,n.currOpts)},computeValidTipConfig(){const e=this,t=e.computeTooltipOpts;return Object.assign({},t)},validTipOpts(){return Object.assign({isArrow:!1},this.tooltipOpts)},editOpts(){return this.computeEditOpts},computeEditOpts(){const e=this,t=e;return Object.assign({},ox().table.editConfig,t.editConfig)},computeEditDirtyOpts(){const e=this,t=e;return Object.assign({},ox().table.editDirtyConfig,t.editDirtyConfig)},sortOpts(){return this.computeSortOpts},computeSortOpts(){return Object.assign({orders:["asc","desc",null]},ox().table.sortConfig,this.sortConfig)},filterOpts(){return this.computeFilterOpts},computeFilterOpts(){const e=this,t=e;return Object.assign({},ox().table.filterConfig,t.filterConfig)},computeFloatingFilterOpts(){const e=this,t=e;return Object.assign({},ox().table.floatingFilterConfig,t.floatingFilterConfig)},mouseOpts(){return this.computeMouseOpts},computeMouseOpts(){return Object.assign({},ox().table.mouseConfig,this.mouseConfig)},areaOpts(){return this.computeAreaOpts},computeAreaOpts(){return Object.assign({},ox().table.areaConfig,this.areaConfig)},keyboardOpts(){return this.computeKeyboardOpts},computeKeyboardOpts(){return Object.assign({},ox().table.keyboardConfig,this.keyboardConfig)},clipOpts(){return this.computeClipOpts},computeClipOpts(){return Object.assign({},ox().table.clipConfig,this.clipConfig)},fnrOpts(){return this.computeFnrOpts},computeFNROpts(){return this.computeFnrOpts},computeFnrOpts(){return Object.assign({},ox().table.fnrConfig,this.fnrConfig)},headerCtxMenu(){return this.computeHeaderMenu},computeHeaderMenu(){const e=this,t=e.computeMenuOpts,n=t.header;return n&&n.options?n.options:[]},bodyCtxMenu(){return this.computeBodyMenu},computeBodyMenu(){const e=this,t=e.computeMenuOpts,n=t.body;return n&&n.options?n.options:[]},footerCtxMenu(){return this.computeFooterMenu},computeFooterMenu(){const e=this,t=e.computeMenuOpts,n=t.footer;return n&&n.options?n.options:[]},isCtxMenu(){return this.computeIsContentMenu},computeIsMenu(){return this.computeIsContentMenu},computeIsContentMenu(){const e=this,t=e,n=e.computeMenuOpts,r=e.computeHeaderMenu,i=e.computeBodyMenu,o=e.computeFooterMenu;return!(!t.contextMenu&&!t.menuConfig||!ld(n)||!(r.length||i.length||o.length))},ctxMenuList(){return this.computeMenuList},computeMenuList(){const e=this,t=e,{ctxMenuStore:n}=t,r=[];return n.list.forEach(e=>{e.forEach(e=>{r.push(e)})}),r},ctxMenuOpts(){return this.computeMenuOpts},computeMenuOpts(){return Object.assign({},ox().table.menuConfig,this.contextMenu,this.menuConfig)},computeLeftFixedWidth(){const e=this,t=e,{columnStore:n}=t,{leftList:r}=n;let i=0;for(let o=0;o<r.length;o++){const e=r[o];i+=e.renderWidth}return i},computeRightFixedWidth(){const e=this,t=e,{columnStore:n}=t,{rightList:r}=n;let i=0;for(let o=0;o<r.length;o++){const e=r[o];i+=e.renderWidth}return i},computeBodyMergeCoverFixed(){const e=this,t=e,n=e,{columnStore:r,mergeBodyFlag:i}=t,{mergeBodyList:o,visibleColumn:a}=n,{leftList:s,rightList:l}=r,c=a.length-l.length;if(i&&(s.length||l.length)){const e=s.length;for(let t=0;t<o.length;t++){const{col:n,colspan:r}=o[t];if(n<e&&n+r>e)return!0;if(n<c&&n+r>c)return!0}}return!1},computeIsHeaderRenderOptimize(){const e=this,t=e,n=e,{spanMethod:r,footerSpanMethod:i,showHeaderOverflow:o}=t,{isGroup:a,scrollXLoad:s}=n;let l=!1;return a||s&&o&&(r||i||(l=!0)),l},computeIsBodyRenderOptimize(){const e=this,t=e,n=e,{spanMethod:r,footerSpanMethod:i}=t,{scrollXLoad:o,scrollYLoad:a,isAllOverflow:s,expandColumn:l}=n,c=e.computeBodyMergeCoverFixed,u=e.computeExpandOpts;let d=!1;return(o||a||s)&&(l&&"fixed"!==u.mode||c||r||i||(d=!0)),d},computeIsFooterRenderOptimize(){const e=this,t=e,n=e,{spanMethod:r,footerSpanMethod:i,showFooterOverflow:o}=t,{scrollXLoad:a}=n;let s=!1;return a&&o&&(r||i||(s=!0)),s},exportOpts(){return this.computeExportOpts},computeExportOpts(){return Object.assign({},ox().table.exportConfig,this.exportConfig)},importOpts(){return this.computeImportOpts},computeImportOpts(){return Object.assign({},ox().table.importConfig,this.importConfig)},printOpts(){return this.computePrintOpts},computePrintOpts(){return Object.assign({},ox().table.printConfig,this.printConfig)},expandOpts(){return this.computeExpandOpts},computeExpandOpts(){return Object.assign({},ox().table.expandConfig,this.expandConfig)},treeOpts(){return this.computeTreeOpts},computeTreeOpts(){return Object.assign({},ox().table.treeConfig,this.treeConfig)},emptyOpts(){return this.computeEmptyOpts},computeEmptyOpts(){return Object.assign({},ox().table.emptyRender,this.emptyRender)},loadingOpts(){return this.computeLoadingOpts},computeLoadingOpts(){return Object.assign({},ox().table.loadingConfig,this.loadingConfig)},computeCellOffsetWidth(){return this.border?Math.max(2,Math.ceil(this.scrollbarWidth/this.tableColumn.length)):1},customOpts(){return this.computeCustomOpts},computeCustomOpts(){return Object.assign({},ox().table.customConfig,this.customConfig)},computeCustomSimpleMode(){const e=this,t=e,{minHeight:n,height:r}=t,i=e.computeCustomOpts,{mode:o,popupOptions:a,placement:s}=i;if((!s||"top-left"===s||"top-right"===s)&&"modal"!==o&&"drawer"!==o){const{mode:e}=a||{};if(!e||"auto"===e)return r||n?"inside":"outside";if(e)return e}return""},computeTableStyle(){const e=this,t=e.computeScrollbarOpts,{width:n,height:r}=t,i={};return n&&(i["--vxe-ui-table-view-scrollbar-width"]=lh(n)),r&&(i["--vxe-ui-table-view-scrollbar-height"]=lh(r)),i},computeTableRowExpandedList(){const e=this,t=e,n=e,{tableData:r,rowExpandedFlag:i,expandColumn:o,rowGroupExpandedFlag:a,treeExpandedFlag:s}=t,{visibleDataRowIdData:l,rowExpandedMaps:c}=n,u=[];return r.length&&o&&i&&a&&s&&pc.each(c,(e,t)=>{l[t]&&u.push(e)}),u},computeAutoWidthColumnList(){const{tableColumn:e,visibleColumn:t}=this;return e.length||t.length?t.filter(e=>"auto"===e.width||"auto"===e.minWidth):[]},computeFixedColumnSize(){const e=this,t=e,n=e,{tableColumn:r}=t,{collectColumn:i}=n;let o=0;return r.length&&i.length&&i.forEach(e=>{e.renderFixed&&o++}),o},fixedColumnSize(){const e=this;return e.computeFixedColumnSize},computeIsMaxFixedColumn(){const e=this,t=e.computeFixedColumnSize,n=e.columnOpts,{maxFixedSize:r}=n;return!!r&&t>=r},computeKeepFields(){const e=this,t=e,n=e,{tableFullColumn:r}=n,{updateColFlag:i}=t,o=e.computeEditDirtyOpts,{extraFields:a,includeFields:s,excludeFields:l}=o,c=[];if(i){const e={};if(l&&l.length&&l.forEach(t=>{e[t]=1}),s&&s.length)return l&&l.length?s.filter(t=>!e[t]):s;const t={};a&&a.length&&a.forEach(e=>{t[e]||(t[e]=1,c.push(e))});for(let n=0;n<r.length;n++){const i=r[n],{field:o,type:a,editRender:s,cellRender:l}=i;!o||a||!s&&!l||t[o]||e[o]||(t[o]=1,c.push(o))}}return c},computeTableBorder(){const e=this,t=e,{border:n}=t;return!0===n?"full":n||"default"},computeIsAllCheckboxDisabled(){const e=this,t=e,n=e,r=e,{treeConfig:i}=t,{tableData:o}=n,{tableFullData:a}=r,s=e.computeCheckboxOpts,{strict:l,checkMethod:c}=s;return!!l&&(!o.length&&!a.length||!!c&&a.every(t=>!c({$table:e,row:t})))},isAllCheckboxDisabled(){return this.computeIsAllCheckboxDisabled},computeVirtualScrollBars(){const e=this,t=e,{overflowX:n,scrollXLoad:r,overflowY:i,scrollYLoad:o}=t;return{x:n&&r,y:i&&o}},computeRowGroupFields(){const e=this,t=e.computeAggregateOpts;return t.groupFields},computeRowGroupColumns(){const e=this,t=e,n=e,{rowGroupList:r}=t,{fullColumnFieldData:i}=n,o=[];return r.forEach(e=>{const t=i[e.field];t&&o.push(t.column)}),o},computeAggFuncColumns(){const e=this,t=e,{rowGroupList:n,tableColumn:r}=t;return n.length?r.filter(e=>e.field&&e.aggFunc):[]},computeUndoRedoHistoryOpts(){const e=this,t=e;return Object.assign({},ox().table.undoRedoHistoryConfig,t.undoRedoHistoryConfig)},computeRendererOpts(){const e=this,t=e;return Object.assign({},ox().table.rendererConfig,t.rendererConfig)},combineTabsResizeFlag(){const e=this,t=e.$xeTabs;return t?t.reactData.resizeFlag:null},combineModalResizeFlag(){const e=this,t=e.$xeModal;return t?t.reactData.resizeFlag:null},combineSplitterResizeFlag(){const e=this,t=e.$xeSplitter;return t?t.reactData.resizeFlag:null},computeVxeLanguage(){return ad.getLanguage()},computeScrollbarVisible(){const e=this,t=e.computeScrollbarXOpts,n=e.computeScrollbarYOpts;return`${t.visible}${n.visible}`},computeCellConfHeitht(){const e=this,t=e.computeCellOpts;return t.height}}),watch:{data(e){const t=this,n=t,{initStatus:r}=this;e&&e.length>=2e4&&rx("vxe.error.errLargeData",["loadData(data), reloadData(data)"]),this.loadTableData(e||[],!0,!0).then(()=>{const{scrollXLoad:e,scrollYLoad:i,expandColumn:o}=n,a=t.computeExpandOpts;this.inited=!0,this.initStatus=!0,r||this.handleLoadDefaults(),(e||i)&&o&&"fixed"!==a.mode&&rx("vxe.error.scrollErrProp",["column.type=expand"]),this.recalculate()})},staticColumns(e){this.$nextTick(()=>this.handleInitColumn(pc.clone(e)))},tableColumn(){this.analyColumnWidth()},upDataFlag(){this.$nextTick().then(()=>this.updateData())},reColumnFlag(){this.$nextTick().then(()=>this.refreshColumn())},computeSize(){this.reLayoutFlag++},showHeader(){this.reLayoutFlag++},showFooter(){this.reLayoutFlag++},showHeaderOverflow(){this.reLayoutFlag++},showOverflow(){const e=this;vx(e),this.reLayoutFlag++},showFooterOverflow(){this.reLayoutFlag++},overflowX(){this.reLayoutFlag++},overflowY(){this.reLayoutFlag++},height(){this.reLayoutFlag++},maxHeight(){this.reLayoutFlag++},computeScrollbarXToTop(){this.reLayoutFlag++},computeScrollbarYToLeft(){this.reLayoutFlag++},computeVxeLanguage(){this.reLayoutFlag++},computeScrollbarVisible(){this.reLayoutFlag++},computeCellConfHeitht(){this.reLayoutFlag++},reLayoutFlag(){const e=this;e.$nextTick(()=>e.recalculate(!0))},footerData(){this.footFlag++},footFlag(){const e=this,t=e;t.footerFullDataRowData={},e.updateFooter()},updateColFlag(){this.kfFlag++},computeKeepFields(){this.kfFlag++},kfFlag(){const e=this,t=e,n=e.computeKeepFields,r={};n.forEach(e=>{r[e]=1}),t.keepUpdateFieldMaps=r},syncResize(e){const t=this;e&&(Cx(t),t.$nextTick(()=>{Cx(t),setTimeout(()=>Cx(t))}))},combineTabsResizeFlag(){this.layoutReFlag++},combineModalResizeFlag(){this.layoutReFlag++},combineSplitterResizeFlag(){this.layoutReFlag++},layoutReFlag(){this.handleGlobalResizeEvent()},mergeCells(e){const t=this;px(t,e)},mergeHeaderCells(e){const t=this;fx(t,e)},mergeFooterCells(){this.mergeFooteCellFlag++},mergeFooterItems(){this.mergeFooteCellFlag++},mergeFooteCellFlag(){const e=this,t=e,n=t.mergeFooterCells||t.mergeFooterItems;mx(e,n||[])},computeRowGroupFields(e){const t=this;t.handleUpdateRowGroup(e)},computeRowField(){const e=this,t=e,n=e,{inited:r,tableFullData:i}=n;r&&(gx(e),t.tableData=[],e.$nextTick(()=>{e.reloadData(i)}))},computeAggregateMode(){const e=this,t=e,n=e;t.isRowGroupStatus&&this.loadTableData(n.tableSynchData,!1,!0)}},created(){const e=this,t=e,n=e;pc.assign(n,Hh()),gx(e);const{editConfig:r,exportConfig:i,importConfig:o,treeConfig:a,minHeight:s,keepSource:l}=t,{scrollXStore:c,scrollYStore:u}=n,d=e.computeColumnOpts,h=e.computeColumnDragOpts,p=e.computeEditOpts,f=e.computeTreeOpts,m=e.computeRadioOpts,g=e.computeCheckboxOpts,v=e.computeExpandOpts,b=e.computeRowOpts,y=e.computeCustomOpts,x=e.computeMouseOpts,w=e.computeExportOpts,C=e.computeImportOpts,_=e.computeAggregateOpts,S=e.computeRowDragOpts,k=e.computeAreaOpts,E=e.computeSortOpts,O=e.computeFilterOpts,{groupFields:T}=_;if(t.rowId&&rx("vxe.error.delProp",["row-id","row-config.keyField"]),t.rowKey&&rx("vxe.error.delProp",["row-key","row-config.useKey"]),t.columnKey&&rx("vxe.error.delProp",["column-id","column-config.useKey"]),t.rowId||b.keyField||!(g.reserve||g.checkRowKeys||m.reserve||m.checkRowKey||v.expandRowKeys||f.expandRowKeys)||rx("vxe.error.reqProp",["row-config.keyField"]),r&&(l||(p.showStatus||p.showUpdateStatus||p.showInsertStatus)&&rx("vxe.error.reqSupportProp",["edit-config.showStatus | showUpdateStatus | showInsertStatus","keep-source"])),a&&!f.transform&&(E.isDeep&&rx("vxe.error.reqSupportProp",["transform=false","sort-config.isDeep=false"]),O.isDeep&&rx("vxe.error.reqSupportProp",["transform=false","filter-config.isDeep=false"])),!t.showFooter||t.footerMethod||t.footerData||rx("vxe.error.reqProp",["footer-data | footer-method"]),b.height&&rx("vxe.error.delProp",["row-config.height","cell-config.height"]),this.tooltipOpts.enabled&&rx("vxe.error.delProp",["tooltip-config.enabled","tooltip-config.showAll"]),this.highlightCurrentRow&&rx("vxe.error.delProp",["highlight-current-row","row-config.isCurrent"]),this.highlightHoverRow&&rx("vxe.error.delProp",["highlight-hover-row","row-config.isHover"]),this.highlightCurrentColumn&&rx("vxe.error.delProp",["highlight-current-column","column-config.isCurrent"]),this.highlightHoverColumn&&rx("vxe.error.delProp",["highlight-hover-column","column-config.isHover"]),t.resizable&&rx("vxe.error.delProp",["resizable","column-config.resizable"]),t.aggregateConfig&&t.rowGroupConfig&&rx("vxe.error.notSupportProp",["aggregate-config","row-group-config","row-group-config=null"]),o&&C.types&&!C.importMethod&&!pc.includeArrays(pc.keys(C._typeMaps),C.types)&&rx("vxe.error.errProp",[`export-config.types=${C.types.join(",")}`,C.types.filter(e=>pc.includes(pc.keys(C._typeMaps),e)).join(",")||pc.keys(C._typeMaps).join(",")]),i&&w.types&&!w.exportMethod&&!pc.includeArrays(pc.keys(w._typeMaps),w.types)&&rx("vxe.error.errProp",[`export-config.types=${w.types.join(",")}`,w.types.filter(e=>pc.includes(pc.keys(w._typeMaps),e)).join(",")||pc.keys(w._typeMaps).join(",")]),i&&pc.isBoolean(w.isAllExpand)&&rx("vxe.error.delProp",["isAllExpand","isTreeAllExpanded"]),t.id||(t.customConfig?ld(y):y.enabled)&&y.storage&&ix("vxe.error.reqProp",["id"]),a&&g.range&&ix("vxe.error.noTree",["checkbox-config.range"]),b.height&&!this.showOverflow&&rx("vxe.error.notProp",["table.show-overflow"]),!e.triggerClAreaMnEvent){if(t.areaConfig&&rx("vxe.error.notProp",["area-config"]),t.clipConfig&&rx("vxe.error.notProp",["clip-config"]),t.fnrConfig&&rx("vxe.error.notProp",["fnr-config"]),x.area)return void ix("vxe.error.notProp",["mouse-config.area"]);x.area&&k.selectCellByHeader&&d.drag&&"cell"===h.trigger&&ix("vxe.error.notSupportProp",["area-config.selectCellByHeader & column-config.drag","column-drag-config.trigger=cell","column-drag-config.trigger=default | area-config.selectCellByHeader=false"]),x.area&&t.spanMethod&&rx("vxe.error.notSupportProp",["mouse-config.area","span-method","merge-cells"])}if(!e.handlePivotTableAggData){if(y.allowGroup)return void ix("vxe.error.notProp",["custom-config.allowGroup"]);if(y.allowValues)return void ix("vxe.error.notProp",["custom-config.allowValues"])}a&&b.drag&&!f.transform&&rx("vxe.error.notSupportProp",["row-config.drag","tree-config.transform=false","tree-config.transform=true"]),a&&S.isCrossTableDrag&&!S.isCrossDrag&&ix("vxe.error.reqSupportProp",["tree-config & row-drag-config.isCrossTableDrag","row-drag-config.isCrossDrag"]),t.dragConfig&&rx("vxe.error.delProp",["drag-config","row-drag-config"]),t.rowGroupConfig&&rx("vxe.error.delProp",["row-group-config","aggregate-config"]),_.countFields&&rx("vxe.error.delProp",["row-group-config.countFields","column.agg-func"]),_.aggregateMethod&&rx("vxe.error.delProp",["row-group-config.aggregateMethod","aggregate-config.calcValuesMethod"]),_.countMethod&&rx("vxe.error.delProp",["aggregate-config.countMethod","aggregate-config.calcValuesMethod"]),t.treeConfig&&f.children&&rx("vxe.error.delProp",["tree-config.children","tree-config.childrenField"]),t.treeConfig&&f.line&&rx("vxe.error.delProp",["tree-config.line","tree-config.showLine"]),x.area&&x.selected&&rx("vxe.error.errConflicts",["mouse-config.area","mouse-config.selected"]),x.area&&t.treeConfig&&!f.transform&&ix("vxe.error.notSupportProp",["mouse-config.area","tree-config.transform=false","tree-config.transform=true"]),t.editConfig&&p.activeMethod&&rx("vxe.error.delProp",["table.edit-config.activeMethod","table.edit-config.beforeEditMethod"]),g.halfField&&rx("vxe.error.delProp",["checkbox-config.halfField","checkbox-config.indeterminateField"]),t.editConfig&&ld(p)&&t.editRules&&(0===s||"0"===s)&&rx("vxe.error.reqSupportProp",["edit-config & edit-rules","min-height"]),a&&pc.arrayEach(["rowField","parentField","childrenField","hasChildField","mapChildrenField"],e=>{const t=f[e];t&&t.indexOf(".")>-1&&ix("vxe.error.errProp",[`${e}=${t}`,`${e}=${t.split(".")[0]}`])}),this.contextMenu&&(rx("vxe.error.delProp",["context-menu","menu-config"]),pc.isObject(this.contextMenu)||rx("vxe.error.errProp",[`table.context-menu=${this.contextMenu}`,"table.context-menu={}"])),t.menuConfig&&!pc.isObject(t.menuConfig)&&rx("vxe.error.errProp",[`table.menu-config=${t.menuConfig}`,"table.menu-config={}"]),t.exportConfig&&!pc.isObject(t.exportConfig)&&rx("vxe.error.errProp",[`table.export-config=${t.exportConfig}`,"table.export-config={}"]),t.importConfig&&!pc.isObject(t.importConfig)&&rx("vxe.error.errProp",[`table.import-config=${t.importConfig}`,"table.import-config={}"]),t.printConfig&&!pc.isObject(t.printConfig)&&rx("vxe.error.errProp",[`table.print-config=${t.printConfig}`,"table.print-config={}"]),t.treeConfig&&!pc.isObject(t.treeConfig)&&rx("vxe.error.errProp",[`table.tree-config=${t.treeConfig}`,"table.tree-config={}"]),t.customConfig&&!pc.isObject(t.customConfig)&&rx("vxe.error.errProp",[`table.custom-config=${t.customConfig}`,"table.custom-config={}"]),t.editConfig&&!pc.isObject(t.editConfig)&&rx("vxe.error.errProp",[`table.edit-config=${t.editConfig}`,"table.edit-config={}"]),t.emptyRender&&!pc.isObject(t.emptyRender)&&rx("vxe.error.errProp",[`table.empty-render=${t.emptyRender}`,"table.empty-render={}"]),b.currentMethod&&rx("vxe.error.delProp",["row-config.currentMethod","current-row-config.beforeSelectMethod"]),d.currentMethod&&rx("vxe.error.delProp",["row-config.currentMethod","current-column-config.beforeSelectMethod"]),t.editConfig&&!e.insert&&ix("vxe.error.reqModule",["Edit"]),t.editRules&&!e.validate&&ix("vxe.error.reqModule",["Validator"]),(g.range||t.keyboardConfig||t.mouseConfig)&&!e.handleCellMousedownEvent&&ix("vxe.error.reqModule",["Keyboard"]),(t.printConfig||t.importConfig||t.exportConfig)&&!e.exportData&&ix("vxe.error.reqModule",["Export"]),Object.assign(u,{startIndex:0,endIndex:1,visibleSize:0}),Object.assign(c,{startIndex:0,endIndex:1,visibleSize:0}),this.handleUpdateRowGroup(T),this.initData(),ux.on(e,"paste",this.handleGlobalPasteEvent),ux.on(e,"copy",this.handleGlobalCopyEvent),ux.on(e,"cut",this.handleGlobalCutEvent),ux.on(e,"mousedown",this.handleGlobalMousedownEvent),ux.on(e,"blur",this.handleGlobalBlurEvent),ux.on(e,"mousewheel",this.handleGlobalMousewheelEvent),ux.on(e,"keydown",this.handleGlobalKeydownEvent),ux.on(e,"resize",this.handleGlobalResizeEvent),ux.on(e,"scroll",this.handleGlobalScrollEvent),ux.on(e,"contextmenu",this.handleGlobalContextmenuEvent),e.preventEvent(null,"created")},mounted(){const e=this,t=e,n=e,r=e.$xeGrid,i=e.$xeGantt,o=r||i,a=e.computeColumnOpts,s=e.computeRowOpts,l=e.computeCustomOpts,c=e.computeVirtualYOpts;if(i){const t=i.$refs.refClassifyWrapperElem,r=e.$refs.refTeleportWrapper;t&&(r&&t.appendChild(r),n.teleportToWrapperElem=t)}if(o){const t=o.$refs.refPopupContainerElem,r=e.$refs.refPopupWrapperElem;t&&(r&&t.appendChild(r),n.popupToWrapperElem=t)}(a.drag||s.drag||l.allowSort)&&Qd();const{$listeners:u}=this;if(!this.menuConfig&&(u["menu-click"]||u["cell-menu"]||u["header-cell-menu"]||u["footer-cell-menu"])&&rx("vxe.error.reqProp",["menu-config"]),this.tooltipConfig||!u["cell-mouseenter"]&&!u["cell-mouseleave"]||rx("vxe.error.reqProp",["tooltip-config"]),e.$nextTick(()=>{const n=ad.getComponent("VxeLoading"),r=ad.getComponent("VxeTooltip"),{showOverflow:i,showHeaderOverflow:o,showFooterOverflow:a}=t,s=e.computeTooltipOpts,l=e.computeHeaderTooltipOpts,c=e.computeFooterTooltipOpts;if(t.loading&&(n||this.$scopedSlots.loading||(ix("vxe.error.reqComp",["vxe-loading"]),ix("vxe.error.errProp",["loading=true","loading=false | <template #loading>...</template>"]))),!r){let e=!1;"tooltip"===i&&(e=!0,ix("vxe.error.errProp",["show-overflow="+i,"show-overflow=false,title,ellipsis"])),!0===i&&"tooltip"===s.mode&&(e=!0,ix("vxe.error.notSupportProp",["show-overflow="+i,"tooltip-config.mode=tooltip","tooltip-config.mode=title,ellipsis"])),"tooltip"===o&&(e=!0,ix("vxe.error.errProp",["show-header-overflow="+o,"show-header-overflow=false,title,ellipsis"])),!0===o&&"tooltip"===l.mode&&(e=!0,ix("vxe.error.notSupportProp",["show-header-overflow="+o,"header-tooltip-config.mode=tooltip","header-tooltip-config.mode=title,ellipsis"])),"tooltip"===a&&(e=!0,ix("vxe.error.errProp",["show-footer-overflow="+a,"show-footer-overflow=false,title,ellipsis"])),!0===a&&"tooltip"===c.mode&&(e=!0,ix("vxe.error.notSupportProp",["show-footer-overflow="+a,"footer-tooltip-config.mode=tooltip","footer-tooltip-config.mode=title,ellipsis"])),e&&ix("vxe.error.reqComp",["vxe-tooltip"])}if(this.autoResize){const e=cx.create(()=>{this.autoResize&&this.handleResizeEvent()});e.observe(this.$el),e.observe(this.getParentElem()),this.$resize=e}}),"scroll"!==c.mode){const t=e.$refs.refTableViewportElem;t&&t.addEventListener("wheel",e.triggerBodyWheelEvent,{passive:!1})}e.preventEvent(null,"mounted")},activated(){this.recalculate().then(()=>this.refreshScroll()),this.preventEvent(null,"activated")},deactivated(){const e=this,t=e,n=e,{filterStore:r}=t;r.visible&&e.clearFilter(),e.closeTooltip(),n.isActivated=!1,this.preventEvent(null,"deactivated")},beforeDestroy(){const e=this,t=e,n=e,{_sToTime:r}=n;r&&clearTimeout(r);const i=e.$refs.refTeleportWrapper;i&&i.parentElement&&i.parentElement.removeChild(i);const o=e.$refs.refPopupWrapperElem;o&&o.parentElement&&o.parentElement.removeChild(o);const a=e.$refs.refCustomPopupToElem;a&&a.parentElement&&a.parentElement.removeChild(a);const s=e.$refs.refTableViewportElem;s&&s.removeEventListener("wheel",e.triggerBodyWheelEvent),this.$resize&&this.$resize.disconnect(),e.closeTooltip(),e.closeFilter(),e.closeMenu(),ux.off(e,"paste"),ux.off(e,"copy"),ux.off(e,"cut"),ux.off(e,"mousedown"),ux.off(e,"blur"),ux.off(e,"mousewheel"),ux.off(e,"keydown"),ux.off(e,"resize"),ux.off(e,"scroll"),ux.off(e,"contextmenu"),e.preventEvent(null,"beforeDestroy"),pc.assign(t,Wh()),pc.assign(n,Hh())},destroyed(){const e=this;e.preventEvent(null,"destroyed")},render(e){const t=ad.getComponent("VxeLoading"),n=ad.getComponent("VxeTooltip"),r=this,i=r.$xeGrid,o=r.$xeGantt,a=r,s=r.$scopedSlots,l=r,{xID:c}=r,{loading:u,stripe:d,showHeader:h,height:p,treeConfig:f,mouseConfig:m,showFooter:g,highlightCell:v,highlightHoverRow:b,highlightHoverColumn:y,editConfig:x,editRules:w}=a,{isGroup:C,overflowX:_,overflowY:S,scrollXLoad:k,scrollYLoad:E,tableData:O,initStore:T,isRowGroupStatus:$,columnStore:D,filterStore:M,customStore:F,tooltipStore:R}=l,{leftList:I,rightList:A}=D,P=s.loading,L={header:s.headerTooltip||s["header-tooltip"],body:s.tooltip,footer:s.footerTooltip||s["footer-tooltip"]},N=R.visible&&R.type?L[R.type]:null,j=r.computeTableStyle,B=r.computeRowDragOpts,V=r.computeTableTipConfig,z=r.computeValidTipConfig,H=r.computeValidOpts,W=r.computeCheckboxOpts,q=r.computeTreeOpts,G=r.computeRowOpts,Y=r.computeColumnOpts,U=r.computeSize,K=r.computeTableBorder,X=r.computeMouseOpts,Z=r.computeAreaOpts,Q=r.computeLoadingOpts,J=r.computeIsContentMenu,ee=l.isColLoading||l.isRowLoading||u,te=r.computeResizableOpts,ne=m&&X.area,re=r.computeColumnDragOpts,ie=r.computeScrollbarXToTop,oe=r.computeScrollbarYToLeft,{isCrossTableDrag:ae}=B,se={contextmenu:this.contextMenuEvent,keydown:this.keydownEvent};return ae&&!O.length&&(se.dragover=r.handleCrossTableRowDragoverEmptyEvent),e("div",{ref:"refElem",class:["vxe-table","vxe-table--render-default",`tid_${c}`,`border--${K}`,"sx-pos--"+(ie?"top":"bottom"),"sy-pos--"+(oe?"left":"right"),{[`size--${U}`]:U,[`valid-msg--${H.msgMode}`]:!!w,"vxe-editable":!!x,"old-cell-valid":w&&"obsolete"===ox().cellVaildMode,"cell--highlight":v,"cell--selected":m&&X.selected,"cell--area":ne,"header-cell--area":ne&&Z.selectCellByHeader,"body-cell--area":ne&&Z.selectCellByBody,"row--highlight":G.isHover||b,"column--highlight":Y.isHover||y,"checkbox--range":W.range,"col--drag-cell":Y.drag&&"cell"===re.trigger,"is--header":h,"not--header":!h,"is--footer":g,"not--footer":!g,"is--group":C,"is-row-group":$,"is--tree-line":f&&(q.showLine||q.line),"is--fixed-left":I.length,"is--fixed-right":A.length,"is--animat":!!a.animat,"is--round":a.round,"is--stripe":!f&&d,"is--loading":ee,"is--empty":!ee&&!O.length,"is--scroll-y":S,"not--scroll-y":!S,"is--scroll-x":_,"not--scroll-x":!_,"is--virtual-x":k,"is--virtual-y":E}],style:j,attrs:{spellcheck:!1},on:se},[e("div",{class:"vxe-table-slots",ref:"hideColumn"},this.$slots.default),e("div",{ref:"refVarElem",class:"vxe-table-vars"},[e("div",{class:"vxe-table-var-default"}),e("div",{class:"vxe-table-var-medium"}),e("div",{class:"vxe-table-var-small"}),e("div",{class:"vxe-table-var-mini"})]),e("div",{key:"tw",class:"vxe-table--render-wrapper"},ie?[Sx(e,r),Ox(e,r)]:[Ox(e,r),Sx(e,r)]),e("div",{key:"tn",ref:"refEmptyPlaceholder",class:"vxe-table--empty-place-wrapper",attrs:{xid:c}},[e("div",{class:"vxe-table--empty-placeholder"},[e("div",{class:"vxe-table--empty-content"},yx(e,r))])]),e("div",{key:"tl",class:"vxe-table--border-line"}),e("div",{key:"tcl",ref:"refColResizeBar",class:"vxe-table--resizable-col-bar"},te.showDragTip?[e("div",{ref:"refColResizeTip",class:"vxe-table--resizable-number-tip"})]:[]),e("div",{key:"ttw"},[e("div",{ref:"refTeleportWrapper"},[e("div",{key:"trl",ref:"refRowResizeBar",class:"vxe-table--resizable-row-bar"},te.showDragTip?[e("div",{class:"vxe-table--resizable-number-tip"})]:[]),t?e(t,{key:"lg",class:"vxe-table--loading",props:{value:ee,icon:Q.icon,text:Q.text},scopedSlots:P?{default:()=>r.callSlot(P,{$table:r,$grid:i,$gantt:o,loading:ee},e)}:{}}):P?e("div",{class:["vxe-loading--custom-wrapper",{"is--visible":ee}]},r.callSlot(P,{$table:r,$grid:i,$gantt:o,loading:ee},e)):hx(r),wx(e,this)])]),e("div",{key:"fpw",ref:"refCustomContainerElem"},[e("div",{ref:"refCustomPopupToElem"},[T.custom?e(Vv,{key:"cs",ref:"refTableCustom",props:{customStore:F}}):hx(r)])]),e("div",{key:"tpw"},[e("div",{ref:"refPopupWrapperElem"},[T.filter?e(Kv,{key:"tf",ref:"refTableFilter",props:{filterStore:M}}):hx(r),J?e(db,{key:"tm",ref:"refTableMenu"}):hx(r)])]),T.import&&this.importConfig?e(tb,{key:"it",props:{defaultOptions:this.importParams,storeData:this.importStore}}):hx(r),T.export&&(this.exportConfig||this.printConfig)?e(sb,{key:"et",props:{defaultOptions:this.exportParams,storeData:this.exportStore}}):hx(r),e("div",{},[n?e(n,{key:"ctp",ref:"refCommTooltip",props:{isArrow:!1,enterable:!1}}):hx(r),n?e(n,{key:"btp",ref:"refTooltip",props:{theme:V.theme,enterable:V.enterable,enterDelay:V.enterDelay,leaveDelay:V.leaveDelay,useHtml:pc.isBoolean(V.useHtml)?V.useHtml:void 0,useHTML:pc.isBoolean(V.useHTML)?V.useHTML:void 0,width:V.width,height:V.height,minWidth:V.minWidth,minHeight:V.minHeight,maxWidth:V.maxWidth,maxHeight:V.maxHeight,placement:V.placement,defaultPlacement:V.defaultPlacement,popupClassName:V.popupClassName},scopedSlots:N?{content:()=>{const{type:t,row:n,column:a,content:s}=R;if(N){if(a&&"header"===t)return e("div",{key:t},N({column:a,tooltipContent:s,$table:r,$grid:i,$gantt:o}));if(n&&a&&"body"===t)return e("div",{key:t},N({row:n,column:a,tooltipContent:s,$table:r,$grid:i,$gantt:o}));if(n&&a&&"footer"===t)return e("div",{key:t},N({row:n,column:a,tooltipContent:s,$table:r,$grid:i,$gantt:o}))}return hx(r)}}:{}}):hx(r),n&&this.editRules&&H.showErrorMessage&&("default"===H.message?!p:"tooltip"===H.message)?e(n,{key:"vtp",ref:"refValidTooltip",class:[{"old-cell-valid":w&&"obsolete"===ox().cellVaildMode},"vxe-table--valid-error"],props:{theme:z.theme,enterable:z.enterable,enterDelay:z.enterDelay,leaveDelay:z.leaveDelay}}):hx(r)])])},methods:cv},{warnLog:$x,errLog:Dx}=Ih("toolbar"),{getConfig:Mx,getIcon:Fx,getI18n:Rx,renderer:Ix,commands:Ax,createEvent:Px,globalMixins:Lx,renderEmptyElement:Nx}=ad;function jx(){return{isRefresh:!1,connectFlag:0,columns:[]}}function Bx(){return{connectTable:null}}const Vx={name:"VxeToolbar",mixins:[Lx.sizeMixin],props:{loading:Boolean,refresh:[Boolean,Object],refreshOptions:Object,import:[Boolean,Object],importOptions:Object,export:[Boolean,Object],exportOptions:Object,print:[Boolean,Object],printOptions:Object,zoom:[Boolean,Object],zoomOptions:Object,custom:[Boolean,Object],customOptions:Object,buttons:{type:Array,default:()=>Mx().toolbar.buttons},tools:{type:Array,default:()=>Mx().toolbar.tools},perfect:{type:Boolean,default:()=>Mx().toolbar.perfect},size:{type:String,default:()=>Mx().toolbar.size||Mx().size},className:[String,Function]},inject:{$xeGrid:{default:null},$xeGantt:{default:null}},data(){const e=pc.uniqueId(),t=jx();return Object.assign(Object.assign({},{}),{xID:e,reactData:t})},computed:Object.assign(Object.assign({},{}),{computeRefreshOpts(){const e=this,t=e;return Object.assign({},pc.clone(Mx().toolbar.refresh,!0),t.refreshOptions,t.refresh)},computeImportOpts(){const e=this,t=e;return Object.assign({},pc.clone(Mx().toolbar.import,!0),t.importOptions,t.import)},computeExportOpts(){const e=this,t=e;return Object.assign({},pc.clone(Mx().toolbar.export,!0),t.exportOptions,t.export)},computePrintOpts(){const e=this,t=e;return Object.assign({},pc.clone(Mx().toolbar.print,!0),t.printOptions,t.print)},computeZoomOpts(){const e=this,t=e;return Object.assign({},pc.clone(Mx().toolbar.zoom,!0),t.zoomOptions,t.zoom)},computeCustomOpts(){const e=this,t=e;return Object.assign({},pc.clone(Mx().toolbar.custom,!0),t.customOptions,t.custom)},computeTableCustomOpts(){const e=this,t=e.reactData,n=e.internalData,{connectTable:r}=n,i=r;return(t.connectFlag||i)&&i?i.computeCustomOpts:{trigger:""}},computeTrigger(){const e=this,t=e.computeTableCustomOpts;return t.trigger}}),methods:{dispatchEvent(e,t,n){const r=this;r.$emit(e,Px(n,{$toolbar:r},t))},fintTable(){const e=this,{$children:t}=this.$parent,n=t.indexOf(e);return pc.find(t,(e,t)=>e&&e.loadData&&t>n&&"vxe-table"===e.$vnode.componentOptions.tag)},syncUpdate(e){const t=this,n=t.reactData,r=t.internalData;r.connectTable=e.$table,n.columns=e.collectColumn,n.connectFlag++},checkTable(){const e=this,t=e.internalData,{connectTable:n}=t,r=n;if(r)return!0;Dx("vxe.error.barUnableLink")},handleClickSettingEvent({$event:e}){const t=this,n=t.internalData,{connectTable:r}=n,i=r;i&&i.triggerCustomEvent&&i.triggerCustomEvent(e)},handleMouseenterSettingEvent({$event:e}){const t=this,n=t.internalData,{connectTable:r}=n,i=r;i&&i.customOpenEvent(e)},handleMouseleaveSettingEvent({$event:e}){const t=this,n=t.internalData,{connectTable:r}=n,i=r;if(i){const{customStore:t}=i.reactData;t.activeBtn=!1,setTimeout(()=>{t.activeBtn||t.activeWrapper||i.customCloseEvent(e)},350)}},refreshEvent({$event:e}){const t=this,n=t.reactData,r=t.$xeGrid,i=t.$xeGantt,o=r||i,{isRefresh:a}=n,s=t.computeRefreshOpts;if(!a){const t=s.queryMethod||s.query;if(t){n.isRefresh=!0;try{Promise.resolve(t({})).catch(e=>e).then(()=>{n.isRefresh=!1})}catch(l){n.isRefresh=!1}}else o&&(n.isRefresh=!0,o.triggerToolbarCommitEvent({code:s.code||"reload"},e).catch(()=>{}).then(()=>{n.isRefresh=!1}))}},zoomEvent({$event:e}){const t=this,n=t.$xeGrid,r=t.$xeGantt,i=n||r;i?i.triggerZoomEvent(e):$x("vxe.error.notProp",["zoom"])},importEvent(){const e=this,t=e.internalData;if(e.checkTable()){const{connectTable:e}=t,n=e;n&&n.importData()}},openImportEvent(){const e=this,t=e.internalData;if(e.checkTable()){const{connectTable:e}=t,n=e;n&&n.openImport()}},exportEvent(){const e=this,t=e.internalData;if(e.checkTable()){const{connectTable:e}=t,n=e;n&&n.exportData()}},openExportEvent(){const e=this,t=e.internalData;if(e.checkTable()){const{connectTable:e}=t,n=e;n&&n.openExport()}},printEvent(){const e=this,t=e.internalData;if(e.checkTable()){const{connectTable:e}=t,n=e;n&&n.print()}},openPrintEvent(){const e=this,t=e.internalData;if(e.checkTable()){const{connectTable:e}=t,n=e;n&&n.openPrint()}},handleDefaultCodeEvent(e,t,n){const r=this;switch(t.code){case"print":r.printEvent();break;case"open_print":r.openPrintEvent();break;case"custom":r.handleClickSettingEvent(e);break;case"export":r.exportEvent();break;case"open_export":r.openExportEvent();break;case"import":r.importEvent();break;case"open_import":r.openImportEvent();break;case"zoom":r.zoomEvent(e);break;case"refresh":r.refreshEvent(e);break;default:n();break}},btnEvent(e,t){const n=this,r=n.internalData,i=n.$xeGrid,o=n.$xeGantt,a=i||o,{$event:s}=e,{connectTable:l}=r,c=l,{code:u}=t;u&&n.handleDefaultCodeEvent(e,t,()=>{if(a)a.triggerToolbarBtnEvent(t,s);else{const e=Ax.get(u),r={code:u,button:t,$table:c,$grid:i,$gantt:o,$event:s};if(e){const t=e.tableCommandMethod||e.commandMethod;t?t(r):Dx("vxe.error.notCommands",[u])}n.dispatchEvent("button-click",r,s)}})},tolEvent(e,t){const n=this,r=n.internalData,i=n.$xeGrid,o=n.$xeGantt,a=i||o,{$event:s}=e,{connectTable:l}=r,c=l,{code:u}=t;u&&n.handleDefaultCodeEvent(e,t,()=>{if(a)a.triggerToolbarTolEvent(t,s);else{const e=Ax.get(u),r={code:u,button:null,tool:t,$table:c,$grid:i,$gantt:o,$event:s};if(e){const t=e.tableCommandMethod||e.commandMethod;t?t(r):Dx("vxe.error.notCommands",[u])}n.dispatchEvent("tool-click",r,s)}})},renderDropdowns(e,t,n){const r=ad.getComponent("VxeButton"),i=this,{dropdowns:o}=t,a=[];return o?o.map((t,o)=>!1===t.visible?Nx(i):r?e(r,{key:o,props:Object.assign({},t,{content:t.content||t.name,options:void 0}),on:{click:e=>n?i.btnEvent(e,t):i.tolEvent(e,t)}}):Nx(i)):a},renderLeftBtns(e){const t=ad.getComponent("VxeButton"),n=this,r=n,i=n.$scopedSlots,o=n.internalData,a=n.$xeGrid,s=n.$xeGantt,{buttons:l}=r,{connectTable:c}=o,u=c,d=i.buttons,h=i.buttonPrefix||i["button-prefix"],p=i.buttonSuffix||i["button-suffix"],f=[];if(l){const r=(u?u.computeRendererOpts:null)||{};l.forEach(i=>{const{dropdowns:o,buttonRender:l}=i;if(!1!==i.visible){const c=l&&l.name?r[l.name]||Ix.get(l.name):null;if(l&&c&&c.renderToolbarButton){const t=c.toolbarButtonClassName,n={$grid:a,$gantt:s,$table:u,button:i};f.push(e("span",{class:["vxe-button--item",t?pc.isFunction(t)?t(n):t:""]},Bp(c.renderToolbarButton(e,l,n))))}else t&&f.push(e(t,{props:Object.assign({},i,{content:i.content||i.name,options:void 0}),on:{click:e=>n.btnEvent(e,i)},scopedSlots:o&&o.length?{dropdowns:()=>n.renderDropdowns(e,i,!0)}:{}}))}})}return[e("div",{class:"vxe-button--prefix-wrapper"},h?Bp(h.call(n,{buttons:l||[],$grid:a,$gantt:s,$table:u})):[]),e("div",{class:"vxe-button--item-wrapper"},d?Bp(d.call(n,{buttons:l||[],$grid:a,$gantt:s,$table:u})):f),e("div",{class:"vxe-button--suffix-wrapper"},p?Bp(p.call(n,{buttons:l||[],$grid:a,$gantt:s,$table:u})):[])]},renderRightTools(e){const t=ad.getComponent("VxeButton"),n=this,r=n,i=n.$scopedSlots,o=n.internalData,a=n.$xeGrid,s=n.$xeGantt,{tools:l}=r,{connectTable:c}=o,u=c,d=i.tools,h=i.toolPrefix||i["tool-prefix"],p=i.toolSuffix||i["tool-suffix"],f=[];if(l){const r=(u?u.computeRendererOpts:null)||{};l.forEach((i,o)=>{const{dropdowns:l,toolRender:c}=i;if(!1!==i.visible){const d=c&&c.name?r[c.name]||Ix.get(c.name):null;if(c&&d&&d.renderToolbarTool){const t=d.toolbarToolClassName,n={$grid:a,$gantt:s,$table:u,tool:i};f.push(e("span",{key:o,class:["vxe-tool--item",t?pc.isFunction(t)?t(n):t:""]},Bp(d.renderToolbarTool(e,c,n))))}else t&&f.push(e(t,{key:o,props:Object.assign({},i,{content:i.content||i.name,options:void 0}),on:{click:e=>n.tolEvent(e,i)},scopedSlots:l&&l.length?{dropdowns:()=>n.renderDropdowns(e,i,!1)}:{}}))}})}return[e("div",{class:"vxe-tool--prefix-wrapper"},h?Bp(h.call(n,{tools:l||[],$grid:a,$gantt:s,$table:u})):[]),e("div",{class:"vxe-tool--item-wrapper"},d?Bp(d.call(n,{tools:l||[],$grid:a,$gantt:s,$table:u})):f),e("div",{class:"vxe-tool--suffix-wrapper"},p?Bp(p.call(n,{tools:l||[],$grid:a,$gantt:s,$table:u})):[])]},renderToolImport(e){const t=ad.getComponent("VxeButton"),n=this,r=n.computeImportOpts;return t?e(t,{key:"import",props:{circle:!0,icon:r.icon||Fx().TOOLBAR_TOOLS_IMPORT,title:Rx("vxe.toolbar.import")},on:{click:n.openImportEvent}}):Nx(n)},renderToolExport(e){const t=ad.getComponent("VxeButton"),n=this,r=n.computeExportOpts;return t?e(t,{key:"export",props:{circle:!0,icon:r.icon||Fx().TOOLBAR_TOOLS_EXPORT,title:Rx("vxe.toolbar.export")},on:{click:n.openExportEvent}}):Nx(n)},renderToolPrint(e){const t=ad.getComponent("VxeButton"),n=this,r=n.computePrintOpts;return t?e(t,{key:"print",props:{circle:!0,icon:r.icon||Fx().TOOLBAR_TOOLS_PRINT,title:Rx("vxe.toolbar.print")},on:{click:n.openPrintEvent}}):Nx(n)},renderToolRefresh(e){const t=ad.getComponent("VxeButton"),n=this,r=n.reactData,i=n.computeRefreshOpts;return t?e(t,{key:"refresh",props:{circle:!0,icon:r.isRefresh?i.iconLoading||Fx().TOOLBAR_TOOLS_REFRESH_LOADING:i.icon||Fx().TOOLBAR_TOOLS_REFRESH,title:Rx("vxe.toolbar.refresh")},on:{click:n.refreshEvent}}):Nx(n)},renderToolZoom(e){const t=ad.getComponent("VxeButton"),n=this,r=n.$xeGrid,i=n.$xeGantt,o=r||i,a=n.computeZoomOpts;return o&&t?e(t,{key:"zoom",props:{circle:!0,icon:o.isMaximized()?a.iconOut||Fx().TOOLBAR_TOOLS_MINIMIZE:a.iconIn||Fx().TOOLBAR_TOOLS_FULLSCREEN,title:Rx("vxe.toolbar.zoom"+(o.isMaximized()?"Out":"In"))},on:{click:n.zoomEvent}}):Nx(n)},renderToolCustom(e){const t=ad.getComponent("VxeButton"),n=this,r=n.computeCustomOpts,i=n.computeTrigger,o={};return"manual"===i||("hover"===i?(o.mouseenter=n.handleMouseenterSettingEvent,o.mouseleave=n.handleMouseleaveSettingEvent):o.click=n.handleClickSettingEvent),t?e(t,{key:"custom",props:{circle:!0,icon:r.icon||Fx().TOOLBAR_TOOLS_CUSTOM,title:Rx("vxe.toolbar.custom"),className:"vxe-toolbar-custom-target"},on:o}):Nx(n)},renderVN(e){const t=this,n=t,r=t.$xeGrid,i=t.$xeGantt,o=r||i,{perfect:a,loading:s,refresh:l,zoom:c,custom:u,className:d}=n,h=t.computeSize;return e("div",{ref:"refElem",class:["vxe-toolbar",d?pc.isFunction(d)?d({$toolbar:t}):d:"",{[`size--${h}`]:h,"is--perfect":a,"is--loading":s}]},[e("div",{class:"vxe-buttons--wrapper"},t.renderLeftBtns(e)),e("div",{class:"vxe-tools--wrapper"},t.renderRightTools(e)),e("div",{class:"vxe-tools--operate"},[n.import?t.renderToolImport(e):Nx(t),n.export?t.renderToolExport(e):Nx(t),n.print?t.renderToolPrint(e):Nx(t),l?t.renderToolRefresh(e):Nx(t),c&&o?t.renderToolZoom(e):Nx(t),u?t.renderToolCustom(e):Nx(t)])])}},created(){const e=this,t=e,n=e.$xeGrid,r=e.$xeGantt,i=n||r;e.internalData=Bx(),e.$nextTick(()=>{const n=e.computeRefreshOpts,r=e.fintTable(),o=n.queryMethod||n.query;!t.refresh||i||o||$x("vxe.error.notFunc",["queryMethod"]),pc.isPlainObject(t.custom)&&$x("vxe.error.delProp",["custom={...}","custom=boolean & custom-options={...}"]),pc.isPlainObject(t.print)&&$x("vxe.error.delProp",["print={...}","print=boolean & print-options={...}"]),pc.isPlainObject(t.export)&&$x("vxe.error.delProp",["export={...}","export=boolean & export-options={...}"]),pc.isPlainObject(t.import)&&$x("vxe.error.delProp",["import={...}","import=boolean & import-options={...}"]),pc.isPlainObject(t.refresh)&&$x("vxe.error.delProp",["refresh={...}","refresh=boolean & refresh-options={...}"]),pc.isPlainObject(t.refresh)&&$x("vxe.error.delProp",["zoom={...}","zoom=boolean & zoom-options={...}"]),r&&r.connect(e);const a=e.computeCustomOpts;a.isFooter&&$x("vxe.error.delProp",["toolbar.custom.isFooter","table.custom-config.showFooter"]),a.showFooter&&$x("vxe.error.delProp",["toolbar.custom.showFooter","table.custom-config.showFooter"]),a.immediate&&$x("vxe.error.delProp",["toolbar.custom.immediate","table.custom-config.immediate"]),a.trigger&&$x("vxe.error.delProp",["toolbar.custom.trigger","table.custom-config.trigger"])});const o=ad.getComponent("VxeButton");(t.refresh||t.import||t.export||t.print||t.zoom)&&(o||Dx("vxe.error.reqComp",["vxe-button"]))},destroyed(){const e=this,t=e.reactData,n=e.internalData;pc.assign(t,jx()),pc.assign(n,Bx())},render(e){return this.renderVN(e)}},{warnLog:zx,errLog:Hx}=Ih("grid"),{getConfig:Wx,getI18n:qx,commands:Gx,globalEvents:Yx,globalMixins:Ux,createEvent:Kx,GLOBAL_EVENT_KEYS:Xx,renderEmptyElement:Zx}=ad,Qx={},Jx=Object.keys(vf),ew=[["Form"],["Toolbar","Top","Table","Bottom","Pager"]];function tw(e){const{$listeners:t,proxyConfig:n,proxyOpts:r}=e,i={};return pc.each(t,(t,n)=>{i[n]=(...t)=>{e.$emit(n,...t)}}),n&&(r.sort&&(i["sort-change"]=e.sortChangeEvent,i["clear-all-sort"]=e.clearAllSortEvent),r.filter&&(i["filter-change"]=e.filterChangeEvent,i["clear-all-filter"]=e.clearAllFilterEvent)),i}function nw(){var e;return{tableLoading:!1,proxyInited:!1,isZMax:!1,tableData:[],filterData:[],formData:{},sortData:[],footerData:[],tZindex:0,tablePage:{total:0,pageSize:(null===(e=Wx().pager)||void 0===e?void 0:e.pageSize)||10,currentPage:1}}}function rw(){return{uFoot:!1}}pc.each(Tx.methods,(e,t)=>{Qx[t]=function(...e){const n=this,r=n.$refs.refTable;return r&&r[t](...e)}});const iw={name:"VxeGrid",mixins:[Ux.sizeMixin],props:Object.assign(Object.assign({},vf),{layouts:Array,columns:Array,pagerConfig:Object,proxyConfig:Object,toolbarConfig:Object,formConfig:Object,zoomConfig:Object,size:{type:String,default:()=>Wx().grid.size||Wx().size}}),provide(){const e=this,t=null;return{$xeGrid:e,$xeGantt:t}},data(){const e=pc.uniqueId(),t=nw();return Object.assign(Object.assign({},{}),{xID:e,reactData:t})},computed:Object.assign(Object.assign({},{}),{isRespMsg(){const e=this;return e.computeIsRespMsg},computeIsRespMsg(){const e=this,t=e.computeProxyOpts;return!!(pc.isBoolean(t.message)?t.message:t.showResponseMsg)},isActiveMsg(){const e=this;return e.computeIsActiveMsg},computeIsActiveMsg(){const e=this,t=e.computeProxyOpts;return pc.isBoolean(t.showActionMsg)?t.showActionMsg:!!t.showActiveMsg},proxyOpts(){const e=this;return e.computeProxyOpts},computeProxyOpts(){const e=this,t=e;return pc.merge({},pc.clone(Wx().grid.proxyConfig,!0),t.proxyConfig)},pagerOpts(){const e=this;return e.computePagerOpts},computePagerOpts(){const e=this,t=e;return Object.assign({},Wx().grid.pagerConfig,t.pagerConfig)},formOpts(){const e=this;return e.computeFormOpts},computeFormOpts(){const e=this,t=e;return Object.assign({},Wx().grid.formConfig,t.formConfig)},toolbarOpts(){const e=this;return e.computeToolbarOpts},computeToolbarOpts(){const e=this,t=e;return Object.assign({},Wx().grid.toolbarConfig,t.toolbarConfig)},zoomOpts(){const e=this;return e.computeZoomOpts},computeZoomOpts(){const e=this,t=e;return Object.assign({},Wx().grid.zoomConfig,t.zoomConfig)},computeStyles(){const e=this,t=e,n=e.reactData,{height:r,maxHeight:i}=t,{isZMax:o,tZindex:a}=n,s={};return o?s.zIndex=a:(r&&(s.height="auto"===r||"100%"===r?"100%":lh(r)),i&&(s.maxHeight="auto"===i||"100%"===i?"100%":lh(i))),s},computeTableExtendProps(){const e=this,t=e,n={},r=t;return Jx.forEach(e=>{void 0!==r[e]&&(n[e]=r[e])}),n},computeTableProps(){const e=this,t=e,n=e.reactData,{showFooter:r,seqConfig:i,pagerConfig:o,editConfig:a,proxyConfig:s}=t,{isZMax:l,tablePage:c,footerData:u}=n,d=e.computeTableExtendProps,h=e.computeProxyOpts,p=e.computePagerOpts,f=e.computeIsLoading,m=Object.assign({},d);return(r&&!m.footerData||h.footer&&u.length)&&(m.footerData=u),l&&(m.maxHeight?m.maxHeight="100%":m.height="100%"),s&&ld(h)&&(m.loading=f,o&&h.seq&&ld(p)&&(m.seqConfig=Object.assign({},i,{startIndex:(c.currentPage-1)*c.pageSize}))),a&&(m.editConfig=Object.assign({},a)),m},tableProps(){const e=this;return e.computeTableProps},computeCurrLayoutConf(){const e=this,t=e,{layouts:n}=t;let r=[];r=n&&n.length?n:Wx().grid.layouts||ew;let i=[],o=[],a=[];return r.length&&(pc.isArray(r[0])?(i=r[0],o=r[1]||[],a=r[2]||[]):o=r),{headKeys:i,bodyKeys:o,footKeys:a}},computeCustomCurrentPageFlag(){const e=this,t=e.computePagerOpts;return t.currentPage},computeCustomPageSizeFlag(){const e=this,t=e.computePagerOpts;return t.pageSize},computeCustomTotalFlag(){const e=this,t=e.computePagerOpts;return t.total},computePageCount(){const e=this,t=e.reactData,{tablePage:n}=t;return Math.max(Math.ceil(n.total/n.pageSize),1)},computeIsLoading(){const e=this,t=e,n=e.reactData,{loading:r,proxyConfig:i}=t,{tableLoading:o}=n,a=e.computeProxyOpts,{showLoading:s}=a;return r||o&&s&&i&&ld(a)}}),watch:{columns(e){const t=this;t.$nextTick(()=>t.loadColumn(e))},toolbar(e){const t=this;e&&t.initToolbar()},toolbarConfig(e){const t=this;e&&t.initToolbar()},proxyConfig(){const e=this;e.initProxy()},computeCustomCurrentPageFlag(){const e=this;e.initPages("currentPage")},computeCustomPageSizeFlag(){const e=this;e.initPages("pageSize")},computeCustomTotalFlag(){const e=this;e.initPages("total")}},methods:Object.assign(Object.assign({},Qx),{dispatchEvent(e,t,n){const r=this;r.$emit(e,Kx(n,{$grid:r,$gantt:null},t))},initPages(e){const t=this,n=t,r=t.reactData,{tablePage:i}=r,{pagerConfig:o}=n,a=t.computePagerOpts;if(o&&ld(a))if(e)a[e]&&(i[e]=pc.toNumber(a[e]));else{const{currentPage:e,pageSize:t,total:n}=a;e&&(i.currentPage=e),t&&(i.pageSize=t),n&&(i.total=n)}},callSlot(e,t,n){const r=this,i=r.$scopedSlots;return e&&(pc.isString(e)&&(e=i[e]||null),pc.isFunction(e))?Bp(e.call(this,t,n)):[]},getEl(){const e=this;return e.$refs.refElem},getExcludeHeight(){const e=this,t=e,n=e.reactData,{height:r}=t,{isZMax:i}=n,o=e.$refs.refElem;if(o){const t=e.$refs.refFormWrapper,n=e.$refs.refToolbarWrapper,a=e.$refs.refTopWrapper,s=e.$refs.refBottomWrapper,l=e.$refs.refPagerWrapper,c=o.parentElement;let u=0;return!c||"100%"!==r&&"auto"!==r||(u=i?0:hh(c)),u+hh(o)+dh(t)+dh(n)+dh(a)+dh(s)+dh(l)}return 0},getParentHeight(){const e=this,t=e.reactData,n=e.$refs.refElem;if(n){const r=n.parentElement;return(t.isZMax?uh().visibleHeight:r?pc.toNumber(getComputedStyle(r).height):0)-e.getExcludeHeight()}return 0},initToolbar(){const e=this;e.$nextTick(()=>{const t=e.$refs.refTable,n=e.$refs.refToolbar;t&&n&&t.connectToolbar(n)})},getDefaultFormData(){const e=this,t=e.computeFormOpts;if(t.items){const e={};return t.items.forEach(t=>{const{field:n,itemRender:r}=t;if(n){let i=null;if(r){const{startField:n,endField:o,defaultValue:a}=r;pc.isFunction(a)?i=a({item:t}):pc.isUndefined(a)||(i=a),n&&o&&(pc.set(e,n,null),pc.set(e,o,null))}e[n]=i}}),e}return{}},initProxy(){const e=this,t=e,n=e.reactData,r=e.internalData,{proxyConfig:i,formConfig:o}=t,{proxyInited:a}=n,s=e.computeProxyOpts,l=e.computeFormOpts;i&&(ld(o)&&s.form&&l.items&&(n.formData=e.getDefaultFormData()),a||(n.proxyInited=!0,!1!==s.autoLoad&&e.$nextTick().then(()=>{r.uFoot=!0;const t=e.commitProxy("initial");return r.uFoot=!1,e.updateQueryFooter(),t}).then(t=>{e.dispatchEvent("proxy-query",Object.assign(Object.assign({},t),{isInited:!0}),new Event("initial"))})))},updateQueryFooter(){const e=this,t=e.computeProxyOpts,{ajax:n}=t;if(n&&n.queryFooter)return e.commitProxy("queryFooter")},handleGlobalKeydownEvent(e){const t=this,n=t.reactData,r=t.computeZoomOpts,i=Yx.hasKey(e,Xx.ESCAPE);i&&n.isZMax&&!1!==r.escRestore&&t.triggerZoomEvent(e)},getRespMsg(e,t){const n=this,r=n.computeProxyOpts,i=r.response||r.props||{},o=i.message,a=n.$refs.refTable;let s;return e&&o&&(s=pc.isFunction(o)?o({data:e,$table:a,$grid:n,$gantt:null}):pc.get(e,o)),s||qx(t)},handleDeleteRow(e,t,n){const r=this,i=r.computeIsActiveMsg,o=r.getCheckboxRecords();if(i)if(o.length){if(ad.modal)return ad.modal.confirm({id:`cfm_${e}`,content:qx(t),escClosable:!0}).then(e=>{if("confirm"===e)return n()})}else ad.modal&&ad.modal.message({id:`msg_${e}`,content:qx("vxe.grid.selectOneRecord"),status:"warning"});else o.length&&n();return Promise.resolve()},triggerPendingEvent(e){const t=this,n=t.computeIsActiveMsg,r=t.$refs.refTable,i=r.getCheckboxRecords();i.length?(r.togglePendingRow(i),t.clearCheckboxRow()):n&&ad.modal&&ad.modal.message({id:e,content:qx("vxe.grid.selectOneRecord"),status:"warning"})},commitProxy(e,...t){const n=this,r=n,i=n.reactData,o=n.internalData,a=r.toolbar,{showFooter:s,proxyConfig:l,toolbarConfig:c,pagerConfig:u,editRules:d,validConfig:h}=r,{tablePage:p}=i,f=n.computeIsActiveMsg,m=n.computeIsRespMsg,g=n.computeProxyOpts,v=n.computePagerOpts,b=n.computeToolbarOpts,{beforeQuery:y,afterQuery:x,beforeQueryFooter:w,afterQueryFooter:C,beforeDelete:_,afterDelete:S,beforeSave:k,afterSave:E,ajax:O={}}=g,T=g.response||g.props||{},$=n.$refs.refTable;let D=n.getFormData(),M=null,F=null;if(pc.isString(e)){const{buttons:t}=b,n=(c||a)&&ld(b)&&t?pc.findTree(t,t=>t.code===e,{children:"dropdowns"}):null;M=n?n.item:null,F=e}else M=e,F=M.code;const R=M?M.params:null;switch(F){case"insert":return $.insert({});case"insert_edit":return $.insert({}).then(({row:e})=>$.setEditRow(e,!0));case"insert_actived":return $.insert({}).then(({row:e})=>$.setEditRow(e,!0));case"mark_cancel":n.triggerPendingEvent(F);break;case"remove":return n.handleDeleteRow(F,"vxe.grid.removeSelectRecord",()=>$.removeCheckboxRow());case"import":$.importData(R);break;case"open_import":$.openImport(R);break;case"export":$.exportData(R);break;case"open_export":$.openExport(R);break;case"reset_custom":$.resetCustom(!0);break;case"initial":case"reload":case"query":{const e=O.beforeQuery,r=O.query,o=O.afterQuery,a=O.querySuccess,c=O.queryError;if(r){const d="initial"===F,h="reload"===F;if(!d&&i.tableLoading)return n.$nextTick();let f=null,m=[],b=[],w={};if(u&&((d||h)&&(p.currentPage=1),ld(u)&&(w=Object.assign({},p))),d){if(l&&ld(g)&&g.form&&(D=n.getDefaultFormData(),i.formData=D),$){const e=$,{tableFullColumn:t,fullColumnFieldData:n}=e,r=$.computeSortOpts;let i=r.defaultSort;t.forEach(e=>{e.order=null}),i&&(pc.isArray(i)||(i=[i]),m=i.map(e=>{const{field:t,order:r}=e,i=n[t];if(i){const e=i.column;e&&(e.order=r)}return{field:t,property:t,order:r}})),b=$.getCheckedFilters()}}else $&&(h?f=$.clearAll():(m=$.getSortColumns(),b=$.getCheckedFilters()));const C={$table:$,$grid:n,$gantt:null,code:F,button:M,isInited:d,isReload:h,page:w,sort:m.length?m[0]:{},sorts:m,filters:b,form:D,options:r},_=()=>(i.sortData=m,i.filterData=b,i.tableLoading=!0,Promise.all([Promise.resolve((y||r)(C,...t)),f]).then(([e])=>{if(i.tableLoading=!1,o)o(Object.assign(Object.assign({},C),{response:e,status:"success"}),...t);else{let r=[];if(e){const t=T.list,o=T.result,a={data:e,$table:$,$grid:n,$gantt:null};if(u&&ld(v)){const t=T.total,n=(pc.isFunction(t)?t(a):pc.get(e,t||"page.total"))||0;p.total=pc.toNumber(n),r=(pc.isFunction(o)?o(a):pc.get(e,o||"result"))||[];const i=Math.max(Math.ceil(n/p.pageSize),1);p.currentPage>i&&(p.currentPage=i)}else pc.isArray(e)?r=e:t&&(r=(pc.isFunction(t)?t(a):pc.get(e,t))||[]);if(s){const t=T.footerData,n=t?pc.isFunction(t)?t(a):pc.get(e,t):[];pc.isArray(n)&&(i.footerData=n)}}$?$.loadData(r):n.$nextTick(()=>{const e=n.$refs.refTable;e&&e.loadData(r)}),x&&x(Object.assign(Object.assign({},C),{response:e}),...t)}return a&&a(Object.assign(Object.assign({},C),{response:e})),{status:!0}}).catch(e=>(i.tableLoading=!1,o&&o(Object.assign(Object.assign({},C),{response:e,status:"error"}),...t),c&&c(Object.assign(Object.assign({},C),{response:e})),{status:!1})));return e?Promise.resolve(e(C,...t)).then(e=>{if(!1!==e)return _()}):_()}Hx("vxe.error.notFunc",["proxy-config.ajax.query"]);break}case"queryFooter":{const e=O.beforeQueryFooter,r=O.queryFooter,o=O.afterQueryFooter,a=O.queryFooterSuccess,s=O.queryFooterError;if(r){let l=[];$&&(l=$.getCheckedFilters());let c={};u&&ld(u)&&(c=Object.assign({},p));const d={$table:$,$grid:n,$gantt:null,code:F,button:M,page:c,filters:l,form:D,options:r},h=()=>Promise.resolve((w||r)(d,...t)).then(e=>(o?o(Object.assign(Object.assign({},d),{response:e,status:"success"}),...t):(i.footerData=pc.isArray(e)?e:[],C&&C(Object.assign(Object.assign({},d),{response:e}),...t)),a&&a(Object.assign(Object.assign({},d),{response:e})),{status:!0})).catch(e=>(o&&o(Object.assign(Object.assign({},d),{response:e,status:"error"}),...t),s&&s(Object.assign(Object.assign({},d),{response:e})),{status:!1}));return e?Promise.resolve(e(d,...t)).then(e=>{if(!1!==e)return h()}):h()}Hx("vxe.error.notFunc",["proxy-config.ajax.queryFooter"]);break}case"delete":{const e=O.beforeDelete,r=O.delete,a=O.afterDelete,s=O.deleteSuccess,l=O.deleteError;if(r){const c=$.getCheckboxRecords(),u=c.filter(e=>!$.isInsertByRow(e)),d={removeRecords:u},h={$table:$,$grid:n,$gantt:null,code:F,button:M,body:d,form:D,options:r};if(c.length)return n.handleDeleteRow(F,"vxe.grid.deleteSelectRecord",()=>{if(!u.length)return $.remove(c);const d=()=>(i.tableLoading=!0,Promise.resolve((_||r)(h,...t)).then(e=>(i.tableLoading=!1,a?a(Object.assign(Object.assign({},h),{response:e,status:"success"}),...t):($.setPendingRow(u,!1),m&&ad.modal&&ad.modal.message({content:n.getRespMsg(e,"vxe.grid.delSuccess"),status:"success"}),S?S(Object.assign(Object.assign({},h),{response:e}),...t):(o.uFoot=!0,n.commitProxy("query"),o.uFoot=!1,n.updateQueryFooter())),s&&s(Object.assign(Object.assign({},h),{response:e})),{status:!0})).catch(e=>(i.tableLoading=!1,a?a(Object.assign(Object.assign({},h),{response:e,status:"error"}),...t):m&&ad.modal&&ad.modal.message({id:F,content:n.getRespMsg(e,"vxe.grid.operError"),status:"error"}),l&&l(Object.assign(Object.assign({},h),{response:e})),{status:!1})));return e?Promise.resolve(e(h,...t)).then(e=>{if(!1!==e)return d()}):d()});f&&ad.modal&&ad.modal.message({id:F,content:qx("vxe.grid.selectOneRecord"),status:"warning"})}else Hx("vxe.error.notFunc",["proxy-config.ajax.delete"]);break}case"save":{const e=O.beforeSave,r=O.save,a=O.afterSave,s=O.saveSuccess,l=O.saveError;if(r){const c=n.getRecordset(),{insertRecords:u,removeRecords:p,updateRecords:g,pendingRecords:v}=c,b={$table:$,$grid:n,$gantt:null,code:F,button:M,body:c,form:D,options:r};u.length&&(c.pendingRecords=v.filter(e=>-1===u.indexOf(e))),v.length&&(c.insertRecords=u.filter(e=>-1===v.indexOf(e)));let y=Promise.resolve();return d&&(y=n[h&&"full"===h.msgMode?"fullValidate":"validate"](c.insertRecords.concat(g))),y.then(u=>{if(!u){if(c.insertRecords.length||p.length||g.length||c.pendingRecords.length){const c=()=>(i.tableLoading=!0,Promise.resolve((k||r)(b,...t)).then(e=>(i.tableLoading=!1,a?a(Object.assign(Object.assign({},b),{response:e,status:"success"}),...t):($.clearPendingRow(),m&&ad.modal&&ad.modal.message({content:n.getRespMsg(e,"vxe.grid.saveSuccess"),status:"success"}),E?E(Object.assign(Object.assign({},b),{response:e}),...t):(o.uFoot=!0,n.commitProxy("query"),o.uFoot=!1,n.updateQueryFooter())),s&&s(Object.assign(Object.assign({},b),{response:e})),{status:!0})).catch(e=>(i.tableLoading=!1,a?a(Object.assign(Object.assign({},b),{response:e,status:"error"}),...t):m&&ad.modal&&ad.modal.message({id:F,content:n.getRespMsg(e,"vxe.grid.operError"),status:"error"}),l&&l(Object.assign(Object.assign({},b),{response:e})),{status:!1})));return e?Promise.resolve(e(b,...t)).then(e=>{if(!1!==e)return c()}):c()}f&&ad.modal&&ad.modal.message({id:F,content:qx("vxe.grid.dataUnchanged"),status:"info"})}})}Hx("vxe.error.notFunc",["proxy-config.ajax.save"]);break}default:{const e=Gx.get(F);if(e){const r=e.tableCommandMethod||e.commandMethod;r?r({code:F,button:M,$grid:n,$table:$,$gantt:null},...t):Hx("vxe.error.notCommands",[F])}}}return n.$nextTick()},getFormData(){const e=this,t=e,n=e.reactData,{proxyConfig:r}=t,{formData:i}=n,o=e.computeProxyOpts,a=e.computeFormOpts;return r&&ld(o)&&o.form?i:a.data},getFormItems(e){const t=this,n=t,r=t.computeFormOpts,{formConfig:i}=n,{items:o}=r,a=[];return pc.eachTree(i&&ld(r)&&o?o:[],e=>{a.push(e)},{children:"children"}),pc.isUndefined(e)?a:a[e]},getFormFlatItems(){const e=this,t=e.$refs.refForm;return t?t.getFlatItems():[]},getFormNestedItems(){const e=this,t=e.$refs.refForm;return t?t.getNestedItems():[]},getFormItemByField(e){const t=this,n=t.$refs.refForm;return n?n.getItemByField(e):null},resetForm(){const e=this,t=e.$refs.refForm;return t?t.reset():e.$nextTick()},validateForm(){const e=this,t=e.$refs.refForm;return t?t.validate():e.$nextTick()},validateFormField(e){const t=this,n=t.$refs.refForm;return n?n.validateField(e):t.$nextTick()},clearFormValidate(e){const t=this,n=t.$refs.refForm;return n?n.clearValidate(e):t.$nextTick()},homePage(){const e=this,t=e.reactData,{tablePage:n}=t;return n.currentPage=1,e.$nextTick()},homePageByEvent(e){const t=this,n=t.$refs.refPager;n&&n.homePageByEvent(e)},endPage(){const e=this,t=e.reactData,{tablePage:n}=t,r=e.computePageCount;return n.currentPage=r,e.$nextTick()},endPageByEvent(e){const t=this,n=t.$refs.refPager;n&&n.endPageByEvent(e)},getCurrentPage(){const e=this,t=e.reactData,{tablePage:n}=t;return n.currentPage},setCurrentPage(e){const t=this,n=t.reactData,{tablePage:r}=n,i=t.computePageCount;return r.currentPage=Math.min(i,Math.max(1,pc.toNumber(e))),t.$nextTick()},setCurrentPageByEvent(e,t){const n=this,r=n.$refs.refPager;r&&r.setCurrentPageByEvent(e,t)},getPageSize(){const e=this,t=e.reactData,{tablePage:n}=t;return n.pageSize},setPageSize(e){const t=this,n=t.reactData,{tablePage:r}=n;return r.pageSize=Math.max(1,pc.toNumber(e)),t.$nextTick()},setPageSizeByEvent(e,t){const n=this,r=n.$refs.refPager;r&&r.setPageSizeByEvent(e,t)},triggerToolbarCommitEvent(e,t){const n=this,r=n.internalData,{code:i}=e;if(i){const o=["reload","delete","save"].includes(i);o&&(r.uFoot=!0);const a=n.commitProxy(e,t).then(e=>{i&&e&&e.status&&["query","reload","delete","save"].includes(i)&&n.dispatchEvent("delete"===i||"save"===i?`proxy-${i}`:"proxy-query",Object.assign(Object.assign({},e),{isReload:"reload"===i}),t)});return o&&n.updateQueryFooter(),r.uFoot=!1,a}return n.$nextTick()},triggerToolbarBtnEvent(e,t){const n=this;n.triggerToolbarCommitEvent(e,t),n.dispatchEvent("toolbar-button-click",{code:e.code,button:e},t)},triggerToolbarTolEvent(e,t){const n=this;n.triggerToolbarCommitEvent(e,t),n.dispatchEvent("toolbar-tool-click",{code:e.code,tool:e},t)},pageChangeEvent(e){const t=this,n=t,r=t.reactData,{proxyConfig:i}=n,{tablePage:o}=r,{$event:a,currentPage:s,pageSize:l}=e,c=t.computeProxyOpts;o.currentPage=s,o.pageSize=l,t.dispatchEvent("page-change",e,a),i&&ld(c)&&t.commitProxy("query").then(e=>{t.dispatchEvent("proxy-query",e,a)})},handleSortEvent(e){const t=this,n=t,r=t.reactData,i=t.$refs.refTable,{proxyConfig:o}=n,a=t.computeProxyOpts,s=i.computeSortOpts;s.remote&&(r.sortData=e.sortList,o&&ld(a)&&(r.tablePage.currentPage=1,t.commitProxy("query").then(n=>{t.dispatchEvent("proxy-query",n,e.$event)})))},sortChangeEvent(e){const t=this;t.handleSortEvent(e),t.dispatchEvent("sort-change",e,e.$event)},clearAllSortEvent(e){const t=this;t.handleSortEvent(e),t.dispatchEvent("clear-all-sort",e,e.$event)},handleFilterEvent(e){const t=this,n=t,r=t.reactData,i=t.internalData,o=t.$refs.refTable,{proxyConfig:a}=n,s=t.computeProxyOpts,l=o.computeFilterOpts;l.remote&&(r.filterData=e.filterList,a&&ld(s)&&(r.tablePage.currentPage=1,i.uFoot=!0,t.commitProxy("query").then(n=>{t.dispatchEvent("proxy-query",n,e.$event)}),i.uFoot=!1,t.updateQueryFooter()))},filterChangeEvent(e){const t=this;t.handleFilterEvent(e),t.dispatchEvent("filter-change",e,e.$event)},clearAllFilterEvent(e){const t=this;t.handleFilterEvent(e),t.dispatchEvent("clear-all-filter",e,e.$event)},submitFormEvent(e){const t=this,n=t,r=t.reactData,i=t.internalData,{proxyConfig:o}=n,a=t.computeProxyOpts,s=a.formOptions||{};r.tableLoading||(o&&ld(a)?(t.dispatchEvent("form-submit",e,e.$event),i.uFoot=!0,t.commitProxy(s.submitMode||"reload").then(n=>{t.dispatchEvent("proxy-query",Object.assign(Object.assign({},n),{isReload:!0}),e.$event)}),i.uFoot=!1,t.updateQueryFooter()):t.dispatchEvent("form-submit",e,e.$event))},resetFormEvent(e){const t=this,n=t,r=t.internalData,i=t.$refs.refTable,{proxyConfig:o}=n,{$event:a}=e,s=t.computeProxyOpts;o&&ld(s)?(t.dispatchEvent("form-reset",e,a),i&&i.clearScroll(),r.uFoot=!0,t.commitProxy("reload").then(e=>{t.dispatchEvent("proxy-query",Object.assign(Object.assign({},e),{isReload:!0}),a)}),r.uFoot=!1,t.updateQueryFooter()):t.dispatchEvent("form-reset",e,a)},submitInvalidEvent(e){const t=this;t.dispatchEvent("form-submit-invalid",e,e.$event)},collapseEvent(e){const t=this,{$event:n}=e;t.dispatchEvent("form-toggle-collapse",e,n),t.dispatchEvent("form-collapse",e,n)},triggerZoomEvent(e){const t=this,n=t.reactData;t.zoom(),t.dispatchEvent("zoom",{type:n.isZMax?"max":"revert"},e)},getParams(){const e=this,t=e;return t.params},zoom(){const e=this,t=e.reactData;return t.isZMax?e.revert():e.maximize()},isMaximized(){const e=this,t=e.reactData;return t.isZMax},maximize(){const e=this;return e.handleZoom(!0)},revert(){const e=this;return e.handleZoom()},handleZoom(e){const t=this,n=t.reactData,{isZMax:r}=n;return(e?!r:r)&&(n.isZMax=!r,n.tZindex<hd()&&(n.tZindex=dd())),t.$nextTick().then(()=>t.recalculate(!0)).then(()=>(setTimeout(()=>t.recalculate(!0),15),n.isZMax))},getProxyInfo(){const e=this,t=e,n=e.$refs.refTable,r=e.reactData;if(t.proxyConfig){const{sortData:t}=r;return{data:n?n.getFullData():[],filter:r.filterData,form:e.getFormData(),sort:t.length?t[0]:{},sorts:t,pager:r.tablePage,pendingRecords:n?n.getPendingRecords():[]}}return null},getCustomPagerData(){const e=this,t=e,n=e.reactData,{pagerConfig:r}=t,{tablePage:i}=n,o=e.computePagerOpts;return r&&ld(o)?{pSize:i.pageSize}:{}},loadColumn(e){const t=this,n=t.$scopedSlots,r=t.$refs.refTable;return pc.eachTree(e,e=>{e.slots&&pc.each(e.slots,e=>{e&&!pc.isFunction(e)&&(n[e]||Hx("vxe.error.notSlot",[e]))})}),r.loadColumn(e)},reloadColumn(e){const t=this;return t.clearAll(),t.loadColumn(e)},getConfigSlot(e){const t=this,n=t.$scopedSlots,r={};return pc.objectMap(e,(e,t)=>{e&&(pc.isString(e)?n[e]?r[t]=n[e]:Hx("vxe.error.notSlot",[e]):r[t]=e)}),r},getToolbarSlots(){const e=this,t=e.$scopedSlots,n=e.computeToolbarOpts,r=n.slots,i={};if(!t.buttons||r&&"buttons"===r.buttons||zx("vxe.error.reqProp",["[grid] toolbar-config.slots.buttons"]),!t.tools||r&&"tools"===r.tools||zx("vxe.error.reqProp",["[grid] toolbar-config.slots.tools"]),r){const t=e.getFuncSlot(r,"buttons"),n=e.getFuncSlot(r,"buttonPrefix"),o=e.getFuncSlot(r,"buttonSuffix"),a=e.getFuncSlot(r,"tools"),s=e.getFuncSlot(r,"toolPrefix"),l=e.getFuncSlot(r,"toolSuffix");t&&(i.buttons=t),n&&(i.buttonPrefix=n),o&&(i.buttonSuffix=o),a&&(i.tools=a),s&&(i.toolPrefix=s),l&&(i.toolSuffix=l)}return i},getFuncSlot(e,t){const n=this,r=n.$scopedSlots,i=e[t];if(i){if(!pc.isString(i))return i;if(r[i])return r[i];Hx("vxe.error.notSlot",[i])}return null},renderDefaultForm(e){const t=ad.getComponent("VxeForm"),n=this,r=n,i=n.$scopedSlots,o=n.reactData,{proxyConfig:a,formConfig:s}=r,{formData:l}=o,c=n.computeProxyOpts,u=n.computeFormOpts;if(ld(s)&&u.items&&u.items.length){const r={};if(!u.inited){u.inited=!0;const e=c.beforeItem;c&&e&&u.items.forEach(t=>{e.call(n,{$grid:n,$gantt:null,item:t})})}return u.items.forEach(e=>{pc.each(e.slots,e=>{e&&!pc.isFunction(e)&&i[e]&&(r[e]=i[e])})}),[t?e(t,{ref:"refForm",props:Object.assign({},u,{data:a&&c.form?l:u.data}),on:{submit:n.submitFormEvent,reset:n.resetFormEvent,collapse:n.collapseEvent,"submit-invalid":n.submitInvalidEvent},scopedSlots:r}):Zx(n)]}return[]},renderForm(e){const t=this,n=t,r=t.$scopedSlots,{formConfig:i}=n,o=r.form,a=!(!o&&!ld(i));return a?e("div",{key:"form",ref:"refFormWrapper",class:"vxe-grid--form-wrapper"},o?o.call(t,{$grid:t,$gantt:null}):t.renderDefaultForm(e)):Zx(t)},renderToolbar(e){const t=this,n=t,r=t.$scopedSlots,{toolbarConfig:i}=n,o=r.toolbar,a=t.computeToolbarOpts;return i&&ld(a)||o?e("div",{key:"toolbar",ref:"refToolbarWrapper",class:"vxe-grid--toolbar-wrapper"},o?o.call(t,{$grid:t,$gantt:null}):[e(Vx,{props:Object.assign({},a,{slots:void 0}),ref:"refToolbar",scopedSlots:t.getToolbarSlots()})]):Zx(t)},renderTop(e){const t=this,n=t.$scopedSlots,r=n.top;return r?e("div",{key:"top",ref:"refTopWrapper",class:"vxe-grid--top-wrapper"},r.call(t,{$grid:t,$gantt:null})):Zx(t)},renderTableLeft(e){const t=this,n=t.$scopedSlots,r=n.left;return r?e("div",{class:"vxe-grid--left-wrapper"},r({$grid:t,$gantt:null})):Zx(t)},renderTableRight(e){const t=this,n=t.$scopedSlots,r=n.right;return r?e("div",{class:"vxe-grid--right-wrapper"},r({$grid:t,$gantt:null})):Zx(t)},renderTable(e){const t=this,n=t.$scopedSlots,r=t.computeTableProps;return e("div",{class:"vxe-grid--table-wrapper"},[e(Tx,{key:"table",props:r,on:tw(t),scopedSlots:n,ref:"refTable"})])},renderBottom(e){const t=this,n=t.$scopedSlots,r=n.bottom;return r?e("div",{key:"bottom",ref:"refBottomWrapper",class:"vxe-grid--bottom-wrapper"},r.call(t,{$grid:t,$gantt:null})):Zx(t)},renderPager(e){const t=ad.getComponent("VxePager"),n=this,r=n,i=n.$scopedSlots,o=n.reactData,{proxyConfig:a,pagerConfig:s}=r,l=n.computeProxyOpts,c=n.computePagerOpts,u=i.pager;return s&&ld(c)||i.pager?e("div",{ref:"refPagerWrapper",key:"pager",class:"vxe-grid--pager-wrapper"},u?u.call(n,{$grid:n,$gantt:null}):[t?e(t,{ref:"refPager",props:Object.assign(Object.assign({},c),a&&ld(l)?o.tablePage:{}),on:{"page-change":n.pageChangeEvent},scopedSlots:n.getConfigSlot(c.slots)}):Zx(n)]):Zx(n)},renderChildLayout(e,t){const n=this,r=[];return t.forEach(t=>{switch(t){case"Form":r.push(n.renderForm(e));break;case"Toolbar":r.push(n.renderToolbar(e));break;case"Top":r.push(n.renderTop(e));break;case"Table":r.push(e("div",{key:"table",class:"vxe-grid--table-container"},[n.renderTableLeft(e),n.renderTable(e),n.renderTableRight(e)]));break;case"Bottom":r.push(n.renderBottom(e));break;case"Pager":r.push(n.renderPager(e));break;default:Hx("vxe.error.notProp",[`layouts -> ${t}`]);break}}),r},renderLayout(e){const t=this,n=t.$scopedSlots,r=t.computeCurrLayoutConf,{headKeys:i,bodyKeys:o,footKeys:a}=r,s=n.asideLeft||n["aside-left"],l=n.asideRight||n["aside-right"];return[e("div",{class:"vxe-grid--layout-header-wrapper"},t.renderChildLayout(e,i)),e("div",{class:"vxe-grid--layout-body-wrapper"},[s?e("div",{class:"vxe-grid--layout-aside-left-wrapper"},s({})):Zx(t),e("div",{class:"vxe-grid--layout-body-content-wrapper"},t.renderChildLayout(e,o)),l?e("div",{class:"vxe-grid--layout-aside-right-wrapper"},l({})):Zx(t)]),e("div",{class:"vxe-grid--layout-footer-wrapper"},t.renderChildLayout(e,a)),e("div",{ref:"refPopupContainerElem"})]},renderVN(e){const t=this,n=t,r=t.reactData,i=t.computeSize,o=t.computeStyles,a=t.computeIsLoading;return e("div",{ref:"refElem",class:["vxe-grid",{[`size--${i}`]:i,"is--animat":!!n.animat,"is--round":n.round,"is--maximize":r.isZMax,"is--loading":a}],style:o},t.renderLayout(e))}}),created(){const e=ad.getComponent("VxeForm"),t=ad.getComponent("VxePager"),n=this,r=n;n.internalData=rw();const i=n.computeProxyOpts;r.toolbar&&Hx("vxe.error.delProp",["toolbar","toolbar-config"]),r.toolbarConfig&&!pc.isObject(r.toolbarConfig)&&Hx("vxe.error.errProp",[`toolbar-config=${r.toolbarConfig}`,"toolbar-config={}"]),i.props&&zx("vxe.error.delProp",["proxy-config.props","proxy-config.response"]),n.$nextTick(()=>{r.formConfig&&(e||Hx("vxe.error.reqComp",["vxe-form"])),r.pagerConfig&&(t||Hx("vxe.error.reqComp",["vxe-pager"]))}),n.initPages(),Yx.on(n,"keydown",n.handleGlobalKeydownEvent)},mounted(){const e=this,t=e,{columns:n}=t;n&&n.length&&e.loadColumn(n),e.initToolbar(),e.initProxy()},beforeDestroy(){const e=this,t=e.reactData,n=e.internalData;Yx.off(e,"keydown"),pc.assign(t,nw()),pc.assign(n,rw())},render(e){return this.renderVN(e)}};let ow=!1;const aw=Object.assign({},iw,{install(e){ow||(ow=!0,ad.dynamicApp&&ad.dynamicApp.component(iw.name,iw)),e.component(iw.name,iw)}});ad.component(iw);const sw=aw,{errLog:lw}=Ih("table"),{getConfig:cw,renderer:uw,getI18n:dw,getComponent:hw}=ad,pw="value",fw={};function mw(e,t,n){return pc.eqNull(e)?pc.eqNull(t)?n:t:e}function gw(e,t){return e&&t.valueFormat?pc.toStringDate(e,t.valueFormat):e}function vw(e,t,n){const{dateConfig:r={}}=t;return pc.toDateString(gw(e,t),r.labelFormat||n)}function bw(e,t){return vw(e,t,dw(`vxe.input.date.labelFormat.${t.type||"date"}`))}function yw(e){return`vxe-${e.replace("$","")}`}function xw({name:e}){return yw(e)}function ww({name:e}){return hw(e)||e}function Cw(e,t,n){const{$table:r}=e;r.updateFilterOptionStatus(n,t)}function _w(e){const{$table:t,column:n}=e;t.saveFilterByEvent(new Event("change"),n)}function Sw(e){let{name:t,attrs:n}=e;return"input"===t&&(n=Object.assign({type:"text"},n)),n}function kw(e){const{name:t,immediate:n,props:r}=e;if(!n){if("VxeInput"===t||"$input"===t){const{type:e}=r||{};return!(!e||"text"===e||"number"===e||"integer"===e||"float"===e)}return"input"!==t&&"textarea"!==t&&"$textarea"!==t}return n}function Ew(e,t,n,r){return pc.assign({immediate:kw(e)},fw,r,e.props,{[pw]:n})}function Ow(e,t,n,r){return pc.assign({},fw,r,e.props,{[pw]:n})}function Tw(e,t){return"cell"===t.$type||kw(e)}function $w(e,t,n,r,i){const{placeholder:o}=t;return[e("span",{key:1,class:["vxe-cell--label",i?i.class:""]},o&&cd(r)?[e("span",{class:"vxe-cell--placeholder"},md(fd(o),1))]:md(r,1))]}function Dw(e,t,n){const{events:r}=e,i=Lp(e),o=Np(e),{model:a,change:s,blur:l}=n||{},c=o===i,u={};return r&&pc.objectEach(r,(e,n)=>{u[Pp(n)]=function(...n){e(t,...n)}}),a&&(u[Pp(i)]=function(e){a(e),c&&s&&s(e),r&&r[i]&&r[i](t,e)}),!c&&s&&(u[Pp(o)]=function(e){s(e),r&&r[o]&&r[o](t,e)}),l&&(u[Pp(Mw)]=function(e){l(e),r&&r[Mw]&&r[Mw](t,e)}),u}const Mw="blur",Fw="clear";function Rw(e,t,n,r){const{events:i}=e,o=Lp(e),a=Np(e),{model:s,change:l,blur:c,clear:u}=n||{},d={};return pc.objectEach(i,(e,n)=>{d[Pp(n)]=function(...n){pc.isFunction(e)||lw("vxe.error.errFunc",[e]),e(t,...n)}}),s&&(d[Pp(o)]=function(e){s(e),i&&i[o]&&i[o](t,e)}),l&&(d[Pp(a)]=function(...e){l(...e),i&&i[a]&&i[a](t,...e)}),c&&(d[Pp(Mw)]=function(...e){c(...e),i&&i[Mw]&&i[Mw](t,...e)}),u&&(d[Pp(Fw)]=function(...e){u(...e),i&&i[Fw]&&i[Fw](t,...e)}),r?Object.assign(d,r):d}function Iw(e,t){const{$table:n,row:r,column:i}=t,{name:o}=e,{model:a}=i,s=Tw(e,t);return Rw(e,t,{model(e){a.update=!0,a.value=e,s&&kp(r,i,e)},change(e){if(!s&&o&&["VxeInput","VxeNumberInput","VxeTextarea","$input","$textarea"].includes(o)){const r=e.value;a.update=!0,a.value=r,n.updateStatus(t,r)}else n.updateStatus(t)},blur(){s?n.handleCellRuleUpdateStatus("blur",t):n.handleCellRuleUpdateStatus("blur",t,a.value)}})}function Aw(e,t,n){return Rw(e,t,{model(e){n.data=e},change(){Cw(t,!cd(n.data),n)},blur(){Cw(t,!cd(n.data),n)}})}function Pw(e,t,n){const{$table:r,column:i}=t;return jp(e)?Rw(e,t,{model(e){n.data=e},change(){Cw(t,!cd(n.data),n)},clear(){Cw(t,!cd(n.data),n),_w(t)},blur(){r.saveFilterByEvent(new Event("change"),i)}},"VxeNumberInput"===e.name?{[Pp("plus-number")](){Cw(t,!cd(n.data),n),_w(t)},[Pp("minus-number")](){Cw(t,!cd(n.data),n),_w(t)}}:{}):Rw(e,t,{model(e){n.data=e},clear(){Cw(t,!cd(n.data),n),r.saveFilterByEvent(new Event("change"),i)},change(){Cw(t,!cd(n.data),n),r.saveFilterByEvent(new Event("change"),i)}})}function Lw(e,t){const{$table:n,row:r,column:i}=t,{model:o}=i;return Dw(e,t,{model(n){const a=n.target;if(a){const n=a.value;Tw(e,t)?kp(r,i,n):(o.update=!0,o.value=n)}},change(e){const r=e.target;if(r){const e=r.value;n.updateStatus(t,e)}},blur(e){const r=e.target;if(r){const e=r.value;n.updateStatus(t,e)}}})}function Nw(e,t,n){return Dw(e,t,{model(e){const t=e.target;t&&(n.data=t.value)},change(){Cw(t,!pc.eqNull(n.data),n)},blur(){Cw(t,!pc.eqNull(n.data),n)}})}function jw(e,t,n){const{row:r,column:i}=n,o=pc.get(r,i.field),a=[e("span",{key:1},o)];return xC(e,o,a,t,n)}function Bw(e,t,n){const{row:r,column:i}=n,{name:o}=t,a=Tw(t,n)?Sp(r,i):i.model.value;return[e(""+o,{key:2,class:`vxe-default-${o}`,attrs:Sw(t),domProps:{value:a},on:Lw(t,n)})]}function Vw(e,t,n){return[e(ww(t),{props:Ew(t,n,null),on:Rw(t,n)})]}function zw(e,t,n){const{row:r,column:i}=n,o=Sp(r,i);return[e(ww(t),{key:2,props:Ew(t,n,o),on:Iw(t,n)})]}function Hw(e,t,n){const{row:r,column:i}=n,o=Sp(r,i);return[e(ww(t),{props:Ew(t,n,o),on:Iw(t,n)})]}function Ww(e,t,n){const{row:r,column:i}=n,o=Sp(r,i);return[e(ww(t),{props:Ew(t,n,o),on:Iw(t,n)})]}function qw(e,t,n){const{options:r}=t,{row:i,column:o}=n,a=Sp(i,o);return[e(ww(t),{props:Object.assign({options:r},Ew(t,n,a)),on:Iw(t,n)})]}function Gw(e,t,n){const{row:r,column:i}=n,o=Sp(r,i);return[e(xw(t),{props:Ew(t,n,o),on:Iw(t,n)})]}function Yw(e,t,n){return[e("vxe-button",{props:Ew(t,n,null),on:Rw(t,n)})]}function Uw(e,t,n){const{children:r}=t;return r?r.map(t=>Yw(e,t,n)[0]):[]}function Kw(e,t,n,r){const{optionGroups:i,optionGroupProps:o={}}=t,a=o.options||"options",s=o.label||"label";return i?i.map((i,o)=>e("optgroup",{key:o,attrs:{label:i[s]}},r(e,i[a],t,n))):[]}function Xw(e,t,n,r){const{optionProps:i={}}=n,{row:o,column:a}=r,s=i.label||"label",l=i.value||"value",c=i.disabled||"disabled",u=Tw(n,r)?Sp(o,a):a.model.value;return t?t.map((t,n)=>e("option",{key:n,attrs:{value:t[l],disabled:t[c]},domProps:{selected:t[l]==u}},t[s])):[]}function Zw(e,t,n){const{column:r}=n,{name:i}=t,o=Sw(t);return r.filters.map((r,a)=>e(`${i}`,{key:a,class:`vxe-default-${i}`,attrs:o,domProps:{value:r.data},on:Nw(t,n,r)}))}function Qw(e,t,n){const{column:r}=n;return r.filters.map((r,i)=>{const o=r.data;return e(ww(t),{key:i,props:Ow(t,t,o),on:Aw(t,n,r)})})}function Jw(e,t,n){const{option:r}=n,i=r.data;return[e(ww(t),{props:Ow(t,t,i),on:Pw(t,n,r)})]}function eC(){return[{data:null}]}function tC(e,t,n){const{column:r}=n;return r.filters.map((r,i)=>{const o=r.data;return e(xw(t),{key:i,props:Ow(t,t,o),on:Aw(t,n,r)})})}function nC({option:e,row:t,column:n}){const{data:r}=e,i=pc.get(t,n.field);return i==r}function rC({option:e,row:t,column:n}){const{data:r}=e,i=pc.get(t,n.field);return pc.toValueString(i).indexOf(r)>-1}function iC(e,t,n){return[e("select",{class:"vxe-default-select",attrs:Sw(t),on:Lw(t,n)},t.optionGroups?Kw(e,t,n,Xw):Xw(e,t.options,t,n))]}function oC(e,t,n){const{row:r,column:i}=n,{options:o,optionProps:a,optionGroups:s,optionGroupProps:l}=t,c=Sp(r,i);return[e(ww(t),{props:Ew(t,n,c,{options:o,optionProps:a,optionGroups:s,optionGroupProps:l}),on:Iw(t,n)})]}function aC(e,t,n){const{row:r,column:i}=n,{options:o,optionProps:a}=t,s=Sp(r,i);return[e(ww(t),{props:Ew(t,n,s,{options:o,optionProps:a}),on:Iw(t,n)})]}function sC(e,t,n){const{row:r,column:i}=n,{options:o,optionProps:a,optionGroups:s,optionGroupProps:l}=t,c=Sp(r,i);return[e(xw(t),{props:Ew(t,n,c,{options:o,optionProps:a,optionGroups:s,optionGroupProps:l}),on:Iw(t,n)})]}function lC(e,t){const{options:n,optionGroups:r,optionProps:i={},optionGroupProps:o={},props:a={}}=t;let s;const l=i.label||"label",c=i.value||"value";if(null!==e&&void 0!==e){let t=[];return t=pc.isArray(e)?e:a.multiple&&`${e}`.indexOf(",")>-1?`${e}`.split(","):[e],pc.map(t,r?e=>{const t=o.options||"options";for(let n=0;n<r.length;n++)if(s=pc.find(r[n][t],t=>t[c]==e),s)break;return s?s[l]:e}:e=>(s=pc.find(n,t=>t[c]==e),s?s[l]:e)).join(", ")}return""}function cC(e,{row:t,column:n}){const r=pc.get(t,n.field);return lC(r,e)}function uC(e){const{row:t,column:n,options:r}=e;return r.original?Sp(t,n):cC(n.editRender||n.cellRender,e)}function dC(e,t){const{options:n,optionProps:r={}}=t,i=r.label||"label",o=r.value||"value",a=r.children||"children";if(null!==e&&void 0!==e){const t={};return pc.eachTree(n,e=>{t[pc.get(e,o)]=e},{children:a}),pc.map(pc.isArray(e)?e:[e],e=>{const n=t[e];return n?pc.get(n,i):n}).join(", ")}return""}function hC(e,{row:t,column:n}){const r=pc.get(t,n.field);return dC(r,e)}function pC(e){const{row:t,column:n,options:r}=e;return r.original?Sp(t,n):hC(n.editRender||n.cellRender,e)}function fC(e,t,n,r){const{props:i={},showNegativeStatus:o}=n,{type:a}=i;let s=!1;if(!cd(t)){const e=cw().numberInput||{};if("float"===a){const n=mw(i.autoFill,e.autoFill,!0),r=mw(i.digits,e.digits,1);t=pc.toFixed(pc.floor(t,r),r),n||(t=pc.toNumber(t)),o&&t<0&&(s=!0)}else if("amount"===a){const n=mw(i.autoFill,e.autoFill,!0),r=mw(i.digits,e.digits,2),a=mw(i.showCurrency,e.showCurrency,!1);if(t=pc.toNumber(t),o&&t<0&&(s=!0),t=pc.commafy(t,{digits:r}),!n){const[e,n]=t.split(".");if(n){const r=n.replace(/0+$/,"");t=r?[e,".",r].join(""):e}}a&&(t=`${i.currencySymbol||e.currencySymbol||dw("vxe.numberInput.currencySymbol")||""}${t}`)}else"integer"===a&&(t=pc.toInteger(t)),o&&pc.toNumber(t)<0&&(s=!0)}return $w(e,n,r,t,s?{class:"is--negative"}:{})}function mC(e,t){const{props:n={}}=e,{cellValue:r}=t;return r&&"time"!==n.type?bw(r,n):r}function gC(e,t){const{cellValue:n}=t;return lC(n,e)}function vC(e,t){const{row:n,column:r,cellValue:i}=t,{field:o}=r;if(o){const{options:t,optionGroups:r,optionProps:a={},optionGroupProps:s={},props:l}=e;if(cd(i))return void pc.set(n,o,l&&l.multiple?[]:null);const c=pc.indexOf(`${i}`,",")>-1,u=a.label||"label",d=a.value||"value",h={};if(r&&r.length){const e=s.options||"options";for(let t=0;t<r.length;t++){const a=r[t][e]||{};for(let e=0;e<a.length;e++){const t=a[e];if(c)h[t[u]]=t;else if(t[u]==i)return void pc.set(n,o,t[d])}}}else if(t)for(let e=0;e<t.length;e++){const r=t[e];if(c)h[r[u]]=r;else if(r[u]==i)return void pc.set(n,o,r[d])}c?pc.set(n,o,(c?i.split(","):[i]).map(e=>{const t=h[e];return t?t[d]:e})):pc.set(n,o,i)}}function bC(e,t){const{cellValue:n}=t;return dC(n,e)}function yC(e,t){const{row:n,column:r,cellValue:i}=t,{field:o}=r;if(o){const{options:t,optionProps:r={}}=e,a=r.label||"label",s=r.value||"value",l=r.children||"children",c=pc.findTree(t||[],e=>pc.get(e,a)===i,{children:l});if(c){const e=c.item;if(e)return void pc.set(n,o,e[s])}pc.set(n,o,i)}}function xC(e,t,n,r,i){const{$table:o,row:a,column:s}=i,{name:l}=r,c=o,{editConfig:u,mouseConfig:d}=c;let h=!1,p=!1;if(u&&d){const e=o,{editStore:t}=e,{selected:n}=t;if(h=a===n.row&&s===n.column,o.getActiveCellArea){const e=o.getActiveCellArea();e&&(p=a===e.row&&s===e.column)}}const f=n;return(p||h)&&f.push(e(""+l,{key:2,class:`vxe-default-${l} vxe-reusekeep-control`,attrs:Sw(r),domProps:{value:t},on:Lw(r,i)})),f}function wC(e,t,n,r,i){const{$table:o,row:a,column:s}=i,l=o,{editConfig:c,mouseConfig:u}=l;let d=!1,h=!1;if(c&&u){const e=o,{editStore:t}=e,n=o.computeEditOpts;if(n.isReuseKeep){const{selected:e}=t;if(d=a===e.row&&s===e.column,o.getActiveCellArea){const e=o.getActiveCellArea();e&&(h=a===e.row&&s===e.column)}}}const p=n;if(h||d){const n=Ew(r,i,t),{className:o,inputClassName:a}=n;p.push(e(ww(r),{key:2,props:Object.assign(Object.assign({},n),{className:"vxe-reusekeep-control"+(o?" "+o:""),inputClassName:"vxe-reusekeep-control"+(a?" "+a:"")}),on:Iw(r,i)}))}return p}uw.mixin({input:{tableAutoFocus:!0,renderTableEdit:Bw,renderTableCell:jw,renderTableDefault:Bw,createTableFilterOptions:eC,renderTableFilter:Zw,tableFilterDefaultMethod:rC},textarea:{tableAutoFocus:!0,renderTableEdit:Bw,renderTableCell:jw,renderTableDefault:Bw},select:{renderTableEdit:iC,renderTableDefault:iC,renderTableCell(e,t,n){const{options:r,optionGroups:i}=t,{$table:o,row:a,column:s}=n,l=r?r.length:null,c=i?i.length:null,{cellResult:u}=o.effectCellData(a,s,{key:"render_table_cell",isChanged({oldValue:e,cellValue:t}){return e&&e[0]===t&&e[1]===l&&e[2]===c},setValue({cellValue:e}){return[e,l,c]},getResult({cellValue:e}){return lC(e,t)}});return $w(e,t,n,u)},renderTableFilter(e,t,n){const{column:r}=n;return r.filters.map((r,i)=>e("select",{key:i,class:"vxe-default-select",attrs:Sw(t),on:Nw(t,n,r)},t.optionGroups?Kw(e,t,n,Xw):Xw(e,t.options,t,n)))},tableCellFormatter:gC,tableCellCopyMethod:gC,tableCellPasteMethod:vC,tableFilterDefaultMethod:nC,tableExportMethod:uC},VxeInput:{tableAutoFocus:!0,renderTableEdit:zw,renderTableCell(e,t,n){const{props:r={}}=t,{row:i,column:o}=n,a=cw().input||{},s=r.digits||a.digits||2;let l=pc.get(i,o.field);if(l)switch(r.type){case"date":case"week":case"month":case"quarter":case"year":l=bw(l,r);break;case"float":l=pc.toFixed(pc.floor(l,s),s);break}const c=$w(e,t,n,l);return wC(e,l,c,t,n)},renderTableDefault:zw,createTableFilterOptions:eC,renderTableFilter:Qw,renderTableFloatingFilter:Jw,tableFilterDefaultMethod:rC},FormatNumberInput:{renderTableDefault(e,t,n){const{row:r,column:i}=n,o=pc.get(r,i.field);return fC(e,o,t,n)},tableFilterDefaultMethod({option:e,row:t,column:n}){const{data:r}=e,i=pc.get(t,n.field);return i==r},tableExportMethod(e){const{row:t,column:n}=e,r=pc.get(t,n.field);return r}},VxeNumberInput:{tableAutoFocus:!0,renderTableEdit:zw,renderTableCell(e,t,n){const{row:r,column:i}=n,o=pc.get(r,i.field),a=fC(e,o,t,n);return wC(e,o,a,t,n)},renderTableFooter(e,t,n){const{props:r={}}=t,{row:i,column:o,_columnIndex:a}=n,{type:s}=r,l=pc.isArray(i)?i[a]:pc.get(i,o.field);if(pc.isNumber(l)){const e=cw().numberInput||{};if("float"===s){const t=mw(r.autoFill,e.autoFill,!0),n=mw(r.digits,e.digits,1);let i=pc.toFixed(pc.floor(l,n),n);return t||(i=""+pc.toNumber(i)),i}if("amount"===s){const t=mw(r.autoFill,e.autoFill,!0),n=mw(r.digits,e.digits,2),i=mw(r.showCurrency,e.showCurrency,!1);let o=pc.commafy(pc.toNumber(l),{digits:n});if(!t){const[e,t]=o.split(".");if(t){const n=t.replace(/0+$/,"");o=n?[e,".",n].join(""):e}}return i&&(o=`${r.currencySymbol||e.currencySymbol||dw("vxe.numberInput.currencySymbol")||""}${o}`),o}}return fd(l,1)},renderTableDefault:zw,createTableFilterOptions:eC,renderTableFilter:Qw,renderTableFloatingFilter:Jw,tableFilterDefaultMethod({option:e,row:t,column:n}){const{data:r}=e,i=pc.get(t,n.field);return i==r},tableExportMethod(e){const{row:t,column:n}=e,r=pc.get(t,n.field);return r}},VxeDatePicker:{tableAutoFocus:!0,renderTableEdit:Hw,renderTableCell(e,t,n){const r=t.props||{},{$table:i,row:o,column:a}=n,{cellResult:s}=i.effectCellData(o,a,{key:"render_table_cell",getResult({cellValue:e}){return e&&"time"!==r.type?bw(e,r):e}});return $w(e,t,n,s)},tableCellFormatter:mC,renderTableDefault:Hw,createTableFilterOptions:eC,renderTableFilter:Qw,renderTableFloatingFilter:Jw,tableFilterDefaultMethod:nC},VxeDateRangePicker:{tableAutoFocus:!0,renderTableEdit(e,t,n){const{startField:r,endField:i}=t,{$table:o,row:a,column:s}=n,{model:l}=s,c=Sp(a,s),u={},d={};return r&&i&&(u.startValue=pc.get(a,r),u.endValue=pc.get(a,i),d["update:startValue"]=e=>{r&&pc.set(a,r,e)},d["update:endValue"]=e=>{i&&pc.set(a,i,e)}),[e(ww(t),{props:Ew(t,n,c,u),on:Rw(t,n,{model(e){l.update=!0,l.value=e,kp(a,s,e)},change(){o.updateStatus(n)},blur(){o.handleCellRuleUpdateStatus("blur",n)}},d)})]},renderTableDefault(e,t,n){const{startField:r,endField:i}=t,{row:o,column:a}=n,{model:s}=a,l=Sp(o,a),c={},u={};return r&&i&&(c.startValue=pc.get(o,r),c.endValue=pc.get(o,i),u["update:startValue"]=e=>{r&&pc.set(o,r,e)},u["update:endValue"]=e=>{i&&pc.set(o,i,e)}),[e(ww(t),{props:Ew(t,n,l,c),on:Rw(t,n,{model(e){s.update=!0,s.value=e,kp(o,a,e)}},u)})]},renderTableCell(e,t,n){const{startField:r,endField:i}=t,{row:o,column:a}=n;let s="",l="";if(r&&i)s=pc.get(o,r),l=pc.get(o,i);else{const e=pc.get(o,a.field);if(e)if(pc.isArray(e))s=e[0],l=e[1];else{const t=`${e}`.split(",");s=t[0],l=t[1]}}let c="";return s&&l&&(c=`${s} ~ ${l}`),$w(e,t,n,c)}},VxeTextarea:{tableAutoFocus:!0,renderTableDefault:zw,renderTableCell(e,t,n){const{row:r,column:i}=n,o=pc.get(r,i.field),a=$w(e,t,n,o);return wC(e,o,a,t,n)},renderTableEdit:zw},VxeButton:{renderTableDefault:Vw},VxeButtonGroup:{renderTableDefault(e,t,n){const{options:r}=t;return[e(ww(t),{props:Object.assign({options:r},Ew(t,n,null)),on:Rw(t,n)})]}},VxeSelect:{tableAutoFocus:!0,renderTableEdit:oC,renderTableDefault:oC,renderTableCell(e,t,n){const{options:r,optionGroups:i}=t,{$table:o,row:a,column:s}=n,l=r?r.length:null,c=i?i.length:null,{cellResult:u}=o.effectCellData(a,s,{key:"render_table_cell",isChanged({oldValue:e,cellValue:t}){return e&&e[0]===t&&e[1]===l&&e[2]===c},setValue({cellValue:e}){return[e,l,c]},getResult({cellValue:e}){return lC(e,t)}});return $w(e,t,n,u)},createTableFilterOptions:eC,renderTableFilter(e,t,n){const{column:r}=n,{options:i,optionProps:o,optionGroups:a,optionGroupProps:s}=t;return r.filters.map((r,l)=>{const c=r.data;return e(ww(t),{key:l,props:Ow(t,n,c,{options:i,optionProps:o,optionGroups:a,optionGroupProps:s}),on:Aw(t,n,r)})})},renderTableFloatingFilter(e,t,n){const{option:r}=n,{options:i,optionProps:o,optionGroups:a,optionGroupProps:s}=t,l=r.data;return e(ww(t),{props:Ow(t,n,l,{options:i,optionProps:o,optionGroups:a,optionGroupProps:s}),on:Pw(t,n,r)})},tableCellFormatter:gC,tableCellCopyMethod:gC,tableCellPasteMethod:vC,tableFilterDefaultMethod:nC,tableExportMethod:uC},VxeText:{renderTableDefault(e,t,n){const{$table:r,row:i,column:o}=n,{props:a}=t,s=r.getCellLabel(i,o);return[e(ww(t),{props:Object.assign(Object.assign({},a||{}),{content:s}),on:Rw(t,n)})]}},VxeLink:{renderTableDefault(e,t,n){const{$table:r,row:i,column:o}=n,{props:a}=t,{href:s}=a||{},l=r.getCellLabel(i,o);return[e(ww(t),{props:Object.assign(Object.assign({},a||{}),{content:l,href:pc.toFormatString(s,n)}),on:Rw(t,n)})]}},formatOption:{renderTableDefault(e,t,n){return $w(e,t,n,cC(t,n))}},FormatSelect:{renderTableDefault(e,t,n){const{options:r,optionGroups:i}=t,{$table:o,row:a,column:s}=n,l=r?r.length:null,c=i?i.length:null,{cellResult:u}=o.effectCellData(a,s,{key:"render_table_cell",isChanged({oldValue:e,cellValue:t}){return e&&e[0]===t&&e[1]===l&&e[2]===c},setValue({cellValue:e}){return[e,l,c]},getResult({cellValue:e}){return lC(e,t)}});return $w(e,t,n,u)},tableCellFormatter:gC,tableCellCopyMethod:gC,tableCellPasteMethod:vC,tableFilterDefaultMethod:nC,tableExportMethod:uC},VxeTreeSelect:{tableAutoFocus:!0,renderTableEdit:aC,renderTableCell(e,t,n){const{options:r,optionGroups:i}=t,{$table:o,row:a,column:s}=n,l=r?r.length:null,c=i?i.length:null,{cellResult:u}=o.effectCellData(a,s,{key:"render_table_cell",isChanged({oldValue:e,cellValue:t}){return e&&e[0]===t&&e[1]===l&&e[2]===c},setValue({cellValue:e}){return[e,l,c]},getResult({cellValue:e}){return dC(e,t)}});return $w(e,t,n,u)},tableCellFormatter:bC,tableCellCopyMethod:bC,tableCellPasteMethod:yC,tableExportMethod:pC},formatTree:{renderTableDefault(e,t,n){return $w(e,t,n,hC(t,n))}},FormatTreeSelect:{renderTableDefault(e,t,n){const{options:r,optionGroups:i}=t,{$table:o,row:a,column:s}=n,l=r?r.length:null,c=i?i.length:null,{cellResult:u}=o.effectCellData(a,s,{key:"render_table_cell",isChanged({oldValue:e,cellValue:t}){return e&&e[0]===t&&e[1]===l&&e[2]===c},setValue({cellValue:e}){return[e,l,c]},getResult({cellValue:e}){return dC(e,t)}});return $w(e,t,n,u)},tableCellFormatter:bC,tableCellCopyMethod:bC,tableCellPasteMethod:yC,tableExportMethod:pC},VxeCascader:{tableAutoFocus:!0,renderTableEdit:aC,renderTableCell(e,t,n){const{options:r,optionGroups:i}=t,{$table:o,row:a,column:s}=n,l=r?r.length:null,c=i?i.length:null,{cellResult:u}=o.effectCellData(a,s,{key:"render_table_cell",isChanged({oldValue:e,cellValue:t}){return e&&e[0]===t&&e[1]===l&&e[2]===c},setValue({cellValue:e}){return[e,l,c]},getResult({cellValue:e}){return dC(e,t)}});return $w(e,t,n,u)},tableCellFormatter:bC,tableCellCopyMethod:bC,tableCellPasteMethod:yC,tableExportMethod:pC},VxeTableSelect:{tableAutoFocus:!0,renderTableEdit:aC,renderTableCell(e,t,n){const{options:r,optionGroups:i}=t,{$table:o,row:a,column:s}=n,l=r?r.length:null,c=i?i.length:null,{cellResult:u}=o.effectCellData(a,s,{key:"render_table_cell",isChanged({oldValue:e,cellValue:t}){return e&&e[0]===t&&e[1]===l&&e[2]===c},setValue({cellValue:e}){return[e,l,c]},getResult({cellValue:e}){return dC(e,t)}});return $w(e,t,n,u)},tableCellFormatter:bC,tableCellCopyMethod:bC,tableCellPasteMethod:yC,tableExportMethod:pC},VxeColorPicker:{tableAutoFocus:!0,renderTableEdit(e,t,n){const{row:r,column:i}=n,{options:o}=t,a=Sp(r,i);return[e(ww(t),{props:Ew(t,n,a,{colors:o}),on:Iw(t,n)})]},renderTableCell(e,t,n){const{$table:r,row:i,column:o}=n,{props:a}=t,s=a?a.size:null,l=s||r.computeSize,c=pc.get(i,o.field);return e("span",{class:["vxe-color-picker--readonly",{[`size--${l}`]:l}]},[e("div",{class:["vxe-color-picker--readonly-color",{"is--empty":!c}],style:c?{backgroundColor:c}:void 0})])}},VxeIconPicker:{tableAutoFocus:!0,renderTableEdit(e,t,n){const{row:r,column:i}=n,{options:o}=t,a=Sp(r,i);return[e(ww(t),{props:Ew(t,n,a,{icons:o}),on:Iw(t,n)})]},renderTableCell(e,t,n){const{row:r,column:i}=n,o=pc.get(r,i.field);return e("i",{class:o})}},VxeRadioGroup:{renderTableDefault:qw},VxeCheckbox:{renderTableDefault:Ww},VxeCheckboxGroup:{renderTableDefault:qw},VxeSwitch:{tableAutoFocus:"button",renderTableEdit:Hw,renderTableDefault:Hw},VxeUpload:{renderTableEdit:Hw,renderTableCell:Hw,renderTableDefault:Hw},VxeImage:{renderTableDefault(e,t,n){const{row:r,column:i}=n,{props:o}=t,a=Sp(r,i);return[e(ww(t),{props:Object.assign(Object.assign({},o),{src:a}),on:Iw(t,n)})]}},VxeImageGroup:{renderTableDefault(e,t,n){const{row:r,column:i}=n,{props:o}=t,a=Sp(r,i);return[e(ww(t),{props:Object.assign(Object.assign({},o),{urlList:a}),on:Iw(t,n)})]}},VxeTextEllipsis:{renderTableDefault(e,t,n){const{row:r,column:i}=n,{props:o}=t,a=Sp(r,i);return[e(ww(t),{props:Object.assign(Object.assign({},o),{content:a}),on:Iw(t,n)})]}},VxeRate:{renderTableDefault:Hw},VxeSlider:{renderTableDefault:Hw},$input:{tableAutoFocus:"input",renderTableEdit:Gw,renderTableCell(e,t,n){var r;const{props:i={}}=t,{row:o,column:a}=n,s=i.digits||(null===(r=cw().input)||void 0===r?void 0:r.digits)||2;let l=pc.get(o,a.field);if(l)switch(i.type){case"date":case"week":case"month":case"year":l=bw(l,i);break;case"float":l=pc.toFixed(pc.floor(l,s),s);break}return $w(e,t,n,l)},renderTableDefault:Gw,renderTableFilter:tC,tableFilterDefaultMethod:rC},$textarea:{tableAutoFocus:"textarea"},$button:{renderTableDefault:Yw},$buttons:{renderTableDefault:Uw},$select:{tableAutoFocus:"input",renderTableEdit:sC,renderTableDefault:sC,renderTableCell(e,t,n){return $w(e,t,n,cC(t,n))},renderTableFilter(e,t,n){const{column:r}=n,{options:i,optionProps:o,optionGroups:a,optionGroupProps:s}=t;return r.filters.map((r,l)=>{const c=r.data;return e(xw(t),{key:l,props:Ow(t,n,c,{options:i,optionProps:o,optionGroups:a,optionGroupProps:s}),on:Aw(t,n,r)})})},tableFilterDefaultMethod:nC,tableExportMethod:uC},$radio:{tableAutoFocus:"input"},$checkbox:{tableAutoFocus:"input"},$switch:{tableAutoFocus:"button",renderTableEdit:Gw,renderTableDefault:Gw}});let CC=!1;const _C=Object.assign({},Tx,{install(e){"undefined"!==typeof window&&(window.VxeTableExtendCellArea&&window.VxeTableExtendCellArea.use?window.VxeTableExtendCellArea.use(ad):window.VXETableMixin&&(Tx.mixins.push(window.VXETableMixin),delete window.VXETableMixin),window.VxeTableExtendPivotTable&&window.VxeTableExtendPivotTable.use&&window.VxeTableExtendPivotTable.use(ad)),"undefined"!==typeof window&&window.VxeTableExtendCellArea&&window.VxeTableExtendCellArea.init?(window.VxeTableExtendCellArea.init(ad),delete window.VxeTableExtendCellArea,delete window.VXETablePro):"undefined"!==typeof window&&window.VXETablePro&&window.VXETablePro.init&&(window.VXETablePro.init(ad),delete window.VXETablePro),gu().prototype.$vxe?(gu().prototype.$vxe.t=ad.t,gu().prototype.$vxe._t=ad._t):gu().prototype.$vxe={t:ad.t,_t:ad._t},CC||(CC=!0,ad.dynamicApp&&ad.dynamicApp.component(Tx.name,Tx)),e.component(Tx.name,Tx)}});ad.component(Tx);const SC=_C,kC=Object.assign({},Vx,{install(e){e.component(Vx.name,Vx)}});ad.dynamicApp&&ad.dynamicApp.component(Vx.name,Vx),ad.component(Vx);const EC=kC,OC={vxe:{base:{pleaseInput:"请输入",pleaseSelect:"请选择",comma:",",fullStop:"。"},loading:{text:"加载中..."},error:{downErr:"下载失败",errLargeData:"当绑定的数据量过大时,应该请使用 {0},否则可能会出现卡顿",groupFixed:"如果使用分组表头,冻结列必须按组设置",groupMouseRange:'分组表头与 "{0}" 不能同时使用,这可能会出现错误',groupTag:'分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',scrollErrProp:'启用虚拟滚动后不支持该参数 "{0}"',errConflicts:'参数 "{0}" 与 "{1}" 有冲突',modelConflicts:'绑定的字段值 "{0}" 与 "{1}" 存在冲突,将会出现错误',notSupportProp:'当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',reqSupportProp:'当使用 "{0}" 时,应该设置 "{1}",否则可能会出现错误',notConflictProp:'当使用 "{0}" 时,应该设置 "{1}",否则可能会存在功能冲突',unableInsert:"无法插入到指定位置,请检查参数是否正确",useErr:'安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',barUnableLink:"工具栏无法关联表格",expandContent:'展开行的插槽应该是 "content",请检查是否正确',reqComp:'缺少 "{0}" 组件,请检查是否正确安装。 https://vxeui.com/#/start/useUI/useGlobal',reqModule:'缺少 "{0}" 模块',reqProp:'缺少必要的 "{0}" 参数,这可能会导致出现错误',emptyProp:'参数 "{0}" 不允许为空',errProp:'不支持的参数 "{0}",可能为 "{1}"',colRepet:'column.{0}="{1}" 重复了,这可能会导致某些功能无法使用',notFunc:'方法 "{0}" 不存在',errFunc:'参数 "{0}" 不是一个方法',notValidators:'全局校验 "{0}" 不存在',notFormats:'全局格式化 "{0}" 不存在',notCommands:'全局指令 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:'树结构不支持 "{0}"',noGroup:'数据分组后不支持 "{0}"',notProp:'不支持的参数 "{0}"',returnErr:'参数 "{0}" 的返回值期望是 "{1}" 实际是 "{2}"',notSupportReturn:'当返回值为 "{0}" 时的参数应该使用用 "{1}" 而不是 "{2}"',checkProp:'当数据量过大时可能会导致复选框卡顿,建议设置参数 "{0}" 提升渲染速度',coverProp:'"{0}" 的参数 "{1}" 重复定义,这可能会出现错误',uniField:'字段名 "{0}" 重复定义,这可能会出现错误',repeatKey:'主键重复 {0}="{1}",这可能会出现错误',repeatProp:'参数重复 {0}="{1}",这可能会出现错误',delFunc:'方法 "{0}" 已废弃,请使用 "{1}"',delProp:'参数 "{0}" 已废弃,请使用 "{1}"',delEvent:'事件 "{0}" 已废弃,请使用 "{1}"',removeProp:'参数 "{0}" 已废弃,不建议使用,这可能会导致出现错误',errFormat:'全局的格式化内容应该使用 "VXETable.formats" 定义,挂载 "formatter={0}" 的方式已不建议使用',notType:'不支持的文件类型 "{0}"',notExp:"该浏览器不支持导入/导出功能",impFields:"导入失败,请检查字段名和数据格式是否正确",treeNotImp:"树表格不支持导入",treeCrossDrag:"只能拖拽第一层级",treeDragChild:"父级不能拖拽到自己的子级中",reqPlugin:'扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/start/npmInstall',errMaxRow:"超过支持的最大数据量 {0} 行,这可能会导致出现错误",useNew:"不建议使用 {0},请使用 {1}",errorVersion:"版本不匹配,当前版本 {0},最低支持版本为 {1}"},table:{emptyText:"暂无数据",allTitle:"全选/取消",seqTitle:"序号",actionTitle:"操作",confirmFilter:"筛选",resetFilter:"重置",allFilter:"全部",sortAsc:"升序:最低到最高",sortDesc:"降序:最高到最低",filter:"对所选的列启用筛选",impSuccess:"成功导入 {0} 条记录",expLoading:"正在导出中",expSuccess:"导出成功",expError:"导出失败",expFilename:"导出_{0}",expOriginFilename:"导出_源_{0}",customTitle:"个性化设置",customAll:"全部",customConfirm:"确认",customClose:"关闭",customCancel:"取消",customRestore:"恢复默认",maxFixedCol:"最大冻结列的数量不能超过 {0} 个",maxGroupCol:"最大分组字段的数量不能超过 {0} 个",dragTip:"移动:{0}",resizeColTip:"宽:{0} 像素",resizeRowTip:"高:{0} 像素",rowGroupContentTotal:"{0}({1})",menuLoading:"加载中..."},grid:{selectOneRecord:"请至少选择一条记录!",deleteSelectRecord:"您确定要删除所选记录吗?",removeSelectRecord:"您确定要移除所选记录吗?",dataUnchanged:"数据未改动!",delSuccess:"成功删除所选记录!",saveSuccess:"保存成功!",operError:"发生错误,操作失败!"},select:{clear:"清除",allChecked:"全选",total:"已选 {0} 项",close:"关闭",search:"搜索",loadingText:"加载中...",emptyText:"暂无数据",maxSize:"最大可选择的数量不能超过 {0} 个",overSizeErr:"已超出最大可选数量 {0} 个,超出部分将被忽略!",searchEmpty:"未匹配到数据!"},list:{allChecked:"全选",dragTip:"移动:{0}"},tree:{searchEmpty:"未匹配到数据!",dragTip:"移动:{0}"},treeSelect:{clearChecked:"清除",allChecked:"全选",allExpand:"全部展开",clearExpand:"全部收起",total:"已选 {0} 项",close:"关闭",search:"搜索",emptyText:"暂无数据"},pager:{goto:"前往",gotoTitle:"页数",pagesize:"{0}条/页",total:"共 {0} 条记录",pageClassifier:"页",homePage:"首页",homePageTitle:"首页",prevPage:"上一页",prevPageTitle:"上一页",nextPage:"下一页",nextPageTitle:"下一页",prevJump:"向上跳页",prevJumpTitle:"向上跳页",nextJump:"向下跳页",nextJumpTitle:"向下跳页",endPage:"末页",endPageTitle:"末页"},alert:{title:"系统提示"},button:{confirm:"确认",cancel:"取消",clear:"清除"},filter:{search:"搜索"},custom:{cstmTitle:"个性化设置",cstmRestore:"恢复默认",cstmCancel:"取消",cstmConfirm:"确定",cstmConfirmRestore:"请确认是否恢复成默认列配置?",cstmDragTarget:"移动:{0}",setting:{colSort:"排序",sortHelpTip:"点击图标开始拖动",colTitle:"列标题",colResizable:"列宽(像素)",colVisible:"是否显示",colFixed:"冻结列",colFixedMax:"冻结列({0})",colAlign:"对齐方式",colHeadAlign:"表头对齐方式",colFootAlign:"表尾对齐方式",fixedLeft:"左",fixedUnset:"无",fixedRight:"右",alignLeft:"左",alignCenter:"中",alignRight:"右",moveUp:"上移",moveDn:"下移",putTop:"置顶",putBottom:"置尾",moveUpTitle:"点击向上移动",moveDnTitle:"点击向下移动",putTopTitle:"点击置顶",putBottomTitle:"点击置尾",anLeftTitle:"左对齐",anCenterTitle:"居中",anRightTitle:"右对齐"}},import:{modes:{covering:"覆盖方式(直接覆盖表格数据)",insert:"底部追加(在表格的底部追加新数据)",insertTop:"顶部追加(在表格的顶部追加新数据)",insertBottom:"底部追加(在表格的底部追加新数据)"},impTitle:"导入数据",impFile:"文件名",impSelect:"选择文件",impType:"文件类型",impOpts:"参数设置",impMode:"导入模式",impConfirm:"导入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"网页(*.html)",xml:"XML 数据(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{empty:"空数据",current:"当前数据(当前页的数据)",selected:"选中数据(当前页选中的数据)",all:"全量数据(包括所有分页的数据)"},printTitle:"打印数据",expTitle:"导出数据",expName:"文件名",expNamePlaceholder:"请输入文件名",expSheetName:"标题",expSheetNamePlaceholder:"请输入标题",expType:"保存类型",expMode:"选择数据",expCurrentColumn:"全部字段",expColumn:"选择字段",widthMode:"列宽设置",wModeTitle:"设置打印时列宽的渲染方式",wdModes:{default:"默认",auto:"自适应(根据内容自适应列宽)",scale:"等比例(根据页面比例渲染列宽)"},expOpts:"参数设置",expOptHeader:"表头",expHeaderTitle:"是否需要表头",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expOptTitle:"列标题",expTitleTitle:"是否为列标题,否则显示为列的字段名",expColgroupTitle:"如果存在,则支持带有分组结构的表头",expOptMerge:"合并",expMergeTitle:"如果存在,则支持带有合并结构的单元格",expOptAllExpand:"展开树",expAllExpandTitle:"如果存在,则支持将带有层级结构的数据全部展开",expOptTreeAllExpand:"展开树",expTreeAllExpandTitle:"如果存在,则自动展开所有树层级",expOptRowGroupAllExpand:"展开分组",expRowGroupAllExpandTitle:"如果存在,则自动展开所有分组层级",expOptUseStyle:"样式",expUseStyleTitle:"如果存在,则支持带样式的单元格",expOptOriginal:"源数据",expOriginalTitle:"如果为源数据,则支持导入到表格中",expPrint:"打印",expConfirm:"导出",expCancel:"取消"},modal:{errTitle:"错误提示",zoomMin:"最小化",zoomIn:"最大化",zoomOut:"还原",close:"关闭",miniMaxSize:"最小化窗口的数量不能超过 {0} 个",footPropErr:"show-footer 仅用于启用表尾,需配合 show-confirm-button | show-cancel-button | 插槽使用"},drawer:{close:"关闭"},form:{folding:"收起",unfolding:"展开"},toolbar:{import:"导入",export:"导出",print:"打印",refresh:"刷新",zoomIn:"全屏",zoomOut:"还原",custom:"个性化设置",customAll:"全部",customConfirm:"确认",customRestore:"重置",fixedLeft:"冻结在左侧",fixedRight:"冻结在右侧",cancelFixed:"取消冻结列"},iconPicker:{search:"搜索",emptyText:"暂无数据"},datePicker:{yearTitle:"{0} 年"},dateRangePicker:{pleaseRange:"请选择开始日期与结束日期"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}},calendar:{yearLabel:"{0} 年",monthLabel:"{0} 月"},cascader:{clearChecked:"清除",allChecked:"全选",total:"已选 {0} 项",close:"关闭",search:"搜索"},numberInput:{currencySymbol:"¥"},imagePreview:{popupTitle:"预览",operBtn:{zoomOut:"缩小",zoomIn:"放大",pctFull:"等比例缩放",pct11:"显示原始尺寸",rotateLeft:"向左旋转",rotateRight:"向右旋转",print:"点击打印图片",download:"点击下载图片"}},upload:{fileBtnText:"点击或拖拽上传",imgBtnText:"点击或拖拽上传",dragPlaceholder:"请把文件拖放到这个区域即可上传",imgSizeHint:"单张{0}",imgCountHint:"最多{0}张",fileTypeHint:"支持 {0} 文件类型",fileSizeHint:"单个文件大小不超过{0}",fileCountHint:"最多可上传{0}个文件",uploadTypeErr:"文件类型不匹配!",overCountErr:"最多只能选择{0}个文件!",overCountExtraErr:"已超出最大数量{0}个,超出的{1}个文件将被忽略!",overSizeErr:"文件大小最大不能超过{0}!",manualUpload:"点击上传",reUpload:"重新上传",uploadProgress:"上传中 {0}%",uploadErr:"上传失败",uploadSuccess:"上传成功",moreBtnText:"更多({0})",moreImgBtnText:"图片({0})",moreFileBtnText:"文件({0})",viewItemTitle:"点击查看",morePopup:{readTitle:"查看列表",imageTitle:"上传图片",fileTitle:"上传文件"}},empty:{defText:"暂无数据"},colorPicker:{clear:"清除",confirm:"确认",copySuccess:"已复制到剪贴板:{0}",hex:"十六进制"},formDesign:{formName:"表单名称",defFormTitle:"未命名的表单",widgetPropTab:"控件属性",widgetFormTab:"表单属性",error:{wdFormUni:"该类型的控件在表单中只允许添加一个",wdSubUni:"该类型的控件在子表中只允许添加一个"},styleSetting:{btn:"样式设置",title:"表单的样式设置",layoutTitle:"控件布局",verticalLayout:"上下布局",horizontalLayout:"横向布局",styleTitle:"标题样式",boldTitle:"标题加粗",fontBold:"加粗",fontNormal:"常规",colonTitle:"显示冒号",colonVisible:"显示",colonHidden:"隐藏",alignTitle:"对齐方式",widthTitle:"标题宽度",alignLeft:"居左",alignRight:"居右",unitPx:"像素",unitPct:"百分比"},widget:{group:{base:"基础控件",layout:"布局控件",system:"系统控件",module:"模块控件",chart:"图表控件",advanced:"高级控件"},copyTitle:"副本_{0}",component:{input:"输入框",textarea:"文本域",select:"下拉选择",row:"一行多列",title:"标题",text:"文本",subtable:"子表",VxeSwitch:"是/否",VxeInput:"输入框",VxeNumberInput:"数字",VxeDatePicker:"日期",VxeTextarea:"文本域",VxeSelect:"下拉选择",VxeTreeSelect:"树形选择",VxeRadioGroup:"单选框",VxeCheckboxGroup:"复选框",VxeUploadFile:"文件",VxeUploadImage:"图片",VxeRate:"评分",VxeSlider:"滑块"}},widgetProp:{name:"控件名称",placeholder:"提示语",required:"必填校验",multiple:"允许多选",displaySetting:{name:"显示设置",pc:"电脑端",mobile:"手机端",visible:"显示",hidden:"隐藏"},dataSource:{name:"数据源",defValue:"选项{0}",addOption:"添加选项",batchEditOption:"批量编辑",batchEditTip:"每行对应一个选项,支持从表格、Excel、WPS 中直接复制粘贴。",batchEditSubTip:"每行对应一个选项,如果是分组,子项可以是空格或制表键开头,支持从表格、Excel、WPS 中直接复制粘贴。",buildOption:"生成选项"},rowProp:{colSize:"列数",col2:"两列",col3:"三列",col4:"四列",col6:"六列",layout:"布局"},textProp:{name:"内容",alignTitle:"对齐方式",alignLeft:"居左",alignCenter:"居中",alignRight:"居右",colorTitle:"字体颜色",sizeTitle:"字体大小",boldTitle:"字体加粗",fontNormal:"常规",fontBold:"加粗"},subtableProp:{seqTitle:"序号",showSeq:"显示序号",showCheckbox:"允许多选",errSubDrag:"子表不支持该控件,请使用其他控件",colPlace:"将控件拖拽进来"},uploadProp:{limitFileCount:"文件数量限制",limitFileSize:"文件大小限制",multiFile:"允许上传多个文件",limitImgCount:"图片数量限制",limitImgSize:"图片大小限制",multiImg:"允许上传多张图片"}}},listDesign:{fieldSettingTab:"字段设置",listSettingTab:"参数设置",searchTitle:"查询条件",listTitle:"列表字段",searchField:"查询字段",listField:"列表字段",activeBtn:{ActionButtonUpdate:"编辑",ActionButtonDelete:"删除"},search:{addBtn:"编辑",emptyText:"未配置查询条件",editPopupTitle:"编辑查询字段"},searchPopup:{colTitle:"标题",saveBtn:"保存"}},text:{copySuccess:"已复制到剪贴板",copyError:"当前环境不支持该操作"},countdown:{formats:{yyyy:"年",MM:"月",dd:"天",HH:"时",mm:"分",ss:"秒"}},contextMenu:{loadingText:"加载中..."},switch:{onText:"打开",offText:"关闭"},gantt:{tFullFormat:{year:"{yyyy}年",quarter:"{yyyy}年第{q}季度",month:"{yyyy}年{MM}月",week:"{yyyy}年第{W}周",day:"{yyyy}年{MM}月 {eLabel}",date:"{yyyy}年{MM}月{dd}日",hour:"{yyyy}年{MM}月{dd}日{HH}时",minute:"{yyyy}年{MM}月{dd}日{HH}时{mm}分",second:"{yyyy}年{MM}月{dd}日{HH}时{mm}分{ss}秒"},tSimpleFormat:{year:"{yyyy}年",quarter:"{q}季度",month:"{M}月",week:"{W}周",day:"{eLabel}",date:"{d}",hour:"{HH}",minute:"{mm}",second:"{ss}"},stepFormat:{year:"{start.yyyy}~{end.yyyy}年",quarter:"{start.q}~{end.q}季度",month:"{start.M}~{end.M}月",week:"{start.W}~{end.W}周",day:"{eStartLabel}~{eEndLabel}",date:"{start.d}~{end.d}",hour:"{start.HH}~{end.HH}",minute:"{start.mm}~{end.mm}",second:"{start.ss}~{end.ss}"},dayss:{w0:"日",w1:"一",w2:"二",w3:"三",w4:"四",w5:"五",w6:"六"},days:{w0:"日",w1:"一",w2:"二",w3:"三",w4:"四",w5:"五",w6:"六"}},plugins:{extendCellArea:{area:{mergeErr:"无法对合并单元格进行该操作",multiErr:"无法对多重选择区域进行该操作",selectErr:"无法操作指定区域的单元格",extendErr:"若要执行此操作,所有合并的单元格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作",cpInvalidErr:"该操作无法进行,您选择的区域中存在被禁止的列({0})"},fnr:{title:"查找和替换",titleFd:"查找",titleRe:"替换",findLabel:"查找",replaceLabel:"替换",findTitle:"查找内容:",replaceTitle:"替换为:",tabs:{find:"查找",replace:"替换"},filter:{re:"正则表达式",whole:"全词匹配",sensitive:"区分大小写"},btns:{findNext:"查找下一个",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"单元格",value:"值"},body:{row:"行:{0}",col:"列:{0}"},empty:"(空值)",reError:"无效的正则表达式",recordCount:"已找到 {0} 个单元格",notCell:"找不到匹配的单元格",replaceSuccess:"成功替换 {0} 个单元格"}},extendPivotTable:{aggregation:{grouping:"分组",values:"值",groupPlaceholder:"拖至此处进行分组",valuesPlaceholder:"拖至此处进行聚合",dragExistCol:"该列已存在",sortHelpTip:"点击图标开始拖动"},aggFuncs:{sum:"求和",count:"计数",avg:"平均值",min:"最小值",max:"最大值",first:"首个值",last:"末尾值"}},filterComplexInput:{menus:{fixedColumn:"冻结列",fixedGroup:"冻结分组",cancelFixed:"取消冻结",fixedLeft:"冻结左侧",fixedRight:"冻结右侧"},cases:{equal:"等于",gt:"大于",lt:"小于",begin:"开头是",endin:"结尾是",include:"包含",isSensitive:"区分大小写"}},filterCombination:{menus:{sort:"排序",clearSort:"清除排序",sortAsc:"升序",sortDesc:"降序",fixedColumn:"冻结列",fixedGroup:"冻结分组",cancelFixed:"取消冻结",fixedLeft:"冻结左侧",fixedRight:"冻结右侧",clearFilter:"清除筛选",textOption:"文本筛选",numberOption:"数值筛选",dateOption:"日期筛选"},popup:{title:"自定义筛选的方式",currColumnTitle:"显示行:",and:"与",or:"或",describeHtml:"可用 ? 代表单个字符<br/>用 * 代表任意多个字符"},cases:{equal:"等于",unequal:"不等于",gt:"大于",ge:"大于或等于",lt:"小于",le:"小于或等于",begin:"开头是",notbegin:"开头不是",endin:"结尾是",notendin:"结尾不是",include:"包含",exclude:"不包含",between:"介于",isAfter:"在以下日期之后",eqAfter:"在以下日期之后或与之相同",isBefore:"在以下日期之前",eqBefore:"在以下日期之前或与之相同",top10:"前10项",aboveAverage:"高于平均值",belowAverage:"低于平均值",before:"之前",after:"之后",tomorrow:"明天",today:"今天",yesterday:"昨天",nextWeek:"下周",thisWeek:"本周",lastWeek:"上周",nextMonth:"下月",thisMonth:"本月",lastMonth:"上月",nextYear:"明年",thisYear:"今年",lastYear:"去年",yearToDate:"本年度截止到现在",custom:"自定义筛选",insensitive:"不区分大小写",isSensitive:"区分大小写"},empty:"(空白)",notData:"无匹配项"}},pro:{area:{mergeErr:"无法对合并单元格进行该操作",multiErr:"无法对多重选择区域进行该操作",extendErr:"若要执行此操作,所有合并的单元格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替换",titleFd:"查找",titleRe:"替换",findLabel:"查找",replaceLabel:"替换",findTitle:"查找内容:",replaceTitle:"替换为:",tabs:{find:"查找",replace:"替换"},filter:{re:"正则表达式",whole:"全词匹配",sensitive:"区分大小写"},btns:{findNext:"查找下一个",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"单元格",value:"值"},empty:"(空值)",reError:"无效的正则表达式",recordCount:"已找到 {0} 个单元格",notCell:"找不到匹配的单元格",replaceSuccess:"成功替换 {0} 个单元格"}},renderer:{search:"搜索",cases:{equal:"等于",unequal:"不等于",gt:"大于",ge:"大于或等于",lt:"小于",le:"小于或等于",begin:"开头是",notbegin:"开头不是",endin:"结尾是",notendin:"结尾不是",include:"包含",exclude:"不包含",between:"介于",top10:"前10项",aboveAverage:"高于平均值",belowAverage:"低于平均值",custom:"自定义筛选",insensitive:"不区分大小写",isSensitive:"区分大小写"},combination:{menus:{sort:"排序",clearSort:"清除排序",sortAsc:"升序",sortDesc:"降序",fixedColumn:"冻结列",fixedGroup:"冻结分组",cancelFixed:"取消冻结",fixedLeft:"冻结到左侧",fixedRight:"冻结到右侧",clearFilter:"清除筛选",textOption:"文本筛选",numberOption:"数值筛选",dateOption:"日期筛选"},popup:{title:"自定义筛选的方式",currColumnTitle:"显示行:",and:"与",or:"或",describeHtml:"可用 ? 代表单个字符<br/>用 * 代表任意多个字符"},empty:"(空白)",notData:"无匹配项"}}}},TC=[df,ff,aw,_C,kC];function $C(e,t){ad.setConfig(t),TC.forEach(t=>t.install(e))}if(!ad.hasLanguage("zh-CN")){const e="zh-CN";ad.setI18n(e,OC),ad.setLanguage(e)}ad.setTheme("light")},9274(t){"use strict";t.exports=e}};const n={};function r(e){const i=n[e];if(void 0!==i)return i.exports;const o=n[e]={id:e,loaded:!1,exports:{}};return t[e](o,o.exports,r),o.loaded=!0,o.exports}r.amdO={},r.n=e=>{const t=e&&e.__esModule?()=>e["default"]:()=>e;return r.d(t,{a:t}),t},r.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},r.d=(e,t)=>{if(Array.isArray(t)){var n=0;while(n<t.length){var i=t[n++],o=t[n++],a=0===o?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:o};r.o(e,i)||Object.defineProperty(e,i,a)}}else for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);let i={};return(()=>{"use strict";r.r(i),r.d(i,{default:()=>or});var e=()=>r(1515),t=r.cw(function(t,n){Object.defineProperty(n,"__esModule",{value:!0});var r={};n["default"]=void 0;var i=o(e());function o(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(o=function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,a={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return a;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,a)}for(const n in e)"default"!==n&&{}.hasOwnProperty.call(e,n)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,n))&&(o.get||o.set)?i(a,n,o):a[n]=e[n]);return a})(e,t)}Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in n&&n[e]===i[e]||Object.defineProperty(n,e,{enumerable:!0,get:function(){return i[e]}}))});n["default"]=i});if("undefined"!==typeof window){var n=window.document.currentScript,o=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(r.p=o[1])}var a=function(){var e=this,t=e._self._c;return t("el-button",e._g(e._b({attrs:{type:e.type,icon:e.icon,size:"mini"}},"el-button",e.$attrs,!1),e.$listeners),[e._t("default",function(){return[e._v(e._s(e.label))]})],2)},s=[];const l={name:"StandardButton",props:{label:{type:String,default:""},icon:{type:String,default:""},type:{type:String,default:""}}},c=l;function u(e,t,n,r,i,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var d=u(c,a,s,!1,null,null,null);const h=d.exports;var p=function(){var e=this,t=e._self._c;return t("section",{staticClass:"standard-dialog",class:{"is-draggable":e.canDrag}},[t("el-dialog",e._g(e._b({ref:"dialog",attrs:{visible:e.dialogVisible,title:e.title,fullscreen:e.fullscreenActive,"custom-class":e.dialogCustomClass,"close-on-click-modal":e.closeOnClickModal},on:{"update:visible":function(t){e.dialogVisible=t},opened:e.markDraggable}},"el-dialog",e.$attrs,!1),e.$listeners),[t("template",{slot:"title"},[t("span",{staticClass:"el-dialog__title"},[e._v(e._s(e.title))]),e.fullscreenButtonVisible?t("button",{staticClass:"standard-dialog__fullscreen",attrs:{type:"button","aria-label":e.fullscreenActive?"退出全屏":"全屏"},on:{click:function(t){return t.stopPropagation(),e.toggleFullscreen.apply(null,arguments)}}},[t("i",{class:e.fullscreenActive?"el-icon-c-scale-to-original":"el-icon-full-screen"})]):e._e()]),e._t("default"),t("template",{slot:"footer"},[e.showCancel?t("el-button",{attrs:{size:"mini"},on:{click:e.handleCancel}},[e._v("取消")]):e._e(),e.showConfirm?t("el-button",{attrs:{size:"mini",type:"primary",loading:e.confirmLoading},on:{click:e.handleConfirm}},[e._v("确定")]):e._e()],1)],2)],1)},f=[];const m={name:"StandardDialog",model:{prop:"visible",event:"update:visible"},props:{visible:{type:Boolean,default:!1},title:{type:String,default:""},showCancel:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},confirmLoading:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},showFullscreen:{type:Boolean,default:!1},defaultFullscreen:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},data:function(){return{fullscreenActive:!1}},computed:{dialogVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}},canDrag:function(){return this.draggable&&!this.fullscreenActive},fullscreenButtonVisible:function(){return this.showFullscreen||this.defaultFullscreen},initialFullscreen:function(){return this.fullscreen||this.defaultFullscreen},showCloseButton:function(){var e=this.$attrs||{},t=void 0!==e.showClose?e.showClose:e["show-close"];return void 0===t||!1!==t&&"false"!==t},dialogCustomClass:function(){var e=this.$attrs.customClass||this.$attrs["custom-class"]||"",t=[e,"standard-dialog__panel"];return this.canDrag&&t.push("is-draggable"),this.fullscreenButtonVisible&&t.push("has-fullscreen-btn"),this.showCloseButton||t.push("is-close-hidden"),t.filter(Boolean).join(" ")}},watch:{visible:function(e){var t=this;if(e)return this.fullscreenActive=this.initialFullscreen,this.resetDragPosition(),void this.$nextTick(function(){return t.markDraggable()});this.stopDrag()},draggable:function(){this.draggable||(this.stopDrag(),this.resetDragPosition()),this.markDraggable()}},created:function(){this._dragging=!1,this._dialogEl=null,this.fullscreenActive=this.initialFullscreen},mounted:function(){var e=this;document.addEventListener("mousedown",this.onDocumentMouseDown,!0),this.$nextTick(function(){return e.markDraggable()})},beforeDestroy:function(){this.stopDrag(),document.removeEventListener("mousedown",this.onDocumentMouseDown,!0)},methods:{handleCancel:function(){this.$emit("cancel"),this.dialogVisible=!1},handleConfirm:function(){this.$emit("confirm")},toggleFullscreen:function(){var e=this;this.stopDrag(),this.resetDragPosition(),this.fullscreenActive=!this.fullscreenActive,this.$emit("update:fullscreen",this.fullscreenActive),this.$nextTick(function(){return e.markDraggable()})},getWrapperEl:function(){var e=this.$refs.dialog,t=[];e&&e.$el&&t.push(e.$el),this.$el&&t.push(this.$el);for(var n=0;n<t.length;n++){var r=t[n];if(r&&1===r.nodeType){if(r.classList.contains("el-dialog__wrapper"))return r;if(r.querySelector){var i=r.querySelector(".el-dialog__wrapper");if(i)return i}}}return null},getDialogEl:function(){var e=this.getWrapperEl();return e?e.querySelector(".el-dialog"):null},markDraggable:function(){var e=this.getDialogEl();e&&e.classList.toggle("is-draggable",this.canDrag)},onDocumentMouseDown:function(e){if(this.canDrag&&this.visible&&!this._dragging&&0===e.button){var t=e.target;if(t&&t.closest&&!t.closest(".el-dialog__headerbtn, button, input, textarea, select, a")){var n=t.closest(".el-dialog__header");if(n){var r=n.closest(".el-dialog"),i=this.getWrapperEl();r&&i&&i.contains(r)&&(r.classList.contains("is-fullscreen")||this.startDrag(e,r))}}}},startDrag:function(e,t){var n=t.getBoundingClientRect();t.style.width=n.width+"px",t.style.position="fixed",t.style.margin="0",t.style.transform="none",t.style.left=n.left+"px",t.style.top=n.top+"px";var r=t.getBoundingClientRect(),i=n.left+(n.left-r.left),o=n.top+(n.top-r.top);t.style.left=i+"px",t.style.top=o+"px",this._dragging=!0,this._moved=!1,this._dialogEl=t,this._startX=e.clientX,this._startY=e.clientY,this._originLeft=i,this._originTop=o,this._dialogWidth=n.width,this._prevUserSelect=document.body.style.userSelect,this._prevCursor=document.body.style.cursor,document.body.style.userSelect="none",document.body.style.cursor="move",window.addEventListener("mousemove",this.onDragMove,!0),window.addEventListener("mouseup",this.onDragEnd,!0),window.addEventListener("blur",this.onDragEnd),e.preventDefault()},onDragMove:function(e){if(this._dragging&&this._dialogEl){var t=this._originLeft+(e.clientX-this._startX),n=this._originTop+(e.clientY-this._startY),r=48,i=window.innerWidth-r,o=r-this._dialogWidth,a=window.innerHeight-r;t=Math.min(i,Math.max(o,t)),n=Math.min(a,Math.max(0,n)),t=Math.round(t),n=Math.round(n),this._dialogEl.style.left=t+"px",this._dialogEl.style.top=n+"px",t===Math.round(this._originLeft)&&n===Math.round(this._originTop)||(this._moved=!0),e.preventDefault()}},onDragEnd:function(e){if(this._dragging){var t=this._moved,n=e&&"mouseup"===e.type;this.stopDrag(),t&&n&&this.suppressNextClick()}},stopDrag:function(){this._dragging&&(this._dragging=!1,window.removeEventListener("mousemove",this.onDragMove,!0),window.removeEventListener("mouseup",this.onDragEnd,!0),window.removeEventListener("blur",this.onDragEnd),document.body.style.userSelect=this._prevUserSelect||"",document.body.style.cursor=this._prevCursor||"")},suppressNextClick:function(){var e=function(t){t.preventDefault(),t.stopPropagation(),document.removeEventListener("click",e,!0)};document.addEventListener("click",e,!0),setTimeout(function(){document.removeEventListener("click",e,!0)},50)},resetDragPosition:function(){var e=this._dialogEl||this.getDialogEl();this._dialogEl=e,e&&(e.style.position="",e.style.margin="",e.style.left="",e.style.top="",e.style.width="",e.style.transform="")}}},g=m;r(4780);var v=u(g,p,f,!1,null,null,null);const b=v.exports;var y=function(){var e=this,t=e._self._c;return t("section",{staticClass:"standard-container",style:e.containerStyle},[e._t("default")],2)},x=[];const w={name:"StandardContainer",props:{direction:{type:String,default:"column",validator:function(e){return["column","row"].indexOf(e)>-1}},size:{type:Number,default:100},height:{type:[String,Number],default:null},width:{type:[String,Number],default:null}},computed:{parentContainer:function(){var e=this.$parent;while(e&&"StandardContainer"!==e.$options.name)e=e.$parent;return e},mainAxis:function(){return this.parentContainer?this.parentContainer.direction:"column"},percent:function(){var e=Number(this.size);return isNaN(e)?100:Math.min(100,Math.max(0,e))},containerStyle:function(){var e={flexDirection:this.direction},t=function(e){return"number"===typeof e?"".concat(e,"px"):e};return null!=this.width&&""!==this.width&&(e.width=t(this.width)),null!=this.height&&""!==this.height&&(e.height=t(this.height)),"column"===this.mainAxis?null==e.height&&(e.height="".concat(this.percent,"%")):null==e.width&&(e.width="".concat(this.percent,"%")),e}}},C=w;r(5714);var _=u(C,y,x,!1,null,"b0b5121a",null);const S=_.exports;var k=function(){var e=this,t=e._self._c;return e.renderValid?t("section",{staticClass:"normal-report-toolbar-panel standard-filterbar"},[t("div",{staticClass:"normal-report-filter-row normal-report-filter-row-primary"},[e._l(e.mainConditions,function(n){return t("filter-search-item",{key:n.value,staticClass:"standard-filterbar-item",class:e.itemClass(n),attrs:{cond:n,"search-bar":e.searchBar,options:e.getOptions(n),"is-remote":e.isRemoteCond(n),"remote-method":e.remoteMethods[n.value]||null,"remote-loading":!!e.remoteLoading[n.value],"on-search":e.onSearch,"on-focus":function(){return e.handleSelectFocus(n)}}})}),t("div",{staticClass:"normal-report-filter-actions"},[t("standard-button",{attrs:{type:"primary",loading:e.loading,icon:"el-icon-search",label:"查询"},on:{click:e.onSearch}}),t("standard-button",{attrs:{icon:"el-icon-refresh-left",label:"重置"},on:{click:e.onReset}}),e.showExport?t("standard-button",{attrs:{icon:"el-icon-upload",label:"导出"},on:{click:function(t){return e.$emit("export")}}}):e._e(),e.showAdvancedQuery&&e.secondaryConditions.length?t("standard-advanced-query",{ref:"advancedQuery",attrs:{conditions:e.secondaryConditions,"search-bar":e.searchBar},on:{search:e.onSearch}}):e.showExpand&&e.secondaryConditions.length?t("standard-button",{staticClass:"normal-report-expand-button",attrs:{icon:e.expanded?"el-icon-arrow-up":"el-icon-arrow-down",label:"更多".concat(e.secondaryActiveCount?" (".concat(e.secondaryActiveCount,")"):"")},on:{click:function(t){e.expanded=!e.expanded}}}):e._e()],1)],2),t("transition",{attrs:{name:"normal-report-filter-expand"}},[e.secondaryConditions.length?t("div",{directives:[{name:"show",rawName:"v-show",value:e.secondaryVisible,expression:"secondaryVisible"}],staticClass:"normal-report-filter-row normal-report-filter-row-secondary"},e._l(e.secondaryConditions,function(n){return t("filter-search-item",{key:n.value,staticClass:"standard-filterbar-item",class:e.itemClass(n),attrs:{cond:n,"search-bar":e.searchBar,options:e.getOptions(n),"is-remote":e.isRemoteCond(n),"remote-method":e.remoteMethods[n.value]||null,"remote-loading":!!e.remoteLoading[n.value],"on-search":e.onSearch,"on-focus":function(){return e.handleSelectFocus(n)}}})}),1):e._e()])],1):e._e()},E=[],O=function(){var e=this,t=e._self._c;return t("el-popover",{staticClass:"standard-advanced-query-entry",attrs:{placement:"bottom-end",trigger:"click"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[t("div",{staticClass:"standard-advanced-query-panel"},[t("div",{staticClass:"standard-advanced-query-list"},[e.rows.length?e._l(e.rows,function(n,r){return t("div",{key:n.uid,staticClass:"standard-advanced-query-item"},[t("el-select",{staticClass:"standard-advanced-query-item-field",attrs:{value:n.field,size:"mini",placeholder:"请选择条件"},on:{change:function(t){return e.handleRowFieldChange(n,t)}}},e._l(e.getAvailableOptions(n),function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),t("el-input",{staticClass:"standard-advanced-query-item-value",attrs:{value:e.getRowValue(n),size:"mini",placeholder:e.getRowPlaceholder(n),clearable:""},on:{input:function(t){return e.setRowValue(n,t)}}}),t("el-button",{staticClass:"standard-advanced-query-item-remove",attrs:{type:"text",size:"mini",icon:"el-icon-delete",title:"删除此条件"},on:{click:function(t){return e.removeRow(r)}}})],1)}):t("el-empty",{staticClass:"standard-advanced-query-empty",attrs:{"image-size":60,description:"点击下方新增按钮添加查询条件"}})],2),t("div",{staticClass:"standard-advanced-query-footer"},[t("el-button",{attrs:{size:"mini",icon:"el-icon-delete"},on:{click:e.clearAll}},[e._v("清空")]),t("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-plus",title:"增加查询条件"},on:{click:e.addRow}},[e._v("新增")]),t("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-search"},on:{click:e.confirm}},[e._v("确定")])],1)]),t("el-button",{attrs:{slot:"reference",size:"mini",icon:"el-icon-search"},slot:"reference"},[e._v(" 高级查询"+e._s(e.rows.length?" (".concat(e.rows.length,")"):"")+" ")])],1)},T=[];const $={name:"StandardAdvancedQuery",props:{conditions:{type:Array,default:function(){return[]}},searchBar:{type:Object,required:!0}},data:function(){return{visible:!1,rows:[],uidSeq:0,initValues:{}}},computed:{searchVariable:function(){return this.searchBar&&this.searchBar.searchVariable||{}}},watch:{conditions:function(){var e=this,t=(this.conditions||[]).map(function(e){return e&&e.value}),n=this.rows.filter(function(e){return t.indexOf(e.field)>-1});this.rows.forEach(function(n){-1===t.indexOf(n.field)&&e.restoreFieldValue(n.field)}),this.rows=n}},created:function(){var e=this;this.initValues=this.deepCopy(this.searchVariable);var t=[];(this.conditions||[]).forEach(function(n){n&&!t.some(function(e){return e.field===n.value})&&e.hasValue(n)&&t.push({uid:++e.uidSeq,field:n.value})}),this.rows=t},methods:{getRowValue:function(e){var t=e.field?this.searchVariable[e.field]:"";return t??""},setRowValue:function(e,t){e.field&&this.$set(this.searchVariable,e.field,"string"===typeof t?t.trim():t)},getRowPlaceholder:function(e){var t=(this.conditions||[]).find(function(t){return t&&t.value===e.field});return t?"请输入".concat(t.label):"请输入"},restoreFieldValue:function(e){e&&this.$set(this.searchVariable,e,this.deepCopy(this.initValues[e]))},getAvailableOptions:function(e){var t=this;return(this.conditions||[]).filter(function(n){return n&&!t.rows.some(function(t){return t!==e&&t.field===n.value})})},handleRowFieldChange:function(e,t){var n=e.field;n&&n!==t&&this.restoreFieldValue(n),e.field=t},addRow:function(){var e=this,t=(this.conditions||[]).find(function(t){return t&&!e.rows.some(function(e){return e.field===t.value})});t?this.rows.push({uid:++this.uidSeq,field:t.value}):this.$message&&this.$message.warning("所有查询条件均已添加")},removeRow:function(e){var t=this.rows[e];t&&(this.restoreFieldValue(t.field),this.rows.splice(e,1))},clearAll:function(){var e=this;this.rows.length?this.$confirm("确定清空所有高级查询条件吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.resetRows()})["catch"](function(){}):this.$message&&this.$message.info("暂无高级查询条件")},resetRows:function(){var e=this;this.rows.forEach(function(t){return e.restoreFieldValue(t.field)}),this.rows=[]},confirm:function(){var e=this;this.$emit("search"),this.$nextTick(function(){e.visible=!1,setTimeout(function(){e.visible=!1},50)})},hasValue:function(e){var t=this.searchVariable[e.value];return Array.isArray(t)?t.length>0:void 0!==t&&null!==t&&""!==String(t)},deepCopy:function(e){return void 0===e||null===e?e:JSON.parse(JSON.stringify(e))}}},D=$;r(7192);var M=u(D,O,T,!1,null,null,null);const F=M.exports;function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}var I={name:"FilterSearchItem",props:{cond:{type:Object,required:!0},searchBar:{type:Object,required:!0},options:{type:Array,default:function(){return[]}},isRemote:{type:Boolean,default:!1},remoteMethod:{type:Function,default:null},remoteLoading:{type:Boolean,default:!1},onSearch:{type:Function,default:null},onFocus:{type:Function,default:null}},render:function(e){var t=this,n=this.cond,r=this.searchBar,i=r.searchVariable||{},o=i[n.value],a=function(e){return t.$set(i,n.value,e)},s=!1!==n.clearable,l=n.placeholder||("text"===n.type?"请输入".concat(n.label):"请选择".concat(n.label)),c=n.width,u=c?{width:"number"===typeof c?"".concat(c,"px"):c,flexBasis:"number"===typeof c?"".concat(c,"px"):c}:null,d=null;switch(n.type){case"text":d=e("el-input",{class:"normal-report-filter-control",attrs:{placeholder:l},props:{value:o,size:"mini",clearable:s},on:{input:function(e){return a("string"===typeof e?e.trim():e)}},nativeOn:{keyup:function(e){13===(e.keyCode||e.which)&&t.onSearch&&t.onSearch()}}});break;case"date":d=e("el-date-picker",{class:"normal-report-filter-control",props:{value:o,size:"mini",clearable:s,placeholder:l,type:"date",valueFormat:"yyyy-MM-dd",align:"right"},on:{input:a}});break;case"datetime":d=e("el-date-picker",{class:"normal-report-filter-control",props:{value:o,size:"mini",clearable:s,placeholder:l,type:"datetime",valueFormat:"yyyy-MM-dd HH:mm:ss",align:"right"},on:{input:a}});break;default:var h="select-multi"===n.type;d=e("el-select",{class:"normal-report-filter-control",props:{value:h?Array.isArray(o)?o:[]:o,size:"mini",clearable:s,placeholder:l,multiple:h,filterable:!0,remote:this.isRemote,reserveKeyword:this.isRemote,loading:this.remoteLoading,remoteMethod:this.remoteMethod||null},on:{input:function(e){return a(h?e??[]:e)},"visible-change":function(e){e&&t.onFocus&&t.onFocus()}}},(this.options||[]).map(function(t,n){return e("el-option",{key:n,props:{label:t.label,value:t.value}})}))}return e("label",{class:"normal-report-filter-item",style:u},[e("span",String(n.label)),d])}};const A={name:"StandardFilterbar",components:{FilterSearchItem:I,StandardButton:h,StandardAdvancedQuery:F},model:{prop:"searchBar",event:"input"},props:{searchBar:{type:Object,required:!0},showExport:{type:Boolean,default:!1},showExpand:{type:Boolean,default:!0},showAdvancedQuery:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},resetTriggerSearch:{type:Boolean,default:!1}},data:function(){return{renderValid:!0,expanded:!1,remoteOptions:{},remoteLoading:{},remoteMethods:{},initValues:{}}},computed:{conditions:function(){var e=this.searchBar&&this.searchBar.searchCondition||[];return Array.isArray(e)?e:[]},mainConditionCount:function(){var e=this.searchBar&&this.searchBar.mainConditionCount,t=Number(e);return void 0===e||null===e||""===e||isNaN(t)||t<0?4:t},mainConditions:function(){return this.conditions.filter(function(e){return e&&("Y"===e.isMain||!0===e.isMain)})},secondaryConditions:function(){return this.conditions.filter(function(e){return!e||"Y"!==e.isMain&&!0!==e.isMain})},secondaryVisible:function(){return!!this.secondaryConditions.length&&(!this.showAdvancedQuery&&(!this.showExpand||this.expanded))},secondaryActiveCount:function(){var e=this;return this.secondaryConditions.filter(function(t){return e.hasValue(t)}).length}},watch:{"searchBar.searchCondition":function(e){var t=this;if(this.validate(),this.renderValid){var n=Array.isArray(e)?e:[];n.forEach(function(e){t.isRemoteCond(e)&&(t.remoteMethods[e.value]||(t.remoteMethods[e.value]=t.debounce(function(n){return t.loadRemoteOptions(e,n)},300)),Object.prototype.hasOwnProperty.call(t.remoteOptions,e.value)||t.loadRemoteOptions(e,""))})}}},created:function(){var e=this;this.initValues=this.deepCopy(this.searchBar&&this.searchBar.searchVariable||{}),this.validate(),this.renderValid&&(this.showExpand&&0!==this.mainConditions.length||(this.expanded=!0),this.mainConditions.concat(this.secondaryConditions).forEach(function(t){e.isRemoteCond(t)&&(e.remoteMethods[t.value]||(e.remoteMethods[t.value]=e.debounce(function(n){return e.loadRemoteOptions(t,n)},300)),e.loadRemoteOptions(t,""))}))},methods:{validate:function(){var e=this,t=[],n=this.searchBar;if(n&&"object"===R(n)){var r=n.searchCondition,i=n.searchVariable;if(Array.isArray(r))if(!i||"object"!==R(i)||Array.isArray(i))t.push("searchVariable 必须为非空对象");else{var o=r.filter(function(e){return e&&("Y"===e.isMain||!0===e.isMain)});o.length>this.mainConditionCount&&t.push("主要的筛选条件不能超过 ".concat(this.mainConditionCount," 个(当前 ").concat(o.length," 个:").concat(o.map(function(e){return e.label}).join("、"),")"));var a=["text","date","datetime","select","select-multi"],s={};r.forEach(function(n,r){if(n&&"object"===R(n)){var o=[];n.label&&String(n.label).trim()||o.push("label"),void 0!==n.value&&null!==n.value&&""!==n.value||o.push("value"),n.type||o.push("type"),o.length?t.push("第 ".concat(r+1," 条筛选条件缺少必填项:").concat(o.join("、"))):(a.includes(n.type)||t.push("第 ".concat(r+1,' 条筛选条件 type="').concat(n.type,'" 不合法,可选值:').concat(a.join("、"))),Object.prototype.hasOwnProperty.call(i,n.value)||t.push("第 ".concat(r+1,' 条筛选条件 value="').concat(n.value,'" 在 searchVariable 中不存在,请先在父组件 data 中定义该变量')),"select"!==n.type&&"select-multi"!==n.type||n.selectSource||n.remote||console.warn("[StandardFilterbar] 第 ".concat(r+1," 条筛选条件“").concat(n.label,"”为下拉类型,但未配置 selectSource 或 remote,下拉数据为空")),"string"!==typeof n.remote||e.resolveRemoteFn(n.remote)||console.warn("[StandardFilterbar] 第 ".concat(r+1," 条筛选条件“").concat(n.label,'”的 remote="').concat(n.remote,'" 未在父组件中找到对应方法')),s[n.value]&&console.warn('[StandardFilterbar] value="'.concat(n.value,'" 存在重复定义,请检查 searchCondition')),s[n.value]=!0)}else t.push("第 ".concat(r+1," 条筛选条件不是有效对象"))})}else t.push("searchCondition 必须为数组")}else t.push("未传入 searchBar 对象,请通过 v-model 绑定");"function"!==typeof this.$listeners.search&&t.push("未传入查询事件对应的方法,请通过 @search 绑定查询方法"),t.length?(console.error("[StandardFilterbar] 组件渲染失败,原因如下:\n"+t.map(function(e,t){return" ".concat(t+1,". ").concat(e)}).join("\n")),this.renderValid=!1,this.$emit("render-error",t)):this.renderValid=!0},onSearch:function(){this.$emit("search")},onReset:function(){var e=this,t=this.searchBar&&this.searchBar.searchVariable;t&&this.initValues&&(Object.keys(this.initValues).forEach(function(n){e.$set(t,n,e.deepCopy(e.initValues[n]))}),this.conditions.forEach(function(n){"select-multi"!==n.type||Array.isArray(t[n.value])||e.$set(t,n.value,[])})),this.showAdvancedQuery&&this.$refs.advancedQuery&&this.$refs.advancedQuery.resetRows(),this.$emit("reset"),this.resetTriggerSearch&&this.$emit("search")},isRemoteCond:function(e){if(!e||"select"!==e.type&&"select-multi"!==e.type)return!1;var t=!e.selectSource||Array.isArray(e.selectSource)&&0===e.selectSource.length;return t&&!!e.remote},resolveRemoteFn:function(e){if("function"===typeof e)return e;if("string"===typeof e&&e){var t=this.$parent;while(t){if("function"===typeof t[e])return t[e].bind(t);t=t.$parent}}return null},loadRemoteOptions:function(e,t){var n=this,r=this.resolveRemoteFn(e.remote);return r?(this.$set(this.remoteLoading,e.value,!0),Promise.resolve(r(t??"")).then(function(t){var r=n.normalizeOptions(n.extractOptions(t),e);return n.$set(n.remoteOptions,e.value,r),r})["catch"](function(t){return console.error("[StandardFilterbar] 筛选条件“".concat(e.label,"”远程数据加载失败"),t),[]})["finally"](function(){n.$set(n.remoteLoading,e.value,!1)})):Promise.resolve([])},extractOptions:function(e){if(Array.isArray(e))return e;if(e&&"object"===R(e)){if(Array.isArray(e.Datas))return e.Datas;if(e.data){if(Array.isArray(e.data))return e.data;if(Array.isArray(e.data.Datas))return e.data.Datas}if(Array.isArray(e.list))return e.list}return[]},normalizeOptions:function(e,t){var n=t&&t.optionProps||{},r=n.label||"label",i=n.value||"value",o=Array.isArray(e)?e:[];return o.map(function(e){return null!==e&&"object"===R(e)?{label:e[r],value:e[i]}:{label:String(e),value:e}})},getOptions:function(e){return this.isRemoteCond(e)?this.remoteOptions[e.value]||[]:this.normalizeOptions(e.selectSource,e)},handleSelectFocus:function(e){if(this.isRemoteCond(e)){var t=this.remoteOptions[e.value];t&&t.length||this.loadRemoteOptions(e,"")}},hasValue:function(e){var t=this.searchBar&&this.searchBar.searchVariable||{},n=t[e.value];return Array.isArray(n)?n.length>0:void 0!==n&&null!==n&&""!==String(n)},itemClass:function(e){return"date"===e.type||"datetime"===e.type?"normal-report-filter-item-date":""},deepCopy:function(e){return void 0===e||null===e?e:JSON.parse(JSON.stringify(e))},debounce:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,n=null;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];n&&clearTimeout(n),n=setTimeout(function(){n=null,e.apply(r,o)},t)}}}},P=A;r(1480);var L=u(P,k,E,!1,null,null,null);const N=L.exports;var j=function(){var e=this,t=e._self._c;return t("el-form",e._g(e._b({ref:"elForm",staticClass:"standard-form",style:e.formStyle,attrs:{model:e.model,rules:e.rules,size:e.size,"label-position":e.labelPosition,"label-width":e.labelWidth}},"el-form",e.$attrs,!1),e.$listeners),[t("div",{staticClass:"standard-form-body"},[e._t("default")],2)])},B=[];function V(e){return q(e)||W(e)||H(e)||z()}function z(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function H(e,t){if(e){if("string"==typeof e)return G(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}}function W(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function q(e){if(Array.isArray(e))return G(e)}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Y={name:"StandardForm",model:{prop:"model",event:"update:model"},props:{model:{type:Object,default:function(){return{}}},rules:{type:Object,default:null},size:{type:String,default:"mini"},labelPosition:{type:String,default:"right"},width:{type:[String,Number],default:null}},data:function(){return{items:[]}},computed:{formStyle:function(){return null==this.width||""===this.width?{}:{width:"number"===typeof this.width?"".concat(this.width,"px"):this.width}},labelWidth:function(){var e=this,t=this.items.map(function(t){return e.calcLabelWidth(t.label)}),n=t.length?Math.max.apply(Math,V(t)):0;return n>0?"".concat(n,"px"):"100px"}},methods:{calcLabelWidth:function(e){var t=String(e??""),n=(t.match(/[\u4e00-\u9fa5]/g)||[]).length,r=(t.match(/[A-Za-z]/g)||[]).length;return 15*n+10*r+40},registerItem:function(e){!e||this.items.indexOf(e)>-1||this.items.push(e)},unregisterItem:function(e){if(e){var t=this.items.indexOf(e);t>-1&&this.items.splice(t,1)}},validate:function(e){return this.$refs.elForm?this.$refs.elForm.validate(e):Promise.resolve(!0)},resetFields:function(){this.$refs.elForm&&this.$refs.elForm.resetFields()},clearValidate:function(e){this.$refs.elForm&&this.$refs.elForm.clearValidate(e)}}},U=Y;r(6588);var K=u(U,j,B,!1,null,null,null);const X=K.exports;var Z=function(){var e=this,t=e._self._c;return t("div",{staticClass:"standard-form-item",style:e.itemStyle},[t("el-form-item",e._g(e._b({attrs:{label:e.label,prop:e.prop}},"el-form-item",e.$attrs,!1),e.$listeners),[e._t("default")],2)],1)},Q=[];const J={name:"StandardFormItem",props:{label:{type:String,default:""},prop:{type:String,default:""},span:{type:Number,default:24}},computed:{itemStyle:function(){var e=Math.min(24,Math.max(1,Number(this.span)||24));return{width:"".concat((e/24*100).toFixed(4),"%")}}},created:function(){this.register()},beforeDestroy:function(){this.unregister()},methods:{findParentForm:function(){var e=this.$parent;while(e&&"StandardForm"!==e.$options.name)e=e.$parent;return e},register:function(){var e=this.findParentForm();e?e.registerItem(this):console.warn("[StandardFormItem] 未找到父组件 StandardForm,label-width 自动计算将失效")},unregister:function(){var e=this.findParentForm();e&&e.unregisterItem(this)}}},ee=J;var te=u(ee,Z,Q,!1,null,null,null);const ne=te.exports;X.Item=ne,X.install=function(e){e.component(X.name,X),e.component(ne.name,ne)};const re=X;var ie=function(){var e=this,t=e._self._c;return t("section",{staticClass:"standard-half-area",class:{"standard-half-area-left":e.left,"standard-half-area-right":e.right,"standard-half-area-transparent":e.transparent}},[e._t("default")],2)},oe=[];const ae={name:"StandardHalfArea",props:{left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},transparent:{type:Boolean,default:!1}}},se=ae;r(3948);var le=u(se,ie,oe,!1,null,"7888c782",null);const ce=le.exports;var ue=function(){var e=this,t=e._self._c;return t("el-input",e._g(e._b({staticClass:"standard-input",attrs:{value:e.value,placeholder:e.placeholder,size:"mini",clearable:""},on:{input:e.onInput},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onEnter.apply(null,arguments)}}},"el-input",e.$attrs,!1),e.listeners),[e.$slots.prepend?t("template",{slot:"prepend"},[e._t("prepend")],2):e._e(),e.$slots.prefix?t("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),e.$slots.suffix?t("template",{slot:"suffix"},[e._t("suffix")],2):e._e(),e.$slots["default"]?t("template",{slot:"append"},[e._t("default")],2):e._e()],2)},de=[];function he(e){return he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},he(e)}function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(n),!0).forEach(function(t){me(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function me(e,t,n){return(t=ge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ge(e){var t=ve(e,"string");return"symbol"==he(t)?t:t+""}function ve(e,t){if("object"!=he(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=he(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}const be={name:"StandardInput",model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},placeholder:{type:String,default:"请输入"},numberOnly:{type:Boolean,default:!1}},computed:{listeners:function(){var e=fe({},this.$listeners);return delete e.input,e}},methods:{onInput:function(e){var t="string"===typeof e?e.trim():e;this.numberOnly&&""!==t&&null!=t&&(t=String(t).replace(/\D/g,"")),this.$emit("input",t)},onEnter:function(){this.$emit("enter")}}},ye=be;r(9127);var xe=u(ye,ue,de,!1,null,"5ed6ec1a",null);const we=xe.exports;var Ce=function(){var e=this,t=e._self._c;return t("section",{staticClass:"standard-page",class:{"standard-page--client":e.client,"standard-page--vertical":e.vertical}},[e.vertical?t("section",{staticClass:"standard-page__body"},[e._t("default")],2):e._t("default")],2)},_e=[];const Se={name:"StandardPage",props:{client:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1}}},ke=Se;r(6920);var Ee=u(ke,Ce,_e,!1,null,"351392c6",null);const Oe=Ee.exports;var Te=function(){var e=this,t=e._self._c;return t("div",{staticClass:"standard-splitter",class:{"is-dragging":e.isDragging},on:{mousedown:e.onMousedown}})},$e=[];const De={name:"StandardSplitter",props:{value:{type:Number,default:260},unit:{type:String,default:"px",validator:function(e){return["px","percent"].indexOf(e)>-1}},minWidth:{type:Number,default:200},maxRatio:{type:Number,default:.6},minPixel:{type:Number,default:320},maxHalfPercent:{type:Number,default:45}},data:function(){return{isDragging:!1,moveHandler:null,upHandler:null,lastValue:null}},beforeDestroy:function(){this.removeListeners()},methods:{onMousedown:function(e){var t=this;e.preventDefault(),this.isDragging=!0,this.lastValue=this.value,this.$emit("drag-start",this.value);var n,r,i=e.clientX,o=this.value,a=this.$el&&this.$el.parentElement,s=a&&a.clientWidth||1200,l="percent"===this.unit;if(l){var c=Math.min(this.maxHalfPercent,this.minPixel/s*100);n=c,r=100-c}else n=this.minWidth,r=Math.max(this.minWidth,Math.floor(s*this.maxRatio));document.body.style.userSelect="none",document.body.style.cursor="col-resize",this.moveHandler=function(e){var a=l?(e.clientX-i)/s*100:e.clientX-i,c=Math.min(r,Math.max(n,o+a));t.lastValue=c,t.$emit("input",c)},this.upHandler=function(){t.isDragging=!1,t.$emit("drag-end",t.lastValue),t.$emit("change",t.lastValue),t.removeListeners()},document.addEventListener("mousemove",this.moveHandler),document.addEventListener("mouseup",this.upHandler)},removeListeners:function(){this.moveHandler&&(document.removeEventListener("mousemove",this.moveHandler),document.removeEventListener("mouseup",this.upHandler),document.body.style.userSelect="",document.body.style.cursor="",this.moveHandler=null,this.upHandler=null,this.lastValue=null)}}},Me=De;r(2441);var Fe=u(Me,Te,$e,!1,null,"6e24ca62",null);const Re=Fe.exports;var Ie=function(){var e=this,t=e._self._c;return t("el-select",e._g(e._b({staticClass:"standard-select",attrs:{value:e.displayValue,multiple:e.multiple,clearable:e.clearable,disabled:e.disabled,placeholder:e.placeholder,filterable:e.filterable||e.isRemote,remote:e.isRemote,"reserve-keyword":e.isRemote,"remote-method":e.isRemote?e.onRemoteMethod:null,loading:!!e.isRemote&&e.remoteLoading,size:"mini"},on:{input:e.onInput,change:e.onChange,"visible-change":e.onVisibleChange}},"el-select",e.$attrs,!1),e.listeners),[e._l(e.normalizedOptions,function(e,n){return t("el-option",{key:n,attrs:{label:e.label,value:e.value}})}),e._t("default")],2)},Ae=[];function Pe(e){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(e)}function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach(function(t){je(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function je(e,t,n){return(t=Be(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Be(e){var t=Ve(e,"string");return"symbol"==Pe(t)?t:t+""}function Ve(e,t){if("object"!=Pe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Pe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}const ze={name:"StandardSelect",model:{prop:"value",event:"input"},props:{value:{type:[String,Number,Array],default:""},options:{type:Array,default:function(){return[]}},optionProps:{type:Object,default:function(){return{label:"label",value:"value"}}},remote:{type:[String,Function],default:""},multiple:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:"请选择"}},data:function(){return{remoteOptions:[],remoteLoading:!1,debouncedLoad:null}},computed:{isRemote:function(){return!!this.remote},displayValue:function(){return this.multiple?Array.isArray(this.value)?this.value:[]:this.value},normalizedOptions:function(){return this.isRemote?this.remoteOptions:this.normalizeOptions(this.options)},listeners:function(){var e=Ne({},this.$listeners);return delete e.input,delete e.change,delete e["visible-change"],e}},created:function(){var e=this;this.isRemote&&(this.debouncedLoad=this.debounce(function(t){return e.loadRemoteOptions(t)},300),this.loadRemoteOptions(""))},methods:{onInput:function(e){this.$emit("input",this.multiple?e??[]:e)},onChange:function(e){this.$emit("change",e)},onVisibleChange:function(e){e&&this.isRemote&&!this.remoteOptions.length&&this.loadRemoteOptions(""),this.$emit("visible-change",e)},onRemoteMethod:function(e){this.debouncedLoad(e)},resolveRemoteFn:function(){var e=this.remote;if("function"===typeof e)return e;if("string"===typeof e&&e){var t=this.$parent;while(t){if("function"===typeof t[e])return t[e].bind(t);t=t.$parent}}return null},loadRemoteOptions:function(e){var t=this,n=this.resolveRemoteFn();return n?(this.remoteLoading=!0,Promise.resolve(n(e??"")).then(function(e){return t.remoteOptions=t.normalizeOptions(t.extractOptions(e)),t.remoteOptions})["catch"](function(e){return console.error("[StandardSelect] 远程数据加载失败",e),[]})["finally"](function(){t.remoteLoading=!1})):Promise.resolve([])},extractOptions:function(e){if(Array.isArray(e))return e;if(e&&"object"===Pe(e)){if(Array.isArray(e.Datas))return e.Datas;if(e.data){if(Array.isArray(e.data))return e.data;if(Array.isArray(e.data.Datas))return e.data.Datas}if(Array.isArray(e.list))return e.list}return[]},normalizeOptions:function(e){var t=this.optionProps||{},n=t.label||"label",r=t.value||"value",i=Array.isArray(e)?e:[];return i.map(function(e){return null!==e&&"object"===Pe(e)?{label:e[n],value:e[r]}:{label:String(e),value:e}})},debounce:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,n=null;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];n&&clearTimeout(n),n=setTimeout(function(){n=null,e.apply(r,o)},t)}}}},He=ze;r(9787);var We=u(He,Ie,Ae,!1,null,"3996de44",null);const qe=We.exports;var Ge=function(){var e=this,t=e._self._c;return t("el-date-picker",e._g(e._b({staticClass:"standard-time-pick",attrs:{value:e.value,type:e.pickerType,"value-format":e.format,placeholder:e.placeholderText,clearable:e.clearable,disabled:e.disabled,"picker-options":e.pickerOptions,size:"mini",align:"right"},on:{input:e.onInput}},"el-date-picker",e.$attrs,!1),e.listeners))},Ye=[];function Ue(e){return Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(e)}function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach(function(t){Ze(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ze(e,t,n){return(t=Qe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qe(e){var t=Je(e,"string");return"symbol"==Ue(t)?t:t+""}function Je(e,t){if("object"!=Ue(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ue(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}const et={name:"StandardTimePick",model:{prop:"value",event:"input"},props:{value:{type:[String,Date,Array],default:""},type:{type:String,default:"date"},valueFormat:{type:String,default:""},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},pickerOptions:{type:Object,default:null}},computed:{pickerType:function(){return"datetime"===this.type?"datetime":"date"},format:function(){return this.valueFormat?this.valueFormat:"datetime"===this.pickerType?"yyyy-MM-dd HH:mm:ss":"yyyy-MM-dd"},placeholderText:function(){return this.placeholder?this.placeholder:"datetime"===this.pickerType?"请选择时间":"请选择日期"},listeners:function(){var e=Xe({},this.$listeners);return delete e.input,e}},methods:{onInput:function(e){this.$emit("input",e)}}},tt=et;r(6701);var nt=u(tt,Ge,Ye,!1,null,"37f9c169",null);const rt=nt.exports;var it=function(){var e=this,t=e._self._c;return t("section",{staticClass:"normal-report-table-panel"},[t("div",{staticStyle:{display:"none"}},[t("normal-report-slot-view",{attrs:{vnodes:e.getHiddenSlotVNodes()}})],1),e.getActionsVisible()?t("div",{staticClass:"normal-report-table-actions"},[t("div",{staticClass:"normal-report-table-actions-left"},[t("normal-report-slot-view",{attrs:{vnodes:e.getToolbarLeftVNodes()}})],1),t("div",{staticClass:"normal-report-table-actions-right"},[t("normal-report-slot-view",{attrs:{vnodes:e.getToolbarRightVNodes()}}),e.resolvedShowAdjustment?t("el-popover",{staticClass:"normal-report-column-setting-entry",attrs:{placement:"bottom-end",trigger:"click"},on:{show:e.openColumnSetting},model:{value:e.columnSettingVisible,callback:function(t){e.columnSettingVisible=t},expression:"columnSettingVisible"}},[t("div",{staticClass:"normal-report-column-setting"},[t("div",{staticClass:"normal-report-column-setting-header"},[t("el-checkbox",{attrs:{value:e.columnAllVisible,indeterminate:e.columnIndeterminate},on:{change:e.toggleColumnAll}},[e._v("全部")])],1),t("div",{staticClass:"normal-report-column-setting-list"},e._l(e.columnDraft,function(n,r){return t("div",{key:n.uid,staticClass:"normal-report-column-setting-item",class:{"drag-over":e.dragOverColField===n.uid},on:{dragover:function(t){return t.preventDefault(),e.onDraftDragOver(n)},drop:function(t){return t.preventDefault(),e.onDraftDrop(n)}}},[t("el-checkbox",{staticClass:"normal-report-column-setting-item-title",style:{"--normal-report-title-width":e.columnTitleWidth+"px"},attrs:{value:n.visible,title:"拖拽调整列顺序",draggable:"true"},on:{change:function(t){return e.toggleColumnVisible(n,t)}},nativeOn:{dragstart:function(t){return e.onDraftDragStart(t,n)},dragend:function(t){return e.onDraftDragEnd.apply(null,arguments)}}},[e._v(e._s(n.title))]),t("el-input-number",{staticClass:"normal-report-column-setting-item-width",attrs:{value:n.minWidth,min:0,max:500,precision:0,step:5,"step-strictly":"","controls-position":"",size:"mini",title:"设置最小列宽"},on:{change:function(t){return e.changeColumnDraftWidth(n,t)}}}),t("el-button",{attrs:{type:"text",size:"mini",icon:"el-icon-top",disabled:0===r,title:"顺序上移"},on:{click:function(t){return e.moveColumnDraft(r,-1)}}}),t("el-button",{attrs:{type:"text",size:"mini",icon:"el-icon-bottom",disabled:r===e.columnDraft.length-1,title:"下移"},on:{click:function(t){return e.moveColumnDraft(r,1)}}}),t("el-button",{class:{"is-pinned":n.sortable,"is-sort-off":!n.sortable},attrs:{type:"text",size:"mini",icon:"el-icon-sort",title:"是否显示排序功能"},on:{click:function(t){return e.toggleColumnSortable(n)}}}),t("el-button",{class:{"is-pinned":"left"===n.fixed},attrs:{type:"text",size:"mini",icon:"left"===n.fixed?"el-icon-lock":"el-icon-d-arrow-left",title:"left"===n.fixed?"取消左侧固定":"固定到左侧"},on:{click:function(t){return e.toggleColumnFixed(n,"left")}}}),t("el-button",{class:{"is-pinned":"right"===n.fixed},attrs:{type:"text",size:"mini",icon:"right"===n.fixed?"el-icon-lock":"el-icon-d-arrow-right",title:"right"===n.fixed?"取消右侧固定":"固定到右侧"},on:{click:function(t){return e.toggleColumnFixed(n,"right")}}})],1)}),0),t("div",{staticClass:"normal-report-column-setting-footer"},[t("el-button",{attrs:{size:"mini",icon:"el-icon-refresh-left"},on:{click:e.restoreDefaultColumns}},[e._v("恢复默认")]),t("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-edit"},on:{click:e.confirmColumnSetting}},[e._v("确认")])],1)]),t("el-button",{attrs:{slot:"reference",type:"primary",size:"mini",icon:"el-icon-s-operation"},slot:"reference"},[e._v("调整")])],1):e._e()],1)]):e._e(),e.getToolbarEmptyVisible()&&e.getToolbarEmptyVNodes().length>0?t("normal-report-slot-view",{attrs:{vnodes:e.getToolbarEmptyVNodes()}}):e.getToolbarEmptyVisible()?t("standard-toolbar-empty"):e._e(),t("div",{ref:"tableWrap",staticClass:"normal-report-table-wrap"},[t("vxe-table",{ref:"xTable",staticClass:"normal-report-main-table",attrs:{size:"mini",height:e.height,"z-index":e.zIndex||void 0,loading:e.loading,data:e.tableData,border:"","highlight-current-row":"","row-config":e.rowConfig,"header-cell-config":e.headerCellConfig,"cell-config":e.cellConfig,"edit-config":e.resolvedEditConfig,"tree-config":e.treeConfig,"column-config":{resizable:!0},"resizable-config":{minWidth:60},"show-footer":!!e.footerMethod,"footer-method":e.footerMethod,"menu-config":e.resolvedMenuConfig},on:{"menu-click":e.onMenuClick,"checkbox-change":e.handleCheckboxChange,"checkbox-all":e.handleCheckboxChange,"current-change":e.handleCurrentRowChange,"toggle-tree-expand":e.handleToggleTreeExpand,"edit-activated":e.onEditActivated,"edit-closed":e.onEditClosed},nativeOn:{mousedown:function(t){return e.onTableMousedown.apply(null,arguments)}}},[e.columnsReady&&e.showCheckbox?t("vxe-column",{attrs:{type:"checkbox",width:"50","min-width":50,fixed:"left",align:"center",resizable:!1}}):e._e(),e._l(e.renderedColumns,function(n){return t("vxe-column",{key:n.key,attrs:{"col-id":n.colId,type:n.type,field:n.field,title:n.title,width:n.isOp?n.width:void 0,"min-width":n.minWidth,fixed:n.fixed,align:n.align,sortable:n.sortable,"sort-by":n.sortBy,"show-overflow":n.showOverflow,resizable:n.resizable,"tree-node":n.treeNode,"edit-render":n.editRender||void 0},scopedSlots:e._u([{key:"default",fn:function(e){return[t("normal-report-cell",{attrs:{col:n,scope:e}})]}},n.hasEditSlot?{key:"edit",fn:function(e){return[t("normal-report-cell",{attrs:{col:n,scope:e,edit:""}})]}}:null],null,!0)})})],2)],1),e.getFooterVisible()?t("div",{staticClass:"normal-report-table-footer",class:{"is-only-pagination":e.getIsOnlyPagination()}},[t("normal-report-slot-view",{attrs:{vnodes:e.getFooterLeftVNodes()}}),0===e.getFooterLeftVNodes().length&&e.showFooter&&e.hasFooterLeftSlot?e._t("footer-left"):0===e.getFooterLeftVNodes().length&&e.showFooter&&e.showUpdateTime?t("span",{staticClass:"normal-report-update-time"},[e._v("数据更新时间 "+e._s(e.updateTime))]):e._e(),t("normal-report-slot-view",{attrs:{vnodes:e.getFooterRightVNodes()}})],2):e._e(),e.getFooterEmptyVisible()&&e.getFooterEmptyVNodes().length>0?t("normal-report-slot-view",{attrs:{vnodes:e.getFooterEmptyVNodes()}}):e.getFooterEmptyVisible()?t("standard-footer-empty"):e._e()],1)},ot=[];const at={name:"StandardToolbarEmpty",render:function(e){return e("div",{class:"normal-report-toolbar-empty"})}},st=at;var lt,ct,ut=u(st,lt,ct,!1,null,null,null);const dt=ut.exports,ht={name:"StandardFooterEmpty",render:function(e){return e("div",{class:"normal-report-footer-empty"})}},pt=ht;var ft,mt,gt=u(pt,ft,mt,!1,null,null,null);const vt=gt.exports;function bt(e,t){return wt(e)||xt(e,t)||St(e,t)||yt()}function yt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function xt(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(c)throw i}}return s}}function wt(e){if(Array.isArray(e))return e}function Ct(e){return Et(e)||kt(e)||St(e)||_t()}function _t(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function St(e,t){if(e){if("string"==typeof e)return Ot(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ot(e,t):void 0}}function kt(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Et(e){if(Array.isArray(e))return Ot(e)}function Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Tt(e,t){return null==t||""===t?null:"string"===typeof t||"number"===typeof t||"boolean"===typeof t?e("span",{},String(t)):t}function $t(e){var t=function(e){return e<10?"0"+e:String(e)};return"".concat(e.getFullYear(),"-").concat(t(e.getMonth()+1),"-").concat(t(e.getDate())," ").concat(t(e.getHours()),":").concat(t(e.getMinutes()),":").concat(t(e.getSeconds()))}var Dt={name:"NormalReportCell",functional:!0,props:{col:{type:Object,required:!0},scope:{type:Object,default:function(){return{}}},edit:{type:Boolean,default:!1}},render:function(e,t){var n=t.props,r=n.col,i=n.scope,o=n.edit,a=t.parent;if(!r||!a||"function"!==typeof a.renderCell)return null;var s=a.renderCell(r,i,o,e);return null==s||""===s?null:Array.isArray(s)?s.map(function(t){return Tt(e,t)}).filter(Boolean):Tt(e,s)}},Mt=3,Ft=["standard-toolbar-left","StandardToolbarLeft"],Rt=["standard-toolbar-right","StandardToolbarRight"],It=["standard-footer-left","StandardFooterLeft"],At=["standard-footer-right","StandardFooterRight"],Pt=["standard-footer-empty","StandardFooterEmpty"],Lt=["standard-toolbar-empty","StandardToolbarEmpty"],Nt={name:"NormalReportSlotView",functional:!0,props:{vnodes:{type:Array,default:function(){return[]}}},render:function(e,t){return t.props.vnodes||[]}};const jt={name:"StandardTable",components:{NormalReportCell:Dt,NormalReportSlotView:Nt,StandardToolbarEmpty:dt,StandardFooterEmpty:vt},props:{tableData:{type:Array,default:function(){return[]}},tableOperation:{type:Array,default:function(){return[]}},menuConfig:{type:Object,default:null},showContextMenu:{type:Boolean,default:!1},treeConfig:{type:Object,default:null},rowConfig:{type:Object,default:null},editConfig:{type:[Object,Boolean],default:null},showCheckbox:{type:Boolean,default:!1},showAdjustment:{type:Boolean,default:!1},showUpdateTime:{type:Boolean,default:!0},height:{type:[String,Number],default:"100%"},zIndex:{type:Number,default:null},loading:{type:Boolean,default:!1},footerMethod:{type:Function,default:null},showFooter:{type:Boolean,default:!1}},data:function(){return{columnComps:[],columnOrder:[],columnStates:{},defaultSnapshot:[],toolbarRightInstances:[],columnSettingVisible:!1,columnDraft:[],dragColField:"",dragOverColField:"",columnTitleWidth:0,updateTime:"--",headerCellConfig:{height:36},cellConfig:{height:34},defaultEditConfig:{trigger:"click",mode:"cell"},headerMenuCtx:null,headerDragState:{ready:!1,active:!1,startX:0,startY:0,sourceUid:null,sourceTh:null,targetTh:null,clickSuppress:!1},onDocumentMousemoveHandler:null,onDocumentMouseupHandler:null,resizeObserver:null,resizeTimer:null,columnsReady:!1}},computed:{hasFooterLeftSlot:function(){return!(!this.$slots["footer-left"]&&!this.$scopedSlots["footer-left"])},resolvedShowAdjustment:function(){return!!this.showAdjustment||this.toolbarRightInstances.some(function(e){return!!e.showAdjustment})},opButtons:function(){return(this.tableOperation||[]).filter(function(e){return!!e})},opColumnWidth:function(){var e=this.opButtons;if(!e.length)return null;var t=e.length>Mt,n=t?e.slice(0,Mt):e,r=!1,i=0;return n.forEach(function(e){var t=Number(e.width);t>0?(r=!0,i+=t):i+=60}),t&&(i+=60,r=!0),r?i:null},autoMenuItems:function(){return this.opButtons.map(function(e,t){var n={code:"__normal_report_op_"+t,name:e.text,params:e,method:e.method,__isOp:!0};return"boolean"!==typeof e.active||e.active||(n.disabled=!0),n})},copyMenuItems:function(){return[{code:"__normal_report_copy",name:"复制",prefixIcon:"el-icon-document-copy",__isCopy:!0}]},resolvedMenuConfig:function(){var e=this;if(this.menuConfig)return this.menuConfig;var t=[this.copyMenuItems];return this.opButtons.length&&t.push(this.autoMenuItems),{visibleMethod:function(t){if(!t||"header"!==t.type)return!0;var n=e.resolveColumnUid(t.column);return null!=n&&(e.headerMenuCtx={uid:n,column:t.column},!0)},body:this.showContextMenu?{options:t}:{options:[]},header:{options:[[{code:"__normal_report_header_sort",name:function(){return e.getHeaderSortMenuName()},prefixIcon:"el-icon-sort",__isHeaderMenu:!0},{code:"__normal_report_header_fix_left",name:function(){return e.getHeaderFixMenuName("left")},prefixIcon:"el-icon-d-arrow-left",__isHeaderMenu:!0},{code:"__normal_report_header_fix_right",name:function(){return e.getHeaderFixMenuName("right")},prefixIcon:"el-icon-d-arrow-right",__isHeaderMenu:!0}]]}}},renderColumns:function(){var e=this,t={};return this.columnComps.forEach(function(e){t[e._uid]=e}),this.columnOrder.map(function(n){var r=t[n];if(!r)return null;var i=e.columnStates[n];return i&&!1===i.visible?null:{comp:r,uid:n,field:r.field,type:r.type,title:r.title,width:r.width,minWidth:i&&null!=i.minWidth?i.minWidth:r.resolvedMinWidth,treeNode:!!r.treeNode,fixed:i?i.fixed:r.fixed||"",align:r.align,sortable:i&&null!=i.sortable?i.sortable:!!r.sortable,showOverflow:r.showOverflow,resizable:r.resizable,editRender:r.editRender||(r.editable?{name:"input"}:r.$scopedSlots&&r.$scopedSlots.edit?{}:null),hasEditSlot:!(!r.$scopedSlots||!r.$scopedSlots.edit)}}).filter(Boolean)},renderedColumns:function(){return this.columnsReady?this.vxeColumns:[]},vxeColumns:function(){var e=this,t=this.renderColumns.map(function(t){var n=t.field||t.type||"__normal_report_uid_"+t.uid,r="seq"===t.type;return{key:n+"|sort="+(t.sortable?1:0)+"|fix="+(t.fixed||""),colId:"nr_uid_"+t.uid,type:r?void 0:t.type||void 0,field:t.field||void 0,title:t.title,width:t.width||void 0,minWidth:t.minWidth,treeNode:!!t.treeNode,fixed:t.fixed||void 0,align:t.align,sortable:!!t.sortable,sortBy:r?function(t){var n=t.row,r=e.$refs.xTable;return r&&"function"===typeof r.getRowIndex?r.getRowIndex(n):-1}:void 0,showOverflow:!1!==t.showOverflow,resizable:!1!==t.resizable,editRender:t.editRender||null,hasEditSlot:!!t.hasEditSlot,comp:t.comp,isSeq:r,isOp:!1}});return this.opButtons.length&&t.push({key:"__normal_report_op",field:"__normal_report_op",title:"操作",fixed:"right",align:"center",width:this.opColumnWidth||void 0,minWidth:130,showOverflow:!1,resizable:!0,isOp:!0}),t},columnAllVisible:function(){return this.columnDraft.length>0&&this.columnDraft.every(function(e){return e.visible})},columnIndeterminate:function(){var e=this.columnDraft.some(function(e){return e.visible});return e&&!this.columnAllVisible},resolvedEditConfig:function(){if(!1===this.editConfig)return null;if(this.editConfig)return this.editConfig;var e=this.vxeColumns.some(function(e){return e.editRender});return e?this.defaultEditConfig:null}},watch:{tableData:function(){this.updateTime=$t(new Date)}},created:function(){Array.isArray(this.tableData)||console.warn("[StandardTable] tableData(表格数据)为必填属性")},mounted:function(){var e=this;this.initResizeObserver(),document.addEventListener("click",this.onDocumentClickCapture,!0),this.columnsReady=!0,this.$nextTick(function(){e.resizeRecalculate(),"function"===typeof requestAnimationFrame&&requestAnimationFrame(function(){return e.resizeRecalculate()})})},beforeDestroy:function(){this.destroyResizeObserver(),document.removeEventListener("click",this.onDocumentClickCapture,!0),this.clearHeaderDragBindings()},methods:{getDefaultSlotVNodes:function(){var e=this.$slots["default"];return e?Array.isArray(e)?e:[e]:[]},isVNodeOfType:function(e,t){if(!e||!e.componentOptions)return!1;var n=e.componentOptions,r=n.tag||"",i=n.Ctor&&n.Ctor.options&&n.Ctor.options.name||"";return t.indexOf(r)>-1||t.indexOf(i)>-1},getToolbarLeftVNodes:function(){var e=this;return this.getDefaultSlotVNodes().filter(function(t){return e.isVNodeOfType(t,Ft)})},getToolbarRightVNodes:function(){var e=this;return this.getDefaultSlotVNodes().filter(function(t){return e.isVNodeOfType(t,Rt)})},getFooterLeftVNodes:function(){var e=this;return this.getDefaultSlotVNodes().filter(function(t){return e.isVNodeOfType(t,It)})},getFooterRightVNodes:function(){var e=this;return this.getDefaultSlotVNodes().filter(function(t){return e.isVNodeOfType(t,At)})},getFooterEmptyVNodes:function(){var e=this;return this.getDefaultSlotVNodes().filter(function(t){return e.isVNodeOfType(t,Pt)})},getToolbarEmptyVNodes:function(){var e=this;return this.getDefaultSlotVNodes().filter(function(t){return e.isVNodeOfType(t,Lt)})},getHiddenSlotVNodes:function(){var e=this;return this.getDefaultSlotVNodes().filter(function(t){return!e.isVNodeOfType(t,Ft)&&!e.isVNodeOfType(t,Rt)&&!e.isVNodeOfType(t,It)&&!e.isVNodeOfType(t,At)&&!e.isVNodeOfType(t,Pt)&&!e.isVNodeOfType(t,Lt)})},getActionsVisible:function(){return this.getToolbarLeftVNodes().length>0||this.getToolbarRightVNodes().length>0||this.resolvedShowAdjustment},getToolbarEmptyVisible:function(){return!this.getActionsVisible()},getFooterVisible:function(){var e=this.getFooterLeftVNodes().length>0,t=this.getFooterRightVNodes().length>0;return this.showFooter?e||this.hasFooterLeftSlot||this.showUpdateTime||t:e||t},getIsOnlyPagination:function(){return 0===this.getFooterLeftVNodes().length&&!(this.showFooter&&this.hasFooterLeftSlot)&&!(this.showFooter&&this.showUpdateTime)},getFooterEmptyVisible:function(){return!this.getFooterVisible()},registerToolbarRight:function(e){!e||this.toolbarRightInstances.indexOf(e)>-1||this.toolbarRightInstances.push(e)},unregisterToolbarRight:function(e){if(e){var t=this.toolbarRightInstances.indexOf(e);t>-1&&this.toolbarRightInstances.splice(t,1)}},addColumn:function(e){!e||this.columnComps.indexOf(e)>-1||(this.columnComps.push(e),this.$set(this.columnStates,e._uid,{visible:!0,fixed:e.fixed||"",minWidth:null,sortable:!!e.sortable}),-1===this.columnOrder.indexOf(e._uid)&&this.columnOrder.push(e._uid),this.buildDefaultSnapshot())},removeColumn:function(e){if(e){var t=this.columnComps.indexOf(e);t>-1&&this.columnComps.splice(t,1);var n=this.columnOrder.indexOf(e._uid);n>-1&&this.columnOrder.splice(n,1),this.columnStates[e._uid]&&this.$delete(this.columnStates,e._uid),this.buildDefaultSnapshot()}},buildDefaultSnapshot:function(){this.defaultSnapshot=this.columnComps.map(function(e){return{uid:e._uid,field:e.field,title:e.title,visible:!0,fixed:e.fixed||"",minWidth:e.resolvedMinWidth,sortable:!!e.sortable}})},renderCell:function(e,t,n,r){if(e.isSeq)return String(null!=t.seq?t.seq:"");if(e.isOp)return this.renderOpCell(t.row,r);var i=e.comp;if(!i)return"";if(n&&i.$scopedSlots&&"function"===typeof i.$scopedSlots.edit)return i.$scopedSlots.edit(t);if(i.$scopedSlots&&"function"===typeof i.$scopedSlots["default"])return i.$scopedSlots["default"](t);if(Array.isArray(i.$slots["default"])&&i.$slots["default"].length>0)return i.$slots["default"];if("function"===typeof i.formatter){var o=i.formatter(t);if(null!=o)return o}var a=t.row[i.field];return null==a||""===a?"":String(a)},renderOpButton:function(e,t,n,r){var i=this,o=this.isOpActive(n,t),a={key:r,props:{type:"text",size:"mini",disabled:!o},on:{click:function(){return i.handleOpClick(t,n)}},nativeOn:{click:function(e){return e&&e.stopPropagation()}}};return n.color&&o&&(a.style={color:n.color}),e("el-button",a,n.text)},renderOpMore:function(e,t,n){var r=this;return e("el-dropdown",{key:"__normal_report_op_more__",class:"normal-report-op-more",props:{size:"mini",trigger:"click"},on:{command:function(e){return r.handleOpClick(t,e)}},nativeOn:{click:function(e){return e&&e.stopPropagation()}}},[e("el-button",{props:{type:"text",size:"mini"}},["更多",e("i",{class:"el-icon-arrow-down el-icon--right"})]),e("el-dropdown-menu",{slot:"dropdown"},n.map(function(n,i){var o=r.isOpActive(n,t);return e("el-dropdown-item",{key:i,props:{command:n,disabled:!o},style:n.color&&o?{color:n.color}:void 0},n.text)}))])},renderOpCell:function(e,t){var n=this,r=t||this.$createElement,i=this.opButtons;if(!i.length)return null;if(i.length<=Mt)return i.map(function(t,i){return n.renderOpButton(r,e,t,i)});var o=i.slice(0,Mt).map(function(t,i){return n.renderOpButton(r,e,t,i)});return o.push(this.renderOpMore(r,e,i.slice(Mt))),o},isOpActive:function(e,t){return"function"===typeof e.active?!1!==e.active(t,e):!1!==e.active},findParentMethod:function(e){var t=this.$parent;while(t){if("function"===typeof t[e])return t[e].bind(t);t=t.$parent}return null},invokeHandler:function(e,t){if("function"!==typeof e){if("string"===typeof e&&e){var n=this.findParentMethod(e);n&&n.apply(void 0,Ct(t))}}else e.apply(this.$parent||this,t)},handleOpClick:function(e,t){this.invokeHandler(t.method,[e,t]),this.$emit("op-click",e,t)},onMenuClick:function(e){if(e&&e.menu){var t=e.menu;if(t.__isCopy)this.copyCellValue(e);else if(t.__isOp){var n=e.row;if(!this.isOpActive(t.params,n))return;this.invokeHandler(t.method,[n,t.params]),this.$emit("op-click",n,t.params)}else t.__isHeaderMenu?this.handleHeaderMenuClick(t,e):null!=t.method&&this.invokeHandler(t.method,null!=t.params?[t.params,e]:[e]);this.$emit("menu-click",e)}},copyCellValue:function(e){var t=e||{},n=t.row,r=t.column,i=t.rowIndex;if(n&&r){var o=r.property||r.field,a="";if("seq"===r.type||!r.field&&!r.type)a=String((null!=i?i:0)+1);else if(o){var s=n[o];a=null==s||""===s?"":String(s)}""!==a?this.copyTextToClipboard(a):this.$message&&this.$message.info("该单元格无内容可复制")}},copyTextToClipboard:function(e){var t=this;navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(e).then(function(){t.$message&&t.$message.success("复制成功:"+e)})["catch"](function(){t.fallbackCopyText(e)}):this.fallbackCopyText(e)},fallbackCopyText:function(e){var t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();try{var n=document.execCommand("copy");n?this.$message&&this.$message.success("复制成功:"+e):this.$message&&this.$message.error("复制失败,请手动复制")}catch(r){this.$message&&this.$message.error("复制失败,请手动复制")}document.body.removeChild(t)},handleCheckboxChange:function(){this.$emit("selection-change",this.getSelection())},handleCurrentRowChange:function(e){this.$emit("current-change",e)},handleToggleTreeExpand:function(e){this.$emit("toggle-tree-expand",e)},parseColIdUid:function(e){if("string"!==typeof e||0!==e.indexOf("nr_uid_"))return null;var t=Number(e.slice(7));return isNaN(t)?null:t},resolveColumnUid:function(e){return e?this.parseColIdUid(e.id):null},getHeaderMenuColumnState:function(){var e=this.headerMenuCtx;return e&&this.columnStates[e.uid]?this.columnStates[e.uid]:null},getHeaderSortMenuName:function(){var e=this.getHeaderMenuColumnState();return e&&e.sortable?"取消显示排序按钮":"显示排序按钮"},getHeaderFixMenuName:function(e){var t=this.getHeaderMenuColumnState();return t&&t.fixed===e?"left"===e?"取消固定在左侧":"取消固定在右侧":"left"===e?"固定在左侧":"固定在右侧"},handleHeaderMenuClick:function(e,t){var n=this.resolveColumnUid(t.column);null!=n&&("__normal_report_header_sort"===e.code?this.toggleHeaderColumnSort(n):"__normal_report_header_fix_left"===e.code?this.toggleHeaderColumnFixed(n,"left"):"__normal_report_header_fix_right"===e.code&&this.toggleHeaderColumnFixed(n,"right"))},toggleHeaderColumnSort:function(e){var t=this,n=this.columnStates[e];n&&(this.$set(n,"sortable",!n.sortable),this.$nextTick(function(){return t.applyColumnOrder()}))},toggleHeaderColumnFixed:function(e,t){var n=this,r=this.columnStates[e];r&&(this.$set(r,"fixed",r.fixed===t?"":t),this.$nextTick(function(){return n.applyColumnOrder()}))},onEditActivated:function(e,t){this.$emit("edit-activated",e,t)},onEditClosed:function(e,t){this.$emit("edit-closed",e,t)},onTableMousedown:function(e){if(e&&0===e.button){var t=e.target;if(t&&"function"===typeof t.closest||(t=document.elementFromPoint(e.clientX,e.clientY)),t&&"function"===typeof t.closest&&!t.closest(".vxe-resizable, .vxe-table--resizable-col-bar")){var n=t.closest(".vxe-header--column");if(n){var r=this.parseColIdUid(n.getAttribute("colid"));if(null!=r){var i=this.headerDragState;i.ready=!0,i.active=!1,i.startX=e.clientX,i.startY=e.clientY,i.sourceUid=r,i.sourceTh=n,i.targetTh=null,i.clickSuppress=!1,this.onDocumentMousemoveHandler=this.onDocumentMousemove.bind(this),this.onDocumentMouseupHandler=this.onDocumentMouseup.bind(this),document.addEventListener("mousemove",this.onDocumentMousemoveHandler),document.addEventListener("mouseup",this.onDocumentMouseupHandler)}}}}},onDocumentMousemove:function(e){var t=this.headerDragState;if(t.ready){if(!t.active){if(Math.abs(e.clientX-t.startX)+Math.abs(e.clientY-t.startY)<6)return;t.active=!0,document.body.classList.add("nr-header-dragging"),t.sourceTh&&t.sourceTh.classList.add("nr-header-drag-source")}e.preventDefault();var n=null,r=e.target;if(r&&"function"===typeof r.closest||(r=document.elementFromPoint(e.clientX,e.clientY)),r&&"function"===typeof r.closest){var i=r.closest(".vxe-header--column");i&&i!==t.sourceTh&&null!=this.parseColIdUid(i.getAttribute("colid"))&&(n=i)}n!==t.targetTh&&(t.targetTh&&t.targetTh.classList.remove("nr-header-drag-target"),t.targetTh=n,n&&n.classList.add("nr-header-drag-target"))}},onDocumentMouseup:function(){var e=this.headerDragState;if(this.clearHeaderDragBindings(),e.ready){if(e.ready=!1,e.active){e.active=!1,e.clickSuppress=!0,document.body.classList.remove("nr-header-dragging"),e.sourceTh&&e.sourceTh.classList.remove("nr-header-drag-source"),e.targetTh&&e.targetTh.classList.remove("nr-header-drag-target");var t=e.targetTh?this.parseColIdUid(e.targetTh.getAttribute("colid")):null;null!=t&&t!==e.sourceUid&&this.moveColumnOrder(e.sourceUid,t)}e.sourceTh=null,e.targetTh=null}},onDocumentClickCapture:function(e){this.headerDragState.clickSuppress&&(this.headerDragState.clickSuppress=!1,e&&(e.stopPropagation(),e.preventDefault()))},clearHeaderDragBindings:function(){this.onDocumentMousemoveHandler&&(document.removeEventListener("mousemove",this.onDocumentMousemoveHandler),this.onDocumentMousemoveHandler=null),this.onDocumentMouseupHandler&&(document.removeEventListener("mouseup",this.onDocumentMouseupHandler),this.onDocumentMouseupHandler=null),document.body.classList.remove("nr-header-dragging")},moveColumnOrder:function(e,t){var n=this,r=this.columnOrder.indexOf(e),i=this.columnOrder.indexOf(t);if(!(r<0||i<0||r===i)){var o=this.columnOrder.slice(),a=o.splice(r,1)[0];o.splice(i,0,a),this.columnOrder=o,this.$nextTick(function(){return n.applyColumnOrder()})}},clearSelection:function(){this.$refs.xTable&&this.$refs.xTable.clearCheckboxRow()},setCurrentRow:function(e){this.$refs.xTable&&e&&this.$refs.xTable.setCheckboxRow(e,!0)},setCurrentRecord:function(e){this.$refs.xTable&&e&&this.$refs.xTable.setCurrentRow(e)},getSelection:function(){return this.$refs.xTable?this.$refs.xTable.getCheckboxRecords():[]},recalculate:function(){this.$refs.xTable&&this.$refs.xTable.recalculate(!0)},setAllTreeExpand:function(e){this.$refs.xTable&&this.$refs.xTable.setAllTreeExpand&&this.$refs.xTable.setAllTreeExpand(e)},initResizeObserver:function(){var e=this,t=this.$refs.tableWrap;t&&("undefined"!==typeof ResizeObserver?(this.resizeObserver=new ResizeObserver(function(){e.scheduleTableRecalculate()}),this.resizeObserver.observe(t)):window.addEventListener("resize",this.handleWindowResize))},scheduleTableRecalculate:function(){var e=this;this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(function(){e.resizeTimer=null,e.resizeRecalculate()},50)},resizeRecalculate:function(){var e=this,t=this.$refs.xTable,n=this.$refs.tableWrap;if(t&&(!n||0!==n.clientWidth)){var r=function(){e.$nextTick(function(){t.refreshScroll&&t.refreshScroll()})};if(t.recalculate){var i=t.recalculate(!0);i&&"function"===typeof i.then?i.then(r):r()}else r()}},handleWindowResize:function(){this.scheduleTableRecalculate()},destroyResizeObserver:function(){this.resizeTimer&&(clearTimeout(this.resizeTimer),this.resizeTimer=null),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),window.removeEventListener("resize",this.handleWindowResize)},exportData:function(e){this.$refs.xTable&&this.$refs.xTable.exportData&&this.$refs.xTable.exportData(e)},applyColumnOrder:function(){var e=this.$refs.xTable;if(e&&e.staticColumns){var t={};e.staticColumns.forEach(function(e){t[e.field||e.type]=e});var n=[];this.showCheckbox&&t.checkbox&&n.push(t.checkbox),this.vxeColumns.forEach(function(e){var r=t[e.field||e.type];r&&(r.minWidth=e.minWidth,r.sortable=!!e.sortable,r.fixed=e.fixed||"",n.push(r))}),e.staticColumns=n,this.$nextTick(function(){e.recalculate&&e.recalculate(!0)})}},openColumnSetting:function(){var e=this,t={};this.columnComps.forEach(function(e){t[e._uid]=e});var n=this.columnStates;this.columnDraft=this.columnOrder.map(function(e){var r=t[e];if(!r)return null;var i=n[e];return{uid:e,field:r.field,title:r.title,visible:!i||!1!==i.visible,fixed:i?i.fixed:r.fixed||"",minWidth:i&&null!=i.minWidth?i.minWidth:r.resolvedMinWidth,sortable:i&&null!=i.sortable?i.sortable:!!r.sortable}}).filter(Boolean),this.dragColField="",this.dragOverColField="",this.columnTitleWidth=this.columnDraft.reduce(function(t,n){return Math.max(t,e.calcColumnTitleWidth(n.title))},0)},calcColumnTitleWidth:function(e){var t=String(e||""),n=(t.match(/[\u4e00-\u9fa5]/g)||[]).length,r=t.length-n;return 15*n+10*r+10},toggleColumnAll:function(e){this.columnDraft.forEach(function(t){t.visible=e})},toggleColumnVisible:function(e,t){e.visible=t},changeColumnDraftWidth:function(e,t){null==t||""===t||Number(t)<=0?(e.visible=!1,e.minWidth=void 0):e.minWidth=Number(t)},toggleColumnFixed:function(e,t){e.fixed=e.fixed===t?"":t},toggleColumnSortable:function(e){e.sortable=!e.sortable},moveColumnDraft:function(e,t){var n=e+t;if(!(n<0||n>=this.columnDraft.length)){var r=this.columnDraft,i=r.splice(e,1)[0];r.splice(n,0,i)}},onDraftDragStart:function(e,t){this.dragColField=t.uid,e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",String(t.uid))},onDraftDragOver:function(e){e.uid!==this.dragOverColField&&(this.dragOverColField=e.uid)},onDraftDrop:function(e){var t=this.dragColField,n=e.uid;if(this.dragOverColField="",t&&t!==n){var r=this.columnDraft.findIndex(function(e){return e.uid===t}),i=this.columnDraft.findIndex(function(e){return e.uid===n});if(r<0||i<0)this.dragColField="";else{var o=this.columnDraft.splice(r,1),a=bt(o,1),s=a[0];this.columnDraft.splice(i,0,s),this.dragColField=""}}else this.dragColField=""},onDraftDragEnd:function(){this.dragColField="",this.dragOverColField=""},restoreDefaultColumns:function(){this.columnDraft=JSON.parse(JSON.stringify(this.defaultSnapshot))},confirmColumnSetting:function(){var e=this,t=[];this.columnDraft.forEach(function(n){e.$set(e.columnStates,n.uid,{visible:n.visible,fixed:n.fixed||"",minWidth:null!=n.minWidth?n.minWidth:null,sortable:!!n.sortable}),t.push(n.uid)}),this.columnOrder=t,this.columnSettingVisible=!1,this.$nextTick(function(){e.applyColumnOrder()})}}},Bt=jt;r(1492);var Vt=u(Bt,it,ot,!1,null,null,null);const zt=Vt.exports,Ht={name:"StandardColumn",props:{field:{type:String,default:""},type:{type:String,default:""},title:{type:String,default:""},width:{type:[String,Number],default:null},minWidth:{type:[String,Number],default:null},treeNode:{type:Boolean,default:!1},resizable:{type:Boolean,default:!0},fixed:{type:String,default:""},align:{type:String,default:"left"},showOverflow:{type:Boolean,default:!0},sortable:{type:Boolean,default:!1},formatter:{type:Function,default:null},editable:{type:Boolean,default:!1},editRender:{type:Object,default:null}},computed:{resolvedMinWidth:function(){var e=Number(this.minWidth);if(null!=this.minWidth&&""!==this.minWidth&&e>0)return e;var t=Number(this.width);return null!=this.width&&""!==this.width&&t>0?t:this.calcTitleWidth(this.title)}},render:function(e){return e("div",{style:{display:"none"}})},created:function(){this.register()},beforeDestroy:function(){this.unregister()},methods:{calcTitleWidth:function(e){var t=String(e??""),n=(t.match(/[\u4e00-\u9fa5]/g)||[]).length,r=(t.match(/[A-Za-z]/g)||[]).length;return 15*n+10*r+40},findParentTable:function(){var e=this.$parent;while(e&&"StandardTable"!==e.$options.name)e=e.$parent;return e},register:function(){var e=this.findParentTable();e?this.field||this.type?e.addColumn(this):console.warn("[StandardColumn] field 与 type 至少需要提供一个"):console.warn("[StandardColumn] 未找到父组件 StandardTable,列信息注册失败")},unregister:function(){var e=this.findParentTable();e&&e.removeColumn(this)}}},Wt=Ht;var qt,Gt,Yt=u(Wt,qt,Gt,!1,null,null,null);const Ut=Yt.exports,Kt={name:"StandardToolbarLeft",props:{buttons:{type:Array,default:function(){return[]}}},methods:{handleButtonClick:function(e){if(e){if("function"===typeof e.method)e.method(e);else if("string"===typeof e.method&&e.method){var t=this.$parent;while(t){if("function"===typeof t[e.method]){t[e.method](e);break}t=t.$parent}}this.$emit("toolbar-click",e)}}},render:function(e){var t=this,n=(this.buttons||[]).filter(function(e){return e&&!1!==e.show}).map(function(n,r){return e("el-button",{key:"toolbar-"+r,props:{size:"mini",type:n.type,icon:n.icon},attrs:{title:n.title},on:{click:function(){return t.handleButtonClick(n)}}},[n.text])}),r=this.$slots["default"]||[];return e("div",{class:"standard-toolbar-left"},n.concat(r))}},Xt=Kt;var Zt,Qt,Jt=u(Xt,Zt,Qt,!1,null,null,null);const en=Jt.exports,tn={name:"StandardToolbarRight",props:{showAdjustment:{type:Boolean,default:!1}},created:function(){this.register()},beforeDestroy:function(){this.unregister()},methods:{findParentTable:function(){var e=this.$parent;while(e&&"StandardTable"!==e.$options.name)e=e.$parent;return e},register:function(){var e=this.findParentTable();e?e.registerToolbarRight(this):console.warn("[StandardToolbarRight] 未找到父组件 StandardTable,show-adjustment 配置注册失败")},unregister:function(){var e=this.findParentTable();e&&e.unregisterToolbarRight(this)}},render:function(e){return e("div",{class:"standard-toolbar-right"},this.$slots["default"])}},nn=tn;var rn,on,an=u(nn,rn,on,!1,null,null,null);const sn=an.exports;var ln=function(){var e=this,t=e._self._c;return e.placedCorrectly?t("div",{staticClass:"standard-toolbar-query"},[t("standard-input",{attrs:{value:e.keyword,placeholder:e.placeholder},on:{input:e.onInput,enter:e.onQuery}}),t("standard-button",{attrs:{type:"primary",icon:"el-icon-search",label:"查询",loading:e.loading},on:{click:e.onQuery}}),t("standard-button",{attrs:{icon:"el-icon-upload2",label:"导出"},on:{click:e.onExport}})],1):e._e()},cn=[];const un={name:"StandardToolbarQuery",components:{StandardInput:we,StandardButton:h},model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},placeholder:{type:String,default:"请输入关键字"},queryMethod:{type:[Function,String],default:""},exportMethod:{type:[Function,String],default:""},loading:{type:Boolean,default:!1}},data:function(){return{placedCorrectly:!0,keyword:null==this.value?"":String(this.value)}},watch:{value:function(e){this.keyword=null==e?"":String(e)}},mounted:function(){this.validatePlacement()},methods:{findToolbarRight:function(){var e=this.$parent;while(e){if(e.$options&&"StandardToolbarRight"===e.$options.name)return e;e=e.$parent}return null},validatePlacement:function(){var e=this.$el,t=!!(e&&1===e.nodeType&&e.parentElement&&e.parentElement.closest(".standard-toolbar-right"));this.findToolbarRight()||t||(this.placedCorrectly=!1,console.warn("[StandardToolbarQuery] 只能放在 standard-toolbar-right 内部"))},onInput:function(e){this.keyword=null==e?"":String(e),this.$emit("input",this.keyword)},invokeMethod:function(e,t){if("function"!==typeof e){if("string"===typeof e&&e){var n=this.$parent;while(n){if("function"===typeof n[e])return void n[e](t);n=n.$parent}console.warn("[StandardToolbarQuery] 未找到方法 ".concat(e))}}else e(t)},onQuery:function(){var e=this.keyword;this.invokeMethod(this.queryMethod,e),this.$emit("query",e)},onExport:function(){var e=this.keyword;this.invokeMethod(this.exportMethod,e),this.$emit("export",e)}}},dn=un;var hn=u(dn,ln,cn,!1,null,null,null);const pn=hn.exports,fn={name:"StandardFooterLeft",props:{text:{type:String,default:""}},render:function(e){return e("span",{class:"normal-report-update-time"},this.text)}},mn=fn;var gn,vn,bn=u(mn,gn,vn,!1,null,null,null);const yn=bn.exports,xn={name:"StandardFooterRight",props:{pageSizes:{type:Array,default:function(){return[10,20,50,100,200,500]}},layout:{type:String,default:"sizes, prev, pager, next, total"},currentPage:{type:Number,default:1},pageSize:{type:Number,default:20},total:{type:Number,default:0}},data:function(){return{suppressCurrentChange:!1}},methods:{handleCurrentChange:function(e){this.suppressCurrentChange||this.$emit("page-change",{currentPage:e,pageSize:this.pageSize,type:"page"})},handleSizeChange:function(e){var t=this;this.suppressCurrentChange=!0,this.$emit("page-change",{currentPage:1,pageSize:e,type:"size"}),this.$nextTick(function(){t.suppressCurrentChange=!1})}},render:function(e){return e("el-pagination",{class:"normal-report-table-pagination",props:{background:!0,layout:this.layout,currentPage:this.currentPage,pageSize:this.pageSize,pageSizes:this.pageSizes,total:this.total},on:{"size-change":this.handleSizeChange,"current-change":this.handleCurrentChange}})}},wn=xn;var Cn,_n,Sn=u(wn,Cn,_n,!1,null,null,null);const kn=Sn.exports;zt.Column=Ut,zt.ToolbarLeft=en,zt.ToolbarRight=sn,zt.ToolbarQuery=pn,zt.FooterLeft=yn,zt.FooterRight=kn,zt.FooterEmpty=vt,zt.ToolbarEmpty=dt,zt.install=function(e){e.component(zt.name,zt),e.component(Ut.name,Ut),e.component(en.name,en),e.component(sn.name,sn),e.component(pn.name,pn),e.component(yn.name,yn),e.component(kn.name,kn),e.component(vt.name,vt),e.component(dt.name,dt)};const En=zt;var On=function(){var e=this,t=e._self._c;return t("section",{staticClass:"standard-tabs"},[t("el-tabs",e._g(e._b({staticClass:"standard-tabs__inner",attrs:{value:e.value},on:{input:e.onInput}},"el-tabs",e.$attrs,!1),e.tabsListeners),[e._t("default")],2)],1)},Tn=[];function $n(e){return $n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$n(e)}function Dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dn(Object(n),!0).forEach(function(t){Fn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fn(e,t,n){return(t=Rn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rn(e){var t=In(e,"string");return"symbol"==$n(t)?t:t+""}function In(e,t){if("object"!=$n(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=$n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}const An={name:"StandardTabs",model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},lazy:{type:Boolean,default:!1}},provide:function(){return{standardTabs:this}},computed:{tabsListeners:function(){var e=Mn({},this.$listeners);return delete e.input,e}},methods:{onInput:function(e){this.$emit("input",e)}}},Pn=An;r(8810);var Ln=u(Pn,On,Tn,!1,null,"605a8d38",null);const Nn=Ln.exports;var jn=r(1052);const Bn={name:"ElTabPane",componentName:"ElTabPane",extends:jn.TabPane,inject:{standardTabs:{default:null}},computed:{paneLazy:function(){return this.lazy||!(!this.standardTabs||!this.standardTabs.lazy)}},render:function(e){return!this.paneLazy||this.loaded||this.active?e("div",{class:"el-tab-pane",directives:[{name:"show",rawName:"v-show",value:this.active,expression:"active"}],attrs:{role:"tabpanel","aria-hidden":!this.active,id:"pane-".concat(this.paneName),"aria-labelledby":"tab-".concat(this.paneName)}},[this.$slots["default"]]):e()}},Vn=Bn;var zn,Hn,Wn=u(Vn,zn,Hn,!1,null,null,null);const qn=Wn.exports;Nn.TabPane=qn,Nn.install=function(e){e.component(Nn.name,Nn),e.component("StandardTabPane",qn)};const Gn=Nn;var Yn=function(){var e=this,t=e._self._c;return t("section",{staticClass:"standard-tree",class:{"standard-tree--transparent":e.transparent}},[t("div",{staticClass:"standard-tree-search"},[t("el-input",{attrs:{size:"mini",clearable:"","prefix-icon":"el-icon-search",placeholder:e.searchPlaceholder},model:{value:e.filterText,callback:function(t){e.filterText="string"===typeof t?t.trim():t},expression:"filterText"}})],1),t("div",{staticClass:"standard-tree-main"},[t("el-tree",{ref:"tree",staticClass:"standard-tree-body",attrs:{data:e.treeData,"node-key":e.nodeKey,props:e.treeProps,"default-expanded-keys":e.defaultExpandedKeys,accordion:"","highlight-current":"","expand-on-click-node":!0,"filter-node-method":e.filterNode},on:{"node-click":e.handleNodeClick,"node-expand":e.handleTreeExpand,"node-collapse":e.handleTreeCollapse},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.node,i=n.data;return t("span",{staticClass:"standard-tree-node"},[t("i",{class:i.children&&i.children.length?"el-icon-folder-opened":"el-icon-document"}),t("span",{staticClass:"standard-tree-node-label"},[e._v(e._s(r.label))])])}}])})],1),t("div",{staticClass:"standard-tree-bottom"},[t("el-button",{staticClass:"standard-tree-bottom-button",attrs:{type:"text",size:"mini",icon:e.allExpanded?"el-icon-arrow-up":"el-icon-arrow-down",title:e.allExpanded?"收起所有分组":"展开所有分组"},on:{click:e.toggleExpandAll}},[e._v(e._s(e.allExpanded?"全部收起":"全部展开"))])],1)])},Un=[];const Kn={name:"StandardTree",model:{prop:"treeData",event:"update:treeData"},props:{treeData:{type:Array,default:function(){return[]}},treeProps:{type:Object,default:function(){return{label:"label",children:"children"}}},nodeKey:{type:String,default:"id"},defaultExpandedKeys:{type:Array,default:function(){return[]}},searchPlaceholder:{type:String,default:"请输入节点名称搜索"},transparent:{type:Boolean,default:!1}},data:function(){return{filterText:"",allExpanded:!1}},watch:{filterText:function(e){this.$refs.tree&&this.$refs.tree.filter(e)},treeData:function(){var e=this;this.$nextTick(function(){e.allExpanded=e.isAllExpanded()})}},methods:{filterNode:function(e,t){if(!e)return!0;var n=t[this.treeProps.label];return-1!==String(n??"").indexOf(e)},handleNodeClick:function(e,t,n){this.$emit("node-click",e,t,n)},handleTreeExpand:function(e,t,n){var r=this;this.$nextTick(function(){r.allExpanded=r.isAllExpanded()}),this.$emit("node-expand",e,t,n)},handleTreeCollapse:function(e,t,n){this.allExpanded=!1,this.$emit("node-collapse",e,t,n)},getGroupNodes:function(){return(this.treeData||[]).filter(function(e){return e.children&&e.children.length})},isAllExpanded:function(){var e=this,t=this.$refs.tree,n=this.getGroupNodes();return!(!t||!n.length)&&n.every(function(n){var r=t.getNode(n[e.nodeKey]);return r&&r.expanded})},toggleExpandAll:function(){var e=this,t=this.$refs.tree,n=this.getGroupNodes();t&&n.length&&(this.isAllExpanded()?(n.forEach(function(n){var r=t.getNode(n[e.nodeKey]);r&&r.expanded&&r.collapse()}),this.allExpanded=!1):(n.forEach(function(n){var r=t.getNode(n[e.nodeKey]);r&&r.expand()}),this.allExpanded=!0))},setCurrentKey:function(e){this.$refs.tree&&this.$refs.tree.setCurrentKey(e)},filter:function(e){this.$refs.tree&&this.$refs.tree.filter(e)}}},Xn=Kn;r(4003);var Zn=u(Xn,Yn,Un,!1,null,"bb183020",null);const Qn=Zn.exports;function Jn(){return Jn.c||(Jn.c=r.n(t()))}t();var er=[h,b,S,N,re,ce,we,Oe,Re,qe,rt,En,Gn,Qn],tr=!1,nr=function(e){!tr&&Jn()()&&"function"===typeof Jn()().setup&&(Jn()().setup({zIndex:5e3}),tr=!0),er.forEach(function(t){"function"===typeof t.install?e.use(t):e.component(t.name,t)})},rr={install:nr,StandardButton:h,StandardDialog:b,StandardContainer:S,StandardFilterbar:N,StandardForm:re,StandardHalfArea:ce,StandardInput:we,StandardPage:Oe,StandardSplitter:Re,StandardSelect:qe,StandardTimePick:rt,StandardTable:En,StandardTabs:Gn,StandardTree:Qn};const ir=rr,or=ir})(),i})());
|
|
24
|
+
function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"===typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=o},777(e,t,n){"use strict";var r=n(8751),i=n(8125),o=10,a=40,s=800;function l(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*o,i=n*o,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(1==e.deltaMode?(r*=a,i*=a):(r*=s,i*=s)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}l.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},e.exports=l},3591(e,t,n){"use strict";n.r(t);var r=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),i="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,o=function(){return"undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),a=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),s=2;function l(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&c()}function l(){a(o)}function c(){var e=Date.now();if(n){if(e-i<s)return;r=!0}else n=!0,r=!1,setTimeout(l,t);i=e}return c}var c=20,u=["top","right","bottom","left","width","height","size","weight"],d="undefined"!==typeof MutationObserver,h=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=l(this.refresh.bind(this),c)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=u.some(function(e){return!!~n.indexOf(e)});r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),p=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||o},m=k(0,0,0,0);function g(e){return parseFloat(e)||0}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){var r=e["border-"+n+"-width"];return t+g(r)},0)}function b(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],a=e["padding-"+o];n[o]=g(a)}return n}function y(e){var t=e.getBBox();return k(0,0,t.width,t.height)}function x(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return m;var r=f(e).getComputedStyle(e),i=b(r),o=i.left+i.right,a=i.top+i.bottom,s=g(r.width),l=g(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=v(r,"left","right")+o),Math.round(l+a)!==n&&(l-=v(r,"top","bottom")+a)),!C(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return k(i.left,i.top,s,l)}var w=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"===typeof e.getBBox}}();function C(e){return e===f(e).document.documentElement}function _(e){return i?w(e)?y(e):x(e):m}function S(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return p(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}function k(e,t,n,r){return{x:e,y:t,width:n,height:r}}var E=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=k(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=_(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),O=function(){function e(e,t){var n=S(t);p(this,{target:e,contentRect:n})}return e}(),T=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new E(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new O(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),$="undefined"!==typeof WeakMap?new WeakMap:new r,D=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=h.getInstance(),r=new T(t,n,this);$.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){D.prototype[e]=function(){var t;return(t=$.get(this))[e].apply(t,arguments)}});var M=function(){return"undefined"!==typeof o.ResizeObserver?o.ResizeObserver:D}();const F=M;n.d(t,["default",0,F])},3820(e,t,n){var r=n(9119);e.exports=function(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}},2887(e,t,n){var r=n(9119),i=n(3820);e.exports={throttle:r,debounce:i}},9119(e){e.exports=function(e,t,n,r){var i,o=0;function a(){var a=this,s=Number(new Date)-o,l=arguments;function c(){o=Number(new Date),n.apply(a,l)}function u(){i=void 0}r&&!i&&c(),i&&clearTimeout(i),void 0===r&&s>e?c():!0!==t&&(i=setTimeout(r?u:c,void 0===r?e-s:e))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),a}},5714(e,t,n){var r=n(879);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("4206c8f8",r,!0,{sourceMap:!1,shadowMode:!1})},1480(e,t,n){var r=n(6117);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("9f6e4134",r,!0,{sourceMap:!1,shadowMode:!1})},3948(e,t,n){var r=n(6343);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("21670536",r,!0,{sourceMap:!1,shadowMode:!1})},9127(e,t,n){var r=n(754);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("236f2acb",r,!0,{sourceMap:!1,shadowMode:!1})},6920(e,t,n){var r=n(7331);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("836d7778",r,!0,{sourceMap:!1,shadowMode:!1})},9787(e,t,n){var r=n(8236);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("04063f86",r,!0,{sourceMap:!1,shadowMode:!1})},2441(e,t,n){var r=n(2234);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("063fad21",r,!0,{sourceMap:!1,shadowMode:!1})},6701(e,t,n){var r=n(9078);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("c360aeaa",r,!0,{sourceMap:!1,shadowMode:!1})},4003(e,t,n){var r=n(8908);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("7b42ed21",r,!0,{sourceMap:!1,shadowMode:!1})},7192(e,t,n){var r=n(3533);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("785286b1",r,!0,{sourceMap:!1,shadowMode:!1})},4780(e,t,n){var r=n(9193);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("36ee8551",r,!0,{sourceMap:!1,shadowMode:!1})},6588(e,t,n){var r=n(3221);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("50f51b0d",r,!0,{sourceMap:!1,shadowMode:!1})},1492(e,t,n){var r=n(2145);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("4ffd55a9",r,!0,{sourceMap:!1,shadowMode:!1})},8810(e,t,n){var r=n(9723);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(9548).A;i("481cc505",r,!0,{sourceMap:!1,shadowMode:!1})},9548(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[0],s=o[1],l=o[2],c=o[3],u={id:e+":"+i,css:s,media:l,sourceMap:c};r[a]?r[a].parts.push(u):n.push(r[a]={id:a,parts:[u]})}return n}n.d(t,{A:()=>f});var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},d=null,h="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(e,t,n,i){c=n,d=i||{};var a=r(e,t);return m(a),function(t){for(var n=[],i=0;i<a.length;i++){var s=a[i],l=o[s.id];l.refs--,n.push(l)}t?(a=r(e,t),m(a)):a=[];for(i=0;i<n.length;i++){l=n[i];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete o[l.id]}}}}function m(e){for(var t=0;t<e.length;t++){var n=e[t],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(v(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(v(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:a}}}}function g(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function v(e){var t,n,r=document.querySelector("style["+h+'~="'+e.id+'"]');if(r){if(c)return u;r.parentNode.removeChild(r)}if(p){var i=l++;r=s||(s=g()),t=y.bind(null,r,i,!1),n=y.bind(null,r,i,!0)}else r=g(),t=x.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function y(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function x(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),d.ssrId&&e.setAttribute(h,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},1515(e,t,n){"use strict";n.r(t),n.d(t,{Colgroup:()=>mf,Column:()=>hf,Grid:()=>sw,Table:()=>SC,Toolbar:()=>EC,VXETable:()=>qd,VxeColgroup:()=>ff,VxeColumn:()=>df,VxeGrid:()=>aw,VxeTable:()=>_C,VxeToolbar:()=>kC,VxeUI:()=>ad,_t:()=>Wd,clipboard:()=>Nd,commands:()=>Pd,config:()=>zd,formats:()=>Ad,getConfig:()=>Sd,getI18n:()=>$d,getIcon:()=>Ed,getTheme:()=>Cd,globalEvents:()=>Dd,globalResize:()=>Md,install:()=>$C,interceptor:()=>Ld,log:()=>jd,menus:()=>Id,modal:()=>Kd,print:()=>Ud,readFile:()=>Yd,renderer:()=>Fd,saveFile:()=>Gd,setConfig:()=>_d,setI18n:()=>Td,setIcon:()=>kd,setLanguage:()=>Od,setTheme:()=>wd,setup:()=>Vd,t:()=>Hd,use:()=>Bd,validators:()=>Rd,version:()=>"3.24.2"});const r="3.4.24",i={coreVersion:r,uiVersion:"",tableVersion:"",designVersion:"",ganttVersion:""};var o={keyId:1,cookies:{path:"/"},treeOptions:{parentKey:"parentId",key:"id",children:"children"},parseDateFormat:"yyyy-MM-dd HH:mm:ss",firstDayOfWeek:1};const a=o;function s(e,t,n){if(e)if(e.forEach)e.forEach(t,n);else for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)}const l=s;var c=Object.prototype.toString;const u=c;function d(e){return function(t){return"[object "+e+"]"===u.call(t)}}const h=d;var p=Array.isArray||h("Array");const f=p;var m="undefined";const g=m;var v=typeof Map!==g;function b(e){return v&&e instanceof Map}const y=b;var x=typeof Set!==g;function w(e){return x&&e instanceof Set}const C=w;var _=Object.prototype.hasOwnProperty,S=Object.hasOwn,k=S||function(e,t){return _.call(e,t)};function E(e,t){return null!=e&&k(e,t)}const O=E;function T(e,t,n){if(e)for(var r in e)O(e,r)&&t.call(n,e[r],r,e)}const $=T;function D(e,t,n){return e&&e.forEach(function(r,i,o){t.call(n||e,r,i,o)}),e}const M=D;function F(e,t,n){return e&&e.forEach(function(r,i,o){t.call(n||e,r,i,o)}),e}const R=F;function I(e,t,n){return e&&(f(e)?l(e,t,n):y(e)?M(e,t,n):C(e)?R(e,t,n):$(e,t,n)),e}const A=I;function P(e){return function(t){return typeof t===e}}const L=P;var N=L("function");const j=N;function B(e,t){var n=Object[e];return function(e){var r=[];if(e){if(n)return n(e);A(e,t>1?function(t){r.push([""+t,e[t]])}:function(){r.push(arguments[t])})}return r}}const V=B;var z=V("keys",1);const H=z;function W(e,t){var n=e.__proto__.constructor;return t?new n(t):new n}function q(e,t){return t?G(e,t):e}function G(e,t){if(e)switch(u.call(e)){case"[object Object]":var n=Object.create(Object.getPrototypeOf(e));return $(e,function(e,r){n[r]=q(e,t)}),n;case"[object Date]":case"[object RegExp]":return W(e,e.valueOf());case"[object Array]":case"[object Arguments]":var r=[];return l(e,function(e){r.push(q(e,t))}),r;case"[object Set]":var i=W(e);return i.forEach(function(e){i.add(q(e,t))}),i;case"[object Map]":var o=W(e);return o.forEach(function(e,n){o.set(n,q(e,t))}),o}return e}function Y(e,t){return e?G(e,t):e}const U=Y;var K=Object.assign;function X(e,t,n){for(var r,i=t.length,o=1;o<i;o++)r=t[o],l(H(t[o]),n?function(t){e[t]=U(r[t],n)}:function(t){e[t]=r[t]});return e}var Z=function(e){if(e){var t=arguments;if(!0!==e)return K?K.apply(Object,t):X(e,t);if(t.length>1)return e=f(e[1])?[]:{},X(e,t,!0)}return e};const Q=Z;var J=function(){};function ee(){l(arguments,function(e){A(e,function(e,t){J[t]=j(e)?function(){var t=e.apply(J.$context,arguments);return J.$context=null,t}:e})})}function te(e){return Q(a,e)}function ne(){return a}var re="4.1.2";J.VERSION=re,J.version=re,J.mixin=ee,J.setup=te,J.setConfig=te,J.getConfig=ne;const ie=J;function oe(e,t,n){for(var r=e.length-1;r>=0;r--)t.call(n,e[r],r,e)}const ae=oe;function se(e,t,n){ae(H(e),function(r){t.call(n,e[r],r,e)})}const le=se;function ce(e){return null===e}const ue=ce;function de(e,t){return function(n){return ue(n)?t:n[e]}}const he=de;function pe(e,t,n){var r={};if(e){if(!t)return e;j(t)||(t=he(t)),A(e,function(i,o){r[o]=t.call(n,i,o,e)})}return r}const fe=pe;function me(e,t,n){for(var r=Array.from(e),i=r.length-1;i>=0;i--){var o=r[i][0],a=r[i][1];t.call(n,a,o,e)}}const ge=me;function ve(e,t,n){for(var r=Array.from(e),i=r.length-1;i>=0;i--)t.call(n,r[i],r[i],e)}const be=ve;function ye(e){return!!e&&e.constructor===Object}const xe=ye;function we(e){return"__proto__"!==e&&"constructor"!==e}const Ce=we;function _e(e,t){return xe(e)&&xe(t)||f(e)&&f(t)?(A(t,function(n,r){Ce(r)&&(e[r]=j(t)?n:_e(e[r],n))}),e):U(t,!0)}var Se=function(e){e||(e={});for(var t,n=arguments,r=n.length,i=1;i<r;i++)t=n[i],t&&_e(e,t);return e};const ke=Se;function Ee(e,t,n){var r=[];if(e&&arguments.length>1){if(e.map)return e.map(t,n);A(e,function(){r.push(t.apply(n,arguments))})}return r}const Oe=Ee;function Te(e,t,n,r,i){return function(o,a,s){if(o&&a){if(e&&o[e])return o[e](a,s);if(t&&f(o)){for(var l=0,c=o.length;l<c;l++)if(!!a.call(s,o[l],l,o)===r)return[!0,!1,l,o[l]][n]}else for(var u in o)if(O(o,u)&&!!a.call(s,o[u],u,o)===r)return[!0,!1,u,o[u]][n]}return i}}const $e=Te;var De=$e("some",1,0,!0,!1);const Me=De;var Fe=$e("every",1,1,!1,!0);const Re=Fe;function Ie(e,t){if(e){if(e.includes)return e.includes(t);for(var n in e)if(O(e,n)&&t===e[n])return!0}return!1}const Ae=Ie;function Pe(e,t){var n,r=0;if(f(e)&&f(t)){for(n=t.length;r<n;r++)if(!Ae(e,t[r]))return!1;return!0}return Ae(e,t)}const Le=Pe;function Ne(e,t,n){var r=[];if(t){j(t)||(t=he(t));var i,o={};A(e,function(a,s){i=t.call(n,a,s,e),o[i]||(o[i]=1,r.push(a))})}else A(e,function(e){Ae(r,e)||r.push(e)});return r}const je=Ne;function Be(e){return Oe(e,function(e){return e})}const Ve=Be;function ze(){for(var e=arguments,t=[],n=0,r=e.length;n<r;n++)t=t.concat(Ve(e[n]));return je(t)}const He=ze;var We=L(g);const qe=We;function Ge(e){return ue(e)||qe(e)}const Ye=Ge;var Ue=/(.+)?\[(\d+)\]$/;const Ke=Ue;function Xe(e){return e?e.splice&&e.join?e:(""+e).replace(/(\[\d+\])\.?/g,"$1.").replace(/\.$/,"").split("."):[]}const Ze=Xe;function Qe(e,t,n){if(Ye(e))return n;var r=et(e,t);return qe(r)?n:r}function Je(e,t){var n=t?t.match(Ke):"";return n?n[1]?e[n[1]]?e[n[1]][n[2]]:void 0:e[n[2]]:e[t]}function et(e,t){if(e){var n,r,i,o=0;if(e[t]||O(e,t))return e[t];if(r=Ze(t),i=r.length,i)for(n=e;o<i;o++)if(n=Je(n,r[o]),Ye(n))return o===i-1?n:void 0;return n}}const tt=Qe;var nt="asc",rt="desc";function it(e,t){return qe(e)?1:ue(e)?qe(t)?-1:1:e&&e.localeCompare?e.localeCompare(t):e>t?1:-1}function ot(e,t,n){return function(r,i){var o=r[e],a=i[e];return o===a?n?n(r,i):0:t.order===rt?it(a,o):it(o,a)}}function at(e,t,n,r){var i=[];return n=f(n)?n:[n],l(n,function(n,o){if(n){var a,s=n;f(n)?(s=n[0],a=n[1]):xe(n)&&(s=n.field,a=n.order),i.push({field:s,order:a||nt}),l(t,j(s)?function(t,n){t[o]=s.call(r,t.data,n,e)}:function(e){e[o]=s?tt(e.data,s):e.data})}}),i}function st(e,t,n){if(e){if(Ye(t))return Ve(e).sort(it);var r,i=Oe(e,function(e){return{data:e}}),o=at(e,i,t,n),a=o.length-1;while(a>=0)r=ot(a,o[a],r),a--;return r&&(i=i.sort(r)),Oe(i,he("data"))}return[]}const lt=st;var ct=lt;const ut=ct;function dt(e,t){return e>=t?e:(e|=0)+Math.round(Math.random()*((t||9)-e))}const ht=dt;var pt=V("values",0);const ft=pt;function mt(e){for(var t,n=[],r=ft(e),i=r.length-1;i>=0;i--)t=i>0?ht(0,i):0,n.push(r[t]),r.splice(t,1);return n}const gt=mt;function vt(e,t){var n=gt(e);return arguments.length<=1?n[0]:(t<n.length&&(n.length=t||0),n)}const bt=vt;function yt(e){return function(t){if(t){var n=e(t&&t.replace?t.replace(/,/g,""):t);if(!isNaN(n))return n}return 0}}const xt=yt;var wt=xt(parseFloat);const Ct=wt;var _t=L("string");const St=_t;function kt(e,t,n){var r=St(e),i=r?"":[],o=arguments.length;if(e){if(t=o>=2?Ct(t):0,n=o>=3?Ct(n):e.length,e.slice)return e.slice(t,n);if(t<0&&(t=Math.max(0,e.length+t)),r)return e.substring(t,n);for(;t<n;t++)i.push(e[t])}return i}const Et=kt;function Ot(e,t,n){var r=[];if(e&&t){if(e.filter)return e.filter(t,n);A(e,function(i,o){t.call(n,i,o,e)&&r.push(i)})}return r}const Tt=Ot;var $t=$e("",0,2,!0);const Dt=$t;var Mt=$e("find",1,3,!0);const Ft=Mt;function Rt(e,t,n){if(e){f(e)||(e=ft(e));for(var r=e.length-1;r>=0;r--)if(t.call(n,e[r],r,e))return e[r]}}const It=Rt;function At(e,t,n){if(e){var r,i,o=0,a=null,s=n,l=arguments.length>2,c=H(e);if(e.length&&e.reduce)return i=function(){return t.apply(a,arguments)},l?e.reduce(i,s):e.reduce(i);for(l&&(o=1,s=e[c[0]]),r=c.length;o<r;o++)s=t.call(a,s,e[c[o]],o,e);return s}}const Pt=At;function Lt(e,t,n,r){if(f(e)&&e.copyWithin)return e.copyWithin(t,n,r);var i,o,a=t|0,s=n|0,l=e.length,c=arguments.length>3?r|0:l;if(a<l&&(a=a>=0?a:l+a,a>=0&&(s=s>=0?s:l+s,c=c>=0?c:l+c,s<c)))for(i=0,o=e.slice(s,c);a<l;a++){if(o.length<=i)break;e[a]=o[i++]}return e}const Nt=Lt;function jt(e,t){var n,r=[],i=t|0||1;if(f(e))if(i>=0&&e.length>i){n=0;while(n<e.length)r.push(e.slice(n,n+i)),n+=i}else r=e.length?[e]:e;return r}const Bt=jt;function Vt(e,t){return Oe(e,he(t))}const zt=Vt;function Ht(e){return function(t,n){var r,i;return t&&t.length?(l(t,function(o,a){n&&(o=j(n)?n(o,a,t):tt(o,n)),Ye(o)||!Ye(r)&&!e(r,o)||(i=a,r=o)}),t[i]):r}}const Wt=Ht;var qt=Wt(function(e,t){return e<t});const Gt=qt;function Yt(e){var t,n,r,i=[];if(e&&e.length)for(t=0,n=Gt(e,function(e){return e?e.length:0}),r=n?n.length:0;t<r;t++)i.push(zt(e,t));return i}const Ut=Yt;function Kt(){return Ut(arguments)}const Xt=Kt;function Zt(e,t){var n={};return t=t||[],A(ft(e),function(e,r){n[e]=t[r]}),n}const Qt=Zt;function Jt(e,t){var n=[];return l(e,function(e){n=n.concat(f(e)?t?Jt(e,t):e:[e])}),n}function en(e,t){return f(e)?Jt(e,t):[]}const tn=en;function nn(e,t){var n=0,r=t.length;while(e&&n<r)e=e[t[n++]];return r&&e?e:0}function rn(e,t){for(var n,r=arguments,i=[],o=[],a=2,s=r.length;a<s;a++)i.push(r[a]);if(f(t)){for(s=t.length-1,a=0;a<s;a++)o.push(t[a]);t=t[s]}return Oe(e,function(e){if(o.length&&(e=nn(e,o)),n=e[t]||t,n&&n.apply)return n.apply(e,i)})}const on=rn;function an(e,t){return(console[e]||console.log)(t)}const sn=an;function ln(e,t){try{delete e[t]}catch(n){e[t]=void 0}}const cn=ln;function un(e,t,n){return e&&(f(e)?ae(e,t,n):y(e)?ge(e,t,n):C(e)?be(e,t,n):le(e,t,n)),e}const dn=un;var hn=L("object");const pn=hn;function fn(e,t,n){if(e){var r,i=arguments.length>1&&(ue(t)||!pn(t)),o=i?n:t;if(xe(e))$(e,i?function(n,r){e[r]=t}:function(t,n){cn(e,n)}),o&&Q(e,o);else if(f(e)){if(i){r=e.length;while(r>0)r--,e[r]=t}else e.length=0;o&&e.push.apply(e,o)}}return e}const mn=fn;function gn(e){return function(t,n){return n===e}}function vn(e,t,n){if(e){if(!Ye(t)){var r=[],i=[];return j(t)||(t=gn(t)),A(e,function(e,i,o){t.call(n,e,i,o)&&r.push(i)}),f(e)?dn(r,function(t,n){i.push(e[t]),e.splice(t,1)}):(i={},l(r,function(t){i[t]=e[t],cn(e,t)})),i}return mn(e)}return e}const bn=vn;function yn(e,t){A(e,function(e){e[t]&&!e[t].length&&bn(e,t)})}function xn(e,t){var n,r,i,o,s,l,c,u,d=Q({},a.treeOptions,t),h=d.strict,p=d.key,f=d.parentKey,m=d.children,g=d.mapChildren,v=d.rootValues,b=d.rootParentValue,y=d.sortKey,x=d.reverse,w=d.data,C=[],_={},S={},k={},E={},O={},T=void 0===b;return y&&(e=lt(U(e),y),x&&(e=e.reverse())),v&&v.length&&A(v,function(e){O[e]=1}),A(e,function(e){n=e[p],o=Ye(n)?E:k,o[n]&&sn("warn","Duplicate primary key="+n),o[n]=!0}),A(e,function(e){n=e[p],s=Ye(n),w?(r={},r[w]=e):r=e,i=e[f],l=Ye(i),c=s?S:_,c[n]=c[n]||[],r[p]=n,r[f]=i,n===i&&(i=null,sn("warn","Error infinite Loop. key="+n+" parentKey="+n)),u=l?S:_,o=l?E:k,u[i]=u[i]||[],u[i].push(r),r[m]=c[n],g&&(r[g]=c[n]),v&&v.length?O[n]&&C.push(r):T?(!h||h&&l)&&(o[i]||C.push(r)):i===b&&C.push(r)}),h&&yn(e,m),C}const wn=xn;function Cn(e,t,n,r){var i=r.key,o=r.parentKey,a=r.children,s=r.data,c=r.updated,u=r.clear;return l(n,function(n){var l=n[a];s&&(n=n[s]),!1!==c&&(n[o]=t?t[i]:null),e.push(n),l&&l.length&&Cn(e,n,l,r),u&&delete n[a]}),e}function _n(e,t){return Cn([],null,e,Q({},a.treeOptions,t))}const Sn=_n;function kn(e){return function(t,n,r,i){var o=r||{},a=o.children||"children";return e(null,t,n,i,[],[],a,o)}}const En=kn;function On(e,t,n,r,i,o,a,s){var l,c,u,d,h,p;if(t)for(c=0,u=t.length;c<u;c++){if(l=t[c],d=i.concat([""+c]),h=o.concat([l]),n.call(r,l,c,t,d,e,h))return{index:c,item:l,path:d,items:t,parent:e,nodes:h};if(a&&l&&(p=On(l,l[a],n,r,d.concat([a]),h,a,s),p))return p}}var Tn=En(On);const $n=Tn;function Dn(e,t,n,r,i,o,a,s){var l,c;A(t,function(u,d){l=i.concat([""+d]),c=o.concat([u]),n.call(r,u,d,t,l,e,c),u&&a&&(l.push(a),Dn(u,u[a],n,r,l,c,a,s))})}var Mn=En(Dn);const Fn=Mn;function Rn(e,t,n,r,i,o,a,s){var l,c,u,d=s.mapChildren||a;return Oe(t,function(h,p){return l=i.concat([""+p]),c=o.concat([h]),u=n.call(r,h,p,t,l,e,c),u&&h&&a&&h[a]&&(u[d]=Rn(h,h[a],n,r,l,c,a,s)),u})}var In=En(Rn);const An=In;function Pn(e,t,n,r){var i=[];return e&&t&&Fn(e,function(e,n,o,a,s,l){t.call(r,e,n,o,a,s,l)&&i.push(e)},n),i}const Ln=Pn;function Nn(e,t,n,r,i,o,a,s,c){var u,d,h,p,f,m=[],g=c.original,v=c.data,b=c.mapChildren||s,y=c.isEvery;return l(n,function(l,x){u=o.concat([""+x]),d=a.concat([l]),p=e&&!y||r.call(i,l,x,n,u,t,d),f=s&&l[s],p||f?(g?h=l:(h=Q({},l),v&&(h[v]=l)),h[b]=Nn(p,l,l[s],r,i,u,d,s,c),(p||h[b].length)&&m.push(h)):p&&m.push(h)}),m}var jn=En(function(e,t,n,r,i,o,a,s){return Nn(0,e,t,n,r,i,o,a,s)});const Bn=jn;function Vn(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(t===e[n])return n}const zn=Vn;function Hn(e,t){if(e.lastIndexOf)return e.lastIndexOf(t);for(var n=e.length-1;n>=0;n--)if(t===e[n])return n;return-1}const Wn=Hn;var qn=L("number");const Gn=qn;function Yn(e){return Gn(e)&&isNaN(e)}const Un=Yn;var Kn=h("Date");const Xn=Kn;var Zn=parseInt;const Qn=Zn;function Jn(e){return Date.UTC(e.y,e.M||0,e.d||1,e.H||0,e.m||0,e.s||0,e.S||0)}const er=Jn;function tr(e){return e.getTime()}const nr=tr;function rr(e){return"(\\d{"+e+"})"}function ir(e){return e<10?100*e:e<100?10*e:e}function or(e){return isNaN(e)?e:Qn(e)}for(var ar=rr(2),sr=rr("1,2"),lr=rr("1,7"),cr=rr("3,4"),ur=".{1}",dr=ur+sr,hr="(([zZ])|([-+]\\d{2}:?\\d{2}))",pr=[cr,dr,dr,dr,dr,dr,ur+lr,hr],fr=[],mr=pr.length-1;mr>=0;mr--){for(var gr="",vr=0;vr<mr+1;vr++)gr+=pr[vr];fr.push(new RegExp("^"+gr))}function br(e){for(var t,n={},r=0,i=fr.length;r<i;r++)if(t=e.match(fr[r]),t){n.y=t[1],n.M=t[2],n.d=t[3],n.H=t[4],n.m=t[5],n.s=t[6],n.S=t[7],n.Z=t[8];break}return n}var yr=[["yyyy",cr],["yy",ar],["MM",ar],["M",sr],["dd",ar],["d",sr],["HH",ar],["H",sr],["mm",ar],["m",sr],["ss",ar],["s",sr],["SSS",rr(3)],["S",lr],["Z",hr]],xr={},wr=["\\[([^\\]]+)\\]"];for(vr=0;vr<yr.length;vr++){var Cr=yr[vr];xr[Cr[0]]=Cr[1]+"?",wr.push(Cr[0])}var _r=new RegExp(wr.join("|"),"g"),Sr={};function kr(e,t){var n=Sr[t];if(!n){var r=[],i=t.replace(/([$(){}*+.?\\^|])/g,"\\$1").replace(_r,function(e,t){var n=e.charAt(0);return"["===n?t:(r.push(n),xr[e])});n=Sr[t]={_i:r,_r:new RegExp(i)}}var o={},a=e.match(n._r);if(a){for(var s=n._i,l=1,c=a.length;l<c;l++)o[s[l-1]]=a[l];return o}return o}function Er(e){if(/^[zZ]/.test(e.Z))return new Date(er(e));var t=e.Z.match(/([-+])(\d{2}):?(\d{2})/);return t?new Date(er(e)-("-"===t[1]?-1:1)*Qn(t[2])*36e5+6e4*Qn(t[3])):new Date("")}function Or(e,t){if(e){var n=Xn(e);if(n||(!t||Gn(e))&&/^[0-9]{11,15}$/.test(e))return new Date(n?nr(e):Qn(e));if(St(e)){var r=t?kr(e,t):br(e);if(r.y)return r.M&&(r.M=or(r.M)-1),r.S&&(r.S=ir(or(r.S.substring(0,3)))),r.Z?Er(r):new Date(r.y,r.M||0,r.d||1,r.H||0,r.m||0,r.s||0,r.S||0)}}return new Date("")}const Tr=Or;function $r(){return new Date}const Dr=$r;function Mr(e){var t,n=e?Tr(e):Dr();return!!Xn(n)&&(t=n.getFullYear(),t%4===0&&(t%100!==0||t%400===0))}const Fr=Mr;function Rr(e,t,n){if(e)if(f(e)){for(var r=0,i=e.length;r<i;r++)if(!1===t.call(n,e[r],r,e))break}else for(var o in e)if(O(e,o)&&!1===t.call(n,e[o],o,e))break}const Ir=Rr;function Ar(e,t,n){var r,i;if(e)if(f(e)){for(r=e.length-1;r>=0;r--)if(!1===t.call(n,e[r],r,e))break}else for(i=O(e),r=i.length-1;r>=0;r--)if(!1===t.call(n,e[i[r]],i[r],e))break}const Pr=Ar;function Lr(e,t){return function(n,r){if(n){if(n[e])return n[e](r);if(St(n)||f(n))return t(n,r);for(var i in n)if(O(n,i)&&r===n[i])return i}return-1}}const Nr=Lr;var jr=Nr("indexOf",zn);const Br=jr;var Vr=Nr("lastIndexOf",Wn);const zr=Vr;function Hr(e){var t=0;return St(e)||f(e)?e.length:(A(e,function(){t++}),t)}const Wr=Hr;function qr(e){return Gn(e)&&isFinite(e)}const Gr=qr;var Yr=function(e){return!ue(e)&&!isNaN(e)&&!f(e)&&e%1===0};const Ur=Yr;function Kr(e){return!ue(e)&&!isNaN(e)&&!f(e)&&!Ur(e)}const Xr=Kr;var Zr=L("boolean");const Qr=Zr;var Jr=h("RegExp");const ei=Jr;var ti=h("Error");const ni=ti;function ri(e){return!!e&&e.constructor===TypeError}const ii=ri;function oi(e){for(var t in e)return!1;return!0}const ai=oi;var si=typeof Symbol!==g;function li(e){return si&&Symbol.isSymbol?Symbol.isSymbol(e):"symbol"===typeof e}const ci=li;var ui=h("Arguments");const di=ui;function hi(e){return!!(e&&St(e.nodeName)&&Gn(e.nodeType))}const pi=hi;var fi=typeof document===g?0:document;const mi=fi;function gi(e){return!(!e||!mi||9!==e.nodeType)}const vi=gi;var bi=typeof window===g?0:window;const yi=bi;function xi(e){return!(!yi||!e||e!==e.window)}const wi=xi;var Ci=typeof FormData!==g;function _i(e){return Ci&&e instanceof FormData}const Si=_i;var ki=typeof WeakMap!==g;function Ei(e){return ki&&e instanceof WeakMap}const Oi=Ei;var Ti=typeof WeakSet!==g;function $i(e){return Ti&&e instanceof WeakSet}const Di=$i;function Mi(e){return function(t,n,r){if(t&&j(n)){if(f(t)||St(t))return e(t,n,r);for(var i in t)if(O(t,i)&&n.call(r,t[i],i,t))return i}return-1}}const Fi=Mi;var Ri=Fi(function(e,t,n){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return r;return-1});const Ii=Ri;function Ai(e,t,n,r,i,o,a){if(e===t)return!0;if(e&&t&&!Gn(e)&&!Gn(t)&&!St(e)&&!St(t)){if(ei(e))return n(""+e,""+t,i,o,a);if(Xn(e)||Qr(e))return n(+e,+t,i,o,a);var s,l,c,u=f(e),d=f(t);if(u||d?u&&d:e.constructor===t.constructor)return l=H(e),c=H(t),r&&(s=r(e,t,i)),l.length===c.length&&(qe(s)?Re(l,function(i,o){return i===c[o]&&Ai(e[i],t[c[o]],n,r,u||d?o:i,e,t)}):!!s)}return n(e,t,i,o,a)}const Pi=Ai;function Li(e,t){return e===t}const Ni=Li;function ji(e,t){return Pi(e,t,Ni)}const Bi=ji;function Vi(e,t){var n=H(e),r=H(t);return!r.length||(Le(n,r)?Me(r,function(r){return Ii(n,function(n){return n===r&&Bi(e[n],t[r])})>-1}):Bi(e,t))}const zi=Vi;function Hi(e,t,n){return j(n)?Pi(e,t,function(e,t,r,i,o){var a=n(e,t,r,i,o);return qe(a)?Ni(e,t):!!a},n):Pi(e,t,Ni)}const Wi=Hi;function qi(e){return ue(e)?"null":ci(e)?"symbol":Xn(e)?"date":f(e)?"array":ei(e)?"regexp":ni(e)?"error":typeof e}const Gi=qi;function Yi(e){return""+(Ye(e)?"":e)+a.keyId++}const Ui=Yi;var Ki=Fi(function(e,t,n){for(var r=e.length-1;r>=0;r--)if(t.call(n,e[r],r,e))return r;return-1});const Xi=Ki;function Zi(e){if(xe(e))return e;if(St(e))try{return JSON.parse(e)}catch(t){}return{}}const Qi=Zi;function Ji(e){return Ye(e)?"":JSON.stringify(e)}const eo=Ji;var to=V("entries",2);const no=to;function ro(e,t){return function(n,r){var i,o,a={},s=[],l=this,c=arguments,u=c.length;if(!j(r)){for(o=1;o<u;o++)i=c[o],s.push.apply(s,f(i)?i:[i]);r=0}return A(n,function(i,o){((r?r.call(l,i,o,n):Ii(s,function(e){return e===o})>-1)?e:t)&&(a[o]=i)}),a}}const io=ro;var oo=io(1,0);const ao=oo;var so=io(0,1);const lo=so;function co(e){return ft(e)[0]}const uo=co;function ho(e){var t=ft(e);return t[t.length-1]}const po=ho;function fo(e,t){if(e){if(O(e,t))return!0;var n,r,i,o,a,s,l=Ze(t),c=0,u=l.length;for(a=e;c<u;c++){if(s=!1,n=l[c],o=n?n.match(Ke):"",o?(r=o[1],i=o[2],r?a[r]&&O(a[r],i)&&(s=!0,a=a[r][i]):O(a,i)&&(s=!0,a=a[i])):O(a,n)&&(s=!0,a=a[n]),!s)break;if(c===u-1)return!0}}return!1}const mo=fo;var go=/(.+)?\[(\d+)\]$/;function vo(e,t,n,r,i){if(!e[t]){var o,a,s=t?t.match(go):null;if(n)a=i;else{var l=r?r.match(go):null;a=l&&!l[1]?new Array(Qn(l[2])+1):{}}return s?s[1]?(o=Qn(s[2]),e[s[1]]?n?e[s[1]][o]=a:e[s[1]][o]?a=e[s[1]][o]:e[s[1]][o]=a:(e[s[1]]=new Array(o+1),e[s[1]][o]=a)):e[s[2]]=a:e[t]=a,a}return n&&(e[t]=i),e[t]}function bo(e,t,n){if(e&&Ce(t))if(!e[t]&&!O(e,t)||yo(t)){for(var r=e,i=Ze(t),o=i.length,a=0;a<o;a++)if(!yo(i[a])){var s=a===o-1;r=vo(r,i[a],s,s?null:i[a+1],n)}}else e[t]=n;return e}function yo(e){return"__proto__"===e||"constructor"===e||"prototype"===e}const xo=bo;function wo(e){return function(){return ai(e)}}function Co(e,t,n){var r,i={};return e&&(t&&pn(t)?t=wo(t):j(t)||(t=he(t)),A(e,function(o,a){r=t?t.call(n,o,a,e):o,i[r]?i[r].push(o):i[r]=[o]})),i}const _o=Co;function So(e,t,n){var r=_o(e,t,n||this);return $(r,function(e,t){r[t]=e.length}),r}const ko=So;function Eo(e,t,n){var r,i,o=[],a=arguments;if(a.length<2&&(t=a[0],e=0),r=e|0,i=t|0,r<t)for(n=n|0||1;r<i;r+=n)o.push(r);return o}const Oo=Eo;function To(e,t){if(e&&t){var n=Q.apply(this,[{}].concat(Et(arguments,1))),r=H(n);l(H(e),function(t){Ae(r,t)&&(e[t]=n[t])})}return e}const $o=To;var Do=Wt(function(e,t){return e>t});const Mo=Do;function Fo(e){return(e.split(".")[1]||"").length}const Ro=Fo;function Io(e,t){if(e.repeat)return e.repeat(t);var n=isNaN(t)?[]:new Array(Qn(t));return n.join(e)+(n.length>0?e:"")}const Ao=Io;function Po(e,t){return e.substring(0,t)+"."+e.substring(t,e.length)}const Lo=Po;function No(e){var t=""+e,n=t.match(/^([-+]?)((\d+)|((\d+)?[.](\d+)?))e([-+]{1})([0-9]+)$/);if(n){var r=e<0,i=r?"-":"",o=n[3]||"",a=n[5]||"",s=n[6]||"",l=n[7],c=n[8],u=c-s.length,d=c-o.length,h=c-a.length;return"+"===l?o?i+o+Ao("0",c):u>0?i+a+s+Ao("0",u):i+a+Lo(s,c):o?d>0?i+"0."+Ao("0",Math.abs(d))+o:i+Lo(o,d):h>0?i+"0."+Ao("0",Math.abs(h))+a+s:i+Lo(a,h)+s}return t}const jo=No;function Bo(e,t){var n=jo(e),r=jo(t);return parseInt(n.replace(".",""))*parseInt(r.replace(".",""))/Math.pow(10,Ro(n)+Ro(r))}const Vo=Bo;function zo(e,t){return function(n,r,i){var o=Ct(n),a=o;if(o){r|=0;var s=jo(o),l=s.split("."),c=l[0],u=l[1]||"",d=u.substring(0,r+1),h=c+(d?"."+d:"");if(r>=u.length)return Ct(h);if(h=o,r>0){var p=Math.pow(10,r),f=Vo(h,p);a=t&&h<0&&!1!==i?-Math[e](Math.abs(f))/p:Math[e](f)/p}else a=Math[e](h)}return a}}const Ho=zo;var Wo=Ho("round",!0);const qo=Wo;var Go=Ho("ceil");const Yo=Go;var Uo=Ho("floor");const Ko=Uo;function Xo(e){return Gn(e)?jo(e):""+(Ye(e)?"":e)}const Zo=Xo;function Qo(e,t,n){t|=0;var r=Zo(qo(e,t,n)),i=r.split("."),o=i[0],a=i[1]||"",s=t-a.length;return t?s>0?o+"."+a+Ao("0",s):o+Lo(a,Math.abs(s)):o}const Jo=Qo;function ea(e,t){var n,r,i,o,s,l=Q({},a.commafyOptions,t),c=l.digits,u=Gn(e);return u?(n=(l.ceil?Yo:l.floor?Ko:qo)(e,c),r=jo(c?Jo(n,c):n).split("."),o=r[0],s=r[1],i=o&&n<0,i&&(o=o.substring(1,o.length))):(n=Zo(e).replace(/,/g,""),r=n?[n]:[],o=r[0]),r.length?(i?"-":"")+o.replace(new RegExp("(?=(?!(\\b))(.{"+(l.spaceNumber||3)+"})+$)","g"),l.separator||",")+(s?"."+s:""):n}const ta=ea;var na=xt(Qn);const ra=na;function ia(e,t){var n=Ct(e),r=Ct(t);return Vo(n,r)}const oa=ia;function aa(e,t){var n=jo(e),r=jo(t),i=Math.pow(10,Math.max(Ro(n),Ro(r)));return(oa(e,i)+oa(t,i))/i}const sa=aa;function la(e,t){return sa(Ct(e),Ct(t))}const ca=la;function ua(e,t){var n=Ct(e),r=Ct(t),i=jo(n),o=jo(r),a=Ro(i),s=Ro(o),l=Math.pow(10,Math.max(a,s)),c=a>=s?a:s;return parseFloat(Jo((n*l-r*l)/l,c))}const da=ua;function ha(e,t){var n=jo(e),r=jo(t),i=Ro(n),o=Ro(r),a=o-i,s=a<0,l=Math.pow(10,s?Math.abs(a):a);return oa(n.replace(".","")/r.replace(".",""),s?1/l:l)}const pa=ha;function fa(e,t){return pa(Ct(e),Ct(t))}const ma=fa;function ga(e,t,n){var r=0;return A(e&&e.length>2&&f(e)?e.sort():e,t?j(t)?function(){r=sa(r,t.apply(n,arguments))}:function(e){r=sa(r,tt(e,t))}:function(e){r=sa(r,e)}),r}const va=ga;function ba(e,t,n){return pa(va(e,t,n),Wr(e))}const ya=ba;var xa="first";const wa=xa;var Ca="last";const _a=Ca;function Sa(e){return e.getFullYear()}const ka=Sa;var Ea=864e5;const Oa=Ea;function Ta(e){return e.getMonth()}const $a=Ta;function Da(e){return Xn(e)&&!isNaN(nr(e))}const Ma=Da;function Fa(e,t,n){var r=t&&!isNaN(t)?t:0;if(e=Tr(e),Ma(e)){if(n===wa)return new Date(ka(e),$a(e)+r,1);if(n===_a)return new Date(nr(Fa(e,r+1,wa))-1);if(Gn(n)&&e.setDate(n),r){var i=e.getDate();if(e.setMonth($a(e)+r),i!==e.getDate())return e.setDate(1),new Date(nr(e)-Oa)}}return e}const Ra=Fa;function Ia(e,t,n){var r;if(e=Tr(e),Ma(e)&&(t&&(r=t&&!isNaN(t)?t:0,e.setFullYear(ka(e)+r)),n||!isNaN(n))){if(n===wa)return new Date(ka(e),0,1);if(n===_a)return e.setMonth(11),Ra(e,0,_a);e.setMonth(n)}return e}const Aa=Ia;function Pa(e){var t=e.getMonth();return t<3?1:t<6?2:t<9?3:4}function La(e,t,n){var r,i=t&&!isNaN(t)?3*t:0;return e=Tr(e),Ma(e)?(r=3*(Pa(e)-1)+("last"===n?2:0),e.setMonth(r),Ra(e,i,n)):e}const Na=La;var ja=7*Oa;const Ba=ja;function Va(e,t,n,r){if(e=Tr(e),Ma(e)){var i,o,s=Gn(r),l=nr(e),c=s?r:a.firstDayOfWeek,u=e.getDay(),d=!1;return"first"===n?(d=!0,o=c):"last"===n?(d=!0,o=(c+6)%7):(o=Gn(n)?n:u,d=!0),d&&u!==o&&(i=0,c>u?i=-(7-c+u):c<u&&(i=c-u),l+=o>c?((0===o?7:o)-c+i)*Oa:o<c?(7-c+o+i)*Oa:i*Oa),t&&!isNaN(t)&&(l+=t*Ba),new Date(l)}return e}const za=Va;function Ha(e,t,n){if(e=Tr(e),Ma(e)&&!isNaN(t)){if(e.setDate(e.getDate()+Qn(t)),n===wa)return new Date(ka(e),$a(e),e.getDate());if(n===_a)return new Date(nr(Ha(e,1,wa))-1)}return e}const Wa=Ha;function qa(e,t,n){if(e=Tr(e),Ma(e)&&!isNaN(t)){if(e.setHours(e.getHours()+Qn(t)),n===wa)return new Date(ka(e),$a(e),e.getDate(),e.getHours());if(n===_a)return new Date(nr(qa(e,1,wa))-1)}return e}const Ga=qa;function Ya(e,t,n){if(e=Tr(e),Ma(e)&&!isNaN(t)){if(e.setMinutes(e.getMinutes()+Qn(t)),n===wa)return new Date(ka(e),$a(e),e.getDate(),e.getHours(),e.getMinutes());if(n===_a)return new Date(nr(Ya(e,1,wa))-1)}return e}const Ua=Ya;function Ka(e,t,n){if(e=Tr(e),Ma(e)&&!isNaN(t)){if(e.setSeconds(e.getSeconds()+Qn(t)),n===wa)return new Date(ka(e),$a(e),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());if(n===_a)return new Date(nr(Ka(e,1,wa))-1)}return e}const Xa=Ka;function Za(e){return e.toUpperCase()}const Qa=Za;var Ja=Oe(Oo(0,7),function(e){return[(e+1)%7,(e+2)%7,(e+3)%7]});function es(e,t){var n=new Date(e).getDay();return Ae(Ja[t],n)}function ts(e,t){return function(n,r){var i=Gn(r)?r:a.firstDayOfWeek,o=Tr(n);if(Ma(o)){var s,l=za(o,0,i,i),c=e(l),u=nr(c),d=nr(l),h=d+6*Oa,p=new Date(h),f=za(c,0,i,i),m=nr(f);if(d===m)return 1;if(t(l,p))for(s=nr(e(p));s<h;s+=Oa)if(es(s,i))return 1;var g=m+6*Oa,v=new Date(h),b=1;if(t(f,v))for(b=0,s=u;s<g;s+=Oa)if(es(s,i)){b++;break}return Math.floor((d-m)/Ba)+b}return NaN}}const ns=ts;var rs=ns(function(e){return new Date(e.getFullYear(),0,1)},function(e,t){return e.getFullYear()!==t.getFullYear()});const is=rs;function os(e){return new Date(ka(e),$a(e),e.getDate())}const as=os;function ss(e){return nr(as(e))}const ls=ss;function cs(e){return e=Tr(e),Ma(e)?Math.floor((ls(e)-ls(Aa(e,0,wa)))/Oa)+1:NaN}const us=cs;function ds(e,t,n){var r=Zo(e);return t|=0,n=qe(n)?" ":""+n,r.padStart?r.padStart(t,n):t>r.length?(t-=r.length,t>n.length&&(n+=Ao(n,t/n.length)),n.slice(0,t)+r):r}const hs=ds;function ps(e,t,n,r){var i=t[n];return i?j(i)?i(r,n,e):i[r]:r}var fs=/\[([^\]]+)]|y{2,4}|M{1,2}|d{1,2}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|S{1,3}|Z{1,2}|W{1,2}|D{1,3}|[aAeEq]/g;function ms(e,t,n){if(e){if(e=Tr(e),Ma(e)){var r=n||{},i=t||a.parseDateFormat||a.formatString,o=e.getHours(),s=o<12?"am":"pm",l=Q({},a.parseDateRules||a.formatStringMatchs,r.formats),c=function(t,n){return(""+ka(e)).substring(4-n)},u=function(t,n){return hs($a(e)+1,n,"0")},d=function(t,n){return hs(e.getDate(),n,"0")},h=function(e,t){return hs(o,t,"0")},p=function(e,t){return hs(o<=12?o:o-12,t,"0")},f=function(t,n){return hs(e.getMinutes(),n,"0")},m=function(t,n){return hs(e.getSeconds(),n,"0")},g=function(t,n){return hs(e.getMilliseconds(),n,"0")},v=function(t,n){var r=e.getTimezoneOffset()/60*-1;return ps(e,l,t,(r>=0?"+":"-")+hs(r,2,"0")+(1===n?":":"")+"00")},b=function(t,n){return hs(ps(e,l,t,is(e,Ye(r.firstDay)?a.firstDayOfWeek:r.firstDay)),n,"0")},y=function(t,n){return hs(ps(e,l,t,us(e)),n,"0")},x={yyyy:c,yy:c,MM:u,M:u,dd:d,d,HH:h,H:h,hh:p,h:p,mm:f,m:f,ss:m,s:m,SSS:g,S:g,ZZ:v,Z:v,WW:b,W:b,DDD:y,D:y,a:function(t){return ps(e,l,t,s)},A:function(t){return ps(e,l,t,Qa(s))},e:function(t){return ps(e,l,t,e.getDay())},E:function(t){return ps(e,l,t,e.getDay())},q:function(t){return ps(e,l,t,Math.floor(($a(e)+3)/3))}};return i.replace(fs,function(e,t){return t||(x[e]?x[e](e,e.length):e)})}return"Invalid Date"}return""}const gs=ms;var vs=Date.now||function(){return nr(Dr())};const bs=vs;var ys=function(e,t){if(e){var n=Tr(e,t);return Xn(n)?nr(n):n}return bs()};const xs=ys;function ws(e,t,n){return!(!e||!t)&&(e=gs(e,n),"Invalid Date"!==e&&e===gs(t,n))}const Cs=ws;var _s=ns(function(e){return new Date(e.getFullYear(),e.getMonth(),1)},function(e,t){return e.getMonth()!==t.getMonth()});const Ss=_s;function ks(e,t){return e=Tr(e),Ma(e)?Fr(Aa(e,t))?366:365:NaN}const Es=ks;function Os(e,t){return e=Tr(e),Ma(e)?Math.floor((nr(Na(e,t,_a))-nr(Na(e,t,wa)))/Oa)+1:NaN}const Ts=Os;function $s(e,t){return e=Tr(e),Ma(e)?Math.floor((nr(Ra(e,t,_a))-nr(Ra(e,t,wa)))/Oa)+1:NaN}const Ds=$s;var Ms=[["yyyy",31536e6],["MM",2592e6],["dd",864e5],["HH",36e5],["mm",6e4],["ss",1e3],["S",0]];function Fs(e,t){var n,r,i,o,a,s,l={done:!1,status:!1,time:0};if(e=Tr(e),t=t?Tr(t):Dr(),Ma(e)&&Ma(t)&&(n=nr(e),r=nr(t),n<r))for(o=l.time=r-n,l.done=!0,l.status=!0,s=0,a=Ms.length;s<a;s++)i=Ms[s],o>=i[1]?s===a-1?l[i[0]]=o||0:(l[i[0]]=Math.floor(o/i[1]),o-=l[i[0]]*i[1]):l[i[0]]=0;return l}const Rs=Fs;function Is(e,t,n){var r=Zo(e);return t|=0,n=qe(n)?" ":""+n,r.padEnd?r.padEnd(t,n):t>r.length?(t-=r.length,t>n.length&&(n+=Ao(n,t/n.length)),r+n.slice(0,t)):r}const As=Is;function Ps(e,t){return Ao(Zo(e),t)}const Ls=Ps;function Ns(e){return e&&e.trimRight?e.trimRight():Zo(e).replace(/[\s\uFEFF\xA0]+$/g,"")}const js=Ns;function Bs(e){return e&&e.trimLeft?e.trimLeft():Zo(e).replace(/^[\s\uFEFF\xA0]+/g,"")}const Vs=Bs;function zs(e){return e&&e.trim?e.trim():js(Vs(e))}const Hs=zs;var Ws={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"};const qs=Ws;function Gs(e){var t=new RegExp("(?:"+H(e).join("|")+")","g");return function(n){return Zo(n).replace(t,function(t){return e[t]})}}const Ys=Gs;var Us=Ys(qs);const Ks=Us;var Xs={};A(qs,function(e,t){Xs[qs[t]]=t});var Zs=Ys(Xs);const Qs=Zs;function Js(e,t,n){return e.substring(t,n)}const el=Js;function tl(e){return e.toLowerCase()}const nl=tl;var rl={};function il(e){if(e=Zo(e),rl[e])return rl[e];var t=e.length,n=e.replace(/([-]+)/g,function(e,n,r){return r&&r+n.length<t?"-":""});return t=n.length,n=n.replace(/([A-Z]+)/g,function(e,n,r){var i=n.length;return n=nl(n),r?i>2&&r+i<t?Qa(el(n,0,1))+el(n,1,i-1)+Qa(el(n,i-1,i)):Qa(el(n,0,1))+el(n,1,i):i>1&&r+i<t?el(n,0,i-1)+Qa(el(n,i-1,i)):n}).replace(/(-[a-zA-Z])/g,function(e,t){return Qa(el(t,1,t.length))}),rl[e]=n,n}const ol=il;var al={};function sl(e){if(e=Zo(e),al[e])return al[e];if(/^[A-Z]+$/.test(e))return nl(e);var t=e.replace(/^([a-z])([A-Z]+)([a-z]+)$/,function(e,t,n,r){var i=n.length;return i>1?t+"-"+nl(el(n,0,i-1))+"-"+nl(el(n,i-1,i))+r:nl(t+"-"+n+r)}).replace(/^([A-Z]+)([a-z]+)?$/,function(e,t,n){var r=t.length;return nl(el(t,0,r-1)+"-"+el(t,r-1,r)+(n||""))}).replace(/([a-z]?)([A-Z]+)([a-z]?)/g,function(e,t,n,r,i){var o=n.length;return o>1&&(t&&(t+="-"),r)?(t||"")+nl(el(n,0,o-1))+"-"+nl(el(n,o-1,o))+r:(t||"")+(i?"-":"")+nl(n)+(r||"")});return t=t.replace(/([-]+)/g,function(e,n,r){return r&&r+n.length<t.length?"-":""}),al[e]=t,t}const ll=sl;function cl(e,t,n){var r=Zo(e);return 0===(1===arguments.length?r:r.substring(n)).indexOf(t)}const ul=cl;function dl(e,t,n){var r=Zo(e),i=arguments.length;return i>1&&(i>2?r.substring(0,n).indexOf(t)===n-1:r.indexOf(t)===r.length-1)}const hl=dl;function pl(e,t,n){return Zo(e).replace((n||a).tmplRE||/\{{2}([.\w[\]\s]+)\}{2}/g,function(e,n){return tt(t,Hs(n))})}const fl=pl;function ml(e,t){return fl(e,t,{tmplRE:/\{([.\w[\]\s]+)\}/g})}const gl=ml;function vl(){}const bl=vl;function yl(e,t){var n=Et(arguments,2);return function(){return e.apply(t,Et(arguments).concat(n))}}const xl=yl;function wl(e,t){var n=!1,r=null,i=Et(arguments,2);return function(){return n||(r=e.apply(t,Et(arguments).concat(i)),n=!0),r}}const Cl=wl;function _l(e,t,n){var r=0,i=[];return function(){var o=arguments;r++,r<=e&&i.push(o[0]),r>=e&&t.apply(n,[i].concat(Et(o)))}}const Sl=_l;function kl(e,t,n){var r=0,i=[];return n=n||this,function(){var o=arguments;r++,r<e&&(i.push(o[0]),t.apply(n,[i].concat(Et(o))))}}const El=kl;function Ol(e,t,n){var r=null,i=null,o=!1,a=null,s=Q({leading:!0,trailing:!0},n),l=s.leading,c=s.trailing,u=function(){r=null,i=null},d=function(){o=!0,e.apply(i,r),a=setTimeout(h,t),u()},h=function(){a=null,o||!0!==c?u():d()},p=function(){var e=null!==a;return e&&clearTimeout(a),u(),a=null,o=!1,e},f=function(){r=arguments,i=this,o=!1,null!==a||!0!==l?!0===c&&(a=setTimeout(h,t)):d()};return f.cancel=p,f}const Tl=Ol;function $l(e,t,n){var r=null,i=null,o="boolean"===typeof n?{leading:n,trailing:!n}:Q({leading:!1,trailing:!0},n),a=!1,s=null,l=o.leading,c=o.trailing,u=function(){r=null,i=null},d=function(){a=!0,e.apply(i,r),u()},h=function(){!0===l&&(s=null),a||!0!==c?u():d()},p=function(){var e=null!==s;return e&&clearTimeout(s),u(),s=null,a=!1,e},f=function(){a=!1,r=arguments,i=this,null===s?!0===l&&d():clearTimeout(s),s=setTimeout(h,t)};return f.cancel=p,f}const Dl=$l;function Ml(e,t){var n=Et(arguments,2),r=this;return setTimeout(function(){e.apply(r,n)},t)}const Fl=Ml;var Rl=decodeURIComponent;const Il=Rl;function Al(e){var t,n={};return e&&St(e)&&l(e.split("&"),function(e){t=e.split("="),n[Il(t[0])]=Il(t[1]||"")}),n}const Pl=Al;var Ll=encodeURIComponent;const Nl=Ll;function jl(e,t,n){var r,i=[];return A(e,function(e,o){r=f(e),xe(e)||r?i=i.concat(jl(e,t+"["+o+"]",r)):i.push(Nl(t+"["+(n?"":o)+"]")+"="+Nl(ue(e)?"":e))}),i}function Bl(e){var t,n=[];return A(e,function(e,r){qe(e)||(t=f(e),xe(e)||t?n=n.concat(jl(e,r,t)):n.push(Nl(r)+"="+Nl(ue(e)?"":e)))}),n.join("&").replace(/%20/g,"+")}const Vl=Bl;var zl=typeof location===g?0:location;const Hl=zl;function Wl(){return Hl?Hl.origin||Hl.protocol+"//"+Hl.host:""}const ql=Wl;function Gl(e){return Pl(e.split("?")[1]||"")}function Yl(e){var t,n,r,i,o=""+e;return 0===o.indexOf("//")?o=(Hl?Hl.protocol:"")+o:0===o.indexOf("/")&&(o=ql()+o),r=o.replace(/#.*/,"").match(/(\?.*)/),i={href:o,hash:"",host:"",hostname:"",protocol:"",port:"",search:r&&r[1]&&r[1].length>1?r[1]:""},i.path=o.replace(/^([a-z0-9.+-]*:)\/\//,function(e,t){return i.protocol=t,""}).replace(/^([a-z0-9.+-]*)(:\d+)?\/?/,function(e,t,r){return n=r||"",i.port=n.replace(":",""),i.hostname=t,i.host=t+n,"/"}).replace(/(#.*)/,function(e,t){return i.hash=t.length>1?t:"",""}),t=i.hash.match(/#((.*)\?|(.*))/),i.pathname=i.path.replace(/(\?|#.*).*/,""),i.origin=i.protocol+"//"+i.host,i.hashKey=t&&(t[2]||t[1])||"",i.hashQuery=Gl(i.hash),i.searchQuery=Gl(i.search),i}const Ul=Yl;function Kl(){if(Hl){var e=Hl.pathname,t=zr(e,"/")+1;return ql()+(t===e.length?e:e.substring(0,t))}return""}const Xl=Kl;function Zl(){return Hl?Ul(Hl.href):{}}const Ql=Zl;function Jl(e,t){var n=parseFloat(t),r=Dr(),i=nr(r);switch(e){case"y":return nr(Aa(r,n));case"M":return nr(Ra(r,n));case"d":return nr(Wa(r,n));case"h":case"H":return i+60*n*60*1e3;case"m":return i+60*n*1e3;case"s":return i+1e3*n}return i}function ec(e){return(Xn(e)?e:new Date(e)).toUTCString()}function tc(e,t,n){if(mi){var r,i,o,s,c,u,d=[],h=arguments;return f(e)?d=e:h.length>1?d=[Q({name:e,value:t},n)]:pn(e)&&(d=[e]),d.length>0?(l(d,function(e){r=Q({},a.cookies,e),o=[],r.name&&(i=r.expires,o.push(Nl(r.name)+"="+Nl(pn(r.value)?JSON.stringify(r.value):r.value)),i&&(i=isNaN(i)?i.replace(/^([0-9]+)(y|M|d|H|h|m|s)$/,function(e,t,n){return ec(Jl(n,t))}):/^[0-9]{11,13}$/.test(i)||Xn(i)?ec(i):ec(Jl("d",i)),r.expires=i),l(["expires","path","domain","secure"],function(e){qe(r[e])||o.push(r[e]&&"secure"===e?e:e+"="+r[e])})),mi.cookie=o.join("; ")}),!0):(s={},c=mi.cookie,c&&l(c.split("; "),function(e){u=e.indexOf("="),s[Il(e.substring(0,u))]=Il(e.substring(u+1)||"")}),1===h.length?s[e]:s)}return!1}function nc(e){return Ae(ac(),e)}function rc(e){return tc(e)}function ic(e,t,n){return tc(e,t,n),tc}function oc(e,t){tc(e,"",Q({expires:-1},a.cookies,t))}function ac(){return H(tc())}function sc(){return tc()}Q(tc,{has:nc,set:ic,setItem:ic,get:rc,getItem:rc,remove:oc,removeItem:oc,keys:ac,getJSON:sc});const lc=tc;function cc(e){try{var t="__xe_t";return e.setItem(t,1),e.removeItem(t),!0}catch(n){return!1}}function uc(e){return navigator.userAgent.indexOf(e)>-1}function dc(){var e,t,n,r=!1,i=!1,o=!1,a={isNode:!1,isMobile:r,isPC:!1,isDoc:!!mi};if(yi||typeof process===g){n=uc("Edge"),t=uc("Chrome"),r=/(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent),a.isDoc&&(e=mi.body||mi.documentElement,l(["webkit","khtml","moz","ms","o"],function(t){a["-"+t]=!!e[t+"MatchesSelector"]}));try{i=cc(yi.localStorage)}catch(s){}try{o=cc(yi.sessionStorage)}catch(s){}Q(a,{edge:n,firefox:uc("Firefox"),msie:!n&&a["-ms"],safari:!t&&!n&&uc("Safari"),isMobile:r,isPC:!r,isLocalStorage:i,isSessionStorage:o})}else a.isNode=!0;return a}const hc=dc;Q(ie,{assign:Q,objectEach:$,lastObjectEach:le,objectMap:fe,mapEach:M,lastMapEach:ge,setEach:R,lastSetEach:be,merge:ke,uniq:je,union:He,sortBy:ut,orderBy:lt,shuffle:gt,sample:bt,some:Me,every:Re,slice:Et,filter:Tt,find:Ft,findLast:It,findKey:Dt,includes:Ae,arrayIndexOf:zn,arrayLastIndexOf:Wn,map:Oe,reduce:Pt,copyWithin:Nt,chunk:Bt,zip:Xt,unzip:Ut,zipObject:Qt,flatten:tn,toArray:Ve,includeArrays:Le,pluck:zt,invoke:on,arrayEach:l,lastArrayEach:ae,toArrayTree:wn,toTreeArray:Sn,findTree:$n,eachTree:Fn,mapTree:An,filterTree:Ln,searchTree:Bn,hasOwnProp:O,eqNull:Ye,isNaN:Un,isFinite:Gr,isUndefined:qe,isArray:f,isFloat:Xr,isInteger:Ur,isFunction:j,isBoolean:Qr,isString:St,isNumber:Gn,isRegExp:ei,isObject:pn,isPlainObject:xe,isDate:Xn,isError:ni,isTypeError:ii,isEmpty:ai,isNull:ue,isSymbol:ci,isArguments:di,isElement:pi,isDocument:vi,isWindow:wi,isFormData:Si,isMap:y,isWeakMap:Oi,isSet:C,isWeakSet:Di,isLeapYear:Fr,isMatch:zi,isEqual:Bi,isEqualWith:Wi,getType:Gi,uniqueId:Ui,getSize:Wr,indexOf:Br,lastIndexOf:zr,findIndexOf:Ii,findLastIndexOf:Xi,toStringJSON:Qi,toJSONString:eo,keys:H,values:ft,entries:no,pick:ao,omit:lo,first:uo,last:po,each:A,forOf:Ir,lastForOf:Pr,lastEach:dn,has:mo,get:tt,set:xo,groupBy:_o,countBy:ko,clone:U,clear:mn,remove:bn,range:Oo,destructuring:$o,random:ht,min:Mo,max:Gt,commafy:ta,round:qo,ceil:Yo,floor:Ko,toFixed:Jo,toNumber:Ct,toNumberString:jo,toInteger:ra,add:ca,subtract:da,multiply:oa,divide:ma,sum:va,mean:ya,now:bs,timestamp:xs,isValidDate:Ma,isDateSame:Cs,toStringDate:Tr,toDateString:gs,getWhatYear:Aa,getWhatQuarter:Na,getWhatMonth:Ra,getWhatWeek:za,getWhatDay:Wa,getWhatHours:Ga,getWhatMinutes:Ua,getWhatSeconds:Xa,getYearDay:us,getYearWeek:is,getMonthWeek:Ss,getDayOfYear:Es,getDayOfQuarter:Ts,getDayOfMonth:Ds,getDateDiff:Rs,trim:Hs,trimLeft:Vs,trimRight:js,escape:Ks,unescape:Qs,camelCase:ol,kebabCase:ll,repeat:Ls,padStart:hs,padEnd:As,startsWith:ul,endsWith:hl,template:fl,toFormatString:gl,toString:Zo,toValueString:Zo,noop:bl,property:he,bind:xl,once:Cl,after:Sl,before:El,throttle:Tl,debounce:Dl,delay:Fl,unserialize:Pl,serialize:Vl,parseUrl:Ul,getBaseURL:Xl,locat:Ql,browse:hc,cookie:lc});const pc=ie;var fc=null,mc=null,gc=null,vc="z-index-manage",bc=null,yc="z-index-style",xc="m",wc="s",Cc={m:1e3,s:1e3};function _c(){return fc||"undefined"!==typeof document&&(fc=document),fc}function Sc(){return fc&&!mc&&(mc=fc.body||fc.getElementsByTagName("body")[0]),mc}function kc(){var e=0,t=_c();if(t){var n=Sc();if(n)for(var r=n.getElementsByTagName("*"),i=0;i<r.length;i++){var o=r[i];if(o&&o.style&&1===o.nodeType){var a=o.style.zIndex;a&&/^\d+$/.test(a)&&(e=Math.max(e,Number(a)))}}}return e}function Ec(){if(!bc){var e=_c();e&&(bc=e.getElementById(yc),bc||(bc=e.createElement("style"),bc.id=yc,e.getElementsByTagName("head")[0].appendChild(bc)))}return bc}function Oc(){var e=Ec();if(e){var t="--dom-",n="-z-index";e.innerHTML=":root{"+t+"main"+n+":"+Fc()+";"+t+"sub"+n+":"+Pc()+"}"}}function Tc(){if(!gc){var e=_c();if(e&&(gc=e.getElementById(vc),!gc)){var t=Sc();t&&(gc=e.createElement("div"),gc.id=vc,gc.style.display="none",t.appendChild(gc),Dc(Cc.m),Ic(Cc.s))}}return gc}function $c(e){return function(t){if(t){t=Number(t),Cc[e]=t;var n=Tc();n&&(n.dataset?n.dataset[e]=t+"":n.setAttribute("data-"+e,t+""))}return Oc(),Cc[e]}}var Dc=$c(xc);function Mc(e,t){return function(n){var r,i=Tc();if(i){var o=i.dataset?i.dataset[e]:i.getAttribute("data-"+e);o&&(r=Number(o))}return r||(r=Cc[e]),n?Number(n)<r?t():n:r}}var Fc=Mc(xc,Rc);function Rc(){return Dc(Fc()+1)}var Ic=$c(wc),Ac=Mc(wc,Lc);function Pc(){return Fc()+Ac()}function Lc(){return Ic(Ac()+1),Pc()}var Nc={setCurrent:Dc,getCurrent:Fc,getNext:Rc,setSubCurrent:Ic,getSubCurrent:Pc,getSubNext:Lc,getMax:kc};Oc();const jc=Nc,Bc={size:"",version:1,zIndex:999,resizeInterval:500},Vc={theme:""};function zc(e){const t=e&&"default"!==e?e:"light";if(Vc.theme=t,"undefined"!==typeof document){const e=document.documentElement;e&&e.setAttribute("data-vxe-ui-theme",t)}return i}function Hc(){return Vc.theme}function Wc(e){return e&&(e.zIndex&&jc.setCurrent(e.zIndex),e.theme&&zc(e.theme),pc.merge(Bc,e)),i}function qc(e,t){return arguments.length?pc.get(Bc,e,t):Bc}const Gc={},Yc={};function Uc(e){return pc.isArray(e)?e:e?[e]:[]}function Kc(e){return e&&Object.assign(Yc,e),i}function Xc(e){return arguments.length?pc.get(Yc,e):Yc}function Zc(e,t){const n=Xc(t);return Qc(e,n,t)}function Qc(e,t,n){return pc.isFunction(t)?e("span",{},Uc(t({name:n}))):e("i",{class:t})}const Jc={F2:"F2",F10:"F10",TAB:"Tab",ESCAPE:"Escape",ENTER:"Enter",DELETE:"Delete",BACKSPACE:"Backspace",SPACEBAR:" ",CONTEXT_MENU:"ContextMenu",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",HOME:"Home",END:"End",PROCESS:"Process",A:"A",X:"X",C:"C",V:"V",D:"D",F:"F",H:"H",M:"M",Y:"Y",Z:"Z",R:"R",P:"P"},eu=pc.browse(),tu={" ":"Spacebar",Apps:Jc.CONTEXT_MENU,Del:Jc.DELETE,Up:Jc.ARROW_UP,Down:Jc.ARROW_DOWN,Left:Jc.ARROW_LEFT,Right:Jc.ARROW_RIGHT},nu=eu.firefox?"DOMMouseScroll":"mousewheel",ru=[];function iu(e){const t=e.type===nu;ru.forEach(({type:n,cb:r})=>{e.cancelBubble||(n===e.type||t&&"mousewheel"===n)&&r(e)})}class ou{constructor(e,t,n){Object.defineProperty(this,"$event",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"key",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:""}),this.$event=e,e&&(e.type&&(this.type=e.type),e.key&&(this.key=e.key),e.code&&(this.code=e.code)),Object.assign(this,t),pc.objectEach(n,(e,t)=>{if(pc.isFunction(e)){let n=null,r=!1;Object.defineProperty(this,t,{get(){return r||(r=!0,n=e()),n}})}else this[t]=e})}stopPropagation(){const e=this.$event;e&&e.stopPropagation()}preventDefault(){const e=this.$event;e&&e.preventDefault()}}const au=(e,t,n)=>(e instanceof ou&&(e=e.$event),new ou(e,t,n)),su={on(e,t,n){ru.push({comp:e,type:t,cb:n})},off(e,t){pc.remove(ru,n=>n.comp===e&&n.type===t)},hasKey(e,t){if(!t)return!1;const{key:n}=e;return t=t.toLowerCase(),!!n&&(t===n.toLowerCase()||!(!tu[n]||tu[n].toLowerCase()!==t))}};let lu;eu.isDoc&&(eu.msie||(window.addEventListener("copy",iu,!1),window.addEventListener("cut",iu,!1),window.addEventListener("paste",iu,!1)),document.addEventListener("scroll",iu,!0),document.addEventListener("keydown",iu,!1),document.addEventListener("contextmenu",iu,!1),window.addEventListener("click",iu,!1),window.addEventListener("mousedown",iu,!1),window.addEventListener("blur",iu,!1),window.addEventListener("resize",iu,!1),window.addEventListener(nu,pc.throttle(iu,100,{leading:!0,trailing:!1}),{passive:!0,capture:!1}));const cu=[],uu=500;function du(){cu.length&&(cu.forEach(e=>{e.tarList.forEach(t=>{const{target:n,width:r,heighe:i}=t,o=n.clientWidth,a=n.clientHeight,s=o&&r!==o,l=a&&i!==a;(s||l)&&(t.width=o,t.heighe=a,setTimeout(e.callback))})}),hu())}function hu(){clearTimeout(lu),lu=setTimeout(du,Bc.resizeInterval||uu)}class pu{constructor(e){Object.defineProperty(this,"tarList",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"callback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.callback=e}observe(e){if(e){const{tarList:t}=this;t.some(t=>t.target===e)||t.push({target:e,width:e.clientWidth,heighe:e.clientHeight}),cu.length||hu(),cu.some(e=>e===this)||cu.push(this)}}unobserve(e){pc.remove(cu,t=>t.tarList.some(t=>t.target===e))}disconnect(){pc.remove(cu,e=>e===this)}}const fu={create(e){return window.ResizeObserver?new window.ResizeObserver(e):new pu(e)}};var mu=n(9274),gu=n.n(mu);const vu=gu().extend({data(){return{language:"",langMaps:{}}}}),bu=new vu;let yu=!1,xu={};function wu(e){return e&&e.__esModule?e.default:e}function Cu(e,t){const{langMaps:n,language:r}=bu,{i18n:o}=Bc;if(o)return`${o(e,t)||""}`;if(yu||(n[r]||console.error(`[vxe core] 语言包未安装。Language not installed. https://${i.uiVersion?"vxeui.com":"vxetable.cn"}/#/start/i18n`),yu=!0),!t&&xu[e])return xu[e];const a=pc.toFormatString(pc.get(n[r],e,e),t);return t||(xu[e]=a),a}function _u(e){const{language:t}=bu,n=e||"zh-CN";return t!==n&&(bu.language=n,xu={}),i}function Su(e,t){const{langMaps:n}=bu;return bu.langMaps=Object.assign({},n,{[e]:Object.assign({},wu(t))}),i}function ku(e){const{langMaps:t}=bu;return!!t[e]}function Eu(){const{language:e}=bu;return e}function Ou(e,t){return function(n,r){const i=`[vxe ${t||""}] ${Cu(n,r)}`;return console[e](i),i}}const Tu="3.4.24",$u={create:Ou,warn:Ou("warn",`v${Tu}`),err:Ou("error",`v${Tu}`)},Du={},Mu={mixin(e){return pc.each(e,(e,t)=>{Mu.add(t,e)}),Mu},get(e){return Du[e]||null},add(e,t){if(e&&t){const n=Du[e];n?(pc.each(t,(t,r)=>{pc.eqNull(n[r])||n[r]===t||$u.warn("vxe.error.coverProp",[`Renderer.${e}`,r])}),Object.assign(n,t)):Du[e]=t}return Mu},forEach(e){return pc.objectEach(Du,e),Mu},delete(e){return delete Du[e],Mu}};class Fu{constructor(){Object.defineProperty(this,"store",{enumerable:!0,configurable:!0,writable:!0,value:{}})}mixin(e){return pc.each(e,(e,t)=>{this.add(t,e)}),this}has(e){return!!this.get(e)}get(e){return this.store[e]}add(e,t){const n=this.store[e],r=pc.keys(n);return pc.each(t,(t,n)=>{r.includes(n)&&$u.warn("vxe.error.coverProp",[e,n])}),this.store[e]=n?pc.merge(n,t):t,this}delete(e){delete this.store[e]}forEach(e){pc.objectEach(this.store,e)}}const Ru=Fu,Iu=new Ru;Object.assign(Iu,{_name:"Validators"});class Au{constructor(){Object.defineProperty(this,"store",{enumerable:!0,configurable:!0,writable:!0,value:{}})}mixin(e){return pc.each(e,(e,t)=>{this.add(t,e)}),this}has(e){return!!this.get(e)}get(e){return this.store[e]}add(e,t){const n=this.store[e];pc.isFunction(t)&&($u.warn("vxe.error.delProp",["menus -> callback","menuMethod"]),t={menuMethod:t});const r=pc.keys(n);return pc.each(t,(t,n)=>{r.includes(n)&&$u.warn("vxe.error.coverProp",[e,n])}),this.store[e]=n?pc.merge(n,t):t,this}delete(e){delete this.store[e]}forEach(e){pc.objectEach(this.store,e)}}const Pu=new Au;Object.assign(Pu,{_name:"Menus"});class Lu{constructor(){Object.defineProperty(this,"store",{enumerable:!0,configurable:!0,writable:!0,value:{}})}mixin(e){return pc.each(e,(e,t)=>{this.add(t,e)}),this}has(e){return!!this.get(e)}get(e){return this.store[e]}add(e,t){const n=this.store[e];pc.isFunction(t)&&($u.warn("vxe.error.delProp",["formats -> callback","cellFormatMethod"]),t={cellFormatMethod:t});const r=pc.keys(n);return pc.each(t,(t,n)=>{r.includes(n)&&$u.warn("vxe.error.coverProp",[e,n])}),this.store[e]=n?pc.merge(n,t):t,this}delete(e){delete this.store[e]}forEach(e){pc.objectEach(this.store,e)}}const Nu=new Lu;Object.assign(Nu,{_name:"Formats"});class ju{constructor(){Object.defineProperty(this,"store",{enumerable:!0,configurable:!0,writable:!0,value:{}})}mixin(e){return pc.each(e,(e,t)=>{this.add(t,e)}),this}has(e){return!!this.get(e)}get(e){return this.store[e]}add(e,t){const n=this.store[e];pc.isFunction(t)&&($u.warn("vxe.error.delProp",["commands -> callback","commandMethod"]),t={commandMethod:t});const r=pc.keys(n);return pc.each(t,(t,n)=>{r.includes(n)&&$u.warn("vxe.error.coverProp",[e,n])}),this.store[e]=n?pc.merge(n,t):t,this}delete(e){delete this.store[e]}forEach(e){pc.objectEach(this.store,e)}}const Bu=new ju;Object.assign(Bu,{_name:"Commands"});const Vu={},zu={mixin(e){return pc.each(e,(e,t)=>{zu.add(t,e)}),zu},get(e){return e&&Vu[e]||[]},add(e,t){pc.isFunction(t)&&(t={tableInterceptorMethod:t});const n=t.tableInterceptorMethod;if(n){let t=Vu[e];t||(t=Vu[e]=[]),t.indexOf(n)>-1&&$u.warn("vxe.error.coverProp",["Interceptor",e]),t.push(n)}return zu},delete(e,t){const n=Vu[e];if(n){pc.isFunction(t)&&(t={tableInterceptorMethod:t});const r=t?t.tableInterceptorMethod:null;r?pc.remove(n,e=>e===r):delete Vu[e]}}};let Hu;const Wu={text:"",html:""};function qu(e){if(!Hu){Hu=document.createElement("textarea"),Hu.id="$VxeCopy";const e=Hu.style;e.width="48px",e.height="24px",e.position="fixed",e.zIndex="0",e.left="-500px",e.top="-500px",document.body.appendChild(Hu)}Hu.value=e}const Gu={getStore(){return Wu},setStore(e){Object.assign(Wu,e||{})},copy(e){let t=!1;try{const n=pc.toValueString(e);qu(n),Hu.select(),Hu.setSelectionRange(0,Hu.value.length),t=document.execCommand("copy"),Hu.blur(),Wu.text=n,Wu.html=""}catch(n){}return t},getText(){return Wu.text||""}};function Yu(e,t){let n=!0,r=!1;const i=t||Bc.permissionMethod;if(e&&i){n=!1,r=!0;let t=!1,o=!1;const a=String(e).split("|");for(let e=0;e<a.length;e++){const s=a[e];let l=!0,c=!1;const u=i({code:s});if(pc.isBoolean(u)?l=u:u&&(l=!!u.visible,c=!!u.disabled),c||o||(o=!0,r=c),l&&!t&&(t=!0,n=l),t&&o)break}}const o={code:e,visible:n,disabled:r};return o}const Uu={getCheckInfo(e){return Yu(e)},checkVisible(e){const t=Yu(e);return t.visible},checkDisable(e){const t=Yu(e);return t.disabled}},Ku=gu().extend({inject:{$xeSizeInfo:{default:null}},provide(){return{$xeSizeInfo:{getSize:()=>this.computeSize}}},computed:{computeSize(){const{size:e}=this,t=this.$xeSizeInfo;return e||(t?t.getSize():null)}}}),Xu=gu().extend({computed:{computePermissionInfo(){return Yu(this.permissionCode,this.permissionMethod)}}}),Zu={sizeMixin:Ku,permissionMixin:Xu},Qu=[];function Ju(e,t){return e&&e.install&&-1===Qu.indexOf(e)&&(e.install(ad,t),Qu.push(e)),ad}const ed={};function td(e){return ed[e]||null}function nd(e){e&&e.name&&(ed[e.name]=e,ed[pc.kebabCase(e.name)]=e)}function rd(e){return!!ed[e]}function id(e){const{_e:t}=e;return t()}function od(e,t,n){if(e){const r=`${e}`.match(/(\d+).(\d+).(\d+)/);if(r){const e=pc.toNumber(r[1]);if(n){const i=pc.toNumber(r[2]);return e>=t&&i>=n}return e>=t}}return!1}const ad=Object.assign(i,{renderEmptyElement:id,setTheme:zc,getTheme:Hc,setConfig:Wc,getConfig:qc,setIcon:Kc,getIcon:Xc,renderGlobalIcon:Zc,renderCustomIcon:Qc,setLanguage:_u,hasLanguage:ku,getLanguage:Eu,setI18n:Su,getI18n:Cu,globalEvents:su,GLOBAL_EVENT_KEYS:Jc,createEvent:au,globalResize:fu,renderer:Mu,validators:Iu,menus:Pu,formats:Nu,commands:Bu,interceptor:zu,clipboard:Gu,log:$u,permission:Uu,globalStore:Gc,component:nd,getComponent:td,hasComponent:rd,globalMixins:Zu,getSlotVNs:Uc,checkVersion:od,use:Ju});zc();const{getConfig:sd}=ad;function ld(e){return e&&!1!==e.enabled}function cd(e){return null===e||void 0===e||""===e}function ud(e){const t=e.name,n=pc.lastIndexOf(t,"."),r=t.substring(n+1,t.length).toLowerCase(),i=t.substring(0,n);return{filename:i,type:r}}function dd(){return jc.getNext()}function hd(){return jc.getCurrent()}function pd(e){return e&&e.children&&e.children.length>0}function fd(e,t){if(pc.eqNull(e))return"";const n=sd().translate;return`${n?n(""+e,t):e}`}function md(e,t){return""+(cd(e)?t?sd().emptyCell:"":e)}function gd(e){return""===e||pc.eqNull(e)}function vd(e,t){return e?pc.isFunction(e)?e(t):e:""}function bd(e,t){return pc.eqNull(e)?t:e}const yd="3.24.2";ad.version=yd,ad.tableVersion=yd,ad.setConfig({emptyCell:" ",table:{fit:!0,showHeader:!0,animat:!0,delayHover:250,autoResize:!0,padding:!0,resizeConfig:{},resizableConfig:{dragMode:"auto",showDragTip:!0,isSyncAutoHeight:!0,isSyncAutoWidth:!0,minHeight:18},currentRowConfig:{strict:!0},currentColumnConfig:{strict:!0},radioConfig:{strict:!0},rowDragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},columnDragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},checkboxConfig:{strict:!0},tooltipConfig:{mode:"tooltip",enterable:!0,defaultPlacement:"top"},headerTooltipConfig:{mode:"tooltip",enterable:!0},footerTooltipConfig:{mode:"tooltip",enterable:!0},validConfig:{showErrorMessage:!0,autoClear:!0,autoPos:!0,message:"inline",msgMode:"single",theme:"beautify"},columnConfig:{autoOptions:{isCalcHeader:!0,isCalcBody:!0,isCalcFooter:!0},maxFixedSize:4},cellConfig:{padding:!0},headerCellConfig:{height:"unset"},footerCellConfig:{height:"unset"},menuConfig:{destroyOnClose:!0},customConfig:{allowVisible:!0,allowResizable:!0,allowFixed:!0,allowSort:!0,allowAlign:!0,showSortDragButton:!0,showFooter:!0,placement:"top-right",storeOptions:{visible:!0,resizable:!0,sort:!0,fixed:!0,align:!0,headerAlign:!0,footerAlign:!0,aggFunc:!0},modalOptions:{showMaximize:!0,mask:!0,lockView:!0,resize:!0,escClosable:!0},drawerOptions:{mask:!0,lockView:!0,escClosable:!0,resize:!0}},sortConfig:{showIcon:!0,allowClear:!0,allowBtn:!0,iconLayout:"vertical"},filterConfig:{destroyOnClose:!0,multiple:!0,showIcon:!0,maxHeight:280},floatingFilterConfig:{},aggregateConfig:{padding:!0,placement:"left",rowField:"id",parentField:"_X_ROW_PARENT_KEY",childrenField:"_X_ROW_CHILDREN",mapChildrenField:"_X_ROW_CHILD_LIST",indent:20,showIcon:!0,maxGroupSize:4,showAggFuncTitle:!0},treeConfig:{padding:!0,rowField:"id",parentField:"parentId",childrenField:"children",hasChildField:"hasChild",mapChildrenField:"_X_ROW_CHILD",indent:20,showIcon:!0,showRootLine:!0},expandConfig:{showIcon:!0,mode:"fixed"},editConfig:{showIcon:!0,showAsterisk:!0,autoFocus:!0,isReuseKeep:!0},importConfig:{_typeMaps:{csv:1,html:1,xml:1,txt:1}},exportConfig:{_typeMaps:{csv:1,html:1,xml:1,txt:1}},printConfig:{},mouseConfig:{extension:!0},keyboardConfig:{isAll:!0,isEsc:!0},areaConfig:{autoClear:!0,selectCellByHeader:!0,selectCellByBody:!0,extendDirection:{top:!0,left:!0,bottom:!0,right:!0}},clipConfig:{isCopy:!0,isCut:!0,isPaste:!0},fnrConfig:{isFind:!0,isReplace:!0},virtualXConfig:{gt:24,preSize:0,oSize:0},virtualYConfig:{gt:100,preSize:1,oSize:0},scrollbarConfig:{x:{visible:!0},y:{visible:!0}},undoRedoHistoryConfig:{stackSize:50}},grid:{formConfig:{enabled:!0},pagerConfig:{enabled:!0},toolbarConfig:{enabled:!0},proxyConfig:{enabled:!0,autoLoad:!0,showLoading:!0,showResponseMsg:!0,showActionMsg:!0,response:{list:"list",result:"result",total:"page.total",footerData:"footerData",message:"message"}}},toolbar:{},gantt:{}});const xd="vxe-table-icon-";ad.setIcon({TABLE_SORT_ASC:xd+"caret-up",TABLE_SORT_DESC:xd+"caret-down",TABLE_FILTER_NONE:xd+"funnel",TABLE_FILTER_MATCH:xd+"funnel",TABLE_EDIT:xd+"edit",TABLE_TITLE_PREFIX:xd+"question-circle-fill",TABLE_TITLE_SUFFIX:xd+"question-circle-fill",TABLE_TREE_LOADED:xd+"spinner roll",TABLE_TREE_OPEN:xd+"caret-right rotate90",TABLE_TREE_CLOSE:xd+"caret-right",TABLE_EXPAND_LOADED:xd+"spinner roll",TABLE_EXPAND_OPEN:xd+"arrow-right rotate90",TABLE_EXPAND_CLOSE:xd+"arrow-right",TABLE_CHECKBOX_CHECKED:xd+"checkbox-checked-fill",TABLE_CHECKBOX_UNCHECKED:xd+"checkbox-unchecked",TABLE_CHECKBOX_INDETERMINATE:xd+"checkbox-indeterminate-fill",TABLE_CHECKBOX_DISABLED_UNCHECKED:xd+"checkbox-unchecked-fill",TABLE_RADIO_CHECKED:xd+"radio-checked-fill",TABLE_RADIO_UNCHECKED:xd+"radio-unchecked",TABLE_RADIO_DISABLED_UNCHECKED:xd+"radio-unchecked-fill",TABLE_CUSTOM_SORT:xd+"drag-handle",TABLE_CUSTOM_FIXED_LEFT:xd+"fixed-left",TABLE_CUSTOM_FIXED_RIGHT:xd+"fixed-right",TABLE_CUSTOM_ALIGN_LEFT:xd+"align-left",TABLE_CUSTOM_ALIGN_CENTER:xd+"align-center",TABLE_CUSTOM_ALIGN_RIGHT:xd+"align-right",TABLE_CUSTOM_MOVE_UP:xd+"arrows-up",TABLE_CUSTOM_MOVE_DN:xd+"arrows-down",TABLE_CUSTOM_PUT_TOP:xd+"top",TABLE_CUSTOM_PUT_BOTTOM:xd+"bottom",TABLE_MENU_OPTIONS:xd+"arrow-right",TABLE_MENU_OPTION_LOADING:xd+"repeat roll",TABLE_DRAG_ROW:xd+"drag-handle",TABLE_DRAG_COLUMN:xd+"drag-handle",TABLE_DRAG_STATUS_ROW:xd+"sort",TABLE_DRAG_STATUS_SUB_ROW:xd+"add-sub",TABLE_DRAG_STATUS_AGG_GROUP:xd+"grouping",TABLE_DRAG_STATUS_AGG_VALUES:xd+"values",TABLE_DRAG_STATUS_COLUMN:xd+"swap",TABLE_DRAG_DISABLED:xd+"no-drop",TABLE_ROW_GROUP_OPEN:xd+"arrow-right rotate90",TABLE_ROW_GROUP_CLOSE:xd+"arrow-right",TABLE_AGGREGATE_GROUPING:xd+"grouping",TABLE_AGGREGATE_VALUES:xd+"values",TABLE_AGGREGATE_SORT:xd+"drag-handle",TABLE_AGGREGATE_DELETE:xd+"close",TOOLBAR_TOOLS_REFRESH:xd+"repeat",TOOLBAR_TOOLS_REFRESH_LOADING:xd+"repeat roll",TOOLBAR_TOOLS_IMPORT:xd+"upload",TOOLBAR_TOOLS_EXPORT:xd+"download",TOOLBAR_TOOLS_PRINT:xd+"print",TOOLBAR_TOOLS_FULLSCREEN:xd+"fullscreen",TOOLBAR_TOOLS_MINIMIZE:xd+"minimize",TOOLBAR_TOOLS_CUSTOM:xd+"setting",TOOLBAR_TOOLS_FIXED_LEFT:xd+"fixed-left",TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE:xd+"fixed-left-fill",TOOLBAR_TOOLS_FIXED_RIGHT:xd+"fixed-right",TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE:xd+"fixed-right-fill"});const wd=ad.setTheme,Cd=ad.getTheme,_d=ad.setConfig,Sd=ad.getConfig,kd=ad.setIcon,Ed=ad.getIcon,Od=ad.setLanguage,Td=ad.setI18n,$d=ad.getI18n,Dd=ad.globalEvents,Md=ad.globalResize,Fd=ad.renderer,Rd=ad.validators,Id=ad.menus,Ad=ad.formats,Pd=ad.commands,Ld=ad.interceptor,Nd=ad.clipboard,jd=ad.log,Bd=ad.use,Vd=e=>ad.setConfig(e);ad.setup=Vd;const zd=e=>ad.setConfig(e);ad.config=zd;const Hd=(e,t)=>ad.getI18n(e,t);ad.t=Hd;const Wd=(e,t)=>fd(e,t);ad._t=Wd;const qd=ad,Gd=e=>ad.saveFile(e),Yd=e=>ad.readFile(e),Ud=e=>ad.print(e),Kd={get(e){return ad.modal.get(e)},close(e){return ad.modal.close(e)},open(e){return ad.modal.open(e)},alert(e,t,n){return ad.modal.alert(e,t,n)},confirm(e,t,n){return ad.modal.confirm(e,t,n)},message(e,t){return ad.modal.message(e,t)},notification(e,t,n){return ad.modal.notification(e,t,n)}};const Xd={};let Zd;function Qd(){return Zd||(Zd=new Image,Zd.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="),Zd}function Jd(){return Zd||Qd()}function eh(e,t){return e&&(pc.isFunction(e)?e(t):e)||""}function th(e){return Xd[e]||(Xd[e]=new RegExp(`(?:^|\\s)${e}(?!\\S)`,"g")),Xd[e]}function nh(e){return e&&/^\d+(\.\d+)?(px)?$/.test(e)}function rh(e){return e&&/^\d+(\.\d+)?%$/.test(e)}function ih(e,t){return!!e&&(e.classList?e.classList.contains(t):!!(e.className&&e.className.match&&e.className.match(th(t))))}function oh(e,t){e&&ih(e,t)&&(e.className=e.className.replace(th(t),""))}function ah(e,t){e&&!ih(e,t)&&(oh(e,t),e.className=`${e.className} ${t}`)}function sh(e){return e.ctrlKey||e.metaKey}function lh(e,t="px"){return pc.isNumber(e)||/^\d+$/.test(`${e}`)?`${e}${t}`:`${e||""}`}function ch(e,t){return e?e.querySelector(t):null}function uh(){const e=document.documentElement,t=document.body;return{scrollTop:e.scrollTop||t.scrollTop,scrollLeft:e.scrollLeft||t.scrollLeft,visibleHeight:e.clientHeight||t.clientHeight,visibleWidth:e.clientWidth||t.clientWidth}}function dh(e){return e?e.offsetHeight:0}function hh(e){if(e){const t=getComputedStyle(e),n=pc.toNumber(t.paddingTop),r=pc.toNumber(t.paddingBottom);return n+r}return 0}function ph(e,t){e&&(e.scrollTop=t)}function fh(e,t){e&&(e.scrollLeft=t)}function mh(e,t){const n="html"===t.type?e.innerText:e.textContent;e.getAttribute("title")!==n&&e.setAttribute("title",n)}function gh(e,t,n){let r=e;if(!t||!t.length)return!1;const[i,o,a]=t;while(r){if(i===r||o&&r===o||a&&r===a)return!0;if(n&&r===n)return!1;r=r.parentElement}return!1}function vh(e,t,n,r){let i,o=e.target.shadowRoot&&e.composed&&e.composedPath()[0]||e.target;while(o&&o.nodeType&&o!==document){if(n&&ih(o,n)&&(!r||r(o)))i=o;else if(o===t)return{flag:!n||!!i,container:t,targetElem:i};o=o.parentNode}return{flag:!1}}function bh(e){const t=e.getBoundingClientRect(),n=t.top,r=t.left,{scrollTop:i,scrollLeft:o,visibleHeight:a,visibleWidth:s}=uh();return{boundingTop:n,top:i+n,boundingLeft:r,left:o+r,visibleHeight:a,visibleWidth:s}}function yh(e){const t=e?e.tagName:"";return t&&["input","textarea"].includes(t.toLowerCase())}function xh(e){return!!e&&ih(e,"vxe-reusekeep-contro")}function wh(e){return!!yh(e)&&!xh(e)}const Ch="scrollIntoViewIfNeeded",_h="scrollIntoView";function Sh(e){e&&(e[Ch]?e[Ch]():e[_h]&&e[_h]())}function kh(e,t){e&&e.dispatchEvent(new Event(t))}let Eh,Oh;function Th(e,t){Eh&&cancelAnimationFrame(Eh),Eh=requestAnimationFrame(()=>{t(e),Eh=null})}function $h(e,t){Oh&&cancelAnimationFrame(Oh),Oh=requestAnimationFrame(()=>{const n=e;t(n),Oh=null})}function Dh(e,t,n){const{defaultTop:r,defaultLeft:i,placement:o,defaultPlacement:a,teleportTo:s,marginSize:l,isMinWidth:c}=Object.assign({teleportTo:!1,marginSize:18,isMinWidth:!0},n);let u="bottom",d="",h="",p=0,f="",m="";const g={};if(t&&e){const n=document.body,v=Mh(t);if(v){const b=e.offsetWidth,y=e.offsetHeight,x=t.offsetWidth,w=t.offsetHeight,C=v.getBoundingClientRect(),_=t.getBoundingClientRect(),S=e.getBoundingClientRect(),k=n.clientHeight,E=n.clientWidth,O=C.left,T=C.top,$=S.left,D=S.top;f=e.offsetWidth,s?(p=i||$-(x-b)/2,d=r||D+y,"top"===o?(u="top",d=D-w):o||("top"===a?(u="top",r||(d=D-w),d<l&&(u="bottom",d=D+y),d+w+l>k&&(u="top",d=D-w)):(d+w+l>k&&(u="top",d=D-w),d<l&&(u="bottom",d=D+y))),p+x+l>E&&(p-=p+x+l-E),p<l&&(p=l),d-=T,p-=O):("top"===o?(u="top",h=y):o||(d=y,D+y+w+l>k&&D-y-w>l&&(u="top",d="",h=y)),_.left+_.width+l>E&&(p=-(_.left+_.width+l-E))),pc.isNumber(d)&&(g.top=lh(d)),pc.isNumber(h)&&(g.bottom=lh(h)),pc.isNumber(p)&&(g.left=lh(p)),c&&pc.isNumber(f)&&(g.minWidth=lh(f)),p===$?b<=x&&(m=b/2):p<$&&(m=p+x>$+b?$-p+b/2:$-p+(x-($-p))/2)}}return{top:d||0,bottom:h||0,left:p||0,arrowLeft:m||0,style:g,placement:u}}function Mh(e){if(!e)return null;const t=document.body,n=e.parentElement;return(n===t?document.documentElement:n)||null}const{log:Fh}=ad,Rh="table v3.24.2";function Ih(e){const t=ad.uiVersion?`ui v${ad.uiVersion}`:"",n=ad.ganttVersion?`gantt v${ad.ganttVersion}`:"",r=ad.designVersion?`design v${ad.designVersion}`:"",i=[t,Rh,n,r].filter(e=>e).join(" ");return{warnLog:Fh.create("warn",i+"] ["+e),errLog:Fh.create("error",i+"] ["+e)}}Fh.create("warn",Rh),Fh.create("error",Rh);const{warnLog:Ah,errLog:Ph}=Ih("table"),{getI18n:Lh,formats:Nh,renderer:jh}=ad;class Bh{constructor(e,t,{renderHeader:n,renderCell:r,renderFooter:i,renderData:o}={}){const a=e,s=e.$xeGrid,l=e.$xeGantt,c=s||l,{type:u,field:d,width:h,visible:p,fixed:f,align:m,headerAlign:g,footerAlign:v,aggFunc:b,formatter:y,filterMultiple:x,cellRender:w,editRender:C,filterRender:_}=t,S=t.colId||pc.uniqueId("col_"),k=s?s.computeProxyOpts:null,E=!pc.isBoolean(p)||p,O=h&&nh(h)&&"auto"!==h?Math.max(0,pc.toInteger(h)):0,T=e.computeRendererOpts,$=_&&ld(_)&&_.name?T[_.name]||jh.get(_.name):null,D=$?$.createTableFilterOptions:null,M=yp(t.filters,S),F=["seq","checkbox","radio","expand","html"];if(u&&-1===F.indexOf(u)&&Ah("vxe.error.errProp",[`type=${u}`,F.join(", ")]),(pc.isBoolean(w)||w&&!pc.isObject(w))&&Ah("vxe.error.errProp",[`column.cell-render=${w}`,"column.cell-render={}"]),(pc.isBoolean(C)||C&&!pc.isObject(C))&&Ah("vxe.error.errProp",[`column.edit-render=${C}`,"column.edit-render={}"]),"expand"===u){const{treeConfig:t}=a;t&&(e.treeOpts.showLine||e.treeOpts.line)&&Ph("vxe.error.errConflicts",["tree-config.line","column.type=expand"])}if(t.remoteSort&&Ah("vxe.error.delProp",["column.remote-sort","sort-config.remote"]),t.sortMethod&&Ah("vxe.error.delProp",["column.sort-method","sort-config.sortMethod"]),y)if(pc.isString(y)){const e=Nh.get(y)||pc[y];e&&pc.isFunction(e.tableCellFormatMethod||e.cellFormatMethod)||Ph("vxe.error.notFormats",[y])}else if(pc.isArray(y)){const e=Nh.get(y[0])||pc[y[0]];e&&pc.isFunction(e.tableCellFormatMethod||e.cellFormatMethod)||Ph("vxe.error.notFormats",[y[0]])}b&&(e.handlePivotTableAggData||!0===b||Ph("vxe.error.errProp",[`column.agg-func=${b}`,"column.agg-func=true"])),d&&C&&(C.startField&&`${C.startField}`.indexOf(d)>=0&&Ph("vxe.error.modelConflicts",[`field=${d}`,`edit-render.startField=${C.startField}`]),C.endField&&`${C.endField}`.indexOf(d)>=0&&Ph("vxe.error.modelConflicts",[`field=${d}`,`edit-render.endField=${C.endField}`])),Object.assign(this,{type:t.type,property:t.field,field:d,title:t.title,width:t.width,minWidth:t.minWidth,maxWidth:t.maxWidth,resizable:t.resizable,fixed:f,align:m,headerAlign:g,footerAlign:v,showOverflow:t.showOverflow,showHeaderOverflow:t.showHeaderOverflow,showFooterOverflow:t.showFooterOverflow,className:t.className,headerClassName:t.headerClassName,footerClassName:t.footerClassName,formatter:y,headerFormatter:t.headerFormatter,footerFormatter:t.footerFormatter,padding:t.padding,verticalAlign:t.verticalAlign,sortable:t.sortable,sortBy:t.sortBy,sortType:t.sortType,sortMethod:t.sortMethod,remoteSort:t.remoteSort,filters:M,filterMultiple:!pc.isBoolean(x)||x,filterMethod:t.filterMethod,filterResetMethod:t.filterResetMethod,filterRecoverMethod:t.filterRecoverMethod,filterRender:_,floatingFilters:t.floatingFilters,rules:t.rules,rowGroupNode:t.rowGroupNode,treeNode:t.treeNode,dragSort:t.dragSort,rowResize:t.rowResize,cellType:t.cellType,cellRender:t.cellRender,editRender:C,contentRender:t.contentRender,headerExportMethod:t.headerExportMethod,exportMethod:t.exportMethod,footerExportMethod:t.footerExportMethod,titleHelp:t.titleHelp,titlePrefix:t.titlePrefix,titleSuffix:t.titleSuffix,aggFunc:b,copyMethod:t.copyMethod,cutMethod:t.cutMethod,pasteMethod:t.pasteMethod,params:t.params,id:S,parentId:null,visible:E,defaultParentId:null,halfVisible:!1,defaultVisible:E,defaultFixed:f,defaultAlign:m,defaultHeaderAlign:g,defaultFooterAlign:v,defaultAggFunc:t.aggFunc,checked:!1,halfChecked:!1,disabled:!1,level:1,rowSpan:1,colSpan:1,order:null,sortTime:0,sortNumber:0,renderSortNumber:0,renderAggFn:"",renderAggDigits:null,renderAggFormat:null,renderAlign:"",renderHeaderAlign:"",renderFooterAlign:"",renderFixed:"",renderVisible:!1,renderWidth:O,renderHeight:0,renderResizeWidth:0,renderAutoWidth:0,resizeWidth:0,renderLeft:0,renderArgs:[],model:{},renderHeader:n||t.renderHeader,renderCell:r||t.renderCell,renderFooter:i||t.renderFooter,renderData:o,slots:t.slots}),!D||M&&M.length||(this.filters=yp(D({$table:e,column:this}),S)),c&&k&&k.beforeColumn&&k.beforeColumn({$table:e,$grid:s,$gantt:l,column:this})}getTitle(){return fd(this.title||("seq"===this.type?Lh("vxe.table.seqTitle"):""))}getKey(){const{type:e,field:t}=this;return t||(e?`type=${e}`:null)}update(e,t){"filters"!==e&&("field"===e&&(this.property=t),this[e]=t)}}const{warnLog:Vh,errLog:zh}=Ih("table");function Hh(){return{tZindex:0,currKeyField:"",isCurrDeepKey:!1,elemStore:{},scrollXStore:{preloadSize:0,offsetSize:0,visibleSize:0,visibleStartIndex:0,visibleEndIndex:0,startIndex:0,endIndex:0},scrollYStore:{preloadSize:0,offsetSize:0,visibleSize:0,visibleStartIndex:0,visibleEndIndex:0,startIndex:0,endIndex:0},tableWidth:0,tableHeight:0,customHeight:0,customMinHeight:0,customMaxHeight:0,hoverRow:null,hoverCol:null,currentRow:null,currentCol:null,lastScrollLeft:0,lastScrollTop:0,radioReserveRow:null,checkboxReserveRowMap:{},rowExpandedReserveRowMap:{},treeExpandedReserveRowMap:{},treeIndeterminateRowMaps:{},tableFullData:[],afterFullData:[],afterTreeFullData:[],afterGroupFullData:[],afterFullRowMaps:{},tableFullTreeData:[],tableFullGroupData:[],tableSynchData:[],tableSourceData:[],collectColumn:[],tableFullColumn:[],visibleColumn:[],fullAllDataRowIdData:{},fullDataRowIdData:{},visibleDataRowIdData:{},keepUpdateFieldMaps:{},headerFullDataColData:{},footerFullDataRowData:{},sourceDataRowIdData:{},fullColumnIdData:{},fullColumnFieldData:{},fullCellHeightMaps:{},fullCellStoreMaps:{},mergeHeaderList:[],mergeHeaderMaps:{},mergeHeaderCellMaps:{},mergeHeaderRowMaps:{},mergeHeaderColMaps:{},mergeBodyList:[],mergeBodyMaps:{},mergeBodyCellMaps:{},mergeBodyRowMaps:{},mergeBodyColMaps:{},mergeFooterList:[],mergeFooterMaps:{},mergeFooterCellMaps:{},mergeFooterRowMaps:{},mergeFooterColMaps:{},rowExpandedMaps:{},rowExpandLazyLoadedMaps:{},rowGroupExpandedMaps:{},treeExpandedMaps:{},treeExpandLazyLoadedMaps:{},selectCheckboxMaps:{},pendingRowMaps:{},insertRowMaps:{},removeRowMaps:{},cvCacheMaps:{},tHeaderHeight:0,tBodyHeight:0,tFooterHeight:0,stackHistoryStore:{undoStacks:[],redoStacks:[]},teleportToWrapperElem:null,popupToWrapperElem:null,customPopupToElem:null,lastSTime:0,inited:!1,tooltipTimeout:null,initStatus:!1,isActivated:!1,rceDelay:0}}function Wh(){return{updateColFlag:0,staticColumns:[],tableGroupColumn:[],tableColumn:[],tableData:[],scrollXLoad:!1,scrollYLoad:!1,overflowY:!0,overflowX:!1,scrollbarWidth:0,scrollbarHeight:0,rowHeight:0,parentHeight:0,isGroup:!1,isAllOverflow:!1,isAllSelected:!1,isIndeterminate:!1,selectRadioRow:null,footerTableData:[],rowGroupColumn:null,expandColumn:null,checkboxColumn:null,radioColumn:null,treeNodeColumn:null,hasFixedColumn:!1,upDataFlag:0,reColumnFlag:0,initStore:{filter:!1,import:!1,export:!1,custom:!1},customStore:{btnEl:null,isAll:!1,isIndeterminate:!1,activeBtn:!1,activeWrapper:!1,visible:!1,maxHeight:null,defPopupStyle:{},panePopupStyle:{},oldSortMaps:{},oldFixedMaps:{},oldVisibleMaps:{}},customColumnList:[],filterStore:{targetEl:null,isAllSelected:!1,isIndeterminate:!1,style:null,column:null,visible:!1,maxHeight:null},columnStore:{leftList:[],centerList:[],rightList:[],resizeList:[],pxList:[],pxMinList:[],autoMinList:[],scaleList:[],scaleMinList:[],autoList:[],remainList:[]},ctxMenuStore:{selected:null,visible:!1,showChild:!1,selectChild:null,list:[],style:null},editStore:{indexs:{columns:[]},titles:{columns:[]},selected:{row:null,column:null},copyed:{cut:!1,rows:[],columns:[]},actived:{row:null,column:null},focused:{row:null,column:null}},tooltipStore:{row:null,column:null,content:"",visible:!1,type:null,currOpts:{}},validStore:{visible:!1},validErrorMaps:{},importStore:{inited:!1,file:null,type:"",modeList:[],typeList:[],filename:"",visible:!1},importParams:{mode:"",types:null,message:!0},exportStore:{inited:!1,name:"",modeList:[],typeList:[],columns:[],isPrint:!1,hasFooter:!1,hasMerge:!1,hasTree:!1,hasRowGroup:!1,hasColgroup:!1,visible:!1},exportParams:{filename:"",sheetName:"",mode:"",type:"",isColgroup:!1,isMerge:!1,isTreeAllExpanded:!1,isRowGroupAllExpanded:!1,useStyle:!1,original:!1,message:!0,isHeader:!1,isTitle:!1,isFooter:!1},visiblwRowsFlag:1,isRowGroupStatus:!1,rowGroupList:[],aggHandleFields:[],aggHandleAggColumns:[],rowGroupExpandedFlag:1,rowExpandedFlag:1,treeExpandedFlag:1,updateCheckboxFlag:1,pendingRowFlag:1,insertRowFlag:1,removeRowFlag:1,mergeHeadFlag:1,mergeBodyFlag:1,mergeFootFlag:1,rowHeightStore:{xlarge:54,large:52,default:48,medium:44,small:40,mini:36},scrollVMLoading:!1,scrollYHeight:0,scrollYTop:0,isScrollYBig:!1,scrollXLeft:0,scrollXWidth:0,isScrollXBig:!1,lazScrollLoading:!1,rowExpandHeightFlag:1,calcCellHeightFlag:1,resizeHeightFlag:1,resizeWidthFlag:1,isCustomStatus:!1,isCustomDragStatus:!0,ctPopupFlag:1,isCrossDragRow:!1,dragRow:null,isCrossDragCol:!1,dragCol:null,dragTipText:"",isDragResize:!1,isRowLoading:!1,isColLoading:!1,currColFlag:1}}const qh="__max";function Gh(e,t){if(t||!e[qh]){let t=0;for(const n in e){const r=e[n];n!==qh&&pc.isNumber(r)&&r>t&&(t=r)}return e[qh]=t,t}return e[qh]}const Yh=(e,t)=>{const n=[];return e.forEach(e=>{e.parentId=t?t.id:null,e.visible&&(e.children&&e.children.length&&e.children.some(e=>e.visible)?(n.push(e),n.push(...Yh(e.children,e))):n.push(e))}),n},Uh=e=>{let t=1;const n=(e,r)=>{if(r&&(e.level=r.level+1,t<e.level&&(t=e.level)),e.children&&e.children.length&&e.children.some(e=>e.visible)){let t=0;e.children.forEach(r=>{r.visible&&(n(r,e),t+=r.colSpan)}),e.colSpan=t}else e.colSpan=1};e.forEach(e=>{e.level=1,n(e)});const r=[];for(let o=0;o<t;o++)r.push([]);const i=Yh(e);return i.forEach(e=>{e.children&&e.children.length&&e.children.some(e=>e.visible)?e.rowSpan=1:e.rowSpan=t-e.level+1,r[e.level-1].push(e)}),r};function Kh(e){const t=e.length,n=e[0].reduce((e,t)=>e+t.colSpan,0),r=[],i=[];for(let o=0;o<t;o++){const e=[],t=[];for(let r=0;r<n;r++)e.push(!1),t.push("");r.push(e),i.push(t)}for(let o=0;o<t;o++){let t=0;for(const a of e[o]){const{colSpan:e,rowSpan:s}=a;let l=-1;for(let i=t;i<=n-e;i++){let t=!0;for(let n=0;n<e;n++)if(r[o][i+n]){t=!1;break}if(t){l=i;break}}if(-1===l){for(let t=0;t<=n-e;t++){let n=!0;for(let i=0;i<e;i++)if(r[o][t+i]){n=!1;break}if(n){l=t;break}}if(-1===l)break}for(let t=o;t<o+s;t++)for(let n=l;n<l+e;n++)r[t][n]=!0,i[t][n]=a;t=l+e}}return i}function Xh(e,t,n){const r=e;return t||n?(r.intoRunScroll=!1,r.inVirtualScroll=!1,r.inWheelScroll=!1,r.inHeaderScroll=!1,r.inBodyScroll=!1,r.inFooterScroll=!1,r.scrollRenderType="",e.scrollTo(t,n)):e.clearScroll()}function Zh(e){return e.map((e,t)=>t%2===0?Number(e)+1:".").join("")}function Qh(){return pc.uniqueId("row_")}function Jh(e,t,n){const{createKeyMethod:r}=e;return r?""+r({row:t,keyField:n}):Qh()}function ep(e){return e.indexOf(".")>-1}function tp(e){const t=e,{currKeyField:n}=t;return n}function np(e,t){const n=e,{isCurrDeepKey:r,currKeyField:i}=n;return t?op((r?ap:lp)(t,i)):""}function rp(e){const t=e,{isCurrDeepKey:n,currKeyField:r}=t,i=e.computeRowOpts,o=n?sp:cp;return{rowKey:r,handleUpdateRowId(e){return e?o(i,e,r):""}}}function ip(e){const t=e,{isCurrDeepKey:n,currKeyField:r}=t,i=n?ap:lp;return{rowKey:r,handleGetRowId(e){return e?op(i(e,r)):""}}}function op(e){return pc.eqNull(e)?"":encodeURIComponent(e)}function ap(e,t){return pc.get(e,t)}function sp(e,t,n){let r=op(ap(t,n));if(gd(r)){const i=Jh(e,t,n);r=""+i,pc.set(t,n,r)}return r}function lp(e,t){return e[t]}function cp(e,t,n){let r=op(lp(t,n));if(gd(r)){const i=Jh(e,t,n);r=""+i,t[n]=i}return r}function up(e){if(e){const t=getComputedStyle(e),n=pc.toNumber(t.paddingLeft),r=pc.toNumber(t.paddingRight);return n+r}return 0}function dp(e){if(e){const t=getComputedStyle(e),n=pc.toNumber(t.marginLeft),r=pc.toNumber(t.marginRight);return e.offsetWidth+n+r}return 0}function hp(e){return"unset"===e?0:e||0}function pp(e,t){return t?pc.isString(t)||pc.isNumber(t)?e.getColumnByField(`${t}`):t:null}function fp(e,t){if(t){const n=pc.isString(t)||pc.isNumber(t)?t:np(e,t);return e.getRowById(n)}return null}function mp(e,t,n,r){const{height:i,minHeight:o,maxHeight:a}=t;let s=e.resizeHeight||i||n.height||e.height||r;return a&&a<=s&&(s=a),o&&o>=s&&(s=o),s}function gp(e){const t=e.$xeTable,n=t,{staticColumns:r}=n,{$el:i,$xeColumn:o,columnConfig:a}=e,s=o?o.columnConfig:null;s?("vxe-table-column"===o.$options._componentTag?zh("vxe.error.groupTag",[`<vxe-table-colgroup title=${o.title} ...>`,`<vxe-table-column title=${o.title} ...>`]):"vxe-column"===o.$options._componentTag&&Vh("vxe.error.groupTag",[`<vxe-colgroup title=${o.title} ...>`,`<vxe-column title=${o.title} ...>`]),s.children||(s.children=[]),a.defaultParentId=s.id,s.children.splice(pc.arrayIndexOf(o.$el.children,i),0,a)):r.splice(pc.arrayIndexOf(t.$refs.hideColumn.children,i),0,a)}function vp(e){const t=e.$xeTable,n=t,{staticColumns:r}=n,{columnConfig:i}=e,o=pc.findTree(r,e=>e===i);o&&o.items.splice(o.index,1)}function bp(e,t){const n=e,{fullColumnIdData:r}=n;if(!t)return null;let i=t.parentId;while(r[i]){const e=r[i].column;if(i=e.parentId,!i)return e}return t}function yp(e,t){return e?pc.isArray(e)?e.map(({label:e,value:n,data:r,resetValue:i,checked:o})=>({label:e,value:n,data:r,resetValue:i,checked:!!o,_checked:!!o,_colId:t})):[]:e}function xp(e){const{$table:t,column:n,cell:r}=e,i=t,{elemStore:o}=i,a=t.computeResizableOpts,s=t.computeColumnOpts,{maxWidth:l}=a,c=n.maxWidth||s.maxWidth;if(l){const t=pc.isFunction(l)?l(e):l;if("auto"!==t)return Math.max(1,pc.toNumber(t))}const u=pc.floor(1.8*(pc.toNumber(getComputedStyle(r).fontSize)||14)),d=up(r)+up(ch(r,".vxe-cell")),h=u+d;if(c){const e=Ep(o["main-body-scroll"]);if(e){if(rh(c)){const t=e.clientWidth-1,n=t/100;return Math.max(h,Math.floor(pc.toInteger(c)*n))}if(nh(c))return Math.max(h,pc.toInteger(c))}}return-1}function wp(e){const{$table:t,column:n,cell:r}=e,i=t,o=t,a=t.computeResizableOpts,s=t.computeColumnOpts,{minWidth:l}=a;if(l){const t=pc.isFunction(l)?l(e):l;if("auto"!==t)return Math.max(1,pc.toNumber(t))}const{elemStore:c}=o,{showHeaderOverflow:u}=i,{showHeaderOverflow:d}=n,h=n.minWidth||s.minWidth,p=pc.isUndefined(d)||pc.isNull(d)?u:d,f="ellipsis"===p,m="title"===p,g=!0===p||"tooltip"===p,v=m||g||f,b=pc.floor(1.8*(pc.toNumber(getComputedStyle(r).fontSize)||14)),y=up(r)+up(ch(r,".vxe-cell"));let x=b+y;if(v){const e=dp(ch(r,".vxe-cell--drag-handle")),t=dp(ch(r,".vxe-cell--checkbox")),n=dp(ch(r,".vxe-cell--required-icon")),i=dp(ch(r,".vxe-cell--edit-icon")),o=dp(ch(r,".vxe-cell-title-prefix-icon")),a=dp(ch(r,".vxe-cell-title-suffix-icon")),s=dp(ch(r,".vxe-cell--sort")),l=dp(ch(r,".vxe-cell--filter"));x+=e+t+n+i+o+a+l+s}if(h){const e=Ep(c["main-body-scroll"]);if(e){if(rh(h)){const t=e.clientWidth-1,n=t/100;return Math.max(x,Math.floor(pc.toInteger(h)*n))}if(nh(h))return Math.max(x,pc.toInteger(h))}}return x}function Cp(e){const{children:t}=e;return t&&t.length?Cp(pc.first(t)):e}function _p(e){const{children:t}=e;return t&&t.length?Cp(pc.last(t)):e}function Sp(e,t){return t?pc.get(e,t.field):null}function kp(e,t,n){t&&pc.set(e,t.field,n)}function Ep(e){return e?e.$el||e:null}function Op(e){const t=e,n=e;n.initStatus=!1;const r=[e.clearSort(),e.clearCurrentRow(),e.clearCurrentColumn(),e.clearRadioRow(),e.clearRadioReserve(),e.clearCheckboxRow(),e.clearCheckboxReserve(),e.clearRowExpand(),e.clearTreeExpand(),e.clearTreeExpandReserve(),e.clearPendingRow()];return e.clearFilter&&r.push(e.clearFilter()),e.clearSelected&&(t.keyboardConfig||t.mouseConfig)&&r.push(e.clearSelected()),e.clearCellAreas&&t.mouseConfig&&r.push(e.clearCellAreas(),e.clearCopyCellArea()),Promise.all(r).then(()=>e.clearScroll())}function Tp(e){return e.clearFilter&&e.clearFilter(),Op(e)}function $p(e){return e instanceof Bh}function Dp(e){const t=[];return e.forEach(e=>{t.push(...e.children&&e.children.length?Dp(e.children):[e])}),t}function Mp(e,t,n){return $p(t)?t:new Bh(e,t,n)}function Fp(e,t){const n=e,r=e,{scrollYLoad:i,scrollYTop:o,isAllOverflow:a}=n,{elemStore:s,afterFullData:l,fullAllDataRowIdData:c,isResizeCellHeight:u}=r,d=e.computeRowOpts,h=e.computeCellOpts,p=e.computeDefaultRowHeight,f=e.computeLeftFixedWidth,m=e.computeRightFixedWidth,g=Ep(s["main-body-scroll"]),v=np(e,t);if(g){const n=g.clientHeight,r=g.scrollTop,s=g.querySelector(`[rowid="${v}"]`);if(s){const t=s.offsetTop+(i?o:0),a=s.clientHeight;if(t<r||t>r+n)return e.scrollTo(null,t);if(t+a>=n+r)return e.scrollTo(null,r+a)}else if(i){const i=u||h.height||d.height;if(!i&&a)return e.scrollTo(null,(e.findRowIndexOf(l,t)-1)*p);const o=c[v]||{},s=o.resizeHeight||h.height||d.height||o.height||p,g=o.oTop;return g<r?e.scrollTo(null,g-f-1):e.scrollTo(null,g+s-(n-m-1))}}return Promise.resolve()}function Rp(e,t,n,r){const i=e,o=e,{scrollXLoad:a,scrollXLeft:s}=i,{elemStore:l,visibleColumn:c}=o,u=e.computeLeftFixedWidth,d=e.computeRightFixedWidth,h=Ep(l["main-body-scroll"]);if(n.fixed)return Promise.resolve();if(h){const i=h.clientWidth,o=h.scrollLeft;let l=null;if(r){const t=np(e,r);l=h.querySelector(`[rowid="${t}"] .${n.id}`)}if(l||(l=h.querySelector(`.${n.id}`)),l){const n=l.offsetLeft+(a?s:0),r=l.clientWidth;if(t||!(n<=o+u&&n+r>o+u)&&!(n>=o+u&&n<o+i-d)){if(n<o+u)return e.scrollTo(n-u-1);if(n+r-o>i-d)return e.scrollTo(n+r-(i-d-1))}}else if(a){let r=0;const a=n.renderWidth;for(let e=0;e<c.length;e++){const t=c[e];if(t===n||t.id===n.id)break;r+=t.renderWidth}if(t||!(r<=o+u&&r+a>o+u)&&!(r>=o+u&&r<o+i-d))return r<o?e.scrollTo(r-u-1):e.scrollTo(r+a-(i-d-1))}}return Promise.resolve()}function Ip(e,t){return pc.isBoolean(e)?e:t}function Ap(e){const t=e.computeCustomOpts,{storage:n,storeOptions:r}=t,i=!0===n,o=Object.assign({},i?{}:n||{},r),a=Ip(o.align,i),s=Ip(o.headerAlign,i),l=Ip(o.footerAlign,i),c=Ip(o.resizable,i),u=Ip(o.visible,i),d=Ip(o.fixed,i),h=Ip(o.sort,i),p=Ip(o.aggGroup,i),f=Ip(o.aggFunc,i),m=Ip(o.pager,i);return{isCustomAlign:a,isCustomHeaderAlign:s,isCustomFooterAlign:l,isCustomResizable:c,isCustomVisible:u,isCustomFixed:d,isCustomSort:h,isCustomAggGroup:p,isCustomAggFunc:f,isCustomPager:m}}function Pp(e){return pc.kebabCase(e)}function Lp(e){switch(e.name){case"VxeInput":case"VxeTextarea":case"VxeNumberInput":case"VxePasswordInput":case"VxeSelect":case"VxeTreeSelect":case"VxeTableSelect":case"VxeDatePicker":case"VxeDateRangePicker":case"VxeIconPicker":case"VxeColorPicker":case"VxeSlider":case"VxeUpload":return"modelValue";case"select":return"change"}return"input"}function Np(e){switch(e.name){case"input":case"textarea":case"VxeInput":case"VxeTextarea":case"$input":case"$textarea":return"input"}return"change"}function jp(e){switch(e.name){case"VxeInput":case"VxeNumberInput":case"VxeTextarea":case"$input":case"$textarea":return!0}return!1}function Bp(e){return null===e||void 0===e?[]:pc.isArray(e)?e:[e]}const{getConfig:Vp,getI18n:zp,getIcon:Hp,renderer:Wp,renderEmptyElement:qp}=ad;function Gp(e,t){const{$table:n,column:r}=t,i=r.titlePrefix||r.titleHelp;return i?e("i",{class:["vxe-cell-title-prefix-icon",i.iconStatus?`theme--${i.iconStatus}`:""],on:{mouseenter(e){n.triggerHeaderTitleEvent(e,i,t)},mouseleave(e){n.handleTargetLeaveEvent(e)}}},[e("i",{class:i.icon||Hp().TABLE_TITLE_PREFIX})]):qp(n)}function Yp(e,t){const{$table:n,column:r}=t,i=r.titleSuffix;return i?e("i",{class:["vxe-cell-title-suffix-icon",i.iconStatus?`theme--${i.iconStatus}`:""],on:{mouseenter(e){n.triggerHeaderTitleEvent(e,i,t)},mouseleave(e){n.handleTargetLeaveEvent(e)}}},[e("i",{class:i.icon||Hp().TABLE_TITLE_SUFFIX})]):qp(n)}function Up(e,t){const{$table:n}=t,r=n.$scopedSlots,i=n,{dragConfig:o}=i,a=n.computeRowDragOpts,{icon:s,trigger:l,disabledMethod:c}=a,u=c||(o?o.rowDisabledMethod:null),d=u&&u(t),h=r.rowDragIcon||r["row-drag-icon"],p={};return"cell"!==l&&(p.mousedown=e=>{d||n.handleCellDragMousedownEvent(e,t)},p.mouseup=n.handleCellDragMouseupEvent),e("span",{key:"dg",class:["vxe-cell--drag-handle",{"is--disabled":d}],on:p},h?n.callSlot(h,t,e):[e("i",{class:s||(o?o.rowIcon:"")||Hp().TABLE_DRAG_ROW})])}function Kp(e,t,n){const{$table:r,column:i,level:o}=t,{dragSort:a}=i,s=r,{treeConfig:l,dragConfig:c}=s,u=r.computeRowOpts,d=r.computeRowDragOpts,h=r.computeTreeOpts,{showIcon:p,isPeerDrag:f,isCrossDrag:m,visibleMethod:g}=d,v=g||(c?c.rowVisibleMethod:null),b=[];return a&&u.drag&&(p||c&&c.showRowIcon)&&(!v||v(t))&&(l?h.transform&&(f||m||!o)&&b.unshift(Up(e,t)):b.unshift(Up(e,t))),b.concat(pc.isArray(n)?n:[n])}function Xp(e,t){const{$table:n,column:r}=t,i=n.$scopedSlots,{slots:o}=r,a=n.computeColumnOpts,s=n.computeColumnDragOpts,{showIcon:l,icon:c,trigger:u,isPeerDrag:d,isCrossDrag:h,visibleMethod:p,disabledMethod:f}=s;if(a.drag&&l&&(!p||p(t))&&!r.fixed&&(d||h||!r.parentId)){const r=f&&f(t),a=(o?o.columnDragIcon||o["column-drag-icon"]:null)||i.columnDragIcon||i["column-drag-icon"],s={};return"cell"!==u&&(s.mousedown=e=>{r||n.handleHeaderCellDragMousedownEvent(e,t)},s.mouseup=n.handleHeaderCellDragMouseupEvent),e("span",{key:"dg",class:["vxe-cell--drag-handle",{"is--disabled":r}],on:s},a?n.callSlot(a,t,e):[e("i",{class:c||Hp().TABLE_DRAG_COLUMN})])}return qp(n)}function Zp(e,t,n){const r=[Gp(e,t),Xp(e,t),...pc.isArray(n)?n:[n],Yp(e,t)];return r}function Qp(e,t,n){return"html"===t.type&&pc.isString(n)?e("span",{key:"ch",domProps:{innerHTML:n}}):e("span",{key:"ct"},Bp(n))}function Jp(e,t,n){const{$table:r,column:i}=t,o=r,a=r,{showHeaderOverflow:s}=o,{isRowGroupStatus:l}=a,{showHeaderOverflow:c,slots:u}=i,d=u?u.title:null,h=r.computeHeaderTooltipOpts,p=h.showAll,f=pc.eqNull(c)?s:c,m="title"===(!0===f?h.mode:f),g="tooltip"===(!0===f?h.mode:f),v={};(m||g||p)&&(v.mouseenter=e=>{a.isDragResize||(m?mh(e.currentTarget,i):(g||p)&&r.triggerHeaderTooltipEvent(e,t))}),(g||p)&&(v.mouseleave=e=>{a.isDragResize||(g||p)&&r.handleTargetLeaveEvent(e)});const b=Qp(e,i,n);return[e("span",{class:"vxe-cell--title",on:v},l&&i.aggFunc&&r.getPivotTableAggregateRenderColTitles?r.getPivotTableAggregateRenderColTitles(e,i,b):d?r.callSlot(d,t,e):[b])]}function ef(e,t){const{$table:n,column:r,row:i}=t,o=n,{editConfig:a}=o,{slots:s,editRender:l,cellRender:c}=r,u=s?s.footer:null;if(u)return n.callSlot(u,t,e);const d=a&&ld(a),h=d&&ld(l)?l:null,p=ld(c)?c:null,f=h||p,m=n.getFooterCellLabel(i,r);if(f){const r=n.computeRendererOpts,i=f.name?r[f.name]||Wp.get(f.name):null,o=i?i.renderTableFooter||i.renderFooter:null;if(o){const r=Object.assign(t,{cellValue:m,itemValue:m});return Bp(o.call(n,e,f,r))}}return[md(m,1)]}function tf(e){const{$table:t,row:n,column:r}=e;return md(t.getCellLabel(n,r),1)}function nf(e,t){const{column:n,row:r,$table:i}=t,o=i,a=i,{editConfig:s}=o,{isRowGroupStatus:l}=a,{type:c,treeNode:u,rowGroupNode:d,editRender:h}=n,p=i.computeAggregateOpts,{mode:f}=p,m=i.computeCheckboxOpts,g=i.computeEditOpts,v=u||l&&("column"===f?n.field===r.groupField:d);switch(c){case"seq":return v?af.renderDeepIndexCell(e,t):af.renderSeqCell(e,t);case"radio":return v?af.renderDeepRadioCell(e,t):af.renderRadioCell(e,t);case"checkbox":return m.checkField?v?af.renderDeepSelectionCellByProp(e,t):af.renderCheckboxCellByProp(e,t):v?af.renderDeepSelectionCell(e,t):af.renderCheckboxCell(e,t);case"expand":return af.renderExpandCell(e,t);case"html":return v?af.renderDeepHTMLCell(e,t):af.renderHTMLCell(e,t)}const b=s&&ld(s),y=b&&ld(h)?h:null;return y?"cell"===g.mode?v?af.renderDeepCellEdit(e,t):af.renderCellEdit(e,t):v?af.renderDeepRowEdit(e,t):af.renderRowEdit(e,t):v?af.renderDeepCell(e,t):af.renderDefaultCell(e,t)}function rf(e,t){const{column:n,$table:r}=t,i=r,{editConfig:o}=i,{type:a,filters:s,sortable:l,editRender:c,slots:u}=n;if("obsolete"!==Vp().tableHeadeSlotToTitleSlot){const n=u?u.header:null;if(n)return Jp(e,t,r.callSlot(n,t,e))}switch(a){case"seq":return af.renderSeqHeader(e,t);case"radio":return af.renderRadioHeader(e,t);case"checkbox":return af.renderCheckboxHeader(e,t);case"html":if(s&&l)return af.renderSortAndFilterHeader(e,t);if(l)return af.renderSortHeader(e,t);if(s)return af.renderFilterHeader(e,t);break}const d=o&&ld(o),h=d&&ld(c)?c:null;return h?af.renderEditHeader(e,t):s&&l?af.renderSortAndFilterHeader(e,t):l?af.renderSortHeader(e,t):s?af.renderFilterHeader(e,t):af.renderDefaultHeader(e,t)}function of(e,t){return af.renderDefaultFooter(e,t)}const af={createColumn(e,t){const{type:n}=t,r={renderHeader:rf,renderCell:nf,renderFooter:of};return"expand"===n&&(r.renderData=af.renderExpandData),Mp(e,t,r)},renderHeaderTitle(e,t){const{$table:n,column:r}=t,i=n,{editConfig:o}=i,{slots:a,editRender:s,cellRender:l}=r,c=o&&ld(o),u=c&&ld(s)?s:null,d=ld(l)?l:null,h=u||d;if("obsolete"===Vp().tableHeadeSlotToTitleSlot){const r=a?a.header:null;if(r)return Jp(e,t,n.callSlot(r,t,e))}if(h){const r=n.computeRendererOpts,i=h.name?r[h.name]||Wp.get(h.name):null,o=i?i.renderTableHeader||i.renderHeader:null;if(o)return Bp(Jp(e,t,o.call(n,e,h,t)))}return Jp(e,t,n.getHeaderCellLabel(r))},renderDefaultHeader(e,t){return Zp(e,t,af.renderHeaderTitle(e,t))},renderDefaultCell(e,t){const{$table:n,row:r,column:i}=t,o=n,a=n,s=n,{isRowGroupStatus:l}=a,{editConfig:c}=o,{field:u,slots:d,editRender:h,cellRender:p,rowGroupNode:f,aggFunc:m}=i,g=c&&ld(c),v=g&&ld(h)?h:null,b=ld(p)?p:null,y=d?d.default:null,x=d?d.groupContent||d["group-content"]:null,w=d?d.groupValues||d["group-values"]:null;let C="";if(l&&u&&r.isAggregate){const o=r,{fullColumnFieldData:a}=s,l=n.computeAggregateOpts,{mode:c,showTotal:d,totalMethod:h,countFields:p,contentMethod:g,formatValuesMethod:v,mapChildrenField:b}=l,y=o.aggData,_=y?y[u]:null,S=o.groupField,k=o.groupContent,E=b&&o[b]||[],O=o.childCount,T=a[S]||{},$={$table:n,groupField:S,groupColumn:T?T.column:null,column:i,groupValue:k,childList:E,childCount:O,aggValue:null,children:E,totalValue:O};if("column"===c?u===o.groupField:f){if(C=k,g&&(C=`${g($)}`),d&&(C=zp("vxe.table.rowGroupContentTotal",[C,h?h($):O,O])),x)return Kp(e,t,n.callSlot(x,Object.assign({groupField:S,groupContent:k,childList:E,childCount:O},t),e))}else if(n.getPivotTableAggregateCellAggValue){if(C=n.getPivotTableAggregateCellAggValue(t),$.aggValue=C,w)return Kp(e,t,n.callSlot(w,Object.assign({groupField:S,groupContent:k,childList:E,childCount:O},t,$),e))}else if((!0===m||p&&p.includes(u))&&(C=_?_.value:O,$.aggValue=C,v&&(C=v($)),w))return Kp(e,t,n.callSlot(w,Object.assign({groupField:S,groupContent:k,childList:E,childCount:O},t,$),e))}else{if(y)return Kp(e,t,n.callSlot(y,t,e));const o=n.computeRendererOpts,a=b&&b.name?o[b.name]||Wp.get(b.name):null;if(b){const n=a?a.renderTableDefault||a.renderDefault:null;if(n&&b)return Kp(e,t,Bp(n(e,b,Object.assign({$type:v?"edit":"cell"},t))))}if(v){const n=v&&v.name?o[v.name]||Wp.get(v.name):null,r=n?n.renderTableCell||n.renderCell||n.renderTableDefault||n.renderDefault:null;if(r)return Kp(e,t,Bp(r(e,v,Object.assign({$type:v?"edit":"cell"},t))))}C=n.getCellLabel(r,i)}const _=v?v.placeholder:"";return Kp(e,t,[e("span",{class:"vxe-cell--label"},[v&&gd(C)?e("span",{class:"vxe-cell--placeholder"},md(fd(_),1)):e("span",md(C,1))])])},renderDeepCell(e,t){return af.renderDeepNodeBtn(e,t,af.renderDefaultCell(e,t))},renderDefaultFooter(e,t){return ef(e,t)},renderRowGroupBtn(e,t,n){const{$table:r}=t,i=r,o=r,{row:a,level:s}=t,{rowGroupExpandedFlag:l}=i,{rowGroupExpandedMaps:c}=o,u=r.computeAggregateOpts,{mode:d,padding:h,indent:p,showIcon:f,iconOpen:m,iconClose:g}=u,v=np(r,a),b=!!l&&!!c[v];return e("div",{class:["vxe-row-group--tree-node",{"is--expanded":b}],style:"column"!==d&&h&&p?{paddingLeft:s*p+"px"}:void 0},[f&&a.isAggregate?e("span",{class:"vxe-row-group--node-btn",on:{click(e){r.triggerRowGroupExpandEvent(e,t)}}},[e("i",{class:b?m||Hp().TABLE_ROW_GROUP_OPEN:g||Hp().TABLE_ROW_GROUP_CLOSE})]):qp(r),e("div",{class:"vxe-row-group-cell"},n)])},renderTreeNodeBtn(e,t,n){const{$table:r,isHidden:i}=t,o=r,a=r,{treeExpandedFlag:s}=o,{fullAllDataRowIdData:l,treeExpandedMaps:c,treeExpandLazyLoadedMaps:u}=a,d=r.computeTreeOpts,{row:h,column:p,level:f}=t,{slots:m}=p,{padding:g,indent:v,lazy:b,trigger:y,visibleMethod:x,iconLoaded:w,showIcon:C,iconOpen:_,iconClose:S}=d,k=d.children||d.childrenField,E=d.hasChild||d.hasChildField,O=h[k],T=O&&O.length,$=m?m.icon:null;let D=!1,M=!1,F=!1,R=!1;const I={};if($)return r.callSlot($,t,e);if(!i){const e=np(r,h);if(M=!!s&&!!c[e],b){const t=l[e];F=!!u[e],D=h[E],R=!!t.treeLoaded}}return y&&"default"!==y||(I.click=e=>{r.triggerTreeExpandEvent(e,t)}),[e("div",{class:["vxe-cell--tree-node",{"is--active":M}],style:g&&v?{paddingLeft:f*v+"px"}:void 0},[C&&(b?R?T:T||D:T)&&(!x||x(t))?[e("div",{class:"vxe-cell--tree-btn",on:I},[e("i",{class:F?w||Hp().TABLE_TREE_LOADED:M?_||Hp().TABLE_TREE_OPEN:S||Hp().TABLE_TREE_CLOSE})])]:null,e("div",{class:"vxe-tree-cell"},n)])]},renderDeepNodeBtn(e,t,n){const{$table:r,row:i,column:o}=t,{rowGroupNode:a}=o,s=r,{rowGroupList:l}=s;if(l.length){const s=r.computeAggregateOpts,{mode:l}=s;if("column"===l)return i.groupField&&o.field===i.groupField?[af.renderRowGroupBtn(e,t,n)]:n;if(a)return[af.renderRowGroupBtn(e,t,n)]}return[af.renderTreeNodeBtn(e,t,n)]},renderSeqHeader(e,t){const{$table:n,column:r}=t;if("obsolete"===Vp().tableHeadeSlotToTitleSlot){const{slots:i}=r,o=i?i.header:null;return Zp(e,t,Jp(e,t,o?n.callSlot(o,t,e):n.getHeaderCellLabel(r)))}return Zp(e,t,Jp(e,t,n.getHeaderCellLabel(r)))},renderSeqCell(e,t){const{$table:n,column:r}=t,i=n,{treeConfig:o}=i,a=n.computeSeqOpts,{slots:s}=r;if(s&&s.default)return Kp(e,t,n.callSlot(s.default,t,e));const{seq:l}=t,c=a.seqMethod;return Kp(e,t,[e("span",`${md(c?c(t):o?l:(a.startIndex||0)+l,1)}`)])},renderDeepIndexCell(e,t){return af.renderDeepNodeBtn(e,t,af.renderSeqCell(e,t))},renderRadioHeader(e,t){const{$table:n,column:r}=t,{slots:i}=r,o=i?i.title:null;if("obsolete"===Vp().tableHeadeSlotToTitleSlot){const a=i?i.header:null;return Zp(e,t,Jp(e,t,a?n.callSlot(a,t,e):[e("span",{class:"vxe-radio--label"},o?n.callSlot(o,t,e):n.getHeaderCellLabel(r))]))}return Zp(e,t,Jp(e,t,[e("span",{class:"vxe-radio--label"},o?n.callSlot(o,t,e):n.getHeaderCellLabel(r))]))},renderRadioCell(e,t){const{$table:n,column:r,isHidden:i}=t,o=n,{selectRadioRow:a}=o,s=n.computeRadioOpts,{slots:l}=r,{labelField:c,checkMethod:u,visibleMethod:d}=s,{row:h}=t,p=l?l.default:null,f=l?l.radio:null,m=h===a,g=!d||d({$table:n,row:h});let v,b=!!u;i||(v={click(e){!b&&g&&n.triggerRadioRowEvent(e,t)}},u&&(b=!u({$table:n,row:h})));const y=Object.assign(Object.assign({},t),{checked:m,disabled:b,visible:g});if(f)return Kp(e,t,n.callSlot(f,y,e));const x=[];return g&&x.push(e("span",{class:["vxe-radio--icon",m?Hp().TABLE_RADIO_CHECKED:b?Hp().TABLE_RADIO_DISABLED_UNCHECKED:Hp().TABLE_RADIO_UNCHECKED]})),(p||c)&&x.push(e("span",{class:"vxe-radio--label"},p?n.callSlot(p,y,e):pc.get(h,c))),Kp(e,t,[e("span",{class:["vxe-cell--radio",{"is--checked":m,"is--disabled":b}],on:v},x)])},renderDeepRadioCell(e,t){return af.renderDeepNodeBtn(e,t,af.renderRadioCell(e,t))},renderCheckboxHeader(e,t){const{$table:n,column:r,isHidden:i}=t,o=n,{isAllSelected:a,isIndeterminate:s}=o,l=n.computeIsAllCheckboxDisabled,{slots:c}=r,u=c?c.title:null,d=n.computeCheckboxOpts,{checkStrictly:h,showHeader:p,headerTitle:f}=d,m=n.getHeaderCellLabel(r),g={};i||(g.click=e=>{l||n.triggerCheckAllEvent(e,!a)});const v=Object.assign(Object.assign({},t),{checked:a,disabled:l,indeterminate:s});if("obsolete"===Vp().tableHeadeSlotToTitleSlot){const r=c?c.header:null;if(r)return Zp(e,t,Jp(e,v,n.callSlot(r,v,e)))}return Zp(e,t,Jp(e,v,(h?p:!1!==p)?[e("span",{class:["vxe-cell--checkbox",{"is--checked":a,"is--disabled":l,"is--indeterminate":s}],attrs:{title:pc.eqNull(f)?zp("vxe.table.allTitle"):`${f||""}`},on:g},[e("span",{class:["vxe-checkbox--icon",s?Hp().TABLE_CHECKBOX_INDETERMINATE:a?Hp().TABLE_CHECKBOX_CHECKED:l?Hp().TABLE_CHECKBOX_DISABLED_UNCHECKED:Hp().TABLE_CHECKBOX_UNCHECKED]})].concat(u||m?[e("span",{class:"vxe-checkbox--label"},u?n.callSlot(u,v,e):m)]:[]))]:[e("span",{class:"vxe-checkbox--label"},u?n.callSlot(u,v,e):m)]))},renderCheckboxCell(e,t){const{$table:n,row:r,column:i,isHidden:o}=t,a=n,s=n,l=n,{treeConfig:c}=a,{updateCheckboxFlag:u,isRowGroupStatus:d}=s,{selectCheckboxMaps:h,treeIndeterminateRowMaps:p}=l,f=n.computeAggregateOpts,{mapChildrenField:m}=f,g=n.computeCheckboxOpts,{labelField:v,checkMethod:b,visibleMethod:y}=g,{slots:x}=i,w=x?x.default:null,C=x?x.checkbox:null;let _=!1,S=!1,k=!0,E=!1;const O={};if(!o){const e=np(n,r);if(S=!!u&&!!h[e],b&&d&&n.isAggregateRecord(r)){const e=r[m||""];e&&e.length&&!e.every(e=>!b({$table:n,row:e}))||(E=!0)}else k=!y||y({$table:n,row:r}),E=b?!b({$table:n,row:r}):!!b;(c||d)&&(_=!!p[e]),O.click=e=>{!E&&k&&n.triggerCheckRowEvent(e,t,!S)}}const T=Object.assign(Object.assign({},t),{checked:S,disabled:E,visible:k,indeterminate:_});if(C)return Kp(e,t,n.callSlot(C,T,e));const $=[];return k&&$.push(e("span",{class:["vxe-checkbox--icon",_?Hp().TABLE_CHECKBOX_INDETERMINATE:S?Hp().TABLE_CHECKBOX_CHECKED:E?Hp().TABLE_CHECKBOX_DISABLED_UNCHECKED:Hp().TABLE_CHECKBOX_UNCHECKED]})),(w||v)&&$.push(e("span",{class:"vxe-checkbox--label"},w?n.callSlot(w,T,e):pc.get(r,v))),Kp(e,t,[e("span",{class:["vxe-cell--checkbox",{"is--checked":S,"is--disabled":E,"is--indeterminate":_,"is--hidden":!k}],on:O},$)])},renderDeepSelectionCell(e,t){return af.renderDeepNodeBtn(e,t,af.renderCheckboxCell(e,t))},renderCheckboxCellByProp(e,t){const{$table:n,row:r,column:i,isHidden:o}=t,a=n,s=n,l=n,{treeConfig:c}=a,{updateCheckboxFlag:u,isRowGroupStatus:d}=s,{treeIndeterminateRowMaps:h}=l,p=n.computeAggregateOpts,{mapChildrenField:f}=p,m=n.computeCheckboxOpts,{labelField:g,checkField:v,checkMethod:b,visibleMethod:y}=m,x=m.indeterminateField||m.halfField,{slots:w}=i,C=w?w.default:null,_=w?w.checkbox:null;let S=!1,k=!1,E=!0,O=!1;const T={};if(!o){const e=np(n,r);if(k=!!u&&pc.get(r,v),b&&d&&n.isAggregateRecord(r)){const e=r[f||""];e&&e.length&&!e.every(e=>!b({$table:n,row:e}))||(O=!0)}else E=!y||y({$table:n,row:r}),O=b?!b({$table:n,row:r}):!!b;(c||d)&&(S=!!h[e]),T.click=e=>{!O&&E&&n.triggerCheckRowEvent(e,t,!k)}}const $=Object.assign(Object.assign({},t),{checked:k,disabled:O,visible:E,indeterminate:S});if(_)return Kp(e,t,n.callSlot(_,$,e));const D=[];return E&&D.push(e("span",{class:["vxe-checkbox--icon",S?Hp().TABLE_CHECKBOX_INDETERMINATE:k?Hp().TABLE_CHECKBOX_CHECKED:O?Hp().TABLE_CHECKBOX_DISABLED_UNCHECKED:Hp().TABLE_CHECKBOX_UNCHECKED]})),(C||g)&&D.push(e("span",{class:"vxe-checkbox--label"},C?n.callSlot(C,$,e):pc.get(r,g))),Kp(e,t,[e("span",{class:["vxe-cell--checkbox",{"is--checked":k,"is--disabled":O,"is--indeterminate":x&&!k?r[x]:S,"is--hidden":!E}],on:T},D)])},renderDeepSelectionCellByProp(e,t){return af.renderDeepNodeBtn(e,t,af.renderCheckboxCellByProp(e,t))},renderExpandCell(e,t){const{$table:n,isHidden:r,row:i,column:o}=t,a=n,s=n,{isRowGroupStatus:l}=a,{rowExpandedMaps:c,rowExpandLazyLoadedMaps:u}=s,d=n.computeExpandOpts,{lazy:h,labelField:p,iconLoaded:f,showIcon:m,iconOpen:g,iconClose:v,visibleMethod:b}=d,{slots:y}=o,x=y?y.default:null,w=y?y.icon:null;let C=!1,_=!1;if(l&&i.isAggregate)return Kp(e,t,[]);if(w)return Kp(e,t,n.callSlot(w,t,e));if(!r){const e=np(n,i);C=!!c[e],h&&(_=!!u[e])}return Kp(e,t,[!m||b&&!b(t)?qp(n):e("div",{class:["vxe-table--expanded",{"is--active":C}]},[e("span",{class:"vxe-table--expand-btn",on:{mousedown(e){e.stopPropagation()},click(e){n.triggerRowExpandEvent(e,t)}}},[e("i",{class:_?f||Hp().TABLE_EXPAND_LOADED:C?g||Hp().TABLE_EXPAND_OPEN:v||Hp().TABLE_EXPAND_CLOSE})])]),x||p?e("span",{class:"vxe-table--expand-label"},x?n.callSlot(x,t,e):pc.get(i,p)):qp(n)])},renderExpandData(e,t){const{$table:n,column:r}=t,{slots:i,contentRender:o}=r;if(i&&i.content)return n.callSlot(i.content,t,e);if(o){const r=n.computeRendererOpts,i=o.name?r[o.name]||Wp.get(o.name):null,a=i?i.renderTableExpand||i.renderExpand:null;if(a)return Bp(a.call(n,e,o,t))}return[]},renderHTMLCell(e,t){const{$table:n,column:r}=t,{slots:i}=r;return i&&i.default?Kp(e,t,n.callSlot(i.default,t,e)):Kp(e,t,[e("span",{class:"vxe-cell--html",domProps:{innerHTML:tf(t)}})])},renderDeepHTMLCell(e,t){return af.renderDeepNodeBtn(e,t,af.renderHTMLCell(e,t))},renderSortAndFilterHeader(e,t){return Zp(e,t,af.renderHeaderTitle(e,t).concat(af.renderSortIcon(e,t).concat(af.renderFilterIcon(e,t))))},renderSortHeader(e,t){return Zp(e,t,af.renderHeaderTitle(e,t).concat(af.renderSortIcon(e,t)))},renderSortIcon(e,t){const{$table:n,column:r}=t,i=n.computeSortOpts,{showIcon:o,allowBtn:a,ascTitle:s,descTitle:l,iconLayout:c,iconAsc:u,iconDesc:d,iconVisibleMethod:h}=i,{order:p,slots:f}=r;if(o&&(!h||h(t))){const i=f?f.sort:null;return i?Bp(n.callSlot(i,t,e)):[e("span",{class:["vxe-cell--sort",`vxe-cell--sort-${c}-layout`]},[e("i",{class:["vxe-sort--asc-btn",u||Hp().TABLE_SORT_ASC,{"sort--active":"asc"===p}],attrs:{title:pc.eqNull(s)?zp("vxe.table.sortAsc"):`${s||""}`},on:a?{click(e){e.stopPropagation(),n.triggerSortEvent(e,r,"asc")}}:void 0}),e("i",{class:["vxe-sort--desc-btn",d||Hp().TABLE_SORT_DESC,{"sort--active":"desc"===p}],attrs:{title:pc.eqNull(l)?zp("vxe.table.sortDesc"):`${l||""}`},on:a?{click(e){e.stopPropagation(),n.triggerSortEvent(e,r,"desc")}}:void 0})])]}return[]},renderFilterHeader(e,t){return Zp(e,t,af.renderHeaderTitle(e,t).concat(af.renderFilterIcon(e,t)))},renderFilterIcon(e,t){const{$table:n,column:r,hasFilter:i}=t,o=n,{filterStore:a}=o,s=n.computeFilterOpts,{showIcon:l,iconNone:c,iconMatch:u,iconVisibleMethod:d}=s;return!l||d&&!d(t)?[]:[e("span",{class:["vxe-cell--filter",{"is--active":a.visible&&a.column===r}],on:{click(e){n.triggerFilterEvent&&n.triggerFilterEvent(e,t.column,t)}}},[e("i",{class:["vxe-filter--btn",i?u||Hp().TABLE_FILTER_MATCH:c||Hp().TABLE_FILTER_NONE],attrs:{title:zp("vxe.table.filter")}})])]},renderEditHeader(e,t){const{$table:n,column:r}=t,i=n,{editConfig:o,editRules:a}=i,s=n.computeEditOpts,{sortable:l,filters:c,editRender:u}=r,d=o&&ld(o),h=d&&ld(u)?u:null;let p=!1;if(a){const e=r.rules?r.rules:pc.get(a,r.field);e&&(p=e.some(e=>e.required))}let f=[];if(d){const{showAsterisk:t,showIcon:r,icon:i}=s;f=[p&&t?e("i",{class:"vxe-cell--required-icon"},[e("i",{class:"vxe-cell--required-icon"})]):qp(n),h&&r?e("i",{class:"vxe-cell--edit-icon"},pc.isFunction(i)?Bp(i({})):[e("i",{class:i||Hp().TABLE_EDIT})]):qp(n)]}return Zp(e,t,f.concat(af.renderHeaderTitle(e,t)).concat(l?af.renderSortIcon(e,t):[]).concat(c?af.renderFilterIcon(e,t):[]))},renderRowEdit(e,t){const{$table:n,column:r}=t,i=n,o=n,{editConfig:a}=i,{editStore:s}=o,{actived:l}=s,{editRender:c}=r,u=a&&ld(a),d=u&&ld(c)?c:null;return af.runRenderer(e,t,!(!d||!l||l.row!==t.row))},renderDeepRowEdit(e,t){return af.renderDeepNodeBtn(e,t,af.renderRowEdit(e,t))},renderCellEdit(e,t){const{$table:n,column:r}=t,i=n,o=n,{editConfig:a}=i,{editStore:s}=o,{actived:l}=s,{editRender:c}=r,u=a&&ld(a),d=u&&ld(c)?c:null;return af.runRenderer(e,t,!(!d||!l||l.row!==t.row||l.column!==t.column))},renderDeepCellEdit(e,t){return af.renderDeepNodeBtn(e,t,af.renderCellEdit(e,t))},runRenderer(e,t,n){const{$table:r,row:i,column:o}=t,a=r,s=r,{editConfig:l}=a,{isRowGroupStatus:c}=s,{slots:u,field:d,editRender:h,formatter:p}=o,f=l&&ld(l),m=f&&ld(h)?h:null,g=u?u.default:null,v=u?u.groupContent||u["group-content"]:null,b=Object.assign({$type:"",isEdit:n},t);if(n&&m){if(u&&u.edit)return r.callSlot(u.edit,b,e);const t=r.computeRendererOpts,n=m.name?t[m.name]||Wp.get(m.name):null,i=n?n.renderTableEdit||n.renderEdit:null;return i?Bp(i.call(r,e,h,b)):[]}if(c&&d&&i.isAggregate){const n=i,o=r.computeAggregateOpts,{mapChildrenField:a}=o,s=n.groupField,l=n.groupContent,c=a&&n[a]||[],u=n.childCount;if(v)return Kp(e,t,r.callSlot(v,Object.assign({groupField:s,groupContent:l,childList:c,childCount:u},t),e))}else if(g)return Kp(e,t,r.callSlot(g,b,e));return p?Kp(e,t,[e("span",{class:"vxe-cell--label"},[tf(b)])]):af.renderDefaultCell(e,b)}},sf=af,lf={colId:[String,Number],type:String,field:String,title:String,width:[Number,String],minWidth:[Number,String],maxWidth:[Number,String],resizable:{type:Boolean,default:null},fixed:String,align:String,headerAlign:String,footerAlign:String,showOverflow:{type:[Boolean,String],default:null},showHeaderOverflow:{type:[Boolean,String],default:null},showFooterOverflow:{type:[Boolean,String],default:null},className:[String,Function],headerClassName:[String,Function],footerClassName:[String,Function],formatter:[Function,Array,String],headerFormatter:[Function,Array,String],footerFormatter:[Function,Array,String],padding:{type:Boolean,default:null},verticalAlign:{type:String,default:null},sortable:Boolean,remoteSort:{type:Boolean,default:null},sortBy:[String,Function],sortType:String,sortMethod:Function,filters:{type:Array,default:null},filterMultiple:{type:Boolean,default:!0},filterMethod:Function,filterResetMethod:Function,filterRecoverMethod:Function,filterRender:Object,floatingFilters:Object,rules:Array,rowGroupNode:Boolean,treeNode:Boolean,dragSort:Boolean,rowResize:Boolean,visible:{type:Boolean,default:null},headerExportMethod:Function,exportMethod:Function,footerExportMethod:Function,titleHelp:Object,titlePrefix:Object,titleSuffix:Object,cellType:String,cellRender:Object,editRender:Object,contentRender:Object,aggFunc:[Boolean,String],copyMethod:Function,cutMethod:Function,pasteMethod:Function,params:Object},cf={};Object.keys(lf).forEach(e=>{cf[e]=function(t){const n=this.$xeTable;this.columnConfig.update(e,t),n&&("filters"===e?(n.setFilter(this.columnConfig,t),n.handleUpdateDataQueue()):["visible","fixed","width","minWidth","maxWidth"].includes(e)&&n.handleRefreshColumnQueue())}});const uf={name:"VxeColumn",props:lf,provide(){const e=this;return{$xeColumn:e,$xeGrid:null,$xeGantt:null}},inject:{$xeTable:{default:null},$xeColumn:{default:null}},watch:cf,created(){const e=this,t=e,n=this.$xeTable;this.columnConfig=sf.createColumn(n,t)},mounted(){const e=this;this.columnConfig.slots=this.$scopedSlots,gp(e)},destroyed(){const e=this;vp(e)},render(e){return e("div",this.$slots.default)},methods:sf},df=Object.assign({},uf,{install(e){e.component(uf.name,uf),e.component("VxeTableColumn",uf)}});ad.dynamicApp&&(ad.dynamicApp.component(uf.name,uf),ad.dynamicApp.component("VxeTableColumn",uf)),ad.component(uf);const hf=df,pf={name:"VxeColgroup",props:lf,provide(){const e=this;return{$xeColumn:e,$xeGrid:null,$xeGantt:null}},inject:{$xeTable:{default:null},$xeColumn:{default:null}},watch:cf,created(){const e=this,t=e,n=this.$xeTable;this.columnConfig=sf.createColumn(n,t)},mounted(){const e=this,{$scopedSlots:t}=this,n={};t.header&&(n.header=t.header),t.title&&(n.title=t.title),this.columnConfig.slots=n,gp(e)},destroyed(){const e=this;vp(e)},render(e){return e("div",this.$slots.default)},methods:sf},ff=Object.assign({},pf,{install(e){e.component(pf.name,pf),e.component("VxeTableColgroup",pf)}});ad.dynamicApp&&(ad.dynamicApp.component(pf.name,pf),ad.dynamicApp.component("VxeTableColgroup",pf)),ad.component(pf);const mf=ff,{getConfig:gf}=ad,vf={id:[String,Function],data:Array,height:[Number,String],minHeight:{type:[Number,String],default:()=>null},maxHeight:[Number,String],resizable:{type:Boolean,default:()=>gf().table.resizable},stripe:{type:Boolean,default:()=>gf().table.stripe},border:{type:[Boolean,String],default:()=>gf().table.border},padding:{type:Boolean,default:null},round:{type:Boolean,default:()=>gf().table.round},size:{type:String,default:()=>gf().table.size||gf().size},fit:{type:Boolean,default:()=>gf().table.fit},loading:Boolean,align:{type:String,default:()=>gf().table.align},headerAlign:{type:String,default:()=>gf().table.headerAlign},footerAlign:{type:String,default:()=>gf().table.footerAlign},showHeader:{type:Boolean,default:()=>gf().table.showHeader},highlightCurrentRow:{type:Boolean,default:()=>gf().table.highlightCurrentRow},highlightHoverRow:{type:Boolean,default:()=>gf().table.highlightHoverRow},highlightCurrentColumn:{type:Boolean,default:()=>gf().table.highlightCurrentColumn},highlightHoverColumn:{type:Boolean,default:()=>gf().table.highlightHoverColumn},highlightCell:Boolean,showFooter:Boolean,footerData:Array,footerMethod:Function,rowClassName:[String,Function],cellClassName:[String,Function],headerRowClassName:[String,Function],headerCellClassName:[String,Function],footerRowClassName:[String,Function],footerCellClassName:[String,Function],cellStyle:[Object,Function],headerCellStyle:[Object,Function],footerCellStyle:[Object,Function],rowStyle:[Object,Function],headerRowStyle:[Object,Function],footerRowStyle:[Object,Function],showCustomHeader:{type:Boolean,default:()=>gf().table.showCustomHeader},mergeHeaderCells:Array,mergeCells:Array,mergeFooterCells:Array,mergeFooterItems:Array,spanMethod:Function,footerSpanMethod:Function,showOverflow:{type:[Boolean,String],default:()=>gf().table.showOverflow},showHeaderOverflow:{type:[Boolean,String],default:()=>gf().table.showHeaderOverflow},showFooterOverflow:{type:[Boolean,String],default:()=>gf().table.showFooterOverflow},columnKey:Boolean,rowKey:Boolean,rowId:{type:String,default:()=>gf().table.rowId},zIndex:Number,emptyText:{type:String,default:()=>gf().table.emptyText},keepSource:{type:Boolean,default:()=>gf().table.keepSource},autoResize:{type:Boolean,default:()=>gf().table.autoResize},syncResize:[Boolean,String,Number],resizeConfig:Object,columnConfig:Object,currentColumnConfig:Object,cellConfig:Object,headerCellConfig:Object,footerCellConfig:Object,rowConfig:Object,aggregateConfig:Object,aggregateAccuracyConfig:Object,rowGroupConfig:Object,currentRowConfig:Object,dragConfig:Object,rowDragConfig:Object,columnDragConfig:Object,resizableConfig:Object,seqConfig:Object,sortConfig:Object,filterConfig:Object,floatingFilterConfig:Object,radioConfig:Object,checkboxConfig:Object,tooltipConfig:Object,headerTooltipConfig:Object,footerTooltipConfig:Object,exportConfig:[Boolean,Object],importConfig:[Boolean,Object],printConfig:Object,expandConfig:Object,treeConfig:[Boolean,Object],menuConfig:[Boolean,Object],contextMenu:[Boolean,Object],mouseConfig:Object,areaConfig:Object,keyboardConfig:Object,clipConfig:Object,fnrConfig:Object,editConfig:[Boolean,Object],editDirtyConfig:Object,validConfig:Object,editRules:Object,loadingConfig:Object,emptyRender:[Boolean,Object],customConfig:Object,scrollX:Object,scrollY:Object,virtualXConfig:Object,virtualYConfig:Object,scrollbarConfig:Object,undoRedoHistoryConfig:Object,animat:{type:Boolean,default:()=>gf().table.animat},delayHover:{type:Number,default:()=>gf().table.delayHover},rendererConfig:Object,params:Object},bf="row--drag-move",yf="col--drag-move";function xf(e,t){pc.arrayEach(e,e=>{e.style.transform=`translateY(${t}px)`}),requestAnimationFrame(()=>{pc.arrayEach(e,e=>{ah(e,bf),e.style.transform=""})})}function wf(e,t){setTimeout(()=>{e&&pc.arrayEach(e.querySelectorAll(t.map(e=>`${e}.${bf}`).join(",")),e=>oh(e,bf))},500)}function Cf(e,t){pc.arrayEach(e,e=>{e.style.transform=`translateX(${t}px)`}),requestAnimationFrame(()=>{pc.arrayEach(e,e=>{ah(e,yf),e.style.transform=""})})}function _f(e,t){setTimeout(()=>{e&&pc.arrayEach(e.querySelectorAll(t.map(e=>`${e}.${bf}`).join(",")),e=>oh(e,yf))},500)}const Sf={row:null};function kf(e){const t=e.crossTableDragRowInfo;return t}const{warnLog:Ef,errLog:Of}=Ih("table"),{getConfig:Tf,getI18n:$f,renderer:Df,formats:Mf,interceptor:Ff,createEvent:Rf,globalEvents:If,GLOBAL_EVENT_KEYS:Af}=ad,Pf=5e6,Lf="VXE_CUSTOM_STORE",Nf=5e6,jf=5e6,Bf="table";let Vf=null;function zf(e,t,n){const r=pc.get(e,n),i=pc.get(t,n);let o=!1;return o=!(!gd(r)||!gd(i))||(pc.isString(r)||pc.isNumber(r)?""+r===""+i:pc.isEqual(r,i)),{newValue:r,oldValue:i,result:o}}function Hf(e,t){const n=e.computeSortOpts,{orders:r=[]}=n,i=t.order||null,o=r.indexOf(i)+1;return r[o<r.length?o:0]}const Wf=e=>{const t=Tf().version,n=pc.toStringJSON(localStorage.getItem(Lf)||""),r=n&&n._v===t?n:{_v:t};return(e?r[e]:r)||{}},qf=(e,t)=>{const n=Tf().version,r=Wf();r[e]=t||void 0,r._v=n,localStorage.setItem(Lf,pc.toJSONString(r))},Gf=(e,t)=>{const n=e,{fullAllDataRowIdData:r}=n,i={};return pc.each(t,(e,t)=>{r[t]&&(i[t]=e)}),i};function Yf(e,t){const n=e,{fullDataRowIdData:r}=n,i=[];return pc.each(t,(e,t)=>{r[t]&&-1===i.indexOf(r[t].row)&&i.push(r[t].row)}),i}function Uf(e){const t=e,n=e,{isScrollXBig:r,scrollXWidth:i}=t,{elemStore:o,visibleColumn:a,fullColumnIdData:s}=n,l=e.computeLeftFixedWidth,c=e.computeRightFixedWidth,u=Ep(o["main-body-scroll"]);if(u){const e=u.clientWidth;let t=u.scrollLeft;r&&(t=Math.ceil((i-e)*Math.min(1,t/(jf-e))));const n=t+l,o=t+e-c;let d=0,h=a.length;while(d<h){const e=Math.floor((d+h)/2),t=a[e],r=t.id,i=s[r]||{};i.oLeft<=n?d=e+1:h=e}let p=0;const f=d===a.length?d:Math.max(0,d<a.length?d-2:0);for(let r=f,i=a.length;r<i;r++){const e=a[r],t=e.id,n=s[t]||{};if(p++,n.oLeft>o||p>=60)break}return{toVisibleIndex:Math.max(0,f),visibleSize:Math.max(6,p)}}return{toVisibleIndex:0,visibleSize:6}}function Kf(e,t){const n=e,r=e,i=e,o=e.$xeGrid,a=e.$xeGantt,s=o||a,{aggregateConfig:l,rowGroupConfig:c}=n,{collectColumn:u}=i,{isCustomAlign:d,isCustomHeaderAlign:h,isCustomFooterAlign:p,isCustomResizable:f,isCustomVisible:m,isCustomFixed:g,isCustomSort:v,isCustomAggGroup:b,isCustomAggFunc:y,isCustomPager:x}=Ap(e);let{alignData:w,headerAlignData:C,footerAlignData:_,resizableData:S,sortData:k,visibleData:E,fixedData:O,aggGroupData:T,aggFuncData:$,pagerData:D}=t;if(d&&w||h&&C||p&&_||f&&S||v&&k||m&&E||g&&O||b&&T||y&&$||x&&D&&s){const t={};if(v&&k){if(!pc.isArray(k)){const e=[];pc.each(k,(t,n)=>{e.push({key:n,index:t})}),k=pc.orderBy(e,{field:"index",order:"asc"}).map(e=>({k:e.key}))}let e=1;pc.eachTree(k,(n,r,i,o,a)=>{t[n.k]={key:n.k,sNum:e++,pKey:a?a.k:null}},{children:"c"})}const n={},o=[],a=[];if(pc.eachTree(u,(e,t,r,i,s)=>{const u=e.getKey();s||g&&O&&void 0!==O[u]&&(e.fixed=O[u]),f&&S&&pc.isNumber(S[u])&&(e.resizeWidth=S[u]),m&&E&&pc.isBoolean(E[u])&&(e.visible=E[u]),y&&$&&(l||c)&&$[u]&&(e.aggFunc=$[u]),b&&T&&T[u]&&a.push({field:e.field}),n[u]=e,o.push(e)}),(l||c)&&a.length){const t=_g(e,i.tableFullData,a);i.tableFullTreeData=[],i.tableFullGroupData=t.treeData,r.isRowGroupStatus=!0,r.rowGroupList=a,e.cacheRowMap(!1)}if(v&&k){o.forEach(e=>{const r=e.getKey(),i=t[r];if(i){const t=i.pKey?n[i.pKey]:null;e.parentId=t?t.id:null,e.renderSortNumber=i.sNum}});const e=pc.toArrayTree(pc.orderBy(o,"renderSortNumber"),{key:"id",parentKey:"parentId",children:"children"});i.collectColumn=e,i.tableFullColumn=Dp(e),r.updateColFlag++}r.isCustomStatus=!0}else r.isCustomStatus=!1}function Xf(e){const t=e,{customConfig:n}=t,r=e.computeTableId,i=e.computeCustomOpts,{storage:o,restoreStore:a}=i,{isCustomAlign:s,isCustomHeaderAlign:l,isCustomFooterAlign:c,isCustomResizable:u,isCustomVisible:d,isCustomFixed:h,isCustomSort:p,isCustomAggGroup:f,isCustomAggFunc:m}=Ap(e);if(o&&(n?ld(i):i.enabled)&&(s||l||c||u||d||h||p||f||m)){if(!r)return void Of("vxe.error.reqProp",["id"]);const t=Wf(r);return a?Promise.resolve(a({$table:e,id:r,type:"restore",storeData:t})).then(t=>{if(t)return Kf(e,t)}).catch(e=>e):Kf(e,t)}}function Zf(e){const t=e,n=e,r=e,{treeConfig:i,showOverflow:o}=t,{tableFullColumn:a,collectColumn:s}=r,l=r.fullColumnIdData={},c=r.fullColumnFieldData={},u=e.computeMouseOpts,d=e.computeExpandOpts,h=e.computeColumnOpts,p=e.computeColumnDragOpts,f=e.computeVirtualYOpts,{isCrossDrag:m,isSelfToChildDrag:g}=p,v=e.computeCustomOpts,b=e.computeTreeOpts,{storage:y}=v,x=e.computeRowOpts,w=s.some(pd);let C,_,S,k,E,O,T,$=!!o;const D=(e,t,n,r,i)=>{const{id:o,field:a,fixed:s,type:u,treeNode:d,rowGroupNode:p}=e,f={$index:-1,_index:-1,column:e,colid:o,index:t,items:n,parent:i||null,width:0,oLeft:0};a?(c[a]&&Of("vxe.error.colRepet",["field",a]),c[a]=f):(y&&!u&&Of("vxe.error.reqSupportProp",["storage",`[${u?`type=${u}`:`title=${e.getTitle()}`}]field=?`]),h.drag&&(m||g)&&Of("vxe.error.reqSupportProp",["column-drag-config.isCrossDrag | column-drag-config.isSelfToChildDrag",`${e.getTitle()||u||""} -> field=?`])),!T&&s&&(T=s),O||"html"!==u||(O=e),d&&(S&&Ef("vxe.error.colRepet",["tree-node",d]),S||(S=e)),p&&(S&&Ef("vxe.error.colRepet",["row-group-node",p]),C||(C=e)),"expand"===u&&(_&&Ef("vxe.error.colRepet",["type",u]),_||(_=e)),"checkbox"===u?(k&&Ef("vxe.error.colRepet",["type",u]),k||(k=e)):"radio"===u&&(E&&Ef("vxe.error.colRepet",["type",u]),E||(E=e)),$&&!1===e.showOverflow&&($=!1),l[o]&&Of("vxe.error.colRepet",["colId",o]),l[o]=f};w?pc.eachTree(s,(e,t,n,r,i,o)=>{e.level=o.length,D(e,t,n,r,i)}):a.forEach(D),_&&("fixed"!==d.mode&&f.enabled&&Ef("vxe.error.notConflictProp",['column.type="expand',"virtual-y-config.enabled=false"]),"fixed"!==d.mode&&u.area&&Of("vxe.error.errConflicts",["mouse-config.area","column.type=expand"]),"inside"!==d.mode&&i&&!b.transform&&Of("vxe.error.notConflictProp",["tree-config.transform=false","expand-config.mode=inside"])),O&&(h.useKey||Of("vxe.error.notSupportProp",["column.type=html","column-config.useKey=false","column-config.useKey=true"]),x.useKey||Of("vxe.error.notSupportProp",["column.type=html","row-config.useKey=false","row-config.useKey=true"])),n.isGroup=w,n.rowGroupColumn=C,n.treeNodeColumn=S,n.expandColumn=_,n.checkboxColumn=k,n.radioColumn=E,n.isAllOverflow=$}function Qf(e,t){const n=e,r=e,i=e.computeVirtualXOpts,o=t||r.tableFullColumn,a=!!i.enabled&&i.gt>-1&&(0===i.gt||i.gt<o.length);return n.scrollXLoad=a,a}function Jf(e){const t=e,n=e,r=n.xeGanttView;r&&r.handleUpdateSYStatus&&r.handleUpdateSYStatus(t.scrollYLoad)}function em(e,t){const n=e,r=e,i=e,{treeConfig:o}=n,a=e.computeVirtualYOpts,s=e.computeTreeOpts,{transform:l}=s,c=t||i.tableFullData;let u=!!a.enabled&&a.gt>-1&&(0===a.gt||a.gt<c.length);return u&&o&&!l&&(Of("vxe.error.notSupportProp",["[table] virtual-y-config.enabled=true","tree-config.transform=false","tree-config.transform=true"]),u=!1),r.scrollYLoad=u,Jf(e),u}function tm(e,t,n){const r=e,i=e,{treeNodeColumn:o}=r,{fullAllDataRowIdData:a,tableFullTreeData:s,treeExpandedMaps:l,treeExpandLazyLoadedMaps:c}=i,u=e.computeTreeOpts,{reserve:d,lazy:h,accordion:p,toggleMethod:f}=u,m=u.children||u.childrenField,g=u.hasChild||u.hasChildField,v=[],b=e.getColumnIndex(o),y=e.getVMColumnIndex(o),x=e.getVTColumnIndex(o),{handleGetRowId:w}=ip(e);let C=f?t.filter(t=>f({$table:e,expanded:n,column:o,columnIndex:b,$columnIndex:y,_columnIndex:x,row:t})):t;if(p){C=C.length?[C[C.length-1]]:[];const e=pc.findTree(s,e=>e===C[0],{children:m});e&&e.items.forEach(e=>{const t=w(e);l[t]&&delete l[t]})}return n?C.forEach(t=>{const n=w(t);if(!l[n]){const r=a[n];if(r){const i=h&&t[g]&&!r.treeLoaded&&!c[n];i?v.push(km(e,t)):t[m]&&t[m].length&&(l[n]=t)}}}):C.forEach(e=>{const t=w(e);l[t]&&delete l[t]}),d&&C.forEach(t=>Em(e,t,n)),r.treeExpandedFlag++,Promise.all(v).then(()=>(Qg(e),e.recalculate()))}function nm(e,t,n){const r=e;return tm(e,t,n).then(()=>(cm(e),e.handleTableData(),r.treeExpandedFlag++,lm(e),e.$nextTick())).then(()=>mg(e,!0,!0,!0)).then(()=>{Qg(e),setTimeout(()=>{e.updateCellAreas()},30)})}function rm(e,t,n){const r=e,i=e,{fullAllDataRowIdData:o,tableFullGroupData:a,rowGroupExpandedMaps:s}=i,l=e.computeAggregateOpts,{mapChildrenField:c,accordion:u}=l,{handleGetRowId:d}=ip(e);let h=t;if(c){if(u){h=h.length?[h[h.length-1]]:[];const t=pc.findTree(a,t=>np(e,t)===np(e,h[0]),{children:c});t&&t.items.forEach(e=>{const t=d(e);s[t]&&delete s[t]})}n?h.forEach(e=>{const t=d(e);if(!s[t]){const n=o[t];n&&e[c]&&e[c].length&&(s[t]=e)}}):h.forEach(e=>{const t=d(e);s[t]&&delete s[t]})}return r.rowGroupExpandedFlag++,e.recalculate()}function im(e,t,n){const r=e;return rm(e,t,n).then(()=>(cm(e),e.handleTableData(),r.rowGroupExpandedFlag++,lm(e),e.$nextTick())).then(()=>vg(e,!0,!0,!0)).then(()=>{setTimeout(()=>{e.updateCellAreas()},30)})}function om(e){const t=e,{isRowGroupStatus:n}=t;if(n){const t=e.computeAggregateOpts,{expandAll:n,expandGroupFields:r}=t;n?e.setAllRowGroupExpand(!0):r&&r.length&&e.setRowGroupExpandByField(r,!0)}}function am(e){const t=e,{fullDataRowIdData:n,fullAllDataRowIdData:r,afterFullData:i,afterTreeFullData:o}=t,a=e.computeTreeOpts,{transform:s,mapChildrenField:l}=a,c=a.children||a.childrenField,u={};let d=0;const{handleGetRowId:h}=ip(e);pc.eachTree(o,(e,t,i,o,a)=>{const s=h(e),l=r[s],c=o.map((e,t)=>t%2===0?Number(e)+1:".").join("");if(l)l.seq=c,l._seq=d,l.treeIndex=t,l._index=d,l._tIndex=d;else{const o={row:e,rowid:s,_seq:d,seq:c,index:t,$index:-1,_index:d,treeIndex:t,_tIndex:d,items:i,parent:a,level:0,height:0,resizeHeight:0,oTop:0,expandHeight:0};r[s]=o,n[s]=o}d++,u[s]=e},{children:s?l:c}),s&&i.forEach((e,t)=>{const n=h(e),i=r[n];i&&(i._index=t)}),t.afterFullRowMaps=u}function sm(e){const t=e,{afterFullData:n,fullDataRowIdData:r,fullAllDataRowIdData:i}=t,{handleGetRowId:o}=ip(e),a={};let s=0;n.forEach((e,t)=>{const n=o(e),l=i[n],c=t+1;if(l)l.seq=c,l._seq=s,l._index=t;else{const o={row:e,rowid:n,_seq:s,seq:c,index:-1,$index:-1,_index:t,treeIndex:-1,_tIndex:-1,items:[],parent:null,level:0,height:0,resizeHeight:0,oTop:0,expandHeight:0};i[n]=o,r[n]=o}s++,a[n]=e}),t.afterFullRowMaps=a}function lm(e){const t=e,{treeConfig:n}=t;n?am(e):sm(e)}function cm(e){const t=e,n=e,r=e,{treeConfig:i}=t,{isRowGroupStatus:o}=n,{fullAllDataRowIdData:a,treeExpandedMaps:s,rowGroupExpandedMaps:l}=r,c=e.computeAggregateOpts,u=e.computeTreeOpts,{handleGetRowId:d}=ip(e),h=[],p={};if(i&&u.transform){const t=u.children||u.childrenField;return pc.eachTree(r.afterTreeFullData,(e,t,n,r,i)=>{const o=d(e),l=d(i);if(!i||p[l]&&s[l]){const t=a[o];t&&(t._index=h.length),p[o]=1,h.push(e)}},{children:t}),r.afterFullData=h,em(e,h),h}if(o){const{childrenField:t}=c;return pc.eachTree(r.afterGroupFullData,(e,t,n,r,i)=>{const o=d(e),s=d(i);if(!i||p[s]&&l[s]){const t=a[o];t&&(t._index=h.length),p[o]=1,h.push(e)}},{children:t}),r.afterFullData=h,em(e,h),h}return r.afterFullData}function um(e){const t=e,n=e,r=e,{treeConfig:i}=t,{isRowGroupStatus:o}=n,{tableFullColumn:a,tableFullData:s,tableFullTreeData:l,tableFullGroupData:c}=r,u=e.computeFilterOpts,d=e.computeSortOpts,h=e.computeAggregateOpts,p=e.computeRendererOpts,f=e.computeTreeOpts,m=f.children||f.childrenField,{transform:g,rowField:v,parentField:b,mapChildrenField:y}=f,{isEvery:x,remote:w,filterMethod:C,isDeep:_}=u,{remote:S,sortMethod:k,multiple:E,chronological:O,isDeep:T}=d;let $=[],D=[];if(w&&S)o?(D=pc.searchTree(c,()=>!0,{original:!0,isEvery:!0,children:h.mapChildrenField,mapChildren:h.childrenField}),$=D):i&&g&&!1!==T?(D=pc.searchTree(l,()=>!0,{original:!0,isEvery:x,children:y,mapChildren:m}),$=D):($=i?l.slice(0):s.slice(0),D=$);else{const t=[];let n=[];if(a.forEach(e=>{const{field:r,sortable:i,order:o,filters:a}=e;if(!w&&a&&a.length){const n=[],r=[];a.forEach(e=>{e.checked&&(r.push(e),n.push(e.value))}),r.length&&t.push({column:e,valueList:n,itemList:r})}!S&&i&&o&&n.push({column:e,field:r,property:r,order:o,sortTime:e.sortTime})}),E&&O&&n.length>1&&(n=pc.orderBy(n,"sortTime")),!w&&t.length){const n=n=>t.every(({column:t,valueList:r,itemList:i})=>{const{filterMethod:o,filterRender:a}=t,s=ld(a)&&a.name?p[a.name]||Df.get(a.name):null,l=s?s.tableFilterMethod||s.filterMethod:null,c=s?s.tableFilterDefaultMethod||s.defaultTableFilterMethod||s.defaultFilterMethod:null,u=Sp(n,t);return o?i.some(r=>o({value:r.value,option:r,cellValue:u,row:n,column:t,$table:e})):l?i.some(r=>l({value:r.value,option:r,cellValue:u,row:n,column:t,$table:e})):C?C({$table:e,options:i,values:r,cellValue:u,row:n,column:t}):c?i.some(r=>c({value:r.value,option:r,cellValue:u,row:n,column:t,$table:e})):r.indexOf(pc.get(n,t.field))>-1});o?(D=pc.searchTree(c,n,{original:!0,isEvery:!0,children:h.mapChildrenField,mapChildren:h.childrenField}),$=D):i&&g&&!1!==_?(D=pc.searchTree(l,n,{original:!0,isEvery:x,children:y,mapChildren:m}),$=D):($=i?l.filter(n):s.filter(n),D=$)}else o?(D=pc.searchTree(c,()=>!0,{original:!0,isEvery:!0,children:h.mapChildrenField,mapChildren:h.childrenField}),$=D):i&&g&&!1!==_?(D=pc.searchTree(l,()=>!0,{original:!0,isEvery:x,children:y,mapChildren:m}),$=D):($=i?l.slice(0):s.slice(0),D=$);if(!S&&n.length)if(o){if(k){const t=k({data:D,sortList:n,$table:e});D=pc.isArray(t)?t:D}else{const t=pc.toTreeArray(D,{key:h.rowField,parentKey:h.parentField,children:h.mapChildrenField});D=pc.toArrayTree(pc.orderBy(t,n.map(({column:t,order:n})=>[qm(e,t),n])),{key:h.rowField,parentKey:h.parentField,children:h.childrenField,mapChildren:h.mapChildrenField})}$=D}else if(i&&g&&!1!==T){if(k){const t=k({data:D,sortList:n,$table:e});D=pc.isArray(t)?t:D}else{const t=pc.toTreeArray(D,{children:y});D=pc.toArrayTree(pc.orderBy(t,n.map(({column:t,order:n})=>[qm(e,t),n])),{key:v,parentKey:b,children:m,mapChildren:y})}$=D}else{if(k){const t=k({data:$,sortList:n,$table:e});$=pc.isArray(t)?t:$}else{if(E)$=pc.orderBy($,n.map(({column:t,order:n})=>[qm(e,t),n]));else{const t=n[0];let r;pc.isArray(t.sortBy)&&(r=t.sortBy.map(e=>[e,t.order])),$=pc.orderBy($,r||[t].map(({column:t,order:n})=>[qm(e,t),n]))}$=pc.orderBy($,n.map(({column:t,order:n})=>[qm(e,t),n]))}D=$}}r.afterFullData=$,r.afterTreeFullData=D,r.afterGroupFullData=D,lm(e)}function dm(e){const t=e,n=e,r=e,i=e.$xeGantt,{mouseConfig:o}=t,{isGroup:a,tableColumn:s,overflowX:l,scrollbarWidth:c,overflowY:u,scrollbarHeight:d,scrollXWidth:h,columnStore:p,editStore:f,isColLoading:m}=n,{visibleColumn:g,tableHeight:v,elemStore:b,currentRow:y,customHeight:x,customMinHeight:w,customMaxHeight:C,tHeaderHeight:_,tFooterHeight:S}=r,k=r.xeGanttView,E=e.$refs.refElem;if(!E||r.tBodyHeight&&!E.clientHeight)return;const O=pc.browse(),T=["main","left","right"],{leftList:$,rightList:D}=p;let M=u?c:0,F=l?d:0;const R=e.$refs.refEmptyPlaceholder,I=e.computeIsHeaderRenderOptimize,A=e.computeIsBodyRenderOptimize,P=e.computeIsFooterRenderOptimize,L=e.computeScrollbarOpts,N=e.computeMouseOpts,j=Ep(b["main-body-wrapper"]),B=Ep(b["main-body-table"]);R&&(R.style.top=`${_}px`,R.style.height=j?j.offsetHeight-F+"px":"");const V=L.x||{},z=L.y||{},H=e.computeScrollbarYToLeft;let W=l?"visible":"hidden";"visible"===V.visible||k?(F=d,W="visible"):"hidden"!==V.visible&&!1!==V.visible||(F=0,W="hidden");let q=u?"visible":"hidden";"hidden"===z.visible||!1===z.visible||i&&k&&i.reactData.showRightView&&!H?(M=0,q="hidden"):"visible"===z.visible&&(M=c,q="visible");let G=0,Y=0;const U=w-_-S-F;C&&(Y=Math.max(U,C-_-S-F)),x&&(G=x-_-S-F),G||B&&(G=B.clientHeight),G&&(Y&&(G=Math.min(Y,G)),G=Math.max(U,G));const K=e.$refs.refScrollXLeftCornerElem,X=e.$refs.refScrollXRightCornerElem,Z=e.$refs.refScrollXVirtualElem;Z&&(Z.style.height=`${F}px`,Z.style.visibility=W);const Q=e.$refs.refScrollXWrapperElem;Q&&(Q.style.width=E.clientWidth-M+"px",Q.style.left=H?`${M}px`:""),K&&(H?(K.style.width=`${M}px`,K.style.display=u&&M?"block":""):K.style.display=""),X&&(H?X.style.display="":(X.style.width=`${M}px`,X.style.display="visible"===W?"block":""));const J=e.$refs.refScrollYVirtualElem;J&&(J.style.width=`${M}px`,J.style.height=`${G+_+S}px`,J.style.visibility=q);const ee=e.$refs.refScrollYTopCornerElem;ee&&(ee.style.height=`${_}px`,ee.style.display=_&&"visible"===q?"block":"");const te=e.$refs.refScrollYWrapperElem;te&&(te.style.height=`${G}px`,te.style.top=`${_}px`);const ne=e.$refs.refScrollYBottomCornerElem;ne&&(ne.style.height=`${S}px`,ne.style.top=`${_+G}px`,ne.style.display=S&&"visible"===q?"block":"");const re=e.$refs.refRowExpandElem;return re&&(re.style.height=`${G}px`,re.style.top=`${_}px`),r.tBodyHeight=G,T.forEach((t,n)=>{const r=n>0?t:"",i=["header","body","footer"],o="left"===r;let c,u=[];r&&(u=o?$:D,c=o?e.$refs.refLeftContainer:e.$refs.refRightContainer),i.forEach(e=>{const n=Ep(b[`${t}-${e}-wrapper`]),i=Ep(b[`${t}-${e}-scroll`]),o=Ep(b[`${t}-${e}-table`]);if("header"===e){let e=s;const t=I;a?e=g:(t&&(m||!r&&l)||(e=g),r&&t&&(e=u||[]));const c=e.reduce((e,t)=>e+t.renderWidth,0);r&&(a?n&&(n.style.width=h?`${h}px`:""):t?n&&(n.style.width=c?`${c}px`:""):n&&(n.style.width=h?`${h}px`:"")),i&&(i.style.height=`${_}px`),o&&(o.style.width=c?`${c}px`:"")}else if("body"===e){i&&(i.style.maxHeight=C?`${Y}px`:"",i.style.height=x?`${G}px`:"",i.style.minHeight=`${U}px`),c&&(n&&(n.style.top=`${_}px`),c.style.height=`${x>0?x:v+_+S+F}px`,c.style.width=`${u.reduce((e,t)=>e+t.renderWidth,0)}px`);let a=s;const l=A;r&&(a=g,l&&(a=u||[]));const d=a.reduce((e,t)=>e+t.renderWidth,0);r&&(l?n&&(n.style.width=d?`${d}px`:""):n&&(n.style.width=h?`${h}px`:"")),o&&(o.style.width=d?`${d}px`:"",o.style.paddingRight=M&&r&&(O.firefox||O.safari)?`${M}px`:"");const p=Ep(b[`${t}-${e}-emptyBlock`]);p&&(p.style.width=d?`${d}px`:"")}else if("footer"===e){let e=s;const t=P;t&&(m||!r&&l)||(e=g),r&&t&&(e=u||[]);const a=e.reduce((e,t)=>e+t.renderWidth,0);r&&(t?n&&(n.style.width=a?`${a}px`:""):n&&(n.style.width=h?`${h}px`:"")),i&&(i.style.height=`${S}px`,c&&n&&(n.style.top=`${x>0?x-S-F:v+_}px`)),o&&(o.style.width=a?`${a}px`:"")}})}),y&&e.setCurrentRow(y),o&&N.selected&&f.selected.row&&f.selected.column&&e.addCellSelectedClass(),k&&k.handleUpdateStyle&&k.handleUpdateStyle(),e.$nextTick()}function hm(e,t){return e.triggerValidate?e.triggerValidate(t):e.$nextTick()}function pm(e,t,n){hm(e,"blur").catch(e=>e).then(()=>{e.handleEdit(n,t).then(()=>hm(e,"change")).catch(e=>e)})}function fm(e){const t=e,{sortConfig:n}=t;if(n){const t=e.computeSortOpts;let{defaultSort:r}=t;r&&(pc.isArray(r)||(r=[r]),r.length&&((n.multiple?r:r.slice(0,1)).forEach((t,n)=>{const{field:r,order:i}=t;if(r&&i){const t=e.getColumnByField(r);t&&t.sortable&&(t.order=i,t.sortTime=Date.now()+n)}}),t.remote||e.handleTableData(!0).then(dm)))}}function mm(e){const t=e,n=e,{checkboxConfig:r}=t;if(r){const{fullDataRowIdData:t}=n,r=e.computeCheckboxOpts,{checkAll:i,checkRowKeys:o}=r;if(i)Cm(e,!0,!0);else if(o){const n=[];o.forEach(e=>{const r=op(e);t[r]&&n.push(t[r].row)}),wm(e,n,!0,!0)}}}function gm(e){const t=e,n=e,{radioConfig:r}=t;if(r){const{fullDataRowIdData:t}=n,r=e.computeRadioOpts,{checkRowKey:i,reserve:o}=r,a=i?op(i):null;if(a&&(t[a]&&xm(e,t[a].row,!0),o)){const t=tp(e);n.radioReserveRow={[t]:a}}}}function vm(e){const t=e,n=e,{expandConfig:r}=t;if(r){const{fullDataRowIdData:t}=n,r=e.computeExpandOpts,{expandAll:i,expandRowKeys:o}=r;if(i)e.setAllRowExpand(!0);else if(o){const n=[];o.forEach(e=>{const r=op(e);t[r]&&n.push(t[r].row)}),e.setRowExpand(n,!0)}}}function bm(e,t){const n=e,r=e.computeRadioOpts;r.reserve&&(n.radioReserveRow=t)}function ym(e,t,n){const r=e,{checkboxReserveRowMap:i}=r,o=e.computeCheckboxOpts;if(o.reserve){const r=np(e,t);n?i[r]=t:i[r]&&delete i[r]}}function xm(e,t,n){const r=e,i=e.computeRadioOpts,{checkMethod:o}=i;return t&&(n||!o||o({$table:e,row:t}))&&(r.selectRadioRow=t,bm(e,t)),e.$nextTick()}function wm(e,t,n,r){return t&&!pc.isArray(t)&&(t=[t]),e.handleBatchSelectRows(t,!!n,r),e.checkSelectionStatus(),e.$nextTick()}function Cm(e,t,n){const r=e,i=e,o=e,{treeConfig:a}=r,{isRowGroupStatus:s}=i,{afterFullData:l,afterTreeFullData:c,afterGroupFullData:u,checkboxReserveRowMap:d,selectCheckboxMaps:h}=o,p=e.computeTreeOpts,f=e.computeAggregateOpts,m=p.children||p.childrenField,g=e.computeCheckboxOpts,{checkField:v,reserve:b,checkMethod:y}=g,{handleGetRowId:x}=ip(e),w=g.indeterminateField||g.halfField,C={};if(v){const r=r=>{(n||!y||y({$table:e,row:r}))&&(t&&(C[x(r)]=r),pc.set(r,v,t)),(a||s)&&w&&pc.set(r,w,!1)};a||s?pc.eachTree(l,r,{children:m}):l.forEach(r)}else s?t?pc.eachTree(u,t=>{if(n||!y||y({$table:e,row:t})){const e=x(t);C[e]=t}},{children:f.mapChildrenField}):!n&&y&&pc.eachTree(u,t=>{const n=x(t);!y({$table:e,row:t})&&h[n]&&(C[n]=t)},{children:f.mapChildrenField}):a?t?pc.eachTree(c,t=>{if(n||!y||y({$table:e,row:t})){const e=x(t);C[e]=t}},{children:m}):!n&&y&&pc.eachTree(c,t=>{const n=x(t);!y({$table:e,row:t})&&h[n]&&(C[n]=t)},{children:m}):t?!n&&y?l.forEach(t=>{const n=x(t);(h[n]||y({$table:e,row:t}))&&(C[n]=t)}):l.forEach(e=>{const t=x(e);C[t]=e}):!n&&y&&l.forEach(t=>{const n=x(t);!y({$table:e,row:t})&&h[n]&&(C[n]=t)});return b&&(t?pc.each(C,(e,t)=>{d[t]=e}):l.forEach(t=>ym(e,t,!1))),i.updateCheckboxFlag++,o.selectCheckboxMaps=v?{}:C,i.isAllSelected=t,i.isIndeterminate=!1,o.treeIndeterminateRowMaps={},e.checkSelectionStatus(),e.$nextTick()}function _m(e){const t=e,n=e,r=e,{treeConfig:i}=t,{expandColumn:o,selectRadioRow:a}=n,{fullDataRowIdData:s,fullAllDataRowIdData:l,radioReserveRow:c,selectCheckboxMaps:u,treeExpandedMaps:d,rowExpandedMaps:h,currentRow:p}=r,f=e.computeExpandOpts,m=e.computeTreeOpts,g=e.computeRadioOpts,v=e.computeCheckboxOpts;if(a&&!l[np(e,a)]&&(n.selectRadioRow=null),g.reserve&&c){const t=np(e,c);s[t]&&xm(e,s[t].row,!0)}r.selectCheckboxMaps=Gf(e,u),n.updateCheckboxFlag++,v.reserve&&wm(e,Yf(e,r.checkboxReserveRowMap),!0,!0),p&&!l[np(e,p)]&&(r.currentRow=null),r.rowExpandedMaps=o?Gf(e,h):{},n.rowExpandedFlag++,o&&f.reserve&&e.setRowExpand(Yf(e,r.rowExpandedReserveRowMap),!0),r.treeExpandedMaps=i?Gf(e,d):{},n.treeExpandedFlag++,i&&m.reserve&&e.setTreeExpand(Yf(e,r.treeExpandedReserveRowMap),!0)}const Sm=e=>{const t=e,n=e,{treeConfig:r}=t;if(r){const{fullAllDataRowIdData:t}=n,r=e.computeTreeOpts,{expandAll:i,expandRowKeys:o}=r;if(i)e.setAllTreeExpand(!0);else if(o){const n=[];o.forEach(e=>{const r=op(e),i=t[r];i&&n.push(i.row)}),e.setTreeExpand(n,!0)}}},km=(e,t)=>{const n=e,r=e,i=e.computeTreeOpts,o=e.computeCheckboxOpts,{transform:a,loadMethod:s}=i,{checkStrictly:l}=o;return new Promise(i=>{if(s){const{fullAllDataRowIdData:o,treeExpandLazyLoadedMaps:c}=r,u=np(e,t),d=o[u];c[u]=t,Promise.resolve(s({$table:e,row:t})).then(i=>{if(d&&(d.treeLoaded=!0),c[u]&&delete c[u],pc.isArray(i)||(i=[]),i)return e.loadTreeChildren(t,i).then(i=>{const{treeExpandedMaps:o}=r;return i.length&&!o[u]&&(o[u]=t),n.treeExpandedFlag++,!l&&e.isCheckedByCheckboxRow(t)&&wm(e,i,!0),e.$nextTick().then(()=>{if(a)return e.handleTableData(),lm(e),e.$nextTick()})})}).catch(()=>{const{treeExpandLazyLoadedMaps:e}=r;d&&(d.treeLoaded=!1),e[u]&&delete e[u]}).finally(()=>{n.treeExpandedFlag++,e.$nextTick().then(()=>e.recalculate()).then(()=>i())})}else i()})},Em=(e,t,n)=>{const r=e,{treeExpandedReserveRowMap:i}=r,o=e.computeTreeOpts;if(o.reserve){const r=np(e,t);n?i[r]=t:i[r]&&delete i[r]}},Om=(e,t)=>{const n=e,r=e;return new Promise(i=>{const o=e.computeExpandOpts,{loadMethod:a}=o;if(a){const{fullAllDataRowIdData:o,rowExpandLazyLoadedMaps:s}=r,l=np(e,t),c=o[l];s[l]=t,a({$table:e,row:t,rowIndex:e.getRowIndex(t),$rowIndex:e.getVMRowIndex(t)}).then(()=>{const{rowExpandedMaps:e}=r;c&&(c.expandLoaded=!0),e[l]=t,n.rowExpandedFlag++}).catch(()=>{c&&(c.expandLoaded=!1)}).finally(()=>{const{rowExpandLazyLoadedMaps:t}=r;t[l]&&delete t[l],n.rowExpandedFlag++,e.$nextTick().then(()=>e.recalculate()).then(()=>e.updateCellAreas()).then(()=>i())})}else i()})};function Tm(e,t,n){const r=e,{rowHeightStore:i}=r;n&&n.clientHeight&&(i[t]=n.clientHeight)}function $m(e){const t=e,{isAllOverflow:n}=t,r=e.$refs.refTableHeader,i=e.$refs.refTableBody,o=i?i.$el:null,a=e.computeDefaultRowHeight;let s=0;if(n){if(o){const e=r?r.$el:null;let t;t=o.querySelector("tr"),!t&&e&&(t=e.querySelector("tr")),t&&(s=t.clientHeight)}s||(s=a)}else s=a;return Math.max(18,s)}function Dm(e){const t=e,n=e,{isAllOverflow:r,expandColumn:i,isScrollYBig:o,scrollYHeight:a}=t,{elemStore:s,isResizeCellHeight:l,afterFullData:c,fullAllDataRowIdData:u}=n,d=e.computeRowOpts,h=e.computeCellOpts,p=e.computeDefaultRowHeight,f=Ep(s["main-body-scroll"]);if(f){const t=f.clientHeight;let n=f.scrollTop;o&&(n=Math.ceil((a-t)*Math.min(1,n/(Nf-t))));const s=n,m=n+t;let g=-1,v=0;const b=l||h.height||d.height;if(b||i||!r){const{handleGetRowId:t}=ip(e);let n=0,r=c.length;while(n<r){const e=Math.floor((n+r)/2),i=c[e],o=t(i),a=u[o]||{};a.oTop<=s?n=e+1:r=e}g=n===c.length?n:Math.max(0,n<c.length?n-2:0);for(let e=g,i=c.length;e<i;e++){const n=c[e],r=t(n),i=u[r]||{};if(v++,i.oTop>m||v>=100)break}}else g=Math.floor(s/p)-1,v=Math.ceil(t/p)+1;return{toVisibleIndex:Math.max(0,g),visibleSize:Math.max(6,v)}}return{toVisibleIndex:0,visibleSize:6}}function Mm(e,t,n,r){const i=`${n.startIndex}:${n.endIndex}`,o=t[i];if(o)n.startIndex=o.startIndex,n.endIndex=o.endIndex;else{for(let t=0,i=e.length;t<i;t++){const i=e[t],{startIndex:o,endIndex:a}=n,s=i[r],l=i[r+"span"],c=s+l;s<o&&o<c&&(n.startIndex=s),s<a&&a<c&&(n.endIndex=c),n.startIndex===o&&n.endIndex===a||(t=-1)}t[i]=n}}function Fm(e){const t={},n={},r={};if(e&&e.length)for(let i=0;i<e.length;i++){const{row:n,col:r,rowspan:o,colspan:a}=e[i];for(let e=0;e<o;e++){const i=n+e;for(let n=0;n<a;n++){const s=r+n;t[`${i}:${s}`]=e||n?{rowspan:0,colspan:0}:{rowspan:o,colspan:a}}}}return{mergeMaps:t,mergeRowMaps:n,mergeColMaps:r}}function Rm(e,t){const n=e,{fullAllDataRowIdData:r,fullColumnIdData:i,visibleColumn:o,afterFullData:a,mergeBodyList:s,mergeBodyMaps:l}=n;if(t){const{handleGetRowId:n}=ip(e);pc.isArray(t)||(t=[t]),t.forEach(e=>{let{row:t,col:c,rowspan:u,colspan:d}=e,h=-1,p=-1;if(pc.isNumber(t))h=t;else{const e=t?n(t):null,i=e?r[e]:null;i&&(h=i._index)}if(pc.isNumber(c))p=c;else{const e=c?c.id:null,t=e?i[e]:null;t&&(p=t._index)}if(h>-1&&p>-1&&(u||d)&&(u=pc.toNumber(u)||1,d=pc.toNumber(d)||1,u>1||d>1)){const e=a[h],t=o[p];let n=l[`${h}:${p}`];n?(n.rowspan=u,n.colspan=d,n._rowspan=u,n._colspan=d):(n={row:h,col:p,rowspan:u,colspan:d,_row:e,_col:t,_rowspan:u,_colspan:d},l[`${h}:${p}`]=n,s.push(n))}})}}function Im(e,t){const n=e,{mergeBodyList:r,fullColumnIdData:i,fullAllDataRowIdData:o,mergeBodyMaps:a}=n,s=[];if(t){const{handleGetRowId:n}=ip(e);pc.isArray(t)||(t=[t]),t.forEach(e=>{const{row:t,col:l}=e;let c=-1,u=-1;if(pc.isNumber(t))c=t;else{const e=t?n(t):null,r=e?o[e]:null;r&&(c=r._index)}if(pc.isNumber(l))u=l;else{const e=l?l.id:null,t=e?i[e]:null;t&&(u=t._index)}const d=pc.findIndexOf(r,e=>e.row===c&&e.col===u);if(d>-1){const e=r.splice(d,1),t=e[0];t&&(s.push(e[0]),a[`${c}:${u}`]&&delete a[`${c}:${u}`])}})}return s}function Am(e,t){const n=e,r=e,i=e,{showCustomHeader:o}=n,{footerTableData:a}=r,{mergeHeaderList:s,mergeHeaderMaps:l,fullColumnIdData:c}=i;if(t){const{visibleColumn:e}=i;pc.isArray(t)||(t=[t]),t.forEach(t=>{let{row:n,col:r,rowspan:i,colspan:u}=t;const d=pc.isNumber(n)?n:-1;let h=-1;if(pc.isNumber(r))h=r;else{const e=r?r.id:null,t=e?c[e]:null;t&&(h=t._index)}if(d>-1&&h>-1&&(i||u)){if(i=pc.toNumber(i)||1,u=pc.toNumber(u)||1,!o&&i>1)return void Of("vxe.error.notSupportProp",["[table] show-custom-header=false",`rowspan=${i}`,"rowspan=1"]);if(i>1||u>1){const t=a[d],n=e[h];let r=l[`${d}:${h}`];r?(r.rowspan=i,r.colspan=u,r._rowspan=i,r._colspan=u):(r={row:d,col:h,rowspan:i,colspan:u,_row:t,_col:n,_rowspan:i,_colspan:u},l[`${d}:${h}`]=r,s.push(r))}}})}}function Pm(e,t){const n=e,{mergeHeaderList:r,fullColumnIdData:i,mergeHeaderMaps:o}=n,a=[];return t&&(pc.isArray(t)||(t=[t]),t.forEach(e=>{const{row:t,col:n}=e,s=pc.isNumber(t)?t:-1;let l=-1;if(pc.isNumber(n))l=n;else{const e=n?n.id:null,t=e?i[e]:null;t&&(l=t._index)}const c=pc.findIndexOf(r,e=>e.row===s&&e.col===l);if(c>-1){const e=r.splice(c,1),t=e[0];t&&(a.push(t),o[`${s}:${l}`]&&delete o[`${s}:${l}`])}})),a}function Lm(e,t){const n=e,r=e,{footerTableData:i}=n,{mergeFooterList:o,mergeFooterMaps:a,fullColumnIdData:s}=r;if(t){const{visibleColumn:e}=r;pc.isArray(t)||(t=[t]),t.forEach(t=>{let{row:n,col:r,rowspan:l,colspan:c}=t;const u=pc.isNumber(n)?n:-1;let d=-1;if(pc.isNumber(r))d=r;else{const e=r?r.id:null,t=e?s[e]:null;t&&(d=t._index)}if(u>-1&&d>-1&&(l||c)&&(l=pc.toNumber(l)||1,c=pc.toNumber(c)||1,l>1||c>1)){const t=i[u],n=e[d];let r=a[`${u}:${d}`];r?(r.rowspan=l,r.colspan=c,r._rowspan=l,r._colspan=c):(r={row:u,col:d,rowspan:l,colspan:c,_row:t,_col:n,_rowspan:l,_colspan:c},a[`${u}:${d}`]=r,o.push(r))}})}}function Nm(e,t){const n=e,{mergeFooterList:r,fullColumnIdData:i,mergeFooterMaps:o}=n,a=[];return t&&(pc.isArray(t)||(t=[t]),t.forEach(e=>{const{row:t,col:n}=e,s=pc.isNumber(t)?t:-1;let l=-1;if(pc.isNumber(n))l=n;else{const e=n?n.id:null,t=e?i[e]:null;t&&(l=t._index)}const c=pc.findIndexOf(r,e=>e.row===s&&e.col===l);if(c>-1){const e=r.splice(c,1),t=e[0];t&&(a.push(t),o[`${s}:${l}`]&&delete o[`${s}:${l}`])}})),a}function jm(e,t,n,r){const i=e,{tableFullColumn:o}=i,a=e.computeSortOpts,{multiple:s,remote:l,orders:c}=a;if(pc.isArray(n)||(n=[n]),n&&n.length){const i={};s||(n=[n[0]],o.forEach(e=>{e.order&&(i[e.id]=e)}));const a={};let u=null;return n.forEach((t,n)=>{let{field:r,order:i}=t,o=r;pc.isString(r)&&(o=e.getColumnByField(r)),u||(u=o),o&&o.sortable&&(c&&-1===c.indexOf(i)&&(i=Hf(e,o)),o.order!==i&&(o.order=i),o.sortTime=Date.now()+n,a[o.id]=o)}),s||pc.each(i,(e,t)=>{a[t]||(e.order=null)}),r&&(l||e.handleTableData(!0)),t&&e.handleColumnSortEvent(t,u),e.$nextTick().then(()=>(Xg(e),e.updateCellAreas(),dm(e)))}return e.$nextTick()}function Bm(e){const t=e,{tableFullColumn:n}=t;n.forEach(e=>{e.order=null})}function Vm(e,t){const n=e,r=e,{editConfig:i,editRules:o}=n,{parentHeight:a,tableColumn:s}=r;let l=n[t];if("minHeight"===t){const e=Tf().table.minHeight;pc.eqNull(l)&&(gd(e)?s.length?o&&ld(i)&&(l=144):l=40:l=e)}let c=0;if(l)if("100%"===l||"auto"===l)c=a;else{const t=e.getExcludeHeight();c=rh(l)?Math.floor((pc.toInteger(l)||1)/100*a):pc.toNumber(l),c=Math.max(40,c-t)}return c}function zm(e){const t=e,n=e,r=e,{elemStore:i}=r,o=Ep(i["main-body-wrapper"]);if(!o)return;const a=e.$refs.refScrollYHandleElem;if(!a)return;const s=e.$refs.refScrollXHandleElem;if(!s)return;const l=e.computeColumnOpts;let c=0;const u=40,d=o.clientWidth;let h=d,p=h/100;const{fit:f}=t,{columnStore:m}=n,{resizeList:g,pxMinList:v,autoMinList:b,pxList:y,scaleList:x,scaleMinList:w,autoList:C,remainList:_}=m,S=e=>{const t=e.maxWidth||l.maxWidth;return t&&"auto"!==t?rh(t)?Math.floor(pc.toInteger(t)*p):pc.toInteger(t):0};v.forEach(e=>{let t=pc.toInteger(e.minWidth);const n=S(e);n&&(t=Math.min(t,n)),c+=t,e.renderWidth=t}),b.forEach(e=>{let t=Math.max(60,pc.toInteger(e.renderAutoWidth));const n=S(e);n&&(t=Math.min(t,n)),c+=t,e.renderWidth=t}),w.forEach(e=>{let t=Math.floor(pc.toInteger(e.minWidth)*p);const n=S(e);n&&(t=Math.min(t,n)),c+=t,e.renderWidth=t}),x.forEach(e=>{let t=Math.floor(pc.toInteger(e.width)*p);const n=S(e);n&&(t=Math.min(t,n)),c+=t,e.renderWidth=t}),y.forEach(e=>{let t=pc.toInteger(e.width);const n=S(e);n&&(t=Math.min(t,n)),c+=t,e.renderWidth=t}),C.forEach(e=>{let t=Math.max(60,pc.toInteger(e.renderAutoWidth));const n=S(e);n&&(t=Math.min(t,n)),c+=t,e.renderWidth=t}),g.forEach(e=>{const t=pc.toInteger(e.resizeWidth);c+=t,e.renderWidth=t});const k=w.concat(v).concat(b).filter(e=>!S(e));if(h-=c,p=h>0?Math.floor(h/(k.length+_.length)):0,f?h>0&&k.forEach(e=>{c+=p,e.renderWidth+=p}):p=u,_.forEach(e=>{const t=Math.max(p,u);e.renderWidth=t,c+=t}),f){const e=x.concat(w).concat(v).concat(b).concat(_).filter(e=>!S(e));let t=e.length-1;if(t>0){let n=d-c;if(n>0){while(n>0&&t>=0)n--,e[t--].renderWidth++;c=d}}}n.scrollXWidth=c,n.resizeWidthFlag++,Kg(e),Wg(e)}const Hm=(e,t,n,r)=>{const i=e,{fullCellHeightMaps:o}=i;let a=o[t];a||(a={},o[t]=a);const s=r.querySelectorAll(`.vxe-cell--wrapper[rowid="${n.rowid}"]`);let l=null,c=0,u=!1;for(let h=0;h<s.length;h++){const e=s[h],t=e.parentElement,n=t.style,r=n.height,i=e.getAttribute("colid")||"";n.height="",l||(l=getComputedStyle(t),c=l?Math.ceil(pc.toNumber(l.paddingTop)+pc.toNumber(l.paddingBottom)):0);const o=e?e.clientHeight:0,d=Math.ceil(o+c);a[i]!==d&&(u=!0,a[i]=d),n.height=r}const d=Gh(a,u);return d},Wm=e=>{const t=e,n=e,r=e,{treeConfig:i}=t,{tableData:o,isAllOverflow:a,scrollYLoad:s,scrollXLoad:l}=n,{fullAllDataRowIdData:c}=r,u=e.$refs.refElem;if(!u||!u.clientWidth)return;const d=e.computeTreeOpts,h=e.computeDefaultRowHeight;if(!a&&(s||l||i&&d.showLine)){const{handleGetRowId:t}=ip(e);u.setAttribute("data-calc-row","Y"),o.forEach(n=>{const r=t(n),i=c[r];if(i){const t=Hm(e,r,i,u);i.height=Math.max(h,t)}u.removeAttribute("data-calc-row")}),n.calcCellHeightFlag++}};function qm(e,t){const n=e,{isRowGroupStatus:r}=n,{sortBy:i,sortType:o,aggFunc:a}=t;return r&&a?n=>{if(n.isAggregate){const e=n.aggData,r=e?e[t.field]:null;return r?r.value:null}let r;return r=i?pc.isFunction(i)?i({row:n,column:t}):pc.get(n,i):e.getCellLabel(n,t),o&&"auto"!==o?"number"===o?pc.toNumber(r):"string"===o?pc.toValueString(r):r:gd(r)||isNaN(r)?r:pc.toNumber(r)}:n=>{let r;return r=i?pc.isFunction(i)?i({row:n,column:t}):pc.get(n,i):e.getCellLabel(n,t),o&&"auto"!==o?"number"===o?pc.toNumber(r):"string"===o?pc.toValueString(r):r:gd(r)||isNaN(r)?r:pc.toNumber(r)}}function Gm(e,t){const n=e,r=e.$refs.refTooltip;clearTimeout(n.tooltipTimeout),t?e.closeTooltip():r&&r.setActived&&r.setActived(!0)}function Ym(e){const t=kf(e);Vf=null,t.row=null}function Um(e){const t=e,{dragRow:n,dragCol:r}=t;(n||r)&&(tg(e),Zm(e),ig(e),Ym(e),t.dragRow=null,t.dragCol=null)}function Km(e){og(e),Ym(e),mg(e,!1,!0,!0)}function Xm(e){ag(e),Ym(e),mg(e,!0,!0,!0)}function Zm(e){const t=e.$el;if(t){const e="row--drag-origin";pc.arrayEach(t.querySelectorAll(`.${e}`),t=>{t.draggable=!1,oh(t,e)})}}function Qm(e,t){const n=e.$el;if(n){const r="row--drag-origin",i=np(e,t);pc.arrayEach(n.querySelectorAll(`[rowid="${i}"]`),e=>{ah(e,r)})}}function Jm(e,t){const n=e,r=e,{dragConfig:i}=r,{dragRow:o}=n,a=e.computeRowDragOpts,{tooltipMethod:s}=a,l=s||(i?i.rowTooltipMethod:null);let c="";if(l){const t={$table:e,row:o};c=`${l(t)||""}`}else c=$f("vxe.table.dragTip",[t.textContent||""]);n.dragTipText=c}function eg(e,t){const n=e.$el;if(n){const e=[];pc.eachTree([t],t=>{e.push(`[colid="${t.id}"]`)});const r="col--drag-origin";pc.arrayEach(n.querySelectorAll(e.join(",")),e=>{ah(e,r)})}}function tg(e){const t=e.$el;if(t){const e="col--drag-origin";pc.arrayEach(t.querySelectorAll(`.${e}`),t=>{t.draggable=!1,oh(t,e)})}}function ng(e,t){const n=e,{dragCol:r}=n,i=e.computeColumnDragOpts,{tooltipMethod:o}=i;let a="";if(o){const t={$table:e,column:r};a=`${o(t)||""}`}else a=$f("vxe.table.dragTip",[t.textContent||""]);n.dragTipText=a}function rg(e,t,n,r,i,o){const a=e.$xeGantt,s=e,l=e;let c=e.$refs.refElem;if(a&&n){const e=a.$refs.refGanttContainerElem;e&&(c=e)}if(!c)return;const{overflowX:u,scrollbarWidth:d,overflowY:h,scrollbarHeight:p}=s,{prevDragToChild:f}=l,m=c.getBoundingClientRect(),g=h?d:0,v=u?p:0,b=c.clientWidth,y=c.clientHeight;if(n){const t=e.$refs.refDragRowLineElem;if(t)if(i){const r=e.computeScrollbarYToLeft,i=n.getBoundingClientRect();let a=n.clientHeight;const s=Math.max(1,i.y-m.y);s+a>y-v&&(a=y-s-v),t.style.display="block",t.style.left=`${r?g:0}px`,t.style.top=`${s}px`,t.style.height=`${a}px`,t.style.width=b-g+"px",t.setAttribute("drag-pos",o),t.setAttribute("drag-to-child",f?"y":"n")}else t.style.display=""}else if(r){const t=e.$refs.refDragColLineElem;if(t)if(i){const n=e.computeScrollbarXToTop,i=e.$refs.refLeftContainer,a=i?i.clientWidth:0,s=e.$refs.refRightContainer,l=s?s.clientWidth:0,c=r.getBoundingClientRect();let u=r.clientWidth;const d=Math.max(0,c.y-m.y),h=a;let p=c.x-m.x;p<h&&(u-=h-p,p=h);const x=b-l-(l?0:g);p+u>x&&(u=x-p),t.style.display="block",t.style.top=`${d}px`,t.style.left=`${p}px`,t.style.width=`${u}px`,t.style.height=f?`${c.height}px`:y-d-(n?0:v)+"px",t.setAttribute("drag-pos",o),t.setAttribute("drag-to-child",f?"y":"n")}else t.style.display=""}const x=e.$refs.refDragTipElem;x&&(x.style.display="block",x.style.top=`${Math.min(c.clientHeight-c.scrollTop-x.clientHeight,t.clientY-m.y)}px`,x.style.left=`${Math.min(c.clientWidth-c.scrollLeft-x.clientWidth-16,t.clientX-m.x)}px`,x.setAttribute("drag-status",i?f?"sub":"normal":"disabled"))}function ig(e){const t=e.$refs.refDragTipElem,n=e.$refs.refDragRowLineElem,r=e.$refs.refDragColLineElem;t&&(t.style.display=""),n&&(n.style.display=""),r&&(r.style.display="")}function og(e){const t=e.$xeGantt,n=e,r=e;let i=e.$refs.refElem;const o=[".vxe-body--row"];if(t){const e=t.$refs.refGanttContainerElem;e&&(i=e),o.push(".vxe-gantt-view--body-row",".vxe-gantt-view--chart-row")}ig(e),Zm(e),wf(i,o),r.prevDragToChild=!1,n.dragRow=null,n.dragCol=null}function ag(e){const t=e,n=e,r=e.$refs.refElem;ig(e),tg(e),_f(r,[".vxe-table--column"]),n.prevDragToChild=!1,t.dragRow=null,t.dragCol=null}function sg(e,t,n,r,i,o,a,s){const l=e,c=o||i;if(!c)return e.$nextTick();s.cell=i;const{tooltipStore:u}=l,{column:d,row:h}=s,{showAll:p,contentMethod:f}=n,m=pc.toString("html"===d.type?c.innerText:c.textContent).trim(),g=c.scrollWidth>c.clientWidth;let v=!1,b=null,y="";if(f&&(b=f(s)),p?pc.eqNull(b)?(v=!0,y=m):""!==b&&!1!==b&&(v=!0,y=""+b):pc.eqNull(b)?(v=g,y=m):""!==b&&!1!==b?(v=!0,y=b):y=m,v&&y){const t=md(y);Object.assign(u,{row:h,column:d,visible:!0,content:t,type:r,currOpts:n}),e.$nextTick(()=>{const n=e.$refs.refTooltip;n&&n.open&&n.open(g?c:a,t)})}return e.$nextTick()}function lg(e,t,n,r){const i=e,{fullColumnIdData:o}=i,a=pp(e,t);return a&&o[a.id]?Rp(e,!r||!1!==r.colAlign,a,n):e.$nextTick()}function cg(e,t,n){const r=e,{rowExpandedReserveRowMap:i}=r,o=e.computeExpandOpts;if(o.reserve){const r=np(e,t);n?i[r]=t:i[r]&&delete i[r]}}function ug(e){const t=e,{mergeCells:n}=t;n&&e.setMergeCells(n)}function dg(e){const t=e,{mergeHeaderCells:n}=t;n&&e.setMergeHeaderCells(n)}function hg(e){const t=e,{mergeFooterCells:n,mergeFooterItems:r}=t,i=n||r;i&&e.setMergeFooterCells(i)}function pg(e){const t=e,n=e;return e.$nextTick().then(()=>{const{scrollXLoad:r,scrollYLoad:i}=t,{scrollXStore:o,scrollYStore:a}=n,s=e.computeVirtualYOpts,l=e.computeVirtualXOpts;if(r){const{toVisibleIndex:t,visibleSize:n}=Uf(e),r=Math.max(0,l.oSize?pc.toNumber(l.oSize):0);o.preloadSize=pc.toNumber(l.preSize),o.offsetSize=r,o.visibleSize=n,o.endIndex=Math.max(o.startIndex+o.visibleSize+r,o.endIndex),o.visibleStartIndex=Math.max(o.startIndex,t),o.visibleEndIndex=Math.min(o.endIndex,t+n),e.updateScrollXData().then(()=>{Dg(e)})}else e.updateScrollXSpace();const c=$m(e);a.rowHeight=c,t.rowHeight=c;const{toVisibleIndex:u,visibleSize:d}=Dm(e);if(i){const t=Math.max(0,s.oSize?pc.toNumber(s.oSize):0);a.preloadSize=pc.toNumber(s.preSize),a.offsetSize=t,a.visibleSize=d,a.endIndex=Math.max(a.startIndex+d+t,a.endIndex),a.visibleStartIndex=Math.max(a.startIndex,u),a.visibleEndIndex=Math.min(a.endIndex,u+d),e.updateScrollYData().then(()=>{Ag(e)})}else e.updateScrollYSpace()})}function fg(e){const t=e,n=e,{scrollXWidth:r,scrollYHeight:i}=t,{elemStore:o}=n,a=e.computeScrollbarOpts,s=e.$refs.refElem;if(!s||!s.clientWidth)return;const l=Ep(o["main-body-wrapper"]),c=Ep(o["main-header-table"]),u=Ep(o["main-footer-table"]),d=e.$refs.refScrollXHandleElem,h=e.$refs.refScrollYHandleElem;let p=!1,f=!1;if(l){p=i>l.clientHeight,h&&(t.scrollbarWidth=a.width||h.offsetWidth-h.clientWidth||14),t.overflowY=p,f=r>l.clientWidth,d&&(t.scrollbarHeight=a.height||d.offsetHeight-d.clientHeight||14),t.overflowX=f;const o=c?c.clientHeight:0,s=u?u.clientHeight:0;n.tableHeight=l.offsetHeight,n.tHeaderHeight=o,n.tFooterHeight=s,t.overflowX=f,t.parentHeight=Math.max(o+s+20,e.getParentHeight())}f&&e.checkScrolling()}function mg(e,t,n,r){const i=e,o=e.$refs.refElem;if(!o||!o.clientWidth)return e.$nextTick();const a=e.$refs.refVarElem;if(a){const[t,n,r,i]=a.children;Tm(e,"default",t),Tm(e,"medium",n),Tm(e,"small",r),Tm(e,"mini",i)}return n&&Gg(e),t&&zm(e),fg(e),dm(e),Zg(e),t&&Qg(e),i.rceRunTime=Date.now(),pg(e).then(()=>{if(n&&Gg(e),t&&zm(e),r&&Wm(e),dm(e),fg(e),t&&Xg(e),Zg(e),t&&Qg(e),i.rceRunTime=Date.now(),t)return pg(e)})}const gg=50;function vg(e,t,n,r,i){const o=e,a=e,s=(i?i.minRunDelay:gg)||gg;return new Promise(i=>{const{customStore:l,tableData:c,tableColumn:u}=o,{rceTimeout:d,rceRunTime:h}=a,p=a.xeGanttView,f=e.computeResizeOpts;let m=a.rceDelay;m=h&&h>Date.now()-500?Math.min(Math.max(60,Math.min(800,c.length/8)),m+50):0,a.rceDelay=m;const g=f.refreshDelay||30,v=m+g,b=e.$refs.refElem;b&&b.clientWidth&&(zm(e),Zg(e)),l.visible&&e.handleCustomStyle&&e.handleCustomStyle();const y=c.length*u.length;y<400?m=20:y<600?m=40:y<800&&(m=80),d?(clearTimeout(d),h&&h+s<Date.now()?i(mg(e,t,n,r)):e.$nextTick(()=>{i()})):i(mg(e,t,n,r)),p&&p.handleLazyRecalculate&&p.handleLazyRecalculate(),a.rceTimeout=setTimeout(()=>{a.rceDelay=0,a.rceTimeout=void 0,mg(e,t,n,r),p&&p.handleLazyRecalculate&&p.handleLazyRecalculate()},v)})}function bg(e){const t=e;t.rsePending||(t.rsePending=!0,vg(e,!0,!0,!0,{minRunDelay:200}).then(()=>{t.rsePending=!1}).catch(()=>{t.rsePending=!1}))}function yg(e){const t=e,n=e,{visibleColumn:r}=n,i=[];r.forEach(e=>{e.aggFunc&&i.push(e)}),t.aggHandleAggColumns=i}function xg(e,t){const n=e,r=[],i=[];t&&(pc.isArray(t)?t:[t]).forEach(e=>{r.push(e),i.push({field:e})}),n.rowGroupList=i,n.aggHandleFields=r,yg(e)}function wg(e,t){const n=e,{fullColumnFieldData:r}=n,i=e.computeAggregateOpts,o=e.computeAggFuncColumns,{mapChildrenField:a}=i,s=i.calcValuesMethod||i.countMethod||i.aggregateMethod;a&&(pc.lastEach(t,e=>{let t=0;pc.each(e[a],e=>{e.isAggregate?t+=e.childCount||0:t++}),e.childCount=t}),e.handlePivotTableAggData?e.handlePivotTableAggData(t):pc.lastEach(t,t=>{const n={},i=t.aggData,l=t.groupField,c=t.groupContent,u=a&&t[a]||[],d=t.childCount,h=r[l]||{};o.forEach(r=>{const{field:o}=r,a=i?i[o]:null,p={$table:e,groupField:l,groupColumn:h?h.column:null,column:r,groupValue:c,childList:u,childCount:d,aggValue:a?a.value:0,children:u,totalValue:d};let f=0;u.length&&u[0].isAggregate?pc.each(u,e=>{if(e.isAggregate){const t=e.aggData[o];t&&(f+=t.value)}}):f=s?s(p):t.childCount,n[o]={type:"count",value:f,label:f}}),t.aggData=n}))}function Cg(e){const t=e,n=e,r=e,{aggregateConfig:i,rowGroupConfig:o}=t,{isRowGroupStatus:a}=n,{tableFullGroupData:s}=r,l=e.computeAggregateOpts,{mapChildrenField:c}=l;if((i||o)&&a){const t=[];pc.eachTree(s,e=>{e.isAggregate&&t.push(e)},{children:c}),wg(e,t)}}function _g(e,t,n,r){let i=t,o=t;if(n){const a=e.computeAggregateOpts,{rowField:s,parentField:l,separator:c,childrenField:u,mapChildrenField:d}=a,h=e.computeRowOpts,p=e.computeCheckboxOpts,{checkField:f}=p,m=p.indeterminateField||p.halfField,g=n[0];if(g&&s&&l&&u&&d){i=[],o=[];const a=g.field,p=e.getColumnByField(a),v={},b={},y=[],x=tp(e);t.forEach(t=>{const i=p?e.getCellLabel(t,p):pc.get(t,a);let o=pc.eqNull(i)?"":i;if(r){const r=[o];n.slice(1).forEach(n=>{const i=n.field,a=e.getColumnByField(i),s=a?e.getCellLabel(t,a):pc.get(t,i),l=pc.eqNull(s)?"":s;o+=(c||" / ")+l,r.push(l)}),b[o]||(b[o]=r)}let s=v[o];s||(s=[],v[o]=s),t.isAggregate&&(t.isAggregate=void 0),s.push(t)}),r?pc.objectEach(v,(e,t)=>{const n={isAggregate:!0,aggData:{},groupContent:t,groupCombineds:b[t],groupField:a,childCount:0,[s]:Qh(),[l]:null,[u]:e,[d]:e};n[x]=Jh(h,n,x),f&&(n[f]=!1),m&&(n[m]=!1),y.push(n),o.push(n),i.push(n)}):pc.objectEach(v,(t,r)=>{const{fullData:c,treeData:p}=_g(e,t,n.slice(1)),g={isAggregate:!0,aggData:{},groupContent:r,groupCombineds:[],groupField:a,childCount:0,[s]:Qh(),[l]:null,[u]:p,[d]:p};g[x]=Jh(h,g,x),f&&(g[f]=!1),m&&(g[m]=!1),y.push(g),o.push(g),i.push(g),c.length&&i.push(...c)}),wg(e,y)}}return{treeData:o,fullData:i}}function Sg(e,t,n){const r=e.computeAggregateOpts,{mode:i}=r,o="combined"===i,a=_g(e,t,n,o);return a}function kg(e,t,n,r){const i=e,o=e,a=e,{keepSource:s,treeConfig:l,aggregateConfig:c,rowGroupConfig:u}=i,{rowGroupList:d,scrollYLoad:h}=o,{initStatus:p,scrollYStore:f,scrollXStore:m,lastScrollLeft:g,lastScrollTop:v}=a,b=e.computeRowOpts,y=e.computeTreeOpts,x=e.computeExpandOpts,{transform:w}=y,C=y.children||y.childrenField;let _=[],S=t?t.slice(0):[];if(S.length>Pf&&Of("vxe.error.errMaxRow",[Pf]),l&&d.length)return Of("vxe.error.noTree",["aggregate-config"]),e.$nextTick();if(b.drag&&d.length)return Of("vxe.error.errConflicts",["row-config.drag","aggregate-config"]),e.$nextTick();let k=!1;if(l)w?(y.rowField||Of("vxe.error.reqProp",["tree-config.rowField"]),y.parentField||Of("vxe.error.reqProp",["tree-config.parentField"]),C||Of("vxe.error.reqProp",["tree-config.childrenField"]),y.mapChildrenField||Of("vxe.error.reqProp",["tree-config.mapChildrenField"]),C===y.mapChildrenField&&Of("vxe.error.errConflicts",["tree-config.childrenField","tree-config.mapChildrenField"]),_=pc.toArrayTree(S,{key:y.rowField,parentKey:y.parentField,children:C,mapChildren:y.mapChildrenField}),S=_.slice(0)):_=S.slice(0);else if((c||u)&&d.length){const t=Sg(e,S,d);_=t.treeData,S=t.fullData,k=!0}o.isRowGroupStatus=k,f.startIndex=0,f.endIndex=1,m.startIndex=0,m.endIndex=1,a.cvCacheMaps={},o.isRowLoading=!0,o.scrollVMLoading=!1,o.treeExpandedFlag++,o.rowExpandedFlag++,a.insertRowMaps={},o.insertRowFlag++,a.removeRowMaps={},o.removeRowFlag++,a.fullCellHeightMaps={},a.fullCellStoreMaps={};const E=em(e,S);return a.tableFullData=S,a.tableFullTreeData=k?[]:_,a.tableFullGroupData=k?_:[],e.cacheRowMap(r),a.tableSynchData=t,r&&(a.isResizeCellHeight=!1),s&&e.cacheSourceMap(S),e.clearCellAreas&&i.mouseConfig&&(e.clearCellAreas(),e.clearCopyCellArea()),e.clearMergeCells(),e.clearMergeFooterItems(),e.clearHistory(),e.handleTableData(!0),e.updateFooter(),e.handleUpdateBodyMerge(),e.$nextTick().then(()=>{Wg(e),dm(e)}).then(()=>{pg(e),Jf(e)}).then(()=>{const t=e.computeVirtualYOpts;return E&&(f.endIndex=f.visibleSize),E&&(o.expandColumn&&"fixed"!==x.mode&&Of("vxe.error.notConflictProp",['column.type="expand','expand-config.mode="fixed"']),"scroll"===t.mode&&o.expandColumn&&"fixed"===x.mode&&Ef("vxe.error.notConflictProp",["virtual-y-config.mode=scroll","expand-config.mode=inside"]),i.height||i.maxHeight||Of("vxe.error.reqSupportProp",["virtual-y-config.enabled = true","height | max-height"])),_m(e),e.checkSelectionStatus(),e.dispatchEvent("data-change",{visibleColumn:a.visibleColumn,visibleData:a.afterFullData},null),new Promise(t=>{e.$nextTick().then(()=>mg(e,!1,!1,!1)).then(()=>{mg(e,!1,!0,!0),Xg(e)}).then(()=>{let n=g,r=v;const a=e.computeVirtualXOpts,s=e.computeVirtualYOpts;a.scrollToLeftOnChange&&(n=0),s.scrollToTopOnChange&&(r=0),o.isRowLoading=!1,mg(e,!1,!1,!1),Qg(e),Jf(e),i.showOverflow||setTimeout(()=>{vg(e,!1,!0,!0),setTimeout(()=>vg(e,!1,!0,!0),3e3)},2e3),h===E?Xh(e,n,r).then(()=>{mg(e,!1,!0,!0),Xg(e),Qg(e),e.$nextTick(()=>t())}):setTimeout(()=>{Xh(e,n,r).then(()=>{mg(e,!1,!0,!0),Xg(e),Qg(e),e.$nextTick(()=>t())})})})}).then(()=>{p?e.dispatchEvent("data-rendered",{isReload:n,visibleColumn:a.visibleColumn,visibleData:a.afterFullData},null):e.dispatchEvent("init-rendered",{visibleColumn:a.visibleColumn,visibleData:a.afterFullData},null)})})}function Eg(e){mm(e),gm(e),vm(e),Sm(e),om(e),ug(e),dg(e),hg(e),e.$nextTick(()=>{const t=e;e.dispatchEvent("init-rendered",{visibleColumn:t.visibleColumn,visibleData:t.afterFullData},null),setTimeout(()=>e.recalculate())})}function Og(e){fm(e)}function Tg(e){const t=e,n=e,{scrollXLoad:r}=t,{visibleColumn:i,scrollXStore:o,fullColumnIdData:a}=n,s=r?i.slice(o.startIndex,o.endIndex):i.slice(0);s.forEach((e,t)=>{const n=e.id,r=a[n];r&&(r.$index=t)}),t.tableColumn=s}function $g(e){const t=e,n=e,r=pc.orderBy(n.collectColumn,"renderSortNumber");n.collectColumn=r;const i=Dp(r);n.tableFullColumn=i,t.updateColFlag++,Zf(e)}function Dg(e){const t=e,n=e,{isScrollXBig:r}=t,{mergeBodyList:i,mergeFooterList:o,mergeBodyColMaps:a,scrollXStore:s}=n,{preloadSize:l,startIndex:c,endIndex:u,offsetSize:d}=s,{toVisibleIndex:h,visibleSize:p}=Uf(e),f={startIndex:Math.max(0,r?h-1:h-1-d-l),endIndex:r?h+p:h+p+d+l};s.visibleStartIndex=h-1,s.visibleEndIndex=h+p+1,Mm(i.concat(o),a,f,"col");const{startIndex:m,endIndex:g}=f;(h<=c||h>=u-p-1)&&(c===m&&u===g||(s.startIndex=m,s.endIndex=g,e.updateScrollXData())),e.closeTooltip()}function Mg(e,t){const n=e,r=e,i=e,o=[],a=[],s=[],{isGroup:l,columnStore:c}=r,{collectColumn:u,tableFullColumn:d,scrollXStore:h,fullColumnIdData:p}=i;if(l){const e=[],t=[],n=[];pc.eachTree(u,(e,t,n,r,i)=>{const l=pd(e);i&&i.fixed&&(e.fixed=i.fixed),i&&(e.fixed||"")!==(i.fixed||"")&&Of("vxe.error.groupFixed"),l?e.visible=!!pc.findTree(e.children,e=>!pd(e)&&e.visible):e.visible&&("left"===e.fixed?o.push(e):"right"===e.fixed?s.push(e):a.push(e))}),u.forEach(r=>{r.visible&&("left"===r.fixed?e.push(r):"right"===r.fixed?n.push(r):t.push(r))}),r.tableGroupColumn=e.concat(t).concat(n)}else d.forEach(e=>{e.visible&&("left"===e.fixed?o.push(e):"right"===e.fixed?s.push(e):a.push(e))});const f=o.concat(a).concat(s);i.visibleColumn=f,Kg(e);const m=Qf(e);if(r.hasFixedColumn=o.length>0||s.length>0,Object.assign(c,{leftList:o,centerList:a,rightList:s}),m&&(n.spanMethod&&Ef("vxe.error.scrollErrProp",["span-method"]),n.footerSpanMethod&&Ef("vxe.error.scrollErrProp",["footer-span-method"]),t)){const{visibleSize:t}=Uf(e);h.startIndex=0,h.endIndex=t,h.visibleSize=t,h.visibleStartIndex=0,h.visibleEndIndex=t}return f.length===i.visibleColumn.length&&i.visibleColumn.every((e,t)=>e===f[t])||(e.clearMergeCells(),e.clearMergeFooterItems()),f.forEach((e,t)=>{const n=e.id,r=p[n];r&&(r._index=t)}),Tg(e),yg(e),t?e.updateFooter().then(()=>e.recalculate()).then(()=>(e.updateCellAreas(),e.recalculate())):e.updateFooter()}function Fg(e){const t=e,{collectColumn:n}=t,r={},i={};let o=1;pc.eachTree(n,(e,t,n,a,s)=>{const{id:l,field:c}=e,u=s?s.id:null,d={$index:-1,_index:-1,column:e,colid:l,index:t,items:n,parent:s||null,width:0,oLeft:0};e.parentId=u,e.defaultParentId=u,e.sortNumber=o,e.renderSortNumber=o,o++,c&&(i[c]&&Of("vxe.error.colRepet",["field",c]),i[c]=d),r[l]=d}),t.fullColumnIdData=r,t.fullColumnFieldData=i}function Rg(e){const t=e,n=e.$refs.$xeToolbar,r=e,i=e,{scrollXLoad:o,scrollYLoad:a,expandColumn:s}=r,l=e.computeExpandOpts;return Zf(e),Mg(e,!0).then(()=>{r.scrollXLoad&&Dg(e)}),e.clearHeaderFormatterCache(),e.clearMergeCells(),e.clearMergeFooterItems(),e.handleTableData(!0),e.handleAggregateSummaryData(),(o||a)&&s&&"fixed"!==l.mode&&Ef("vxe.error.scrollErrProp",["column.type=expand"]),e.$nextTick().then(()=>{n&&n.syncUpdate({collectColumn:i.collectColumn,$table:e}),e.handleUpdateCustomColumn&&e.handleUpdateCustomColumn();const o=e.computeColumnOpts;return t.showCustomHeader&&r.isGroup&&(o.resizable||t.resizable)&&Ef("vxe.error.notConflictProp",["show-custom-header & colgroup","column-config.resizable=false"]),r.isColLoading=!1,vg(e,!1,!0,!0)})}function Ig(e,t){const n=e,r=e;r.collectColumn=t;const i=Dp(t);return r.tableFullColumn=i,n.updateColFlag++,n.isColLoading=!0,Fg(e),Promise.resolve(Xf(e)).then(()=>Rg(e))}function Ag(e){const t=e,n=e,{isAllOverflow:r,isScrollYBig:i}=t,{mergeBodyList:o,mergeBodyRowMaps:a,scrollYStore:s}=n,{preloadSize:l,startIndex:c,endIndex:u,offsetSize:d}=s,h=r?d:d+1,{toVisibleIndex:p,visibleSize:f}=Dm(e),m={startIndex:Math.max(0,i?p-1:p-1-d-l),endIndex:i?p+f:p+f+h+l};s.visibleStartIndex=p-1,s.visibleEndIndex=p+f+1,Mm(o,a,m,"row");const{startIndex:g,endIndex:v}=m;(p<=c||p>=u-f-1)&&(c===g&&u===v||(s.startIndex=g,s.endIndex=v,e.updateScrollYData()))}const Pg=e=>function(t){const n=this,r=n,{fullAllDataRowIdData:i}=r;if(t){const r=np(n,t),o=i[r];if(o)return o[e]}return-1},Lg=e=>function(t){const n=this,r=n,{fullColumnIdData:i}=r;if(t){const n=i[t.id];if(n)return n[e]}return-1};function Ng(e){const t=e,{lxTimeout:n,lxRunTime:r,scrollXStore:i}=t,{visibleSize:o}=i,a=o>26?26:o>16?14:6;n&&clearTimeout(n),(!r||r+a<Date.now())&&(t.lxRunTime=Date.now(),Dg(e)),t.lxTimeout=setTimeout(()=>{t.lxTimeout=void 0,t.lxRunTime=void 0,Dg(e)},a)}function jg(e){const t=e,{lyTimeout:n,lyRunTime:r,scrollYStore:i}=t,{visibleSize:o}=i,a=o>30?32:o>20?18:8;n&&clearTimeout(n),(!r||r+a<Date.now())&&(t.lyRunTime=Date.now(),Ag(e)),t.lyTimeout=setTimeout(()=>{t.lyTimeout=void 0,t.lyRunTime=void 0,Ag(e)},a)}function Bg(e,t,n){const r=e,i=e,{scrollXLoad:o,scrollYLoad:a,isAllOverflow:s}=r,l=e.computeAutoWidthColumnList;i.lcsRunTime=Date.now(),i.lcsTimeout=void 0,i.intoRunScroll=!1,i.inVirtualScroll=!1,i.inWheelScroll=!1,i.inHeaderScroll=!1,i.inBodyScroll=!1,i.inFooterScroll=!1,r.lazScrollLoading=!1,i.scrollRenderType="";let c=null,u=null;return s||(Wm(e),Xg(e)),t&&o&&(c=e.updateScrollXData()),n&&a&&(l.length&&Gg(e),u=e.updateScrollYData().then(()=>(l.length&&(Gg(e),zm(e)),s||(Wm(e),Xg(e)),e.updateScrollYSpace()))),Zg(e),Promise.all([c,u,o||a?e.updateCellAreas():null])}function Vg(e,t,n){const r=e,i=e,{lcsTimeout:o}=i;r.lazScrollLoading=!0,o&&clearTimeout(o),i.lcsTimeout=setTimeout(()=>{Bg(e,t,n).then(()=>{(r.scrollXLoad||r.scrollYLoad)&&e.$nextTick(()=>{Zg(e),i.lcsTimeout||Bg(e,t,n)})})},240)}const zg=e=>{let t=1;const n=Date.now();return e+25>n?t=1.18:e+30>n?t=1.15:e+40>n?t=1.12:e+55>n?t=1.09:e+75>n?t=1.06:e+100>n&&(t=1.03),t},Hg=(e,t)=>{const n=e,r=n.xeGanttView;if(r){const e=r.internalData,{elemStore:n}=e,i=Ep(n["main-body-scroll"]);i&&(i.scrollTop=t)}};function Wg(e){const t=e,n=e;n.customHeight=Vm(e,"height"),n.customMinHeight=Vm(e,"minHeight"),n.customMaxHeight=Vm(e,"maxHeight"),t.scrollYLoad&&!(n.customHeight||n.customMinHeight||n.customMaxHeight)&&(n.customHeight=300)}function qg(e,t,n){const r=e,{scrollYLoad:i}=r,o=e.computeColumnOpts,{autoOptions:a}=o,{isCalcHeader:s,isCalcBody:l,isCalcFooter:c}=a||{},u=[];s&&u.push(`.vxe-header-cell--wrapper[colid="${t.id}"]`),l&&u.push(`.vxe-body-cell--wrapper[colid="${t.id}"]`),c&&u.push(`.vxe-footer-cell--wrapper[colid="${t.id}"]`);const d=u.length?n.querySelectorAll(u.join(",")):[];let h=0;const p=d[0];if(p&&p.parentElement){const e=getComputedStyle(p.parentElement);h=Math.ceil(pc.toNumber(e.paddingLeft)+pc.toNumber(e.paddingRight))}let f=(i?t.renderAutoWidth:0)-h;for(let m=0;m<d.length;m++){const e=d[m];f=Math.max(f,e?Math.ceil(e.scrollWidth)+4:0)}return f+h}function Gg(e){const t=e,n=e.computeAutoWidthColumnList,{fullColumnIdData:r}=t,i=e.$refs.refElem;i&&n.length&&(i.setAttribute("data-calc-col","Y"),n.forEach(t=>{const n=t.id,o=r[n],a=qg(e,t,i);o&&(o.width=Math.max(a,o.width)),t.renderAutoWidth=a}),e.analyColumnWidth(),i.removeAttribute("data-calc-col"))}function Yg(e,t,n){e.analyColumnWidth(),e.recalculate().then(()=>{e.saveCustomStore("update:width"),e.refreshScroll().then(()=>{e.updateCellAreas()}),e.dispatchEvent("column-resizable-change",n,t),e.dispatchEvent("resizable-change",n,t),setTimeout(()=>e.recalculate(!0),300)})}function Ug(e,t,n){const r=e;r.resizeHeightFlag++,e.recalculate().then(()=>{e.refreshScroll().then(()=>{e.updateCellAreas()}),e.dispatchEvent("row-resizable-change",n,t),setTimeout(()=>e.recalculate(!0),300)})}function Kg(e){const t=e,{visibleColumn:n,fullColumnIdData:r}=t,i=e.$refs.refElem;if(!i||!i.clientWidth)return;let o=0;for(let a=0,s=n.length;a<s;a++){const e=n[a],t=e.id,i=r[t];i&&(i.oLeft=o),o+=e.renderWidth}}function Xg(e){const t=e,n=e,{expandColumn:r}=t,{afterFullData:i,fullAllDataRowIdData:o,rowExpandedMaps:a}=n,s=e.$refs.refElem;if(!s||!s.clientWidth)return;const l=e.computeExpandOpts,c=e.computeRowOpts,u=e.computeCellOpts,d=e.computeDefaultRowHeight,{handleGetRowId:h}=ip(e);let p=0;for(let f=0,m=i.length;f<m;f++){const e=i[f],t=h(e),n=o[t]||{};n.oTop=p,p+=mp(n,u,c,d),r&&a[t]&&(p+=n.expandHeight||l.height||0)}}function Zg(e){const t=e,n=e,{expandColumn:r,scrollYLoad:i,scrollYTop:o,isScrollYBig:a}=t,s=e.$refs.refElem;if(!s||!s.clientWidth)return;const l=e.computeExpandOpts,{mode:c}=l;if(r&&"fixed"===c){const{elemStore:r,fullAllDataRowIdData:s}=n,l=e.computeRowOpts,c=e.computeCellOpts,u=e.computeDefaultRowHeight,d=e.$refs.refRowExpandElem,h=Ep(r["main-body-scroll"]);if(d&&h){let n=!1;pc.arrayEach(d.children,e=>{const t=e,r=t.getAttribute("rowid")||"",d=s[r];if(d){const e=t.offsetHeight,s=h.querySelector(`.vxe-body--row[rowid="${r}"]`);let p=0;i?p=a&&s?s.offsetTop+s.offsetHeight:d.oTop+mp(d,c,l,u):s&&(p=s.offsetTop+s.offsetHeight),a&&(p+=o),t.style.top=lh(p),n||d.expandHeight!==e&&(n=!0),d.expandHeight=e}}),n&&(t.rowExpandHeightFlag++,e.$nextTick(()=>{Xg(e)}))}}}function Qg(e){const t=e,n=e,r=e,{treeConfig:i}=t;if(!i)return;const{tableData:o}=n,{fullAllDataRowIdData:a,treeExpandedMaps:s}=r,l=e.$refs.refElem;if(!l||!l.clientWidth)return;const c=e.computeCellOpts,u=e.computeRowOpts,d=e.computeDefaultRowHeight,h=e.computeTreeOpts,{transform:p,mapChildrenField:f}=h,m=h.children||h.childrenField,{handleGetRowId:g}=ip(e),v=[],b=(e,t,n)=>{const r=g(e),i=a[r]||{},o=e[p?f:m],l=n[t-1]||null,h=n[t+1]||null;if(o&&o.length&&s[r])v.push({row:e,prevRow:l,nextRow:h}),o.forEach((e,t)=>{const n=g(e);s[n]&&b(e,t,o)});else if(h){const e=g(h),t=a[e]||{},n=mp(i,c,u,d),r=mp(t,c,u,d);i.oHeight=n,i.lineHeight=Math.floor(n/2+r/2)}else i.oHeight=0,i.lineHeight=0};o.forEach((e,t)=>{b(e,t,o)}),pc.lastArrayEach(v,({row:e,nextRow:t})=>{const n=g(e),r=e[p?f:m],i=a[n];if(i){const e=mp(i,c,u,d);let n=e,o=0;if(r.forEach(e=>{const t=g(e),r=a[t]||{},i=e[p?f:m];if(s[t]&&i&&i.length)n+=r.oHeight||0,o+=r.oHeight||0;else{const e=mp(r,c,u,d);r.oHeight=e,r.lineHeight=e,n+=e,o+=e}}),t){const e=g(t),r=a[e]||{},s=mp(i,c,u,d),l=mp(r,c,u,d);n+=s,o+=Math.floor(s/2+l/2)}i.lineHeight=o,i.oHeight=n}})}function Jg(e){const t=e,{elemStore:n}=t,r=e.$refs.refRowExpandElem,i=Ep(n["main-body-scroll"]);r&&i&&(r.scrollTop=i.scrollTop)}function ev(e){return function(t){const n=this;let r=!1;const i=pc.isArray(t)?t:[t];return i.forEach(t=>{const i=pp(n,t);i&&(i.children&&i.children.length?pc.eachTree([i],t=>{t.visible=e,t.renderVisible=e}):(i.visible=e,i.renderVisible=e),r||(r=!0))}),r?n.handleCustom():n.$nextTick()}}function tv(e,t){const n=e,{customStore:r}=n,i=e.computeCustomOpts,{popupOptions:o}=i,{transfer:a}=o||{};if(a&&r.visible){const n=e.$refs.refTableCustom;n&&e.handleCustomStyle&&!gh(t.target,[n.$el],t.currentTarget)&&e.handleCustomStyle().then(()=>{e.handleCustomStyle()})}}function nv(e){const t=e,{stackHistoryStore:n}=t,{undoStacks:r}=n,i=e.computeUndoRedoHistoryOpts,{stackSize:o}=i;r.length>pc.toNumber(o)&&r.shift()}function rv(e){const t=e,n=e,{editStore:r}=t,{afterFullData:i,elemStore:o,insertRowMaps:a,removeRowMaps:s}=n,{selected:l,actived:c}=r,{row:u,column:d}=l,{row:h,column:p}=c,f=Ep(o["main-body-scroll"]),m={selectActiveInfo:u&&d?{rowid:np(e,u),colid:d.id}:void 0,editActiveInfo:h&&p?{rowid:np(e,h),colid:p.id}:void 0,scrollInfo:{top:f?f.scrollTop:0,left:f?f.scrollLeft:0},insertData:pc.clone(pc.values(a),!0),removeData:pc.clone(pc.values(s),!0),visibleData:pc.clone(i,!0),visibleTreeData:[],visibleColumn:[]};return e.getCellAreaPushStackObj?e.getCellAreaPushStackObj(m):m}function iv(e,t){const n=e,r=e,i=e,{treeConfig:o}=n,{editStore:a}=r,{fullAllDataRowIdData:s,fullColumnIdData:l}=i;if(!t)return;const c=e.computeTreeOpts,{transform:u}=c,{visibleData:d,editActiveInfo:h,selectActiveInfo:p,scrollInfo:f,insertData:m,removeData:g}=t,v={};m.forEach(t=>{const n=np(e,t),r=s[n];let i=t;r&&(i=r.row,Object.assign(i,t)),v[n]=i});const b={};g.forEach(t=>{const n=np(e,t),r=s[n];let i=t;r&&(i=r.row,Object.assign(i,t)),b[n]=i});const y=d.map(t=>{const n=np(e,t),r=s[n];let i=t;return r&&(i=r.row,Object.assign(i,t)),i});if(i.insertRowMaps=v,i.removeRowMaps=b,i.afterFullData=y,e.cacheRowMap(!1),e.handleTableData(o&&u),e.updateFooter(),e.handleUpdateBodyMerge(),o&&u||e.updateAfterDataIndex(),e.checkSelectionStatus(),r.scrollYLoad&&e.updateScrollYSpace(),e.handleCellAreaSnapshotStackData)e.handleCellAreaSnapshotStackData(t);else{const{selected:t}=a,n=e.computeMouseOpts;let r="",i="";if(h?(r=h.rowid,i=h.colid):p&&(r=p.rowid,i=p.colid),r&&i&&n.selected){const n=s[r]?s[r].row:null,o=l[i]?l[i].column:null;if(n&&o){const r={row:n,column:o};t.row=n,t.column=o,t.args=r,e.$nextTick(()=>{e.addCellSelectedClass(),e.scrollTo(f)})}}}}const ov={callSlot(e,t,n,r){const i=this,o=i.$xeGrid,a=i.$xeGantt,s=o||a;if(e){if(s)return s.callSlot(e,t,n);if(pc.isFunction(e))return Bp(e.call(this,t,n,r))}return[]},getEl(){const e=this;return e.$refs.refElem},getParentElem(){const e=this,t=e.$xeGrid,n=e.$xeGantt,r=t||n,{$el:i}=this;return r?r.$el.parentNode:i.parentNode},getParentHeight(){const e=this,t=e.$xeGrid,n=e.$xeGantt,r=e,{height:i}=r,o=e.$refs.refElem;if(o){const e=o.parentNode,r="100%"===i||"auto"===i?hh(e):0;let a=0;return e&&(a=n&&ih(e,"vxe-gantt--table-wrapper")?n.getParentHeight():t&&ih(e,"vxe-grid--table-wrapper")?t.getParentHeight():e.clientHeight),Math.floor(a-r)}return 0},getExcludeHeight(){const e=this,t=e.$xeGrid,n=e.$xeGantt,r=t||n;return r?r.getExcludeHeight():0},clearAll(){const e=this;return Tp(e)},handleUpdateRowGroup(e){const t=this;xg(t,e)},syncData(){const e=this,t=e,n=e;return Of("vxe.error.delFunc",["syncData","getData"]),e.$nextTick().then(()=>(t.tableData=[],e.$nextTick().then(()=>kg(e,n.tableFullData,!0,!0))))},updateData(){const e=this,t=e,{scrollXLoad:n,scrollYLoad:r}=t;return e.handleTableData(!0).then(()=>{if(e.updateFooter(),n||r)return n&&e.updateScrollXSpace(),r&&e.updateScrollYSpace(),e.refreshScroll()}).then(()=>(e.updateCellAreas(),vg(e,!0,!0,!0))).then(()=>{setTimeout(()=>vg(e,!1,!0,!0),50)})},handleTableData(e){const t=this,n=t,r=t,{scrollYLoad:i}=n,{scrollYStore:o,fullDataRowIdData:a}=r,s=r.xeGanttView;let l=r.afterFullData;e&&(um(t),l=cm(t),r.mergeHeaderRowMaps={},r.mergeHeaderColMaps={},r.mergeBodyRowMaps={},r.mergeBodyColMaps={},r.mergeFooterRowMaps={},r.mergeFooterColMaps={});const c=i?l.slice(o.startIndex,o.endIndex):l.slice(0),u={};return c.forEach((e,n)=>{const r=np(t,e),i=a[r];i&&(i.$index=n),u[r]=e}),n.tableData=c,r.visibleDataRowIdData=u,s&&s.updateViewData&&s.updateViewData(e),t.$nextTick()},initData(){const e=this,t=e,n=e,r=e,{data:i}=t;kg(e,i||[],!0,!0).then(()=>{i&&i.length&&(r.inited=!0,r.initStatus=!0,Eg(e)),Og(e),dm(e),n.isAllOverflow||(Wm(e),Xg(e))}),e.$nextTick().then(()=>{e.dispatchEvent("ready",{},null)})},loadTableData(e,t,n){const r=this;return kg(r,e,t,n)},loadData(e){const t=this,n=t,{initStatus:r}=n;return kg(t,e,!1,!1).then(()=>(n.inited=!0,n.initStatus=!0,r&&Eg(t),vg(t,!1,!0,!0)))},reloadData(e){const t=this,n=t;return t.clearAll().then(()=>(n.inited=!0,n.initStatus=!0,kg(t,e,!0,!0))).then(()=>(Eg(t),vg(t,!1,!0,!0)))},setRow(e,t){const n=this;if(t){let n=e;pc.isArray(e)||(n=[e]),n.forEach(e=>Object.assign(e,t))}return n.$nextTick()},reloadRow(e,t,n){const r=this,i=r,o=r,a=r,{keepSource:s}=i,{tableData:l}=o,{sourceDataRowIdData:c}=a;if(s){if(r.isAggregateRecord(e))return r.$nextTick();const i=tp(r),a=pc.get(e,i),s=c[a];if(s&&e)if(n){const r=pc.clone(pc.get(t||e,n),!0);pc.set(e,n,r),pc.set(s,n,r)}else{const n=pc.clone(Object.assign({},t),!0);pc.set(n,i,a),pc.destructuring(s,Object.assign(e,n))}o.tableData=l.slice(0)}else Of("vxe.error.reqProp",["keep-source"]);return r.$nextTick()},loadColumn(e){const t=this,n=t,{lastScrollLeft:r,lastScrollTop:i}=n,o=pc.mapTree(e,e=>sf.createColumn(t,e),{children:"children"});return Ig(t,o).then(()=>{let e=r,n=i;const o=t.computeVirtualXOpts,a=t.computeVirtualYOpts;o.scrollToLeftOnChange&&(e=0),a.scrollToTopOnChange&&(n=0),Xh(t,e,n)})},reloadColumn(e){const t=this;return t.clearAll().then(()=>t.loadColumn(e))},handleInitColumn(e){const t=this;return Ig(t,e)},cacheRowMap(e){const t=this,n=t,r=t,i=t,{treeConfig:o}=n,{isRowGroupStatus:a}=r,{currKeyField:s,fullAllDataRowIdData:l,tableFullData:c,tableFullTreeData:u,tableFullGroupData:d,treeExpandedMaps:h,rowExpandedMaps:p,selectCheckboxMaps:f}=i,m=e?{}:Object.assign({},l),g={},v={},{handleUpdateRowId:b}=rp(t);let y=0;const x=(e,t,n,r,i,o,a,l)=>{let c=m[o];v[o]&&Of("vxe.error.repeatKey",[s,o]),c||(c={row:e,rowid:o,_seq:-1,seq:l,index:-1,_index:-1,$index:-1,treeIndex:t,_tIndex:-1,items:n,parent:i,level:a,height:0,resizeHeight:0,oTop:0,expandHeight:0}),c.treeLoaded=!1,c.expandLoaded=!1,c._seq=y++,c.row=e,c.items=n,c.parent=i,c.level=a,c.index=r,c.treeIndex=t,f[o]&&(f[o]=e),p[o]&&(p[o]=e),v[o]=!0,g[o]=c,m[o]=c};if(o){const e=t.computeTreeOpts,{lazy:n}=e,r=e.children||e.childrenField,i=e.hasChild||e.hasChildField;pc.eachTree(u,(e,t,o,a,s,l)=>{const c=b(e);n&&(e[i]&&void 0===e[r]&&(e[r]=null),h[c]&&(e[r]&&e[r].length||delete h[c])),x(e,t,o,s?-1:t,s,c,l.length-1,Zh(a))},{children:r})}else if(a){const e=t.computeAggregateOpts,{mapChildrenField:n}=e;pc.eachTree(d,(e,t,n,r,i,o)=>{const a=b(e);x(e,t,n,i?-1:t,i,a,o.length-1,Zh(r))},{children:n})}else c.forEach((e,t,n)=>{x(e,t,n,t,null,b(e),0,t+1)});i.fullDataRowIdData=g,i.fullAllDataRowIdData=m,r.treeExpandedFlag++},cacheSourceMap(e){const t=this,n=t,r=t,{treeConfig:i}=n,o=t.computeTreeOpts,a=pc.clone(e,!0),{handleUpdateRowId:s}=rp(t),l={},c=e=>{const t=s(e);l[t]=e};if(i){const e=o.children||o.childrenField;pc.eachTree(a,c,{children:o.transform?o.mapChildrenField:e})}else a.forEach(c);r.sourceDataRowIdData=l,r.tableSourceData=a},getParams(){const e=this,t=e;return t.params},loadTreeChildren(e,t){const n=this,r=n,i=n,{keepSource:o}=r,{tableSourceData:a,fullDataRowIdData:s,fullAllDataRowIdData:l,sourceDataRowIdData:c}=i,u=n.computeTreeOpts,{transform:d,mapChildrenField:h}=u,p=u.children||u.childrenField,f=l[np(n,e)],m=f?f.level:0;return n.createData(t).then(t=>{if(o){const r=np(n,e),i=pc.findTree(a,e=>r===np(n,e),{children:p});i&&(i.item[p]=pc.clone(t,!0)),t.forEach(e=>{const t=np(n,e);c[t]=pc.clone(e,!0)})}return pc.eachTree(t,(e,t,r,i,o,a)=>{const c=np(n,e),u=o||f.row,d={row:e,rowid:c,_seq:-1,seq:-1,index:t,_index:-1,$index:-1,treeIndex:-1,_tIndex:-1,items:r,parent:u,level:m+a.length,height:0,resizeHeight:0,oTop:0,expandHeight:0};s[c]=d,l[c]=d},{children:p}),e[p]=t,d&&(e[h]=pc.clone(t,!1)),lm(n),t})},getRowNode(e){const t=this,n=t;if(e){const{fullAllDataRowIdData:t}=n,r=e.getAttribute("rowid");if(r){const e=t[r];if(e)return{rowid:e.rowid,item:e.row,index:e.index,items:e.items,parent:e.parent}}}return null},getColumnNode(e){const t=this,n=t;if(e){const{fullColumnIdData:t}=n,r=e.getAttribute("colid");if(r){const e=t[r];if(e)return{colid:e.colid,item:e.column,index:e.index,items:e.items,parent:e.parent}}}return null},getRowSeq:Pg("seq"),getRowIndex:Pg("index"),getVTRowIndex:Pg("_index"),getVMRowIndex:Pg("$index"),_getRowIndex(e){const t=this;return Ef("vxe.error.delFunc",["_getRowIndex","getVTRowIndex"]),t.getVTRowIndex(e)},$getRowIndex(e){const t=this;return Ef("vxe.error.delFunc",["$getRowIndex","getVMRowIndex"]),t.getVMRowIndex(e)},getColumnIndex:Lg("index"),getVTColumnIndex:Lg("_index"),getVMColumnIndex:Lg("$index"),_getColumnIndex(e){const t=this;return Ef("vxe.error.delFunc",["_getColumnIndex","getVTColumnIndex"]),t.getVTColumnIndex(e)},$getColumnIndex(e){const t=this;return Ef("vxe.error.delFunc",["$getColumnIndex","getVMColumnIndex"]),t.getVMColumnIndex(e)},isSeqColumn(e){return e&&"seq"===e.type},defineField(e){const t=this,n=t,r=t,{treeConfig:i}=n,o=t.computeExpandOpts,a=t.computeTreeOpts,s=t.computeRadioOpts,l=t.computeRowOpts,c=t.computeCheckboxOpts,u=a.children||a.childrenField,d=tp(t);return pc.isArray(e)||(e=[e||{}]),e.map(e=>{r.tableFullColumn.forEach(t=>{const{field:n,editRender:r}=t;if(n&&!pc.has(e,n)){let i=null;if(r){const{defaultValue:e}=r;pc.isFunction(e)?i=e({column:t}):pc.isUndefined(e)||(i=e)}pc.set(e,n,i)}});const t=[s.labelField,c.checkField,c.labelField,o.labelField];return t.forEach(t=>{t&&gd(pc.get(e,t))&&pc.set(e,t,null)}),i&&a.lazy&&pc.isUndefined(e[u])&&(e[u]=null),gd(pc.get(e,d))&&pc.set(e,d,Jh(l,e,d)),e})},createData(e){const t=this;return t.$nextTick().then(()=>t.defineField(e))},createRow(e){const t=this,n=pc.isArray(e);return n||(e=[e]),t.createData(e).then(e=>n?e:e[0])},revertData(e,t){const n=this,r=n,i=n,o=n,{keepSource:a,treeConfig:s}=r,{fullAllDataRowIdData:l,fullDataRowIdData:c,tableSourceData:u,sourceDataRowIdData:d,tableFullData:h,afterFullData:p,removeRowMaps:f}=o,m=n.computeTreeOpts,{transform:g}=m,{handleGetRowId:v}=ip(n);if(!a)return Of("vxe.error.reqProp",["keep-source"]),n.$nextTick();let b=e;e?pc.isArray(e)||(b=[e]):b=pc.toArray(n.getUpdateRecords());let y=!1;return b.length&&b.forEach(e=>{const r=v(e),i=l[r];if(i){const e=i.row;if(!n.isInsertByRow(e)){const i=d[r];i&&e&&(t?pc.set(e,t,pc.clone(pc.get(i,t),!0)):pc.destructuring(e,pc.clone(i,!0)),!c[r]&&n.isRemoveByRow(e)&&(f[r]&&delete f[r],h.unshift(e),p.unshift(e),y=!0))}}}),e?(y&&(i.removeRowFlag++,n.updateFooter(),n.cacheRowMap(!1),n.handleTableData(s&&g),s&&g||n.updateAfterDataIndex(),n.checkSelectionStatus(),i.scrollYLoad&&n.updateScrollYSpace()),n.$nextTick().then(()=>(n.updateCellAreas(),vg(n,!1,!0,!0)))):n.reloadData(u)},clearData(e,t){const n=this,r=n,{tableFullData:i,visibleColumn:o}=r;return arguments.length?e&&!pc.isArray(e)&&(e=[e]):e=i,t?e.forEach(e=>pc.set(e,t,null)):e.forEach(e=>{o.forEach(t=>{t.field&&kp(e,t,null)})}),n.$nextTick()},effectCellData(e,t,n){const r=this,i=r,{fullCellStoreMaps:o}=i,a=r.computeEditOpts,{key:s,isChanged:l,setValue:c,getResult:u}=n,d=np(r,e),h=t.id;let p=o[d];const f=pc.get(e,t.field),m={$table:r,row:e,rowid:d,column:t,colid:h,cellValue:f,oldValue:null};if(!1===a.cache&&"render_table_cell"===s){const e=m;return e.cellResult=u?u(m):f,e}p||(p={},o[d]=p);let g=p[h];g||(g={value:void 0,result:{}},p[h]=g);const v=p[h],b=v.value;m.oldValue=b,(l?l(m):b===f)||(v.value=c?c(m):f,v.result={});const y=v.result;pc.isUndefined(y[s])&&(y[s]=u?u(m):f);const x=y[s],w=m;return w.cellResult=x,w},getCellElement(e,t){const n=this,r=n,{elemStore:i}=r,o=pp(n,t);if(!o)return null;const a=np(n,e),s=Ep(i["main-body-scroll"]),l=Ep(i["left-body-scroll"]),c=Ep(i["right-body-scroll"]);let u;return o&&(o.fixed&&("left"===o.fixed?l&&(u=l):c&&(u=c)),u||(u=s),u)?u.querySelector(`.vxe-body--row[rowid="${a}"] .${o.id}`):null},getCellLabel(e,t){const n=this,r=n,i=n,o=pp(n,t);if(!o)return null;const{editConfig:a}=r,{formatter:s,editRender:l,cellRender:c}=o,u=n.computeRendererOpts;let d=null,h=null,p=null,f=null;l&&(d=l.options?l.options.length:0,h=l.optionGroups?l.optionGroups.length:0),c&&(p=c.options?c.options.length:0,f=c.optionGroups?c.optionGroups.length:0);const m=a&&ld(a),g=s?null:m&&ld(l)?l:null,v=s?null:ld(c)?c:null,b=v&&v.name?u[v.name]||Df.get(v.name):null,y=g&&g.name?u[g.name]||Df.get(g.name):null,x=b?b.tableCellFormatter:null,w=y?y.tableCellFormatter:null,C=Sp(e,o);let _=C;if(s||x||w){let t;const{fullAllDataRowIdData:r}=i,a=np(n,e),l=o.id,c=r[a];if(c&&(t=c.formatData,t||(t=r[a].formatData={}),c&&t[l])){const e=t[l].value;if(e&&e[0]===C&&e[1]===d&&e[2]===h&&e[3]===p&&e[4]===f)return t[l].label}const u={$table:n,cellValue:C,row:e,rowIndex:n.getRowIndex(e),column:o,columnIndex:n.getColumnIndex(o)};if(s)if(pc.isString(s)){const e=Mf.get(s),t=e?e.tableCellFormatMethod||e.cellFormatMethod:null;_=t?t(u):""}else if(pc.isArray(s)){const e=Mf.get(s[0]),t=e?e.tableCellFormatMethod||e.cellFormatMethod:null;_=t?t(u,...s.slice(1)):""}else _=s(u);else v&&x?_=x(v,u):g&&w&&(_=w(g,u));if(t){const e=[C,d,h,p,f];t[l]={value:e,label:_}}}return _},updateCellLabel(e,t){const n=this,r=n,i=pp(n,t);if(!i)return null;const{fullAllDataRowIdData:o}=r,a=np(n,e);if(a){const t=i.id,r=np(n,e),a=o[r];if(a){const e=a.formatData;e&&delete e[t]}}return n.getFooterCellLabel(e,i)},clearFormatterCache(e){const t=this,n=t,r=t,{tableData:i,tableColumn:o}=n,{fullAllDataRowIdData:a}=r;return pc.each(a,e=>{e.formatData&&(e.formatData=void 0)}),e&&i.forEach(e=>{o.forEach(n=>{t.getCellLabel(e,n)})}),t.$nextTick()},getHeaderCellLabel(e){const t=this,n=t,r=pp(t,e);if(!r)return null;const{headerFormatter:i}=r,o=t.getVTColumnIndex(r);let a=r.getTitle();if(i){let e;const{headerFullDataColData:s}=n,l=r.id;let c=s[l];c||(c=s[l]={});const u=c.formatObj;if(u&&u.value===a)return u.label;const d={$table:t,cellTitle:a,cellValue:a,column:r,_columnIndex:o,columnIndex:t.getColumnIndex(r)};if(pc.isString(i)){const e=Mf.get(i),t=e?e.tableHeaderCellFormatMethod:null;a=pc.toValueString(t?t(d):"")}else if(pc.isArray(i)){const e=Mf.get(i[0]),t=e?e.tableHeaderCellFormatMethod:null;a=pc.toValueString(t?t(d,...i.slice(1)):"")}else a=pc.toValueString(i(d));e&&(c.formatObj={value:a,label:a})}return a},updateHeaderCellLabel(e){const t=this,n=t,r=pp(t,e);if(!r)return"";const{headerFullDataColData:i}=n,o=r.id,a=i[o];return a&&(a.formatObj=void 0),t.getHeaderCellLabel(r)},clearHeaderFormatterCache(e){const t=this,n=t,r=t,{tableColumn:i}=n,{headerFullDataColData:o}=r;return pc.each(o,e=>{e.formatObj&&(e.formatObj=void 0)}),e&&i.forEach(e=>{t.getHeaderCellLabel(e)}),t.$nextTick()},getFooterCellLabel(e,t){const n=this,r=n,i=n,o=pp(n,t);if(!o)return null;const{footerFormatter:a}=o,s=n.getVTColumnIndex(o);let l="";l=pc.isArray(e)?e[s]:pc.get(e,o.field);let c=l;if(a){let t;const{footerTableData:u}=r,{footerFullDataRowData:d}=i,h=o.id,p=u.indexOf(e);let f=null;if(p>-1&&(f=d[p],f||(f=d[p]={}),t=f.formatData,t||(t=d[p].formatData={}),f&&t[h]&&t[h].value===l))return t[h].label;const m={$table:n,cellValue:l,itemValue:l,row:e,items:e,$rowIndex:p,column:o,_columnIndex:s,columnIndex:n.getColumnIndex(o)};if(pc.isString(a)){const e=Mf.get(a),t=e?e.tableFooterCellFormatMethod:null;c=t?t(m):""}else if(pc.isArray(a)){const e=Mf.get(a[0]),t=e?e.tableFooterCellFormatMethod:null;c=t?t(m,...a.slice(1)):""}else c=a(m);t&&(t[h]={value:l,label:c})}return c},updateFooterCellLabel(e,t){const n=this,r=n,i=n,o=pp(n,t);if(!o)return null;const{footerTableData:a}=r,{footerFullDataRowData:s}=i,l=o.id,c=a.indexOf(e),u=s[c];if(u){const e=u.formatData;e&&delete e[l]}return n.getFooterCellLabel(e,o)},clearFooterFormatterCache(e){const t=this,n=t,r=t,{tableData:i,tableColumn:o}=n,{footerFullDataRowData:a}=r;return pc.each(a,e=>{e.formatData&&(e.formatData=void 0)}),e&&i.forEach(e=>{o.forEach(n=>{t.getFooterCellLabel(e,n)})}),t.$nextTick()},isInsertByRow(e){const t=this,n=t,r=t,i=np(t,e);return!!n.insertRowFlag&&!!r.insertRowMaps[i]},isRemoveByRow(e){const t=this,n=t,r=t,i=np(t,e);return!!n.removeRowFlag&&!!r.removeRowMaps[i]},removeInsertRow(){const e=this,t=e,{insertRowMaps:n}=t;return e.remove(pc.values(n))},isUpdateByRow(e,t){const n=this,r=n,i=n,{keepSource:o,editConfig:a}=r,{fullDataRowIdData:s,sourceDataRowIdData:l}=i,c=n.computeKeepFields;if(o&&a){const r=pc.isString(e)||pc.isNumber(e)?e:np(n,e),i=s[r];if(!i)return!1;const o=i.row,a=l[r];if(!a)return!1;if(arguments.length>1)return!zf(o,a,t).result;for(let e=0;e<c.length;e++)if(!zf(o,a,c[e]).result)return!0}return!1},getUpdateCells(){const e=this,t=e,n=e,{keepSource:r,treeConfig:i}=t,{tableFullData:o,tableFullTreeData:a,fullDataRowIdData:s,sourceDataRowIdData:l,fullColumnFieldData:c}=n,u=e.computeTreeOpts,d=e.computeKeepFields,h=[];if(r){const{handleGetRowId:t}=ip(e),n=e=>{const n=t(e),r=s[n];if(!r)return;const i=r.row,o=l[n];if(o)for(let t=0;t<d.length;t++){const e=d[t],{result:r,newValue:a,oldValue:s}=zf(i,o,e);if(!r){const t=c[e]?c[e].column:null;h.push({row:i,rowid:n,column:t,field:e,newValue:a,oldValue:s})}}};i?pc.eachTree(a,n,u):o.forEach(n)}return h},getColumns(e){const t=this,n=t,{visibleColumn:r}=n;return pc.isUndefined(e)?r.slice(0):r[e]},getColid(e){const t=this,n=pp(t,e);return n?n.id:null},getColumnById(e){const t=this,n=t,{fullColumnIdData:r}=n;return r[e]?r[e].column:null},getColumnByField(e){const t=this,n=t,{fullColumnFieldData:r}=n;return r[e]?r[e].column:null},getParentColumn(e){const t=this,n=t,{fullColumnIdData:r}=n,i=pp(t,e);return i&&i.parentId&&r[i.parentId]?r[i.parentId].column:null},getTableColumn(){const e=this,t=e,n=e;return{collectColumn:n.collectColumn.slice(0),fullColumn:n.tableFullColumn.slice(0),visibleColumn:n.visibleColumn.slice(0),tableColumn:t.tableColumn.slice(0)}},moveColumnTo(e,t,n){const r=this,i=r,{fullColumnIdData:o,visibleColumn:a}=i,{dragToChild:s,dragPos:l,isCrossDrag:c}=Object.assign({},n),u=pp(r,e);let d=null;const h=u?o[u.id]:null;let p="left";if(pc.isNumber(t)){if(h&&t){let e=h.items,n=h._index+t;c&&(e=a,n=h._index+t),n>0&&n<e.length-1&&(d=e[n]),t>0&&(p="right")}}else{d=pp(r,t);const e=d?o[d.id]:null;h&&e&&e._index>h._index&&(p="right")}return r.handleColDragSwapEvent(null,!0,u,d,l||p,!0===s)},moveRowTo(e,t,n){const r=this,i=r,o=r,{treeConfig:a}=i,{fullAllDataRowIdData:s,afterFullData:l}=o,{dragToChild:c,dragPos:u,isCrossDrag:d}=Object.assign({},n),h=r.computeTreeOpts,p=fp(r,e);let f=null,m="top";const g=p?s[np(r,p)]:null;if(pc.isNumber(t)){if(g&&t){let e=l,n=g._index+t;a&&(e=g.items,h.transform&&(n=g.treeIndex+t,d&&(e=l,n=g._index+t))),n>=0&&n<=e.length-1&&(f=e[n]),t>0&&(m="bottom")}}else{f=fp(r,t);const e=f?s[np(r,f)]:null;g&&e&&e._index>g._index&&(m="bottom")}const v=r.handleRowDragSwapEvent(null,!0,p,f,u||m,!0===c);return v},getFullColumns(){const e=this,t=e,{collectColumn:n}=t;return n.slice(0)},getData(e){const t=this,n=t,r=t,i=n.data||r.tableSynchData;return pc.isUndefined(e)?i.slice(0):i[e]},getCheckboxRecords(e){const t=this,n=t,r=t,i=t,{treeConfig:o}=n,{updateCheckboxFlag:a}=r,{tableFullData:s,afterFullData:l,tableFullTreeData:c,fullDataRowIdData:u,afterFullRowMaps:d,selectCheckboxMaps:h}=i,p=t.computeTreeOpts,f=t.computeCheckboxOpts,{transform:m,mapChildrenField:g}=p,{checkField:v}=f,b=p.children||p.childrenField;let y=[];if(a)if(v)if(o){const t=e?m?c:s:m?c:l;y=pc.filterTree(t,e=>pc.get(e,v),{children:m?g:b})}else{const t=e?s:l;y=t.filter(e=>pc.get(e,v))}else{const t=e||o&&!m?u:d;pc.each(h,(e,n)=>{t[n]&&y.push(u[n].row)})}return y},updateAfterDataIndex(){const e=this;lm(e)},getTreeRowChildren(e){const t=this,n=t,r=t,{treeConfig:i}=n,{fullAllDataRowIdData:o}=r,a=t.computeTreeOpts,{transform:s,mapChildrenField:l}=a,c=a.children||a.childrenField;if(e&&i){let n;if(n=pc.isString(e)?e:np(t,e),n){const e=o[n],t=e?e.row:null;if(t)return t[s?l:c]||[]}}return[]},getTreeRowLevel(e){const t=this,n=t,r=t,{treeConfig:i}=n,{fullAllDataRowIdData:o}=r;if(e&&i){let n;if(n=pc.isString(e)?e:np(t,e),n){const e=o[n];if(e)return e.level}}return-1},getTreeParentRow(e){const t=this,n=t,r=t,{treeConfig:i}=n,{fullAllDataRowIdData:o}=r;if(e&&i){let n;if(n=pc.isString(e)?e:np(t,e),n){const e=o[n];if(e)return e.parent}}return null},getParentRow(e){const t=this;return Ef("vxe.error.delFunc",["getParentRow","getTreeParentRow"]),t.getTreeParentRow(e)},getRowById(e){const t=this,n=t,{fullAllDataRowIdData:r}=n,i=pc.eqNull(e)?"":encodeURIComponent(e);return r[i]?r[i].row:null},getRowid(e){const t=this;return np(t,e)},getTableData(){const e=this,t=e,n=e,r=e,{tableData:i,footerTableData:o}=n,{tableFullData:a,afterFullData:s,tableFullTreeData:l}=r;return{fullData:t.treeConfig?l.slice(0):a.slice(0),visibleData:s.slice(0),tableData:i.slice(0),footerData:o.slice(0)}},getFullData(){const e=this,t=e,n=e,{treeConfig:r}=t,{tableFullData:i,tableFullTreeData:o}=n;return r?o.slice(0):i.slice(0)},handleLoadDefaults(){const e=this;Eg(e)},handleInitDefaults(){const e=this;Og(e)},setColumnFixed(e,t){const n=this;let r=!1;const i=pc.isArray(e)?e:[e],o=n.computeColumnOpts,a=n.computeIsMaxFixedColumn;for(let s=0;s<i.length;s++){const e=i[s],l=pp(n,e),c=bp(n,l);if(c&&c.fixed!==t){if(!c.fixed&&a)return ad.modal&&ad.modal.message({status:"error",content:$f("vxe.table.maxFixedCol",[o.maxFixedSize])}),n.$nextTick();pc.eachTree([c],e=>{e.fixed=t,e.renderFixed=t}),n.saveCustomStore("update:fixed"),r||(r=!0)}}return r?n.refreshColumn():n.$nextTick()},clearColumnFixed(e){const t=this;let n=!1;const r=pc.isArray(e)?e:[e];return r.forEach(e=>{const r=pp(t,e),i=bp(t,r);i&&i.fixed&&(pc.eachTree([i],e=>{e.fixed=null,e.renderFixed=null}),t.saveCustomStore("update:fixed"),n||(n=!0))}),n?t.refreshColumn():t.$nextTick()},hideColumn:ev(!1),showColumn:ev(!0),setColumnWidth(e,t){const n=this,r=n,{elemStore:i}=r;let o=!1;const a=pc.isArray(e)?e:[e];let s=pc.toInteger(t);if(rh(t)){const e=Ep(i["main-body-scroll"]),t=e?e.clientWidth-1:0;s=Math.floor(s*t)}return s&&(a.forEach(e=>{const t=pp(n,e);t&&(t.resizeWidth=s,o||(o=!0))}),o)?n.refreshColumn().then(()=>({status:o})):n.$nextTick().then(()=>({status:o}))},getColumnWidth(e){const t=pp(this,e);return t?t.renderWidth:0},resetColumn(e){const t=this;return Ef("vxe.error.delFunc",["resetColumn","resetCustom"]),t.resetCustom(e)},handleCustom(){const e=this,t=e,{mouseConfig:n}=t;return n&&(e.clearSelected&&e.clearSelected(),e.clearCellAreas&&(e.clearCellAreas(),e.clearCopyCellArea())),e.analyColumnWidth(),e.refreshColumn(!0)},restoreCustomStorage(){const e=this,t=e,{customConfig:n}=t,r=e.computeTableId,i=e.computeCustomOpts,{storage:o,restoreStore:a}=i,{isCustomAlign:s,isCustomHeaderAlign:l,isCustomFooterAlign:c,isCustomResizable:u,isCustomVisible:d,isCustomFixed:h,isCustomSort:p,isCustomAggGroup:f,isCustomAggFunc:m}=Ap(e);if(o&&(n?ld(i):i.enabled)&&(s||l||c||u||d||h||p||f||m)){if(!r)return void Of("vxe.error.reqProp",["id"]);const t=Wf(r);return a?Promise.resolve(a({$table:e,id:r,type:"restore",storeData:t})).then(t=>{if(t)return Kf(e,t)}).catch(e=>e):Kf(e,t)}},setCustomStoreData(e){const t=this,n=t,r=t;if(!e)return t.$nextTick();const i=t.computeCustomOpts,{checkMethod:o}=i;Tp(t);const a=[];pc.eachTree(r.collectColumn,e=>{e.resizeWidth=0,e.fixed=e.defaultFixed,e.renderSortNumber=e.sortNumber,e.parentId=e.defaultParentId,o&&!o({$table:t,column:e})||(e.visible=e.defaultVisible),e.align=e.defaultAlign,e.headerAlign=e.defaultHeaderAlign,e.footerAlign=e.defaultFooterAlign,e.aggFunc=e.defaultAggFunc,e.renderAggFn=e.defaultAggFunc,e.renderResizeWidth=e.renderWidth,a.push(e)});const s=pc.toArrayTree(pc.orderBy(a,"renderSortNumber"),{key:"id",parentKey:"parentId",children:"children"});return r.collectColumn=s,r.tableFullColumn=Dp(s),n.updateColFlag++,n.isColLoading=!0,Fg(t),Promise.resolve(Kf(t,e)).then(()=>Rg(t)).then(()=>{const{isRowGroupStatus:e,rowGroupList:r}=n;if(e&&t.handlePivotTableAggData){const e=t.computeRowGroupFields;(e?e.length:r.length)?e&&e.length?t.setRowGroups(e):t.clearRowGroups():t.handleUpdateAggData()}})},getCustomStoreData(){const e=this,t=e.$xeGrid,n=e.$xeGantt,r=t||n,i=e,o=e,a=e,{id:s}=i,l=e.computeCustomOpts,{isRowGroupStatus:c,rowGroupList:u}=o,{fullColumnFieldData:d,collectColumn:h}=a,{storage:p,checkMethod:f}=l,{isCustomAlign:m,isCustomHeaderAlign:g,isCustomFooterAlign:v,isCustomResizable:b,isCustomVisible:y,isCustomFixed:x,isCustomSort:w,isCustomAggGroup:C,isCustomAggFunc:_,isCustomPager:S}=Ap(e),k={},E={},O={},T={},$=[],D={},M={},F={},R={},I={pagerData:S&&r&&r.getCustomPagerData?r.getCustomPagerData():void 0,alignData:void 0,headerAlignData:void 0,footerAlignData:void 0,resizableData:void 0,sortData:void 0,visibleData:void 0,fixedData:void 0,aggGroupData:void 0,aggFuncData:void 0};if(!s)return p&&Of("vxe.error.reqProp",["id"]),I;let A=0,P=0,L=0,N=0,j=0,B=0,V=0,z=0;const H={};return pc.eachTree(h,(t,n,r,i,o)=>{const a=t.getKey();if(a){if(o){if(w){const e=o.getKey(),t=H[e];if(j=1,t){const e={k:a};H[a]=e,t.c||(t.c=[]),t.c.push(e)}}}else{if(w){j=1;const e={k:a};H[a]=e,$.push(e)}x&&(t.fixed||"")!==(t.defaultFixed||"")&&(B=1,M[a]=t.fixed)}m&&t.align&&(A=1,k[a]=t.align),g&&t.headerAlign&&(P=1,E[a]=t.headerAlign),v&&t.footerAlign&&(L=1,O[a]=t.footerAlign),b&&t.resizeWidth&&(N=1,T[a]=t.renderWidth),!y||f&&!f({$table:e,column:t})||(!t.visible&&t.defaultVisible?(V=1,D[a]=!1):t.visible&&!t.defaultVisible&&(V=1,D[a]=!0)),_&&(t.aggFunc||"")!==(t.defaultAggFunc||"")&&(z=1,R[a]=t.aggFunc)}else Of("vxe.error.reqProp",[`${t.getTitle()||t.type||""} -> column.field=?`])}),A&&(I.alignData=k),P&&(I.headerAlignData=E),L&&(I.footerAlignData=O),N&&(I.resizableData=T),j&&(I.sortData=$),B&&(I.fixedData=M),V&&(I.visibleData=D),C&&c&&(u.forEach(e=>{const t=d[e.field];t&&(F[t.column.getKey()]=!0)}),I.aggGroupData=F),z&&(I.aggFuncData=R),I},saveCustomStore(e){const t=this,n=t,r=t,{customConfig:i}=n,o=t.computeTableId,a=t.computeCustomOpts,{updateStore:s,storage:l}=a,{isCustomAlign:c,isCustomHeaderAlign:u,isCustomFooterAlign:d,isCustomResizable:h,isCustomVisible:p,isCustomFixed:f,isCustomSort:m,isCustomAggGroup:g,isCustomAggFunc:v,isCustomPager:b}=Ap(t);if("reset"!==e&&(r.isCustomStatus=!0),l&&(i?ld(a):a.enabled)&&(c||u||d||h||p||f||m||g||v||b)){if(!o)return Of("vxe.error.reqProp",["id"]),t.$nextTick();const n="reset"===e?{pagerData:{},alignData:{},headerAlignData:{},footerAlignData:{},resizableData:{},sortData:[],visibleData:{},fixedData:{},aggGroupData:{},aggFuncData:{}}:t.getCustomStoreData();if(s)return s({$table:t,id:o,type:e,storeData:n});qf(o,"reset"===e?null:n)}return t.$nextTick()},handleUpdateDataQueue(){const e=this,t=e;t.upDataFlag++},handleRefreshColumnQueue(){const e=this,t=e;t.reColumnFlag++},handleFilterOptions(e){const t=this,n=t;if(e){const{filterStore:r}=n,{filterRender:i,filters:o}=e,a=t.computeRendererOpts,s=o||[],l=ld(i)&&i.name?a[i.name]||Df.get(i.name):null,c=e.filterRecoverMethod||(l?l.tableFilterRecoverMethod||l.filterRecoverMethod:null);r.column=e,s.forEach(n=>{const{_checked:r,checked:i}=n;n._checked=i,i||r===i||c&&c({option:n,column:e,$table:t})}),t.checkFilterOptions()}},refreshColumn(e){const t=this;return e&&$g(t),Mg(t,!0).then(()=>t.refreshScroll()).then(()=>vg(t,!1,!0,!0))},analyColumnWidth(){const e=this,t=e,n=e,{tableFullColumn:r}=n,i=e.computeColumnOpts,{width:o,minWidth:a}=i,s=[],l=[],c=[],u=[],d=[],h=[],p=[],f=[];r.forEach(e=>{o&&!e.width&&(e.width=o),a&&!e.minWidth&&(e.minWidth=a),e.visible&&(e.resizeWidth?s.push(e):"auto"===e.width?p.push(e):nh(e.width)?l.push(e):rh(e.width)?d.push(e):nh(e.minWidth)?c.push(e):"auto"===e.minWidth?u.push(e):rh(e.minWidth)?h.push(e):f.push(e))}),Object.assign(t.columnStore,{resizeList:s,pxList:l,pxMinList:c,autoMinList:u,scaleList:d,scaleMinList:h,autoList:p,remainList:f})},handleColResizeMousedownEvent(e,t,n){const r=this,i=r,o=r,a=0===e.button;if(!a)return;e.stopPropagation(),e.preventDefault();const{column:s}=n,{columnStore:l,overflowX:c,scrollbarHeight:u}=i,{visibleColumn:d}=o,{leftList:h,rightList:p}=l,f=r.computeResizableOpts,m=c?u:0,g=r.$refs.refElem,v=r.$refs.refLeftContainer,b=r.$refs.refRightContainer,y=r.$refs.refColResizeBar;if(!y)return;const x="left"===t,w="right"===t,C=y.firstElementChild,_=r.computeScrollbarXToTop,{clientX:S}=e,k=e.target;let E=k.parentElement,O=s;const T=s.children&&s.children.length;if(T&&(O=_p(s),T)){const e=E?E.parentElement:null,t=e?e.parentElement:null;E=t?t.querySelector(`.vxe-header--column[colid="${O.id}"]`):null}if(!E)return;const $=pc.assign(n,{cell:E,$table:r});let D=0;const M=g.getBoundingClientRect(),F=b?b.getBoundingClientRect():null,R=E.getBoundingClientRect(),I=k.getBoundingClientRect(),A=k.clientWidth,P=pc.floor(A/2),L=I.x-M.x+P,N=wp($)-P,j=xp($),B=w?0:R.x-M.x+A+N,V=R.x-M.x+E.clientWidth-N;let z=0,H=0;if(x||w){let e=!1;const t=x?h:p;for(let n=0;n<t.length;n++){const r=t[n];e?z+=r.renderWidth:(e=r.id===O.id,e||(H+=r.renderWidth))}}const W=e=>{e.stopPropagation(),e.preventDefault();const t=g.clientHeight,n=e.clientX-S;let r=L+n;x?F&&(r=Math.min(r,F.x-M.x-z-N)):w&&(v&&(r=Math.max(r,v.clientWidth+H+N)),r=Math.min(r,V)),D=Math.max(r,B),j>1&&(D=Math.min(D,j+B-N));const o=Math.max(1,D);if(y.style.left=`${o}px`,y.style.top=`${_?m:0}px`,y.style.height=`${_?t-m:t}px`,f.showDragTip&&C){C.textContent=$f("vxe.table.resizeColTip",[Math.floor(O.renderWidth+(w?L-D:D-L))]);const n=g.clientWidth,r=y.clientWidth,i=C.clientWidth,a=C.clientHeight;let s=-i;o<i+r?s=0:o>n&&(s+=n-o),C.style.left=`${s}px`,C.style.top=`${Math.min(t-a,Math.max(0,e.clientY-M.y-a/2))}px`}i.isDragResize=!0};i.isDragResize=!0,ah(g,"col-drag--resize"),y.style.display="block",document.onmousemove=W,document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null,y.style.display="none",o._lastResizeTime=Date.now(),setTimeout(()=>{i.isDragResize=!1},50);const t=O.renderWidth+(w?L-D:D-L),a=Object.assign(Object.assign({},n),{resizeWidth:t,resizeColumn:O});"fixed"===f.dragMode&&d.forEach(e=>{e.id!==O.id&&(e.resizeWidth||(e.resizeWidth=e.renderWidth))}),r.handleColResizeCellAreaEvent?r.handleColResizeCellAreaEvent(e,a):(O.resizeWidth=t,Yg(r,e,a)),oh(g,"col-drag--resize")},W(e),r.closeMenu&&r.closeMenu()},handleColResizeDblclickEvent(e,t){const n=this,r=n,i=n,o=n.computeResizableOpts,{isDblclickAutoWidth:a}=o,s=n.$refs.refElem;if(a&&s){e.stopPropagation(),e.preventDefault();const{fullColumnIdData:o}=i,{column:a}=t;let l=a;a.children&&a.children.length&&pc.eachTree(a.children,e=>{l=e});const c=l.id,u=o[c],d=e.target,h=d.parentNode,p=Object.assign(t,{cell:h,$table:n}),f=wp(p),m=xp(p);s.setAttribute("data-calc-col","Y");let g=qg(n,l,s);s.removeAttribute("data-calc-col"),u&&(g=Math.max(g,u.width)),g=Math.max(f,g),m>1&&(g=Math.min(m,g));const v=Object.assign(Object.assign({},t),{resizeWidth:g,resizeColumn:l});r.isDragResize=!1,i._lastResizeTime=Date.now(),n.handleColResizeDblclickCellAreaEvent?n.handleColResizeDblclickCellAreaEvent(e,v):(l.resizeWidth=g,Yg(n,e,v))}},handleRowResizeMousedownEvent(e,t){const n=this,r=n,i=n,o=n;e.stopPropagation(),e.preventDefault();const a=n.$xeGantt,{row:s}=t,{showOverflow:l}=r,{overflowX:c,scrollbarWidth:u,overflowY:d,scrollbarHeight:h}=i,{elemStore:p,fullAllDataRowIdData:f}=o,m=d?u:0,g=c?h:0,v=n.computeScrollbarYToLeft,b=n.computeResizableOpts,y=n.computeRowOpts,x=n.computeCellOpts;let w=n.$refs.refElem;if(a){const e=a.$refs.refGanttContainerElem;e&&(w=e)}const C=n.$refs.refRowResizeBar;if(!C)return;const{clientY:_}=e,S=C.firstElementChild,k=e.currentTarget,E=k.parentNode,O=E.parentNode,T=Ep(p["main-body-scroll"]);if(!T)return;const $=np(n,s),D=f[$];if(!D)return;const M=n.computeDefaultRowHeight;let F=mp(D,x,y,M);l||(F=E.clientHeight);const R=w.getBoundingClientRect(),I=O.getBoundingClientRect(),A=_-I.y-O.clientHeight;let P=F;const L=E.querySelector(".vxe-cell");let N=0;if(L){const e=getComputedStyle(L);N=Math.max(1,Math.ceil(pc.toNumber(e.paddingTop)+pc.toNumber(e.paddingBottom)))}const j=I.y-R.y+N,B=e=>{e.stopPropagation(),e.preventDefault();const t=w.clientWidth-m,n=w.clientHeight-g;let r=e.clientY-R.y-A;if(r<j?r=j:P=Math.max(N,F+e.clientY-_),C.style.left=`${v?m:0}px`,C.style.top=`${r}px`,C.style.width=`${t}px`,b.showDragTip&&S){S.textContent=$f("vxe.table.resizeRowTip",[P]);const i=S.clientWidth,o=S.clientHeight;let a=Math.max(2,e.clientX-R.x),s=0;a+i>=t-2&&(a=t-i-2),r+o>=n&&(s=n-(r+o)),S.style.left=`${a}px`,S.style.top=`${s}px`}i.isDragResize=!0};i.isDragResize=!0,ah(w,"row-drag--resize"),C.style.display="block",document.onmousemove=B,document.onmouseup=function(e){if(document.onmousemove=null,document.onmouseup=null,C.style.display="none",o._lastResizeTime=Date.now(),setTimeout(()=>{i.isDragResize=!1},50),P!==F){const r=Object.assign(Object.assign({},t),{resizeHeight:P,resizeRow:s});o.isResizeCellHeight=!0,n.handleRowResizeCellAreaEvent?n.handleRowResizeCellAreaEvent(e,r):(D.resizeHeight=P,Ug(n,e,r),Xg(n))}oh(w,"row-drag--resize")},B(e)},handleRowResizeDblclickEvent(e,t){const n=this,r=n,i=n,o=n.computeResizableOpts,{isDblclickAutoHeight:a}=o,s=n.$refs.refElem;if(a&&s){e.stopPropagation(),e.preventDefault();const{editStore:o}=r,{fullAllDataRowIdData:a}=i,{actived:l}=o,{row:c}=t,u=np(n,c),d=a[u];if(!d)return;const h=()=>{s.setAttribute("data-calc-row","Y");const o=Hm(n,u,d,s);s.removeAttribute("data-calc-row");const a=Object.assign(Object.assign({},t),{resizeHeight:o,resizeRow:c});r.isDragResize=!1,i._lastResizeTime=Date.now(),n.handleRowResizeDblclickCellAreaEvent?n.handleRowResizeDblclickCellAreaEvent(e,a):(d.resizeHeight=o,Ug(n,e,a))};l.row||l.column?n.clearEdit().then(h):h()}},setRowHeightConf(e){const t=this,n=t,r=t,{fullAllDataRowIdData:i}=r;let o=!1;return e&&(pc.each(e,(e,t)=>{const n=i[t];if(n){const t=pc.toInteger(e);t&&(n.resizeHeight=t,o||(o=!0))}}),o&&(r.isResizeCellHeight=!0,n.resizeHeightFlag++)),t.$nextTick().then(()=>(Xg(t),{status:o}))},getRowHeightConf(e){const t=this,n=t,{fullAllDataRowIdData:r,afterFullData:i}=n,{handleGetRowId:o}=ip(t),a=t.computeRowOpts,s=t.computeCellOpts,l=t.computeDefaultRowHeight,c={};return i.forEach(t=>{const n=o(t),i=r[n];if(i){const t=i.resizeHeight;if(t||e){const e=mp(i,s,a,l);c[n]=e}}}),c},recalcRowHeight(e){const t=this,n=t,r=t,{fullAllDataRowIdData:i}=r,o=pc.isArray(e)?e:[e],a=t.$refs.refElem;if(a){const{handleGetRowId:e}=ip(t);a.setAttribute("data-calc-row","Y"),o.forEach(n=>{const r=pc.isString(n)||pc.isNumber(n)?n:e(n),o=i[r];o&&(o.resizeHeight=Hm(t,r,o,a)),a.removeAttribute("data-calc-row")}),n.calcCellHeightFlag++}return t.$nextTick()},setRowHeight(e,t){const n=this,r=n,i=n,{fullAllDataRowIdData:o}=i;let a=!1;const s=pc.isArray(e)?e:[e];let l=pc.toInteger(t);if(rh(t)){const e=n.$refs.refTableBody,t=e?e.$el:null,r=t?t.clientHeight-1:0;l=Math.floor(l*r)}if(l){const{handleGetRowId:e}=ip(n);s.forEach(t=>{const n=pc.isString(t)||pc.isNumber(t)?t:e(t),r=o[n];r&&(r.resizeHeight=l,a||(a=!0))}),a&&(i.isResizeCellHeight=!0,r.resizeHeightFlag++)}return n.$nextTick()},getRowHeight(e){const t=this,n=t,{fullAllDataRowIdData:r}=n,i=t.computeRowOpts,o=t.computeCellOpts,a=t.computeDefaultRowHeight,s=pc.isString(e)||pc.isNumber(e)?e:np(t,e),l=r[s];return l?mp(l,o,i,a):0},refreshScroll(){const e=this,t=e,{elemStore:n,lastScrollLeft:r,lastScrollTop:i}=t,o=Ep(n["main-header-scroll"]),a=Ep(n["main-body-scroll"]),s=Ep(n["main-footer-scroll"]),l=Ep(n["left-body-scroll"]),c=Ep(n["right-body-scroll"]),u=e.$refs.refScrollXHandleElem,d=e.$refs.refScrollYHandleElem;return new Promise(n=>{if(r||i)return Xh(e,r,i).then(()=>{setTimeout(n,10)});t.intoRunScroll=!0,ph(d,i),ph(a,i),ph(l,i),ph(c,i),fh(u,r),fh(a,r),fh(o,r),fh(s,r),setTimeout(()=>{t.intoRunScroll=!1,n()},10)})},handleResizeEvent(){const e=this;bg(e)},recalculate(e){const t=this,n=!!e;return vg(t,n,n,n)},updateStyle(){const e=this;return dm(e)},checkScrolling(){const e=this,t=e,{elemStore:n}=t,r=Ep(n["main-body-scroll"]),i=e.$refs.refLeftContainer,o=e.$refs.refRightContainer,a=e.$refs.refScrollXHandleElem,s=a||r;s&&(i&&(s.scrollLeft>0?ah(i,"scrolling--middle"):oh(i,"scrolling--middle")),o&&(s.clientWidth<s.scrollWidth-Math.ceil(s.scrollLeft)?ah(o,"scrolling--middle"):oh(o,"scrolling--middle")))},preventEvent(e,t,n,r,i){const o=this,a=o.$xeGrid,s=o.$xeGantt;let l=Ff.get(t);l.length||"event.clearEdit"!==t||(l=Ff.get("event.clearActived"),l.length&&Ef("vxe.error.delEvent",["event.clearActived","event.clearEdit"]));let c=null,u=!1;for(let d=0;d<l.length;d++){const t=l[d],r=t(Object.assign({$table:o,$grid:a,$gantt:s,$event:e},n));if(!1===r){u=!0;break}if(r&&!1===r.status){c=r.result,u=!0;break}}return u||r&&(c=r()),i&&i(),c},handleGlobalMousedownEvent(e){const t=this,n=t,r=t.$xeGrid,i=t.$xeGantt,o=r||i,a=t,s=t,{editStore:l,ctxMenuStore:c,customStore:u}=a,{mouseConfig:d,editRules:h}=n,p=t.$refs.refElem,f=t.computeEditOpts,m=t.computeValidOpts,g=t.computeAreaOpts,{actived:v}=l,b=t.$refs.refTableFilter,y=t.$refs.refTableMenu,x=t.$refs.refTableCustom,w=t.$refs.refValidTooltip;if(b&&(vh(e,p,"vxe-cell--filter").flag||vh(e,b.$el).flag||vh(e,document.body,"vxe-table--ignore-clear").flag||t.preventEvent(e,"event.clearFilter",s._currFilterParams,t.closeFilter)),x&&(u.btnEl===e.target||vh(e,document.body,"vxe-toolbar-custom-target").flag||vh(e,x.$el).flag||vh(e,document.body,"vxe-table--ignore-clear").flag||u.visible&&t.closeCustom&&t.preventEvent(e,"event.clearCustom",{},()=>{t.closeCustom(),t.dispatchEvent("custom",{type:"close"},e)})),v.row){if(!1!==f.autoClear){const r=v.args.cell;r&&vh(e,r).flag||w&&vh(e,w.$el).flag||(!s._lastCallTime||s._lastCallTime+50<Date.now())&&(vh(e,document.body,"vxe-table--ignore-clear").flag||t.preventEvent(e,"event.clearEdit",v.args,()=>{let r;if("row"===f.mode){const n=vh(e,p,"vxe-body--row"),i=n.flag?t.getRowNode(n.targetElem):null;r=!!i&&!t.eqRow(i.item,v.args.row)}else r=!vh(e,p,"col--edit").flag;if(r||(r=vh(e,p,"vxe-header--row").flag),r||(r=vh(e,p,"vxe-footer--row").flag),!r&&n.height&&!a.overflowY){const t=e.target;ih(t,"vxe-table--body-wrapper")&&(r=e.offsetY<t.clientHeight)}!r&&vh(e,p).flag||setTimeout(()=>{t.handleClearEdit(e).then(()=>{!s.isActivated&&h&&m.autoClear&&(a.validErrorMaps={})})})}))}}else if(d&&!vh(e,p).flag&&(!o||!vh(e,o.$el).flag)&&(!y||!vh(e,y.$el).flag)&&(!this.$toolbar||!vh(e,this.$toolbar.$el).flag)&&(t.clearSelected&&t.clearSelected(),g.autoClear&&t.getCellAreas)){const n=t.getCellAreas();n&&n.length&&!vh(e,document.body,"vxe-table--ignore-areas-clear").flag&&t.preventEvent(e,"event.clearAreas",{},()=>{t.clearCellAreas(),t.clearCopyCellArea(),t.dispatchEvent("clear-cell-area-selection",{cellAreas:n},e)})}if(c.visible&&y&&!vh(e,y.$el).flag&&t.closeMenu(),!v.row||!vh(e,document.body,"vxe-table--ignore-clear").flag){const n=vh(e,(o||t).$el).flag;!n&&h&&m.autoClear&&(a.validErrorMaps={}),s.isActivated=n}},handleGlobalBlurEvent(){const e=this;e.closeFilter(),e.closeMenu()},handleGlobalScrollEvent(e){const t=this,n=t,{filterStore:r}=n,i=t.computeFilterOpts;r.visible&&i.transfer&&t.handleFilterStyle(),tv(t,e)},handleGlobalMousewheelEvent(){const e=this;e.closeTooltip(),e.closeMenu&&e.closeMenu()},keydownEvent(e){const t=this,n=t,r=t,{mouseConfig:i,keyboardConfig:o}=n,{filterStore:a,ctxMenuStore:s,editStore:l}=r,c=t.computeMouseOpts,u=t.computeKeyboardOpts,{actived:d}=l,h=If.hasKey(e,Af.ESCAPE);h&&t.preventEvent(e,"event.keydown",null,()=>{if(t.dispatchEvent("keydown-start",{},e),o&&i&&c.area&&t.handleKdClAreaEvent)t.handleKdClAreaEvent(e);else if((d.row||a.visible||s.visible)&&(e.stopPropagation(),t.closeFilter(),t.closeMenu(),o&&u.isEsc&&d.row)){const n=d.args;t.handleClearEdit(e),i&&c.selected&&t.$nextTick(()=>t.handleSelected(n,e))}t.dispatchEvent("keydown",{},e),t.dispatchEvent("keydown-end",{},e)})},contextMenuEvent(e){const t=this;t.dispatchEvent("context-menu",{},e)},handleGlobalKeydownEvent(e){const t=this,n=t,r=t,i=t,o=t.$xeGrid,a=t.$xeGantt;r.isActivated&&t.preventEvent(e,"event.keydown",null,()=>{const{mouseConfig:s,keyboardConfig:l,treeConfig:c,editConfig:u,highlightCurrentRow:d,highlightCurrentColumn:h}=n,{ctxMenuStore:p,editStore:f}=i,{afterFullData:m,visibleColumn:g,currentRow:v}=r,b=t.computeIsContentMenu,y=t.computeBodyMenu,x=t.computeKeyboardOpts,w=t.computeMouseOpts,C=t.computeEditOpts,_=t.computeTreeOpts,S=t.computeMenuList,k=t.computeRowOpts,E=t.computeColumnOpts,{isLastEnterAppendRow:O,beforeEnterMethod:T,enterMethod:$,isLastTabAppendRow:D,beforeTabMethod:M,tabMethod:F}=x,{selected:R,actived:I}=f,{keyCode:A}=e,P=If.hasKey(e,Af.PROCESS),L=If.hasKey(e,Af.ESCAPE),N=If.hasKey(e,Af.BACKSPACE),j=If.hasKey(e,Af.TAB),B=If.hasKey(e,Af.ENTER),V=If.hasKey(e,Af.SPACEBAR),z=If.hasKey(e,Af.ARROW_LEFT),H=If.hasKey(e,Af.ARROW_UP),W=If.hasKey(e,Af.ARROW_RIGHT),q=If.hasKey(e,Af.ARROW_DOWN),G=If.hasKey(e,Af.DELETE),Y=If.hasKey(e,Af.Y),U=If.hasKey(e,Af.Z),K=If.hasKey(e,Af.F2),X=If.hasKey(e,Af.CONTEXT_MENU),Z=sh(e),Q=e.shiftKey,J=e.altKey,ee=z||H||W||q,te=b&&p.visible&&(B||V||ee),ne=ld(u)&&I.column&&I.row,re=_.children||_.childrenField,ie=C.beforeEditMethod||C.activeMethod,oe=R.row,ae=R.column;if(te)e.preventDefault(),p.showChild&&pd(p.selected)?t.moveCtxMenu(e,p,"selectChild",z,!1,p.selected.children):t.moveCtxMenu(e,p,"selected",W,!0,S);else if(l&&s&&w.area&&t.handleKdClAreaEvent)t.handleKdClAreaEvent(e);else if(L){if(t.closeMenu&&t.closeMenu(),t.closeFilter(),l&&x.isEsc&&I.row){const n=I.args;t.handleClearEdit(e),w.selected&&t.$nextTick(()=>t.handleSelected(n,e))}}else if(l&&V&&x.isChecked&&oe&&ae&&("checkbox"===ae.type||"radio"===ae.type))e.preventDefault(),"checkbox"===ae.type?t.handleToggleCheckRowEvent(e,R.args):t.triggerRadioRowEvent(e,R.args);else if(K&&ld(u))ne||oe&&ae&&(e.preventDefault(),t.handleEdit(R.args,e));else if(X)r._keyCtx=oe&&ae&&y.length,clearTimeout(r.keyCtxTimeout),r.keyCtxTimeout=setTimeout(()=>{r._keyCtx=!1},1e3);else if(B&&!J&&l&&x.isEnter&&(oe||I.row||c&&(k.isCurrent||d)&&v)){if(Z){if(I.row){const n=I.args;t.handleClearEdit(e),s&&w.selected&&t.$nextTick(()=>t.handleSelected(n,e))}}else if(oe||I.row){const n=oe||I.row,r=ae||I.column;if(r){const i=oe?R.args:I.args;if(Q)x.enterToTab?t.moveTabSelected(i,Q,e):t.moveEnterSelected(i,z,!0,W,!1,e);else{const o=t.getVTRowIndex(n),a=t.getVTColumnIndex(r);if(x.enterToTab){const s={row:n,rowIndex:t.getRowIndex(n),$rowIndex:t.getVMRowIndex(n),_rowIndex:o,column:r,columnIndex:t.getColumnIndex(r),$columnIndex:t.getVMColumnIndex(r),_columnIndex:a,$table:t};if(!M||!1!==M(s)){if(e.preventDefault(),D){const n=g[0];if(o>=m.length-1&&a>=g.length-1)return I.row&&t.handleClearEdit(e),t.insertAt({},-1).then(({row:r})=>{t.scrollToRow(r,n),t.handleSelected(Object.assign(Object.assign({},i),{row:r,column:n}),e)}),void t.dispatchEvent("tab-append-row",s,e)}F?F(s):t.moveTabSelected(i,Q,e)}}else{const s={row:n,rowIndex:t.getRowIndex(n),$rowIndex:t.getVMRowIndex(n),_rowIndex:o,column:r,columnIndex:t.getColumnIndex(r),$columnIndex:t.getVMColumnIndex(r),_columnIndex:a,$table:t};if(!T||!1!==T(s)){if(e.preventDefault(),O&&o>=m.length-1)return t.insertAt({},-1).then(({row:n})=>{t.scrollToRow(n,ae),t.handleSelected(Object.assign(Object.assign({},i),{row:n}),e)}),void t.dispatchEvent("enter-append-row",s,e);$?$(s):(I.row&&t.handleClearEdit(e),t.moveEnterSelected(i,z,!1,W,!0,e))}}}}}else if(c&&(k.isCurrent||d)&&v){const n=v[re];if(n&&n.length){e.preventDefault();const r=n[0],i={$table:t,row:r,rowIndex:t.getRowIndex(r),$rowIndex:t.getVMRowIndex(r)};t.setTreeExpand(v,!0).then(()=>t.scrollToRow(r)).then(()=>t.triggerCurrentRowEvent(e,i))}}}else if(ee&&l&&x.isArrow)ne||(w.selected&&oe&&ae?t.moveArrowSelected(R.args,z,H,W,q,e):((H||q)&&(k.isCurrent||d)&&t.moveCurrentRow(H,q,e),(z||W)&&(E.isCurrent||h)&&t.moveCurrentColumn(z,W,e)));else if(j&&l&&x.isTab){if(oe||I.row){const n=oe||I.row,r=ae||I.column;if(r){const i=oe?R.args:I.args,o=t.getVTRowIndex(n),a=t.getVTColumnIndex(r),s={row:n,rowIndex:t.getRowIndex(n),$rowIndex:t.getVMRowIndex(n),_rowIndex:o,column:r,columnIndex:t.getColumnIndex(r),$columnIndex:t.getVMColumnIndex(r),_columnIndex:a,$table:t};if(!M||!1!==M(s)){if(e.preventDefault(),D){const n=g[0];if(o>=m.length-1&&a>=g.length-1)return I.row&&t.handleClearEdit(e),t.insertAt({},-1).then(({row:r})=>{t.scrollToRow(r,n),t.handleSelected(Object.assign(Object.assign({},i),{row:r,column:n}),e)}),void t.dispatchEvent("tab-append-row",s,e)}F?F(s):(I.row&&t.handleClearEdit(e),t.moveTabSelected(i,Q,e))}}}}else if(l&&x.isDel&&G&&ld(u)&&(oe||ae)){if(!ne){const{delMethod:n}=x,r={row:oe,rowIndex:t.getRowIndex(oe),column:ae,columnIndex:t.getColumnIndex(ae),$table:t,$grid:o,$gantt:a};if(!ie||ie(r)){if(n)n(r);else{const e=Sp(oe,ae);null!==e&&(t.handlePushStack(),kp(oe,ae,null))}t.updateFooter(),t.dispatchEvent("cell-delete-value",r,e)}}}else if(N&&l&&x.isBack&&ld(u)&&(oe||ae)){if(!ne){const{backMethod:n}=x;if(x.isDel&&ld(u)&&(oe||ae)){const r={row:oe,rowIndex:t.getRowIndex(oe),$rowIndex:t.getVMRowIndex(oe),_rowIndex:t.getVTRowIndex(oe),column:ae,columnIndex:t.getColumnIndex(ae),$columnIndex:t.getVMColumnIndex(ae),_columnIndex:t.getVTColumnIndex(ae),$table:t,$grid:o,$gantt:a};ie&&!ie(r)||(n?n(r):t.handleEdit(r,e,{isClear:!0}),t.dispatchEvent("cell-backspace-value",r,e))}}}else if(N&&l&&c&&x.isBack&&(k.isCurrent||d)&&v){const{parent:n}=pc.findTree(r.afterTreeFullData,e=>e===v,{children:re});if(n){e.preventDefault();const r={row:n,rowIndex:t.getRowIndex(n),$rowIndex:t.getVMRowIndex(n),$table:t,$grid:o,$gantt:a};t.setTreeExpand(n,!1).then(()=>t.scrollToRow(n)).then(()=>t.triggerCurrentRowEvent(e,r))}}else if(l&&x.isUndoRedo&&Z&&(U||Y)&&!wh(e.target))Y||Q&&U?(e.preventDefault(),t.handleRedoStackEvent(e)):U&&(e.preventDefault(),t.handleUndoStackEvent(e));else if(l&&x.isEdit&&!Z&&(V||P||A>=48&&A<=57||A>=65&&A<=90||A>=96&&A<=111||A>=186&&A<=192||A>=219&&A<=222)){const{editMode:n,editMethod:r}=x;if(ae&&oe&&ld(ae.editRender)){const i=C.beforeEditMethod||C.activeMethod,s={row:oe,rowIndex:t.getRowIndex(oe),$rowIndex:t.getVMRowIndex(oe),_rowIndex:t.getVTRowIndex(oe),column:ae,columnIndex:t.getColumnIndex(ae),$columnIndex:t.getVMColumnIndex(ae),_columnIndex:t.getVTColumnIndex(ae),$table:t,$grid:o,$gantt:a};if(!i||i(s))if(r)r(s);else{let r=!1;"insert"!==n&&(r=!0),t.handleEdit(s,e,{isClear:r})}}}t.dispatchEvent("keydown",{},e)})},handleGlobalPasteEvent(e){const t=this,n=t,r=t,i=t,{keyboardConfig:o,mouseConfig:a}=n,{editStore:s,filterStore:l}=i,{isActivated:c}=r,u=t.computeMouseOpts,d=t.computeKeyboardOpts,{actived:h}=s;c&&!l.visible&&(h.row||h.column||o&&d.isClip&&a&&u.area&&t.handlePeClAreaEvent&&t.handlePeClAreaEvent(e),t.dispatchEvent("paste",{},e))},handleGlobalCopyEvent(e){const t=this,n=t,r=t,i=t,{keyboardConfig:o,mouseConfig:a}=n,{editStore:s,filterStore:l}=i,{isActivated:c}=r,u=t.computeMouseOpts,d=t.computeKeyboardOpts,{actived:h}=s;c&&!l.visible&&(h.row||h.column||o&&d.isClip&&a&&u.area&&t.handleCyClAreaEvent&&t.handleCyClAreaEvent(e),t.dispatchEvent("copy",{},e))},handleGlobalCutEvent(e){const t=this,n=t,r=t,i=t,{keyboardConfig:o,mouseConfig:a}=n,{editStore:s,filterStore:l}=i,{isActivated:c}=r,u=t.computeMouseOpts,d=t.computeKeyboardOpts,{actived:h}=s;c&&!l.visible&&(h.row||h.column||o&&d.isClip&&a&&u.area&&t.handleCutCellAreaEvent&&t.handleCutCellAreaEvent(e),t.dispatchEvent("cut",{},e))},handleGlobalResizeEvent(){const e=this,t=e,{filterStore:n}=t;n.visible&&e.handleFilterStyle(),e.closeMenu(),e.updateCellAreas(),bg(e),e.updateCellAreas()},handleUpdateHeaderMerge(){const e=this,t=e,n=e,{mergeHeaderList:r}=n,{mergeMaps:i,mergeRowMaps:o,mergeColMaps:a}=Fm(r);n.mergeHeaderCellMaps=i,n.mergeHeaderRowMaps=o,n.mergeHeaderColMaps=a,t.mergeHeadFlag++},handleUpdateBodyMerge(){const e=this,t=e,n=e,{mergeBodyList:r}=n,{mergeMaps:i,mergeRowMaps:o,mergeColMaps:a}=Fm(r);n.mergeBodyCellMaps=i,n.mergeBodyRowMaps=o,n.mergeBodyColMaps=a,t.mergeBodyFlag++},handleUpdateFooterMerge(){const e=this,t=e,n=e,{mergeFooterList:r}=n,{mergeMaps:i,mergeRowMaps:o,mergeColMaps:a}=Fm(r);n.mergeFooterCellMaps=i,n.mergeFooterRowMaps=o,n.mergeFooterColMaps=a,t.mergeFootFlag++},handleAggregateSummaryData(){const e=this;return e.refreshAggregateCalcValues()},handleTargetLeaveEvent(){const e=this,t=e,n=e.computeTooltipOpts;let r=e.$refs.refTooltip;r&&r.setActived&&r.setActived(!1),n.enterable?t.tooltipTimeout=setTimeout(()=>{r=e.$refs.refTooltip,r&&r.isActived&&!r.isActived()&&e.closeTooltip()},n.leaveDelay):e.closeTooltip()},triggerHeaderTitleEvent(e,t,n){const r=this,i=r,o=t.content||t.message;if(o){const{tooltipStore:a}=i,{column:s}=n,l=fd(o);Gm(r,!0),a.row=null,a.column=s,a.visible=!0,a.currOpts=t,r.$nextTick(()=>{const t=r.$refs.refTooltip;t&&t.open&&t.open(e.currentTarget,l)})}},triggerHeaderTooltipEvent(e,t){const n=this,r=n,{tooltipStore:i}=r,o=n.computeHeaderTooltipOpts,{column:a}=t;Gm(n,!0);const s=e.currentTarget;if(!s)return;const l=s.parentElement;if(!l)return;const c=l.parentElement;if(!c)return;const u=c.parentElement;if(u&&(i.column!==a||!i.visible)){const r=u.querySelector(".vxe-cell--title");sg(n,e,o,"header",u,(ih(u,"col--ellipsis")?r:l)||l,r||c,t)}},triggerBodyTooltipEvent(e,t){const n=this,r=n,i=n,{editConfig:o}=r,{editStore:a}=i,{tooltipStore:s}=i,l=n.computeTooltipOpts,c=n.computeEditOpts,{actived:u}=a,{row:d,column:h}=t,p=e.currentTarget;if(Gm(n,s.column!==h||s.row!==d),h.editRender&&ld(o)){if("row"===c.mode&&u.row===d)return;if(u.row===d&&u.column===h)return}if(s.column!==h||s.row!==d||!s.visible){const r=p.querySelector(".vxe-cell--wrapper");let i=null,o=p.querySelector("html"===h.type?".vxe-cell--html":".vxe-cell--label");h.treeNode&&(i=p.querySelector(".vxe-tree-cell")),o||(o=r),sg(n,e,l,"body",p,i||r,o,t)}},triggerFooterTooltipEvent(e,t){const n=this,r=n,{column:i}=t,{tooltipStore:o}=r,a=n.computeFooterTooltipOpts,s=e.currentTarget;if(Gm(n,o.column!==i||!!o.row),o.column!==i||!o.visible){const r=s.querySelector(".vxe-cell--wrapper");let o=null,l=s.querySelector("html"===i.type?".vxe-cell--html":".vxe-cell--label");"html"===i.type&&(o=s.querySelector(".vxe-cell--html")),l||(l=r),sg(n,e,a,"footer",s,o||r,l,t)}},openTooltip(e,t){const n=this,r=n.$refs.refCommTooltip;return r?r.open(e,t):n.$nextTick()},closeTooltip(){const e=this,t=e,{tooltipStore:n}=t,r=e.$refs.refTooltip,i=e.$refs.refCommTooltip;return n.visible&&(Object.assign(n,{row:null,column:null,content:null,visible:!1,type:null,currOpts:{}}),r&&r.close()),i&&i.close(),e.$nextTick()},isAllCheckboxChecked(){const e=this,t=e;return t.isAllSelected},isAllCheckboxIndeterminate(){const e=this,t=e;return!t.isAllSelected&&t.isIndeterminate},isCheckboxIndeterminate(){const e=this;return Ef("vxe.error.delFunc",["isCheckboxIndeterminate","isAllCheckboxIndeterminate"]),e.isAllCheckboxIndeterminate()},getCheckboxIndeterminateRecords(e){const t=this,n=t,r=t,{treeConfig:i}=n,{fullDataRowIdData:o,treeIndeterminateRowMaps:a}=r;if(i){const t=[],n=[];return pc.each(a,(e,r)=>{e&&(t.push(e),o[r]&&n.push(e))}),e?t:n}return[]},handleCheckedCheckboxRow(e,t,n){const r=this;return wm(r,e,t,n)},setCheckboxRow(e,t){const n=this;return e&&!pc.isArray(e)&&(e=[e]),wm(n,e,t,!0)},setCheckboxRowByKey(e,t){const n=this,r=n,{fullAllDataRowIdData:i}=r;e&&!pc.isArray(e)&&(e=[e]);const o=[];return e.forEach(e=>{const t=op(e),n=i[t];n&&o.push(n.row)}),wm(n,o,t,!0)},setCheckboxRowKey(e,t){const n=this;return n.setCheckboxRowByKey(e,t)},isCheckedByCheckboxRow(e){const t=this,n=t,r=t,{updateCheckboxFlag:i}=n,{selectCheckboxMaps:o}=r,a=t.computeCheckboxOpts,{checkField:s}=a;return s?pc.get(e,s):!!i&&!!o[np(t,e)]},isCheckedByCheckboxRowKey(e){const t=this,n=t,r=t,{updateCheckboxFlag:i}=n,{fullAllDataRowIdData:o,selectCheckboxMaps:a}=r,s=t.computeCheckboxOpts,{checkField:l}=s,c=op(e);if(l){const e=o[c];return!!e&&pc.get(e.row,l)}return!!i&&!!a[c]},isIndeterminateByCheckboxRow(e){const t=this,n=t,{treeIndeterminateRowMaps:r}=n;return!!r[np(t,e)]&&!t.isCheckedByCheckboxRow(e)},isIndeterminateByCheckboxRowKey(e){const t=this,n=t,{treeIndeterminateRowMaps:r}=n,i=op(e);return!!r[i]&&!t.isCheckedByCheckboxRowKey(i)},handleBatchSelectRows(e,t,n){const r=this,i=r,o=r,a=r,{treeConfig:s}=i,{isRowGroupStatus:l}=o,{selectCheckboxMaps:c}=a,u=r.computeAggregateOpts,d=r.computeTreeOpts,{transform:h,mapChildrenField:p}=d,f=d.children||d.childrenField,m=r.computeCheckboxOpts,{checkField:g,checkStrictly:v,checkMethod:b}=m,{handleGetRowId:y}=ip(r),x=m.indeterminateField||m.halfField;if(g)return!s&&!l||v?(e.forEach(e=>{(n||!b||b({$table:r,row:e}))&&(pc.set(e,g,t),ym(r,e,t))}),void o.updateCheckboxFlag++):(pc.eachTree(e,e=>{(n||!b||b({$table:r,row:e}))&&(pc.set(e,g,t),x&&pc.set(e,x,!1),ym(r,e,t))},{children:h?p:f}),void o.updateCheckboxFlag++);if(!v){if(l)return pc.eachTree(e,e=>{const i=y(e);(n||!b||b({$table:r,row:e}))&&(t?c[i]=e:c[i]&&delete c[i],ym(r,e,t))},{children:u.mapChildrenField}),void o.updateCheckboxFlag++;if(s)return pc.eachTree(e,e=>{const i=y(e);(n||!b||b({$table:r,row:e}))&&(t?c[i]=e:c[i]&&delete c[i],ym(r,e,t))},{children:h?p:f}),void o.updateCheckboxFlag++}e.forEach(e=>{const i=y(e);(n||!b||b({$table:r,row:e}))&&(t?c[i]||(c[i]=e):c[i]&&delete c[i],ym(r,e,t),o.updateCheckboxFlag++)})},handleSelectRow({row:e},t,n){const r=this;r.handleBatchSelectRows([e],t,n)},handleToggleCheckRowEvent(e,t){const n=this,r=n,{selectCheckboxMaps:i}=r,o=n.computeCheckboxOpts,{checkField:a,trigger:s}=o,{row:l}=t;if("manual"===s)return;let c=!1;c=a?!pc.get(l,a):!i[np(n,l)],e?n.triggerCheckRowEvent(e,t,c):(n.handleBatchSelectRows([l],c),n.checkSelectionStatus())},triggerCheckRowEvent(e,t,n){const r=this,i=r,o=r,a=r,{treeConfig:s}=i,{row:l}=t,{isRowGroupStatus:c}=o,{fullAllDataRowIdData:u,afterFullData:d,afterTreeFullData:h,afterGroupFullData:p}=a,f=r.computeCheckboxOpts,m=r.computeAggregateOpts,g=r.computeTreeOpts,{checkMethod:v,trigger:b,checkStrictly:y}=f;if("manual"!==b){if(e.stopPropagation(),f.isShiftKey&&e.shiftKey){const{handleGetRowId:n}=ip(r),i=r.getCheckboxRecords();let o=-1,a=null;const f=n(l),v=u[f];if(v&&(a=v.row,o=v._seq),a&&i.length){let l=[],v=-1,b=null,x="",w=-1,C=null,_="";const S={};if(i.forEach(e=>{const t=n(e),r=u[t];r&&((!b||v>r._seq)&&(x=r.rowid,b=r.row,v=r._seq),(!C||w<r._seq)&&(_=r.rowid,C=r.row,w=r._seq)),S[t]=e}),b&&C&&(i.length>1||f!==x)&&(Math.abs(v-w)>1||Math.abs(o-v)>1||Math.abs(o-w)>1)){if(s||c){const{transform:e}=g,t=g.children||g.childrenField,r=s?e?g.mapChildrenField:t:m.mapChildrenField;let i=!1,a="",c="";const d=(e,t)=>{const i=u[e];if(i){const e=i.row,o=e[r];if(o&&o.length){const e=t?pc.last(o):pc.first(o);return d(n(e),t)}}return e},b=e=>{const t=u[e];if(t){const e=t.parent;if(e){const t=n(e);if(S[t])return b(t)}}return e},C=e=>{const t=n(e);if(t){const e=u[t];if(e)return e.parent?C(e.parent):e}return null};o<v?(a=d(f,0),c=d(x,1)):(a=o>w?b(_):d(x,0),c=d(f,1));const k=e=>{const t=n(e),o=e[r];return i||t!==a||(i=!0),!i||!y&&o&&o.length||l.push(e),t===c};if(s){const e=u[a],t=e?C(e.row):null;t?pc.findTree(h.slice(t.treeIndex),k,{children:r}):pc.findTree(h,k,{children:r})}else pc.findTree(p,k,{children:r})}else{const e=r.getVTRowIndex(a),t=r.getVTRowIndex(b),n=r.getVTRowIndex(C);l=e<t?d.slice(e,t+1):e>n?d.slice(n,e+1):d.slice(t,e+1)}r.setAllCheckboxRow(!1),r.$nextTick(()=>{wm(r,l,!0,!1)}),r.dispatchEvent("checkbox-range-select",Object.assign({rangeRecords:l},t),e)}}}v&&!v({$table:r,row:l})||(r.handleBatchSelectRows([l],n),r.checkSelectionStatus(),r.dispatchEvent("checkbox-change",Object.assign({records:()=>r.getCheckboxRecords(),reserves:()=>r.getCheckboxReserveRecords(),indeterminates:()=>r.getCheckboxIndeterminateRecords(),checked:n},t),e))}},toggleCheckboxRow(e){const t=this,n=t,{selectCheckboxMaps:r}=n,i=t.computeCheckboxOpts,{checkField:o}=i,a=o?!pc.get(e,o):!r[np(t,e)];return t.handleBatchSelectRows([e],a,!0),t.checkSelectionStatus(),t.$nextTick()},setAllCheckboxRow(e){const t=this;return Cm(t,e,!0)},updateCheckboxStatus(){const e=this,t=e,n=e,r=e,{treeConfig:i}=t,{isRowGroupStatus:o}=n,{afterTreeFullData:a,afterGroupFullData:s,selectCheckboxMaps:l,treeIndeterminateRowMaps:c}=r,u=e.computeAggregateOpts,d=e.computeTreeOpts,h=d.children||d.childrenField,p=e.computeCheckboxOpts,{checkField:f,indeterminateField:m,checkStrictly:g,checkMethod:v}=p;if(!g){if(o||i){const{handleGetRowId:t}=ip(e),n={},r=[];if(o){const e=u.mapChildrenField;e&&pc.eachTree(s,i=>{const o=t(i),a=i[e];a&&a.length&&!n[o]&&(n[o]=1,r.unshift([i,o,a]))},{children:e})}else if(i){const{transform:e,mapChildrenField:i}=d;pc.eachTree(a,o=>{const a=t(o),s=o[e?i:h];s&&s.length&&!n[a]?(n[a]=1,r.unshift([o,a,s])):m&&pc.set(o,m,!1)},{children:e?i:h})}r.forEach(n=>{const r=n[0],i=n[1],o=n[2];let a=0,s=0,u=0;const d=o.length;o.forEach(v?n=>{const r=t(n),i=f?pc.get(n,f):l[r];v({$table:e,row:n})?(i?a++:c[r]&&s++,u++):i?a++:c[r]&&s++}:e=>{const n=t(e),r=f?pc.get(e,f):l[n];r?a++:c[n]&&s++,u++});let h=!1;h=d>0?u>0?(a>0||s>0)&&a>=u:a>0&&a>=u||!!l[i]:l[i];const p=!h&&(a>0||s>0);f&&pc.set(r,f,h),m&&pc.set(r,m,p),h?(f||(l[i]=r),c[i]&&delete c[i]):(f||l[i]&&delete l[i],p?c[i]=r:c[i]&&delete c[i])})}n.updateCheckboxFlag++}},updateAllCheckboxStatus(){const e=this,t=e,n=e,r=e,{treeConfig:i}=t,{isRowGroupStatus:o}=n,{afterFullData:a,afterTreeFullData:s,afterGroupFullData:l,checkboxReserveRowMap:c,selectCheckboxMaps:u,treeIndeterminateRowMaps:d}=r,h=e.computeAggregateOpts,{mapChildrenField:p}=h,f=e.computeCheckboxOpts,{checkField:m,checkMethod:g,showReserveStatus:v}=f,{handleGetRowId:b}=ip(e);let y=0,x=0,w=0,C=0,_=0;const S=i?s:o?l:a;S.forEach(g?t=>{const n=b(t),r=m?pc.get(t,m):u[n];if(o&&e.isAggregateRecord(t)){const i=t[p||""];r?(_++,y++):d[n]?(_++,w++):i&&i.length&&i.some(t=>g({$table:e,row:t}))&&_++}else g({$table:e,row:t})?(r?y++:d[n]&&w++,_++):r?x++:d[n]&&C++}:e=>{const t=b(e),n=m?pc.get(e,m):u[t];n?y++:d[t]&&w++,_++});const k=S.length>0&&(_>0?y>=_:y>=S.length);let E=!k&&(y>0||w>0||x>0||C>0);k||E||!v||(E=!pc.isEmpty(c)),n.isAllSelected=k,n.isIndeterminate=E},checkSelectionStatus(){const e=this;e.updateCheckboxStatus(),e.updateAllCheckboxStatus()},getRadioReserveRecord(e){const t=this,n=t,r=t,{treeConfig:i}=n,{fullDataRowIdData:o,radioReserveRow:a,afterFullData:s}=r,l=t.computeRadioOpts,c=t.computeTreeOpts,u=c.children||c.childrenField;if(l.reserve&&a){const n=np(t,a);if(e){if(!o[n])return a}else{const e=tp(t);if(i){const t=pc.findTree(s,t=>n===pc.get(t,e),{children:u});if(t)return a}else if(!s.some(t=>n===pc.get(t,e)))return a}}return null},clearRadioReserve(){const e=this,t=e;return t.radioReserveRow=null,e.$nextTick()},getCheckboxReserveRecords(e){const t=this,n=t,r=t,{treeConfig:i}=n,{afterFullData:o,fullDataRowIdData:a,checkboxReserveRowMap:s}=r,l=t.computeCheckboxOpts,c=t.computeTreeOpts,u=c.children||c.childrenField,d=[];if(l.reserve){const{handleGetRowId:n}=ip(t),r={};i?pc.eachTree(o,e=>{r[n(e)]=1},{children:u}):o.forEach(e=>{r[n(e)]=1}),pc.each(s,(t,n)=>{t&&(e?a[n]||d.push(t):r[n]||d.push(t))})}return d},clearCheckboxReserve(){const e=this,t=e;return t.checkboxReserveRowMap={},e.$nextTick()},handleCheckboxReserveRow(e,t){const n=this,r=n,{checkboxReserveRowMap:i}=r,o=n.computeCheckboxOpts;if(o.reserve){const r=np(n,e);t?i[r]=e:i[r]&&delete i[r]}},handleCheckAllEvent(e,t){const n=this;Cm(n,t),e&&n.dispatchEvent("checkbox-all",{records:()=>n.getCheckboxRecords(),reserves:()=>n.getCheckboxReserveRecords(),indeterminates:()=>n.getCheckboxIndeterminateRecords(),checked:t},e)},triggerCheckAllEvent(e,t){const{checkboxOpts:n}=this,{trigger:r}=n;"manual"!==r&&(e&&e.stopPropagation(),this.handleCheckAllEvent(e,t))},toggleAllCheckboxRow(){const e=this,t=e;return this.handleCheckAllEvent(null,!t.isAllSelected),e.$nextTick()},clearCheckboxRow(){const e=this,t=e,n=e,r=e,{treeConfig:i}=t,{tableFullData:o}=r,a=e.computeTreeOpts,s=a.children||a.childrenField,l=e.computeCheckboxOpts,{checkField:c,reserve:u}=l,d=l.indeterminateField||l.halfField;if(c){const e=e=>{i&&d&&pc.set(e,d,!1),pc.set(e,c,!1)};i?pc.eachTree(o,e,{children:s}):o.forEach(e)}return u&&o.forEach(e=>this.handleCheckboxReserveRow(e,!1)),n.isAllSelected=!1,n.isIndeterminate=!1,r.selectCheckboxMaps={},r.treeIndeterminateRowMaps={},n.updateCheckboxFlag++,e.$nextTick()},triggerRadioRowEvent(e,t){const n=this,r=n,{selectRadioRow:i}=r,{row:o}=t,a=n.computeRadioOpts,{trigger:s,strict:l,checkMethod:c}=a;if("manual"!==s&&(e.stopPropagation(),!c||c({$table:n,row:o}))){let r=o,a=i!==r;l?xm(n,r,!1):(i===r&&(r=null),a=i!==r,a&&r?xm(n,r,!1):(r=null,n.clearRadioRow())),a&&n.dispatchEvent("radio-change",Object.assign({oldValue:i,newValue:r,selected:!!r},t),e)}},triggerCurrentColumnEvent(e,t){const n=this,r=n,{currentCol:i}=r,o=n.computeColumnOpts,a=n.computeCurrentColumnOpts,s=a.beforeSelectMethod||o.currentMethod;let l=t.column;const{trigger:c,strict:u}=a;if("manual"===c)return;let d=i!==l;!s||s({column:l,$table:n})?(u?n.setCurrentColumn(l):(i===l&&(l=null),d=i!==l,d&&l?n.setCurrentColumn(l):(l=null,n.clearCurrentColumn())),d&&n.dispatchEvent("current-column-change",Object.assign({oldValue:i,newValue:l,selected:!!l},t),e)):n.dispatchEvent("current-column-disabled",t,e)},triggerCurrentRowEvent(e,t){const n=this,r=n,{currentRow:i}=r,o=n.computeRowOpts,a=n.computeCurrentRowOpts,s=a.beforeSelectMethod||o.currentMethod;let{row:l}=t;const{trigger:c,strict:u}=a;if("manual"===c)return;let d=i!==l;!s||s({row:l,$table:n})?(u?n.setCurrentRow(l):(i===l&&(l=null),d=i!==l,d&&l?n.setCurrentRow(l):(l=null,n.clearCurrentRow())),d&&(n.dispatchEvent("current-row-change",Object.assign({oldValue:i,newValue:l,selected:!!l},t),e),n.dispatchEvent("current-change",Object.assign({oldValue:i,newValue:l},t),e))):n.dispatchEvent("current-row-disabled",t,e)},setCurrentRow(e){const t=this,n=t,r=t,i=r.xeGanttView,o=t.$refs.refElem,a=t.computeRowOpts;return t.clearCurrentRow(),r.currentRow=e,(a.isCurrent||n.highlightCurrentRow)&&o&&pc.arrayEach(o.querySelectorAll(`[rowid="${np(t,e)}"]`),e=>ah(e,"row--current")),i&&i.handleUpdateCurrentRow&&i.handleUpdateCurrentRow(e),t.$nextTick()},isCheckedByRadioRow(e){const t=this,n=t,{selectRadioRow:r}=n;return!(!e||!r)&&t.eqRow(r,e)},isCheckedByRadioRowKey(e){const t=this,n=t,{selectRadioRow:r}=n;return!!r&&e===np(t,r)},setRadioRow(e){const t=this;return xm(t,e,!0)},setRadioByRowKey(e){const t=this,n=t,{fullAllDataRowIdData:r}=n,i=op(e),o=r[i];return o?xm(t,o.row,!0):t.$nextTick()},setRadioRowKey(e){const t=this;return t.setRadioByRowKey(e)},clearCurrentRow(){const e=this,t=e,n=t.xeGanttView,r=e.$refs.refElem;return t.currentRow=null,t.hoverRow=null,r&&pc.arrayEach(r.querySelectorAll(".row--current"),e=>oh(e,"row--current")),n&&n.handleUpdateCurrentRow&&n.handleUpdateCurrentRow(),e.$nextTick()},clearRadioRow(){const e=this,t=e;return t.selectRadioRow=null,e.$nextTick()},getCurrentRecord(e){const t=this,n=t,r=t,{fullDataRowIdData:i,afterFullRowMaps:o,currentRow:a}=r,s=t.computeRowOpts;if(s.isCurrent||n.highlightCurrentRow){const n=np(t,a);if(e){if(i[n])return a}else if(o[n])return a}return null},getRadioRecord(e){const{selectRadioRow:t,fullDataRowIdData:n,afterFullRowMaps:r}=this;if(t){const i=np(this,t);if(e){if(n[i])return t}else if(r[i])return t}return null},triggerHoverEvent(e,{row:t}){const n=this;n.setHoverRow(t)},setHoverRow(e){const t=this,n=t,r=n.xeGanttView,i=t.$refs.refElem;t.clearHoverRow(),i&&pc.arrayEach(i.querySelectorAll(`.vxe-body--row[rowid="${np(t,e)}"]`),e=>ah(e,"row--hover")),n.hoverRow=e,r&&r.handleUpdateHoverRow&&r.handleUpdateHoverRow(e)},clearHoverRow(){const e=this,t=e,n=t.xeGanttView,r=e.$refs.refElem;r&&pc.arrayEach(r.querySelectorAll(".vxe-body--row.row--hover"),e=>oh(e,"row--hover")),t.hoverRow=null,n&&n.handleUpdateHoverRow&&n.handleUpdateHoverRow()},triggerHeaderCellClickEvent(e,t){const n=this,r=n.$xeGantt,i=n,o=n,{_lastResizeTime:a}=o,s=n.computeSortOpts,l=n.computeColumnOpts,c=n.computeCurrentColumnOpts,{column:u}=t,d=e.currentTarget,h=a&&a>Date.now()-300,p=vh(e,d,"vxe-cell--sort").flag,f=vh(e,d,"vxe-cell--filter").flag;if("cell"!==s.trigger||h||p||f||n.triggerSortEvent(e,u,Hf(n,u)),r){const e=r.reactData;e.activeBarRowid=null}return n.dispatchEvent("header-cell-click",Object.assign({triggerResizable:h,triggerSort:p,triggerFilter:f,cell:d},t),e),!l.isCurrent&&!i.highlightCurrentColumn||c.trigger&&!["header","default"].includes(c.trigger)||n.triggerCurrentColumnEvent(e,t),n.$nextTick()},triggerHeaderCellDblclickEvent(e,t){const n=this;n.dispatchEvent("header-cell-dblclick",Object.assign({cell:e.currentTarget},t),e)},getCurrentColumn(){const e=this,t=e,n=e,r=e.computeColumnOpts;return r.isCurrent||t.highlightCurrentColumn?n.currentCol:null},setCurrentColumn(e){const t=this,n=t,r=t,i=t,{mouseConfig:o}=n,a=t.computeMouseOpts,s=o&&a.selected,l=pp(t,e);return l&&(t.clearCurrentColumn(),i.currentCol=l,r.currColFlag++),t.$nextTick().then(()=>{s&&t.addCellSelectedClass()})},clearCurrentColumn(){const e=this,t=e,n=e;return n.currentCol=null,t.currColFlag++,e.$nextTick()},triggerCellClickEvent(e,t){const n=this,r=n.$xeGantt,i=n,o=n,{treeConfig:a,highlightCurrentRow:s,highlightCurrentColumn:l,editConfig:c,aggregateConfig:u,rowGroupConfig:d}=i,{editStore:h,isDragResize:p,expandColumn:f,checkboxColumn:m,radioColumn:g}=o;if(p)return;const v=n.computeExpandOpts,b=n.computeEditOpts,y=n.computeTreeOpts,x=n.computeRadioOpts,w=n.computeCheckboxOpts,C=n.computeKeyboardOpts,_=n.computeAggregateOpts,S=n.computeRowOpts,k=n.computeColumnOpts,E=n.computeCurrentColumnOpts,{actived:O,focused:T}=h,{row:$,column:D}=t,{type:M,treeNode:F,rowGroupNode:R}=D,I="radio"===M,A="checkbox"===M,P="expand"===M,L=e.currentTarget,N=I&&vh(e,L,"vxe-cell--radio").flag,j=A&&vh(e,L,"vxe-cell--checkbox").flag,B=F&&vh(e,L,"vxe-cell--tree-btn").flag,V=P&&vh(e,L,"vxe-table--expanded").flag,z=P&&vh(e,L,"vxe-row-group--node-btn").flag;if(t=Object.assign({cell:L,triggerRadio:N,triggerCheckbox:j,triggerTreeNode:B,triggerExpandNode:V},t),j||N||(!V&&(f&&"row"===v.trigger||P&&"cell"===v.trigger)&&n.triggerRowExpandEvent(e,t),a&&("row"===y.trigger||F&&"cell"===y.trigger)&&n.triggerTreeExpandEvent(e,t),(u||d)&&("row"===_.trigger||R&&"cell"===_.trigger)&&n.triggerRowGroupExpandEvent(e,t)),B||(V||z||((S.isCurrent||s)&&(j||N||n.triggerCurrentRowEvent(e,t)),!k.isCurrent&&!l||E.trigger&&!["cell","default"].includes(E.trigger)||j||N||n.triggerCurrentColumnEvent(e,t),!N&&(g&&"row"===x.trigger||I&&"cell"===x.trigger)&&n.triggerRadioRowEvent(e,t),!j&&(m&&"row"===w.trigger||A&&"cell"===w.trigger)&&n.handleToggleCheckRowEvent(e,t)),ld(c)&&(C.arrowCursorLock&&e&&"cell"===b.mode&&e.target&&/^input|textarea$/i.test(e.target.tagName)&&(T.column=D,T.row=$),"manual"===b.trigger?O.args&&O.row===$&&D!==O.column&&("row"===b.mode?pm(n,e,t):hm(n,"blur").catch(e=>e)):O.args&&$===O.row&&D===O.column||("click"===b.trigger||"dblclick"===b.trigger&&"row"===b.mode&&O.row===$)&&pm(n,e,t))),ld(c)&&!1!==b.autoClear&&"dblclick"===b.trigger&&O.row&&O.column&&("row"===b.mode?n.eqRow(O.row,$)||n.handleClearEdit(e):"cell"===b.mode&&(n.eqRow(O.row,$)&&O.column.id===D.id||n.handleClearEdit(e))),r){const e=r.reactData;e.activeBarRowid=null}n.dispatchEvent("cell-click",t,e)},triggerCellDblclickEvent(e,t){const n=this,r=n,i=n,{editConfig:o}=r,{editStore:a,isDragResize:s}=i;if(s)return;const l=n.computeEditOpts,{actived:c}=a,u=e.currentTarget;t=Object.assign({cell:u},t),ld(o)&&"dblclick"===l.trigger&&(c.args&&e.currentTarget===c.args.cell||("row"===l.mode?hm(n,"blur").catch(e=>e).then(()=>{n.handleEdit(t,e).then(()=>hm(n,"change")).catch(e=>e)}):"cell"===l.mode&&n.handleEdit(t,e).then(()=>hm(n,"change")).catch(e=>e))),n.dispatchEvent("cell-dblclick",t,e)},triggerFooterCellClickEvent(e,t){const n=this,r=n.$xeGantt,i=e.currentTarget;if(t=Object.assign({cell:i},t),r){const e=r.reactData;e.activeBarRowid=null}n.dispatchEvent("footer-cell-click",t,e)},triggerFooterCellDblclickEvent(e,t){const n=this,r=e.currentTarget;t=Object.assign({cell:r},t),n.dispatchEvent("footer-cell-dblclick",t,e)},handleColumnSortEvent(e,t){const n=this,r=n,{mouseConfig:i}=r,o=n.computeMouseOpts,{field:a,sortable:s,order:l}=t;if(s){const r={$table:n,$event:e,column:t,field:a,property:a,order:l,sortList:n.getSortColumns(),sortTime:t.sortTime};i&&o.area&&n.handleSortEvent&&n.handleSortEvent(e,r),l||n.dispatchEvent("clear-sort",r,e),n.dispatchEvent("sort-change",r,e)}},triggerSortEvent(e,t,n){const r=this,i=r.computeSortOpts,{multiple:o,allowClear:a}=i,{field:s,sortable:l}=t;(l||t.remoteSort)&&(n&&t.order!==n?r.sort({field:s,order:n}):a&&r.clearSort(o?t:null),r.handleColumnSortEvent(e,t))},handleCellRuleUpdateStatus(e,t,n){const r=this,i=r,{validStore:o}=i,{row:a,column:s}=t;if(r.hasCellRules&&r.hasCellRules(e,a,s)){const t=r.getCellElement(a,s);if(t){const i=!pc.isUndefined(n);return r.validCellRules(e,a,s,n).then(()=>{i&&o.visible&&kp(a,s,n),r.clearValidate(a,s)}).catch(({rule:e})=>{i&&kp(a,s,n),r.showValidTooltip({rule:e,row:a,column:s,cell:t})})}}return r.$nextTick()},triggerHeaderCellMousedownEvent(e,t){const n=this,r=n,{mouseConfig:i}=r,o=n.computeMouseOpts,a=n.computeColumnOpts,s=n.computeColumnDragOpts,{trigger:l,isCrossDrag:c,isPeerDrag:u,disabledMethod:d}=s,h=e.currentTarget,p=h&&h.tagName&&"input"===h.tagName.toLowerCase(),f=vh(e,h,"vxe-cell--checkbox").flag,m=vh(e,h,"vxe-cell--sort").flag,g=vh(e,h,"vxe-cell--filter").flag;let v=!1;const b=a.drag&&"cell"===l;if(!(p||f||m||g)){const{column:r}=t;!b||r.fixed||!c&&!u&&r.parentId||d&&d(t)||(v=!0,n.handleHeaderCellDragMousedownEvent(e,t))}!v&&i&&o.area&&n.handleHeaderCellAreaMouseDnEvent&&n.handleHeaderCellAreaMouseDnEvent(e,Object.assign({cell:h,triggerSort:m,triggerFilter:g},t)),n.focus(),n.closeMenu&&n.closeMenu()},triggerCellMousedownEvent(e,t){const n=this,{column:r}=t,{type:i,treeNode:o}=r,a="radio"===i,s="checkbox"===i,l="expand"===i,c=n.computeRowOpts,u=n.computeRowDragOpts,{trigger:d,isCrossDrag:h,isPeerDrag:p,disabledMethod:f}=u,m=e.currentTarget;t.cell=m;const g=m&&m.tagName&&"input"===m.tagName.toLowerCase(),v=a&&vh(e,m,"vxe-cell--radio").flag,b=s&&vh(e,m,"vxe-cell--checkbox").flag,y=o&&vh(e,m,"vxe-cell--tree-btn").flag,x=l&&vh(e,m,"vxe-table--expanded").flag;let w=!1;c.drag&&(w="row"===d||r.dragSort&&"cell"===d);let C=!1;g||v||b||y||x||!w||!h&&!p&&t.level||f&&f(t)||(C=!0,n.handleCellDragMousedownEvent(e,t)),!C&&n.handleCellMousedownEvent&&n.handleCellMousedownEvent(e,t),n.focus(),n.closeFilter(),n.closeMenu&&n.closeMenu()},triggerCellMouseupEvent(){const e=this;Um(e)},handleRowDragDragstartEvent(e){const t=this;e.dataTransfer&&e.dataTransfer.setDragImage(Jd(),0,0),t.closeTooltip()},handleRowDragSwapEvent(e,t,n,r,i,o){const a=this,s=a.$xeGantt,l=a,c=a,u=a,{treeConfig:d,dragConfig:h}=l,p=a.computeRowDragOpts,{afterFullData:f,tableFullData:m,fullAllDataRowIdData:g}=u,{animation:v,isPeerDrag:b,isCrossDrag:y,isSelfToChildDrag:x,dragEndMethod:w,dragToChildMethod:C}=p,_=a.computeTreeOpts,S=a.computeCellOpts,k=a.computeRowOpts,E=a.computeDefaultRowHeight,{transform:O,rowField:T,mapChildrenField:$,parentField:D}=_,M=_.children||_.childrenField,F=w||(h?h.dragEndMethod:null),R="bottom"===i?1:0,I=a.$refs.refElem,A={status:!1};if(!(I&&r&&n))return Km(a),Promise.resolve(A);if(r!==n){const t={oldRow:n,newRow:r,dragRow:n,dragPos:i,dragToChild:!!o,offsetIndex:R},l=np(a,n),h=g[l]||{},p=h._index;let w=0,_=-1;if(v){w=mp(h,S,k,E);const e=I.querySelector(`.vxe-body--row[rowid="${l}"]`);e&&(_=e.offsetTop)}let P=-1,L=-1;const N=h,j=np(a,r),B=g[j],V={};let z=!1;if(d&&O&&N&&B){const{level:e}=N,{level:t}=B;if(pc.eachTree([n],e=>{V[np(a,e)]=e},{children:$}),e&&t)if(b&&!y){if(N.row[D]!==B.row[D])return Km(a),Promise.resolve(A)}else{if(!y)return Km(a),Promise.resolve(A);if(V[j]&&(z=!0,!y||!x))return ad.modal&&ad.modal.message({status:"error",content:$f("vxe.error.treeDragChild")}),Km(a),Promise.resolve(A)}else if(e){if(!y)return Km(a),Promise.resolve(A)}else if(t){if(!y)return Km(a),Promise.resolve(A);if(V[j]&&(z=!0,!y||!x))return ad.modal&&ad.modal.message({status:"error",content:$f("vxe.error.treeDragChild")}),Km(a),Promise.resolve(A)}}const H=x&&C?C(t):o;return F&&Km(a),Promise.resolve(!F||F(t)).then(t=>{if(!t)return A;if(d){if(O&&N&&B){const e=pc.toTreeArray(u.afterTreeFullData,{updated:!1,key:T,parentKey:D,children:$}),t=a.findRowIndexOf(e,n);e.splice(t,1);const i=a.findRowIndexOf(e,r),o=i+R;e.splice(o,0,n),z&&y&&x&&pc.each(n[M],e=>{e[D]=n[D]}),n[D]=H?r[T]:r[D],u.tableFullTreeData=pc.toArrayTree(e,{key:T,parentKey:D,children:M,mapChildren:$})}}else{P=a.findRowIndexOf(f,n);const e=a.findRowIndexOf(m,n);f.splice(P,1),m.splice(e,1);const t=a.findRowIndexOf(f,r),i=a.findRowIndexOf(m,r);L=t+R;const o=i+R;f.splice(L,0,n),m.splice(o,0,n)}return a.handleClearStack(),a.handleTableData(d&&O),a.cacheRowMap(!1),em(a),d&&O||lm(a),a.checkSelectionStatus(),c.scrollYLoad&&a.updateScrollYSpace(),e&&a.dispatchEvent("row-dragend",{oldRow:n,newRow:r,dragRow:n,dragPos:i,dragToChild:H,offsetIndex:R,_index:{newIndex:L,oldIndex:P}},e),a.$nextTick().then(()=>{if(v){const{tableData:e}=c,{fullAllDataRowIdData:t}=u,n=t[l],r=n._index,i=e[0],o=t[np(a,i)];let d=I;if(s){const e=s.$refs.refGanttContainerElem;e&&(d=e)}if(o){const t=o._index,i=t+e.length;let l=-1,c=-1,u=1;if(p<t)l=0,c=r-t;else if(p>i){const t=n.$index;l=t+1,c=e.length,u=-1}else r>p?(l=p-t,c=l+r-p):(l=r-t,c=l+p-r+1,u=-1);const h=e.slice(l,c);if(h.length){const e=[];h.forEach(t=>{const n=np(a,t);e.push(`.vxe-body--row[rowid="${n}"]`),s&&e.push(`.vxe-gantt-view--body-row[rowid="${n}"]`,`.vxe-gantt-view--chart-row[rowid="${n}"]`)});const t=d.querySelectorAll(e.join(","));xf(t,u*w)}}const h=[`.vxe-body--row[rowid="${l}"]`];s&&h.push(`.vxe-gantt-view--body-row[rowid="${l}"]`,`.vxe-gantt-view--chart-row[rowid="${l}"]`);const f=d.querySelectorAll(h.join(",")),m=f[0];_>-1&&m&&xf(f,_-m.offsetTop)}Xg(a),Zg(a),a.updateCellAreas(),a.recalculate()}).then(()=>({status:!0}))}).catch(()=>A).then(e=>(Km(a),e))}return Km(a),Promise.resolve(A)},handleCrossTableRowDragCancelEvent(){const e=this;Km(e)},handleCrossTableRowDragFinishEvent(e){const t=this,n=t.$xeGantt,r=t,i=t,o=kf(t),{tableData:a}=r,{fullAllDataRowIdData:s}=i,l=t.computeRowOpts,c=t.computeCellOpts,u=t.computeDefaultRowHeight,d=t.computeRowDragOpts,{animation:h,isCrossTableDrag:p}=d,f=t.computeTreeOpts,{mapChildrenField:m}=f,g=t.$refs.refElem;if(p&&Vf&&o){const{row:r}=o;if(r){const o=np(t,r),d=s[o];let p=0,f=-1;d&&(h&&(p=mp(d,c,l,u)),f=d.$index);const v=f>-1&&f<a.length-1?a.slice(f+1):[],b=pc.toTreeArray([r],{updated:!0,children:m});t.remove(b).then(()=>{if(h&&p&&v.length){const e=i.xeGanttView;let r=g;if(n&&e){const e=n.$refs.refGanttContainerElem;e&&(r=e)}const o=[];v.forEach(e=>{const r=np(t,e);o.push(`.vxe-body--row[rowid="${r}"]`),n&&o.push(`.vxe-gantt-view--body-row[rowid="${r}"]`,`.vxe-gantt-view--chart-row[rowid="${r}"]`)});const a=r.querySelectorAll(o.join(","));xf(a,p)}}),t.dispatchEvent("row-remove-dragend",{row:r},e),Km(t)}}},handleCrossTableRowDragoverEmptyEvent(e){const t=this,n=t,r=t,{tableData:i}=n,o=t.computeRowDragOpts,{isCrossTableDrag:a}=o;if(a&&Vf&&!i.length){const{$oldTable:i,$newTable:o}=Vf;if(i){const a=i;i.xID!==t.xID&&(o&&o.xID!==t.xID&&o.hideCrossTableRowDropClearStatus(),e.preventDefault(),i.hideCrossTableRowDropClearStatus(),Vf.$newTable=t,r.prevDragRow=null,n.dragTipText=a.dragTipText,rg(t,e,e.currentTarget,null,!0,""))}}},handleCrossTableRowDragInsertEvent(e){const t=this,n=t.$xeGantt,r=t,i=t,o=t,a=kf(t),{treeConfig:s}=r,{prevDragRow:l,prevDragPos:c,prevDragToChild:u}=o,d=t.computeRowDragOpts,{animation:h,isSelfToChildDrag:p,isCrossTableDrag:f,dragEndMethod:m,dragToChildMethod:g}=d,v=t.computeRowOpts,b=t.computeCellOpts,y=t.computeDefaultRowHeight,x=t.computeTreeOpts,{parentField:w,mapChildrenField:C}=x,_=x.children||x.childrenField;if(f&&Vf&&a){const{row:r}=a,{$oldTable:d}=Vf,f=t.$refs.refElem;if(d&&r){const a=r;let x=-1;l&&(x="bottom"===c?1:0);const S={oldRow:a,newRow:l,dragRow:a,dragPos:c,dragToChild:!!u,offsetIndex:x},k=p&&g?g(S):u,E={status:!1};m&&Km(t),Promise.resolve(!m||m(S)).then(u=>{if(!u)return d&&d.xID!==t.xID&&d.handleCrossTableRowDragCancelEvent(e),Km(t),E;let p=Promise.resolve();if(s){const n=pc.toTreeArray([a],{updated:!0,children:C});d.handleCrossTableRowDragFinishEvent(e),a[w]=l?l[w]:null,n.forEach(e=>{e[_]=void 0,e[C]=void 0}),p=l?"bottom"===c?t.insertNextAt(n,l):t.insertAt(n,l):t.insert(n)}else d.handleCrossTableRowDragFinishEvent(e),p=l?"bottom"===c?t.insertNextAt(a,l):t.insertAt(a,l):t.insert(a);t.dispatchEvent("row-insert-dragend",{oldRow:r,newRow:l,dragRow:a,dragPos:c,dragToChild:k,offsetIndex:x},e),og(t),p.then(()=>{const{tableData:e}=i,{fullAllDataRowIdData:r}=o,s=np(t,a),l=r[s];let c=0,u=-1;l&&(h&&(c=mp(l,b,v,y)),u=l.$index);const d=u>-1?e.slice(u):[];if(h&&c&&d.length){const e=o.xeGanttView;let r=f;if(n&&e){const e=n.$refs.refGanttContainerElem;e&&(r=e)}const i=[];d.forEach(e=>{const r=np(t,e);i.push(`.vxe-body--row[rowid="${r}"]`),n&&i.push(`.vxe-gantt-view--body-row[rowid="${r}"]`,`.vxe-gantt-view--chart-row[rowid="${r}"]`)});const a=r.querySelectorAll(i.join(","));xf(a,-c)}})})}}},hideCrossTableRowDropClearStatus(){const e=this;ig(e)},handleRowDragDragendEvent(e){const t=this,n=t,r=t,i=t,{treeConfig:o}=n,{fullAllDataRowIdData:a,prevDragToChild:s}=i,{dragRow:l}=r,c=t.computeTreeOpts,{lazy:u}=c,d=c.hasChild||c.hasChildField,{prevDragRow:h,prevDragPos:p}=i,f=t.computeRowDragOpts,{isCrossTableDrag:m,isCrossDrag:g}=f;if(m&&Vf){const{$newTable:n}=Vf;if(n&&n.xID!==t.xID)return void(o&&!g||n.handleCrossTableRowDragInsertEvent(e))}if(o&&u&&s){const n=np(t,h),r=a[n];h[d]?r&&r.treeLoaded&&t.handleRowDragSwapEvent(e,!0,l,h,p,s):t.handleRowDragSwapEvent(e,!0,l,h,p,s)}else t.handleRowDragSwapEvent(e,!0,l,h,p,s)},handleRowDragDragoverEvent(e){const t=this,n=t,r=t,i=t,{treeConfig:o}=n,{fullAllDataRowIdData:a}=i,{dragRow:s}=r,l=t.computeTreeOpts,{lazy:c,transform:u,parentField:d}=l,h=l.hasChild||l.hasChildField,p=t.computeRowDragOpts,{isPeerDrag:f,isCrossDrag:m,isToChildDrag:g,isCrossTableDrag:v}=p;if(!s&&(!v||o&&!m||!Vf))return void e.preventDefault();const b=sh(e),y=e.currentTarget,x=y.getAttribute("rowid")||"",w=a[x];if(w){e.preventDefault();const n=w.row,a=e.clientY-y.getBoundingClientRect().y,l=a<y.clientHeight/2?"top":"bottom";if(i.prevDragToChild=!!(o&&u&&m&&g&&b),i.prevDragRow=n,i.prevDragPos=l,v&&(!o||m)&&Vf){const{$oldTable:n,$newTable:i}=Vf;if(n){const a=n;if(n.xID===t.xID)i&&i.hideCrossTableRowDropClearStatus(),r.isCrossDragRow=!1,a.isCrossDragRow=!1,Vf.$newTable=null;else if(!o||m)return i&&i.xID!==t.xID&&i.hideCrossTableRowDropClearStatus(),n.hideCrossTableRowDropClearStatus(),a.isCrossDragRow=!0,r.dragTipText=a.dragTipText,Vf.$newTable=t,void rg(t,e,y,null,!0,l)}}if(t.eqRow(s,n)||b&&o&&c&&n[h]&&w&&!w.treeLoaded||!m&&o&&u&&(f?s[d]!==n[d]:w.level))return void rg(t,e,y,null,!1,l);rg(t,e,y,null,!0,l),t.dispatchEvent("row-dragover",{oldRow:s,targetRow:n,dragPos:l},e)}},handleCellDragMousedownEvent(e,t){var n;const r=this,i=r,o=r,a=kf(r);e.stopPropagation();const{dragConfig:s}=i,l=r.computeRowDragOpts,{isCrossTableDrag:c,trigger:u,dragStartMethod:d}=l,{row:h}=t,p=e.currentTarget,f="cell"===u||"row"===u?p:null===(n=p.parentElement)||void 0===n?void 0:n.parentElement,m=f.parentElement,g=d||(s?s.dragStartMethod:null);if(Zm(r),g&&!g(t))return m.draggable=!1,o.dragRow=null,o.dragCol=null,Ym(r),void ig(r);c&&(a.row=h,Vf={$oldTable:r,$newTable:null}),o.dragRow=h,o.isCrossDragRow=!1,o.dragCol=null,m.draggable=!0,Qm(r,h),Jm(r,f),r.dispatchEvent("row-dragstart",t,e)},handleCellDragMouseupEvent(){const e=this;Um(e)},handleHeaderCellDragDragstartEvent(e){const t=this;e.dataTransfer&&e.dataTransfer.setDragImage(Jd(),0,0),t.closeTooltip()},handleColDragSwapColumn(){const e=this;return $g(e),Mg(e,!1).then(()=>{e.updateCellAreas(),e.saveCustomStore("update:sort")})},handleColDragSwapEvent(e,t,n,r,i,o){const a=this,s=a,l=a,c=a,{mouseConfig:u}=s,d=a.computeColumnDragOpts,{animation:h,isPeerDrag:p,isCrossDrag:f,isSelfToChildDrag:m,isToChildDrag:g,dragEndMethod:v,dragToChildMethod:b}=d,{collectColumn:y,fullColumnIdData:x}=c,w=a.$refs.refElem,C="right"===i?1:0,_={status:!1};if(!(w&&r&&n))return Promise.resolve(_);if(r!==n){const s=n,d=r,S={oldColumn:s,newColumn:d,dragColumn:s,dragPos:i,dragToChild:!!o,offsetIndex:C};let k=null;const E=[];let O=0;h&&pc.eachTree([s],e=>{k||e.children&&e.children.length||(k=e,O+=e.renderWidth),E.push(e)}),k||(k=s);const T=x[k.id]||{},$=T._index;let D=-1;if(h){const e=w.querySelector(`.vxe-table--column[colid="${k.id}"]`);e&&(D=e.offsetLeft)}let M=-1,F=-1;const R={};pc.eachTree([s],e=>{R[e.id]=e});let I=!1;if(s.parentId&&d.parentId)if(p&&!f){if(s.parentId!==d.parentId)return Xm(a),Promise.resolve(_)}else{if(!f)return Xm(a),Promise.resolve(_);if(R[d.id]&&(I=!0,!f||!m))return ad.modal&&ad.modal.message({status:"error",content:$f("vxe.error.treeDragChild")}),Xm(a),Promise.resolve(_)}else if(s.parentId){if(!f)return Xm(a),Promise.resolve(_)}else if(d.parentId){if(!f)return Xm(a),Promise.resolve(_);if(R[d.id]&&(I=!0,!f||!m))return ad.modal&&ad.modal.message({status:"error",content:$f("vxe.error.treeDragChild")}),Xm(a),Promise.resolve(_)}const A=m&&b?b(S):o;return Promise.resolve(!v||v(S)).then(n=>{if(!n)return _;const r=pc.findTree(y,e=>e.id===s.id);if(I&&f&&m){if(r){const{items:e,index:t}=r,n=s.children||[];n.forEach(e=>{e.parentId=s.parentId}),e.splice(t,1,...n),s.children=[]}}else if(r){const{items:e,index:t,parent:n}=r;e.splice(t,1),n||(M=t)}const o=pc.findTree(y,e=>e.id===d.id);if(o){const{items:e,index:t,parent:n}=o;f&&g&&A?(s.parentId=d.id,d.children=(d.children||[]).concat([s])):(s.parentId=d.parentId,e.splice(t+C,0,s)),n||(F=t)}return pc.eachTree(y,(e,t,n,r,i)=>{if(!i){const n=t+1;e.renderSortNumber=n}}),a.handleClearStack(),u&&(a.clearSelected&&a.clearSelected(),a.clearCellAreas&&(a.clearCellAreas(),a.clearCopyCellArea())),e&&a.dispatchEvent("column-dragend",{oldColumn:s,newColumn:d,dragColumn:s,dragPos:i,dragToChild:A,offsetIndex:C,_index:{newIndex:F,oldIndex:M}},e),a.$nextTick().then(()=>{if(t)return a.handleColDragSwapColumn()}).then(()=>{if(h){const{tableColumn:e}=l,{visibleColumn:t,fullColumnIdData:n}=c;let r=null;const i={};if(pc.eachTree([s],e=>{r||e.children&&e.children.length||(r=e),i[e.id]=e}),r||(r=s),O&&E.length){const o=pc.findIndexOf(t,e=>!!r&&e.id===r.id),a=e[0],s=n[a.id];if(s){const t=s._index,n=t+e.length;let r=-1,a=-1,l=1;if($<t)r=0,a=o-t;else if($>n){const t=T.$index;r=t+1,a=e.length,l=-1}else o>$?(r=$-t,a=r+o-$):(r=o-t+1,a=r+$-o,l=-1);const c=[],u={};for(let o=r;o<a;o++){const t=e[o];u[t.id]||i[t.id]||(u[t.id]=t,c.push(t))}if(pc.eachTree([d],e=>{u[e.id]||(u[e.id]=e,c.push(e))}),c.length){const e=w.querySelectorAll(c.map(e=>`.vxe-table--column[colid="${e.id}"]`).join(","));Cf(e,l*O)}}const l=w.querySelectorAll(E.map(e=>`.vxe-table--column[colid="${e.id}"]`).join(",")),c=l[0];D>-1&&c&&Cf(l,D-c.offsetLeft)}}return Kg(a),Dg(a),a.updateCellAreas(),{status:!0}})}).catch(()=>_).then(e=>(Xm(a),e))}return Xm(a),Promise.resolve(_)},handleHeaderCellDragDragendEvent(e){const t=this,n=t,r=t,{dragCol:i}=n,{prevDragCol:o,prevDragPos:a,prevDragToChild:s}=r;t.handleColDragSwapEvent(e,!0,i,o,a,s)},handleHeaderCellDragDragoverEvent(e){const t=this,n=t,r=t,{dragCol:i}=n,o=t.computeColumnDragOpts,{isToChildDrag:a,isPeerDrag:s,isCrossDrag:l}=o;if(!i)return void e.preventDefault();const c=sh(e),u=e.currentTarget,d=u.getAttribute("colid"),h=t.getColumnById(d);if(h){e.preventDefault();const{clientX:n}=e,o=n-u.getBoundingClientRect().x,d=o<u.clientWidth/2?"left":"right";if(r.prevDragToChild=!!(l&&a&&c),r.prevDragCol=h,r.prevDragPos=d,h.fixed||i&&i.id===h.id||!l&&(s?i.parentId!==h.parentId:h.parentId))return void rg(t,e,null,u,!1,d);rg(t,e,null,u,!0,d),t.dispatchEvent("column-dragover",{oldColumn:i,targetColumn:h,dragPos:d},e);const p=t.$refs.refElem;if(!p)return;const f=t.$refs.refScrollXHandleElem,m=t.$refs.refTableBody,g=m?m.$el:null,v=f||g;if(v){const e=p.getBoundingClientRect(),r=p.clientWidth,i=t.$refs.refLeftContainer,o=i?i.clientWidth:0,a=t.$refs.refRightContainer,s=a?a.clientWidth:0,l=e.x+o,c=e.x+r-s,u=28,d=n-l,h=c-n;if(d>0&&d<=u){const e=Math.floor(r/(d>u/2?240:120));v.scrollLeft-=e*(u-d)}else if(h>0&&h<=u){const e=Math.floor(r/(h>u/2?240:120));v.scrollLeft+=e*(u-h)}}}},handleHeaderCellDragMousedownEvent(e,t){var n;const r=this,i=r;e.stopPropagation();const o=r.computeColumnDragOpts,{trigger:a,dragStartMethod:s}=o,{column:l}=t,c=e.currentTarget,u="cell"===a?c:null===(n=c.parentElement)||void 0===n?void 0:n.parentElement;if(tg(r),s&&!s(t))return u.draggable=!1,i.dragRow=null,i.dragCol=null,ig(r),void Ym(r);i.dragCol=l,i.dragRow=null,u.draggable=!0,Ym(r),eg(r,l),ng(r,u),r.dispatchEvent("column-dragstart",t,e)},handleHeaderCellDragMouseupEvent(){const e=this,t=e;tg(e),ig(e),Ym(e),t.dragRow=null,t.dragCol=null},setPendingRow(e,t){const n=this,r=n,i=n,{handleGetRowId:o}=ip(n),{pendingRowMaps:a}=i;return e&&!pc.isArray(e)&&(e=[e]),t?e.forEach(e=>{const t=o(e);t&&!a[t]&&(a[t]=e)}):e.forEach(e=>{const t=o(e);t&&a[t]&&delete a[t]}),r.pendingRowFlag++,n.$nextTick()},togglePendingRow(e){const t=this,n=t,r=t,{handleGetRowId:i}=ip(t),{pendingRowMaps:o}=r;return e&&!pc.isArray(e)&&(e=[e]),e.forEach(e=>{const t=i(e);t&&(o[t]?delete o[t]:o[t]=e)}),n.pendingRowFlag++,t.$nextTick()},hasPendingByRow(e){const t=this;return t.isPendingByRow(e)},isPendingByRow(e){const t=this,n=t,{pendingRowMaps:r}=n,i=np(t,e);return!!r[i]},getPendingRecords(){const e=this,t=e,{fullAllDataRowIdData:n,pendingRowMaps:r}=t,i=[];return pc.each(r,(e,t)=>{n[t]&&i.push(e)}),i},clearPendingRow(){const e=this,t=e,n=e;return n.pendingRowMaps={},t.pendingRowFlag++,e.$nextTick()},sort(e,t){const n=this,r=n.computeSortOpts,{multiple:i,remote:o,orders:a}=r;if(e&&pc.isString(e)&&(e=[{field:e,order:t}]),pc.isArray(e)||(e=[e]),e.length){let t;return i||Bm(n),(i?e:[e[0]]).forEach((e,r)=>{let{field:i,order:o}=e,s=i;pc.isString(i)&&(s=n.getColumnByField(i)),s&&(s.sortable||s.remoteSort)&&(t||(t=s),a&&-1===a.indexOf(o)&&(o=Hf(n,s)),s.order!==o&&(s.order=o),s.sortTime=Date.now()+r)}),(!o||t&&t.remoteSort)&&n.handleTableData(!0),n.$nextTick().then(()=>(Xg(n),n.updateCellAreas(),dm(n)))}return n.$nextTick()},setSort(e,t){const n=this;return jm(n,null,e,t)},setSortByEvent(e,t){const n=this;return jm(n,e,t,!0)},clearSort(e){const t=this,n=t.computeSortOpts;if(e){const n=pp(t,e);n&&(n.order=null)}else Bm(t);return n.remote||t.handleTableData(!0),t.$nextTick().then(()=>(Xg(t),dm(t)))},clearSortByEvent(e,t){const n=this,r=n,{tableFullColumn:i}=r,o=n.computeSortOpts,{multiple:a}=o,s=[];let l=null;if(e&&(t?(l=pp(n,t),l&&(l.order=null)):i.forEach(e=>{e.order&&(e.order=null,s.push(e))}),o.remote||n.handleTableData(!0),a||(l=s[0]),l&&n.handleColumnSortEvent(e,l),a&&s.length)){const t={$table:n,$event:e,cols:s,sortList:[]};n.dispatchEvent("clear-all-sort",t,e)}return n.$nextTick().then(()=>(Xg(n),dm(n)))},getSortColumn(){const e=this,t=e,{tableFullColumn:n}=t;return Ef("vxe.error.delFunc",["getSortColumn","getSortColumns"]),pc.find(n,e=>(e.sortable||e.remoteSort)&&e.order)},isSort(e){const t=this;if(e){const n=pp(t,e);return n&&n.sortable&&!!n.order}return t.getSortColumns().length>0},getSortColumns(){const e=this,t=e,n=e.computeSortOpts,{multiple:r,chronological:i}=n,o=[],{tableFullColumn:a}=t;return a.forEach(e=>{const{field:t,order:n}=e;(e.sortable||e.remoteSort)&&n&&o.push({column:e,field:t,property:t,order:n,sortTime:e.sortTime})}),r&&i&&o.length>1?pc.orderBy(o,"sortTime"):o},setFilterByEvent(e,t,n){const r=this,i=pp(r,t);return i&&i.filters?(i.filters=yp(n||[],i.id),r.handleColumnConfirmFilter(i,e)):r.$nextTick()},closeFilter(){const e=this,t=e,{filterStore:n}=t,{column:r,visible:i}=n;if(n.isAllSelected=!1,n.isIndeterminate=!1,n.visible=!1,i){const t=r?r.field:null;e.dispatchEvent("filter-visible",{column:r,property:t,field:t,filterList:()=>e.getCheckedFilters(),visible:!1},null)}return e.$nextTick()},isActiveFilterByColumn(e){const t=this,n=pp(t,e);return n?n.filters&&n.filters.some(e=>e.checked):t.getCheckedFilters().length>0},isFilter(e){const t=this;return t.isActiveFilterByColumn(e)},clearFilterByEvent(e,t){const n=this,r=n,i=n,{filterStore:o}=r,{tableFullColumn:a}=i,s=n.computeFilterOpts,{multiple:l}=s,c=[];let u=null;if(t?(u=pp(n,t),u&&n.handleClearFilter(u)):a.forEach(e=>{e.filters&&(c.push(e),n.handleClearFilter(e))}),t&&u===o.column||Object.assign(o,{isAllSelected:!1,isIndeterminate:!1,style:null,options:[],column:null,multiple:!1,visible:!1}),s.remote||n.updateData(),l||(u=c[0]),u){const t=()=>n.getCheckedFilters(),r=[],i=[];u.filters.forEach(e=>{e.checked&&(r.push(e.value),i.push(e.data))});const o={$table:n,$event:e,column:u,field:u.field,property:u.field,values:r,datas:i,filters:t,filterList:t};n.dispatchEvent("filter-change",o,e),n.dispatchEvent("clear-filter",o,e)}if(l&&c.length){const t={$table:n,$event:e,cols:c,filterList:[]};n.dispatchEvent("clear-all-filter",t,e)}return n.$nextTick()},isRowExpandLoaded(e){const t=this,{fullAllDataRowIdData:n}=this,r=n[np(t,e)];return r&&!!r.expandLoaded},clearRowExpandLoaded(e){const t=this,n=t,r=t,{fullAllDataRowIdData:i,rowExpandLazyLoadedMaps:o}=r,a=t.computeExpandOpts,{lazy:s}=a,l=np(t,e),c=i[l];return s&&c&&(c.expandLoaded=!1,delete o[l]),n.rowExpandedFlag++,t.$nextTick()},reloadRowExpand(e){const t=this,n=t,{rowExpandLazyLoadedMaps:r}=n,i=t.computeExpandOpts,{lazy:o}=i,a=np(this,e);return o&&!r[a]&&t.clearRowExpandLoaded(e).then(()=>Om(t,e)),t.$nextTick()},reloadExpandContent(e){const t=this;return Ef("vxe.error.delFunc",["reloadExpandContent","reloadRowExpand"]),t.reloadRowExpand(e)},triggerRowExpandEvent(e,t){const n=this,r=n,i=n,{expandColumn:o}=r,{rowExpandLazyLoadedMaps:a}=i,s=n.computeExpandOpts,{row:l}=t,{lazy:c,trigger:u}=s;if("manual"===u)return;e.stopPropagation();const d=np(n,l);if(!c||!a[d]){const t=!n.isRowExpandByRow(l),r=o?n.getColumnIndex(o):-1,i=o?n.getVMColumnIndex(o):-1;n.setRowExpand(l,t),n.dispatchEvent("toggle-row-expand",{expanded:t,column:o,columnIndex:r,$columnIndex:i,row:l,rowIndex:n.getRowIndex(l),$rowIndex:n.getVMRowIndex(l)},e)}},toggleRowExpand(e){const t=this;return t.setRowExpand(e,!t.isRowExpandByRow(e))},setAllRowExpand(e){const t=this,n=t,r=t,i=t.computeTreeOpts,{tableFullData:o,tableFullTreeData:a}=r,s=i.children||i.childrenField;let l=[];return n.treeConfig?pc.eachTree(a,e=>{l.push(e)},{children:s}):l=o,t.setRowExpand(l,e)},setRowExpand(e,t){const n=this,r=n,i=n,{expandColumn:o}=r;let{fullAllDataRowIdData:a,rowExpandedMaps:s,rowExpandLazyLoadedMaps:l}=i;const{handleGetRowId:c}=ip(n),u=n.computeExpandOpts,{reserve:d,lazy:h,accordion:p,toggleMethod:f}=u,m=[],g=o?n.getColumnIndex(o):-1,v=o?n.getVMColumnIndex(o):-1;if(e){pc.isArray(e)||(e=[e]),p&&(s={},i.rowExpandedMaps=s,e=e.slice(e.length-1,e.length));const r=f?e.filter(e=>f({$table:n,expanded:t,column:o,columnIndex:g,$columnIndex:v,row:e,rowIndex:n.getRowIndex(e),$rowIndex:n.getVMRowIndex(e)})):e;t?r.forEach(e=>{const t=c(e);if(!s[t]){const r=a[t],i=h&&!r.expandLoaded&&!l[t];i?m.push(Om(n,e)):s[t]=e}}):r.forEach(e=>{const t=c(e);s[t]&&delete s[t]}),d&&r.forEach(e=>cg(n,e,t))}return r.rowExpandedFlag++,Promise.all(m).then(()=>n.$nextTick()).then(()=>vg(n,!0,!0,!0)).then(()=>(Xg(n),Zg(n),Jg(n),n.updateCellAreas()))},isRowExpandByRow(e){const t=this,n=t,r=t,{rowExpandedFlag:i}=n,{rowExpandedMaps:o}=r,a=np(this,e);return!!i&&!!o[a]},isExpandByRow(e){const t=this;return Ef("vxe.error.delFunc",["isExpandByRow","isRowExpandByRow"]),t.isRowExpandByRow(e)},clearRowExpand(){const e=this,t=e,n=e,{tableFullData:r,scrollYStore:i}=n,o=e.computeExpandOpts,{reserve:a}=o,s=e.getRowExpandRecords();return n.rowExpandedMaps={},a&&r.forEach(t=>cg(e,t,!1)),t.rowExpandedFlag++,i.startIndex=0,i.endIndex=1,e.$nextTick().then(()=>{if(s.length)return vg(e,!0,!0,!0)}).then(()=>(Xg(e),Zg(e),Jg(e),e.updateCellAreas()))},clearRowExpandReserve(){const e=this,t=e;return t.rowExpandedReserveRowMap={},e.$nextTick()},getRowExpandRecords(){const e=this,t=e,n=[];return pc.each(t.rowExpandedMaps,e=>{e&&n.push(e)}),n},setRowGroups(e){const t=this,n=t,r=t,{aggregateConfig:i,rowGroupConfig:o}=n,a=t.computeAggregateOpts,{maxGroupSize:s}=a;if(!i&&!o)return Of("vxe.error.reqProp",["aggregate-config"]),t.$nextTick();const l=e?pc.isArray(e)?e:[e]:[];return s&&l.length>s?(ad.modal&&ad.modal.message({status:"error",content:$f("vxe.table.maxGroupCol",[s])}),t.$nextTick()):l.length?(xg(t,l.map(e=>pc.isString(e)?e:e.field)),kg(t,r.tableSynchData,!1,!0)):t.$nextTick()},getRowGroups(){const e=this,t=e,n=e,r=e,{aggregateConfig:i,rowGroupConfig:o}=t,{fullColumnFieldData:a}=r;if(i||o){const{rowGroupList:e}=n;return e.map(({field:e})=>{const t=a[e];return t?t.column:{field:e}})}return[]},getRowGroupFields(){const e=this;return e.getRowGroups().map(e=>e.field)},clearRowGroups(){const e=this,t=e,n=e,{aggregateConfig:r,rowGroupConfig:i}=t;return r||i?(xg(e,[]),kg(e,n.tableSynchData,!1,!0)):(Of("vxe.error.reqProp",["aggregate-config"]),e.$nextTick())},isRowGroupRecord(e){const t=this;return Ef("vxe.error.delFunc",["isRowGroupRecord","isAggregateRecord"]),t.isAggregateRecord(e)},isRowGroupExpandByRow(e){const t=this;return Ef("vxe.error.delFunc",["isRowGroupExpandByRow","isAggregateExpandByRow"]),t.isAggregateExpandByRow(e)},isAggregateRecord(e){const t=this,n=t,{isRowGroupStatus:r}=n;return r&&e.isAggregate},getAggregateContentByRow(e){const t=this,n=t,{isRowGroupStatus:r}=n;return r&&e&&e.isAggregate?e.groupContent:""},getAggregateRowChildren(e){const t=this,n=t,r=t.computeAggregateOpts,{childrenField:i,mapChildrenField:o}=r,{isRowGroupStatus:a}=n;return a&&e&&e.isAggregate&&i&&o&&e[o]||[]},refreshAggregateCalcValues(){const e=this;return Cg(e),e.$nextTick()},isAggregateExpandByRow(e){const t=this,n=t,r=t,{rowGroupExpandedFlag:i}=n,{rowGroupExpandedMaps:o}=r;return!!i&&!!o[np(t,e)]},setRowGroupExpand(e,t){const n=this;return e?(pc.isArray(e)||(e=[e]),im(n,e,t)):n.$nextTick()},setRowGroupExpandByField(e,t){const n=this,r=n,i=n,{isRowGroupStatus:o}=r,a=n.computeAggregateOpts,{childrenField:s}=a;if(e&&(pc.isArray(e)||(e=[e]),o)){const r=[],o={};if(e.forEach(e=>{o[e]=!0}),pc.eachTree(i.afterGroupFullData,e=>{e.isAggregate&&o[e.groupField]&&r.push(e)},{children:s}),r.length)return im(n,r,t)}return n.$nextTick()},setAllRowGroupExpand(e){const t=this,n=t,r=t,{tableFullGroupData:i}=r,o=t.computeAggregateOpts,{mapChildrenField:a}=o,s={};return e&&a&&pc.eachTree(i,e=>{e[a]&&e[a].length&&(s[np(t,e)]=e)},{children:a}),r.rowGroupExpandedMaps=s,cm(t),t.handleTableData(),lm(t),n.rowGroupExpandedFlag++,vg(t,!0,!0,!0)},clearRowGroupExpand(){const e=this,t=e,n=e;return n.rowGroupExpandedMaps={},cm(e),e.handleTableData(),lm(e),t.rowGroupExpandedFlag++,vg(e,!0,!0,!0)},getTreeExpandRecords(){const e=this,t=e,n=[];return pc.each(t.treeExpandedMaps,e=>{e&&n.push(e)}),n},getTreeStatus(){const e=this,t=e,n=e.computeTreeOpts;return t.treeConfig?{config:n,rowExpandeds:e.getTreeExpandRecords()}:null},isTreeExpandLoaded(e){const t=this,n=t,{fullAllDataRowIdData:r}=n,i=r[np(t,e)];return i&&!!i.treeLoaded},clearTreeExpandLoaded(e){const t=this,n=t,r=t,{fullAllDataRowIdData:i,treeExpandedMaps:o}=r,a=t.computeTreeOpts,{transform:s}=a;return e?(pc.isArray(e)||(e=[e]),e.forEach(e=>{const n=np(t,e),r=i[n];r&&(r.treeLoaded=!1,o[n]&&delete o[n])})):(pc.each(i,e=>{e.treeLoaded=!1}),r.treeExpandedMaps={}),s&&(cm(t),t.handleTableData()),n.treeExpandedFlag++,t.$nextTick()},reloadTreeExpand(e){const t=this,n=t,r=t,{treeExpandLazyLoadedMaps:i}=r,o=t.computeTreeOpts,{transform:a,lazy:s}=o,l=o.hasChild||o.hasChildField,c=np(t,e);return s&&e[l]&&!i[c]?t.clearTreeExpandLoaded(e).then(()=>km(t,e)).then(()=>{a&&(cm(t),t.handleTableData()),n.treeExpandedFlag++}).then(()=>t.recalculate()):t.$nextTick()},reloadTreeChilds(e){const t=this;return Ef("vxe.error.delFunc",["reloadTreeChilds","reloadTreeExpand"]),t.reloadTreeExpand(e)},triggerRowGroupExpandEvent(e,t){const n=this,r=n,{rowGroupExpandedMaps:i}=r,o=n.computeAggregateOpts,{row:a,column:s}=t,{trigger:l}=o;if("manual"===l)return;e.stopPropagation();const c=np(n,a),u=!i[c],d=n.getColumnIndex(s),h=n.getVMColumnIndex(s);n.setRowGroupExpand(a,u),n.dispatchEvent("toggle-row-group-expand",{expanded:u,column:s,columnIndex:d,$columnIndex:h,row:a},e)},triggerTreeExpandEvent(e,t){const n=this,r=n,{treeExpandLazyLoadedMaps:i,treeEATime:o}=r,a=n.computeTreeOpts,{row:s,column:l}=t,{lazy:c,trigger:u,accordion:d}=a;if("manual"===u)return;e.stopPropagation();const h=np(this,s);if(!c||!i[h]){const t=!n.isTreeExpandByRow(s),i=n.getColumnIndex(l),a=n.getVMColumnIndex(l);o&&clearTimeout(o),n.setTreeExpand(s,t).then(()=>{d&&(r.treeEATime=setTimeout(()=>{r.treeEATime=void 0,n.scrollToRow(s)},30))}),n.dispatchEvent("toggle-tree-expand",{expanded:t,column:l,columnIndex:i,$columnIndex:a,row:s},e)}},toggleTreeExpand(e){const t=this;return t.setTreeExpand(e,!t.isTreeExpandByRow(e))},setAllTreeExpand(e){const t=this,n=t,r=t,{tableFullTreeData:i}=r,o=t.computeTreeOpts,{transform:a,lazy:s}=o,l=o.children||o.childrenField,c=[];return pc.eachTree(i,e=>{const t=e[l];(s||t&&t.length)&&c.push(e)},{children:l}),t.setTreeExpand(c,e).then(()=>{if(a)return cm(t),n.treeExpandedFlag++,t.recalculate()})},setTreeExpand(e,t){const n=this,r=n.computeTreeOpts,{transform:i}=r;return e&&(pc.isArray(e)||(e=[e]),e.length)?i?nm(n,e,t):tm(n,e,t):n.$nextTick()},isTreeExpandByRow(e){const t=this,n=t,r=t,{treeExpandedFlag:i}=n,{treeExpandedMaps:o}=r;return!!i&&!!o[np(t,e)]},clearTreeExpand(){const e=this,t=e,n=e,{tableFullTreeData:r}=n,i=e.computeTreeOpts,o=i.children||i.childrenField,{transform:a,reserve:s}=i,l=e.getTreeExpandRecords();return n.treeExpandedMaps={},s&&pc.eachTree(r,t=>Em(e,t,!1),{children:o}),e.handleTableData().then(()=>{a&&(cm(e),e.handleTableData()),t.treeExpandedFlag++}).then(()=>{Qg(e),l.length&&e.recalculate()})},clearTreeExpandReserve(){const e=this,t=e;return t.treeExpandedReserveRowMap={},e.$nextTick()},getScroll(){const e=this;return e.getScrollData()},getScrollData(){const e=this,t=e,n=e,{scrollXLoad:r,scrollYLoad:i,scrollbarHeight:o,scrollbarWidth:a}=t,{elemStore:s}=n,l=Ep(s["main-body-scroll"]),c=l?l.scrollTop:0,u=l?l.scrollLeft:0,d=l?l.clientHeight:0,h=l?l.clientWidth:0,p=l?l.scrollHeight:0,f=l?l.scrollWidth:0,m=c<=0,g=c+d>=p,v=u<=0,b=u+h>=f;return{virtualX:r,virtualY:i,isTop:m,isBottom:g,isLeft:v,isRight:b,scrollbarHeight:o,scrollbarWidth:a,scrollTop:c,scrollLeft:u,scrollHeight:p,scrollWidth:f,clientHeight:d,clientWidth:h}},handleScrollEvent(e,t,n,r,i,o){const a=this,s=a,l=a,{highlightHoverRow:c}=s,{lastScrollLeft:u,lastScrollTop:d}=l,h=a.$refs.refScrollXHandleElem,p=a.$refs.refScrollYHandleElem;if(!h||!p)return;const f=a.computeRowOpts,m=a.$refs.refValidTooltip,g=a.$refs.refTooltip,v=p.clientHeight,b=h.clientWidth,y=p.scrollHeight,x=h.scrollWidth;let w=!1,C=!1,_=!1,S=!1,k="",E=!1,O=!1,T=!1,$=!1;if(n){const e=a.computeScrollXThreshold;_=i<=0,_||(S=i+b>=x-1),i>u?(k="right",i+b>=x-e&&($=!0)):(k="left",i<=e&&(T=!0)),a.checkScrolling(),l.lastScrollLeft=i}if(t){const e=a.computeScrollYThreshold;w=r<=0,w||(C=r+v>=y-1),r>d?(k="bottom",r+v>=y-e&&(O=!0)):(k="top",r<=e&&(E=!0)),l.lastScrollTop=r}l.lastSTime=Date.now();const D=Object.assign({source:Bf,scrollTop:r,scrollLeft:i,bodyHeight:v,bodyWidth:b,scrollHeight:y,scrollWidth:x,isX:n,isY:t,isTop:w,isBottom:C,isLeft:_,isRight:S,direction:k},o);Zg(a),Vg(a,n,t),n&&a.closeFilter(),(f.isHover||c)&&a.clearHoverRow(),m&&m.reactData.visible&&m.close(),g&&g.reactData.visible&&g.close(),(O||E||$||T)&&a.dispatchEvent("scroll-boundary",D,e),a.dispatchEvent("scroll",D,e)},triggerScrollXEvent(){const e=this,t=e.computeVirtualXOpts;t.immediate?Dg(e):Ng(e)},triggerScrollYEvent(){const e=this,t=e.computeVirtualYOpts;t.immediate?Ag(e):jg(e)},triggerBodyScrollEvent(e,t){const n=this,r=n,i=n,{scrollYLoad:o,scrollXLoad:a}=r,{elemStore:s,intoRunScroll:l,lastScrollTop:c,lastScrollLeft:u,inWheelScroll:d,inVirtualScroll:h,inHeaderScroll:p,inBodyScroll:f,scrollRenderType:m,inFooterScroll:g}=i;if(d||h||p||g)return;const v=n.$refs.refScrollXHandleElem,b=n.$refs.refScrollYHandleElem,y=Ep(s["left-body-scroll"]),x=Ep(s["main-body-scroll"]),w=Ep(s["right-body-scroll"]),C=Ep(s["main-header-scroll"]),_=Ep(s["main-footer-scroll"]),S=n.$refs.refRowExpandElem;if(l)return;if(!x)return;if(!v)return;if(!b)return;if(f&&m!==t)return;let k=b.scrollTop,E=v.scrollLeft;y&&"left"===t?k=y.scrollTop:w&&"right"===t?k=w.scrollTop:(k=x.scrollTop,E=x.scrollLeft);const O=E!==u,T=k!==c;i.inBodyScroll=!0,i.scrollRenderType=t,T&&("left"===t?(ph(x,k),ph(w,k)):"right"===t?(ph(x,k),ph(y,k)):(ph(y,k),ph(w,k)),ph(b,k),ph(S,k),Hg(n,k),o&&n.triggerScrollYEvent(e)),O&&(fh(v,E),fh(C,E),fh(_,E),a&&n.triggerScrollXEvent(e)),n.handleScrollEvent(e,T,O,k,E,{type:"body",fixed:t})},triggerHeaderScrollEvent(e,t){const n=this,r=n,i=n,{scrollXLoad:o}=r,{elemStore:a,intoRunScroll:s,inWheelScroll:l,inVirtualScroll:c,inBodyScroll:u,inFooterScroll:d}=i;if(l||c||u||d)return;if(s)return;const h=n.$refs.refScrollXHandleElem,p=n.$refs.refScrollYHandleElem,f=Ep(a["main-body-scroll"]),m=Ep(a["main-header-scroll"]),g=Ep(a["main-footer-scroll"]);if(!m)return;if(!h)return;if(!p)return;const v=p.scrollTop,b=m.scrollLeft,y=!0,x=!1;i.inHeaderScroll=!0,fh(h,b),fh(g,b),fh(f,b),o&&n.triggerScrollXEvent(e),n.handleScrollEvent(e,x,y,v,b,{type:"header",fixed:t})},triggerFooterScrollEvent(e,t){const n=this,r=n,i=n,{scrollXLoad:o}=r,{elemStore:a,intoRunScroll:s,inWheelScroll:l,inVirtualScroll:c,inHeaderScroll:u,inBodyScroll:d}=i;if(l||c||u||d)return;const h=n.$refs.refScrollXHandleElem,p=n.$refs.refScrollYHandleElem,f=Ep(a["main-body-scroll"]),m=Ep(a["main-header-scroll"]),g=Ep(a["main-footer-scroll"]);if(s)return;if(!g)return;if(!h)return;if(!p)return;const v=p.scrollTop,b=g.scrollLeft,y=!0,x=!1;i.inFooterScroll=!0,fh(h,b),fh(m,b),fh(f,b),o&&n.triggerScrollXEvent(e),n.handleScrollEvent(e,x,y,v,b,{type:"footer",fixed:t})},triggerBodyWheelEvent(e){const t=this,n=t.$xeParentTable,r=t,i=t,o=t,{target:a,deltaY:s,deltaX:l,shiftKey:c}=e;if(a&&/^textarea$/i.test(a.tagName))return;if(!s&&!l)return;const{highlightHoverRow:u}=r,{scrollXLoad:d,scrollYLoad:h,overflowX:p,overflowY:f,expandColumn:m}=i,g=t.computeLeftFixedWidth,v=t.computeRightFixedWidth,{elemStore:b,lastScrollTop:y,lastScrollLeft:x}=o,w=t.computeRowOpts,C=t.computeScrollbarXOpts,_=t.computeScrollbarYOpts,S=t.$refs.refScrollXHandleElem,k=t.$refs.refScrollYHandleElem,E=Ep(b["left-body-scroll"]),O=Ep(b["main-header-scroll"]),T=Ep(b["main-body-scroll"]),$=Ep(b["main-footer-scroll"]),D=Ep(b["right-body-scroll"]),M=t.$refs.refRowExpandElem;if(!T)return;const F=zg(o.lastSTime),R=c?0:s*F,I=(c?l||s:l)*F,A=T.scrollTop,P=T.scrollLeft,L=Math.max(0,A+R),N=Math.max(0,P+I),j=p&&N!==x,B=f&&L!==y;if(j&&"hidden"===C.visible)e.preventDefault();else{if(B){if("hidden"===_.visible)return void e.preventDefault();const t=R<0;if(t?A<=0:A>=T.scrollHeight-T.clientHeight)return}if(n){if(B&&gh(e.target,[E,T,D],e.currentTarget))return void e.stopPropagation();if(j&&gh(e.target,[O,T,$],e.currentTarget))return void e.stopPropagation()}(j||g||v||m)&&((w.isHover||u)&&t.clearHoverRow(),j&&(e.preventDefault(),o.inWheelScroll=!0,Th(N,n=>{const r=n;fh(S,r),fh(T,r),fh(O,r),fh($,r),d&&t.triggerScrollXEvent(e),t.handleScrollEvent(e,B,j,T.scrollTop,r,{type:"table",fixed:""})})),B&&(e.preventDefault(),$h(L,n=>{const r=n;o.inWheelScroll=!0,ph(k,r),ph(T,r),ph(E,r),ph(D,r),ph(M,r),Hg(t,r),h&&t.triggerScrollYEvent(e),t.handleScrollEvent(e,B,j,r,T.scrollLeft,{type:"table",fixed:""})})))}},triggerVirtualScrollXEvent(e){const t=this,n=t,r=t,{scrollXLoad:i}=n,{elemStore:o,inWheelScroll:a,lastScrollTop:s,inHeaderScroll:l,inBodyScroll:c,inFooterScroll:u}=r;if(l||c||u)return;if(a)return;const d=Ep(o["main-header-scroll"]),h=Ep(o["main-body-scroll"]),p=Ep(o["main-footer-scroll"]),f=t.$refs.refScrollYHandleElem,m=e.currentTarget,{scrollLeft:g}=m,v=f||h;let b=0;v&&(b=v.scrollTop);const y=!0,x=b!==s;r.inVirtualScroll=!0,fh(h,g),fh(d,g),fh(p,g),i&&t.triggerScrollXEvent(e),t.handleScrollEvent(e,x,y,b,g,{type:"table",fixed:""})},triggerVirtualScrollYEvent(e){const t=this,n=t,r=t,{scrollYLoad:i}=n,{elemStore:o,inWheelScroll:a,lastScrollLeft:s,inHeaderScroll:l,inBodyScroll:c,inFooterScroll:u}=r;if(l||c||u)return;if(a)return;const d=Ep(o["left-body-scroll"]),h=Ep(o["main-body-scroll"]),p=Ep(o["right-body-scroll"]),f=t.$refs.refRowExpandElem,m=t.$refs.refScrollXHandleElem,g=e.currentTarget,{scrollTop:v}=g,b=m||h;let y=0;b&&(y=b.scrollLeft);const x=y!==s,w=!0;r.inVirtualScroll=!0,ph(h,v),ph(d,v),ph(p,v),ph(f,v),Hg(t,v),i&&t.triggerScrollYEvent(e),t.handleScrollEvent(e,w,x,v,y,{type:"table",fixed:""})},updateScrollXData(){const e=this,t=e,{isAllOverflow:n}=t;return Tg(e),e.updateScrollXSpace(),e.$nextTick().then(()=>{Tg(e),e.updateScrollXSpace(),n||e.updateScrollYSpace()})},updateScrollXSpace(){const e=this,t=e,n=e,{scrollXLoad:r,overflowX:i,scrollXWidth:o}=t,{visibleColumn:a,scrollXStore:s,elemStore:l,fullColumnIdData:c}=n,u=n.xeGanttView,d=e.computeMouseOpts,h=e.$refs.refTableBody,p=h?h.$el:null;if(p){const n=Ep(l["main-body-scroll"]),h=Ep(l["main-body-table"]),p=Ep(l["main-header-table"]),f=Ep(l["main-footer-table"]);let m=0;const g=a[s.startIndex];if(g){const e=c[g.id]||{};m=e.oLeft}let v=0;n&&(v=n.clientWidth);let b=!1,y=o;o>jf&&(m=n&&h&&n.scrollLeft+v>=jf?jf-h.clientWidth:m/(o-v)*(jf-v),y=jf,b=!0),r&&i||(m=0),Tf().scrollMarginStyle?(p&&(p.style.marginLeft=p.getAttribute("xvm")?`${m}px`:""),h&&(h.style.marginLeft=`${m}px`),f&&(f.style.marginLeft=f.getAttribute("xvm")?`${m}px`:"")):(p&&(p.style.transform=p.getAttribute("xvm")?`translate(${m}px, 0px)`:""),h&&(h.style.transform=`translate(${m}px, ${t.scrollYTop||0}px)`),f&&(f.style.transform=f.getAttribute("xvm")?`translate(${m}px, 0px)`:""));const x=["main"];x.forEach(e=>{const t=["header","body","footer"];t.forEach(t=>{const n=Ep(l[`${e}-${t}-xSpace`]);n&&(n.style.width=r?`${y}px`:"")})}),t.scrollXLeft=m,t.scrollXWidth=y,t.isScrollXBig=b;const w=e.$refs.refScrollXSpaceElem;return w&&(w.style.width=`${y}px`),fg(e),b&&d.area&&Of("vxe.error.notProp",["mouse-config.area"]),u&&u.handleUpdateSXSpace&&u.handleUpdateSXSpace(),e.$nextTick(()=>{dm(e)})}},updateScrollYData(){const e=this;return e.handleTableData(),e.updateScrollYSpace(),e.$nextTick().then(()=>{e.handleTableData(),e.updateScrollYSpace()})},updateScrollYSpace(){const e=this,t=e,n=e,{isAllOverflow:r,overflowY:i,scrollYLoad:o,scrollYHeight:a,expandColumn:s}=t,{scrollYStore:l,elemStore:c,isResizeCellHeight:u,afterFullData:d,fullAllDataRowIdData:h,rowExpandedMaps:p}=n,f=n.xeGanttView,{startIndex:m}=l,g=e.computeMouseOpts,v=e.computeExpandOpts,b=e.computeRowOpts,y=e.computeCellOpts,x=e.computeDefaultRowHeight,w=Ep(c["main-body-scroll"]),C=Ep(c["main-body-table"]),_=Ep(c["left-body-table"]),S=Ep(c["right-body-table"]),k=["main","left","right"];let E=0,O=a,T=!1;if(o){const t=u||y.height||b.height;if(t||s||!r){const t=d[m];if(t){let n=np(e,t),r=h[n]||{};E=r.oTop||0;const i=d[d.length-1];if(n=np(e,i),r=h[n]||{},r){const e=mp(r,y,b,x);e&&(O=(r.oTop||0)+e,s&&p[n]&&(O+=r.expandHeight||v.height||0))}O>Nf&&(T=!0)}else O=C?C.clientHeight:0}else O=d.length*x,O>Nf&&(T=!0),E=Math.max(0,m*x)}else C&&(O=C.clientHeight);let $=0;w&&($=w.clientHeight);let D=O,M=E;T&&(M=w&&C&&w.scrollTop+$>=Nf?Nf-C.clientHeight:E/(a-$)*(Nf-$),D=Nf),o&&i||(M=0),Tf().scrollMarginStyle?(_&&(_.style.marginTop=`${M}px`),C&&(C.style.marginTop=`${M}px`),S&&(S.style.marginTop=`${M}px`)):(_&&(_.style.transform=`translate(0px, ${M}px)`),C&&(C.style.transform=`translate(${t.scrollXLeft||0}px, ${M}px)`),S&&(S.style.transform=`translate(0px, ${M}px)`)),k.forEach(e=>{const t=["header","body","footer"];t.forEach(t=>{const n=Ep(c[`${e}-${t}-ySpace`]);n&&(n.style.height=D?`${D}px`:"")})});const F=e.$refs.refScrollYSpaceElem;F&&(F.style.height=D?`${D}px`:"");const R=e.$refs.refRowExpandYSpaceElem;return R&&(R.style.height=D?`${D}px`:""),t.scrollYTop=M,t.scrollYHeight=T?O:D,t.isScrollYBig=T,fg(e),T&&g.area&&Of("vxe.error.notProp",["mouse-config.area"]),f&&f.handleUpdateSYSpace&&f.handleUpdateSYSpace(),e.$nextTick().then(()=>dm(e))},updateScrollYStatus(e){const t=this;return em(t,e)},scrollTo(e,t){const n=this,r=n,i=n,{elemStore:o}=i,a=Ep(o["main-header-scroll"]),s=Ep(o["main-body-scroll"]),l=Ep(o["main-footer-scroll"]),c=Ep(o["left-body-scroll"]),u=Ep(o["right-body-scroll"]),d=n.$refs.refScrollXHandleElem,h=n.$refs.refScrollYHandleElem;return i.intoRunScroll=!0,e&&(pc.isNumber(e)||(t=e.top,e=e.left)),pc.isNumber(e)&&(fh(d,e),fh(s,e),fh(a,e),fh(l,e),r.scrollXLoad&&Dg(n)),pc.isNumber(t)&&(ph(h,t),ph(s,t),ph(c,t),ph(u,t),r.scrollYLoad&&Ag(n)),new Promise(e=>{setTimeout(()=>{n.$nextTick(()=>{i.intoRunScroll=!1,e()})},r.scrollXLoad||r.scrollYLoad?30:0)})},scrollToRow(e,t,n){const r=this,i=r,o=r,a=r,{isAllOverflow:s,scrollYLoad:l,scrollXLoad:c}=o,{fullAllDataRowIdData:u,_sToTime:d}=a,h=[];let p;if(pc.isString(e)||pc.isNumber(e)){const t=e,n=t?u[t]:null;n&&(p=n.row)}else p=e;return p&&(i.treeConfig?h.push(r.scrollToTreeRow(p)):h.push(Fp(r,p))),t&&h.push(lg(r,t,p,n)),d&&clearTimeout(d),Promise.all(h).then(()=>{if(p)return s||!l&&!c||(Wm(r),Gg(r),a._sToTime=setTimeout(()=>{a._sToTime=void 0,l&&(i.treeConfig?r.scrollToTreeRow(p):Fp(r,p)),c&&t&&lg(r,t,p,n)},350)),r.$nextTick()})},scrollToStartRow(e,t){const n=this,r=n,{afterFullData:i}=r;return n.scrollToRow(i[0],e,t)},scrollToEndRow(e,t){const n=this,r=n,{afterFullData:i}=r;return n.scrollToRow(i[i.length-1],e,t)},scrollToColumn(e,t){const n=this;return lg(n,null,e,t)},scrollToStartColumn(e){const t=this,n=t,{visibleColumn:r}=n;return t.scrollToColumn(r[0],e)},scrollToEndColumn(e){const t=this,n=t,{visibleColumn:r}=n;return t.scrollToColumn(r[r.length-1],e)},scrollToTreeRow(e){const t=this,n=t,r=t,i=t,{treeConfig:o}=n,{isRowGroupStatus:a}=r,{tableFullData:s}=i,l=[];if(o||a){const n=t.computeAggregateOpts,r=t.computeTreeOpts,i=r.children||r.childrenField,o=pc.findTree(s,n=>t.eqRow(n,e),{children:a?n.mapChildrenField:i});if(o){const e=o.nodes;e.forEach((n,r)=>{r<e.length-1&&!t.isTreeExpandByRow(n)&&l.push(t.setTreeExpand(n,!0))})}}return Promise.all(l).then(()=>Fp(t,e))},clearScroll(){const e=this,t=e,{elemStore:n,scrollXStore:r,scrollYStore:i}=t,o=Ep(n["main-header-scroll"]),a=Ep(n["main-body-scroll"]),s=Ep(n["main-footer-scroll"]),l=Ep(n["left-body-scroll"]),c=Ep(n["right-body-scroll"]),u=e.$refs.refScrollXHandleElem,d=e.$refs.refScrollYHandleElem;return t.intoRunScroll=!0,fh(u,0),fh(a,0),fh(o,0),fh(s,0),ph(d,0),ph(a,0),ph(l,0),ph(c,0),r.startIndex=0,r.visibleStartIndex=0,r.endIndex=r.visibleSize,r.visibleEndIndex=r.visibleSize,i.startIndex=0,i.visibleStartIndex=0,i.endIndex=i.visibleSize,i.visibleEndIndex=i.visibleSize,e.$nextTick().then(()=>{t.lastScrollLeft=0,t.lastScrollTop=0,t.intoRunScroll=!1})},updateFooter(){const e=this,t=e,n=e,r=e,i=e.$xeGrid,o=e.$xeGantt,{showFooter:a,footerData:s,footerMethod:l}=t,{visibleColumn:c,afterFullData:u}=r;let d=[];return a&&s&&s.length?d=s.slice(0):a&&l&&(d=c.length?l({columns:c,data:u,$table:e,$grid:i,$gantt:o}):[]),n.footerTableData=d,e.clearFooterFormatterCache(),e.handleUpdateFooterMerge(),e.dispatchEvent("footer-data-change",{visibleColumn:r.visibleColumn,footData:d},null),e.$nextTick()},updateStatus(e,t){const n=this,r=n,i=n;return n.$nextTick().then(()=>{const{editRules:o}=r,{isActivated:a}=i;if(a&&e&&o)return n.handleCellRuleUpdateStatus("change",e,t)})},setMergeCells(e){const t=this,n=t,r=t,i=t;return n.spanMethod&&Of("vxe.error.errConflicts",["merge-cells","span-method"]),Rm(t,e),t.handleUpdateBodyMerge(),t.$nextTick().then(()=>{const{expandColumn:e}=r,{mergeBodyList:n}=i;return e&&n.length&&Ef("vxe.error.errConflicts",["type=expand","merge-cells | span-method"]),t.updateCellAreas(),dm(t)})},removeMergeCells(e){const t=this,n=t;n.spanMethod&&Of("vxe.error.errConflicts",["merge-cells","span-method"]);const r=Im(t,e);return t.handleUpdateBodyMerge(),t.$nextTick().then(()=>(t.updateCellAreas(),dm(t),r))},getMergeCells(){const e=this,t=e;return t.mergeBodyList.slice(0)},clearMergeCells(){const e=this,t=e,n=e;return n.mergeBodyList=[],n.mergeBodyMaps={},n.mergeBodyCellMaps={},n.mergeBodyRowMaps={},n.mergeBodyColMaps={},t.mergeBodyFlag++,e.$nextTick().then(()=>dm(e))},setMergeHeaderCells(e){const t=this;return Am(t,e),t.handleUpdateHeaderMerge(),t.$nextTick().then(()=>dm(t))},removeMergeHeaderCells(e){const t=this,n=Pm(t,e);return t.handleUpdateHeaderMerge(),t.$nextTick().then(()=>(dm(t),n))},getMergeHeaderCells(){const e=this,t=e;return t.mergeHeaderList.slice(0)},clearMergeHeaderCells(){const e=this,t=e,n=e;return n.mergeHeaderList=[],n.mergeHeaderMaps={},n.mergeHeaderCellMaps={},n.mergeHeaderRowMaps={},n.mergeBodyColMaps={},t.mergeHeadFlag++,e.$nextTick().then(()=>dm(e))},setMergeFooterCells(e){const t=this,n=t;return n.footerSpanMethod&&Of("vxe.error.errConflicts",["merge-footer-cells | merge-footer-items","footer-span-method"]),Lm(t,e),t.handleUpdateFooterMerge(),t.$nextTick().then(()=>dm(t))},setMergeFooterItems(e){const t=this;return t.setMergeFooterCells(e)},removeMergeFooterCells(e){const t=this,n=t;n.footerSpanMethod&&Of("vxe.error.errConflicts",["merge-footer-cells | merge-footer-items","footer-span-method"]);const r=Nm(t,e);return t.handleUpdateFooterMerge(),t.$nextTick().then(()=>(dm(t),r))},removeMergeFooterItems(e){const t=this;return t.removeMergeFooterCells(e)},getMergeFooterCells(){const e=this,t=e;return t.mergeFooterList.slice(0)},getMergeFooterItems(){const e=this;return e.getMergeFooterCells()},clearMergeFooterCells(){const e=this,t=e,n=e;return n.mergeFooterList=[],n.mergeFooterMaps={},n.mergeFooterCellMaps={},n.mergeFooterRowMaps={},n.mergeFooterColMaps={},t.mergeFootFlag++,e.$nextTick().then(()=>dm(e))},clearMergeFooterItems(){const e=this;return e.clearMergeFooterCells()},handleUpdateAggData(){const e=this,t=e;return kg(e,t.tableSynchData,!1,!0)},handlePushStack(){const e=this,t=e,n=e.computeKeyboardOpts;if(!n.isUndoRedo)return;const{stackHistoryStore:r}=t,i=rv(e);r.undoStacks.push(i),r.redoStacks=[],nv(e)},handleUndoStackEvent(e){const t=this,n=t,{stackHistoryStore:r}=n,{undoStacks:i,redoStacks:o}=r;if(i.length){const n=rv(t);return o.push(n),iv(t,i.pop()),e&&t.dispatchEvent("undo",{},e),t.$nextTick(()=>({status:!0}))}return Promise.resolve({status:!1})},handleRedoStackEvent(e){const t=this,n=t,{stackHistoryStore:r}=n,{undoStacks:i,redoStacks:o}=r;if(o.length){const n=rv(t);return i.push(n),iv(t,o.pop()),e&&t.dispatchEvent("redo",{},e),t.$nextTick(()=>({status:!0}))}return Promise.resolve({status:!1})},handleClearStack(){const e=this,t=e,{stackHistoryStore:n}=t;return n.undoStacks=[],n.redoStacks=[],e.$nextTick()},updateZindex(){const e=this,t=e,n=e;t.zIndex?n.tZindex=t.zIndex:n.tZindex<hd()&&(n.tZindex=dd())},updateCellAreas(){const e=this,t=e,{mouseConfig:n}=t,r=e.computeMouseOpts;return n&&r.area&&e.handleRecalculateCellAreaEvent?e.handleRecalculateCellAreaEvent():e.$nextTick()},undo(){const e=this;return e.handleUndoStackEvent(null)},redo(){const e=this;return e.handleRedoStackEvent(null)},clearHistory(){const e=this;return e.handleClearStack()},dispatchEvent(e,t,n){const r=this,i=r.$xeGrid,o=r.$xeGantt;r.$emit(e,Rf(n,{$table:r,$grid:i,$gantt:o},t))},emitEvent(e,t,n){const r=this;r.dispatchEvent(e,t,n)},focus(){const e=this,t=e;return t.isActivated=!0,e.$nextTick()},blur(){const e=this,t=e;return t.isActivated=!1,e.$nextTick()},connect(e){const t=this;return t.connectToolbar(e)},connectToolbar(e){const t=this,n=t;return e&&e.syncUpdate?(e.syncUpdate({collectColumn:n.collectColumn,$table:t}),this.$toolbar=e):Of("vxe.error.barUnableLink"),t.$nextTick()},handleConnectGanttView(e){const t=this,n=t;return e&&e.connectUpdate&&(e.connectUpdate({$table:t}),n.xeGanttView=e),t.$nextTick()},getCell(e,t){const n=this;return n.getCellElement(e,t)},findRowIndexOf(e,t){const n=this;return t?pc.findIndexOf(e,e=>n.eqRow(e,t)):-1},eqRow(e,t){const n=this;return!(!e||!t)&&(e===t||np(n,e)===np(n,t))},getSetupOptions(){return Tf()}},av={},sv=Object.assign({},ov,av),lv="setFilter,openFilter,clearFilter,saveFilter,saveFilterByEvent,resetFilter,resetFilterByEvent,saveFilterPanel,saveFilterPanelByEvent,resetFilterPanel,resetFilterPanelByEvent,getCheckedFilters,updateFilterOptionStatus,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,getCopyCellAreas,clearCopyCellArea,setCellAreas,openFNR,openFind,openReplace,closeFNR,getSelectedCell,clearSelected,insert,insertAt,insertNextAt,insertChild,insertChildAt,insertChildNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearEdit,clearActived,getEditRecord,getEditCell,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,fullValidateField,validateField,openExport,closeExport,openPrint,closePrint,getPrintHtml,exportData,openImport,closeImport,importData,saveFile,readFile,importByFile,print,getCustomVisible,openCustom,closeCustom,toggleCustom,saveCustom,cancelCustom,resetCustom,toggleCustomAllCheckbox,setCustomAllCheckbox".split(",");lv.forEach(e=>{sv[e]=function(...t){return this[`_${e}`]?this[`_${e}`](...t):null}});const cv=sv,{getI18n:uv,renderer:dv,renderEmptyElement:hv}=ad,pv="table",fv="body",mv=e=>{const t=e,n=e,r=e,{delayHover:i}=t,{isDragResize:o}=n,{lastSTime:a}=r;return!!(o||a&&Date.now()<a+i)};function gv(e,t,n,r,i){const o=t,a=t,{column:s}=r,{treeConfig:l}=o,c=t.computeCellOpts,u=t.computeRowOpts,d=t.computeDefaultRowHeight,h=t.computeTreeOpts,{slots:p,treeNode:f}=s,{fullAllDataRowIdData:m}=a;if(l&&f&&(h.showLine||h.line)){if(p&&p.line)return t.callSlot(p.line,r,e);const o=m[n];let a=0,s=null,l=null,f="";if(o&&(a=o.level,s=o.items[o.treeIndex-1],l=o.parent),!a&&!h.showRootLine)return[];if(s){const e=m[np(t,s)]||{};f=`${e.lineHeight||0}px`}else if(a&&l){const e=m[np(t,l)]||{};f=`calc(-1em + ${Math.floor(i/2+mp(e,c,u,d)/2)}px)`}return[e("div",{key:"tl",class:"vxe-tree--line-wrapper"},[e("div",{class:"vxe-tree--line",style:{height:f,bottom:`-${Math.floor(i/2)}px`,left:`calc(${a*h.indent}px + 1em)`}})])]}return[]}function vv(e,t,n,r,i,o,a,s,l,c,u,d,h,p,f){const m=t,g=t,v=t,b=t.$xeGrid,y=t.$xeGantt,{columnKey:x,resizable:w,showOverflow:C,border:_,height:S,treeConfig:k,cellClassName:E,cellStyle:O,align:T,spanMethod:$,mouseConfig:D,editConfig:M,editRules:F,tooltipConfig:R,padding:I}=m,{tableData:A,tableColumn:P,dragRow:L,overflowX:N,overflowY:j,scrollXLoad:B,scrollYLoad:V,mergeBodyFlag:z,calcCellHeightFlag:H,resizeHeightFlag:W,resizeWidthFlag:q,editStore:G,isAllOverflow:Y,validErrorMaps:U,currColFlag:K}=g,{fullAllDataRowIdData:X,fullColumnIdData:Z,mergeBodyCellMaps:Q,visibleColumn:J,afterFullData:ee,mergeBodyList:te,scrollXStore:ne,scrollYStore:re,keepUpdateFieldMaps:ie,currentCol:oe}=v,ae=t.computeCellOpts,se=t.computeValidOpts,le=t.computeCheckboxOpts,ce=t.computeEditOpts,ue=t.computeTooltipOpts,de=t.computeVirtualXOpts,he=t.computeVirtualYOpts,pe=t.computeRendererOpts,{isAllColumnDrag:fe,isAllRowDrag:me}=t.resizableOpts,ge=t.computeRowOpts,ve=t.computeRowDragOpts,be=t.computeDefaultRowHeight,ye=H?ae.height||ge.height:0,{disabledMethod:xe,isCrossDrag:we,isPeerDrag:Ce}=ve,_e=t.computeColumnOpts,Se=t.computeMouseOpts,ke=t.computeAreaOpts,Ee=t.computeCellOffsetWidth,{selectCellToRow:Oe}=ke,{field:Te,type:$e,cellRender:De,editRender:Me,align:Fe,showOverflow:Re,className:Ie,treeNode:Ae,rowResize:Pe,padding:Le,verticalAlign:Ne,slots:je}=d,{verticalAlign:Be,minHeight:Ve,maxHeight:ze}=ae,{actived:He}=G,We=X[r]||{},qe=d.id,Ge=Z[qe]||{},Ye=Me||De,Ue=Ye&&Ye.name?pe[Ye.name]||dv.get(Ye.name):null,Ke=Ue?Ue.tableCellClassName||Ue.cellClassName:null,Xe=Ue?Ue.tableCellStyle||Ue.cellStyle:"",Ze=ue.showAll,Qe=Ge.index,Je=Ge._index,et=ld(Me),tt=W?We.resizeHeight:0;let nt=N&&(i?d.fixed!==i:!!d.fixed);const rt=bd(Le,null===I?ae.padding:I),it=!0===rt,ot=!!rt&&(it||!1!==rt.top),at=!!rt&&(it||!1!==rt.bottom),st=!!rt&&(it||!1!==rt.left),lt=!!rt&&(it||!1!==rt.right),ct=bd(Re,C),ut="ellipsis"===ct,dt="title"===ct,ht=!0===ct?"tooltip"===ue.mode:"tooltip"===ct,pt=Y||dt||ht||ut,ft=pc.isBoolean(d.resizable)?d.resizable:_e.resizable||w,mt=!!ye,gt=tt>0;let vt;const bt={},yt=Fe||(Ue?Ue.tableCellAlign:"")||T,xt=pc.eqNull(Ne)?Be:Ne,wt=U[`${r}:${qe}`],Ct=F&&se.showErrorMessage&&("default"===se.message?S||A.length>1:"inline"===se.message),_t={colid:qe},St={$table:t,$grid:b,$gantt:y,isEdit:!1,seq:n,rowid:r,row:s,rowIndex:l,$rowIndex:c,_rowIndex:u,column:d,columnIndex:Qe,$columnIndex:h,_columnIndex:Je,fixed:i,source:pv,type:fv,isHidden:!!nt,level:a,visibleData:ee,data:A,items:f};let kt=!1,Et=!1;ge.drag&&(kt="row"===ve.trigger||d.dragSort&&"cell"===ve.trigger),kt&&(Et=!(!xe||!xe(St))),(dt||ht||Ze||R)&&(bt.mouseover=e=>{mv(t)||(dt?mh(e.currentTarget,d):(ht||Ze)&&t.triggerBodyTooltipEvent(e,St)),t.dispatchEvent("cell-mouseenter",Object.assign({cell:e.currentTarget},St),e)}),(ht||Ze||R)&&(bt.mouseleave=e=>{mv(t)||(ht||Ze)&&t.handleTargetLeaveEvent(e),t.dispatchEvent("cell-mouseleave",Object.assign({cell:e.currentTarget},St),e)}),(kt||le.range||D)&&(bt.mousedown=e=>{t.triggerCellMousedownEvent(e,St)}),kt&&(bt.mouseup=t.triggerCellMouseupEvent),bt.click=e=>{t.triggerCellClickEvent(e,St)},bt.dblclick=e=>{t.triggerCellDblclickEvent(e,St)};let Ot=!1,Tt=1,$t=1;if(z&&te.length){const e=Q[`${u}:${Je}`];if(e){const{rowspan:n,colspan:r}=e;if(!n||!r)return hv(t);n>1&&(Ot=!0,$t=n,_t.rowspan=n),r>1&&(Ot=!0,Tt=r,_t.colspan=r)}}else if($){const{rowspan:e=1,colspan:n=1}=$(St)||{};if(!e||!n)return hv(t);e>1&&(Ot=!0,$t=e,_t.rowspan=e),n>1&&(Ot=!0,Tt=n,_t.colspan=n)}nt&&Ot&&(_t.colspan>1||_t.rowspan>1)&&(nt=!1),!nt&&M&&(ce.showStatus||ce.showUpdateStatus)&&ie[Te]&&(vt=t.isUpdateByRow(s,Te));const Dt=!pt&&(V||B);let Mt=mp(We,ae,ge,be);const Ft=h===p.length-1,Rt=!d.resizeWidth&&("auto"===d.minWidth||"auto"===d.width);let It=!1;if(Ot||L&&np(t,L)===r||(j&&V&&!k&&A.length>16&&!he.immediate&&(u<re.visibleStartIndex-re.preloadSize||u>re.visibleEndIndex+re.preloadSize)||N&&B&&P.length>10&&!de.immediate&&!d.fixed&&(Je<ne.visibleStartIndex-ne.preloadSize||Je>ne.visibleEndIndex+ne.preloadSize))&&(It=!0),$t>1){const e=ee[u+$t-1];if(e){const n=X[np(t,e)];n&&(Mt+=n.oTop+mp(n,ae,ge,be)-We.oTop-mp(We,ae,ge,be))}}const At={};if(ze&&(At.maxHeight=ze+"px"),pt&&q){let e=0;if(Tt>1)for(let t=1;t<Tt;t++){const n=J[Qe+t];n&&(e+=n.renderWidth)}At.width=d.renderWidth+e-Ee+"px"}V||B||pt||mt||gt?At.height=Mt+"px":At.minHeight=Mt+"px",Ve&&(At.minHeight=Ve+"px");const Pt=[];if(nt&&Y)Pt.push(e("div",{key:"tc",class:["vxe-cell",{"c--title":dt,"c--tooltip":ht,"c--ellipsis":ut}],style:At}));else{k&&Pt.push(...gv(e,t,r,St,Mt));const n=[];if(It||n.push(e("div",{attrs:{colid:qe,rowid:r},class:"vxe-cell--wrapper vxe-body-cell--wrapper"},d.renderCell(e,St))),Pt.push(e("div",{key:"tc",class:["vxe-cell",{"c--title":dt,"c--tooltip":ht,"c--ellipsis":ut}],style:At,attrs:{title:dt?t.getCellLabel(s,d):null}},n)),Ct&&wt){const n=wt.rule,r=je?je.valid:null,i=Object.assign(Object.assign(Object.assign({},St),wt),{rule:wt});Pt.push(e("div",{key:"tcv",class:["vxe-cell--valid-error-tip",vd(se.className,wt)],style:n&&n.maxWidth?{width:n.maxWidth+"px"}:void 0},[e("div",{class:`vxe-cell--valid-error-wrapper vxe-cell--valid-error-theme-${se.theme||"normal"}`},[r?t.callSlot(r,i,e):[e("span",{class:"vxe-cell--valid-error-msg"},wt.content)]])]))}}let Lt=!1;return D&&Se.area&&!Je&&Oe&&(Lt=!0),!nt&&ft&&fe&&Pt.push(e("div",{key:"tcc",class:["vxe-cell--col-resizable",{"is--line":!_||"none"===_}],on:{mousedown:e=>t.handleColResizeMousedownEvent(e,i,St),dblclick:e=>t.handleColResizeDblclickEvent(e,St)}})),(Pe||me)&&ge.resizable&&Pt.push(e("div",{key:"tcr",class:"vxe-cell--row-resizable",on:{mousedown:e=>t.handleRowResizeMousedownEvent(e,St),dblclick:e=>t.handleRowResizeDblclickEvent(e,St)}})),e("td",{class:["vxe-table--column vxe-body--column",qe,xt?`col--vertical-${xt}`:"",yt?`col--${yt}`:"",$e?`col--${$e}`:"",{"col--last":Ft,"col--tree-node":Ae,"col--edit":et,"col--ellipsis":pt,"col--cs-height":mt,"col--rs-height":gt,"col--to-row":Lt,"col--auto-height":Dt,"col--max-height":ze,"fixed--width":!Rt,"fixed--hidden":nt,"is--pg-top":ot,"is--pg-bottom":at,"is--pg-left":st,"is--pg-right":lt,"is--progress":nt&&Y||It,"is--drag-cell":kt&&(we||Ce||!a),"is--drag-disabled":Et,"col--dirty":vt,"col--active":M&&et&&He.row===s&&(He.column===d||"row"===ce.mode),"col--valid-error":!!wt,"show--valid-bg":wt&&se.showErrorBackground,"col--current":K&&oe===d},vd(Ke,St),vd(Ie,St),vd(E,St)],key:x||B||V||_e.useKey||ge.useKey||_e.drag?d.id:h,attrs:_t,style:Object.assign({},pc.isFunction(Xe)?Xe(St):Xe,pc.isFunction(O)?O(St):O),on:bt},o&&nt?[]:Pt)}function bv(e,t,n,r,i,o){const a=t.$parent,s=a,l=a,c=a,u=a.$xeGrid,d=a.$xeGantt,{stripe:h,rowKey:p,highlightHoverRow:f,rowClassName:m,rowStyle:g,editConfig:v,treeConfig:b}=s,{hasFixedColumn:y,treeExpandedFlag:x,scrollYLoad:w,isAllOverflow:C,rowExpandedFlag:_,expandColumn:S,selectRadioRow:k,pendingRowFlag:E,rowExpandHeightFlag:O,isRowGroupStatus:T}=l,{fullAllDataRowIdData:$,fullColumnIdData:D,treeExpandedMaps:M,pendingRowMaps:F,rowExpandedMaps:R,currentRow:I}=c,A=a.computeCheckboxOpts,P=a.computeRadioOpts,L=a.computeTreeOpts,N=a.computeEditOpts,j=a.computeRowOpts,B=a.computeColumnOpts,{transform:V,seqMode:z}=L,H=L.children||L.childrenField,W=[],{handleGetRowId:q}=ip(a),G=b||T;return i.forEach((s,l)=>{const c={},Y=q(s),U=$[Y]||{};let K=l,X=0,Z=-1,Q=-1;const J=T&&s.isAggregate;(j.isHover||f)&&(c.mouseover=e=>{mv(a)||a.triggerHoverEvent(e,{row:s,rowIndex:K})},c.mouseleave=()=>{mv(a)||a.clearHoverRow()}),U&&(K=U.index,Q=U._index,X=U.level,Z=U.seq,J||b&&V&&"increasing"===z?Z=U._index+1:b&&"fixed"===z&&(Z=U._tIndex+1));const ee={$table:a,seq:Z,rowid:Y,fixed:n,type:fv,level:X,row:s,rowIndex:K,$rowIndex:l,_rowIndex:Q},te=S&&!!_&&!!R[Y];let ne=!1,re=[],ie=!1;v&&(ie=a.isInsertByRow(s)),!b||w||V||(re=s[H],ne=!!x&&re&&re.length>0&&!!M[Y]),!j.drag||T||b&&!V||(c.dragstart=a.handleRowDragDragstartEvent,c.dragend=a.handleRowDragDragendEvent,c.dragover=a.handleRowDragDragoverEvent);const oe=["vxe-body--row",G?`row--level-${X}`:"",{"row--stripe":h&&(Q+1)%2===0,"is--new":ie,"is--expand-row":te,"is--expand-tree":ne,"row--new":ie&&(N.showStatus||N.showInsertStatus),"row--radio":P.highlight&&k===s,"row--checked":A.highlight&&a.isCheckedByCheckboxRow(s),"row--pending":!!E&&!!F[Y],"row--group":J,"row--current":I&&Y===np(a,I)},m?pc.isFunction(m)?m(ee):m:""],ae=o.map((t,c)=>vv(e,a,Z,Y,n,r,X,s,K,l,Q,t,c,o,i));if(W.push(e("tr",{class:oe,attrs:{rowid:Y},style:g?pc.isFunction(g)?g(ee):g:void 0,key:p||j.useKey||j.drag||B.drag||T||b?Y:l,on:c},ae)),te){const t=a.computeExpandOpts,{height:r,padding:i,mode:c}=t;if("fixed"===c){const t=U.expandHeight;let n=0;O&&(t||r)&&(n=(t||r||0)+1),W.push(e("tr",{class:"vxe-body--row-expanded-place",key:`expand_${Y}`,attrs:{rowid:Y}},[e("td",{class:"vxe-body--row-expanded-place-column",attrs:{colspan:o.length},style:{height:`${n}px`}})]))}else{const t={};r&&(t.height=`${r}px`),b&&(t.paddingLeft=X*L.indent+30+"px");const{showOverflow:c}=S||{},h=S.id,p=D[h]||{},f=pc.eqNull(c)?C:c;let m=-1,g=-1,v=-1;p&&(m=p.index,g=p.$index,v=p._index);const x={$grid:u,$table:a,$gantt:d,seq:Z,column:S,columnIndex:m,$columnIndex:g,_columnIndex:v,fixed:n,source:pv,type:fv,level:X,row:s,rowid:Y,rowIndex:K,$rowIndex:l,_rowIndex:Q,isHidden:!1,isEdit:!1,visibleData:[],data:[],items:[]};W.push(e("tr",{class:["vxe-body--expanded-row",{"is--padding":i}],key:`expand_${Y}`},[e("td",{class:["vxe-body--expanded-column",{"fixed--hidden":n&&!y,"col--ellipsis":f}],attrs:{colspan:o.length}},[e("div",{class:["vxe-body--expanded-cell",{"is--ellipsis":r}],style:t},[S.renderData(e,x)])])]))}}ne&&W.push(...bv(e,t,n,r,re,o))}),W}const yv={name:"VxeTableBody",props:{tableData:Array,tableColumn:Array,fixedColumn:Array,fixedType:{type:String,default:""}},mounted(){const e=this,t=e,n=e.$parent,r=n,{fixedType:i}=t,{elemStore:o}=r,a=`${i||"main"}-body-`;o[`${a}wrapper`]=e.$refs.refElem,o[`${a}scroll`]=e.$refs.refBodyScroll,o[`${a}table`]=e.$refs.refBodyTable,o[`${a}colgroup`]=e.$refs.refBodyColgroup,o[`${a}list`]=e.$refs.refBodyTBody,o[`${a}xSpace`]=e.$refs.refBodyXSpace,o[`${a}ySpace`]=e.$refs.refBodyYSpace,o[`${a}emptyBlock`]=e.$refs.refBodyEmptyBlock},destroyed(){const e=this,t=this.$parent,n=t,{fixedType:r}=e,{elemStore:i}=n,o=`${r||"main"}-body-`;i[`${o}wrapper`]=null,i[`${o}scroll`]=null,i[`${o}table`]=null,i[`${o}colgroup`]=null,i[`${o}list`]=null,i[`${o}xSpace`]=null,i[`${o}ySpace`]=null,i[`${o}emptyBlock`]=null},render(e){const t=this,n=this.$parent,r=n,i=n,o=n,a=n.$xeGrid,s=n.$xeGantt,l=n.$scopedSlots,{xID:c}=n,{fixedColumn:u,fixedType:d,tableColumn:h}=t,{mouseConfig:p}=r,{isGroup:f,tableData:m,isColLoading:g,overflowX:v,scrollXLoad:b,scrollYLoad:y,dragRow:x,dragCol:w}=i,{visibleColumn:C,fullAllDataRowIdData:_,fullColumnIdData:S}=o,k=n.computeEmptyOpts,E=n.computeMouseOpts,O=n.computeIsBodyRenderOptimize;let T=m,$=h;const D=O;if(g||!d&&v||($=C),d&&D&&($=u||[]),y&&x&&T.length>2){const e=_[np(n,x)];if(e){const t=e._index,r=T[0],i=T[T.length-1],o=_[np(n,r)],a=_[np(n,i)];if(o&&a){const e=o._index,n=a._index;t<e?T=[x].concat(T):t>n&&(T=T.concat([x]))}}}if(!d&&!f&&b&&w&&$.length>2){const e=S[w.id];if(e){const t=e._index,n=$[0],r=$[$.length-1],i=S[n.id],o=S[r.id];if(i&&o){const e=i._index,n=o._index;t<e?$=[w].concat($):t>n&&($=$.concat([w]))}}}let M;const F=l?l.empty:null,R={$table:n,$grid:a,$gantt:s};if(F)M=F.call(n,R);else{const t=n.computeRendererOpts,i=k.name?t[k.name]||dv.get(k.name):null,o=i?i.renderTableEmpty||i.renderTableEmptyView||i.renderEmpty:null;M=o?Bp(o.call(n,e,k,R)):r.emptyText||uv("vxe.table.emptyText")}return e("div",{ref:"refElem",class:["vxe-table--body-wrapper",d?`fixed-${d}--wrapper`:"body--wrapper"],attrs:{xid:c}},[e("div",{ref:"refBodyScroll",class:"vxe-table--body-inner-wrapper",on:{scroll(e){n.triggerBodyScrollEvent(e,d)}}},[d?hv(n):e("div",{ref:"refBodyXSpace",class:"vxe-body--x-space"}),e("div",{ref:"refBodyYSpace",class:"vxe-body--y-space"}),e("table",{ref:"refBodyTable",class:"vxe-table--body",attrs:{xid:c,cellspacing:0,cellpadding:0,border:0,xvm:D?"1":null}},[e("colgroup",{ref:"refBodyColgroup"},$.map((t,n)=>e("col",{attrs:{name:t.id},key:n,style:{width:`${t.renderWidth}px`}}))),e("tbody",{ref:"refBodyTBody"},bv(e,this,d,D,T,$))]),e("div",{class:"vxe-table--checkbox-range"}),p&&E.area?e("div",{class:"vxe-table--cell-area",attrs:{xid:c}},[e("span",{class:"vxe-table--cell-main-area"},E.extension?[e("span",{class:"vxe-table--cell-main-area-btn",on:{mousedown(e){n.triggerCellAreaExtendMousedownEvent&&n.triggerCellAreaExtendMousedownEvent(e,{$table:n,fixed:d,type:fv})}}})]:null),e("span",{class:"vxe-table--cell-clip-area"}),e("span",{class:"vxe-table--cell-extend-area"}),e("span",{class:"vxe-table--cell-multi-area"}),e("span",{class:"vxe-table--cell-active-area"}),e("span",{class:"vxe-table--cell-row-status-area"})]):hv(n),d?hv(n):e("div",{class:"vxe-table--empty-block",ref:"emptyBlock"},[e("div",{class:"vxe-table--empty-content"},M)])])])}},{renderer:xv,renderEmptyElement:wv}=ad,Cv="table",_v="header";function Sv(e,t,n,r,i,o,a){const s=t,l=t.$parent,c=l.$xeGrid,u=l.$xeGantt,d=l,h=l,p=l,{fixedType:f}=s,{resizable:m,columnKey:g,showCustomHeader:v,headerCellClassName:b,headerCellStyle:y,showHeaderOverflow:x,headerAlign:w,align:C,mouseConfig:_}=d,{dragCol:S,scrollXLoad:k,scrollYLoad:E,overflowX:O,mergeHeadFlag:T,tableColumn:$,currColFlag:D}=h,{fullColumnIdData:M,scrollXStore:F,mergeHeaderList:R,mergeHeaderCellMaps:I,currentCol:A}=p,P=l.computeVirtualXOpts,L=l.computeColumnOpts,N=l.computeColumnDragOpts,j=l.computeHeaderTooltipOpts,B=l.computeCellOpts,V=l.computeDefaultRowHeight,z=l.computeHeaderCellOpts,H=l.computeRendererOpts,W=hp(z.height)||V,{disabledMethod:q,isCrossDrag:G,isPeerDrag:Y}=N,U=o===i.length-1;return a.map((t,i)=>{const{type:s,showHeaderOverflow:d,headerAlign:h,align:p,filters:V,headerClassName:K,editRender:X,cellRender:Z}=t,Q=t.id,J=M[Q]||{},ee=X||Z,te=ee&&ee.name?H[ee.name]||xv.get(ee.name):null,ne=t.children&&t.children.length,re=O&&!ne&&(f?t.fixed!==f:!!t.fixed),ie=bd(z.padding,B.padding),oe=!0===ie,ae=!!ie&&(oe||!1!==ie.top),se=!!ie&&(oe||!1!==ie.bottom),le=!!ie&&(oe||!1!==ie.left),ce=!!ie&&(oe||!1!==ie.right),ue=bd(d,x),de=h||(te?te.tableHeaderCellAlign:"")||w||p||(te?te.tableCellAlign:"")||C,he="ellipsis"===ue,pe="title"===ue,fe=!0===ue?"tooltip"===j.mode:"tooltip"===ue,me=pe||fe||he;let ge=!1,ve=null;V&&(ve=V[0],ge=V.some(e=>e.checked));const be=J.index,ye=v?i:J._index,xe={$table:l,$grid:c,$gantt:u,rowIndex:o,_rowIndex:o,$rowIndex:o,column:t,columnIndex:be,$columnIndex:i,_columnIndex:ye,firstFilterOption:ve,fixed:f,source:Cv,type:_v,isHidden:re,hasFilter:ge},we={colid:Q};let Ce=!1;if(v||(we.colspan=t.colSpan>1?t.colSpan:null,we.rowspan=t.rowSpan>1?t.rowSpan:null),T&&R.length&&(v||U)){const e=I[`${o}:${v?i:ye}`];if(e){const{rowspan:t,colspan:n}=e;if(!t||!n)return null;t>1&&(Ce=!0,we.rowspan=t),n>1&&(Ce=!0,we.colspan=n)}}const _e={click:e=>l.triggerHeaderCellClickEvent(e,xe),dblclick:e=>l.triggerHeaderCellDblclickEvent(e,xe)},Se=L.drag&&"cell"===N.trigger;let ke=!1;Se&&(ke=!(!q||!q(xe))),(_||Se)&&(_e.mousedown=e=>l.triggerHeaderCellMousedownEvent(e,xe)),L.drag&&(_e.dragstart=l.handleHeaderCellDragDragstartEvent,_e.dragend=l.handleHeaderCellDragDragendEvent,_e.dragover=l.handleHeaderCellDragDragoverEvent,Se&&(_e.mouseup=l.handleHeaderCellDragMouseupEvent));const Ee=i===a.length-1,Oe=pc.isBoolean(t.resizable)?t.resizable:L.resizable||m,Te=!t.resizeWidth&&("auto"===t.minWidth||"auto"===t.width);let $e=!1;r&&O&&!n&&!Ce&&(S&&S.id===Q||k&&$.length>10&&!t.fixed&&!P.immediate&&(ye<F.visibleStartIndex-F.preloadSize||ye>F.visibleEndIndex+F.preloadSize)&&($e=!0));const De={};if(me?De.height=`${W}px`:De.minHeight=`${W}px`,v);else if(ne&&!U){let e=0;pc.eachTree(t.children,t=>{!t.visible||t.children&&t.children.length||(e+=t.renderWidth)}),De.width=`${e}px`}return e("th",{class:["vxe-table--column vxe-header--column",Q,re?"fixed--hidden":"fixed--visible",{[`col--${de}`]:de,[`col--${s}`]:s,"col--last":Ee,"col--fixed":t.fixed,"col--group":ne,"col--ellipsis":me,"fixed--width":!Te,"is--pg-top":ae,"is--pg-bottom":se,"is--pg-left":le,"is--pg-right":ce,"is--sortable":t.sortable,"col--filter":!!V,"is--filter-active":ge,"is--drag-active":L.drag&&!t.fixed&&!ke&&(G||Y||!t.parentId),"is--drag-disabled":L.drag&&ke,"col--current":D&&A===t},vd(K,xe),vd(b,xe)],attrs:we,style:y?pc.isFunction(y)?y(xe):y:void 0,on:_e,key:v?`${Q}${i}`:g||k||E||L.useKey||L.drag||ne?Q:i},[e("div",{class:["vxe-cell",{"c--title":pe,"c--tooltip":fe,"c--ellipsis":he}],style:De},$e||r&&re?[]:[e("div",{attrs:{colid:Q},class:"vxe-cell--wrapper vxe-header-cell--wrapper"},t.renderHeader(e,xe))]),re||!Oe||v&&!U?wv(l):e("div",{class:"vxe-cell--col-resizable",on:{mousedown:e=>l.handleColResizeMousedownEvent(e,f,xe),dblclick:e=>l.handleColResizeDblclickEvent(e,xe)}})])})}function kv(e,t,n,r){const i=t,o=t.$parent,a=o.$xeGrid,s=o.$xeGantt,l=o,c=o,u=o,{fixedType:d}=i,{showHeaderOverflow:h,headerAlign:p,align:f}=l,{overflowX:m,currColFlag:g}=c,{fullColumnIdData:v,currentCol:b}=u,y=o.computeHeaderTooltipOpts,x=o.computeCellOpts,w=o.computeDefaultRowHeight,C=o.computeHeaderCellOpts,_=o.computeFloatingFilterOpts,S=o.computeRendererOpts,{cellClassName:k}=_,E=hp(C.height)||w;return r.map((t,i)=>{const{type:l,showHeaderOverflow:c,headerAlign:u,align:w,filters:_,editRender:O,cellRender:T,floatingFilters:$,filterRender:D,slots:M}=t,F=t.id,R=v[F]||{},I=O||T,A=I&&I.name?S[I.name]||xv.get(I.name):null,P=ld(D)&&D.name?S[D.name]||xv.get(D.name):null,L=P?P.renderTableFloatingFilter:null,N=M?M.floatingFilter||M["floating-filter"]:null,j=m&&(d?t.fixed!==d:!!t.fixed),B=pc.isBoolean(C.padding)?C.padding:x.padding,V=pc.eqNull(c)?h:c,z=u||(A?A.tableHeaderCellAlign:"")||p||w||(A?A.tableCellAlign:"")||f,H="ellipsis"===(!0===V?y.mode:V),W="title"===(!0===V?y.mode:V),q="tooltip"===(!0===V?y.mode:V),G=W||q||H;let Y=!1,U=null;_&&(U=_[0],Y=_.some(e=>e.checked));const K=R.index,X=R._index,Z={$table:o,$grid:a,$gantt:s,column:t,columnIndex:K,$columnIndex:i,_columnIndex:X,option:U,fixed:d,source:Cv,type:_v,isHidden:j,hasFilter:Y},Q={colid:F},J=i===r.length-1,ee=!t.resizeWidth&&("auto"===t.minWidth||"auto"===t.width),te={};return G?te.height=`${E}px`:te.minHeight=`${E}px`,e("th",{class:["vxe-table--column vxe-header--column is--floating-filters",F,j?"fixed--hidden":"fixed--visible",{[`col--${z}`]:z,[`col--${l}`]:l,"col--last":J,"col--fixed":t.fixed,"col--ellipsis":G,"fixed--width":!ee,"is--padding":B,"is--sortable":t.sortable,"col--current":g&&b===t}],key:F,attrs:Q},[e("div",{class:["vxe-cell",""+(k||""),{"c--title":W,"c--tooltip":q,"c--ellipsis":H}],style:te},n&&j&&!$?[]:[e("div",{attrs:{colid:F},class:"vxe-cell--wrapper vxe-header-cell--wrapper"},N?o.callSlot(N,Z,e):L&&U?Bp(L.call(o,e,D,Z)):[])])])})}function Ev(e,t,n,r,i,o){const a=t,s=t.$parent,l=s,{fixedType:c}=a,{headerRowClassName:u,headerRowStyle:d}=l,h=s.computeFloatingFilterOpts,p=i.map((o,a)=>{const l={$table:s,rowIndex:a,_rowIndex:a,$rowIndex:a,fixed:c,type:_v};return e("tr",{key:a,class:["vxe-header--row",u?pc.isFunction(u)?u(l):u:""],style:d?pc.isFunction(d)?d(l):d:void 0},Sv(e,t,n,r,i,a,o))});return h.enabled&&p.push(e("tr",{key:"ff",class:["vxe-header--row is--floating-filters",""+(h.rowClassName||"")]},kv(e,t,r,o))),p}const Ov={name:"VxeTableHeader",props:{tableData:Array,tableColumn:Array,tableGroupColumn:Array,fixedColumn:Array,fixedType:{type:String,default:null}},data(){const e=[];return{headerColumn:e}},watch:{tableColumn(){const e=this;e.uploadColumn()}},created(){const e=this;e.uploadColumn()},mounted(){const e=this,t=e,n=e.$parent,r=n,{fixedType:i}=t,{elemStore:o}=r,a=`${i||"main"}-header-`;o[`${a}wrapper`]=e.$refs.refElem,o[`${a}scroll`]=e.$refs.refHeaderScroll,o[`${a}table`]=e.$refs.refHeaderTable,o[`${a}colgroup`]=e.$refs.refHeaderColgroup,o[`${a}list`]=e.$refs.refHeaderTHead,o[`${a}xSpace`]=e.$refs.refHeaderXSpace,o[`${a}repair`]=e.$refs.refHeaderBorderRepair},destroyed(){const e=this,t=e,n=e.$parent,r=n,{fixedType:i}=t,{elemStore:o}=r,a=`${i||"main"}-header-`;o[`${a}wrapper`]=null,o[`${a}scroll`]=null,o[`${a}table`]=null,o[`${a}colgroup`]=null,o[`${a}list`]=null,o[`${a}xSpace`]=null,o[`${a}repair`]=null},render(e){const t=this,n=t,r=t.$parent,i=r,o=r,a=r,{xID:s}=r,{fixedType:l,fixedColumn:c,tableColumn:u}=n,{headerColumn:d}=t,{mouseConfig:h}=i,{isGroup:p,isColLoading:f,overflowX:m,scrollXLoad:g,dragCol:v}=o,{visibleColumn:b,fullColumnIdData:y}=a,x=r.computeMouseOpts,w=r.computeIsHeaderRenderOptimize;let C=d,_=u;const S=w;if(p?_=b:(S&&(f||!l&&m)||(_=b),l&&S&&(_=c||[]),C=[_]),!l&&!p&&g&&v&&_.length>2){const e=y[v.id];if(e){const t=e._index,n=_[0],r=_[_.length-1],i=y[n.id],o=y[r.id];if(i&&o){const e=i._index,n=o._index;t<e?(_=[v].concat(_),C=[[v].concat(C[0])].concat(C.slice(1))):t>n&&(_=_.concat([v]),C=[C[0].concat([v])].concat(C.slice(1)))}}}return e("div",{ref:"refElem",class:["vxe-table--header-wrapper",l?`fixed-${l}--wrapper`:"body--wrapper"],attrs:{xid:s}},[e("div",{ref:"refHeaderScroll",class:"vxe-table--header-inner-wrapper",on:{scroll(e){r.triggerHeaderScrollEvent(e,l)}}},[l?wv(r):e("div",{ref:"refHeaderXSpace",class:"vxe-body--x-space"}),e("table",{ref:"refHeaderTable",class:"vxe-table--header",attrs:{xid:s,cellspacing:0,cellpadding:0,border:0,xvm:S?"1":null}},[e("colgroup",{ref:"refHeaderColgroup"},_.map((t,n)=>e("col",{attrs:{name:t.id},key:n,style:{width:`${t.renderWidth}px`}}))),e("thead",{ref:"refHeaderTHead"},Ev(e,t,p,S,C,_))]),h&&x.area?e("div",{class:"vxe-table--cell-area",attrs:{xid:s}},[e("span",{class:"vxe-table--cell-main-area"}),e("span",{class:"vxe-table--cell-clip-area"}),e("span",{class:"vxe-table--cell-extend-area"}),e("span",{class:"vxe-table--cell-multi-area"}),e("span",{class:"vxe-table--cell-active-area"}),e("span",{class:"vxe-table--cell-col-status-area"})]):wv(r)])])},methods:{uploadColumn(){const e=this,t=e.$parent,n=t,r=t,i=t,o=e,{showCustomHeader:a}=n,{collectColumn:s,visibleColumn:l}=i,{tableGroupColumn:c}=o,{isGroup:u}=r;let d=u?Uh(c):[],h=[];a&&d.length>1&&(h=Kh(d),d=h),e.headerColumn=d,t.$nextTick(()=>{t.dispatchEvent("columns-change",{visibleColgroups:h,collectColumn:s,visibleColumn:l},null)})}}},Tv="table",$v="footer",{renderer:Dv,renderEmptyElement:Mv}=ad;function Fv(e,t,n,r,i,o,a,s){const l=t,c=t.$parent,u=c,d=c,h=c,p=c.$xeGrid,f=c.$xeGantt,{fixedType:m}=l,{resizable:g,border:v,footerCellClassName:b,footerCellStyle:y,footerAlign:x,footerSpanMethod:w,align:C,columnKey:_,showFooterOverflow:S}=u,{scrollXLoad:k,scrollYLoad:E,overflowX:O,mergeFootFlag:T,currColFlag:$}=d,{fullColumnIdData:D,mergeFooterList:M,mergeFooterCellMaps:F,scrollXStore:R,currentCol:I}=h,A=c.computeVirtualXOpts,P=c.computeFooterTooltipOpts,L=c.resizableOpts,{isAllColumnDrag:N}=L,j=c.computeColumnOpts,B=c.computeDefaultRowHeight,V=c.computeCellOpts,z=c.computeFooterCellOpts,H=hp(z.height)||B,W=c.computeRendererOpts;return r.map((t,l)=>{const{type:u,showFooterOverflow:d,footerAlign:h,align:L,footerClassName:B,editRender:q,cellRender:G}=t,Y=t.id,U=D[Y]||{},K=q||G,X=K&&K.name?W[K.name]||Dv.get(K.name):null,Z=P.showAll,Q=O&&(m?t.fixed!==m:!!t.fixed),J=bd(z.padding,V.padding),ee=!0===J,te=!!J&&(ee||!1!==J.top),ne=!!J&&(ee||!1!==J.bottom),re=!!J&&(ee||!1!==J.left),ie=!!J&&(ee||!1!==J.right),oe=bd(d,S),ae=h||(X?X.tableFooterCellAlign:"")||x||L||(X?X.tableCellAlign:"")||C,se="ellipsis"===(!0===oe?P.mode:oe),le="title"===(!0===oe?P.mode:oe),ce="tooltip"===(!0===oe?P.mode:oe),ue=le||ce||se,de=pc.isBoolean(t.resizable)?t.resizable:j.resizable||g,he={colid:Y},pe={},fe=U.index,me=U._index,ge=me,ve={source:Tv,$table:c,$grid:p,$gantt:f,row:o,rowIndex:s,_rowIndex:s,$rowIndex:a,column:t,columnIndex:fe,$columnIndex:l,_columnIndex:me,itemIndex:ge,items:o,fixed:m,type:$v,data:i};(le||ce||Z)&&(pe.mouseenter=e=>{le?mh(e.currentTarget,t):(ce||Z)&&c.triggerFooterTooltipEvent(e,ve)}),(ce||Z)&&(pe.mouseleave=e=>{(ce||Z)&&c.handleTargetLeaveEvent(e)}),pe.click=e=>{c.triggerFooterCellClickEvent(e,ve)},pe.dblclick=e=>{c.triggerFooterCellDblclickEvent(e,ve)};let be=!1;if(T&&M.length){const e=F[`${s}:${me}`];if(e){const{rowspan:t,colspan:n}=e;if(!t||!n)return null;t>1&&(be=!0,he.rowspan=t),n>1&&(be=!0,he.colspan=n)}}else if(w){const{rowspan:e=1,colspan:t=1}=w(ve)||{};if(!e||!t)return null;e>1&&(he.rowspan=e),t>1&&(he.colspan=t)}const ye=l===r.length-1,xe=!t.resizeWidth&&("auto"===t.minWidth||"auto"===t.width);let we=!1;n&&O&&!be&&k&&r.length>10&&!t.fixed&&!A.immediate&&(me<R.visibleStartIndex-R.preloadSize||me>R.visibleEndIndex+R.preloadSize)&&(we=!0);const Ce={};return ue?Ce.height=`${H}px`:Ce.minHeight=`${H}px`,e("td",{class:["vxe-table--column vxe-footer--column",t.id,{[`col--${ae}`]:ae,[`col--${u}`]:u,"col--last":ye,"fixed--width":!xe,"fixed--hidden":Q,"is--pg-top":te,"is--pg-bottom":ne,"is--pg-left":re,"is--pg-right":ie,"col--ellipsis":ue,"col--current":$&&I===t},vd(B,ve),vd(b,ve)],attrs:he,style:y?pc.isFunction(y)?y(ve):y:void 0,on:pe,key:_||k||E||j.useKey||j.drag?t.id:l},[e("div",{class:["vxe-cell",{"c--title":le,"c--tooltip":ce,"c--ellipsis":se}],style:Ce},we?[]:[e("div",{attrs:{colid:Y},class:"vxe-cell--wrapper vxe-footer-cell--wrapper"},t.renderFooter(e,ve))]),!Q&&de&&N?e("div",{class:["vxe-cell--col-resizable",{"is--line":!v||"none"===v}],on:{mousedown:e=>c.handleColResizeMousedownEvent(e,m,ve),dblclick:e=>c.handleColResizeDblclickEvent(e,ve)}}):Mv(c)])})}function Rv(e,t,n,r){const i=t,o=t.$parent,a=o,{fixedType:s,footerTableData:l}=i,{footerRowClassName:c,footerRowStyle:u}=a;return l.map((i,a)=>{const d=a,h={$table:o,row:i,rowIndex:a,_rowIndex:a,$rowIndex:d,fixed:s,type:$v};return e("tr",{key:a,class:["vxe-footer--row",c?pc.isFunction(c)?c(h):c:""],style:u?pc.isFunction(u)?u(h):u:void 0},Fv(e,t,n,r,l,i,a,a))})}const Iv={name:"VxeTableFooter",props:{footerTableData:{type:Array,default:()=>[]},tableColumn:{type:Array,default:()=>[]},fixedColumn:{type:Array,default:()=>[]},fixedType:{type:String,default:null}},mounted(){const e=this,t=e,n=e.$parent,r=n,{fixedType:i}=t,{elemStore:o}=r,a=`${i||"main"}-footer-`;o[`${a}wrapper`]=e.$refs.refElem,o[`${a}scroll`]=e.$refs.refFooterScroll,o[`${a}table`]=e.$refs.refFooterTable,o[`${a}colgroup`]=e.$refs.refFooterColgroup,o[`${a}list`]=e.$refs.refFooterTFoot,o[`${a}xSpace`]=e.$refs.refFooterXSpace},destroyed(){const e=this,t=e,n=e.$parent,r=n,{fixedType:i}=t,{elemStore:o}=r,a=`${i||"main"}-footer-`;o[`${a}wrapper`]=null,o[`${a}scroll`]=null,o[`${a}table`]=null,o[`${a}colgroup`]=null,o[`${a}list`]=null,o[`${a}xSpace`]=null},render(e){const t=this,n=t,r=t.$parent,i=r,o=r,{xID:a}=r,{fixedType:s,fixedColumn:l,tableColumn:c}=n,{visibleColumn:u,fullColumnIdData:d}=o,{isGroup:h,isColLoading:p,overflowX:f,scrollXLoad:m,dragCol:g}=i,v=r.computeIsFooterRenderOptimize;let b=c;const y=v;if(y&&(p||!s&&f)||(b=u),s&&y&&(b=l||[]),!s&&!h&&m&&g&&b.length>2){const e=d[g.id];if(e){const t=e._index,n=b[0],r=b[b.length-1],i=d[n.id],o=d[r.id];if(i&&o){const e=i._index,n=o._index;t<e?b=[g].concat(b):t>n&&(b=b.concat([g]))}}}return e("div",{ref:"refElem",class:["vxe-table--footer-wrapper",s?`fixed-${s}--wrapper`:"body--wrapper"],attrs:{xid:a}},[e("div",{ref:"refFooterScroll",class:"vxe-table--footer-inner-wrapper",on:{scroll(e){r.triggerFooterScrollEvent(e,s)}}},[s?Mv(r):e("div",{ref:"refFooterXSpace",class:"vxe-body--x-space"}),e("table",{ref:"refFooterTable",class:"vxe-table--footer",attrs:{xid:a,cellspacing:0,cellpadding:0,border:0,xvm:y?"1":null}},[e("colgroup",{ref:"refFooterColgroup"},b.map((t,n)=>e("col",{attrs:{name:t.id},key:n,style:{width:`${t.renderWidth}px`}}))),e("tfoot",{ref:"refFooterTFoot"},Rv(e,t,y,b))])])])}},{errLog:Av}=Ih("table"),{getI18n:Pv,getIcon:Lv,renderEmptyElement:Nv}=ad;function jv(e,t,n,r,i){const o=e.internalData,a=e.$refs.refBodyWrapperElem;if(!a)return;const s=e.$refs.refCustomBodyElem;if(!s)return;const{prevDragToChild:l}=o,c=a.getBoundingClientRect(),u=s.getBoundingClientRect(),d=e.$refs.refDragLineElem;if(n){if(d)if(r){const e=n.getBoundingClientRect();d.style.display="block",d.style.left=`${Math.max(0,u.x-c.x)}px`,d.style.top=`${Math.max(1,e.y+a.scrollTop-c.y)}px`,d.style.height=`${e.height}px`,d.style.width=`${e.width}px`,d.setAttribute("drag-pos",i),d.setAttribute("drag-to-child",l?"y":"n")}else d.style.display=""}else d&&(d.style.display="node");const h=e.$refs.refDragTipElem;h&&(h.style.display="block",h.style.top=`${Math.min(a.clientHeight+a.scrollTop-h.clientHeight,t.clientY+a.scrollTop-c.y)}px`,h.style.left=`${Math.min(a.clientWidth+a.scrollLeft-h.clientWidth,t.clientX+a.scrollLeft-c.x)}px`,h.setAttribute("drag-status",r?l?"sub":"normal":"disabled"))}function Bv(e){const t=e.$refs.refDragTipElem,n=e.$refs.refDragLineElem;t&&(t.style.display=""),n&&(n.style.display="")}const Vv={name:"VxeTableCustomPanel",props:{customStore:{type:Object,default:()=>({})}},provide(){const e=this;return{$xeTableCustomPanel:e}},inject:{$xeTable:{default:null}},data(){const e={dragCol:null,dragGroupField:null,dragAggFnCol:null,dragTipText:""},t={};return{reactData:e,internalData:t}},computed:Object.assign({},{}),created(){const e=this,t=ad.getComponent("VxeModal"),n=ad.getComponent("VxeDrawer"),r=ad.getComponent("VxeButton"),i=ad.getComponent("VxeNumberInput"),o=ad.getComponent("VxeRadioGroup");e.$nextTick(()=>{const a=e.$xeTable,{customOpts:s}=a,{mode:l}=s;t||"modal"!==l||Av("vxe.error.reqComp",["vxe-modal"]),n||"drawer"!==l||Av("vxe.error.reqComp",["vxe-drawer"]),r||Av("vxe.error.reqComp",["vxe-button"]),i||Av("vxe.error.reqComp",["vxe-number-input"]),o||Av("vxe.error.reqComp",["vxe-radio-group"])})},methods:{handleWrapperMouseenterEvent(e){const t=this,n=t,r=t.$xeTable,{customStore:i}=n;i.activeWrapper=!0,r.customOpenEvent(e)},handleWrapperMouseleaveEvent(e){const t=this,n=t.$xeTable,r=t,{customStore:i}=r;i.activeWrapper=!1,setTimeout(()=>{i.activeBtn||i.activeWrapper||n.customCloseEvent(e)},300)},getStoreData(){return{}},confirmCustomEvent({$event:e}){const t=this,n=t.$xeTable,r=n;r.isCustomStatus=!0,n.saveCustom(),n.closeCustom(),n.emitCustomEvent("confirm",e),n.dispatchEvent("custom-confirm",{},e),n.emitCustomEvent("close",e),n.dispatchEvent("custom-close",{},e)},cancelCloseEvent({$event:e}){const t=this,n=t.$xeTable;n.closeCustom(),n.emitCustomEvent("close",e),n.dispatchEvent("custom-close",{},e)},cancelCustomEvent({$event:e}){const t=this,n=t.$xeTable;n.cancelCustom(),n.closeCustom(),n.emitCustomEvent("cancel",e),n.dispatchEvent("custom-cancel",{},e),n.emitCustomEvent("close",e),n.dispatchEvent("custom-close",{},e)},handleResetCustomEvent(e){const t=this,n=t.$xeTable;n.resetCustom(!0),n.closeCustom(),n.emitCustomEvent("reset",e),n.dispatchEvent("custom-reset",{},e),n.emitCustomEvent("close",e),n.dispatchEvent("custom-close",{},e)},resetCustomEvent(e){ad.modal?ad.modal.confirm({content:Pv("vxe.custom.cstmConfirmRestore"),className:"vxe-table--ignore-clear",escClosable:!0}).then(t=>{"confirm"===t&&this.handleResetCustomEvent(e)}):this.handleResetCustomEvent(e)},handleOptionCheck(e){const t=this,n=t.$xeTable,r=n,{customColumnList:i}=r,o=pc.findTree(i,t=>t===e);if(o&&o.parent){const{parent:e}=o;e.children&&e.children.length&&(e.renderVisible=e.children.every(e=>e.renderVisible),e.halfVisible=!e.renderVisible&&e.children.some(e=>e.renderVisible||e.halfVisible),this.handleOptionCheck(e))}},changeCheckboxOption(e,t){const n=this,r=n.$xeTable,i=r,o=!e.renderVisible,a=r.computeCustomOpts;a.immediate?(pc.eachTree([e],e=>{e.visible=o,e.renderVisible=o,e.halfVisible=!1}),i.isCustomStatus=!0,r.handleCustom(),r.saveCustomStore("update:visible")):pc.eachTree([e],e=>{e.renderVisible=o,e.halfVisible=!1}),this.handleOptionCheck(e),r.checkCustomStatus(),r.dispatchEvent("custom-visible-change",{column:e,checked:o},t)},changeColumnWidth(e){const t=this,n=t.$xeTable,r=n,i=n.computeCustomOpts;i.immediate&&e.renderResizeWidth!==e.renderWidth&&(e.resizeWidth=e.renderResizeWidth,e.renderWidth=e.renderResizeWidth,r.isCustomStatus=!0,n.handleCustom(),n.saveCustomStore("update:width"))},changeFixedOption(e,t,n){const r=this,i=r.$xeTable,o=i,a=i.computeIsMaxFixedColumn,s=i.computeCustomOpts;let l=null;s.immediate?(e.renderFixed===t?(l="",pc.eachTree([e],e=>{e.fixed="",e.renderFixed=""})):a&&!e.renderFixed||(l=t,pc.eachTree([e],e=>{e.fixed=t,e.renderFixed=t})),o.isCustomStatus=!0,i.handleCustom(),i.saveCustomStore("update:fixed")):e.renderFixed===t?(l="",pc.eachTree([e],e=>{e.renderFixed=""})):a&&!e.renderFixed||(l=t,pc.eachTree([e],e=>{e.renderFixed=t})),null!==l&&i.dispatchEvent("custom-fixed-change",{column:e,fixed:l},n)},changeAlignOption(e,t,n,r,i,o){const a=this,s=a.$xeTable,l=s,c=s.computeCustomOpts;c.immediate?(e[n]=t,e[r]=t,l.isCustomStatus=!0,s.handleCustom(),s.saveCustomStore(`update:${n}`)):e[r]=t,s.dispatchEvent(i,{column:e,[n]:t},o)},allOptionEvent(e){const t=this,n=t.$xeTable,r=n,{customStore:i}=r,o=!i.isAll;n.toggleCustomAllCheckbox(),n.dispatchEvent("custom-visible-all",{checked:o},e)},updateColDropTipContent(){const e=this,t=e.$xeTable,n=e.reactData,{dragCol:r}=n,i=t.computeColumnDragOpts,{tooltipMethod:o}=i;let a="";if(o){const e={$table:t,column:r};a=`${o(e)||""}`}else a=Pv("vxe.custom.cstmDragTarget",[r&&"html"!==r.type?r.getTitle():""]);n.dragTipText=a},sortMousedownEvent(e){const t=this,n=t.$xeTable,r=t.reactData,i=e.currentTarget,o=i.parentElement,a=o.parentElement,s=a.parentElement,l=s.getAttribute("colid"),c=n.getColumnById(l);s.draggable=!0,r.dragCol=c,r.dragGroupField=null,r.dragAggFnCol=null,this.updateColDropTipContent(),ah(s,"active--drag-origin")},sortMouseupEvent(e){const t=this,n=t.reactData,r=e.currentTarget,i=r.parentElement,o=i.parentElement,a=o.parentElement;Bv(t),a.draggable=!1,n.dragCol=null,n.dragGroupField=null,n.dragAggFnCol=null,oh(a,"active--drag-origin")},sortDragstartEvent(e){const t=this,n=t.$xeTable,r=n,i=t.internalData,{customDragTime:o}=i;e.dataTransfer&&e.dataTransfer.setDragImage(Jd(),0,0),o&&clearTimeout(o),r.isCustomDragStatus=!0,i.prevDragGroupField=null,i.prevDragAggFnColid=null},sortDragendEvent(e){const t=this,n=t.$xeTable,r=n,i=n,o=n,a=t.reactData,s=t.internalData,{mouseConfig:l}=r,{customColumnList:c}=i,{collectColumn:u}=o,d=n.computeCustomOpts,{immediate:h}=d,p=e.currentTarget,f=n.computeColumnDragOpts,{isCrossDrag:m,isPeerDrag:g,isSelfToChildDrag:v,isToChildDrag:b,dragEndMethod:y}=f,{dragCol:x}=a,{prevDragCol:w,prevDragGroupField:C,prevDragAggFnColid:_,prevDragPos:S,prevDragToChild:k}=s,E="bottom"===S?1:0;if(C||_)n.handlePivotTableAggregatePanelDragendEvent&&n.handlePivotTableAggregatePanelDragendEvent(e);else if(w&&x&&w!==x){const r=x,o=w;Promise.resolve(!y||y({oldColumn:r,newColumn:o,dragColumn:r,dragPos:S,dragToChild:!!k,offsetIndex:E})).then(a=>{if(!a)return;let s=-1,d=-1;const p={};pc.eachTree([r],e=>{p[e.id]=e});let f=!1;if(h){if(r.parentId&&o.parentId)if(g&&!m){if(r.parentId!==o.parentId)return}else{if(!m)return;if(p[o.id]&&(f=!0,!m||!v))return void(ad.modal&&ad.modal.message({status:"error",content:Pv("vxe.error.treeDragChild")}))}else if(r.parentId){if(!m)return}else if(o.parentId){if(!m)return;if(p[o.id]&&(f=!0,!m||!v))return void(ad.modal&&ad.modal.message({status:"error",content:Pv("vxe.error.treeDragChild")}))}const e=pc.findTree(u,e=>e.id===r.id);if(f&&m&&v){if(e){const{items:t,index:n}=e,i=r.children||[];i.forEach(e=>{e.parentId=r.parentId}),t.splice(n,1,...i),r.children=[]}}else if(e){const{items:t,index:n,parent:r}=e;t.splice(n,1),r||(s=n)}const t=pc.findTree(u,e=>e.id===o.id);if(t){const{items:e,index:n,parent:i}=t;m&&b&&k?(r.parentId=o.id,o.children=(o.children||[]).concat([r])):(r.parentId=o.parentId,e.splice(n+E,0,r)),i||(d=n)}pc.eachTree(u,(e,t,n,r,i)=>{if(!i){const n=t+1;e.renderSortNumber=n}})}else s=pc.findIndexOf(c,e=>e.id===r.id),c.splice(s,1),d=pc.findIndexOf(c,e=>e.id===o.id),c.splice(d+E,0,r);l&&(n.clearSelected&&n.clearSelected(),n.clearCellAreas&&(n.clearCellAreas(),n.clearCopyCellArea()));const y={oldColumn:r,newColumn:o,dragColumn:r,dragPos:S,offsetIndex:E,_index:{newIndex:d,oldIndex:s}};n.dispatchEvent("custom-sort-change",y,e),n.dispatchEvent("column-dragend",y,e),h&&(i.customColumnList=u.slice(0),n.handleColDragSwapColumn()),t.clearDragAnimateStatus()}).catch(()=>{})}Bv(t),a.dragCol=null,a.dragGroupField=null,a.dragAggFnCol=null,s.prevDragGroupField=null,s.prevDragAggFnColid=null,p.draggable=!1,p.removeAttribute("drag-pos"),oh(p,"active--drag-target"),oh(p,"active--drag-origin")},sortDragoverEvent(e){const t=this,n=t.$xeTable,r=t.reactData,i=t.internalData,{dragCol:o}=r,a=n.computeCustomOpts,{showSortDragButton:s,allowSort:l,immediate:c}=a,u=n.computeColumnDragOpts,{isCrossDrag:d,isPeerDrag:h,isToChildDrag:p}=u,f=e.currentTarget,m=sh(e),g=f.getAttribute("colid"),v=n.getColumnById(g);if(i.prevDragGroupField=null,i.prevDragAggFnColid=null,v&&(d||h||1===v.level)){e.preventDefault();const n=e.clientY-f.getBoundingClientRect().y,r=n<f.clientHeight/2?"top":"bottom";if(!o||!s||!l||o&&o.id===v.id||!d&&(h?o.parentId!==v.parentId:v.level>1)||!c&&v.level>1||!d&&(h?o.parentId!==v.parentId:o.level>1)||!c&&o.level>1)return void jv(t,e,f,!1,r);i.prevDragToChild=!!(d&&p&&m&&c),i.prevDragCol=v,i.prevDragPos=r,jv(t,e,f,!0,r)}},clearDragAnimateStatus(){const e=this,t=e.$xeTable,n=e.internalData,r=t;n.customDragTime=setTimeout(()=>{r.isCustomDragStatus=!1,n.customDragTime=void 0},350)},sortMoveUpEvent(e,t){const n=this,r=n.$xeTable,i=r,{customColumnList:o}=i,a=pc.findTree(o,e=>e===t);if(a){const{item:e,items:t,index:r}=a;r>0&&(i.isCustomDragStatus=!0,n.$nextTick(()=>{t.splice(r,1),t.splice(r-1,0,e),n.clearDragAnimateStatus()}))}},sortMoveDnEvent(e,t){const n=this,r=n.$xeTable,i=r,{customColumnList:o}=i,a=pc.findTree(o,e=>e===t);if(a){const{item:e,items:t,index:r}=a;r<t.length-1&&(i.isCustomDragStatus=!0,n.$nextTick(()=>{t.splice(r,1),t.splice(r+1,0,e),n.clearDragAnimateStatus()}))}},sortMoveTopEvent(e,t){const n=this,r=n.$xeTable,i=r,{customColumnList:o}=i,a=pc.findTree(o,e=>e===t);if(a){const{item:e,items:t,index:r,parent:s}=a;(s||r>0)&&(i.isCustomDragStatus=!0,n.$nextTick(()=>{e.parentId=null,t.splice(r,1),o.unshift(e),n.clearDragAnimateStatus()}))}},sortMoveBottomEvent(e,t){const n=this,r=n.$xeTable,i=r,{customColumnList:o}=i,a=pc.findTree(o,e=>e===t);if(a){const{item:e,items:t,index:r,parent:s}=a;(s||r<t.length-1)&&(i.isCustomDragStatus=!0,n.$nextTick(()=>{e.parentId=null,t.splice(r,1),o.push(e),n.clearDragAnimateStatus()}))}},renderDragTip(e){const t=this,n=t.$xeTable,r=t.reactData,{dragTipText:i}=r,o=n.computeColumnDragOpts;return e("div",{},[e("div",{ref:"refDragLineElem",class:["vxe-table-custom-popup--drag-line",{"is--guides":o.showGuidesStatus}]}),e("div",{ref:"refDragTipElem",class:"vxe-table-custom-popup--drag-tip"},[e("div",{class:"vxe-table-custom-popup--drag-tip-wrapper"},[e("div",{class:"vxe-table-custom-popup--drag-tip-status"},[e("span",{class:["vxe-table-custom-popup--drag-tip-normal-status",Lv().TABLE_DRAG_STATUS_ROW]}),e("span",{class:["vxe-table-custom-popup--drag-tip-sub-status",Lv().TABLE_DRAG_STATUS_SUB_ROW]}),e("span",{class:["vxe-table-custom-popup--drag-tip-group-status",Lv().TABLE_DRAG_STATUS_AGG_GROUP]}),e("span",{class:["vxe-table-custom-popup--drag-tip-values-status",Lv().TABLE_DRAG_STATUS_AGG_VALUES]}),e("span",{class:["vxe-table-custom-popup--drag-tip-disabled-status",Lv().TABLE_DRAG_DISABLED]})]),e("div",{class:"vxe-table-custom-popup--drag-tip-content"},`${i||""}`)])])])},renderSimplePanel(e){const t=ad.getComponent("VxeButton"),n=this,r=n,i=n.$xeTable,o=i,a=i,s=i.$xeGrid,l=i.$xeGantt,{customStore:c}=r,{treeConfig:u,rowGroupConfig:d,aggregateConfig:h}=o,{isCustomStatus:p,customColumnList:f,isCustomDragStatus:m}=a,g=i.computeCustomOpts,v=i.computeColumnDragOpts,{defPopupStyle:b}=c,{immediate:y,checkMethod:x,visibleMethod:w,allowVisible:C,allowSort:_,allowFixed:S,allowGroup:k,allowValues:E,trigger:O,placement:T,showSortDragButton:$,showSortMoveButton:D,showSortPutButton:M}=g,F=i.computeIsMaxFixedColumn,R=i.computeSize,{isCrossDrag:I,isPeerDrag:A}=v,P=g.slots||{},L=P.header,N=P.top,j=P.bottom,B=P.default,V=P.footer,z=[],H={},W=c.isAll,q=c.isIndeterminate;"hover"===O&&(H.mouseenter=n.handleWrapperMouseenterEvent,H.mouseleave=n.handleWrapperMouseleaveEvent);const G={$table:i,$grid:s,$gantt:l,columns:f,isAllChecked:W,isAllIndeterminate:q,isCustomStatus:p};return pc.eachTree(f,(r,o,a,s,l)=>{const c=!w||w({$table:i,column:r});if(c){const s=r.renderVisible,c=r.halfVisible,u=r.children&&r.children.length,d=md(r.getTitle(),1),h=!!x&&!x({$table:i,column:r}),p=!s,f=!(!I&&!A)&&y||1===r.level;z.push(e("li",{key:r.id,attrs:{colid:r.id},class:["vxe-table-custom--option",`level--${r.level}`,{"is--hidden":h||p,"is--group":u}],on:{dragstart:n.sortDragstartEvent,dragend:n.sortDragendEvent,dragover:n.sortDragoverEvent}},[C?e("div",{class:["vxe-table-custom--checkbox-option",{"is--checked":s,"is--indeterminate":c,"is--disabled":h}],attrs:{title:Pv("vxe.custom.setting.colVisible")},on:{click:e=>{h||n.changeCheckboxOption(r,e)}}},[e("span",{class:["vxe-checkbox--icon",c?Lv().TABLE_CHECKBOX_INDETERMINATE:s?Lv().TABLE_CHECKBOX_CHECKED:Lv().TABLE_CHECKBOX_UNCHECKED]})]):Nv(i),e("div",{class:"vxe-table-custom--name-option"},[(_&&$||k||E)&&(f||(k||E)&&!u)?e("div",{class:"vxe-table-custom--sort-option"},[e("span",{class:["vxe-table-custom--sort-btn",{"is--disabled":p}],attrs:{title:Pv("vxe.custom.setting.sortHelpTip")},on:p?{}:{mousedown:n.sortMousedownEvent,mouseup:n.sortMouseupEvent}},[e("i",{class:Lv().TABLE_CUSTOM_SORT})])]):Nv(i),"html"===r.type?e("div",{key:"1",class:"vxe-table-custom--checkbox-label",domProps:{innerHTML:d}}):e("div",{key:"0",class:"vxe-table-custom--checkbox-label",attrs:{title:d}},d)]),f&&(D||M)?e("div",{class:"vxe-table-custom--move-btn-option"},t?[D?e(t,{props:{mode:"text",icon:"vxe-icon-arrows-up",title:Pv("vxe.custom.setting.moveUpTitle"),disabled:o<=0},on:{click(e){n.sortMoveUpEvent(e,r)}}}):Nv(i),D?e(t,{props:{mode:"text",icon:"vxe-icon-arrows-down",title:Pv("vxe.custom.setting.moveDnTitle"),disabled:o>=a.length-1},on:{click(e){n.sortMoveDnEvent(e,r)}}}):Nv(i),M&&!l?e(t,{props:{mode:"text",icon:"vxe-icon-top",title:Pv("vxe.custom.setting.putTopTitle"),disabled:o<=0},on:{click(e){n.sortMoveTopEvent(e,r)}}}):Nv(i),M&&!l?e(t,{props:{mode:"text",icon:"vxe-icon-bottom",title:Pv("vxe.custom.setting.putBottomTitle"),disabled:o>=a.length-1},on:{click(e){n.sortMoveBottomEvent(e,r)}}}):Nv(i)]:[]):Nv(i),!l&&S?e("div",{class:"vxe-table-custom--fixed-option"},t?[e(t,{props:{mode:"text",icon:"left"===r.renderFixed?Lv().TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE:Lv().TOOLBAR_TOOLS_FIXED_LEFT,status:"left"===r.renderFixed?"primary":"",disabled:p||F&&!r.renderFixed,title:Pv("left"===r.renderFixed?"vxe.toolbar.cancelFixed":"vxe.toolbar.fixedLeft")},on:{click:({$event:e})=>{n.changeFixedOption(r,"left",e)}}}),e(t,{props:{mode:"text",icon:"right"===r.renderFixed?Lv().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE:Lv().TOOLBAR_TOOLS_FIXED_RIGHT,status:"right"===r.renderFixed?"primary":"",disabled:p||F&&!r.renderFixed,title:Pv("right"===r.renderFixed?"vxe.toolbar.cancelFixed":"vxe.toolbar.fixedRight")},on:{click:({$event:e})=>{n.changeFixedOption(r,"right",e)}}})]:[]):Nv(i)]))}}),e("div",{ref:"refElem",key:"simple",class:["vxe-table-custom-wrapper",`placement--${T}`,{[`size--${R}`]:R,"is--active":c.visible}],style:b},c.visible?[e("div",{ref:"refBodyWrapperElem",class:"vxe-table-custom-simple--body-wrapper"},[!u&&(h||d)&&i.getPivotTableAggregateSimplePanel?e(i.getPivotTableAggregateSimplePanel(),{props:{customStore:c}}):Nv(i),e("div",{ref:"refCustomBodyElem",class:"vxe-table-custom--handle-wrapper"},[e("div",{class:"vxe-table-custom--header"},L?i.callSlot(L,G,e):[e("ul",{class:"vxe-table-custom--panel-list"},[e("li",{class:"vxe-table-custom--option"},[C?e("div",{class:["vxe-table-custom--checkbox-option",{"is--checked":W,"is--indeterminate":q}],attrs:{title:Pv("vxe.table.allTitle")},on:{click:n.allOptionEvent}},[e("span",{class:["vxe-checkbox--icon",q?Lv().TABLE_CHECKBOX_INDETERMINATE:W?Lv().TABLE_CHECKBOX_CHECKED:Lv().TABLE_CHECKBOX_UNCHECKED]}),e("span",{class:"vxe-checkbox--label"},Pv("vxe.toolbar.customAll"))]):e("span",{class:"vxe-checkbox--label"},Pv("vxe.table.customTitle"))])])]),e("div",{class:"vxe-table-custom--body"},[N?e("div",{class:"vxe-table-custom--panel-top"},i.callSlot(N,G,e)):Nv(i),B?e("div",{class:"vxe-table-custom--panel-body"},i.callSlot(B,G,e)):e("transition-group",{class:"vxe-table-custom--panel-list",props:{name:m?"vxe-table-custom--list":"",tag:"ul"},on:H},z),j?e("div",{class:"vxe-table-custom--panel-bottom"},i.callSlot(j,G,e)):Nv(i)]),g.showFooter?e("div",{class:"vxe-table-custom--footer"},V?i.callSlot(V,G,e):[e("div",{class:"vxe-table-custom--footer-buttons"},[e(t,{props:{mode:"text",content:g.resetButtonText||Pv("vxe.table.customRestore"),disabled:!p},on:{click:n.resetCustomEvent}}),e(t,y?{props:{mode:"text",content:g.closeButtonText||Pv("vxe.table.customClose")},on:{click:n.cancelCloseEvent}}:{props:{mode:"text",content:g.resetButtonText||Pv("vxe.table.customCancel")},on:{click:n.cancelCustomEvent}}),y?Nv(i):e(t,{props:{mode:"text",status:"primary",content:g.confirmButtonText||Pv("vxe.table.customConfirm")},on:{click:n.confirmCustomEvent}})])]):null]),n.renderDragTip(e)])]:[])},renderPopupBodys(e){const t=ad.getComponent("VxeButton"),n=ad.getComponent("VxeNumberInput"),r=ad.getComponent("VxeRadioGroup"),i=this,o=i.$xeTable,a=o,s=o,{resizable:l}=a,{customColumnList:c}=s,u=o.computeCustomOpts,d=o.computeColumnDragOpts,{immediate:h,showSortDragButton:p,showSortMoveButton:f,showSortPutButton:m,allowVisible:g,allowSort:v,allowFixed:b,allowAlign:y,allowHeaderAlign:x,allowFooterAlign:w,allowResizable:C,allowGroup:_,allowValues:S,checkMethod:k,visibleMethod:E}=u,O=o.computeColumnOpts,T=o.computeResizableOpts,{minWidth:$,maxWidth:D}=T,M=o.computeIsMaxFixedColumn,{isCrossDrag:F,isPeerDrag:R}=d,I=[];return pc.eachTree(c,(a,s,c,u,d)=>{const T=!E||E({$table:o,column:a});if(T){let u=0,E=0;if(C){const e={$table:o,column:a,columnIndex:o.getColumnIndex(a),$columnIndex:o.getVMColumnIndex(a),_columnIndex:o.getVTColumnIndex(a),rowIndex:-1,_rowIndex:-1,$rowIndex:-1};$&&(u=pc.toNumber(pc.isFunction($)?$(e):$)),D&&(E=pc.toNumber(pc.isFunction(D)?D(e):D))}const T=a.renderVisible,A=a.halfVisible,P=md(a.getTitle(),1),L=a.children&&a.children.length,N=!!k&&!k({$table:o,column:a}),j=!T,B=!(!F&&!R)&&h||1===a.level,V=[{icon:Lv().TABLE_CUSTOM_ALIGN_LEFT,value:"left",title:Pv("vxe.custom.setting.anLeftTitle"),disabled:j},{icon:Lv().TABLE_CUSTOM_ALIGN_CENTER,value:"center",title:Pv("vxe.custom.setting.anCenterTitle"),disabled:j},{icon:Lv().TABLE_CUSTOM_ALIGN_RIGHT,value:"right",title:Pv("vxe.custom.setting.anRightTitle"),disabled:j}],z=[];g&&z.push(e("td",{key:"av",class:"vxe-table-custom-popup--column-td col--visible"},[e("div",{class:["vxe-table-custom--checkbox-option",{"is--checked":T,"is--indeterminate":A,"is--disabled":N}],attrs:{title:Pv("vxe.custom.setting.colVisible")},on:{click:e=>{N||i.changeCheckboxOption(a,e)}}},[e("span",{class:["vxe-checkbox--icon",A?Lv().TABLE_CHECKBOX_INDETERMINATE:T?Lv().TABLE_CHECKBOX_CHECKED:Lv().TABLE_CHECKBOX_UNCHECKED]})])])),z.push(e("td",{key:"at",class:"vxe-table-custom-popup--column-td col--name"},[e("div",{class:"vxe-table-custom-popup--name"},[v&&p||_||S?B||(_||S)&&!L?e("div",{class:["vxe-table-custom-popup--column-sort-btn",{"is--disabled":j}],attrs:{title:Pv("vxe.custom.setting.sortHelpTip")},on:j?{}:{mousedown:i.sortMousedownEvent,mouseup:i.sortMouseupEvent}},[e("i",{class:Lv().TABLE_CUSTOM_SORT})]):e("div",{class:"vxe-table-custom-popup--column-sort-placeholder"}):Nv(o),"html"===a.type?e("div",{key:"1",class:"vxe-table-custom-popup--title",domProps:{innerHTML:P}}):e("div",{key:"0",class:"vxe-table-custom-popup--title",attrs:{title:P}},P),B&&(f||m)?e("div",{class:"vxe-table-custom-popup--move-btn"},t?[f?e(t,{props:{mode:"text",icon:"vxe-icon-arrows-up",title:Pv("vxe.custom.setting.moveUpTitle"),disabled:s<=0},on:{click(e){i.sortMoveUpEvent(e,a)}}}):Nv(o),f?e(t,{props:{mode:"text",icon:"vxe-icon-arrows-down",title:Pv("vxe.custom.setting.moveDnTitle"),disabled:s>=c.length-1},on:{click(e){i.sortMoveDnEvent(e,a)}}}):Nv(o),m&&!d?e(t,{props:{mode:"text",icon:"vxe-icon-top",title:Pv("vxe.custom.setting.putTopTitle"),disabled:s<=0},on:{click(e){i.sortMoveTopEvent(e,a)}}}):Nv(o),m&&!d?e(t,{props:{mode:"text",icon:"vxe-icon-bottom",title:Pv("vxe.custom.setting.putBottomTitle"),disabled:s>=c.length-1},on:{click(e){i.sortMoveBottomEvent(e,a)}}}):Nv(o)]:[]):Nv(o)])])),C&&z.push(e("td",{key:"aw",class:"vxe-table-custom-popup--column-td col--resizable"},[a.children&&a.children.length||!(pc.isBoolean(a.resizable)?a.resizable:O.resizable||l)?e("span","-"):n?e(n,{props:{type:"integer",immediate:!1,disabled:j,value:a.renderResizeWidth,min:u||0,max:E||9999},on:{modelValue(e){const t=Math.max(0,Number(e));a.renderResizeWidth=t},change(){i.changeColumnWidth(a)}}}):Nv(o)])),b&&z.push(e("td",{key:"af",class:"vxe-table-custom-popup--column-td col--fixed"},d?[e("span","-")]:r?[e(t,{props:{icon:"left"===a.renderFixed?Lv().TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE:Lv().TOOLBAR_TOOLS_FIXED_LEFT,status:"left"===a.renderFixed?"primary":"",disabled:j||M&&!a.renderFixed,title:Pv("left"===a.renderFixed?"vxe.toolbar.cancelFixed":"vxe.toolbar.fixedLeft")},on:{click:({$event:e})=>{i.changeFixedOption(a,"left",e)}}}),e(t,{props:{icon:"right"===a.renderFixed?Lv().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE:Lv().TOOLBAR_TOOLS_FIXED_RIGHT,status:"right"===a.renderFixed?"primary":"",disabled:j||M&&!a.renderFixed,title:Pv("right"===a.renderFixed?"vxe.toolbar.cancelFixed":"vxe.toolbar.fixedRight")},on:{click:({$event:e})=>{i.changeFixedOption(a,"right",e)}}})]:[])),y&&z.push(e("td",{key:"aa",class:"vxe-table-custom-popup--column-td col--align"},r?[e(r,{props:{value:a.renderAlign||"left",type:"button",strict:!1,disabled:j,options:V},on:{change({value:e,$event:t}){i.changeAlignOption(a,e,"align","renderAlign","custom-align-change",t)}}})]:[])),x&&z.push(e("td",{key:"aha",class:"vxe-table-custom-popup--column-td col--header-align"},L?[e("span","-")]:r?[e(r,{props:{value:a.renderHeaderAlign||"left",type:"button",strict:!1,disabled:j,options:V},on:{change({value:e,$event:t}){i.changeAlignOption(a,e,"headerAlign","renderHeaderAlign","custom-header-align-change",t)}}})]:[])),w&&z.push(e("td",{key:"afa",class:"vxe-table-custom-popup--column-td col--footer-align"},L?[e("span","-")]:r?[e(r,{props:{value:a.renderFooterAlign||"left",type:"button",strict:!1,disabled:j,options:V},on:{change({value:e,$event:t}){i.changeAlignOption(a,e,"footerAlign","renderFooterAlign","custom-footer-align-change",t)}}})]:[])),I.push(e("tr",{key:a.id,attrs:{colid:a.id},class:[`vxe-table-custom-popup--row level--${a.level}`,{"is--group":L}],on:{dragstart:i.sortDragstartEvent,dragend:i.sortDragendEvent,dragover:i.sortDragoverEvent}},z))}}),I},renderPopupPanel(e){const t=ad.getComponent("VxeModal"),n=ad.getComponent("VxeDrawer"),r=ad.getComponent("VxeButton"),i=this,o=i,a=i.$xeTable,s=a,l=a,c=a.$xeGrid,u=a.$xeGantt,{customStore:d}=o,{treeConfig:h,rowGroupConfig:p,aggregateConfig:f}=s,{isCustomStatus:m,customColumnList:g}=l,v=a.computeSize,b=a.computeCustomOpts,y=a.computeAggregateOpts,{panePopupStyle:x}=d,{placement:w}=y,{mode:C,immediate:_,modalOptions:S,drawerOptions:k,allowVisible:E,allowFixed:O,allowAlign:T,allowHeaderAlign:$,allowFooterAlign:D,allowResizable:M}=b,F=a.computeColumnOpts,{maxFixedSize:R}=F,I=Object.assign({},S),A=Object.assign({},k),P=b.slots||{},L=P.header,N=P.top,j=P.bottom,B=P.default,V=P.footer,z=d.isAll,H=d.isIndeterminate,W="right"===w||"bottom"===w,q={$table:a,$grid:c,$gantt:u,columns:g,isAllChecked:z,isAllIndeterminate:H,isCustomStatus:m},G=[],Y=[];E&&(G.push(e("col",{key:"av",class:"vxe-table-custom-popup--column-col col--checkbox"})),Y.push(e("th",{key:"av",class:"vxe-table-custom-popup--column-th col--checkbox"},[e("div",{class:["vxe-table-custom--checkbox-option",{"is--checked":z,"is--indeterminate":H}],attrs:{title:Pv("vxe.table.allTitle")},on:{click:i.allOptionEvent}},[e("span",{class:["vxe-checkbox--icon",H?Lv().TABLE_CHECKBOX_INDETERMINATE:z?Lv().TABLE_CHECKBOX_CHECKED:Lv().TABLE_CHECKBOX_UNCHECKED]})])]))),G.push(e("col",{key:"at",class:"vxe-table-custom-popup--column-col col--title"})),Y.push(e("th",{key:"at",class:"vxe-table-custom-popup--column-th col--title"},Pv("vxe.custom.setting.colTitle"))),M&&(G.push(e("col",{key:"aw",class:"vxe-table-custom-popup--column-col col--width"})),Y.push(e("th",{key:"aw",class:"vxe-table-custom-popup--column-th col--width"},Pv("vxe.custom.setting.colResizable")))),O&&(G.push(e("col",{key:"af",class:"vxe-table-custom-popup--column-col col--fixed"})),Y.push(e("th",{key:"af",class:"vxe-table-custom-popup--column-th col--fixed"},Pv("vxe.custom.setting."+(R?"colFixedMax":"colFixed"),[R])))),T&&(G.push(e("col",{key:"aa",class:"vxe-table-custom-popup--column-col col--align"})),Y.push(e("th",{key:"aa",class:"vxe-table-custom-popup--column-th col--align"},Pv("vxe.custom.setting.colAlign")))),$&&(G.push(e("col",{key:"aha",class:"vxe-table-custom-popup--column-col col--header-align"})),Y.push(e("th",{key:"aha",class:"vxe-table-custom-popup--column-th col--header-align"},Pv("vxe.custom.setting.colHeadAlign")))),D&&(G.push(e("col",{key:"afa",class:"vxe-table-custom-popup--column-col col--footer-align"})),Y.push(e("th",{key:"afa",class:"vxe-table-custom-popup--column-th col--footer-align"},Pv("vxe.custom.setting.colFootAlign"))));const U={default:()=>e("div",{ref:"refBodyWrapperElem",class:["vxe-table-custom-popup--body-wrapper",`agg-layout--${w}`,{[`size--${v}`]:v}],style:x},B?a.callSlot(B,q,e):[W||h||!f&&!p||!a.getPivotTableAggregatePopupPanel?Nv(a):e(a.getPivotTableAggregatePopupPanel(),{props:{customStore:d}}),e("div",{ref:"refCustomBodyElem",class:"vxe-table-custom-popup--handle-wrapper"},[N?e("div",{class:"vxe-table-custom-popup--table-top"},a.callSlot(N,q,e)):Nv(a),e("div",{class:"vxe-table-custom-popup--table-wrapper"},[e("table",{},[e("colgroup",{},G),e("thead",{},[e("tr",{},Y)]),e("transition-group",{class:"vxe-table-custom--panel-list",props:{tag:"tbody",name:"vxe-table-custom--list"}},i.renderPopupBodys(e))])]),j?e("div",{class:"vxe-table-custom-popup--table-bottom"},a.callSlot(j,q,e)):Nv(a),i.renderDragTip(e)]),W&&!h&&(f||p)&&a.getPivotTableAggregatePopupPanel?e(a.getPivotTableAggregatePopupPanel(),{props:{customStore:d}}):Nv(a)]),footer:()=>V?a.callSlot(V,q,e):e("div",{class:"vxe-table-custom-popup--footer"},[e(r,{props:{content:b.resetButtonText||Pv("vxe.custom.cstmRestore"),disabled:!m},on:{click:i.resetCustomEvent}}),e(r,_?{props:{status:"primary",content:b.resetButtonText||Pv("vxe.table.customClose")},on:{click:i.cancelCloseEvent}}:{props:{content:b.resetButtonText||Pv("vxe.custom.cstmCancel")},on:{click:i.cancelCustomEvent}}),_?Nv(a):e(r,{props:{status:"primary",content:b.confirmButtonText||Pv("vxe.custom.cstmConfirm")},on:{click:i.confirmCustomEvent}})])};return L&&(U.header=()=>a.callSlot(L,q,e)),"drawer"===C?n?e(n,{key:"drawer",props:{className:["vxe-table-custom-drawer-wrapper","vxe-table--ignore-clear",A.className||""].join(" "),value:d.visible,title:A.title||Pv("vxe.custom.cstmTitle"),width:A.width||Math.min(880,Math.floor(.6*document.documentElement.clientWidth)),position:A.position,resize:!!A.resize,escClosable:!!A.escClosable,maskClosable:!!A.maskClosable,destroyOnClose:!0,showFooter:!0},on:{input(e){d.visible=e}},scopedSlots:U}):Nv(i):t?e(t,{key:"modal",props:{className:["vxe-table-custom-modal-wrapper","vxe-table--ignore-clear",I.className||""].join(" "),value:d.visible,title:I.title||Pv("vxe.custom.cstmTitle"),width:I.width||Math.min(1e3,document.documentElement.clientWidth),minWidth:I.minWidth||800,height:I.height||Math.min(680,document.documentElement.clientHeight),minHeight:I.minHeight||400,showZoom:I.showZoom,showMaximize:I.showMaximize,showMinimize:I.showMinimize,mask:I.mask,lockView:I.lockView,resize:I.resize,transfer:I.transfer,escClosable:!!I.escClosable,maskClosable:!!I.maskClosable,destroyOnClose:!0,showFooter:!0},on:{input(e){d.visible=e}},scopedSlots:U}):Nv(i)},renderVN(e){const t=this,n=t.$xeTable,r=n.computeCustomOpts;return["modal","drawer","popup"].includes(`${r.mode}`)?t.renderPopupPanel(e):t.renderSimplePanel(e)}},render(e){return this.renderVN(e)}},{warnLog:zv}=Ih("table"),{getI18n:Hv,getIcon:Wv,renderer:qv,globalMixins:Gv,renderEmptyElement:Yv}=ad;function Uv(e,t,n){const r=e,{filterStore:i}=r,{column:o}=i;o&&o.filters&&o.filters.forEach(e=>{e._checked=n,e.checked=n}),i.isAllSelected=n,i.isIndeterminate=!1}const Kv={name:"VxeTableFilterPanel",mixins:[Gv.sizeMixin],props:{filterStore:{type:Object,default:()=>({})}},inject:{$xeTable:{default:null}},computed:Object.assign(Object.assign({},{}),{computeHasCheckOption(){const e=this,t=e,{filterStore:n}=t,{column:r}=n;return r&&r.filters&&r.filters.some(e=>e.checked)}}),mounted(){const e=this,t=e.$xeTable,n=t.computeFilterOpts,{transfer:r}=n,i=e.$refs.refElem;r&&i&&document.body.appendChild(i)},beforeDestroy(){const e=this,t=e.$refs.refElem;t&&t.parentNode&&t.parentNode.removeChild(t)},methods:{changeRadioOption(e,t,n){const r=this,i=r.$xeTable;i.handleFilterChangeRadioOption(e,t,n)},changeMultipleOption(e,t,n){const r=this,i=r.$xeTable;n._checked=t,i.checkFilterOptions()},changeAllOption(e,t){const n=this,r=n,{filterStore:i}=r,{column:o}=i;o&&o.filterMultiple?Uv(n,e,t):n.resetFilter(e)},changeOption(e,t,n){const r=this,i=r.$xeTable;i.handleFilterChangeOption(e,t,n)},confirmFilter(e){const t=this,n=t,r=t.$xeTable,{filterStore:i}=n;e||zv("vxe.error.delFunc",["confirmFilter","saveFilterPanelByEvent"]),r.handleFilterConfirmFilter(e||new Event("click"),i.column||null)},resetFilter(e){const t=this,n=t,r=t.$xeTable,{filterStore:i}=n;r.handleFilterResetFilter(e,i.column||null)},renderOptions(e,t,n){const r=this,i=r,o=r.$xeTable,a=o,{filterStore:s}=i,{column:l,maxHeight:c}=s;if(!l)return[];const{filterMultiple:u,filters:d,slots:h}=l,p=d||[],f=h?h.filter:null,m=Object.assign({},a._currFilterParams,{option:p[0],$panel:r,$table:o}),g=n?n.renderTableFilter||n.renderFilter:null;if(f)return[e("div",{class:"vxe-table--filter-template",style:c?{maxHeight:lh(c)}:{}},o.callSlot(f,m,e))];if(t&&g)return[e("div",{class:"vxe-table--filter-template",style:c?{maxHeight:lh(c)}:{}},Bp(g.call(o,e,t,m)))];const v=u?s.isAllSelected:!p.some(e=>e._checked),b=u&&s.isIndeterminate;return[e("ul",{class:"vxe-table--filter-header"},[e("li",{class:["vxe-table--filter-option",{"is--checked":v,"is--indeterminate":b}],attrs:{title:Hv(u?"vxe.table.allTitle":"vxe.table.allFilter")},on:{click:e=>{r.changeAllOption(e,!s.isAllSelected)}}},(u?[e("span",{class:["vxe-checkbox--icon",b?Wv().TABLE_CHECKBOX_INDETERMINATE:v?Wv().TABLE_CHECKBOX_CHECKED:Wv().TABLE_CHECKBOX_UNCHECKED]})]:[]).concat([e("span",{class:"vxe-checkbox--label"},Hv("vxe.table.allFilter"))]))]),e("ul",{class:"vxe-table--filter-body",style:c?{maxHeight:lh(c)}:{}},p.map(t=>{const n=t._checked,i=!1;return e("li",{class:["vxe-table--filter-option",{"is--checked":n}],attrs:{title:t.label},on:{click:e=>{r.changeOption(e,!t._checked,t)}}},(u?[e("span",{class:["vxe-checkbox--icon",i?Wv().TABLE_CHECKBOX_INDETERMINATE:n?Wv().TABLE_CHECKBOX_CHECKED:Wv().TABLE_CHECKBOX_UNCHECKED]})]:[]).concat([e("span",{class:"vxe-checkbox--label"},md(t.label,1))]))}))]},renderFooter(e){const t=this,n=t,r=t.$xeTable,{filterStore:i}=n,{column:o}=i;if(!o)return[];const a=r.computeFilterOpts,s=r.computeRendererOpts,l=t.computeHasCheckOption,{filterRender:c,filterMultiple:u}=o,d=c&&ld(c)&&c.name?s[c.name]||qv.get(c.name):null,h=!l&&!i.isAllSelected&&!i.isIndeterminate;return u&&(!d||!1!==d.showTableFilterFooter&&!1!==d.showFilterFooter&&!1!==d.isFooter)?[e("div",{class:"vxe-table--filter-footer"},[e("button",{class:{"is--disabled":h},attrs:{disabled:h},on:{click:t.confirmFilter}},a.confirmButtonText||Hv("vxe.table.confirmFilter")),e("button",{on:{click:t.resetFilter}},a.resetButtonText||Hv("vxe.table.resetFilter"))])]:[]},renderVN(e){const t=this,n=t,r=t.$xeTable,i=r,{filterStore:o}=n,{visible:a,column:s}=o;if(!s)return Yv(t);const l=r.computeRendererOpts,c=s?s.filterRender:null,u=c&&ld(c)&&c.name?l[c.name]||qv.get(c.name):null,d=u?u.tableFilterClassName||u.filterClassName:"",h=Object.assign({},i._currFilterParams,{$panel:t,$table:r}),p=r,f=t.computeSize,m=r.computeFilterOpts,{destroyOnClose:g,className:v}=m;return e("div",{ref:"refElem",class:["vxe-table--filter-wrapper","filter--prevent-default",v,u&&u.className?u.className:"",eh(d,h),{[`size--${f}`]:f,"is--animat":p.animat,"is--multiple":s.filterMultiple,"is--active":a}],style:o.style},o.visible&&(!g||a)&&s?t.renderOptions(e,c,u).concat(t.renderFooter(e)):[])}},render(e){return this.renderVN(e)}},{errLog:Xv}=Ih("table"),{getI18n:Zv,getIcon:Qv,globalMixins:Jv,renderEmptyElement:eb}=ad,tb={name:"VxeTableImportPanel",mixins:[Jv.sizeMixin],props:{defaultOptions:{type:Object,default:()=>({})},storeData:{type:Object,default:()=>({})}},inject:{$xeTable:{default:null}},data(){const e={loading:!1};return{reactData:e}},computed:Object.assign(Object.assign({},{}),{computeSelectName(){const e=this,t=e,{storeData:n}=t;return`${n.filename}.${n.type}`},computeHasFile(){const e=this,t=e,{storeData:n}=t;return n.file&&n.type},computeParseTypeLabel(){const e=this,t=e,{storeData:n}=t,{type:r,typeList:i}=n;if(r){const e=pc.find(i,e=>r===e.value);return`${e?e.label:"*.*"}`}return`*.${i.map(e=>e.value).join(", *.")}`}}),created(){const e=this,t=ad.getComponent("VxeModal"),n=ad.getComponent("VxeButton"),r=ad.getComponent("VxeSelect");e.$nextTick(()=>{t||Xv("vxe.error.reqComp",["vxe-modal"]),n||Xv("vxe.error.reqComp",["vxe-button"]),r||Xv("vxe.error.reqComp",["vxe-select"])})},methods:{clearFileEvent(){Object.assign(this.storeData,{filename:"",sheetName:"",type:""})},selectFileEvent(){const e=this,t=e,n=e.$xeTable,{storeData:r,defaultOptions:i}=t;n.readFile(i).then(e=>{const{file:t}=e;Object.assign(r,ud(t),{file:t})}).catch(()=>{})},showEvent(){const e=this;e.$nextTick(()=>{const t=e.$refs.fileBtn;t&&t.focus()})},cancelEvent(){const e=this,t=e,{storeData:n}=t;n.visible=!1},importEvent(){const e=this,t=e,n=e.reactData,r=e.$xeTable,{storeData:i,defaultOptions:o}=t,a=r.computeImportOpts;n.loading=!0,r.importByFile(i.file,Object.assign({},a,o)).then(()=>{n.loading=!1,i.visible=!1}).catch(()=>{n.loading=!1})},renderVN(e){const t=this,n=t,r=t.reactData,i=t.$xeTable,o=i.$xeGrid,a=i.$xeGantt,{defaultOptions:s,storeData:l}=n,c=t.computeSelectName,u=t.computeHasFile,d=i.computeImportOpts,h=t.computeParseTypeLabel,p=d.modelOptions||{},f=d.settingOptions||{},m=s.slots||{},g=m.top,v=m.bottom,b=m.default,y=m.footer;return e("vxe-modal",{ref:"modal",props:{id:"VXE_IMPORT_MODAL",value:l.visible,title:p.title||Zv("vxe.import.impTitle"),width:p.width||540,height:p.height,minWidth:p.minWidth||360,minHeight:p.minHeight||240,mask:bd(p.mask,!0),lockView:bd(p.lockView,!0),showFooter:!0,escClosable:!0,maskClosable:!0,position:p.position,fullscreen:p.fullscreen,remember:p.remember,showMinimize:p.showMinimize,showMaximize:bd(p.showMaximize,!0),resize:bd(p.resize,!0),loading:r.loading},on:{input(e){l.visible=e},show:t.showEvent},scopedSlots:{default:()=>{const n={$table:i,$grid:o,$gantt:a,options:s,params:s.params};return e("div",{class:"vxe-table-export--panel"},[g?e("div",{class:"vxe-table-export--panel-top"},i.callSlot(g,n,e)):eb(i),e("div",{class:"vxe-table-export--panel-body"},b?i.callSlot(b,n,e):[e("table",{class:"vxe-table-export--panel-table",attrs:{cellspacing:0,cellpadding:0,border:0}},[e("tbody",[e("tr",[e("td",Zv("vxe.import.impFile")),e("td",[u?e("div",{class:"vxe-table-export--selected--file",attrs:{title:c}},[e("span",c),e("i",{class:Qv().INPUT_CLEAR,on:{click:t.clearFileEvent}})]):e("button",{ref:"fileBtn",class:"vxe-table-export--select--file",attrs:{type:"button"},on:{click:t.selectFileEvent}},Zv("vxe.import.impSelect"))])]),e("tr",[e("td",Zv("vxe.import.impType")),e("td",h)]),!1===f.showMode?eb(i):e("tr",[e("td",Zv("vxe.import.impMode")),e("td",[e("vxe-select",{props:{value:s.mode,options:l.modeList},on:{modelValue(e){s.mode=e}}})])])])])]),v?e("div",{class:"vxe-table-export--panel-bottom"},i.callSlot(v,n,e)):eb(i)])},footer:()=>{const n={$table:i,$grid:o,$gantt:a,options:s,params:s.params};return e("div",{class:"vxe-table-export--panel-footer"},y?i.callSlot(y,n,e):[e("div",{class:"vxe-table-export--panel-btns"},[e("vxe-button",{on:{click:t.cancelEvent}},Zv("vxe.import.impCancel")),e("vxe-button",{props:{status:"primary",disabled:!u||r.loading},on:{click:t.importEvent}},Zv("vxe.import.impConfirm"))])])}}})}},render(e){return this.renderVN(e)}},{errLog:nb}=Ih("table"),{getI18n:rb,getIcon:ib,globalMixins:ob,renderEmptyElement:ab}=ad,sb={name:"VxeTableExportPanel",mixins:[ob.sizeMixin],props:{defaultOptions:{type:Object,default:()=>({})},storeData:{type:Object,default:()=>({})}},inject:{$xeTable:{default:null}},data(){const e={isAll:!1,isIndeterminate:!1,loading:!1};return{reactData:e}},computed:Object.assign(Object.assign({},{}),{computeColWidthModeOptions(){return[{value:"",label:rb("vxe.export.wdModes.default")},{value:"auto",label:rb("vxe.export.wdModes.auto")},{value:"scale",label:rb("vxe.export.wdModes.scale")}]},computeCheckedAll(){const e=this,t=e,{storeData:n}=t;return n.columns.every(e=>e.checked)},computeShowSheet(){const e=this,t=e,{defaultOptions:n}=t;return["html","xml","xlsx","pdf"].indexOf(n.type)>-1},computeSupportMerge(){const e=this,t=e,{storeData:n,defaultOptions:r}=t;return!r.original&&"current"===r.mode&&(n.isPrint||["html","xlsx"].indexOf(r.type)>-1)},computeSupportStyle(){const e=this,t=e,{defaultOptions:n}=t;return!n.original&&["xlsx"].indexOf(n.type)>-1}}),created(){const e=this,t=ad.getComponent("VxeModal"),n=ad.getComponent("VxeButton"),r=ad.getComponent("VxeSelect"),i=ad.getComponent("VxeInput"),o=ad.getComponent("VxeCheckbox");e.$nextTick(()=>{t||nb("vxe.error.reqComp",["vxe-modal"]),n||nb("vxe.error.reqComp",["vxe-button"]),r||nb("vxe.error.reqComp",["vxe-select"]),i||nb("vxe.error.reqComp",["vxe-input"]),o||nb("vxe.error.reqComp",["vxe-checkbox"])})},methods:{changeOption(e){const t=this,n=!e.checked;pc.eachTree([e],e=>{e.checked=n,e.halfChecked=!1}),t.handleOptionCheck(e),t.checkStatus()},handleOptionCheck(e){const t=this,n=t,{storeData:r}=n,i=pc.findTree(r.columns,t=>t===e);if(i&&i.parent){const{parent:e}=i;e.children&&e.children.length&&(e.checked=e.children.every(e=>e.checked),e.halfChecked=!e.checked&&e.children.some(e=>e.checked||e.halfChecked),t.handleOptionCheck(e))}},checkStatus(){const e=this,t=e,n=e.reactData,{storeData:r}=t,i=r.columns;n.isAll=i.every(e=>e.disabled||e.checked),n.isIndeterminate=!n.isAll&&i.some(e=>!e.disabled&&(e.checked||e.halfChecked))},allColumnEvent(){const e=this,t=e,n=e.reactData,{storeData:r}=t,i=!n.isAll;pc.eachTree(r.columns,e=>{e.disabled||(e.checked=i,e.halfChecked=!1)}),n.isAll=i,e.checkStatus()},showEvent(){const e=this;e.$nextTick(()=>{const t=e.$refs.filename||e.$refs.sheetname||e.$refs.confirmBtn;t&&t.focus()}),e.checkStatus()},getExportOption(){const e=this,t=e,{storeData:n,defaultOptions:r}=t,{hasMerge:i,columns:o}=n,a=e.computeCheckedAll,s=e.computeSupportMerge,l=pc.searchTree(o,e=>e.checked,{children:"children",mapChildren:"_children",original:!0});return Object.assign({},r,{_columns:l,isMerge:!!(i&&s&&a)&&r.isMerge})},cancelEvent(){const e=this,t=e,{storeData:n}=t;n.visible=!1},confirmEvent(){const e=this,t=e,{storeData:n}=t;n.isPrint?e.printEvent():e.exportEvent()},printEvent(){const e=this,t=e,n=e.$xeTable,{storeData:r}=t;r.visible=!1,n.print(Object.assign({},n.printOpts,e.getExportOption()))},exportEvent(){const e=this,t=e,n=e.reactData,r=e.$xeTable,{storeData:i}=t,o=r.exportOpts;n.loading=!0,r.exportData(Object.assign({},o,e.getExportOption())).then(()=>{n.loading=!1,i.visible=!1}).catch(()=>{n.loading=!1})},renderVN(e){const t=ad.getComponent("VxeModal"),n=ad.getComponent("VxeButton"),r=ad.getComponent("VxeSelect"),i=ad.getComponent("VxeInput"),o=ad.getComponent("VxeCheckbox"),a=this,s=a,l=a.reactData,c=a.$xeTable,u=c.$xeGrid,d=c.$xeGantt,{defaultOptions:h,storeData:p}=s,{isAll:f,isIndeterminate:m}=l,{hasTree:g,hasRowGroup:v,hasMerge:b,isPrint:y,hasColgroup:x,columns:w}=p,{isHeader:C}=h,_=[],S=c.computeExportOpts,k=c.computePrintOpts,E=(y?k:S).modelOptions||{},O=(y?k:S).settingOptions||{},T=a.computeCheckedAll,$=a.computeShowSheet,D=a.computeSupportMerge,M=a.computeSupportStyle,F=a.computeColWidthModeOptions,R=h.slots||{},I=R.top,A=R.bottom,P=R.default,L=R.footer,N=R.parameter;return pc.eachTree(w,t=>{const n=md(t.getTitle(),1),r=t.children&&t.children.length,i=t.checked,o=t.halfChecked,s="html"===t.type;_.push(e("li",{class:["vxe-table-export--panel-column-option",`level--${t.level}`,{"is--group":r,"is--checked":i,"is--indeterminate":o,"is--disabled":t.disabled}],attrs:{title:n},on:{click:()=>{t.disabled||a.changeOption(t)}}},[e("span",{class:["vxe-checkbox--icon",o?ib().TABLE_CHECKBOX_INDETERMINATE:i?ib().TABLE_CHECKBOX_CHECKED:ib().TABLE_CHECKBOX_UNCHECKED]}),s?e("span",{key:"1",class:"vxe-checkbox--label",domProps:{innerHTML:n}}):e("span",{key:"0",class:"vxe-checkbox--label"},n)]))}),t?e(t,{ref:"modal",props:{id:"VXE_EXPORT_MODAL",value:p.visible,title:E.title||rb(y?"vxe.export.printTitle":"vxe.export.expTitle"),width:E.width||660,height:E.height,minWidth:E.minWidth||500,minHeight:E.minHeight||400,mask:bd(E.mask,!0),lockView:bd(E.lockView,!0),showFooter:!0,escClosable:!0,maskClosable:!0,position:E.position,fullscreen:E.fullscreen,remember:E.remember,showMinimize:E.showMinimize,showMaximize:bd(E.showMaximize,!0),resize:bd(E.resize,!0),loading:l.loading},on:{input(e){p.visible=e},show:a.showEvent},scopedSlots:{default(){const t={$table:c,$grid:u,$gantt:d,options:h,columns:w,params:h.params},n="empty"===h.mode;return e("div",{class:"vxe-table-export--panel"},[I?e("div",{class:"vxe-table-export--panel-top"},c.callSlot(I,t,e)):ab(c),e("div",{class:"vxe-table-export--panel-body"},P?c.callSlot(P,t,e):[e("table",{attrs:{class:"vxe-table-export--panel-table",cellspacing:0,cellpadding:0,border:0}},[e("tbody",[[y||!1===O.showFileName?ab(c):e("tr",[e("td",rb("vxe.export.expName")),e("td",[i?e(i,{ref:"filename",props:{value:h.filename,type:"text",clearable:!0,placeholder:rb("vxe.export.expNamePlaceholder")},on:{modelValue(e){h.filename=e}}}):ab(c)])]),y||!1===O.showType?ab(c):e("tr",[e("td",rb("vxe.export.expType")),e("td",[e("vxe-select",{props:{value:h.type,options:p.typeList},on:{modelValue(e){h.type=e}}})])]),(y||$)&&!1!==O.showSheet?e("tr",[e("td",rb("vxe.export.expSheetName")),e("td",[i?e(i,{ref:"sheetname",props:{value:h.sheetName,type:"text",clearable:!0,placeholder:rb("vxe.export.expSheetNamePlaceholder")},on:{modelValue(e){h.sheetName=e}}}):ab(c)])]):ab(c),!1===O.showMode?ab(c):e("tr",[e("td",rb("vxe.export.expMode")),e("td",[e(r,{props:{value:h.mode,options:p.modeList},on:{modelValue(e){h.mode=e}}})])]),!1===O.showColumn?ab(c):e("tr",[e("td",[rb("vxe.export.expColumn")]),e("td",[e("div",{class:"vxe-table-export--panel-column"},[e("ul",{class:"vxe-table-export--panel-column-header"},[e("li",{class:["vxe-table-export--panel-column-option",{"is--checked":f,"is--indeterminate":m}],attrs:{title:rb("vxe.table.allTitle")},on:{click:a.allColumnEvent}},[e("span",{class:["vxe-checkbox--icon",m?ib().TABLE_CHECKBOX_INDETERMINATE:f?ib().TABLE_CHECKBOX_CHECKED:ib().TABLE_CHECKBOX_UNCHECKED]}),e("span",{class:"vxe-checkbox--label"},rb("vxe.export.expCurrentColumn"))])]),e("ul",{class:"vxe-table-export--panel-column-body"},_)])])]),y&&!1!==O.showWidthMode?e("tr",[e("td",rb("vxe.export.widthMode")),e("td",[r?e(r,{props:{value:h.widthMode,options:F},on:{modelValue(e){h.widthMode=e}}}):ab(c)])]):ab(c),!1===O.showParameter?ab(c):e("tr",[e("td",rb("vxe.export.expOpts")),e("td",N?[e("div",{class:"vxe-table-export--panel-option-row"},c.callSlot(N,t,e))]:[e("div",{class:"vxe-table-export--panel-option-row"},o?[e(o,{props:{value:n||C,disabled:n,title:rb("vxe.export.expHeaderTitle"),content:rb("vxe.export.expOptHeader")},on:{input(e){h.isHeader=e}}}),e(o,{props:{value:h.isFooter,disabled:!p.hasFooter,title:rb("vxe.export.expFooterTitle"),content:rb("vxe.export.expOptFooter")},on:{input(e){h.isFooter=e}}}),e(o,{props:{value:!!C&&h.isTitle,disabled:!C,title:rb("vxe.export.expTitleTitle"),content:rb("vxe.export.expOptTitle")},on:{input(e){h.isTitle=e}}}),e(o,{props:{value:!!(C&&x&&D)&&h.isColgroup,disabled:!C||!x||!D,title:rb("vxe.export.expColgroupTitle"),content:rb("vxe.export.expOptColgroup")},on:{input(e){h.isColgroup=e}}})]:[]),e("div",{class:"vxe-table-export--panel-option-row"},o?[e(o,{props:{value:!n&&h.original,disabled:n,title:rb("vxe.export.expOriginalTitle"),content:rb("vxe.export.expOptOriginal")},on:{input(e){h.original=e}}}),e(o,{props:{value:!!(b&&D&&T)&&h.isMerge,disabled:n||!b||!D||!T,title:rb("vxe.export.expMergeTitle"),content:rb("vxe.export.expOptMerge")},on:{input(e){h.isMerge=e}}}),y?ab(c):e(o,{props:{value:!!M&&h.useStyle,disabled:!M,title:rb("vxe.export.expUseStyleTitle"),content:rb("vxe.export.expOptUseStyle")},on:{input(e){h.useStyle=e}}})]:[]),e("div",{class:"vxe-table-export--panel-option-row"},o?[e(o,{props:{value:!!g&&h.isTreeAllExpanded,disabled:n||!g,title:rb("vxe.export.expTreeAllExpandTitle"),content:rb("vxe.export.expOptTreeAllExpand")},on:{input(e){h.isTreeAllExpanded=e}}}),e(o,{props:{value:!!v&&h.isRowGroupAllExpanded,disabled:n||!v,title:rb("vxe.export.expRowGroupAllExpandTitle"),content:rb("vxe.export.expOptRowGroupAllExpand")},on:{input(e){h.isRowGroupAllExpanded=e}}})]:[])])])]])])]),A?e("div",{class:"vxe-table-export--panel-bottom"},c.callSlot(A,t,e)):ab(c)])},footer(){const t={$table:c,$grid:u,$gantt:d,options:h,columns:w,params:h.params};return e("div",{class:"vxe-table-export--panel-footer"},L?c.callSlot(L,t,e):[e("div",{class:"vxe-table-export--panel-btns"},[n?e(n,{props:{content:rb("vxe.export.expCancel")},on:{click:a.cancelEvent}}):ab(c),n?e(n,{ref:"confirmBtn",props:{status:"primary",content:rb(y?"vxe.export.expPrint":"vxe.export.expConfirm")},on:{click:a.confirmEvent}}):ab(c)])])}}}):ab(c)}},render(e){return this.renderVN(e)}},{getIcon:lb,getI18n:cb,renderEmptyElement:ub}=ad,db={name:"VxeTableMenuPanel",inject:{$xeTable:{default:null}},computed:Object.assign({},{}),mounted(){const e=this,t=e.$xeTable,n=t.computeMenuOpts,{transfer:r}=n,i=e.$refs.refElem;r&&i&&document.body.appendChild(i)},beforeDestroy(){const e=this,t=e.$refs.refElem;t&&t.parentNode&&t.parentNode.removeChild(t)},methods:{renderVN(e){const t=this,n=t.$xeTable,r=n,{ctxMenuStore:i}=r,o=n.computeMenuOpts,{destroyOnClose:a,className:s}=o,{visible:l,list:c}=i;return e("div",{ref:"refElem",class:["vxe-table--context-menu-wrapper",s,{"is--visible":l}],style:i.style},!a||l?c.map((t,r)=>t.every(e=>!1===e.visible)?ub(n):e("ul",{class:"vxe-table--context-menu-group-wrapper",key:r},t.map((t,o)=>{const{children:a,loading:s}=t,l=a&&a.some(e=>!1!==e.visible),c=Object.assign({},t.prefixConfig),u=c.icon||t.prefixIcon,d=Object.assign({},t.suffixConfig),h=d.icon||t.suffixIcon,p=fd(t.name);return!1===t.visible?ub(n):e("li",{class:["vxe-table--context-menu--option",t.className,{"link--loading":s,"link--disabled":t.disabled,"link--active":t===i.selected}],key:`${r}_${o}`},[e("a",{class:"vxe-context-menu--link",on:{click(e){n.ctxMenuLinkEvent(e,t)},mouseover(e){n.ctxMenuMouseoverEvent(e,t)},mouseout(e){n.ctxMenuMouseoutEvent(e,t)}}},[e("div",{class:["vxe-context-menu--link-prefix",c.className||""]},[s?e("span",{class:lb("TABLE_MENU_OPTION_LOADING")}):u&&pc.isFunction(u)?e("span",{},Bp(u.call(n,{}))):e("span",{},[e("i",{class:u})]),c.content?e("span",{},`${c.content}`):ub(n)]),e("span",{class:"vxe-context-menu--link-content",attrs:{title:p}},s?cb("vxe.table.menuLoading"):p),e("div",{class:["vxe-context-menu--link-suffix",d.className||""]},[h&&pc.isFunction(h)?e("span",{},Bp(h.call(n,{}))):e("i",{class:h||(l?lb().TABLE_MENU_OPTIONS:"")}),d.content?e("span",`${d.content}`):ub(n)])]),l&&a?e("ul",{class:["vxe-table--context-menu-clild-wrapper",{"is--show":t===i.selected&&i.showChild}]},a.map((a,s)=>{const{loading:l}=a,c=Object.assign({},a.prefixConfig),u=c.icon||a.prefixIcon,d=Object.assign({},a.suffixConfig),h=d.icon||a.suffixIcon,p=fd(a.name);return!1===a.visible?null:e("li",{class:["vxe-table--context-menu--option",a.className,{"link--loading":l,"link--disabled":a.disabled,"link--active":a===i.selectChild}],key:`${r}_${o}_${s}`},[e("a",{class:"vxe-context-menu--link",on:{click(e){n.ctxMenuLinkEvent(e,a)},mouseover(e){n.ctxMenuMouseoverEvent(e,t,a)},mouseout(e){n.ctxMenuMouseoutEvent(e,t)}}},[e("div",{class:["vxe-context-menu--link-prefix",c.className||""]},[a.loading?e("span",{class:lb("TABLE_MENU_OPTION_LOADING")}):u&&pc.isFunction(u)?e("span",{},Bp(u({}))):e("span",{},[e("i",{class:u})]),c.content?e("span",`${c.content}`):ub(n)]),e("span",{class:"vxe-context-menu--link-content",attrs:{title:p}},l?cb("vxe.table.menuLoading"):p),e("div",{class:["vxe-context-menu--link-suffix",d.className||""]},[h&&pc.isFunction(h)?e("span",{},Bp(h.call(n,{}))):e("i",{class:h}),d.content?e("span",`${d.content}`):ub(n)])])])})):null])}))):[])}},render(e){return this.renderVN(e)}},{renderer:hb}=ad,pb="table";function fb(e){const t=e.$xeGrid,n=e.$xeGantt,r=e,i=e,o=t||n,{filterStore:a}=r,{elemStore:s}=i,{column:l,targetEl:c}=a;if(!l)return e.$nextTick();const u=e.$refs.refElem,d=e.computeFilterOpts,h=e.computeRendererOpts,{maxHeight:p,transfer:f,zIndex:m}=d,g=l?l.filterRender:null,v=g&&ld(g)&&g.name?h[g.name]||hb.get(g.name):null,b=Ep(s["main-header-scroll"]);if(!b)return e.$nextTick();const y=e.$refs.refTableFilter,x=y?y.$el:null;if(!x)return e.$nextTick();const w=x.querySelector(".vxe-table--filter-header"),C=x.querySelector(".vxe-table--filter-footer"),_=()=>{let t=c;if(!c){const e=Ep(s[`${l.fixed||"main"}-header-wrapper`]||s["main-header-wrapper"]),n=e?e.querySelector(`.vxe-header--column.${l.id}`):null;n&&(t=n)}if(!t)return e.$nextTick();const n=t.getBoundingClientRect(),r=u.getBoundingClientRect();let i=0,d=0,h=0,g={};if(f){const e=Dh(t,x,{defaultPlacement:"bottom",isMinWidth:!1,teleportTo:f});g=e.style}else{const e=x.offsetWidth,a=c?e/2:(e-l.renderWidth)/2;if(h=Math.max(40,u.clientHeight-d-(w?w.clientHeight:0)-(C?C.clientHeight:0)-14),i=n.left-r.left-a,d=n.top-r.top+t.clientHeight,i<1?i=1:i>u.clientWidth-e-1&&(i=u.clientWidth-e-1),o){const e=o.$refs.refElem;if(e){const t=e.getBoundingClientRect();d+=r.top-t.top}}g={top:lh(d),left:lh(i)}}m&&(g.zIndex=m),a.style=g,v&&!v.tableFilterAutoHeight?h=0:p&&(h=p>h?h:p),a.maxHeight=h};return _(),e.$nextTick().then(()=>{_()})}const mb={methods:{_openFilter(e){const t=this,n=t.$xeGrid,r=t.$xeGantt,i=pp(this,e);if(i&&i.filters){const{elemStore:e}=this,{fixed:o,filters:a}=i;return t.scrollToColumn(i).then(()=>{const s=e[`${o||"main"}-header-wrapper`]||e["main-header-wrapper"];if(s){const e=s.querySelector(`.vxe-header--column.${i.id} .vxe-cell--filter`);if(e)kh(e,"click");else{const e=s.querySelector(`.vxe-header--column.${i.id}`);if(e){let s=null;a&&(s=a[0]);const l={$table:t,$grid:n,$gantt:r,$rowIndex:-1,column:i,columnIndex:t.getColumnIndex(i),$columnIndex:t.getVMColumnIndex(i),_columnIndex:t.getVTColumnIndex(i),firstFilterOption:s,fixed:o,source:pb,type:"header"};t.handleOpenFilterColumn(new Event("click"),null,e,i,l)}}}})}return t.$nextTick()},_setFilter(e,t,n){const r=this,i=r,{filterStore:o}=i,a=pp(r,e);if(a&&a.filters){if(a.filters=yp(t||[],a.id),n)return r.handleColumnConfirmFilter(a,null);o.visible&&r.handleFilterOptions(a)}return r.$nextTick()},checkFilterOptions(){const e=this,t=e,{filterStore:n}=t,{column:r}=n;if(r){const e=r.filters||[];n.isAllSelected=e.every(e=>e._checked),n.isIndeterminate=!n.isAllSelected&&e.some(e=>e._checked)}},handleOpenFilterColumn(e,t,n,r,i){const o=this,a=o,s=o,{initStore:l,filterStore:c}=a;c.column===r&&c.visible?c.visible=!1:(o.handleFilterOptions(r),s._currFilterParams=i,c.targetEl=t,c.style=null,c.visible=!0,l.filter=!0,o.$nextTick().then(()=>{fb(o)})),o.dispatchEvent("filter-visible",{column:r,field:r.field,property:r.field,filterList:o.getCheckedFilters(),visible:c.visible},e)},triggerFilterEvent(e,t,n){const r=this,i=r,{elemStore:o}=i,{fixed:a}=t,s=Ep(o[`${a||"main"}-header-wrapper`]||o["main-header-wrapper"]),l=e.currentTarget,c=s?s.querySelector(`.vxe-header--column.${t.id}`):null;r.handleOpenFilterColumn(e,l,c||l,t,n)},handleFilterChangeRadioOption(e,t,n){const r=this,i=r,{filterStore:o}=i,{column:a}=o;if(a){const i=a.filters||[];i.forEach(e=>{e._checked=!1}),n._checked=t,r.checkFilterOptions(),r.handleFilterConfirmFilter(e,a)}},handleFilterChangeMultipleOption(e,t,n){const r=this;n._checked=t,r.checkFilterOptions()},handleFilterChangeOption(e,t,n){const r=this,i=r,o=r,{filterStore:a}=i,{fullColumnIdData:s}=o;let l=a.column;if(!l){const e=s[n._colId];e&&(l=e.column,a.column=l)}l&&(l.filterMultiple?r.handleFilterChangeMultipleOption(e,t,n):r.handleFilterChangeRadioOption(e,t,n))},handleFilterConfirmFilter(e,t){const n=this;if(t){const r=t.filters||[];r.forEach(e=>{e.checked=e._checked}),n.confirmFilterEvent(e,t)}},_saveFilter(e){const t=this;if(e){const n=pp(t,e);t.handleFilterConfirmFilter(null,n)}return t.$nextTick()},_saveFilterByEvent(e,t){const n=this;if(t){const r=pp(n,t);n.handleFilterConfirmFilter(e,r)}return n.$nextTick()},_resetFilter(e){const t=this;if(e){const n=pp(t,e);t.handleFilterResetFilter(null,n)}return t.$nextTick()},_resetFilterByEvent(e,t){const n=this;if(t){const r=pp(n,t);n.handleFilterResetFilter(e,r)}return n.$nextTick()},_saveFilterPanel(){const e=this,t=e,{filterStore:n}=t;return e.handleFilterConfirmFilter(null,n.column||null),e.$nextTick()},_saveFilterPanelByEvent(e){const t=this,n=t,{filterStore:r}=n;return t.handleFilterConfirmFilter(e,r.column||null),t.$nextTick()},_resetFilterPanel(){const e=this,t=e,{filterStore:n}=t;return e.handleFilterResetFilter(null,n.column||null),e.$nextTick()},_resetFilterPanelByEvent(e){const t=this,n=t,{filterStore:r}=n;return t.handleFilterResetFilter(e,r.column||null),t.$nextTick()},_getCheckedFilters(){const e=this,t=e,{tableFullColumn:n}=t,r=[];return n.forEach(e=>{const{field:t,filters:n}=e,i=n||[],o=[],a=[];i&&(i.forEach(e=>{e.checked&&(o.push(e.value),a.push(e.data))}),o.length&&r.push({column:e,field:t,property:t,values:o,datas:a}))}),r},handleColumnConfirmFilter(e,t){const n=this,r=n,i=n,{mouseConfig:o}=r,{scrollXLoad:a,scrollYLoad:s}=i,l=n.computeFilterOpts,c=n.computeMouseOpts,{field:u,filters:d}=e,h=d||[],p=[],f=[];h.forEach(e=>{e.checked&&(p.push(e.value),f.push(e.data))});const m=n.getCheckedFilters(),g={$table:n,$event:t,column:e,field:u,property:u,values:p,datas:f,filters:m,filterList:m};return l.remote||(n.handleTableData(!0),n.checkSelectionStatus()),o&&c.area&&n.handleFilterEvent&&n.handleFilterEvent(t,g),t&&n.dispatchEvent("filter-change",g,t),n.closeFilter(),n.updateFooter().then(()=>{const{scrollXLoad:e,scrollYLoad:t}=i;if(a||e||s||t)return(a||e)&&n.updateScrollXSpace(),(s||t)&&n.updateScrollYSpace(),n.refreshScroll()}).then(()=>(n.updateCellAreas(),n.recalculate(!0))).then(()=>{setTimeout(()=>n.recalculate(),50)})},confirmFilterEvent(e,t){const n=this;t&&n.handleColumnConfirmFilter(t,e)},handleClearFilter(e){const t=this;if(e){const{filters:n,filterRender:r}=e;if(n){const i=t.computeRendererOpts,o=ld(r)&&r.name?i[r.name]||hb.get(r.name):null,a=e.filterResetMethod||(o?o.tableFilterResetMethod||o.filterResetMethod:null);n.forEach(e=>{e._checked=!1,e.checked=!1,a||(e.data=pc.clone(e.resetValue,!0))}),a&&a({options:n,column:e,$table:t})}}},handleFilterResetFilter(e,t){const n=this;t&&(n.handleClearFilter(t),n.confirmFilterEvent(e,t),e&&n.dispatchEvent("clear-filter",{filterList:[]},e))},handleFilterStyle(){const e=this,t=e,{filterStore:n}=t;return n.visible?fb(e):e.$nextTick()},_clearFilter(e){const t=this,n=t,r=t,{filterStore:i}=n,{tableFullColumn:o}=r;let a;return e?(a=pp(t,e),a&&t.handleClearFilter(a)):o.forEach(t.handleClearFilter),e&&a===i.column||Object.assign(i,{isAllSelected:!1,isIndeterminate:!1,style:null,options:[],column:null,multiple:!1,visible:!1}),t.updateData()},_updateFilterOptionStatus(e,t){const n=this;return e._checked=t,e.checked=t,n.$nextTick()}}},{warnLog:gb}=Ih("table"),{menus:vb,globalEvents:bb,GLOBAL_EVENT_KEYS:yb}=ad,xb={methods:{_closeMenu(){const e=this,t=e;return Object.assign(t.ctxMenuStore,{visible:!1,selected:null,selectChild:null,showChild:!1}),e.$nextTick()},moveCtxMenu(e,t,n,r,i,o){const a=this;let s;const l=pc.findIndexOf(o,e=>t[n]===e);if(r)i&&pd(t.selected)?t.showChild=!0:(t.showChild=!1,t.selectChild=null);else if(bb.hasKey(e,yb.ARROW_UP)){for(let e=l-1;e>=0;e--)if(!1!==o[e].visible){s=o[e];break}t[n]=s||o[o.length-1]}else if(bb.hasKey(e,yb.ARROW_DOWN)){for(let e=l+1;e<o.length;e++)if(!1!==o[e].visible){s=o[e];break}t[n]=s||o[0]}else t[n]&&(bb.hasKey(e,yb.ENTER)||bb.hasKey(e,yb.SPACEBAR))&&a.ctxMenuLinkEvent(e,t[n])},handleGlobalContextmenuEvent(e){const t=this,n=t.$xeGrid,r=t.$xeGantt,i=t,o=t,a=t,{xID:s}=t,{mouseConfig:l,menuConfig:c}=i,{editStore:u,ctxMenuStore:d}=o,{visibleColumn:h}=a,p=t.$refs.refTableFilter,f=t.$refs.refTableMenu,m=t.computeMouseOpts,g=t.computeMenuOpts,v=t.$refs.refElem,{selected:b}=u,y=["header","body","footer"];if(ld(c)){if(d.visible&&f&&vh(e,f.$el).flag)return void e.preventDefault();if(a._keyCtx){const i="body",o={source:"table",type:i,$table:t,$grid:n,$gantt:r,keyboard:!0,columns:h.slice(0),$event:e};if(l&&m.area){const n=t.getActiveCellArea();if(n&&n.row&&n.column)return o.row=n.row,o.column=n.column,void t.handleOpenMenuEvent(e,i,o)}else if(l&&m.selected&&b.row&&b.column)return o.row=b.row,o.column=b.column,void t.handleOpenMenuEvent(e,i,o)}for(let i=0;i<y.length;i++){const o=y[i],a=vh(e,v,`vxe-${o}--column`,e=>e.parentNode.parentNode.parentNode.getAttribute("xid")===s),l={source:"table",type:o,$table:t,$grid:n,$gantt:r,columns:h.slice(0),$event:e};if(a.flag){const n=a.targetElem,r=t.getColumnNode(n),i=r?r.item:null;let s=`${o}-`;if(i&&Object.assign(l,{column:i,columnIndex:t.getColumnIndex(i),cell:n}),"body"===o){const e=t.getRowNode(n.parentNode),r=e?e.item:null;s="",r&&(l.row=r,l.rowIndex=t.getRowIndex(r))}const c=`${s}cell-menu`;return t.handleOpenMenuEvent(e,o,l),void(t.$listeners[`${s}cell-context-menu`]?(gb("vxe.error.delEvent",[`${s}cell-context-menu`,`${s}cell-menu`]),t.dispatchEvent(`${s}cell-context-menu`,l,e)):t.dispatchEvent(c,l,e))}if(vh(e,v,`vxe-table--${o}-wrapper`,e=>e.getAttribute("xid")===s).flag||"body"===o&&vh(e,v,"vxe-table--empty-place-wrapper",e=>e.getAttribute("xid")===s).flag)return void("cell"===g.trigger?e.preventDefault():t.handleOpenMenuEvent(e,o,l))}}p&&!vh(e,p.$el).flag&&t.closeFilter(),t.closeMenu()},handleOpenMenuEvent(e,t,n){const r=this,i=r.$xeGrid,o=r.$xeGantt,a=i||o,s=r,l=r,{ctxMenuStore:c}=s,u=r.computeIsContentMenu,d=r.computeMenuOpts,h=d[t],{zIndex:p,transfer:f,width:m,visibleMethod:g}=d;if(h){const{options:t,disabled:i}=h;i?e.preventDefault():u&&t&&t.length&&(n.options=t,r.preventEvent(e,"event.showMenu",n,()=>{if(!g||g(n)){e.preventDefault(),r.updateZindex();const i=a?a.$refs.refElem:r.$refs.refElem,o=i.getBoundingClientRect(),{scrollTop:s,scrollLeft:u,visibleHeight:d,visibleWidth:h}=uh();let g=e.clientY-o.y,v=e.clientX-o.x;f&&(g=e.clientY+s,v=e.clientX+u);const b=()=>{l._currMenuParams=n;const e={zIndex:p||l.tZindex,top:`${g}px`,left:`${v}px`};m&&(e["--vxe-ui-table-menu-item-width"]=lh(m)),Object.assign(c,{visible:!0,list:t,selected:null,selectChild:null,showChild:!1,style:e}),r.$nextTick(()=>{const e=r.$refs.refTableMenu,t=e.$el,n=t.clientHeight,i=t.clientWidth,{boundingTop:o,boundingLeft:a}=bh(t),l=o+n-d,p=a+i-h;l>-10&&(c.style.top=`${Math.max(s+2,g-n-2)}px`),p>-10&&(c.style.left=`${Math.max(u+2,v-i-2)}px`)})},{keyboard:y,row:x,column:w}=n;y&&x&&w?r.scrollToRow(x,w).then(()=>{const e=r.getCellElement(x,w);if(e){const{boundingTop:t,boundingLeft:n}=bh(e);g=t+s+Math.floor(e.offsetHeight/2),v=n+u+Math.floor(e.offsetWidth/2)}b()}):b()}else r.closeMenu()}))}r.closeFilter()},ctxMenuMouseoverEvent(e,t,n){const r=this,i=r,o=e.currentTarget,{ctxMenuStore:a}=i;e.preventDefault(),e.stopPropagation(),a.selected=t,a.selectChild=n,n||(a.showChild=pd(t),a.showChild&&r.$nextTick(()=>{const e=o.nextElementSibling;if(e){const{boundingTop:t,boundingLeft:n,visibleHeight:r,visibleWidth:i}=bh(o),a=t+o.offsetHeight,s=n+o.offsetWidth;let l="",c="";s+e.offsetWidth>i-10&&(l="auto",c=`${o.offsetWidth}px`);let u="",d="";a+e.offsetHeight>r-10&&(u="auto",d="0"),e.style.left=l,e.style.right=c,e.style.top=u,e.style.bottom=d}}))},ctxMenuMouseoutEvent(e,t){const n=this,r=n,{ctxMenuStore:i}=r;t.children||(i.selected=null),i.selectChild=null},ctxMenuLinkEvent(e,t){const n=this,r=n.$xeGrid,i=n.$xeGantt,o=n;if(!t.loading&&!t.disabled&&(t.code||!t.children||!t.children.length)){const a=vb.get(t.code),s=Object.assign({},o._currMenuParams,{menu:t,$table:n,$grid:r,$gantt:i,$event:e}),l=a?a.tableMenuMethod||a.menuMethod:null;l&&l(s,e),n.$listeners["context-menu-click"]?(gb("vxe.error.delEvent",["context-menu-click","menu-click"]),n.dispatchEvent("context-menu-click",s,e)):n.dispatchEvent("menu-click",s,e),n.closeMenu()}}}},{warnLog:wb,errLog:Cb}=Ih("table"),{getConfig:_b,renderer:Sb,getI18n:kb}=ad;function Eb(e,t){const{model:n,editRender:r}=t;r&&(n.value=Sp(e,t),n.update=!1)}function Ob(e,t){const{model:n,editRender:r}=t;r&&n.update&&(kp(e,t,n.value),n.update=!1,n.value=null)}function Tb(e){const t=e.$refs.refElem;if(t){const e=t.querySelector(".col--selected");e&&oh(e,"col--selected")}}function $b(e){const t=e,{editStore:n,tableColumn:r}=t,i=e.computeEditOpts,{actived:o}=n,{row:a,column:s}=o;a&&s&&("row"===i.mode?r.forEach(e=>Ob(a,e)):Ob(a,s))}function Db(e,t,n){const r=e,{tableFullTreeData:i,afterFullData:o,fullDataRowIdData:a,fullAllDataRowIdData:s}=r,l=e.computeTreeOpts,{rowField:c,parentField:u,mapChildrenField:d}=l,h=l.children||l.childrenField,p=n?"push":"unshift";t.forEach(t=>{const n=t[u],r=np(e,t),l=n?pc.findTree(i,e=>n===e[c],{children:d}):null;if(l){const{item:n}=l,i=s[np(e,n)],o=i?i.level:0;let c=n[h],u=n[d];pc.isArray(c)||(c=n[h]=[]),pc.isArray(u)||(u=n[d]=[]),c[p](t),u[p](t);const f={row:t,rowid:r,_seq:-1,seq:-1,index:-1,_index:-1,$index:-1,treeIndex:-1,_tIndex:-1,items:c,parent:n,level:o+1,height:0,resizeHeight:0,oTop:0,expandHeight:0};a[r]=f,s[r]=f}else{n&&wb("vxe.error.unableInsert"),o[p](t),i[p](t);const e={row:t,rowid:r,_seq:-1,seq:-1,index:-1,_index:-1,$index:-1,treeIndex:-1,_tIndex:-1,items:i,parent:null,level:0,height:0,resizeHeight:0,oTop:0,expandHeight:0};a[r]=e,s[r]=e}})}function Mb(e,t,n,r){const i=e,o=e,a=e,{treeConfig:s}=i,{isRowGroupStatus:l}=o,{tableFullTreeData:c,afterFullData:u,mergeBodyList:d,tableFullData:h,fullDataRowIdData:p,fullAllDataRowIdData:f,insertRowMaps:m,removeRowMaps:g}=a,v=e.computeTreeOpts,{transform:b,parentField:y,rowField:x,mapChildrenField:w}=v,C=v.children||v.childrenField;pc.isArray(t)||(t=[t]);let _=n;if(pc.isString(n)||pc.isNumber(n)){const e=f[n];e&&(_=e.row)}if(!t.length)return Promise.resolve({row:null,rows:[]});e.handlePushStack();const S=e.defineField(t.map(e=>Object.assign(s&&b?{[w]:[],[C]:[]}:{},e)));let k=[];if(s&&b&&(k=pc.toArrayTree(S,{key:x,parentKey:y,children:C})),pc.eqNull(_))if(s&&b)Db(e,S,!1);else if(l){if(s)throw new Error(kb("vxe.error.noTree",["insert"]));Cb(kb("vxe.error.noGroup",["insert"]))}else S.forEach(t=>{const n=np(e,t),r={row:t,rowid:n,_seq:-1,seq:-1,index:-1,_index:-1,$index:-1,treeIndex:-1,_tIndex:-1,items:u,parent:null,level:0,height:0,resizeHeight:0,oTop:0,expandHeight:0};p[n]=r,f[n]=r,u.unshift(t),h.unshift(t)}),d.forEach(e=>{const{row:t}=e;t>=0&&(e.row=t+S.length)});else if(-1===_)if(s&&b)Db(e,S,!0);else if(l){if(s)throw new Error(kb("vxe.error.noTree",["insert"]));Cb(kb("vxe.error.noGroup",["insert"]))}else S.forEach(t=>{const n=np(e,t),r={row:t,rowid:n,_seq:-1,seq:-1,index:-1,_index:-1,$index:-1,treeIndex:-1,_tIndex:-1,items:u,parent:null,level:0,height:0,resizeHeight:0,oTop:0,expandHeight:0};p[n]=r,f[n]=r,u.push(t),h.push(t)});else if(s&&b){const t=pc.findTree(c,e=>_[x]===e[x],{children:w});if(t){const{parent:n}=t,i=n?n[w]:c,o=f[np(e,n)],a=o?o.level:0;if(k.forEach((e,o)=>{n?e[y]!==n[x]&&(Cb("vxe.error.errProp",[`${y}=${e[y]}`,`${y}=${n[x]}`]),e[y]=n[x]):null!==e[y]&&(pc.eqNull(e[y])||Cb("vxe.error.errProp",[`${y}=${e[y]}`,"null"]),e[y]=null);let a=t.index+o;r&&(a+=1),i.splice(a,0,e)}),pc.eachTree(k,t=>{const r=np(e,t),o={row:t,rowid:r,_seq:-1,seq:-1,index:-1,_index:-1,$index:-1,treeIndex:-1,_tIndex:-1,items:i,parent:n,level:a+1,height:0,resizeHeight:0,oTop:0,expandHeight:0};t[C]&&(t[w]=t[C]),p[r]=o,f[r]=o},{children:C}),n){const e=pc.findTree(c,e=>_[x]===e[x],{children:C});if(e){const t=e.items;let n=e.index;r&&(n+=1),t.splice(n,0,...k)}}}else wb("vxe.error.unableInsert"),Db(e,S,!0)}else if(l){if(s)throw new Error(kb("vxe.error.noTree",["insert"]));Cb(kb("vxe.error.noGroup",["insert"]))}else{if(s)throw new Error(kb("vxe.error.noTree",["insert"]));let t=-1;if(pc.isNumber(_)?_<u.length&&(t=_):t=e.findRowIndexOf(u,_),r&&(t=Math.min(u.length,t+1)),-1===t)throw new Error(kb("vxe.error.unableInsert"));u.splice(t,0,...S);const n=e.findRowIndexOf(h,_);n>-1?h.splice(n+(r?1:0),0,...S):h.push(...S),d.forEach(e=>{const{row:n,rowspan:i}=e;n>=t?e.row=n+S.length:(r?n+i>=t:n+i>t)&&(e.rowspan=i+S.length)})}const E=t=>{const n=np(e,t);g[n]?(delete g[n],m[n]&&delete m[n]):m[n]=t};return s&&b?pc.eachTree(k,E,{children:w}):S.forEach(E),o.removeRowFlag++,o.insertRowFlag++,e.cacheRowMap(!1),e.updateScrollYStatus(),e.handleTableData(s&&b),s&&b||e.updateAfterDataIndex(),e.updateFooter(),e.handleUpdateBodyMerge(),e.checkSelectionStatus(),o.scrollYLoad&&e.updateScrollYSpace(),e.$nextTick().then(()=>(e.updateCellAreas(),e.recalculate(!0))).then(()=>({row:S.length?S[S.length-1]:null,rows:S}))}function Fb(e,t,n,r,i){const o=e,a=e,{treeConfig:s}=o,{fullAllDataRowIdData:l}=a,c=e.computeTreeOpts,{transform:u,rowField:d,parentField:h}=c;if(s&&u){pc.isArray(t)||(t=[t]);let o=n;if(pc.isString(n)||pc.isNumber(n)){const e=l[n];e&&(o=e.row)}return Mb(e,t.map(e=>Object.assign({},e,{[h]:o[d]})),r,i)}return Cb("vxe.error.errProp",["tree-config.transform=false","tree-config.transform=true"]),Promise.resolve({row:null,rows:[]})}function Rb(e,t,n){const r=e,{editStore:i}=r,{actived:o,focused:a}=i,{row:s,column:l}=o,c=e.computeValidOpts;if(s||l){if(n&&np(e,n)!==np(e,s))return e.$nextTick();$b(e),e.updateFooter(),o.args=null,o.row=null,o.column=null,e.dispatchEvent("edit-closed",{row:s,rowIndex:e.getRowIndex(s),$rowIndex:e.getVMRowIndex(s),column:l,columnIndex:e.getColumnIndex(l),$columnIndex:e.getVMColumnIndex(l)},t||null)}return a.row=null,a.column=null,c.autoClear&&("full"!==c.msgMode||"obsolete"===_b().cellVaildMode)&&e.clearValidate?e.clearValidate():e.$nextTick().then(()=>e.updateCellAreas())}function Ib(e,t,n,r){const i=e,o=e,a=e.$xeGrid,s=e.$xeGantt,{editConfig:l,mouseConfig:c}=i,{editStore:u,tableColumn:d}=o,h=e.computeEditOpts,{mode:p}=h,{actived:f,focused:m}=u,{row:g,column:v}=t,{editRender:b}=v,{isFocus:y,isPos:x,isClear:w}=r,C=t.cell||e.getCellElement(g,v),_=h.beforeEditMethod||h.activeMethod,S=Object.assign(Object.assign({},t),{cell:C});if(C&&ld(l)&&ld(b)&&!e.isPendingByRow(g)&&!e.isAggregateRecord(g)){if(f.row!==g||"cell"===p&&f.column!==v){let t="edit-disabled";if(!_||_(Object.assign(Object.assign({},S),{$table:e,$grid:a,$gantt:s}))){c&&(e.clearSelected(),e.clearCellAreas&&(e.clearCellAreas(),e.clearCopyCellArea())),e.closeTooltip(),f.column&&Rb(e,n),t="edit-activated",v.renderHeight=C.offsetHeight,f.args=S,f.row=g,f.column=v,e.handlePushStack(),w&&kp(g,v,null),"row"===p?d.forEach(e=>Eb(g,e)):Eb(g,v);const r=h.afterEditMethod;e.$nextTick(()=>{y&&e.handleFocus(S,n),r&&r(Object.assign(Object.assign({},S),{$table:e,$grid:a,$gantt:s}))})}e.dispatchEvent(t,{row:g,rowIndex:e.getRowIndex(g),$rowIndex:e.getVMRowIndex(g),column:v,columnIndex:e.getColumnIndex(v),$columnIndex:e.getVMColumnIndex(v)},n),"edit-activated"===t&&e.dispatchEvent("edit-actived",{row:g,rowIndex:e.getRowIndex(g),$rowIndex:e.getVMRowIndex(g),column:v,columnIndex:e.getColumnIndex(v),$columnIndex:e.getVMColumnIndex(v)},n)}else{const{column:t}=f;if(c&&(e.clearSelected(),e.clearCellAreas&&(e.clearCellAreas(),e.clearCopyCellArea())),t&&t!==v){const{model:n}=t;n.update&&kp(g,t,n.value),e.clearValidate&&e.clearValidate(g,v)}v.renderHeight=C.offsetHeight,f.args=S,f.column=v,x&&setTimeout(()=>{e.handleFocus(S,n)})}m.column=null,m.row=null,e.focus()}return e.$nextTick()}function Ab(e,t,n,r){const i=e,o=e,{editConfig:a}=i,{isPos:s}=r,l=pc.isString(n)?e.getColumnByField(n):n;return t&&l&&ld(a)&&ld(l.editRender)&&!e.isAggregateRecord(t)?Promise.resolve(s?e.scrollToRow(t,l):null).then(()=>{const n=e.getCellElement(t,l);return n&&(Ib(e,{row:t,rowIndex:e.getRowIndex(t),$rowIndex:e.getVMRowIndex(t),_rowIndex:e.getVTRowIndex(t),column:l,columnIndex:e.getColumnIndex(l),$columnIndex:e.getVMColumnIndex(l),_columnIndex:e.getVTColumnIndex(l),cell:n,$table:e},null,r),o._lastCallTime=Date.now()),e.$nextTick()}):e.$nextTick()}const Pb={methods:{_insert(e){const t=this;return Mb(t,e,null)},_insertAt(e,t){const n=this;return Mb(n,e,t)},_insertNextAt(e,t){const n=this;return Mb(n,e,t,!0)},_insertChild(e,t){const n=this;return Fb(n,e,t,null)},_insertChildAt(e,t,n){const r=this;return Fb(r,e,t,n)},_insertChildNextAt(e,t,n){const r=this;return Fb(r,e,t,n,!0)},_remove(e){const t=this,n=t,r=t,i=t,{treeConfig:o}=n,{editStore:a,isRowGroupStatus:s}=r,{tableFullTreeData:l,selectCheckboxMaps:c,afterFullData:u,mergeBodyList:d,tableFullData:h,pendingRowMaps:p,insertRowMaps:f,removeRowMaps:m}=i,g=t.computeCheckboxOpts,v=t.computeTreeOpts,{transform:b,mapChildrenField:y}=v,x=v.children||v.childrenField,{actived:w}=a,{checkField:C}=g;let _=[];return e?pc.isArray(e)||(e=[e]):e=h,e.length?(t.handlePushStack(),e.forEach(e=>{if(!t.isInsertByRow(e)){const n=np(t,e);m[n]=e}}),C||(e.forEach(e=>{const t=np(this,e);c[t]&&delete c[t]}),r.updateCheckboxFlag++),h===e?(e=_=h.slice(0),i.tableFullData=[],i.afterFullData=[],t.clearMergeCells()):o&&b?e.forEach(e=>{const n=np(t,e),r=pc.findTree(l,e=>n===np(t,e),{children:y});if(r){const e=r.items.splice(r.index,1);_.push(e[0])}const i=pc.findTree(l,e=>n===np(t,e),{children:x});i&&i.items.splice(i.index,1);const o=t.findRowIndexOf(u,e);o>-1&&u.splice(o,1)}):s?wb(kb("vxe.error.noGroup",["remove"])):e.forEach(e=>{const n=t.findRowIndexOf(h,e);if(n>-1){const e=h.splice(n,1);_.push(e[0])}const r=t.findRowIndexOf(u,e);r>-1&&(d.forEach(e=>{const{row:t,rowspan:n}=e;t>r?e.row=t-1:t+n>r&&(e.rowspan=n-1)}),u.splice(r,1))}),w.row&&t.findRowIndexOf(e,w.row)>-1&&t.clearEdit(),e.forEach(e=>{const n=np(t,e);f[n]&&delete f[n],p[n]&&delete p[n]}),r.removeRowFlag++,r.insertRowFlag++,r.pendingRowFlag++,t.cacheRowMap(!1),t.handleTableData(o&&b),t.updateFooter(),t.handleUpdateBodyMerge(),o&&b||t.updateAfterDataIndex(),t.checkSelectionStatus(),r.scrollYLoad&&t.updateScrollYSpace(),t.$nextTick().then(()=>(t.updateCellAreas(),t.recalculate(!0))).then(()=>({row:_.length?_[_.length-1]:null,rows:_}))):Promise.resolve({row:null,rows:[]})},_removeCheckboxRow(){const e=this;return e.remove(e.getCheckboxRecords()).then(t=>(e.clearCheckboxRow(),t))},_removeRadioRow(){const e=this,t=e.getRadioRecord();return e.remove(t||[]).then(t=>(e.clearRadioRow(),t))},_removeCurrentRow(){const e=this,t=e.getCurrentRecord();return e.remove(t||[]).then(t=>(e.clearCurrentRow(),t))},_getRecordset(){const e=this,t=e.getRemoveRecords(),n=e.getPendingRecords(),r=t.concat(n),i=e.getUpdateRecords().filter(t=>!r.some(n=>e.eqRow(n,t)));return{insertRecords:e.getInsertRecords(),removeRecords:t,updateRecords:i,pendingRecords:n}},_getInsertRecords(){const e=this,t=e,{fullAllDataRowIdData:n,insertRowMaps:r}=t,i=[];return pc.each(r,(e,t)=>{n[t]&&i.push(e)}),i},_getRemoveRecords(){const e=this,t=e,{removeRowMaps:n}=t,r=[];return pc.each(n,e=>{r.push(e)}),r},_getUpdateRecords(){const e=this,t=e,n=e,{keepSource:r,treeConfig:i}=t,{tableFullData:o,tableFullTreeData:a}=n,s=e.computeTreeOpts,l=[];if(r)if($b(e),i){const t=s.children||s.childrenField;pc.eachTree(a,t=>{e.isUpdateByRow(t)&&l.push(t)},{children:t})}else o.forEach(t=>{e.isUpdateByRow(t)&&l.push(t)});return l},handleEdit(e,t,n){const r=this;return Ib(r,e,t,Object.assign({isFocus:!0,isPos:!0},n))},handleActived(e,t){const n=this;return n.handleEdit(e,t)},_getColumnModel(e,t){Eb(e,t)},_setColumnModel(e,t){Ob(e,t)},_syncActivedCell(){const e=this;$b(e)},_clearActived(e){const t=this;return wb("vxe.error.delFunc",["clearActived","clearEdit"]),t.clearEdit(e)},_clearEdit(e){const t=this;return Rb(t,null,e)},handleClearEdit(e,t){const n=this;return Rb(n,e,t)},_getActiveRecord(){const e=this,t=e,n=e;wb("vxe.error.delFunc",["getActiveRecord","getEditCell"]);const{editStore:r}=t,{fullAllDataRowIdData:i}=n,{args:o,row:a}=r.actived;return o&&a&&i[np(e,a)]?Object.assign({},o,{row:a}):null},_getEditRecord(){const e=this,t=e,n=e;wb("vxe.error.delFunc",["getEditRecord","getEditCell"]);const{editStore:r}=t,{fullAllDataRowIdData:i}=n,{args:o,row:a}=r.actived;return o&&a&&i[np(e,a)]?Object.assign({},o,{row:a}):null},_getEditCell(){const e=this,t=e,{editStore:n}=t,{row:r,column:i}=n.actived;return i&&r?{row:r,rowIndex:e.getRowIndex(r),column:i,columnIndex:e.getColumnIndex(i)}:null},_isActiveByRow(e){const t=this;return wb("vxe.error.delFunc",["isActiveByRow","isEditByRow"]),t.isEditByRow(e)},_isEditByRow(e){const t=this,n=t,{editStore:r}=n;return r.actived.row===e},handleCellFocus(e,t){const n=this,r=n,{editConfig:i}=r,{column:o}=t,{editRender:a}=o,s=n.computeEditOpts;if(i&&ld(a)){const r=n.computeRendererOpts,i=a.name,o=i?r[i]||Sb.get(i):null;let l=a.autofocus||a.autoFocus,c=a.autoSelect||a.autoselect,u=null;return s.autoFocus&&(!l&&o&&(l=o.tableAutoFocus||o.tableAutofocus||o.autofocus),!c&&o&&(c=o.tableAutoSelect||o.autoselect),pc.isFunction(l)?u=l(t):l&&(u=!0===l?e.querySelector("input,textarea"):e.querySelector(l),u&&u.focus())),u}return null},handleFocus(e){const t=this,{row:n,column:r,cell:i}=e,{editRender:o}=r,a=t.computeEditOpts;if(ld(o)){const s=pc.browse(),l=o.autoSelect||o.autoselect,c=t.handleCellFocus(i,e);if(c){if(l)c.select();else if(s.msie){const e=c.createTextRange();e.collapse(!1),e.select()}}else a.autoPos&&(r.fixed||t.scrollToRow(n,r))}},_setActiveRow(e){const t=this;return wb("vxe.error.delFunc",["setActiveRow","setEditRow"]),t.setEditRow(e)},_setEditRow(e,t,n){const r=this,i=r,{visibleColumn:o}=i;let a=pc.find(o,e=>ld(e.editRender)),s=!1;return t&&(s=!0,!0!==t&&(a=pc.isString(t)?r.getColumnByField(t):t)),Ab(r,e,a,Object.assign({isPos:s,isFocus:s},n))},_setActiveCell(e,t){const n=this;return wb("vxe.error.delFunc",["setActiveCell","setEditCell"]),n.setEditCell(e,t)},_setEditCell(e,t,n){const r=this;return Ab(r,e,t,Object.assign({isFocus:!0,isPos:!0},n))},_setSelectCell(e,t){const n=this,r=n,{tableData:i}=r,o=n.computeEditOpts,a=pc.isString(t)?n.getColumnByField(t):t;if(e&&a&&"manual"!==o.trigger){const t=n.findRowIndexOf(i,e);if(t>-1){const r=n.getCellElement(e,a),i={$table:n,row:e,rowIndex:t,$rowIndex:n.getVMRowIndex(e),_rowIndex:n.getVTRowIndex(e),column:a,columnIndex:n.getColumnIndex(a),$columnIndex:n.getVMColumnIndex(a),_columnIndex:n.getVTColumnIndex(a),cell:r};n.handleSelected(i,null)}}return n.$nextTick()},handleSelected(e,t){const n=this,r=n,i=n,{mouseConfig:o,editConfig:a}=r,{editStore:s}=i,l=n.computeMouseOpts,c=n.computeEditOpts,{actived:u,selected:d}=s,{row:h,column:p}=e,f=o&&l.selected,m=()=>(!f||d.row===h&&d.column===p||(u.row!==h||"cell"===c.mode&&u.column!==p)&&(Rb(n,t),n.clearSelected(),n.clearCellAreas&&(n.clearCellAreas(),n.clearCopyCellArea()),d.args=e,d.row=h,d.column=p,f&&n.addCellSelectedClass(),n.focus(),a&&c.isReuseKeep&&ld(c)&&ld(p.editRender)&&setTimeout(()=>{const t=n.getCellElement(h,p);if(t){const r=t.querySelector(".vxe-reusekeep-control");r&&(e.cell=t,n.handleCellFocus(t,e))}},0),t&&n.dispatchEvent("cell-selected",e,t)),n.$nextTick());return m()},_getSelectedCell(){const e=this,t=e,{editStore:n}=t,{row:r,column:i}=n.selected;return r&&i?{row:r,column:i}:null},_clearSelected(){const e=this,t=e,{editStore:n}=t,{selected:r}=n;return r.row=null,r.column=null,Tb(e),e.$nextTick()},reColTitleSdCls(){const e=this,t=e,{elemStore:n}=t,r=n["main-header-list"];r&&pc.arrayEach(r.querySelectorAll(".col--title-selected"),e=>oh(e,"col--title-selected"))},addCellSelectedClass(){const e=this,t=e,{editStore:n}=t,{selected:r}=n,{row:i,column:o}=r;if(Tb(e),i&&o){const t=e.getCellElement(i,o);t&&ah(t,"col--selected")}}}},Lb='body{padding:0;color:rgba(0,0,0,0.7);font-family:"Microsoft YaHei",微软雅黑,"MicrosoftJhengHei",华文细黑,STHeiti,MingLiu}body *{-webkit-box-sizing:border-box;box-sizing:border-box}.vxe-table{border-collapse:collapse;text-align:left;border-spacing:0}.vxe-table.is--default-width,.vxe-table.is--auto-width{width:100%}.vxe-table.is--scale-width{table-layout:fixed}.vxe-table,.vxe-table th,.vxe-table td,.vxe-table td{white-space:pre-line;word-break:break-all;border-color:#D0D0D0;border-style:solid;border-width:0}.border--default,.border--full,.border--outer{border-top-width:1px}.border--default,.border--full,.border--outer{border-left-width:1px}.border--outer,.border--default th,.border--default td,.border--full th,.border--full td,.border--outer th,.border--inner th,.border--inner td{border-bottom-width:1px}.border--default,.border--outer,.border--full th,.border--full td{border-right-width:1px}.border--default th,.border--full th,.border--outer th{background-color:#f8f8f9}.vxe-table td>div,.vxe-table th>div{padding:0.5em 0.4em}.col--center{text-align:center}.col--right{text-align:right}.vxe-table .col--ellipsis>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.vxe-table--tree-node{text-align:left}.vxe-table--tree-node-wrapper{position:relative}.vxe-table--tree-icon-wrapper{position:absolute;top:50%;width:1em;height:1em;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.vxe-table--tree-unfold-icon,.vxe-table--tree-fold-icon{position:absolute;width:0;height:0;border-style:solid;border-width:0.5em;border-right-color:transparent;border-bottom-color:transparent}.vxe-table--tree-unfold-icon{left:.3em;top:0;border-left-color:#939599;border-top-color:transparent}.vxe-table--tree-fold-icon{left:0;top:.3em;border-left-color:transparent;border-top-color:#939599}.vxe-table--tree-cell{display:block;padding-left:1.5em}.vxe-table input[type="checkbox"]{margin:0}.vxe-table input[type="checkbox"],.vxe-table input[type="radio"],.vxe-table input[type="checkbox"]+span,.vxe-table input[type="radio"]+span{vertical-align:middle;padding-left:0.4em}';function Nb(e,t){return new Blob([e],{type:`text/${t.type};charset=utf-8;`})}function jb(e,t){const{style:n}=e;return["<!DOCTYPE html><html>","<head>",'<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">',`<title>${e.sheetName}</title>`,'<style media="print">.vxe-page-break-before{page-break-before:always;}.vxe-page-break-after{page-break-after:always;}</style>',`<style>${Lb}</style>`,n?`<style>${n}</style>`:"","</head>",`<body>${t}</body>`,"</html>"].join("")}const{warnLog:Bb,errLog:Vb}=Ih("table"),{getI18n:zb,renderer:Hb}=ad;let Wb;const qb="\ufeff",Gb="\r\n";function Yb(e,t,n,r,i,o){const a=e.computeSeqOpts,s=a.seqMethod||i.seqMethod;return s?s({$table:e,row:n,rowIndex:e.getRowIndex(n),_rowIndex:e.getVTRowIndex(n),$rowIndex:r,column:i,columnIndex:e.getColumnIndex(i),_columnIndex:e.getVTColumnIndex(i),$columnIndex:o}):t}function Ub(e){return!!e.field||-1===["seq","checkbox","radio"].indexOf(e.type||"")}function Kb(e){return!0===e?"full":e||"default"}function Xb(e){return pc.isBoolean(e)?e?"TRUE":"FALSE":e}const Zb=e=>gd(e)?"":`${e}`;function Qb(e,t,n,r){const i=e,o=e,a=e,{isTreeAllExpanded:s,isRowGroupAllExpanded:l,mode:c}=t,{treeConfig:u}=i,{isRowGroupStatus:d}=o,{fullColumnFieldData:h,fullAllDataRowIdData:p}=a,f=e.computeRadioOpts,m=e.computeCheckboxOpts,g=e.computeTreeOpts,v=e.computeColumnOpts,b=e.computeAggregateOpts,y=e.computeRendererOpts;Wb||(Wb=document.createElement("div"));const{handleGetRowId:x}=ip(e);if(d){const{mode:i,showTotal:o,totalMethod:a,countFields:s,contentMethod:u,formatValuesMethod:d,mapChildrenField:p}=b,g=[],w={},C={};return pc.eachTree(r,(r,b,_,S,k,E)=>{const O=r._row||r,T=x(O);if(C[T])return;const $=k&&k._row?k._row:k,D=$?x($):"";if(l||!$||w[D]&&e.isRowExpandByRow($)){const r=p&&O[p]&&O[p].length,l={_row:O,_level:E.length-1,_hasChild:r,_expand:r&&e.isRowExpandByRow(O)};n.forEach((n,r)=>{const{field:g,editRender:x,cellRender:w,aggFunc:C,rowGroupNode:_}=n;let k="";const E=x||w;let T=n.exportMethod||v.exportMethod;if(!T&&E&&E.name){const e=y[E.name]||Hb.get(E.name);e&&(T=e.tableExportMethod||e.exportMethod)}if(T||(T=v.exportMethod),T)k=T({$table:e,row:O,column:n,options:t});else switch(n.type){case"seq":{const t=S.map((e,t)=>t%2===0?Number(e)+1:".").join("");k="all"===c?t:Yb(e,t,O,b,n,r);break}case"checkbox":k=Xb(e.isCheckedByCheckboxRow(O)),l._checkboxLabel=m.labelField?pc.get(O,m.labelField):"",l._checkboxDisabled=m.checkMethod&&!m.checkMethod({$table:e,row:O});break;case"radio":k=Xb(e.isCheckedByRadioRow(O)),l._radioLabel=f.labelField?pc.get(O,f.labelField):"",l._radioDisabled=f.checkMethod&&!f.checkMethod({$table:e,row:O});break;default:if(g&&O.isAggregate){const t=O,r=t.aggData,l=r?r[g]:null,c=t.groupField,f=t.groupContent,m=p&&t[p]||[],v=t.childCount,b=h[c]||{},y={$table:e,groupField:c,groupColumn:b?b.column:null,column:n,groupValue:f,childList:m,childCount:v,aggValue:null,children:m,totalValue:v};if("column"===i?g===t.groupField:_)k=f,u&&(k=`${u(y)}`),o&&(k=zb("vxe.table.rowGroupContentTotal",[k,a?a(y):v,v]));else if(e.getPivotTableAggregateCellAggValue){const t={$table:e,row:O,column:n};k=e.getPivotTableAggregateCellAggValue(t)}else(!0===C||s&&s.includes(g))&&(k=l?l.value:v,y.aggValue=k,d&&(k=d(y)))}else if(t.original)k=Sp(O,n);else if(k=e.getCellLabel(O,n),"html"===n.type)Wb.innerHTML=k,k=Wb.innerText.trim();else{const t=e.getCellElement(O,n);t&&!ih(t,"is--progress")&&(k=t.innerText.trim())}break}l[n.id]=Zb(k)}),C[T]=!0,D&&(w[D]=!0),g.push(Object.assign(l,O))}},{children:p}),g}if(u){const{seqMode:i}=g,o=g.children||g.childrenField,a=[],l={},u={};return pc.eachTree(r,(r,d,h,g,b,w)=>{const C=r._row||r,_=x(C);if(u[_])return;const S=b&&b._row?b._row:b,k=S?x(S):"";if(s||!S||l[k]&&e.isTreeExpandByRow(S)){const r=C[o]&&C[o].length,s={_row:C,_level:w.length-1,_hasChild:r,_expand:r&&e.isTreeExpandByRow(C)},h=p[_]||{};n.forEach((n,r)=>{let o="";const a=n.editRender||n.cellRender;let l=n.exportMethod||v.exportMethod;if(!l&&a&&a.name){const e=y[a.name]||Hb.get(a.name);e&&(l=e.tableExportMethod||e.exportMethod)}if(l||(l=v.exportMethod),l)o=l({$table:e,row:C,column:n,options:t});else switch(n.type){case"seq":{let t=g.map((e,t)=>t%2===0?Number(e)+1:".").join("");"increasing"===i&&(t=h?h._index+1:-1),o="all"===c?t:Yb(e,t,C,d,n,r);break}case"checkbox":o=Xb(e.isCheckedByCheckboxRow(C)),s._checkboxLabel=m.labelField?pc.get(C,m.labelField):"",s._checkboxDisabled=m.checkMethod&&!m.checkMethod({$table:e,row:C});break;case"radio":o=Xb(e.isCheckedByRadioRow(C)),s._radioLabel=f.labelField?pc.get(C,f.labelField):"",s._radioDisabled=f.checkMethod&&!f.checkMethod({$table:e,row:C});break;default:if(t.original)o=Sp(C,n);else if(o=e.getCellLabel(C,n),"html"===n.type)Wb.innerHTML=o,o=Wb.innerText.trim();else{const t=e.getCellElement(C,n);t&&!ih(t,"is--progress")&&(o=t.innerText.trim())}}s[n.id]=Zb(o)}),u[_]=!0,k&&(l[k]=!0),a.push(Object.assign(s,C))}},{children:o}),a}return r.map((r,i)=>{const o={_row:r};return n.forEach((n,a)=>{let s="";const l=n.editRender||n.cellRender;let u=n.exportMethod||v.exportMethod;if(!u&&l&&l.name){const e=y[l.name]||Hb.get(l.name);e&&(u=e.tableExportMethod||e.exportMethod)}if(u)s=u({$table:e,row:r,column:n,options:t});else switch(n.type){case"seq":{const t=i+1;s="all"===c?t:Yb(e,t,r,i,n,a);break}case"checkbox":s=Xb(e.isCheckedByCheckboxRow(r)),o._checkboxLabel=m.labelField?pc.get(r,m.labelField):"",o._checkboxDisabled=m.checkMethod&&!m.checkMethod({$table:e,row:r});break;case"radio":s=Xb(e.isCheckedByRadioRow(r)),o._radioLabel=f.labelField?pc.get(r,f.labelField):"",o._radioDisabled=f.checkMethod&&!f.checkMethod({$table:e,row:r});break;default:if(t.original)s=Sp(r,n);else if(s=e.getCellLabel(r,n),"html"===n.type)Wb.innerHTML=s,s=Wb.innerText.trim();else{const t=e.getCellElement(r,n);t&&!ih(t,"is--progress")&&(s=t.innerText.trim())}}o[n.id]=Zb(s)}),o})}function Jb(e,t){const n=e.$xeGrid,r=e.$xeGantt,{columns:i,dataFilterMethod:o}=t;let a=t.data;return o&&(a=a.filter((t,i)=>o({$table:e,$grid:n,$gantt:r,row:t,$rowIndex:i}))),Qb(e,t,i,a)}function ey(e){return"TRUE"===e||"true"===e||!0===e}function ty(e,t,n){const r=e.computeColumnOpts,i=n.headerExportMethod||r.headerExportMethod;return i?i({column:n,options:t,$table:e}):(t.isTitle?e.getHeaderCellLabel(n):n.field)||""}function ny(e,t,n,r){const i=e.computeColumnOpts,o=e.computeRendererOpts,a=r.editRender||r.cellRender;let s=r.footerExportMethod;if(!s&&a&&a.name){const e=o[a.name]||Hb.get(a.name);e&&(s=e.tableFooterExportMethod||e.footerExportMethod||e.footerCellExportMethod)}if(s||(s=i.footerExportMethod),s){const i=e.getVTColumnIndex(r);return s({$table:e,items:n,itemIndex:i,row:n,_columnIndex:i,column:r,options:t})}const l=e.getFooterCellLabel(n,r);return l}function ry(e,t,n){const r=e.$xeGrid,i=e.$xeGantt,{footerFilterMethod:o}=t;return o?n.filter((t,n)=>o({$table:e,$grid:r,$gantt:i,items:t,$rowIndex:n})):n}function iy(e,t){if(t){if("seq"===e.type)return`\t${t}`;switch(e.cellType){case"string":if(!isNaN(t))return`\t${t}`;break;case"number":break;default:if(t.length>=12&&!isNaN(t))return`\t${t}`;break}}return t}function oy(e){return/[",\s\n]/.test(e)?`"${e.replace(/"/g,'""')}"`:pc.eqNull(e)?"":e}function ay(e,t,n,r){const i=e;let o=qb;if(t.isHeader&&(o+=n.map(n=>oy(ty(e,t,n))).join(",")+Gb),r.forEach(e=>{o+=n.map(t=>oy(iy(t,e[t.id]))).join(",")+Gb}),t.isFooter){const{footerTableData:r}=i,a=ry(e,t,r);a.forEach(r=>{o+=n.map(n=>oy(ny(e,t,r,n))).join(",")+Gb})}return o}function sy(e,t,n,r){const i=e;let o="";if(t.isHeader&&(o+=n.map(n=>oy(ty(e,t,n))).join("\t")+Gb),r.forEach(e=>{o+=n.map(t=>oy(e[t.id])).join("\t")+Gb}),t.isFooter){const{footerTableData:r}=i,a=ry(e,t,r);a.forEach(r=>{o+=n.map(n=>oy(ny(e,t,r,n))).join("\t")+Gb})}return o}function ly(e,t,n,r){const i=e,o=t[n],a=pc.isUndefined(o)||pc.isNull(o)?r:o,s="ellipsis"===a,l="title"===a,c=!0===a||"tooltip"===a;let u=l||c||s;const{scrollXLoad:d,scrollYLoad:h}=i;return!d&&!h||u||(u=!0),u}function cy(e){return`${e.field||""}:${e.type||""}`}function uy(e,t,n,r){const i=e,o=e,a=e,{id:s,border:l,treeConfig:c,headerAlign:u,align:d,footerAlign:h,showOverflow:p,showHeaderOverflow:f}=i,{isAllSelected:m,isIndeterminate:g}=o,{mergeBodyCellMaps:v,mergeFooterCellMaps:b}=a,y=e.computeTreeOpts,{print:x,widthMode:w,isHeader:C,isFooter:_,isColgroup:S,isMerge:k,colgroups:E,_columnConfs:O,original:T}=t,$="auto"===w,D="scale"===w,M=!$&&!D,F={};O&&O.forEach(e=>{$p(e)||(e.field||e.type)&&e.width&&(F[cy(e)]=e.width)});const R={},I={};if(x){let e=0;n.forEach(t=>{e+=t.renderWidth}),E&&E.forEach(t=>{t.forEach(t=>{if(!t.childNodes||!t.childNodes.length)return;let n=0,r=0;pc.eachTree([t],e=>{e.childNodes&&t.childNodes.length||r++;const i=I[e.id];n+=i||0},{children:"childNodes"});const i=n-r;R[t.id]=i,I[t.id]=pc.floor(i/e*180,2)})}),n.forEach(t=>{const n=t.renderWidth;t.width&&(R[t.id]=n),I[t.id]=pc.floor(n/e*180,2)})}const A=e=>{const t=cy(e),n=F[t];return n?"width:"+lh(n):$?"":D?I[e.id]?"width:"+I[e.id]+"mm":"":R[e.id]?"width:"+lh(R[e.id]):""},P=e=>{const t=cy(e),n=F[t];return n?"width:"+lh(n):$||M?"":D?I[e.id]?"width:"+I[e.id]+"mm":"":R[e.id]?"width:"+lh(R[e.id]):""},L="check-all",N=["vxe-table",`border--${Kb(l)}`,x?"is--print":"",$?"is--auto-width":"",D?"is--scale-width":"",M?"is--default-width":"",C?"is--header":""].filter(e=>e),j=[`<table class="${N.join(" ")}" border="0" cellspacing="0" cellpadding="0">`,`<colgroup>${n.map(e=>`<col style="${A(e)}">`).join("")}</colgroup>`];if(C&&(j.push("<thead>"),S&&!T?E.forEach(n=>{j.push(`<tr>${n.map(n=>{const r=n.headerAlign||n.align||u||d,i=ly(e,n,"showHeaderOverflow",f)?["col--ellipsis"]:[],o=ty(e,t,n);return r&&i.push(`col--${r}`),"checkbox"===n.type?`<th class="${i.join(" ")}" colspan="${n._colSpan}" rowspan="${n._rowSpan}"><div style="${P(n)}"><input type="checkbox" class="${L}" ${m?"checked":""}><span>${o}</span></div></th>`:`<th class="${i.join(" ")}" colspan="${n._colSpan}" rowspan="${n._rowSpan}" title="${o}"><div style="${P(n)}"><span>${md(o,!0)}</span></div></th>`}).join("")}</tr>`)}):j.push(`<tr>${n.map(n=>{const r=n.headerAlign||n.align||u||d,i=ly(e,n,"showHeaderOverflow",f)?["col--ellipsis"]:[],o=ty(e,t,n);return r&&i.push(`col--${r}`),"checkbox"===n.type?`<th class="${i.join(" ")}"><div style="${P(n)}"><input type="checkbox" class="${L}" ${m?"checked":""}><span>${o}</span></div></th>`:`<th class="${i.join(" ")}" title="${o}"><div style="${P(n)}"><span>${md(o,!0)}</span></div></th>`}).join("")}</tr>`),j.push("</thead>")),r.length&&(j.push("<tbody>"),c?r.forEach(t=>{j.push("<tr>"+n.map(n=>{const r=n.align||d,i=ly(e,n,"showOverflow",p)?["col--ellipsis"]:[],o=t[n.id];if(r&&i.push(`col--${r}`),n.treeNode){let e="";return t._hasChild&&(e=`<i class="${t._expand?"vxe-table--tree-fold-icon":"vxe-table--tree-unfold-icon"}"></i>`),i.push("vxe-table--tree-node"),"radio"===n.type?`<td class="${i.join(" ")}" title="${o}"><div style="${P(n)}"><div class="vxe-table--tree-node-wrapper" style="padding-left: ${t._level*y.indent}px"><div class="vxe-table--tree-icon-wrapper">${e}</div><div class="vxe-table--tree-cell"><input type="radio" name="radio_${s}" ${t._radioDisabled?"disabled ":""}${ey(o)?"checked":""}><span>${t._radioLabel}</span></div></div></div></td>`:"checkbox"===n.type?`<td class="${i.join(" ")}" title="${o}"><div style="${P(n)}"><div class="vxe-table--tree-node-wrapper" style="padding-left: ${t._level*y.indent}px"><div class="vxe-table--tree-icon-wrapper">${e}</div><div class="vxe-table--tree-cell"><input type="checkbox" ${t._checkboxDisabled?"disabled ":""}${ey(o)?"checked":""}><span>${t._checkboxLabel}</span></div></div></div></td>`:`<td class="${i.join(" ")}" title="${o}"><div style="${P(n)}"><div class="vxe-table--tree-node-wrapper" style="padding-left: ${t._level*y.indent}px"><div class="vxe-table--tree-icon-wrapper">${e}</div><div class="vxe-table--tree-cell">${o}</div></div></div></td>`}return"radio"===n.type?`<td class="${i.join(" ")}"><div style="${P(n)}"><input type="radio" name="radio_${s}" ${t._radioDisabled?"disabled ":""}${ey(o)?"checked":""}><span>${t._radioLabel}</span></div></td>`:"checkbox"===n.type?`<td class="${i.join(" ")}"><div style="${P(n)}"><input type="checkbox" ${t._checkboxDisabled?"disabled ":""}${ey(o)?"checked":""}><span>${t._checkboxLabel}</span></div></td>`:`<td class="${i.join(" ")}" title="${o}"><div style="${P(n)}">${md(o,!0)}</div></td>`}).join("")+"</tr>")}):r.forEach(t=>{j.push("<tr>"+n.map(n=>{const r=n.id,i=n.align||d,o=ly(e,n,"showOverflow",p)?["col--ellipsis"]:[],a=t[r];let l=1,c=1;if(k){const r=e.getVTRowIndex(t._row),i=e.getVTColumnIndex(n),o=v[`${r}:${i}`];if(o){const{rowspan:e,colspan:t}=o;if(!e||!t)return"";e>1&&(l=e),t>1&&(c=t)}}return i&&o.push(`col--${i}`),"radio"===n.type?`<td class="${o.join(" ")}" rowspan="${l}" colspan="${c}"><div style="${P(n)}"><input type="radio" name="radio_${s}" ${t._radioDisabled?"disabled ":""}${ey(a)?"checked":""}><span>${t._radioLabel}</span></div></td>`:"checkbox"===n.type?`<td class="${o.join(" ")}" rowspan="${l}" colspan="${c}"><div style="${P(n)}"><input type="checkbox" ${t._checkboxDisabled?"disabled ":""}${ey(a)?"checked":""}><span>${t._checkboxLabel}</span></div></td>`:`<td class="${o.join(" ")}" rowspan="${l}" colspan="${c}" title="${a}"><div style="${P(n)}">${md(a,!0)}</div></td>`}).join("")+"</tr>")}),j.push("</tbody>")),_){const{footerTableData:r}=o,i=ry(e,t,r);i.length&&(j.push("<tfoot>"),i.forEach((r,i)=>{j.push(`<tr>${n.map(n=>{const o=n.footerAlign||n.align||h||d,a=ly(e,n,"showOverflow",p)?["col--ellipsis"]:[],s=ny(e,t,r,n);let l=1,c=1;if(k){const t=i,r=e.getVTColumnIndex(n),o=b[`${t}:${r}`];if(o){const{rowspan:e,colspan:t}=o;if(!e||!t)return"";e>1&&(l=e),t>1&&(c=t)}}return o&&a.push(`col--${o}`),`<td class="${a.join(" ")}" rowspan="${l}" colspan="${c}" title="${s}"><div style="${P(n)}">${md(s,!0)}</div></td>`}).join("")}</tr>`)}),j.push("</tfoot>"))}const B=!m&&g?`<script>(function(){var a=document.querySelector(".${L}");if(a){a.indeterminate=true}})()<\/script>`:"";return j.push("</table>",B),$?j.join(""):jb(t,j.join(""))}function dy(e,t,n,r){const i=e;let o=['<?xml version="1.0"?>','<?mso-application progid="Excel.Sheet"?>','<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40">','<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">',"<Version>16.00</Version>","</DocumentProperties>",'<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">',"<WindowHeight>7920</WindowHeight>","<WindowWidth>21570</WindowWidth>","<WindowTopX>32767</WindowTopX>","<WindowTopY>32767</WindowTopY>","<ProtectStructure>False</ProtectStructure>","<ProtectWindows>False</ProtectWindows>","</ExcelWorkbook>",`<Worksheet ss:Name="${t.sheetName}">`,"<Table>",n.map(e=>`<Column ss:Width="${e.renderWidth}"/>`).join("")].join("");if(t.isHeader&&(o+=`<Row>${n.map(n=>`<Cell><Data ss:Type="String">${ty(e,t,n)}</Data></Cell>`).join("")}</Row>`),r.forEach(e=>{o+="<Row>"+n.map(t=>`<Cell><Data ss:Type="String">${e[t.id]}</Data></Cell>`).join("")+"</Row>"}),t.isFooter){const{footerTableData:r}=i,a=ry(e,t,r);a.forEach(r=>{o+=`<Row>${n.map(n=>`<Cell><Data ss:Type="String">${ny(e,t,r,n)}</Data></Cell>`).join("")}</Row>`})}return`${o}</Table></Worksheet></Workbook>`}function hy(e,t,n,r){if(n.length)switch(t.type){case"csv":return ay(e,t,n,r);case"txt":return sy(e,t,n,r);case"html":return uy(e,t,n,r);case"xml":return dy(e,t,n,r)}return""}function py(e,t,n){const{filename:r,type:i,download:o}=t;if(!o){const e=Nb(n,t);return Promise.resolve({type:i,content:n,blob:e})}ad.saveFile&&ad.saveFile({filename:r,type:i,content:n}).then(()=>{!1!==t.message&&ad.modal&&ad.modal.message({content:zb("vxe.table.expSuccess"),status:"success"})})}function fy(e){pc.eachTree(e,e=>{delete e._level,delete e._colSpan,delete e._rowSpan,delete e._children,delete e.childNodes},{children:"children"})}function my(e,t){const n=e.$xeGrid,r=e.$xeGantt,{remote:i,columns:o,colgroups:a,exportMethod:s,afterExportMethod:l}=t;return new Promise(l=>{if(i){const i={options:t,$table:e,$grid:n,$gantt:r};l(s?s(i):i)}else{const n=Jb(e,t);l(e.preventEvent(null,"event.export",{options:t,columns:o,colgroups:a,datas:n},()=>py(e,t,hy(e,t,o,n))))}}).then(i=>(fy(o),t.print||l&&l({status:!0,options:t,$table:e,$grid:n,$gantt:r}),Object.assign({status:!0},i))).catch(()=>{fy(o),t.print||l&&l({status:!1,options:t,$table:e,$grid:n,$gantt:r});const i={status:!1};return Promise.reject(i)})}function gy(e,t){return e.getElementsByTagName(t)}function vy(e){return`#${e}@${pc.uniqueId()}`}function by(e,t){return e.replace(/#\d+@\d+/g,e=>pc.hasOwnProp(t,e)?t[e]:e)}function yy(e,t){const n=by(e,t);return n.replace(/^"+$/g,e=>'"'.repeat(Math.ceil(e.length/2)))}function xy(e,t){const{fieldMaps:n,titleMaps:r}=e;if(!n[t]){const e=r[t];e&&e.field&&(t=e.field)}return t}function wy(e,t,n){const r=t.split(Gb),i=[];let o=[];if(r.length){const t={},a=Date.now();r.forEach(r=>{if(r){const s={};r=r.replace(/("")|(\n)/g,(e,n)=>{const r=vy(a);return t[r]=n?'"':"\n",r}).replace(/"(.*?)"/g,(e,n)=>{const r=vy(a);return t[r]=by(n,t),r});const l=r.split(n);o.length?(l.forEach((e,n)=>{n<o.length&&(s[o[n]]=yy(e.trim(),t))}),i.push(s)):o=l.map(n=>xy(e,yy(n.trim(),t)))}})}return{fields:o,rows:i}}function Cy(e,t){return wy(e,t,",")}function _y(e,t){return wy(e,t,"\t")}function Sy(e,t){const n=new DOMParser,r=n.parseFromString(t,"text/html"),i=gy(r,"body"),o=[],a=[];if(i.length){const t=gy(i[0],"table");if(t.length){const n=gy(t[0],"thead");if(n.length){pc.arrayEach(gy(n[0],"tr"),t=>{pc.arrayEach(gy(t,"th"),t=>{a.push(xy(e,t.textContent||""))})});const r=gy(t[0],"tbody");r.length&&pc.arrayEach(gy(r[0],"tr"),e=>{const t={};pc.arrayEach(gy(e,"td"),(e,n)=>{a[n]&&(t[a[n]]=e.textContent||"")}),o.push(t)})}}}return{fields:a,rows:o}}function ky(e,t){const n=new DOMParser,r=n.parseFromString(t,"application/xml"),i=gy(r,"Worksheet"),o=[],a=[];if(i.length){const t=gy(i[0],"Table");if(t.length){const n=gy(t[0],"Row");n.length&&(pc.arrayEach(gy(n[0],"Cell"),t=>{a.push(xy(e,t.textContent||""))}),pc.arrayEach(n,(e,t)=>{if(t){const t={},n=gy(e,"Cell");pc.arrayEach(n,(e,n)=>{a[n]&&(t[a[n]]=e.textContent)}),o.push(t)}}))}}return{fields:a,rows:o}}function Ey(e,t,n){const r=e,{tableFullColumn:i,_importResolve:o,_importReject:a}=r;let s={fields:[],rows:[]};const l={},c={};i.forEach(t=>{const n=t.field,r=e.getHeaderCellLabel(t);n&&(l[n]=t),r&&(c[r]=t)});const u={fieldMaps:l,titleMaps:c};switch(n.type){case"csv":s=Cy(u,t);break;case"txt":s=_y(u,t);break;case"html":s=Sy(u,t);break;case"xml":s=ky(u,t);break}const{fields:d,rows:h}=s,p=d.some(e=>l[e]||c[e]);p?e.createData(h).then(t=>{let r;return r="insert"===n.mode||"insertBottom"===n.mode?e.insertAt(t,-1):"insertTop"===n.mode?e.insert(t):e.reloadData(t),!1!==n.message&&(ad.modal||Vb("vxe.error.reqModule",["Modal"]),ad.modal.message({content:zb("vxe.table.impSuccess",[h.length]),status:"success"})),r.then(()=>{o&&o({status:!0})})}):!1!==n.message&&(ad.modal||Vb("vxe.error.reqModule",["Modal"]),ad.modal.message({content:zb("vxe.error.impFields"),status:"error"}),a&&a({status:!1,msg:"field mismatching"}))}function Oy(e,t,n){const r=e,i=e.computeImportOpts,{importMethod:o,afterImportMethod:a}=n,{type:s,filename:l}=ud(t);if(!o&&!pc.includes(pc.keys(i._typeMaps),s)){!1!==n.message&&(ad.modal||Vb("vxe.error.reqModule",["Modal"]),ad.modal.message({content:zb("vxe.error.notType",[s]),status:"error"}));const e={status:!1,msg:"type error"};return Promise.reject(e)}const c=new Promise((i,a)=>{const c=t=>{i(t),e._importResolve=null,e._importReject=null},u=t=>{a(t),e._importResolve=null,e._importReject=null};if(e._importResolve=c,e._importReject=u,window.FileReader){const i=Object.assign({mode:"insertTop"},n,{type:s,filename:l});if(i.remote)o?Promise.resolve(o({file:t,options:i,$table:e})).then(()=>{c({status:!0})}).catch(()=>{c({status:!0})}):c({status:!0});else{const{tableFullColumn:n}=r;e.preventEvent(null,"event.import",{file:t,options:i,columns:n},()=>{const n=new FileReader;n.onerror=()=>{Vb("vxe.error.notType",[s]),u({status:!1,msg:"reading file error"})},n.onload=t=>{Ey(e,t.target.result,i)},n.readAsText(t,i.encoding||"UTF-8")})}}else Vb("vxe.error.notExp"),c({status:!1,msg:"unsupported browser"})});return c.then(()=>{a&&a({status:!0,options:n,$table:e})}).catch(t=>(a&&a({status:!1,options:n,$table:e}),Promise.reject(t)))}function Ty(){return ad.modal?ad.modal.close("VXE_EXPORT_MODAL"):Promise.resolve()}function $y(e,t,n){return n.some(e=>{if($p(e))return t.id===e.id;if(pc.isString(e))return t.field===e;{const n=e.id||e.colId,r=e.type,i=e.field;if(n)return t.id===n;if(i&&r)return t.field===i&&t.type===r;if(i)return t.field===i;if(r)return t.type===r}return!1})}function Dy(e,t,n,r,i,o){const{field:a}=t;return!i[a]&&(n?!!r[a]:!!o[a]||(e.original?!!a:Ub(t)))}function My(e,t,n){const r=e,i=e,o=e,a=e.$xeGrid,s=e.$xeGantt,l=a||s,{treeConfig:c,showHeader:u,showFooter:d}=r,{initStore:h,isGroup:p,rowGroupList:f,footerTableData:m,exportStore:g,exportParams:v}=i,{collectColumn:b,mergeBodyList:y,mergeFooterList:x}=o,w=e.computeExportOpts,C=!!c,_=f.length>0,S=e.computePrintOpts,k=e.getCheckboxRecords(),E=l?l.computeProxyOpts:{},O=!!m.length,T=!(!y.length&&!x.length),$=Object.assign({message:!0,isHeader:u,isTitle:u,isFooter:d,isColgroup:p,isMerge:T,useStyle:!0,current:"current",modes:(E.ajax&&E.ajax.queryAll?["all"]:[]).concat(["current","selected","empty"])},t);pc.isBoolean($.isAllExpand)&&(Bb("vxe.error.delProp",["isAllExpand","isTreeAllExpanded"]),$.isTreeAllExpanded=$.isAllExpand);const D=n?[]:$.types||pc.keys(w._typeMaps),M=$.modes||[],F=(n?S:w).checkMethod,R=b.slice(0),{columns:I,excludeFields:A,includeFields:P,extraFields:L}=$,N=D.map(e=>({value:e,label:zb(`vxe.export.types.${e}`)})),j=M.map(e=>e&&e.value?{value:e.value,label:e.label||e.value}:{value:e,label:zb(`vxe.export.modes.${e}`)}),B={};A&&A.length&&A.forEach(e=>{B[e]=1});const V={};P&&P.length&&P.forEach(e=>{V[e]=1});const z={};L&&L.forEach(e=>{z[e]=1}),pc.eachTree(R,(t,n,r,i,o)=>{const a=t.children&&t.children.length>0;let s=!1;const l=z[t.field];s=I?$y($,t,I):A||P?Dy($,t,P,V,B,z):!!l||t.visible&&(a||Ub(t)),t.checked=s,t.halfChecked=!1,t.disabled=o&&o.disabled||!!F&&!F({$table:e,column:t})}),g.columns=R,g.typeList=N,g.modeList=j,g.hasFooter=O,g.hasMerge=T,g.hasTree=C,g.hasRowGroup=_,g.isPrint=!!n,g.hasColgroup=p,g.visible=!0,Object.assign(v,{mode:k.length?"selected":"current"},$);const{filename:H,sheetName:W,mode:q,type:G}=v;return H&&(pc.isFunction(H)?v.filename=H({options:$,$table:e,$grid:a,$gantt:s}):v.filename=`${H}`),W&&(pc.isFunction(W)?v.sheetName=W({options:$,$table:e,$grid:a,$gantt:s}):v.sheetName=`${W}`),j.some(e=>e.value===q)||(v.mode=j.length?j[0].value:""),N.some(e=>e.value===G)||(v.type=N.length?N[0].value:""),v.widthMode||(v.widthMode=""),h.export=!0,e.$nextTick()}const Fy=e=>{const t=[];return e.forEach(e=>{e.childNodes&&e.childNodes.length?(t.push(e),t.push(...Fy(e.childNodes))):t.push(e)}),t},Ry=e=>{let t=1;const n=(e,r)=>{if(r&&(e._level=r._level+1,t<e._level&&(t=e._level)),e.childNodes&&e.childNodes.length){let t=0;e.childNodes.forEach(r=>{n(r,e),t+=r._colSpan}),e._colSpan=t}else e._colSpan=1};e.forEach(e=>{e._level=1,n(e)});const r=[];for(let o=0;o<t;o++)r.push([]);const i=Fy(e);return i.forEach(e=>{e.childNodes&&e.childNodes.length?e._rowSpan=1:e._rowSpan=t-e._level+1,r[e._level-1].push(e)}),r},Iy={methods:{_exportData(e){const t=this,n=t,r=t,i=t,o=t.$xeGrid,a=t.$xeGantt,s=o||a,{treeConfig:l,showHeader:c,showFooter:u}=n,{isGroup:d}=r,{tableFullColumn:h,afterFullData:p,afterTreeFullData:f,collectColumn:m,mergeBodyList:g,mergeFooterList:v}=i,b=t.computeExportOpts,y=t.computeTreeOpts,x=s?s.computeProxyOpts:{},w=!(!g.length&&!v.length),C=Object.assign({message:!0,isHeader:c,isTitle:c,isFooter:u,isColgroup:d,isMerge:w,useStyle:!0,current:"current",modes:(x.ajax&&x.ajax.queryAll?["all"]:[]).concat(["current","selected","empty"]),download:!0,type:"csv"},b,e);pc.isBoolean(C.isAllExpand)&&(Bb("vxe.error.delProp",["isAllExpand","isTreeAllExpanded"]),C.isTreeAllExpanded=C.isAllExpand);let{filename:_,sheetName:S,type:k,mode:E,columns:O,columnFilterMethod:T,beforeExportMethod:$,includeFields:D,excludeFields:M,extraFields:F}=C,R=[];const I=t.getCheckboxRecords();E||(E=I.length?"selected":"current");const A={};M&&M.length&&M.forEach(e=>{A[e]=1});const P={};D&&D.length&&D.forEach(e=>{P[e]=1});const L={};F&&F.forEach(e=>{L[e]=1});let N=!1,j=[];const B=C._columns;B?(N=!0,j=pc.searchTree(B,()=>!0,{children:"_children",mapChildren:"childNodes",original:!0})):O?(N=!0,j=pc.searchTree(O,()=>!0,{children:"children",mapChildren:"childNodes",original:!0})):j=pc.searchTree(m,e=>{const t=e.children&&e.children.length>0;let n=!1;const r=L[e.field];return n=O?$y(C,e,O):M||D?Dy(C,e,D,P,A,L):!!r||e.visible&&(t||Ub(e)),n},{children:"children",mapChildren:"childNodes",original:!0});const V=Object.assign({},C,{filename:"",sheetName:"",_columnConfs:O});N||T||(T=({column:e})=>Dy(V,e,D,P,A,L),V.columnFilterMethod=T),j?(V._isCustomColumn=!0,R=pc.searchTree(pc.mapTree(j,e=>{let n;if(e){if($p(e))n=e;else if(pc.isString(e))n=t.getColumnByField(e);else{const r=e.id||e.colId,i=e.type,o=e.field;r?n=t.getColumnById(r):o&&i?n=h.find(e=>e.field===o&&e.type===i):o?n=t.getColumnByField(o):i&&(n=h.find(e=>e.type===i))}return n||{}}},{children:"childNodes",mapChildren:"_children"}),(e,n)=>$p(e)&&(!T||T({$table:t,$grid:o,$gantt:a,column:e,$columnIndex:n})),{children:"_children",mapChildren:"childNodes",original:!0})):R=pc.searchTree(d?m:h,(e,n)=>e.visible&&(!T||T({$table:t,$grid:o,$gantt:a,column:e,$columnIndex:n})),{children:"children",mapChildren:"childNodes",original:!0});const z=[];if(pc.eachTree(R,e=>{const t=e.children&&e.children.length;t||z.push(e)},{children:"childNodes"}),V.columns=z,V.colgroups=Ry(R),_&&(pc.isFunction(_)?V.filename=_({options:C,$table:t,$grid:o,$gantt:a}):V.filename=`${_}`),V.filename||(V.filename=zb(V.original?"vxe.table.expOriginFilename":"vxe.table.expFilename",[pc.toDateString(Date.now(),"yyyyMMddHHmmss")])),S&&(pc.isFunction(S)?V.sheetName=S({options:C,$table:t,$grid:o,$gantt:a}):V.sheetName=`${S}`),V.sheetName||(V.sheetName=document.title||""),!V.exportMethod&&!pc.includes(pc.keys(b._typeMaps),k)){Vb("vxe.error.notType",[k]),["xlsx","pdf"].includes(k)&&Bb("vxe.error.reqPlugin",[3,"plugin-export-xlsx"]);const e={status:!1,msg:"type error"};return Promise.reject(e)}if(!V.print&&$){const e=$({options:V,$table:t,$grid:o,$gantt:a});if(pc.isBoolean(e)){if(!e){const e={status:!1,msg:"before prevent"};return Promise.reject(e)}}else Bb("vxe.error.returnErr",["beforeExportMethod","boolean",e])}if(V.data)V._isCustomData=!0;else if(V.data=[],"selected"===E)["html","pdf"].indexOf(k)>-1&&l?V.data=pc.searchTree(t.getTableData().fullData,e=>t.findRowIndexOf(I,e)>-1,Object.assign({},y,{data:"_row"})):V.data=I;else if("all"===E){if(s||Vb("vxe.error.errProp",["all","mode=current,selected"]),s&&!V.remote){const e=s.reactData,n=s.computeProxyOpts,{sortData:r}=e,{beforeQueryAll:i,afterQueryAll:l,ajax:c={}}=n,u=n.response||n.props||{},d=c.beforeQueryAll,h=c.queryAll,p=c.afterQueryAll,f=c.queryAllSuccess,m=c.queryAllError;if(h||Vb("vxe.error.notFunc",["proxy-config.ajax.queryAll"]),h){const n={$table:t,$grid:o,$gantt:a,sort:r.length?r[0]:{},sorts:r,filters:e.filterData,form:e.formData,options:V},s=()=>Promise.resolve((i||h)(n)).then(e=>{if(p)p(Object.assign(Object.assign({},n),{response:e,status:"success"}));else{const r=u.list;let i=[];r?i=pc.isFunction(r)?r({data:e,$table:t,$grid:o,$gantt:a}):pc.isArray(e)?e:pc.get(e,r):pc.isArray(e)&&(i=e),V.data=i,l&&l(Object.assign(Object.assign({},n),{response:e}))}return f&&f(Object.assign(Object.assign({},n),{response:e})),my(t,V)}).catch(e=>{p&&p(Object.assign(Object.assign({},n),{response:e,status:"error"})),m&&m(Object.assign(Object.assign({},n),{response:e}))});return d?Promise.resolve(d(n)).then(e=>{if(!1!==e)return s()}):s()}}}else"current"===E&&(V.data=l?f:p);return my(t,V)},_importByFile(e,t){const n=this,r=Object.assign({},t),{beforeImportMethod:i}=r;if(i){const e=i({options:r,$table:n});if(pc.isBoolean(e)){if(!e){const e={status:!1,mas:"before prevent"};return Promise.reject(e)}}else Bb("vxe.error.returnErr",["beforeImportMethod","boolean",e])}return Oy(n,e,r)},_importData(e){const t=this,n=t.computeImportOpts,r=Object.assign({types:pc.keys(n._typeMaps)},n,e),{beforeImportMethod:i,afterImportMethod:o}=r;if(i){const e=i({options:r,$table:t});if(pc.isBoolean(e)){if(!e){const e={status:!1,mas:"before prevent"};return Promise.reject(e)}}else Bb("vxe.error.returnErr",["beforeImportMethod","boolean",e])}return ad.readFile(r).catch(e=>(o&&o({status:!1,options:r,$table:t}),Promise.reject(e))).then(e=>{const{file:n}=e;return Oy(t,n,r)})},_saveFile(e){return ad.saveFile(e)},_readFile(e){return ad.readFile(e)},_print(e){const t=this,n=t.$xeGrid,r=t.$xeGantt,i=t.computePrintOpts,o=Object.assign({original:!1},i,e,{type:"html",download:!1,remote:!1,print:!0}),{sheetName:a}=o;let s="";a&&(s=pc.isFunction(a)?a({options:o,$table:t,$grid:n,$gantt:r}):`${a}`),s||(s=document.title||"");const l=o.beforePrintMethod,c=o.printMethod,u=o.html||o.content;return new Promise((e,i)=>{if(ad.print)e(u?ad.print({title:s,html:u,customStyle:o.style,beforeMethod:l?({html:e})=>l({html:e,content:e,options:o,$table:t,$grid:n,$gantt:r}):void 0,beforePrintMethod:l?({html:e})=>l({html:e,content:e,options:o,$table:t,$grid:n,$gantt:r}):void 0,printMethod:c?({html:e})=>c({html:e,content:e,options:o,$table:t,$grid:n,$gantt:r}):void 0}):t.exportData(o).then(({content:e})=>ad.print({title:s,html:e,customStyle:o.style,beforeMethod:l?({html:e})=>l({html:e,content:e,options:o,$table:t,$grid:n,$gantt:r}):void 0,beforePrintMethod:l?({html:e})=>l({html:e,content:e,options:o,$table:t,$grid:n,$gantt:r}):void 0,printMethod:c?({html:e})=>c({html:e,content:e,options:o,$table:t,$grid:n,$gantt:r}):void 0})));else{Vb("vxe.error.reqComp",["vxe-print"]);const e={status:!1,msg:"print not exist"};i(e)}})},_getPrintHtml(e){const t=this,n=t.computePrintOpts,r=Object.assign({original:!1},n,e,{type:"html",download:!1,remote:!1,print:!0});return t.exportData(r).then(({content:e})=>({html:e}))},_closeImport(){return ad.modal?ad.modal.close("VXE_IMPORT_MODAL"):Promise.resolve()},_openImport(e){const t=this,n=t,r=t,{treeConfig:i,importConfig:o}=n,{initStore:a,importStore:s,importParams:l}=r,c=t.computeImportOpts,u=Object.assign({mode:"insertTop",message:!0,types:pc.keys(c._typeMaps),modes:["insertTop","covering"]},c,e),d=u.types||[],h=u.modes||[],p=!!i;if(p)return void(u.message&&ad.modal.message({content:zb("vxe.error.treeNotImp"),status:"error"}));o||Vb("vxe.error.reqProp",["import-config"]);const f=d.map(e=>({value:e,label:zb(`vxe.export.types.${e}`)})),m=h.map(e=>e&&e.value?{value:e.value,label:e.label||e.value}:{value:e,label:zb(`vxe.import.modes.${e}`)});Object.assign(s,{file:null,type:"",filename:"",modeList:m,typeList:f,visible:!0}),Object.assign(l,u),m.some(e=>e.value===l.mode)||(l.mode=m[0].value),a.import=!0},_closeExport:Ty,_openExport(e){const t=this,n=t,r=t.computeExportOpts,i=Object.assign({message:!0,types:pc.keys(r._typeMaps)},r,e);return n.exportConfig||Vb("vxe.error.reqProp",["export-config"]),My(t,i)},_closePrint:Ty,_openPrint(e){const t=this,n=t,r=t.computePrintOpts,i=Object.assign({message:!0},r,e);return n.printConfig||Vb("vxe.error.reqProp",["print-config"]),My(t,i,!0)}}};function Ay(e,t,n,r,i,o,a){const s=e,l=e,c=e,{showOverflow:u}=s,{fullAllDataRowIdData:d,isResizeCellHeight:h}=c,p=e.computeRowOpts,f=e.computeCellOpts,m=e.computeDefaultRowHeight,{row:g}=n;let v=0,b=[],y=0;const x=a>0,{scrollYLoad:w}=l,{afterFullData:C}=c;if(y=x?o+a:i.height-o+Math.abs(a),w){const t=e.getVTRowIndex(g),n=h||f.height||p.height;if(!n&&u)b=x?C.slice(t,t+Math.ceil(y/m)):C.slice(t-Math.floor(y/m),t+1);else if(x)for(let r=t;r<C.length;r++){const t=C[r],n=e.getRowid(t),i=d[n]||{};if(v+=i.resizeHeight||f.height||p.height||i.height||m,b.push(t),v>y)return b}else for(let r=t;r>=0;r--){const t=C[r],n=e.getRowid(t),i=d[n]||{};if(v+=i.resizeHeight||f.height||p.height||i.height||m,b.push(t),v>y)return b}}else{const t=x?"next":"previous";while(r&&v<y){const n=e.getRowNode(r);n&&(b.push(n.item),v+=r.offsetHeight,r=r[`${t}ElementSibling`])}}return b}function Py(e,t,n,r,i,o,a){const s=e,{afterFullData:l,visibleColumn:c}=s,u=Object.assign({},n),{row:d,column:h}=u,p=e.getVTRowIndex(d),f=e.getVTColumnIndex(h),m=e.$refs.refTableBody,g=m?m.$el:null,v=g?g.clientWidth:0;let b=r||o||h.renderWidth<v;return r&&f>=0||o&&f<=c.length-1?b=!1:t.preventDefault(),i&&p>0?(u.rowIndex=p-1,u.row=l[u.rowIndex]):a&&p<l.length-1?(u.rowIndex=p+1,u.row=l[u.rowIndex]):r&&f?(u.columnIndex=f-1,u.column=c[u.columnIndex]):o&&f<c.length-1&&(u.columnIndex=f+1,u.column=c[u.columnIndex]),e.scrollToRow(u.row,u.column,{colAlign:b}).then(()=>{u.cell=e.getCellElement(u.row,u.column),e.handleSelected(u,t)}),u}function Ly(e,t,n){const r=e,{elemStore:i}=r,o=Ep(i["main-body-scroll"]),a=Ep(i["left-body-scroll"]),s=Ep(i["right-body-scroll"]),{column:l,cell:c}=n;if("checkbox"===l.type){let r=o;if(a&&"left"===l.fixed?r=a:s&&"right"===l.fixed&&(r=s),!r)return;const i=r.getBoundingClientRect(),u=e.$refs.refElem,d=t.clientX,h=t.clientY,p=r.querySelector(".vxe-table--checkbox-range"),f=c.parentNode,m=e.getCheckboxRecords();let g=[];const v=1,b=t.clientY-i.y+r.scrollTop,y=t.clientX-i.x+r.scrollLeft,x=r.scrollTop,w=f.offsetHeight,C=f.getBoundingClientRect(),_=h-C.y;let S=null,k=!1,E=1;const O=(t,n)=>{e.dispatchEvent(`checkbox-range-${t}`,{records:()=>e.getCheckboxRecords(),reserves:()=>e.getCheckboxReserveRecords()},n)},T=t=>{const{clientX:i,clientY:o}=t,a=i-d,s=o-h+(r.scrollTop-x);let l=Math.abs(s),c=Math.abs(a),u=b,w=y;s<v?(u+=s,u<v&&(u=v,l=b)):l=Math.min(l,r.scrollHeight-b-v),a<v?(w+=a,c>y&&(w=v,c=y)):c=Math.min(c,r.clientWidth-y-v),p.style.height=`${l}px`,p.style.width=`${c}px`,p.style.left=`${w}px`,p.style.top=`${u}px`,p.style.display="block";const S=Ay(e,t,n,f,C,_,s<v?-l:l);if(l>10&&S.length!==g.length){const n=sh(t);g=S,n?S.forEach(t=>{e.handleBatchSelectRows([t],-1===m.indexOf(t))}):(e.setAllCheckboxRow(!1),e.handleCheckedCheckboxRow(S,!0,!1)),O("change",t)}},$=()=>{clearTimeout(S),S=null},D=t=>{$(),S=setTimeout(()=>{if(S){const{scrollLeft:n,scrollTop:i,clientHeight:o,scrollHeight:a}=r,s=Math.ceil(50*E/w);k?i+o<a?(e.scrollTo(n,i+s),D(t),T(t)):$():i?(e.scrollTo(n,i-s),D(t),T(t)):$()}},50)};ah(u,"drag--range"),document.onmousemove=e=>{e.preventDefault(),e.stopPropagation();const{clientY:t}=e,{boundingTop:n}=bh(r);t<n?(k=!1,E=n-t,S||D(e)):t>n+r.clientHeight?(k=!0,E=t-n-r.clientHeight,S||D(e)):S&&$(),T(e)},document.onmouseup=e=>{$(),oh(u,"drag--range"),p.removeAttribute("style"),document.onmousemove=null,document.onmouseup=null,O("end",e)},O("start",t)}}const Ny={methods:{moveTabSelected(e,t,n){const r=this,i=r,o=r,{editConfig:a}=i,{afterFullData:s,visibleColumn:l}=o,c=r.computeEditOpts,u=r.computeRowOpts,d=r.computeCurrentRowOpts,h=r.computeColumnOpts,p=r.computeCurrentColumnOpts;let f,m,g;const v=Object.assign({},e),b=r.getVTRowIndex(v.row),y=r.getVTColumnIndex(v.column);n.preventDefault(),t?y<=0?b>0&&(m=b-1,f=s[m],g=l.length-1):g=y-1:y>=l.length-1?b<s.length-1&&(m=b+1,f=s[m],g=0):g=y+1;const x=l[g];x&&(f?(v.rowIndex=m,v.row=f):v.rowIndex=b,v.columnIndex=g,v.column=x,v.cell=r.getCellElement(v.row,v.column),u.isCurrent&&d.isFollowSelected&&r.triggerCurrentRowEvent(n,v),h.isCurrent&&p.isFollowSelected&&r.triggerCurrentColumnEvent(n,v),a?"click"!==c.trigger&&"dblclick"!==c.trigger||("row"===c.mode?r.handleEdit(v,n):r.scrollToRow(v.row,v.column).then(()=>{r.handleSelected(v,n)})):r.scrollToRow(v.row,v.column).then(()=>{r.handleSelected(v,n)}))},moveCurrentRow(e,t,n){const r=this,i=r,o=r,{treeConfig:a}=i,{afterFullData:s,currentRow:l}=o,c=r.computeTreeOpts,u=c.children||c.childrenField;let d;if(l)if(a){const{index:n,items:r}=pc.findTree(s,e=>e===l,{children:u});e&&n>0?d=r[n-1]:t&&n<r.length-1&&(d=r[n+1])}else{const n=r.getVTRowIndex(l);e&&n>0?d=s[n-1]:t&&n<s.length-1&&(d=s[n+1])}else d=s[0];if(d){n.preventDefault();const e={$table:r,row:d,rowIndex:r.getRowIndex(d),$rowIndex:r.getVMRowIndex(d)};r.scrollToRow(d).then(()=>r.triggerCurrentRowEvent(n,e))}},moveCurrentColumn(e,t,n){const r=this,i=r,{currentCol:o,visibleColumn:a}=i;let s=null;if(o){const n=r.getVTColumnIndex(o);e&&n>0?s=a[n-1]:t&&n<a.length-1&&(s=a[n+1])}else s=a[0];if(s){n.preventDefault();const e={$table:r,column:s,columnIndex:r.getColumnIndex(s),$columnIndex:r.getVMColumnIndex(s)};r.scrollToColumn(s).then(()=>r.triggerCurrentColumnEvent(n,e))}},moveArrowSelected(e,t,n,r,i,o){const a=this,s=a,{highlightCurrentRow:l,highlightCurrentColumn:c}=s,u=a.computeRowOpts,d=a.computeCurrentRowOpts,h=a.computeColumnOpts,p=a.computeCurrentColumnOpts,f=Py(a,o,e,t,n,r,i);(u.isCurrent||l)&&(d.isFollowSelected?a.triggerCurrentRowEvent(o,f):(n||i)&&(u.isCurrent||l)&&a.moveCurrentRow(n,i,o)),(h.isCurrent||c)&&(p.isFollowSelected?a.triggerCurrentColumnEvent(o,f):(t||r)&&(h.isCurrent||c)&&a.moveCurrentColumn(t,r,o))},moveEnterSelected(e,t,n,r,i,o){const a=this,s=a,{highlightCurrentRow:l,highlightCurrentColumn:c}=s,u=a.computeRowOpts,d=a.computeCurrentRowOpts,h=a.computeColumnOpts,p=a.computeCurrentColumnOpts,f=Py(a,o,e,t,n,r,i);(u.isCurrent||l)&&d.isFollowSelected&&a.triggerCurrentRowEvent(o,f),(h.isCurrent||c)&&p.isFollowSelected&&a.triggerCurrentColumnEvent(o,f)},moveSelected(e,t,n,r,i,o){const a=this;Py(a,o,e,t,n,r,i)},handleCellMousedownEvent(e,t){const n=this,r=n,{editConfig:i,checkboxConfig:o,mouseConfig:a}=r,s=n.computeCheckboxOpts,l=n.computeMouseOpts,c=n.computeEditOpts;if(a&&l.area&&n.triggerClAreaMnEvent)return n.triggerClAreaMnEvent(e,t);o&&s.range&&Ly(n,e,t),a&&l.selected&&(i&&"cell"!==c.mode||n.handleSelected(t,e))}}},{warnLog:jy,errLog:By}=Ih("table"),{getConfig:Vy,validators:zy}=ad;class Hy{constructor(e){Object.defineProperty(this,"$options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.assign(this,{$options:e,required:e.required,min:e.min,max:e.max,type:e.type,pattern:e.pattern,validator:e.validator,trigger:e.trigger,maxWidth:e.maxWidth})}get content(){return fd(this.$options.content||this.$options.message)}get message(){return this.content}}function Wy(e,t){return!(e&&!(pc.isRegExp(e)?e:new RegExp(e)).test(t))}function qy(e,t){return!(!pc.eqNull(e)&&t>pc.toNumber(e))}function Gy(e,t){return!(!pc.eqNull(e)&&t<pc.toNumber(e))}function Yy(e,t,n){const{type:r,min:i,max:o,pattern:a}=e,s="array"===r,l="number"===r,c="string"===r,u=`${t}`;if(!Wy(a,u))return!1;if(s){if(!pc.isArray(t))return!1;if(n&&!t.length)return!1;if(!Gy(i,t.length))return!1;if(!qy(o,t.length))return!1}else if(l){const e=Number(t);if(isNaN(e))return!1;if(!Gy(i,e))return!1;if(!qy(o,e))return!1}else{if(c&&!pc.isString(t))return!1;if(n&&!u)return!1;if(!Gy(i,u.length))return!1;if(!qy(o,u.length))return!1}return!0}function Uy(e,t,n){const{required:r,field:i}=e,o=i?pc.get(t,i):n,a=pc.isArray(o)?!o.length:gd(o);if(r){if(a)return!1;if(!Yy(e,o,r))return!1}else if(!a&&!Yy(e,o,r))return!1;return!0}function Ky(e,t){return new Promise(n=>{const r=e.computeValidOpts;!1===r.autoPos?(e.dispatchEvent("valid-error",t,null),n()):e.handleEdit(t,{type:"valid-error",trigger:"call"}).then(()=>{setTimeout(()=>{n(e.showValidTooltip(t))},10)})})}function Xy(e,t){const n=e.computeValidOpts;if("single"===n.msgMode){const e=Object.keys(t),n={};if(e.length){const r=e[0];n[r]=t[r]}return n}return t}function Zy(e,t,n,r,i){const o=e,a=e,s=e,l={},{editRules:c,treeConfig:u}=o,{isRowGroupStatus:d}=a,{afterFullData:h,pendingRowMaps:p,removeRowMaps:f}=s,m=e.computeTreeOpts,g=e.computeAggregateOpts,v=e.computeValidOpts;let b;!0===t?b=h:t&&(pc.isFunction(t)?r=t:b=pc.isArray(t)?t:[t]),b||(b=e.getInsertRecords().concat(e.getUpdateRecords()));const y=[];s._lastCallTime=Date.now(),s.validRuleErr=!1,e.clearValidate();const x={};if(c){const t=n&&n.length?n:e.getColumns(),o=n=>{const r=np(e,n);if(!f[r]&&!p[r]&&!e.isAggregateRecord(n)&&(i||!s.validRuleErr)){const r=[];t.forEach(t=>{const o=pc.isString(t)?t:t.field;!i&&s.validRuleErr||!pc.has(c,o)||r.push(e.validCellRules("all",n,t).catch(({rule:r,rules:a})=>{const c={rule:r,rules:a,rowIndex:e.getRowIndex(n),row:n,columnIndex:e.getColumnIndex(t),column:t,field:o,$table:e};if(l[o]||(l[o]=[]),x[`${np(e,n)}:${t.id}`]={column:t,row:n,rule:r,content:r.content},l[o].push(c),!i)return s.validRuleErr=!0,Promise.reject(c)}))}),y.push(Promise.all(r))}};if(d)pc.eachTree(b,o,{children:g.mapChildrenField});else if(u){const e=m.children||m.childrenField;pc.eachTree(b,o,{children:e})}else b.forEach(o);return Promise.all(y).then(()=>{const t=Object.keys(l);return a.validErrorMaps=Xy(e,x),e.$nextTick().then(()=>{if(t.length)return Promise.reject(l[t[0]][0]);r&&r()})}).catch(t=>new Promise((n,i)=>{const o=()=>{e.$nextTick(()=>{r?(r(l),n()):"obsolete"===Vy().validToReject?i(l):n(l)})},a=()=>{t.cell=e.getCellElement(t.row,t.column),Sh(t.cell),Ky(e,t).then(o)};if(!1===v.autoPos)o();else{const n=t.row,r=t.column;e.scrollToRow(n,r).then(a)}}))}return a.validErrorMaps={},e.$nextTick().then(()=>{r&&r()})}const Qy={methods:{_fullValidate(e,t){const n=this;return pc.isFunction(t)&&jy("vxe.error.notValidators",["fullValidate(rows, callback)","fullValidate(rows)"]),Zy(n,e,null,t,!0)},_validate(e,t){const n=this;return pc.isFunction(t)&&jy("vxe.error.notValidators",["validate(rows, callback)","validate(rows)"]),Zy(n,e,null,t)},_fullValidateField(e,t){const n=this,r=(pc.isArray(t)?t:t?[t]:[]).map(e=>pp(this,e));return r.length?Zy(n,e,r,null,!0):n.$nextTick()},_validateField(e,t){const n=this,r=(pc.isArray(t)?t:t?[t]:[]).map(e=>pp(this,e));return r.length?Zy(n,e,r,null):n.$nextTick()},hasCellRules(e,t,n){const{editRules:r}=this,{field:i}=n;if(i&&r){const t=n.rules?n.rules:pc.get(r,i);return t&&pc.find(t,t=>"all"===e||!t.trigger||e===t.trigger)}return!1},validCellRules(e,t,n,r){const i=this,o=i,a=i,{editRules:s}=o,{field:l}=n,c=[],u=[];if(l&&s){const o=n.rules?n.rules:pc.get(s,l);if(o){const s=pc.isUndefined(r)?pc.get(t,l):r;o.forEach(r=>{const{trigger:l,validator:d}=r;if("all"===e||!l||e===l)if(d){const e={cellValue:s,rule:r,rules:o,row:t,rowIndex:i.getRowIndex(t),column:n,columnIndex:i.getColumnIndex(n),field:n.field,$table:i};let h;if(pc.isString(d)){const t=zy.get(d);if(t){const n=t.tableCellValidatorMethod||t.cellValidatorMethod;n?h=n(e):By("vxe.error.notValidators",[d])}else By("vxe.error.notValidators",[d])}else h=d(e);h&&(pc.isError(h)?(a.validRuleErr=!0,c.push(new Hy({type:"custom",trigger:l,content:h.message,rule:new Hy(r)}))):h.catch&&u.push(h.catch(e=>{a.validRuleErr=!0,c.push(new Hy({type:"custom",trigger:l,content:e&&e.message?e.message:r.content||r.message,rule:new Hy(r)}))})))}else Uy(r,t,s)||(a.validRuleErr=!0,c.push(new Hy(r)))})}}return Promise.all(u).then(()=>{if(c.length){const e={rules:c,rule:c[0]};return Promise.reject(e)}})},_clearValidate(e,t){const n=this,r=n,{validErrorMaps:i}=r,o=n.$refs.refValidTooltip,a=n.computeValidOpts,s=pc.isArray(e)?e:e?[e]:[],l=(pc.isArray(t)?t:t?[t]:[]).map(e=>pp(n,e));let c={};if(o&&o.reactData.visible&&o.close(),"single"===a.msgMode)return r.validErrorMaps={},n.$nextTick();if(s.length&&l.length)c=Object.assign({},i),s.forEach(e=>{l.forEach(t=>{const r=`${np(n,e)}:${t.id}`;c[r]&&delete c[r]})});else if(s.length){const e=s.map(e=>`${np(n,e)}`);pc.each(i,(t,n)=>{e.indexOf(n.split(":")[0])>-1&&(c[n]=t)})}else if(l.length){const e=l.map(e=>`${e.id}`);pc.each(i,(t,n)=>{e.indexOf(n.split(":")[1])>-1&&(c[n]=t)})}return r.validErrorMaps=c,n.$nextTick()},triggerValidate(e){const t=this,n=t,r=t,{editConfig:i,editRules:o}=n,{editStore:a}=r,{actived:s}=a,l=t.computeEditOpts,c=t.computeValidOpts;if(o&&"single"===c.msgMode&&(r.validErrorMaps={}),i&&o&&s.row){const{row:n,column:r,cell:i}=s.args;if(t.hasCellRules(e,n,r))return t.validCellRules(e,n,r).then(()=>{"row"===l.mode&&t.clearValidate(n,r)}).catch(({rule:o})=>{if(!o.trigger||e===o.trigger){const e={rule:o,row:n,column:r,cell:i};return t.showValidTooltip(e),Promise.reject(e)}return Promise.resolve()})}return Promise.resolve()},showValidTooltip(e){const t=this,n=t,r=t,{height:i}=n,{tableData:o,validStore:a,validErrorMaps:s}=r,{rule:l,row:c,column:u,cell:d}=e,h=t.computeValidOpts,p=t.$refs.refValidTooltip,f=l.content;return a.visible=!0,"single"===h.msgMode?r.validErrorMaps={[`${np(t,c)}:${u.id}`]:{column:u,row:c,rule:l,content:f}}:r.validErrorMaps=Object.assign({},s,{[`${np(t,c)}:${u.id}`]:{column:u,row:c,rule:l,content:f}}),t.dispatchEvent("valid-error",e,null),p&&p&&("tooltip"===h.message||"default"===h.message&&!i&&o.length<2)?p.open(d,f):t.$nextTick()}}},Jy=["checkbox","sort","title","width","fixed","align","header-align","footer-align"];function ex(e){const t=e.$xeGrid,n=e.$xeGantt,r=t||n,i=e,{customStore:o}=i,a=e.computeCustomOpts,{mode:s,placement:l,popupOptions:c}=a,u=!("modal"===s||"drawer"===s),{transfer:d,minWidth:h,maxWidth:p,maxHeight:f}=c||{},m=e.computeCustomSimpleMode,g="outside"===m,v=document.documentElement;let b=e.$refs.refElem,y=0,x=0;const w={},C={};if(n){const e=n.$refs.refGanttContainerElem;e&&(b=e)}const _=b.getBoundingClientRect();u&&d?(y=_.top+v.scrollTop,x=pc.eqNull(f)?360:f):g?(r&&b&&(y=b.offsetTop),x=pc.eqNull(f)?360:f):(b&&(x=b.clientHeight-22),x=Math.max(88,x));let S=0;"left"!==l&&"right"!==l&&(S=pc.eqNull(f)?x:f),l&&["left","right","bottom-left","bottom-right"].includes(l)||y&&(w.top=lh(y)),u&&d&&("bottom-left"!==l&&"bottom-right"!==l||(w.bottom=lh(v.scrollHeight-_.top-_.height+1)),"top-left"===l||"bottom-left"===l?w.left=lh(_.left):l&&"top-right"!==l&&"bottom-right"!==l||(w.right=lh(v.scrollWidth-_.left-_.width+1)));const k=getComputedStyle(v),E=getComputedStyle(b);return Jy.forEach(e=>{const t=`--vxe-ui-vxe-table-custom-column-${e}-${"title"===e?"min-":""}width`,n=E.getPropertyValue(t);n&&n!==k.getPropertyValue(t)&&(C[t]=n)}),h&&(w["--vxe-ui-vxe-table-custom-default-min-width"]=lh(h)),p&&(w["--vxe-ui-vxe-table-custom-default-max-width"]=lh(p)),S&&(w.maxHeight=lh(S)),o.defPopupStyle=w,o.panePopupStyle=C,o.maxHeight=S,e.$nextTick()}function tx(e,t,n){const r=e.$xeGrid,i=e.$xeGantt,o=r||i||e;o.dispatchEvent("custom",{type:t},n)}const nx={methods:{_getCustomVisible(){const e=this,t=e,{customStore:n}=t;return n.visible},_openCustom(){const e=this,t=e,n=e,r=e.$xeGrid,i=e.$xeGantt,o=r||i,{initStore:a,customStore:s}=t,l=e.computeCustomOpts,{mode:c,popupOptions:u}=l,d=!("modal"===c||"drawer"===c),{transfer:h}=u||{},p=e.computeCustomSimpleMode,f="outside"===p;let m=e.$refs.refCustomContainerElem;if(d&&h)m=document.body;else if(f&&o){const e=o.$refs.refPopupContainerElem;e&&(m=e)}if(m){const t=e.$refs.refCustomPopupToElem;t&&t.parentElement!==m&&m.appendChild(t)}return n.customPopupToElem!==m&&t.ctPopupFlag++,n.customPopupToElem=m,s.visible=!0,a.custom=!0,e.handleUpdateCustomColumn(),e.checkCustomStatus(),ex(e),e.$nextTick().then(()=>ex(e))},_closeCustom(){const e=this,t=e,{customStore:n}=t,r=e.computeCustomOpts;return n.visible&&(n.visible=!1,r.immediate||e.handleCustom()),e.$nextTick()},_toggleCustom(){const e=this,t=e,{customStore:n}=t;return n.visible?e.closeCustom():e.openCustom()},_saveCustom(e){const t=this,n=t,r=t,{customColumnList:i,aggHandleFields:o,rowGroupList:a}=n,s=t.computeCustomOpts,{allowVisible:l,allowSort:c,allowFixed:u,allowResizable:d,allowAlign:h,allowHeaderAlign:p,allowFooterAlign:f,allowGroup:m,allowValues:g}=s;return e?pc.eachTree(i,e=>{d&&(!e.renderVisible||e.children&&e.children.length||(e.resizeWidth=Math.max(0,pc.toNumber(e.renderWidth))))}):pc.eachTree(i,(e,t,n,r,i)=>{if(i)e.fixed=i.fixed;else{if(c){const n=t+1;e.renderSortNumber=n}u&&(e.fixed=e.renderFixed)}d&&(!e.renderVisible||e.children&&e.children.length||e.renderResizeWidth!==e.renderWidth&&(e.resizeWidth=e.renderResizeWidth,e.renderWidth=e.renderResizeWidth)),l&&(e.visible=e.renderVisible),h&&(e.align=e.renderAlign),p&&(e.headerAlign=e.renderHeaderAlign),f&&(e.footerAlign=e.renderFooterAlign),m&&g&&(e.aggFunc=e.renderAggFn)}),n.isCustomStatus=!0,m&&t.handlePivotTableAggData&&(a.length!==o.length||a.some((e,t)=>e.field!==o[t])?o.length?t.setRowGroups(o):t.clearRowGroups():g&&t.handleUpdateAggData()),c&&(r.collectColumn=i),t.saveCustomStore("confirm")},_cancelCustom(){const e=this,t=e,{customColumnList:n,customStore:r}=t,{oldSortMaps:i,oldFixedMaps:o,oldVisibleMaps:a}=r,s=e.computeCustomOpts,{allowVisible:l,allowSort:c,allowFixed:u,allowAlign:d,allowHeaderAlign:h,allowFooterAlign:p,allowResizable:f,allowGroup:m,allowValues:g}=s;return pc.eachTree(n,e=>{const t=e.getKey(),n=!!a[t],r=o[t]||"";l&&(e.renderVisible=n,e.visible=n),u&&(e.renderFixed=r,e.fixed=r),c&&(e.renderSortNumber=i[t]||0),f&&(e.renderResizeWidth=e.renderWidth),d&&(e.align=e.renderAlign),h&&(e.headerAlign=e.renderHeaderAlign),p&&(e.footerAlign=e.renderFooterAlign)},{children:"children"}),e.$nextTick()},_resetCustom(e){const t=this,n=t,r=t,{rowGroupList:i}=n,{collectColumn:o}=r,a=t.computeCustomOpts,{checkMethod:s}=a,l=Object.assign({visible:!0,resizable:!0===e,fixed:!0===e,sort:!0===e,aggFunc:!0===e,align:!0===e,headerAlign:!0===e,footerAlign:!0===e},e),c=[];if(pc.eachTree(o,e=>{l.resizable&&(e.resizeWidth=0),l.fixed&&(e.fixed=e.defaultFixed,e.renderFixed=e.defaultFixed),l.sort&&(e.renderSortNumber=e.sortNumber,e.parentId=e.defaultParentId),s&&!s({$table:t,column:e})||(e.visible=e.defaultVisible),l.align&&(e.align=e.defaultAlign,e.renderAlign=e.defaultAlign),l.headerAlign&&(e.headerAlign=e.defaultHeaderAlign,e.renderHeaderAlign=e.defaultHeaderAlign),l.footerAlign&&(e.footerAlign=e.defaultFooterAlign,e.renderFooterAlign=e.defaultFooterAlign),l.aggFunc&&(e.aggFunc=e.defaultAggFunc,e.renderAggFn=e.defaultAggFunc),e.renderResizeWidth=e.renderWidth,c.push(e)}),l.sort){const e=pc.toArrayTree(pc.orderBy(c,"renderSortNumber"),{key:"id",parentKey:"parentId",children:"children"});r.collectColumn=e,r.tableFullColumn=Dp(e)}return n.isCustomStatus=!1,t.handleCustom().then(()=>{if(l.aggFunc&&t.handlePivotTableAggData){const e=t.computeRowGroupFields;(e?e.length:i.length)?e&&e.length?t.setRowGroups(e):t.clearRowGroups():t.handleUpdateAggData()}t.saveCustomStore("reset")})},_toggleCustomAllCheckbox(){const e=this,t=e,{customStore:n}=t,r=!n.isAll;return e.setCustomAllCheckbox(r)},_setCustomAllCheckbox(e){const t=this,n=t,{customStore:r}=n,{customColumnList:i}=n,o=t.computeCustomOpts,{checkMethod:a,visibleMethod:s}=o,l=!!e;o.immediate?(pc.eachTree(i,e=>{s&&!s({$table:t,column:e})||a&&!a({$table:t,column:e})||(e.visible=l,e.renderVisible=l,e.halfVisible=!1)}),r.isAll=l,n.isCustomStatus=!0,t.handleCustom(),t.saveCustomStore("update:visible")):(pc.eachTree(i,e=>{s&&!s({$table:t,column:e})||a&&!a({$table:t,column:e})||(e.renderVisible=l,e.halfVisible=!1)}),r.isAll=l),t.checkCustomStatus()},checkCustomStatus(){const e=this,t=e,n=e,{customStore:r}=t,{collectColumn:i}=n,o=e.computeCustomOpts,{checkMethod:a}=o;r.isAll=i.every(t=>!!a&&!a({$table:e,column:t})||t.renderVisible),r.isIndeterminate=!r.isAll&&i.some(t=>(!a||a({$table:e,column:t}))&&(t.renderVisible||t.halfVisible))},emitCustomEvent(e,t){const n=this;n.dispatchEvent("custom",{type:e},t)},triggerCustomEvent(e){const t=this,n=t,{customStore:r}=n;r.visible?(t.closeCustom(),tx(t,"close",e),t.dispatchEvent("custom-close",{},e)):(r.btnEl=e.target,t.openCustom(),tx(t,"open",e),t.dispatchEvent("custom-open",{},e))},customOpenEvent(e){const t=this,n=t,{customStore:r}=n;r.visible&&(r.activeBtn=!0,r.btnEl=e.target,t.openCustom(),tx(t,"open",e),t.dispatchEvent("custom-open",{},e))},customCloseEvent(e){const t=this,n=t,{customStore:r}=n;r.visible&&(r.activeBtn=!1,t.closeCustom(),tx(t,"close",e),t.dispatchEvent("custom-close",{},e))},handleUpdateCustomColumn(){const e=this,t=e,n=e,{customStore:r}=t,{collectColumn:i}=n;if(r.visible){const e={},n={},o={};pc.eachTree(i,t=>{const r=t.getKey();t.renderFixed=t.fixed,t.renderVisible=t.visible,t.renderResizeWidth=t.renderWidth,t.renderAlign=t.align,t.renderHeaderAlign=t.headerAlign,t.renderFooterAlign=t.footerAlign,e[r]=t.renderSortNumber,n[r]=t.fixed,o[r]=t.visible}),r.oldSortMaps=e,r.oldFixedMaps=n,r.oldVisibleMaps=o,t.customColumnList=i.slice(0)}},handleCustomStyle(){const e=this,t=e,{customStore:n}=t;return n.visible?(t.isCustomDragStatus=!1,ex(e)):e.$nextTick()}}},{warnLog:rx,errLog:ix}=Ih("table"),{getConfig:ox,getIcon:ax,getI18n:sx,renderer:lx,globalResize:cx,globalEvents:ux,globalMixins:dx,renderEmptyElement:hx}=ad;function px(e,t){const n=e;n.mergeBodyList=[],n.mergeBodyMaps={},n.mergeBodyCellMaps={},n.mergeBodyRowMaps={},n.mergeBodyColMaps={},e.setMergeCells(t)}function fx(e,t){const n=e;n.mergeHeaderList=[],n.mergeHeaderMaps={},n.mergeHeaderCellMaps={},n.mergeHeaderRowMaps={},n.mergeBodyColMaps={},e.setMergeHeaderCells(t)}function mx(e,t){const n=e;n.mergeFooterList=[],n.mergeFooterMaps={},n.mergeFooterCellMaps={},n.mergeFooterRowMaps={},n.mergeFooterColMaps={},e.setMergeFooterCells(t)}function gx(e){const t=e,n=e.computeRowField;t.currKeyField=n,t.isCurrDeepKey=ep(n)}function vx(e){const t=e,n=e,r=e,{showOverflow:i}=t,{isGroup:o}=n,{fullAllDataRowIdData:a,tableFullColumn:s,collectColumn:l}=r;let c=!!i;const u=e=>{c&&!1===e.showOverflow&&(c=!1)};o?pc.eachTree(l,u):s.forEach(u),pc.each(a,e=>{e.height=0}),n.isAllOverflow=c}function bx(e,t,n){const r=t,i=t,{showHeader:o,showFooter:a}=r,{tableData:s,tableColumn:l,tableGroupColumn:c,columnStore:u,footerTableData:d}=i,h=t.computeScrollbarOpts,p=t.computeScrollbarXOpts,f=t.computeScrollbarYOpts,{overscrollBehavior:m}=p,{overscrollBehavior:g}=f,v="left"===n,b=v?u.leftList:u.rightList,y=pc.eqNull(m)?h.overscrollBehavior:m,x=pc.eqNull(g)?h.overscrollBehavior:g;return e("div",{ref:v?"refLeftContainer":"refRightContainer",class:[`vxe-table--fixed-${n}-wrapper`,`sx--${p.visible}`,`sy--${f.visible}`,{[`x-ob--${y}`]:y,[`y-ob--${x}`]:x}]},[o?e(Ov,{props:{fixedType:n,tableData:s,tableColumn:l,tableGroupColumn:c,fixedColumn:b},ref:`${n}Header`}):hx(t),e(yv,{props:{fixedType:n,tableData:s,tableColumn:l,fixedColumn:b},ref:`${n}Body`}),a?e(Iv,{props:{footerTableData:d,tableColumn:l,fixedColumn:b,fixedType:n},ref:`${n}Footer`}):hx(t)])}function yx(e,t){const n=t.$scopedSlots,r=t.$xeGrid,i=t.$xeGantt,o=t.computeEmptyOpts,a=n.empty;let s="";const l={$table:t,$grid:r,$gantt:i};if(a)s=a.call(t,l);else{const n=t.computeRendererOpts,r=o.name?n[o.name]||lx.get(o.name):null,i=r?r.renderTableEmpty||r.renderTableEmptyView||r.renderEmpty:null;s=i?Bp(i.call(t,e,o,l)):fd(t.emptyText)||sx("vxe.table.emptyText")}return s}const xx=(e,t)=>{const n=t,r=t,i=kf(t),{dragConfig:o}=n,{dragRow:a,dragCol:s,dragTipText:l}=r,c=t.computeColumnDragOpts,u=t.computeRowDragOpts,d=u.slots||{},h=d.tip||(o&&o.slots?o.slots.rowTip:null),p=c.slots||{},f=p.tip,m=a||(u.isCrossTableDrag?i.row:null);return m&&h?t.callSlot(h,{row:m},e):s&&f?t.callSlot(f,{column:s},e):[e("span",l)]},wx=(e,t)=>{const n=t,r=kf(t),{dragRow:i,dragCol:o}=n,a=t.computeRowOpts,s=t.computeColumnOpts,l=t.computeRowDragOpts,c=t.computeColumnDragOpts,u=i||(l.isCrossTableDrag?r.row:null);return a.drag||s.drag?e("div",{class:"vxe-table--drag-wrapper"},[e("div",{ref:"refDragRowLineElem",class:["vxe-table--drag-row-line",{"is--guides":l.showGuidesStatus}]}),e("div",{ref:"refDragColLineElem",class:["vxe-table--drag-col-line",{"is--guides":c.showGuidesStatus}]}),u&&l.showDragTip||o&&c.showDragTip?e("div",{ref:"refDragTipElem",class:"vxe-table--drag-sort-tip"},[e("div",{class:"vxe-table--drag-sort-tip-wrapper"},[e("div",{class:"vxe-table--drag-sort-tip-status"},[e("span",{class:["vxe-table--drag-sort-tip-normal-status",u?ax().TABLE_DRAG_STATUS_ROW:ax().TABLE_DRAG_STATUS_COLUMN]}),e("span",{class:["vxe-table--drag-sort-tip-sub-status",ax().TABLE_DRAG_STATUS_SUB_ROW]}),e("span",{class:["vxe-table--drag-sort-tip-disabled-status",ax().TABLE_DRAG_DISABLED]})]),e("div",{class:"vxe-table--drag-sort-tip-content"},xx(e,t))])]):hx(t)]):hx(t)};function Cx(e){const t=e.$refs.refElem;t&&t.clientWidth&&t.clientHeight&&e.recalculate()}function _x(e,t){const n=t,r=t,i=t,o=t.$xeGrid,a=t.$xeGantt,{treeConfig:s}=n,{expandColumn:l,isRowGroupStatus:c}=r,u=t.computeTableRowExpandedList,d=t.computeExpandOpts,{mode:h}=d;if("fixed"!==h)return hx(t);const p=[e("div",{key:"repY",ref:"refRowExpandYSpaceElem"})];if(l){const{handleGetRowId:n}=ip(t);u.forEach(r=>{const u=t.computeExpandOpts,{height:d,padding:h,indent:f}=u,{fullAllDataRowIdData:m,fullColumnIdData:g}=i,v=t.computeTreeOpts,{transform:b,seqMode:y}=v,x={},w=n(r),C=m[w],_=l.id,S=g[_]||{};let k=0,E=-1,O=-1,T=-1,$=-1;C&&(T=C.index,$=C.$index,O=C._index,k=C.level,E=C.seq,c||s&&b&&"increasing"===y?E=C._index+1:s&&"fixed"===y&&(E=C._tIndex+1)),d&&(x.height=`${d}px`),(c||s)&&(x.paddingLeft=k*(pc.isNumber(f)?f:v.indent)+30+"px");let D=-1,M=-1,F=-1;S&&(D=S.index,M=S.$index,F=S._index);const R={$table:t,$grid:o,$gantt:a,seq:E,column:l,columnIndex:D,$columnIndex:M,_columnIndex:F,fixed:"",source:"table",type:"body",level:k,rowid:w,row:r,rowIndex:T,$rowIndex:$,_rowIndex:O,isHidden:!1,isEdit:!1,visibleData:[],data:[],items:[]};p.push(e("div",{key:w,class:["vxe-body--row-expanded-cell",{"is--padding":h,"is--ellipsis":d}],attrs:{rowid:w},style:x},[e("div",{class:"vxe-body--row-expanded-content"},l.renderData(e,R))]))})}return e("div",{ref:"refRowExpandElem",class:"vxe-table--row-expanded-wrapper"},p)}function Sx(e,t){return e("div",{key:"vsx",ref:"refScrollXVirtualElem",class:"vxe-table--scroll-x-virtual"},[e("div",{ref:"refScrollXLeftCornerElem",class:"vxe-table--scroll-x-left-corner"}),e("div",{ref:"refScrollXWrapperElem",class:"vxe-table--scroll-x-wrapper"},[e("div",{ref:"refScrollXHandleElem",class:"vxe-table--scroll-x-handle",on:{scroll:t.triggerVirtualScrollXEvent}},[e("div",{ref:"refScrollXSpaceElem",class:"vxe-table--scroll-x-space"})]),e("div",{class:"vxe-table--scroll-x-handle-appearance"})]),e("div",{ref:"refScrollXRightCornerElem",class:"vxe-table--scroll-x-right-corner"})])}function kx(e,t){return e("div",{ref:"refScrollYVirtualElem",class:"vxe-table--scroll-y-virtual"},[e("div",{ref:"refScrollYTopCornerElem",class:"vxe-table--scroll-y-top-corner"}),e("div",{ref:"refScrollYWrapperElem",class:"vxe-table--scroll-y-wrapper"},[e("div",{ref:"refScrollYHandleElem",class:"vxe-table--scroll-y-handle",on:{scroll:t.triggerVirtualScrollYEvent}},[e("div",{ref:"refScrollYSpaceElem",class:"vxe-table--scroll-y-space"})])]),e("div",{ref:"refScrollYBottomCornerElem",class:"vxe-table--scroll-y-bottom-corner"})])}function Ex(e,t){const n=t,r=t,{showHeader:i,showFooter:o}=n,{overflowX:a,tableData:s,tableColumn:l,tableGroupColumn:c,footerTableData:u,columnStore:d}=r,h=t.computeScrollbarOpts,p=t.computeScrollbarXOpts,f=t.computeScrollbarYOpts,{overscrollBehavior:m}=p,{overscrollBehavior:g}=f,{leftList:v,rightList:b}=d,y=pc.eqNull(m)?h.overscrollBehavior:m,x=pc.eqNull(g)?h.overscrollBehavior:g;return e("div",{ref:"refTableViewportElem",class:["vxe-table--viewport-wrapper",{[`x-ob--${y}`]:y,[`y-ob--${x}`]:x}]},[e("div",{class:["vxe-table--main-wrapper",`sx--${p.visible}`,`sy--${f.visible}`]},[i?e(Ov,{ref:"refTableHeader",props:{tableData:s,tableColumn:l,tableGroupColumn:c}}):hx(t),e(yv,{ref:"refTableBody",props:{tableData:s,tableColumn:l}}),o?e(Iv,{ref:"refTableFooter",props:{footerTableData:u,tableColumn:l}}):hx(t)]),e("div",{class:"vxe-table--fixed-wrapper"},[v&&v.length&&a?bx(e,t,"left"):hx(t),b&&b.length&&a?bx(e,t,"right"):hx(t)]),_x(e,t)])}function Ox(e,t){const n=t.computeScrollbarYToLeft;return e("div",{class:"vxe-table--layout-wrapper"},n?[kx(e,t),Ex(e,t)]:[Ex(e,t),kx(e,t)])}const Tx={name:"VxeTable",mixins:[dx.sizeMixin,mb,xb,Pb,Iy,Ny,Qy,nx],props:vf,provide(){const e=this;return{$xeTable:e,xecolgroup:null}},inject:{$xeModal:{default:null},$xeTabs:{default:null},$xeParentTable:{from:"$xeTable",default:null},$xeGrid:{default:null},$xeGantt:{default:null}},data(){const e=pc.uniqueId(),t=Wh();return Object.assign(Object.assign({xID:e},t),{reScrollFlag:0,reLayoutFlag:0,footFlag:0,kfFlag:0,layoutReFlag:0,mergeFooteCellFlag:0,crossTableDragRowInfo:Sf})},computed:Object.assign(Object.assign({},{}),{tableId(){return this.computeTableId},computeTableId(){const e=this,t=e,n=e.$xeGrid,r=e.$xeGantt,{id:i}=t;return i?pc.isFunction(i)?`${i({$table:e,$grid:n,$gantt:r})||""}`:`${i}`:""},computeRowField(){const e=this,t=e,n=e.computeRowOpts;return`${t.rowId||n.keyField||"_X_ROW_KEY"}`},validOpts(){return this.computeValidOpts},computeValidOpts(){const e=this,t=e,n=Object.assign({},ox().table.validConfig,t.validConfig);return pc.isBoolean(n.showMessage)&&(n.showErrorMessage=n.showMessage),n},sXOpts(){return this.computeVirtualXOpts},computeSXOpts(){return this.computeVirtualXOpts},computeScrollXThreshold(){const e=this,t=e.computeVirtualXOpts,{threshold:n}=t;return n?pc.toNumber(n):0},sYOpts(){return this.computeVirtualYOpts},computeSYOpts(){return this.computeVirtualYOpts},computeVirtualXOpts(){const e=this,t=e,{virtualXConfig:n,scrollX:r}=t,i=ox().table.virtualXConfig,o=ox().table.scrollX;return n?Object.assign({},i,n):r?Object.assign({},o,r):i?Object.assign({},i,n):Object.assign({},o,r)},computeVirtualYOpts(){const e=this,t=e,{virtualYConfig:n,scrollY:r}=t,i=ox().table.virtualYConfig,o=ox().table.scrollY;return n?Object.assign({},i,n):r?Object.assign({},o,r):i?Object.assign({},i,n):Object.assign({},o,r)},computeScrollbarOpts(){const e=this,t=e;return Object.assign({},ox().table.scrollbarConfig,t.scrollbarConfig)},computeScrollbarXOpts(){var e;const t=this,n=t,r=t.computeScrollbarOpts;return Object.assign({},r.x,(null===(e=n.scrollbarConfig)||void 0===e?void 0:e.x)||{})},computeScrollbarYOpts(){var e;const t=this,n=t,r=t.computeScrollbarOpts;return Object.assign({},r.y,(null===(e=n.scrollbarConfig)||void 0===e?void 0:e.y)||{})},computeScrollbarXToTop(){const e=this,t=e.computeScrollbarXOpts;return"top"===t.position},computeScrollbarYToLeft(){const e=this,t=e.computeScrollbarYOpts;return"left"===t.position},computeScrollYThreshold(){const e=this,t=e.computeVirtualYOpts,{threshold:n}=t;return n?pc.toNumber(n):0},rowHeightMaps(){return this.computeRowHeightMaps},computeRowHeightMaps(){const e=this,t=e;return t.rowHeightStore},computeDefaultRowHeight(){const e=this,t=e.computeSize,n=e.computeRowHeightMaps;return n[t||"default"]||18},columnOpts(){return this.computeColumnOpts},computeColumnOpts(){const e=this,t=e;return Object.assign({},ox().table.columnConfig,t.columnConfig)},computeCurrentColumnOpts(){const e=this,t=e;return Object.assign({},ox().table.currentColumnConfig,t.currentColumnConfig)},computeCellOpts(){const e=this,t=e,n=Object.assign({},ox().table.cellConfig,t.cellConfig);return n.height&&(n.height=pc.toNumber(n.height)),n},computeHeaderCellOpts(){const e=this,t=e.$xeGantt,n=e,r=Object.assign({},ox().table.headerCellConfig,n.headerCellConfig),i=e.computeDefaultRowHeight,o=e.computeCellOpts;let a=pc.toNumber(hp(r.height||o.height));if(t){const e=t.computeTaskViewScales;if(e&&e.length>2){const t=i/2*e.length;a=Math.max(t,a)}}return r.height=a,r},computeFooterCellOpts(){const e=this,t=e,n=Object.assign({},ox().table.footerCellConfig,t.footerCellConfig),r=e.computeCellOpts;return n.height=pc.toNumber(hp(n.height||r.height)),n},rowOpts(){return this.computeRowOpts},computeRowOpts(){const e=this,t=e;return Object.assign({},ox().table.rowConfig,t.rowConfig)},computeAggregateOpts(){const e=this,t=e;return Object.assign({},ox().table.aggregateConfig||ox().table.rowGroupConfig,t.aggregateConfig||t.rowGroupConfig)},computeAggregateMode(){const e=this,t=e.computeAggregateOpts;return t.mode},computeAggregateAccuracyOpts(){const e=this,t=e;return Object.assign({},ox().table.aggregateAccuracyConfig,t.aggregateAccuracyConfig)},computeRowGroupOpts(){const e=this;return e.computeAggregateOpts},computeCurrentRowOpts(){const e=this,t=e;return Object.assign({},ox().table.currentRowConfig,t.currentRowConfig)},computeRowDragOpts(){const e=this,t=e;return Object.assign({},ox().table.rowDragConfig,t.rowDragConfig)},computeColumnDragOpts(){const e=this,t=e;return Object.assign({},ox().table.columnDragConfig,t.columnDragConfig)},resizeOpts(){return this.computeResizeOpts},computeResizeOpts(){const e=this,t=e;return Object.assign({},ox().table.resizeConfig,t.resizeConfig)},resizableOpts(){return this.computeResizableOpts},computeResizableOpts(){const e=this,t=e;return Object.assign({},ox().table.resizableConfig,t.resizableConfig)},seqOpts(){return this.computeSeqOpts},computeSeqOpts(){const e=this,t=e;return Object.assign({startIndex:0},ox().table.seqConfig,t.seqConfig)},radioOpts(){return this.computeRadioOpts},computeRadioOpts(){const e=this,t=e;return Object.assign({},ox().table.radioConfig,t.radioConfig)},checkboxOpts(){return this.computeCheckboxOpts},computeCheckboxOpts(){const e=this,t=e;return Object.assign({},ox().table.checkboxConfig,t.checkboxConfig)},tooltipOpts(){return this.computeTooltipOpts},computeTooltipOpts(){const e=this,t=e;return Object.assign({},ox().tooltip,ox().table.tooltipConfig,t.tooltipConfig)},tipConfig(){return Object.assign({},this.tooltipOpts)},computeHeaderTooltipOpts(){const e=this,t=e,n=e.computeTooltipOpts;return Object.assign({},ox().tooltip,{enterable:n.enterable,defaultPlacement:n.defaultPlacement},ox().table.headerTooltipConfig,t.headerTooltipConfig)},computeFooterTooltipOpts(){const e=this,t=e,n=e.computeTooltipOpts;return Object.assign({},ox().tooltip,{enterable:n.enterable,defaultPlacement:n.defaultPlacement},ox().table.footerTooltipConfig,t.footerTooltipConfig)},computeTableTipConfig(){const e=this,t=e,{tooltipStore:n}=t,r=e.computeTooltipOpts;return Object.assign({},r,n.currOpts)},computeValidTipConfig(){const e=this,t=e.computeTooltipOpts;return Object.assign({},t)},validTipOpts(){return Object.assign({isArrow:!1},this.tooltipOpts)},editOpts(){return this.computeEditOpts},computeEditOpts(){const e=this,t=e;return Object.assign({},ox().table.editConfig,t.editConfig)},computeEditDirtyOpts(){const e=this,t=e;return Object.assign({},ox().table.editDirtyConfig,t.editDirtyConfig)},sortOpts(){return this.computeSortOpts},computeSortOpts(){return Object.assign({orders:["asc","desc",null]},ox().table.sortConfig,this.sortConfig)},filterOpts(){return this.computeFilterOpts},computeFilterOpts(){const e=this,t=e;return Object.assign({},ox().table.filterConfig,t.filterConfig)},computeFloatingFilterOpts(){const e=this,t=e;return Object.assign({},ox().table.floatingFilterConfig,t.floatingFilterConfig)},mouseOpts(){return this.computeMouseOpts},computeMouseOpts(){return Object.assign({},ox().table.mouseConfig,this.mouseConfig)},areaOpts(){return this.computeAreaOpts},computeAreaOpts(){return Object.assign({},ox().table.areaConfig,this.areaConfig)},keyboardOpts(){return this.computeKeyboardOpts},computeKeyboardOpts(){return Object.assign({},ox().table.keyboardConfig,this.keyboardConfig)},clipOpts(){return this.computeClipOpts},computeClipOpts(){return Object.assign({},ox().table.clipConfig,this.clipConfig)},fnrOpts(){return this.computeFnrOpts},computeFNROpts(){return this.computeFnrOpts},computeFnrOpts(){return Object.assign({},ox().table.fnrConfig,this.fnrConfig)},headerCtxMenu(){return this.computeHeaderMenu},computeHeaderMenu(){const e=this,t=e.computeMenuOpts,n=t.header;return n&&n.options?n.options:[]},bodyCtxMenu(){return this.computeBodyMenu},computeBodyMenu(){const e=this,t=e.computeMenuOpts,n=t.body;return n&&n.options?n.options:[]},footerCtxMenu(){return this.computeFooterMenu},computeFooterMenu(){const e=this,t=e.computeMenuOpts,n=t.footer;return n&&n.options?n.options:[]},isCtxMenu(){return this.computeIsContentMenu},computeIsMenu(){return this.computeIsContentMenu},computeIsContentMenu(){const e=this,t=e,n=e.computeMenuOpts,r=e.computeHeaderMenu,i=e.computeBodyMenu,o=e.computeFooterMenu;return!(!t.contextMenu&&!t.menuConfig||!ld(n)||!(r.length||i.length||o.length))},ctxMenuList(){return this.computeMenuList},computeMenuList(){const e=this,t=e,{ctxMenuStore:n}=t,r=[];return n.list.forEach(e=>{e.forEach(e=>{r.push(e)})}),r},ctxMenuOpts(){return this.computeMenuOpts},computeMenuOpts(){return Object.assign({},ox().table.menuConfig,this.contextMenu,this.menuConfig)},computeLeftFixedWidth(){const e=this,t=e,{columnStore:n}=t,{leftList:r}=n;let i=0;for(let o=0;o<r.length;o++){const e=r[o];i+=e.renderWidth}return i},computeRightFixedWidth(){const e=this,t=e,{columnStore:n}=t,{rightList:r}=n;let i=0;for(let o=0;o<r.length;o++){const e=r[o];i+=e.renderWidth}return i},computeBodyMergeCoverFixed(){const e=this,t=e,n=e,{columnStore:r,mergeBodyFlag:i}=t,{mergeBodyList:o,visibleColumn:a}=n,{leftList:s,rightList:l}=r,c=a.length-l.length;if(i&&(s.length||l.length)){const e=s.length;for(let t=0;t<o.length;t++){const{col:n,colspan:r}=o[t];if(n<e&&n+r>e)return!0;if(n<c&&n+r>c)return!0}}return!1},computeIsHeaderRenderOptimize(){const e=this,t=e,n=e,{spanMethod:r,footerSpanMethod:i,showHeaderOverflow:o}=t,{isGroup:a,scrollXLoad:s}=n;let l=!1;return a||s&&o&&(r||i||(l=!0)),l},computeIsBodyRenderOptimize(){const e=this,t=e,n=e,{spanMethod:r,footerSpanMethod:i}=t,{scrollXLoad:o,scrollYLoad:a,isAllOverflow:s,expandColumn:l}=n,c=e.computeBodyMergeCoverFixed,u=e.computeExpandOpts;let d=!1;return(o||a||s)&&(l&&"fixed"!==u.mode||c||r||i||(d=!0)),d},computeIsFooterRenderOptimize(){const e=this,t=e,n=e,{spanMethod:r,footerSpanMethod:i,showFooterOverflow:o}=t,{scrollXLoad:a}=n;let s=!1;return a&&o&&(r||i||(s=!0)),s},exportOpts(){return this.computeExportOpts},computeExportOpts(){return Object.assign({},ox().table.exportConfig,this.exportConfig)},importOpts(){return this.computeImportOpts},computeImportOpts(){return Object.assign({},ox().table.importConfig,this.importConfig)},printOpts(){return this.computePrintOpts},computePrintOpts(){return Object.assign({},ox().table.printConfig,this.printConfig)},expandOpts(){return this.computeExpandOpts},computeExpandOpts(){return Object.assign({},ox().table.expandConfig,this.expandConfig)},treeOpts(){return this.computeTreeOpts},computeTreeOpts(){return Object.assign({},ox().table.treeConfig,this.treeConfig)},emptyOpts(){return this.computeEmptyOpts},computeEmptyOpts(){return Object.assign({},ox().table.emptyRender,this.emptyRender)},loadingOpts(){return this.computeLoadingOpts},computeLoadingOpts(){return Object.assign({},ox().table.loadingConfig,this.loadingConfig)},computeCellOffsetWidth(){return this.border?Math.max(2,Math.ceil(this.scrollbarWidth/this.tableColumn.length)):1},customOpts(){return this.computeCustomOpts},computeCustomOpts(){return Object.assign({},ox().table.customConfig,this.customConfig)},computeCustomSimpleMode(){const e=this,t=e,{minHeight:n,height:r}=t,i=e.computeCustomOpts,{mode:o,popupOptions:a,placement:s}=i;if((!s||"top-left"===s||"top-right"===s)&&"modal"!==o&&"drawer"!==o){const{mode:e}=a||{};if(!e||"auto"===e)return r||n?"inside":"outside";if(e)return e}return""},computeTableStyle(){const e=this,t=e.computeScrollbarOpts,{width:n,height:r}=t,i={};return n&&(i["--vxe-ui-table-view-scrollbar-width"]=lh(n)),r&&(i["--vxe-ui-table-view-scrollbar-height"]=lh(r)),i},computeTableRowExpandedList(){const e=this,t=e,n=e,{tableData:r,rowExpandedFlag:i,expandColumn:o,rowGroupExpandedFlag:a,treeExpandedFlag:s}=t,{visibleDataRowIdData:l,rowExpandedMaps:c}=n,u=[];return r.length&&o&&i&&a&&s&&pc.each(c,(e,t)=>{l[t]&&u.push(e)}),u},computeAutoWidthColumnList(){const{tableColumn:e,visibleColumn:t}=this;return e.length||t.length?t.filter(e=>"auto"===e.width||"auto"===e.minWidth):[]},computeFixedColumnSize(){const e=this,t=e,n=e,{tableColumn:r}=t,{collectColumn:i}=n;let o=0;return r.length&&i.length&&i.forEach(e=>{e.renderFixed&&o++}),o},fixedColumnSize(){const e=this;return e.computeFixedColumnSize},computeIsMaxFixedColumn(){const e=this,t=e.computeFixedColumnSize,n=e.columnOpts,{maxFixedSize:r}=n;return!!r&&t>=r},computeKeepFields(){const e=this,t=e,n=e,{tableFullColumn:r}=n,{updateColFlag:i}=t,o=e.computeEditDirtyOpts,{extraFields:a,includeFields:s,excludeFields:l}=o,c=[];if(i){const e={};if(l&&l.length&&l.forEach(t=>{e[t]=1}),s&&s.length)return l&&l.length?s.filter(t=>!e[t]):s;const t={};a&&a.length&&a.forEach(e=>{t[e]||(t[e]=1,c.push(e))});for(let n=0;n<r.length;n++){const i=r[n],{field:o,type:a,editRender:s,cellRender:l}=i;!o||a||!s&&!l||t[o]||e[o]||(t[o]=1,c.push(o))}}return c},computeTableBorder(){const e=this,t=e,{border:n}=t;return!0===n?"full":n||"default"},computeIsAllCheckboxDisabled(){const e=this,t=e,n=e,r=e,{treeConfig:i}=t,{tableData:o}=n,{tableFullData:a}=r,s=e.computeCheckboxOpts,{strict:l,checkMethod:c}=s;return!!l&&(!o.length&&!a.length||!!c&&a.every(t=>!c({$table:e,row:t})))},isAllCheckboxDisabled(){return this.computeIsAllCheckboxDisabled},computeVirtualScrollBars(){const e=this,t=e,{overflowX:n,scrollXLoad:r,overflowY:i,scrollYLoad:o}=t;return{x:n&&r,y:i&&o}},computeRowGroupFields(){const e=this,t=e.computeAggregateOpts;return t.groupFields},computeRowGroupColumns(){const e=this,t=e,n=e,{rowGroupList:r}=t,{fullColumnFieldData:i}=n,o=[];return r.forEach(e=>{const t=i[e.field];t&&o.push(t.column)}),o},computeAggFuncColumns(){const e=this,t=e,{rowGroupList:n,tableColumn:r}=t;return n.length?r.filter(e=>e.field&&e.aggFunc):[]},computeUndoRedoHistoryOpts(){const e=this,t=e;return Object.assign({},ox().table.undoRedoHistoryConfig,t.undoRedoHistoryConfig)},computeRendererOpts(){const e=this,t=e;return Object.assign({},ox().table.rendererConfig,t.rendererConfig)},combineTabsResizeFlag(){const e=this,t=e.$xeTabs;return t?t.reactData.resizeFlag:null},combineModalResizeFlag(){const e=this,t=e.$xeModal;return t?t.reactData.resizeFlag:null},combineSplitterResizeFlag(){const e=this,t=e.$xeSplitter;return t?t.reactData.resizeFlag:null},computeVxeLanguage(){return ad.getLanguage()},computeScrollbarVisible(){const e=this,t=e.computeScrollbarXOpts,n=e.computeScrollbarYOpts;return`${t.visible}${n.visible}`},computeCellConfHeitht(){const e=this,t=e.computeCellOpts;return t.height}}),watch:{data(e){const t=this,n=t,{initStatus:r}=this;e&&e.length>=2e4&&rx("vxe.error.errLargeData",["loadData(data), reloadData(data)"]),this.loadTableData(e||[],!0,!0).then(()=>{const{scrollXLoad:e,scrollYLoad:i,expandColumn:o}=n,a=t.computeExpandOpts;this.inited=!0,this.initStatus=!0,r||this.handleLoadDefaults(),(e||i)&&o&&"fixed"!==a.mode&&rx("vxe.error.scrollErrProp",["column.type=expand"]),this.recalculate()})},staticColumns(e){this.$nextTick(()=>this.handleInitColumn(pc.clone(e)))},tableColumn(){this.analyColumnWidth()},upDataFlag(){this.$nextTick().then(()=>this.updateData())},reColumnFlag(){this.$nextTick().then(()=>this.refreshColumn())},computeSize(){this.reLayoutFlag++},showHeader(){this.reLayoutFlag++},showFooter(){this.reLayoutFlag++},showHeaderOverflow(){this.reLayoutFlag++},showOverflow(){const e=this;vx(e),this.reLayoutFlag++},showFooterOverflow(){this.reLayoutFlag++},overflowX(){this.reLayoutFlag++},overflowY(){this.reLayoutFlag++},height(){this.reLayoutFlag++},maxHeight(){this.reLayoutFlag++},computeScrollbarXToTop(){this.reLayoutFlag++},computeScrollbarYToLeft(){this.reLayoutFlag++},computeVxeLanguage(){this.reLayoutFlag++},computeScrollbarVisible(){this.reLayoutFlag++},computeCellConfHeitht(){this.reLayoutFlag++},reLayoutFlag(){const e=this;e.$nextTick(()=>e.recalculate(!0))},footerData(){this.footFlag++},footFlag(){const e=this,t=e;t.footerFullDataRowData={},e.updateFooter()},updateColFlag(){this.kfFlag++},computeKeepFields(){this.kfFlag++},kfFlag(){const e=this,t=e,n=e.computeKeepFields,r={};n.forEach(e=>{r[e]=1}),t.keepUpdateFieldMaps=r},syncResize(e){const t=this;e&&(Cx(t),t.$nextTick(()=>{Cx(t),setTimeout(()=>Cx(t))}))},combineTabsResizeFlag(){this.layoutReFlag++},combineModalResizeFlag(){this.layoutReFlag++},combineSplitterResizeFlag(){this.layoutReFlag++},layoutReFlag(){this.handleGlobalResizeEvent()},mergeCells(e){const t=this;px(t,e)},mergeHeaderCells(e){const t=this;fx(t,e)},mergeFooterCells(){this.mergeFooteCellFlag++},mergeFooterItems(){this.mergeFooteCellFlag++},mergeFooteCellFlag(){const e=this,t=e,n=t.mergeFooterCells||t.mergeFooterItems;mx(e,n||[])},computeRowGroupFields(e){const t=this;t.handleUpdateRowGroup(e)},computeRowField(){const e=this,t=e,n=e,{inited:r,tableFullData:i}=n;r&&(gx(e),t.tableData=[],e.$nextTick(()=>{e.reloadData(i)}))},computeAggregateMode(){const e=this,t=e,n=e;t.isRowGroupStatus&&this.loadTableData(n.tableSynchData,!1,!0)}},created(){const e=this,t=e,n=e;pc.assign(n,Hh()),gx(e);const{editConfig:r,exportConfig:i,importConfig:o,treeConfig:a,minHeight:s,keepSource:l}=t,{scrollXStore:c,scrollYStore:u}=n,d=e.computeColumnOpts,h=e.computeColumnDragOpts,p=e.computeEditOpts,f=e.computeTreeOpts,m=e.computeRadioOpts,g=e.computeCheckboxOpts,v=e.computeExpandOpts,b=e.computeRowOpts,y=e.computeCustomOpts,x=e.computeMouseOpts,w=e.computeExportOpts,C=e.computeImportOpts,_=e.computeAggregateOpts,S=e.computeRowDragOpts,k=e.computeAreaOpts,E=e.computeSortOpts,O=e.computeFilterOpts,{groupFields:T}=_;if(t.rowId&&rx("vxe.error.delProp",["row-id","row-config.keyField"]),t.rowKey&&rx("vxe.error.delProp",["row-key","row-config.useKey"]),t.columnKey&&rx("vxe.error.delProp",["column-id","column-config.useKey"]),t.rowId||b.keyField||!(g.reserve||g.checkRowKeys||m.reserve||m.checkRowKey||v.expandRowKeys||f.expandRowKeys)||rx("vxe.error.reqProp",["row-config.keyField"]),r&&(l||(p.showStatus||p.showUpdateStatus||p.showInsertStatus)&&rx("vxe.error.reqSupportProp",["edit-config.showStatus | showUpdateStatus | showInsertStatus","keep-source"])),a&&!f.transform&&(E.isDeep&&rx("vxe.error.reqSupportProp",["transform=false","sort-config.isDeep=false"]),O.isDeep&&rx("vxe.error.reqSupportProp",["transform=false","filter-config.isDeep=false"])),!t.showFooter||t.footerMethod||t.footerData||rx("vxe.error.reqProp",["footer-data | footer-method"]),b.height&&rx("vxe.error.delProp",["row-config.height","cell-config.height"]),this.tooltipOpts.enabled&&rx("vxe.error.delProp",["tooltip-config.enabled","tooltip-config.showAll"]),this.highlightCurrentRow&&rx("vxe.error.delProp",["highlight-current-row","row-config.isCurrent"]),this.highlightHoverRow&&rx("vxe.error.delProp",["highlight-hover-row","row-config.isHover"]),this.highlightCurrentColumn&&rx("vxe.error.delProp",["highlight-current-column","column-config.isCurrent"]),this.highlightHoverColumn&&rx("vxe.error.delProp",["highlight-hover-column","column-config.isHover"]),t.resizable&&rx("vxe.error.delProp",["resizable","column-config.resizable"]),t.aggregateConfig&&t.rowGroupConfig&&rx("vxe.error.notSupportProp",["aggregate-config","row-group-config","row-group-config=null"]),o&&C.types&&!C.importMethod&&!pc.includeArrays(pc.keys(C._typeMaps),C.types)&&rx("vxe.error.errProp",[`export-config.types=${C.types.join(",")}`,C.types.filter(e=>pc.includes(pc.keys(C._typeMaps),e)).join(",")||pc.keys(C._typeMaps).join(",")]),i&&w.types&&!w.exportMethod&&!pc.includeArrays(pc.keys(w._typeMaps),w.types)&&rx("vxe.error.errProp",[`export-config.types=${w.types.join(",")}`,w.types.filter(e=>pc.includes(pc.keys(w._typeMaps),e)).join(",")||pc.keys(w._typeMaps).join(",")]),i&&pc.isBoolean(w.isAllExpand)&&rx("vxe.error.delProp",["isAllExpand","isTreeAllExpanded"]),t.id||(t.customConfig?ld(y):y.enabled)&&y.storage&&ix("vxe.error.reqProp",["id"]),a&&g.range&&ix("vxe.error.noTree",["checkbox-config.range"]),b.height&&!this.showOverflow&&rx("vxe.error.notProp",["table.show-overflow"]),!e.triggerClAreaMnEvent){if(t.areaConfig&&rx("vxe.error.notProp",["area-config"]),t.clipConfig&&rx("vxe.error.notProp",["clip-config"]),t.fnrConfig&&rx("vxe.error.notProp",["fnr-config"]),x.area)return void ix("vxe.error.notProp",["mouse-config.area"]);x.area&&k.selectCellByHeader&&d.drag&&"cell"===h.trigger&&ix("vxe.error.notSupportProp",["area-config.selectCellByHeader & column-config.drag","column-drag-config.trigger=cell","column-drag-config.trigger=default | area-config.selectCellByHeader=false"]),x.area&&t.spanMethod&&rx("vxe.error.notSupportProp",["mouse-config.area","span-method","merge-cells"])}if(!e.handlePivotTableAggData){if(y.allowGroup)return void ix("vxe.error.notProp",["custom-config.allowGroup"]);if(y.allowValues)return void ix("vxe.error.notProp",["custom-config.allowValues"])}a&&b.drag&&!f.transform&&rx("vxe.error.notSupportProp",["row-config.drag","tree-config.transform=false","tree-config.transform=true"]),a&&S.isCrossTableDrag&&!S.isCrossDrag&&ix("vxe.error.reqSupportProp",["tree-config & row-drag-config.isCrossTableDrag","row-drag-config.isCrossDrag"]),t.dragConfig&&rx("vxe.error.delProp",["drag-config","row-drag-config"]),t.rowGroupConfig&&rx("vxe.error.delProp",["row-group-config","aggregate-config"]),_.countFields&&rx("vxe.error.delProp",["row-group-config.countFields","column.agg-func"]),_.aggregateMethod&&rx("vxe.error.delProp",["row-group-config.aggregateMethod","aggregate-config.calcValuesMethod"]),_.countMethod&&rx("vxe.error.delProp",["aggregate-config.countMethod","aggregate-config.calcValuesMethod"]),t.treeConfig&&f.children&&rx("vxe.error.delProp",["tree-config.children","tree-config.childrenField"]),t.treeConfig&&f.line&&rx("vxe.error.delProp",["tree-config.line","tree-config.showLine"]),x.area&&x.selected&&rx("vxe.error.errConflicts",["mouse-config.area","mouse-config.selected"]),x.area&&t.treeConfig&&!f.transform&&ix("vxe.error.notSupportProp",["mouse-config.area","tree-config.transform=false","tree-config.transform=true"]),t.editConfig&&p.activeMethod&&rx("vxe.error.delProp",["table.edit-config.activeMethod","table.edit-config.beforeEditMethod"]),g.halfField&&rx("vxe.error.delProp",["checkbox-config.halfField","checkbox-config.indeterminateField"]),t.editConfig&&ld(p)&&t.editRules&&(0===s||"0"===s)&&rx("vxe.error.reqSupportProp",["edit-config & edit-rules","min-height"]),a&&pc.arrayEach(["rowField","parentField","childrenField","hasChildField","mapChildrenField"],e=>{const t=f[e];t&&t.indexOf(".")>-1&&ix("vxe.error.errProp",[`${e}=${t}`,`${e}=${t.split(".")[0]}`])}),this.contextMenu&&(rx("vxe.error.delProp",["context-menu","menu-config"]),pc.isObject(this.contextMenu)||rx("vxe.error.errProp",[`table.context-menu=${this.contextMenu}`,"table.context-menu={}"])),t.menuConfig&&!pc.isObject(t.menuConfig)&&rx("vxe.error.errProp",[`table.menu-config=${t.menuConfig}`,"table.menu-config={}"]),t.exportConfig&&!pc.isObject(t.exportConfig)&&rx("vxe.error.errProp",[`table.export-config=${t.exportConfig}`,"table.export-config={}"]),t.importConfig&&!pc.isObject(t.importConfig)&&rx("vxe.error.errProp",[`table.import-config=${t.importConfig}`,"table.import-config={}"]),t.printConfig&&!pc.isObject(t.printConfig)&&rx("vxe.error.errProp",[`table.print-config=${t.printConfig}`,"table.print-config={}"]),t.treeConfig&&!pc.isObject(t.treeConfig)&&rx("vxe.error.errProp",[`table.tree-config=${t.treeConfig}`,"table.tree-config={}"]),t.customConfig&&!pc.isObject(t.customConfig)&&rx("vxe.error.errProp",[`table.custom-config=${t.customConfig}`,"table.custom-config={}"]),t.editConfig&&!pc.isObject(t.editConfig)&&rx("vxe.error.errProp",[`table.edit-config=${t.editConfig}`,"table.edit-config={}"]),t.emptyRender&&!pc.isObject(t.emptyRender)&&rx("vxe.error.errProp",[`table.empty-render=${t.emptyRender}`,"table.empty-render={}"]),b.currentMethod&&rx("vxe.error.delProp",["row-config.currentMethod","current-row-config.beforeSelectMethod"]),d.currentMethod&&rx("vxe.error.delProp",["row-config.currentMethod","current-column-config.beforeSelectMethod"]),t.editConfig&&!e.insert&&ix("vxe.error.reqModule",["Edit"]),t.editRules&&!e.validate&&ix("vxe.error.reqModule",["Validator"]),(g.range||t.keyboardConfig||t.mouseConfig)&&!e.handleCellMousedownEvent&&ix("vxe.error.reqModule",["Keyboard"]),(t.printConfig||t.importConfig||t.exportConfig)&&!e.exportData&&ix("vxe.error.reqModule",["Export"]),Object.assign(u,{startIndex:0,endIndex:1,visibleSize:0}),Object.assign(c,{startIndex:0,endIndex:1,visibleSize:0}),this.handleUpdateRowGroup(T),this.initData(),ux.on(e,"paste",this.handleGlobalPasteEvent),ux.on(e,"copy",this.handleGlobalCopyEvent),ux.on(e,"cut",this.handleGlobalCutEvent),ux.on(e,"mousedown",this.handleGlobalMousedownEvent),ux.on(e,"blur",this.handleGlobalBlurEvent),ux.on(e,"mousewheel",this.handleGlobalMousewheelEvent),ux.on(e,"keydown",this.handleGlobalKeydownEvent),ux.on(e,"resize",this.handleGlobalResizeEvent),ux.on(e,"scroll",this.handleGlobalScrollEvent),ux.on(e,"contextmenu",this.handleGlobalContextmenuEvent),e.preventEvent(null,"created")},mounted(){const e=this,t=e,n=e,r=e.$xeGrid,i=e.$xeGantt,o=r||i,a=e.computeColumnOpts,s=e.computeRowOpts,l=e.computeCustomOpts,c=e.computeVirtualYOpts;if(i){const t=i.$refs.refClassifyWrapperElem,r=e.$refs.refTeleportWrapper;t&&(r&&t.appendChild(r),n.teleportToWrapperElem=t)}if(o){const t=o.$refs.refPopupContainerElem,r=e.$refs.refPopupWrapperElem;t&&(r&&t.appendChild(r),n.popupToWrapperElem=t)}(a.drag||s.drag||l.allowSort)&&Qd();const{$listeners:u}=this;if(!this.menuConfig&&(u["menu-click"]||u["cell-menu"]||u["header-cell-menu"]||u["footer-cell-menu"])&&rx("vxe.error.reqProp",["menu-config"]),this.tooltipConfig||!u["cell-mouseenter"]&&!u["cell-mouseleave"]||rx("vxe.error.reqProp",["tooltip-config"]),e.$nextTick(()=>{const n=ad.getComponent("VxeLoading"),r=ad.getComponent("VxeTooltip"),{showOverflow:i,showHeaderOverflow:o,showFooterOverflow:a}=t,s=e.computeTooltipOpts,l=e.computeHeaderTooltipOpts,c=e.computeFooterTooltipOpts;if(t.loading&&(n||this.$scopedSlots.loading||(ix("vxe.error.reqComp",["vxe-loading"]),ix("vxe.error.errProp",["loading=true","loading=false | <template #loading>...</template>"]))),!r){let e=!1;"tooltip"===i&&(e=!0,ix("vxe.error.errProp",["show-overflow="+i,"show-overflow=false,title,ellipsis"])),!0===i&&"tooltip"===s.mode&&(e=!0,ix("vxe.error.notSupportProp",["show-overflow="+i,"tooltip-config.mode=tooltip","tooltip-config.mode=title,ellipsis"])),"tooltip"===o&&(e=!0,ix("vxe.error.errProp",["show-header-overflow="+o,"show-header-overflow=false,title,ellipsis"])),!0===o&&"tooltip"===l.mode&&(e=!0,ix("vxe.error.notSupportProp",["show-header-overflow="+o,"header-tooltip-config.mode=tooltip","header-tooltip-config.mode=title,ellipsis"])),"tooltip"===a&&(e=!0,ix("vxe.error.errProp",["show-footer-overflow="+a,"show-footer-overflow=false,title,ellipsis"])),!0===a&&"tooltip"===c.mode&&(e=!0,ix("vxe.error.notSupportProp",["show-footer-overflow="+a,"footer-tooltip-config.mode=tooltip","footer-tooltip-config.mode=title,ellipsis"])),e&&ix("vxe.error.reqComp",["vxe-tooltip"])}if(this.autoResize){const e=cx.create(()=>{this.autoResize&&this.handleResizeEvent()});e.observe(this.$el),e.observe(this.getParentElem()),this.$resize=e}}),"scroll"!==c.mode){const t=e.$refs.refTableViewportElem;t&&t.addEventListener("wheel",e.triggerBodyWheelEvent,{passive:!1})}e.preventEvent(null,"mounted")},activated(){this.recalculate().then(()=>this.refreshScroll()),this.preventEvent(null,"activated")},deactivated(){const e=this,t=e,n=e,{filterStore:r}=t;r.visible&&e.clearFilter(),e.closeTooltip(),n.isActivated=!1,this.preventEvent(null,"deactivated")},beforeDestroy(){const e=this,t=e,n=e,{_sToTime:r}=n;r&&clearTimeout(r);const i=e.$refs.refTeleportWrapper;i&&i.parentElement&&i.parentElement.removeChild(i);const o=e.$refs.refPopupWrapperElem;o&&o.parentElement&&o.parentElement.removeChild(o);const a=e.$refs.refCustomPopupToElem;a&&a.parentElement&&a.parentElement.removeChild(a);const s=e.$refs.refTableViewportElem;s&&s.removeEventListener("wheel",e.triggerBodyWheelEvent),this.$resize&&this.$resize.disconnect(),e.closeTooltip(),e.closeFilter(),e.closeMenu(),ux.off(e,"paste"),ux.off(e,"copy"),ux.off(e,"cut"),ux.off(e,"mousedown"),ux.off(e,"blur"),ux.off(e,"mousewheel"),ux.off(e,"keydown"),ux.off(e,"resize"),ux.off(e,"scroll"),ux.off(e,"contextmenu"),e.preventEvent(null,"beforeDestroy"),pc.assign(t,Wh()),pc.assign(n,Hh())},destroyed(){const e=this;e.preventEvent(null,"destroyed")},render(e){const t=ad.getComponent("VxeLoading"),n=ad.getComponent("VxeTooltip"),r=this,i=r.$xeGrid,o=r.$xeGantt,a=r,s=r.$scopedSlots,l=r,{xID:c}=r,{loading:u,stripe:d,showHeader:h,height:p,treeConfig:f,mouseConfig:m,showFooter:g,highlightCell:v,highlightHoverRow:b,highlightHoverColumn:y,editConfig:x,editRules:w}=a,{isGroup:C,overflowX:_,overflowY:S,scrollXLoad:k,scrollYLoad:E,tableData:O,initStore:T,isRowGroupStatus:$,columnStore:D,filterStore:M,customStore:F,tooltipStore:R}=l,{leftList:I,rightList:A}=D,P=s.loading,L={header:s.headerTooltip||s["header-tooltip"],body:s.tooltip,footer:s.footerTooltip||s["footer-tooltip"]},N=R.visible&&R.type?L[R.type]:null,j=r.computeTableStyle,B=r.computeRowDragOpts,V=r.computeTableTipConfig,z=r.computeValidTipConfig,H=r.computeValidOpts,W=r.computeCheckboxOpts,q=r.computeTreeOpts,G=r.computeRowOpts,Y=r.computeColumnOpts,U=r.computeSize,K=r.computeTableBorder,X=r.computeMouseOpts,Z=r.computeAreaOpts,Q=r.computeLoadingOpts,J=r.computeIsContentMenu,ee=l.isColLoading||l.isRowLoading||u,te=r.computeResizableOpts,ne=m&&X.area,re=r.computeColumnDragOpts,ie=r.computeScrollbarXToTop,oe=r.computeScrollbarYToLeft,{isCrossTableDrag:ae}=B,se={contextmenu:this.contextMenuEvent,keydown:this.keydownEvent};return ae&&!O.length&&(se.dragover=r.handleCrossTableRowDragoverEmptyEvent),e("div",{ref:"refElem",class:["vxe-table","vxe-table--render-default",`tid_${c}`,`border--${K}`,"sx-pos--"+(ie?"top":"bottom"),"sy-pos--"+(oe?"left":"right"),{[`size--${U}`]:U,[`valid-msg--${H.msgMode}`]:!!w,"vxe-editable":!!x,"old-cell-valid":w&&"obsolete"===ox().cellVaildMode,"cell--highlight":v,"cell--selected":m&&X.selected,"cell--area":ne,"header-cell--area":ne&&Z.selectCellByHeader,"body-cell--area":ne&&Z.selectCellByBody,"row--highlight":G.isHover||b,"column--highlight":Y.isHover||y,"checkbox--range":W.range,"col--drag-cell":Y.drag&&"cell"===re.trigger,"is--header":h,"not--header":!h,"is--footer":g,"not--footer":!g,"is--group":C,"is-row-group":$,"is--tree-line":f&&(q.showLine||q.line),"is--fixed-left":I.length,"is--fixed-right":A.length,"is--animat":!!a.animat,"is--round":a.round,"is--stripe":!f&&d,"is--loading":ee,"is--empty":!ee&&!O.length,"is--scroll-y":S,"not--scroll-y":!S,"is--scroll-x":_,"not--scroll-x":!_,"is--virtual-x":k,"is--virtual-y":E}],style:j,attrs:{spellcheck:!1},on:se},[e("div",{class:"vxe-table-slots",ref:"hideColumn"},this.$slots.default),e("div",{ref:"refVarElem",class:"vxe-table-vars"},[e("div",{class:"vxe-table-var-default"}),e("div",{class:"vxe-table-var-medium"}),e("div",{class:"vxe-table-var-small"}),e("div",{class:"vxe-table-var-mini"})]),e("div",{key:"tw",class:"vxe-table--render-wrapper"},ie?[Sx(e,r),Ox(e,r)]:[Ox(e,r),Sx(e,r)]),e("div",{key:"tn",ref:"refEmptyPlaceholder",class:"vxe-table--empty-place-wrapper",attrs:{xid:c}},[e("div",{class:"vxe-table--empty-placeholder"},[e("div",{class:"vxe-table--empty-content"},yx(e,r))])]),e("div",{key:"tl",class:"vxe-table--border-line"}),e("div",{key:"tcl",ref:"refColResizeBar",class:"vxe-table--resizable-col-bar"},te.showDragTip?[e("div",{ref:"refColResizeTip",class:"vxe-table--resizable-number-tip"})]:[]),e("div",{key:"ttw"},[e("div",{ref:"refTeleportWrapper"},[e("div",{key:"trl",ref:"refRowResizeBar",class:"vxe-table--resizable-row-bar"},te.showDragTip?[e("div",{class:"vxe-table--resizable-number-tip"})]:[]),t?e(t,{key:"lg",class:"vxe-table--loading",props:{value:ee,icon:Q.icon,text:Q.text},scopedSlots:P?{default:()=>r.callSlot(P,{$table:r,$grid:i,$gantt:o,loading:ee},e)}:{}}):P?e("div",{class:["vxe-loading--custom-wrapper",{"is--visible":ee}]},r.callSlot(P,{$table:r,$grid:i,$gantt:o,loading:ee},e)):hx(r),wx(e,this)])]),e("div",{key:"fpw",ref:"refCustomContainerElem"},[e("div",{ref:"refCustomPopupToElem"},[T.custom?e(Vv,{key:"cs",ref:"refTableCustom",props:{customStore:F}}):hx(r)])]),e("div",{key:"tpw"},[e("div",{ref:"refPopupWrapperElem"},[T.filter?e(Kv,{key:"tf",ref:"refTableFilter",props:{filterStore:M}}):hx(r),J?e(db,{key:"tm",ref:"refTableMenu"}):hx(r)])]),T.import&&this.importConfig?e(tb,{key:"it",props:{defaultOptions:this.importParams,storeData:this.importStore}}):hx(r),T.export&&(this.exportConfig||this.printConfig)?e(sb,{key:"et",props:{defaultOptions:this.exportParams,storeData:this.exportStore}}):hx(r),e("div",{},[n?e(n,{key:"ctp",ref:"refCommTooltip",props:{isArrow:!1,enterable:!1}}):hx(r),n?e(n,{key:"btp",ref:"refTooltip",props:{theme:V.theme,enterable:V.enterable,enterDelay:V.enterDelay,leaveDelay:V.leaveDelay,useHtml:pc.isBoolean(V.useHtml)?V.useHtml:void 0,useHTML:pc.isBoolean(V.useHTML)?V.useHTML:void 0,width:V.width,height:V.height,minWidth:V.minWidth,minHeight:V.minHeight,maxWidth:V.maxWidth,maxHeight:V.maxHeight,placement:V.placement,defaultPlacement:V.defaultPlacement,popupClassName:V.popupClassName},scopedSlots:N?{content:()=>{const{type:t,row:n,column:a,content:s}=R;if(N){if(a&&"header"===t)return e("div",{key:t},N({column:a,tooltipContent:s,$table:r,$grid:i,$gantt:o}));if(n&&a&&"body"===t)return e("div",{key:t},N({row:n,column:a,tooltipContent:s,$table:r,$grid:i,$gantt:o}));if(n&&a&&"footer"===t)return e("div",{key:t},N({row:n,column:a,tooltipContent:s,$table:r,$grid:i,$gantt:o}))}return hx(r)}}:{}}):hx(r),n&&this.editRules&&H.showErrorMessage&&("default"===H.message?!p:"tooltip"===H.message)?e(n,{key:"vtp",ref:"refValidTooltip",class:[{"old-cell-valid":w&&"obsolete"===ox().cellVaildMode},"vxe-table--valid-error"],props:{theme:z.theme,enterable:z.enterable,enterDelay:z.enterDelay,leaveDelay:z.leaveDelay}}):hx(r)])])},methods:cv},{warnLog:$x,errLog:Dx}=Ih("toolbar"),{getConfig:Mx,getIcon:Fx,getI18n:Rx,renderer:Ix,commands:Ax,createEvent:Px,globalMixins:Lx,renderEmptyElement:Nx}=ad;function jx(){return{isRefresh:!1,connectFlag:0,columns:[]}}function Bx(){return{connectTable:null}}const Vx={name:"VxeToolbar",mixins:[Lx.sizeMixin],props:{loading:Boolean,refresh:[Boolean,Object],refreshOptions:Object,import:[Boolean,Object],importOptions:Object,export:[Boolean,Object],exportOptions:Object,print:[Boolean,Object],printOptions:Object,zoom:[Boolean,Object],zoomOptions:Object,custom:[Boolean,Object],customOptions:Object,buttons:{type:Array,default:()=>Mx().toolbar.buttons},tools:{type:Array,default:()=>Mx().toolbar.tools},perfect:{type:Boolean,default:()=>Mx().toolbar.perfect},size:{type:String,default:()=>Mx().toolbar.size||Mx().size},className:[String,Function]},inject:{$xeGrid:{default:null},$xeGantt:{default:null}},data(){const e=pc.uniqueId(),t=jx();return Object.assign(Object.assign({},{}),{xID:e,reactData:t})},computed:Object.assign(Object.assign({},{}),{computeRefreshOpts(){const e=this,t=e;return Object.assign({},pc.clone(Mx().toolbar.refresh,!0),t.refreshOptions,t.refresh)},computeImportOpts(){const e=this,t=e;return Object.assign({},pc.clone(Mx().toolbar.import,!0),t.importOptions,t.import)},computeExportOpts(){const e=this,t=e;return Object.assign({},pc.clone(Mx().toolbar.export,!0),t.exportOptions,t.export)},computePrintOpts(){const e=this,t=e;return Object.assign({},pc.clone(Mx().toolbar.print,!0),t.printOptions,t.print)},computeZoomOpts(){const e=this,t=e;return Object.assign({},pc.clone(Mx().toolbar.zoom,!0),t.zoomOptions,t.zoom)},computeCustomOpts(){const e=this,t=e;return Object.assign({},pc.clone(Mx().toolbar.custom,!0),t.customOptions,t.custom)},computeTableCustomOpts(){const e=this,t=e.reactData,n=e.internalData,{connectTable:r}=n,i=r;return(t.connectFlag||i)&&i?i.computeCustomOpts:{trigger:""}},computeTrigger(){const e=this,t=e.computeTableCustomOpts;return t.trigger}}),methods:{dispatchEvent(e,t,n){const r=this;r.$emit(e,Px(n,{$toolbar:r},t))},fintTable(){const e=this,{$children:t}=this.$parent,n=t.indexOf(e);return pc.find(t,(e,t)=>e&&e.loadData&&t>n&&"vxe-table"===e.$vnode.componentOptions.tag)},syncUpdate(e){const t=this,n=t.reactData,r=t.internalData;r.connectTable=e.$table,n.columns=e.collectColumn,n.connectFlag++},checkTable(){const e=this,t=e.internalData,{connectTable:n}=t,r=n;if(r)return!0;Dx("vxe.error.barUnableLink")},handleClickSettingEvent({$event:e}){const t=this,n=t.internalData,{connectTable:r}=n,i=r;i&&i.triggerCustomEvent&&i.triggerCustomEvent(e)},handleMouseenterSettingEvent({$event:e}){const t=this,n=t.internalData,{connectTable:r}=n,i=r;i&&i.customOpenEvent(e)},handleMouseleaveSettingEvent({$event:e}){const t=this,n=t.internalData,{connectTable:r}=n,i=r;if(i){const{customStore:t}=i.reactData;t.activeBtn=!1,setTimeout(()=>{t.activeBtn||t.activeWrapper||i.customCloseEvent(e)},350)}},refreshEvent({$event:e}){const t=this,n=t.reactData,r=t.$xeGrid,i=t.$xeGantt,o=r||i,{isRefresh:a}=n,s=t.computeRefreshOpts;if(!a){const t=s.queryMethod||s.query;if(t){n.isRefresh=!0;try{Promise.resolve(t({})).catch(e=>e).then(()=>{n.isRefresh=!1})}catch(l){n.isRefresh=!1}}else o&&(n.isRefresh=!0,o.triggerToolbarCommitEvent({code:s.code||"reload"},e).catch(()=>{}).then(()=>{n.isRefresh=!1}))}},zoomEvent({$event:e}){const t=this,n=t.$xeGrid,r=t.$xeGantt,i=n||r;i?i.triggerZoomEvent(e):$x("vxe.error.notProp",["zoom"])},importEvent(){const e=this,t=e.internalData;if(e.checkTable()){const{connectTable:e}=t,n=e;n&&n.importData()}},openImportEvent(){const e=this,t=e.internalData;if(e.checkTable()){const{connectTable:e}=t,n=e;n&&n.openImport()}},exportEvent(){const e=this,t=e.internalData;if(e.checkTable()){const{connectTable:e}=t,n=e;n&&n.exportData()}},openExportEvent(){const e=this,t=e.internalData;if(e.checkTable()){const{connectTable:e}=t,n=e;n&&n.openExport()}},printEvent(){const e=this,t=e.internalData;if(e.checkTable()){const{connectTable:e}=t,n=e;n&&n.print()}},openPrintEvent(){const e=this,t=e.internalData;if(e.checkTable()){const{connectTable:e}=t,n=e;n&&n.openPrint()}},handleDefaultCodeEvent(e,t,n){const r=this;switch(t.code){case"print":r.printEvent();break;case"open_print":r.openPrintEvent();break;case"custom":r.handleClickSettingEvent(e);break;case"export":r.exportEvent();break;case"open_export":r.openExportEvent();break;case"import":r.importEvent();break;case"open_import":r.openImportEvent();break;case"zoom":r.zoomEvent(e);break;case"refresh":r.refreshEvent(e);break;default:n();break}},btnEvent(e,t){const n=this,r=n.internalData,i=n.$xeGrid,o=n.$xeGantt,a=i||o,{$event:s}=e,{connectTable:l}=r,c=l,{code:u}=t;u&&n.handleDefaultCodeEvent(e,t,()=>{if(a)a.triggerToolbarBtnEvent(t,s);else{const e=Ax.get(u),r={code:u,button:t,$table:c,$grid:i,$gantt:o,$event:s};if(e){const t=e.tableCommandMethod||e.commandMethod;t?t(r):Dx("vxe.error.notCommands",[u])}n.dispatchEvent("button-click",r,s)}})},tolEvent(e,t){const n=this,r=n.internalData,i=n.$xeGrid,o=n.$xeGantt,a=i||o,{$event:s}=e,{connectTable:l}=r,c=l,{code:u}=t;u&&n.handleDefaultCodeEvent(e,t,()=>{if(a)a.triggerToolbarTolEvent(t,s);else{const e=Ax.get(u),r={code:u,button:null,tool:t,$table:c,$grid:i,$gantt:o,$event:s};if(e){const t=e.tableCommandMethod||e.commandMethod;t?t(r):Dx("vxe.error.notCommands",[u])}n.dispatchEvent("tool-click",r,s)}})},renderDropdowns(e,t,n){const r=ad.getComponent("VxeButton"),i=this,{dropdowns:o}=t,a=[];return o?o.map((t,o)=>!1===t.visible?Nx(i):r?e(r,{key:o,props:Object.assign({},t,{content:t.content||t.name,options:void 0}),on:{click:e=>n?i.btnEvent(e,t):i.tolEvent(e,t)}}):Nx(i)):a},renderLeftBtns(e){const t=ad.getComponent("VxeButton"),n=this,r=n,i=n.$scopedSlots,o=n.internalData,a=n.$xeGrid,s=n.$xeGantt,{buttons:l}=r,{connectTable:c}=o,u=c,d=i.buttons,h=i.buttonPrefix||i["button-prefix"],p=i.buttonSuffix||i["button-suffix"],f=[];if(l){const r=(u?u.computeRendererOpts:null)||{};l.forEach(i=>{const{dropdowns:o,buttonRender:l}=i;if(!1!==i.visible){const c=l&&l.name?r[l.name]||Ix.get(l.name):null;if(l&&c&&c.renderToolbarButton){const t=c.toolbarButtonClassName,n={$grid:a,$gantt:s,$table:u,button:i};f.push(e("span",{class:["vxe-button--item",t?pc.isFunction(t)?t(n):t:""]},Bp(c.renderToolbarButton(e,l,n))))}else t&&f.push(e(t,{props:Object.assign({},i,{content:i.content||i.name,options:void 0}),on:{click:e=>n.btnEvent(e,i)},scopedSlots:o&&o.length?{dropdowns:()=>n.renderDropdowns(e,i,!0)}:{}}))}})}return[e("div",{class:"vxe-button--prefix-wrapper"},h?Bp(h.call(n,{buttons:l||[],$grid:a,$gantt:s,$table:u})):[]),e("div",{class:"vxe-button--item-wrapper"},d?Bp(d.call(n,{buttons:l||[],$grid:a,$gantt:s,$table:u})):f),e("div",{class:"vxe-button--suffix-wrapper"},p?Bp(p.call(n,{buttons:l||[],$grid:a,$gantt:s,$table:u})):[])]},renderRightTools(e){const t=ad.getComponent("VxeButton"),n=this,r=n,i=n.$scopedSlots,o=n.internalData,a=n.$xeGrid,s=n.$xeGantt,{tools:l}=r,{connectTable:c}=o,u=c,d=i.tools,h=i.toolPrefix||i["tool-prefix"],p=i.toolSuffix||i["tool-suffix"],f=[];if(l){const r=(u?u.computeRendererOpts:null)||{};l.forEach((i,o)=>{const{dropdowns:l,toolRender:c}=i;if(!1!==i.visible){const d=c&&c.name?r[c.name]||Ix.get(c.name):null;if(c&&d&&d.renderToolbarTool){const t=d.toolbarToolClassName,n={$grid:a,$gantt:s,$table:u,tool:i};f.push(e("span",{key:o,class:["vxe-tool--item",t?pc.isFunction(t)?t(n):t:""]},Bp(d.renderToolbarTool(e,c,n))))}else t&&f.push(e(t,{key:o,props:Object.assign({},i,{content:i.content||i.name,options:void 0}),on:{click:e=>n.tolEvent(e,i)},scopedSlots:l&&l.length?{dropdowns:()=>n.renderDropdowns(e,i,!1)}:{}}))}})}return[e("div",{class:"vxe-tool--prefix-wrapper"},h?Bp(h.call(n,{tools:l||[],$grid:a,$gantt:s,$table:u})):[]),e("div",{class:"vxe-tool--item-wrapper"},d?Bp(d.call(n,{tools:l||[],$grid:a,$gantt:s,$table:u})):f),e("div",{class:"vxe-tool--suffix-wrapper"},p?Bp(p.call(n,{tools:l||[],$grid:a,$gantt:s,$table:u})):[])]},renderToolImport(e){const t=ad.getComponent("VxeButton"),n=this,r=n.computeImportOpts;return t?e(t,{key:"import",props:{circle:!0,icon:r.icon||Fx().TOOLBAR_TOOLS_IMPORT,title:Rx("vxe.toolbar.import")},on:{click:n.openImportEvent}}):Nx(n)},renderToolExport(e){const t=ad.getComponent("VxeButton"),n=this,r=n.computeExportOpts;return t?e(t,{key:"export",props:{circle:!0,icon:r.icon||Fx().TOOLBAR_TOOLS_EXPORT,title:Rx("vxe.toolbar.export")},on:{click:n.openExportEvent}}):Nx(n)},renderToolPrint(e){const t=ad.getComponent("VxeButton"),n=this,r=n.computePrintOpts;return t?e(t,{key:"print",props:{circle:!0,icon:r.icon||Fx().TOOLBAR_TOOLS_PRINT,title:Rx("vxe.toolbar.print")},on:{click:n.openPrintEvent}}):Nx(n)},renderToolRefresh(e){const t=ad.getComponent("VxeButton"),n=this,r=n.reactData,i=n.computeRefreshOpts;return t?e(t,{key:"refresh",props:{circle:!0,icon:r.isRefresh?i.iconLoading||Fx().TOOLBAR_TOOLS_REFRESH_LOADING:i.icon||Fx().TOOLBAR_TOOLS_REFRESH,title:Rx("vxe.toolbar.refresh")},on:{click:n.refreshEvent}}):Nx(n)},renderToolZoom(e){const t=ad.getComponent("VxeButton"),n=this,r=n.$xeGrid,i=n.$xeGantt,o=r||i,a=n.computeZoomOpts;return o&&t?e(t,{key:"zoom",props:{circle:!0,icon:o.isMaximized()?a.iconOut||Fx().TOOLBAR_TOOLS_MINIMIZE:a.iconIn||Fx().TOOLBAR_TOOLS_FULLSCREEN,title:Rx("vxe.toolbar.zoom"+(o.isMaximized()?"Out":"In"))},on:{click:n.zoomEvent}}):Nx(n)},renderToolCustom(e){const t=ad.getComponent("VxeButton"),n=this,r=n.computeCustomOpts,i=n.computeTrigger,o={};return"manual"===i||("hover"===i?(o.mouseenter=n.handleMouseenterSettingEvent,o.mouseleave=n.handleMouseleaveSettingEvent):o.click=n.handleClickSettingEvent),t?e(t,{key:"custom",props:{circle:!0,icon:r.icon||Fx().TOOLBAR_TOOLS_CUSTOM,title:Rx("vxe.toolbar.custom"),className:"vxe-toolbar-custom-target"},on:o}):Nx(n)},renderVN(e){const t=this,n=t,r=t.$xeGrid,i=t.$xeGantt,o=r||i,{perfect:a,loading:s,refresh:l,zoom:c,custom:u,className:d}=n,h=t.computeSize;return e("div",{ref:"refElem",class:["vxe-toolbar",d?pc.isFunction(d)?d({$toolbar:t}):d:"",{[`size--${h}`]:h,"is--perfect":a,"is--loading":s}]},[e("div",{class:"vxe-buttons--wrapper"},t.renderLeftBtns(e)),e("div",{class:"vxe-tools--wrapper"},t.renderRightTools(e)),e("div",{class:"vxe-tools--operate"},[n.import?t.renderToolImport(e):Nx(t),n.export?t.renderToolExport(e):Nx(t),n.print?t.renderToolPrint(e):Nx(t),l?t.renderToolRefresh(e):Nx(t),c&&o?t.renderToolZoom(e):Nx(t),u?t.renderToolCustom(e):Nx(t)])])}},created(){const e=this,t=e,n=e.$xeGrid,r=e.$xeGantt,i=n||r;e.internalData=Bx(),e.$nextTick(()=>{const n=e.computeRefreshOpts,r=e.fintTable(),o=n.queryMethod||n.query;!t.refresh||i||o||$x("vxe.error.notFunc",["queryMethod"]),pc.isPlainObject(t.custom)&&$x("vxe.error.delProp",["custom={...}","custom=boolean & custom-options={...}"]),pc.isPlainObject(t.print)&&$x("vxe.error.delProp",["print={...}","print=boolean & print-options={...}"]),pc.isPlainObject(t.export)&&$x("vxe.error.delProp",["export={...}","export=boolean & export-options={...}"]),pc.isPlainObject(t.import)&&$x("vxe.error.delProp",["import={...}","import=boolean & import-options={...}"]),pc.isPlainObject(t.refresh)&&$x("vxe.error.delProp",["refresh={...}","refresh=boolean & refresh-options={...}"]),pc.isPlainObject(t.refresh)&&$x("vxe.error.delProp",["zoom={...}","zoom=boolean & zoom-options={...}"]),r&&r.connect(e);const a=e.computeCustomOpts;a.isFooter&&$x("vxe.error.delProp",["toolbar.custom.isFooter","table.custom-config.showFooter"]),a.showFooter&&$x("vxe.error.delProp",["toolbar.custom.showFooter","table.custom-config.showFooter"]),a.immediate&&$x("vxe.error.delProp",["toolbar.custom.immediate","table.custom-config.immediate"]),a.trigger&&$x("vxe.error.delProp",["toolbar.custom.trigger","table.custom-config.trigger"])});const o=ad.getComponent("VxeButton");(t.refresh||t.import||t.export||t.print||t.zoom)&&(o||Dx("vxe.error.reqComp",["vxe-button"]))},destroyed(){const e=this,t=e.reactData,n=e.internalData;pc.assign(t,jx()),pc.assign(n,Bx())},render(e){return this.renderVN(e)}},{warnLog:zx,errLog:Hx}=Ih("grid"),{getConfig:Wx,getI18n:qx,commands:Gx,globalEvents:Yx,globalMixins:Ux,createEvent:Kx,GLOBAL_EVENT_KEYS:Xx,renderEmptyElement:Zx}=ad,Qx={},Jx=Object.keys(vf),ew=[["Form"],["Toolbar","Top","Table","Bottom","Pager"]];function tw(e){const{$listeners:t,proxyConfig:n,proxyOpts:r}=e,i={};return pc.each(t,(t,n)=>{i[n]=(...t)=>{e.$emit(n,...t)}}),n&&(r.sort&&(i["sort-change"]=e.sortChangeEvent,i["clear-all-sort"]=e.clearAllSortEvent),r.filter&&(i["filter-change"]=e.filterChangeEvent,i["clear-all-filter"]=e.clearAllFilterEvent)),i}function nw(){var e;return{tableLoading:!1,proxyInited:!1,isZMax:!1,tableData:[],filterData:[],formData:{},sortData:[],footerData:[],tZindex:0,tablePage:{total:0,pageSize:(null===(e=Wx().pager)||void 0===e?void 0:e.pageSize)||10,currentPage:1}}}function rw(){return{uFoot:!1}}pc.each(Tx.methods,(e,t)=>{Qx[t]=function(...e){const n=this,r=n.$refs.refTable;return r&&r[t](...e)}});const iw={name:"VxeGrid",mixins:[Ux.sizeMixin],props:Object.assign(Object.assign({},vf),{layouts:Array,columns:Array,pagerConfig:Object,proxyConfig:Object,toolbarConfig:Object,formConfig:Object,zoomConfig:Object,size:{type:String,default:()=>Wx().grid.size||Wx().size}}),provide(){const e=this,t=null;return{$xeGrid:e,$xeGantt:t}},data(){const e=pc.uniqueId(),t=nw();return Object.assign(Object.assign({},{}),{xID:e,reactData:t})},computed:Object.assign(Object.assign({},{}),{isRespMsg(){const e=this;return e.computeIsRespMsg},computeIsRespMsg(){const e=this,t=e.computeProxyOpts;return!!(pc.isBoolean(t.message)?t.message:t.showResponseMsg)},isActiveMsg(){const e=this;return e.computeIsActiveMsg},computeIsActiveMsg(){const e=this,t=e.computeProxyOpts;return pc.isBoolean(t.showActionMsg)?t.showActionMsg:!!t.showActiveMsg},proxyOpts(){const e=this;return e.computeProxyOpts},computeProxyOpts(){const e=this,t=e;return pc.merge({},pc.clone(Wx().grid.proxyConfig,!0),t.proxyConfig)},pagerOpts(){const e=this;return e.computePagerOpts},computePagerOpts(){const e=this,t=e;return Object.assign({},Wx().grid.pagerConfig,t.pagerConfig)},formOpts(){const e=this;return e.computeFormOpts},computeFormOpts(){const e=this,t=e;return Object.assign({},Wx().grid.formConfig,t.formConfig)},toolbarOpts(){const e=this;return e.computeToolbarOpts},computeToolbarOpts(){const e=this,t=e;return Object.assign({},Wx().grid.toolbarConfig,t.toolbarConfig)},zoomOpts(){const e=this;return e.computeZoomOpts},computeZoomOpts(){const e=this,t=e;return Object.assign({},Wx().grid.zoomConfig,t.zoomConfig)},computeStyles(){const e=this,t=e,n=e.reactData,{height:r,maxHeight:i}=t,{isZMax:o,tZindex:a}=n,s={};return o?s.zIndex=a:(r&&(s.height="auto"===r||"100%"===r?"100%":lh(r)),i&&(s.maxHeight="auto"===i||"100%"===i?"100%":lh(i))),s},computeTableExtendProps(){const e=this,t=e,n={},r=t;return Jx.forEach(e=>{void 0!==r[e]&&(n[e]=r[e])}),n},computeTableProps(){const e=this,t=e,n=e.reactData,{showFooter:r,seqConfig:i,pagerConfig:o,editConfig:a,proxyConfig:s}=t,{isZMax:l,tablePage:c,footerData:u}=n,d=e.computeTableExtendProps,h=e.computeProxyOpts,p=e.computePagerOpts,f=e.computeIsLoading,m=Object.assign({},d);return(r&&!m.footerData||h.footer&&u.length)&&(m.footerData=u),l&&(m.maxHeight?m.maxHeight="100%":m.height="100%"),s&&ld(h)&&(m.loading=f,o&&h.seq&&ld(p)&&(m.seqConfig=Object.assign({},i,{startIndex:(c.currentPage-1)*c.pageSize}))),a&&(m.editConfig=Object.assign({},a)),m},tableProps(){const e=this;return e.computeTableProps},computeCurrLayoutConf(){const e=this,t=e,{layouts:n}=t;let r=[];r=n&&n.length?n:Wx().grid.layouts||ew;let i=[],o=[],a=[];return r.length&&(pc.isArray(r[0])?(i=r[0],o=r[1]||[],a=r[2]||[]):o=r),{headKeys:i,bodyKeys:o,footKeys:a}},computeCustomCurrentPageFlag(){const e=this,t=e.computePagerOpts;return t.currentPage},computeCustomPageSizeFlag(){const e=this,t=e.computePagerOpts;return t.pageSize},computeCustomTotalFlag(){const e=this,t=e.computePagerOpts;return t.total},computePageCount(){const e=this,t=e.reactData,{tablePage:n}=t;return Math.max(Math.ceil(n.total/n.pageSize),1)},computeIsLoading(){const e=this,t=e,n=e.reactData,{loading:r,proxyConfig:i}=t,{tableLoading:o}=n,a=e.computeProxyOpts,{showLoading:s}=a;return r||o&&s&&i&&ld(a)}}),watch:{columns(e){const t=this;t.$nextTick(()=>t.loadColumn(e))},toolbar(e){const t=this;e&&t.initToolbar()},toolbarConfig(e){const t=this;e&&t.initToolbar()},proxyConfig(){const e=this;e.initProxy()},computeCustomCurrentPageFlag(){const e=this;e.initPages("currentPage")},computeCustomPageSizeFlag(){const e=this;e.initPages("pageSize")},computeCustomTotalFlag(){const e=this;e.initPages("total")}},methods:Object.assign(Object.assign({},Qx),{dispatchEvent(e,t,n){const r=this;r.$emit(e,Kx(n,{$grid:r,$gantt:null},t))},initPages(e){const t=this,n=t,r=t.reactData,{tablePage:i}=r,{pagerConfig:o}=n,a=t.computePagerOpts;if(o&&ld(a))if(e)a[e]&&(i[e]=pc.toNumber(a[e]));else{const{currentPage:e,pageSize:t,total:n}=a;e&&(i.currentPage=e),t&&(i.pageSize=t),n&&(i.total=n)}},callSlot(e,t,n){const r=this,i=r.$scopedSlots;return e&&(pc.isString(e)&&(e=i[e]||null),pc.isFunction(e))?Bp(e.call(this,t,n)):[]},getEl(){const e=this;return e.$refs.refElem},getExcludeHeight(){const e=this,t=e,n=e.reactData,{height:r}=t,{isZMax:i}=n,o=e.$refs.refElem;if(o){const t=e.$refs.refFormWrapper,n=e.$refs.refToolbarWrapper,a=e.$refs.refTopWrapper,s=e.$refs.refBottomWrapper,l=e.$refs.refPagerWrapper,c=o.parentElement;let u=0;return!c||"100%"!==r&&"auto"!==r||(u=i?0:hh(c)),u+hh(o)+dh(t)+dh(n)+dh(a)+dh(s)+dh(l)}return 0},getParentHeight(){const e=this,t=e.reactData,n=e.$refs.refElem;if(n){const r=n.parentElement;return(t.isZMax?uh().visibleHeight:r?pc.toNumber(getComputedStyle(r).height):0)-e.getExcludeHeight()}return 0},initToolbar(){const e=this;e.$nextTick(()=>{const t=e.$refs.refTable,n=e.$refs.refToolbar;t&&n&&t.connectToolbar(n)})},getDefaultFormData(){const e=this,t=e.computeFormOpts;if(t.items){const e={};return t.items.forEach(t=>{const{field:n,itemRender:r}=t;if(n){let i=null;if(r){const{startField:n,endField:o,defaultValue:a}=r;pc.isFunction(a)?i=a({item:t}):pc.isUndefined(a)||(i=a),n&&o&&(pc.set(e,n,null),pc.set(e,o,null))}e[n]=i}}),e}return{}},initProxy(){const e=this,t=e,n=e.reactData,r=e.internalData,{proxyConfig:i,formConfig:o}=t,{proxyInited:a}=n,s=e.computeProxyOpts,l=e.computeFormOpts;i&&(ld(o)&&s.form&&l.items&&(n.formData=e.getDefaultFormData()),a||(n.proxyInited=!0,!1!==s.autoLoad&&e.$nextTick().then(()=>{r.uFoot=!0;const t=e.commitProxy("initial");return r.uFoot=!1,e.updateQueryFooter(),t}).then(t=>{e.dispatchEvent("proxy-query",Object.assign(Object.assign({},t),{isInited:!0}),new Event("initial"))})))},updateQueryFooter(){const e=this,t=e.computeProxyOpts,{ajax:n}=t;if(n&&n.queryFooter)return e.commitProxy("queryFooter")},handleGlobalKeydownEvent(e){const t=this,n=t.reactData,r=t.computeZoomOpts,i=Yx.hasKey(e,Xx.ESCAPE);i&&n.isZMax&&!1!==r.escRestore&&t.triggerZoomEvent(e)},getRespMsg(e,t){const n=this,r=n.computeProxyOpts,i=r.response||r.props||{},o=i.message,a=n.$refs.refTable;let s;return e&&o&&(s=pc.isFunction(o)?o({data:e,$table:a,$grid:n,$gantt:null}):pc.get(e,o)),s||qx(t)},handleDeleteRow(e,t,n){const r=this,i=r.computeIsActiveMsg,o=r.getCheckboxRecords();if(i)if(o.length){if(ad.modal)return ad.modal.confirm({id:`cfm_${e}`,content:qx(t),escClosable:!0}).then(e=>{if("confirm"===e)return n()})}else ad.modal&&ad.modal.message({id:`msg_${e}`,content:qx("vxe.grid.selectOneRecord"),status:"warning"});else o.length&&n();return Promise.resolve()},triggerPendingEvent(e){const t=this,n=t.computeIsActiveMsg,r=t.$refs.refTable,i=r.getCheckboxRecords();i.length?(r.togglePendingRow(i),t.clearCheckboxRow()):n&&ad.modal&&ad.modal.message({id:e,content:qx("vxe.grid.selectOneRecord"),status:"warning"})},commitProxy(e,...t){const n=this,r=n,i=n.reactData,o=n.internalData,a=r.toolbar,{showFooter:s,proxyConfig:l,toolbarConfig:c,pagerConfig:u,editRules:d,validConfig:h}=r,{tablePage:p}=i,f=n.computeIsActiveMsg,m=n.computeIsRespMsg,g=n.computeProxyOpts,v=n.computePagerOpts,b=n.computeToolbarOpts,{beforeQuery:y,afterQuery:x,beforeQueryFooter:w,afterQueryFooter:C,beforeDelete:_,afterDelete:S,beforeSave:k,afterSave:E,ajax:O={}}=g,T=g.response||g.props||{},$=n.$refs.refTable;let D=n.getFormData(),M=null,F=null;if(pc.isString(e)){const{buttons:t}=b,n=(c||a)&&ld(b)&&t?pc.findTree(t,t=>t.code===e,{children:"dropdowns"}):null;M=n?n.item:null,F=e}else M=e,F=M.code;const R=M?M.params:null;switch(F){case"insert":return $.insert({});case"insert_edit":return $.insert({}).then(({row:e})=>$.setEditRow(e,!0));case"insert_actived":return $.insert({}).then(({row:e})=>$.setEditRow(e,!0));case"mark_cancel":n.triggerPendingEvent(F);break;case"remove":return n.handleDeleteRow(F,"vxe.grid.removeSelectRecord",()=>$.removeCheckboxRow());case"import":$.importData(R);break;case"open_import":$.openImport(R);break;case"export":$.exportData(R);break;case"open_export":$.openExport(R);break;case"reset_custom":$.resetCustom(!0);break;case"initial":case"reload":case"query":{const e=O.beforeQuery,r=O.query,o=O.afterQuery,a=O.querySuccess,c=O.queryError;if(r){const d="initial"===F,h="reload"===F;if(!d&&i.tableLoading)return n.$nextTick();let f=null,m=[],b=[],w={};if(u&&((d||h)&&(p.currentPage=1),ld(u)&&(w=Object.assign({},p))),d){if(l&&ld(g)&&g.form&&(D=n.getDefaultFormData(),i.formData=D),$){const e=$,{tableFullColumn:t,fullColumnFieldData:n}=e,r=$.computeSortOpts;let i=r.defaultSort;t.forEach(e=>{e.order=null}),i&&(pc.isArray(i)||(i=[i]),m=i.map(e=>{const{field:t,order:r}=e,i=n[t];if(i){const e=i.column;e&&(e.order=r)}return{field:t,property:t,order:r}})),b=$.getCheckedFilters()}}else $&&(h?f=$.clearAll():(m=$.getSortColumns(),b=$.getCheckedFilters()));const C={$table:$,$grid:n,$gantt:null,code:F,button:M,isInited:d,isReload:h,page:w,sort:m.length?m[0]:{},sorts:m,filters:b,form:D,options:r},_=()=>(i.sortData=m,i.filterData=b,i.tableLoading=!0,Promise.all([Promise.resolve((y||r)(C,...t)),f]).then(([e])=>{if(i.tableLoading=!1,o)o(Object.assign(Object.assign({},C),{response:e,status:"success"}),...t);else{let r=[];if(e){const t=T.list,o=T.result,a={data:e,$table:$,$grid:n,$gantt:null};if(u&&ld(v)){const t=T.total,n=(pc.isFunction(t)?t(a):pc.get(e,t||"page.total"))||0;p.total=pc.toNumber(n),r=(pc.isFunction(o)?o(a):pc.get(e,o||"result"))||[];const i=Math.max(Math.ceil(n/p.pageSize),1);p.currentPage>i&&(p.currentPage=i)}else pc.isArray(e)?r=e:t&&(r=(pc.isFunction(t)?t(a):pc.get(e,t))||[]);if(s){const t=T.footerData,n=t?pc.isFunction(t)?t(a):pc.get(e,t):[];pc.isArray(n)&&(i.footerData=n)}}$?$.loadData(r):n.$nextTick(()=>{const e=n.$refs.refTable;e&&e.loadData(r)}),x&&x(Object.assign(Object.assign({},C),{response:e}),...t)}return a&&a(Object.assign(Object.assign({},C),{response:e})),{status:!0}}).catch(e=>(i.tableLoading=!1,o&&o(Object.assign(Object.assign({},C),{response:e,status:"error"}),...t),c&&c(Object.assign(Object.assign({},C),{response:e})),{status:!1})));return e?Promise.resolve(e(C,...t)).then(e=>{if(!1!==e)return _()}):_()}Hx("vxe.error.notFunc",["proxy-config.ajax.query"]);break}case"queryFooter":{const e=O.beforeQueryFooter,r=O.queryFooter,o=O.afterQueryFooter,a=O.queryFooterSuccess,s=O.queryFooterError;if(r){let l=[];$&&(l=$.getCheckedFilters());let c={};u&&ld(u)&&(c=Object.assign({},p));const d={$table:$,$grid:n,$gantt:null,code:F,button:M,page:c,filters:l,form:D,options:r},h=()=>Promise.resolve((w||r)(d,...t)).then(e=>(o?o(Object.assign(Object.assign({},d),{response:e,status:"success"}),...t):(i.footerData=pc.isArray(e)?e:[],C&&C(Object.assign(Object.assign({},d),{response:e}),...t)),a&&a(Object.assign(Object.assign({},d),{response:e})),{status:!0})).catch(e=>(o&&o(Object.assign(Object.assign({},d),{response:e,status:"error"}),...t),s&&s(Object.assign(Object.assign({},d),{response:e})),{status:!1}));return e?Promise.resolve(e(d,...t)).then(e=>{if(!1!==e)return h()}):h()}Hx("vxe.error.notFunc",["proxy-config.ajax.queryFooter"]);break}case"delete":{const e=O.beforeDelete,r=O.delete,a=O.afterDelete,s=O.deleteSuccess,l=O.deleteError;if(r){const c=$.getCheckboxRecords(),u=c.filter(e=>!$.isInsertByRow(e)),d={removeRecords:u},h={$table:$,$grid:n,$gantt:null,code:F,button:M,body:d,form:D,options:r};if(c.length)return n.handleDeleteRow(F,"vxe.grid.deleteSelectRecord",()=>{if(!u.length)return $.remove(c);const d=()=>(i.tableLoading=!0,Promise.resolve((_||r)(h,...t)).then(e=>(i.tableLoading=!1,a?a(Object.assign(Object.assign({},h),{response:e,status:"success"}),...t):($.setPendingRow(u,!1),m&&ad.modal&&ad.modal.message({content:n.getRespMsg(e,"vxe.grid.delSuccess"),status:"success"}),S?S(Object.assign(Object.assign({},h),{response:e}),...t):(o.uFoot=!0,n.commitProxy("query"),o.uFoot=!1,n.updateQueryFooter())),s&&s(Object.assign(Object.assign({},h),{response:e})),{status:!0})).catch(e=>(i.tableLoading=!1,a?a(Object.assign(Object.assign({},h),{response:e,status:"error"}),...t):m&&ad.modal&&ad.modal.message({id:F,content:n.getRespMsg(e,"vxe.grid.operError"),status:"error"}),l&&l(Object.assign(Object.assign({},h),{response:e})),{status:!1})));return e?Promise.resolve(e(h,...t)).then(e=>{if(!1!==e)return d()}):d()});f&&ad.modal&&ad.modal.message({id:F,content:qx("vxe.grid.selectOneRecord"),status:"warning"})}else Hx("vxe.error.notFunc",["proxy-config.ajax.delete"]);break}case"save":{const e=O.beforeSave,r=O.save,a=O.afterSave,s=O.saveSuccess,l=O.saveError;if(r){const c=n.getRecordset(),{insertRecords:u,removeRecords:p,updateRecords:g,pendingRecords:v}=c,b={$table:$,$grid:n,$gantt:null,code:F,button:M,body:c,form:D,options:r};u.length&&(c.pendingRecords=v.filter(e=>-1===u.indexOf(e))),v.length&&(c.insertRecords=u.filter(e=>-1===v.indexOf(e)));let y=Promise.resolve();return d&&(y=n[h&&"full"===h.msgMode?"fullValidate":"validate"](c.insertRecords.concat(g))),y.then(u=>{if(!u){if(c.insertRecords.length||p.length||g.length||c.pendingRecords.length){const c=()=>(i.tableLoading=!0,Promise.resolve((k||r)(b,...t)).then(e=>(i.tableLoading=!1,a?a(Object.assign(Object.assign({},b),{response:e,status:"success"}),...t):($.clearPendingRow(),m&&ad.modal&&ad.modal.message({content:n.getRespMsg(e,"vxe.grid.saveSuccess"),status:"success"}),E?E(Object.assign(Object.assign({},b),{response:e}),...t):(o.uFoot=!0,n.commitProxy("query"),o.uFoot=!1,n.updateQueryFooter())),s&&s(Object.assign(Object.assign({},b),{response:e})),{status:!0})).catch(e=>(i.tableLoading=!1,a?a(Object.assign(Object.assign({},b),{response:e,status:"error"}),...t):m&&ad.modal&&ad.modal.message({id:F,content:n.getRespMsg(e,"vxe.grid.operError"),status:"error"}),l&&l(Object.assign(Object.assign({},b),{response:e})),{status:!1})));return e?Promise.resolve(e(b,...t)).then(e=>{if(!1!==e)return c()}):c()}f&&ad.modal&&ad.modal.message({id:F,content:qx("vxe.grid.dataUnchanged"),status:"info"})}})}Hx("vxe.error.notFunc",["proxy-config.ajax.save"]);break}default:{const e=Gx.get(F);if(e){const r=e.tableCommandMethod||e.commandMethod;r?r({code:F,button:M,$grid:n,$table:$,$gantt:null},...t):Hx("vxe.error.notCommands",[F])}}}return n.$nextTick()},getFormData(){const e=this,t=e,n=e.reactData,{proxyConfig:r}=t,{formData:i}=n,o=e.computeProxyOpts,a=e.computeFormOpts;return r&&ld(o)&&o.form?i:a.data},getFormItems(e){const t=this,n=t,r=t.computeFormOpts,{formConfig:i}=n,{items:o}=r,a=[];return pc.eachTree(i&&ld(r)&&o?o:[],e=>{a.push(e)},{children:"children"}),pc.isUndefined(e)?a:a[e]},getFormFlatItems(){const e=this,t=e.$refs.refForm;return t?t.getFlatItems():[]},getFormNestedItems(){const e=this,t=e.$refs.refForm;return t?t.getNestedItems():[]},getFormItemByField(e){const t=this,n=t.$refs.refForm;return n?n.getItemByField(e):null},resetForm(){const e=this,t=e.$refs.refForm;return t?t.reset():e.$nextTick()},validateForm(){const e=this,t=e.$refs.refForm;return t?t.validate():e.$nextTick()},validateFormField(e){const t=this,n=t.$refs.refForm;return n?n.validateField(e):t.$nextTick()},clearFormValidate(e){const t=this,n=t.$refs.refForm;return n?n.clearValidate(e):t.$nextTick()},homePage(){const e=this,t=e.reactData,{tablePage:n}=t;return n.currentPage=1,e.$nextTick()},homePageByEvent(e){const t=this,n=t.$refs.refPager;n&&n.homePageByEvent(e)},endPage(){const e=this,t=e.reactData,{tablePage:n}=t,r=e.computePageCount;return n.currentPage=r,e.$nextTick()},endPageByEvent(e){const t=this,n=t.$refs.refPager;n&&n.endPageByEvent(e)},getCurrentPage(){const e=this,t=e.reactData,{tablePage:n}=t;return n.currentPage},setCurrentPage(e){const t=this,n=t.reactData,{tablePage:r}=n,i=t.computePageCount;return r.currentPage=Math.min(i,Math.max(1,pc.toNumber(e))),t.$nextTick()},setCurrentPageByEvent(e,t){const n=this,r=n.$refs.refPager;r&&r.setCurrentPageByEvent(e,t)},getPageSize(){const e=this,t=e.reactData,{tablePage:n}=t;return n.pageSize},setPageSize(e){const t=this,n=t.reactData,{tablePage:r}=n;return r.pageSize=Math.max(1,pc.toNumber(e)),t.$nextTick()},setPageSizeByEvent(e,t){const n=this,r=n.$refs.refPager;r&&r.setPageSizeByEvent(e,t)},triggerToolbarCommitEvent(e,t){const n=this,r=n.internalData,{code:i}=e;if(i){const o=["reload","delete","save"].includes(i);o&&(r.uFoot=!0);const a=n.commitProxy(e,t).then(e=>{i&&e&&e.status&&["query","reload","delete","save"].includes(i)&&n.dispatchEvent("delete"===i||"save"===i?`proxy-${i}`:"proxy-query",Object.assign(Object.assign({},e),{isReload:"reload"===i}),t)});return o&&n.updateQueryFooter(),r.uFoot=!1,a}return n.$nextTick()},triggerToolbarBtnEvent(e,t){const n=this;n.triggerToolbarCommitEvent(e,t),n.dispatchEvent("toolbar-button-click",{code:e.code,button:e},t)},triggerToolbarTolEvent(e,t){const n=this;n.triggerToolbarCommitEvent(e,t),n.dispatchEvent("toolbar-tool-click",{code:e.code,tool:e},t)},pageChangeEvent(e){const t=this,n=t,r=t.reactData,{proxyConfig:i}=n,{tablePage:o}=r,{$event:a,currentPage:s,pageSize:l}=e,c=t.computeProxyOpts;o.currentPage=s,o.pageSize=l,t.dispatchEvent("page-change",e,a),i&&ld(c)&&t.commitProxy("query").then(e=>{t.dispatchEvent("proxy-query",e,a)})},handleSortEvent(e){const t=this,n=t,r=t.reactData,i=t.$refs.refTable,{proxyConfig:o}=n,a=t.computeProxyOpts,s=i.computeSortOpts;s.remote&&(r.sortData=e.sortList,o&&ld(a)&&(r.tablePage.currentPage=1,t.commitProxy("query").then(n=>{t.dispatchEvent("proxy-query",n,e.$event)})))},sortChangeEvent(e){const t=this;t.handleSortEvent(e),t.dispatchEvent("sort-change",e,e.$event)},clearAllSortEvent(e){const t=this;t.handleSortEvent(e),t.dispatchEvent("clear-all-sort",e,e.$event)},handleFilterEvent(e){const t=this,n=t,r=t.reactData,i=t.internalData,o=t.$refs.refTable,{proxyConfig:a}=n,s=t.computeProxyOpts,l=o.computeFilterOpts;l.remote&&(r.filterData=e.filterList,a&&ld(s)&&(r.tablePage.currentPage=1,i.uFoot=!0,t.commitProxy("query").then(n=>{t.dispatchEvent("proxy-query",n,e.$event)}),i.uFoot=!1,t.updateQueryFooter()))},filterChangeEvent(e){const t=this;t.handleFilterEvent(e),t.dispatchEvent("filter-change",e,e.$event)},clearAllFilterEvent(e){const t=this;t.handleFilterEvent(e),t.dispatchEvent("clear-all-filter",e,e.$event)},submitFormEvent(e){const t=this,n=t,r=t.reactData,i=t.internalData,{proxyConfig:o}=n,a=t.computeProxyOpts,s=a.formOptions||{};r.tableLoading||(o&&ld(a)?(t.dispatchEvent("form-submit",e,e.$event),i.uFoot=!0,t.commitProxy(s.submitMode||"reload").then(n=>{t.dispatchEvent("proxy-query",Object.assign(Object.assign({},n),{isReload:!0}),e.$event)}),i.uFoot=!1,t.updateQueryFooter()):t.dispatchEvent("form-submit",e,e.$event))},resetFormEvent(e){const t=this,n=t,r=t.internalData,i=t.$refs.refTable,{proxyConfig:o}=n,{$event:a}=e,s=t.computeProxyOpts;o&&ld(s)?(t.dispatchEvent("form-reset",e,a),i&&i.clearScroll(),r.uFoot=!0,t.commitProxy("reload").then(e=>{t.dispatchEvent("proxy-query",Object.assign(Object.assign({},e),{isReload:!0}),a)}),r.uFoot=!1,t.updateQueryFooter()):t.dispatchEvent("form-reset",e,a)},submitInvalidEvent(e){const t=this;t.dispatchEvent("form-submit-invalid",e,e.$event)},collapseEvent(e){const t=this,{$event:n}=e;t.dispatchEvent("form-toggle-collapse",e,n),t.dispatchEvent("form-collapse",e,n)},triggerZoomEvent(e){const t=this,n=t.reactData;t.zoom(),t.dispatchEvent("zoom",{type:n.isZMax?"max":"revert"},e)},getParams(){const e=this,t=e;return t.params},zoom(){const e=this,t=e.reactData;return t.isZMax?e.revert():e.maximize()},isMaximized(){const e=this,t=e.reactData;return t.isZMax},maximize(){const e=this;return e.handleZoom(!0)},revert(){const e=this;return e.handleZoom()},handleZoom(e){const t=this,n=t.reactData,{isZMax:r}=n;return(e?!r:r)&&(n.isZMax=!r,n.tZindex<hd()&&(n.tZindex=dd())),t.$nextTick().then(()=>t.recalculate(!0)).then(()=>(setTimeout(()=>t.recalculate(!0),15),n.isZMax))},getProxyInfo(){const e=this,t=e,n=e.$refs.refTable,r=e.reactData;if(t.proxyConfig){const{sortData:t}=r;return{data:n?n.getFullData():[],filter:r.filterData,form:e.getFormData(),sort:t.length?t[0]:{},sorts:t,pager:r.tablePage,pendingRecords:n?n.getPendingRecords():[]}}return null},getCustomPagerData(){const e=this,t=e,n=e.reactData,{pagerConfig:r}=t,{tablePage:i}=n,o=e.computePagerOpts;return r&&ld(o)?{pSize:i.pageSize}:{}},loadColumn(e){const t=this,n=t.$scopedSlots,r=t.$refs.refTable;return pc.eachTree(e,e=>{e.slots&&pc.each(e.slots,e=>{e&&!pc.isFunction(e)&&(n[e]||Hx("vxe.error.notSlot",[e]))})}),r.loadColumn(e)},reloadColumn(e){const t=this;return t.clearAll(),t.loadColumn(e)},getConfigSlot(e){const t=this,n=t.$scopedSlots,r={};return pc.objectMap(e,(e,t)=>{e&&(pc.isString(e)?n[e]?r[t]=n[e]:Hx("vxe.error.notSlot",[e]):r[t]=e)}),r},getToolbarSlots(){const e=this,t=e.$scopedSlots,n=e.computeToolbarOpts,r=n.slots,i={};if(!t.buttons||r&&"buttons"===r.buttons||zx("vxe.error.reqProp",["[grid] toolbar-config.slots.buttons"]),!t.tools||r&&"tools"===r.tools||zx("vxe.error.reqProp",["[grid] toolbar-config.slots.tools"]),r){const t=e.getFuncSlot(r,"buttons"),n=e.getFuncSlot(r,"buttonPrefix"),o=e.getFuncSlot(r,"buttonSuffix"),a=e.getFuncSlot(r,"tools"),s=e.getFuncSlot(r,"toolPrefix"),l=e.getFuncSlot(r,"toolSuffix");t&&(i.buttons=t),n&&(i.buttonPrefix=n),o&&(i.buttonSuffix=o),a&&(i.tools=a),s&&(i.toolPrefix=s),l&&(i.toolSuffix=l)}return i},getFuncSlot(e,t){const n=this,r=n.$scopedSlots,i=e[t];if(i){if(!pc.isString(i))return i;if(r[i])return r[i];Hx("vxe.error.notSlot",[i])}return null},renderDefaultForm(e){const t=ad.getComponent("VxeForm"),n=this,r=n,i=n.$scopedSlots,o=n.reactData,{proxyConfig:a,formConfig:s}=r,{formData:l}=o,c=n.computeProxyOpts,u=n.computeFormOpts;if(ld(s)&&u.items&&u.items.length){const r={};if(!u.inited){u.inited=!0;const e=c.beforeItem;c&&e&&u.items.forEach(t=>{e.call(n,{$grid:n,$gantt:null,item:t})})}return u.items.forEach(e=>{pc.each(e.slots,e=>{e&&!pc.isFunction(e)&&i[e]&&(r[e]=i[e])})}),[t?e(t,{ref:"refForm",props:Object.assign({},u,{data:a&&c.form?l:u.data}),on:{submit:n.submitFormEvent,reset:n.resetFormEvent,collapse:n.collapseEvent,"submit-invalid":n.submitInvalidEvent},scopedSlots:r}):Zx(n)]}return[]},renderForm(e){const t=this,n=t,r=t.$scopedSlots,{formConfig:i}=n,o=r.form,a=!(!o&&!ld(i));return a?e("div",{key:"form",ref:"refFormWrapper",class:"vxe-grid--form-wrapper"},o?o.call(t,{$grid:t,$gantt:null}):t.renderDefaultForm(e)):Zx(t)},renderToolbar(e){const t=this,n=t,r=t.$scopedSlots,{toolbarConfig:i}=n,o=r.toolbar,a=t.computeToolbarOpts;return i&&ld(a)||o?e("div",{key:"toolbar",ref:"refToolbarWrapper",class:"vxe-grid--toolbar-wrapper"},o?o.call(t,{$grid:t,$gantt:null}):[e(Vx,{props:Object.assign({},a,{slots:void 0}),ref:"refToolbar",scopedSlots:t.getToolbarSlots()})]):Zx(t)},renderTop(e){const t=this,n=t.$scopedSlots,r=n.top;return r?e("div",{key:"top",ref:"refTopWrapper",class:"vxe-grid--top-wrapper"},r.call(t,{$grid:t,$gantt:null})):Zx(t)},renderTableLeft(e){const t=this,n=t.$scopedSlots,r=n.left;return r?e("div",{class:"vxe-grid--left-wrapper"},r({$grid:t,$gantt:null})):Zx(t)},renderTableRight(e){const t=this,n=t.$scopedSlots,r=n.right;return r?e("div",{class:"vxe-grid--right-wrapper"},r({$grid:t,$gantt:null})):Zx(t)},renderTable(e){const t=this,n=t.$scopedSlots,r=t.computeTableProps;return e("div",{class:"vxe-grid--table-wrapper"},[e(Tx,{key:"table",props:r,on:tw(t),scopedSlots:n,ref:"refTable"})])},renderBottom(e){const t=this,n=t.$scopedSlots,r=n.bottom;return r?e("div",{key:"bottom",ref:"refBottomWrapper",class:"vxe-grid--bottom-wrapper"},r.call(t,{$grid:t,$gantt:null})):Zx(t)},renderPager(e){const t=ad.getComponent("VxePager"),n=this,r=n,i=n.$scopedSlots,o=n.reactData,{proxyConfig:a,pagerConfig:s}=r,l=n.computeProxyOpts,c=n.computePagerOpts,u=i.pager;return s&&ld(c)||i.pager?e("div",{ref:"refPagerWrapper",key:"pager",class:"vxe-grid--pager-wrapper"},u?u.call(n,{$grid:n,$gantt:null}):[t?e(t,{ref:"refPager",props:Object.assign(Object.assign({},c),a&&ld(l)?o.tablePage:{}),on:{"page-change":n.pageChangeEvent},scopedSlots:n.getConfigSlot(c.slots)}):Zx(n)]):Zx(n)},renderChildLayout(e,t){const n=this,r=[];return t.forEach(t=>{switch(t){case"Form":r.push(n.renderForm(e));break;case"Toolbar":r.push(n.renderToolbar(e));break;case"Top":r.push(n.renderTop(e));break;case"Table":r.push(e("div",{key:"table",class:"vxe-grid--table-container"},[n.renderTableLeft(e),n.renderTable(e),n.renderTableRight(e)]));break;case"Bottom":r.push(n.renderBottom(e));break;case"Pager":r.push(n.renderPager(e));break;default:Hx("vxe.error.notProp",[`layouts -> ${t}`]);break}}),r},renderLayout(e){const t=this,n=t.$scopedSlots,r=t.computeCurrLayoutConf,{headKeys:i,bodyKeys:o,footKeys:a}=r,s=n.asideLeft||n["aside-left"],l=n.asideRight||n["aside-right"];return[e("div",{class:"vxe-grid--layout-header-wrapper"},t.renderChildLayout(e,i)),e("div",{class:"vxe-grid--layout-body-wrapper"},[s?e("div",{class:"vxe-grid--layout-aside-left-wrapper"},s({})):Zx(t),e("div",{class:"vxe-grid--layout-body-content-wrapper"},t.renderChildLayout(e,o)),l?e("div",{class:"vxe-grid--layout-aside-right-wrapper"},l({})):Zx(t)]),e("div",{class:"vxe-grid--layout-footer-wrapper"},t.renderChildLayout(e,a)),e("div",{ref:"refPopupContainerElem"})]},renderVN(e){const t=this,n=t,r=t.reactData,i=t.computeSize,o=t.computeStyles,a=t.computeIsLoading;return e("div",{ref:"refElem",class:["vxe-grid",{[`size--${i}`]:i,"is--animat":!!n.animat,"is--round":n.round,"is--maximize":r.isZMax,"is--loading":a}],style:o},t.renderLayout(e))}}),created(){const e=ad.getComponent("VxeForm"),t=ad.getComponent("VxePager"),n=this,r=n;n.internalData=rw();const i=n.computeProxyOpts;r.toolbar&&Hx("vxe.error.delProp",["toolbar","toolbar-config"]),r.toolbarConfig&&!pc.isObject(r.toolbarConfig)&&Hx("vxe.error.errProp",[`toolbar-config=${r.toolbarConfig}`,"toolbar-config={}"]),i.props&&zx("vxe.error.delProp",["proxy-config.props","proxy-config.response"]),n.$nextTick(()=>{r.formConfig&&(e||Hx("vxe.error.reqComp",["vxe-form"])),r.pagerConfig&&(t||Hx("vxe.error.reqComp",["vxe-pager"]))}),n.initPages(),Yx.on(n,"keydown",n.handleGlobalKeydownEvent)},mounted(){const e=this,t=e,{columns:n}=t;n&&n.length&&e.loadColumn(n),e.initToolbar(),e.initProxy()},beforeDestroy(){const e=this,t=e.reactData,n=e.internalData;Yx.off(e,"keydown"),pc.assign(t,nw()),pc.assign(n,rw())},render(e){return this.renderVN(e)}};let ow=!1;const aw=Object.assign({},iw,{install(e){ow||(ow=!0,ad.dynamicApp&&ad.dynamicApp.component(iw.name,iw)),e.component(iw.name,iw)}});ad.component(iw);const sw=aw,{errLog:lw}=Ih("table"),{getConfig:cw,renderer:uw,getI18n:dw,getComponent:hw}=ad,pw="value",fw={};function mw(e,t,n){return pc.eqNull(e)?pc.eqNull(t)?n:t:e}function gw(e,t){return e&&t.valueFormat?pc.toStringDate(e,t.valueFormat):e}function vw(e,t,n){const{dateConfig:r={}}=t;return pc.toDateString(gw(e,t),r.labelFormat||n)}function bw(e,t){return vw(e,t,dw(`vxe.input.date.labelFormat.${t.type||"date"}`))}function yw(e){return`vxe-${e.replace("$","")}`}function xw({name:e}){return yw(e)}function ww({name:e}){return hw(e)||e}function Cw(e,t,n){const{$table:r}=e;r.updateFilterOptionStatus(n,t)}function _w(e){const{$table:t,column:n}=e;t.saveFilterByEvent(new Event("change"),n)}function Sw(e){let{name:t,attrs:n}=e;return"input"===t&&(n=Object.assign({type:"text"},n)),n}function kw(e){const{name:t,immediate:n,props:r}=e;if(!n){if("VxeInput"===t||"$input"===t){const{type:e}=r||{};return!(!e||"text"===e||"number"===e||"integer"===e||"float"===e)}return"input"!==t&&"textarea"!==t&&"$textarea"!==t}return n}function Ew(e,t,n,r){return pc.assign({immediate:kw(e)},fw,r,e.props,{[pw]:n})}function Ow(e,t,n,r){return pc.assign({},fw,r,e.props,{[pw]:n})}function Tw(e,t){return"cell"===t.$type||kw(e)}function $w(e,t,n,r,i){const{placeholder:o}=t;return[e("span",{key:1,class:["vxe-cell--label",i?i.class:""]},o&&cd(r)?[e("span",{class:"vxe-cell--placeholder"},md(fd(o),1))]:md(r,1))]}function Dw(e,t,n){const{events:r}=e,i=Lp(e),o=Np(e),{model:a,change:s,blur:l}=n||{},c=o===i,u={};return r&&pc.objectEach(r,(e,n)=>{u[Pp(n)]=function(...n){e(t,...n)}}),a&&(u[Pp(i)]=function(e){a(e),c&&s&&s(e),r&&r[i]&&r[i](t,e)}),!c&&s&&(u[Pp(o)]=function(e){s(e),r&&r[o]&&r[o](t,e)}),l&&(u[Pp(Mw)]=function(e){l(e),r&&r[Mw]&&r[Mw](t,e)}),u}const Mw="blur",Fw="clear";function Rw(e,t,n,r){const{events:i}=e,o=Lp(e),a=Np(e),{model:s,change:l,blur:c,clear:u}=n||{},d={};return pc.objectEach(i,(e,n)=>{d[Pp(n)]=function(...n){pc.isFunction(e)||lw("vxe.error.errFunc",[e]),e(t,...n)}}),s&&(d[Pp(o)]=function(e){s(e),i&&i[o]&&i[o](t,e)}),l&&(d[Pp(a)]=function(...e){l(...e),i&&i[a]&&i[a](t,...e)}),c&&(d[Pp(Mw)]=function(...e){c(...e),i&&i[Mw]&&i[Mw](t,...e)}),u&&(d[Pp(Fw)]=function(...e){u(...e),i&&i[Fw]&&i[Fw](t,...e)}),r?Object.assign(d,r):d}function Iw(e,t){const{$table:n,row:r,column:i}=t,{name:o}=e,{model:a}=i,s=Tw(e,t);return Rw(e,t,{model(e){a.update=!0,a.value=e,s&&kp(r,i,e)},change(e){if(!s&&o&&["VxeInput","VxeNumberInput","VxeTextarea","$input","$textarea"].includes(o)){const r=e.value;a.update=!0,a.value=r,n.updateStatus(t,r)}else n.updateStatus(t)},blur(){s?n.handleCellRuleUpdateStatus("blur",t):n.handleCellRuleUpdateStatus("blur",t,a.value)}})}function Aw(e,t,n){return Rw(e,t,{model(e){n.data=e},change(){Cw(t,!cd(n.data),n)},blur(){Cw(t,!cd(n.data),n)}})}function Pw(e,t,n){const{$table:r,column:i}=t;return jp(e)?Rw(e,t,{model(e){n.data=e},change(){Cw(t,!cd(n.data),n)},clear(){Cw(t,!cd(n.data),n),_w(t)},blur(){r.saveFilterByEvent(new Event("change"),i)}},"VxeNumberInput"===e.name?{[Pp("plus-number")](){Cw(t,!cd(n.data),n),_w(t)},[Pp("minus-number")](){Cw(t,!cd(n.data),n),_w(t)}}:{}):Rw(e,t,{model(e){n.data=e},clear(){Cw(t,!cd(n.data),n),r.saveFilterByEvent(new Event("change"),i)},change(){Cw(t,!cd(n.data),n),r.saveFilterByEvent(new Event("change"),i)}})}function Lw(e,t){const{$table:n,row:r,column:i}=t,{model:o}=i;return Dw(e,t,{model(n){const a=n.target;if(a){const n=a.value;Tw(e,t)?kp(r,i,n):(o.update=!0,o.value=n)}},change(e){const r=e.target;if(r){const e=r.value;n.updateStatus(t,e)}},blur(e){const r=e.target;if(r){const e=r.value;n.updateStatus(t,e)}}})}function Nw(e,t,n){return Dw(e,t,{model(e){const t=e.target;t&&(n.data=t.value)},change(){Cw(t,!pc.eqNull(n.data),n)},blur(){Cw(t,!pc.eqNull(n.data),n)}})}function jw(e,t,n){const{row:r,column:i}=n,o=pc.get(r,i.field),a=[e("span",{key:1},o)];return xC(e,o,a,t,n)}function Bw(e,t,n){const{row:r,column:i}=n,{name:o}=t,a=Tw(t,n)?Sp(r,i):i.model.value;return[e(""+o,{key:2,class:`vxe-default-${o}`,attrs:Sw(t),domProps:{value:a},on:Lw(t,n)})]}function Vw(e,t,n){return[e(ww(t),{props:Ew(t,n,null),on:Rw(t,n)})]}function zw(e,t,n){const{row:r,column:i}=n,o=Sp(r,i);return[e(ww(t),{key:2,props:Ew(t,n,o),on:Iw(t,n)})]}function Hw(e,t,n){const{row:r,column:i}=n,o=Sp(r,i);return[e(ww(t),{props:Ew(t,n,o),on:Iw(t,n)})]}function Ww(e,t,n){const{row:r,column:i}=n,o=Sp(r,i);return[e(ww(t),{props:Ew(t,n,o),on:Iw(t,n)})]}function qw(e,t,n){const{options:r}=t,{row:i,column:o}=n,a=Sp(i,o);return[e(ww(t),{props:Object.assign({options:r},Ew(t,n,a)),on:Iw(t,n)})]}function Gw(e,t,n){const{row:r,column:i}=n,o=Sp(r,i);return[e(xw(t),{props:Ew(t,n,o),on:Iw(t,n)})]}function Yw(e,t,n){return[e("vxe-button",{props:Ew(t,n,null),on:Rw(t,n)})]}function Uw(e,t,n){const{children:r}=t;return r?r.map(t=>Yw(e,t,n)[0]):[]}function Kw(e,t,n,r){const{optionGroups:i,optionGroupProps:o={}}=t,a=o.options||"options",s=o.label||"label";return i?i.map((i,o)=>e("optgroup",{key:o,attrs:{label:i[s]}},r(e,i[a],t,n))):[]}function Xw(e,t,n,r){const{optionProps:i={}}=n,{row:o,column:a}=r,s=i.label||"label",l=i.value||"value",c=i.disabled||"disabled",u=Tw(n,r)?Sp(o,a):a.model.value;return t?t.map((t,n)=>e("option",{key:n,attrs:{value:t[l],disabled:t[c]},domProps:{selected:t[l]==u}},t[s])):[]}function Zw(e,t,n){const{column:r}=n,{name:i}=t,o=Sw(t);return r.filters.map((r,a)=>e(`${i}`,{key:a,class:`vxe-default-${i}`,attrs:o,domProps:{value:r.data},on:Nw(t,n,r)}))}function Qw(e,t,n){const{column:r}=n;return r.filters.map((r,i)=>{const o=r.data;return e(ww(t),{key:i,props:Ow(t,t,o),on:Aw(t,n,r)})})}function Jw(e,t,n){const{option:r}=n,i=r.data;return[e(ww(t),{props:Ow(t,t,i),on:Pw(t,n,r)})]}function eC(){return[{data:null}]}function tC(e,t,n){const{column:r}=n;return r.filters.map((r,i)=>{const o=r.data;return e(xw(t),{key:i,props:Ow(t,t,o),on:Aw(t,n,r)})})}function nC({option:e,row:t,column:n}){const{data:r}=e,i=pc.get(t,n.field);return i==r}function rC({option:e,row:t,column:n}){const{data:r}=e,i=pc.get(t,n.field);return pc.toValueString(i).indexOf(r)>-1}function iC(e,t,n){return[e("select",{class:"vxe-default-select",attrs:Sw(t),on:Lw(t,n)},t.optionGroups?Kw(e,t,n,Xw):Xw(e,t.options,t,n))]}function oC(e,t,n){const{row:r,column:i}=n,{options:o,optionProps:a,optionGroups:s,optionGroupProps:l}=t,c=Sp(r,i);return[e(ww(t),{props:Ew(t,n,c,{options:o,optionProps:a,optionGroups:s,optionGroupProps:l}),on:Iw(t,n)})]}function aC(e,t,n){const{row:r,column:i}=n,{options:o,optionProps:a}=t,s=Sp(r,i);return[e(ww(t),{props:Ew(t,n,s,{options:o,optionProps:a}),on:Iw(t,n)})]}function sC(e,t,n){const{row:r,column:i}=n,{options:o,optionProps:a,optionGroups:s,optionGroupProps:l}=t,c=Sp(r,i);return[e(xw(t),{props:Ew(t,n,c,{options:o,optionProps:a,optionGroups:s,optionGroupProps:l}),on:Iw(t,n)})]}function lC(e,t){const{options:n,optionGroups:r,optionProps:i={},optionGroupProps:o={},props:a={}}=t;let s;const l=i.label||"label",c=i.value||"value";if(null!==e&&void 0!==e){let t=[];return t=pc.isArray(e)?e:a.multiple&&`${e}`.indexOf(",")>-1?`${e}`.split(","):[e],pc.map(t,r?e=>{const t=o.options||"options";for(let n=0;n<r.length;n++)if(s=pc.find(r[n][t],t=>t[c]==e),s)break;return s?s[l]:e}:e=>(s=pc.find(n,t=>t[c]==e),s?s[l]:e)).join(", ")}return""}function cC(e,{row:t,column:n}){const r=pc.get(t,n.field);return lC(r,e)}function uC(e){const{row:t,column:n,options:r}=e;return r.original?Sp(t,n):cC(n.editRender||n.cellRender,e)}function dC(e,t){const{options:n,optionProps:r={}}=t,i=r.label||"label",o=r.value||"value",a=r.children||"children";if(null!==e&&void 0!==e){const t={};return pc.eachTree(n,e=>{t[pc.get(e,o)]=e},{children:a}),pc.map(pc.isArray(e)?e:[e],e=>{const n=t[e];return n?pc.get(n,i):n}).join(", ")}return""}function hC(e,{row:t,column:n}){const r=pc.get(t,n.field);return dC(r,e)}function pC(e){const{row:t,column:n,options:r}=e;return r.original?Sp(t,n):hC(n.editRender||n.cellRender,e)}function fC(e,t,n,r){const{props:i={},showNegativeStatus:o}=n,{type:a}=i;let s=!1;if(!cd(t)){const e=cw().numberInput||{};if("float"===a){const n=mw(i.autoFill,e.autoFill,!0),r=mw(i.digits,e.digits,1);t=pc.toFixed(pc.floor(t,r),r),n||(t=pc.toNumber(t)),o&&t<0&&(s=!0)}else if("amount"===a){const n=mw(i.autoFill,e.autoFill,!0),r=mw(i.digits,e.digits,2),a=mw(i.showCurrency,e.showCurrency,!1);if(t=pc.toNumber(t),o&&t<0&&(s=!0),t=pc.commafy(t,{digits:r}),!n){const[e,n]=t.split(".");if(n){const r=n.replace(/0+$/,"");t=r?[e,".",r].join(""):e}}a&&(t=`${i.currencySymbol||e.currencySymbol||dw("vxe.numberInput.currencySymbol")||""}${t}`)}else"integer"===a&&(t=pc.toInteger(t)),o&&pc.toNumber(t)<0&&(s=!0)}return $w(e,n,r,t,s?{class:"is--negative"}:{})}function mC(e,t){const{props:n={}}=e,{cellValue:r}=t;return r&&"time"!==n.type?bw(r,n):r}function gC(e,t){const{cellValue:n}=t;return lC(n,e)}function vC(e,t){const{row:n,column:r,cellValue:i}=t,{field:o}=r;if(o){const{options:t,optionGroups:r,optionProps:a={},optionGroupProps:s={},props:l}=e;if(cd(i))return void pc.set(n,o,l&&l.multiple?[]:null);const c=pc.indexOf(`${i}`,",")>-1,u=a.label||"label",d=a.value||"value",h={};if(r&&r.length){const e=s.options||"options";for(let t=0;t<r.length;t++){const a=r[t][e]||{};for(let e=0;e<a.length;e++){const t=a[e];if(c)h[t[u]]=t;else if(t[u]==i)return void pc.set(n,o,t[d])}}}else if(t)for(let e=0;e<t.length;e++){const r=t[e];if(c)h[r[u]]=r;else if(r[u]==i)return void pc.set(n,o,r[d])}c?pc.set(n,o,(c?i.split(","):[i]).map(e=>{const t=h[e];return t?t[d]:e})):pc.set(n,o,i)}}function bC(e,t){const{cellValue:n}=t;return dC(n,e)}function yC(e,t){const{row:n,column:r,cellValue:i}=t,{field:o}=r;if(o){const{options:t,optionProps:r={}}=e,a=r.label||"label",s=r.value||"value",l=r.children||"children",c=pc.findTree(t||[],e=>pc.get(e,a)===i,{children:l});if(c){const e=c.item;if(e)return void pc.set(n,o,e[s])}pc.set(n,o,i)}}function xC(e,t,n,r,i){const{$table:o,row:a,column:s}=i,{name:l}=r,c=o,{editConfig:u,mouseConfig:d}=c;let h=!1,p=!1;if(u&&d){const e=o,{editStore:t}=e,{selected:n}=t;if(h=a===n.row&&s===n.column,o.getActiveCellArea){const e=o.getActiveCellArea();e&&(p=a===e.row&&s===e.column)}}const f=n;return(p||h)&&f.push(e(""+l,{key:2,class:`vxe-default-${l} vxe-reusekeep-control`,attrs:Sw(r),domProps:{value:t},on:Lw(r,i)})),f}function wC(e,t,n,r,i){const{$table:o,row:a,column:s}=i,l=o,{editConfig:c,mouseConfig:u}=l;let d=!1,h=!1;if(c&&u){const e=o,{editStore:t}=e,n=o.computeEditOpts;if(n.isReuseKeep){const{selected:e}=t;if(d=a===e.row&&s===e.column,o.getActiveCellArea){const e=o.getActiveCellArea();e&&(h=a===e.row&&s===e.column)}}}const p=n;if(h||d){const n=Ew(r,i,t),{className:o,inputClassName:a}=n;p.push(e(ww(r),{key:2,props:Object.assign(Object.assign({},n),{className:"vxe-reusekeep-control"+(o?" "+o:""),inputClassName:"vxe-reusekeep-control"+(a?" "+a:"")}),on:Iw(r,i)}))}return p}uw.mixin({input:{tableAutoFocus:!0,renderTableEdit:Bw,renderTableCell:jw,renderTableDefault:Bw,createTableFilterOptions:eC,renderTableFilter:Zw,tableFilterDefaultMethod:rC},textarea:{tableAutoFocus:!0,renderTableEdit:Bw,renderTableCell:jw,renderTableDefault:Bw},select:{renderTableEdit:iC,renderTableDefault:iC,renderTableCell(e,t,n){const{options:r,optionGroups:i}=t,{$table:o,row:a,column:s}=n,l=r?r.length:null,c=i?i.length:null,{cellResult:u}=o.effectCellData(a,s,{key:"render_table_cell",isChanged({oldValue:e,cellValue:t}){return e&&e[0]===t&&e[1]===l&&e[2]===c},setValue({cellValue:e}){return[e,l,c]},getResult({cellValue:e}){return lC(e,t)}});return $w(e,t,n,u)},renderTableFilter(e,t,n){const{column:r}=n;return r.filters.map((r,i)=>e("select",{key:i,class:"vxe-default-select",attrs:Sw(t),on:Nw(t,n,r)},t.optionGroups?Kw(e,t,n,Xw):Xw(e,t.options,t,n)))},tableCellFormatter:gC,tableCellCopyMethod:gC,tableCellPasteMethod:vC,tableFilterDefaultMethod:nC,tableExportMethod:uC},VxeInput:{tableAutoFocus:!0,renderTableEdit:zw,renderTableCell(e,t,n){const{props:r={}}=t,{row:i,column:o}=n,a=cw().input||{},s=r.digits||a.digits||2;let l=pc.get(i,o.field);if(l)switch(r.type){case"date":case"week":case"month":case"quarter":case"year":l=bw(l,r);break;case"float":l=pc.toFixed(pc.floor(l,s),s);break}const c=$w(e,t,n,l);return wC(e,l,c,t,n)},renderTableDefault:zw,createTableFilterOptions:eC,renderTableFilter:Qw,renderTableFloatingFilter:Jw,tableFilterDefaultMethod:rC},FormatNumberInput:{renderTableDefault(e,t,n){const{row:r,column:i}=n,o=pc.get(r,i.field);return fC(e,o,t,n)},tableFilterDefaultMethod({option:e,row:t,column:n}){const{data:r}=e,i=pc.get(t,n.field);return i==r},tableExportMethod(e){const{row:t,column:n}=e,r=pc.get(t,n.field);return r}},VxeNumberInput:{tableAutoFocus:!0,renderTableEdit:zw,renderTableCell(e,t,n){const{row:r,column:i}=n,o=pc.get(r,i.field),a=fC(e,o,t,n);return wC(e,o,a,t,n)},renderTableFooter(e,t,n){const{props:r={}}=t,{row:i,column:o,_columnIndex:a}=n,{type:s}=r,l=pc.isArray(i)?i[a]:pc.get(i,o.field);if(pc.isNumber(l)){const e=cw().numberInput||{};if("float"===s){const t=mw(r.autoFill,e.autoFill,!0),n=mw(r.digits,e.digits,1);let i=pc.toFixed(pc.floor(l,n),n);return t||(i=""+pc.toNumber(i)),i}if("amount"===s){const t=mw(r.autoFill,e.autoFill,!0),n=mw(r.digits,e.digits,2),i=mw(r.showCurrency,e.showCurrency,!1);let o=pc.commafy(pc.toNumber(l),{digits:n});if(!t){const[e,t]=o.split(".");if(t){const n=t.replace(/0+$/,"");o=n?[e,".",n].join(""):e}}return i&&(o=`${r.currencySymbol||e.currencySymbol||dw("vxe.numberInput.currencySymbol")||""}${o}`),o}}return fd(l,1)},renderTableDefault:zw,createTableFilterOptions:eC,renderTableFilter:Qw,renderTableFloatingFilter:Jw,tableFilterDefaultMethod({option:e,row:t,column:n}){const{data:r}=e,i=pc.get(t,n.field);return i==r},tableExportMethod(e){const{row:t,column:n}=e,r=pc.get(t,n.field);return r}},VxeDatePicker:{tableAutoFocus:!0,renderTableEdit:Hw,renderTableCell(e,t,n){const r=t.props||{},{$table:i,row:o,column:a}=n,{cellResult:s}=i.effectCellData(o,a,{key:"render_table_cell",getResult({cellValue:e}){return e&&"time"!==r.type?bw(e,r):e}});return $w(e,t,n,s)},tableCellFormatter:mC,renderTableDefault:Hw,createTableFilterOptions:eC,renderTableFilter:Qw,renderTableFloatingFilter:Jw,tableFilterDefaultMethod:nC},VxeDateRangePicker:{tableAutoFocus:!0,renderTableEdit(e,t,n){const{startField:r,endField:i}=t,{$table:o,row:a,column:s}=n,{model:l}=s,c=Sp(a,s),u={},d={};return r&&i&&(u.startValue=pc.get(a,r),u.endValue=pc.get(a,i),d["update:startValue"]=e=>{r&&pc.set(a,r,e)},d["update:endValue"]=e=>{i&&pc.set(a,i,e)}),[e(ww(t),{props:Ew(t,n,c,u),on:Rw(t,n,{model(e){l.update=!0,l.value=e,kp(a,s,e)},change(){o.updateStatus(n)},blur(){o.handleCellRuleUpdateStatus("blur",n)}},d)})]},renderTableDefault(e,t,n){const{startField:r,endField:i}=t,{row:o,column:a}=n,{model:s}=a,l=Sp(o,a),c={},u={};return r&&i&&(c.startValue=pc.get(o,r),c.endValue=pc.get(o,i),u["update:startValue"]=e=>{r&&pc.set(o,r,e)},u["update:endValue"]=e=>{i&&pc.set(o,i,e)}),[e(ww(t),{props:Ew(t,n,l,c),on:Rw(t,n,{model(e){s.update=!0,s.value=e,kp(o,a,e)}},u)})]},renderTableCell(e,t,n){const{startField:r,endField:i}=t,{row:o,column:a}=n;let s="",l="";if(r&&i)s=pc.get(o,r),l=pc.get(o,i);else{const e=pc.get(o,a.field);if(e)if(pc.isArray(e))s=e[0],l=e[1];else{const t=`${e}`.split(",");s=t[0],l=t[1]}}let c="";return s&&l&&(c=`${s} ~ ${l}`),$w(e,t,n,c)}},VxeTextarea:{tableAutoFocus:!0,renderTableDefault:zw,renderTableCell(e,t,n){const{row:r,column:i}=n,o=pc.get(r,i.field),a=$w(e,t,n,o);return wC(e,o,a,t,n)},renderTableEdit:zw},VxeButton:{renderTableDefault:Vw},VxeButtonGroup:{renderTableDefault(e,t,n){const{options:r}=t;return[e(ww(t),{props:Object.assign({options:r},Ew(t,n,null)),on:Rw(t,n)})]}},VxeSelect:{tableAutoFocus:!0,renderTableEdit:oC,renderTableDefault:oC,renderTableCell(e,t,n){const{options:r,optionGroups:i}=t,{$table:o,row:a,column:s}=n,l=r?r.length:null,c=i?i.length:null,{cellResult:u}=o.effectCellData(a,s,{key:"render_table_cell",isChanged({oldValue:e,cellValue:t}){return e&&e[0]===t&&e[1]===l&&e[2]===c},setValue({cellValue:e}){return[e,l,c]},getResult({cellValue:e}){return lC(e,t)}});return $w(e,t,n,u)},createTableFilterOptions:eC,renderTableFilter(e,t,n){const{column:r}=n,{options:i,optionProps:o,optionGroups:a,optionGroupProps:s}=t;return r.filters.map((r,l)=>{const c=r.data;return e(ww(t),{key:l,props:Ow(t,n,c,{options:i,optionProps:o,optionGroups:a,optionGroupProps:s}),on:Aw(t,n,r)})})},renderTableFloatingFilter(e,t,n){const{option:r}=n,{options:i,optionProps:o,optionGroups:a,optionGroupProps:s}=t,l=r.data;return e(ww(t),{props:Ow(t,n,l,{options:i,optionProps:o,optionGroups:a,optionGroupProps:s}),on:Pw(t,n,r)})},tableCellFormatter:gC,tableCellCopyMethod:gC,tableCellPasteMethod:vC,tableFilterDefaultMethod:nC,tableExportMethod:uC},VxeText:{renderTableDefault(e,t,n){const{$table:r,row:i,column:o}=n,{props:a}=t,s=r.getCellLabel(i,o);return[e(ww(t),{props:Object.assign(Object.assign({},a||{}),{content:s}),on:Rw(t,n)})]}},VxeLink:{renderTableDefault(e,t,n){const{$table:r,row:i,column:o}=n,{props:a}=t,{href:s}=a||{},l=r.getCellLabel(i,o);return[e(ww(t),{props:Object.assign(Object.assign({},a||{}),{content:l,href:pc.toFormatString(s,n)}),on:Rw(t,n)})]}},formatOption:{renderTableDefault(e,t,n){return $w(e,t,n,cC(t,n))}},FormatSelect:{renderTableDefault(e,t,n){const{options:r,optionGroups:i}=t,{$table:o,row:a,column:s}=n,l=r?r.length:null,c=i?i.length:null,{cellResult:u}=o.effectCellData(a,s,{key:"render_table_cell",isChanged({oldValue:e,cellValue:t}){return e&&e[0]===t&&e[1]===l&&e[2]===c},setValue({cellValue:e}){return[e,l,c]},getResult({cellValue:e}){return lC(e,t)}});return $w(e,t,n,u)},tableCellFormatter:gC,tableCellCopyMethod:gC,tableCellPasteMethod:vC,tableFilterDefaultMethod:nC,tableExportMethod:uC},VxeTreeSelect:{tableAutoFocus:!0,renderTableEdit:aC,renderTableCell(e,t,n){const{options:r,optionGroups:i}=t,{$table:o,row:a,column:s}=n,l=r?r.length:null,c=i?i.length:null,{cellResult:u}=o.effectCellData(a,s,{key:"render_table_cell",isChanged({oldValue:e,cellValue:t}){return e&&e[0]===t&&e[1]===l&&e[2]===c},setValue({cellValue:e}){return[e,l,c]},getResult({cellValue:e}){return dC(e,t)}});return $w(e,t,n,u)},tableCellFormatter:bC,tableCellCopyMethod:bC,tableCellPasteMethod:yC,tableExportMethod:pC},formatTree:{renderTableDefault(e,t,n){return $w(e,t,n,hC(t,n))}},FormatTreeSelect:{renderTableDefault(e,t,n){const{options:r,optionGroups:i}=t,{$table:o,row:a,column:s}=n,l=r?r.length:null,c=i?i.length:null,{cellResult:u}=o.effectCellData(a,s,{key:"render_table_cell",isChanged({oldValue:e,cellValue:t}){return e&&e[0]===t&&e[1]===l&&e[2]===c},setValue({cellValue:e}){return[e,l,c]},getResult({cellValue:e}){return dC(e,t)}});return $w(e,t,n,u)},tableCellFormatter:bC,tableCellCopyMethod:bC,tableCellPasteMethod:yC,tableExportMethod:pC},VxeCascader:{tableAutoFocus:!0,renderTableEdit:aC,renderTableCell(e,t,n){const{options:r,optionGroups:i}=t,{$table:o,row:a,column:s}=n,l=r?r.length:null,c=i?i.length:null,{cellResult:u}=o.effectCellData(a,s,{key:"render_table_cell",isChanged({oldValue:e,cellValue:t}){return e&&e[0]===t&&e[1]===l&&e[2]===c},setValue({cellValue:e}){return[e,l,c]},getResult({cellValue:e}){return dC(e,t)}});return $w(e,t,n,u)},tableCellFormatter:bC,tableCellCopyMethod:bC,tableCellPasteMethod:yC,tableExportMethod:pC},VxeTableSelect:{tableAutoFocus:!0,renderTableEdit:aC,renderTableCell(e,t,n){const{options:r,optionGroups:i}=t,{$table:o,row:a,column:s}=n,l=r?r.length:null,c=i?i.length:null,{cellResult:u}=o.effectCellData(a,s,{key:"render_table_cell",isChanged({oldValue:e,cellValue:t}){return e&&e[0]===t&&e[1]===l&&e[2]===c},setValue({cellValue:e}){return[e,l,c]},getResult({cellValue:e}){return dC(e,t)}});return $w(e,t,n,u)},tableCellFormatter:bC,tableCellCopyMethod:bC,tableCellPasteMethod:yC,tableExportMethod:pC},VxeColorPicker:{tableAutoFocus:!0,renderTableEdit(e,t,n){const{row:r,column:i}=n,{options:o}=t,a=Sp(r,i);return[e(ww(t),{props:Ew(t,n,a,{colors:o}),on:Iw(t,n)})]},renderTableCell(e,t,n){const{$table:r,row:i,column:o}=n,{props:a}=t,s=a?a.size:null,l=s||r.computeSize,c=pc.get(i,o.field);return e("span",{class:["vxe-color-picker--readonly",{[`size--${l}`]:l}]},[e("div",{class:["vxe-color-picker--readonly-color",{"is--empty":!c}],style:c?{backgroundColor:c}:void 0})])}},VxeIconPicker:{tableAutoFocus:!0,renderTableEdit(e,t,n){const{row:r,column:i}=n,{options:o}=t,a=Sp(r,i);return[e(ww(t),{props:Ew(t,n,a,{icons:o}),on:Iw(t,n)})]},renderTableCell(e,t,n){const{row:r,column:i}=n,o=pc.get(r,i.field);return e("i",{class:o})}},VxeRadioGroup:{renderTableDefault:qw},VxeCheckbox:{renderTableDefault:Ww},VxeCheckboxGroup:{renderTableDefault:qw},VxeSwitch:{tableAutoFocus:"button",renderTableEdit:Hw,renderTableDefault:Hw},VxeUpload:{renderTableEdit:Hw,renderTableCell:Hw,renderTableDefault:Hw},VxeImage:{renderTableDefault(e,t,n){const{row:r,column:i}=n,{props:o}=t,a=Sp(r,i);return[e(ww(t),{props:Object.assign(Object.assign({},o),{src:a}),on:Iw(t,n)})]}},VxeImageGroup:{renderTableDefault(e,t,n){const{row:r,column:i}=n,{props:o}=t,a=Sp(r,i);return[e(ww(t),{props:Object.assign(Object.assign({},o),{urlList:a}),on:Iw(t,n)})]}},VxeTextEllipsis:{renderTableDefault(e,t,n){const{row:r,column:i}=n,{props:o}=t,a=Sp(r,i);return[e(ww(t),{props:Object.assign(Object.assign({},o),{content:a}),on:Iw(t,n)})]}},VxeRate:{renderTableDefault:Hw},VxeSlider:{renderTableDefault:Hw},$input:{tableAutoFocus:"input",renderTableEdit:Gw,renderTableCell(e,t,n){var r;const{props:i={}}=t,{row:o,column:a}=n,s=i.digits||(null===(r=cw().input)||void 0===r?void 0:r.digits)||2;let l=pc.get(o,a.field);if(l)switch(i.type){case"date":case"week":case"month":case"year":l=bw(l,i);break;case"float":l=pc.toFixed(pc.floor(l,s),s);break}return $w(e,t,n,l)},renderTableDefault:Gw,renderTableFilter:tC,tableFilterDefaultMethod:rC},$textarea:{tableAutoFocus:"textarea"},$button:{renderTableDefault:Yw},$buttons:{renderTableDefault:Uw},$select:{tableAutoFocus:"input",renderTableEdit:sC,renderTableDefault:sC,renderTableCell(e,t,n){return $w(e,t,n,cC(t,n))},renderTableFilter(e,t,n){const{column:r}=n,{options:i,optionProps:o,optionGroups:a,optionGroupProps:s}=t;return r.filters.map((r,l)=>{const c=r.data;return e(xw(t),{key:l,props:Ow(t,n,c,{options:i,optionProps:o,optionGroups:a,optionGroupProps:s}),on:Aw(t,n,r)})})},tableFilterDefaultMethod:nC,tableExportMethod:uC},$radio:{tableAutoFocus:"input"},$checkbox:{tableAutoFocus:"input"},$switch:{tableAutoFocus:"button",renderTableEdit:Gw,renderTableDefault:Gw}});let CC=!1;const _C=Object.assign({},Tx,{install(e){"undefined"!==typeof window&&(window.VxeTableExtendCellArea&&window.VxeTableExtendCellArea.use?window.VxeTableExtendCellArea.use(ad):window.VXETableMixin&&(Tx.mixins.push(window.VXETableMixin),delete window.VXETableMixin),window.VxeTableExtendPivotTable&&window.VxeTableExtendPivotTable.use&&window.VxeTableExtendPivotTable.use(ad)),"undefined"!==typeof window&&window.VxeTableExtendCellArea&&window.VxeTableExtendCellArea.init?(window.VxeTableExtendCellArea.init(ad),delete window.VxeTableExtendCellArea,delete window.VXETablePro):"undefined"!==typeof window&&window.VXETablePro&&window.VXETablePro.init&&(window.VXETablePro.init(ad),delete window.VXETablePro),gu().prototype.$vxe?(gu().prototype.$vxe.t=ad.t,gu().prototype.$vxe._t=ad._t):gu().prototype.$vxe={t:ad.t,_t:ad._t},CC||(CC=!0,ad.dynamicApp&&ad.dynamicApp.component(Tx.name,Tx)),e.component(Tx.name,Tx)}});ad.component(Tx);const SC=_C,kC=Object.assign({},Vx,{install(e){e.component(Vx.name,Vx)}});ad.dynamicApp&&ad.dynamicApp.component(Vx.name,Vx),ad.component(Vx);const EC=kC,OC={vxe:{base:{pleaseInput:"请输入",pleaseSelect:"请选择",comma:",",fullStop:"。"},loading:{text:"加载中..."},error:{downErr:"下载失败",errLargeData:"当绑定的数据量过大时,应该请使用 {0},否则可能会出现卡顿",groupFixed:"如果使用分组表头,冻结列必须按组设置",groupMouseRange:'分组表头与 "{0}" 不能同时使用,这可能会出现错误',groupTag:'分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',scrollErrProp:'启用虚拟滚动后不支持该参数 "{0}"',errConflicts:'参数 "{0}" 与 "{1}" 有冲突',modelConflicts:'绑定的字段值 "{0}" 与 "{1}" 存在冲突,将会出现错误',notSupportProp:'当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',reqSupportProp:'当使用 "{0}" 时,应该设置 "{1}",否则可能会出现错误',notConflictProp:'当使用 "{0}" 时,应该设置 "{1}",否则可能会存在功能冲突',unableInsert:"无法插入到指定位置,请检查参数是否正确",useErr:'安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',barUnableLink:"工具栏无法关联表格",expandContent:'展开行的插槽应该是 "content",请检查是否正确',reqComp:'缺少 "{0}" 组件,请检查是否正确安装。 https://vxeui.com/#/start/useUI/useGlobal',reqModule:'缺少 "{0}" 模块',reqProp:'缺少必要的 "{0}" 参数,这可能会导致出现错误',emptyProp:'参数 "{0}" 不允许为空',errProp:'不支持的参数 "{0}",可能为 "{1}"',colRepet:'column.{0}="{1}" 重复了,这可能会导致某些功能无法使用',notFunc:'方法 "{0}" 不存在',errFunc:'参数 "{0}" 不是一个方法',notValidators:'全局校验 "{0}" 不存在',notFormats:'全局格式化 "{0}" 不存在',notCommands:'全局指令 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:'树结构不支持 "{0}"',noGroup:'数据分组后不支持 "{0}"',notProp:'不支持的参数 "{0}"',returnErr:'参数 "{0}" 的返回值期望是 "{1}" 实际是 "{2}"',notSupportReturn:'当返回值为 "{0}" 时的参数应该使用用 "{1}" 而不是 "{2}"',checkProp:'当数据量过大时可能会导致复选框卡顿,建议设置参数 "{0}" 提升渲染速度',coverProp:'"{0}" 的参数 "{1}" 重复定义,这可能会出现错误',uniField:'字段名 "{0}" 重复定义,这可能会出现错误',repeatKey:'主键重复 {0}="{1}",这可能会出现错误',repeatProp:'参数重复 {0}="{1}",这可能会出现错误',delFunc:'方法 "{0}" 已废弃,请使用 "{1}"',delProp:'参数 "{0}" 已废弃,请使用 "{1}"',delEvent:'事件 "{0}" 已废弃,请使用 "{1}"',removeProp:'参数 "{0}" 已废弃,不建议使用,这可能会导致出现错误',errFormat:'全局的格式化内容应该使用 "VXETable.formats" 定义,挂载 "formatter={0}" 的方式已不建议使用',notType:'不支持的文件类型 "{0}"',notExp:"该浏览器不支持导入/导出功能",impFields:"导入失败,请检查字段名和数据格式是否正确",treeNotImp:"树表格不支持导入",treeCrossDrag:"只能拖拽第一层级",treeDragChild:"父级不能拖拽到自己的子级中",reqPlugin:'扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/start/npmInstall',errMaxRow:"超过支持的最大数据量 {0} 行,这可能会导致出现错误",useNew:"不建议使用 {0},请使用 {1}",errorVersion:"版本不匹配,当前版本 {0},最低支持版本为 {1}"},table:{emptyText:"暂无数据",allTitle:"全选/取消",seqTitle:"序号",actionTitle:"操作",confirmFilter:"筛选",resetFilter:"重置",allFilter:"全部",sortAsc:"升序:最低到最高",sortDesc:"降序:最高到最低",filter:"对所选的列启用筛选",impSuccess:"成功导入 {0} 条记录",expLoading:"正在导出中",expSuccess:"导出成功",expError:"导出失败",expFilename:"导出_{0}",expOriginFilename:"导出_源_{0}",customTitle:"个性化设置",customAll:"全部",customConfirm:"确认",customClose:"关闭",customCancel:"取消",customRestore:"恢复默认",maxFixedCol:"最大冻结列的数量不能超过 {0} 个",maxGroupCol:"最大分组字段的数量不能超过 {0} 个",dragTip:"移动:{0}",resizeColTip:"宽:{0} 像素",resizeRowTip:"高:{0} 像素",rowGroupContentTotal:"{0}({1})",menuLoading:"加载中..."},grid:{selectOneRecord:"请至少选择一条记录!",deleteSelectRecord:"您确定要删除所选记录吗?",removeSelectRecord:"您确定要移除所选记录吗?",dataUnchanged:"数据未改动!",delSuccess:"成功删除所选记录!",saveSuccess:"保存成功!",operError:"发生错误,操作失败!"},select:{clear:"清除",allChecked:"全选",total:"已选 {0} 项",close:"关闭",search:"搜索",loadingText:"加载中...",emptyText:"暂无数据",maxSize:"最大可选择的数量不能超过 {0} 个",overSizeErr:"已超出最大可选数量 {0} 个,超出部分将被忽略!",searchEmpty:"未匹配到数据!"},list:{allChecked:"全选",dragTip:"移动:{0}"},tree:{searchEmpty:"未匹配到数据!",dragTip:"移动:{0}"},treeSelect:{clearChecked:"清除",allChecked:"全选",allExpand:"全部展开",clearExpand:"全部收起",total:"已选 {0} 项",close:"关闭",search:"搜索",emptyText:"暂无数据"},pager:{goto:"前往",gotoTitle:"页数",pagesize:"{0}条/页",total:"共 {0} 条记录",pageClassifier:"页",homePage:"首页",homePageTitle:"首页",prevPage:"上一页",prevPageTitle:"上一页",nextPage:"下一页",nextPageTitle:"下一页",prevJump:"向上跳页",prevJumpTitle:"向上跳页",nextJump:"向下跳页",nextJumpTitle:"向下跳页",endPage:"末页",endPageTitle:"末页"},alert:{title:"系统提示"},button:{confirm:"确认",cancel:"取消",clear:"清除"},filter:{search:"搜索"},custom:{cstmTitle:"个性化设置",cstmRestore:"恢复默认",cstmCancel:"取消",cstmConfirm:"确定",cstmConfirmRestore:"请确认是否恢复成默认列配置?",cstmDragTarget:"移动:{0}",setting:{colSort:"排序",sortHelpTip:"点击图标开始拖动",colTitle:"列标题",colResizable:"列宽(像素)",colVisible:"是否显示",colFixed:"冻结列",colFixedMax:"冻结列({0})",colAlign:"对齐方式",colHeadAlign:"表头对齐方式",colFootAlign:"表尾对齐方式",fixedLeft:"左",fixedUnset:"无",fixedRight:"右",alignLeft:"左",alignCenter:"中",alignRight:"右",moveUp:"上移",moveDn:"下移",putTop:"置顶",putBottom:"置尾",moveUpTitle:"点击向上移动",moveDnTitle:"点击向下移动",putTopTitle:"点击置顶",putBottomTitle:"点击置尾",anLeftTitle:"左对齐",anCenterTitle:"居中",anRightTitle:"右对齐"}},import:{modes:{covering:"覆盖方式(直接覆盖表格数据)",insert:"底部追加(在表格的底部追加新数据)",insertTop:"顶部追加(在表格的顶部追加新数据)",insertBottom:"底部追加(在表格的底部追加新数据)"},impTitle:"导入数据",impFile:"文件名",impSelect:"选择文件",impType:"文件类型",impOpts:"参数设置",impMode:"导入模式",impConfirm:"导入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"网页(*.html)",xml:"XML 数据(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{empty:"空数据",current:"当前数据(当前页的数据)",selected:"选中数据(当前页选中的数据)",all:"全量数据(包括所有分页的数据)"},printTitle:"打印数据",expTitle:"导出数据",expName:"文件名",expNamePlaceholder:"请输入文件名",expSheetName:"标题",expSheetNamePlaceholder:"请输入标题",expType:"保存类型",expMode:"选择数据",expCurrentColumn:"全部字段",expColumn:"选择字段",widthMode:"列宽设置",wModeTitle:"设置打印时列宽的渲染方式",wdModes:{default:"默认",auto:"自适应(根据内容自适应列宽)",scale:"等比例(根据页面比例渲染列宽)"},expOpts:"参数设置",expOptHeader:"表头",expHeaderTitle:"是否需要表头",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expOptTitle:"列标题",expTitleTitle:"是否为列标题,否则显示为列的字段名",expColgroupTitle:"如果存在,则支持带有分组结构的表头",expOptMerge:"合并",expMergeTitle:"如果存在,则支持带有合并结构的单元格",expOptAllExpand:"展开树",expAllExpandTitle:"如果存在,则支持将带有层级结构的数据全部展开",expOptTreeAllExpand:"展开树",expTreeAllExpandTitle:"如果存在,则自动展开所有树层级",expOptRowGroupAllExpand:"展开分组",expRowGroupAllExpandTitle:"如果存在,则自动展开所有分组层级",expOptUseStyle:"样式",expUseStyleTitle:"如果存在,则支持带样式的单元格",expOptOriginal:"源数据",expOriginalTitle:"如果为源数据,则支持导入到表格中",expPrint:"打印",expConfirm:"导出",expCancel:"取消"},modal:{errTitle:"错误提示",zoomMin:"最小化",zoomIn:"最大化",zoomOut:"还原",close:"关闭",miniMaxSize:"最小化窗口的数量不能超过 {0} 个",footPropErr:"show-footer 仅用于启用表尾,需配合 show-confirm-button | show-cancel-button | 插槽使用"},drawer:{close:"关闭"},form:{folding:"收起",unfolding:"展开"},toolbar:{import:"导入",export:"导出",print:"打印",refresh:"刷新",zoomIn:"全屏",zoomOut:"还原",custom:"个性化设置",customAll:"全部",customConfirm:"确认",customRestore:"重置",fixedLeft:"冻结在左侧",fixedRight:"冻结在右侧",cancelFixed:"取消冻结列"},iconPicker:{search:"搜索",emptyText:"暂无数据"},datePicker:{yearTitle:"{0} 年"},dateRangePicker:{pleaseRange:"请选择开始日期与结束日期"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}},calendar:{yearLabel:"{0} 年",monthLabel:"{0} 月"},cascader:{clearChecked:"清除",allChecked:"全选",total:"已选 {0} 项",close:"关闭",search:"搜索"},numberInput:{currencySymbol:"¥"},imagePreview:{popupTitle:"预览",operBtn:{zoomOut:"缩小",zoomIn:"放大",pctFull:"等比例缩放",pct11:"显示原始尺寸",rotateLeft:"向左旋转",rotateRight:"向右旋转",print:"点击打印图片",download:"点击下载图片"}},upload:{fileBtnText:"点击或拖拽上传",imgBtnText:"点击或拖拽上传",dragPlaceholder:"请把文件拖放到这个区域即可上传",imgSizeHint:"单张{0}",imgCountHint:"最多{0}张",fileTypeHint:"支持 {0} 文件类型",fileSizeHint:"单个文件大小不超过{0}",fileCountHint:"最多可上传{0}个文件",uploadTypeErr:"文件类型不匹配!",overCountErr:"最多只能选择{0}个文件!",overCountExtraErr:"已超出最大数量{0}个,超出的{1}个文件将被忽略!",overSizeErr:"文件大小最大不能超过{0}!",manualUpload:"点击上传",reUpload:"重新上传",uploadProgress:"上传中 {0}%",uploadErr:"上传失败",uploadSuccess:"上传成功",moreBtnText:"更多({0})",moreImgBtnText:"图片({0})",moreFileBtnText:"文件({0})",viewItemTitle:"点击查看",morePopup:{readTitle:"查看列表",imageTitle:"上传图片",fileTitle:"上传文件"}},empty:{defText:"暂无数据"},colorPicker:{clear:"清除",confirm:"确认",copySuccess:"已复制到剪贴板:{0}",hex:"十六进制"},formDesign:{formName:"表单名称",defFormTitle:"未命名的表单",widgetPropTab:"控件属性",widgetFormTab:"表单属性",error:{wdFormUni:"该类型的控件在表单中只允许添加一个",wdSubUni:"该类型的控件在子表中只允许添加一个"},styleSetting:{btn:"样式设置",title:"表单的样式设置",layoutTitle:"控件布局",verticalLayout:"上下布局",horizontalLayout:"横向布局",styleTitle:"标题样式",boldTitle:"标题加粗",fontBold:"加粗",fontNormal:"常规",colonTitle:"显示冒号",colonVisible:"显示",colonHidden:"隐藏",alignTitle:"对齐方式",widthTitle:"标题宽度",alignLeft:"居左",alignRight:"居右",unitPx:"像素",unitPct:"百分比"},widget:{group:{base:"基础控件",layout:"布局控件",system:"系统控件",module:"模块控件",chart:"图表控件",advanced:"高级控件"},copyTitle:"副本_{0}",component:{input:"输入框",textarea:"文本域",select:"下拉选择",row:"一行多列",title:"标题",text:"文本",subtable:"子表",VxeSwitch:"是/否",VxeInput:"输入框",VxeNumberInput:"数字",VxeDatePicker:"日期",VxeTextarea:"文本域",VxeSelect:"下拉选择",VxeTreeSelect:"树形选择",VxeRadioGroup:"单选框",VxeCheckboxGroup:"复选框",VxeUploadFile:"文件",VxeUploadImage:"图片",VxeRate:"评分",VxeSlider:"滑块"}},widgetProp:{name:"控件名称",placeholder:"提示语",required:"必填校验",multiple:"允许多选",displaySetting:{name:"显示设置",pc:"电脑端",mobile:"手机端",visible:"显示",hidden:"隐藏"},dataSource:{name:"数据源",defValue:"选项{0}",addOption:"添加选项",batchEditOption:"批量编辑",batchEditTip:"每行对应一个选项,支持从表格、Excel、WPS 中直接复制粘贴。",batchEditSubTip:"每行对应一个选项,如果是分组,子项可以是空格或制表键开头,支持从表格、Excel、WPS 中直接复制粘贴。",buildOption:"生成选项"},rowProp:{colSize:"列数",col2:"两列",col3:"三列",col4:"四列",col6:"六列",layout:"布局"},textProp:{name:"内容",alignTitle:"对齐方式",alignLeft:"居左",alignCenter:"居中",alignRight:"居右",colorTitle:"字体颜色",sizeTitle:"字体大小",boldTitle:"字体加粗",fontNormal:"常规",fontBold:"加粗"},subtableProp:{seqTitle:"序号",showSeq:"显示序号",showCheckbox:"允许多选",errSubDrag:"子表不支持该控件,请使用其他控件",colPlace:"将控件拖拽进来"},uploadProp:{limitFileCount:"文件数量限制",limitFileSize:"文件大小限制",multiFile:"允许上传多个文件",limitImgCount:"图片数量限制",limitImgSize:"图片大小限制",multiImg:"允许上传多张图片"}}},listDesign:{fieldSettingTab:"字段设置",listSettingTab:"参数设置",searchTitle:"查询条件",listTitle:"列表字段",searchField:"查询字段",listField:"列表字段",activeBtn:{ActionButtonUpdate:"编辑",ActionButtonDelete:"删除"},search:{addBtn:"编辑",emptyText:"未配置查询条件",editPopupTitle:"编辑查询字段"},searchPopup:{colTitle:"标题",saveBtn:"保存"}},text:{copySuccess:"已复制到剪贴板",copyError:"当前环境不支持该操作"},countdown:{formats:{yyyy:"年",MM:"月",dd:"天",HH:"时",mm:"分",ss:"秒"}},contextMenu:{loadingText:"加载中..."},switch:{onText:"打开",offText:"关闭"},gantt:{tFullFormat:{year:"{yyyy}年",quarter:"{yyyy}年第{q}季度",month:"{yyyy}年{MM}月",week:"{yyyy}年第{W}周",day:"{yyyy}年{MM}月 {eLabel}",date:"{yyyy}年{MM}月{dd}日",hour:"{yyyy}年{MM}月{dd}日{HH}时",minute:"{yyyy}年{MM}月{dd}日{HH}时{mm}分",second:"{yyyy}年{MM}月{dd}日{HH}时{mm}分{ss}秒"},tSimpleFormat:{year:"{yyyy}年",quarter:"{q}季度",month:"{M}月",week:"{W}周",day:"{eLabel}",date:"{d}",hour:"{HH}",minute:"{mm}",second:"{ss}"},stepFormat:{year:"{start.yyyy}~{end.yyyy}年",quarter:"{start.q}~{end.q}季度",month:"{start.M}~{end.M}月",week:"{start.W}~{end.W}周",day:"{eStartLabel}~{eEndLabel}",date:"{start.d}~{end.d}",hour:"{start.HH}~{end.HH}",minute:"{start.mm}~{end.mm}",second:"{start.ss}~{end.ss}"},dayss:{w0:"日",w1:"一",w2:"二",w3:"三",w4:"四",w5:"五",w6:"六"},days:{w0:"日",w1:"一",w2:"二",w3:"三",w4:"四",w5:"五",w6:"六"}},plugins:{extendCellArea:{area:{mergeErr:"无法对合并单元格进行该操作",multiErr:"无法对多重选择区域进行该操作",selectErr:"无法操作指定区域的单元格",extendErr:"若要执行此操作,所有合并的单元格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作",cpInvalidErr:"该操作无法进行,您选择的区域中存在被禁止的列({0})"},fnr:{title:"查找和替换",titleFd:"查找",titleRe:"替换",findLabel:"查找",replaceLabel:"替换",findTitle:"查找内容:",replaceTitle:"替换为:",tabs:{find:"查找",replace:"替换"},filter:{re:"正则表达式",whole:"全词匹配",sensitive:"区分大小写"},btns:{findNext:"查找下一个",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"单元格",value:"值"},body:{row:"行:{0}",col:"列:{0}"},empty:"(空值)",reError:"无效的正则表达式",recordCount:"已找到 {0} 个单元格",notCell:"找不到匹配的单元格",replaceSuccess:"成功替换 {0} 个单元格"}},extendPivotTable:{aggregation:{grouping:"分组",values:"值",groupPlaceholder:"拖至此处进行分组",valuesPlaceholder:"拖至此处进行聚合",dragExistCol:"该列已存在",sortHelpTip:"点击图标开始拖动"},aggFuncs:{sum:"求和",count:"计数",avg:"平均值",min:"最小值",max:"最大值",first:"首个值",last:"末尾值"}},filterComplexInput:{menus:{fixedColumn:"冻结列",fixedGroup:"冻结分组",cancelFixed:"取消冻结",fixedLeft:"冻结左侧",fixedRight:"冻结右侧"},cases:{equal:"等于",gt:"大于",lt:"小于",begin:"开头是",endin:"结尾是",include:"包含",isSensitive:"区分大小写"}},filterCombination:{menus:{sort:"排序",clearSort:"清除排序",sortAsc:"升序",sortDesc:"降序",fixedColumn:"冻结列",fixedGroup:"冻结分组",cancelFixed:"取消冻结",fixedLeft:"冻结左侧",fixedRight:"冻结右侧",clearFilter:"清除筛选",textOption:"文本筛选",numberOption:"数值筛选",dateOption:"日期筛选"},popup:{title:"自定义筛选的方式",currColumnTitle:"显示行:",and:"与",or:"或",describeHtml:"可用 ? 代表单个字符<br/>用 * 代表任意多个字符"},cases:{equal:"等于",unequal:"不等于",gt:"大于",ge:"大于或等于",lt:"小于",le:"小于或等于",begin:"开头是",notbegin:"开头不是",endin:"结尾是",notendin:"结尾不是",include:"包含",exclude:"不包含",between:"介于",isAfter:"在以下日期之后",eqAfter:"在以下日期之后或与之相同",isBefore:"在以下日期之前",eqBefore:"在以下日期之前或与之相同",top10:"前10项",aboveAverage:"高于平均值",belowAverage:"低于平均值",before:"之前",after:"之后",tomorrow:"明天",today:"今天",yesterday:"昨天",nextWeek:"下周",thisWeek:"本周",lastWeek:"上周",nextMonth:"下月",thisMonth:"本月",lastMonth:"上月",nextYear:"明年",thisYear:"今年",lastYear:"去年",yearToDate:"本年度截止到现在",custom:"自定义筛选",insensitive:"不区分大小写",isSensitive:"区分大小写"},empty:"(空白)",notData:"无匹配项"}},pro:{area:{mergeErr:"无法对合并单元格进行该操作",multiErr:"无法对多重选择区域进行该操作",extendErr:"若要执行此操作,所有合并的单元格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替换",titleFd:"查找",titleRe:"替换",findLabel:"查找",replaceLabel:"替换",findTitle:"查找内容:",replaceTitle:"替换为:",tabs:{find:"查找",replace:"替换"},filter:{re:"正则表达式",whole:"全词匹配",sensitive:"区分大小写"},btns:{findNext:"查找下一个",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"单元格",value:"值"},empty:"(空值)",reError:"无效的正则表达式",recordCount:"已找到 {0} 个单元格",notCell:"找不到匹配的单元格",replaceSuccess:"成功替换 {0} 个单元格"}},renderer:{search:"搜索",cases:{equal:"等于",unequal:"不等于",gt:"大于",ge:"大于或等于",lt:"小于",le:"小于或等于",begin:"开头是",notbegin:"开头不是",endin:"结尾是",notendin:"结尾不是",include:"包含",exclude:"不包含",between:"介于",top10:"前10项",aboveAverage:"高于平均值",belowAverage:"低于平均值",custom:"自定义筛选",insensitive:"不区分大小写",isSensitive:"区分大小写"},combination:{menus:{sort:"排序",clearSort:"清除排序",sortAsc:"升序",sortDesc:"降序",fixedColumn:"冻结列",fixedGroup:"冻结分组",cancelFixed:"取消冻结",fixedLeft:"冻结到左侧",fixedRight:"冻结到右侧",clearFilter:"清除筛选",textOption:"文本筛选",numberOption:"数值筛选",dateOption:"日期筛选"},popup:{title:"自定义筛选的方式",currColumnTitle:"显示行:",and:"与",or:"或",describeHtml:"可用 ? 代表单个字符<br/>用 * 代表任意多个字符"},empty:"(空白)",notData:"无匹配项"}}}},TC=[df,ff,aw,_C,kC];function $C(e,t){ad.setConfig(t),TC.forEach(t=>t.install(e))}if(!ad.hasLanguage("zh-CN")){const e="zh-CN";ad.setI18n(e,OC),ad.setLanguage(e)}ad.setTheme("light")},9274(t){"use strict";t.exports=e}};const n={};function r(e){const i=n[e];if(void 0!==i)return i.exports;const o=n[e]={id:e,loaded:!1,exports:{}};return t[e](o,o.exports,r),o.loaded=!0,o.exports}r.amdO={},r.n=e=>{const t=e&&e.__esModule?()=>e["default"]:()=>e;return r.d(t,{a:t}),t},r.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},r.d=(e,t)=>{if(Array.isArray(t)){var n=0;while(n<t.length){var i=t[n++],o=t[n++],a=0===o?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:o};r.o(e,i)||Object.defineProperty(e,i,a)}}else for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);let i={};return(()=>{"use strict";r.r(i),r.d(i,{default:()=>or});var e=()=>r(1515),t=r.cw(function(t,n){Object.defineProperty(n,"__esModule",{value:!0});var r={};n["default"]=void 0;var i=o(e());function o(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(o=function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,a={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return a;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,a)}for(const n in e)"default"!==n&&{}.hasOwnProperty.call(e,n)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,n))&&(o.get||o.set)?i(a,n,o):a[n]=e[n]);return a})(e,t)}Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in n&&n[e]===i[e]||Object.defineProperty(n,e,{enumerable:!0,get:function(){return i[e]}}))});n["default"]=i});if("undefined"!==typeof window){var n=window.document.currentScript,o=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(r.p=o[1])}var a=function(){var e=this,t=e._self._c;return t("el-button",e._g(e._b({attrs:{type:e.type,icon:e.icon,size:"mini"}},"el-button",e.$attrs,!1),e.$listeners),[e._t("default",function(){return[e._v(e._s(e.label))]})],2)},s=[];const l={name:"StandardButton",props:{label:{type:String,default:""},icon:{type:String,default:""},type:{type:String,default:""}}},c=l;function u(e,t,n,r,i,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var d=u(c,a,s,!1,null,null,null);const h=d.exports;var p=function(){var e=this,t=e._self._c;return t("section",{staticClass:"standard-dialog",class:{"is-draggable":e.canDrag}},[t("el-dialog",e._g(e._b({ref:"dialog",attrs:{visible:e.dialogVisible,title:e.title,fullscreen:e.fullscreenActive,"custom-class":e.dialogCustomClass,"close-on-click-modal":e.closeOnClickModal},on:{"update:visible":function(t){e.dialogVisible=t},opened:e.markDraggable}},"el-dialog",e.$attrs,!1),e.$listeners),[t("template",{slot:"title"},[t("span",{staticClass:"el-dialog__title"},[e._v(e._s(e.title))]),e.fullscreenButtonVisible?t("button",{staticClass:"standard-dialog__fullscreen",attrs:{type:"button","aria-label":e.fullscreenActive?"退出全屏":"全屏"},on:{click:function(t){return t.stopPropagation(),e.toggleFullscreen.apply(null,arguments)}}},[t("i",{class:e.fullscreenActive?"el-icon-c-scale-to-original":"el-icon-full-screen"})]):e._e()]),e._t("default"),t("template",{slot:"footer"},[e.showCancel?t("el-button",{attrs:{size:"mini"},on:{click:e.handleCancel}},[e._v("取消")]):e._e(),e.showConfirm?t("el-button",{attrs:{size:"mini",type:"primary",loading:e.confirmLoading},on:{click:e.handleConfirm}},[e._v("确定")]):e._e()],1)],2)],1)},f=[];const m={name:"StandardDialog",model:{prop:"visible",event:"update:visible"},props:{visible:{type:Boolean,default:!1},title:{type:String,default:""},showCancel:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},confirmLoading:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},showFullscreen:{type:Boolean,default:!1},defaultFullscreen:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},data:function(){return{fullscreenActive:!1}},computed:{dialogVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}},canDrag:function(){return this.draggable&&!this.fullscreenActive},fullscreenButtonVisible:function(){return this.showFullscreen||this.defaultFullscreen},initialFullscreen:function(){return this.fullscreen||this.defaultFullscreen},showCloseButton:function(){var e=this.$attrs||{},t=void 0!==e.showClose?e.showClose:e["show-close"];return void 0===t||!1!==t&&"false"!==t},dialogCustomClass:function(){var e=this.$attrs.customClass||this.$attrs["custom-class"]||"",t=[e,"standard-dialog__panel"];return this.canDrag&&t.push("is-draggable"),this.fullscreenButtonVisible&&t.push("has-fullscreen-btn"),this.showCloseButton||t.push("is-close-hidden"),t.filter(Boolean).join(" ")}},watch:{visible:function(e){var t=this;if(e)return this.fullscreenActive=this.initialFullscreen,this.resetDragPosition(),void this.$nextTick(function(){return t.markDraggable()});this.stopDrag()},draggable:function(){this.draggable||(this.stopDrag(),this.resetDragPosition()),this.markDraggable()}},created:function(){this._dragging=!1,this._dialogEl=null,this.fullscreenActive=this.initialFullscreen},mounted:function(){var e=this;document.addEventListener("mousedown",this.onDocumentMouseDown,!0),this.$nextTick(function(){return e.markDraggable()})},beforeDestroy:function(){this.stopDrag(),document.removeEventListener("mousedown",this.onDocumentMouseDown,!0)},methods:{handleCancel:function(){this.$emit("cancel"),this.dialogVisible=!1},handleConfirm:function(){this.$emit("confirm")},toggleFullscreen:function(){var e=this;this.stopDrag(),this.resetDragPosition(),this.fullscreenActive=!this.fullscreenActive,this.$emit("update:fullscreen",this.fullscreenActive),this.$nextTick(function(){return e.markDraggable()})},getWrapperEl:function(){var e=this.$refs.dialog,t=[];e&&e.$el&&t.push(e.$el),this.$el&&t.push(this.$el);for(var n=0;n<t.length;n++){var r=t[n];if(r&&1===r.nodeType){if(r.classList.contains("el-dialog__wrapper"))return r;if(r.querySelector){var i=r.querySelector(".el-dialog__wrapper");if(i)return i}}}return null},getDialogEl:function(){var e=this.getWrapperEl();return e?e.querySelector(".el-dialog"):null},markDraggable:function(){var e=this.getDialogEl();e&&e.classList.toggle("is-draggable",this.canDrag)},onDocumentMouseDown:function(e){if(this.canDrag&&this.visible&&!this._dragging&&0===e.button){var t=e.target;if(t&&t.closest&&!t.closest(".el-dialog__headerbtn, button, input, textarea, select, a")){var n=t.closest(".el-dialog__header");if(n){var r=n.closest(".el-dialog"),i=this.getWrapperEl();r&&i&&i.contains(r)&&(r.classList.contains("is-fullscreen")||this.startDrag(e,r))}}}},startDrag:function(e,t){var n=t.getBoundingClientRect();t.style.width=n.width+"px",t.style.position="fixed",t.style.margin="0",t.style.transform="none",t.style.left=n.left+"px",t.style.top=n.top+"px";var r=t.getBoundingClientRect(),i=n.left+(n.left-r.left),o=n.top+(n.top-r.top);t.style.left=i+"px",t.style.top=o+"px",this._dragging=!0,this._moved=!1,this._dialogEl=t,this._startX=e.clientX,this._startY=e.clientY,this._originLeft=i,this._originTop=o,this._dialogWidth=n.width,this._prevUserSelect=document.body.style.userSelect,this._prevCursor=document.body.style.cursor,document.body.style.userSelect="none",document.body.style.cursor="move",window.addEventListener("mousemove",this.onDragMove,!0),window.addEventListener("mouseup",this.onDragEnd,!0),window.addEventListener("blur",this.onDragEnd),e.preventDefault()},onDragMove:function(e){if(this._dragging&&this._dialogEl){var t=this._originLeft+(e.clientX-this._startX),n=this._originTop+(e.clientY-this._startY),r=48,i=window.innerWidth-r,o=r-this._dialogWidth,a=window.innerHeight-r;t=Math.min(i,Math.max(o,t)),n=Math.min(a,Math.max(0,n)),t=Math.round(t),n=Math.round(n),this._dialogEl.style.left=t+"px",this._dialogEl.style.top=n+"px",t===Math.round(this._originLeft)&&n===Math.round(this._originTop)||(this._moved=!0),e.preventDefault()}},onDragEnd:function(e){if(this._dragging){var t=this._moved,n=e&&"mouseup"===e.type;this.stopDrag(),t&&n&&this.suppressNextClick()}},stopDrag:function(){this._dragging&&(this._dragging=!1,window.removeEventListener("mousemove",this.onDragMove,!0),window.removeEventListener("mouseup",this.onDragEnd,!0),window.removeEventListener("blur",this.onDragEnd),document.body.style.userSelect=this._prevUserSelect||"",document.body.style.cursor=this._prevCursor||"")},suppressNextClick:function(){var e=function(t){t.preventDefault(),t.stopPropagation(),document.removeEventListener("click",e,!0)};document.addEventListener("click",e,!0),setTimeout(function(){document.removeEventListener("click",e,!0)},50)},resetDragPosition:function(){var e=this._dialogEl||this.getDialogEl();this._dialogEl=e,e&&(e.style.position="",e.style.margin="",e.style.left="",e.style.top="",e.style.width="",e.style.transform="")}}},g=m;r(4780);var v=u(g,p,f,!1,null,null,null);const b=v.exports;var y=function(){var e=this,t=e._self._c;return t("section",{staticClass:"standard-container",style:e.containerStyle},[e._t("default")],2)},x=[];const w={name:"StandardContainer",props:{direction:{type:String,default:"column",validator:function(e){return["column","row"].indexOf(e)>-1}},size:{type:Number,default:100},height:{type:[String,Number],default:null},width:{type:[String,Number],default:null}},computed:{parentContainer:function(){var e=this.$parent;while(e&&"StandardContainer"!==e.$options.name)e=e.$parent;return e},mainAxis:function(){return this.parentContainer?this.parentContainer.direction:"column"},percent:function(){var e=Number(this.size);return isNaN(e)?100:Math.min(100,Math.max(0,e))},containerStyle:function(){var e={flexDirection:this.direction},t=function(e){return"number"===typeof e?"".concat(e,"px"):e};return null!=this.width&&""!==this.width&&(e.width=t(this.width)),null!=this.height&&""!==this.height&&(e.height=t(this.height)),"column"===this.mainAxis?null==e.height&&(e.height="".concat(this.percent,"%")):null==e.width&&(e.width="".concat(this.percent,"%")),e}}},C=w;r(5714);var _=u(C,y,x,!1,null,"b0b5121a",null);const S=_.exports;var k=function(){var e=this,t=e._self._c;return e.renderValid?t("section",{staticClass:"normal-report-toolbar-panel standard-filterbar"},[t("div",{staticClass:"normal-report-filter-row normal-report-filter-row-primary"},[e._l(e.mainConditions,function(n){return t("filter-search-item",{key:n.value,staticClass:"standard-filterbar-item",class:e.itemClass(n),attrs:{cond:n,"search-bar":e.searchBar,options:e.getOptions(n),"is-remote":e.isRemoteCond(n),"remote-method":e.remoteMethods[n.value]||null,"remote-loading":!!e.remoteLoading[n.value],"on-search":e.onSearch,"on-focus":function(){return e.handleSelectFocus(n)}}})}),t("div",{staticClass:"normal-report-filter-actions"},[t("standard-button",{attrs:{type:"primary",loading:e.loading,icon:"el-icon-search",label:"查询"},on:{click:e.onSearch}}),t("standard-button",{attrs:{icon:"el-icon-refresh-left",label:"重置"},on:{click:e.onReset}}),e.showExport?t("standard-button",{attrs:{icon:"el-icon-upload",label:"导出"},on:{click:function(t){return e.$emit("export")}}}):e._e(),e.showAdvancedQuery&&e.secondaryConditions.length?t("standard-advanced-query",{ref:"advancedQuery",attrs:{conditions:e.secondaryConditions,"search-bar":e.searchBar},on:{search:e.onSearch}}):e.showExpand&&e.secondaryConditions.length?t("standard-button",{staticClass:"normal-report-expand-button",attrs:{icon:e.expanded?"el-icon-arrow-up":"el-icon-arrow-down",label:"更多".concat(e.secondaryActiveCount?" (".concat(e.secondaryActiveCount,")"):"")},on:{click:function(t){e.expanded=!e.expanded}}}):e._e()],1)],2),t("transition",{attrs:{name:"normal-report-filter-expand"}},[e.secondaryConditions.length?t("div",{directives:[{name:"show",rawName:"v-show",value:e.secondaryVisible,expression:"secondaryVisible"}],staticClass:"normal-report-filter-row normal-report-filter-row-secondary"},e._l(e.secondaryConditions,function(n){return t("filter-search-item",{key:n.value,staticClass:"standard-filterbar-item",class:e.itemClass(n),attrs:{cond:n,"search-bar":e.searchBar,options:e.getOptions(n),"is-remote":e.isRemoteCond(n),"remote-method":e.remoteMethods[n.value]||null,"remote-loading":!!e.remoteLoading[n.value],"on-search":e.onSearch,"on-focus":function(){return e.handleSelectFocus(n)}}})}),1):e._e()])],1):e._e()},E=[],O=function(){var e=this,t=e._self._c;return t("el-popover",{staticClass:"standard-advanced-query-entry",attrs:{placement:"bottom-end",trigger:"click"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[t("div",{staticClass:"standard-advanced-query-panel"},[t("div",{staticClass:"standard-advanced-query-list"},[e.rows.length?e._l(e.rows,function(n,r){return t("div",{key:n.uid,staticClass:"standard-advanced-query-item"},[t("el-select",{staticClass:"standard-advanced-query-item-field",attrs:{value:n.field,size:"mini",placeholder:"请选择条件"},on:{change:function(t){return e.handleRowFieldChange(n,t)}}},e._l(e.getAvailableOptions(n),function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),t("el-input",{staticClass:"standard-advanced-query-item-value",attrs:{value:e.getRowValue(n),size:"mini",placeholder:e.getRowPlaceholder(n),clearable:""},on:{input:function(t){return e.setRowValue(n,t)}}}),t("el-button",{staticClass:"standard-advanced-query-item-remove",attrs:{type:"text",size:"mini",icon:"el-icon-delete",title:"删除此条件"},on:{click:function(t){return e.removeRow(r)}}})],1)}):t("el-empty",{staticClass:"standard-advanced-query-empty",attrs:{"image-size":60,description:"点击下方新增按钮添加查询条件"}})],2),t("div",{staticClass:"standard-advanced-query-footer"},[t("el-button",{attrs:{size:"mini",icon:"el-icon-delete"},on:{click:e.clearAll}},[e._v("清空")]),t("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-plus",title:"增加查询条件"},on:{click:e.addRow}},[e._v("新增")]),t("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-search"},on:{click:e.confirm}},[e._v("确定")])],1)]),t("el-button",{attrs:{slot:"reference",size:"mini",icon:"el-icon-search"},slot:"reference"},[e._v(" 高级查询"+e._s(e.rows.length?" (".concat(e.rows.length,")"):"")+" ")])],1)},T=[];const $={name:"StandardAdvancedQuery",props:{conditions:{type:Array,default:function(){return[]}},searchBar:{type:Object,required:!0}},data:function(){return{visible:!1,rows:[],uidSeq:0,initValues:{}}},computed:{searchVariable:function(){return this.searchBar&&this.searchBar.searchVariable||{}}},watch:{conditions:function(){var e=this,t=(this.conditions||[]).map(function(e){return e&&e.value}),n=this.rows.filter(function(e){return t.indexOf(e.field)>-1});this.rows.forEach(function(n){-1===t.indexOf(n.field)&&e.restoreFieldValue(n.field)}),this.rows=n}},created:function(){var e=this;this.initValues=this.deepCopy(this.searchVariable);var t=[];(this.conditions||[]).forEach(function(n){n&&!t.some(function(e){return e.field===n.value})&&e.hasValue(n)&&t.push({uid:++e.uidSeq,field:n.value})}),this.rows=t},methods:{getRowValue:function(e){var t=e.field?this.searchVariable[e.field]:"";return t??""},setRowValue:function(e,t){e.field&&this.$set(this.searchVariable,e.field,"string"===typeof t?t.trim():t)},getRowPlaceholder:function(e){var t=(this.conditions||[]).find(function(t){return t&&t.value===e.field});return t?"请输入".concat(t.label):"请输入"},restoreFieldValue:function(e){e&&this.$set(this.searchVariable,e,this.deepCopy(this.initValues[e]))},getAvailableOptions:function(e){var t=this;return(this.conditions||[]).filter(function(n){return n&&!t.rows.some(function(t){return t!==e&&t.field===n.value})})},handleRowFieldChange:function(e,t){var n=e.field;n&&n!==t&&this.restoreFieldValue(n),e.field=t},addRow:function(){var e=this,t=(this.conditions||[]).find(function(t){return t&&!e.rows.some(function(e){return e.field===t.value})});t?this.rows.push({uid:++this.uidSeq,field:t.value}):this.$message&&this.$message.warning("所有查询条件均已添加")},removeRow:function(e){var t=this.rows[e];t&&(this.restoreFieldValue(t.field),this.rows.splice(e,1))},clearAll:function(){var e=this;this.rows.length?this.$confirm("确定清空所有高级查询条件吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.resetRows()})["catch"](function(){}):this.$message&&this.$message.info("暂无高级查询条件")},resetRows:function(){var e=this;this.rows.forEach(function(t){return e.restoreFieldValue(t.field)}),this.rows=[]},confirm:function(){var e=this;this.$emit("search"),this.$nextTick(function(){e.visible=!1,setTimeout(function(){e.visible=!1},50)})},hasValue:function(e){var t=this.searchVariable[e.value];return Array.isArray(t)?t.length>0:void 0!==t&&null!==t&&""!==String(t)},deepCopy:function(e){return void 0===e||null===e?e:JSON.parse(JSON.stringify(e))}}},D=$;r(7192);var M=u(D,O,T,!1,null,null,null);const F=M.exports;function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}var I={name:"FilterSearchItem",props:{cond:{type:Object,required:!0},searchBar:{type:Object,required:!0},options:{type:Array,default:function(){return[]}},isRemote:{type:Boolean,default:!1},remoteMethod:{type:Function,default:null},remoteLoading:{type:Boolean,default:!1},onSearch:{type:Function,default:null},onFocus:{type:Function,default:null}},render:function(e){var t=this,n=this.cond,r=this.searchBar,i=r.searchVariable||{},o=i[n.value],a=function(e){return t.$set(i,n.value,e)},s=!1!==n.clearable,l=n.placeholder||("text"===n.type?"请输入".concat(n.label):"请选择".concat(n.label)),c=n.width,u=c?{width:"number"===typeof c?"".concat(c,"px"):c,flexBasis:"number"===typeof c?"".concat(c,"px"):c}:null,d=null;switch(n.type){case"text":d=e("el-input",{class:"normal-report-filter-control",attrs:{placeholder:l},props:{value:o,size:"mini",clearable:s},on:{input:function(e){return a("string"===typeof e?e.trim():e)}},nativeOn:{keyup:function(e){13===(e.keyCode||e.which)&&t.onSearch&&t.onSearch()}}});break;case"date":d=e("el-date-picker",{class:"normal-report-filter-control",props:{value:o,size:"mini",clearable:s,placeholder:l,type:"date",valueFormat:"yyyy-MM-dd",align:"right"},on:{input:a}});break;case"datetime":d=e("el-date-picker",{class:"normal-report-filter-control",props:{value:o,size:"mini",clearable:s,placeholder:l,type:"datetime",valueFormat:"yyyy-MM-dd HH:mm:ss",align:"right"},on:{input:a}});break;default:var h="select-multi"===n.type;d=e("el-select",{class:"normal-report-filter-control",props:{value:h?Array.isArray(o)?o:[]:o,size:"mini",clearable:s,placeholder:l,multiple:h,filterable:!0,remote:this.isRemote,reserveKeyword:this.isRemote,loading:this.remoteLoading,remoteMethod:this.remoteMethod||null},on:{input:function(e){return a(h?e??[]:e)},"visible-change":function(e){e&&t.onFocus&&t.onFocus()}}},(this.options||[]).map(function(t,n){return e("el-option",{key:n,props:{label:t.label,value:t.value}})}))}return e("label",{class:"normal-report-filter-item",style:u},[e("span",String(n.label)),d])}};const A={name:"StandardFilterbar",components:{FilterSearchItem:I,StandardButton:h,StandardAdvancedQuery:F},model:{prop:"searchBar",event:"input"},props:{searchBar:{type:Object,required:!0},showExport:{type:Boolean,default:!1},showExpand:{type:Boolean,default:!0},showAdvancedQuery:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},resetTriggerSearch:{type:Boolean,default:!1}},data:function(){return{renderValid:!0,expanded:!1,remoteOptions:{},remoteLoading:{},remoteMethods:{},initValues:{}}},computed:{conditions:function(){var e=this.searchBar&&this.searchBar.searchCondition||[];return Array.isArray(e)?e:[]},mainConditionCount:function(){var e=this.searchBar&&this.searchBar.mainConditionCount,t=Number(e);return void 0===e||null===e||""===e||isNaN(t)||t<0?4:t},mainConditions:function(){return this.conditions.filter(function(e){return e&&("Y"===e.isMain||!0===e.isMain)})},secondaryConditions:function(){return this.conditions.filter(function(e){return!e||"Y"!==e.isMain&&!0!==e.isMain})},secondaryVisible:function(){return!!this.secondaryConditions.length&&(!this.showAdvancedQuery&&(!this.showExpand||this.expanded))},secondaryActiveCount:function(){var e=this;return this.secondaryConditions.filter(function(t){return e.hasValue(t)}).length}},watch:{"searchBar.searchCondition":function(e){var t=this;if(this.validate(),this.renderValid){var n=Array.isArray(e)?e:[];n.forEach(function(e){t.isRemoteCond(e)&&(t.remoteMethods[e.value]||(t.remoteMethods[e.value]=t.debounce(function(n){return t.loadRemoteOptions(e,n)},300)),Object.prototype.hasOwnProperty.call(t.remoteOptions,e.value)||t.loadRemoteOptions(e,""))})}}},created:function(){var e=this;this.initValues=this.deepCopy(this.searchBar&&this.searchBar.searchVariable||{}),this.validate(),this.renderValid&&(this.showExpand&&0!==this.mainConditions.length||(this.expanded=!0),this.mainConditions.concat(this.secondaryConditions).forEach(function(t){e.isRemoteCond(t)&&(e.remoteMethods[t.value]||(e.remoteMethods[t.value]=e.debounce(function(n){return e.loadRemoteOptions(t,n)},300)),e.loadRemoteOptions(t,""))}))},methods:{validate:function(){var e=this,t=[],n=this.searchBar;if(n&&"object"===R(n)){var r=n.searchCondition,i=n.searchVariable;if(Array.isArray(r))if(!i||"object"!==R(i)||Array.isArray(i))t.push("searchVariable 必须为非空对象");else{var o=r.filter(function(e){return e&&("Y"===e.isMain||!0===e.isMain)});o.length>this.mainConditionCount&&t.push("主要的筛选条件不能超过 ".concat(this.mainConditionCount," 个(当前 ").concat(o.length," 个:").concat(o.map(function(e){return e.label}).join("、"),")"));var a=["text","date","datetime","select","select-multi"],s={};r.forEach(function(n,r){if(n&&"object"===R(n)){var o=[];n.label&&String(n.label).trim()||o.push("label"),void 0!==n.value&&null!==n.value&&""!==n.value||o.push("value"),n.type||o.push("type"),o.length?t.push("第 ".concat(r+1," 条筛选条件缺少必填项:").concat(o.join("、"))):(a.includes(n.type)||t.push("第 ".concat(r+1,' 条筛选条件 type="').concat(n.type,'" 不合法,可选值:').concat(a.join("、"))),Object.prototype.hasOwnProperty.call(i,n.value)||t.push("第 ".concat(r+1,' 条筛选条件 value="').concat(n.value,'" 在 searchVariable 中不存在,请先在父组件 data 中定义该变量')),"select"!==n.type&&"select-multi"!==n.type||n.selectSource||n.remote||console.warn("[StandardFilterbar] 第 ".concat(r+1," 条筛选条件“").concat(n.label,"”为下拉类型,但未配置 selectSource 或 remote,下拉数据为空")),"string"!==typeof n.remote||e.resolveRemoteFn(n.remote)||console.warn("[StandardFilterbar] 第 ".concat(r+1," 条筛选条件“").concat(n.label,'”的 remote="').concat(n.remote,'" 未在父组件中找到对应方法')),s[n.value]&&console.warn('[StandardFilterbar] value="'.concat(n.value,'" 存在重复定义,请检查 searchCondition')),s[n.value]=!0)}else t.push("第 ".concat(r+1," 条筛选条件不是有效对象"))})}else t.push("searchCondition 必须为数组")}else t.push("未传入 searchBar 对象,请通过 v-model 绑定");"function"!==typeof this.$listeners.search&&t.push("未传入查询事件对应的方法,请通过 @search 绑定查询方法"),t.length?(console.error("[StandardFilterbar] 组件渲染失败,原因如下:\n"+t.map(function(e,t){return" ".concat(t+1,". ").concat(e)}).join("\n")),this.renderValid=!1,this.$emit("render-error",t)):this.renderValid=!0},onSearch:function(){this.$emit("search")},onReset:function(){var e=this,t=this.searchBar&&this.searchBar.searchVariable;t&&this.initValues&&(Object.keys(this.initValues).forEach(function(n){e.$set(t,n,e.deepCopy(e.initValues[n]))}),this.conditions.forEach(function(n){"select-multi"!==n.type||Array.isArray(t[n.value])||e.$set(t,n.value,[])})),this.showAdvancedQuery&&this.$refs.advancedQuery&&this.$refs.advancedQuery.resetRows(),this.$emit("reset"),this.resetTriggerSearch&&this.$emit("search")},isRemoteCond:function(e){if(!e||"select"!==e.type&&"select-multi"!==e.type)return!1;var t=!e.selectSource||Array.isArray(e.selectSource)&&0===e.selectSource.length;return t&&!!e.remote},resolveRemoteFn:function(e){if("function"===typeof e)return e;if("string"===typeof e&&e){var t=this.$parent;while(t){if("function"===typeof t[e])return t[e].bind(t);t=t.$parent}}return null},loadRemoteOptions:function(e,t){var n=this,r=this.resolveRemoteFn(e.remote);return r?(this.$set(this.remoteLoading,e.value,!0),Promise.resolve(r(t??"")).then(function(t){var r=n.normalizeOptions(n.extractOptions(t),e);return n.$set(n.remoteOptions,e.value,r),r})["catch"](function(t){return console.error("[StandardFilterbar] 筛选条件“".concat(e.label,"”远程数据加载失败"),t),[]})["finally"](function(){n.$set(n.remoteLoading,e.value,!1)})):Promise.resolve([])},extractOptions:function(e){if(Array.isArray(e))return e;if(e&&"object"===R(e)){if(Array.isArray(e.Datas))return e.Datas;if(e.data){if(Array.isArray(e.data))return e.data;if(Array.isArray(e.data.Datas))return e.data.Datas}if(Array.isArray(e.list))return e.list}return[]},normalizeOptions:function(e,t){var n=t&&t.optionProps||{},r=n.label||"label",i=n.value||"value",o=Array.isArray(e)?e:[];return o.map(function(e){return null!==e&&"object"===R(e)?{label:e[r],value:e[i]}:{label:String(e),value:e}})},getOptions:function(e){return this.isRemoteCond(e)?this.remoteOptions[e.value]||[]:this.normalizeOptions(e.selectSource,e)},handleSelectFocus:function(e){if(this.isRemoteCond(e)){var t=this.remoteOptions[e.value];t&&t.length||this.loadRemoteOptions(e,"")}},hasValue:function(e){var t=this.searchBar&&this.searchBar.searchVariable||{},n=t[e.value];return Array.isArray(n)?n.length>0:void 0!==n&&null!==n&&""!==String(n)},itemClass:function(e){return"date"===e.type||"datetime"===e.type?"normal-report-filter-item-date":""},deepCopy:function(e){return void 0===e||null===e?e:JSON.parse(JSON.stringify(e))},debounce:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,n=null;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];n&&clearTimeout(n),n=setTimeout(function(){n=null,e.apply(r,o)},t)}}}},P=A;r(1480);var L=u(P,k,E,!1,null,null,null);const N=L.exports;var j=function(){var e=this,t=e._self._c;return t("el-form",e._g(e._b({ref:"elForm",staticClass:"standard-form",style:e.formStyle,attrs:{model:e.model,rules:e.rules,size:e.size,"label-position":e.labelPosition,"label-width":e.labelWidth}},"el-form",e.$attrs,!1),e.$listeners),[t("div",{staticClass:"standard-form-body"},[e._t("default")],2)])},B=[];function V(e){return q(e)||W(e)||H(e)||z()}function z(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function H(e,t){if(e){if("string"==typeof e)return G(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}}function W(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function q(e){if(Array.isArray(e))return G(e)}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Y={name:"StandardForm",model:{prop:"model",event:"update:model"},props:{model:{type:Object,default:function(){return{}}},rules:{type:Object,default:null},size:{type:String,default:"mini"},labelPosition:{type:String,default:"right"},width:{type:[String,Number],default:null}},data:function(){return{items:[]}},computed:{formStyle:function(){return null==this.width||""===this.width?{}:{width:"number"===typeof this.width?"".concat(this.width,"px"):this.width}},labelWidth:function(){var e=this,t=this.items.map(function(t){return e.calcLabelWidth(t.label)}),n=t.length?Math.max.apply(Math,V(t)):0;return n>0?"".concat(n,"px"):"100px"}},methods:{calcLabelWidth:function(e){var t=String(e??""),n=(t.match(/[\u4e00-\u9fa5]/g)||[]).length,r=(t.match(/[A-Za-z]/g)||[]).length;return 15*n+10*r+40},registerItem:function(e){!e||this.items.indexOf(e)>-1||this.items.push(e)},unregisterItem:function(e){if(e){var t=this.items.indexOf(e);t>-1&&this.items.splice(t,1)}},validate:function(e){return this.$refs.elForm?this.$refs.elForm.validate(e):Promise.resolve(!0)},resetFields:function(){this.$refs.elForm&&this.$refs.elForm.resetFields()},clearValidate:function(e){this.$refs.elForm&&this.$refs.elForm.clearValidate(e)}}},U=Y;r(6588);var K=u(U,j,B,!1,null,null,null);const X=K.exports;var Z=function(){var e=this,t=e._self._c;return t("div",{staticClass:"standard-form-item",style:e.itemStyle},[t("el-form-item",e._g(e._b({attrs:{label:e.label,prop:e.prop}},"el-form-item",e.$attrs,!1),e.$listeners),[e._t("default")],2)],1)},Q=[];const J={name:"StandardFormItem",props:{label:{type:String,default:""},prop:{type:String,default:""},span:{type:Number,default:24}},computed:{itemStyle:function(){var e=Math.min(24,Math.max(1,Number(this.span)||24));return{width:"".concat((e/24*100).toFixed(4),"%")}}},created:function(){this.register()},beforeDestroy:function(){this.unregister()},methods:{findParentForm:function(){var e=this.$parent;while(e&&"StandardForm"!==e.$options.name)e=e.$parent;return e},register:function(){var e=this.findParentForm();e?e.registerItem(this):console.warn("[StandardFormItem] 未找到父组件 StandardForm,label-width 自动计算将失效")},unregister:function(){var e=this.findParentForm();e&&e.unregisterItem(this)}}},ee=J;var te=u(ee,Z,Q,!1,null,null,null);const ne=te.exports;X.Item=ne,X.install=function(e){e.component(X.name,X),e.component(ne.name,ne)};const re=X;var ie=function(){var e=this,t=e._self._c;return t("section",{staticClass:"standard-half-area",class:{"standard-half-area-left":e.left,"standard-half-area-right":e.right,"standard-half-area-transparent":e.transparent}},[e._t("default")],2)},oe=[];const ae={name:"StandardHalfArea",props:{left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},transparent:{type:Boolean,default:!1}}},se=ae;r(3948);var le=u(se,ie,oe,!1,null,"7888c782",null);const ce=le.exports;var ue=function(){var e=this,t=e._self._c;return t("el-input",e._g(e._b({staticClass:"standard-input",attrs:{value:e.value,placeholder:e.placeholder,size:"mini",clearable:""},on:{input:e.onInput},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onEnter.apply(null,arguments)}}},"el-input",e.$attrs,!1),e.listeners),[e.$slots.prepend?t("template",{slot:"prepend"},[e._t("prepend")],2):e._e(),e.$slots.prefix?t("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),e.$slots.suffix?t("template",{slot:"suffix"},[e._t("suffix")],2):e._e(),e.$slots["default"]?t("template",{slot:"append"},[e._t("default")],2):e._e()],2)},de=[];function he(e){return he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},he(e)}function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(n),!0).forEach(function(t){me(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function me(e,t,n){return(t=ge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ge(e){var t=ve(e,"string");return"symbol"==he(t)?t:t+""}function ve(e,t){if("object"!=he(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=he(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}const be={name:"StandardInput",model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},placeholder:{type:String,default:"请输入"},numberOnly:{type:Boolean,default:!1}},computed:{listeners:function(){var e=fe({},this.$listeners);return delete e.input,e}},methods:{onInput:function(e){var t="string"===typeof e?e.trim():e;this.numberOnly&&""!==t&&null!=t&&(t=String(t).replace(/\D/g,"")),this.$emit("input",t)},onEnter:function(){this.$emit("enter")}}},ye=be;r(9127);var xe=u(ye,ue,de,!1,null,"5ed6ec1a",null);const we=xe.exports;var Ce=function(){var e=this,t=e._self._c;return t("section",{staticClass:"standard-page",class:{"standard-page--client":e.client,"standard-page--vertical":e.vertical}},[e.vertical?t("section",{staticClass:"standard-page__body"},[e._t("default")],2):e._t("default")],2)},_e=[];const Se={name:"StandardPage",props:{client:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1}}},ke=Se;r(6920);var Ee=u(ke,Ce,_e,!1,null,"351392c6",null);const Oe=Ee.exports;var Te=function(){var e=this,t=e._self._c;return t("div",{staticClass:"standard-splitter",class:{"is-dragging":e.isDragging},on:{mousedown:e.onMousedown}})},$e=[];const De={name:"StandardSplitter",props:{value:{type:Number,default:260},unit:{type:String,default:"px",validator:function(e){return["px","percent"].indexOf(e)>-1}},minWidth:{type:Number,default:200},maxRatio:{type:Number,default:.6},minPixel:{type:Number,default:320},maxHalfPercent:{type:Number,default:45}},data:function(){return{isDragging:!1,moveHandler:null,upHandler:null,lastValue:null}},beforeDestroy:function(){this.removeListeners()},methods:{onMousedown:function(e){var t=this;e.preventDefault(),this.isDragging=!0,this.lastValue=this.value,this.$emit("drag-start",this.value);var n,r,i=e.clientX,o=this.value,a=this.$el&&this.$el.parentElement,s=a&&a.clientWidth||1200,l="percent"===this.unit;if(l){var c=Math.min(this.maxHalfPercent,this.minPixel/s*100);n=c,r=100-c}else n=this.minWidth,r=Math.max(this.minWidth,Math.floor(s*this.maxRatio));document.body.style.userSelect="none",document.body.style.cursor="col-resize",this.moveHandler=function(e){var a=l?(e.clientX-i)/s*100:e.clientX-i,c=Math.min(r,Math.max(n,o+a));t.lastValue=c,t.$emit("input",c)},this.upHandler=function(){t.isDragging=!1,t.$emit("drag-end",t.lastValue),t.$emit("change",t.lastValue),t.removeListeners()},document.addEventListener("mousemove",this.moveHandler),document.addEventListener("mouseup",this.upHandler)},removeListeners:function(){this.moveHandler&&(document.removeEventListener("mousemove",this.moveHandler),document.removeEventListener("mouseup",this.upHandler),document.body.style.userSelect="",document.body.style.cursor="",this.moveHandler=null,this.upHandler=null,this.lastValue=null)}}},Me=De;r(2441);var Fe=u(Me,Te,$e,!1,null,"6e24ca62",null);const Re=Fe.exports;var Ie=function(){var e=this,t=e._self._c;return t("el-select",e._g(e._b({staticClass:"standard-select",attrs:{value:e.displayValue,multiple:e.multiple,clearable:e.clearable,disabled:e.disabled,placeholder:e.placeholder,filterable:e.filterable||e.isRemote,remote:e.isRemote,"reserve-keyword":e.isRemote,"remote-method":e.isRemote?e.onRemoteMethod:null,loading:!!e.isRemote&&e.remoteLoading,size:"mini"},on:{input:e.onInput,change:e.onChange,"visible-change":e.onVisibleChange}},"el-select",e.$attrs,!1),e.listeners),[e._l(e.normalizedOptions,function(e,n){return t("el-option",{key:n,attrs:{label:e.label,value:e.value}})}),e._t("default")],2)},Ae=[];function Pe(e){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(e)}function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach(function(t){je(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function je(e,t,n){return(t=Be(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Be(e){var t=Ve(e,"string");return"symbol"==Pe(t)?t:t+""}function Ve(e,t){if("object"!=Pe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Pe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}const ze={name:"StandardSelect",model:{prop:"value",event:"input"},props:{value:{type:[String,Number,Array],default:""},options:{type:Array,default:function(){return[]}},optionProps:{type:Object,default:function(){return{label:"label",value:"value"}}},remote:{type:[String,Function],default:""},multiple:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:"请选择"}},data:function(){return{remoteOptions:[],remoteLoading:!1,debouncedLoad:null}},computed:{isRemote:function(){return!!this.remote},displayValue:function(){return this.multiple?Array.isArray(this.value)?this.value:[]:this.value},normalizedOptions:function(){return this.isRemote?this.remoteOptions:this.normalizeOptions(this.options)},listeners:function(){var e=Ne({},this.$listeners);return delete e.input,delete e.change,delete e["visible-change"],e}},created:function(){var e=this;this.isRemote&&(this.debouncedLoad=this.debounce(function(t){return e.loadRemoteOptions(t)},300),this.loadRemoteOptions(""))},methods:{onInput:function(e){this.$emit("input",this.multiple?e??[]:e)},onChange:function(e){this.$emit("change",e)},onVisibleChange:function(e){e&&this.isRemote&&!this.remoteOptions.length&&this.loadRemoteOptions(""),this.$emit("visible-change",e)},onRemoteMethod:function(e){this.debouncedLoad(e)},resolveRemoteFn:function(){var e=this.remote;if("function"===typeof e)return e;if("string"===typeof e&&e){var t=this.$parent;while(t){if("function"===typeof t[e])return t[e].bind(t);t=t.$parent}}return null},loadRemoteOptions:function(e){var t=this,n=this.resolveRemoteFn();return n?(this.remoteLoading=!0,Promise.resolve(n(e??"")).then(function(e){return t.remoteOptions=t.normalizeOptions(t.extractOptions(e)),t.remoteOptions})["catch"](function(e){return console.error("[StandardSelect] 远程数据加载失败",e),[]})["finally"](function(){t.remoteLoading=!1})):Promise.resolve([])},extractOptions:function(e){if(Array.isArray(e))return e;if(e&&"object"===Pe(e)){if(Array.isArray(e.Datas))return e.Datas;if(e.data){if(Array.isArray(e.data))return e.data;if(Array.isArray(e.data.Datas))return e.data.Datas}if(Array.isArray(e.list))return e.list}return[]},normalizeOptions:function(e){var t=this.optionProps||{},n=t.label||"label",r=t.value||"value",i=Array.isArray(e)?e:[];return i.map(function(e){return null!==e&&"object"===Pe(e)?{label:e[n],value:e[r]}:{label:String(e),value:e}})},debounce:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,n=null;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];n&&clearTimeout(n),n=setTimeout(function(){n=null,e.apply(r,o)},t)}}}},He=ze;r(9787);var We=u(He,Ie,Ae,!1,null,"3996de44",null);const qe=We.exports;var Ge=function(){var e=this,t=e._self._c;return t("el-date-picker",e._g(e._b({staticClass:"standard-time-pick",attrs:{value:e.value,type:e.pickerType,"value-format":e.format,placeholder:e.placeholderText,clearable:e.clearable,disabled:e.disabled,"picker-options":e.pickerOptions,size:"mini",align:"right"},on:{input:e.onInput}},"el-date-picker",e.$attrs,!1),e.listeners))},Ye=[];function Ue(e){return Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(e)}function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach(function(t){Ze(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ze(e,t,n){return(t=Qe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qe(e){var t=Je(e,"string");return"symbol"==Ue(t)?t:t+""}function Je(e,t){if("object"!=Ue(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ue(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}const et={name:"StandardTimePick",model:{prop:"value",event:"input"},props:{value:{type:[String,Date,Array],default:""},type:{type:String,default:"date"},valueFormat:{type:String,default:""},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},pickerOptions:{type:Object,default:null}},computed:{pickerType:function(){return"datetime"===this.type?"datetime":"date"},format:function(){return this.valueFormat?this.valueFormat:"datetime"===this.pickerType?"yyyy-MM-dd HH:mm:ss":"yyyy-MM-dd"},placeholderText:function(){return this.placeholder?this.placeholder:"datetime"===this.pickerType?"请选择时间":"请选择日期"},listeners:function(){var e=Xe({},this.$listeners);return delete e.input,e}},methods:{onInput:function(e){this.$emit("input",e)}}},tt=et;r(6701);var nt=u(tt,Ge,Ye,!1,null,"37f9c169",null);const rt=nt.exports;var it=function(){var e=this,t=e._self._c;return t("section",{staticClass:"normal-report-table-panel"},[t("div",{staticStyle:{display:"none"}},[t("normal-report-slot-view",{attrs:{vnodes:e.getHiddenSlotVNodes()}})],1),e.getActionsVisible()?t("div",{staticClass:"normal-report-table-actions"},[t("div",{staticClass:"normal-report-table-actions-left"},[t("normal-report-slot-view",{attrs:{vnodes:e.getToolbarLeftVNodes()}})],1),t("div",{staticClass:"normal-report-table-actions-right"},[t("normal-report-slot-view",{attrs:{vnodes:e.getToolbarRightVNodes()}}),e.resolvedShowAdjustment?t("el-popover",{staticClass:"normal-report-column-setting-entry",attrs:{placement:"bottom-end",trigger:"click"},on:{show:e.openColumnSetting},model:{value:e.columnSettingVisible,callback:function(t){e.columnSettingVisible=t},expression:"columnSettingVisible"}},[t("div",{staticClass:"normal-report-column-setting"},[t("div",{staticClass:"normal-report-column-setting-header"},[t("el-checkbox",{attrs:{value:e.columnAllVisible,indeterminate:e.columnIndeterminate},on:{change:e.toggleColumnAll}},[e._v("全部")])],1),t("div",{staticClass:"normal-report-column-setting-list"},e._l(e.columnDraft,function(n,r){return t("div",{key:n.uid,staticClass:"normal-report-column-setting-item",class:{"drag-over":e.dragOverColField===n.uid},on:{dragover:function(t){return t.preventDefault(),e.onDraftDragOver(n)},drop:function(t){return t.preventDefault(),e.onDraftDrop(n)}}},[t("el-checkbox",{staticClass:"normal-report-column-setting-item-title",style:{"--normal-report-title-width":e.columnTitleWidth+"px"},attrs:{value:n.visible,title:"拖拽调整列顺序",draggable:"true"},on:{change:function(t){return e.toggleColumnVisible(n,t)}},nativeOn:{dragstart:function(t){return e.onDraftDragStart(t,n)},dragend:function(t){return e.onDraftDragEnd.apply(null,arguments)}}},[e._v(e._s(n.title))]),t("el-input-number",{staticClass:"normal-report-column-setting-item-width",attrs:{value:n.minWidth,min:0,max:500,precision:0,step:5,"step-strictly":"","controls-position":"",size:"mini",title:"设置最小列宽"},on:{change:function(t){return e.changeColumnDraftWidth(n,t)}}}),t("el-button",{attrs:{type:"text",size:"mini",icon:"el-icon-top",disabled:0===r,title:"顺序上移"},on:{click:function(t){return e.moveColumnDraft(r,-1)}}}),t("el-button",{attrs:{type:"text",size:"mini",icon:"el-icon-bottom",disabled:r===e.columnDraft.length-1,title:"下移"},on:{click:function(t){return e.moveColumnDraft(r,1)}}}),t("el-button",{class:{"is-pinned":n.sortable,"is-sort-off":!n.sortable},attrs:{type:"text",size:"mini",icon:"el-icon-sort",title:"是否显示排序功能"},on:{click:function(t){return e.toggleColumnSortable(n)}}}),t("el-button",{class:{"is-pinned":"left"===n.fixed},attrs:{type:"text",size:"mini",icon:"left"===n.fixed?"el-icon-lock":"el-icon-d-arrow-left",title:"left"===n.fixed?"取消左侧固定":"固定到左侧"},on:{click:function(t){return e.toggleColumnFixed(n,"left")}}}),t("el-button",{class:{"is-pinned":"right"===n.fixed},attrs:{type:"text",size:"mini",icon:"right"===n.fixed?"el-icon-lock":"el-icon-d-arrow-right",title:"right"===n.fixed?"取消右侧固定":"固定到右侧"},on:{click:function(t){return e.toggleColumnFixed(n,"right")}}})],1)}),0),t("div",{staticClass:"normal-report-column-setting-footer"},[t("el-button",{attrs:{size:"mini",icon:"el-icon-refresh-left"},on:{click:e.restoreDefaultColumns}},[e._v("恢复默认")]),t("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-edit"},on:{click:e.confirmColumnSetting}},[e._v("确认")])],1)]),t("el-button",{attrs:{slot:"reference",type:"primary",size:"mini",icon:"el-icon-s-operation"},slot:"reference"},[e._v("调整")])],1):e._e()],1)]):e._e(),e.getToolbarEmptyVisible()&&e.getToolbarEmptyVNodes().length>0?t("normal-report-slot-view",{attrs:{vnodes:e.getToolbarEmptyVNodes()}}):e.getToolbarEmptyVisible()?t("standard-toolbar-empty"):e._e(),t("div",{ref:"tableWrap",staticClass:"normal-report-table-wrap"},[t("vxe-table",{ref:"xTable",staticClass:"normal-report-main-table",attrs:{size:"mini",height:e.height,"z-index":e.zIndex||void 0,loading:e.loading,data:e.tableData,border:"","highlight-current-row":"","row-config":e.rowConfig,"header-cell-config":e.headerCellConfig,"cell-config":e.cellConfig,"edit-config":e.resolvedEditConfig,"tree-config":e.treeConfig,"column-config":{resizable:!0},"resizable-config":{minWidth:60},"show-footer":!!e.footerMethod,"footer-method":e.footerMethod,"menu-config":e.resolvedMenuConfig},on:{"menu-click":e.onMenuClick,"checkbox-change":e.handleCheckboxChange,"checkbox-all":e.handleCheckboxChange,"current-change":e.handleCurrentRowChange,"toggle-tree-expand":e.handleToggleTreeExpand,"edit-activated":e.onEditActivated,"edit-closed":e.onEditClosed},nativeOn:{mousedown:function(t){return e.onTableMousedown.apply(null,arguments)}}},[e.columnsReady&&e.showCheckbox?t("vxe-column",{attrs:{type:"checkbox",width:"50","min-width":50,fixed:"left",align:"center",resizable:!1}}):e._e(),e._l(e.renderedColumns,function(n){return t("vxe-column",{key:n.key,attrs:{"col-id":n.colId,type:n.type,field:n.field,title:n.title,width:n.isOp?n.width:void 0,"min-width":n.minWidth,fixed:n.fixed,align:n.align,sortable:n.sortable,"sort-by":n.sortBy,"show-overflow":n.showOverflow,resizable:n.resizable,"tree-node":n.treeNode,"edit-render":n.editRender||void 0},scopedSlots:e._u([{key:"default",fn:function(e){return[t("normal-report-cell",{attrs:{col:n,scope:e}})]}},n.hasEditSlot?{key:"edit",fn:function(e){return[t("normal-report-cell",{attrs:{col:n,scope:e,edit:""}})]}}:null],null,!0)})})],2)],1),e.getFooterVisible()?t("div",{staticClass:"normal-report-table-footer",class:{"is-only-pagination":e.getIsOnlyPagination()}},[t("normal-report-slot-view",{attrs:{vnodes:e.getFooterLeftVNodes()}}),0===e.getFooterLeftVNodes().length&&e.showFooter&&e.hasFooterLeftSlot?e._t("footer-left"):0===e.getFooterLeftVNodes().length&&e.showFooter&&e.showUpdateTime?t("span",{staticClass:"normal-report-update-time"},[e._v("数据更新时间 "+e._s(e.updateTime))]):e._e(),t("normal-report-slot-view",{attrs:{vnodes:e.getFooterRightVNodes()}})],2):e._e(),e.getFooterEmptyVisible()&&e.getFooterEmptyVNodes().length>0?t("normal-report-slot-view",{attrs:{vnodes:e.getFooterEmptyVNodes()}}):e.getFooterEmptyVisible()?t("standard-footer-empty"):e._e()],1)},ot=[];const at={name:"StandardToolbarEmpty",render:function(e){return e("div",{class:"normal-report-toolbar-empty"})}},st=at;var lt,ct,ut=u(st,lt,ct,!1,null,null,null);const dt=ut.exports,ht={name:"StandardFooterEmpty",render:function(e){return e("div",{class:"normal-report-footer-empty"})}},pt=ht;var ft,mt,gt=u(pt,ft,mt,!1,null,null,null);const vt=gt.exports;function bt(e,t){return wt(e)||xt(e,t)||St(e,t)||yt()}function yt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function xt(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(c)throw i}}return s}}function wt(e){if(Array.isArray(e))return e}function Ct(e){return Et(e)||kt(e)||St(e)||_t()}function _t(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function St(e,t){if(e){if("string"==typeof e)return Ot(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ot(e,t):void 0}}function kt(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Et(e){if(Array.isArray(e))return Ot(e)}function Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Tt(e,t){return null==t||""===t?null:"string"===typeof t||"number"===typeof t||"boolean"===typeof t?e("span",{},String(t)):t}function $t(e){var t=function(e){return e<10?"0"+e:String(e)};return"".concat(e.getFullYear(),"-").concat(t(e.getMonth()+1),"-").concat(t(e.getDate())," ").concat(t(e.getHours()),":").concat(t(e.getMinutes()),":").concat(t(e.getSeconds()))}var Dt={name:"NormalReportCell",functional:!0,props:{col:{type:Object,required:!0},scope:{type:Object,default:function(){return{}}},edit:{type:Boolean,default:!1}},render:function(e,t){var n=t.props,r=n.col,i=n.scope,o=n.edit,a=t.parent;if(!r||!a||"function"!==typeof a.renderCell)return null;var s=a.renderCell(r,i,o,e);return null==s||""===s?null:Array.isArray(s)?s.map(function(t){return Tt(e,t)}).filter(Boolean):Tt(e,s)}},Mt=3,Ft=["standard-toolbar-left","StandardToolbarLeft"],Rt=["standard-toolbar-right","StandardToolbarRight"],It=["standard-footer-left","StandardFooterLeft"],At=["standard-footer-right","StandardFooterRight"],Pt=["standard-footer-empty","StandardFooterEmpty"],Lt=["standard-toolbar-empty","StandardToolbarEmpty"],Nt={name:"NormalReportSlotView",functional:!0,props:{vnodes:{type:Array,default:function(){return[]}}},render:function(e,t){return t.props.vnodes||[]}};const jt={name:"StandardTable",components:{NormalReportCell:Dt,NormalReportSlotView:Nt,StandardToolbarEmpty:dt,StandardFooterEmpty:vt},props:{tableData:{type:Array,default:function(){return[]}},tableOperation:{type:Array,default:function(){return[]}},menuConfig:{type:Object,default:null},showContextMenu:{type:Boolean,default:!1},treeConfig:{type:Object,default:null},rowConfig:{type:Object,default:null},editConfig:{type:[Object,Boolean],default:null},showCheckbox:{type:Boolean,default:!1},showAdjustment:{type:Boolean,default:!1},showUpdateTime:{type:Boolean,default:!0},height:{type:[String,Number],default:"100%"},zIndex:{type:Number,default:null},loading:{type:Boolean,default:!1},footerMethod:{type:Function,default:null},showFooter:{type:Boolean,default:!1}},data:function(){return{columnComps:[],columnOrder:[],columnStates:{},defaultSnapshot:[],toolbarRightInstances:[],columnSettingVisible:!1,columnDraft:[],dragColField:"",dragOverColField:"",columnTitleWidth:0,updateTime:"--",headerCellConfig:{height:36},cellConfig:{height:34},defaultEditConfig:{trigger:"click",mode:"cell"},headerMenuCtx:null,headerDragState:{ready:!1,active:!1,startX:0,startY:0,sourceUid:null,sourceTh:null,targetTh:null,clickSuppress:!1},onDocumentMousemoveHandler:null,onDocumentMouseupHandler:null,resizeObserver:null,resizeTimer:null,columnsReady:!1}},computed:{hasFooterLeftSlot:function(){return!(!this.$slots["footer-left"]&&!this.$scopedSlots["footer-left"])},resolvedShowAdjustment:function(){return!!this.showAdjustment||this.toolbarRightInstances.some(function(e){return!!e.showAdjustment})},opButtons:function(){return(this.tableOperation||[]).filter(function(e){return!!e})},opColumnWidth:function(){var e=this.opButtons;if(!e.length)return null;var t=e.length>Mt,n=t?e.slice(0,Mt):e,r=!1,i=0;return n.forEach(function(e){var t=Number(e.width);t>0?(r=!0,i+=t):i+=60}),t&&(i+=60,r=!0),r?i:null},autoMenuItems:function(){return this.opButtons.map(function(e,t){var n={code:"__normal_report_op_"+t,name:e.text,params:e,method:e.method,__isOp:!0};return"boolean"!==typeof e.active||e.active||(n.disabled=!0),n})},copyMenuItems:function(){return[{code:"__normal_report_copy",name:"复制",prefixIcon:"el-icon-document-copy",__isCopy:!0}]},resolvedMenuConfig:function(){var e=this;if(this.menuConfig)return this.menuConfig;var t=[this.copyMenuItems];return this.opButtons.length&&t.push(this.autoMenuItems),{visibleMethod:function(t){if(!t||"header"!==t.type)return!0;var n=e.resolveColumnUid(t.column);return null!=n&&(e.headerMenuCtx={uid:n,column:t.column},!0)},body:this.showContextMenu?{options:t}:{options:[]},header:{options:[[{code:"__normal_report_header_sort",name:function(){return e.getHeaderSortMenuName()},prefixIcon:"el-icon-sort",__isHeaderMenu:!0},{code:"__normal_report_header_fix_left",name:function(){return e.getHeaderFixMenuName("left")},prefixIcon:"el-icon-d-arrow-left",__isHeaderMenu:!0},{code:"__normal_report_header_fix_right",name:function(){return e.getHeaderFixMenuName("right")},prefixIcon:"el-icon-d-arrow-right",__isHeaderMenu:!0}]]}}},renderColumns:function(){var e=this,t={};return this.columnComps.forEach(function(e){t[e._uid]=e}),this.columnOrder.map(function(n){var r=t[n];if(!r)return null;var i=e.columnStates[n];return i&&!1===i.visible?null:{comp:r,uid:n,field:r.field,type:r.type,title:r.title,width:r.width,minWidth:i&&null!=i.minWidth?i.minWidth:r.resolvedMinWidth,treeNode:!!r.treeNode,fixed:i?i.fixed:r.fixed||"",align:r.align,sortable:i&&null!=i.sortable?i.sortable:!!r.sortable,showOverflow:r.showOverflow,resizable:r.resizable,editRender:r.editRender||(r.editable?{name:"input"}:r.$scopedSlots&&r.$scopedSlots.edit?{}:null),hasEditSlot:!(!r.$scopedSlots||!r.$scopedSlots.edit)}}).filter(Boolean)},renderedColumns:function(){return this.columnsReady?this.vxeColumns:[]},vxeColumns:function(){var e=this,t=this.renderColumns.map(function(t){var n=t.field||t.type||"__normal_report_uid_"+t.uid,r="seq"===t.type;return{key:n+"|sort="+(t.sortable?1:0)+"|fix="+(t.fixed||""),colId:"nr_uid_"+t.uid,type:r?void 0:t.type||void 0,field:t.field||void 0,title:t.title,width:t.width||void 0,minWidth:t.minWidth,treeNode:!!t.treeNode,fixed:t.fixed||void 0,align:t.align,sortable:!!t.sortable,sortBy:r?function(t){var n=t.row,r=e.$refs.xTable;return r&&"function"===typeof r.getRowIndex?r.getRowIndex(n):-1}:void 0,showOverflow:!1!==t.showOverflow,resizable:!1!==t.resizable,editRender:t.editRender||null,hasEditSlot:!!t.hasEditSlot,comp:t.comp,isSeq:r,isOp:!1}});return this.opButtons.length&&t.push({key:"__normal_report_op",field:"__normal_report_op",title:"操作",fixed:"right",align:"center",width:this.opColumnWidth||void 0,minWidth:130,showOverflow:!1,resizable:!0,isOp:!0}),t},columnAllVisible:function(){return this.columnDraft.length>0&&this.columnDraft.every(function(e){return e.visible})},columnIndeterminate:function(){var e=this.columnDraft.some(function(e){return e.visible});return e&&!this.columnAllVisible},resolvedEditConfig:function(){if(!1===this.editConfig)return null;if(this.editConfig)return this.editConfig;var e=this.vxeColumns.some(function(e){return e.editRender});return e?this.defaultEditConfig:null}},watch:{tableData:function(){this.updateTime=$t(new Date)}},created:function(){Array.isArray(this.tableData)||console.warn("[StandardTable] tableData(表格数据)为必填属性")},mounted:function(){var e=this;this.initResizeObserver(),document.addEventListener("click",this.onDocumentClickCapture,!0),this.columnsReady=!0,this.$nextTick(function(){e.resizeRecalculate(),"function"===typeof requestAnimationFrame&&requestAnimationFrame(function(){return e.resizeRecalculate()})})},beforeDestroy:function(){this.destroyResizeObserver(),document.removeEventListener("click",this.onDocumentClickCapture,!0),this.clearHeaderDragBindings()},methods:{getDefaultSlotVNodes:function(){var e=this.$slots["default"];return e?Array.isArray(e)?e:[e]:[]},isVNodeOfType:function(e,t){if(!e||!e.componentOptions)return!1;var n=e.componentOptions,r=n.tag||"",i=n.Ctor&&n.Ctor.options&&n.Ctor.options.name||"";return t.indexOf(r)>-1||t.indexOf(i)>-1},getToolbarLeftVNodes:function(){var e=this;return this.getDefaultSlotVNodes().filter(function(t){return e.isVNodeOfType(t,Ft)})},getToolbarRightVNodes:function(){var e=this;return this.getDefaultSlotVNodes().filter(function(t){return e.isVNodeOfType(t,Rt)})},getFooterLeftVNodes:function(){var e=this;return this.getDefaultSlotVNodes().filter(function(t){return e.isVNodeOfType(t,It)})},getFooterRightVNodes:function(){var e=this;return this.getDefaultSlotVNodes().filter(function(t){return e.isVNodeOfType(t,At)})},getFooterEmptyVNodes:function(){var e=this;return this.getDefaultSlotVNodes().filter(function(t){return e.isVNodeOfType(t,Pt)})},getToolbarEmptyVNodes:function(){var e=this;return this.getDefaultSlotVNodes().filter(function(t){return e.isVNodeOfType(t,Lt)})},getHiddenSlotVNodes:function(){var e=this;return this.getDefaultSlotVNodes().filter(function(t){return!e.isVNodeOfType(t,Ft)&&!e.isVNodeOfType(t,Rt)&&!e.isVNodeOfType(t,It)&&!e.isVNodeOfType(t,At)&&!e.isVNodeOfType(t,Pt)&&!e.isVNodeOfType(t,Lt)})},getActionsVisible:function(){return this.getToolbarLeftVNodes().length>0||this.getToolbarRightVNodes().length>0||this.resolvedShowAdjustment},getToolbarEmptyVisible:function(){return!this.getActionsVisible()},getFooterVisible:function(){var e=this.getFooterLeftVNodes().length>0,t=this.getFooterRightVNodes().length>0;return this.showFooter?e||this.hasFooterLeftSlot||this.showUpdateTime||t:e||t},getIsOnlyPagination:function(){return 0===this.getFooterLeftVNodes().length&&!(this.showFooter&&this.hasFooterLeftSlot)&&!(this.showFooter&&this.showUpdateTime)},getFooterEmptyVisible:function(){return!this.getFooterVisible()},registerToolbarRight:function(e){!e||this.toolbarRightInstances.indexOf(e)>-1||this.toolbarRightInstances.push(e)},unregisterToolbarRight:function(e){if(e){var t=this.toolbarRightInstances.indexOf(e);t>-1&&this.toolbarRightInstances.splice(t,1)}},addColumn:function(e){!e||this.columnComps.indexOf(e)>-1||(this.columnComps.push(e),this.$set(this.columnStates,e._uid,{visible:!0,fixed:e.fixed||"",minWidth:null,sortable:!!e.sortable}),-1===this.columnOrder.indexOf(e._uid)&&this.columnOrder.push(e._uid),this.buildDefaultSnapshot())},removeColumn:function(e){if(e){var t=this.columnComps.indexOf(e);t>-1&&this.columnComps.splice(t,1);var n=this.columnOrder.indexOf(e._uid);n>-1&&this.columnOrder.splice(n,1),this.columnStates[e._uid]&&this.$delete(this.columnStates,e._uid),this.buildDefaultSnapshot()}},buildDefaultSnapshot:function(){this.defaultSnapshot=this.columnComps.map(function(e){return{uid:e._uid,field:e.field,title:e.title,visible:!0,fixed:e.fixed||"",minWidth:e.resolvedMinWidth,sortable:!!e.sortable}})},renderCell:function(e,t,n,r){if(e.isSeq)return String(null!=t.seq?t.seq:"");if(e.isOp)return this.renderOpCell(t.row,r);var i=e.comp;if(!i)return"";if(n&&i.$scopedSlots&&"function"===typeof i.$scopedSlots.edit)return i.$scopedSlots.edit(t);if(i.$scopedSlots&&"function"===typeof i.$scopedSlots["default"])return i.$scopedSlots["default"](t);if(Array.isArray(i.$slots["default"])&&i.$slots["default"].length>0)return i.$slots["default"];if("function"===typeof i.formatter){var o=i.formatter(t);if(null!=o)return o}var a=t.row[i.field];return null==a||""===a?"":String(a)},renderOpButton:function(e,t,n,r){var i=this,o=this.isOpActive(n,t),a={key:r,props:{type:"text",size:"mini",disabled:!o},on:{click:function(){return i.handleOpClick(t,n)}},nativeOn:{click:function(e){return e&&e.stopPropagation()}}};return n.color&&o&&(a.style={color:n.color}),e("el-button",a,n.text)},renderOpMore:function(e,t,n){var r=this;return e("el-dropdown",{key:"__normal_report_op_more__",class:"normal-report-op-more",props:{size:"mini",trigger:"click"},on:{command:function(e){return r.handleOpClick(t,e)}},nativeOn:{click:function(e){return e&&e.stopPropagation()}}},[e("el-button",{props:{type:"text",size:"mini"}},["更多",e("i",{class:"el-icon-arrow-down el-icon--right"})]),e("el-dropdown-menu",{slot:"dropdown"},n.map(function(n,i){var o=r.isOpActive(n,t);return e("el-dropdown-item",{key:i,props:{command:n,disabled:!o},style:n.color&&o?{color:n.color}:void 0},n.text)}))])},renderOpCell:function(e,t){var n=this,r=t||this.$createElement,i=this.opButtons;if(!i.length)return null;if(i.length<=Mt)return i.map(function(t,i){return n.renderOpButton(r,e,t,i)});var o=i.slice(0,Mt).map(function(t,i){return n.renderOpButton(r,e,t,i)});return o.push(this.renderOpMore(r,e,i.slice(Mt))),o},isOpActive:function(e,t){return"function"===typeof e.active?!1!==e.active(t,e):!1!==e.active},findParentMethod:function(e){var t=this.$parent;while(t){if("function"===typeof t[e])return t[e].bind(t);t=t.$parent}return null},invokeHandler:function(e,t){if("function"!==typeof e){if("string"===typeof e&&e){var n=this.findParentMethod(e);n&&n.apply(void 0,Ct(t))}}else e.apply(this.$parent||this,t)},handleOpClick:function(e,t){this.invokeHandler(t.method,[e,t]),this.$emit("op-click",e,t)},onMenuClick:function(e){if(e&&e.menu){var t=e.menu;if(t.__isCopy)this.copyCellValue(e);else if(t.__isOp){var n=e.row;if(!this.isOpActive(t.params,n))return;this.invokeHandler(t.method,[n,t.params]),this.$emit("op-click",n,t.params)}else t.__isHeaderMenu?this.handleHeaderMenuClick(t,e):null!=t.method&&this.invokeHandler(t.method,null!=t.params?[t.params,e]:[e]);this.$emit("menu-click",e)}},copyCellValue:function(e){var t=e||{},n=t.row,r=t.column,i=t.rowIndex;if(n&&r){var o=r.property||r.field,a="";if("seq"===r.type||!r.field&&!r.type)a=String((null!=i?i:0)+1);else if(o){var s=n[o];a=null==s||""===s?"":String(s)}""!==a?this.copyTextToClipboard(a):this.$message&&this.$message.info("该单元格无内容可复制")}},copyTextToClipboard:function(e){var t=this;navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(e).then(function(){t.$message&&t.$message.success("复制成功:"+e)})["catch"](function(){t.fallbackCopyText(e)}):this.fallbackCopyText(e)},fallbackCopyText:function(e){var t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();try{var n=document.execCommand("copy");n?this.$message&&this.$message.success("复制成功:"+e):this.$message&&this.$message.error("复制失败,请手动复制")}catch(r){this.$message&&this.$message.error("复制失败,请手动复制")}document.body.removeChild(t)},handleCheckboxChange:function(){this.$emit("selection-change",this.getSelection())},handleCurrentRowChange:function(e){this.$emit("current-change",e)},handleToggleTreeExpand:function(e){this.$emit("toggle-tree-expand",e)},parseColIdUid:function(e){if("string"!==typeof e||0!==e.indexOf("nr_uid_"))return null;var t=Number(e.slice(7));return isNaN(t)?null:t},resolveColumnUid:function(e){return e?this.parseColIdUid(e.id):null},getHeaderMenuColumnState:function(){var e=this.headerMenuCtx;return e&&this.columnStates[e.uid]?this.columnStates[e.uid]:null},getHeaderSortMenuName:function(){var e=this.getHeaderMenuColumnState();return e&&e.sortable?"取消显示排序按钮":"显示排序按钮"},getHeaderFixMenuName:function(e){var t=this.getHeaderMenuColumnState();return t&&t.fixed===e?"left"===e?"取消固定在左侧":"取消固定在右侧":"left"===e?"固定在左侧":"固定在右侧"},handleHeaderMenuClick:function(e,t){var n=this.resolveColumnUid(t.column);null!=n&&("__normal_report_header_sort"===e.code?this.toggleHeaderColumnSort(n):"__normal_report_header_fix_left"===e.code?this.toggleHeaderColumnFixed(n,"left"):"__normal_report_header_fix_right"===e.code&&this.toggleHeaderColumnFixed(n,"right"))},toggleHeaderColumnSort:function(e){var t=this,n=this.columnStates[e];n&&(this.$set(n,"sortable",!n.sortable),this.$nextTick(function(){return t.applyColumnOrder()}))},toggleHeaderColumnFixed:function(e,t){var n=this,r=this.columnStates[e];r&&(this.$set(r,"fixed",r.fixed===t?"":t),this.$nextTick(function(){return n.applyColumnOrder()}))},onEditActivated:function(e,t){this.$emit("edit-activated",e,t)},onEditClosed:function(e,t){this.$emit("edit-closed",e,t)},onTableMousedown:function(e){if(e&&0===e.button){var t=e.target;if(t&&"function"===typeof t.closest||(t=document.elementFromPoint(e.clientX,e.clientY)),t&&"function"===typeof t.closest&&!t.closest(".vxe-resizable, .vxe-table--resizable-col-bar")){var n=t.closest(".vxe-header--column");if(n){var r=this.parseColIdUid(n.getAttribute("colid"));if(null!=r){var i=this.headerDragState;i.ready=!0,i.active=!1,i.startX=e.clientX,i.startY=e.clientY,i.sourceUid=r,i.sourceTh=n,i.targetTh=null,i.clickSuppress=!1,this.onDocumentMousemoveHandler=this.onDocumentMousemove.bind(this),this.onDocumentMouseupHandler=this.onDocumentMouseup.bind(this),document.addEventListener("mousemove",this.onDocumentMousemoveHandler),document.addEventListener("mouseup",this.onDocumentMouseupHandler)}}}}},onDocumentMousemove:function(e){var t=this.headerDragState;if(t.ready){if(!t.active){if(Math.abs(e.clientX-t.startX)+Math.abs(e.clientY-t.startY)<6)return;t.active=!0,document.body.classList.add("nr-header-dragging"),t.sourceTh&&t.sourceTh.classList.add("nr-header-drag-source")}e.preventDefault();var n=null,r=e.target;if(r&&"function"===typeof r.closest||(r=document.elementFromPoint(e.clientX,e.clientY)),r&&"function"===typeof r.closest){var i=r.closest(".vxe-header--column");i&&i!==t.sourceTh&&null!=this.parseColIdUid(i.getAttribute("colid"))&&(n=i)}n!==t.targetTh&&(t.targetTh&&t.targetTh.classList.remove("nr-header-drag-target"),t.targetTh=n,n&&n.classList.add("nr-header-drag-target"))}},onDocumentMouseup:function(){var e=this.headerDragState;if(this.clearHeaderDragBindings(),e.ready){if(e.ready=!1,e.active){e.active=!1,e.clickSuppress=!0,document.body.classList.remove("nr-header-dragging"),e.sourceTh&&e.sourceTh.classList.remove("nr-header-drag-source"),e.targetTh&&e.targetTh.classList.remove("nr-header-drag-target");var t=e.targetTh?this.parseColIdUid(e.targetTh.getAttribute("colid")):null;null!=t&&t!==e.sourceUid&&this.moveColumnOrder(e.sourceUid,t)}e.sourceTh=null,e.targetTh=null}},onDocumentClickCapture:function(e){this.headerDragState.clickSuppress&&(this.headerDragState.clickSuppress=!1,e&&(e.stopPropagation(),e.preventDefault()))},clearHeaderDragBindings:function(){this.onDocumentMousemoveHandler&&(document.removeEventListener("mousemove",this.onDocumentMousemoveHandler),this.onDocumentMousemoveHandler=null),this.onDocumentMouseupHandler&&(document.removeEventListener("mouseup",this.onDocumentMouseupHandler),this.onDocumentMouseupHandler=null),document.body.classList.remove("nr-header-dragging")},moveColumnOrder:function(e,t){var n=this,r=this.columnOrder.indexOf(e),i=this.columnOrder.indexOf(t);if(!(r<0||i<0||r===i)){var o=this.columnOrder.slice(),a=o.splice(r,1)[0];o.splice(i,0,a),this.columnOrder=o,this.$nextTick(function(){return n.applyColumnOrder()})}},clearSelection:function(){this.$refs.xTable&&this.$refs.xTable.clearCheckboxRow()},setCurrentRow:function(e){this.$refs.xTable&&e&&this.$refs.xTable.setCheckboxRow(e,!0)},setCurrentRecord:function(e){this.$refs.xTable&&e&&this.$refs.xTable.setCurrentRow(e)},getSelection:function(){return this.$refs.xTable?this.$refs.xTable.getCheckboxRecords():[]},recalculate:function(){this.$refs.xTable&&this.$refs.xTable.recalculate(!0)},setAllTreeExpand:function(e){this.$refs.xTable&&this.$refs.xTable.setAllTreeExpand&&this.$refs.xTable.setAllTreeExpand(e)},initResizeObserver:function(){var e=this,t=this.$refs.tableWrap;t&&("undefined"!==typeof ResizeObserver?(this.resizeObserver=new ResizeObserver(function(){e.scheduleTableRecalculate()}),this.resizeObserver.observe(t)):window.addEventListener("resize",this.handleWindowResize))},scheduleTableRecalculate:function(){var e=this;this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(function(){e.resizeTimer=null,e.resizeRecalculate()},50)},resizeRecalculate:function(){var e=this,t=this.$refs.xTable,n=this.$refs.tableWrap;if(t&&(!n||0!==n.clientWidth)){var r=function(){e.$nextTick(function(){t.refreshScroll&&t.refreshScroll()})};if(t.recalculate){var i=t.recalculate(!0);i&&"function"===typeof i.then?i.then(r):r()}else r()}},handleWindowResize:function(){this.scheduleTableRecalculate()},destroyResizeObserver:function(){this.resizeTimer&&(clearTimeout(this.resizeTimer),this.resizeTimer=null),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),window.removeEventListener("resize",this.handleWindowResize)},exportData:function(e){this.$refs.xTable&&this.$refs.xTable.exportData&&this.$refs.xTable.exportData(e)},applyColumnOrder:function(){var e=this.$refs.xTable;if(e&&e.staticColumns){var t={};e.staticColumns.forEach(function(e){t[e.field||e.type]=e});var n=[];this.showCheckbox&&t.checkbox&&n.push(t.checkbox),this.vxeColumns.forEach(function(e){var r=t[e.field||e.type];r&&(r.minWidth=e.minWidth,r.sortable=!!e.sortable,r.fixed=e.fixed||"",n.push(r))}),e.staticColumns=n,this.$nextTick(function(){e.recalculate&&e.recalculate(!0)})}},openColumnSetting:function(){var e=this,t={};this.columnComps.forEach(function(e){t[e._uid]=e});var n=this.columnStates;this.columnDraft=this.columnOrder.map(function(e){var r=t[e];if(!r)return null;var i=n[e];return{uid:e,field:r.field,title:r.title,visible:!i||!1!==i.visible,fixed:i?i.fixed:r.fixed||"",minWidth:i&&null!=i.minWidth?i.minWidth:r.resolvedMinWidth,sortable:i&&null!=i.sortable?i.sortable:!!r.sortable}}).filter(Boolean),this.dragColField="",this.dragOverColField="",this.columnTitleWidth=this.columnDraft.reduce(function(t,n){return Math.max(t,e.calcColumnTitleWidth(n.title))},0)},calcColumnTitleWidth:function(e){var t=String(e||""),n=(t.match(/[\u4e00-\u9fa5]/g)||[]).length,r=t.length-n;return 15*n+10*r+10},toggleColumnAll:function(e){this.columnDraft.forEach(function(t){t.visible=e})},toggleColumnVisible:function(e,t){e.visible=t},changeColumnDraftWidth:function(e,t){null==t||""===t||Number(t)<=0?(e.visible=!1,e.minWidth=void 0):e.minWidth=Number(t)},toggleColumnFixed:function(e,t){e.fixed=e.fixed===t?"":t},toggleColumnSortable:function(e){e.sortable=!e.sortable},moveColumnDraft:function(e,t){var n=e+t;if(!(n<0||n>=this.columnDraft.length)){var r=this.columnDraft,i=r.splice(e,1)[0];r.splice(n,0,i)}},onDraftDragStart:function(e,t){this.dragColField=t.uid,e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",String(t.uid))},onDraftDragOver:function(e){e.uid!==this.dragOverColField&&(this.dragOverColField=e.uid)},onDraftDrop:function(e){var t=this.dragColField,n=e.uid;if(this.dragOverColField="",t&&t!==n){var r=this.columnDraft.findIndex(function(e){return e.uid===t}),i=this.columnDraft.findIndex(function(e){return e.uid===n});if(r<0||i<0)this.dragColField="";else{var o=this.columnDraft.splice(r,1),a=bt(o,1),s=a[0];this.columnDraft.splice(i,0,s),this.dragColField=""}}else this.dragColField=""},onDraftDragEnd:function(){this.dragColField="",this.dragOverColField=""},restoreDefaultColumns:function(){this.columnDraft=JSON.parse(JSON.stringify(this.defaultSnapshot))},confirmColumnSetting:function(){var e=this,t=[];this.columnDraft.forEach(function(n){e.$set(e.columnStates,n.uid,{visible:n.visible,fixed:n.fixed||"",minWidth:null!=n.minWidth?n.minWidth:null,sortable:!!n.sortable}),t.push(n.uid)}),this.columnOrder=t,this.columnSettingVisible=!1,this.$nextTick(function(){e.applyColumnOrder()})}}},Bt=jt;r(1492);var Vt=u(Bt,it,ot,!1,null,null,null);const zt=Vt.exports,Ht={name:"StandardColumn",props:{field:{type:String,default:""},type:{type:String,default:""},title:{type:String,default:""},width:{type:[String,Number],default:null},minWidth:{type:[String,Number],default:null},treeNode:{type:Boolean,default:!1},resizable:{type:Boolean,default:!0},fixed:{type:String,default:""},align:{type:String,default:"left"},showOverflow:{type:Boolean,default:!0},sortable:{type:Boolean,default:!1},formatter:{type:Function,default:null},editable:{type:Boolean,default:!1},editRender:{type:Object,default:null}},computed:{resolvedMinWidth:function(){var e=Number(this.minWidth);if(null!=this.minWidth&&""!==this.minWidth&&e>0)return e;var t=Number(this.width);return null!=this.width&&""!==this.width&&t>0?t:this.calcTitleWidth(this.title)}},render:function(e){return e("div",{style:{display:"none"}})},created:function(){this.register()},beforeDestroy:function(){this.unregister()},methods:{calcTitleWidth:function(e){var t=String(e??""),n=(t.match(/[\u4e00-\u9fa5]/g)||[]).length,r=(t.match(/[A-Za-z]/g)||[]).length;return 15*n+10*r+40},findParentTable:function(){var e=this.$parent;while(e&&"StandardTable"!==e.$options.name)e=e.$parent;return e},register:function(){var e=this.findParentTable();e?this.field||this.type?e.addColumn(this):console.warn("[StandardColumn] field 与 type 至少需要提供一个"):console.warn("[StandardColumn] 未找到父组件 StandardTable,列信息注册失败")},unregister:function(){var e=this.findParentTable();e&&e.removeColumn(this)}}},Wt=Ht;var qt,Gt,Yt=u(Wt,qt,Gt,!1,null,null,null);const Ut=Yt.exports,Kt={name:"StandardToolbarLeft",props:{buttons:{type:Array,default:function(){return[]}}},methods:{handleButtonClick:function(e){if(e){if("function"===typeof e.method)e.method(e);else if("string"===typeof e.method&&e.method){var t=this.$parent;while(t){if("function"===typeof t[e.method]){t[e.method](e);break}t=t.$parent}}this.$emit("toolbar-click",e)}}},render:function(e){var t=this,n=(this.buttons||[]).filter(function(e){return e&&!1!==e.show}).map(function(n,r){return e("el-button",{key:"toolbar-"+r,props:{size:"mini",type:n.type,icon:n.icon},attrs:{title:n.title},on:{click:function(){return t.handleButtonClick(n)}}},[n.text])}),r=this.$slots["default"]||[];return e("div",{class:"standard-toolbar-left"},n.concat(r))}},Xt=Kt;var Zt,Qt,Jt=u(Xt,Zt,Qt,!1,null,null,null);const en=Jt.exports,tn={name:"StandardToolbarRight",props:{showAdjustment:{type:Boolean,default:!1}},created:function(){this.register()},beforeDestroy:function(){this.unregister()},methods:{findParentTable:function(){var e=this.$parent;while(e&&"StandardTable"!==e.$options.name)e=e.$parent;return e},register:function(){var e=this.findParentTable();e?e.registerToolbarRight(this):console.warn("[StandardToolbarRight] 未找到父组件 StandardTable,show-adjustment 配置注册失败")},unregister:function(){var e=this.findParentTable();e&&e.unregisterToolbarRight(this)}},render:function(e){return e("div",{class:"standard-toolbar-right"},this.$slots["default"])}},nn=tn;var rn,on,an=u(nn,rn,on,!1,null,null,null);const sn=an.exports;var ln=function(){var e=this,t=e._self._c;return e.placedCorrectly?t("div",{staticClass:"standard-toolbar-query"},[t("standard-input",{attrs:{value:e.keyword,placeholder:e.placeholder},on:{input:e.onInput,enter:e.onQuery}}),t("standard-button",{attrs:{type:"primary",icon:"el-icon-search",label:"查询",loading:e.loading},on:{click:e.onQuery}}),e.showExport?t("standard-button",{attrs:{icon:"el-icon-upload2",label:"导出"},on:{click:e.onExport}}):e._e()],1):e._e()},cn=[];const un={name:"StandardToolbarQuery",components:{StandardInput:we,StandardButton:h},model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},placeholder:{type:String,default:"请输入关键字"},queryMethod:{type:[Function,String],default:""},exportMethod:{type:[Function,String],default:""},showExport:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},data:function(){return{placedCorrectly:!0,keyword:null==this.value?"":String(this.value)}},watch:{value:function(e){this.keyword=null==e?"":String(e)}},mounted:function(){this.validatePlacement()},methods:{findToolbarRight:function(){var e=this.$parent;while(e){if(e.$options&&"StandardToolbarRight"===e.$options.name)return e;e=e.$parent}return null},validatePlacement:function(){var e=this.$el,t=!!(e&&1===e.nodeType&&e.parentElement&&e.parentElement.closest(".standard-toolbar-right"));this.findToolbarRight()||t||(this.placedCorrectly=!1,console.warn("[StandardToolbarQuery] 只能放在 standard-toolbar-right 内部"))},onInput:function(e){this.keyword=null==e?"":String(e),this.$emit("input",this.keyword)},invokeMethod:function(e,t){if("function"!==typeof e){if("string"===typeof e&&e){var n=this.$parent;while(n){if("function"===typeof n[e])return void n[e](t);n=n.$parent}console.warn("[StandardToolbarQuery] 未找到方法 ".concat(e))}}else e(t)},onQuery:function(){var e=this.keyword;this.invokeMethod(this.queryMethod,e),this.$emit("query",e)},onExport:function(){var e=this.keyword;this.invokeMethod(this.exportMethod,e),this.$emit("export",e)}}},dn=un;var hn=u(dn,ln,cn,!1,null,null,null);const pn=hn.exports,fn={name:"StandardFooterLeft",props:{text:{type:String,default:""}},render:function(e){return e("span",{class:"normal-report-update-time"},this.text)}},mn=fn;var gn,vn,bn=u(mn,gn,vn,!1,null,null,null);const yn=bn.exports,xn={name:"StandardFooterRight",props:{pageSizes:{type:Array,default:function(){return[10,20,50,100,200,500]}},layout:{type:String,default:"sizes, prev, pager, next, total"},currentPage:{type:Number,default:1},pageSize:{type:Number,default:20},total:{type:Number,default:0}},data:function(){return{suppressCurrentChange:!1}},methods:{handleCurrentChange:function(e){this.suppressCurrentChange||this.$emit("page-change",{currentPage:e,pageSize:this.pageSize,type:"page"})},handleSizeChange:function(e){var t=this;this.suppressCurrentChange=!0,this.$emit("page-change",{currentPage:1,pageSize:e,type:"size"}),this.$nextTick(function(){t.suppressCurrentChange=!1})}},render:function(e){return e("el-pagination",{class:"normal-report-table-pagination",props:{background:!0,layout:this.layout,currentPage:this.currentPage,pageSize:this.pageSize,pageSizes:this.pageSizes,total:this.total},on:{"size-change":this.handleSizeChange,"current-change":this.handleCurrentChange}})}},wn=xn;var Cn,_n,Sn=u(wn,Cn,_n,!1,null,null,null);const kn=Sn.exports;zt.Column=Ut,zt.ToolbarLeft=en,zt.ToolbarRight=sn,zt.ToolbarQuery=pn,zt.FooterLeft=yn,zt.FooterRight=kn,zt.FooterEmpty=vt,zt.ToolbarEmpty=dt,zt.install=function(e){e.component(zt.name,zt),e.component(Ut.name,Ut),e.component(en.name,en),e.component(sn.name,sn),e.component(pn.name,pn),e.component(yn.name,yn),e.component(kn.name,kn),e.component(vt.name,vt),e.component(dt.name,dt)};const En=zt;var On=function(){var e=this,t=e._self._c;return t("section",{staticClass:"standard-tabs"},[t("el-tabs",e._g(e._b({staticClass:"standard-tabs__inner",attrs:{value:e.value},on:{input:e.onInput}},"el-tabs",e.$attrs,!1),e.tabsListeners),[e._t("default")],2)],1)},Tn=[];function $n(e){return $n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$n(e)}function Dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dn(Object(n),!0).forEach(function(t){Fn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fn(e,t,n){return(t=Rn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rn(e){var t=In(e,"string");return"symbol"==$n(t)?t:t+""}function In(e,t){if("object"!=$n(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=$n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}const An={name:"StandardTabs",model:{prop:"value",event:"input"},props:{value:{type:[String,Number],default:""},lazy:{type:Boolean,default:!1}},provide:function(){return{standardTabs:this}},computed:{tabsListeners:function(){var e=Mn({},this.$listeners);return delete e.input,e}},methods:{onInput:function(e){this.$emit("input",e)}}},Pn=An;r(8810);var Ln=u(Pn,On,Tn,!1,null,"605a8d38",null);const Nn=Ln.exports;var jn=r(1052);const Bn={name:"ElTabPane",componentName:"ElTabPane",extends:jn.TabPane,inject:{standardTabs:{default:null}},computed:{paneLazy:function(){return this.lazy||!(!this.standardTabs||!this.standardTabs.lazy)}},render:function(e){return!this.paneLazy||this.loaded||this.active?e("div",{class:"el-tab-pane",directives:[{name:"show",rawName:"v-show",value:this.active,expression:"active"}],attrs:{role:"tabpanel","aria-hidden":!this.active,id:"pane-".concat(this.paneName),"aria-labelledby":"tab-".concat(this.paneName)}},[this.$slots["default"]]):e()}},Vn=Bn;var zn,Hn,Wn=u(Vn,zn,Hn,!1,null,null,null);const qn=Wn.exports;Nn.TabPane=qn,Nn.install=function(e){e.component(Nn.name,Nn),e.component("StandardTabPane",qn)};const Gn=Nn;var Yn=function(){var e=this,t=e._self._c;return t("section",{staticClass:"standard-tree",class:{"standard-tree--transparent":e.transparent}},[t("div",{staticClass:"standard-tree-search"},[t("el-input",{attrs:{size:"mini",clearable:"","prefix-icon":"el-icon-search",placeholder:e.searchPlaceholder},model:{value:e.filterText,callback:function(t){e.filterText="string"===typeof t?t.trim():t},expression:"filterText"}})],1),t("div",{staticClass:"standard-tree-main"},[t("el-tree",{ref:"tree",staticClass:"standard-tree-body",attrs:{data:e.treeData,"node-key":e.nodeKey,props:e.treeProps,"default-expanded-keys":e.defaultExpandedKeys,accordion:"","highlight-current":"","expand-on-click-node":!0,"filter-node-method":e.filterNode},on:{"node-click":e.handleNodeClick,"node-expand":e.handleTreeExpand,"node-collapse":e.handleTreeCollapse},scopedSlots:e._u([{key:"default",fn:function(n){var r=n.node,i=n.data;return t("span",{staticClass:"standard-tree-node"},[t("i",{class:i.children&&i.children.length?"el-icon-folder-opened":"el-icon-document"}),t("span",{staticClass:"standard-tree-node-label"},[e._v(e._s(r.label))])])}}])})],1),t("div",{staticClass:"standard-tree-bottom"},[t("el-button",{staticClass:"standard-tree-bottom-button",attrs:{type:"text",size:"mini",icon:e.allExpanded?"el-icon-arrow-up":"el-icon-arrow-down",title:e.allExpanded?"收起所有分组":"展开所有分组"},on:{click:e.toggleExpandAll}},[e._v(e._s(e.allExpanded?"全部收起":"全部展开"))])],1)])},Un=[];const Kn={name:"StandardTree",model:{prop:"treeData",event:"update:treeData"},props:{treeData:{type:Array,default:function(){return[]}},treeProps:{type:Object,default:function(){return{label:"label",children:"children"}}},nodeKey:{type:String,default:"id"},defaultExpandedKeys:{type:Array,default:function(){return[]}},searchPlaceholder:{type:String,default:"请输入节点名称搜索"},transparent:{type:Boolean,default:!1}},data:function(){return{filterText:"",allExpanded:!1}},watch:{filterText:function(e){this.$refs.tree&&this.$refs.tree.filter(e)},treeData:function(){var e=this;this.$nextTick(function(){e.allExpanded=e.isAllExpanded()})}},methods:{filterNode:function(e,t){if(!e)return!0;var n=t[this.treeProps.label];return-1!==String(n??"").indexOf(e)},handleNodeClick:function(e,t,n){this.$emit("node-click",e,t,n)},handleTreeExpand:function(e,t,n){var r=this;this.$nextTick(function(){r.allExpanded=r.isAllExpanded()}),this.$emit("node-expand",e,t,n)},handleTreeCollapse:function(e,t,n){this.allExpanded=!1,this.$emit("node-collapse",e,t,n)},getGroupNodes:function(){return(this.treeData||[]).filter(function(e){return e.children&&e.children.length})},isAllExpanded:function(){var e=this,t=this.$refs.tree,n=this.getGroupNodes();return!(!t||!n.length)&&n.every(function(n){var r=t.getNode(n[e.nodeKey]);return r&&r.expanded})},toggleExpandAll:function(){var e=this,t=this.$refs.tree,n=this.getGroupNodes();t&&n.length&&(this.isAllExpanded()?(n.forEach(function(n){var r=t.getNode(n[e.nodeKey]);r&&r.expanded&&r.collapse()}),this.allExpanded=!1):(n.forEach(function(n){var r=t.getNode(n[e.nodeKey]);r&&r.expand()}),this.allExpanded=!0))},setCurrentKey:function(e){this.$refs.tree&&this.$refs.tree.setCurrentKey(e)},filter:function(e){this.$refs.tree&&this.$refs.tree.filter(e)}}},Xn=Kn;r(4003);var Zn=u(Xn,Yn,Un,!1,null,"bb183020",null);const Qn=Zn.exports;function Jn(){return Jn.c||(Jn.c=r.n(t()))}t();var er=[h,b,S,N,re,ce,we,Oe,Re,qe,rt,En,Gn,Qn],tr=!1,nr=function(e){!tr&&Jn()()&&"function"===typeof Jn()().setup&&(Jn()().setup({zIndex:5e3}),tr=!0),er.forEach(function(t){"function"===typeof t.install?e.use(t):e.component(t.name,t)})},rr={install:nr,StandardButton:h,StandardDialog:b,StandardContainer:S,StandardFilterbar:N,StandardForm:re,StandardHalfArea:ce,StandardInput:we,StandardPage:Oe,StandardSplitter:Re,StandardSelect:qe,StandardTimePick:rt,StandardTable:En,StandardTabs:Gn,StandardTree:Qn};const ir=rr,or=ir})(),i})());
|