hlyc-web-pack 3.8.9 → 3.9.0
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.
|
@@ -40,6 +40,8 @@ export interface EditableColumnsType {
|
|
|
40
40
|
controlRender: (record: AnyObjectType, childNode: React.ReactNode) => React.ReactNode;
|
|
41
41
|
/** 表单项placeholder */
|
|
42
42
|
placeholder?: string;
|
|
43
|
+
/** 表单值变化是否触发远程搜索下拉数据更新 */
|
|
44
|
+
triggerRemoteSearch?: boolean;
|
|
43
45
|
}
|
|
44
46
|
/** 可编辑单元格 */
|
|
45
47
|
export type EditableCellProps<T = AnyObjectType> = {
|
package/lib/index.js
CHANGED
|
@@ -24,7 +24,7 @@ var e,t,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",r=n.toS
|
|
|
24
24
|
*
|
|
25
25
|
* This source code is licensed under the MIT license found in the
|
|
26
26
|
* LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/function AT(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case vT:switch(e=e.type){case ST:case NT:case yT:case kT:case wT:case PT:return e;default:switch(e=e&&e.$$typeof){case ET:case OT:case IT:case DT:case CT:return e;default:return t}}case xT:return t}}}function LT(e){return AT(e)===NT}var FT={AsyncMode:ST,ConcurrentMode:NT,ContextConsumer:ET,ContextProvider:CT,Element:vT,ForwardRef:OT,Fragment:yT,Lazy:IT,Memo:DT,Portal:xT,Profiler:kT,StrictMode:wT,Suspense:PT,isAsyncMode:function(e){return LT(e)||AT(e)===ST},isConcurrentMode:LT,isContextConsumer:function(e){return AT(e)===ET},isContextProvider:function(e){return AT(e)===CT},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===vT},isForwardRef:function(e){return AT(e)===OT},isFragment:function(e){return AT(e)===yT},isLazy:function(e){return AT(e)===IT},isMemo:function(e){return AT(e)===DT},isPortal:function(e){return AT(e)===xT},isProfiler:function(e){return AT(e)===kT},isStrictMode:function(e){return AT(e)===wT},isSuspense:function(e){return AT(e)===PT},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===yT||e===NT||e===kT||e===wT||e===PT||e===TT||"object"==typeof e&&null!==e&&(e.$$typeof===IT||e.$$typeof===DT||e.$$typeof===CT||e.$$typeof===ET||e.$$typeof===OT||e.$$typeof===MT||e.$$typeof===zT||e.$$typeof===jT||e.$$typeof===RT)},typeOf:AT},_T=K(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var f=e.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 t}}case a:return t}}}var w=s,k=u,C=c,E=l,S=n,N=d,O=r,P=h,T=m,D=a,I=i,R=o,M=p,z=!1;function j(e){return y(e)===u}t.AsyncMode=w,t.ConcurrentMode=k,t.ContextConsumer=C,t.ContextProvider=E,t.Element=S,t.ForwardRef=N,t.Fragment=O,t.Lazy=P,t.Memo=T,t.Portal=D,t.Profiler=I,t.StrictMode=R,t.Suspense=M,t.isAsyncMode=function(e){return z||(z=!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.")),j(e)||y(e)===s},t.isConcurrentMode=j,t.isContextConsumer=function(e){return y(e)===c},t.isContextProvider=function(e){return y(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return y(e)===d},t.isFragment=function(e){return y(e)===r},t.isLazy=function(e){return y(e)===h},t.isMemo=function(e){return y(e)===m},t.isPortal=function(e){return y(e)===a},t.isProfiler=function(e){return y(e)===i},t.isStrictMode=function(e){return y(e)===o},t.isSuspense=function(e){return y(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===b||e.$$typeof===v||e.$$typeof===x||e.$$typeof===g)},t.typeOf=y}()}),VT=K(function(e){"production"===process.env.NODE_ENV?e.exports=FT:e.exports=_T}),KT=Object.getOwnPropertySymbols,HT=Object.prototype.hasOwnProperty,BT=Object.prototype.propertyIsEnumerable;var $T=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var a=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==a.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,r=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))HT.call(n,i)&&(r[i]=n[i]);if(KT){a=KT(n);for(var l=0;l<a.length;l++)BT.call(n,a[l])&&(r[a[l]]=n[a[l]])}}return r},UT=Function.call.bind(Object.prototype.hasOwnProperty),WT="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",YT=UT,qT=function(){};if("production"!==process.env.NODE_ENV){var GT=WT,XT={},ZT=YT;qT=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function QT(e,t,n,a,r){if("production"!==process.env.NODE_ENV)for(var o in e)if(ZT(e,o)){var i;try{if("function"!=typeof e[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 e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}i=e[o](t,o,a,n,null,GT)}catch(e){i=e}if(!i||i instanceof Error||qT((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 XT)){XT[i.message]=!0;var c=r?r():"";qT("Failed "+n+" type: "+i.message+(null!=c?c:""))}}}QT.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(XT={})};var JT=QT,eD=function(){};function tD(){return null}"production"!==process.env.NODE_ENV&&(eD=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}});function nD(){}function aD(){}aD.resetWarningCache=nD;var rD=function(e,t){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(tD),arrayOf:function(e){return l(function(t,n,a,r,o){if("function"!=typeof e)return new i("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var l=t[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=e(l,c,a,r,o+"["+c+"]",WT);if(s instanceof Error)return s}return null})},element:l(function(t,n,a,r,o){var l=t[n];return e(l)?null:new i("Invalid "+r+" `"+o+"` of type `"+d(l)+"` supplied to `"+a+"`, expected a single ReactElement.")}),elementType:l(function(e,t,n,a,r){var o=e[t];return VT.isValidElementType(o)?null:new i("Invalid "+a+" `"+r+"` of type `"+d(o)+"` supplied to `"+n+"`, expected a single ReactElement type.")}),instanceOf:function(e){return l(function(t,n,r,o,l){if(!(t[n]instanceof e)){var c=e.name||a;return new i("Invalid "+o+" `"+l+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:a)+"` supplied to `")+r+"`, expected instance of `"+c+"`.")}var s;return null})},node:l(function(e,t,n,a,r){return u(e[t])?null:new i("Invalid "+a+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return l(function(t,n,a,r,o){if("function"!=typeof e)return new i("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var l=t[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(YT(l,s)){var u=e(l,s,a,r,o+"."+s,WT);if(u instanceof Error)return u}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&eD(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."),tD;return l(function(t,n,a,r,l){for(var c=t[n],s=0;s<e.length;s++)if(o(c,e[s]))return null;var u=JSON.stringify(e,function(e,t){return"symbol"===p(t)?String(t):t});return new i("Invalid "+r+" `"+l+"` of value `"+String(c)+"` supplied to `"+a+"`, expected one of "+u+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&eD("Invalid argument supplied to oneOfType, expected an instance of array."),tD;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return eD("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+f(n)+" at index "+t+"."),tD}return l(function(t,n,a,r,o){for(var l=[],c=0;c<e.length;c++){var s=(0,e[c])(t,n,a,r,o,WT);if(null==s)return null;s.data&&YT(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(e){return l(function(t,n,a,r,o){var l=t[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 e){var f=e[u];if("function"!=typeof f)return s(a,r,o,u,p(f));var m=f(l,u,a,r,o+"."+u,WT);if(m)return m}return null})},exact:function(e){return l(function(t,n,a,r,o){var l=t[n],c=d(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var u=$T({},t[n],e);for(var f in u){var m=e[f];if(YT(e,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(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=m(l,f,a,r,o+"."+f,WT);if(h)return h}return null})}};function o(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function i(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function l(e){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!==WT){if(t){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&&(eD("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:e(l,c,s,u,d)}var l=o.bind(null,!1);return l.isRequired=o.bind(null,!0),l}function c(e){return l(function(t,n,a,r,o,l){var c=t[n];return d(c)!==e?new i("Invalid "+r+" `"+o+"` of type `"+p(c)+"` supplied to `"+a+"`, expected `"+e+"`.",{expectedType:e}):null})}function s(e,t,n,a,r){return new i((e||"React class")+": "+t+" type `"+n+"."+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function u(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(u);if(null===t||e(t))return!0;var a=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!a)return!1;var r,o=a.call(t);if(a!==t.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(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function p(e){if(null==e)return""+e;var t=d(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function f(e){var t=p(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return i.prototype=Error.prototype,r.checkPropTypes=JT,r.resetWarningCache=JT.resetWarningCache,r.PropTypes=r,r},oD=function(){function e(e,t,n,a,r,o){if(o!==WT){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 t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:aD,resetWarningCache:nD};return n.PropTypes=n,n},iD=K(function(e){if("production"!==process.env.NODE_ENV){var t=VT;e.exports=rD(t.isElement,!0)}else e.exports=oD()}),lD=K(function(e,t){t.__esModule=!0,t.resizableProps=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(iD);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 e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var r,o=t[0];return"both"===o.axis||"y"===o.axis?(r=n.default.number).isRequired.apply(r,t):n.default.number.apply(n.default,t)},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 e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var r,o=t[0];return"both"===o.axis||"x"===o.axis?(r=n.default.number).isRequired.apply(r,t):n.default.number.apply(n.default,t)}};t.resizableProps=a}),cD=K(function(e,t){t.__esModule=!0,t.default=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}a.default=e,n&&n.set(e,a);return a}(f.default),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},o.apply(this,arguments)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var u=function(e){var t,r;function i(){for(var t,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(t=e.call.apply(e,[this].concat(a))||this).handleRefs={},t.lastHandleRect=null,t.slack=null,t}r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r);var c=i.prototype;return c.componentWillUnmount=function(){this.resetData()},c.resetData=function(){this.lastHandleRect=this.slack=null},c.runConstraints=function(e,t){var n=this.props,a=n.minConstraints,r=n.maxConstraints,o=n.lockAspectRatio;if(!a&&!r&&!o)return[e,t];if(o){var i=this.props.width/this.props.height,l=e-this.props.width,c=t-this.props.height;Math.abs(l)>Math.abs(c*i)?t=e/i:e=t*i}var s=e,u=t,d=this.slack||[0,0],p=d[0],f=d[1];return e+=p,t+=f,a&&(e=Math.max(a[0],e),t=Math.max(a[1],t)),r&&(e=Math.min(r[0],e),t=Math.min(r[1],t)),this.slack=[p+(s-e),f+(u-t)],[e,t]},c.resizeHandler=function(e,t){var n=this;return function(a,r){var o=r.node,i=r.deltaX,l=r.deltaY;"onResizeStart"===e&&n.resetData();var c=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==t&&"s"!==t,s=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==t&&"w"!==t;if(c||s){var u=t[0],d=t[t.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[e]?n.props[e]:null;b&&!("onResize"===e&&!g)&&(null==a.persist||a.persist(),b(a,{node:o,size:{width:f,height:m},handle:t})),"onResizeStop"===e&&n.resetData()}}},c.renderResizeHandle=function(e,t){var a=this.props.handle;if(!a)return n.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+e,ref:t});if("function"==typeof a)return a(e,t);var r=l({ref:t},"string"==typeof a.type?{}:{handleAxis:e});return n.cloneElement(a,r)},c.render=function(){var e=this,t=this.props,r=t.children,i=t.className,c=t.draggableOpts;t.width,t.height,t.handle,t.handleSize,t.lockAspectRatio,t.axis,t.minConstraints,t.maxConstraints,t.onResize,t.onResizeStop,t.onResizeStart;var s=t.resizeHandles;t.transformScale;var u=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,a);return(0,gT.cloneElement)(r,l(l({},u),{},{className:(i?i+" ":"")+"react-resizable",children:[].concat(r.props.children,s.map(function(t){var a,r=null!=(a=e.handleRefs[t])?a:e.handleRefs[t]=n.createRef();return n.createElement(v.default.DraggableCore,o({},c,{nodeRef:r,key:"resizableHandle-"+t,onStop:e.resizeHandler("onResizeStop",t),onStart:e.resizeHandler("onResizeStart",t),onDrag:e.resizeHandler("onResize",t)}),e.renderResizeHandle(t,r))}))}))},i}(n.Component);t.default=u,u.propTypes=lD.resizableProps,u.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}}),sD=K(function(e,t){t.__esModule=!0,t.default=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=e[o]}a.default=e,n&&n.set(e,a);return a}(f.default),a=i(iD),r=i(cD),o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},c.apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var m=function(e){var t,a;function i(){for(var t,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(t=e.call.apply(e,[this].concat(a))||this).state={width:t.props.width,height:t.props.height,propsWidth:t.props.width,propsHeight:t.props.height},t.onResize=function(e,n){var a=n.size;t.props.onResize?(null==e.persist||e.persist(),t.setState(a,function(){return t.props.onResize&&t.props.onResize(e,n)})):t.setState(a)},t}return a=e,(t=i).prototype=Object.create(a.prototype),t.prototype.constructor=t,p(t,a),i.getDerivedStateFromProps=function(e,t){return t.propsWidth!==e.width||t.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null},i.prototype.render=function(){var e=this.props,t=e.handle,a=e.handleSize;e.onResize;var i=e.onResizeStart,l=e.onResizeStop,s=e.draggableOpts,d=e.minConstraints,p=e.maxConstraints,f=e.lockAspectRatio,m=e.axis;e.width,e.height;var h=e.resizeHandles,g=e.style,b=e.transformScale,v=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,o);return n.createElement(r.default,{axis:m,draggableOpts:s,handle:t,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);t.default=m,m.propTypes=u(u({},lD.resizableProps),{},{children:a.default.element})}),uD=cD.default;sD.default;const dD=e=>{const{onResize:t,width:a,...r}=e;return a?n.jsx(uD,{width:a,height:0,handle:n.jsx("span",{className:"react-resizable-handle",onClick:e=>{e.stopPropagation()}}),onResize:t,draggableOpts:{enableUserSelectHack:!1},children:n.jsx("th",{...r})}):n.jsx("th",{...r})};var pD,fD=e.createContext({dragDropManager:void 0});function mD(e,t){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===t)throw new Error("invariant requires an error message argument");if(!e){var o;if(void 0===t)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(t.replace(/%s/g,function(){return a[i++]}))).name="Invariant Violation"}throw o.framesToPop=1,o}}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(pD||(pD={}));var hD="dnd-core/INIT_COORDS",gD="dnd-core/BEGIN_DRAG",bD="dnd-core/PUBLISH_DRAG_SOURCE",vD="dnd-core/HOVER",xD="dnd-core/DROP",yD="dnd-core/END_DRAG";function wD(e,t){return{type:hD,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function kD(e){return kD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kD(e)}function CD(e,t,n){return t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:n||null},e)}function ED(e){return"object"===kD(e)}var SD={type:hD,payload:{clientOffset:null,sourceClientOffset:null}};function ND(e){return function(){var t=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=e.getMonitor(),c=e.getRegistry();e.dispatch(wD(o)),function(e,t,n){mD(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){mD(n.getSource(e),"Expected sourceIds to be registered.")})}(t,l,c);var s=function(e,t){for(var n=null,a=e.length-1;a>=0;a--)if(t.canDragSource(e[a])){n=e[a];break}return n}(t,l);if(null!==s){var u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){mD("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(s)}e.dispatch(wD(o,u));var d=c.getSource(s).beginDrag(l,s);if(null!=d){!function(e){mD(ED(e),"Item must be an object.")}(d),c.pinSource(s);var p=c.getSourceType(s);return{type:gD,payload:{itemType:p,item:d,sourceId:s,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}else e.dispatch(SD)}}function OD(e){return function(){if(e.getMonitor().isDragging())return{type:bD}}}function PD(e,t){return null===t?null===e:Array.isArray(e)?e.some(function(e){return e===t}):e===t}function TD(e){return function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(e){mD(Array.isArray(e),"Expected targetIds to be an array.")}(t);var a=t.slice(0),r=e.getMonitor(),o=e.getRegistry();return function(e,t,n){mD(t.isDragging(),"Cannot call hover while not dragging."),mD(!t.didDrop(),"Cannot call hover after drop.");for(var a=0;a<e.length;a++){var r=e[a];mD(e.lastIndexOf(r)===a,"Expected targetIds to be unique in the passed array."),mD(n.getTarget(r),"Expected targetIds to be registered.")}}(a,r,o),function(e,t,n){for(var a=e.length-1;a>=0;a--){var r=e[a];PD(t.getTargetType(r),n)||e.splice(a,1)}}(a,o,r.getItemType()),function(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}(a,r,o),{type:vD,payload:{targetIds:a,clientOffset:n||null}}}}function DD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ID(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DD(Object(n),!0).forEach(function(t){RD(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function RD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MD(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),a=e.getRegistry();!function(e){mD(e.isDragging(),"Cannot call drop while not dragging."),mD(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);var r=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);r.forEach(function(r,o){var i=function(e,t,n,a){var r=n.getTarget(e),o=r?r.drop(a,e):void 0;(function(e){mD(void 0===e||ED(e),"Drop result must either be an object or undefined.")})(o),void 0===o&&(o=0===t?{}:a.getDropResult());return o}(r,o,a,n),l={type:xD,payload:{dropResult:ID(ID({},t),i)}};e.dispatch(l)})}}function zD(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){mD(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var a=t.getSourceId();null!=a&&(n.getSource(a,!0).endDrag(t,a),n.unpinSource());return{type:yD}}}function jD(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function AD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var LD=function(){function e(t,n){var a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),AD(this,"store",void 0),AD(this,"monitor",void 0),AD(this,"backend",void 0),AD(this,"isSetUp",!1),AD(this,"handleRefCountChange",function(){var e=a.store.getState().refCount>0;a.backend&&(e&&!a.isSetUp?(a.backend.setup(),a.isSetUp=!0):!e&&a.isSetUp&&(a.backend.teardown(),a.isSetUp=!1))}),this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}var t,n,a;return t=e,n=[{key:"receiveBackend",value:function(e){this.backend=e}},{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 e=this,t=this.store.dispatch,n=function(e){return{beginDrag:ND(e),publishDragSource:OD(e),hover:TD(e),drop:MD(e),endDrag:zD(e)}}(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(e,a);void 0!==i&&t(i)}),a},{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],n&&jD(t.prototype,n),a&&jD(t,a),e}();function FD(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var _D="function"==typeof Symbol&&Symbol.observable||"@@observable",VD=function(){return Math.random().toString(36).substring(7).split("").join(".")},KD={INIT:"@@redux/INIT"+VD(),REPLACE:"@@redux/REPLACE"+VD(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+VD()}};function HD(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";var n=function(e){return"function"==typeof e.constructor?e.constructor.name:null}(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function BD(e){var t=typeof e;return"production"!==process.env.NODE_ENV&&(t=HD(e)),t}function $D(e,t,n){var a;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?FD(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 t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?FD(1):"Expected the enhancer to be a function. Instead, received: '"+BD(n)+"'");return n($D)(e,t)}if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?FD(2):"Expected the root reducer to be a function. Instead, received: '"+BD(e)+"'");var r=e,o=t,i=[],l=i,c=!1;function s(){l===i&&(l=i.slice())}function u(){if(c)throw new Error("production"===process.env.NODE_ENV?FD(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(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?FD(4):"Expected the listener to be a function. Instead, received: '"+BD(e)+"'");if(c)throw new Error("production"===process.env.NODE_ENV?FD(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 t=!0;return s(),l.push(e),function(){if(t){if(c)throw new Error("production"===process.env.NODE_ENV?FD(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.");t=!1,s();var n=l.indexOf(e);l.splice(n,1),i=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error("production"===process.env.NODE_ENV?FD(7):"Actions must be plain objects. Instead, the actual type was: '"+BD(e)+"'. 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===e.type)throw new Error("production"===process.env.NODE_ENV?FD(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?FD(9):"Reducers may not dispatch actions.");try{c=!0,o=r(o,e)}finally{c=!1}for(var t=i=l,n=0;n<t.length;n++){(0,t[n])()}return e}return p({type:KD.INIT}),(a={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?FD(10):"Expected the nextReducer to be a function. Instead, received: '"+BD(e));r=e,p({type:KD.REPLACE})}})[_D]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error("production"===process.env.NODE_ENV?FD(11):"Expected the observer to be an object. Instead, received: '"+BD(e)+"'");function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[_D]=function(){return this},e},a}var UD=function(e,t){return e===t};function WD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function YD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WD(Object(n),!0).forEach(function(t){qD(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var GD={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function XD(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:GD,a=arguments.length>1?arguments[1]:void 0,r=a.payload;switch(a.type){case hD:case gD:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case vD:return e=n.clientOffset,t=r.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y?n:YD(YD({},n),{},{clientOffset:r.clientOffset});case yD:case xD:return GD;default:return n}}var ZD="dnd-core/ADD_SOURCE",QD="dnd-core/ADD_TARGET",JD="dnd-core/REMOVE_SOURCE",eI="dnd-core/REMOVE_TARGET";function tI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function nI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tI(Object(n),!0).forEach(function(t){aI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rI={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function oI(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rI,a=arguments.length>1?arguments[1]:void 0,r=a.payload;switch(a.type){case gD:return nI(nI({},n),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case bD:return nI(nI({},n),{},{isSourcePublic:!0});case vD:return nI(nI({},n),{},{targetIds:r.targetIds});case eI:return-1===n.targetIds.indexOf(r.targetId)?n:nI(nI({},n),{},{targetIds:(e=n.targetIds,t=r.targetId,e.filter(function(e){return e!==t}))});case xD:return nI(nI({},n),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case yD:return nI(nI({},n),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function iI(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case ZD:case QD:return e+1;case JD:case eI:return e-1;default:return e}}var lI=[],cI=[];function sI(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case vD:break;case ZD:case QD:case eI:case JD:return lI;default:return cI}var t=e.payload,n=t.targetIds,a=void 0===n?[]:n,r=t.prevTargetIds,o=void 0===r?[]:r,i=function(e,t){var n=new Map,a=function(e){n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(a),t.forEach(a);var r=[];return n.forEach(function(e,t){1===e&&r.push(t)}),r}(a,o),l=i.length>0||!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:UD;if(e.length!==t.length)return!1;for(var a=0;a<e.length;++a)if(!n(e[a],t[a]))return!1;return!0}(a,o);if(!l)return lI;var c=o[o.length-1],s=a[a.length-1];return c!==s&&(c&&i.push(c),s&&i.push(s)),i}function uI(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function dI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function pI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dI(Object(n),!0).forEach(function(t){fI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mI(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:sI(e.dirtyHandlerIds,{type:t.type,payload:pI(pI({},t.payload),{},{prevTargetIds:CD(e,"dragOperation.targetIds",[])})}),dragOffset:XD(e.dragOffset,t),refCount:iI(e.refCount,t),dragOperation:oI(e.dragOperation,t),stateId:uI(e.stateId)}}function hI(e,t){return{x:e.x-t.x,y:e.y-t.y}}function gI(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function bI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}lI.__IS_NONE__=!0,cI.__IS_ALL__=!0;var vI=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),bI(this,"store",void 0),bI(this,"registry",void 0),this.store=t,this.registry=n}var t,n,a;return t=e,n=[{key:"subscribeToStateChange",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;mD("function"==typeof e,"listener must be a function."),mD(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=t.store.getState(),o=r.stateId;try{var i=o===a||o===a+1&&!function(e,t){if(e===lI)return!1;if(e===cI||void 0===t)return!0;var n,a=(n=e,t.filter(function(e){return n.indexOf(e)>-1}));return a.length>0}(r.dirtyHandlerIds,n);i||e()}finally{a=o}})}},{key:"subscribeToOffsetChange",value:function(e){var t=this;mD("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe(function(){var a=t.store.getState().dragOffset;a!==n&&(n=a,e())})}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return mD(t,"Expected to find a valid source. sourceId=".concat(e)),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return mD(t,"Expected to find a valid target. targetId=".concat(e)),!(!this.isDragging()||this.didDrop())&&PD(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return mD(t,"Expected to find a valid source. sourceId=".concat(e)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){if(!e)return!1;var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),a=this.getItemType();if(a&&!PD(n,a))return!1;var r=this.getTargetIds();if(!r.length)return!1;var o=r.indexOf(e);return t?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 e=this.store.getState().dragOffset,t=e.clientOffset,n=e.initialClientOffset,a=e.initialSourceClientOffset,t&&n&&a?hI(function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(t,a),n):null;var e,t,n,a}},{key:"getDifferenceFromInitialOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,n=e.initialClientOffset,t&&n?hI(t,n):null;var e,t,n}}],n&&gI(t.prototype,n),a&&gI(t,a),e}(),xI=0;function yI(e){return yI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yI(e)}function wI(e,t){t&&Array.isArray(e)?e.forEach(function(e){return wI(e,!1)}):mD("string"==typeof e||"symbol"===yI(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const kI="undefined"!=typeof global?global:self,CI=kI.MutationObserver||kI.WebKitMutationObserver;function EI(e){return function(){const t=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(t),clearInterval(n),e()}}}const SI="function"==typeof CI?function(e){let t=1;const n=new CI(e),a=document.createTextNode("");return n.observe(a,{characterData:!0}),function(){t=-t,a.data=t}}:EI;class NI{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const OI=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=SI(this.flush),this.requestErrorThrow=EI(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},PI=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new NI(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(OI.registerPendingError);function TI(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function DI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function II(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return RI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RI(e,t)}(e,t)||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 RI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function MI(e){var t=(xI++).toString();switch(e){case pD.SOURCE:return"S".concat(t);case pD.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function zI(e){switch(e[0]){case"S":return pD.SOURCE;case"T":return pD.TARGET;default:mD(!1,"Cannot parse handler ID: ".concat(e))}}function jI(e,t){var n=e.entries(),a=!1;do{var r=n.next(),o=r.done;if(II(r.value,2)[1]===t)return!0;a=!!o}while(!a);return!1}var AI=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),DI(this,"types",new Map),DI(this,"dragSources",new Map),DI(this,"dropTargets",new Map),DI(this,"pinnedSourceId",null),DI(this,"pinnedSource",null),DI(this,"store",void 0),this.store=t}var t,n,a;return t=e,n=[{key:"addSource",value:function(e,t){wI(e),function(e){mD("function"==typeof e.canDrag,"Expected canDrag to be a function."),mD("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),mD("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(pD.SOURCE,e,t);return this.store.dispatch(function(e){return{type:ZD,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){wI(e,!0),function(e){mD("function"==typeof e.canDrop,"Expected canDrop to be a function."),mD("function"==typeof e.hover,"Expected hover to be a function."),mD("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(pD.TARGET,e,t);return this.store.dispatch(function(e){return{type:QD,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return jI(this.dragSources,e)||jI(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return mD(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:"getTarget",value:function(e){return mD(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return mD(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return mD(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return zI(e)===pD.SOURCE}},{key:"isTargetId",value:function(e){return zI(e)===pD.TARGET}},{key:"removeSource",value:function(e){var t,n=this;mD(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:JD,payload:{sourceId:e}}}(e)),t=function(){n.dragSources.delete(e),n.types.delete(e)},OI.enqueueTask(PI.create(t))}},{key:"removeTarget",value:function(e){mD(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:eI,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);mD(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){mD(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var a=MI(e);return this.types.set(a,t),e===pD.SOURCE?this.dragSources.set(a,n):e===pD.TARGET&&this.dropTargets.set(a,n),a}}],n&&TI(t.prototype,n),a&&TI(t,a),e}();function LI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=function(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return $D(mI,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(arguments.length>3&&void 0!==arguments[3]&&arguments[3]),r=new vI(a,new AI(a)),o=new LD(a,r),i=e(o,t,n);return o.receiveBackend(i),o}var FI=["children"];function _I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return VI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VI(e,t)}(e,t)||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 VI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function KI(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var HI=0,BI=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),$I=e.memo(function(t){var a=t.children,r=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:UI(),n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=t;r[BI]||(r[BI]={dragDropManager:LI(e,t,n,a)});return r[BI]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(KI(t,FI)),o=_I(r,2),i=o[0],l=o[1];return e.useEffect(function(){if(l){var e=UI();return++HI,function(){0===--HI&&(e[BI]=null)}}},[]),n.jsx(fD.Provider,Object.assign({value:i},{children:a}),void 0)});function UI(){return"undefined"!=typeof global?global:window}function WI(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function YI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qI=!1,GI=!1,XI=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),YI(this,"internalMonitor",void 0),YI(this,"sourceId",null),this.internalMonitor=t.getMonitor()}var t,n,a;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){mD(!qI,"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 qI=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{qI=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;mD(!GI,"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 GI=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{GI=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{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(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{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()}}])&&WI(t.prototype,n),a&&WI(t,a),e}();function ZI(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function QI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JI=!1,eR=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),QI(this,"internalMonitor",void 0),QI(this,"targetId",null),this.internalMonitor=t.getMonitor()}var t,n,a;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;mD(!JI,"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 JI=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{JI=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{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()}}])&&ZI(t.prototype,n),a&&ZI(t,a),e}();function tR(t){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(!e.isValidElement(n)){var r=n;return t(r,a),r}var o=n;!function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}(o);var i=a?function(e){return t(e,a)}:t;return function(t,n){var a=t.ref;return mD("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?e.cloneElement(t,{ref:function(e){aR(a,e),aR(n,e)}}):e.cloneElement(t,{ref:n})}(o,i)}}function nR(e){var t={};return Object.keys(e).forEach(function(n){var a=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var r=tR(a);t[n]=function(){return r}}}),t}function aR(e,t){"function"==typeof e?e(t):e.current=t}function rR(e){return rR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rR(e)}function oR(e){return null!==e&&"object"===rR(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function iR(e,t,n,a){var r=n?n.call(a,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),c=0;c<o.length;c++){var s=o[c];if(!l(s))return!1;var u=e[s],d=t[s];if(!1===(r=n?n.call(a,u,d,s):void 0)||void 0===r&&u!==d)return!1}return!0}function lR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function cR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sR=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),cR(this,"hooks",nR({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,oR(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,oR(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}})),cR(this,"handlerId",null),cR(this,"dragSourceRef",null),cR(this,"dragSourceNode",void 0),cR(this,"dragSourceOptionsInternal",null),cR(this,"dragSourceUnsubscribe",void 0),cR(this,"dragPreviewRef",null),cR(this,"dragPreviewNode",void 0),cR(this,"dragPreviewOptionsInternal",null),cR(this,"dragPreviewUnsubscribe",void 0),cR(this,"lastConnectedHandlerId",null),cR(this,"lastConnectedDragSource",null),cR(this,"lastConnectedDragSourceOptions",null),cR(this,"lastConnectedDragPreview",null),cR(this,"lastConnectedDragPreviewOptions",null),cR(this,"backend",void 0),this.backend=t}var t,n,a;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{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!iR(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!iR(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}}])&&lR(t.prototype,n),a&&lR(t,a),e}();function uR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function dR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pR=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),dR(this,"hooks",nR({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,oR(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}})),dR(this,"handlerId",null),dR(this,"dropTargetRef",null),dR(this,"dropTargetNode",void 0),dR(this,"dropTargetOptionsInternal",null),dR(this,"unsubscribeDropTarget",void 0),dR(this,"lastConnectedHandlerId",null),dR(this,"lastConnectedDropTarget",null),dR(this,"lastConnectedDropTargetOptions",null),dR(this,"backend",void 0),this.backend=t}var t,n,a;return t=e,(n=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!iR(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}}])&&uR(t.prototype,n),a&&uR(t,a),e}();var fR="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function mR(e){return mR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mR(e)}function hR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function gR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bR=function(){function e(t,n,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),gR(this,"spec",void 0),gR(this,"monitor",void 0),gR(this,"connector",void 0),this.spec=t,this.monitor=n,this.connector=a}var t,n,a;return t=e,(n=[{key:"beginDrag",value:function(){var e,t=this.spec,n=this.monitor;return null!==(e="object"===mR(t.item)?t.item:"function"==typeof t.item?t.item(n):{})&&void 0!==e?e:null}},{key:"canDrag",value:function(){var e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}},{key:"isDragging",value:function(e,t){var n=this.spec,a=this.monitor,r=n.isDragging;return r?r(a):t===e.getSourceId()}},{key:"endDrag",value:function(){var e=this.spec,t=this.monitor,n=this.connector,a=e.end;a&&a(t.getItem(),t),n.reconnect()}}])&&hR(t.prototype,n),a&&hR(t,a),e}();function vR(){var t=e.useContext(fD).dragDropManager;return mD(null!=t,"Expected drag drop context"),t}function xR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yR(e,t)}(e,t)||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 yR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function wR(t,n,a){var r=vR(),o=function(t,n,a){var r=e.useMemo(function(){return new bR(t,n,a)},[n,a]);return e.useEffect(function(){r.spec=t},[t]),r}(t,n,a),i=function(t){return e.useMemo(function(){var e=t.type;return mD(null!=e,"spec.type must be defined"),e},[t])}(t);fR(function(){if(null!=i){var e=function(e,t,n){var a=n.getRegistry(),r=a.addSource(e,t);return[r,function(){return a.removeSource(r)}]}(i,o,r),t=xR(e,2),l=t[0],c=t[1];return n.receiveHandlerId(l),a.receiveHandlerId(l),c}},[r,n,a,o,i])}function kR(e){return function(e){if(Array.isArray(e))return CR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return CR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CR(e,t)}(e)||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 CR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function ER(t,n){var a=kR(n||[]);return null==n&&"function"!=typeof t&&a.push(t),e.useMemo(function(){return"function"==typeof t?t():t},a)}var SR=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var a,r,o;if(Array.isArray(t)){if((a=t.length)!=n.length)return!1;for(r=a;0!==r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((a=(o=Object.keys(t)).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(!e(t[i],n[i]))return!1}return!0}return t!=t&&n!=n};function NR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return OR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OR(e,t)}(e,t)||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 OR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function PR(t,n,a){var r=NR(e.useState(function(){return n(t)}),2),o=r[0],i=r[1],l=e.useCallback(function(){var e=n(t);SR(o,e)||(i(e),a&&a())},[o,t,a]);return fR(l),[o,l]}function TR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return DR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DR(e,t)}(e,t)||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 DR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function IR(e,t,n){return function(e,t,n){var a=TR(PR(e,t,n),2),r=a[0],o=a[1];return fR(function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})},[e,o]),r}(t,e||function(){return{}},function(){return n.reconnect()})}function RR(t){return e.useMemo(function(){return t.hooks.dragSource()},[t])}function MR(t){return e.useMemo(function(){return t.hooks.dragPreview()},[t])}function zR(t,n){var a=ER(t,n);mD(!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=vR(),e.useMemo(function(){return new XI(r)},[r])),i=function(t,n){var a=vR(),r=e.useMemo(function(){return new sR(a.getBackend())},[a]);return fR(function(){return r.dragSourceOptions=t||null,r.reconnect(),function(){return r.disconnectDragSource()}},[r,t]),fR(function(){return r.dragPreviewOptions=n||null,r.reconnect(),function(){return r.disconnectDragPreview()}},[r,n]),r}(a.options,a.previewOptions);return wR(a,o,i),[IR(a.collect,o,i),RR(i),MR(i)]}function jR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function AR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var LR=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),AR(this,"spec",void 0),AR(this,"monitor",void 0),this.spec=t,this.monitor=n}var t,n,a;return t=e,(n=[{key:"canDrop",value:function(){var e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}},{key:"hover",value:function(){var e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}},{key:"drop",value:function(){var e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}}])&&jR(t.prototype,n),a&&jR(t,a),e}();function FR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _R(e,t)}(e,t)||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 _R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function VR(t,n,a){var r=vR(),o=function(t,n){var a=e.useMemo(function(){return new LR(t,n)},[n]);return e.useEffect(function(){a.spec=t},[t]),a}(t,n),i=function(t){var n=t.accept;return e.useMemo(function(){return mD(null!=t.accept,"accept must be defined"),Array.isArray(n)?n:[n]},[n])}(t);fR(function(){var e=function(e,t,n){var a=n.getRegistry(),r=a.addTarget(e,t);return[r,function(){return a.removeTarget(r)}]}(i,o,r),t=FR(e,2),l=t[0],c=t[1];return n.receiveHandlerId(l),a.receiveHandlerId(l),c},[r,n,o,a,i.map(function(e){return e.toString()}).join("|")])}function KR(t){return e.useMemo(function(){return t.hooks.dropTarget()},[t])}function HR(t,n){var a,r=ER(t,n),o=(a=vR(),e.useMemo(function(){return new eR(a)},[a])),i=function(t){var n=vR(),a=e.useMemo(function(){return new pR(n.getBackend())},[n]);return fR(function(){return a.dropTargetOptions=t||null,a.reconnect(),function(){return a.disconnectDropTarget()}},[t]),a}(r.options);return VR(r,o,i),[IR(r.collect,o,i),KR(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:BR}=Su,$R=f.default.createContext(null),UR=({vc:t,open:a,index:r,moveRow:o,className:i,style:l,...c})=>{const[s]=uy.useForm(),u=e.useRef(null),[{isOver:d,dropClassName:p},f]=HR({accept:"DraggableBodyRow",collect:e=>{const{index:t}=e.getItem()||{};return t===r?{}:{isOver:e.isOver(),dropClassName:t<r?" drop-over-downward":" drop-over-upward"}},drop:e=>{o(e.index,r)}}),[,m]=zR({type:"DraggableBodyRow",item:{index:r},collect:e=>({isDragging:e.isDragging()})});a&&f(m(u));const h={ref:u,className:`${i}${d?p:""}`,style:{cursor:a?"move":"auto",...l},...c};return n.jsx(uy,{size:"small",component:!1,form:s,children:n.jsx($R.Provider,{value:s,children:t?t.body.row(h,u):n.jsx("tr",{...h})})})},WR=({vc:t,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:y,formChange:w,remoteConfig:k,children:C,formItemProps:E,handleSave:S,placeholder:N,...O})=>{const P=e.useContext($R),[T,D]=e.useState(!1),[I,R]=e.useState(!1),[M,z]=e.useState({}),j=e.useRef(null);e.useEffect(()=>{T&&j.current.focus()},[T]),e.useEffect(()=>{"RemoteSearch"===h&&r&&r[i]&&k?.remoteApi&&A(void 0,i,r,k?.remoteApi)},[k?.remoteApi]);const A=(e,t,n,a)=>{a&&(R(!0),a(e,n).then(e=>{R(!1),t&&z({[t]:e})}))},L=()=>{F()},F=()=>{D(!1)},_=()=>{void 0!==r[i]&&null!==r[i]&&""!==r[i]&&("DatePicker"!==h&&"DateTimePicker"!==h||(r[i]=x.default(r[i])),"status"===i&&(r[i]=String(r[i]))),D(!T),P.setFieldsValue({[i]:r[i]})},V=e=>{const t={DateTimePicker:"YYYY-MM-DD HH:mm:ss",DatePicker:"YYYY-MM-DD"};return Object.keys(t).includes(h)&&e[i]&&(e[i]=e[i].format(t[h])),e},K=(e,t)=>{let a=null;const o=(e,t)=>{let n="";const a=function(e){for(let t of e)if(t)if(uP({data:t,type:"String"}))n+=t;else{const e=t.props.children;uP({data:e,type:"Object"})&&a([e]),uP({data:e,type:"Array"})&&a(e),uP({data:e,type:"String"})&&(n+=e)}};return a([t.children]),n.toLowerCase().indexOf(e.toLowerCase())>=0},l=e=>{if(m.default.isArray(e))return e.map((e,t)=>n.jsx(BR,{value:e.value,children:e.label},t))};switch(e){case"RecordSelect":a=n.jsx(Su,{ref:j,open:T,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:N||t,onChange:H,onBlur:L,optionFilterProp:"children",filterOption:o,children:l(r[b])});break;case"Select":a=n.jsx(Su,{ref:j,open:T,dropdownMatchSelectWidth:!1,onChange:H,onBlur:L,placeholder:N||t,children:l(g)});break;case"DatePicker":a=n.jsx(fx,{ref:j,open:T,onChange:H,onBlur:L,placeholder:N||t});break;case"DateTimePicker":a=n.jsx(fx,{ref:j,open:T,onChange:H,onBlur:L,placeholder:N||t,showTime:!0});break;case"AutoComplete":a=n.jsx(Su,{ref:j,open:T,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:N||t,onChange:H,onBlur:L,optionFilterProp:"children",filterOption:o,children:l(g)});break;case"RemoteSearch":let e=g;M[i]&&(e=M[i]),a=n.jsx(Su,{ref:j,open:T,mode:k.remoteMode,placeholder:N||t,notFoundContent:I?n.jsx(Wy,{size:"small"}):null,dropdownMatchSelectWidth:!1,filterOption:!1,allowClear:!0,showSearch:!0,onChange:H,onBlur:L,onFocus:()=>A(void 0,i,r,k.remoteApi),onSearch:e=>A(e,i,r,k.remoteApi),children:i&&l(e)});break;default:a=n.jsx(Kb,{ref:j,onPressEnter:H,onBlur:H,placeholder:N||t,type:f||"text"})}return a},H=async()=>{try{const e=await P.validateFields();let t={...r,...e};t[i]=t[i]||void 0,t=V(t),w&&(t=await w(t)||t),r[i]!==t[i]&&S(t,i),F()}catch(e){console.log("保存表单字段失败:",e)}};let B=C;const $=y?y(r[i],r,o):(()=>{if(h&&i){if(g&&("Select"===h||"AutoComplete"===h))return dP(g,r[i]);if("RemoteSearch"===h&&M[i])return dP(M[i],r[i]);if(r[b]&&"RecordSelect"===h)return dP(r[b],r[i]);if(x.default.isMoment(r[i]))return V(r)[i]}return C})();B=p?T?n.jsx(uy.Item,{style:{margin:0},name:i,rules:E?E.rules:void 0,children:K(h,l)}):n.jsx("div",{className:"editable-cell-value-wrap",onClick:_,children:$}):$,v&&(B=v(r,B));const U=(e,a)=>t?n.jsx(t.body.cell,{...e,children:a}):n.jsx("td",{...e,children:a});return u||d?U({...O,rowSpan:u,colSpan:d,title:r&&r[i]},B):0!==c&&0!==s?U({...O,rowSpan:c,colSpan:u,title:r&&r[i]},B):null};function YR(e){var t=null;return function(){return null==t&&(t=e()),t}}function qR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function GR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XR=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),GR(this,"entered",[]),GR(this,"isNodeInDocument",void 0),this.isNodeInDocument=t}var t,n,a;return t=e,n=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,a=function(e){return n.add(e)};e.forEach(a),t.forEach(a);var r=[];return n.forEach(function(e){return r.push(e)}),r}(this.entered.filter(function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))}),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,a=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter(function(e){return e!==n})),a>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}],n&&qR(t.prototype,n),a&&qR(t,a),e}(),ZR=YR(function(){return/firefox/i.test(navigator.userAgent)}),QR=YR(function(){return Boolean(window.safari)});function JR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function eM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tM=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),eM(this,"xs",void 0),eM(this,"ys",void 0),eM(this,"c1s",void 0),eM(this,"c2s",void 0),eM(this,"c3s",void 0);for(var a=t.length,r=[],o=0;o<a;o++)r.push(o);r.sort(function(e,n){return t[e]<t[n]?-1:1});for(var i,l,c=[],s=[],u=0;u<a-1;u++)i=t[u+1]-t[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=[],x=[],y=0;y<d.length-1;y++){b=s[y];var w=d[y],k=1/c[y],C=w+d[y+1]-b-b;v.push((b-w-C)*k),x.push(C*k*k)}this.xs=t,this.ys=n,this.c1s=d,this.c2s=v,this.c3s=x}var t,n,a;return t=e,n=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,a=this.c1s,r=this.c2s,o=this.c3s,i=t.length-1;if(e===t[i])return n[i];for(var l,c=0,s=o.length-1;c<=s;){var u=t[l=Math.floor(.5*(c+s))];if(u<e)c=l+1;else{if(!(u>e))return n[l];s=l-1}}var d=e-t[i=Math.max(0,s)],p=d*d;return n[i]+a[i]*d+r[i]*p+o[i]*d*p}}],n&&JR(t.prototype,n),a&&JR(t,a),e}();function nM(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),a=n.top;return{x:n.left,y:a}}function aM(e){return{x:e.clientX,y:e.clientY}}function rM(e,t,n,a,r){var o,i,l="IMG"===(o=t).nodeName&&(ZR()||!(null!==(i=document.documentElement)&&void 0!==i&&i.contains(o))),c=nM(l?e:t),s={x:n.x-c.x,y:n.y-c.y},u=e.offsetWidth,d=e.offsetHeight,p=a.anchorX,f=a.anchorY,m=function(e,t,n,a){var r=e?t.width:n,o=e?t.height:a;return QR()&&e&&(o/=window.devicePixelRatio,r/=window.devicePixelRatio),{dragPreviewWidth:r,dragPreviewHeight:o}}(l,t,u,d),h=m.dragPreviewWidth,g=m.dragPreviewHeight,b=r.offsetX,v=r.offsetY,x=0===v||v;return{x:0===b||b?b:new tM([0,.5,1],[s.x,s.x/u*h,s.x+h-u]).interpolate(p),y:x?v:function(){var e=new tM([0,.5,1],[s.y,s.y/d*g,s.y+g-d]).interpolate(f);return QR()&&l&&(e+=(window.devicePixelRatio-1)*g),e}()}}var oM,iM="__NATIVE_FILE__",lM="__NATIVE_URL__",cM="__NATIVE_TEXT__",sM="__NATIVE_HTML__",uM=Object.freeze({__proto__:null,FILE:iM,URL:lM,TEXT:cM,HTML:sM});function dM(e,t,n){var a=t.reduce(function(t,n){return t||e.getData(n)},"");return null!=a?a:n}function pM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fM=(pM(oM={},iM,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),pM(oM,sM,{exposeProperties:{html:function(e,t){return dM(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),pM(oM,lM,{exposeProperties:{urls:function(e,t){return dM(e,t,"").split("\n")},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),pM(oM,cM,{exposeProperties:{text:function(e,t){return dM(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),oM);function mM(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function hM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gM=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),hM(this,"item",void 0),hM(this,"config",void 0),this.config=t,this.item={},this.initializeExposedProperties()}var t,n,a;return t=e,(n=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach(function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach(function(a){n[a]={value:t.config.exposeProperties[a](e,t.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(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&mM(t.prototype,n),a&&mM(t,a),e}();function bM(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(fM).filter(function(e){return fM[e].matchesTypes.some(function(e){return t.indexOf(e)>-1})})[0]||null}function vM(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function xM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yM=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),xM(this,"ownerDocument",null),xM(this,"globalContext",void 0),xM(this,"optionsArgs",void 0),this.globalContext=t,this.optionsArgs=n}var t,n,a;return t=e,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var e;return null!==(e=this.globalContext)&&void 0!==e&&e.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}}])&&vM(t.prototype,n),a&&vM(t,a),e}();function wM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function kM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wM(Object(n),!0).forEach(function(t){EM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function CM(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function EM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SM=function(){function e(t,n,a){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),EM(this,"options",void 0),EM(this,"actions",void 0),EM(this,"monitor",void 0),EM(this,"registry",void 0),EM(this,"enterLeaveCounter",void 0),EM(this,"sourcePreviewNodes",new Map),EM(this,"sourcePreviewNodeOptions",new Map),EM(this,"sourceNodes",new Map),EM(this,"sourceNodeOptions",new Map),EM(this,"dragStartSourceIds",null),EM(this,"dropTargetIds",[]),EM(this,"dragEnterTargetIds",[]),EM(this,"currentNativeSource",null),EM(this,"currentNativeHandle",null),EM(this,"currentDragSourceNode",null),EM(this,"altKeyPressed",!1),EM(this,"mouseMoveTimeoutTimer",null),EM(this,"asyncEndDragFrameId",null),EM(this,"dragOverTargetIds",null),EM(this,"lastClientOffset",null),EM(this,"hoverRafId",null),EM(this,"getSourceClientOffset",function(e){var t=r.sourceNodes.get(e);return t&&nM(t)||null}),EM(this,"endDragNativeItem",function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.currentNativeHandle&&r.registry.removeSource(r.currentNativeHandle),r.currentNativeHandle=null,r.currentNativeSource=null)}),EM(this,"isNodeInDocument",function(e){return Boolean(e&&r.document&&r.document.body&&r.document.body.contains(e))}),EM(this,"endDragIfSourceWasRemovedFromDOM",function(){var e=r.currentDragSourceNode;null==e||r.isNodeInDocument(e)||r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()}),EM(this,"handleTopDragStartCapture",function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]}),EM(this,"handleTopDragStart",function(e){if(!e.defaultPrevented){var t=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=aM(e);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var a=e.dataTransfer,o=bM(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=rM(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(e){}r.setCurrentDragSourceNode(e.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&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}}),EM(this,"handleTopDragEndCapture",function(){r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()}),EM(this,"handleTopDragEnterCapture",function(e){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(e.target)&&!r.monitor.isDragging()){var t=e.dataTransfer,n=bM(t);n&&r.beginDragNativeItem(n,t)}}),EM(this,"handleTopDragEnter",function(e){var t=r.dragEnterTargetIds;(r.dragEnterTargetIds=[],r.monitor.isDragging())&&(r.altKeyPressed=e.altKey,t.length>0&&r.actions.hover(t,{clientOffset:aM(e)}),t.some(function(e){return r.monitor.canDropOnTarget(e)})&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())))}),EM(this,"handleTopDragOverCapture",function(){r.dragOverTargetIds=[]}),EM(this,"handleTopDragOver",function(e){var t=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));r.altKeyPressed=e.altKey,r.lastClientOffset=aM(e),null===r.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(r.hoverRafId=requestAnimationFrame(function(){r.monitor.isDragging()&&r.actions.hover(t||[],{clientOffset:r.lastClientOffset}),r.hoverRafId=null})),(t||[]).some(function(e){return r.monitor.canDropOnTarget(e)})?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))}),EM(this,"handleTopDragLeaveCapture",function(e){r.isDraggingNativeItem()&&e.preventDefault(),r.enterLeaveCounter.leave(e.target)&&r.isDraggingNativeItem()&&setTimeout(function(){return r.endDragNativeItem()},0)}),EM(this,"handleTopDropCapture",function(e){var t;(r.dropTargetIds=[],r.isDraggingNativeItem())?(e.preventDefault(),null===(t=r.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):bM(e.dataTransfer)&&e.preventDefault();r.enterLeaveCounter.reset()}),EM(this,"handleTopDrop",function(e){var t=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(t,{clientOffset:aM(e)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.monitor.isDragging()&&r.actions.endDrag()}),EM(this,"handleSelectStart",function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))}),this.options=new yM(n,a),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new XR(this.isNodeInDocument)}var t,n,a;return t=e,n=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.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 e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}},{key:"teardown",value:function(){var e,t=this.rootElement;void 0!==t&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(e=this.window)||void 0===e||e.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(e,t,n){var a=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){a.sourcePreviewNodes.delete(e),a.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var a=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var r=function(t){return a.handleDragStart(t,e)},o=function(e){return a.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),function(){a.sourceNodes.delete(e),a.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,a=function(t){return n.handleDragEnter(t,e)},r=function(t){return n.handleDragOver(t,e)},o=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",a),t.addEventListener("dragover",r),t.addEventListener("drop",o),function(){t.removeEventListener("dragenter",a),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return kM({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return kM({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(uM).some(function(t){return uM[t]===e})}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new gM(fM[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(function(){var e;return null===(e=t.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}}],n&&CM(t.prototype,n),a&&CM(t,a),e}();const NM=function(e,t,n){return new SM(e,t,n)},OM=e=>n.jsx($I,{backend:NM,context:window,children:e.children});k(".ant-table-wrapper .ant-table-cell{color:#333}.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 PM=e.forwardRef((t,a)=>{const r=e.useMemo(()=>{const e=t.extra||{};return{tableConfig:e.tableConfig,virtual:e.virtual,rowType:e.rowType,scroll:e.scroll,apiMethod:e.apiMethod,columns:e.columns||[],data:e.data,drag:e.drag,onSelect:e.onSelect,hidSortColumn:e.hidSortColumn,paginationConfig:e.paginationConfig,getCheckboxProps:e.getCheckboxProps,resultFilter:e.resultFilter,getTableSuccessData:e.getTableSuccessData}},[t.extra]),o=e.useRef(),l=e.useRef(!0),c=e.useRef({position:["bottomCenter"],size:"small",current:1,total:0,pages:0,pageSize:10,showSizeChanger:!0,orderByInfo:void 0}),s=e.useRef([]),[u,d]=e.useState(r.columns),[p,f]=e.useState(!1),[h,g]=N.useSetState({listData:[],selectRowIds:[],selectRowArray:[]}),[b,v]=e.useState({x:void 0,y:330}),x=e.useMemo(()=>r.tableConfig&&r.tableConfig.rowKey?r.tableConfig.rowKey:"id",[r.tableConfig]),y=e.useMemo(()=>{const e=i.v4();if(r.virtual&&r.virtual.open){const t={...r.virtual.config,vid:r.virtual.config?.vid||e,height:r.virtual.config?.height||500,resetTopWhenDataChange:r.virtual.config?.resetTopWhenDataChange||!1};return console.log("创建虚拟列表",t),sT(t)}},[r.virtual]),w=e.useMemo(()=>{const e={header:{cell:dD},body:{row:e=>n.jsx(UR,{...e,vc:y}),cell:e=>n.jsx(WR,{...e,vc:y,columns:u})}};try{if(y){const t=e;return{...y,header:t.header,body:{...y.body,cell:t.body.cell,row:t.body.row}}}return e}catch(t){return console.error("虚拟列表配置失败,请检查配置项",t),e}},[u,y]),k=!(!m.default.isFunction(r.apiMethod)||!l.current)&&{size:"small",position:["bottomCenter"],showTotal:e=>`共${e}条`,showSizeChanger:!0,showQuickJumper:!0,...c.current},C=e.useCallback((e,t)=>{const n=new Map;return e.forEach(e=>{n.set(e[x],e)}),t.forEach(e=>{n.set(e[x],e)}),Array.from(n.values())},[x]),E=e.useCallback(async e=>{let t=!0;f(!0),e&&(void 0!==e.updateSelected&&(t=e.updateSelected,delete e.updateSelected),"not-reset"===e.pagination&&delete e.pagination,o.current={...o.current,...e});try{const n={...o.current};for(let e in c.current){const t=c.current[e];"orderByInfo"===e&&(n.orderByInfo=t),"current"===e&&(n.page=t),"pageSize"===e&&(n.size=n.size||t)}if(e&&e.current&&(n.page=e.current,c.current.current=e.current),r.apiMethod){delete n.current;const e=await r.apiMethod(m.default.pickBy(n,m.default.identity));let a=[];m.default.isArray(e.data.content)&&(!1!==r.paginationConfig?l.current=!0:l.current=!1,a=e.data.content,c.current.total=e.data.total,c.current.pages=e.data.pages),m.default.isArray(e.data)&&(l.current=!1,a=e.data),r.resultFilter&&(a=await r.resultFilter(a)),t&&g(e=>{let t=[...e.selectRowIds],n=[];const r=a=>{if(e.selectRowIds.length)for(let o of a){for(let a of e.selectRowIds)o[x]===a&&(t.push(a),n.push(o));o.children&&r(o.children)}};return r(a),e.selectRowIds=Array.from(new Set(t)),e.selectRowArray=C(e.selectRowArray,n),e}),g(e=>(e.listData=a,e)),r.getTableSuccessData&&r.getTableSuccessData(e)}}catch(e){}f(!1)},[r,x,C,g]),S=e=>{!m.default.isEqual(e,c.current)&&l.current&&(c.current={...c.current,...e},E())},O={fixed:!0,type:r.rowType,selectedRowKeys:h.selectRowIds,getCheckboxProps:r.getCheckboxProps,onSelectAll:(e,t,n)=>{g(t=>{let a=[...t.selectRowIds],o=[...t.selectRowArray];return e?(a=m.default.uniq([...a,...n.map(e=>e[x])]),o=m.default.uniqBy([...o,...n],x)):(a=a.filter(e=>!n.some(t=>t[x]===e)),o=o.filter(e=>!n.some(t=>t[x]===e[x]))),r.onSelect&&r.onSelect(o,a),t.selectRowIds=a,t.selectRowArray=o,t})},onSelect:(e,t)=>{g(n=>{let a=[...n.selectRowIds],o=[...n.selectRowArray];return"checkbox"===r.rowType&&(t?(a.push(e[x]),o.push(e)):(a=a.filter(t=>t!==e[x]),o=o.filter(t=>t[x]!==e[x]))),"radio"===r.rowType&&t&&(a=[e[x]],o=[e]),r.onSelect&&r.onSelect(o,a),n.selectRowIds=a,n.selectRowArray=o,n})}},P=e=>(t,{size:n})=>{d(t=>{const a=[...t];return a[e]={...a[e],width:n.width},s.current=a,a})},T=e.useCallback(e=>{g(t=>{let n=JSON.parse(JSON.stringify(t.listData));for(let[t,a]of n.entries())if(a[x]===e[x]){n[t]={...n[t],...e};break}return t.listData=n,t})},[x,g]),D=e.useCallback(async(e,t)=>{const n=h.listData[e],a=NP(h.listData,{$splice:[[e,1],[t,0,n]]});f(!0);try{if(r.drag){const n=JSON.parse(JSON.stringify(a)),o=JSON.parse(JSON.stringify(h.listData)),i=[e,t].sort();!1!==await r.drag.moveRow(e,t,n,o,n.slice(i[0],i[1]+1))&&g(e=>(e.listData=n,e))}}finally{f(!1)}},[r.drag,g,h.listData]),I=e.useCallback(e=>{let t=[];const n=e=>{for(let a of e){for(let e of h.selectRowIds)a[x]===e&&t.push(a);a.children&&n(a.children)}};return n(e),t},[x,h.selectRowIds]);return e.useEffect(()=>{(async()=>{let e=[...r.columns];r.hidSortColumn||e.unshift({width:55,fixed:"left",title:"序号",dataIndex:"sequence",render:(e,t,n)=>{const a=c.current;return Object.keys(a).length?((a.current||0)-1)*(a.pageSize||0)+n+1:n+1}});for(let[t,n]of e.entries()){let a={...n,onHeaderCell:e=>({width:e.width,onResize:P(t)}),onCell:(e,t)=>({record:e,recordIndex:t,dataIndex:n.dataIndex,title:n.title,rowSpanNum:"function"==typeof n.rowSpanNum?n.rowSpanNum(e,t):n.rowSpanNum,colSpanNum:"function"==typeof n.colSpanNum?n.colSpanNum(e,t):n.colSpanNum,editable:"function"==typeof n.editable?n.editable(e,t):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,placeholder:n.placeholder})},r=s.current.find(e=>e.dataIndex===n.dataIndex&&e.title===n.title);r&&(a.width=r.width),e[t]=a}d(e)})()},[r.columns,r.hidSortColumn,T]),e.useEffect(()=>{m.default.isArray(r.data)&&g(e=>(e.listData=JSON.parse(JSON.stringify(r.data)),e))},[r.data,g]),e.useEffect(()=>{const e=document.getElementById("slider-menu"),t=document.getElementById("router-render");if(void 0!==r.scroll?.x||void 0!==r.scroll?.y)v(e=>({...e,...r.scroll}));else if(e&&t){let n=parseInt(window.getComputedStyle(t,null).paddingLeft);v(t=>(t.x=document.body.clientWidth-e.clientWidth-(2*n+43),t))}},[r.scroll]),e.useEffect(()=>{r.paginationConfig&&(c.current={...c.current,...r.paginationConfig})},[r.paginationConfig]),e.useImperativeHandle(a,()=>({setTableLoading:e=>{f(e)},getPages:()=>({...c.current}),getTableList:async(e,t)=>{e&&("not-reset"===e.pagination?e.current=c.current.current:void 0===e.current&&(e.current=1),e.clearSelectIds&&(delete e.clearSelectIds,g(e=>(e.selectRowArray=[],e.selectRowIds=[],e)))),await E(e),t&&t()},setRowSelected:(e,t)=>{let n=e;!0===t&&(n=Array.from(new Set([...h.selectRowIds,...e]))),g({selectRowIds:n})},setRowSelectedBy:e=>{g({selectRowArray:e})},getSelectIds:()=>h.selectRowIds,clearSelectIds:()=>{g({selectRowIds:[],selectRowArray:[]})},getSelectRowsArray:()=>{const e=I(h.listData);return m.default.cloneDeep(C(h.selectRowArray,e))},removeSelectIds:e=>{if(!Array.isArray(e)||0===e.length)return;const t=(t,n)=>t.filter(t=>"string"==typeof t?!e.includes(t):!e.includes(t[n]));g({selectRowIds:t(h.selectRowIds,x),selectRowArray:t(h.selectRowArray,x)})},getStaticDataList:()=>{try{return m.default.cloneDeep(h.listData||[])}catch(e){return[]}},setStaticDataList:(e,t)=>{if(e)try{if("object"!=typeof e||Array.isArray(e))Array.isArray(e)&&g(t=>(t.listData=m.default.cloneDeep(e),t));else{const t=e;g(e=>(e.listData=h.listData.map(e=>e[x]===t[x]?{...e,...t}:e),e))}t&&t()}catch(e){}}})),n.jsx(yP,{children:n.jsx(OM,{children:n.jsx(jE,{bordered:!0,rowKey:"id",rowClassName:"editable-row",loading:p,components:w,onRow:(e,t)=>({index:t,moveRow:D,open:r.drag&&r.drag.open}),columns:u,dataSource:h.listData,rowSelection:r.rowType?O:void 0,pagination:k,onChange:(e,t,n)=>{const{order:a}=n;e.orderByInfo=void 0,a&&(e.orderByInfo=`${n.field}:${"ascend"===a?1:-1}`),S(e)},scroll:b,...r.tableConfig})})})});k("");const TM=e=>{const t={...e};return delete t.outerHeight,n.jsx(fb,{className:"empty-wrap",style:{minHeight:e&&e.outerHeight?e.outerHeight:400},align:"middle",justify:"center",children:n.jsx(ua,{description:"暂无数据",...t})})};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:DM,Paragraph:IM}=uO;var RM=e.forwardRef(function(t,a){const r=e.useRef(null),o=e.useRef(),[i,l]=N.useSetState({saveLoading:!1,selectedRows:[]}),c=e.useMemo(()=>t.tableColumnsList&&t.tableColumnsList.tableConfig&&t.tableColumnsList.tableConfig.rowKey||"id",[t.tableColumnsList]),s=e.useMemo(()=>{const e=t.width||0;return e>=500&&e<=800?{span:7}:e>800&&e<=1e3?{span:6}:e>1e3&&e<=1200?{span:5}:e>1200?{span:4}:{span:8}},[t.width]),u=(e,t)=>{if(o.current){let n=[],a=[];"all"===e&&o.current.clearSelectIds(),"odd"===e&&t&&(n=[t[c]],a=i.selectedRows.filter(e=>e[c]!==t[c]),o.current.removeSelectIds(n)),l({selectedRows:a})}},d=e.useCallback(async()=>{if(r.current&&o.current){let e=await r.current.formSubmit();if(e&&Object.keys(e).length){for(let t in e){const n="YYYY-MM-DD HH:mm:ss";x.default(e[t],n,!0).isValid()&&(e[t]=x.default(e[t]).format(n))}e={clearSelectIds:!0,...e},void 0!==t.clearSelectIds&&(e.clearSelectIds=t.clearSelectIds),e.clearSelectIds&&l(e=>(e.selectedRows=[],e)),t.manualParameterChange&&(e=t.manualParameterChange(e)),t.searchCallback?t.searchCallback(e).then(t=>{t&&o.current?.getTableList(e)}):o.current.getTableList(e)}}else o.current?.getTableList()},[t,l]),p=()=>{if(r.current){let e=[];const n=t.searchNoResetFiled||[];if(t.searchFormList)for(let a of t.searchFormList){if(a.unionConfig)for(let t of a.unionConfig.unionItems)t.name&&!n.includes(t.name)&&e.push(t.name);a.name&&!n.includes(a.name)&&e.push(a.name)}r.current.formReset(e)}d()};return e.useEffect(()=>{t.visible&&(t.autoGetList&&o.current?.getTableList(),t.openSelected&&t.openSelected.visible&&l(e=>(e.selectedRows=t.openSelected?.defaultValues||[],o.current?.setRowSelectedBy(e.selectedRows),o.current?.setRowSelected(e.selectedRows.map(e=>e[c])),e)))},[t.autoGetList,t.openSelected,t.visible,c,l]),e.useImperativeHandle(a,()=>({...r.current,...o.current,setSavaLoading:e=>{l({saveLoading:e})}})),n.jsxs(oP,{className:"from-table-modal",forceRender:!0,maskClosable:!1,footer:null,width:t.width,visible:t.visible,title:t.title||"弹窗",onCancel:()=>{t.onCancel&&t.onCancel()},...t.modalConfig,children:[t.topExtra,t.searchFormList?n.jsx(EP,{ref:r,rowGridConfig:{gutter:10},colGirdConfig:s,list:(f=t.searchFormList,f?f.map(e=>("Select"===e.componentName&&e.selectData&&e.selectData.length&&(e.selectData.some(e=>"全部"===e.label)||(e.selectData=[{label:"全部",value:""},...e.selectData])),e)):[]),formConfig:t.formConfig,render:()=>t.searchFormList&&t.searchFormList.length?n.jsxs(bk,{size:10,children:[n.jsx(_d,{type:"primary",onClick:()=>{d()},children:"查询"}),n.jsx(_d,{className:"btn-reset",onClick:p,children:"重置"})]}):n.jsx(n.Fragment,{})}):null,n.jsxs(fb,{...t.rowProps,children:[t.leftSlot?n.jsx(bb,{...t.leftSlot.colProps,children:t.leftSlot.jsx}):null,n.jsx(bb,{...t.colProps,children:n.jsxs(fb,{gutter:10,children:[n.jsx(bb,{span:t.openSelected&&t.openSelected.visible?16:24,children:n.jsx(PM,{ref:o,extra:{rowType:t.tableColumnsList.rowType,apiMethod:t.apiMethod,columns:t.tableColumnsList.list,data:t.data,onSelect:(e,n)=>{((e,n)=>{l({selectedRows:n.map(n=>{let a={};const r=e.find(e=>e[c]===n);if(a[c]=n,t.openSelected&&t.openSelected.fileName&&(a[t.openSelected.fileName]=n),r&&(a=r),t.openSelected){const e=t.openSelected.fileName,r=t.openSelected.defaultValues;if(e&&r){const t=r.find(e=>e[c]===n);t&&(a[e]=t[e])}}return a})})})(e,n),t.onSelect&&t.onSelect(e,n)},virtual:t.virtual,getTableSuccessData:t.getTableSuccessData,tableConfig:t.tableColumnsList.tableConfig,scroll:{x:"max-content"}}})}),t.openSelected&&t.openSelected.visible?n.jsx(bb,{span:8,children:n.jsx(yb,{title:"已选列表",size:"small",bodyStyle:{height:t.openSelected.height||330,overflowY:"auto"},extra:n.jsxs(n.Fragment,{children:[t.rightExport&&t.rightExport.open?n.jsx(DM,{style:{marginRight:"8px"},onClick:()=>(()=>{const e=t.rightExport?.fileName,n=t.rightExport?.headres,a=i.selectedRows;if(a&&a.length&&n&&n.length){let t="";const r=n.map(e=>e.title);t+=r.join(",")+"\n",a.forEach(e=>{const a=n.map(t=>{const n=void 0!==e[t.key]?e[t.key]:"";return`"${String(n).replace(/"/g,'""')}"`});t+=a.join(",")+"\n"});const o=new Blob(["\ufeff"+t],{type:"text/csv;charset=utf-8;"}),i=document.createElement("a"),l=URL.createObjectURL(o);i.setAttribute("href",l),i.setAttribute("download",`${e}.csv`),i.style.visibility="hidden",document.body.appendChild(i),i.click(),document.body.removeChild(i)}else ti.error("无效的导出数据或表头配置",1.5)})(),children:"导出"}):null,n.jsx(DM,{onClick:()=>u("all"),children:"全部移除"})]}),children:i.selectedRows.length?i.selectedRows.map(e=>{const a=e[c],r=e[t.openSelected?.fileName];return n.jsxs(fb,{gutter:12,children:[n.jsx(bb,{span:11,title:r,children:n.jsx(IM,{ellipsis:!0,children:r})}),n.jsx(bb,{span:9,title:a,children:n.jsx(IM,{ellipsis:!0,children:a})}),n.jsx(bb,{span:4,children:n.jsx(DM,{onClick:()=>u("odd",e),children:"移除"})})]},a)}):n.jsx(TM,{outerHeight:200})})}):null]})}),t.rightSlot?n.jsx(bb,{...t.rightSlot.colProps,children:t.rightSlot.jsx}):null]}),n.jsx(fb,{className:"from-table-modal-foot",justify:"center",children:n.jsx(bb,{children:n.jsxs(bk,{size:20,children:[t.onCancel?n.jsx(_d,{onClick:()=>t.onCancel&&t.onCancel(),children:"关闭"}):null,t.onConfirm?n.jsx(_d,{type:"primary",loading:i.saveLoading,onClick:()=>{let e=o.current?.getSelectRowsArray()||[],n=[];const a=o.current?.getStaticDataList()||[];t.onConfirm&&(o.current&&(n=o.current.getSelectIds()),l({saveLoading:!0}),t.onConfirm(e,n,a).then(e=>{l({saveLoading:!1}),e&&setTimeout(()=>{t.onCancel&&t.onCancel()},100)}).catch(e=>{l({saveLoading:!1}),ti.warn(e,1.5)}))},children:"确定"}):null]})})})]});var f});var MM=e.createContext({}),zM={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"};const jM=Math.round;function AM(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],a=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)a[e]=t(a[e]||0,n[e]||"",e);return n[3]?a[3]=n[3].includes("%")?a[3]/100:a[3]:a[3]=1,a}const LM=(e,t,n)=>0===n?e:e/100;function FM(e,t){const n=t||255;return e>n?n:e<0?0:e}class _M{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(e)if("string"==typeof e){const n=e.trim();function a(e){return n.startsWith(e)}if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(a("rgb"))this.fromRgbString(n);else if(a("hsl"))this.fromHslString(n);else if(a("hsv")||a("hsb"))this.fromHsvString(n);else{const r=zM[n.toLowerCase()];r&&this.fromHexString(parseInt(r,36).toString(16).padStart(6,"0"))}}else if(e instanceof _M)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=FM(e.r),this.g=FM(e.g),this.b=FM(e.b),this.a="number"==typeof e.a?FM(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:jM(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let a=this.getLightness()-e/100;return a<0&&(a=0),this._c({h:t,s:n,l:a,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let a=this.getLightness()+e/100;return a>1&&(a=1),this._c({h:t,s:n,l:a,a:this.a})}mix(e,t=50){const n=this._c(e),a=t/100,r=e=>(n[e]-this[e])*a+this[e],o={r:jM(r("r")),g:jM(r("g")),b:jM(r("b")),a:jM(100*r("a"))/100};return this._c(o)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),a=e=>jM((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:a("r"),g:a("g"),b:a("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const a=(this.b||0).toString(16);if(e+=2===a.length?a:"0"+a,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=jM(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=jM(100*this.getSaturation()),n=jM(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const a=this.clone();return a[e]=FM(t,n),a}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:a}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof a?a:1,t<=0){const e=jM(255*n);this.r=e,this.g=e,this.b=e}let r=0,o=0,i=0;const l=e/60,c=(1-Math.abs(2*n-1))*t,s=c*(1-Math.abs(l%2-1));l>=0&&l<1?(r=c,o=s):l>=1&&l<2?(r=s,o=c):l>=2&&l<3?(o=c,i=s):l>=3&&l<4?(o=s,i=c):l>=4&&l<5?(r=s,i=c):l>=5&&l<6&&(r=c,i=s);const u=n-c/2;this.r=jM(255*(r+u)),this.g=jM(255*(o+u)),this.b=jM(255*(i+u))}fromHsv({h:e,s:t,v:n,a:a}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof a?a:1;const r=jM(255*n);if(this.r=r,this.g=r,this.b=r,t<=0)return;const o=e/60,i=Math.floor(o),l=o-i,c=jM(n*(1-t)*255),s=jM(n*(1-t*l)*255),u=jM(n*(1-t*(1-l))*255);switch(i){case 0:this.g=u,this.b=c;break;case 1:this.r=s,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=s;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=s}}fromHsvString(e){const t=AM(e,LM);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=AM(e,LM);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=AM(e,(e,t)=>t.includes("%")?jM(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const VM=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function KM(e,t,n){let a;return a=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t,a<0?a+=360:a>=360&&(a-=360),a}function HM(e,t,n){if(0===e.h&&0===e.s)return e.s;let a;return a=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t,a>1&&(a=1),n&&5===t&&a>.1&&(a=.1),a<.06&&(a=.06),Math.round(100*a)/100}function BM(e,t,n){let a;return a=n?e.v+.05*t:e.v-.15*t,a=Math.max(0,Math.min(1,a)),Math.round(100*a)/100}const $M=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];$M.primary=$M[5];const UM="data-rc-order",WM="data-rc-priority",YM=new Map;function qM({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function GM(e){if(e.attachTo)return e.attachTo;return document.querySelector("head")||document.body}function XM(e){return Array.from((YM.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function ZM(e,t={}){if("undefined"==typeof window||!window.document||!window.document.createElement)return null;const{csp:n,prepend:a,priority:r=0}=t,o=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(a),i="prependQueue"===o,l=document.createElement("style");l.setAttribute(UM,o),i&&r&&l.setAttribute(WM,`${r}`),n?.nonce&&(l.nonce=n?.nonce),l.innerHTML=e;const c=GM(t),{firstChild:s}=c;if(a){if(i){const e=(t.styles||XM(c)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(UM)))return!1;const t=Number(e.getAttribute(WM)||0);return r>=t});if(e.length)return c.insertBefore(l,e[e.length-1].nextSibling),l}c.insertBefore(l,s)}else c.appendChild(l);return l}function QM(e,t,n={}){const a=GM(n),r=XM(a),o={...n,styles:r};!function(e,t){const n=YM.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){const n=ZM("",t),{parentNode:a}=n;YM.set(e,a),e.removeChild(n)}}(a,o);const i=function(e,t={}){let{styles:n}=t;return n||=XM(GM(t)),n.find(n=>n.getAttribute(qM(t))===e)}(t,o);if(i)return o.csp?.nonce&&i.nonce!==o.csp?.nonce&&(i.nonce=o.csp?.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const l=ZM(e,o);return l.setAttribute(qM(o),t),l}function JM(e){return e?.getRootNode?.()}function ez(e){return function(e){return JM(e)instanceof ShadowRoot}(e)?JM(e):null}let tz={};const nz=[];function az(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){const e=nz.reduce((e,t)=>t(e??"","warning"),t);e&&console.error(`Warning: ${e}`)}}function rz(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){const e=nz.reduce((e,t)=>t(e??"","note"),t);e&&console.warn(`Note: ${e}`)}}function oz(e,t,n){t||tz[n]||(e(!1,n),tz[n]=!0)}function iz(e,t){oz(az,e,t)}function lz(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function cz(e={}){return Object.keys(e).reduce((t,n)=>{const a=e[n];if("class"===n)t.className=a,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(e,t)=>t.toUpperCase()))]=a;var r;return t},{})}function sz(e,t,n){return n?f.default.createElement(e.tag,{key:t,...cz(e.attrs),...n},(e.children||[]).map((n,a)=>sz(n,`${t}-${e.tag}-${a}`))):f.default.createElement(e.tag,{key:t,...cz(e.attrs)},(e.children||[]).map((n,a)=>sz(n,`${t}-${e.tag}-${a}`)))}function uz(e){return function(e,t={}){const n=[],a=new _M(e),r=a.toHsv();for(let e=5;e>0;e-=1){const t=new _M({h:KM(r,e,!0),s:HM(r,e,!0),v:BM(r,e,!0)});n.push(t)}n.push(a);for(let e=1;e<=4;e+=1){const t=new _M({h:KM(r,e),s:HM(r,e),v:BM(r,e)});n.push(t)}return"dark"===t.theme?VM.map(({index:e,amount:a})=>new _M(t.backgroundColor||"#141414").mix(n[e],a).toHexString()):n.map(e=>e.toHexString())}(e)[0]}function dz(e){return e?Array.isArray(e)?e:[e]:[]}iz.preMessage=e=>{nz.push(e)},iz.resetWarned=function(){tz={}},iz.noteOnce=function(e,t){oz(rz,e,t)};const pz={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};const fz=t=>{const{icon:n,className:a,onClick:r,style:o,primaryColor:i,secondaryColor:l,...c}=t,s=p.useRef();let u=pz;if(i&&(u={primaryColor:i,secondaryColor:l||uz(i)}),(t=>{const{csp:n,prefixCls:a,layer:r}=e.useContext(MM);let o="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";a&&(o=o.replace(/anticon/g,a)),r&&(o=`@layer ${r} {\n${o}\n}`),e.useEffect(()=>{const e=ez(t.current);QM(o,"@ant-design-icons",{prepend:!r,csp:n,attachTo:e})},[])})(s),function(e,t){iz(e,`[@ant-design/icons] ${t}`)}(lz(n),`icon should be icon definiton, but got ${n}`),!lz(n))return null;let d=n;return d&&"function"==typeof d.icon&&(d={...d,icon:d.icon(u.primaryColor,u.secondaryColor)}),sz(d.icon,`svg-${d.name}`,{className:a,onClick:r,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...c,ref:s})};fz.displayName="IconReact",fz.getTwoToneColors=function(){return{...pz}},fz.setTwoToneColors=function({primaryColor:e,secondaryColor:t}){pz.primaryColor=e,pz.secondaryColor=t||uz(e),pz.calculated=!!t};var mz=fz;function hz(e){const[t,n]=dz(e);return mz.setTwoToneColors({primaryColor:t,secondaryColor:n})}function gz(){return gz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},gz.apply(this,arguments)}hz($M.primary);const bz=p.forwardRef((e,t)=>{const{className:n,icon:a,spin:r,rotate:o,tabIndex:i,onClick:l,twoToneColor:c,...s}=e,{prefixCls:u="anticon",rootClassName:d}=p.useContext(MM),f=H(d,u,{[`${u}-${a.name}`]:!!a.name,[`${u}-spin`]:!!r||"loading"===a.name},n);let m=i;void 0===m&&l&&(m=-1);const h=o?{msTransform:`rotate(${o}deg)`,transform:`rotate(${o}deg)`}:void 0,[g,b]=dz(c);return p.createElement("span",gz({role:"img","aria-label":a.name},s,{ref:t,tabIndex:m,onClick:l,className:f}),p.createElement(mz,{icon:a,primaryColor:g,secondaryColor:b,style:h}))});bz.displayName="AntdIcon",bz.getTwoToneColor=function(){const e=mz.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},bz.setTwoToneColor=hz;var vz=bz;function xz(){return xz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},xz.apply(this,arguments)}const yz=(e,t)=>p.createElement(vz,xz({},e,{ref:t,icon:ni})),wz=p.forwardRef(yz);
|
|
27
|
+
*/function AT(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case vT:switch(e=e.type){case ST:case NT:case yT:case kT:case wT:case PT:return e;default:switch(e=e&&e.$$typeof){case ET:case OT:case IT:case DT:case CT:return e;default:return t}}case xT:return t}}}function LT(e){return AT(e)===NT}var FT={AsyncMode:ST,ConcurrentMode:NT,ContextConsumer:ET,ContextProvider:CT,Element:vT,ForwardRef:OT,Fragment:yT,Lazy:IT,Memo:DT,Portal:xT,Profiler:kT,StrictMode:wT,Suspense:PT,isAsyncMode:function(e){return LT(e)||AT(e)===ST},isConcurrentMode:LT,isContextConsumer:function(e){return AT(e)===ET},isContextProvider:function(e){return AT(e)===CT},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===vT},isForwardRef:function(e){return AT(e)===OT},isFragment:function(e){return AT(e)===yT},isLazy:function(e){return AT(e)===IT},isMemo:function(e){return AT(e)===DT},isPortal:function(e){return AT(e)===xT},isProfiler:function(e){return AT(e)===kT},isStrictMode:function(e){return AT(e)===wT},isSuspense:function(e){return AT(e)===PT},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===yT||e===NT||e===kT||e===wT||e===PT||e===TT||"object"==typeof e&&null!==e&&(e.$$typeof===IT||e.$$typeof===DT||e.$$typeof===CT||e.$$typeof===ET||e.$$typeof===OT||e.$$typeof===MT||e.$$typeof===zT||e.$$typeof===jT||e.$$typeof===RT)},typeOf:AT},_T=K(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var f=e.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 t}}case a:return t}}}var w=s,k=u,C=c,E=l,S=n,N=d,O=r,P=h,T=m,D=a,I=i,R=o,M=p,z=!1;function j(e){return y(e)===u}t.AsyncMode=w,t.ConcurrentMode=k,t.ContextConsumer=C,t.ContextProvider=E,t.Element=S,t.ForwardRef=N,t.Fragment=O,t.Lazy=P,t.Memo=T,t.Portal=D,t.Profiler=I,t.StrictMode=R,t.Suspense=M,t.isAsyncMode=function(e){return z||(z=!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.")),j(e)||y(e)===s},t.isConcurrentMode=j,t.isContextConsumer=function(e){return y(e)===c},t.isContextProvider=function(e){return y(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return y(e)===d},t.isFragment=function(e){return y(e)===r},t.isLazy=function(e){return y(e)===h},t.isMemo=function(e){return y(e)===m},t.isPortal=function(e){return y(e)===a},t.isProfiler=function(e){return y(e)===i},t.isStrictMode=function(e){return y(e)===o},t.isSuspense=function(e){return y(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===b||e.$$typeof===v||e.$$typeof===x||e.$$typeof===g)},t.typeOf=y}()}),VT=K(function(e){"production"===process.env.NODE_ENV?e.exports=FT:e.exports=_T}),KT=Object.getOwnPropertySymbols,HT=Object.prototype.hasOwnProperty,BT=Object.prototype.propertyIsEnumerable;var $T=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var a=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==a.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,r=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))HT.call(n,i)&&(r[i]=n[i]);if(KT){a=KT(n);for(var l=0;l<a.length;l++)BT.call(n,a[l])&&(r[a[l]]=n[a[l]])}}return r},UT=Function.call.bind(Object.prototype.hasOwnProperty),WT="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",YT=UT,qT=function(){};if("production"!==process.env.NODE_ENV){var GT=WT,XT={},ZT=YT;qT=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function QT(e,t,n,a,r){if("production"!==process.env.NODE_ENV)for(var o in e)if(ZT(e,o)){var i;try{if("function"!=typeof e[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 e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}i=e[o](t,o,a,n,null,GT)}catch(e){i=e}if(!i||i instanceof Error||qT((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 XT)){XT[i.message]=!0;var c=r?r():"";qT("Failed "+n+" type: "+i.message+(null!=c?c:""))}}}QT.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(XT={})};var JT=QT,eD=function(){};function tD(){return null}"production"!==process.env.NODE_ENV&&(eD=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}});function nD(){}function aD(){}aD.resetWarningCache=nD;var rD=function(e,t){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(tD),arrayOf:function(e){return l(function(t,n,a,r,o){if("function"!=typeof e)return new i("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var l=t[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=e(l,c,a,r,o+"["+c+"]",WT);if(s instanceof Error)return s}return null})},element:l(function(t,n,a,r,o){var l=t[n];return e(l)?null:new i("Invalid "+r+" `"+o+"` of type `"+d(l)+"` supplied to `"+a+"`, expected a single ReactElement.")}),elementType:l(function(e,t,n,a,r){var o=e[t];return VT.isValidElementType(o)?null:new i("Invalid "+a+" `"+r+"` of type `"+d(o)+"` supplied to `"+n+"`, expected a single ReactElement type.")}),instanceOf:function(e){return l(function(t,n,r,o,l){if(!(t[n]instanceof e)){var c=e.name||a;return new i("Invalid "+o+" `"+l+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:a)+"` supplied to `")+r+"`, expected instance of `"+c+"`.")}var s;return null})},node:l(function(e,t,n,a,r){return u(e[t])?null:new i("Invalid "+a+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return l(function(t,n,a,r,o){if("function"!=typeof e)return new i("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var l=t[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(YT(l,s)){var u=e(l,s,a,r,o+"."+s,WT);if(u instanceof Error)return u}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&eD(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."),tD;return l(function(t,n,a,r,l){for(var c=t[n],s=0;s<e.length;s++)if(o(c,e[s]))return null;var u=JSON.stringify(e,function(e,t){return"symbol"===p(t)?String(t):t});return new i("Invalid "+r+" `"+l+"` of value `"+String(c)+"` supplied to `"+a+"`, expected one of "+u+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&eD("Invalid argument supplied to oneOfType, expected an instance of array."),tD;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return eD("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+f(n)+" at index "+t+"."),tD}return l(function(t,n,a,r,o){for(var l=[],c=0;c<e.length;c++){var s=(0,e[c])(t,n,a,r,o,WT);if(null==s)return null;s.data&&YT(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(e){return l(function(t,n,a,r,o){var l=t[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 e){var f=e[u];if("function"!=typeof f)return s(a,r,o,u,p(f));var m=f(l,u,a,r,o+"."+u,WT);if(m)return m}return null})},exact:function(e){return l(function(t,n,a,r,o){var l=t[n],c=d(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var u=$T({},t[n],e);for(var f in u){var m=e[f];if(YT(e,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(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=m(l,f,a,r,o+"."+f,WT);if(h)return h}return null})}};function o(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function i(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function l(e){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!==WT){if(t){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&&(eD("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:e(l,c,s,u,d)}var l=o.bind(null,!1);return l.isRequired=o.bind(null,!0),l}function c(e){return l(function(t,n,a,r,o,l){var c=t[n];return d(c)!==e?new i("Invalid "+r+" `"+o+"` of type `"+p(c)+"` supplied to `"+a+"`, expected `"+e+"`.",{expectedType:e}):null})}function s(e,t,n,a,r){return new i((e||"React class")+": "+t+" type `"+n+"."+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function u(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(u);if(null===t||e(t))return!0;var a=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!a)return!1;var r,o=a.call(t);if(a!==t.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(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function p(e){if(null==e)return""+e;var t=d(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function f(e){var t=p(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return i.prototype=Error.prototype,r.checkPropTypes=JT,r.resetWarningCache=JT.resetWarningCache,r.PropTypes=r,r},oD=function(){function e(e,t,n,a,r,o){if(o!==WT){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 t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:aD,resetWarningCache:nD};return n.PropTypes=n,n},iD=K(function(e){if("production"!==process.env.NODE_ENV){var t=VT;e.exports=rD(t.isElement,!0)}else e.exports=oD()}),lD=K(function(e,t){t.__esModule=!0,t.resizableProps=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(iD);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 e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var r,o=t[0];return"both"===o.axis||"y"===o.axis?(r=n.default.number).isRequired.apply(r,t):n.default.number.apply(n.default,t)},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 e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var r,o=t[0];return"both"===o.axis||"x"===o.axis?(r=n.default.number).isRequired.apply(r,t):n.default.number.apply(n.default,t)}};t.resizableProps=a}),cD=K(function(e,t){t.__esModule=!0,t.default=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}a.default=e,n&&n.set(e,a);return a}(f.default),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},o.apply(this,arguments)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var u=function(e){var t,r;function i(){for(var t,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(t=e.call.apply(e,[this].concat(a))||this).handleRefs={},t.lastHandleRect=null,t.slack=null,t}r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r);var c=i.prototype;return c.componentWillUnmount=function(){this.resetData()},c.resetData=function(){this.lastHandleRect=this.slack=null},c.runConstraints=function(e,t){var n=this.props,a=n.minConstraints,r=n.maxConstraints,o=n.lockAspectRatio;if(!a&&!r&&!o)return[e,t];if(o){var i=this.props.width/this.props.height,l=e-this.props.width,c=t-this.props.height;Math.abs(l)>Math.abs(c*i)?t=e/i:e=t*i}var s=e,u=t,d=this.slack||[0,0],p=d[0],f=d[1];return e+=p,t+=f,a&&(e=Math.max(a[0],e),t=Math.max(a[1],t)),r&&(e=Math.min(r[0],e),t=Math.min(r[1],t)),this.slack=[p+(s-e),f+(u-t)],[e,t]},c.resizeHandler=function(e,t){var n=this;return function(a,r){var o=r.node,i=r.deltaX,l=r.deltaY;"onResizeStart"===e&&n.resetData();var c=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==t&&"s"!==t,s=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==t&&"w"!==t;if(c||s){var u=t[0],d=t[t.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[e]?n.props[e]:null;b&&!("onResize"===e&&!g)&&(null==a.persist||a.persist(),b(a,{node:o,size:{width:f,height:m},handle:t})),"onResizeStop"===e&&n.resetData()}}},c.renderResizeHandle=function(e,t){var a=this.props.handle;if(!a)return n.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+e,ref:t});if("function"==typeof a)return a(e,t);var r=l({ref:t},"string"==typeof a.type?{}:{handleAxis:e});return n.cloneElement(a,r)},c.render=function(){var e=this,t=this.props,r=t.children,i=t.className,c=t.draggableOpts;t.width,t.height,t.handle,t.handleSize,t.lockAspectRatio,t.axis,t.minConstraints,t.maxConstraints,t.onResize,t.onResizeStop,t.onResizeStart;var s=t.resizeHandles;t.transformScale;var u=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,a);return(0,gT.cloneElement)(r,l(l({},u),{},{className:(i?i+" ":"")+"react-resizable",children:[].concat(r.props.children,s.map(function(t){var a,r=null!=(a=e.handleRefs[t])?a:e.handleRefs[t]=n.createRef();return n.createElement(v.default.DraggableCore,o({},c,{nodeRef:r,key:"resizableHandle-"+t,onStop:e.resizeHandler("onResizeStop",t),onStart:e.resizeHandler("onResizeStart",t),onDrag:e.resizeHandler("onResize",t)}),e.renderResizeHandle(t,r))}))}))},i}(n.Component);t.default=u,u.propTypes=lD.resizableProps,u.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}}),sD=K(function(e,t){t.__esModule=!0,t.default=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=e[o]}a.default=e,n&&n.set(e,a);return a}(f.default),a=i(iD),r=i(cD),o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},c.apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var m=function(e){var t,a;function i(){for(var t,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(t=e.call.apply(e,[this].concat(a))||this).state={width:t.props.width,height:t.props.height,propsWidth:t.props.width,propsHeight:t.props.height},t.onResize=function(e,n){var a=n.size;t.props.onResize?(null==e.persist||e.persist(),t.setState(a,function(){return t.props.onResize&&t.props.onResize(e,n)})):t.setState(a)},t}return a=e,(t=i).prototype=Object.create(a.prototype),t.prototype.constructor=t,p(t,a),i.getDerivedStateFromProps=function(e,t){return t.propsWidth!==e.width||t.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null},i.prototype.render=function(){var e=this.props,t=e.handle,a=e.handleSize;e.onResize;var i=e.onResizeStart,l=e.onResizeStop,s=e.draggableOpts,d=e.minConstraints,p=e.maxConstraints,f=e.lockAspectRatio,m=e.axis;e.width,e.height;var h=e.resizeHandles,g=e.style,b=e.transformScale,v=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,o);return n.createElement(r.default,{axis:m,draggableOpts:s,handle:t,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);t.default=m,m.propTypes=u(u({},lD.resizableProps),{},{children:a.default.element})}),uD=cD.default;sD.default;const dD=e=>{const{onResize:t,width:a,...r}=e;return a?n.jsx(uD,{width:a,height:0,handle:n.jsx("span",{className:"react-resizable-handle",onClick:e=>{e.stopPropagation()}}),onResize:t,draggableOpts:{enableUserSelectHack:!1},children:n.jsx("th",{...r})}):n.jsx("th",{...r})};var pD,fD=e.createContext({dragDropManager:void 0});function mD(e,t){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===t)throw new Error("invariant requires an error message argument");if(!e){var o;if(void 0===t)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(t.replace(/%s/g,function(){return a[i++]}))).name="Invariant Violation"}throw o.framesToPop=1,o}}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(pD||(pD={}));var hD="dnd-core/INIT_COORDS",gD="dnd-core/BEGIN_DRAG",bD="dnd-core/PUBLISH_DRAG_SOURCE",vD="dnd-core/HOVER",xD="dnd-core/DROP",yD="dnd-core/END_DRAG";function wD(e,t){return{type:hD,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function kD(e){return kD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kD(e)}function CD(e,t,n){return t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:n||null},e)}function ED(e){return"object"===kD(e)}var SD={type:hD,payload:{clientOffset:null,sourceClientOffset:null}};function ND(e){return function(){var t=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=e.getMonitor(),c=e.getRegistry();e.dispatch(wD(o)),function(e,t,n){mD(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){mD(n.getSource(e),"Expected sourceIds to be registered.")})}(t,l,c);var s=function(e,t){for(var n=null,a=e.length-1;a>=0;a--)if(t.canDragSource(e[a])){n=e[a];break}return n}(t,l);if(null!==s){var u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){mD("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(s)}e.dispatch(wD(o,u));var d=c.getSource(s).beginDrag(l,s);if(null!=d){!function(e){mD(ED(e),"Item must be an object.")}(d),c.pinSource(s);var p=c.getSourceType(s);return{type:gD,payload:{itemType:p,item:d,sourceId:s,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}else e.dispatch(SD)}}function OD(e){return function(){if(e.getMonitor().isDragging())return{type:bD}}}function PD(e,t){return null===t?null===e:Array.isArray(e)?e.some(function(e){return e===t}):e===t}function TD(e){return function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(e){mD(Array.isArray(e),"Expected targetIds to be an array.")}(t);var a=t.slice(0),r=e.getMonitor(),o=e.getRegistry();return function(e,t,n){mD(t.isDragging(),"Cannot call hover while not dragging."),mD(!t.didDrop(),"Cannot call hover after drop.");for(var a=0;a<e.length;a++){var r=e[a];mD(e.lastIndexOf(r)===a,"Expected targetIds to be unique in the passed array."),mD(n.getTarget(r),"Expected targetIds to be registered.")}}(a,r,o),function(e,t,n){for(var a=e.length-1;a>=0;a--){var r=e[a];PD(t.getTargetType(r),n)||e.splice(a,1)}}(a,o,r.getItemType()),function(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}(a,r,o),{type:vD,payload:{targetIds:a,clientOffset:n||null}}}}function DD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ID(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DD(Object(n),!0).forEach(function(t){RD(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function RD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MD(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),a=e.getRegistry();!function(e){mD(e.isDragging(),"Cannot call drop while not dragging."),mD(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);var r=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);r.forEach(function(r,o){var i=function(e,t,n,a){var r=n.getTarget(e),o=r?r.drop(a,e):void 0;(function(e){mD(void 0===e||ED(e),"Drop result must either be an object or undefined.")})(o),void 0===o&&(o=0===t?{}:a.getDropResult());return o}(r,o,a,n),l={type:xD,payload:{dropResult:ID(ID({},t),i)}};e.dispatch(l)})}}function zD(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){mD(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var a=t.getSourceId();null!=a&&(n.getSource(a,!0).endDrag(t,a),n.unpinSource());return{type:yD}}}function jD(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function AD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var LD=function(){function e(t,n){var a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),AD(this,"store",void 0),AD(this,"monitor",void 0),AD(this,"backend",void 0),AD(this,"isSetUp",!1),AD(this,"handleRefCountChange",function(){var e=a.store.getState().refCount>0;a.backend&&(e&&!a.isSetUp?(a.backend.setup(),a.isSetUp=!0):!e&&a.isSetUp&&(a.backend.teardown(),a.isSetUp=!1))}),this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}var t,n,a;return t=e,n=[{key:"receiveBackend",value:function(e){this.backend=e}},{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 e=this,t=this.store.dispatch,n=function(e){return{beginDrag:ND(e),publishDragSource:OD(e),hover:TD(e),drop:MD(e),endDrag:zD(e)}}(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(e,a);void 0!==i&&t(i)}),a},{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],n&&jD(t.prototype,n),a&&jD(t,a),e}();function FD(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var _D="function"==typeof Symbol&&Symbol.observable||"@@observable",VD=function(){return Math.random().toString(36).substring(7).split("").join(".")},KD={INIT:"@@redux/INIT"+VD(),REPLACE:"@@redux/REPLACE"+VD(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+VD()}};function HD(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";var n=function(e){return"function"==typeof e.constructor?e.constructor.name:null}(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function BD(e){var t=typeof e;return"production"!==process.env.NODE_ENV&&(t=HD(e)),t}function $D(e,t,n){var a;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?FD(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 t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?FD(1):"Expected the enhancer to be a function. Instead, received: '"+BD(n)+"'");return n($D)(e,t)}if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?FD(2):"Expected the root reducer to be a function. Instead, received: '"+BD(e)+"'");var r=e,o=t,i=[],l=i,c=!1;function s(){l===i&&(l=i.slice())}function u(){if(c)throw new Error("production"===process.env.NODE_ENV?FD(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(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?FD(4):"Expected the listener to be a function. Instead, received: '"+BD(e)+"'");if(c)throw new Error("production"===process.env.NODE_ENV?FD(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 t=!0;return s(),l.push(e),function(){if(t){if(c)throw new Error("production"===process.env.NODE_ENV?FD(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.");t=!1,s();var n=l.indexOf(e);l.splice(n,1),i=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error("production"===process.env.NODE_ENV?FD(7):"Actions must be plain objects. Instead, the actual type was: '"+BD(e)+"'. 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===e.type)throw new Error("production"===process.env.NODE_ENV?FD(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?FD(9):"Reducers may not dispatch actions.");try{c=!0,o=r(o,e)}finally{c=!1}for(var t=i=l,n=0;n<t.length;n++){(0,t[n])()}return e}return p({type:KD.INIT}),(a={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?FD(10):"Expected the nextReducer to be a function. Instead, received: '"+BD(e));r=e,p({type:KD.REPLACE})}})[_D]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error("production"===process.env.NODE_ENV?FD(11):"Expected the observer to be an object. Instead, received: '"+BD(e)+"'");function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[_D]=function(){return this},e},a}var UD=function(e,t){return e===t};function WD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function YD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WD(Object(n),!0).forEach(function(t){qD(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var GD={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function XD(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:GD,a=arguments.length>1?arguments[1]:void 0,r=a.payload;switch(a.type){case hD:case gD:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case vD:return e=n.clientOffset,t=r.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y?n:YD(YD({},n),{},{clientOffset:r.clientOffset});case yD:case xD:return GD;default:return n}}var ZD="dnd-core/ADD_SOURCE",QD="dnd-core/ADD_TARGET",JD="dnd-core/REMOVE_SOURCE",eI="dnd-core/REMOVE_TARGET";function tI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function nI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tI(Object(n),!0).forEach(function(t){aI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rI={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function oI(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rI,a=arguments.length>1?arguments[1]:void 0,r=a.payload;switch(a.type){case gD:return nI(nI({},n),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case bD:return nI(nI({},n),{},{isSourcePublic:!0});case vD:return nI(nI({},n),{},{targetIds:r.targetIds});case eI:return-1===n.targetIds.indexOf(r.targetId)?n:nI(nI({},n),{},{targetIds:(e=n.targetIds,t=r.targetId,e.filter(function(e){return e!==t}))});case xD:return nI(nI({},n),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case yD:return nI(nI({},n),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function iI(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case ZD:case QD:return e+1;case JD:case eI:return e-1;default:return e}}var lI=[],cI=[];function sI(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case vD:break;case ZD:case QD:case eI:case JD:return lI;default:return cI}var t=e.payload,n=t.targetIds,a=void 0===n?[]:n,r=t.prevTargetIds,o=void 0===r?[]:r,i=function(e,t){var n=new Map,a=function(e){n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(a),t.forEach(a);var r=[];return n.forEach(function(e,t){1===e&&r.push(t)}),r}(a,o),l=i.length>0||!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:UD;if(e.length!==t.length)return!1;for(var a=0;a<e.length;++a)if(!n(e[a],t[a]))return!1;return!0}(a,o);if(!l)return lI;var c=o[o.length-1],s=a[a.length-1];return c!==s&&(c&&i.push(c),s&&i.push(s)),i}function uI(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function dI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function pI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dI(Object(n),!0).forEach(function(t){fI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mI(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:sI(e.dirtyHandlerIds,{type:t.type,payload:pI(pI({},t.payload),{},{prevTargetIds:CD(e,"dragOperation.targetIds",[])})}),dragOffset:XD(e.dragOffset,t),refCount:iI(e.refCount,t),dragOperation:oI(e.dragOperation,t),stateId:uI(e.stateId)}}function hI(e,t){return{x:e.x-t.x,y:e.y-t.y}}function gI(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function bI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}lI.__IS_NONE__=!0,cI.__IS_ALL__=!0;var vI=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),bI(this,"store",void 0),bI(this,"registry",void 0),this.store=t,this.registry=n}var t,n,a;return t=e,n=[{key:"subscribeToStateChange",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;mD("function"==typeof e,"listener must be a function."),mD(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=t.store.getState(),o=r.stateId;try{var i=o===a||o===a+1&&!function(e,t){if(e===lI)return!1;if(e===cI||void 0===t)return!0;var n,a=(n=e,t.filter(function(e){return n.indexOf(e)>-1}));return a.length>0}(r.dirtyHandlerIds,n);i||e()}finally{a=o}})}},{key:"subscribeToOffsetChange",value:function(e){var t=this;mD("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe(function(){var a=t.store.getState().dragOffset;a!==n&&(n=a,e())})}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return mD(t,"Expected to find a valid source. sourceId=".concat(e)),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return mD(t,"Expected to find a valid target. targetId=".concat(e)),!(!this.isDragging()||this.didDrop())&&PD(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return mD(t,"Expected to find a valid source. sourceId=".concat(e)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){if(!e)return!1;var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),a=this.getItemType();if(a&&!PD(n,a))return!1;var r=this.getTargetIds();if(!r.length)return!1;var o=r.indexOf(e);return t?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 e=this.store.getState().dragOffset,t=e.clientOffset,n=e.initialClientOffset,a=e.initialSourceClientOffset,t&&n&&a?hI(function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(t,a),n):null;var e,t,n,a}},{key:"getDifferenceFromInitialOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,n=e.initialClientOffset,t&&n?hI(t,n):null;var e,t,n}}],n&&gI(t.prototype,n),a&&gI(t,a),e}(),xI=0;function yI(e){return yI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yI(e)}function wI(e,t){t&&Array.isArray(e)?e.forEach(function(e){return wI(e,!1)}):mD("string"==typeof e||"symbol"===yI(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const kI="undefined"!=typeof global?global:self,CI=kI.MutationObserver||kI.WebKitMutationObserver;function EI(e){return function(){const t=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(t),clearInterval(n),e()}}}const SI="function"==typeof CI?function(e){let t=1;const n=new CI(e),a=document.createTextNode("");return n.observe(a,{characterData:!0}),function(){t=-t,a.data=t}}:EI;class NI{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const OI=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=SI(this.flush),this.requestErrorThrow=EI(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},PI=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new NI(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(OI.registerPendingError);function TI(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function DI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function II(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return RI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RI(e,t)}(e,t)||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 RI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function MI(e){var t=(xI++).toString();switch(e){case pD.SOURCE:return"S".concat(t);case pD.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function zI(e){switch(e[0]){case"S":return pD.SOURCE;case"T":return pD.TARGET;default:mD(!1,"Cannot parse handler ID: ".concat(e))}}function jI(e,t){var n=e.entries(),a=!1;do{var r=n.next(),o=r.done;if(II(r.value,2)[1]===t)return!0;a=!!o}while(!a);return!1}var AI=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),DI(this,"types",new Map),DI(this,"dragSources",new Map),DI(this,"dropTargets",new Map),DI(this,"pinnedSourceId",null),DI(this,"pinnedSource",null),DI(this,"store",void 0),this.store=t}var t,n,a;return t=e,n=[{key:"addSource",value:function(e,t){wI(e),function(e){mD("function"==typeof e.canDrag,"Expected canDrag to be a function."),mD("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),mD("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(pD.SOURCE,e,t);return this.store.dispatch(function(e){return{type:ZD,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){wI(e,!0),function(e){mD("function"==typeof e.canDrop,"Expected canDrop to be a function."),mD("function"==typeof e.hover,"Expected hover to be a function."),mD("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(pD.TARGET,e,t);return this.store.dispatch(function(e){return{type:QD,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return jI(this.dragSources,e)||jI(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return mD(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:"getTarget",value:function(e){return mD(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return mD(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return mD(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return zI(e)===pD.SOURCE}},{key:"isTargetId",value:function(e){return zI(e)===pD.TARGET}},{key:"removeSource",value:function(e){var t,n=this;mD(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:JD,payload:{sourceId:e}}}(e)),t=function(){n.dragSources.delete(e),n.types.delete(e)},OI.enqueueTask(PI.create(t))}},{key:"removeTarget",value:function(e){mD(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:eI,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);mD(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){mD(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var a=MI(e);return this.types.set(a,t),e===pD.SOURCE?this.dragSources.set(a,n):e===pD.TARGET&&this.dropTargets.set(a,n),a}}],n&&TI(t.prototype,n),a&&TI(t,a),e}();function LI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=function(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return $D(mI,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(arguments.length>3&&void 0!==arguments[3]&&arguments[3]),r=new vI(a,new AI(a)),o=new LD(a,r),i=e(o,t,n);return o.receiveBackend(i),o}var FI=["children"];function _I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return VI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VI(e,t)}(e,t)||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 VI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function KI(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var HI=0,BI=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),$I=e.memo(function(t){var a=t.children,r=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:UI(),n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=t;r[BI]||(r[BI]={dragDropManager:LI(e,t,n,a)});return r[BI]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(KI(t,FI)),o=_I(r,2),i=o[0],l=o[1];return e.useEffect(function(){if(l){var e=UI();return++HI,function(){0===--HI&&(e[BI]=null)}}},[]),n.jsx(fD.Provider,Object.assign({value:i},{children:a}),void 0)});function UI(){return"undefined"!=typeof global?global:window}function WI(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function YI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qI=!1,GI=!1,XI=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),YI(this,"internalMonitor",void 0),YI(this,"sourceId",null),this.internalMonitor=t.getMonitor()}var t,n,a;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){mD(!qI,"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 qI=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{qI=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;mD(!GI,"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 GI=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{GI=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{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(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{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()}}])&&WI(t.prototype,n),a&&WI(t,a),e}();function ZI(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function QI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JI=!1,eR=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),QI(this,"internalMonitor",void 0),QI(this,"targetId",null),this.internalMonitor=t.getMonitor()}var t,n,a;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;mD(!JI,"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 JI=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{JI=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{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()}}])&&ZI(t.prototype,n),a&&ZI(t,a),e}();function tR(t){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(!e.isValidElement(n)){var r=n;return t(r,a),r}var o=n;!function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}(o);var i=a?function(e){return t(e,a)}:t;return function(t,n){var a=t.ref;return mD("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?e.cloneElement(t,{ref:function(e){aR(a,e),aR(n,e)}}):e.cloneElement(t,{ref:n})}(o,i)}}function nR(e){var t={};return Object.keys(e).forEach(function(n){var a=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var r=tR(a);t[n]=function(){return r}}}),t}function aR(e,t){"function"==typeof e?e(t):e.current=t}function rR(e){return rR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rR(e)}function oR(e){return null!==e&&"object"===rR(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function iR(e,t,n,a){var r=n?n.call(a,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),c=0;c<o.length;c++){var s=o[c];if(!l(s))return!1;var u=e[s],d=t[s];if(!1===(r=n?n.call(a,u,d,s):void 0)||void 0===r&&u!==d)return!1}return!0}function lR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function cR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sR=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),cR(this,"hooks",nR({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,oR(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,oR(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}})),cR(this,"handlerId",null),cR(this,"dragSourceRef",null),cR(this,"dragSourceNode",void 0),cR(this,"dragSourceOptionsInternal",null),cR(this,"dragSourceUnsubscribe",void 0),cR(this,"dragPreviewRef",null),cR(this,"dragPreviewNode",void 0),cR(this,"dragPreviewOptionsInternal",null),cR(this,"dragPreviewUnsubscribe",void 0),cR(this,"lastConnectedHandlerId",null),cR(this,"lastConnectedDragSource",null),cR(this,"lastConnectedDragSourceOptions",null),cR(this,"lastConnectedDragPreview",null),cR(this,"lastConnectedDragPreviewOptions",null),cR(this,"backend",void 0),this.backend=t}var t,n,a;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{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!iR(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!iR(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}}])&&lR(t.prototype,n),a&&lR(t,a),e}();function uR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function dR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pR=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),dR(this,"hooks",nR({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,oR(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}})),dR(this,"handlerId",null),dR(this,"dropTargetRef",null),dR(this,"dropTargetNode",void 0),dR(this,"dropTargetOptionsInternal",null),dR(this,"unsubscribeDropTarget",void 0),dR(this,"lastConnectedHandlerId",null),dR(this,"lastConnectedDropTarget",null),dR(this,"lastConnectedDropTargetOptions",null),dR(this,"backend",void 0),this.backend=t}var t,n,a;return t=e,(n=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!iR(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}}])&&uR(t.prototype,n),a&&uR(t,a),e}();var fR="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function mR(e){return mR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mR(e)}function hR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function gR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bR=function(){function e(t,n,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),gR(this,"spec",void 0),gR(this,"monitor",void 0),gR(this,"connector",void 0),this.spec=t,this.monitor=n,this.connector=a}var t,n,a;return t=e,(n=[{key:"beginDrag",value:function(){var e,t=this.spec,n=this.monitor;return null!==(e="object"===mR(t.item)?t.item:"function"==typeof t.item?t.item(n):{})&&void 0!==e?e:null}},{key:"canDrag",value:function(){var e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}},{key:"isDragging",value:function(e,t){var n=this.spec,a=this.monitor,r=n.isDragging;return r?r(a):t===e.getSourceId()}},{key:"endDrag",value:function(){var e=this.spec,t=this.monitor,n=this.connector,a=e.end;a&&a(t.getItem(),t),n.reconnect()}}])&&hR(t.prototype,n),a&&hR(t,a),e}();function vR(){var t=e.useContext(fD).dragDropManager;return mD(null!=t,"Expected drag drop context"),t}function xR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yR(e,t)}(e,t)||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 yR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function wR(t,n,a){var r=vR(),o=function(t,n,a){var r=e.useMemo(function(){return new bR(t,n,a)},[n,a]);return e.useEffect(function(){r.spec=t},[t]),r}(t,n,a),i=function(t){return e.useMemo(function(){var e=t.type;return mD(null!=e,"spec.type must be defined"),e},[t])}(t);fR(function(){if(null!=i){var e=function(e,t,n){var a=n.getRegistry(),r=a.addSource(e,t);return[r,function(){return a.removeSource(r)}]}(i,o,r),t=xR(e,2),l=t[0],c=t[1];return n.receiveHandlerId(l),a.receiveHandlerId(l),c}},[r,n,a,o,i])}function kR(e){return function(e){if(Array.isArray(e))return CR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return CR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CR(e,t)}(e)||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 CR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function ER(t,n){var a=kR(n||[]);return null==n&&"function"!=typeof t&&a.push(t),e.useMemo(function(){return"function"==typeof t?t():t},a)}var SR=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var a,r,o;if(Array.isArray(t)){if((a=t.length)!=n.length)return!1;for(r=a;0!==r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((a=(o=Object.keys(t)).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(!e(t[i],n[i]))return!1}return!0}return t!=t&&n!=n};function NR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return OR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OR(e,t)}(e,t)||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 OR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function PR(t,n,a){var r=NR(e.useState(function(){return n(t)}),2),o=r[0],i=r[1],l=e.useCallback(function(){var e=n(t);SR(o,e)||(i(e),a&&a())},[o,t,a]);return fR(l),[o,l]}function TR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return DR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DR(e,t)}(e,t)||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 DR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function IR(e,t,n){return function(e,t,n){var a=TR(PR(e,t,n),2),r=a[0],o=a[1];return fR(function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})},[e,o]),r}(t,e||function(){return{}},function(){return n.reconnect()})}function RR(t){return e.useMemo(function(){return t.hooks.dragSource()},[t])}function MR(t){return e.useMemo(function(){return t.hooks.dragPreview()},[t])}function zR(t,n){var a=ER(t,n);mD(!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=vR(),e.useMemo(function(){return new XI(r)},[r])),i=function(t,n){var a=vR(),r=e.useMemo(function(){return new sR(a.getBackend())},[a]);return fR(function(){return r.dragSourceOptions=t||null,r.reconnect(),function(){return r.disconnectDragSource()}},[r,t]),fR(function(){return r.dragPreviewOptions=n||null,r.reconnect(),function(){return r.disconnectDragPreview()}},[r,n]),r}(a.options,a.previewOptions);return wR(a,o,i),[IR(a.collect,o,i),RR(i),MR(i)]}function jR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function AR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var LR=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),AR(this,"spec",void 0),AR(this,"monitor",void 0),this.spec=t,this.monitor=n}var t,n,a;return t=e,(n=[{key:"canDrop",value:function(){var e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}},{key:"hover",value:function(){var e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}},{key:"drop",value:function(){var e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}}])&&jR(t.prototype,n),a&&jR(t,a),e}();function FR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _R(e,t)}(e,t)||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 _R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function VR(t,n,a){var r=vR(),o=function(t,n){var a=e.useMemo(function(){return new LR(t,n)},[n]);return e.useEffect(function(){a.spec=t},[t]),a}(t,n),i=function(t){var n=t.accept;return e.useMemo(function(){return mD(null!=t.accept,"accept must be defined"),Array.isArray(n)?n:[n]},[n])}(t);fR(function(){var e=function(e,t,n){var a=n.getRegistry(),r=a.addTarget(e,t);return[r,function(){return a.removeTarget(r)}]}(i,o,r),t=FR(e,2),l=t[0],c=t[1];return n.receiveHandlerId(l),a.receiveHandlerId(l),c},[r,n,o,a,i.map(function(e){return e.toString()}).join("|")])}function KR(t){return e.useMemo(function(){return t.hooks.dropTarget()},[t])}function HR(t,n){var a,r=ER(t,n),o=(a=vR(),e.useMemo(function(){return new eR(a)},[a])),i=function(t){var n=vR(),a=e.useMemo(function(){return new pR(n.getBackend())},[n]);return fR(function(){return a.dropTargetOptions=t||null,a.reconnect(),function(){return a.disconnectDropTarget()}},[t]),a}(r.options);return VR(r,o,i),[IR(r.collect,o,i),KR(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:BR}=Su,$R=f.default.createContext(null),UR=({vc:t,open:a,index:r,moveRow:o,className:i,style:l,...c})=>{const[s]=uy.useForm(),u=e.useRef(null),[{isOver:d,dropClassName:p},f]=HR({accept:"DraggableBodyRow",collect:e=>{const{index:t}=e.getItem()||{};return t===r?{}:{isOver:e.isOver(),dropClassName:t<r?" drop-over-downward":" drop-over-upward"}},drop:e=>{o(e.index,r)}}),[,m]=zR({type:"DraggableBodyRow",item:{index:r},collect:e=>({isDragging:e.isDragging()})});a&&f(m(u));const h={ref:u,className:`${i}${d?p:""}`,style:{cursor:a?"move":"auto",...l},...c};return n.jsx(uy,{size:"small",component:!1,form:s,children:n.jsx($R.Provider,{value:s,children:t?t.body.row(h,u):n.jsx("tr",{...h})})})},WR=({vc:t,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:y,formChange:w,remoteConfig:k,children:C,formItemProps:E,handleSave:S,placeholder:N,triggerRemoteSearch:O,...P})=>{const T=e.useContext($R),[D,I]=e.useState(!1),[R,M]=e.useState(!1),[z,j]=e.useState({}),A=e.useRef(null);e.useEffect(()=>{D&&A.current.focus()},[D]),e.useEffect(()=>{"RemoteSearch"===h&&r&&r[i]&&k?.remoteApi&&O&&L(void 0,i,r,k?.remoteApi)},[k?.remoteApi,r?.[i],O]);const L=(e,t,n,a)=>{a&&(M(!0),a(e,n).then(e=>{M(!1),t&&j({[t]:e})}))},F=()=>{_()},_=()=>{I(!1)},V=()=>{void 0!==r[i]&&null!==r[i]&&""!==r[i]&&("DatePicker"!==h&&"DateTimePicker"!==h||(r[i]=x.default(r[i])),"status"===i&&(r[i]=String(r[i]))),I(!D),T.setFieldsValue({[i]:r[i]})},K=e=>{const t={DateTimePicker:"YYYY-MM-DD HH:mm:ss",DatePicker:"YYYY-MM-DD"};return Object.keys(t).includes(h)&&e[i]&&(e[i]=e[i].format(t[h])),e},H=(e,t)=>{let a=null;const o=(e,t)=>{let n="";const a=function(e){for(let t of e)if(t)if(uP({data:t,type:"String"}))n+=t;else{const e=t.props.children;uP({data:e,type:"Object"})&&a([e]),uP({data:e,type:"Array"})&&a(e),uP({data:e,type:"String"})&&(n+=e)}};return a([t.children]),n.toLowerCase().indexOf(e.toLowerCase())>=0},l=e=>{if(m.default.isArray(e))return e.map((e,t)=>n.jsx(BR,{value:e.value,children:e.label},t))};switch(e){case"RecordSelect":a=n.jsx(Su,{ref:A,open:D,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:N||t,onChange:B,onBlur:F,optionFilterProp:"children",filterOption:o,children:l(r[b])});break;case"Select":a=n.jsx(Su,{ref:A,open:D,dropdownMatchSelectWidth:!1,onChange:B,onBlur:F,placeholder:N||t,children:l(g)});break;case"DatePicker":a=n.jsx(fx,{ref:A,open:D,onChange:B,onBlur:F,placeholder:N||t});break;case"DateTimePicker":a=n.jsx(fx,{ref:A,open:D,onChange:B,onBlur:F,placeholder:N||t,showTime:!0});break;case"AutoComplete":a=n.jsx(Su,{ref:A,open:D,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:N||t,onChange:B,onBlur:F,optionFilterProp:"children",filterOption:o,children:l(g)});break;case"RemoteSearch":let e=g;z[i]&&(e=z[i]),a=n.jsx(Su,{ref:A,open:D,mode:k.remoteMode,placeholder:N||t,notFoundContent:R?n.jsx(Wy,{size:"small"}):null,dropdownMatchSelectWidth:!1,filterOption:!1,allowClear:!0,showSearch:!0,onChange:B,onBlur:F,onFocus:()=>L(void 0,i,r,k.remoteApi),onSearch:e=>L(e,i,r,k.remoteApi),children:i&&l(e)});break;default:a=n.jsx(Kb,{ref:A,onPressEnter:B,onBlur:B,placeholder:N||t,type:f||"text"})}return a},B=async()=>{try{const e=await T.validateFields();let t={...r,...e};t[i]=t[i]||void 0,t=K(t),w&&(t=await w(t)||t),r[i]!==t[i]&&S(t,i),_()}catch(e){console.log("保存表单字段失败:",e)}};let $=C;const U=y?y(r[i],r,o):(()=>{if(h&&i){if(g&&("Select"===h||"AutoComplete"===h))return dP(g,r[i]);if("RemoteSearch"===h&&z[i])return dP(z[i],r[i]);if(r[b]&&"RecordSelect"===h)return dP(r[b],r[i]);if(x.default.isMoment(r[i]))return K(r)[i]}return C})();$=p?D?n.jsx(uy.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:U}):U,v&&($=v(r,$));const W=(e,a)=>t?n.jsx(t.body.cell,{...e,children:a}):n.jsx("td",{...e,children:a});return u||d?W({...P,rowSpan:u,colSpan:d,title:r&&r[i]},$):0!==c&&0!==s?W({...P,rowSpan:c,colSpan:u,title:r&&r[i]},$):null};function YR(e){var t=null;return function(){return null==t&&(t=e()),t}}function qR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function GR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XR=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),GR(this,"entered",[]),GR(this,"isNodeInDocument",void 0),this.isNodeInDocument=t}var t,n,a;return t=e,n=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,a=function(e){return n.add(e)};e.forEach(a),t.forEach(a);var r=[];return n.forEach(function(e){return r.push(e)}),r}(this.entered.filter(function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))}),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,a=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter(function(e){return e!==n})),a>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}],n&&qR(t.prototype,n),a&&qR(t,a),e}(),ZR=YR(function(){return/firefox/i.test(navigator.userAgent)}),QR=YR(function(){return Boolean(window.safari)});function JR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function eM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tM=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),eM(this,"xs",void 0),eM(this,"ys",void 0),eM(this,"c1s",void 0),eM(this,"c2s",void 0),eM(this,"c3s",void 0);for(var a=t.length,r=[],o=0;o<a;o++)r.push(o);r.sort(function(e,n){return t[e]<t[n]?-1:1});for(var i,l,c=[],s=[],u=0;u<a-1;u++)i=t[u+1]-t[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=[],x=[],y=0;y<d.length-1;y++){b=s[y];var w=d[y],k=1/c[y],C=w+d[y+1]-b-b;v.push((b-w-C)*k),x.push(C*k*k)}this.xs=t,this.ys=n,this.c1s=d,this.c2s=v,this.c3s=x}var t,n,a;return t=e,n=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,a=this.c1s,r=this.c2s,o=this.c3s,i=t.length-1;if(e===t[i])return n[i];for(var l,c=0,s=o.length-1;c<=s;){var u=t[l=Math.floor(.5*(c+s))];if(u<e)c=l+1;else{if(!(u>e))return n[l];s=l-1}}var d=e-t[i=Math.max(0,s)],p=d*d;return n[i]+a[i]*d+r[i]*p+o[i]*d*p}}],n&&JR(t.prototype,n),a&&JR(t,a),e}();function nM(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),a=n.top;return{x:n.left,y:a}}function aM(e){return{x:e.clientX,y:e.clientY}}function rM(e,t,n,a,r){var o,i,l="IMG"===(o=t).nodeName&&(ZR()||!(null!==(i=document.documentElement)&&void 0!==i&&i.contains(o))),c=nM(l?e:t),s={x:n.x-c.x,y:n.y-c.y},u=e.offsetWidth,d=e.offsetHeight,p=a.anchorX,f=a.anchorY,m=function(e,t,n,a){var r=e?t.width:n,o=e?t.height:a;return QR()&&e&&(o/=window.devicePixelRatio,r/=window.devicePixelRatio),{dragPreviewWidth:r,dragPreviewHeight:o}}(l,t,u,d),h=m.dragPreviewWidth,g=m.dragPreviewHeight,b=r.offsetX,v=r.offsetY,x=0===v||v;return{x:0===b||b?b:new tM([0,.5,1],[s.x,s.x/u*h,s.x+h-u]).interpolate(p),y:x?v:function(){var e=new tM([0,.5,1],[s.y,s.y/d*g,s.y+g-d]).interpolate(f);return QR()&&l&&(e+=(window.devicePixelRatio-1)*g),e}()}}var oM,iM="__NATIVE_FILE__",lM="__NATIVE_URL__",cM="__NATIVE_TEXT__",sM="__NATIVE_HTML__",uM=Object.freeze({__proto__:null,FILE:iM,URL:lM,TEXT:cM,HTML:sM});function dM(e,t,n){var a=t.reduce(function(t,n){return t||e.getData(n)},"");return null!=a?a:n}function pM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fM=(pM(oM={},iM,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),pM(oM,sM,{exposeProperties:{html:function(e,t){return dM(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),pM(oM,lM,{exposeProperties:{urls:function(e,t){return dM(e,t,"").split("\n")},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),pM(oM,cM,{exposeProperties:{text:function(e,t){return dM(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),oM);function mM(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function hM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gM=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),hM(this,"item",void 0),hM(this,"config",void 0),this.config=t,this.item={},this.initializeExposedProperties()}var t,n,a;return t=e,(n=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach(function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach(function(a){n[a]={value:t.config.exposeProperties[a](e,t.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(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&mM(t.prototype,n),a&&mM(t,a),e}();function bM(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(fM).filter(function(e){return fM[e].matchesTypes.some(function(e){return t.indexOf(e)>-1})})[0]||null}function vM(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function xM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yM=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),xM(this,"ownerDocument",null),xM(this,"globalContext",void 0),xM(this,"optionsArgs",void 0),this.globalContext=t,this.optionsArgs=n}var t,n,a;return t=e,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var e;return null!==(e=this.globalContext)&&void 0!==e&&e.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}}])&&vM(t.prototype,n),a&&vM(t,a),e}();function wM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function kM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wM(Object(n),!0).forEach(function(t){EM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function CM(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function EM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SM=function(){function e(t,n,a){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),EM(this,"options",void 0),EM(this,"actions",void 0),EM(this,"monitor",void 0),EM(this,"registry",void 0),EM(this,"enterLeaveCounter",void 0),EM(this,"sourcePreviewNodes",new Map),EM(this,"sourcePreviewNodeOptions",new Map),EM(this,"sourceNodes",new Map),EM(this,"sourceNodeOptions",new Map),EM(this,"dragStartSourceIds",null),EM(this,"dropTargetIds",[]),EM(this,"dragEnterTargetIds",[]),EM(this,"currentNativeSource",null),EM(this,"currentNativeHandle",null),EM(this,"currentDragSourceNode",null),EM(this,"altKeyPressed",!1),EM(this,"mouseMoveTimeoutTimer",null),EM(this,"asyncEndDragFrameId",null),EM(this,"dragOverTargetIds",null),EM(this,"lastClientOffset",null),EM(this,"hoverRafId",null),EM(this,"getSourceClientOffset",function(e){var t=r.sourceNodes.get(e);return t&&nM(t)||null}),EM(this,"endDragNativeItem",function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.currentNativeHandle&&r.registry.removeSource(r.currentNativeHandle),r.currentNativeHandle=null,r.currentNativeSource=null)}),EM(this,"isNodeInDocument",function(e){return Boolean(e&&r.document&&r.document.body&&r.document.body.contains(e))}),EM(this,"endDragIfSourceWasRemovedFromDOM",function(){var e=r.currentDragSourceNode;null==e||r.isNodeInDocument(e)||r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()}),EM(this,"handleTopDragStartCapture",function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]}),EM(this,"handleTopDragStart",function(e){if(!e.defaultPrevented){var t=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=aM(e);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var a=e.dataTransfer,o=bM(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=rM(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(e){}r.setCurrentDragSourceNode(e.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&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}}),EM(this,"handleTopDragEndCapture",function(){r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()}),EM(this,"handleTopDragEnterCapture",function(e){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(e.target)&&!r.monitor.isDragging()){var t=e.dataTransfer,n=bM(t);n&&r.beginDragNativeItem(n,t)}}),EM(this,"handleTopDragEnter",function(e){var t=r.dragEnterTargetIds;(r.dragEnterTargetIds=[],r.monitor.isDragging())&&(r.altKeyPressed=e.altKey,t.length>0&&r.actions.hover(t,{clientOffset:aM(e)}),t.some(function(e){return r.monitor.canDropOnTarget(e)})&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())))}),EM(this,"handleTopDragOverCapture",function(){r.dragOverTargetIds=[]}),EM(this,"handleTopDragOver",function(e){var t=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));r.altKeyPressed=e.altKey,r.lastClientOffset=aM(e),null===r.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(r.hoverRafId=requestAnimationFrame(function(){r.monitor.isDragging()&&r.actions.hover(t||[],{clientOffset:r.lastClientOffset}),r.hoverRafId=null})),(t||[]).some(function(e){return r.monitor.canDropOnTarget(e)})?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))}),EM(this,"handleTopDragLeaveCapture",function(e){r.isDraggingNativeItem()&&e.preventDefault(),r.enterLeaveCounter.leave(e.target)&&r.isDraggingNativeItem()&&setTimeout(function(){return r.endDragNativeItem()},0)}),EM(this,"handleTopDropCapture",function(e){var t;(r.dropTargetIds=[],r.isDraggingNativeItem())?(e.preventDefault(),null===(t=r.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):bM(e.dataTransfer)&&e.preventDefault();r.enterLeaveCounter.reset()}),EM(this,"handleTopDrop",function(e){var t=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(t,{clientOffset:aM(e)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.monitor.isDragging()&&r.actions.endDrag()}),EM(this,"handleSelectStart",function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))}),this.options=new yM(n,a),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new XR(this.isNodeInDocument)}var t,n,a;return t=e,n=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.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 e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}},{key:"teardown",value:function(){var e,t=this.rootElement;void 0!==t&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(e=this.window)||void 0===e||e.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(e,t,n){var a=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){a.sourcePreviewNodes.delete(e),a.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var a=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var r=function(t){return a.handleDragStart(t,e)},o=function(e){return a.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),function(){a.sourceNodes.delete(e),a.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,a=function(t){return n.handleDragEnter(t,e)},r=function(t){return n.handleDragOver(t,e)},o=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",a),t.addEventListener("dragover",r),t.addEventListener("drop",o),function(){t.removeEventListener("dragenter",a),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return kM({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return kM({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(uM).some(function(t){return uM[t]===e})}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new gM(fM[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(function(){var e;return null===(e=t.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}}],n&&CM(t.prototype,n),a&&CM(t,a),e}();const NM=function(e,t,n){return new SM(e,t,n)},OM=e=>n.jsx($I,{backend:NM,context:window,children:e.children});k(".ant-table-wrapper .ant-table-cell{color:#333}.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 PM=e.forwardRef((t,a)=>{const r=e.useMemo(()=>{const e=t.extra||{};return{tableConfig:e.tableConfig,virtual:e.virtual,rowType:e.rowType,scroll:e.scroll,apiMethod:e.apiMethod,columns:e.columns||[],data:e.data,drag:e.drag,onSelect:e.onSelect,hidSortColumn:e.hidSortColumn,paginationConfig:e.paginationConfig,getCheckboxProps:e.getCheckboxProps,resultFilter:e.resultFilter,getTableSuccessData:e.getTableSuccessData}},[t.extra]),o=e.useRef(),l=e.useRef(!0),c=e.useRef({position:["bottomCenter"],size:"small",current:1,total:0,pages:0,pageSize:10,showSizeChanger:!0,orderByInfo:void 0}),s=e.useRef([]),[u,d]=e.useState(r.columns),[p,f]=e.useState(!1),[h,g]=N.useSetState({listData:[],selectRowIds:[],selectRowArray:[]}),[b,v]=e.useState({x:void 0,y:330}),x=e.useMemo(()=>r.tableConfig&&r.tableConfig.rowKey?r.tableConfig.rowKey:"id",[r.tableConfig]),y=e.useMemo(()=>{const e=i.v4();if(r.virtual&&r.virtual.open){const t={...r.virtual.config,vid:r.virtual.config?.vid||e,height:r.virtual.config?.height||500,resetTopWhenDataChange:r.virtual.config?.resetTopWhenDataChange||!1};return console.log("创建虚拟列表",t),sT(t)}},[r.virtual]),w=e.useMemo(()=>{const e={header:{cell:dD},body:{row:e=>n.jsx(UR,{...e,vc:y}),cell:e=>n.jsx(WR,{...e,vc:y,columns:u})}};try{if(y){const t=e;return{...y,header:t.header,body:{...y.body,cell:t.body.cell,row:t.body.row}}}return e}catch(t){return console.error("虚拟列表配置失败,请检查配置项",t),e}},[u,y]),k=!(!m.default.isFunction(r.apiMethod)||!l.current)&&{size:"small",position:["bottomCenter"],showTotal:e=>`共${e}条`,showSizeChanger:!0,showQuickJumper:!0,...c.current},C=e.useCallback((e,t)=>{const n=new Map;return e.forEach(e=>{n.set(e[x],e)}),t.forEach(e=>{n.set(e[x],e)}),Array.from(n.values())},[x]),E=e.useCallback(async e=>{let t=!0;f(!0),e&&(void 0!==e.updateSelected&&(t=e.updateSelected,delete e.updateSelected),"not-reset"===e.pagination&&delete e.pagination,o.current={...o.current,...e});try{const n={...o.current};for(let e in c.current){const t=c.current[e];"orderByInfo"===e&&(n.orderByInfo=t),"current"===e&&(n.page=t),"pageSize"===e&&(n.size=n.size||t)}if(e&&e.current&&(n.page=e.current,c.current.current=e.current),r.apiMethod){delete n.current;const e=await r.apiMethod(m.default.pickBy(n,m.default.identity));let a=[];m.default.isArray(e.data.content)&&(!1!==r.paginationConfig?l.current=!0:l.current=!1,a=e.data.content,c.current.total=e.data.total,c.current.pages=e.data.pages),m.default.isArray(e.data)&&(l.current=!1,a=e.data),r.resultFilter&&(a=await r.resultFilter(a)),t&&g(e=>{let t=[...e.selectRowIds],n=[];const r=a=>{if(e.selectRowIds.length)for(let o of a){for(let a of e.selectRowIds)o[x]===a&&(t.push(a),n.push(o));o.children&&r(o.children)}};return r(a),e.selectRowIds=Array.from(new Set(t)),e.selectRowArray=C(e.selectRowArray,n),e}),g(e=>(e.listData=a,e)),r.getTableSuccessData&&r.getTableSuccessData(e)}}catch(e){}f(!1)},[r,x,C,g]),S=e=>{!m.default.isEqual(e,c.current)&&l.current&&(c.current={...c.current,...e},E())},O={fixed:!0,type:r.rowType,selectedRowKeys:h.selectRowIds,getCheckboxProps:r.getCheckboxProps,onSelectAll:(e,t,n)=>{g(t=>{let a=[...t.selectRowIds],o=[...t.selectRowArray];return e?(a=m.default.uniq([...a,...n.map(e=>e[x])]),o=m.default.uniqBy([...o,...n],x)):(a=a.filter(e=>!n.some(t=>t[x]===e)),o=o.filter(e=>!n.some(t=>t[x]===e[x]))),r.onSelect&&r.onSelect(o,a),t.selectRowIds=a,t.selectRowArray=o,t})},onSelect:(e,t)=>{g(n=>{let a=[...n.selectRowIds],o=[...n.selectRowArray];return"checkbox"===r.rowType&&(t?(a.push(e[x]),o.push(e)):(a=a.filter(t=>t!==e[x]),o=o.filter(t=>t[x]!==e[x]))),"radio"===r.rowType&&t&&(a=[e[x]],o=[e]),r.onSelect&&r.onSelect(o,a),n.selectRowIds=a,n.selectRowArray=o,n})}},P=e=>(t,{size:n})=>{d(t=>{const a=[...t];return a[e]={...a[e],width:n.width},s.current=a,a})},T=e.useCallback(e=>{g(t=>{let n=JSON.parse(JSON.stringify(t.listData));for(let[t,a]of n.entries())if(a[x]===e[x]){n[t]={...n[t],...e};break}return t.listData=n,t})},[x,g]),D=e.useCallback(async(e,t)=>{const n=h.listData[e],a=NP(h.listData,{$splice:[[e,1],[t,0,n]]});f(!0);try{if(r.drag){const n=JSON.parse(JSON.stringify(a)),o=JSON.parse(JSON.stringify(h.listData)),i=[e,t].sort();!1!==await r.drag.moveRow(e,t,n,o,n.slice(i[0],i[1]+1))&&g(e=>(e.listData=n,e))}}finally{f(!1)}},[r.drag,g,h.listData]),I=e.useCallback(e=>{let t=[];const n=e=>{for(let a of e){for(let e of h.selectRowIds)a[x]===e&&t.push(a);a.children&&n(a.children)}};return n(e),t},[x,h.selectRowIds]);return e.useEffect(()=>{(async()=>{let e=[...r.columns];r.hidSortColumn||e.unshift({width:55,fixed:"left",title:"序号",dataIndex:"sequence",render:(e,t,n)=>{const a=c.current;return Object.keys(a).length?((a.current||0)-1)*(a.pageSize||0)+n+1:n+1}});for(let[t,n]of e.entries()){let a={...n,onHeaderCell:e=>({width:e.width,onResize:P(t)}),onCell:(e,t)=>({record:e,recordIndex:t,dataIndex:n.dataIndex,title:n.title,rowSpanNum:"function"==typeof n.rowSpanNum?n.rowSpanNum(e,t):n.rowSpanNum,colSpanNum:"function"==typeof n.colSpanNum?n.colSpanNum(e,t):n.colSpanNum,editable:"function"==typeof n.editable?n.editable(e,t):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,placeholder:n.placeholder,triggerRemoteSearch:n.triggerRemoteSearch})},r=s.current.find(e=>e.dataIndex===n.dataIndex&&e.title===n.title);r&&(a.width=r.width),e[t]=a}d(e)})()},[r.columns,r.hidSortColumn,T]),e.useEffect(()=>{m.default.isArray(r.data)&&g(e=>(e.listData=JSON.parse(JSON.stringify(r.data)),e))},[r.data,g]),e.useEffect(()=>{const e=document.getElementById("slider-menu"),t=document.getElementById("router-render");if(void 0!==r.scroll?.x||void 0!==r.scroll?.y)v(e=>({...e,...r.scroll}));else if(e&&t){let n=parseInt(window.getComputedStyle(t,null).paddingLeft);v(t=>(t.x=document.body.clientWidth-e.clientWidth-(2*n+43),t))}},[r.scroll]),e.useEffect(()=>{r.paginationConfig&&(c.current={...c.current,...r.paginationConfig})},[r.paginationConfig]),e.useImperativeHandle(a,()=>({setTableLoading:e=>{f(e)},getPages:()=>({...c.current}),getTableList:async(e,t)=>{e&&("not-reset"===e.pagination?e.current=c.current.current:void 0===e.current&&(e.current=1),e.clearSelectIds&&(delete e.clearSelectIds,g(e=>(e.selectRowArray=[],e.selectRowIds=[],e)))),await E(e),t&&t()},setRowSelected:(e,t)=>{let n=e;!0===t&&(n=Array.from(new Set([...h.selectRowIds,...e]))),g({selectRowIds:n})},setRowSelectedBy:e=>{g({selectRowArray:e})},getSelectIds:()=>h.selectRowIds,clearSelectIds:()=>{g({selectRowIds:[],selectRowArray:[]})},getSelectRowsArray:()=>{const e=I(h.listData);return m.default.cloneDeep(C(h.selectRowArray,e))},removeSelectIds:e=>{if(!Array.isArray(e)||0===e.length)return;const t=(t,n)=>t.filter(t=>"string"==typeof t?!e.includes(t):!e.includes(t[n]));g({selectRowIds:t(h.selectRowIds,x),selectRowArray:t(h.selectRowArray,x)})},getStaticDataList:()=>{try{return m.default.cloneDeep(h.listData||[])}catch(e){return[]}},setStaticDataList:(e,t)=>{if(e)try{if("object"!=typeof e||Array.isArray(e))Array.isArray(e)&&g(t=>(t.listData=m.default.cloneDeep(e),t));else{const t=e;g(e=>(e.listData=h.listData.map(e=>e[x]===t[x]?{...e,...t}:e),e))}t&&t()}catch(e){}}})),n.jsx(yP,{children:n.jsx(OM,{children:n.jsx(jE,{bordered:!0,rowKey:"id",rowClassName:"editable-row",loading:p,components:w,onRow:(e,t)=>({index:t,moveRow:D,open:r.drag&&r.drag.open}),columns:u,dataSource:h.listData,rowSelection:r.rowType?O:void 0,pagination:k,onChange:(e,t,n)=>{const{order:a}=n;e.orderByInfo=void 0,a&&(e.orderByInfo=`${n.field}:${"ascend"===a?1:-1}`),S(e)},scroll:b,...r.tableConfig})})})});k("");const TM=e=>{const t={...e};return delete t.outerHeight,n.jsx(fb,{className:"empty-wrap",style:{minHeight:e&&e.outerHeight?e.outerHeight:400},align:"middle",justify:"center",children:n.jsx(ua,{description:"暂无数据",...t})})};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:DM,Paragraph:IM}=uO;var RM=e.forwardRef(function(t,a){const r=e.useRef(null),o=e.useRef(),[i,l]=N.useSetState({saveLoading:!1,selectedRows:[]}),c=e.useMemo(()=>t.tableColumnsList&&t.tableColumnsList.tableConfig&&t.tableColumnsList.tableConfig.rowKey||"id",[t.tableColumnsList]),s=e.useMemo(()=>{const e=t.width||0;return e>=500&&e<=800?{span:7}:e>800&&e<=1e3?{span:6}:e>1e3&&e<=1200?{span:5}:e>1200?{span:4}:{span:8}},[t.width]),u=(e,t)=>{if(o.current){let n=[],a=[];"all"===e&&o.current.clearSelectIds(),"odd"===e&&t&&(n=[t[c]],a=i.selectedRows.filter(e=>e[c]!==t[c]),o.current.removeSelectIds(n)),l({selectedRows:a})}},d=e.useCallback(async()=>{if(r.current&&o.current){let e=await r.current.formSubmit();if(e&&Object.keys(e).length){for(let t in e){const n="YYYY-MM-DD HH:mm:ss";x.default(e[t],n,!0).isValid()&&(e[t]=x.default(e[t]).format(n))}e={clearSelectIds:!0,...e},void 0!==t.clearSelectIds&&(e.clearSelectIds=t.clearSelectIds),e.clearSelectIds&&l(e=>(e.selectedRows=[],e)),t.manualParameterChange&&(e=t.manualParameterChange(e)),t.searchCallback?t.searchCallback(e).then(t=>{t&&o.current?.getTableList(e)}):o.current.getTableList(e)}}else o.current?.getTableList()},[t,l]),p=()=>{if(r.current){let e=[];const n=t.searchNoResetFiled||[];if(t.searchFormList)for(let a of t.searchFormList){if(a.unionConfig)for(let t of a.unionConfig.unionItems)t.name&&!n.includes(t.name)&&e.push(t.name);a.name&&!n.includes(a.name)&&e.push(a.name)}r.current.formReset(e)}d()};return e.useEffect(()=>{t.visible&&(t.autoGetList&&o.current?.getTableList(),t.openSelected&&t.openSelected.visible&&l(e=>(e.selectedRows=t.openSelected?.defaultValues||[],o.current?.setRowSelectedBy(e.selectedRows),o.current?.setRowSelected(e.selectedRows.map(e=>e[c])),e)))},[t.autoGetList,t.openSelected,t.visible,c,l]),e.useImperativeHandle(a,()=>({...r.current,...o.current,setSavaLoading:e=>{l({saveLoading:e})}})),n.jsxs(oP,{className:"from-table-modal",forceRender:!0,maskClosable:!1,footer:null,width:t.width,visible:t.visible,title:t.title||"弹窗",onCancel:()=>{t.onCancel&&t.onCancel()},...t.modalConfig,children:[t.topExtra,t.searchFormList?n.jsx(EP,{ref:r,rowGridConfig:{gutter:10},colGirdConfig:s,list:(f=t.searchFormList,f?f.map(e=>("Select"===e.componentName&&e.selectData&&e.selectData.length&&(e.selectData.some(e=>"全部"===e.label)||(e.selectData=[{label:"全部",value:""},...e.selectData])),e)):[]),formConfig:t.formConfig,render:()=>t.searchFormList&&t.searchFormList.length?n.jsxs(bk,{size:10,children:[n.jsx(_d,{type:"primary",onClick:()=>{d()},children:"查询"}),n.jsx(_d,{className:"btn-reset",onClick:p,children:"重置"})]}):n.jsx(n.Fragment,{})}):null,n.jsxs(fb,{...t.rowProps,children:[t.leftSlot?n.jsx(bb,{...t.leftSlot.colProps,children:t.leftSlot.jsx}):null,n.jsx(bb,{...t.colProps,children:n.jsxs(fb,{gutter:10,children:[n.jsx(bb,{span:t.openSelected&&t.openSelected.visible?16:24,children:n.jsx(PM,{ref:o,extra:{rowType:t.tableColumnsList.rowType,apiMethod:t.apiMethod,columns:t.tableColumnsList.list,data:t.data,onSelect:(e,n)=>{((e,n)=>{l({selectedRows:n.map(n=>{let a={};const r=e.find(e=>e[c]===n);if(a[c]=n,t.openSelected&&t.openSelected.fileName&&(a[t.openSelected.fileName]=n),r&&(a=r),t.openSelected){const e=t.openSelected.fileName,r=t.openSelected.defaultValues;if(e&&r){const t=r.find(e=>e[c]===n);t&&(a[e]=t[e])}}return a})})})(e,n),t.onSelect&&t.onSelect(e,n)},virtual:t.virtual,getTableSuccessData:t.getTableSuccessData,tableConfig:t.tableColumnsList.tableConfig,scroll:{x:"max-content"}}})}),t.openSelected&&t.openSelected.visible?n.jsx(bb,{span:8,children:n.jsx(yb,{title:"已选列表",size:"small",bodyStyle:{height:t.openSelected.height||330,overflowY:"auto"},extra:n.jsxs(n.Fragment,{children:[t.rightExport&&t.rightExport.open?n.jsx(DM,{style:{marginRight:"8px"},onClick:()=>(()=>{const e=t.rightExport?.fileName,n=t.rightExport?.headres,a=i.selectedRows;if(a&&a.length&&n&&n.length){let t="";const r=n.map(e=>e.title);t+=r.join(",")+"\n",a.forEach(e=>{const a=n.map(t=>{const n=void 0!==e[t.key]?e[t.key]:"";return`"${String(n).replace(/"/g,'""')}"`});t+=a.join(",")+"\n"});const o=new Blob(["\ufeff"+t],{type:"text/csv;charset=utf-8;"}),i=document.createElement("a"),l=URL.createObjectURL(o);i.setAttribute("href",l),i.setAttribute("download",`${e}.csv`),i.style.visibility="hidden",document.body.appendChild(i),i.click(),document.body.removeChild(i)}else ti.warn("请选择导出数据",1.5)})(),children:"导出"}):null,n.jsx(DM,{onClick:()=>u("all"),children:"全部移除"})]}),children:i.selectedRows.length?i.selectedRows.map(e=>{const a=e[c],r=e[t.openSelected?.fileName];return n.jsxs(fb,{gutter:12,children:[n.jsx(bb,{span:11,title:r,children:n.jsx(IM,{ellipsis:!0,children:r})}),n.jsx(bb,{span:9,title:a,children:n.jsx(IM,{ellipsis:!0,children:a})}),n.jsx(bb,{span:4,children:n.jsx(DM,{onClick:()=>u("odd",e),children:"移除"})})]},a)}):n.jsx(TM,{outerHeight:200})})}):null]})}),t.rightSlot?n.jsx(bb,{...t.rightSlot.colProps,children:t.rightSlot.jsx}):null]}),n.jsx(fb,{className:"from-table-modal-foot",justify:"center",children:n.jsx(bb,{children:n.jsxs(bk,{size:20,children:[t.onCancel?n.jsx(_d,{onClick:()=>t.onCancel&&t.onCancel(),children:"关闭"}):null,t.onConfirm?n.jsx(_d,{type:"primary",loading:i.saveLoading,onClick:()=>{let e=o.current?.getSelectRowsArray()||[],n=[];const a=o.current?.getStaticDataList()||[];t.onConfirm&&(o.current&&(n=o.current.getSelectIds()),l({saveLoading:!0}),t.onConfirm(e,n,a).then(e=>{l({saveLoading:!1}),e&&setTimeout(()=>{t.onCancel&&t.onCancel()},100)}).catch(e=>{l({saveLoading:!1}),ti.warn(e,1.5)}))},children:"确定"}):null]})})})]});var f});var MM=e.createContext({}),zM={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"};const jM=Math.round;function AM(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],a=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)a[e]=t(a[e]||0,n[e]||"",e);return n[3]?a[3]=n[3].includes("%")?a[3]/100:a[3]:a[3]=1,a}const LM=(e,t,n)=>0===n?e:e/100;function FM(e,t){const n=t||255;return e>n?n:e<0?0:e}class _M{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(e)if("string"==typeof e){const n=e.trim();function a(e){return n.startsWith(e)}if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(a("rgb"))this.fromRgbString(n);else if(a("hsl"))this.fromHslString(n);else if(a("hsv")||a("hsb"))this.fromHsvString(n);else{const r=zM[n.toLowerCase()];r&&this.fromHexString(parseInt(r,36).toString(16).padStart(6,"0"))}}else if(e instanceof _M)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=FM(e.r),this.g=FM(e.g),this.b=FM(e.b),this.a="number"==typeof e.a?FM(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:jM(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let a=this.getLightness()-e/100;return a<0&&(a=0),this._c({h:t,s:n,l:a,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let a=this.getLightness()+e/100;return a>1&&(a=1),this._c({h:t,s:n,l:a,a:this.a})}mix(e,t=50){const n=this._c(e),a=t/100,r=e=>(n[e]-this[e])*a+this[e],o={r:jM(r("r")),g:jM(r("g")),b:jM(r("b")),a:jM(100*r("a"))/100};return this._c(o)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),a=e=>jM((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:a("r"),g:a("g"),b:a("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const a=(this.b||0).toString(16);if(e+=2===a.length?a:"0"+a,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=jM(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=jM(100*this.getSaturation()),n=jM(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const a=this.clone();return a[e]=FM(t,n),a}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:a}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof a?a:1,t<=0){const e=jM(255*n);this.r=e,this.g=e,this.b=e}let r=0,o=0,i=0;const l=e/60,c=(1-Math.abs(2*n-1))*t,s=c*(1-Math.abs(l%2-1));l>=0&&l<1?(r=c,o=s):l>=1&&l<2?(r=s,o=c):l>=2&&l<3?(o=c,i=s):l>=3&&l<4?(o=s,i=c):l>=4&&l<5?(r=s,i=c):l>=5&&l<6&&(r=c,i=s);const u=n-c/2;this.r=jM(255*(r+u)),this.g=jM(255*(o+u)),this.b=jM(255*(i+u))}fromHsv({h:e,s:t,v:n,a:a}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof a?a:1;const r=jM(255*n);if(this.r=r,this.g=r,this.b=r,t<=0)return;const o=e/60,i=Math.floor(o),l=o-i,c=jM(n*(1-t)*255),s=jM(n*(1-t*l)*255),u=jM(n*(1-t*(1-l))*255);switch(i){case 0:this.g=u,this.b=c;break;case 1:this.r=s,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=s;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=s}}fromHsvString(e){const t=AM(e,LM);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=AM(e,LM);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=AM(e,(e,t)=>t.includes("%")?jM(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const VM=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function KM(e,t,n){let a;return a=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t,a<0?a+=360:a>=360&&(a-=360),a}function HM(e,t,n){if(0===e.h&&0===e.s)return e.s;let a;return a=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t,a>1&&(a=1),n&&5===t&&a>.1&&(a=.1),a<.06&&(a=.06),Math.round(100*a)/100}function BM(e,t,n){let a;return a=n?e.v+.05*t:e.v-.15*t,a=Math.max(0,Math.min(1,a)),Math.round(100*a)/100}const $M=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];$M.primary=$M[5];const UM="data-rc-order",WM="data-rc-priority",YM=new Map;function qM({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function GM(e){if(e.attachTo)return e.attachTo;return document.querySelector("head")||document.body}function XM(e){return Array.from((YM.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function ZM(e,t={}){if("undefined"==typeof window||!window.document||!window.document.createElement)return null;const{csp:n,prepend:a,priority:r=0}=t,o=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(a),i="prependQueue"===o,l=document.createElement("style");l.setAttribute(UM,o),i&&r&&l.setAttribute(WM,`${r}`),n?.nonce&&(l.nonce=n?.nonce),l.innerHTML=e;const c=GM(t),{firstChild:s}=c;if(a){if(i){const e=(t.styles||XM(c)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(UM)))return!1;const t=Number(e.getAttribute(WM)||0);return r>=t});if(e.length)return c.insertBefore(l,e[e.length-1].nextSibling),l}c.insertBefore(l,s)}else c.appendChild(l);return l}function QM(e,t,n={}){const a=GM(n),r=XM(a),o={...n,styles:r};!function(e,t){const n=YM.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){const n=ZM("",t),{parentNode:a}=n;YM.set(e,a),e.removeChild(n)}}(a,o);const i=function(e,t={}){let{styles:n}=t;return n||=XM(GM(t)),n.find(n=>n.getAttribute(qM(t))===e)}(t,o);if(i)return o.csp?.nonce&&i.nonce!==o.csp?.nonce&&(i.nonce=o.csp?.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const l=ZM(e,o);return l.setAttribute(qM(o),t),l}function JM(e){return e?.getRootNode?.()}function ez(e){return function(e){return JM(e)instanceof ShadowRoot}(e)?JM(e):null}let tz={};const nz=[];function az(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){const e=nz.reduce((e,t)=>t(e??"","warning"),t);e&&console.error(`Warning: ${e}`)}}function rz(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){const e=nz.reduce((e,t)=>t(e??"","note"),t);e&&console.warn(`Note: ${e}`)}}function oz(e,t,n){t||tz[n]||(e(!1,n),tz[n]=!0)}function iz(e,t){oz(az,e,t)}function lz(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function cz(e={}){return Object.keys(e).reduce((t,n)=>{const a=e[n];if("class"===n)t.className=a,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(e,t)=>t.toUpperCase()))]=a;var r;return t},{})}function sz(e,t,n){return n?f.default.createElement(e.tag,{key:t,...cz(e.attrs),...n},(e.children||[]).map((n,a)=>sz(n,`${t}-${e.tag}-${a}`))):f.default.createElement(e.tag,{key:t,...cz(e.attrs)},(e.children||[]).map((n,a)=>sz(n,`${t}-${e.tag}-${a}`)))}function uz(e){return function(e,t={}){const n=[],a=new _M(e),r=a.toHsv();for(let e=5;e>0;e-=1){const t=new _M({h:KM(r,e,!0),s:HM(r,e,!0),v:BM(r,e,!0)});n.push(t)}n.push(a);for(let e=1;e<=4;e+=1){const t=new _M({h:KM(r,e),s:HM(r,e),v:BM(r,e)});n.push(t)}return"dark"===t.theme?VM.map(({index:e,amount:a})=>new _M(t.backgroundColor||"#141414").mix(n[e],a).toHexString()):n.map(e=>e.toHexString())}(e)[0]}function dz(e){return e?Array.isArray(e)?e:[e]:[]}iz.preMessage=e=>{nz.push(e)},iz.resetWarned=function(){tz={}},iz.noteOnce=function(e,t){oz(rz,e,t)};const pz={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};const fz=t=>{const{icon:n,className:a,onClick:r,style:o,primaryColor:i,secondaryColor:l,...c}=t,s=p.useRef();let u=pz;if(i&&(u={primaryColor:i,secondaryColor:l||uz(i)}),(t=>{const{csp:n,prefixCls:a,layer:r}=e.useContext(MM);let o="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";a&&(o=o.replace(/anticon/g,a)),r&&(o=`@layer ${r} {\n${o}\n}`),e.useEffect(()=>{const e=ez(t.current);QM(o,"@ant-design-icons",{prepend:!r,csp:n,attachTo:e})},[])})(s),function(e,t){iz(e,`[@ant-design/icons] ${t}`)}(lz(n),`icon should be icon definiton, but got ${n}`),!lz(n))return null;let d=n;return d&&"function"==typeof d.icon&&(d={...d,icon:d.icon(u.primaryColor,u.secondaryColor)}),sz(d.icon,`svg-${d.name}`,{className:a,onClick:r,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...c,ref:s})};fz.displayName="IconReact",fz.getTwoToneColors=function(){return{...pz}},fz.setTwoToneColors=function({primaryColor:e,secondaryColor:t}){pz.primaryColor=e,pz.secondaryColor=t||uz(e),pz.calculated=!!t};var mz=fz;function hz(e){const[t,n]=dz(e);return mz.setTwoToneColors({primaryColor:t,secondaryColor:n})}function gz(){return gz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},gz.apply(this,arguments)}hz($M.primary);const bz=p.forwardRef((e,t)=>{const{className:n,icon:a,spin:r,rotate:o,tabIndex:i,onClick:l,twoToneColor:c,...s}=e,{prefixCls:u="anticon",rootClassName:d}=p.useContext(MM),f=H(d,u,{[`${u}-${a.name}`]:!!a.name,[`${u}-spin`]:!!r||"loading"===a.name},n);let m=i;void 0===m&&l&&(m=-1);const h=o?{msTransform:`rotate(${o}deg)`,transform:`rotate(${o}deg)`}:void 0,[g,b]=dz(c);return p.createElement("span",gz({role:"img","aria-label":a.name},s,{ref:t,tabIndex:m,onClick:l,className:f}),p.createElement(mz,{icon:a,primaryColor:g,secondaryColor:b,style:h}))});bz.displayName="AntdIcon",bz.getTwoToneColor=function(){const e=mz.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},bz.setTwoToneColor=hz;var vz=bz;function xz(){return xz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},xz.apply(this,arguments)}const yz=(e,t)=>p.createElement(vz,xz({},e,{ref:t,icon:ni})),wz=p.forwardRef(yz);
|
|
28
28
|
/** */"production"!==process.env.NODE_ENV&&(wz.displayName="CloseOutlined");var kz=wz,Cz={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"};function Ez(){return Ez=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Ez.apply(this,arguments)}const Sz=(e,t)=>p.createElement(vz,Ez({},e,{ref:t,icon:Cz})),Nz=p.forwardRef(Sz);
|
|
29
29
|
/** */"production"!==process.env.NODE_ENV&&(Nz.displayName="LeftCircleFilled");var Oz=Nz,Pz={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"};function Tz(){return Tz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Tz.apply(this,arguments)}const Dz=(e,t)=>p.createElement(vz,Tz({},e,{ref:t,icon:Pz})),Iz=p.forwardRef(Dz);
|
|
30
30
|
/** */"production"!==process.env.NODE_ENV&&(Iz.displayName="RightCircleFilled");var Rz=Iz;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 Mz=e.forwardRef((t,a)=>{const r=e.useRef(),[o,i]=N.useSetState({loading:!1,saveLoading:!1,disabled:!1}),l=async()=>{let e=await(r.current?.formSubmit());if(e){if(e.endTime&&e.startTime&&x.default(e.endTime).isBefore(e.startTime))return void ti.warn("生效日期不能大于失效日期",1.5);i({saveLoading:!0});try{let n={};if(e={...e,...t.submitExtraParameters},t.switchTransform)for(let n=0;n<t.switchTransform.length;n++)e[t.switchTransform[n]]?e[t.switchTransform[n]]="1":e[t.switchTransform[n]]="0";if(t.submitRemoveField)for(let n=0;n<t.submitRemoveField.length;n++)e[t.submitRemoveField[n]]&&delete e[t.submitRemoveField[n]];for(let t in e){const n="YYYY-MM-DD HH:mm:ss";x.default(e[t],n,!0).isValid()&&(e[t]=x.default(e[t]).format(n))}if(t.manualParameterChange&&(e=t.manualParameterChange(e)),t.manualVerification&&!t.manualVerification(e))return console.warn("手动验证表单不通过"),void i({saveLoading:!1});if(e=m.default.omitBy(e,m.default.isNil),t.submitApi&&e){if(t.id?(e.id=t.id,n=await t.submitApi(e,"put")):n=await t.submitApi(e,"post"),1===n.code){if(t.onConfirm){if(!1===t.onConfirm(n))return}ti.success("操作成功",1.5),t.onCancel&&t.onCancel()}i({saveLoading:!1})}else t.onConfirm&&e&&t.onConfirm(e)}catch(e){i({saveLoading:!1})}}};return e.useEffect(()=>{!1===t.visible&&i({saveLoading:!1})},[t.visible,i]),e.useEffect(()=>{i({disabled:t.disable})},[t.disable,i]),e.useImperativeHandle(a,()=>({setFormLoading:e=>{i({loading:e})},setFormSaveLoading:e=>{i({saveLoading:e})},setFormFields:e=>{r.current&&r.current.setFormFields(e)},getFormValues:e=>r.current?.getFormValues(e),setFormValues:e=>{r.current&&r.current.setFormValues(e)},excludeFormSubmitValues:async e=>{if(r.current){const n=t.formList.filter(t=>!e?.includes(t.name));return await(r.current?.formSubmit(n.map(e=>e.name)))}return{}},getFormSubmitValues:async e=>r.current?await(r.current?.formSubmit(e)):{}})),n.jsx(oP,{className:`form-modal ${t.className}`,width:t.width?t.width:600,visible:t.visible,title:t.title||"对话框",onCancel:t.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null,children:n.jsxs(Wy,{spinning:o.loading,children:[n.jsxs("div",{className:"modal-form-height",children:[t.topRender?t.topRender:null,n.jsx(EP,{ref:r,formConfig:{labelCol:{span:24},...t.formConfig},rowGridConfig:{gutter:[20,0]},colGirdConfig:t.colGirdConfig||{span:12},list:t.formList}),t.children&&t.children]}),(()=>{const a=(()=>{const e=[n.jsx(_d,{onClick:()=>t.onCancel&&t.onCancel(),children:"关闭"},-1)];return o.disabled||e.push(n.jsx(_d,{type:"primary",loading:o.saveLoading,onClick:l,children:"提交"},-2)),e})(),r=e=>n.jsx(fb,{className:"form-modal-foot",justify:"center",children:n.jsx(bb,{children:n.jsx(bk,{size:20,children:e})})});if(t.footer)return t.footer;if(t.footBtnList){const{model:n,data:o}=t.footBtnList,i=o.map((t,n)=>{const{children:a,...r}=t;return e.createElement(_d,{...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 zz="button-group";var jz=e.forwardRef((t,a)=>{const[r,o]=N.useSetState({type:"checkbox",deleteOpen:!1,data:[]}),i=e=>{let n=zz;return t.buttonClassName&&(n=`${n} ${t.buttonClassName}`),t.size&&(n=`${n} ${zz}-${t.size}`),e.selected&&(n=`${n} ${zz}-primary`),n};return e.useEffect(()=>{if(t.checkType&&o({type:t.checkType}),t.deleteOpen&&o({deleteOpen:t.deleteOpen}),t.data){const e=t.data.map(e=>(void 0===e.selected&&(e.selected=!1),e));o({data:e})}},[t,o]),e.useImperativeHandle(a,()=>({getButtonGroupSelected:()=>r.data.filter(e=>e.selected)})),n.jsx(fb,{className:t.className,gutter:[10,10],children:r.data.map((e,a)=>n.jsx(bb,{children:n.jsxs("div",{className:i(e),onClick:()=>((e,n)=>{let a=[];t.deleteOpen||(r.data&&("checkbox"===r.type&&(r.data[n].selected=!e.selected,a=r.data),"radio"===r.type&&(a=r.data.map((t,a)=>{let r=!1;return n===a&&(r=!e.selected),{...t,selected:r}}))),t.onChange&&t.onChange(a),o({data:a}))})(e,a),children:[e.name,r.deleteOpen?n.jsx(kz,{onClick:()=>(e=>{if(r.data){const n=r.data.filter((t,n)=>e!==n);t.onChange&&t.onChange(n),o({data:n})}})(a)}):null]})},a))})});exports.Affix=e=>{let t={...e},a="";return t.targetId&&(a=t.targetId,delete t.targetId),n.jsx(rl,{target:()=>document.getElementById(a||"router-render")||window,...t})},exports.ButtonGroup=jz,exports.Dialog=oP,exports.Empty=TM,exports.GaoDeMap=iP,exports.GenerateForm=EP,exports.GenerateTable=PM,exports.IconSelectionModal=e=>{const[t,a]=N.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(oP,{className:"icon-selected-modal",width:e.width?e.width:590,visible:e.visible,title:e.title?e.title:"图标选择",onCancel:e.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null,children:[n.jsx(fb,{gutter:[10,10],children:t.iconModal.list.map((e,o)=>n.jsx(bb,{children:n.jsx("div",{className:`avatar-selected ${o===t.iconModal.selected?"avatar-selected-bg":null}`,onClick:()=>{a(e=>(e.iconModal.selected=o,e))},children:n.jsx("i",{className:`iconfont ${e}`,title:e,style:r})})},o))}),n.jsx(fb,{className:"icon-selected-foot",justify:"center",children:n.jsx(bb,{children:n.jsxs(bk,{size:20,children:[n.jsx(_d,{onClick:e.onCancel,children:"关闭"}),n.jsx(_d,{type:"primary",onClick:()=>{const n=t.iconModal.list[t.iconModal.selected];e.onConfirm&&e.onConfirm(n)},children:"确定"})]})})})]})},exports.LayoutFormModal=Mz,exports.LayoutTableModal=RM,exports.QuicklyProcessForms=t=>{const a=e.useRef(),r=e.useRef({page:1,pages:1,size:10}),[o,i]=N.useSetState({id:void 0,saveLoading:!1,data:[]}),l={fontSize:24},c=e.useCallback((e,t)=>e.map(e=>{if(t)for(let n of t)e[n]&&(e[n]=x.default(e[n]));return e}),[]),s=e.useCallback(async e=>{if(t.apiMethod)try{let n="";const a=await t.apiMethod(r.current);console.log("getList useCallback",a,"queryPagination.current",r.current);const o=a.data.content;r.current.pages=a.data.pages,"up"===e&&(n=o[o.length-1].id),"down"===e&&(n=o[0].id),i({id:n||t.id,data:o})}catch(e){}},[t,i]),u=e.useMemo(()=>{let e=0;for(let[t,n]of o.data.entries())if(n.id===o.id){e=t;break}return e},[o.data,o.id]),d=e.useCallback(async()=>{if(t.apiMethod){if(1===r.current.page&&0===u)return ti.destroy(),void ti.warn("已经是第一页啦~",1.5);if(u-1<0)return r.current.page=r.current.page-1,s("up"),void(t.onChange&&t.onChange(o.data[u],r.current))}else if(0===u)return ti.destroy(),void ti.warn("已经是第一个啦~",1.5);if(a.current){const e=await a.current.formSubmit();if(e){e.id=o.data[u].id;try{const n=o.data[u-1];console.log("cutIndexObj",n),t.submitApi(e,"put"),t.onChange&&t.onChange(n,r.current),i(t=>(t.id=n.id,t.data[u]={...t.data[u],...e},t))}catch(e){}}}},[u,s,t,i,o.data]),p=e.useCallback(async()=>{if(t.apiMethod){if(r.current.page===r.current.pages&&u===o.data.length-1)return ti.destroy(),void ti.warn("已经是最后一页啦~",1.5);if(u+1>=o.data.length)return r.current.page=r.current.page+1,s("down"),void(t.onChange&&t.onChange(o.data[u],r.current))}else if(0===o.data.length||u===o.data.length-1)return ti.destroy(),void ti.warn("已经是最后一个啦~",1.5);if(a.current){const e=await a.current.formSubmit();if(e){e.id=o.data[u].id;try{const n=o.data[u+1];console.log("cutIndexObj",n),t.submitApi(e,"put"),t.onChange&&t.onChange(n,r.current),i(t=>(t.id=n.id,t.data[u]={...t.data[u],...e},t))}catch(e){}}}},[u,s,t,i,o.data]),f=e.useCallback(async e=>{if("PageUp"===e.key&&(d(),e.preventDefault()),"PageDown"===e.key&&(p(),e.preventDefault()),"Enter"===e.key&&a.current){const e=await a.current.formSubmit();e.id=o.data[u].id;try{t.submitApi(e,"put"),ti.success("保存成功",1.5)}catch(e){}}},[u,p,d,t,o.data]),m=e.useCallback(async()=>{if(t.methodParams){let e=["page","pages","size"],n={},a=await t.methodParams;for(let t in r.current)for(let a of e)t===a&&(n[a]=r.current[t]);n={...n,...a},n.page=a.page?a.page.current:1,r.current=n}},[t.methodParams]);return e.useEffect(()=>{t.visible&&setTimeout(()=>{a.current&&a.current.setFormValues(o.data[u])},100)},[u,t.visible,o.data]),e.useEffect(()=>{t.visible&&(t.apiMethod?m().then(()=>{s()}):i({id:t.id,data:c(t.data,t.transformTime)}))},[m,s,t.apiMethod,t.data,t.id,t.transformTime,t.visible,i,c]),e.useEffect(()=>(t.visible?document.addEventListener("keydown",f):document.removeEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}),[f,t.visible]),n.jsx(oP,{className:"quickly-form-modal",width:t.width?t.width:960,visible:t.visible,title:t.title||"快速编辑信息",onCancel:()=>{t.onCancel&&t.onCancel(r.current)},maskClosable:!1,destroyOnClose:!0,footer:null,children:n.jsxs(fb,{className:"modal-form-height",gutter:16,align:"middle",wrap:!1,children:[n.jsx(bb,{flex:"60px",children:n.jsx(fb,{justify:"center",children:n.jsx(bb,{children:n.jsx(Oz,{className:"circle-filled",style:l,onClick:d})})})}),n.jsx(bb,{flex:"auto",children:n.jsx(EP,{ref:a,formConfig:{labelCol:{span:24}},rowGridConfig:{gutter:[20,0]},colGirdConfig:{span:6},list:t.formList})}),n.jsx(bb,{flex:"60px",children:n.jsx(fb,{justify:"center",children:n.jsx(bb,{children:n.jsx(Rz,{className:"circle-filled",style:l,onClick:p})})})})]})})},exports.TreeNode=sP,exports.Upload=lP,exports.VirtualList=t=>{const{vl:a,columns:r,...o}=t,i=e.useRef(a);var l,c;l=a,c=i.current,m.default.isEqualWith(l,c,(e,t)=>{if(m.default.isFunction(e)&&m.default.isFunction(t))return e.toString()===t.toString()})&&(i.current=a);const s=e.useMemo(()=>{if(i.current)return sT(i.current)},[]),[u,d]=e.useState(r||[]);e.useEffect(()=>{d(r||[])},[r]);const p=e.useCallback(e=>(t,{size:n})=>{const a=[...u];a[e]={...a[e],width:n.width},d(a)},[u]),f=e.useMemo(()=>u.map((e,t)=>({...e,onHeaderCell:e=>({width:e.width,onResize:p(t)})})),[u,p]),h=e.useMemo(()=>({header:{cell:dD},...s||{}}),[s]);return n.jsx(yP,{children:n.jsx(jE,{components:h,rowKey:"id",pagination:!1,scroll:{y:a.height,x:"100%"},columns:f,...o})})},exports.hooks=N;
|