hlyc-web-pack 3.7.7 → 3.7.8

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.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  * This source code is licensed under the MIT license found in the
22
22
  * LICENSE file in the root directory of this source tree.
23
- */function bR(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case QI:switch(t=t.type){case iR:case lR:case eR:case aR:case nR:case sR:return t;default:switch(t=t&&t.$$typeof){case oR:case cR:case pR:case dR:case rR:return t;default:return e}}case tR:return e}}}function vR(t){return bR(t)===lR}var yR={AsyncMode:iR,ConcurrentMode:lR,ContextConsumer:oR,ContextProvider:rR,Element:QI,ForwardRef:cR,Fragment:eR,Lazy:pR,Memo:dR,Portal:tR,Profiler:aR,StrictMode:nR,Suspense:sR,isAsyncMode:function(t){return vR(t)||bR(t)===iR},isConcurrentMode:vR,isContextConsumer:function(t){return bR(t)===oR},isContextProvider:function(t){return bR(t)===rR},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===QI},isForwardRef:function(t){return bR(t)===cR},isFragment:function(t){return bR(t)===eR},isLazy:function(t){return bR(t)===pR},isMemo:function(t){return bR(t)===dR},isPortal:function(t){return bR(t)===tR},isProfiler:function(t){return bR(t)===aR},isStrictMode:function(t){return bR(t)===nR},isSuspense:function(t){return bR(t)===sR},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===eR||t===lR||t===aR||t===nR||t===sR||t===uR||"object"==typeof t&&null!==t&&(t.$$typeof===pR||t.$$typeof===dR||t.$$typeof===rR||t.$$typeof===oR||t.$$typeof===cR||t.$$typeof===mR||t.$$typeof===hR||t.$$typeof===gR||t.$$typeof===fR)},typeOf:bR},xR=K((function(t,e){"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,a=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,y=t?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:var f=t.type;switch(f){case s:case u:case r:case i:case o:case p:return f;default:var g=f&&f.$$typeof;switch(g){case c:case d:case h:case m:case l:return g;default:return e}}case a:return e}}}var w=s,k=u,C=c,E=l,S=n,O=d,N=r,P=h,T=m,D=a,I=i,R=o,j=p,M=!1;function z(t){return x(t)===u}e.AsyncMode=w,e.ConcurrentMode=k,e.ContextConsumer=C,e.ContextProvider=E,e.Element=S,e.ForwardRef=O,e.Fragment=N,e.Lazy=P,e.Memo=T,e.Portal=D,e.Profiler=I,e.StrictMode=R,e.Suspense=j,e.isAsyncMode=function(t){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(t)||x(t)===s},e.isConcurrentMode=z,e.isContextConsumer=function(t){return x(t)===c},e.isContextProvider=function(t){return x(t)===l},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===n},e.isForwardRef=function(t){return x(t)===d},e.isFragment=function(t){return x(t)===r},e.isLazy=function(t){return x(t)===h},e.isMemo=function(t){return x(t)===m},e.isPortal=function(t){return x(t)===a},e.isProfiler=function(t){return x(t)===i},e.isStrictMode=function(t){return x(t)===o},e.isSuspense=function(t){return x(t)===p},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===u||t===i||t===o||t===p||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===m||t.$$typeof===l||t.$$typeof===c||t.$$typeof===d||t.$$typeof===b||t.$$typeof===v||t.$$typeof===y||t.$$typeof===g)},e.typeOf=x}()})),wR=K((function(t){"production"===process.env.NODE_ENV?t.exports=yR:t.exports=xR})),kR=Object.getOwnPropertySymbols,CR=Object.prototype.hasOwnProperty,ER=Object.prototype.propertyIsEnumerable;var SR=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var a=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if("0123456789"!==a.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,r=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))CR.call(n,i)&&(r[i]=n[i]);if(kR){a=kR(n);for(var l=0;l<a.length;l++)ER.call(n,a[l])&&(r[a[l]]=n[a[l]])}}return r},OR=Function.call.bind(Object.prototype.hasOwnProperty),NR="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",PR=OR,TR=function(){};if("production"!==process.env.NODE_ENV){var DR=NR,IR={},RR=PR;TR=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function jR(t,e,n,a,r){if("production"!==process.env.NODE_ENV)for(var o in t)if(RR(t,o)){var i;try{if("function"!=typeof t[o]){var l=Error((a||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}i=t[o](e,o,a,n,null,DR)}catch(t){i=t}if(!i||i instanceof Error||TR((a||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in IR)){IR[i.message]=!0;var c=r?r():"";TR("Failed "+n+" type: "+i.message+(null!=c?c:""))}}}jR.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(IR={})};var MR=jR,zR=function(){};function LR(){return null}"production"!==process.env.NODE_ENV&&(zR=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}});function AR(){}function _R(){}_R.resetWarningCache=AR;var FR=function(t,e){var n="function"==typeof Symbol&&Symbol.iterator;var a="<<anonymous>>",r={array:c("array"),bigint:c("bigint"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:l(LR),arrayOf:function(t){return l((function(e,n,a,r,o){if("function"!=typeof t)return new i("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var l=e[n];if(!Array.isArray(l))return new i("Invalid "+r+" `"+o+"` of type `"+d(l)+"` supplied to `"+a+"`, expected an array.");for(var c=0;c<l.length;c++){var s=t(l,c,a,r,o+"["+c+"]",NR);if(s instanceof Error)return s}return null}))},element:l((function(e,n,a,r,o){var l=e[n];return t(l)?null:new i("Invalid "+r+" `"+o+"` of type `"+d(l)+"` supplied to `"+a+"`, expected a single ReactElement.")})),elementType:l((function(t,e,n,a,r){var o=t[e];return wR.isValidElementType(o)?null:new i("Invalid "+a+" `"+r+"` of type `"+d(o)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return l((function(e,n,r,o,l){if(!(e[n]instanceof t)){var c=t.name||a;return new i("Invalid "+o+" `"+l+"` of type `"+(((s=e[n]).constructor&&s.constructor.name?s.constructor.name:a)+"` supplied to `")+r+"`, expected instance of `"+c+"`.")}var s;return null}))},node:l((function(t,e,n,a,r){return u(t[e])?null:new i("Invalid "+a+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return l((function(e,n,a,r,o){if("function"!=typeof t)return new i("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var l=e[n],c=d(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected an object.");for(var s in l)if(PR(l,s)){var u=t(l,s,a,r,o+"."+s,NR);if(u instanceof Error)return u}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&zR(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),LR;return l((function(e,n,a,r,l){for(var c=e[n],s=0;s<t.length;s++)if(o(c,t[s]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===p(e)?String(e):e}));return new i("Invalid "+r+" `"+l+"` of value `"+String(c)+"` supplied to `"+a+"`, expected one of "+u+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&zR("Invalid argument supplied to oneOfType, expected an instance of array."),LR;for(var e=0;e<t.length;e++){var n=t[e];if("function"!=typeof n)return zR("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+f(n)+" at index "+e+"."),LR}return l((function(e,n,a,r,o){for(var l=[],c=0;c<t.length;c++){var s=(0,t[c])(e,n,a,r,o,NR);if(null==s)return null;s.data&&PR(s.data,"expectedType")&&l.push(s.data.expectedType)}return new i("Invalid "+r+" `"+o+"` supplied to `"+a+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(t){return l((function(e,n,a,r,o){var l=e[n],c=d(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");for(var u in t){var f=t[u];if("function"!=typeof f)return s(a,r,o,u,p(f));var m=f(l,u,a,r,o+"."+u,NR);if(m)return m}return null}))},exact:function(t){return l((function(e,n,a,r,o){var l=e[n],c=d(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var u=SR({},e[n],t);for(var f in u){var m=t[f];if(PR(t,f)&&"function"!=typeof m)return s(a,r,o,f,p(m));if(!m)return new i("Invalid "+r+" `"+o+"` key `"+f+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var h=m(l,f,a,r,o+"."+f,NR);if(h)return h}return null}))}};function o(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function i(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function l(t){if("production"!==process.env.NODE_ENV)var n={},r=0;function o(o,l,c,s,u,d,p){if(s=s||a,d=d||c,p!==NR){if(e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var m=s+":"+c;!n[m]&&r<3&&(zR("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+s+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[m]=!0,r++)}}return null==l[c]?o?null===l[c]?new i("The "+u+" `"+d+"` is marked as required in `"+s+"`, but its value is `null`."):new i("The "+u+" `"+d+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:t(l,c,s,u,d)}var l=o.bind(null,!1);return l.isRequired=o.bind(null,!0),l}function c(t){return l((function(e,n,a,r,o,l){var c=e[n];return d(c)!==t?new i("Invalid "+r+" `"+o+"` of type `"+p(c)+"` supplied to `"+a+"`, expected `"+t+"`.",{expectedType:t}):null}))}function s(t,e,n,a,r){return new i((t||"React class")+": "+e+" type `"+n+"."+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function u(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(u);if(null===e||t(e))return!0;var a=function(t){var e=t&&(n&&t[n]||t["@@iterator"]);if("function"==typeof e)return e}(e);if(!a)return!1;var r,o=a.call(e);if(a!==e.entries){for(;!(r=o.next()).done;)if(!u(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!u(i[1]))return!1}return!0;default:return!1}}function d(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function p(t){if(null==t)return""+t;var e=d(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function f(t){var e=p(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return i.prototype=Error.prototype,r.checkPropTypes=MR,r.resetWarningCache=MR.resetWarningCache,r.PropTypes=r,r},VR=function(){function t(t,e,n,a,r,o){if(o!==NR){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:_R,resetWarningCache:AR};return n.PropTypes=n,n},KR=K((function(t){if("production"!==process.env.NODE_ENV){var e=wR;t.exports=FR(e.isElement,!0)}else t.exports=VR()})),HR=K((function(t,e){e.__esModule=!0,e.resizableProps=void 0;var n=function(t){return t&&t.__esModule?t:{default:t}}(KR);var a={axis:n.default.oneOf(["both","x","y","none"]),className:n.default.string,children:n.default.element.isRequired,draggableOpts:n.default.shape({allowAnyClick:n.default.bool,cancel:n.default.string,children:n.default.node,disabled:n.default.bool,enableUserSelectHack:n.default.bool,offsetParent:n.default.node,grid:n.default.arrayOf(n.default.number),handle:n.default.string,nodeRef:n.default.object,onStart:n.default.func,onDrag:n.default.func,onStop:n.default.func,onMouseDown:n.default.func,scale:n.default.number}),height:function(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];var r,o=e[0];return"both"===o.axis||"y"===o.axis?(r=n.default.number).isRequired.apply(r,e):n.default.number.apply(n.default,e)},handle:n.default.oneOfType([n.default.node,n.default.func]),handleSize:n.default.arrayOf(n.default.number),lockAspectRatio:n.default.bool,maxConstraints:n.default.arrayOf(n.default.number),minConstraints:n.default.arrayOf(n.default.number),onResizeStop:n.default.func,onResizeStart:n.default.func,onResize:n.default.func,resizeHandles:n.default.arrayOf(n.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:n.default.number,width:function(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];var r,o=e[0];return"both"===o.axis||"x"===o.axis?(r=n.default.number).isRequired.apply(r,e):n.default.number.apply(n.default,e)}};e.resizableProps=a})),BR=K((function(t,e){e.__esModule=!0,e.default=void 0;var n=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=r(e);if(n&&n.has(t))return n.get(t);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var l=o?Object.getOwnPropertyDescriptor(t,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=t[i]}a.default=t,n&&n.set(t,a);return a}(f.default),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function r(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(r=function(t){return t?n:e})(t)}function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},o.apply(this,arguments)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}var u=function(t){var e,r;function i(){for(var e,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(e=t.call.apply(t,[this].concat(a))||this).handleRefs={},e.lastHandleRect=null,e.slack=null,e}r=t,(e=i).prototype=Object.create(r.prototype),e.prototype.constructor=e,s(e,r);var c=i.prototype;return c.componentWillUnmount=function(){this.resetData()},c.resetData=function(){this.lastHandleRect=this.slack=null},c.runConstraints=function(t,e){var n=this.props,a=n.minConstraints,r=n.maxConstraints,o=n.lockAspectRatio;if(!a&&!r&&!o)return[t,e];if(o){var i=this.props.width/this.props.height,l=t-this.props.width,c=e-this.props.height;Math.abs(l)>Math.abs(c*i)?e=t/i:t=e*i}var s=t,u=e,d=this.slack||[0,0],p=d[0],f=d[1];return t+=p,e+=f,a&&(t=Math.max(a[0],t),e=Math.max(a[1],e)),r&&(t=Math.min(r[0],t),e=Math.min(r[1],e)),this.slack=[p+(s-t),f+(u-e)],[t,e]},c.resizeHandler=function(t,e){var n=this;return function(a,r){var o=r.node,i=r.deltaX,l=r.deltaY;"onResizeStart"===t&&n.resetData();var c=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==e&&"s"!==e,s=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==e&&"w"!==e;if(c||s){var u=e[0],d=e[e.length-1],p=o.getBoundingClientRect();if(null!=n.lastHandleRect){if("w"===d)i+=p.left-n.lastHandleRect.left;if("n"===u)l+=p.top-n.lastHandleRect.top}n.lastHandleRect=p,"w"===d&&(i=-i),"n"===u&&(l=-l);var f=n.props.width+(c?i/n.props.transformScale:0),m=n.props.height+(s?l/n.props.transformScale:0),h=n.runConstraints(f,m);f=h[0],m=h[1];var g=f!==n.props.width||m!==n.props.height,b="function"==typeof n.props[t]?n.props[t]:null;b&&!("onResize"===t&&!g)&&(null==a.persist||a.persist(),b(a,{node:o,size:{width:f,height:m},handle:e})),"onResizeStop"===t&&n.resetData()}}},c.renderResizeHandle=function(t,e){var a=this.props.handle;if(!a)return n.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t,ref:e});if("function"==typeof a)return a(t,e);var r=l({ref:e},"string"==typeof a.type?{}:{handleAxis:t});return n.cloneElement(a,r)},c.render=function(){var t=this,e=this.props,r=e.children,i=e.className,c=e.draggableOpts;e.width,e.height,e.handle,e.handleSize,e.lockAspectRatio,e.axis,e.minConstraints,e.maxConstraints,e.onResize,e.onResizeStop,e.onResizeStart;var s=e.resizeHandles;e.transformScale;var u=function(t,e){if(null==t)return{};var n,a,r={},o=Object.keys(t);for(a=0;a<o.length;a++)n=o[a],e.indexOf(n)>=0||(r[n]=t[n]);return r}(e,a);return(0,ZI.cloneElement)(r,l(l({},u),{},{className:(i?i+" ":"")+"react-resizable",children:[].concat(r.props.children,s.map((function(e){var a,r=null!=(a=t.handleRefs[e])?a:t.handleRefs[e]=n.createRef();return n.createElement(v.default.DraggableCore,o({},c,{nodeRef:r,key:"resizableHandle-"+e,onStop:t.resizeHandler("onResizeStop",e),onStart:t.resizeHandler("onResizeStart",e),onDrag:t.resizeHandler("onResize",e)}),t.renderResizeHandle(e,r))})))}))},i}(n.Component);e.default=u,u.propTypes=HR.resizableProps,u.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}})),UR=K((function(t,e){e.__esModule=!0,e.default=void 0;var n=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var i=r?Object.getOwnPropertyDescriptor(t,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=t[o]}a.default=t,n&&n.set(t,a);return a}(f.default),a=i(KR),r=i(BR),o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(t){return t&&t.__esModule?t:{default:t}}function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},c.apply(this,arguments)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var m=function(t){var e,a;function i(){for(var e,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(e=t.call.apply(t,[this].concat(a))||this).state={width:e.props.width,height:e.props.height,propsWidth:e.props.width,propsHeight:e.props.height},e.onResize=function(t,n){var a=n.size;e.props.onResize?(null==t.persist||t.persist(),e.setState(a,(function(){return e.props.onResize&&e.props.onResize(t,n)}))):e.setState(a)},e}return a=t,(e=i).prototype=Object.create(a.prototype),e.prototype.constructor=e,p(e,a),i.getDerivedStateFromProps=function(t,e){return e.propsWidth!==t.width||e.propsHeight!==t.height?{width:t.width,height:t.height,propsWidth:t.width,propsHeight:t.height}:null},i.prototype.render=function(){var t=this.props,e=t.handle,a=t.handleSize;t.onResize;var i=t.onResizeStart,l=t.onResizeStop,s=t.draggableOpts,d=t.minConstraints,p=t.maxConstraints,f=t.lockAspectRatio,m=t.axis;t.width,t.height;var h=t.resizeHandles,g=t.style,b=t.transformScale,v=function(t,e){if(null==t)return{};var n,a,r={},o=Object.keys(t);for(a=0;a<o.length;a++)n=o[a],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,o);return n.createElement(r.default,{axis:m,draggableOpts:s,handle:e,handleSize:a,height:this.state.height,lockAspectRatio:f,maxConstraints:p,minConstraints:d,onResizeStart:i,onResize:this.onResize,onResizeStop:l,resizeHandles:h,transformScale:b,width:this.state.width},n.createElement("div",c({},v,{style:u(u({},g),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},i}(n.Component);e.default=m,m.propTypes=u(u({},HR.resizableProps),{},{children:a.default.element})})),WR=BR.default;UR.default;const YR=t=>{const{onResize:e,width:a,...r}=t;return a?n.jsx(WR,{width:a,height:0,handle:n.jsx("span",{className:"react-resizable-handle",onClick:t=>{t.stopPropagation()}}),onResize:e,draggableOpts:{enableUserSelectHack:!1},children:n.jsx("th",{...r})}):n.jsx("th",{...r})};var $R,qR=t.createContext({dragDropManager:void 0});function GR(t,e){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];if("production"!==process.env.NODE_ENV&&void 0===e)throw new Error("invariant requires an error message argument");if(!t){var o;if(void 0===e)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;(o=new Error(e.replace(/%s/g,(function(){return a[i++]})))).name="Invariant Violation"}throw o.framesToPop=1,o}}!function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"}($R||($R={}));var XR="dnd-core/INIT_COORDS",ZR="dnd-core/BEGIN_DRAG",JR="dnd-core/PUBLISH_DRAG_SOURCE",QR="dnd-core/HOVER",tj="dnd-core/DROP",ej="dnd-core/END_DRAG";function nj(t,e){return{type:XR,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function aj(t){return aj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aj(t)}function rj(t,e,n){return e.split(".").reduce((function(t,e){return t&&t[e]?t[e]:n||null}),t)}function oj(t){return"object"===aj(t)}var ij={type:XR,payload:{clientOffset:null,sourceClientOffset:null}};function lj(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},a=n.publishSource,r=void 0===a||a,o=n.clientOffset,i=n.getSourceClientOffset,l=t.getMonitor(),c=t.getRegistry();t.dispatch(nj(o)),function(t,e,n){GR(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach((function(t){GR(n.getSource(t),"Expected sourceIds to be registered.")}))}(e,l,c);var s=function(t,e){for(var n=null,a=t.length-1;a>=0;a--)if(e.canDragSource(t[a])){n=t[a];break}return n}(e,l);if(null!==s){var u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(t){GR("function"==typeof t,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(s)}t.dispatch(nj(o,u));var d=c.getSource(s).beginDrag(l,s);if(null!=d){!function(t){GR(oj(t),"Item must be an object.")}(d),c.pinSource(s);var p=c.getSourceType(s);return{type:ZR,payload:{itemType:p,item:d,sourceId:s,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}else t.dispatch(ij)}}function cj(t){return function(){if(t.getMonitor().isDragging())return{type:JR}}}function sj(t,e){return null===e?null===t:Array.isArray(t)?t.some((function(t){return t===e})):t===e}function uj(t){return function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(t){GR(Array.isArray(t),"Expected targetIds to be an array.")}(e);var a=e.slice(0),r=t.getMonitor(),o=t.getRegistry();return function(t,e,n){GR(e.isDragging(),"Cannot call hover while not dragging."),GR(!e.didDrop(),"Cannot call hover after drop.");for(var a=0;a<t.length;a++){var r=t[a];GR(t.lastIndexOf(r)===a,"Expected targetIds to be unique in the passed array."),GR(n.getTarget(r),"Expected targetIds to be registered.")}}(a,r,o),function(t,e,n){for(var a=t.length-1;a>=0;a--){var r=t[a];sj(e.getTargetType(r),n)||t.splice(a,1)}}(a,o,r.getItemType()),function(t,e,n){t.forEach((function(t){n.getTarget(t).hover(e,t)}))}(a,r,o),{type:QR,payload:{targetIds:a,clientOffset:n||null}}}}function dj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function pj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dj(Object(n),!0).forEach((function(e){fj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mj(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getMonitor(),a=t.getRegistry();!function(t){GR(t.isDragging(),"Cannot call drop while not dragging."),GR(!t.didDrop(),"Cannot call drop twice during one drag operation.")}(n);var r=function(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}(n);r.forEach((function(r,o){var i=function(t,e,n,a){var r=n.getTarget(t),o=r?r.drop(a,t):void 0;(function(t){GR(void 0===t||oj(t),"Drop result must either be an object or undefined.")})(o),void 0===o&&(o=0===e?{}:a.getDropResult());return o}(r,o,a,n),l={type:tj,payload:{dropResult:pj(pj({},e),i)}};t.dispatch(l)}))}}function hj(t){return function(){var e=t.getMonitor(),n=t.getRegistry();!function(t){GR(t.isDragging(),"Cannot call endDrag while not dragging.")}(e);var a=e.getSourceId();null!=a&&(n.getSource(a,!0).endDrag(e,a),n.unpinSource());return{type:ej}}}function gj(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function bj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vj=function(){function t(e,n){var a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),bj(this,"store",void 0),bj(this,"monitor",void 0),bj(this,"backend",void 0),bj(this,"isSetUp",!1),bj(this,"handleRefCountChange",(function(){var t=a.store.getState().refCount>0;a.backend&&(t&&!a.isSetUp?(a.backend.setup(),a.isSetUp=!0):!t&&a.isSetUp&&(a.backend.teardown(),a.isSetUp=!1))})),this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}var e,n,a;return e=t,n=[{key:"receiveBackend",value:function(t){this.backend=t}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var t=this,e=this.store.dispatch,n=function(t){return{beginDrag:lj(t),publishDragSource:cj(t),hover:uj(t),drop:mj(t),endDrag:hj(t)}}(this);return Object.keys(n).reduce((function(a,r){var o,i=n[r];return a[r]=(o=i,function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];var i=o.apply(t,a);void 0!==i&&e(i)}),a}),{})}},{key:"dispatch",value:function(t){this.store.dispatch(t)}}],n&&gj(e.prototype,n),a&&gj(e,a),t}();function yj(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var xj="function"==typeof Symbol&&Symbol.observable||"@@observable",wj=function(){return Math.random().toString(36).substring(7).split("").join(".")},kj={INIT:"@@redux/INIT"+wj(),REPLACE:"@@redux/REPLACE"+wj(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wj()}};function Cj(t){if(void 0===t)return"undefined";if(null===t)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(function(t){return t instanceof Date||"function"==typeof t.toDateString&&"function"==typeof t.getDate&&"function"==typeof t.setDate}(t))return"date";if(function(t){return t instanceof Error||"string"==typeof t.message&&t.constructor&&"number"==typeof t.constructor.stackTraceLimit}(t))return"error";var n=function(t){return"function"==typeof t.constructor?t.constructor.name:null}(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Ej(t){var e=typeof t;return"production"!==process.env.NODE_ENV&&(e=Cj(t)),e}function Sj(t,e,n){var a;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?yj(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?yj(1):"Expected the enhancer to be a function. Instead, received: '"+Ej(n)+"'");return n(Sj)(t,e)}if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?yj(2):"Expected the root reducer to be a function. Instead, received: '"+Ej(t)+"'");var r=t,o=e,i=[],l=i,c=!1;function s(){l===i&&(l=i.slice())}function u(){if(c)throw new Error("production"===process.env.NODE_ENV?yj(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(t){if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?yj(4):"Expected the listener to be a function. Instead, received: '"+Ej(t)+"'");if(c)throw new Error("production"===process.env.NODE_ENV?yj(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var e=!0;return s(),l.push(t),function(){if(e){if(c)throw new Error("production"===process.env.NODE_ENV?yj(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");e=!1,s();var n=l.indexOf(t);l.splice(n,1),i=null}}}function p(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error("production"===process.env.NODE_ENV?yj(7):"Actions must be plain objects. Instead, the actual type was: '"+Ej(t)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(void 0===t.type)throw new Error("production"===process.env.NODE_ENV?yj(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error("production"===process.env.NODE_ENV?yj(9):"Reducers may not dispatch actions.");try{c=!0,o=r(o,t)}finally{c=!1}for(var e=i=l,n=0;n<e.length;n++){(0,e[n])()}return t}return p({type:kj.INIT}),(a={dispatch:p,subscribe:d,getState:u,replaceReducer:function(t){if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?yj(10):"Expected the nextReducer to be a function. Instead, received: '"+Ej(t));r=t,p({type:kj.REPLACE})}})[xj]=function(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error("production"===process.env.NODE_ENV?yj(11):"Expected the observer to be an object. Instead, received: '"+Ej(t)+"'");function n(){t.next&&t.next(u())}return n(),{unsubscribe:e(n)}}})[xj]=function(){return this},t},a}var Oj=function(t,e){return t===e};function Nj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function Pj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Nj(Object(n),!0).forEach((function(e){Tj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Tj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Dj={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ij(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Dj,a=arguments.length>1?arguments[1]:void 0,r=a.payload;switch(a.type){case XR:case ZR:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case QR:return t=n.clientOffset,e=r.clientOffset,!t&&!e||t&&e&&t.x===e.x&&t.y===e.y?n:Pj(Pj({},n),{},{clientOffset:r.clientOffset});case ej:case tj:return Dj;default:return n}}var Rj="dnd-core/ADD_SOURCE",jj="dnd-core/ADD_TARGET",Mj="dnd-core/REMOVE_SOURCE",zj="dnd-core/REMOVE_TARGET";function Lj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function Aj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lj(Object(n),!0).forEach((function(e){_j(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _j(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Fj={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Vj(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fj,a=arguments.length>1?arguments[1]:void 0,r=a.payload;switch(a.type){case ZR:return Aj(Aj({},n),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case JR:return Aj(Aj({},n),{},{isSourcePublic:!0});case QR:return Aj(Aj({},n),{},{targetIds:r.targetIds});case zj:return-1===n.targetIds.indexOf(r.targetId)?n:Aj(Aj({},n),{},{targetIds:(t=n.targetIds,e=r.targetId,t.filter((function(t){return t!==e})))});case tj:return Aj(Aj({},n),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case ej:return Aj(Aj({},n),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function Kj(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case Rj:case jj:return t+1;case Mj:case zj:return t-1;default:return t}}var Hj=[],Bj=[];function Uj(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case QR:break;case Rj:case jj:case zj:case Mj:return Hj;default:return Bj}var e=t.payload,n=e.targetIds,a=void 0===n?[]:n,r=e.prevTargetIds,o=void 0===r?[]:r,i=function(t,e){var n=new Map,a=function(t){n.set(t,n.has(t)?n.get(t)+1:1)};t.forEach(a),e.forEach(a);var r=[];return n.forEach((function(t,e){1===t&&r.push(e)})),r}(a,o),l=i.length>0||!function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Oj;if(t.length!==e.length)return!1;for(var a=0;a<t.length;++a)if(!n(t[a],e[a]))return!1;return!0}(a,o);if(!l)return Hj;var c=o[o.length-1],s=a[a.length-1];return c!==s&&(c&&i.push(c),s&&i.push(s)),i}function Wj(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function Yj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function $j(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yj(Object(n),!0).forEach((function(e){qj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function qj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gj(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:Uj(t.dirtyHandlerIds,{type:e.type,payload:$j($j({},e.payload),{},{prevTargetIds:rj(t,"dragOperation.targetIds",[])})}),dragOffset:Ij(t.dragOffset,e),refCount:Kj(t.refCount,e),dragOperation:Vj(t.dragOperation,e),stateId:Wj(t.stateId)}}function Xj(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Zj(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function Jj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Hj.__IS_NONE__=!0,Bj.__IS_ALL__=!0;var Qj=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Jj(this,"store",void 0),Jj(this,"registry",void 0),this.store=e,this.registry=n}var e,n,a;return e=t,n=[{key:"subscribeToStateChange",value:function(t){var e=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;GR("function"==typeof t,"listener must be a function."),GR(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var a=this.store.getState().stateId;return this.store.subscribe((function(){var r=e.store.getState(),o=r.stateId;try{var i=o===a||o===a+1&&!function(t,e){if(t===Hj)return!1;if(t===Bj||void 0===e)return!0;var n,a=(n=t,e.filter((function(t){return n.indexOf(t)>-1})));return a.length>0}(r.dirtyHandlerIds,n);i||t()}finally{a=o}}))}},{key:"subscribeToOffsetChange",value:function(t){var e=this;GR("function"==typeof t,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var a=e.store.getState().dragOffset;a!==n&&(n=a,t())}))}},{key:"canDragSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t);return GR(e,"Expected to find a valid source. sourceId=".concat(t)),!this.isDragging()&&e.canDrag(this,t)}},{key:"canDropOnTarget",value:function(t){if(!t)return!1;var e=this.registry.getTarget(t);return GR(e,"Expected to find a valid target. targetId=".concat(t)),!(!this.isDragging()||this.didDrop())&&sj(this.registry.getTargetType(t),this.getItemType())&&e.canDrop(this,t)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t,!0);return GR(e,"Expected to find a valid source. sourceId=".concat(t)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(t)===this.getItemType()&&e.isDragging(this,t)}},{key:"isOverTarget",value:function(t){if(!t)return!1;var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(t),a=this.getItemType();if(a&&!sj(n,a))return!1;var r=this.getTargetIds();if(!r.length)return!1;var o=r.indexOf(t);return e?o===r.length-1:o>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return t=this.store.getState().dragOffset,e=t.clientOffset,n=t.initialClientOffset,a=t.initialSourceClientOffset,e&&n&&a?Xj(function(t,e){return{x:t.x+e.x,y:t.y+e.y}}(e,a),n):null;var t,e,n,a}},{key:"getDifferenceFromInitialOffset",value:function(){return t=this.store.getState().dragOffset,e=t.clientOffset,n=t.initialClientOffset,e&&n?Xj(e,n):null;var t,e,n}}],n&&Zj(e.prototype,n),a&&Zj(e,a),t}(),tM=0;function eM(t){return eM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eM(t)}function nM(t,e){e&&Array.isArray(t)?t.forEach((function(t){return nM(t,!1)})):GR("string"==typeof t||"symbol"===eM(t),e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const aM="undefined"!=typeof global?global:self,rM=aM.MutationObserver||aM.WebKitMutationObserver;function oM(t){return function(){const e=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(e),clearInterval(n),t()}}}const iM="function"==typeof rM?function(t){let e=1;const n=new rM(t),a=document.createTextNode("");return n.observe(a,{characterData:!0}),function(){e=-e,a.data=e}}:oM;class lM{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,e){this.onError=t,this.release=e,this.task=null}}const cM=new class{enqueueTask(t){const{queue:e,requestFlush:n}=this;e.length||(n(),this.flushing=!0),e[e.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const e=this.index;if(this.index++,t[e].call(),this.index>this.capacity){for(let e=0,n=t.length-this.index;e<n;e++)t[e]=t[e+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=iM(this.flush),this.requestErrorThrow=oM((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},sM=new class{create(t){const e=this.freeTasks,n=e.length?e.pop():new lM(this.onError,(t=>e[e.length]=t));return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}(cM.registerPendingError);function uM(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function dM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pM(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return fM(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fM(t,e)}(t,e)||function(){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 fM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function mM(t){var e=(tM++).toString();switch(t){case $R.SOURCE:return"S".concat(e);case $R.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function hM(t){switch(t[0]){case"S":return $R.SOURCE;case"T":return $R.TARGET;default:GR(!1,"Cannot parse handler ID: ".concat(t))}}function gM(t,e){var n=t.entries(),a=!1;do{var r=n.next(),o=r.done;if(pM(r.value,2)[1]===e)return!0;a=!!o}while(!a);return!1}var bM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),dM(this,"types",new Map),dM(this,"dragSources",new Map),dM(this,"dropTargets",new Map),dM(this,"pinnedSourceId",null),dM(this,"pinnedSource",null),dM(this,"store",void 0),this.store=e}var e,n,a;return e=t,n=[{key:"addSource",value:function(t,e){nM(t),function(t){GR("function"==typeof t.canDrag,"Expected canDrag to be a function."),GR("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),GR("function"==typeof t.endDrag,"Expected endDrag to be a function.")}(e);var n=this.addHandler($R.SOURCE,t,e);return this.store.dispatch(function(t){return{type:Rj,payload:{sourceId:t}}}(n)),n}},{key:"addTarget",value:function(t,e){nM(t,!0),function(t){GR("function"==typeof t.canDrop,"Expected canDrop to be a function."),GR("function"==typeof t.hover,"Expected hover to be a function."),GR("function"==typeof t.drop,"Expected beginDrag to be a function.")}(e);var n=this.addHandler($R.TARGET,t,e);return this.store.dispatch(function(t){return{type:jj,payload:{targetId:t}}}(n)),n}},{key:"containsHandler",value:function(t){return gM(this.dragSources,t)||gM(this.dropTargets,t)}},{key:"getSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return GR(this.isSourceId(t),"Expected a valid source ID."),e&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}},{key:"getTarget",value:function(t){return GR(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}},{key:"getSourceType",value:function(t){return GR(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}},{key:"getTargetType",value:function(t){return GR(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}},{key:"isSourceId",value:function(t){return hM(t)===$R.SOURCE}},{key:"isTargetId",value:function(t){return hM(t)===$R.TARGET}},{key:"removeSource",value:function(t){var e,n=this;GR(this.getSource(t),"Expected an existing source."),this.store.dispatch(function(t){return{type:Mj,payload:{sourceId:t}}}(t)),e=function(){n.dragSources.delete(t),n.types.delete(t)},cM.enqueueTask(sM.create(e))}},{key:"removeTarget",value:function(t){GR(this.getTarget(t),"Expected an existing target."),this.store.dispatch(function(t){return{type:zj,payload:{targetId:t}}}(t)),this.dropTargets.delete(t),this.types.delete(t)}},{key:"pinSource",value:function(t){var e=this.getSource(t);GR(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e}},{key:"unpinSource",value:function(){GR(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(t,e,n){var a=mM(t);return this.types.set(a,e),t===$R.SOURCE?this.dragSources.set(a,n):t===$R.TARGET&&this.dropTargets.set(a,n),a}}],n&&uM(e.prototype,n),a&&uM(e,a),t}();function vM(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=function(t){var e="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return Sj(Gj,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}(arguments.length>3&&void 0!==arguments[3]&&arguments[3]),r=new Qj(a,new bM(a)),o=new vj(a,r),i=t(o,e,n);return o.receiveBackend(i),o}var yM=["children"];function xM(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return wM(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wM(t,e)}(t,e)||function(){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 wM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function kM(t,e){if(null==t)return{};var n,a,r=function(t,e){if(null==t)return{};var n,a,r={},o=Object.keys(t);for(a=0;a<o.length;a++)n=o[a],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var CM=0,EM=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),SM=t.memo((function(e){var a=e.children,r=function(t){if("manager"in t){return[{dragDropManager:t.manager},!1]}var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:OM(),n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=e;r[EM]||(r[EM]={dragDropManager:vM(t,e,n,a)});return r[EM]}(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}(kM(e,yM)),o=xM(r,2),i=o[0],l=o[1];return t.useEffect((function(){if(l){var t=OM();return++CM,function(){0==--CM&&(t[EM]=null)}}}),[]),n.jsx(qR.Provider,Object.assign({value:i},{children:a}),void 0)}));function OM(){return"undefined"!=typeof global?global:window}function NM(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function PM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var TM=!1,DM=!1,IM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),PM(this,"internalMonitor",void 0),PM(this,"sourceId",null),this.internalMonitor=e.getMonitor()}var e,n,a;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.sourceId=t}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){GR(!TM,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return TM=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{TM=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;GR(!DM,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return DM=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{DM=!1}}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"isDraggingSource",value:function(t){return this.internalMonitor.isDraggingSource(t)}},{key:"isOverTarget",value:function(t,e){return this.internalMonitor.isOverTarget(t,e)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(t){return this.internalMonitor.subscribeToOffsetChange(t)}},{key:"canDragSource",value:function(t){return this.internalMonitor.canDragSource(t)}},{key:"canDropOnTarget",value:function(t){return this.internalMonitor.canDropOnTarget(t)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&NM(e.prototype,n),a&&NM(e,a),t}();function RM(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function jM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var MM=!1,zM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),jM(this,"internalMonitor",void 0),jM(this,"targetId",null),this.internalMonitor=e.getMonitor()}var e,n,a;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.targetId=t}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;GR(!MM,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return MM=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{MM=!1}}},{key:"isOver",value:function(t){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,t)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&RM(e.prototype,n),a&&RM(e,a),t}();function LM(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t.isValidElement(n)){var r=n;return e(r,a),r}var o=n;!function(t){if("string"!=typeof t.type){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}(o);var i=a?function(t){return e(t,a)}:e;return function(e,n){var a=e.ref;return GR("string"!=typeof a,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),a?t.cloneElement(e,{ref:function(t){_M(a,t),_M(n,t)}}):t.cloneElement(e,{ref:n})}(o,i)}}function AM(t){var e={};return Object.keys(t).forEach((function(n){var a=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{var r=LM(a);e[n]=function(){return r}}})),e}function _M(t,e){"function"==typeof t?t(e):t.current=e}function FM(t){return FM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},FM(t)}function VM(t){return null!==t&&"object"===FM(t)&&Object.prototype.hasOwnProperty.call(t,"current")}function KM(t,e,n,a){var r=n?n.call(a,t,e):void 0;if(void 0!==r)return!!r;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var o=Object.keys(t),i=Object.keys(e);if(o.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(e),c=0;c<o.length;c++){var s=o[c];if(!l(s))return!1;var u=t[s],d=e[s];if(!1===(r=n?n.call(a,u,d,s):void 0)||void 0===r&&u!==d)return!1}return!0}function HM(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function BM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var UM=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),BM(this,"hooks",AM({dragSource:function(t,e){n.clearDragSource(),n.dragSourceOptions=e||null,VM(t)?n.dragSourceRef=t:n.dragSourceNode=t,n.reconnectDragSource()},dragPreview:function(t,e){n.clearDragPreview(),n.dragPreviewOptions=e||null,VM(t)?n.dragPreviewRef=t:n.dragPreviewNode=t,n.reconnectDragPreview()}})),BM(this,"handlerId",null),BM(this,"dragSourceRef",null),BM(this,"dragSourceNode",void 0),BM(this,"dragSourceOptionsInternal",null),BM(this,"dragSourceUnsubscribe",void 0),BM(this,"dragPreviewRef",null),BM(this,"dragPreviewNode",void 0),BM(this,"dragPreviewOptionsInternal",null),BM(this,"dragPreviewUnsubscribe",void 0),BM(this,"lastConnectedHandlerId",null),BM(this,"lastConnectedDragSource",null),BM(this,"lastConnectedDragSourceOptions",null),BM(this,"lastConnectedDragPreview",null),BM(this,"lastConnectedDragPreviewOptions",null),BM(this,"backend",void 0),this.backend=e}var e,n,a;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(t){this.dragSourceOptionsInternal=t}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(t){this.dragPreviewOptionsInternal=t}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var t=this.dragSource,e=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();e&&this.disconnectDragSource(),this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)):this.lastConnectedDragSource=t)}},{key:"reconnectDragPreview",value:function(){var t=this.dragPreview,e=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();e&&this.disconnectDragPreview(),this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!KM(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!KM(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}])&&HM(e.prototype,n),a&&HM(e,a),t}();function WM(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function YM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $M=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),YM(this,"hooks",AM({dropTarget:function(t,e){n.clearDropTarget(),n.dropTargetOptions=e,VM(t)?n.dropTargetRef=t:n.dropTargetNode=t,n.reconnect()}})),YM(this,"handlerId",null),YM(this,"dropTargetRef",null),YM(this,"dropTargetNode",void 0),YM(this,"dropTargetOptionsInternal",null),YM(this,"unsubscribeDropTarget",void 0),YM(this,"lastConnectedHandlerId",null),YM(this,"lastConnectedDropTarget",null),YM(this,"lastConnectedDropTargetOptions",null),YM(this,"backend",void 0),this.backend=e}var e,n,a;return e=t,(n=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();var e=this.dropTarget;this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=e,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,e,this.dropTargetOptions)):this.lastConnectedDropTarget=e)}},{key:"receiveHandlerId",value:function(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(t){this.dropTargetOptionsInternal=t}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!KM(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}])&&WM(e.prototype,n),a&&WM(e,a),t}();var qM="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function GM(t){return GM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},GM(t)}function XM(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function ZM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var JM=function(){function t(e,n,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),ZM(this,"spec",void 0),ZM(this,"monitor",void 0),ZM(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=a}var e,n,a;return e=t,(n=[{key:"beginDrag",value:function(){var t,e=this.spec,n=this.monitor;return null!==(t="object"===GM(e.item)?e.item:"function"==typeof e.item?e.item(n):{})&&void 0!==t?t:null}},{key:"canDrag",value:function(){var t=this.spec,e=this.monitor;return"boolean"==typeof t.canDrag?t.canDrag:"function"!=typeof t.canDrag||t.canDrag(e)}},{key:"isDragging",value:function(t,e){var n=this.spec,a=this.monitor,r=n.isDragging;return r?r(a):e===t.getSourceId()}},{key:"endDrag",value:function(){var t=this.spec,e=this.monitor,n=this.connector,a=t.end;a&&a(e.getItem(),e),n.reconnect()}}])&&XM(e.prototype,n),a&&XM(e,a),t}();function QM(){var e=t.useContext(qR).dragDropManager;return GR(null!=e,"Expected drag drop context"),e}function tz(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ez(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ez(t,e)}(t,e)||function(){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 ez(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function nz(e,n,a){var r=QM(),o=function(e,n,a){var r=t.useMemo((function(){return new JM(e,n,a)}),[n,a]);return t.useEffect((function(){r.spec=e}),[e]),r}(e,n,a),i=function(e){return t.useMemo((function(){var t=e.type;return GR(null!=t,"spec.type must be defined"),t}),[e])}(e);qM((function(){if(null!=i){var t=function(t,e,n){var a=n.getRegistry(),r=a.addSource(t,e);return[r,function(){return a.removeSource(r)}]}(i,o,r),e=tz(t,2),l=e[0],c=e[1];return n.receiveHandlerId(l),a.receiveHandlerId(l),c}}),[r,n,a,o,i])}function az(t){return function(t){if(Array.isArray(t))return rz(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return rz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rz(t,e)}(t)||function(){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 rz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function oz(e,n){var a=az(n||[]);return null==n&&"function"!=typeof e&&a.push(e),t.useMemo((function(){return"function"==typeof e?e():e}),a)}var iz=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var a,r,o;if(Array.isArray(e)){if((a=e.length)!=n.length)return!1;for(r=a;0!=r--;)if(!t(e[r],n[r]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((a=(o=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(r=a;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,o[r]))return!1;for(r=a;0!=r--;){var i=o[r];if(!t(e[i],n[i]))return!1}return!0}return e!=e&&n!=n};function lz(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return cz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cz(t,e)}(t,e)||function(){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 cz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function sz(e,n,a){var r=lz(t.useState((function(){return n(e)})),2),o=r[0],i=r[1],l=t.useCallback((function(){var t=n(e);iz(o,t)||(i(t),a&&a())}),[o,e,a]);return qM(l),[o,l]}function uz(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return dz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dz(t,e)}(t,e)||function(){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 dz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function pz(t,e,n){return function(t,e,n){var a=uz(sz(t,e,n),2),r=a[0],o=a[1];return qM((function(){var e=t.getHandlerId();if(null!=e)return t.subscribeToStateChange(o,{handlerIds:[e]})}),[t,o]),r}(e,t||function(){return{}},(function(){return n.reconnect()}))}function fz(e){return t.useMemo((function(){return e.hooks.dragSource()}),[e])}function mz(e){return t.useMemo((function(){return e.hooks.dragPreview()}),[e])}function hz(e,n){var a=oz(e,n);GR(!a.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var r,o=(r=QM(),t.useMemo((function(){return new IM(r)}),[r])),i=function(e,n){var a=QM(),r=t.useMemo((function(){return new UM(a.getBackend())}),[a]);return qM((function(){return r.dragSourceOptions=e||null,r.reconnect(),function(){return r.disconnectDragSource()}}),[r,e]),qM((function(){return r.dragPreviewOptions=n||null,r.reconnect(),function(){return r.disconnectDragPreview()}}),[r,n]),r}(a.options,a.previewOptions);return nz(a,o,i),[pz(a.collect,o,i),fz(i),mz(i)]}function gz(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function bz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vz=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),bz(this,"spec",void 0),bz(this,"monitor",void 0),this.spec=e,this.monitor=n}var e,n,a;return e=t,(n=[{key:"canDrop",value:function(){var t=this.spec,e=this.monitor;return!t.canDrop||t.canDrop(e.getItem(),e)}},{key:"hover",value:function(){var t=this.spec,e=this.monitor;t.hover&&t.hover(e.getItem(),e)}},{key:"drop",value:function(){var t=this.spec,e=this.monitor;if(t.drop)return t.drop(e.getItem(),e)}}])&&gz(e.prototype,n),a&&gz(e,a),t}();function yz(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return xz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xz(t,e)}(t,e)||function(){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 xz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function wz(e,n,a){var r=QM(),o=function(e,n){var a=t.useMemo((function(){return new vz(e,n)}),[n]);return t.useEffect((function(){a.spec=e}),[e]),a}(e,n),i=function(e){var n=e.accept;return t.useMemo((function(){return GR(null!=e.accept,"accept must be defined"),Array.isArray(n)?n:[n]}),[n])}(e);qM((function(){var t=function(t,e,n){var a=n.getRegistry(),r=a.addTarget(t,e);return[r,function(){return a.removeTarget(r)}]}(i,o,r),e=yz(t,2),l=e[0],c=e[1];return n.receiveHandlerId(l),a.receiveHandlerId(l),c}),[r,n,o,a,i.map((function(t){return t.toString()})).join("|")])}function kz(e){return t.useMemo((function(){return e.hooks.dropTarget()}),[e])}function Cz(e,n){var a,r=oz(e,n),o=(a=QM(),t.useMemo((function(){return new zM(a)}),[a])),i=function(e){var n=QM(),a=t.useMemo((function(){return new $M(n.getBackend())}),[n]);return qM((function(){return a.dropTargetOptions=e||null,a.reconnect(),function(){return a.disconnectDropTarget()}}),[e]),a}(r.options);return wz(r,o,i),[pz(r.collect,o,i),kz(i)]}k('.drop-over-downward td{border-bottom:2px dashed #5860f8!important}.drop-over-upward td{border-top:2px dashed #5860f8!important}.editable-cell-value-wrap{cursor:pointer;min-height:20px;min-width:50px;position:relative}.editable-row:hover .editable-cell-value-wrap:after,[data-theme=dark] .editable-row:hover .editable-cell-value-wrap:after{border:1px dashed #5860f8;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}');const Ez=new Map,{Option:Sz}=Xd,Oz=f.default.createContext(null),Nz=({vc:e,open:a,index:r,moveRow:o,className:i,style:l,...c})=>{const[s]=Nk.useForm(),u=t.useRef(null),[{isOver:d,dropClassName:p},f]=Cz({accept:"DraggableBodyRow",collect:t=>{const{index:e}=t.getItem()||{};return e===r?{}:{isOver:t.isOver(),dropClassName:e<r?" drop-over-downward":" drop-over-upward"}},drop:t=>{o(t.index,r)}}),[,m]=hz({type:"DraggableBodyRow",item:{index:r},collect:t=>({isDragging:t.isDragging()})});a&&f(m(u));const h={ref:u,className:`${i}${d?p:""}`,style:{cursor:a?"move":"auto",...l},...c};return n.jsx(Nk,{size:"small",component:!1,form:s,children:n.jsx(Oz.Provider,{value:s,children:e?e.body.row(h,u):n.jsx("tr",{...h})})})},Pz=({vc:e,columns:a,record:r,recordIndex:o,dataIndex:i,title:l,rowSpanNum:c,colSpanNum:s,rowSpan:u,colSpan:d,editable:p,inputType:f,valueType:h,valueEnum:g,recordSelectField:b,controlRender:v,render:x,formChange:w,remoteConfig:k,children:C,formItemProps:E,handleSave:S,...O})=>{const N=t.useContext(Oz),[P,T]=t.useState(!1),[D,I]=t.useState(!1),[R,j]=t.useState({}),M=t.useRef(null),z=t.useRef(!0);t.useEffect((()=>{P&&M.current.focus()}),[P]),t.useEffect((()=>{"RemoteSearch"===h&&r&&r[i]&&z.current&&(L(void 0,i,r,k?.remoteApi),z.current=!1)}),[i,r,k?.remoteApi,h]);const L=(t,e,n,a)=>{const r=`${e}-${t||"all"}`;Ez.has(r)?j({[e]:Ez.get(r)}):a&&a(t,n).then((t=>{e&&(j({[e]:t}),Ez.set(r,t))}))},A=(t,e,n,a)=>{a&&(I(!0),a(t,n).then((t=>{I(!1),e&&j({[e]:t})})))},_=()=>{F()},F=()=>{T(!1)},V=()=>{void 0!==r[i]&&null!==r[i]&&""!==r[i]&&("DatePicker"!==h&&"DateTimePicker"!==h||(r[i]=y.default(r[i])),"status"===i&&(r[i]=String(r[i]))),T(!P),N.setFieldsValue({[i]:r[i]})},K=t=>{const e={DateTimePicker:"YYYY-MM-DD HH:mm:ss",DatePicker:"YYYY-MM-DD"};return Object.keys(e).includes(h)&&t[i]&&(t[i]=t[i].format(e[h])),t},H=(t,e)=>{let a=null;const o=(t,e)=>{let n="";const a=function(t){for(let e of t)if(e)if(WD({data:e,type:"String"}))n+=e;else{const t=e.props.children;WD({data:t,type:"Object"})&&a([t]),WD({data:t,type:"Array"})&&a(t),WD({data:t,type:"String"})&&(n+=t)}};return a([e.children]),n.toLowerCase().indexOf(t.toLowerCase())>=0},l=t=>{if(m.default.isArray(t))return t.map(((t,e)=>n.jsx(Sz,{value:t.value,children:t.label},e)))};switch(t){case"RecordSelect":a=n.jsx(Xd,{ref:M,open:P,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:B,onBlur:_,optionFilterProp:"children",filterOption:o,children:l(r[b])});break;case"Select":a=n.jsx(Xd,{ref:M,open:P,dropdownMatchSelectWidth:!1,onChange:B,onBlur:_,placeholder:e,children:l(g)});break;case"DatePicker":a=n.jsx(kw,{ref:M,open:P,onChange:B,onBlur:_,placeholder:e});break;case"DateTimePicker":a=n.jsx(kw,{ref:M,open:P,onChange:B,onBlur:_,placeholder:e,showTime:!0});break;case"AutoComplete":a=n.jsx(Xd,{ref:M,open:P,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:B,onBlur:_,optionFilterProp:"children",filterOption:o,children:l(g)});break;case"RemoteSearch":let t=g;R[i]&&(t=R[i]),a=n.jsx(Xd,{ref:M,open:P,mode:k.remoteMode,placeholder:e,notFoundContent:D?n.jsx(sC,{size:"small"}):null,dropdownMatchSelectWidth:!1,filterOption:!1,allowClear:!0,showSearch:!0,onChange:B,onBlur:_,onFocus:()=>A(void 0,i,r,k.remoteApi),onSearch:t=>A(t,i,r,k.remoteApi),children:i&&l(t)});break;default:a=n.jsx(Xy,{ref:M,onPressEnter:B,onBlur:B,placeholder:e,type:f||"text"})}return a},B=async()=>{try{const t=await N.validateFields();let e={...r,...t};e[i]=e[i]||void 0,e=K(e),w&&(e=await w(e)||e),r[i]!==e[i]&&S(e,i),F()}catch(t){console.log("保存表单字段失败:",t)}};let U=C;const W=x?x(r[i],r,o):(()=>{if(h&&i){if(g&&("Select"===h||"AutoComplete"===h))return YD(g,r[i]);if("RemoteSearch"===h&&R[i])return YD(R[i],r[i]);if(r[b]&&"RecordSelect"===h)return YD(r[b],r[i]);if(y.default.isMoment(r[i]))return K(r)[i]}return C})();U=p?P?n.jsx(Nk.Item,{style:{margin:0},name:i,rules:E?E.rules:void 0,children:H(h,l)}):n.jsx("div",{className:"editable-cell-value-wrap",onClick:V,children:W}):W,v&&(U=v(r,U));const Y=(t,a)=>e?n.jsx(e.body.cell,{...t,children:a}):n.jsx("td",{...t,children:a});return u||d?Y({...O,rowSpan:u,colSpan:d,title:r&&r[i]},U):0!==c&&0!==s?Y({...O,rowSpan:c,colSpan:u,title:r&&r[i]},U):null};function Tz(t){var e=null;return function(){return null==e&&(e=t()),e}}function Dz(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function Iz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Rz=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Iz(this,"entered",[]),Iz(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}var e,n,a;return e=t,n=[{key:"enter",value:function(t){var e=this,n=this.entered.length;return this.entered=function(t,e){var n=new Set,a=function(t){return n.add(t)};t.forEach(a),e.forEach(a);var r=[];return n.forEach((function(t){return r.push(t)})),r}(this.entered.filter((function(n){return e.isNodeInDocument(n)&&(!n.contains||n.contains(t))})),[t]),0===n&&this.entered.length>0}},{key:"leave",value:function(t){var e,n,a=this.entered.length;return this.entered=(e=this.entered.filter(this.isNodeInDocument),n=t,e.filter((function(t){return t!==n}))),a>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}],n&&Dz(e.prototype,n),a&&Dz(e,a),t}(),jz=Tz((function(){return/firefox/i.test(navigator.userAgent)})),Mz=Tz((function(){return Boolean(window.safari)}));function zz(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function Lz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Az=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Lz(this,"xs",void 0),Lz(this,"ys",void 0),Lz(this,"c1s",void 0),Lz(this,"c2s",void 0),Lz(this,"c3s",void 0);for(var a=e.length,r=[],o=0;o<a;o++)r.push(o);r.sort((function(t,n){return e[t]<e[n]?-1:1}));for(var i,l,c=[],s=[],u=0;u<a-1;u++)i=e[u+1]-e[u],l=n[u+1]-n[u],c.push(i),s.push(l/i);for(var d=[s[0]],p=0;p<c.length-1;p++){var f=s[p],m=s[p+1];if(f*m<=0)d.push(0);else{i=c[p];var h=c[p+1],g=i+h;d.push(3*g/((g+h)/f+(g+i)/m))}}d.push(s[s.length-1]);for(var b,v=[],y=[],x=0;x<d.length-1;x++){b=s[x];var w=d[x],k=1/c[x],C=w+d[x+1]-b-b;v.push((b-w-C)*k),y.push(C*k*k)}this.xs=e,this.ys=n,this.c1s=d,this.c2s=v,this.c3s=y}var e,n,a;return e=t,n=[{key:"interpolate",value:function(t){var e=this.xs,n=this.ys,a=this.c1s,r=this.c2s,o=this.c3s,i=e.length-1;if(t===e[i])return n[i];for(var l,c=0,s=o.length-1;c<=s;){var u=e[l=Math.floor(.5*(c+s))];if(u<t)c=l+1;else{if(!(u>t))return n[l];s=l-1}}var d=t-e[i=Math.max(0,s)],p=d*d;return n[i]+a[i]*d+r[i]*p+o[i]*d*p}}],n&&zz(e.prototype,n),a&&zz(e,a),t}();function _z(t){var e=1===t.nodeType?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),a=n.top;return{x:n.left,y:a}}function Fz(t){return{x:t.clientX,y:t.clientY}}function Vz(t,e,n,a,r){var o,i,l="IMG"===(o=e).nodeName&&(jz()||!(null!==(i=document.documentElement)&&void 0!==i&&i.contains(o))),c=_z(l?t:e),s={x:n.x-c.x,y:n.y-c.y},u=t.offsetWidth,d=t.offsetHeight,p=a.anchorX,f=a.anchorY,m=function(t,e,n,a){var r=t?e.width:n,o=t?e.height:a;return Mz()&&t&&(o/=window.devicePixelRatio,r/=window.devicePixelRatio),{dragPreviewWidth:r,dragPreviewHeight:o}}(l,e,u,d),h=m.dragPreviewWidth,g=m.dragPreviewHeight,b=r.offsetX,v=r.offsetY,y=0===v||v;return{x:0===b||b?b:new Az([0,.5,1],[s.x,s.x/u*h,s.x+h-u]).interpolate(p),y:y?v:function(){var t=new Az([0,.5,1],[s.y,s.y/d*g,s.y+g-d]).interpolate(f);return Mz()&&l&&(t+=(window.devicePixelRatio-1)*g),t}()}}var Kz,Hz="__NATIVE_FILE__",Bz="__NATIVE_URL__",Uz="__NATIVE_TEXT__",Wz="__NATIVE_HTML__",Yz=Object.freeze({__proto__:null,FILE:Hz,URL:Bz,TEXT:Uz,HTML:Wz});function $z(t,e,n){var a=e.reduce((function(e,n){return e||t.getData(n)}),"");return null!=a?a:n}function qz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Gz=(qz(Kz={},Hz,{exposeProperties:{files:function(t){return Array.prototype.slice.call(t.files)},items:function(t){return t.items},dataTransfer:function(t){return t}},matchesTypes:["Files"]}),qz(Kz,Wz,{exposeProperties:{html:function(t,e){return $z(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Html","text/html"]}),qz(Kz,Bz,{exposeProperties:{urls:function(t,e){return $z(t,e,"").split("\n")},dataTransfer:function(t){return t}},matchesTypes:["Url","text/uri-list"]}),qz(Kz,Uz,{exposeProperties:{text:function(t,e){return $z(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Text","text/plain"]}),Kz);function Xz(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function Zz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jz=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Zz(this,"item",void 0),Zz(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}var e,n,a;return e=t,(n=[{key:"initializeExposedProperties",value:function(){var t=this;Object.keys(this.config.exposeProperties).forEach((function(e){Object.defineProperty(t.item,e,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(e,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(t){var e=this;if(t){var n={};Object.keys(this.config.exposeProperties).forEach((function(a){n[a]={value:e.config.exposeProperties[a](t,e.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(t,e){return e===t.getSourceId()}},{key:"endDrag",value:function(){}}])&&Xz(e.prototype,n),a&&Xz(e,a),t}();function Qz(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(Gz).filter((function(t){return Gz[t].matchesTypes.some((function(t){return e.indexOf(t)>-1}))}))[0]||null}function tL(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function eL(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var nL=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),eL(this,"ownerDocument",null),eL(this,"globalContext",void 0),eL(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}var e,n,a;return e=t,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var t;return null!==(t=this.globalContext)&&void 0!==t&&t.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var t;return(null===(t=this.optionsArgs)||void 0===t?void 0:t.rootElement)||this.window}}])&&tL(e.prototype,n),a&&tL(e,a),t}();function aL(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function rL(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?aL(Object(n),!0).forEach((function(e){iL(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aL(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function oL(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function iL(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var lL=function(){function t(e,n,a){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),iL(this,"options",void 0),iL(this,"actions",void 0),iL(this,"monitor",void 0),iL(this,"registry",void 0),iL(this,"enterLeaveCounter",void 0),iL(this,"sourcePreviewNodes",new Map),iL(this,"sourcePreviewNodeOptions",new Map),iL(this,"sourceNodes",new Map),iL(this,"sourceNodeOptions",new Map),iL(this,"dragStartSourceIds",null),iL(this,"dropTargetIds",[]),iL(this,"dragEnterTargetIds",[]),iL(this,"currentNativeSource",null),iL(this,"currentNativeHandle",null),iL(this,"currentDragSourceNode",null),iL(this,"altKeyPressed",!1),iL(this,"mouseMoveTimeoutTimer",null),iL(this,"asyncEndDragFrameId",null),iL(this,"dragOverTargetIds",null),iL(this,"lastClientOffset",null),iL(this,"hoverRafId",null),iL(this,"getSourceClientOffset",(function(t){var e=r.sourceNodes.get(t);return e&&_z(e)||null})),iL(this,"endDragNativeItem",(function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.currentNativeHandle&&r.registry.removeSource(r.currentNativeHandle),r.currentNativeHandle=null,r.currentNativeSource=null)})),iL(this,"isNodeInDocument",(function(t){return Boolean(t&&r.document&&r.document.body&&r.document.body.contains(t))})),iL(this,"endDragIfSourceWasRemovedFromDOM",(function(){var t=r.currentDragSourceNode;null==t||r.isNodeInDocument(t)||r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()})),iL(this,"handleTopDragStartCapture",(function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]})),iL(this,"handleTopDragStart",(function(t){if(!t.defaultPrevented){var e=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=Fz(t);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(e||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var a=t.dataTransfer,o=Qz(a);if(r.monitor.isDragging()){if(a&&"function"==typeof a.setDragImage){var i=r.monitor.getSourceId(),l=r.sourceNodes.get(i),c=r.sourcePreviewNodes.get(i)||l;if(c){var s=r.getCurrentSourcePreviewNodeOptions(),u=Vz(l,c,n,{anchorX:s.anchorX,anchorY:s.anchorY},{offsetX:s.offsetX,offsetY:s.offsetY});a.setDragImage(c,u.x,u.y)}}try{null==a||a.setData("application/json",{})}catch(t){}r.setCurrentDragSourceNode(t.target),r.getCurrentSourcePreviewNodeOptions().captureDraggingState?r.actions.publishDragSource():setTimeout((function(){return r.actions.publishDragSource()}),0)}else if(o)r.beginDragNativeItem(o);else{if(a&&!a.types&&(t.target&&!t.target.hasAttribute||!t.target.hasAttribute("draggable")))return;t.preventDefault()}}})),iL(this,"handleTopDragEndCapture",(function(){r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()})),iL(this,"handleTopDragEnterCapture",(function(t){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(t.target)&&!r.monitor.isDragging()){var e=t.dataTransfer,n=Qz(e);n&&r.beginDragNativeItem(n,e)}})),iL(this,"handleTopDragEnter",(function(t){var e=r.dragEnterTargetIds;(r.dragEnterTargetIds=[],r.monitor.isDragging())&&(r.altKeyPressed=t.altKey,e.length>0&&r.actions.hover(e,{clientOffset:Fz(t)}),e.some((function(t){return r.monitor.canDropOnTarget(t)}))&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=r.getCurrentDropEffect())))})),iL(this,"handleTopDragOverCapture",(function(){r.dragOverTargetIds=[]})),iL(this,"handleTopDragOver",(function(t){var e=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer&&(t.dataTransfer.dropEffect="none"));r.altKeyPressed=t.altKey,r.lastClientOffset=Fz(t),null===r.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(r.hoverRafId=requestAnimationFrame((function(){r.monitor.isDragging()&&r.actions.hover(e||[],{clientOffset:r.lastClientOffset}),r.hoverRafId=null}))),(e||[]).some((function(t){return r.monitor.canDropOnTarget(t)}))?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?t.preventDefault():(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none"))})),iL(this,"handleTopDragLeaveCapture",(function(t){r.isDraggingNativeItem()&&t.preventDefault(),r.enterLeaveCounter.leave(t.target)&&r.isDraggingNativeItem()&&setTimeout((function(){return r.endDragNativeItem()}),0)})),iL(this,"handleTopDropCapture",(function(t){var e;(r.dropTargetIds=[],r.isDraggingNativeItem())?(t.preventDefault(),null===(e=r.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer)):Qz(t.dataTransfer)&&t.preventDefault();r.enterLeaveCounter.reset()})),iL(this,"handleTopDrop",(function(t){var e=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(e,{clientOffset:Fz(t)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.monitor.isDragging()&&r.actions.endDrag()})),iL(this,"handleSelectStart",(function(t){var e=t.target;"function"==typeof e.dragDrop&&("INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable||(t.preventDefault(),e.dragDrop()))})),this.options=new nL(n,a),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Rz(this.isNodeInDocument)}var e,n,a;return e=t,n=[{key:"profile",value:function(){var t,e;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(t=this.dragStartSourceIds)||void 0===t?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var t=this.rootElement;if(void 0!==t){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}},{key:"teardown",value:function(){var t,e=this.rootElement;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(t,e,n){var a=this;return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,e),function(){a.sourcePreviewNodes.delete(t),a.sourcePreviewNodeOptions.delete(t)}}},{key:"connectDragSource",value:function(t,e,n){var a=this;this.sourceNodes.set(t,e),this.sourceNodeOptions.set(t,n);var r=function(e){return a.handleDragStart(e,t)},o=function(t){return a.handleSelectStart(t)};return e.setAttribute("draggable","true"),e.addEventListener("dragstart",r),e.addEventListener("selectstart",o),function(){a.sourceNodes.delete(t),a.sourceNodeOptions.delete(t),e.removeEventListener("dragstart",r),e.removeEventListener("selectstart",o),e.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(t,e){var n=this,a=function(e){return n.handleDragEnter(e,t)},r=function(e){return n.handleDragOver(e,t)},o=function(e){return n.handleDrop(e,t)};return e.addEventListener("dragenter",a),e.addEventListener("dragover",r),e.addEventListener("drop",o),function(){e.removeEventListener("dragenter",a),e.removeEventListener("dragover",r),e.removeEventListener("drop",o)}}},{key:"addEventListeners",value:function(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var t=this.monitor.getSourceId(),e=this.sourceNodeOptions.get(t);return rL({dropEffect:this.altKeyPressed?"copy":"move"},e||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var t=this.monitor.getSourceId();return rL({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(t)||{})}},{key:"isDraggingNativeItem",value:function(){var t=this.monitor.getItemType();return Object.keys(Yz).some((function(e){return Yz[e]===t}))}},{key:"beginDragNativeItem",value:function(t,e){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(t,e){var n=new Jz(Gz[t]);return n.loadDataTransfer(e),n}(t,e),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(t){var e=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t,this.mouseMoveTimeoutTimer=setTimeout((function(){var t;return null===(t=e.rootElement)||void 0===t?void 0:t.addEventListener("mousemove",e.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var t;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(t=this.window)||void 0===t||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(t,e){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(e))}},{key:"handleDragEnter",value:function(t,e){this.dragEnterTargetIds.unshift(e)}},{key:"handleDragOver",value:function(t,e){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(e)}},{key:"handleDrop",value:function(t,e){this.dropTargetIds.unshift(e)}}],n&&oL(e.prototype,n),a&&oL(e,a),t}();const cL=function(t,e,n){return new lL(t,e,n)},sL=t=>n.jsx(SM,{backend:cL,context:window,children:t.children});k(".ant-table-wrapper .ant-table-thead>tr>th{font-weight:700}.ant-table-wrapper .ant-table-tbody>tr>td,.ant-table-wrapper .ant-table-thead>tr>td,.ant-table-wrapper .ant-table-thead>tr>th{padding:6px 8px}.ant-table-wrapper .ant-table-tbody>tr>td.ant-table-cell .ant-form-item .ant-form-item-control-input{min-height:auto}.ant-table-wrapper .ant-table-tbody .btn-operate{height:26px;width:26px}.ant-table-wrapper .ant-table-pagination.ant-pagination{margin-bottom:10px;margin-top:10px;padding-bottom:10px;padding-top:10px}.ant-table-wrapper .react-resizable{background-clip:padding-box;position:relative}.ant-table-wrapper .react-resizable-handle{bottom:0;cursor:col-resize;height:100%;position:absolute;right:-5px;width:10px;z-index:1}");var uL=t.forwardRef(((e,a)=>{const r=t.useMemo((()=>{const t=e.extra||{};return{tableConfig:t.tableConfig,virtual:t.virtual,rowType:t.rowType,scroll:t.scroll,apiMethod:t.apiMethod,columns:t.columns||[],data:t.data,drag:t.drag,onSelect:t.onSelect,hidSortColumn:t.hidSortColumn,paginationConfig:t.paginationConfig,getCheckboxProps:t.getCheckboxProps,resultFilter:t.resultFilter,getTableSuccessData:t.getTableSuccessData}}),[e.extra]),o=t.useRef(),l=t.useRef(!0),c=t.useRef({position:["bottomCenter"],size:"small",current:1,total:0,pages:0,pageSize:10,showSizeChanger:!0,orderByInfo:void 0}),s=t.useRef([]),[u,d]=t.useState(r.columns),[p,f]=t.useState(!1),[h,g]=O.useSetState({listData:[],selectRowIds:[],selectRowArray:[]}),[b,v]=t.useState({x:void 0,y:330}),y=t.useMemo((()=>r.tableConfig&&r.tableConfig.rowKey?r.tableConfig.rowKey:"id"),[r.tableConfig]),x=t.useMemo((()=>{const t=i.v4();if(r.virtual&&r.virtual.open){const e={...r.virtual.config,vid:r.virtual.config?.vid||t,height:r.virtual.config?.height||500,resetTopWhenDataChange:r.virtual.config?.resetTopWhenDataChange||!1};return console.log("创建虚拟列表",e),UI(e)}}),[r.virtual]),w=t.useMemo((()=>{const t={header:{cell:YR},body:{row:t=>n.jsx(Nz,{...t,vc:x}),cell:t=>n.jsx(Pz,{...t,vc:x,columns:u})}};try{if(x){const e=t;return{...x,header:e.header,body:{...x.body,cell:e.body.cell,row:e.body.row}}}return t}catch(e){return console.error("虚拟列表配置失败,请检查配置项",e),t}}),[u,x]),k=!(!m.default.isFunction(r.apiMethod)||!l.current)&&{size:"small",position:["bottomCenter"],showTotal:t=>`共${t}条`,showSizeChanger:!0,showQuickJumper:!0,...c.current},C=t.useCallback(((t,e)=>{const n=new Map;return t.forEach((t=>{n.set(t[y],t)})),e.forEach((t=>{n.set(t[y],t)})),Array.from(n.values())}),[y]),E=t.useCallback((async t=>{let e=!0;f(!0),t&&(void 0!==t.updateSelected&&(e=t.updateSelected,delete t.updateSelected),"not-reset"===t.pagination&&delete t.pagination,o.current={...o.current,...t});try{const n={...o.current};for(let t in c.current){const e=c.current[t];"orderByInfo"===t&&(n.orderByInfo=e),"current"===t&&(n.page=e),"pageSize"===t&&(n.size=n.size||e)}if(t&&t.current&&(n.page=t.current,c.current.current=t.current),r.apiMethod){delete n.current;const t=await r.apiMethod(m.default.pickBy(n,m.default.identity));let a=[];m.default.isArray(t.data.content)&&(!1!==r.paginationConfig?l.current=!0:l.current=!1,a=t.data.content,c.current.total=t.data.total,c.current.pages=t.data.pages),m.default.isArray(t.data)&&(l.current=!1,a=t.data),r.resultFilter&&(a=await r.resultFilter(a)),e&&g((t=>{let e=[...t.selectRowIds],n=[];const r=a=>{if(t.selectRowIds.length)for(let o of a){for(let a of t.selectRowIds)o[y]===a&&(e.push(a),n.push(o));o.children&&r(o.children)}};return r(a),t.selectRowIds=Array.from(new Set(e)),t.selectRowArray=C(t.selectRowArray,n),t})),g((t=>(t.listData=a,t))),r.getTableSuccessData&&r.getTableSuccessData(t)}}catch(t){}f(!1)}),[r,y,C,g]),S=t=>{!m.default.isEqual(t,c.current)&&l.current&&(c.current={...c.current,...t},E())},N={fixed:!0,type:r.rowType,selectedRowKeys:h.selectRowIds,getCheckboxProps:r.getCheckboxProps,onSelectAll:(t,e,n)=>{g((e=>{let a=[...e.selectRowIds],o=[...e.selectRowArray];return t?(a=m.default.uniq([...a,...n.map((t=>t[y]))]),o=m.default.uniqBy([...o,...n],y)):(a=a.filter((t=>!n.some((e=>e[y]===t)))),o=o.filter((t=>!n.some((e=>e[y]===t[y]))))),r.onSelect&&r.onSelect(o,a),e.selectRowIds=a,e.selectRowArray=o,e}))},onSelect:(t,e)=>{g((n=>{let a=[...n.selectRowIds],o=[...n.selectRowArray];return"checkbox"===r.rowType&&(e?(a.push(t[y]),o.push(t)):(a=a.filter((e=>e!==t[y])),o=o.filter((e=>e[y]!==t[y])))),"radio"===r.rowType&&e&&(a=[t[y]],o=[t]),r.onSelect&&r.onSelect(o,a),n.selectRowIds=a,n.selectRowArray=o,n}))}},P=t=>(e,{size:n})=>{d((e=>{const a=[...e];return a[t]={...a[t],width:n.width},s.current=a,a}))},T=t.useCallback((t=>{g((e=>{let n=JSON.parse(JSON.stringify(e.listData));for(let[e,a]of n.entries())if(a[y]===t[y]){n[e]={...n[e],...t};break}return e.listData=n,e}))}),[y,g]),D=t.useCallback((async(t,e)=>{const n=h.listData[t],a=lI(h.listData,{$splice:[[t,1],[e,0,n]]});f(!0);try{if(r.drag){const n=JSON.parse(JSON.stringify(a)),o=JSON.parse(JSON.stringify(h.listData)),i=[t,e].sort();!1!==await r.drag.moveRow(t,e,n,o,n.slice(i[0],i[1]+1))&&g((t=>(t.listData=n,t)))}}finally{f(!1)}}),[r.drag,g,h.listData]),I=t.useCallback((t=>{let e=[];const n=t=>{for(let a of t){for(let t of h.selectRowIds)a[y]===t&&e.push(a);a.children&&n(a.children)}};return n(t),e}),[y,h.selectRowIds]);return t.useEffect((()=>{(async()=>{let t=[...r.columns];r.hidSortColumn||t.unshift({width:55,fixed:"left",title:"序号",dataIndex:"sequence",render:(t,e,n)=>{const a=c.current;return Object.keys(a).length?((a.current||0)-1)*(a.pageSize||0)+n+1:n+1}});for(let[e,n]of t.entries()){"RemoteSearch"===n.valueType&&n.remoteConfig&&n.remoteConfig.remoteApi&&(n.valueEnum=await n.remoteConfig.remoteApi());let a={...n,onHeaderCell:t=>({width:t.width,onResize:P(e)}),onCell:(t,e)=>({record:t,recordIndex:e,dataIndex:n.dataIndex,title:n.title,rowSpanNum:"function"==typeof n.rowSpanNum?n.rowSpanNum(t,e):n.rowSpanNum,colSpanNum:"function"==typeof n.colSpanNum?n.colSpanNum(t,e):n.colSpanNum,editable:"function"==typeof n.editable?n.editable(t,e):n.editable,inputType:n.inputType,valueType:n.valueType,valueEnum:n.valueEnum,recordSelectField:n.recordSelectField,controlRender:n.controlRender,render:n.render,formChange:n.formChange,remoteConfig:n.remoteConfig,formItemProps:n.formItemProps,handleSave:T})},r=s.current.find((t=>t.dataIndex===n.dataIndex&&t.title===n.title));r&&(a.width=r.width),t[e]=a}d(t)})()}),[r.columns,r.hidSortColumn,T]),t.useEffect((()=>{m.default.isArray(r.data)&&g((t=>(t.listData=JSON.parse(JSON.stringify(r.data)),t)))}),[r.data,g]),t.useEffect((()=>{const t=document.getElementById("slider-menu"),e=document.getElementById("router-render");if(void 0!==r.scroll?.x||void 0!==r.scroll?.y)v((t=>({...t,...r.scroll})));else if(t&&e){let n=parseInt(window.getComputedStyle(e,null).paddingLeft);v((e=>(e.x=document.body.clientWidth-t.clientWidth-(2*n+43),e)))}}),[r.scroll]),t.useEffect((()=>{r.paginationConfig&&(c.current={...c.current,...r.paginationConfig})}),[r.paginationConfig]),t.useImperativeHandle(a,(()=>({setTableLoading:t=>{f(t)},getPages:()=>({...c.current}),getTableList:async(t,e)=>{t&&("not-reset"===t.pagination?t.current=c.current.current:void 0===t.current&&(t.current=1),t.clearSelectIds&&(delete t.clearSelectIds,g((t=>(t.selectRowArray=[],t.selectRowIds=[],t))))),await E(t),e&&e()},setRowSelected:(t,e)=>{let n=t;!0===e&&(n=Array.from(new Set([...h.selectRowIds,...t]))),g({selectRowIds:n})},setRowSelectedBy:t=>{g({selectRowArray:t})},getSelectIds:()=>h.selectRowIds,clearSelectIds:()=>{g({selectRowIds:[],selectRowArray:[]})},getSelectRowsArray:()=>{const t=I(h.listData);return m.default.cloneDeep(C(h.selectRowArray,t))},removeSelectIds:t=>{if(!Array.isArray(t)||0===t.length)return;const e=(e,n)=>e.filter((e=>"string"==typeof e?!t.includes(e):!t.includes(e[n])));g({selectRowIds:e(h.selectRowIds,y),selectRowArray:e(h.selectRowArray,y)})},getStaticDataList:()=>{try{return m.default.cloneDeep(h.listData||[])}catch(t){return[]}},setStaticDataList:(t,e)=>{if(t)try{if("object"!=typeof t||Array.isArray(t))Array.isArray(t)&&g((e=>(e.listData=m.default.cloneDeep(t),e)));else{const e=t;g((t=>(t.listData=h.listData.map((t=>t[y]===e[y]?{...t,...e}:t)),t)))}e&&e()}catch(t){}}}))),n.jsx(eI,{children:n.jsx(sL,{children:n.jsx(JO,{bordered:!0,rowKey:"id",rowClassName:"editable-row",loading:p,components:w,onRow:(t,e)=>({index:e,moveRow:D,open:r.drag&&r.drag.open}),columns:u,dataSource:h.listData,rowSelection:r.rowType?N:void 0,pagination:k,onChange:(t,e,n)=>{const{order:a}=n;t.orderByInfo=void 0,a&&(t.orderByInfo=`${n.field}:${"ascend"===a?1:-1}`),S(t)},scroll:b,...r.tableConfig})})})}));k("");const dL=t=>{const e={...t};return delete e.outerHeight,n.jsx(ly,{className:"empty-wrap",style:{minHeight:t&&t.outerHeight?t.outerHeight:400},align:"middle",justify:"center",children:n.jsx(Da,{description:"暂无数据",...e})})};k(".from-table-modal .ant-modal-body{padding-top:15px}.from-table-modal .ant-modal-body .search-form{margin-bottom:8px}.from-table-modal .ant-modal-body .ant-table-wrapper .ant-pagination{margin-bottom:0}.from-table-modal .from-table-modal-foot{margin-top:20px}");const{Link:pL,Paragraph:fL}=NT;var mL=t.forwardRef((function(e,a){const r=t.useRef(null),o=t.useRef(),[i,l]=O.useSetState({saveLoading:!1,selectedRows:[]}),c=t.useMemo((()=>e.tableColumnsList&&e.tableColumnsList.tableConfig&&e.tableColumnsList.tableConfig.rowKey||"id"),[e.tableColumnsList]),s=t.useMemo((()=>{const t=e.width||0;return t>=500&&t<=800?{span:7}:t>800&&t<=1e3?{span:6}:t>1e3&&t<=1200?{span:5}:t>1200?{span:4}:{span:8}}),[e.width]),u=(t,e)=>{if(o.current){let n=[],a=[];"all"===t&&o.current.clearSelectIds(),"odd"===t&&e&&(n=[e[c]],a=i.selectedRows.filter((t=>t[c]!==e[c])),o.current.removeSelectIds(n)),l({selectedRows:a})}},d=t.useCallback((async()=>{if(r.current&&o.current){let t=await r.current.formSubmit();if(t&&Object.keys(t).length){for(let e in t){const n="YYYY-MM-DD HH:mm:ss";y.default(t[e],n,!0).isValid()&&(t[e]=y.default(t[e]).format(n))}t={clearSelectIds:!0,...t},void 0!==e.clearSelectIds&&(t.clearSelectIds=e.clearSelectIds),t.clearSelectIds&&l((t=>(t.selectedRows=[],t))),e.manualParameterChange&&(t=e.manualParameterChange(t)),e.searchCallback?e.searchCallback(t).then((e=>{e&&o.current?.getTableList(t)})):o.current.getTableList(t)}}else o.current?.getTableList()}),[e,l]),p=()=>{if(r.current){let t=[];const n=e.searchNoResetFiled||[];if(e.searchFormList)for(let a of e.searchFormList){if(a.unionConfig)for(let e of a.unionConfig.unionItems)e.name&&!n.includes(e.name)&&t.push(e.name);a.name&&!n.includes(a.name)&&t.push(a.name)}r.current.formReset(t)}d()};return t.useEffect((()=>{e.visible&&(e.autoGetList&&o.current?.getTableList(),e.openSelected&&e.openSelected.visible&&l((t=>(t.selectedRows=e.openSelected?.defaultValues||[],o.current?.setRowSelectedBy(t.selectedRows),o.current?.setRowSelected(t.selectedRows.map((t=>t[c]))),t))))}),[e.autoGetList,e.openSelected,e.visible,c,l]),t.useImperativeHandle(a,(()=>({...r.current,...o.current,setSavaLoading:t=>{l({saveLoading:t})}}))),n.jsxs(VD,{className:"from-table-modal",forceRender:!0,maskClosable:!1,footer:null,width:e.width,visible:e.visible,title:e.title||"弹窗",onCancel:()=>{e.onCancel&&e.onCancel()},...e.modalConfig,children:[e.topExtra,e.searchFormList?n.jsx(oI,{ref:r,rowGridConfig:{gutter:10},colGirdConfig:s,list:(f=e.searchFormList,f?f.map((t=>("Select"===t.componentName&&t.selectData&&t.selectData.length&&(t.selectData.some((t=>"全部"===t.label))||(t.selectData=[{label:"全部",value:""},...t.selectData])),t))):[]),formConfig:e.formConfig,render:()=>e.searchFormList&&e.searchFormList.length?n.jsxs(ME,{size:10,children:[n.jsx(df,{type:"primary",onClick:()=>{d()},children:"查询"}),n.jsx(df,{className:"btn-reset",onClick:p,children:"重置"})]}):n.jsx(n.Fragment,{})}):null,n.jsxs(ly,{...e.rowProps,children:[e.leftSlot?n.jsx(dy,{...e.leftSlot.colProps,children:e.leftSlot.jsx}):null,n.jsx(dy,{...e.colProps,children:n.jsxs(ly,{gutter:10,children:[n.jsx(dy,{span:e.openSelected&&e.openSelected.visible?16:24,children:n.jsx(uL,{ref:o,extra:{rowType:e.tableColumnsList.rowType,apiMethod:e.apiMethod,columns:e.tableColumnsList.list,data:e.data,onSelect:(t,n)=>{((t,n)=>{l({selectedRows:n.map((n=>{let a={};const r=t.find((t=>t[c]===n));if(a[c]=n,e.openSelected&&e.openSelected.fileName&&(a[e.openSelected.fileName]=n),r&&(a=r),e.openSelected){const t=e.openSelected.fileName,r=e.openSelected.defaultValues;if(t&&r){const e=r.find((t=>t[c]===n));e&&(a[t]=e[t])}}return a}))})})(t,n),e.onSelect&&e.onSelect(t,n)},getTableSuccessData:e.getTableSuccessData,tableConfig:e.tableColumnsList.tableConfig,scroll:{x:"max-content"}}})}),e.openSelected&&e.openSelected.visible?n.jsx(dy,{span:8,children:n.jsx(my,{title:"已选列表",size:"small",bodyStyle:{height:e.openSelected.height||330,overflowY:"auto"},extra:n.jsx(pL,{onClick:()=>u("all"),children:"全部移除"}),children:i.selectedRows.length?i.selectedRows.map((t=>{const a=t[c],r=t[e.openSelected?.fileName];return n.jsxs(ly,{gutter:12,children:[n.jsx(dy,{span:11,title:r,children:n.jsx(fL,{ellipsis:!0,children:r})}),n.jsx(dy,{span:9,title:a,children:n.jsx(fL,{ellipsis:!0,children:a})}),n.jsx(dy,{span:4,children:n.jsx(pL,{onClick:()=>u("odd",t),children:"移除"})})]},a)})):n.jsx(dL,{outerHeight:200})})}):null]})}),e.rightSlot?n.jsx(dy,{...e.rightSlot.colProps,children:e.rightSlot.jsx}):null]}),n.jsx(ly,{className:"from-table-modal-foot",justify:"center",children:n.jsx(dy,{children:n.jsxs(ME,{size:20,children:[e.onCancel?n.jsx(df,{onClick:()=>e.onCancel&&e.onCancel(),children:"关闭"}):null,e.onConfirm?n.jsx(df,{type:"primary",loading:i.saveLoading,onClick:()=>{let t=[],n=[];t=o.current?.getSelectRowsArray()||[],e.onConfirm&&(o.current&&(n=o.current.getSelectIds()),l({saveLoading:!0}),e.onConfirm(t,n).then((t=>{l({saveLoading:!1}),t&&e.onCancel&&e.onCancel()})).catch((t=>{l({saveLoading:!1}),Wi.warn(t,1.5)})))},children:"确定"}):null]})})})]});var f})),hL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 010-12.9l246-178a8 8 0 0112.7 6.5v46.8z"}}]},name:"left-circle",theme:"filled"},gL=function(t,e){return p.createElement(ii,Ce(Ce({},t),{},{ref:e,icon:hL}))},bL=p.forwardRef(gL);"production"!==process.env.NODE_ENV&&(bL.displayName="LeftCircleFilled");var vL=bL,yL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z"}}]},name:"right-circle",theme:"filled"},xL=function(t,e){return p.createElement(ii,Ce(Ce({},t),{},{ref:e,icon:yL}))},wL=p.forwardRef(xL);"production"!==process.env.NODE_ENV&&(wL.displayName="RightCircleFilled");var kL=wL;k(".quickly-form-modal .ant-modal-body{padding-top:15px}.quickly-form-modal .quickly-form-modal-foot{margin-top:20px}");k(".form-modal .ant-modal-body{padding-top:15px}.form-modal .ant-modal-body .modal-form-height{max-height:580px;overflow-x:hidden;overflow-y:auto;padding-right:5px}.form-modal .ant-modal-body .modal-form-height .generate-form.ant-form-horizontal.ant-form .ant-row.ant-form-item{margin-bottom:4px}.form-modal .form-modal-foot{margin-top:20px}");var CL=t.forwardRef(((e,a)=>{const r=t.useRef(),[o,i]=O.useSetState({loading:!1,saveLoading:!1,disabled:!1}),l=async()=>{let t=await(r.current?.formSubmit());if(t){if(t.endTime&&t.startTime&&y.default(t.endTime).isBefore(t.startTime))return void Wi.warn("生效日期不能大于失效日期",1.5);i({saveLoading:!0});try{let n={};if(t={...t,...e.submitExtraParameters},e.switchTransform)for(let n=0;n<e.switchTransform.length;n++)t[e.switchTransform[n]]?t[e.switchTransform[n]]="1":t[e.switchTransform[n]]="0";if(e.submitRemoveField)for(let n=0;n<e.submitRemoveField.length;n++)t[e.submitRemoveField[n]]&&delete t[e.submitRemoveField[n]];for(let e in t){const n="YYYY-MM-DD HH:mm:ss";y.default(t[e],n,!0).isValid()&&(t[e]=y.default(t[e]).format(n))}if(e.manualParameterChange&&(t=e.manualParameterChange(t)),e.manualVerification&&!e.manualVerification(t))return console.warn("手动验证表单不通过"),void i({saveLoading:!1});if(t=m.default.omitBy(t,m.default.isNil),e.submitApi&&t){if(e.id?(t.id=e.id,n=await e.submitApi(t,"put")):n=await e.submitApi(t,"post"),1===n.code){if(e.onConfirm){if(!1===e.onConfirm(n))return}Wi.success("操作成功",1.5),e.onCancel&&e.onCancel()}i({saveLoading:!1})}else e.onConfirm&&t&&e.onConfirm(t)}catch(t){i({saveLoading:!1})}}};return t.useEffect((()=>{!1===e.visible&&i({saveLoading:!1})}),[e.visible,i]),t.useEffect((()=>{i({disabled:e.disable})}),[e.disable,i]),t.useImperativeHandle(a,(()=>({setFormLoading:t=>{i({loading:t})},setFormSaveLoading:t=>{i({saveLoading:t})},setFormFields:t=>{r.current&&r.current.setFormFields(t)},getFormValues:t=>r.current?.getFormValues(t),setFormValues:t=>{r.current&&r.current.setFormValues(t)},excludeFormSubmitValues:async t=>{if(r.current){const n=e.formList.filter((e=>!t?.includes(e.name)));return await(r.current?.formSubmit(n.map((t=>t.name))))}return{}},getFormSubmitValues:async t=>r.current?await(r.current?.formSubmit(t)):{}}))),n.jsx(VD,{className:`form-modal ${e.className}`,width:e.width?e.width:600,visible:e.visible,title:e.title||"对话框",onCancel:e.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null,children:n.jsxs(sC,{spinning:o.loading,children:[n.jsxs("div",{className:"modal-form-height",children:[e.topRender?e.topRender:null,n.jsx(oI,{ref:r,formConfig:{labelCol:{span:24},...e.formConfig},rowGridConfig:{gutter:[20,0]},colGirdConfig:e.colGirdConfig||{span:12},list:e.formList}),e.children&&e.children]}),(()=>{const a=(()=>{const t=[n.jsx(df,{onClick:()=>e.onCancel&&e.onCancel(),children:"关闭"},-1)];return o.disabled||t.push(n.jsx(df,{type:"primary",loading:o.saveLoading,onClick:l,children:"提交"},-2)),t})(),r=t=>n.jsx(ly,{className:"form-modal-foot",justify:"center",children:n.jsx(dy,{children:n.jsx(ME,{size:20,children:t})})});if(e.footer)return e.footer;if(e.footBtnList){const{model:n,data:o}=e.footBtnList,i=o.map(((e,n)=>{const{children:a,...r}=e;return t.createElement(df,{...r,key:n},a)}));if("new"===n)return r(i);if("before"===n)return r([...i,...a]);if("after"===n)return r([...a,...i])}return r(a)})()]})})}));k('@import "https://at.alicdn.com/t/font_2381668_l6oy3doglyo.css";.icon-selected-modal .avatar-selected{align-items:center;border:2px solid #fff;border-radius:4px;cursor:pointer;display:flex;height:36px;justify-content:center;overflow:hidden;width:36px}.icon-selected-modal .avatar-selected.avatar-selected-bg{border-color:#5860f8}.icon-selected-modal .icon-selected-foot{margin-top:20px}');k(".button-group{align-items:center;background-color:#f2f2f3;background-image:none;border:0;border-radius:4px;box-shadow:0 2px 0 rgba(0,0,0,.015);cursor:pointer;display:inline-flex;font-size:12px;height:30px;justify-content:center;line-height:1.15;outline:none;padding:3px 15px;position:relative;text-align:center;touch-action:manipulation;transition:all .3s cubic-bezier(.645,.045,.355,1);user-select:none;white-space:nowrap}.button-group:hover{background-color:#e3e5e6}.button-group-large{height:40px}.button-group-small{height:26px}.button-group-primary{background-color:#5860f8;color:#fff}.button-group-primary:hover{background-color:#828cff}.button-group .anticon{font-size:12px;margin-left:5px}.button-group .anticon.anticon-close{align-items:center;background-color:#878d99;border-radius:100%;color:#fff;display:inline-flex;font-size:10px;height:16px;justify-content:center;position:absolute;right:-5px;top:-5px;width:16px}");const EL="button-group";var SL=t.forwardRef(((e,a)=>{const[r,o]=O.useSetState({type:"checkbox",deleteOpen:!1,data:[]}),i=t=>{let n=EL;return e.buttonClassName&&(n=`${n} ${e.buttonClassName}`),e.size&&(n=`${n} ${EL}-${e.size}`),t.selected&&(n=`${n} ${EL}-primary`),n};return t.useEffect((()=>{if(e.checkType&&o({type:e.checkType}),e.deleteOpen&&o({deleteOpen:e.deleteOpen}),e.data){const t=e.data.map((t=>(void 0===t.selected&&(t.selected=!1),t)));o({data:t})}}),[e,o]),t.useImperativeHandle(a,(()=>({getButtonGroupSelected:()=>r.data.filter((t=>t.selected))}))),n.jsx(ly,{className:e.className,gutter:[10,10],children:r.data.map(((t,a)=>n.jsx(dy,{children:n.jsxs("div",{className:i(t),onClick:()=>((t,n)=>{let a=[];e.deleteOpen||(r.data&&("checkbox"===r.type&&(r.data[n].selected=!t.selected,a=r.data),"radio"===r.type&&(a=r.data.map(((e,a)=>{let r=!1;return n===a&&(r=!t.selected),{...e,selected:r}})))),e.onChange&&e.onChange(a),o({data:a}))})(t,a),children:[t.name,r.deleteOpen?n.jsx(Qi,{onClick:()=>(t=>{if(r.data){const n=r.data.filter(((e,n)=>t!==n));e.onChange&&e.onChange(n),o({data:n})}})(a)}):null]})},a)))})}));exports.Affix=t=>{let e={...t},a="";return e.targetId&&(a=e.targetId,delete e.targetId),n.jsx(tc,{target:()=>document.getElementById(a||"router-render")||window,...e})},exports.ButtonGroup=SL,exports.Dialog=VD,exports.Empty=dL,exports.GaoDeMap=KD,exports.GenerateForm=oI,exports.GenerateTable=uL,exports.IconSelectionModal=t=>{const[e,a]=O.useSetState({iconModal:{selected:-1,list:["iconmove","iconmap","iconnotice","iconpassword","iconNotvisible1","iconphone","iconpic1","iconpin","iconproduct","iconQRcode1","iconreeor","iconreduce","iconresonserate","iconremind","iconrising1","iconRightarrow","iconrmb1","iconsave","iconscanning","iconseleted","iconsearchcart","iconshare","iconRightbutton","iconsorting","iconsound-Mute","iconsound-filling","iconsuggest","iconsuccess","iconsupplier-features","iconswitch","iconsuspended","iconTop","iconsmile","icontradealert","icontopsales","icontradingvolume","iconupload","iconviewlarger","iconwarning","iconset","iconDaytimemode","iconunlock","iconexchangerate","iconall","iconbussiness-man","iconcomponent","iconcode","iconcopy","icondollar","iconhistory","iconeditor","icondata","icongift","iconintegral","iconnav-list","iconpic","iconNotvisible","iconplay","iconQRcode","iconrmb","iconsimilar-product","iconExportservices","iconsendinquiry","iconcolumn","iconadd-account","iconcolumn1","iconadd","iconadd-cart","iconarrow-right","iconarrow-left","iconall1","iconarrow-up","iconashbin","iconatm","iconbad","iconattachent","iconbrowse","iconcalendar","iconcart-full","iconcalculator","iconcameraswitching","iconcecurity-protection","iconcategory","iconclose","iconcertified-supplier","iconcart-Empty","iconcode1","iconcopy1","iconcoupons","iconconnections","iconcry","iconclock","iconCurrencyConverter","iconcut","icondata1","iconCustomermanagement","icondouble-arro-right","iconcustomization","icondouble-arrow-left","icondiscount","icondownload","icondollar1","icondefault-template","iconeditor1","iconetrical-equipm","iconellipsis","iconemail","iconfalling","iconfilter","iconfolder","iconhelp","icongood","icongift1","iconhot","iconinspection","iconleftbutton","iconleftarrow","iconlink","iconloading","iconphone1"]}}),r={height:34,fontSize:22};return n.jsxs(VD,{className:"icon-selected-modal",width:t.width?t.width:590,visible:t.visible,title:t.title?t.title:"图标选择",onCancel:t.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null,children:[n.jsx(ly,{gutter:[10,10],children:e.iconModal.list.map(((t,o)=>n.jsx(dy,{children:n.jsx("div",{className:`avatar-selected ${o===e.iconModal.selected?"avatar-selected-bg":null}`,onClick:()=>{a((t=>(t.iconModal.selected=o,t)))},children:n.jsx("i",{className:`iconfont ${t}`,title:t,style:r})})},o)))}),n.jsx(ly,{className:"icon-selected-foot",justify:"center",children:n.jsx(dy,{children:n.jsxs(ME,{size:20,children:[n.jsx(df,{onClick:t.onCancel,children:"关闭"}),n.jsx(df,{type:"primary",onClick:()=>{const n=e.iconModal.list[e.iconModal.selected];t.onConfirm&&t.onConfirm(n)},children:"确定"})]})})})]})},exports.LayoutFormModal=CL,exports.LayoutTableModal=mL,exports.QuicklyProcessForms=e=>{const a=t.useRef(),r=t.useRef({page:1,pages:1,size:10}),[o,i]=O.useSetState({id:void 0,saveLoading:!1,data:[]}),l={fontSize:24},c=t.useCallback(((t,e)=>t.map((t=>{if(e)for(let n of e)t[n]&&(t[n]=y.default(t[n]));return t}))),[]),s=t.useCallback((async t=>{if(e.apiMethod)try{let n="";const a=await e.apiMethod(r.current);console.log("getList useCallback",a,"queryPagination.current",r.current);const o=a.data.content;r.current.pages=a.data.pages,"up"===t&&(n=o[o.length-1].id),"down"===t&&(n=o[0].id),i({id:n||e.id,data:o})}catch(t){}}),[e,i]),u=t.useMemo((()=>{let t=0;for(let[e,n]of o.data.entries())if(n.id===o.id){t=e;break}return t}),[o.data,o.id]),d=t.useCallback((async()=>{if(e.apiMethod){if(1===r.current.page&&0===u)return Wi.destroy(),void Wi.warn("已经是第一页啦~",1.5);if(u-1<0)return r.current.page=r.current.page-1,s("up"),void(e.onChange&&e.onChange(o.data[u],r.current))}else if(0===u)return Wi.destroy(),void Wi.warn("已经是第一个啦~",1.5);if(a.current){const t=await a.current.formSubmit();if(t){t.id=o.data[u].id;try{const n=o.data[u-1];console.log("cutIndexObj",n),e.submitApi(t,"put"),e.onChange&&e.onChange(n,r.current),i((e=>(e.id=n.id,e.data[u]={...e.data[u],...t},e)))}catch(t){}}}}),[u,s,e,i,o.data]),p=t.useCallback((async()=>{if(e.apiMethod){if(r.current.page===r.current.pages&&u===o.data.length-1)return Wi.destroy(),void Wi.warn("已经是最后一页啦~",1.5);if(u+1>=o.data.length)return r.current.page=r.current.page+1,s("down"),void(e.onChange&&e.onChange(o.data[u],r.current))}else if(0===o.data.length||u===o.data.length-1)return Wi.destroy(),void Wi.warn("已经是最后一个啦~",1.5);if(a.current){const t=await a.current.formSubmit();if(t){t.id=o.data[u].id;try{const n=o.data[u+1];console.log("cutIndexObj",n),e.submitApi(t,"put"),e.onChange&&e.onChange(n,r.current),i((e=>(e.id=n.id,e.data[u]={...e.data[u],...t},e)))}catch(t){}}}}),[u,s,e,i,o.data]),f=t.useCallback((async t=>{if("PageUp"===t.key&&(d(),t.preventDefault()),"PageDown"===t.key&&(p(),t.preventDefault()),"Enter"===t.key&&a.current){const t=await a.current.formSubmit();t.id=o.data[u].id;try{e.submitApi(t,"put"),Wi.success("保存成功",1.5)}catch(t){}}}),[u,p,d,e,o.data]),m=t.useCallback((async()=>{if(e.methodParams){let t=["page","pages","size"],n={},a=await e.methodParams;for(let e in r.current)for(let a of t)e===a&&(n[a]=r.current[e]);n={...n,...a},n.page=a.page?a.page.current:1,r.current=n}}),[e.methodParams]);return t.useEffect((()=>{e.visible&&setTimeout((()=>{a.current&&a.current.setFormValues(o.data[u])}),100)}),[u,e.visible,o.data]),t.useEffect((()=>{e.visible&&(e.apiMethod?m().then((()=>{s()})):i({id:e.id,data:c(e.data,e.transformTime)}))}),[m,s,e.apiMethod,e.data,e.id,e.transformTime,e.visible,i,c]),t.useEffect((()=>(e.visible?document.addEventListener("keydown",f):document.removeEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)})),[f,e.visible]),n.jsx(VD,{className:"quickly-form-modal",width:e.width?e.width:960,visible:e.visible,title:e.title||"快速编辑信息",onCancel:()=>{e.onCancel&&e.onCancel(r.current)},maskClosable:!1,destroyOnClose:!0,footer:null,children:n.jsxs(ly,{className:"modal-form-height",gutter:16,align:"middle",wrap:!1,children:[n.jsx(dy,{flex:"60px",children:n.jsx(ly,{justify:"center",children:n.jsx(dy,{children:n.jsx(vL,{className:"circle-filled",style:l,onClick:d})})})}),n.jsx(dy,{flex:"auto",children:n.jsx(oI,{ref:a,formConfig:{labelCol:{span:24}},rowGridConfig:{gutter:[20,0]},colGirdConfig:{span:6},list:e.formList})}),n.jsx(dy,{flex:"60px",children:n.jsx(ly,{justify:"center",children:n.jsx(dy,{children:n.jsx(kL,{className:"circle-filled",style:l,onClick:p})})})})]})})},exports.TreeNode=UD,exports.Upload=HD,exports.VirtualList=e=>{const{vl:a,columns:r,...o}=e,i=t.useRef(a);var l,c;l=a,c=i.current,m.default.isEqualWith(l,c,((t,e)=>{if(m.default.isFunction(t)&&m.default.isFunction(e))return t.toString()===e.toString()}))&&(i.current=a);const s=t.useMemo((()=>{if(i.current)return UI(i.current)}),[]),[u,d]=t.useState(r||[]);t.useEffect((()=>{d(r||[])}),[r]);const p=t.useCallback((t=>(e,{size:n})=>{const a=[...u];a[t]={...a[t],width:n.width},d(a)}),[u]),f=t.useMemo((()=>u.map(((t,e)=>({...t,onHeaderCell:t=>({width:t.width,onResize:p(e)})})))),[u,p]),h=t.useMemo((()=>({header:{cell:YR},...s||{}})),[s]);return n.jsx(eI,{children:n.jsx(JO,{components:h,rowKey:"id",pagination:!1,scroll:{y:a.height,x:"100%"},columns:f,...o})})},exports.hooks=O;
23
+ */function bR(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case QI:switch(t=t.type){case iR:case lR:case eR:case aR:case nR:case sR:return t;default:switch(t=t&&t.$$typeof){case oR:case cR:case pR:case dR:case rR:return t;default:return e}}case tR:return e}}}function vR(t){return bR(t)===lR}var yR={AsyncMode:iR,ConcurrentMode:lR,ContextConsumer:oR,ContextProvider:rR,Element:QI,ForwardRef:cR,Fragment:eR,Lazy:pR,Memo:dR,Portal:tR,Profiler:aR,StrictMode:nR,Suspense:sR,isAsyncMode:function(t){return vR(t)||bR(t)===iR},isConcurrentMode:vR,isContextConsumer:function(t){return bR(t)===oR},isContextProvider:function(t){return bR(t)===rR},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===QI},isForwardRef:function(t){return bR(t)===cR},isFragment:function(t){return bR(t)===eR},isLazy:function(t){return bR(t)===pR},isMemo:function(t){return bR(t)===dR},isPortal:function(t){return bR(t)===tR},isProfiler:function(t){return bR(t)===aR},isStrictMode:function(t){return bR(t)===nR},isSuspense:function(t){return bR(t)===sR},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===eR||t===lR||t===aR||t===nR||t===sR||t===uR||"object"==typeof t&&null!==t&&(t.$$typeof===pR||t.$$typeof===dR||t.$$typeof===rR||t.$$typeof===oR||t.$$typeof===cR||t.$$typeof===mR||t.$$typeof===hR||t.$$typeof===gR||t.$$typeof===fR)},typeOf:bR},xR=K((function(t,e){"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,a=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,y=t?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:var f=t.type;switch(f){case s:case u:case r:case i:case o:case p:return f;default:var g=f&&f.$$typeof;switch(g){case c:case d:case h:case m:case l:return g;default:return e}}case a:return e}}}var w=s,k=u,C=c,E=l,S=n,O=d,N=r,P=h,T=m,D=a,I=i,R=o,j=p,M=!1;function z(t){return x(t)===u}e.AsyncMode=w,e.ConcurrentMode=k,e.ContextConsumer=C,e.ContextProvider=E,e.Element=S,e.ForwardRef=O,e.Fragment=N,e.Lazy=P,e.Memo=T,e.Portal=D,e.Profiler=I,e.StrictMode=R,e.Suspense=j,e.isAsyncMode=function(t){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(t)||x(t)===s},e.isConcurrentMode=z,e.isContextConsumer=function(t){return x(t)===c},e.isContextProvider=function(t){return x(t)===l},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===n},e.isForwardRef=function(t){return x(t)===d},e.isFragment=function(t){return x(t)===r},e.isLazy=function(t){return x(t)===h},e.isMemo=function(t){return x(t)===m},e.isPortal=function(t){return x(t)===a},e.isProfiler=function(t){return x(t)===i},e.isStrictMode=function(t){return x(t)===o},e.isSuspense=function(t){return x(t)===p},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===u||t===i||t===o||t===p||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===m||t.$$typeof===l||t.$$typeof===c||t.$$typeof===d||t.$$typeof===b||t.$$typeof===v||t.$$typeof===y||t.$$typeof===g)},e.typeOf=x}()})),wR=K((function(t){"production"===process.env.NODE_ENV?t.exports=yR:t.exports=xR})),kR=Object.getOwnPropertySymbols,CR=Object.prototype.hasOwnProperty,ER=Object.prototype.propertyIsEnumerable;var SR=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var a=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if("0123456789"!==a.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,r=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))CR.call(n,i)&&(r[i]=n[i]);if(kR){a=kR(n);for(var l=0;l<a.length;l++)ER.call(n,a[l])&&(r[a[l]]=n[a[l]])}}return r},OR=Function.call.bind(Object.prototype.hasOwnProperty),NR="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",PR=OR,TR=function(){};if("production"!==process.env.NODE_ENV){var DR=NR,IR={},RR=PR;TR=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function jR(t,e,n,a,r){if("production"!==process.env.NODE_ENV)for(var o in t)if(RR(t,o)){var i;try{if("function"!=typeof t[o]){var l=Error((a||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}i=t[o](e,o,a,n,null,DR)}catch(t){i=t}if(!i||i instanceof Error||TR((a||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in IR)){IR[i.message]=!0;var c=r?r():"";TR("Failed "+n+" type: "+i.message+(null!=c?c:""))}}}jR.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(IR={})};var MR=jR,zR=function(){};function LR(){return null}"production"!==process.env.NODE_ENV&&(zR=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}});function AR(){}function _R(){}_R.resetWarningCache=AR;var FR=function(t,e){var n="function"==typeof Symbol&&Symbol.iterator;var a="<<anonymous>>",r={array:c("array"),bigint:c("bigint"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:l(LR),arrayOf:function(t){return l((function(e,n,a,r,o){if("function"!=typeof t)return new i("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var l=e[n];if(!Array.isArray(l))return new i("Invalid "+r+" `"+o+"` of type `"+d(l)+"` supplied to `"+a+"`, expected an array.");for(var c=0;c<l.length;c++){var s=t(l,c,a,r,o+"["+c+"]",NR);if(s instanceof Error)return s}return null}))},element:l((function(e,n,a,r,o){var l=e[n];return t(l)?null:new i("Invalid "+r+" `"+o+"` of type `"+d(l)+"` supplied to `"+a+"`, expected a single ReactElement.")})),elementType:l((function(t,e,n,a,r){var o=t[e];return wR.isValidElementType(o)?null:new i("Invalid "+a+" `"+r+"` of type `"+d(o)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return l((function(e,n,r,o,l){if(!(e[n]instanceof t)){var c=t.name||a;return new i("Invalid "+o+" `"+l+"` of type `"+(((s=e[n]).constructor&&s.constructor.name?s.constructor.name:a)+"` supplied to `")+r+"`, expected instance of `"+c+"`.")}var s;return null}))},node:l((function(t,e,n,a,r){return u(t[e])?null:new i("Invalid "+a+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return l((function(e,n,a,r,o){if("function"!=typeof t)return new i("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var l=e[n],c=d(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected an object.");for(var s in l)if(PR(l,s)){var u=t(l,s,a,r,o+"."+s,NR);if(u instanceof Error)return u}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&zR(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),LR;return l((function(e,n,a,r,l){for(var c=e[n],s=0;s<t.length;s++)if(o(c,t[s]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===p(e)?String(e):e}));return new i("Invalid "+r+" `"+l+"` of value `"+String(c)+"` supplied to `"+a+"`, expected one of "+u+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&zR("Invalid argument supplied to oneOfType, expected an instance of array."),LR;for(var e=0;e<t.length;e++){var n=t[e];if("function"!=typeof n)return zR("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+f(n)+" at index "+e+"."),LR}return l((function(e,n,a,r,o){for(var l=[],c=0;c<t.length;c++){var s=(0,t[c])(e,n,a,r,o,NR);if(null==s)return null;s.data&&PR(s.data,"expectedType")&&l.push(s.data.expectedType)}return new i("Invalid "+r+" `"+o+"` supplied to `"+a+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(t){return l((function(e,n,a,r,o){var l=e[n],c=d(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");for(var u in t){var f=t[u];if("function"!=typeof f)return s(a,r,o,u,p(f));var m=f(l,u,a,r,o+"."+u,NR);if(m)return m}return null}))},exact:function(t){return l((function(e,n,a,r,o){var l=e[n],c=d(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var u=SR({},e[n],t);for(var f in u){var m=t[f];if(PR(t,f)&&"function"!=typeof m)return s(a,r,o,f,p(m));if(!m)return new i("Invalid "+r+" `"+o+"` key `"+f+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var h=m(l,f,a,r,o+"."+f,NR);if(h)return h}return null}))}};function o(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function i(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function l(t){if("production"!==process.env.NODE_ENV)var n={},r=0;function o(o,l,c,s,u,d,p){if(s=s||a,d=d||c,p!==NR){if(e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var m=s+":"+c;!n[m]&&r<3&&(zR("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+s+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[m]=!0,r++)}}return null==l[c]?o?null===l[c]?new i("The "+u+" `"+d+"` is marked as required in `"+s+"`, but its value is `null`."):new i("The "+u+" `"+d+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:t(l,c,s,u,d)}var l=o.bind(null,!1);return l.isRequired=o.bind(null,!0),l}function c(t){return l((function(e,n,a,r,o,l){var c=e[n];return d(c)!==t?new i("Invalid "+r+" `"+o+"` of type `"+p(c)+"` supplied to `"+a+"`, expected `"+t+"`.",{expectedType:t}):null}))}function s(t,e,n,a,r){return new i((t||"React class")+": "+e+" type `"+n+"."+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function u(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(u);if(null===e||t(e))return!0;var a=function(t){var e=t&&(n&&t[n]||t["@@iterator"]);if("function"==typeof e)return e}(e);if(!a)return!1;var r,o=a.call(e);if(a!==e.entries){for(;!(r=o.next()).done;)if(!u(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!u(i[1]))return!1}return!0;default:return!1}}function d(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function p(t){if(null==t)return""+t;var e=d(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function f(t){var e=p(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return i.prototype=Error.prototype,r.checkPropTypes=MR,r.resetWarningCache=MR.resetWarningCache,r.PropTypes=r,r},VR=function(){function t(t,e,n,a,r,o){if(o!==NR){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:_R,resetWarningCache:AR};return n.PropTypes=n,n},KR=K((function(t){if("production"!==process.env.NODE_ENV){var e=wR;t.exports=FR(e.isElement,!0)}else t.exports=VR()})),HR=K((function(t,e){e.__esModule=!0,e.resizableProps=void 0;var n=function(t){return t&&t.__esModule?t:{default:t}}(KR);var a={axis:n.default.oneOf(["both","x","y","none"]),className:n.default.string,children:n.default.element.isRequired,draggableOpts:n.default.shape({allowAnyClick:n.default.bool,cancel:n.default.string,children:n.default.node,disabled:n.default.bool,enableUserSelectHack:n.default.bool,offsetParent:n.default.node,grid:n.default.arrayOf(n.default.number),handle:n.default.string,nodeRef:n.default.object,onStart:n.default.func,onDrag:n.default.func,onStop:n.default.func,onMouseDown:n.default.func,scale:n.default.number}),height:function(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];var r,o=e[0];return"both"===o.axis||"y"===o.axis?(r=n.default.number).isRequired.apply(r,e):n.default.number.apply(n.default,e)},handle:n.default.oneOfType([n.default.node,n.default.func]),handleSize:n.default.arrayOf(n.default.number),lockAspectRatio:n.default.bool,maxConstraints:n.default.arrayOf(n.default.number),minConstraints:n.default.arrayOf(n.default.number),onResizeStop:n.default.func,onResizeStart:n.default.func,onResize:n.default.func,resizeHandles:n.default.arrayOf(n.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:n.default.number,width:function(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];var r,o=e[0];return"both"===o.axis||"x"===o.axis?(r=n.default.number).isRequired.apply(r,e):n.default.number.apply(n.default,e)}};e.resizableProps=a})),BR=K((function(t,e){e.__esModule=!0,e.default=void 0;var n=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=r(e);if(n&&n.has(t))return n.get(t);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var l=o?Object.getOwnPropertyDescriptor(t,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=t[i]}a.default=t,n&&n.set(t,a);return a}(f.default),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function r(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(r=function(t){return t?n:e})(t)}function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},o.apply(this,arguments)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}var u=function(t){var e,r;function i(){for(var e,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(e=t.call.apply(t,[this].concat(a))||this).handleRefs={},e.lastHandleRect=null,e.slack=null,e}r=t,(e=i).prototype=Object.create(r.prototype),e.prototype.constructor=e,s(e,r);var c=i.prototype;return c.componentWillUnmount=function(){this.resetData()},c.resetData=function(){this.lastHandleRect=this.slack=null},c.runConstraints=function(t,e){var n=this.props,a=n.minConstraints,r=n.maxConstraints,o=n.lockAspectRatio;if(!a&&!r&&!o)return[t,e];if(o){var i=this.props.width/this.props.height,l=t-this.props.width,c=e-this.props.height;Math.abs(l)>Math.abs(c*i)?e=t/i:t=e*i}var s=t,u=e,d=this.slack||[0,0],p=d[0],f=d[1];return t+=p,e+=f,a&&(t=Math.max(a[0],t),e=Math.max(a[1],e)),r&&(t=Math.min(r[0],t),e=Math.min(r[1],e)),this.slack=[p+(s-t),f+(u-e)],[t,e]},c.resizeHandler=function(t,e){var n=this;return function(a,r){var o=r.node,i=r.deltaX,l=r.deltaY;"onResizeStart"===t&&n.resetData();var c=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==e&&"s"!==e,s=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==e&&"w"!==e;if(c||s){var u=e[0],d=e[e.length-1],p=o.getBoundingClientRect();if(null!=n.lastHandleRect){if("w"===d)i+=p.left-n.lastHandleRect.left;if("n"===u)l+=p.top-n.lastHandleRect.top}n.lastHandleRect=p,"w"===d&&(i=-i),"n"===u&&(l=-l);var f=n.props.width+(c?i/n.props.transformScale:0),m=n.props.height+(s?l/n.props.transformScale:0),h=n.runConstraints(f,m);f=h[0],m=h[1];var g=f!==n.props.width||m!==n.props.height,b="function"==typeof n.props[t]?n.props[t]:null;b&&!("onResize"===t&&!g)&&(null==a.persist||a.persist(),b(a,{node:o,size:{width:f,height:m},handle:e})),"onResizeStop"===t&&n.resetData()}}},c.renderResizeHandle=function(t,e){var a=this.props.handle;if(!a)return n.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t,ref:e});if("function"==typeof a)return a(t,e);var r=l({ref:e},"string"==typeof a.type?{}:{handleAxis:t});return n.cloneElement(a,r)},c.render=function(){var t=this,e=this.props,r=e.children,i=e.className,c=e.draggableOpts;e.width,e.height,e.handle,e.handleSize,e.lockAspectRatio,e.axis,e.minConstraints,e.maxConstraints,e.onResize,e.onResizeStop,e.onResizeStart;var s=e.resizeHandles;e.transformScale;var u=function(t,e){if(null==t)return{};var n,a,r={},o=Object.keys(t);for(a=0;a<o.length;a++)n=o[a],e.indexOf(n)>=0||(r[n]=t[n]);return r}(e,a);return(0,ZI.cloneElement)(r,l(l({},u),{},{className:(i?i+" ":"")+"react-resizable",children:[].concat(r.props.children,s.map((function(e){var a,r=null!=(a=t.handleRefs[e])?a:t.handleRefs[e]=n.createRef();return n.createElement(v.default.DraggableCore,o({},c,{nodeRef:r,key:"resizableHandle-"+e,onStop:t.resizeHandler("onResizeStop",e),onStart:t.resizeHandler("onResizeStart",e),onDrag:t.resizeHandler("onResize",e)}),t.renderResizeHandle(e,r))})))}))},i}(n.Component);e.default=u,u.propTypes=HR.resizableProps,u.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}})),UR=K((function(t,e){e.__esModule=!0,e.default=void 0;var n=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var i=r?Object.getOwnPropertyDescriptor(t,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=t[o]}a.default=t,n&&n.set(t,a);return a}(f.default),a=i(KR),r=i(BR),o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(t){return t&&t.__esModule?t:{default:t}}function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},c.apply(this,arguments)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var m=function(t){var e,a;function i(){for(var e,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(e=t.call.apply(t,[this].concat(a))||this).state={width:e.props.width,height:e.props.height,propsWidth:e.props.width,propsHeight:e.props.height},e.onResize=function(t,n){var a=n.size;e.props.onResize?(null==t.persist||t.persist(),e.setState(a,(function(){return e.props.onResize&&e.props.onResize(t,n)}))):e.setState(a)},e}return a=t,(e=i).prototype=Object.create(a.prototype),e.prototype.constructor=e,p(e,a),i.getDerivedStateFromProps=function(t,e){return e.propsWidth!==t.width||e.propsHeight!==t.height?{width:t.width,height:t.height,propsWidth:t.width,propsHeight:t.height}:null},i.prototype.render=function(){var t=this.props,e=t.handle,a=t.handleSize;t.onResize;var i=t.onResizeStart,l=t.onResizeStop,s=t.draggableOpts,d=t.minConstraints,p=t.maxConstraints,f=t.lockAspectRatio,m=t.axis;t.width,t.height;var h=t.resizeHandles,g=t.style,b=t.transformScale,v=function(t,e){if(null==t)return{};var n,a,r={},o=Object.keys(t);for(a=0;a<o.length;a++)n=o[a],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,o);return n.createElement(r.default,{axis:m,draggableOpts:s,handle:e,handleSize:a,height:this.state.height,lockAspectRatio:f,maxConstraints:p,minConstraints:d,onResizeStart:i,onResize:this.onResize,onResizeStop:l,resizeHandles:h,transformScale:b,width:this.state.width},n.createElement("div",c({},v,{style:u(u({},g),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},i}(n.Component);e.default=m,m.propTypes=u(u({},HR.resizableProps),{},{children:a.default.element})})),WR=BR.default;UR.default;const YR=t=>{const{onResize:e,width:a,...r}=t;return a?n.jsx(WR,{width:a,height:0,handle:n.jsx("span",{className:"react-resizable-handle",onClick:t=>{t.stopPropagation()}}),onResize:e,draggableOpts:{enableUserSelectHack:!1},children:n.jsx("th",{...r})}):n.jsx("th",{...r})};var $R,qR=t.createContext({dragDropManager:void 0});function GR(t,e){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];if("production"!==process.env.NODE_ENV&&void 0===e)throw new Error("invariant requires an error message argument");if(!t){var o;if(void 0===e)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;(o=new Error(e.replace(/%s/g,(function(){return a[i++]})))).name="Invariant Violation"}throw o.framesToPop=1,o}}!function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"}($R||($R={}));var XR="dnd-core/INIT_COORDS",ZR="dnd-core/BEGIN_DRAG",JR="dnd-core/PUBLISH_DRAG_SOURCE",QR="dnd-core/HOVER",tj="dnd-core/DROP",ej="dnd-core/END_DRAG";function nj(t,e){return{type:XR,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function aj(t){return aj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aj(t)}function rj(t,e,n){return e.split(".").reduce((function(t,e){return t&&t[e]?t[e]:n||null}),t)}function oj(t){return"object"===aj(t)}var ij={type:XR,payload:{clientOffset:null,sourceClientOffset:null}};function lj(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},a=n.publishSource,r=void 0===a||a,o=n.clientOffset,i=n.getSourceClientOffset,l=t.getMonitor(),c=t.getRegistry();t.dispatch(nj(o)),function(t,e,n){GR(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach((function(t){GR(n.getSource(t),"Expected sourceIds to be registered.")}))}(e,l,c);var s=function(t,e){for(var n=null,a=t.length-1;a>=0;a--)if(e.canDragSource(t[a])){n=t[a];break}return n}(e,l);if(null!==s){var u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(t){GR("function"==typeof t,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(s)}t.dispatch(nj(o,u));var d=c.getSource(s).beginDrag(l,s);if(null!=d){!function(t){GR(oj(t),"Item must be an object.")}(d),c.pinSource(s);var p=c.getSourceType(s);return{type:ZR,payload:{itemType:p,item:d,sourceId:s,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}else t.dispatch(ij)}}function cj(t){return function(){if(t.getMonitor().isDragging())return{type:JR}}}function sj(t,e){return null===e?null===t:Array.isArray(t)?t.some((function(t){return t===e})):t===e}function uj(t){return function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(t){GR(Array.isArray(t),"Expected targetIds to be an array.")}(e);var a=e.slice(0),r=t.getMonitor(),o=t.getRegistry();return function(t,e,n){GR(e.isDragging(),"Cannot call hover while not dragging."),GR(!e.didDrop(),"Cannot call hover after drop.");for(var a=0;a<t.length;a++){var r=t[a];GR(t.lastIndexOf(r)===a,"Expected targetIds to be unique in the passed array."),GR(n.getTarget(r),"Expected targetIds to be registered.")}}(a,r,o),function(t,e,n){for(var a=t.length-1;a>=0;a--){var r=t[a];sj(e.getTargetType(r),n)||t.splice(a,1)}}(a,o,r.getItemType()),function(t,e,n){t.forEach((function(t){n.getTarget(t).hover(e,t)}))}(a,r,o),{type:QR,payload:{targetIds:a,clientOffset:n||null}}}}function dj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function pj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dj(Object(n),!0).forEach((function(e){fj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mj(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getMonitor(),a=t.getRegistry();!function(t){GR(t.isDragging(),"Cannot call drop while not dragging."),GR(!t.didDrop(),"Cannot call drop twice during one drag operation.")}(n);var r=function(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}(n);r.forEach((function(r,o){var i=function(t,e,n,a){var r=n.getTarget(t),o=r?r.drop(a,t):void 0;(function(t){GR(void 0===t||oj(t),"Drop result must either be an object or undefined.")})(o),void 0===o&&(o=0===e?{}:a.getDropResult());return o}(r,o,a,n),l={type:tj,payload:{dropResult:pj(pj({},e),i)}};t.dispatch(l)}))}}function hj(t){return function(){var e=t.getMonitor(),n=t.getRegistry();!function(t){GR(t.isDragging(),"Cannot call endDrag while not dragging.")}(e);var a=e.getSourceId();null!=a&&(n.getSource(a,!0).endDrag(e,a),n.unpinSource());return{type:ej}}}function gj(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function bj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vj=function(){function t(e,n){var a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),bj(this,"store",void 0),bj(this,"monitor",void 0),bj(this,"backend",void 0),bj(this,"isSetUp",!1),bj(this,"handleRefCountChange",(function(){var t=a.store.getState().refCount>0;a.backend&&(t&&!a.isSetUp?(a.backend.setup(),a.isSetUp=!0):!t&&a.isSetUp&&(a.backend.teardown(),a.isSetUp=!1))})),this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}var e,n,a;return e=t,n=[{key:"receiveBackend",value:function(t){this.backend=t}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var t=this,e=this.store.dispatch,n=function(t){return{beginDrag:lj(t),publishDragSource:cj(t),hover:uj(t),drop:mj(t),endDrag:hj(t)}}(this);return Object.keys(n).reduce((function(a,r){var o,i=n[r];return a[r]=(o=i,function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];var i=o.apply(t,a);void 0!==i&&e(i)}),a}),{})}},{key:"dispatch",value:function(t){this.store.dispatch(t)}}],n&&gj(e.prototype,n),a&&gj(e,a),t}();function yj(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var xj="function"==typeof Symbol&&Symbol.observable||"@@observable",wj=function(){return Math.random().toString(36).substring(7).split("").join(".")},kj={INIT:"@@redux/INIT"+wj(),REPLACE:"@@redux/REPLACE"+wj(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wj()}};function Cj(t){if(void 0===t)return"undefined";if(null===t)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(function(t){return t instanceof Date||"function"==typeof t.toDateString&&"function"==typeof t.getDate&&"function"==typeof t.setDate}(t))return"date";if(function(t){return t instanceof Error||"string"==typeof t.message&&t.constructor&&"number"==typeof t.constructor.stackTraceLimit}(t))return"error";var n=function(t){return"function"==typeof t.constructor?t.constructor.name:null}(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Ej(t){var e=typeof t;return"production"!==process.env.NODE_ENV&&(e=Cj(t)),e}function Sj(t,e,n){var a;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?yj(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?yj(1):"Expected the enhancer to be a function. Instead, received: '"+Ej(n)+"'");return n(Sj)(t,e)}if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?yj(2):"Expected the root reducer to be a function. Instead, received: '"+Ej(t)+"'");var r=t,o=e,i=[],l=i,c=!1;function s(){l===i&&(l=i.slice())}function u(){if(c)throw new Error("production"===process.env.NODE_ENV?yj(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(t){if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?yj(4):"Expected the listener to be a function. Instead, received: '"+Ej(t)+"'");if(c)throw new Error("production"===process.env.NODE_ENV?yj(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var e=!0;return s(),l.push(t),function(){if(e){if(c)throw new Error("production"===process.env.NODE_ENV?yj(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");e=!1,s();var n=l.indexOf(t);l.splice(n,1),i=null}}}function p(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error("production"===process.env.NODE_ENV?yj(7):"Actions must be plain objects. Instead, the actual type was: '"+Ej(t)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(void 0===t.type)throw new Error("production"===process.env.NODE_ENV?yj(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error("production"===process.env.NODE_ENV?yj(9):"Reducers may not dispatch actions.");try{c=!0,o=r(o,t)}finally{c=!1}for(var e=i=l,n=0;n<e.length;n++){(0,e[n])()}return t}return p({type:kj.INIT}),(a={dispatch:p,subscribe:d,getState:u,replaceReducer:function(t){if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?yj(10):"Expected the nextReducer to be a function. Instead, received: '"+Ej(t));r=t,p({type:kj.REPLACE})}})[xj]=function(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error("production"===process.env.NODE_ENV?yj(11):"Expected the observer to be an object. Instead, received: '"+Ej(t)+"'");function n(){t.next&&t.next(u())}return n(),{unsubscribe:e(n)}}})[xj]=function(){return this},t},a}var Oj=function(t,e){return t===e};function Nj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function Pj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Nj(Object(n),!0).forEach((function(e){Tj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Tj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Dj={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ij(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Dj,a=arguments.length>1?arguments[1]:void 0,r=a.payload;switch(a.type){case XR:case ZR:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case QR:return t=n.clientOffset,e=r.clientOffset,!t&&!e||t&&e&&t.x===e.x&&t.y===e.y?n:Pj(Pj({},n),{},{clientOffset:r.clientOffset});case ej:case tj:return Dj;default:return n}}var Rj="dnd-core/ADD_SOURCE",jj="dnd-core/ADD_TARGET",Mj="dnd-core/REMOVE_SOURCE",zj="dnd-core/REMOVE_TARGET";function Lj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function Aj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lj(Object(n),!0).forEach((function(e){_j(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _j(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Fj={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Vj(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fj,a=arguments.length>1?arguments[1]:void 0,r=a.payload;switch(a.type){case ZR:return Aj(Aj({},n),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case JR:return Aj(Aj({},n),{},{isSourcePublic:!0});case QR:return Aj(Aj({},n),{},{targetIds:r.targetIds});case zj:return-1===n.targetIds.indexOf(r.targetId)?n:Aj(Aj({},n),{},{targetIds:(t=n.targetIds,e=r.targetId,t.filter((function(t){return t!==e})))});case tj:return Aj(Aj({},n),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case ej:return Aj(Aj({},n),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function Kj(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case Rj:case jj:return t+1;case Mj:case zj:return t-1;default:return t}}var Hj=[],Bj=[];function Uj(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case QR:break;case Rj:case jj:case zj:case Mj:return Hj;default:return Bj}var e=t.payload,n=e.targetIds,a=void 0===n?[]:n,r=e.prevTargetIds,o=void 0===r?[]:r,i=function(t,e){var n=new Map,a=function(t){n.set(t,n.has(t)?n.get(t)+1:1)};t.forEach(a),e.forEach(a);var r=[];return n.forEach((function(t,e){1===t&&r.push(e)})),r}(a,o),l=i.length>0||!function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Oj;if(t.length!==e.length)return!1;for(var a=0;a<t.length;++a)if(!n(t[a],e[a]))return!1;return!0}(a,o);if(!l)return Hj;var c=o[o.length-1],s=a[a.length-1];return c!==s&&(c&&i.push(c),s&&i.push(s)),i}function Wj(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function Yj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function $j(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yj(Object(n),!0).forEach((function(e){qj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function qj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gj(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:Uj(t.dirtyHandlerIds,{type:e.type,payload:$j($j({},e.payload),{},{prevTargetIds:rj(t,"dragOperation.targetIds",[])})}),dragOffset:Ij(t.dragOffset,e),refCount:Kj(t.refCount,e),dragOperation:Vj(t.dragOperation,e),stateId:Wj(t.stateId)}}function Xj(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Zj(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function Jj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Hj.__IS_NONE__=!0,Bj.__IS_ALL__=!0;var Qj=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Jj(this,"store",void 0),Jj(this,"registry",void 0),this.store=e,this.registry=n}var e,n,a;return e=t,n=[{key:"subscribeToStateChange",value:function(t){var e=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;GR("function"==typeof t,"listener must be a function."),GR(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var a=this.store.getState().stateId;return this.store.subscribe((function(){var r=e.store.getState(),o=r.stateId;try{var i=o===a||o===a+1&&!function(t,e){if(t===Hj)return!1;if(t===Bj||void 0===e)return!0;var n,a=(n=t,e.filter((function(t){return n.indexOf(t)>-1})));return a.length>0}(r.dirtyHandlerIds,n);i||t()}finally{a=o}}))}},{key:"subscribeToOffsetChange",value:function(t){var e=this;GR("function"==typeof t,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var a=e.store.getState().dragOffset;a!==n&&(n=a,t())}))}},{key:"canDragSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t);return GR(e,"Expected to find a valid source. sourceId=".concat(t)),!this.isDragging()&&e.canDrag(this,t)}},{key:"canDropOnTarget",value:function(t){if(!t)return!1;var e=this.registry.getTarget(t);return GR(e,"Expected to find a valid target. targetId=".concat(t)),!(!this.isDragging()||this.didDrop())&&sj(this.registry.getTargetType(t),this.getItemType())&&e.canDrop(this,t)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t,!0);return GR(e,"Expected to find a valid source. sourceId=".concat(t)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(t)===this.getItemType()&&e.isDragging(this,t)}},{key:"isOverTarget",value:function(t){if(!t)return!1;var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(t),a=this.getItemType();if(a&&!sj(n,a))return!1;var r=this.getTargetIds();if(!r.length)return!1;var o=r.indexOf(t);return e?o===r.length-1:o>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return t=this.store.getState().dragOffset,e=t.clientOffset,n=t.initialClientOffset,a=t.initialSourceClientOffset,e&&n&&a?Xj(function(t,e){return{x:t.x+e.x,y:t.y+e.y}}(e,a),n):null;var t,e,n,a}},{key:"getDifferenceFromInitialOffset",value:function(){return t=this.store.getState().dragOffset,e=t.clientOffset,n=t.initialClientOffset,e&&n?Xj(e,n):null;var t,e,n}}],n&&Zj(e.prototype,n),a&&Zj(e,a),t}(),tM=0;function eM(t){return eM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eM(t)}function nM(t,e){e&&Array.isArray(t)?t.forEach((function(t){return nM(t,!1)})):GR("string"==typeof t||"symbol"===eM(t),e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const aM="undefined"!=typeof global?global:self,rM=aM.MutationObserver||aM.WebKitMutationObserver;function oM(t){return function(){const e=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(e),clearInterval(n),t()}}}const iM="function"==typeof rM?function(t){let e=1;const n=new rM(t),a=document.createTextNode("");return n.observe(a,{characterData:!0}),function(){e=-e,a.data=e}}:oM;class lM{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,e){this.onError=t,this.release=e,this.task=null}}const cM=new class{enqueueTask(t){const{queue:e,requestFlush:n}=this;e.length||(n(),this.flushing=!0),e[e.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const e=this.index;if(this.index++,t[e].call(),this.index>this.capacity){for(let e=0,n=t.length-this.index;e<n;e++)t[e]=t[e+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=iM(this.flush),this.requestErrorThrow=oM((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},sM=new class{create(t){const e=this.freeTasks,n=e.length?e.pop():new lM(this.onError,(t=>e[e.length]=t));return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}(cM.registerPendingError);function uM(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function dM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pM(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return fM(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fM(t,e)}(t,e)||function(){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 fM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function mM(t){var e=(tM++).toString();switch(t){case $R.SOURCE:return"S".concat(e);case $R.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function hM(t){switch(t[0]){case"S":return $R.SOURCE;case"T":return $R.TARGET;default:GR(!1,"Cannot parse handler ID: ".concat(t))}}function gM(t,e){var n=t.entries(),a=!1;do{var r=n.next(),o=r.done;if(pM(r.value,2)[1]===e)return!0;a=!!o}while(!a);return!1}var bM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),dM(this,"types",new Map),dM(this,"dragSources",new Map),dM(this,"dropTargets",new Map),dM(this,"pinnedSourceId",null),dM(this,"pinnedSource",null),dM(this,"store",void 0),this.store=e}var e,n,a;return e=t,n=[{key:"addSource",value:function(t,e){nM(t),function(t){GR("function"==typeof t.canDrag,"Expected canDrag to be a function."),GR("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),GR("function"==typeof t.endDrag,"Expected endDrag to be a function.")}(e);var n=this.addHandler($R.SOURCE,t,e);return this.store.dispatch(function(t){return{type:Rj,payload:{sourceId:t}}}(n)),n}},{key:"addTarget",value:function(t,e){nM(t,!0),function(t){GR("function"==typeof t.canDrop,"Expected canDrop to be a function."),GR("function"==typeof t.hover,"Expected hover to be a function."),GR("function"==typeof t.drop,"Expected beginDrag to be a function.")}(e);var n=this.addHandler($R.TARGET,t,e);return this.store.dispatch(function(t){return{type:jj,payload:{targetId:t}}}(n)),n}},{key:"containsHandler",value:function(t){return gM(this.dragSources,t)||gM(this.dropTargets,t)}},{key:"getSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return GR(this.isSourceId(t),"Expected a valid source ID."),e&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}},{key:"getTarget",value:function(t){return GR(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}},{key:"getSourceType",value:function(t){return GR(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}},{key:"getTargetType",value:function(t){return GR(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}},{key:"isSourceId",value:function(t){return hM(t)===$R.SOURCE}},{key:"isTargetId",value:function(t){return hM(t)===$R.TARGET}},{key:"removeSource",value:function(t){var e,n=this;GR(this.getSource(t),"Expected an existing source."),this.store.dispatch(function(t){return{type:Mj,payload:{sourceId:t}}}(t)),e=function(){n.dragSources.delete(t),n.types.delete(t)},cM.enqueueTask(sM.create(e))}},{key:"removeTarget",value:function(t){GR(this.getTarget(t),"Expected an existing target."),this.store.dispatch(function(t){return{type:zj,payload:{targetId:t}}}(t)),this.dropTargets.delete(t),this.types.delete(t)}},{key:"pinSource",value:function(t){var e=this.getSource(t);GR(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e}},{key:"unpinSource",value:function(){GR(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(t,e,n){var a=mM(t);return this.types.set(a,e),t===$R.SOURCE?this.dragSources.set(a,n):t===$R.TARGET&&this.dropTargets.set(a,n),a}}],n&&uM(e.prototype,n),a&&uM(e,a),t}();function vM(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=function(t){var e="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return Sj(Gj,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}(arguments.length>3&&void 0!==arguments[3]&&arguments[3]),r=new Qj(a,new bM(a)),o=new vj(a,r),i=t(o,e,n);return o.receiveBackend(i),o}var yM=["children"];function xM(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return wM(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wM(t,e)}(t,e)||function(){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 wM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function kM(t,e){if(null==t)return{};var n,a,r=function(t,e){if(null==t)return{};var n,a,r={},o=Object.keys(t);for(a=0;a<o.length;a++)n=o[a],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var CM=0,EM=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),SM=t.memo((function(e){var a=e.children,r=function(t){if("manager"in t){return[{dragDropManager:t.manager},!1]}var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:OM(),n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=e;r[EM]||(r[EM]={dragDropManager:vM(t,e,n,a)});return r[EM]}(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}(kM(e,yM)),o=xM(r,2),i=o[0],l=o[1];return t.useEffect((function(){if(l){var t=OM();return++CM,function(){0==--CM&&(t[EM]=null)}}}),[]),n.jsx(qR.Provider,Object.assign({value:i},{children:a}),void 0)}));function OM(){return"undefined"!=typeof global?global:window}function NM(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function PM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var TM=!1,DM=!1,IM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),PM(this,"internalMonitor",void 0),PM(this,"sourceId",null),this.internalMonitor=e.getMonitor()}var e,n,a;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.sourceId=t}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){GR(!TM,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return TM=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{TM=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;GR(!DM,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return DM=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{DM=!1}}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"isDraggingSource",value:function(t){return this.internalMonitor.isDraggingSource(t)}},{key:"isOverTarget",value:function(t,e){return this.internalMonitor.isOverTarget(t,e)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(t){return this.internalMonitor.subscribeToOffsetChange(t)}},{key:"canDragSource",value:function(t){return this.internalMonitor.canDragSource(t)}},{key:"canDropOnTarget",value:function(t){return this.internalMonitor.canDropOnTarget(t)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&NM(e.prototype,n),a&&NM(e,a),t}();function RM(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function jM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var MM=!1,zM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),jM(this,"internalMonitor",void 0),jM(this,"targetId",null),this.internalMonitor=e.getMonitor()}var e,n,a;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.targetId=t}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;GR(!MM,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return MM=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{MM=!1}}},{key:"isOver",value:function(t){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,t)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&RM(e.prototype,n),a&&RM(e,a),t}();function LM(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t.isValidElement(n)){var r=n;return e(r,a),r}var o=n;!function(t){if("string"!=typeof t.type){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}(o);var i=a?function(t){return e(t,a)}:e;return function(e,n){var a=e.ref;return GR("string"!=typeof a,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),a?t.cloneElement(e,{ref:function(t){_M(a,t),_M(n,t)}}):t.cloneElement(e,{ref:n})}(o,i)}}function AM(t){var e={};return Object.keys(t).forEach((function(n){var a=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{var r=LM(a);e[n]=function(){return r}}})),e}function _M(t,e){"function"==typeof t?t(e):t.current=e}function FM(t){return FM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},FM(t)}function VM(t){return null!==t&&"object"===FM(t)&&Object.prototype.hasOwnProperty.call(t,"current")}function KM(t,e,n,a){var r=n?n.call(a,t,e):void 0;if(void 0!==r)return!!r;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var o=Object.keys(t),i=Object.keys(e);if(o.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(e),c=0;c<o.length;c++){var s=o[c];if(!l(s))return!1;var u=t[s],d=e[s];if(!1===(r=n?n.call(a,u,d,s):void 0)||void 0===r&&u!==d)return!1}return!0}function HM(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function BM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var UM=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),BM(this,"hooks",AM({dragSource:function(t,e){n.clearDragSource(),n.dragSourceOptions=e||null,VM(t)?n.dragSourceRef=t:n.dragSourceNode=t,n.reconnectDragSource()},dragPreview:function(t,e){n.clearDragPreview(),n.dragPreviewOptions=e||null,VM(t)?n.dragPreviewRef=t:n.dragPreviewNode=t,n.reconnectDragPreview()}})),BM(this,"handlerId",null),BM(this,"dragSourceRef",null),BM(this,"dragSourceNode",void 0),BM(this,"dragSourceOptionsInternal",null),BM(this,"dragSourceUnsubscribe",void 0),BM(this,"dragPreviewRef",null),BM(this,"dragPreviewNode",void 0),BM(this,"dragPreviewOptionsInternal",null),BM(this,"dragPreviewUnsubscribe",void 0),BM(this,"lastConnectedHandlerId",null),BM(this,"lastConnectedDragSource",null),BM(this,"lastConnectedDragSourceOptions",null),BM(this,"lastConnectedDragPreview",null),BM(this,"lastConnectedDragPreviewOptions",null),BM(this,"backend",void 0),this.backend=e}var e,n,a;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(t){this.dragSourceOptionsInternal=t}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(t){this.dragPreviewOptionsInternal=t}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var t=this.dragSource,e=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();e&&this.disconnectDragSource(),this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)):this.lastConnectedDragSource=t)}},{key:"reconnectDragPreview",value:function(){var t=this.dragPreview,e=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();e&&this.disconnectDragPreview(),this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!KM(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!KM(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}])&&HM(e.prototype,n),a&&HM(e,a),t}();function WM(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function YM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $M=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),YM(this,"hooks",AM({dropTarget:function(t,e){n.clearDropTarget(),n.dropTargetOptions=e,VM(t)?n.dropTargetRef=t:n.dropTargetNode=t,n.reconnect()}})),YM(this,"handlerId",null),YM(this,"dropTargetRef",null),YM(this,"dropTargetNode",void 0),YM(this,"dropTargetOptionsInternal",null),YM(this,"unsubscribeDropTarget",void 0),YM(this,"lastConnectedHandlerId",null),YM(this,"lastConnectedDropTarget",null),YM(this,"lastConnectedDropTargetOptions",null),YM(this,"backend",void 0),this.backend=e}var e,n,a;return e=t,(n=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();var e=this.dropTarget;this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=e,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,e,this.dropTargetOptions)):this.lastConnectedDropTarget=e)}},{key:"receiveHandlerId",value:function(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(t){this.dropTargetOptionsInternal=t}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!KM(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}])&&WM(e.prototype,n),a&&WM(e,a),t}();var qM="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function GM(t){return GM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},GM(t)}function XM(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function ZM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var JM=function(){function t(e,n,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),ZM(this,"spec",void 0),ZM(this,"monitor",void 0),ZM(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=a}var e,n,a;return e=t,(n=[{key:"beginDrag",value:function(){var t,e=this.spec,n=this.monitor;return null!==(t="object"===GM(e.item)?e.item:"function"==typeof e.item?e.item(n):{})&&void 0!==t?t:null}},{key:"canDrag",value:function(){var t=this.spec,e=this.monitor;return"boolean"==typeof t.canDrag?t.canDrag:"function"!=typeof t.canDrag||t.canDrag(e)}},{key:"isDragging",value:function(t,e){var n=this.spec,a=this.monitor,r=n.isDragging;return r?r(a):e===t.getSourceId()}},{key:"endDrag",value:function(){var t=this.spec,e=this.monitor,n=this.connector,a=t.end;a&&a(e.getItem(),e),n.reconnect()}}])&&XM(e.prototype,n),a&&XM(e,a),t}();function QM(){var e=t.useContext(qR).dragDropManager;return GR(null!=e,"Expected drag drop context"),e}function tz(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ez(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ez(t,e)}(t,e)||function(){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 ez(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function nz(e,n,a){var r=QM(),o=function(e,n,a){var r=t.useMemo((function(){return new JM(e,n,a)}),[n,a]);return t.useEffect((function(){r.spec=e}),[e]),r}(e,n,a),i=function(e){return t.useMemo((function(){var t=e.type;return GR(null!=t,"spec.type must be defined"),t}),[e])}(e);qM((function(){if(null!=i){var t=function(t,e,n){var a=n.getRegistry(),r=a.addSource(t,e);return[r,function(){return a.removeSource(r)}]}(i,o,r),e=tz(t,2),l=e[0],c=e[1];return n.receiveHandlerId(l),a.receiveHandlerId(l),c}}),[r,n,a,o,i])}function az(t){return function(t){if(Array.isArray(t))return rz(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return rz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rz(t,e)}(t)||function(){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 rz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function oz(e,n){var a=az(n||[]);return null==n&&"function"!=typeof e&&a.push(e),t.useMemo((function(){return"function"==typeof e?e():e}),a)}var iz=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var a,r,o;if(Array.isArray(e)){if((a=e.length)!=n.length)return!1;for(r=a;0!=r--;)if(!t(e[r],n[r]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((a=(o=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(r=a;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,o[r]))return!1;for(r=a;0!=r--;){var i=o[r];if(!t(e[i],n[i]))return!1}return!0}return e!=e&&n!=n};function lz(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return cz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cz(t,e)}(t,e)||function(){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 cz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function sz(e,n,a){var r=lz(t.useState((function(){return n(e)})),2),o=r[0],i=r[1],l=t.useCallback((function(){var t=n(e);iz(o,t)||(i(t),a&&a())}),[o,e,a]);return qM(l),[o,l]}function uz(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return dz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dz(t,e)}(t,e)||function(){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 dz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function pz(t,e,n){return function(t,e,n){var a=uz(sz(t,e,n),2),r=a[0],o=a[1];return qM((function(){var e=t.getHandlerId();if(null!=e)return t.subscribeToStateChange(o,{handlerIds:[e]})}),[t,o]),r}(e,t||function(){return{}},(function(){return n.reconnect()}))}function fz(e){return t.useMemo((function(){return e.hooks.dragSource()}),[e])}function mz(e){return t.useMemo((function(){return e.hooks.dragPreview()}),[e])}function hz(e,n){var a=oz(e,n);GR(!a.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var r,o=(r=QM(),t.useMemo((function(){return new IM(r)}),[r])),i=function(e,n){var a=QM(),r=t.useMemo((function(){return new UM(a.getBackend())}),[a]);return qM((function(){return r.dragSourceOptions=e||null,r.reconnect(),function(){return r.disconnectDragSource()}}),[r,e]),qM((function(){return r.dragPreviewOptions=n||null,r.reconnect(),function(){return r.disconnectDragPreview()}}),[r,n]),r}(a.options,a.previewOptions);return nz(a,o,i),[pz(a.collect,o,i),fz(i),mz(i)]}function gz(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function bz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vz=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),bz(this,"spec",void 0),bz(this,"monitor",void 0),this.spec=e,this.monitor=n}var e,n,a;return e=t,(n=[{key:"canDrop",value:function(){var t=this.spec,e=this.monitor;return!t.canDrop||t.canDrop(e.getItem(),e)}},{key:"hover",value:function(){var t=this.spec,e=this.monitor;t.hover&&t.hover(e.getItem(),e)}},{key:"drop",value:function(){var t=this.spec,e=this.monitor;if(t.drop)return t.drop(e.getItem(),e)}}])&&gz(e.prototype,n),a&&gz(e,a),t}();function yz(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(o.push(a.value),!e||o.length!==e);i=!0);}catch(t){l=!0,r=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return xz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xz(t,e)}(t,e)||function(){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 xz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function wz(e,n,a){var r=QM(),o=function(e,n){var a=t.useMemo((function(){return new vz(e,n)}),[n]);return t.useEffect((function(){a.spec=e}),[e]),a}(e,n),i=function(e){var n=e.accept;return t.useMemo((function(){return GR(null!=e.accept,"accept must be defined"),Array.isArray(n)?n:[n]}),[n])}(e);qM((function(){var t=function(t,e,n){var a=n.getRegistry(),r=a.addTarget(t,e);return[r,function(){return a.removeTarget(r)}]}(i,o,r),e=yz(t,2),l=e[0],c=e[1];return n.receiveHandlerId(l),a.receiveHandlerId(l),c}),[r,n,o,a,i.map((function(t){return t.toString()})).join("|")])}function kz(e){return t.useMemo((function(){return e.hooks.dropTarget()}),[e])}function Cz(e,n){var a,r=oz(e,n),o=(a=QM(),t.useMemo((function(){return new zM(a)}),[a])),i=function(e){var n=QM(),a=t.useMemo((function(){return new $M(n.getBackend())}),[n]);return qM((function(){return a.dropTargetOptions=e||null,a.reconnect(),function(){return a.disconnectDropTarget()}}),[e]),a}(r.options);return wz(r,o,i),[pz(r.collect,o,i),kz(i)]}k('.drop-over-downward td{border-bottom:2px dashed #5860f8!important}.drop-over-upward td{border-top:2px dashed #5860f8!important}.editable-cell-value-wrap{cursor:pointer;min-height:20px;min-width:50px;position:relative}.editable-row:hover .editable-cell-value-wrap:after,[data-theme=dark] .editable-row:hover .editable-cell-value-wrap:after{border:1px dashed #5860f8;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}');const{Option:Ez}=Xd,Sz=f.default.createContext(null),Oz=({vc:e,open:a,index:r,moveRow:o,className:i,style:l,...c})=>{const[s]=Nk.useForm(),u=t.useRef(null),[{isOver:d,dropClassName:p},f]=Cz({accept:"DraggableBodyRow",collect:t=>{const{index:e}=t.getItem()||{};return e===r?{}:{isOver:t.isOver(),dropClassName:e<r?" drop-over-downward":" drop-over-upward"}},drop:t=>{o(t.index,r)}}),[,m]=hz({type:"DraggableBodyRow",item:{index:r},collect:t=>({isDragging:t.isDragging()})});a&&f(m(u));const h={ref:u,className:`${i}${d?p:""}`,style:{cursor:a?"move":"auto",...l},...c};return n.jsx(Nk,{size:"small",component:!1,form:s,children:n.jsx(Sz.Provider,{value:s,children:e?e.body.row(h,u):n.jsx("tr",{...h})})})},Nz=({vc:e,columns:a,record:r,recordIndex:o,dataIndex:i,title:l,rowSpanNum:c,colSpanNum:s,rowSpan:u,colSpan:d,editable:p,inputType:f,valueType:h,valueEnum:g,recordSelectField:b,controlRender:v,render:x,formChange:w,remoteConfig:k,children:C,formItemProps:E,handleSave:S,...O})=>{const N=t.useContext(Sz),[P,T]=t.useState(!1),[D,I]=t.useState(!1),[R,j]=t.useState({}),M=t.useRef(null);t.useEffect((()=>{P&&M.current.focus()}),[P]),t.useEffect((()=>{"RemoteSearch"===h&&r&&r[i]&&k?.remoteApi&&z(void 0,i,r,k?.remoteApi)}),[k?.remoteApi]);const z=(t,e,n,a)=>{a&&(I(!0),a(t,n).then((t=>{I(!1),e&&j({[e]:t})})))},L=()=>{A()},A=()=>{T(!1)},_=()=>{void 0!==r[i]&&null!==r[i]&&""!==r[i]&&("DatePicker"!==h&&"DateTimePicker"!==h||(r[i]=y.default(r[i])),"status"===i&&(r[i]=String(r[i]))),T(!P),N.setFieldsValue({[i]:r[i]})},F=t=>{const e={DateTimePicker:"YYYY-MM-DD HH:mm:ss",DatePicker:"YYYY-MM-DD"};return Object.keys(e).includes(h)&&t[i]&&(t[i]=t[i].format(e[h])),t},V=(t,e)=>{let a=null;const o=(t,e)=>{let n="";const a=function(t){for(let e of t)if(e)if(WD({data:e,type:"String"}))n+=e;else{const t=e.props.children;WD({data:t,type:"Object"})&&a([t]),WD({data:t,type:"Array"})&&a(t),WD({data:t,type:"String"})&&(n+=t)}};return a([e.children]),n.toLowerCase().indexOf(t.toLowerCase())>=0},l=t=>{if(m.default.isArray(t))return t.map(((t,e)=>n.jsx(Ez,{value:t.value,children:t.label},e)))};switch(t){case"RecordSelect":a=n.jsx(Xd,{ref:M,open:P,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:K,onBlur:L,optionFilterProp:"children",filterOption:o,children:l(r[b])});break;case"Select":a=n.jsx(Xd,{ref:M,open:P,dropdownMatchSelectWidth:!1,onChange:K,onBlur:L,placeholder:e,children:l(g)});break;case"DatePicker":a=n.jsx(kw,{ref:M,open:P,onChange:K,onBlur:L,placeholder:e});break;case"DateTimePicker":a=n.jsx(kw,{ref:M,open:P,onChange:K,onBlur:L,placeholder:e,showTime:!0});break;case"AutoComplete":a=n.jsx(Xd,{ref:M,open:P,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:K,onBlur:L,optionFilterProp:"children",filterOption:o,children:l(g)});break;case"RemoteSearch":let t=g;R[i]&&(t=R[i]),a=n.jsx(Xd,{ref:M,open:P,mode:k.remoteMode,placeholder:e,notFoundContent:D?n.jsx(sC,{size:"small"}):null,dropdownMatchSelectWidth:!1,filterOption:!1,allowClear:!0,showSearch:!0,onChange:K,onBlur:L,onFocus:()=>z(void 0,i,r,k.remoteApi),onSearch:t=>z(t,i,r,k.remoteApi),children:i&&l(t)});break;default:a=n.jsx(Xy,{ref:M,onPressEnter:K,onBlur:K,placeholder:e,type:f||"text"})}return a},K=async()=>{try{const t=await N.validateFields();let e={...r,...t};e[i]=e[i]||void 0,e=F(e),w&&(e=await w(e)||e),r[i]!==e[i]&&S(e,i),A()}catch(t){console.log("保存表单字段失败:",t)}};let H=C;const B=x?x(r[i],r,o):(()=>{if(h&&i){if(g&&("Select"===h||"AutoComplete"===h))return YD(g,r[i]);if("RemoteSearch"===h&&R[i])return YD(R[i],r[i]);if(r[b]&&"RecordSelect"===h)return YD(r[b],r[i]);if(y.default.isMoment(r[i]))return F(r)[i]}return C})();H=p?P?n.jsx(Nk.Item,{style:{margin:0},name:i,rules:E?E.rules:void 0,children:V(h,l)}):n.jsx("div",{className:"editable-cell-value-wrap",onClick:_,children:B}):B,v&&(H=v(r,H));const U=(t,a)=>e?n.jsx(e.body.cell,{...t,children:a}):n.jsx("td",{...t,children:a});return u||d?U({...O,rowSpan:u,colSpan:d,title:r&&r[i]},H):0!==c&&0!==s?U({...O,rowSpan:c,colSpan:u,title:r&&r[i]},H):null};function Pz(t){var e=null;return function(){return null==e&&(e=t()),e}}function Tz(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function Dz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Iz=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Dz(this,"entered",[]),Dz(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}var e,n,a;return e=t,n=[{key:"enter",value:function(t){var e=this,n=this.entered.length;return this.entered=function(t,e){var n=new Set,a=function(t){return n.add(t)};t.forEach(a),e.forEach(a);var r=[];return n.forEach((function(t){return r.push(t)})),r}(this.entered.filter((function(n){return e.isNodeInDocument(n)&&(!n.contains||n.contains(t))})),[t]),0===n&&this.entered.length>0}},{key:"leave",value:function(t){var e,n,a=this.entered.length;return this.entered=(e=this.entered.filter(this.isNodeInDocument),n=t,e.filter((function(t){return t!==n}))),a>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}],n&&Tz(e.prototype,n),a&&Tz(e,a),t}(),Rz=Pz((function(){return/firefox/i.test(navigator.userAgent)})),jz=Pz((function(){return Boolean(window.safari)}));function Mz(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function zz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Lz=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),zz(this,"xs",void 0),zz(this,"ys",void 0),zz(this,"c1s",void 0),zz(this,"c2s",void 0),zz(this,"c3s",void 0);for(var a=e.length,r=[],o=0;o<a;o++)r.push(o);r.sort((function(t,n){return e[t]<e[n]?-1:1}));for(var i,l,c=[],s=[],u=0;u<a-1;u++)i=e[u+1]-e[u],l=n[u+1]-n[u],c.push(i),s.push(l/i);for(var d=[s[0]],p=0;p<c.length-1;p++){var f=s[p],m=s[p+1];if(f*m<=0)d.push(0);else{i=c[p];var h=c[p+1],g=i+h;d.push(3*g/((g+h)/f+(g+i)/m))}}d.push(s[s.length-1]);for(var b,v=[],y=[],x=0;x<d.length-1;x++){b=s[x];var w=d[x],k=1/c[x],C=w+d[x+1]-b-b;v.push((b-w-C)*k),y.push(C*k*k)}this.xs=e,this.ys=n,this.c1s=d,this.c2s=v,this.c3s=y}var e,n,a;return e=t,n=[{key:"interpolate",value:function(t){var e=this.xs,n=this.ys,a=this.c1s,r=this.c2s,o=this.c3s,i=e.length-1;if(t===e[i])return n[i];for(var l,c=0,s=o.length-1;c<=s;){var u=e[l=Math.floor(.5*(c+s))];if(u<t)c=l+1;else{if(!(u>t))return n[l];s=l-1}}var d=t-e[i=Math.max(0,s)],p=d*d;return n[i]+a[i]*d+r[i]*p+o[i]*d*p}}],n&&Mz(e.prototype,n),a&&Mz(e,a),t}();function Az(t){var e=1===t.nodeType?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),a=n.top;return{x:n.left,y:a}}function _z(t){return{x:t.clientX,y:t.clientY}}function Fz(t,e,n,a,r){var o,i,l="IMG"===(o=e).nodeName&&(Rz()||!(null!==(i=document.documentElement)&&void 0!==i&&i.contains(o))),c=Az(l?t:e),s={x:n.x-c.x,y:n.y-c.y},u=t.offsetWidth,d=t.offsetHeight,p=a.anchorX,f=a.anchorY,m=function(t,e,n,a){var r=t?e.width:n,o=t?e.height:a;return jz()&&t&&(o/=window.devicePixelRatio,r/=window.devicePixelRatio),{dragPreviewWidth:r,dragPreviewHeight:o}}(l,e,u,d),h=m.dragPreviewWidth,g=m.dragPreviewHeight,b=r.offsetX,v=r.offsetY,y=0===v||v;return{x:0===b||b?b:new Lz([0,.5,1],[s.x,s.x/u*h,s.x+h-u]).interpolate(p),y:y?v:function(){var t=new Lz([0,.5,1],[s.y,s.y/d*g,s.y+g-d]).interpolate(f);return jz()&&l&&(t+=(window.devicePixelRatio-1)*g),t}()}}var Vz,Kz="__NATIVE_FILE__",Hz="__NATIVE_URL__",Bz="__NATIVE_TEXT__",Uz="__NATIVE_HTML__",Wz=Object.freeze({__proto__:null,FILE:Kz,URL:Hz,TEXT:Bz,HTML:Uz});function Yz(t,e,n){var a=e.reduce((function(e,n){return e||t.getData(n)}),"");return null!=a?a:n}function $z(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var qz=($z(Vz={},Kz,{exposeProperties:{files:function(t){return Array.prototype.slice.call(t.files)},items:function(t){return t.items},dataTransfer:function(t){return t}},matchesTypes:["Files"]}),$z(Vz,Uz,{exposeProperties:{html:function(t,e){return Yz(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Html","text/html"]}),$z(Vz,Hz,{exposeProperties:{urls:function(t,e){return Yz(t,e,"").split("\n")},dataTransfer:function(t){return t}},matchesTypes:["Url","text/uri-list"]}),$z(Vz,Bz,{exposeProperties:{text:function(t,e){return Yz(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Text","text/plain"]}),Vz);function Gz(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function Xz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zz=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Xz(this,"item",void 0),Xz(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}var e,n,a;return e=t,(n=[{key:"initializeExposedProperties",value:function(){var t=this;Object.keys(this.config.exposeProperties).forEach((function(e){Object.defineProperty(t.item,e,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(e,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(t){var e=this;if(t){var n={};Object.keys(this.config.exposeProperties).forEach((function(a){n[a]={value:e.config.exposeProperties[a](t,e.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(t,e){return e===t.getSourceId()}},{key:"endDrag",value:function(){}}])&&Gz(e.prototype,n),a&&Gz(e,a),t}();function Jz(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(qz).filter((function(t){return qz[t].matchesTypes.some((function(t){return e.indexOf(t)>-1}))}))[0]||null}function Qz(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function tL(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var eL=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),tL(this,"ownerDocument",null),tL(this,"globalContext",void 0),tL(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}var e,n,a;return e=t,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var t;return null!==(t=this.globalContext)&&void 0!==t&&t.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var t;return(null===(t=this.optionsArgs)||void 0===t?void 0:t.rootElement)||this.window}}])&&Qz(e.prototype,n),a&&Qz(e,a),t}();function nL(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function aL(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nL(Object(n),!0).forEach((function(e){oL(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nL(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rL(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function oL(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var iL=function(){function t(e,n,a){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),oL(this,"options",void 0),oL(this,"actions",void 0),oL(this,"monitor",void 0),oL(this,"registry",void 0),oL(this,"enterLeaveCounter",void 0),oL(this,"sourcePreviewNodes",new Map),oL(this,"sourcePreviewNodeOptions",new Map),oL(this,"sourceNodes",new Map),oL(this,"sourceNodeOptions",new Map),oL(this,"dragStartSourceIds",null),oL(this,"dropTargetIds",[]),oL(this,"dragEnterTargetIds",[]),oL(this,"currentNativeSource",null),oL(this,"currentNativeHandle",null),oL(this,"currentDragSourceNode",null),oL(this,"altKeyPressed",!1),oL(this,"mouseMoveTimeoutTimer",null),oL(this,"asyncEndDragFrameId",null),oL(this,"dragOverTargetIds",null),oL(this,"lastClientOffset",null),oL(this,"hoverRafId",null),oL(this,"getSourceClientOffset",(function(t){var e=r.sourceNodes.get(t);return e&&Az(e)||null})),oL(this,"endDragNativeItem",(function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.currentNativeHandle&&r.registry.removeSource(r.currentNativeHandle),r.currentNativeHandle=null,r.currentNativeSource=null)})),oL(this,"isNodeInDocument",(function(t){return Boolean(t&&r.document&&r.document.body&&r.document.body.contains(t))})),oL(this,"endDragIfSourceWasRemovedFromDOM",(function(){var t=r.currentDragSourceNode;null==t||r.isNodeInDocument(t)||r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()})),oL(this,"handleTopDragStartCapture",(function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]})),oL(this,"handleTopDragStart",(function(t){if(!t.defaultPrevented){var e=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=_z(t);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(e||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var a=t.dataTransfer,o=Jz(a);if(r.monitor.isDragging()){if(a&&"function"==typeof a.setDragImage){var i=r.monitor.getSourceId(),l=r.sourceNodes.get(i),c=r.sourcePreviewNodes.get(i)||l;if(c){var s=r.getCurrentSourcePreviewNodeOptions(),u=Fz(l,c,n,{anchorX:s.anchorX,anchorY:s.anchorY},{offsetX:s.offsetX,offsetY:s.offsetY});a.setDragImage(c,u.x,u.y)}}try{null==a||a.setData("application/json",{})}catch(t){}r.setCurrentDragSourceNode(t.target),r.getCurrentSourcePreviewNodeOptions().captureDraggingState?r.actions.publishDragSource():setTimeout((function(){return r.actions.publishDragSource()}),0)}else if(o)r.beginDragNativeItem(o);else{if(a&&!a.types&&(t.target&&!t.target.hasAttribute||!t.target.hasAttribute("draggable")))return;t.preventDefault()}}})),oL(this,"handleTopDragEndCapture",(function(){r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()})),oL(this,"handleTopDragEnterCapture",(function(t){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(t.target)&&!r.monitor.isDragging()){var e=t.dataTransfer,n=Jz(e);n&&r.beginDragNativeItem(n,e)}})),oL(this,"handleTopDragEnter",(function(t){var e=r.dragEnterTargetIds;(r.dragEnterTargetIds=[],r.monitor.isDragging())&&(r.altKeyPressed=t.altKey,e.length>0&&r.actions.hover(e,{clientOffset:_z(t)}),e.some((function(t){return r.monitor.canDropOnTarget(t)}))&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=r.getCurrentDropEffect())))})),oL(this,"handleTopDragOverCapture",(function(){r.dragOverTargetIds=[]})),oL(this,"handleTopDragOver",(function(t){var e=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer&&(t.dataTransfer.dropEffect="none"));r.altKeyPressed=t.altKey,r.lastClientOffset=_z(t),null===r.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(r.hoverRafId=requestAnimationFrame((function(){r.monitor.isDragging()&&r.actions.hover(e||[],{clientOffset:r.lastClientOffset}),r.hoverRafId=null}))),(e||[]).some((function(t){return r.monitor.canDropOnTarget(t)}))?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?t.preventDefault():(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none"))})),oL(this,"handleTopDragLeaveCapture",(function(t){r.isDraggingNativeItem()&&t.preventDefault(),r.enterLeaveCounter.leave(t.target)&&r.isDraggingNativeItem()&&setTimeout((function(){return r.endDragNativeItem()}),0)})),oL(this,"handleTopDropCapture",(function(t){var e;(r.dropTargetIds=[],r.isDraggingNativeItem())?(t.preventDefault(),null===(e=r.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer)):Jz(t.dataTransfer)&&t.preventDefault();r.enterLeaveCounter.reset()})),oL(this,"handleTopDrop",(function(t){var e=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(e,{clientOffset:_z(t)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.monitor.isDragging()&&r.actions.endDrag()})),oL(this,"handleSelectStart",(function(t){var e=t.target;"function"==typeof e.dragDrop&&("INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable||(t.preventDefault(),e.dragDrop()))})),this.options=new eL(n,a),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Iz(this.isNodeInDocument)}var e,n,a;return e=t,n=[{key:"profile",value:function(){var t,e;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(t=this.dragStartSourceIds)||void 0===t?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var t=this.rootElement;if(void 0!==t){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}},{key:"teardown",value:function(){var t,e=this.rootElement;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(t,e,n){var a=this;return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,e),function(){a.sourcePreviewNodes.delete(t),a.sourcePreviewNodeOptions.delete(t)}}},{key:"connectDragSource",value:function(t,e,n){var a=this;this.sourceNodes.set(t,e),this.sourceNodeOptions.set(t,n);var r=function(e){return a.handleDragStart(e,t)},o=function(t){return a.handleSelectStart(t)};return e.setAttribute("draggable","true"),e.addEventListener("dragstart",r),e.addEventListener("selectstart",o),function(){a.sourceNodes.delete(t),a.sourceNodeOptions.delete(t),e.removeEventListener("dragstart",r),e.removeEventListener("selectstart",o),e.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(t,e){var n=this,a=function(e){return n.handleDragEnter(e,t)},r=function(e){return n.handleDragOver(e,t)},o=function(e){return n.handleDrop(e,t)};return e.addEventListener("dragenter",a),e.addEventListener("dragover",r),e.addEventListener("drop",o),function(){e.removeEventListener("dragenter",a),e.removeEventListener("dragover",r),e.removeEventListener("drop",o)}}},{key:"addEventListeners",value:function(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var t=this.monitor.getSourceId(),e=this.sourceNodeOptions.get(t);return aL({dropEffect:this.altKeyPressed?"copy":"move"},e||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var t=this.monitor.getSourceId();return aL({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(t)||{})}},{key:"isDraggingNativeItem",value:function(){var t=this.monitor.getItemType();return Object.keys(Wz).some((function(e){return Wz[e]===t}))}},{key:"beginDragNativeItem",value:function(t,e){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(t,e){var n=new Zz(qz[t]);return n.loadDataTransfer(e),n}(t,e),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(t){var e=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t,this.mouseMoveTimeoutTimer=setTimeout((function(){var t;return null===(t=e.rootElement)||void 0===t?void 0:t.addEventListener("mousemove",e.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var t;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(t=this.window)||void 0===t||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(t,e){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(e))}},{key:"handleDragEnter",value:function(t,e){this.dragEnterTargetIds.unshift(e)}},{key:"handleDragOver",value:function(t,e){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(e)}},{key:"handleDrop",value:function(t,e){this.dropTargetIds.unshift(e)}}],n&&rL(e.prototype,n),a&&rL(e,a),t}();const lL=function(t,e,n){return new iL(t,e,n)},cL=t=>n.jsx(SM,{backend:lL,context:window,children:t.children});k(".ant-table-wrapper .ant-table-thead>tr>th{font-weight:700}.ant-table-wrapper .ant-table-tbody>tr>td,.ant-table-wrapper .ant-table-thead>tr>td,.ant-table-wrapper .ant-table-thead>tr>th{padding:6px 8px}.ant-table-wrapper .ant-table-tbody>tr>td.ant-table-cell .ant-form-item .ant-form-item-control-input{min-height:auto}.ant-table-wrapper .ant-table-tbody .btn-operate{height:26px;width:26px}.ant-table-wrapper .ant-table-pagination.ant-pagination{margin-bottom:10px;margin-top:10px;padding-bottom:10px;padding-top:10px}.ant-table-wrapper .react-resizable{background-clip:padding-box;position:relative}.ant-table-wrapper .react-resizable-handle{bottom:0;cursor:col-resize;height:100%;position:absolute;right:-5px;width:10px;z-index:1}");var sL=t.forwardRef(((e,a)=>{const r=t.useMemo((()=>{const t=e.extra||{};return{tableConfig:t.tableConfig,virtual:t.virtual,rowType:t.rowType,scroll:t.scroll,apiMethod:t.apiMethod,columns:t.columns||[],data:t.data,drag:t.drag,onSelect:t.onSelect,hidSortColumn:t.hidSortColumn,paginationConfig:t.paginationConfig,getCheckboxProps:t.getCheckboxProps,resultFilter:t.resultFilter,getTableSuccessData:t.getTableSuccessData}}),[e.extra]),o=t.useRef(),l=t.useRef(!0),c=t.useRef({position:["bottomCenter"],size:"small",current:1,total:0,pages:0,pageSize:10,showSizeChanger:!0,orderByInfo:void 0}),s=t.useRef([]),[u,d]=t.useState(r.columns),[p,f]=t.useState(!1),[h,g]=O.useSetState({listData:[],selectRowIds:[],selectRowArray:[]}),[b,v]=t.useState({x:void 0,y:330}),y=t.useMemo((()=>r.tableConfig&&r.tableConfig.rowKey?r.tableConfig.rowKey:"id"),[r.tableConfig]),x=t.useMemo((()=>{const t=i.v4();if(r.virtual&&r.virtual.open){const e={...r.virtual.config,vid:r.virtual.config?.vid||t,height:r.virtual.config?.height||500,resetTopWhenDataChange:r.virtual.config?.resetTopWhenDataChange||!1};return console.log("创建虚拟列表",e),UI(e)}}),[r.virtual]),w=t.useMemo((()=>{const t={header:{cell:YR},body:{row:t=>n.jsx(Oz,{...t,vc:x}),cell:t=>n.jsx(Nz,{...t,vc:x,columns:u})}};try{if(x){const e=t;return{...x,header:e.header,body:{...x.body,cell:e.body.cell,row:e.body.row}}}return t}catch(e){return console.error("虚拟列表配置失败,请检查配置项",e),t}}),[u,x]),k=!(!m.default.isFunction(r.apiMethod)||!l.current)&&{size:"small",position:["bottomCenter"],showTotal:t=>`共${t}条`,showSizeChanger:!0,showQuickJumper:!0,...c.current},C=t.useCallback(((t,e)=>{const n=new Map;return t.forEach((t=>{n.set(t[y],t)})),e.forEach((t=>{n.set(t[y],t)})),Array.from(n.values())}),[y]),E=t.useCallback((async t=>{let e=!0;f(!0),t&&(void 0!==t.updateSelected&&(e=t.updateSelected,delete t.updateSelected),"not-reset"===t.pagination&&delete t.pagination,o.current={...o.current,...t});try{const n={...o.current};for(let t in c.current){const e=c.current[t];"orderByInfo"===t&&(n.orderByInfo=e),"current"===t&&(n.page=e),"pageSize"===t&&(n.size=n.size||e)}if(t&&t.current&&(n.page=t.current,c.current.current=t.current),r.apiMethod){delete n.current;const t=await r.apiMethod(m.default.pickBy(n,m.default.identity));let a=[];m.default.isArray(t.data.content)&&(!1!==r.paginationConfig?l.current=!0:l.current=!1,a=t.data.content,c.current.total=t.data.total,c.current.pages=t.data.pages),m.default.isArray(t.data)&&(l.current=!1,a=t.data),r.resultFilter&&(a=await r.resultFilter(a)),e&&g((t=>{let e=[...t.selectRowIds],n=[];const r=a=>{if(t.selectRowIds.length)for(let o of a){for(let a of t.selectRowIds)o[y]===a&&(e.push(a),n.push(o));o.children&&r(o.children)}};return r(a),t.selectRowIds=Array.from(new Set(e)),t.selectRowArray=C(t.selectRowArray,n),t})),g((t=>(t.listData=a,t))),r.getTableSuccessData&&r.getTableSuccessData(t)}}catch(t){}f(!1)}),[r,y,C,g]),S=t=>{!m.default.isEqual(t,c.current)&&l.current&&(c.current={...c.current,...t},E())},N={fixed:!0,type:r.rowType,selectedRowKeys:h.selectRowIds,getCheckboxProps:r.getCheckboxProps,onSelectAll:(t,e,n)=>{g((e=>{let a=[...e.selectRowIds],o=[...e.selectRowArray];return t?(a=m.default.uniq([...a,...n.map((t=>t[y]))]),o=m.default.uniqBy([...o,...n],y)):(a=a.filter((t=>!n.some((e=>e[y]===t)))),o=o.filter((t=>!n.some((e=>e[y]===t[y]))))),r.onSelect&&r.onSelect(o,a),e.selectRowIds=a,e.selectRowArray=o,e}))},onSelect:(t,e)=>{g((n=>{let a=[...n.selectRowIds],o=[...n.selectRowArray];return"checkbox"===r.rowType&&(e?(a.push(t[y]),o.push(t)):(a=a.filter((e=>e!==t[y])),o=o.filter((e=>e[y]!==t[y])))),"radio"===r.rowType&&e&&(a=[t[y]],o=[t]),r.onSelect&&r.onSelect(o,a),n.selectRowIds=a,n.selectRowArray=o,n}))}},P=t=>(e,{size:n})=>{d((e=>{const a=[...e];return a[t]={...a[t],width:n.width},s.current=a,a}))},T=t.useCallback((t=>{g((e=>{let n=JSON.parse(JSON.stringify(e.listData));for(let[e,a]of n.entries())if(a[y]===t[y]){n[e]={...n[e],...t};break}return e.listData=n,e}))}),[y,g]),D=t.useCallback((async(t,e)=>{const n=h.listData[t],a=lI(h.listData,{$splice:[[t,1],[e,0,n]]});f(!0);try{if(r.drag){const n=JSON.parse(JSON.stringify(a)),o=JSON.parse(JSON.stringify(h.listData)),i=[t,e].sort();!1!==await r.drag.moveRow(t,e,n,o,n.slice(i[0],i[1]+1))&&g((t=>(t.listData=n,t)))}}finally{f(!1)}}),[r.drag,g,h.listData]),I=t.useCallback((t=>{let e=[];const n=t=>{for(let a of t){for(let t of h.selectRowIds)a[y]===t&&e.push(a);a.children&&n(a.children)}};return n(t),e}),[y,h.selectRowIds]);return t.useEffect((()=>{(async()=>{let t=[...r.columns];r.hidSortColumn||t.unshift({width:55,fixed:"left",title:"序号",dataIndex:"sequence",render:(t,e,n)=>{const a=c.current;return Object.keys(a).length?((a.current||0)-1)*(a.pageSize||0)+n+1:n+1}});for(let[e,n]of t.entries()){let a={...n,onHeaderCell:t=>({width:t.width,onResize:P(e)}),onCell:(t,e)=>({record:t,recordIndex:e,dataIndex:n.dataIndex,title:n.title,rowSpanNum:"function"==typeof n.rowSpanNum?n.rowSpanNum(t,e):n.rowSpanNum,colSpanNum:"function"==typeof n.colSpanNum?n.colSpanNum(t,e):n.colSpanNum,editable:"function"==typeof n.editable?n.editable(t,e):n.editable,inputType:n.inputType,valueType:n.valueType,valueEnum:n.valueEnum,recordSelectField:n.recordSelectField,controlRender:n.controlRender,render:n.render,formChange:n.formChange,remoteConfig:n.remoteConfig,formItemProps:n.formItemProps,handleSave:T})},r=s.current.find((t=>t.dataIndex===n.dataIndex&&t.title===n.title));r&&(a.width=r.width),t[e]=a}d(t)})()}),[r.columns,r.hidSortColumn,T]),t.useEffect((()=>{m.default.isArray(r.data)&&g((t=>(t.listData=JSON.parse(JSON.stringify(r.data)),t)))}),[r.data,g]),t.useEffect((()=>{const t=document.getElementById("slider-menu"),e=document.getElementById("router-render");if(void 0!==r.scroll?.x||void 0!==r.scroll?.y)v((t=>({...t,...r.scroll})));else if(t&&e){let n=parseInt(window.getComputedStyle(e,null).paddingLeft);v((e=>(e.x=document.body.clientWidth-t.clientWidth-(2*n+43),e)))}}),[r.scroll]),t.useEffect((()=>{r.paginationConfig&&(c.current={...c.current,...r.paginationConfig})}),[r.paginationConfig]),t.useImperativeHandle(a,(()=>({setTableLoading:t=>{f(t)},getPages:()=>({...c.current}),getTableList:async(t,e)=>{t&&("not-reset"===t.pagination?t.current=c.current.current:void 0===t.current&&(t.current=1),t.clearSelectIds&&(delete t.clearSelectIds,g((t=>(t.selectRowArray=[],t.selectRowIds=[],t))))),await E(t),e&&e()},setRowSelected:(t,e)=>{let n=t;!0===e&&(n=Array.from(new Set([...h.selectRowIds,...t]))),g({selectRowIds:n})},setRowSelectedBy:t=>{g({selectRowArray:t})},getSelectIds:()=>h.selectRowIds,clearSelectIds:()=>{g({selectRowIds:[],selectRowArray:[]})},getSelectRowsArray:()=>{const t=I(h.listData);return m.default.cloneDeep(C(h.selectRowArray,t))},removeSelectIds:t=>{if(!Array.isArray(t)||0===t.length)return;const e=(e,n)=>e.filter((e=>"string"==typeof e?!t.includes(e):!t.includes(e[n])));g({selectRowIds:e(h.selectRowIds,y),selectRowArray:e(h.selectRowArray,y)})},getStaticDataList:()=>{try{return m.default.cloneDeep(h.listData||[])}catch(t){return[]}},setStaticDataList:(t,e)=>{if(t)try{if("object"!=typeof t||Array.isArray(t))Array.isArray(t)&&g((e=>(e.listData=m.default.cloneDeep(t),e)));else{const e=t;g((t=>(t.listData=h.listData.map((t=>t[y]===e[y]?{...t,...e}:t)),t)))}e&&e()}catch(t){}}}))),n.jsx(eI,{children:n.jsx(cL,{children:n.jsx(JO,{bordered:!0,rowKey:"id",rowClassName:"editable-row",loading:p,components:w,onRow:(t,e)=>({index:e,moveRow:D,open:r.drag&&r.drag.open}),columns:u,dataSource:h.listData,rowSelection:r.rowType?N:void 0,pagination:k,onChange:(t,e,n)=>{const{order:a}=n;t.orderByInfo=void 0,a&&(t.orderByInfo=`${n.field}:${"ascend"===a?1:-1}`),S(t)},scroll:b,...r.tableConfig})})})}));k("");const uL=t=>{const e={...t};return delete e.outerHeight,n.jsx(ly,{className:"empty-wrap",style:{minHeight:t&&t.outerHeight?t.outerHeight:400},align:"middle",justify:"center",children:n.jsx(Da,{description:"暂无数据",...e})})};k(".from-table-modal .ant-modal-body{padding-top:15px}.from-table-modal .ant-modal-body .search-form{margin-bottom:8px}.from-table-modal .ant-modal-body .ant-table-wrapper .ant-pagination{margin-bottom:0}.from-table-modal .from-table-modal-foot{margin-top:20px}");const{Link:dL,Paragraph:pL}=NT;var fL=t.forwardRef((function(e,a){const r=t.useRef(null),o=t.useRef(),[i,l]=O.useSetState({saveLoading:!1,selectedRows:[]}),c=t.useMemo((()=>e.tableColumnsList&&e.tableColumnsList.tableConfig&&e.tableColumnsList.tableConfig.rowKey||"id"),[e.tableColumnsList]),s=t.useMemo((()=>{const t=e.width||0;return t>=500&&t<=800?{span:7}:t>800&&t<=1e3?{span:6}:t>1e3&&t<=1200?{span:5}:t>1200?{span:4}:{span:8}}),[e.width]),u=(t,e)=>{if(o.current){let n=[],a=[];"all"===t&&o.current.clearSelectIds(),"odd"===t&&e&&(n=[e[c]],a=i.selectedRows.filter((t=>t[c]!==e[c])),o.current.removeSelectIds(n)),l({selectedRows:a})}},d=t.useCallback((async()=>{if(r.current&&o.current){let t=await r.current.formSubmit();if(t&&Object.keys(t).length){for(let e in t){const n="YYYY-MM-DD HH:mm:ss";y.default(t[e],n,!0).isValid()&&(t[e]=y.default(t[e]).format(n))}t={clearSelectIds:!0,...t},void 0!==e.clearSelectIds&&(t.clearSelectIds=e.clearSelectIds),t.clearSelectIds&&l((t=>(t.selectedRows=[],t))),e.manualParameterChange&&(t=e.manualParameterChange(t)),e.searchCallback?e.searchCallback(t).then((e=>{e&&o.current?.getTableList(t)})):o.current.getTableList(t)}}else o.current?.getTableList()}),[e,l]),p=()=>{if(r.current){let t=[];const n=e.searchNoResetFiled||[];if(e.searchFormList)for(let a of e.searchFormList){if(a.unionConfig)for(let e of a.unionConfig.unionItems)e.name&&!n.includes(e.name)&&t.push(e.name);a.name&&!n.includes(a.name)&&t.push(a.name)}r.current.formReset(t)}d()};return t.useEffect((()=>{e.visible&&(e.autoGetList&&o.current?.getTableList(),e.openSelected&&e.openSelected.visible&&l((t=>(t.selectedRows=e.openSelected?.defaultValues||[],o.current?.setRowSelectedBy(t.selectedRows),o.current?.setRowSelected(t.selectedRows.map((t=>t[c]))),t))))}),[e.autoGetList,e.openSelected,e.visible,c,l]),t.useImperativeHandle(a,(()=>({...r.current,...o.current,setSavaLoading:t=>{l({saveLoading:t})}}))),n.jsxs(VD,{className:"from-table-modal",forceRender:!0,maskClosable:!1,footer:null,width:e.width,visible:e.visible,title:e.title||"弹窗",onCancel:()=>{e.onCancel&&e.onCancel()},...e.modalConfig,children:[e.topExtra,e.searchFormList?n.jsx(oI,{ref:r,rowGridConfig:{gutter:10},colGirdConfig:s,list:(f=e.searchFormList,f?f.map((t=>("Select"===t.componentName&&t.selectData&&t.selectData.length&&(t.selectData.some((t=>"全部"===t.label))||(t.selectData=[{label:"全部",value:""},...t.selectData])),t))):[]),formConfig:e.formConfig,render:()=>e.searchFormList&&e.searchFormList.length?n.jsxs(ME,{size:10,children:[n.jsx(df,{type:"primary",onClick:()=>{d()},children:"查询"}),n.jsx(df,{className:"btn-reset",onClick:p,children:"重置"})]}):n.jsx(n.Fragment,{})}):null,n.jsxs(ly,{...e.rowProps,children:[e.leftSlot?n.jsx(dy,{...e.leftSlot.colProps,children:e.leftSlot.jsx}):null,n.jsx(dy,{...e.colProps,children:n.jsxs(ly,{gutter:10,children:[n.jsx(dy,{span:e.openSelected&&e.openSelected.visible?16:24,children:n.jsx(sL,{ref:o,extra:{rowType:e.tableColumnsList.rowType,apiMethod:e.apiMethod,columns:e.tableColumnsList.list,data:e.data,onSelect:(t,n)=>{((t,n)=>{l({selectedRows:n.map((n=>{let a={};const r=t.find((t=>t[c]===n));if(a[c]=n,e.openSelected&&e.openSelected.fileName&&(a[e.openSelected.fileName]=n),r&&(a=r),e.openSelected){const t=e.openSelected.fileName,r=e.openSelected.defaultValues;if(t&&r){const e=r.find((t=>t[c]===n));e&&(a[t]=e[t])}}return a}))})})(t,n),e.onSelect&&e.onSelect(t,n)},getTableSuccessData:e.getTableSuccessData,tableConfig:e.tableColumnsList.tableConfig,scroll:{x:"max-content"}}})}),e.openSelected&&e.openSelected.visible?n.jsx(dy,{span:8,children:n.jsx(my,{title:"已选列表",size:"small",bodyStyle:{height:e.openSelected.height||330,overflowY:"auto"},extra:n.jsx(dL,{onClick:()=>u("all"),children:"全部移除"}),children:i.selectedRows.length?i.selectedRows.map((t=>{const a=t[c],r=t[e.openSelected?.fileName];return n.jsxs(ly,{gutter:12,children:[n.jsx(dy,{span:11,title:r,children:n.jsx(pL,{ellipsis:!0,children:r})}),n.jsx(dy,{span:9,title:a,children:n.jsx(pL,{ellipsis:!0,children:a})}),n.jsx(dy,{span:4,children:n.jsx(dL,{onClick:()=>u("odd",t),children:"移除"})})]},a)})):n.jsx(uL,{outerHeight:200})})}):null]})}),e.rightSlot?n.jsx(dy,{...e.rightSlot.colProps,children:e.rightSlot.jsx}):null]}),n.jsx(ly,{className:"from-table-modal-foot",justify:"center",children:n.jsx(dy,{children:n.jsxs(ME,{size:20,children:[e.onCancel?n.jsx(df,{onClick:()=>e.onCancel&&e.onCancel(),children:"关闭"}):null,e.onConfirm?n.jsx(df,{type:"primary",loading:i.saveLoading,onClick:()=>{let t=[],n=[];t=o.current?.getSelectRowsArray()||[],e.onConfirm&&(o.current&&(n=o.current.getSelectIds()),l({saveLoading:!0}),e.onConfirm(t,n).then((t=>{l({saveLoading:!1}),t&&e.onCancel&&e.onCancel()})).catch((t=>{l({saveLoading:!1}),Wi.warn(t,1.5)})))},children:"确定"}):null]})})})]});var f})),mL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 010-12.9l246-178a8 8 0 0112.7 6.5v46.8z"}}]},name:"left-circle",theme:"filled"},hL=function(t,e){return p.createElement(ii,Ce(Ce({},t),{},{ref:e,icon:mL}))},gL=p.forwardRef(hL);"production"!==process.env.NODE_ENV&&(gL.displayName="LeftCircleFilled");var bL=gL,vL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z"}}]},name:"right-circle",theme:"filled"},yL=function(t,e){return p.createElement(ii,Ce(Ce({},t),{},{ref:e,icon:vL}))},xL=p.forwardRef(yL);"production"!==process.env.NODE_ENV&&(xL.displayName="RightCircleFilled");var wL=xL;k(".quickly-form-modal .ant-modal-body{padding-top:15px}.quickly-form-modal .quickly-form-modal-foot{margin-top:20px}");k(".form-modal .ant-modal-body{padding-top:15px}.form-modal .ant-modal-body .modal-form-height{max-height:580px;overflow-x:hidden;overflow-y:auto;padding-right:5px}.form-modal .ant-modal-body .modal-form-height .generate-form.ant-form-horizontal.ant-form .ant-row.ant-form-item{margin-bottom:4px}.form-modal .form-modal-foot{margin-top:20px}");var kL=t.forwardRef(((e,a)=>{const r=t.useRef(),[o,i]=O.useSetState({loading:!1,saveLoading:!1,disabled:!1}),l=async()=>{let t=await(r.current?.formSubmit());if(t){if(t.endTime&&t.startTime&&y.default(t.endTime).isBefore(t.startTime))return void Wi.warn("生效日期不能大于失效日期",1.5);i({saveLoading:!0});try{let n={};if(t={...t,...e.submitExtraParameters},e.switchTransform)for(let n=0;n<e.switchTransform.length;n++)t[e.switchTransform[n]]?t[e.switchTransform[n]]="1":t[e.switchTransform[n]]="0";if(e.submitRemoveField)for(let n=0;n<e.submitRemoveField.length;n++)t[e.submitRemoveField[n]]&&delete t[e.submitRemoveField[n]];for(let e in t){const n="YYYY-MM-DD HH:mm:ss";y.default(t[e],n,!0).isValid()&&(t[e]=y.default(t[e]).format(n))}if(e.manualParameterChange&&(t=e.manualParameterChange(t)),e.manualVerification&&!e.manualVerification(t))return console.warn("手动验证表单不通过"),void i({saveLoading:!1});if(t=m.default.omitBy(t,m.default.isNil),e.submitApi&&t){if(e.id?(t.id=e.id,n=await e.submitApi(t,"put")):n=await e.submitApi(t,"post"),1===n.code){if(e.onConfirm){if(!1===e.onConfirm(n))return}Wi.success("操作成功",1.5),e.onCancel&&e.onCancel()}i({saveLoading:!1})}else e.onConfirm&&t&&e.onConfirm(t)}catch(t){i({saveLoading:!1})}}};return t.useEffect((()=>{!1===e.visible&&i({saveLoading:!1})}),[e.visible,i]),t.useEffect((()=>{i({disabled:e.disable})}),[e.disable,i]),t.useImperativeHandle(a,(()=>({setFormLoading:t=>{i({loading:t})},setFormSaveLoading:t=>{i({saveLoading:t})},setFormFields:t=>{r.current&&r.current.setFormFields(t)},getFormValues:t=>r.current?.getFormValues(t),setFormValues:t=>{r.current&&r.current.setFormValues(t)},excludeFormSubmitValues:async t=>{if(r.current){const n=e.formList.filter((e=>!t?.includes(e.name)));return await(r.current?.formSubmit(n.map((t=>t.name))))}return{}},getFormSubmitValues:async t=>r.current?await(r.current?.formSubmit(t)):{}}))),n.jsx(VD,{className:`form-modal ${e.className}`,width:e.width?e.width:600,visible:e.visible,title:e.title||"对话框",onCancel:e.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null,children:n.jsxs(sC,{spinning:o.loading,children:[n.jsxs("div",{className:"modal-form-height",children:[e.topRender?e.topRender:null,n.jsx(oI,{ref:r,formConfig:{labelCol:{span:24},...e.formConfig},rowGridConfig:{gutter:[20,0]},colGirdConfig:e.colGirdConfig||{span:12},list:e.formList}),e.children&&e.children]}),(()=>{const a=(()=>{const t=[n.jsx(df,{onClick:()=>e.onCancel&&e.onCancel(),children:"关闭"},-1)];return o.disabled||t.push(n.jsx(df,{type:"primary",loading:o.saveLoading,onClick:l,children:"提交"},-2)),t})(),r=t=>n.jsx(ly,{className:"form-modal-foot",justify:"center",children:n.jsx(dy,{children:n.jsx(ME,{size:20,children:t})})});if(e.footer)return e.footer;if(e.footBtnList){const{model:n,data:o}=e.footBtnList,i=o.map(((e,n)=>{const{children:a,...r}=e;return t.createElement(df,{...r,key:n},a)}));if("new"===n)return r(i);if("before"===n)return r([...i,...a]);if("after"===n)return r([...a,...i])}return r(a)})()]})})}));k('@import "https://at.alicdn.com/t/font_2381668_l6oy3doglyo.css";.icon-selected-modal .avatar-selected{align-items:center;border:2px solid #fff;border-radius:4px;cursor:pointer;display:flex;height:36px;justify-content:center;overflow:hidden;width:36px}.icon-selected-modal .avatar-selected.avatar-selected-bg{border-color:#5860f8}.icon-selected-modal .icon-selected-foot{margin-top:20px}');k(".button-group{align-items:center;background-color:#f2f2f3;background-image:none;border:0;border-radius:4px;box-shadow:0 2px 0 rgba(0,0,0,.015);cursor:pointer;display:inline-flex;font-size:12px;height:30px;justify-content:center;line-height:1.15;outline:none;padding:3px 15px;position:relative;text-align:center;touch-action:manipulation;transition:all .3s cubic-bezier(.645,.045,.355,1);user-select:none;white-space:nowrap}.button-group:hover{background-color:#e3e5e6}.button-group-large{height:40px}.button-group-small{height:26px}.button-group-primary{background-color:#5860f8;color:#fff}.button-group-primary:hover{background-color:#828cff}.button-group .anticon{font-size:12px;margin-left:5px}.button-group .anticon.anticon-close{align-items:center;background-color:#878d99;border-radius:100%;color:#fff;display:inline-flex;font-size:10px;height:16px;justify-content:center;position:absolute;right:-5px;top:-5px;width:16px}");const CL="button-group";var EL=t.forwardRef(((e,a)=>{const[r,o]=O.useSetState({type:"checkbox",deleteOpen:!1,data:[]}),i=t=>{let n=CL;return e.buttonClassName&&(n=`${n} ${e.buttonClassName}`),e.size&&(n=`${n} ${CL}-${e.size}`),t.selected&&(n=`${n} ${CL}-primary`),n};return t.useEffect((()=>{if(e.checkType&&o({type:e.checkType}),e.deleteOpen&&o({deleteOpen:e.deleteOpen}),e.data){const t=e.data.map((t=>(void 0===t.selected&&(t.selected=!1),t)));o({data:t})}}),[e,o]),t.useImperativeHandle(a,(()=>({getButtonGroupSelected:()=>r.data.filter((t=>t.selected))}))),n.jsx(ly,{className:e.className,gutter:[10,10],children:r.data.map(((t,a)=>n.jsx(dy,{children:n.jsxs("div",{className:i(t),onClick:()=>((t,n)=>{let a=[];e.deleteOpen||(r.data&&("checkbox"===r.type&&(r.data[n].selected=!t.selected,a=r.data),"radio"===r.type&&(a=r.data.map(((e,a)=>{let r=!1;return n===a&&(r=!t.selected),{...e,selected:r}})))),e.onChange&&e.onChange(a),o({data:a}))})(t,a),children:[t.name,r.deleteOpen?n.jsx(Qi,{onClick:()=>(t=>{if(r.data){const n=r.data.filter(((e,n)=>t!==n));e.onChange&&e.onChange(n),o({data:n})}})(a)}):null]})},a)))})}));exports.Affix=t=>{let e={...t},a="";return e.targetId&&(a=e.targetId,delete e.targetId),n.jsx(tc,{target:()=>document.getElementById(a||"router-render")||window,...e})},exports.ButtonGroup=EL,exports.Dialog=VD,exports.Empty=uL,exports.GaoDeMap=KD,exports.GenerateForm=oI,exports.GenerateTable=sL,exports.IconSelectionModal=t=>{const[e,a]=O.useSetState({iconModal:{selected:-1,list:["iconmove","iconmap","iconnotice","iconpassword","iconNotvisible1","iconphone","iconpic1","iconpin","iconproduct","iconQRcode1","iconreeor","iconreduce","iconresonserate","iconremind","iconrising1","iconRightarrow","iconrmb1","iconsave","iconscanning","iconseleted","iconsearchcart","iconshare","iconRightbutton","iconsorting","iconsound-Mute","iconsound-filling","iconsuggest","iconsuccess","iconsupplier-features","iconswitch","iconsuspended","iconTop","iconsmile","icontradealert","icontopsales","icontradingvolume","iconupload","iconviewlarger","iconwarning","iconset","iconDaytimemode","iconunlock","iconexchangerate","iconall","iconbussiness-man","iconcomponent","iconcode","iconcopy","icondollar","iconhistory","iconeditor","icondata","icongift","iconintegral","iconnav-list","iconpic","iconNotvisible","iconplay","iconQRcode","iconrmb","iconsimilar-product","iconExportservices","iconsendinquiry","iconcolumn","iconadd-account","iconcolumn1","iconadd","iconadd-cart","iconarrow-right","iconarrow-left","iconall1","iconarrow-up","iconashbin","iconatm","iconbad","iconattachent","iconbrowse","iconcalendar","iconcart-full","iconcalculator","iconcameraswitching","iconcecurity-protection","iconcategory","iconclose","iconcertified-supplier","iconcart-Empty","iconcode1","iconcopy1","iconcoupons","iconconnections","iconcry","iconclock","iconCurrencyConverter","iconcut","icondata1","iconCustomermanagement","icondouble-arro-right","iconcustomization","icondouble-arrow-left","icondiscount","icondownload","icondollar1","icondefault-template","iconeditor1","iconetrical-equipm","iconellipsis","iconemail","iconfalling","iconfilter","iconfolder","iconhelp","icongood","icongift1","iconhot","iconinspection","iconleftbutton","iconleftarrow","iconlink","iconloading","iconphone1"]}}),r={height:34,fontSize:22};return n.jsxs(VD,{className:"icon-selected-modal",width:t.width?t.width:590,visible:t.visible,title:t.title?t.title:"图标选择",onCancel:t.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null,children:[n.jsx(ly,{gutter:[10,10],children:e.iconModal.list.map(((t,o)=>n.jsx(dy,{children:n.jsx("div",{className:`avatar-selected ${o===e.iconModal.selected?"avatar-selected-bg":null}`,onClick:()=>{a((t=>(t.iconModal.selected=o,t)))},children:n.jsx("i",{className:`iconfont ${t}`,title:t,style:r})})},o)))}),n.jsx(ly,{className:"icon-selected-foot",justify:"center",children:n.jsx(dy,{children:n.jsxs(ME,{size:20,children:[n.jsx(df,{onClick:t.onCancel,children:"关闭"}),n.jsx(df,{type:"primary",onClick:()=>{const n=e.iconModal.list[e.iconModal.selected];t.onConfirm&&t.onConfirm(n)},children:"确定"})]})})})]})},exports.LayoutFormModal=kL,exports.LayoutTableModal=fL,exports.QuicklyProcessForms=e=>{const a=t.useRef(),r=t.useRef({page:1,pages:1,size:10}),[o,i]=O.useSetState({id:void 0,saveLoading:!1,data:[]}),l={fontSize:24},c=t.useCallback(((t,e)=>t.map((t=>{if(e)for(let n of e)t[n]&&(t[n]=y.default(t[n]));return t}))),[]),s=t.useCallback((async t=>{if(e.apiMethod)try{let n="";const a=await e.apiMethod(r.current);console.log("getList useCallback",a,"queryPagination.current",r.current);const o=a.data.content;r.current.pages=a.data.pages,"up"===t&&(n=o[o.length-1].id),"down"===t&&(n=o[0].id),i({id:n||e.id,data:o})}catch(t){}}),[e,i]),u=t.useMemo((()=>{let t=0;for(let[e,n]of o.data.entries())if(n.id===o.id){t=e;break}return t}),[o.data,o.id]),d=t.useCallback((async()=>{if(e.apiMethod){if(1===r.current.page&&0===u)return Wi.destroy(),void Wi.warn("已经是第一页啦~",1.5);if(u-1<0)return r.current.page=r.current.page-1,s("up"),void(e.onChange&&e.onChange(o.data[u],r.current))}else if(0===u)return Wi.destroy(),void Wi.warn("已经是第一个啦~",1.5);if(a.current){const t=await a.current.formSubmit();if(t){t.id=o.data[u].id;try{const n=o.data[u-1];console.log("cutIndexObj",n),e.submitApi(t,"put"),e.onChange&&e.onChange(n,r.current),i((e=>(e.id=n.id,e.data[u]={...e.data[u],...t},e)))}catch(t){}}}}),[u,s,e,i,o.data]),p=t.useCallback((async()=>{if(e.apiMethod){if(r.current.page===r.current.pages&&u===o.data.length-1)return Wi.destroy(),void Wi.warn("已经是最后一页啦~",1.5);if(u+1>=o.data.length)return r.current.page=r.current.page+1,s("down"),void(e.onChange&&e.onChange(o.data[u],r.current))}else if(0===o.data.length||u===o.data.length-1)return Wi.destroy(),void Wi.warn("已经是最后一个啦~",1.5);if(a.current){const t=await a.current.formSubmit();if(t){t.id=o.data[u].id;try{const n=o.data[u+1];console.log("cutIndexObj",n),e.submitApi(t,"put"),e.onChange&&e.onChange(n,r.current),i((e=>(e.id=n.id,e.data[u]={...e.data[u],...t},e)))}catch(t){}}}}),[u,s,e,i,o.data]),f=t.useCallback((async t=>{if("PageUp"===t.key&&(d(),t.preventDefault()),"PageDown"===t.key&&(p(),t.preventDefault()),"Enter"===t.key&&a.current){const t=await a.current.formSubmit();t.id=o.data[u].id;try{e.submitApi(t,"put"),Wi.success("保存成功",1.5)}catch(t){}}}),[u,p,d,e,o.data]),m=t.useCallback((async()=>{if(e.methodParams){let t=["page","pages","size"],n={},a=await e.methodParams;for(let e in r.current)for(let a of t)e===a&&(n[a]=r.current[e]);n={...n,...a},n.page=a.page?a.page.current:1,r.current=n}}),[e.methodParams]);return t.useEffect((()=>{e.visible&&setTimeout((()=>{a.current&&a.current.setFormValues(o.data[u])}),100)}),[u,e.visible,o.data]),t.useEffect((()=>{e.visible&&(e.apiMethod?m().then((()=>{s()})):i({id:e.id,data:c(e.data,e.transformTime)}))}),[m,s,e.apiMethod,e.data,e.id,e.transformTime,e.visible,i,c]),t.useEffect((()=>(e.visible?document.addEventListener("keydown",f):document.removeEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)})),[f,e.visible]),n.jsx(VD,{className:"quickly-form-modal",width:e.width?e.width:960,visible:e.visible,title:e.title||"快速编辑信息",onCancel:()=>{e.onCancel&&e.onCancel(r.current)},maskClosable:!1,destroyOnClose:!0,footer:null,children:n.jsxs(ly,{className:"modal-form-height",gutter:16,align:"middle",wrap:!1,children:[n.jsx(dy,{flex:"60px",children:n.jsx(ly,{justify:"center",children:n.jsx(dy,{children:n.jsx(bL,{className:"circle-filled",style:l,onClick:d})})})}),n.jsx(dy,{flex:"auto",children:n.jsx(oI,{ref:a,formConfig:{labelCol:{span:24}},rowGridConfig:{gutter:[20,0]},colGirdConfig:{span:6},list:e.formList})}),n.jsx(dy,{flex:"60px",children:n.jsx(ly,{justify:"center",children:n.jsx(dy,{children:n.jsx(wL,{className:"circle-filled",style:l,onClick:p})})})})]})})},exports.TreeNode=UD,exports.Upload=HD,exports.VirtualList=e=>{const{vl:a,columns:r,...o}=e,i=t.useRef(a);var l,c;l=a,c=i.current,m.default.isEqualWith(l,c,((t,e)=>{if(m.default.isFunction(t)&&m.default.isFunction(e))return t.toString()===e.toString()}))&&(i.current=a);const s=t.useMemo((()=>{if(i.current)return UI(i.current)}),[]),[u,d]=t.useState(r||[]);t.useEffect((()=>{d(r||[])}),[r]);const p=t.useCallback((t=>(e,{size:n})=>{const a=[...u];a[t]={...a[t],width:n.width},d(a)}),[u]),f=t.useMemo((()=>u.map(((t,e)=>({...t,onHeaderCell:t=>({width:t.width,onResize:p(e)})})))),[u,p]),h=t.useMemo((()=>({header:{cell:YR},...s||{}})),[s]);return n.jsx(eI,{children:n.jsx(JO,{components:h,rowKey:"id",pagination:!1,scroll:{y:a.height,x:"100%"},columns:f,...o})})},exports.hooks=O;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hlyc-web-pack",
3
- "version": "3.7.7",
3
+ "version": "3.7.8",
4
4
  "description": "华旅云创web端组件",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.js",