hlyc-web-pack 3.6.76 → 3.6.78

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.
@@ -71,6 +71,8 @@ export interface GenerateTableProp {
71
71
  /** 拖拽范围数据 */
72
72
  range: AnyObjectType[]) => Promise<boolean> | void;
73
73
  };
74
+ /**隐藏排序列 */
75
+ hidSortColumn?: boolean;
74
76
  /** 行选中回调 */
75
77
  onSelect?: (selectedRows: AnyObjectType[], selectedRowKeys: any[]) => void;
76
78
  /** 控制分页格式 */
package/lib/index.js CHANGED
@@ -40,7 +40,7 @@
40
40
  *
41
41
  * This source code is licensed under the MIT license found in the
42
42
  * LICENSE file in the root directory of this source tree.
43
- */function YD(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case PD:switch(t=t.type){case zD:case AD:case TD:case DD:case ID:case _D:return t;default:switch(t=t&&t.$$typeof){case MD:case LD:case KD:case VD:case RD:return t;default:return e}}case jD:return e}}}function $D(t){return YD(t)===AD}var qD={AsyncMode:zD,ConcurrentMode:AD,ContextConsumer:MD,ContextProvider:RD,Element:PD,ForwardRef:LD,Fragment:TD,Lazy:KD,Memo:VD,Portal:jD,Profiler:DD,StrictMode:ID,Suspense:_D,isAsyncMode:function(t){return $D(t)||YD(t)===zD},isConcurrentMode:$D,isContextConsumer:function(t){return YD(t)===MD},isContextProvider:function(t){return YD(t)===RD},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===PD},isForwardRef:function(t){return YD(t)===LD},isFragment:function(t){return YD(t)===TD},isLazy:function(t){return YD(t)===KD},isMemo:function(t){return YD(t)===VD},isPortal:function(t){return YD(t)===jD},isProfiler:function(t){return YD(t)===DD},isStrictMode:function(t){return YD(t)===ID},isSuspense:function(t){return YD(t)===_D},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===TD||t===AD||t===DD||t===ID||t===_D||t===FD||"object"==typeof t&&null!==t&&(t.$$typeof===KD||t.$$typeof===VD||t.$$typeof===RD||t.$$typeof===MD||t.$$typeof===LD||t.$$typeof===BD||t.$$typeof===UD||t.$$typeof===WD||t.$$typeof===HD)},typeOf:YD},GD=F((function(t,e){"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,y=t?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:var f=t.type;switch(f){case s:case u:case a:case i:case o:case p:return f;default:var g=f&&f.$$typeof;switch(g){case c:case d:case h:case m:case l:return g;default:return e}}case r:return e}}}var w=s,k=u,C=c,E=l,O=n,S=d,N=a,P=h,j=m,T=r,I=i,D=o,R=p,M=!1;function z(t){return x(t)===u}e.AsyncMode=w,e.ConcurrentMode=k,e.ContextConsumer=C,e.ContextProvider=E,e.Element=O,e.ForwardRef=S,e.Fragment=N,e.Lazy=P,e.Memo=j,e.Portal=T,e.Profiler=I,e.StrictMode=D,e.Suspense=R,e.isAsyncMode=function(t){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(t)||x(t)===s},e.isConcurrentMode=z,e.isContextConsumer=function(t){return x(t)===c},e.isContextProvider=function(t){return x(t)===l},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===n},e.isForwardRef=function(t){return x(t)===d},e.isFragment=function(t){return x(t)===a},e.isLazy=function(t){return x(t)===h},e.isMemo=function(t){return x(t)===m},e.isPortal=function(t){return x(t)===r},e.isProfiler=function(t){return x(t)===i},e.isStrictMode=function(t){return x(t)===o},e.isSuspense=function(t){return x(t)===p},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===u||t===i||t===o||t===p||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===m||t.$$typeof===l||t.$$typeof===c||t.$$typeof===d||t.$$typeof===b||t.$$typeof===v||t.$$typeof===y||t.$$typeof===g)},e.typeOf=x}()})),XD=F((function(t){"production"===process.env.NODE_ENV?t.exports=qD:t.exports=GD})),ZD=Object.getOwnPropertySymbols,JD=Object.prototype.hasOwnProperty,QD=Object.prototype.propertyIsEnumerable;function tR(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var eR=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,r,a=tR(t),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))JD.call(n,i)&&(a[i]=n[i]);if(ZD){r=ZD(n);for(var l=0;l<r.length;l++)QD.call(n,r[l])&&(a[r[l]]=n[r[l]])}}return a},nR="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",rR=function(){};if("production"!==process.env.NODE_ENV){var aR=nR,oR={},iR=Function.call.bind(Object.prototype.hasOwnProperty);rR=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function lR(t,e,n,r,a){if("production"!==process.env.NODE_ENV)for(var o in t)if(iR(t,o)){var i;try{if("function"!=typeof t[o]){var l=Error((r||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[o]+"`.");throw l.name="Invariant Violation",l}i=t[o](e,o,r,n,null,aR)}catch(t){i=t}if(!i||i instanceof Error||rR((r||"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 oR)){oR[i.message]=!0;var c=a?a():"";rR("Failed "+n+" type: "+i.message+(null!=c?c:""))}}}lR.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(oR={})};var cR=lR,sR=Function.call.bind(Object.prototype.hasOwnProperty),uR=function(){};function dR(){return null}"production"!==process.env.NODE_ENV&&(uR=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}});var pR=function(t,e){var n="function"==typeof Symbol&&Symbol.iterator;var r="<<anonymous>>",a={array:c("array"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:l(dR),arrayOf:function(t){return l((function(e,n,r,a,o){if("function"!=typeof t)return new i("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var l=e[n];if(!Array.isArray(l))return new i("Invalid "+a+" `"+o+"` of type `"+u(l)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<l.length;c++){var s=t(l,c,r,a,o+"["+c+"]",nR);if(s instanceof Error)return s}return null}))},element:l((function(e,n,r,a,o){var l=e[n];return t(l)?null:new i("Invalid "+a+" `"+o+"` of type `"+u(l)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:l((function(t,e,n,r,a){var o=t[e];return XD.isValidElementType(o)?null:new i("Invalid "+r+" `"+a+"` of type `"+u(o)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return l((function(e,n,a,o,l){if(!(e[n]instanceof t)){var c=t.name||r;return new i("Invalid "+o+" `"+l+"` of type `"+(((s=e[n]).constructor&&s.constructor.name?s.constructor.name:r)+"` supplied to `")+a+"`, expected instance of `"+c+"`.")}var s;return null}))},node:l((function(t,e,n,r,a){return s(t[e])?null:new i("Invalid "+r+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return l((function(e,n,r,a,o){if("function"!=typeof t)return new i("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+a+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var s in l)if(sR(l,s)){var d=t(l,s,r,a,o+"."+s,nR);if(d instanceof Error)return d}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&uR(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."),dR;function e(e,n,r,a,l){for(var c=e[n],s=0;s<t.length;s++)if(o(c,t[s]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===d(e)?String(e):e}));return new i("Invalid "+a+" `"+l+"` of value `"+String(c)+"` supplied to `"+r+"`, expected one of "+u+".")}return l(e)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&uR("Invalid argument supplied to oneOfType, expected an instance of array."),dR;for(var e=0;e<t.length;e++){var n=t[e];if("function"!=typeof n)return uR("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+p(n)+" at index "+e+"."),dR}return l((function(e,n,r,a,o){for(var l=0;l<t.length;l++)if(null==(0,t[l])(e,n,r,a,o,nR))return null;return new i("Invalid "+a+" `"+o+"` supplied to `"+r+"`.")}))},shape:function(t){return l((function(e,n,r,a,o){var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+a+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var s in t){var d=t[s];if(d){var p=d(l,s,r,a,o+"."+s,nR);if(p)return p}}return null}))},exact:function(t){return l((function(e,n,r,a,o){var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+a+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var s=eR({},e[n],t);for(var d in s){var p=t[d];if(!p)return new i("Invalid "+a+" `"+o+"` key `"+d+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var f=p(l,d,r,a,o+"."+d,nR);if(f)return f}return null}))}};function o(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function i(t){this.message=t,this.stack=""}function l(t){if("production"!==process.env.NODE_ENV)var n={},a=0;function o(o,l,c,s,u,d,p){if(s=s||r,d=d||c,p!==nR){if(e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var m=s+":"+c;!n[m]&&a<3&&(uR("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,a++)}}return null==l[c]?o?null===l[c]?new i("The "+u+" `"+d+"` is marked as required in `"+s+"`, but its value is `null`."):new i("The "+u+" `"+d+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:t(l,c,s,u,d)}var l=o.bind(null,!1);return l.isRequired=o.bind(null,!0),l}function c(t){return l((function(e,n,r,a,o,l){var c=e[n];return u(c)!==t?new i("Invalid "+a+" `"+o+"` of type `"+d(c)+"` supplied to `"+r+"`, expected `"+t+"`."):null}))}function s(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(s);if(null===e||t(e))return!0;var r=function(t){var e=t&&(n&&t[n]||t["@@iterator"]);if("function"==typeof e)return e}(e);if(!r)return!1;var a,o=r.call(e);if(r!==e.entries){for(;!(a=o.next()).done;)if(!s(a.value))return!1}else for(;!(a=o.next()).done;){var i=a.value;if(i&&!s(i[1]))return!1}return!0;default:return!1}}function u(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function d(t){if(null==t)return""+t;var e=u(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function p(t){var e=d(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return i.prototype=Error.prototype,a.checkPropTypes=cR,a.resetWarningCache=cR.resetWarningCache,a.PropTypes=a,a};function fR(){}function mR(){}mR.resetWarningCache=fR;var hR=F((function(t){if("production"!==process.env.NODE_ENV){var e=XD;t.exports=pR(e.isElement,!0)}else t.exports=function(){function t(t,e,n,r,a,o){if(o!==nR){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:mR,resetWarningCache:fR};return n.PropTypes=n,n}()})),gR=F((function(t,e){e.__esModule=!0,e.resizableProps=void 0;var n=function(t){return t&&t.__esModule?t:{default:t}}(hR);var r={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:n.default.number.isRequired,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:n.default.number.isRequired};e.resizableProps=r})),bR=F((function(t,e){e.__esModule=!0,e.default=void 0;var n=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var l=o?Object.getOwnPropertyDescriptor(t,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=t[i]}r.default=t,n&&n.set(t,r);return r}(d.default),r=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(t){var e,a;function i(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).handleRefs={},e.lastHandleRect=null,e.slack=null,e}a=t,(e=i).prototype=Object.create(a.prototype),e.prototype.constructor=e,s(e,a);var c=i.prototype;return c.componentWillUnmount=function(){this.resetData()},c.resetData=function(){this.lastHandleRect=this.slack=null},c.runConstraints=function(t,e){var n=this.props,r=n.minConstraints,a=n.maxConstraints,o=n.lockAspectRatio;if(!r&&!a&&!o)return[t,e];if(o){var i=this.props.width/this.props.height,l=t-this.props.width,c=e-this.props.height;Math.abs(l)>Math.abs(c*i)?e=t/i:t=e*i}var s=t,u=e,d=this.slack||[0,0],p=d[0],f=d[1];return t+=p,e+=f,r&&(t=Math.max(r[0],t),e=Math.max(r[1],e)),a&&(t=Math.min(a[0],t),e=Math.min(a[1],e)),this.slack=[p+(s-t),f+(u-e)],[t,e]},c.resizeHandler=function(t,e){var n=this;return function(r,a){var o=a.node,i=a.deltaX,l=a.deltaY;"onResizeStart"===t&&n.resetData();var c=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==e&&"s"!==e,s=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==e&&"w"!==e;if(c||s){var u=e[0],d=e[e.length-1],p=o.getBoundingClientRect();if(null!=n.lastHandleRect){if("w"===d)i+=p.left-n.lastHandleRect.left;if("n"===u)l+=p.top-n.lastHandleRect.top}n.lastHandleRect=p,"w"===d&&(i=-i),"n"===u&&(l=-l);var f=n.props.width+(c?i/n.props.transformScale:0),m=n.props.height+(s?l/n.props.transformScale:0),h=n.runConstraints(f,m);f=h[0],m=h[1];var g=f!==n.props.width||m!==n.props.height,b="function"==typeof n.props[t]?n.props[t]:null;b&&!("onResize"===t&&!g)&&(null==r.persist||r.persist(),b(r,{node:o,size:{width:f,height:m},handle:e})),"onResizeStop"===t&&n.resetData()}}},c.renderResizeHandle=function(t,e){var r=this.props.handle;if(!r)return n.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t,ref:e});if("function"==typeof r)return r(t,e);var a=l({ref:e},"string"==typeof r.type?{}:{handleAxis:t});return n.cloneElement(r,a)},c.render=function(){var t=this,e=this.props,a=e.children,i=e.className,c=e.draggableOpts;e.width,e.height,e.handle,e.handleSize,e.lockAspectRatio,e.axis,e.minConstraints,e.maxConstraints,e.onResize,e.onResizeStop,e.onResizeStart;var s=e.resizeHandles;e.transformScale;var u=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(e,r);return(0,SD.cloneElement)(a,l(l({},u),{},{className:(i?i+" ":"")+"react-resizable",children:[].concat(a.props.children,s.map((function(e){var r,a=null!=(r=t.handleRefs[e])?r:t.handleRefs[e]=n.createRef();return n.createElement(h.default.DraggableCore,o({},c,{nodeRef:a,key:"resizableHandle-"+e,onStop:t.resizeHandler("onResizeStop",e),onStart:t.resizeHandler("onResizeStart",e),onDrag:t.resizeHandler("onResize",e)}),t.renderResizeHandle(e,a))})))}))},i}(n.Component);e.default=u,u.propTypes=gR.resizableProps,u.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}})),vR=F((function(t,e){e.__esModule=!0,e.default=void 0;var n=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var i=a?Object.getOwnPropertyDescriptor(t,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=t[o]}r.default=t,n&&n.set(t,r);return r}(d.default),r=i(hR),a=i(bR),o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(t){return t&&t.__esModule?t:{default:t}}function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var m=function(t){var e,r;function i(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).state={width:e.props.width,height:e.props.height,propsWidth:e.props.width,propsHeight:e.props.height},e.onResize=function(t,n){var r=n.size;e.props.onResize?(null==t.persist||t.persist(),e.setState(r,(function(){return e.props.onResize&&e.props.onResize(t,n)}))):e.setState(r)},e}return r=t,(e=i).prototype=Object.create(r.prototype),e.prototype.constructor=e,f(e,r),i.getDerivedStateFromProps=function(t,e){return e.propsWidth!==t.width||e.propsHeight!==t.height?{width:t.width,height:t.height,propsWidth:t.width,propsHeight:t.height}:null},i.prototype.render=function(){var t=this.props,e=t.handle,r=t.handleSize;t.onResize;var i=t.onResizeStart,l=t.onResizeStop,s=t.draggableOpts,d=t.minConstraints,p=t.maxConstraints,f=t.lockAspectRatio,m=t.axis;t.width,t.height;var h=t.resizeHandles,g=t.style,b=t.transformScale,v=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(t,o);return n.createElement(a.default,{axis:m,draggableOpts:s,handle:e,handleSize:r,height:this.state.height,lockAspectRatio:f,maxConstraints:p,minConstraints:d,onResizeStart:i,onResize:this.onResize,onResizeStop:l,resizeHandles:h,transformScale:b,width:this.state.width},n.createElement("div",c({},v,{style:u(u({},g),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},i}(n.Component);e.default=m,m.propTypes=u(u({},gR.resizableProps),{},{children:r.default.element})})),yR=bR.default;vR.default;const xR=t=>{const{onResize:e,width:r,...a}=t;return r?n.jsx(yR,Object.assign({width:r,height:0,handle:n.jsx("span",{className:"react-resizable-handle",onClick:t=>{t.stopPropagation()}},void 0),onResize:e,draggableOpts:{enableUserSelectHack:!1}},{children:n.jsx("th",Object.assign({},a),void 0)}),void 0):n.jsx("th",Object.assign({},a),void 0)};var wR,kR=t.createContext({dragDropManager:void 0});function CR(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];if("production"!==process.env.NODE_ENV&&void 0===e)throw new Error("invariant requires an error message argument");if(!t){var o;if(void 0===e)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;(o=new Error(e.replace(/%s/g,(function(){return r[i++]})))).name="Invariant Violation"}throw o.framesToPop=1,o}}!function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"}(wR||(wR={}));var ER="dnd-core/INIT_COORDS",OR="dnd-core/BEGIN_DRAG",SR="dnd-core/PUBLISH_DRAG_SOURCE",NR="dnd-core/HOVER",PR="dnd-core/DROP",jR="dnd-core/END_DRAG";function TR(t,e){return{type:ER,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function IR(t){return(IR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function DR(t,e,n){return e.split(".").reduce((function(t,e){return t&&t[e]?t[e]:n||null}),t)}function RR(t,e){return t.filter((function(t){return t!==e}))}function MR(t){return"object"===IR(t)}function zR(t,e){var n=new Map,r=function(t){n.set(t,n.has(t)?n.get(t)+1:1)};t.forEach(r),e.forEach(r);var a=[];return n.forEach((function(t,e){1===t&&a.push(e)})),a}var AR={type:ER,payload:{clientOffset:null,sourceClientOffset:null}};function LR(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,a=void 0===r||r,o=n.clientOffset,i=n.getSourceClientOffset,l=t.getMonitor(),c=t.getRegistry();t.dispatch(TR(o)),_R(e,l,c);var s=KR(e,l);if(null!==s){var u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");FR(i),u=i(s)}t.dispatch(TR(o,u));var d=c.getSource(s),p=d.beginDrag(l,s);if(null!=p){VR(p),c.pinSource(s);var f=c.getSourceType(s);return{type:OR,payload:{itemType:f,item:p,sourceId:s,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!a}}}}else t.dispatch(AR)}}function _R(t,e,n){CR(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach((function(t){CR(n.getSource(t),"Expected sourceIds to be registered.")}))}function FR(t){CR("function"==typeof t,"When clientOffset is provided, getSourceClientOffset must be a function.")}function VR(t){CR(MR(t),"Item must be an object.")}function KR(t,e){for(var n=null,r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function HR(t){return function(){if(t.getMonitor().isDragging())return{type:SR}}}function BR(t,e){return null===e?null===t:Array.isArray(t)?t.some((function(t){return t===e})):t===e}function UR(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.clientOffset;WR(e);var a=e.slice(0),o=t.getMonitor(),i=t.getRegistry();YR(a,o,i);var l=o.getItemType();return $R(a,i,l),qR(a,o,i),{type:NR,payload:{targetIds:a,clientOffset:r||null}}}}function WR(t){CR(Array.isArray(t),"Expected targetIds to be an array.")}function YR(t,e,n){CR(e.isDragging(),"Cannot call hover while not dragging."),CR(!e.didDrop(),"Cannot call hover after drop.");for(var r=0;r<t.length;r++){var a=t[r];CR(t.lastIndexOf(a)===r,"Expected targetIds to be unique in the passed array."),CR(n.getTarget(a),"Expected targetIds to be registered.")}}function $R(t,e,n){for(var r=t.length-1;r>=0;r--){var a=t[r];BR(e.getTargetType(a),n)||t.splice(r,1)}}function qR(t,e,n){t.forEach((function(t){n.getTarget(t).hover(e,t)}))}function GR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function XR(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?GR(Object(n),!0).forEach((function(e){ZR(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):GR(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ZR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function JR(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getMonitor(),r=t.getRegistry();QR(n);var a=eM(n);a.forEach((function(a,o){var i=tM(a,o,r,n),l={type:PR,payload:{dropResult:XR(XR({},e),i)}};t.dispatch(l)}))}}function QR(t){CR(t.isDragging(),"Cannot call drop while not dragging."),CR(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function tM(t,e,n,r){var a=n.getTarget(t),o=a?a.drop(r,t):void 0;return function(t){CR(void 0===t||MR(t),"Drop result must either be an object or undefined.")}(o),void 0===o&&(o=0===e?{}:r.getDropResult()),o}function eM(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function nM(t){return function(){var e=t.getMonitor(),n=t.getRegistry();!function(t){CR(t.isDragging(),"Cannot call endDrag while not dragging.")}(e);var r=e.getSourceId();null!=r&&(n.getSource(r,!0).endDrag(e,r),n.unpinSource());return{type:jR}}}function rM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function aM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var oM=function(){function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),aM(this,"store",void 0),aM(this,"monitor",void 0),aM(this,"backend",void 0),aM(this,"isSetUp",!1),aM(this,"handleRefCountChange",(function(){var t=r.store.getState().refCount>0;r.backend&&(t&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!t&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))})),this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}var e,n,r;return e=t,(n=[{key:"receiveBackend",value:function(t){this.backend=t}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var t=this,e=this.store.dispatch,n=function(t){return{beginDrag:LR(t),publishDragSource:HR(t),hover:UR(t),drop:JR(t),endDrag:nM(t)}}(this);return Object.keys(n).reduce((function(r,a){var o,i=n[a];return r[a]=(o=i,function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];var i=o.apply(t,r);void 0!==i&&e(i)}),r}),{})}},{key:"dispatch",value:function(t){this.store.dispatch(t)}}])&&rM(e.prototype,n),r&&rM(e,r),t}();function iM(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var lM="function"==typeof Symbol&&Symbol.observable||"@@observable",cM=function(){return Math.random().toString(36).substring(7).split("").join(".")},sM={INIT:"@@redux/INIT"+cM(),REPLACE:"@@redux/REPLACE"+cM(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+cM()}};function uM(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function dM(t){if(void 0===t)return"undefined";if(null===t)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(function(t){return t instanceof Date||"function"==typeof t.toDateString&&"function"==typeof t.getDate&&"function"==typeof t.setDate}(t))return"date";if(function(t){return t instanceof Error||"string"==typeof t.message&&t.constructor&&"number"==typeof t.constructor.stackTraceLimit}(t))return"error";var n=function(t){return"function"==typeof t.constructor?t.constructor.name:null}(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function pM(t){var e=typeof t;return"production"!==process.env.NODE_ENV&&(e=dM(t)),e}function fM(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?iM(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?iM(1):"Expected the enhancer to be a function. Instead, received: '"+pM(n)+"'");return n(fM)(t,e)}if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?iM(2):"Expected the root reducer to be a function. Instead, received: '"+pM(t)+"'");var a=t,o=e,i=[],l=i,c=!1;function s(){l===i&&(l=i.slice())}function u(){if(c)throw new Error("production"===process.env.NODE_ENV?iM(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(t){if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?iM(4):"Expected the listener to be a function. Instead, received: '"+pM(t)+"'");if(c)throw new Error("production"===process.env.NODE_ENV?iM(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var e=!0;return s(),l.push(t),function(){if(e){if(c)throw new Error("production"===process.env.NODE_ENV?iM(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");e=!1,s();var n=l.indexOf(t);l.splice(n,1),i=null}}}function p(t){if(!uM(t))throw new Error("production"===process.env.NODE_ENV?iM(7):"Actions must be plain objects. Instead, the actual type was: '"+pM(t)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(void 0===t.type)throw new Error("production"===process.env.NODE_ENV?iM(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?iM(9):"Reducers may not dispatch actions.");try{c=!0,o=a(o,t)}finally{c=!1}for(var e=i=l,n=0;n<e.length;n++){(0,e[n])()}return t}function f(t){if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?iM(10):"Expected the nextReducer to be a function. Instead, received: '"+pM(t));a=t,p({type:sM.REPLACE})}function m(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error("production"===process.env.NODE_ENV?iM(11):"Expected the observer to be an object. Instead, received: '"+pM(t)+"'");function n(){t.next&&t.next(u())}return n(),{unsubscribe:e(n)}}})[lM]=function(){return this},t}return p({type:sM.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:f})[lM]=m,r}function mM(){}"production"!==process.env.NODE_ENV&&"string"==typeof mM.name&&"isCrushed"!==mM.name&&function(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t);try{throw new Error(t)}catch(t){}}('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.');var hM=function(t,e){return t===e};function gM(t,e){return!t&&!e||!(!t||!e)&&(t.x===e.x&&t.y===e.y)}function bM(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hM;if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function vM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yM(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vM(Object(n),!0).forEach((function(e){xM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vM(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wM={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function kM(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wM,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case ER:case OR:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case NR:return gM(t.clientOffset,n.clientOffset)?t:yM(yM({},t),{},{clientOffset:n.clientOffset});case jR:case PR:return wM;default:return t}}var CM="dnd-core/ADD_SOURCE",EM="dnd-core/ADD_TARGET",OM="dnd-core/REMOVE_SOURCE",SM="dnd-core/REMOVE_TARGET";function NM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function PM(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?NM(Object(n),!0).forEach((function(e){jM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):NM(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function jM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var TM={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function IM(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:TM,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case OR:return PM(PM({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case SR:return PM(PM({},t),{},{isSourcePublic:!0});case NR:return PM(PM({},t),{},{targetIds:n.targetIds});case SM:return-1===t.targetIds.indexOf(n.targetId)?t:PM(PM({},t),{},{targetIds:RR(t.targetIds,n.targetId)});case PR:return PM(PM({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case jR:return PM(PM({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function DM(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case CM:case EM:return t+1;case OM:case SM:return t-1;default:return t}}var RM=[],MM=[];function zM(t,e){return t!==RM&&(t===MM||void 0===e||(n=t,e.filter((function(t){return n.indexOf(t)>-1}))).length>0);var n}function AM(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case NR:break;case CM:case EM:case SM:case OM:return RM;case OR:case SR:case jR:case PR:default:return MM}var e=t.payload,n=e.targetIds,r=void 0===n?[]:n,a=e.prevTargetIds,o=void 0===a?[]:a,i=zR(r,o),l=i.length>0||!bM(r,o);if(!l)return RM;var c=o[o.length-1],s=r[r.length-1];return c!==s&&(c&&i.push(c),s&&i.push(s)),i}function LM(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t+1}function _M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function FM(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_M(Object(n),!0).forEach((function(e){VM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_M(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function VM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function KM(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:AM(t.dirtyHandlerIds,{type:e.type,payload:FM(FM({},e.payload),{},{prevTargetIds:DR(t,"dragOperation.targetIds",[])})}),dragOffset:kM(t.dragOffset,e),refCount:DM(t.refCount,e),dragOperation:IM(t.dragOperation,e),stateId:LM(t.stateId)}}function HM(t,e){return{x:t.x-e.x,y:t.y-e.y}}function BM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function UM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}RM.__IS_NONE__=!0,MM.__IS_ALL__=!0;var WM=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),UM(this,"store",void 0),UM(this,"registry",void 0),this.store=e,this.registry=n}var e,n,r;return e=t,(n=[{key:"subscribeToStateChange",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},r=n.handlerIds;CR("function"==typeof t,"listener must be a function."),CR(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");var a=this.store.getState().stateId,o=function(){var n=e.store.getState(),o=n.stateId;try{o===a||o===a+1&&!zM(n.dirtyHandlerIds,r)||t()}finally{a=o}};return this.store.subscribe(o)}},{key:"subscribeToOffsetChange",value:function(t){var e=this;CR("function"==typeof t,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=e.store.getState().dragOffset;r!==n&&(n=r,t())}))}},{key:"canDragSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t);return CR(e,"Expected to find a valid source. sourceId=".concat(t)),!this.isDragging()&&e.canDrag(this,t)}},{key:"canDropOnTarget",value:function(t){if(!t)return!1;var e=this.registry.getTarget(t);return CR(e,"Expected to find a valid target. targetId=".concat(t)),!(!this.isDragging()||this.didDrop())&&BR(this.registry.getTargetType(t),this.getItemType())&&e.canDrop(this,t)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t,!0);return CR(e,"Expected to find a valid source. sourceId=".concat(t)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(t)===this.getItemType()&&e.isDragging(this,t)}},{key:"isOverTarget",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!t)return!1;var n=e.shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(t),a=this.getItemType();if(a&&!BR(r,a))return!1;var o=this.getTargetIds();if(!o.length)return!1;var i=o.indexOf(t);return n?i===o.length-1:i>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return t=this.store.getState().dragOffset,e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset,e&&n&&r?HM(function(t,e){return{x:t.x+e.x,y:t.y+e.y}}(e,r),n):null;var t,e,n,r}},{key:"getDifferenceFromInitialOffset",value:function(){return t=this.store.getState().dragOffset,e=t.clientOffset,n=t.initialClientOffset,e&&n?HM(e,n):null;var t,e,n}}])&&BM(e.prototype,n),r&&BM(e,r),t}(),YM=0;function $M(t){return($M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qM(t,e){e&&Array.isArray(t)?t.forEach((function(t){return qM(t,!1)})):CR("string"==typeof t||"symbol"===$M(t),e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const GM="undefined"!=typeof global?global:self,XM=GM.MutationObserver||GM.WebKitMutationObserver;function ZM(t){return function(){const e=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(e),clearInterval(n),t()}}}const JM="function"==typeof XM?function(t){let e=1;const n=new XM(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}:ZM;class QM{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,e){this.onError=t,this.release=e,this.task=null}}const tz=new class{enqueueTask(t){const{queue:e,requestFlush:n}=this;e.length||(n(),this.flushing=!0),e[e.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const e=this.index;if(this.index++,t[e].call(),this.index>this.capacity){for(let e=0,n=t.length-this.index;e<n;e++)t[e]=t[e+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=JM(this.flush),this.requestErrorThrow=ZM((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},ez=new class{create(t){const e=this.freeTasks,n=e.length?e.pop():new QM(this.onError,(t=>e[e.length]=t));return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}(tz.registerPendingError);function nz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function rz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function az(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return oz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oz(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function iz(t){var e=(YM++).toString();switch(t){case wR.SOURCE:return"S".concat(e);case wR.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function lz(t){switch(t[0]){case"S":return wR.SOURCE;case"T":return wR.TARGET;default:CR(!1,"Cannot parse handler ID: ".concat(t))}}function cz(t,e){var n=t.entries(),r=!1;do{var a=n.next(),o=a.done;if(az(a.value,2)[1]===e)return!0;r=!!o}while(!r);return!1}var sz=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),rz(this,"types",new Map),rz(this,"dragSources",new Map),rz(this,"dropTargets",new Map),rz(this,"pinnedSourceId",null),rz(this,"pinnedSource",null),rz(this,"store",void 0),this.store=e}var e,n,r;return e=t,(n=[{key:"addSource",value:function(t,e){qM(t),function(t){CR("function"==typeof t.canDrag,"Expected canDrag to be a function."),CR("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),CR("function"==typeof t.endDrag,"Expected endDrag to be a function.")}(e);var n=this.addHandler(wR.SOURCE,t,e);return this.store.dispatch(function(t){return{type:CM,payload:{sourceId:t}}}(n)),n}},{key:"addTarget",value:function(t,e){qM(t,!0),function(t){CR("function"==typeof t.canDrop,"Expected canDrop to be a function."),CR("function"==typeof t.hover,"Expected hover to be a function."),CR("function"==typeof t.drop,"Expected beginDrag to be a function.")}(e);var n=this.addHandler(wR.TARGET,t,e);return this.store.dispatch(function(t){return{type:EM,payload:{targetId:t}}}(n)),n}},{key:"containsHandler",value:function(t){return cz(this.dragSources,t)||cz(this.dropTargets,t)}},{key:"getSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];CR(this.isSourceId(t),"Expected a valid source ID.");var n=e&&t===this.pinnedSourceId,r=n?this.pinnedSource:this.dragSources.get(t);return r}},{key:"getTarget",value:function(t){return CR(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}},{key:"getSourceType",value:function(t){return CR(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}},{key:"getTargetType",value:function(t){return CR(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}},{key:"isSourceId",value:function(t){return lz(t)===wR.SOURCE}},{key:"isTargetId",value:function(t){return lz(t)===wR.TARGET}},{key:"removeSource",value:function(t){var e,n=this;CR(this.getSource(t),"Expected an existing source."),this.store.dispatch(function(t){return{type:OM,payload:{sourceId:t}}}(t)),e=function(){n.dragSources.delete(t),n.types.delete(t)},tz.enqueueTask(ez.create(e))}},{key:"removeTarget",value:function(t){CR(this.getTarget(t),"Expected an existing target."),this.store.dispatch(function(t){return{type:SM,payload:{targetId:t}}}(t)),this.dropTargets.delete(t),this.types.delete(t)}},{key:"pinSource",value:function(t){var e=this.getSource(t);CR(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e}},{key:"unpinSource",value:function(){CR(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(t,e,n){var r=iz(t);return this.types.set(r,e),t===wR.SOURCE?this.dragSources.set(r,n):t===wR.TARGET&&this.dropTargets.set(r,n),r}}])&&nz(e.prototype,n),r&&nz(e,r),t}();function uz(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=dz(r),o=new WM(a,new sz(a)),i=new oM(a,o),l=t(i,e,n);return i.receiveBackend(l),i}function dz(t){var e="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return fM(KM,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var pz=["children"];function fz(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return mz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mz(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function hz(t,e){if(null==t)return{};var n,r,a=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}var gz=0,bz=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),vz=t.memo((function(e){var r=e.children,a=fz(function(t){if("manager"in t){return[{dragDropManager:t.manager},!1]}var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yz(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a=e;a[bz]||(a[bz]={dragDropManager:uz(t,e,n,r)});return a[bz]}(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}(hz(e,pz)),2),o=a[0],i=a[1];return t.useEffect((function(){if(i){var t=yz();return++gz,function(){0==--gz&&(t[bz]=null)}}}),[]),n.jsx(kR.Provider,Object.assign({value:o},{children:r}),void 0)}));function yz(){return"undefined"!=typeof global?global:window}function xz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var kz=!1,Cz=!1,Ez=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),wz(this,"internalMonitor",void 0),wz(this,"sourceId",null),this.internalMonitor=e.getMonitor()}var e,n,r;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.sourceId=t}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){CR(!kz,"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 kz=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{kz=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;CR(!Cz,"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 Cz=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Cz=!1}}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"isDraggingSource",value:function(t){return this.internalMonitor.isDraggingSource(t)}},{key:"isOverTarget",value:function(t,e){return this.internalMonitor.isOverTarget(t,e)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(t){return this.internalMonitor.subscribeToOffsetChange(t)}},{key:"canDragSource",value:function(t){return this.internalMonitor.canDragSource(t)}},{key:"canDropOnTarget",value:function(t){return this.internalMonitor.canDropOnTarget(t)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&xz(e.prototype,n),r&&xz(e,r),t}();function Oz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Sz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Nz=!1,Pz=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Sz(this,"internalMonitor",void 0),Sz(this,"targetId",null),this.internalMonitor=e.getMonitor()}var e,n,r;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.targetId=t}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;CR(!Nz,"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 Nz=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Nz=!1}}},{key:"isOver",value:function(t){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,t)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&Oz(e.prototype,n),r&&Oz(e,r),t}();function jz(t){if("string"!=typeof t.type){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function Tz(e){var n={};return Object.keys(e).forEach((function(r){var a=e[r];if(r.endsWith("Ref"))n[r]=e[r];else{var o=function(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t.isValidElement(n)){var a=n;return e(a,r),a}var o=n;return jz(o),Dz(o,r?function(t){return e(t,r)}:e)}}(a);n[r]=function(){return o}}})),n}function Iz(t,e){"function"==typeof t?t(e):t.current=e}function Dz(e,n){var r=e.ref;return CR("string"!=typeof r,"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"),r?t.cloneElement(e,{ref:function(t){Iz(r,t),Iz(n,t)}}):t.cloneElement(e,{ref:n})}function Rz(t){return(Rz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mz(t){return null!==t&&"object"===Rz(t)&&Object.prototype.hasOwnProperty.call(t,"current")}function zz(t,e,n,r){var a=n?n.call(r,t,e):void 0;if(void 0!==a)return!!a;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var o=Object.keys(t),i=Object.keys(e);if(o.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(e),c=0;c<o.length;c++){var s=o[c];if(!l(s))return!1;var u=t[s],d=e[s];if(!1===(a=n?n.call(r,u,d,s):void 0)||void 0===a&&u!==d)return!1}return!0}function Az(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Lz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _z=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Lz(this,"hooks",Tz({dragSource:function(t,e){n.clearDragSource(),n.dragSourceOptions=e||null,Mz(t)?n.dragSourceRef=t:n.dragSourceNode=t,n.reconnectDragSource()},dragPreview:function(t,e){n.clearDragPreview(),n.dragPreviewOptions=e||null,Mz(t)?n.dragPreviewRef=t:n.dragPreviewNode=t,n.reconnectDragPreview()}})),Lz(this,"handlerId",null),Lz(this,"dragSourceRef",null),Lz(this,"dragSourceNode",void 0),Lz(this,"dragSourceOptionsInternal",null),Lz(this,"dragSourceUnsubscribe",void 0),Lz(this,"dragPreviewRef",null),Lz(this,"dragPreviewNode",void 0),Lz(this,"dragPreviewOptionsInternal",null),Lz(this,"dragPreviewUnsubscribe",void 0),Lz(this,"lastConnectedHandlerId",null),Lz(this,"lastConnectedDragSource",null),Lz(this,"lastConnectedDragSourceOptions",null),Lz(this,"lastConnectedDragPreview",null),Lz(this,"lastConnectedDragPreviewOptions",null),Lz(this,"backend",void 0),this.backend=e}var e,n,r;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(t){this.dragSourceOptionsInternal=t}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(t){this.dragPreviewOptionsInternal=t}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var t=this.dragSource,e=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();e&&this.disconnectDragSource(),this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)):this.lastConnectedDragSource=t)}},{key:"reconnectDragPreview",value:function(){var t=this.dragPreview,e=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();e&&this.disconnectDragPreview(),this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!zz(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!zz(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}}])&&Az(e.prototype,n),r&&Az(e,r),t}();function Fz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Vz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Kz=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Vz(this,"hooks",Tz({dropTarget:function(t,e){n.clearDropTarget(),n.dropTargetOptions=e,Mz(t)?n.dropTargetRef=t:n.dropTargetNode=t,n.reconnect()}})),Vz(this,"handlerId",null),Vz(this,"dropTargetRef",null),Vz(this,"dropTargetNode",void 0),Vz(this,"dropTargetOptionsInternal",null),Vz(this,"unsubscribeDropTarget",void 0),Vz(this,"lastConnectedHandlerId",null),Vz(this,"lastConnectedDropTarget",null),Vz(this,"lastConnectedDropTargetOptions",null),Vz(this,"backend",void 0),this.backend=e}var e,n,r;return e=t,(n=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();var e=this.dropTarget;this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=e,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,e,this.dropTargetOptions)):this.lastConnectedDropTarget=e)}},{key:"receiveHandlerId",value:function(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(t){this.dropTargetOptionsInternal=t}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!zz(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}}])&&Fz(e.prototype,n),r&&Fz(e,r),t}();var Hz="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function Bz(t){return(Bz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Uz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Wz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Yz=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Wz(this,"spec",void 0),Wz(this,"monitor",void 0),Wz(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=r}var e,n,r;return e=t,(n=[{key:"beginDrag",value:function(){var t,e=this.spec,n=this.monitor;return null!==(t="object"===Bz(e.item)?e.item:"function"==typeof e.item?e.item(n):{})&&void 0!==t?t:null}},{key:"canDrag",value:function(){var t=this.spec,e=this.monitor;return"boolean"==typeof t.canDrag?t.canDrag:"function"!=typeof t.canDrag||t.canDrag(e)}},{key:"isDragging",value:function(t,e){var n=this.spec,r=this.monitor,a=n.isDragging;return a?a(r):e===t.getSourceId()}},{key:"endDrag",value:function(){var t=this.spec,e=this.monitor,n=this.connector,r=t.end;r&&r(e.getItem(),e),n.reconnect()}}])&&Uz(e.prototype,n),r&&Uz(e,r),t}();function $z(){var e=t.useContext(kR).dragDropManager;return CR(null!=e,"Expected drag drop context"),e}function qz(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Gz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gz(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Xz(e,n,r){var a=$z(),o=function(e,n,r){var a=t.useMemo((function(){return new Yz(e,n,r)}),[n,r]);return t.useEffect((function(){a.spec=e}),[e]),a}(e,n,r),i=function(e){return t.useMemo((function(){var t=e.type;return CR(null!=t,"spec.type must be defined"),t}),[e])}(e);Hz((function(){if(null!=i){var t=qz(function(t,e,n){var r=n.getRegistry(),a=r.addSource(t,e);return[a,function(){return r.removeSource(a)}]}(i,o,a),2),e=t[0],l=t[1];return n.receiveHandlerId(e),r.receiveHandlerId(e),l}}),[a,n,r,o,i])}function Zz(t){return function(t){if(Array.isArray(t))return Jz(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Jz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jz(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Qz(e,n){var r=Zz(n||[]);return null==n&&"function"!=typeof e&&r.push(e),t.useMemo((function(){return"function"==typeof e?e():e}),r)}var tA=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,a,o;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(a=r;0!=a--;)if(!t(e[a],n[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(o=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(a=r;0!=a--;)if(!Object.prototype.hasOwnProperty.call(n,o[a]))return!1;for(a=r;0!=a--;){var i=o[a];if(!t(e[i],n[i]))return!1}return!0}return e!=e&&n!=n};function eA(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return nA(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nA(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nA(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function rA(e,n,r){var a=eA(t.useState((function(){return n(e)})),2),o=a[0],i=a[1],l=t.useCallback((function(){var t=n(e);tA(o,t)||(i(t),r&&r())}),[o,e,r]);return Hz(l),[o,l]}function aA(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return oA(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oA(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oA(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function iA(t,e,n){return function(t,e,n){var r=aA(rA(t,e,n),2),a=r[0],o=r[1];return Hz((function(){var e=t.getHandlerId();if(null!=e)return t.subscribeToStateChange(o,{handlerIds:[e]})}),[t,o]),a}(e,t||function(){return{}},(function(){return n.reconnect()}))}function lA(e){return t.useMemo((function(){return e.hooks.dragSource()}),[e])}function cA(e){return t.useMemo((function(){return e.hooks.dragPreview()}),[e])}function sA(e,n){var r=Qz(e,n);CR(!r.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 a,o=(a=$z(),t.useMemo((function(){return new Ez(a)}),[a])),i=function(e,n){var r=$z(),a=t.useMemo((function(){return new _z(r.getBackend())}),[r]);return Hz((function(){return a.dragSourceOptions=e||null,a.reconnect(),function(){return a.disconnectDragSource()}}),[a,e]),Hz((function(){return a.dragPreviewOptions=n||null,a.reconnect(),function(){return a.disconnectDragPreview()}}),[a,n]),a}(r.options,r.previewOptions);return Xz(r,o,i),[iA(r.collect,o,i),lA(i),cA(i)]}function uA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function dA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pA=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),dA(this,"spec",void 0),dA(this,"monitor",void 0),this.spec=e,this.monitor=n}var e,n,r;return e=t,(n=[{key:"canDrop",value:function(){var t=this.spec,e=this.monitor;return!t.canDrop||t.canDrop(e.getItem(),e)}},{key:"hover",value:function(){var t=this.spec,e=this.monitor;t.hover&&t.hover(e.getItem(),e)}},{key:"drop",value:function(){var t=this.spec,e=this.monitor;if(t.drop)return t.drop(e.getItem(),e)}}])&&uA(e.prototype,n),r&&uA(e,r),t}();function fA(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return mA(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mA(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mA(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function hA(e,n,r){var a=$z(),o=function(e,n){var r=t.useMemo((function(){return new pA(e,n)}),[n]);return t.useEffect((function(){r.spec=e}),[e]),r}(e,n),i=function(e){var n=e.accept;return t.useMemo((function(){return CR(null!=e.accept,"accept must be defined"),Array.isArray(n)?n:[n]}),[n])}(e);Hz((function(){var t=fA(function(t,e,n){var r=n.getRegistry(),a=r.addTarget(t,e);return[a,function(){return r.removeTarget(a)}]}(i,o,a),2),e=t[0],l=t[1];return n.receiveHandlerId(e),r.receiveHandlerId(e),l}),[a,n,o,r,i.map((function(t){return t.toString()})).join("|")])}function gA(e){return t.useMemo((function(){return e.hooks.dropTarget()}),[e])}function bA(e,n){var r,a=Qz(e,n),o=(r=$z(),t.useMemo((function(){return new Pz(r)}),[r])),i=function(e){var n=$z(),r=t.useMemo((function(){return new Kz(n.getBackend())}),[n]);return Hz((function(){return r.dropTargetOptions=e||null,r.reconnect(),function(){return r.disconnectDropTarget()}}),[e]),r}(a.options);return hA(a,o,i),[iA(a.collect,o,i),gA(i)]}y('.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;position:relative;min-width:50px;min-height:20px}.editable-row:hover .editable-cell-value-wrap:after,[data-theme=dark] .editable-row:hover .editable-cell-value-wrap:after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;z-index:1;border:1px dashed #5860f8}');const{Option:vA}=Kd,yA=d.default.createContext(null),xA=({open:e,index:r,moveRow:a,className:o,style:i,...l})=>{const[c]=Fk.useForm(),s=t.useRef(null),[{isOver:u,dropClassName:d},p]=bA({accept:"DraggableBodyRow",collect:t=>{const{index:e}=t.getItem()||{};return e===r?{}:{isOver:t.isOver(),dropClassName:e<r?" drop-over-downward":" drop-over-upward"}},drop:t=>{a(t.index,r)}}),[,f]=sA({type:"DraggableBodyRow",item:{index:r},collect:t=>({isDragging:t.isDragging()})});return e&&p(f(s)),n.jsx(Fk,Object.assign({size:"small",component:!1,form:c},{children:n.jsx(yA.Provider,Object.assign({value:c},{children:n.jsx("tr",Object.assign({ref:s,className:`${o}${u?d:""}`,style:{cursor:e?"move":"auto",...i}},l),void 0)}),void 0)}),void 0)},wA=({columns:e,record:r,dataIndex:a,title:o,editable:i,inputType:l,valueType:c,valueEnum:s,recordSelectField:u,controlRender:d,formChange:f,remoteConfig:m,children:h,formItemProps:b,handleSave:v,...y})=>{const x=t.useContext(yA),[w,k]=t.useState(!1),[C,E]=t.useState(!1),[O,S]=t.useState({}),N=t.useRef(null);t.useEffect((()=>{w&&N.current.focus()}),[w]);const P=(t,e,n,r)=>{r&&(E(!0),r(t,n).then((t=>{E(!1),e&&S({[e]:t})})))},j=()=>{T()},T=()=>{k(!1)},I=()=>{void 0!==r[a]&&null!==r[a]&&""!==r[a]&&("DatePicker"!==c&&"DateTimePicker"!==c||(r[a]=g.default(r[a])),"status"===a&&(r[a]=String(r[a]))),k(!w),x.setFieldsValue({[a]:r[a]})},D=t=>{const e={DateTimePicker:"YYYY-MM-DD HH:mm:ss",DatePicker:"YYYY-MM-DD"};return Object.keys(e).includes(c)&&t[a]&&(t[a]=t[a].format(e[c])),t},R=()=>{if(c&&a){if(s&&("Select"===c||"AutoComplete"===c)||"RemoteSearch"===c)return oD(s,r[a]);if(r[u]&&"RecordSelect"===c)return oD(r[u],r[a]);if(g.default.isMoment(r[a]))return D(r)[a]}return h},M=(t,e)=>{let o=null;const i=(t,e)=>{let n="";const r=function(t){for(let e of t)if(e)if(aD({data:e,type:"String"}))n+=e;else{const t=e.props.children;aD({data:t,type:"Object"})&&r([t]),aD({data:t,type:"Array"})&&r(t),aD({data:t,type:"String"})&&(n+=t)}};return r([e.children]),n.toLowerCase().indexOf(t.toLowerCase())>=0},c=t=>{if(p.default.isArray(t))return t.map(((t,e)=>n.jsx(vA,Object.assign({value:t.value},{children:t.label}),e)))};switch(t){case"RecordSelect":o=n.jsx(Kd,Object.assign({ref:N,open:w,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:z,onBlur:j,optionFilterProp:"children",filterOption:i},{children:c(r[u])}),void 0);break;case"Select":o=n.jsx(Kd,Object.assign({ref:N,open:w,dropdownMatchSelectWidth:!1,onChange:z,onBlur:j,placeholder:e},{children:c(s)}),void 0);break;case"DatePicker":o=n.jsx(Fw,{ref:N,open:w,onChange:z,onBlur:j,placeholder:e},void 0);break;case"DateTimePicker":o=n.jsx(Fw,{ref:N,open:w,onChange:z,onBlur:j,placeholder:e,showTime:!0},void 0);break;case"AutoComplete":o=n.jsx(Kd,Object.assign({ref:N,open:w,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:z,onBlur:j,optionFilterProp:"children",filterOption:i},{children:c(s)}),void 0);break;case"RemoteSearch":let t=s;O[a]&&(t=O[a]),o=n.jsx(Kd,Object.assign({ref:N,open:w,mode:m.remoteMode,placeholder:e,notFoundContent:C?n.jsx(_C,{size:"small"},void 0):null,dropdownMatchSelectWidth:!1,filterOption:!1,allowClear:!0,showSearch:!0,onChange:z,onBlur:j,onFocus:()=>P(void 0,a,r,m.remoteApi),onSearch:t=>P(t,a,r,m.remoteApi)},{children:a&&c(t)}),void 0);break;default:o=n.jsx(fx,{ref:N,onPressEnter:z,onBlur:z,placeholder:e,type:l||"text"},void 0)}return o},z=async()=>{try{const t=await x.validateFields();let e={...r,...t};e[a]=e[a]||void 0,e=D(e),f&&(e=await f(e)||e),r[a]!==e[a]&&v(e,a),T()}catch(t){console.log("保存表单字段失败:",t)}};let A=h;return A=i?w?n.jsx(Fk.Item,Object.assign({style:{margin:0},name:a,rules:b?b.rules:void 0},{children:M(c,o)}),void 0):n.jsx("div",Object.assign({className:"editable-cell-value-wrap",onClick:I},{children:R()}),void 0):R(),d&&(A=d(r,A)),n.jsx("td",Object.assign({},y,{title:r&&r[a]},{children:A}),void 0)};function kA(t){var e=null;return function(){return null==e&&(e=t()),e}}function CA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function EA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var OA=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),EA(this,"entered",[]),EA(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}var e,n,r;return e=t,(n=[{key:"enter",value:function(t){var e=this,n=this.entered.length;return this.entered=function(t,e){var n=new Set,r=function(t){return n.add(t)};t.forEach(r),e.forEach(r);var a=[];return n.forEach((function(t){return a.push(t)})),a}(this.entered.filter((function(n){return e.isNodeInDocument(n)&&(!n.contains||n.contains(t))})),[t]),0===n&&this.entered.length>0}},{key:"leave",value:function(t){var e,n,r=this.entered.length;return this.entered=(e=this.entered.filter(this.isNodeInDocument),n=t,e.filter((function(t){return t!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&CA(e.prototype,n),r&&CA(e,r),t}(),SA=kA((function(){return/firefox/i.test(navigator.userAgent)})),NA=kA((function(){return Boolean(window.safari)}));function PA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var TA=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),jA(this,"xs",void 0),jA(this,"ys",void 0),jA(this,"c1s",void 0),jA(this,"c2s",void 0),jA(this,"c3s",void 0);for(var r=e.length,a=[],o=0;o<r;o++)a.push(o);a.sort((function(t,n){return e[t]<e[n]?-1:1}));for(var i,l,c=[],s=[],u=0;u<r-1;u++)i=e[u+1]-e[u],l=n[u+1]-n[u],c.push(i),s.push(l/i);for(var d=[s[0]],p=0;p<c.length-1;p++){var f=s[p],m=s[p+1];if(f*m<=0)d.push(0);else{i=c[p];var h=c[p+1],g=i+h;d.push(3*g/((g+h)/f+(g+i)/m))}}d.push(s[s.length-1]);for(var b,v=[],y=[],x=0;x<d.length-1;x++){b=s[x];var w=d[x],k=1/c[x],C=w+d[x+1]-b-b;v.push((b-w-C)*k),y.push(C*k*k)}this.xs=e,this.ys=n,this.c1s=d,this.c2s=v,this.c3s=y}var e,n,r;return e=t,(n=[{key:"interpolate",value:function(t){var e=this.xs,n=this.ys,r=this.c1s,a=this.c2s,o=this.c3s,i=e.length-1;if(t===e[i])return n[i];for(var l,c=0,s=o.length-1;c<=s;){var u=e[l=Math.floor(.5*(c+s))];if(u<t)c=l+1;else{if(!(u>t))return n[l];s=l-1}}var d=t-e[i=Math.max(0,s)],p=d*d;return n[i]+r[i]*d+a[i]*p+o[i]*d*p}}])&&PA(e.prototype,n),r&&PA(e,r),t}();function IA(t){var e=1===t.nodeType?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function DA(t){return{x:t.clientX,y:t.clientY}}function RA(t,e,n,r,a){var o,i,l="IMG"===(o=e).nodeName&&(SA()||!(null!==(i=document.documentElement)&&void 0!==i&&i.contains(o))),c=IA(l?t:e),s={x:n.x-c.x,y:n.y-c.y},u=t.offsetWidth,d=t.offsetHeight,p=r.anchorX,f=r.anchorY,m=function(t,e,n,r){var a=t?e.width:n,o=t?e.height:r;return NA()&&t&&(o/=window.devicePixelRatio,a/=window.devicePixelRatio),{dragPreviewWidth:a,dragPreviewHeight:o}}(l,e,u,d),h=m.dragPreviewWidth,g=m.dragPreviewHeight,b=a.offsetX,v=a.offsetY,y=0===v||v;return{x:0===b||b?b:new TA([0,.5,1],[s.x,s.x/u*h,s.x+h-u]).interpolate(p),y:y?v:function(){var t=new TA([0,.5,1],[s.y,s.y/d*g,s.y+g-d]).interpolate(f);return NA()&&l&&(t+=(window.devicePixelRatio-1)*g),t}()}}var MA,zA="__NATIVE_FILE__",AA="__NATIVE_URL__",LA="__NATIVE_TEXT__",_A="__NATIVE_HTML__",FA=Object.freeze({__proto__:null,FILE:zA,URL:AA,TEXT:LA,HTML:_A});function VA(t,e,n){var r=e.reduce((function(e,n){return e||t.getData(n)}),"");return null!=r?r:n}function KA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var HA=(KA(MA={},zA,{exposeProperties:{files:function(t){return Array.prototype.slice.call(t.files)},items:function(t){return t.items},dataTransfer:function(t){return t}},matchesTypes:["Files"]}),KA(MA,_A,{exposeProperties:{html:function(t,e){return VA(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Html","text/html"]}),KA(MA,AA,{exposeProperties:{urls:function(t,e){return VA(t,e,"").split("\n")},dataTransfer:function(t){return t}},matchesTypes:["Url","text/uri-list"]}),KA(MA,LA,{exposeProperties:{text:function(t,e){return VA(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Text","text/plain"]}),MA);function BA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function UA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var WA=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),UA(this,"item",void 0),UA(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}var e,n,r;return e=t,(n=[{key:"initializeExposedProperties",value:function(){var t=this;Object.keys(this.config.exposeProperties).forEach((function(e){Object.defineProperty(t.item,e,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(e,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(t){var e=this;if(t){var n={};Object.keys(this.config.exposeProperties).forEach((function(r){n[r]={value:e.config.exposeProperties[r](t,e.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(t,e){return e===t.getSourceId()}},{key:"endDrag",value:function(){}}])&&BA(e.prototype,n),r&&BA(e,r),t}();function YA(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(HA).filter((function(t){return HA[t].matchesTypes.some((function(t){return e.indexOf(t)>-1}))}))[0]||null}function $A(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function qA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var GA=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),qA(this,"ownerDocument",null),qA(this,"globalContext",void 0),qA(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}var e,n,r;return e=t,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var t;return null!==(t=this.globalContext)&&void 0!==t&&t.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var t;return(null===(t=this.optionsArgs)||void 0===t?void 0:t.rootElement)||this.window}}])&&$A(e.prototype,n),r&&$A(e,r),t}();function XA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ZA(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?XA(Object(n),!0).forEach((function(e){QA(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):XA(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function JA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function QA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var tL=function(){function t(e,n,r){var a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),QA(this,"options",void 0),QA(this,"actions",void 0),QA(this,"monitor",void 0),QA(this,"registry",void 0),QA(this,"enterLeaveCounter",void 0),QA(this,"sourcePreviewNodes",new Map),QA(this,"sourcePreviewNodeOptions",new Map),QA(this,"sourceNodes",new Map),QA(this,"sourceNodeOptions",new Map),QA(this,"dragStartSourceIds",null),QA(this,"dropTargetIds",[]),QA(this,"dragEnterTargetIds",[]),QA(this,"currentNativeSource",null),QA(this,"currentNativeHandle",null),QA(this,"currentDragSourceNode",null),QA(this,"altKeyPressed",!1),QA(this,"mouseMoveTimeoutTimer",null),QA(this,"asyncEndDragFrameId",null),QA(this,"dragOverTargetIds",null),QA(this,"lastClientOffset",null),QA(this,"hoverRafId",null),QA(this,"getSourceClientOffset",(function(t){var e=a.sourceNodes.get(t);return e&&IA(e)||null})),QA(this,"endDragNativeItem",(function(){a.isDraggingNativeItem()&&(a.actions.endDrag(),a.currentNativeHandle&&a.registry.removeSource(a.currentNativeHandle),a.currentNativeHandle=null,a.currentNativeSource=null)})),QA(this,"isNodeInDocument",(function(t){return Boolean(t&&a.document&&a.document.body&&a.document.body.contains(t))})),QA(this,"endDragIfSourceWasRemovedFromDOM",(function(){var t=a.currentDragSourceNode;null==t||a.isNodeInDocument(t)||a.clearCurrentDragSourceNode()&&a.monitor.isDragging()&&a.actions.endDrag()})),QA(this,"handleTopDragStartCapture",(function(){a.clearCurrentDragSourceNode(),a.dragStartSourceIds=[]})),QA(this,"handleTopDragStart",(function(t){if(!t.defaultPrevented){var e=a.dragStartSourceIds;a.dragStartSourceIds=null;var n=DA(t);a.monitor.isDragging()&&a.actions.endDrag(),a.actions.beginDrag(e||[],{publishSource:!1,getSourceClientOffset:a.getSourceClientOffset,clientOffset:n});var r=t.dataTransfer,o=YA(r);if(a.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){var i=a.monitor.getSourceId(),l=a.sourceNodes.get(i),c=a.sourcePreviewNodes.get(i)||l;if(c){var s=a.getCurrentSourcePreviewNodeOptions(),u=RA(l,c,n,{anchorX:s.anchorX,anchorY:s.anchorY},{offsetX:s.offsetX,offsetY:s.offsetY});r.setDragImage(c,u.x,u.y)}}try{null==r||r.setData("application/json",{})}catch(t){}a.setCurrentDragSourceNode(t.target),a.getCurrentSourcePreviewNodeOptions().captureDraggingState?a.actions.publishDragSource():setTimeout((function(){return a.actions.publishDragSource()}),0)}else if(o)a.beginDragNativeItem(o);else{if(r&&!r.types&&(t.target&&!t.target.hasAttribute||!t.target.hasAttribute("draggable")))return;t.preventDefault()}}})),QA(this,"handleTopDragEndCapture",(function(){a.clearCurrentDragSourceNode()&&a.monitor.isDragging()&&a.actions.endDrag()})),QA(this,"handleTopDragEnterCapture",(function(t){if(a.dragEnterTargetIds=[],a.enterLeaveCounter.enter(t.target)&&!a.monitor.isDragging()){var e=t.dataTransfer,n=YA(e);n&&a.beginDragNativeItem(n,e)}})),QA(this,"handleTopDragEnter",(function(t){var e=a.dragEnterTargetIds;(a.dragEnterTargetIds=[],a.monitor.isDragging())&&(a.altKeyPressed=t.altKey,e.length>0&&a.actions.hover(e,{clientOffset:DA(t)}),e.some((function(t){return a.monitor.canDropOnTarget(t)}))&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=a.getCurrentDropEffect())))})),QA(this,"handleTopDragOverCapture",(function(){a.dragOverTargetIds=[]})),QA(this,"handleTopDragOver",(function(t){var e=a.dragOverTargetIds;if(a.dragOverTargetIds=[],!a.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer&&(t.dataTransfer.dropEffect="none"));a.altKeyPressed=t.altKey,a.lastClientOffset=DA(t),null===a.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(a.hoverRafId=requestAnimationFrame((function(){a.monitor.isDragging()&&a.actions.hover(e||[],{clientOffset:a.lastClientOffset}),a.hoverRafId=null}))),(e||[]).some((function(t){return a.monitor.canDropOnTarget(t)}))?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=a.getCurrentDropEffect())):a.isDraggingNativeItem()?t.preventDefault():(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none"))})),QA(this,"handleTopDragLeaveCapture",(function(t){a.isDraggingNativeItem()&&t.preventDefault(),a.enterLeaveCounter.leave(t.target)&&a.isDraggingNativeItem()&&setTimeout((function(){return a.endDragNativeItem()}),0)})),QA(this,"handleTopDropCapture",(function(t){var e;(a.dropTargetIds=[],a.isDraggingNativeItem())?(t.preventDefault(),null===(e=a.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer)):YA(t.dataTransfer)&&t.preventDefault();a.enterLeaveCounter.reset()})),QA(this,"handleTopDrop",(function(t){var e=a.dropTargetIds;a.dropTargetIds=[],a.actions.hover(e,{clientOffset:DA(t)}),a.actions.drop({dropEffect:a.getCurrentDropEffect()}),a.isDraggingNativeItem()?a.endDragNativeItem():a.monitor.isDragging()&&a.actions.endDrag()})),QA(this,"handleSelectStart",(function(t){var e=t.target;"function"==typeof e.dragDrop&&("INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable||(t.preventDefault(),e.dragDrop()))})),this.options=new GA(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new OA(this.isNodeInDocument)}var e,n,r;return e=t,(n=[{key:"profile",value:function(){var t,e;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(t=this.dragStartSourceIds)||void 0===t?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var t=this.rootElement;if(void 0!==t){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}},{key:"teardown",value:function(){var t,e=this.rootElement;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(t,e,n){var r=this;return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,e),function(){r.sourcePreviewNodes.delete(t),r.sourcePreviewNodeOptions.delete(t)}}},{key:"connectDragSource",value:function(t,e,n){var r=this;this.sourceNodes.set(t,e),this.sourceNodeOptions.set(t,n);var a=function(e){return r.handleDragStart(e,t)},o=function(t){return r.handleSelectStart(t)};return e.setAttribute("draggable","true"),e.addEventListener("dragstart",a),e.addEventListener("selectstart",o),function(){r.sourceNodes.delete(t),r.sourceNodeOptions.delete(t),e.removeEventListener("dragstart",a),e.removeEventListener("selectstart",o),e.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(t,e){var n=this,r=function(e){return n.handleDragEnter(e,t)},a=function(e){return n.handleDragOver(e,t)},o=function(e){return n.handleDrop(e,t)};return e.addEventListener("dragenter",r),e.addEventListener("dragover",a),e.addEventListener("drop",o),function(){e.removeEventListener("dragenter",r),e.removeEventListener("dragover",a),e.removeEventListener("drop",o)}}},{key:"addEventListeners",value:function(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var t=this.monitor.getSourceId(),e=this.sourceNodeOptions.get(t);return ZA({dropEffect:this.altKeyPressed?"copy":"move"},e||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var t=this.monitor.getSourceId();return ZA({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(t)||{})}},{key:"isDraggingNativeItem",value:function(){var t=this.monitor.getItemType();return Object.keys(FA).some((function(e){return FA[e]===t}))}},{key:"beginDragNativeItem",value:function(t,e){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(t,e){var n=new WA(HA[t]);return n.loadDataTransfer(e),n}(t,e),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(t){var e=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t,this.mouseMoveTimeoutTimer=setTimeout((function(){var t;return null===(t=e.rootElement)||void 0===t?void 0:t.addEventListener("mousemove",e.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var t;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(t=this.window)||void 0===t||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(t,e){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(e))}},{key:"handleDragEnter",value:function(t,e){this.dragEnterTargetIds.unshift(e)}},{key:"handleDragOver",value:function(t,e){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(e)}},{key:"handleDrop",value:function(t,e){this.dropTargetIds.unshift(e)}}])&&JA(e.prototype,n),r&&JA(e,r),t}();const eL=function(t,e,n){return new tL(t,e,n)},nL=t=>n.jsx(vz,Object.assign({backend:eL,context:window},{children:t.children}),void 0);y(".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{width:26px;height:26px}.ant-table-wrapper .ant-table-pagination.ant-pagination{margin-top:10px;margin-bottom:10px;padding-top:10px;padding-bottom:10px}.ant-table-wrapper .react-resizable{position:relative;background-clip:padding-box}.ant-table-wrapper .react-resizable-handle{position:absolute;right:-5px;bottom:0;z-index:1;width:10px;height:100%;cursor:col-resize}");var rL=t.forwardRef(((e,r)=>{const a=t.useMemo((()=>{const t=e.extra||{};return{tableConfig:t.tableConfig,rowType:t.rowType,scroll:t.scroll,apiMethod:t.apiMethod,columns:t.columns||[],data:t.data,drag:t.drag,onSelect:t.onSelect,paginationConfig:t.paginationConfig,getCheckboxProps:t.getCheckboxProps,resultFilter:t.resultFilter,getTableSuccessData:t.getTableSuccessData}}),[e.extra]),o=t.useRef();let i=t.useRef(!0);const l=t.useRef({position:["bottomCenter"],size:"small",current:1,total:0,pages:0,pageSize:10,showSizeChanger:!0,orderByInfo:void 0}),c=t.useRef([]),[s,u]=t.useState(a.columns),[d,f]=t.useState(!1),[m,h]=t.useState([]),[g,b]=C.useSetState({selectRowIds:[],selectRowArray:[]}),[v,y]=t.useState({x:void 0,y:330}),x=t.useMemo((()=>a.tableConfig&&a.tableConfig.rowKey?a.tableConfig.rowKey:"id"),[a.tableConfig]),w=t.useCallback((async t=>{let e=!0;f(!0),t&&(void 0!==t.updateSelected&&(e=t.updateSelected,delete t.updateSelected),"not-reset"===t.pagination&&delete t.pagination,o.current={...o.current,...t});try{const n={...o.current};for(let t in l.current){const e=l.current[t];"orderByInfo"===t&&(n.orderByInfo=e),"current"===t&&(n.page=e),"pageSize"===t&&(n.size=n.size||e)}if(t&&t.current&&(n.page=t.current,l.current.current=t.current),a.apiMethod){delete n.current;const t=await a.apiMethod(p.default.pickBy(n,p.default.identity));let r=[];p.default.isArray(t.data.content)&&(!1!==a.paginationConfig?i.current=!0:i.current=!1,r=t.data.content,l.current.total=t.data.total,l.current.pages=t.data.pages),p.default.isArray(t.data)&&(i.current=!1,r=t.data),a.resultFilter&&(r=await a.resultFilter(r)),e&&b((t=>{let e=[...t.selectRowIds],n=[...t.selectRowArray];const a=r=>{if(t.selectRowIds.length)for(let o of r){for(let r of t.selectRowIds)o[x]===r&&(e.push(r),n.push(o));o.children&&a(o.children)}};return a(r),t.selectRowIds=p.default.unionBy(e),t.selectRowArray=p.default.unionBy(n,x),t})),h(r),a.getTableSuccessData&&a.getTableSuccessData(t)}}catch(t){}f(!1)}),[a,x,b]),k={fixed:!0,type:a.rowType,selectedRowKeys:g.selectRowIds,getCheckboxProps:a.getCheckboxProps,onSelectAll:(t,e,n)=>{b((e=>{let r=[...e.selectRowIds],o=[...e.selectRowArray];return t?(r=p.default.uniq([...r,...n.map((t=>t[x]))]),o=p.default.uniqBy([...o,...n],x)):(r=r.filter((t=>!n.some((e=>e[x]===t)))),o=o.filter((t=>!n.some((e=>e[x]===t[x]))))),a.onSelect&&a.onSelect(o,r),e.selectRowIds=r,e.selectRowArray=o,e}))},onSelect:(t,e)=>{b((n=>{let r=[...n.selectRowIds],o=[...n.selectRowArray];return"checkbox"===a.rowType&&(e?(r.push(t[x]),o.push(t)):(r=r.filter((e=>e!==t[x])),o=o.filter((e=>e[x]!==t[x])))),"radio"===a.rowType&&e&&(r=[t[x]],o=[t]),a.onSelect&&a.onSelect(o,r),n.selectRowIds=r,n.selectRowArray=o,n}))}},E=t=>(e,{size:n})=>{u((e=>{const r=[...e];return r[t]={...r[t],width:n.width},c.current=r,r}))},O=t.useCallback((t=>{h((e=>{let n=JSON.parse(JSON.stringify(e));for(let[e,r]of n.entries())if(r[x]===t[x]){n[e]={...n[e],...t};break}return n}))}),[x]),S=t.useCallback((async(t,e)=>{const n=m[t],r=xD(m,{$splice:[[t,1],[e,0,n]]});f(!0);try{if(a.drag){const n=JSON.parse(JSON.stringify(r)),o=JSON.parse(JSON.stringify(m)),i=[t,e].sort();!1!==await a.drag.moveRow(t,e,n,o,n.slice(i[0],i[1]+1))&&h(n)}}finally{f(!1)}}),[a.drag,m]);return t.useEffect((()=>{(async()=>{let t=[...a.columns];t.some((t=>"sequence"===t.dataIndex))||t.unshift({width:55,fixed:"left",title:"序号",dataIndex:"sequence",render:(t,e,n)=>{const r=l.current;return Object.keys(r).length?((r.current||0)-1)*(r.pageSize||0)+n+1:n+1}});for(let[e,n]of t.entries()){"RemoteSearch"===n.valueType&&n.remoteConfig&&n.remoteConfig.remoteApi&&(n.valueEnum=await n.remoteConfig.remoteApi());let r={...n,onHeaderCell:t=>({width:t.width,onResize:E(e)}),onCell:(t,e)=>({record:t,dataIndex:n.dataIndex,title:n.title,editable:"function"==typeof n.editable?n.editable(t,e):n.editable,inputType:n.inputType,valueType:n.valueType,valueEnum:n.valueEnum,recordSelectField:n.recordSelectField,controlRender:n.controlRender,formChange:n.formChange,remoteConfig:n.remoteConfig,formItemProps:n.formItemProps,handleSave:O})},a=c.current.find((t=>t.dataIndex===n.dataIndex&&t.title===n.title));a&&(r.width=a.width),t[e]=r}u(t)})()}),[a.columns,O]),t.useEffect((()=>{b((t=>{let e=[];const n=t=>{for(let r of t){for(let t of g.selectRowIds)r[x]===t&&e.push(r);r.children&&n(r.children)}};return g.selectRowIds.length&&(n(m),e=p.default.unionBy([...t.selectRowArray,...e],x)),t.selectRowArray=e,t}))}),[x,m,b,g.selectRowIds]),t.useEffect((()=>{p.default.isArray(a.data)&&h(JSON.parse(JSON.stringify(a.data)))}),[a.data]),t.useEffect((()=>{const t=document.getElementById("slider-menu"),e=document.getElementById("router-render");if(void 0!==a.scroll?.x||void 0!==a.scroll?.y)y((t=>({...t,...a.scroll})));else if(t&&e){let n=parseInt(window.getComputedStyle(e,null).paddingLeft);y((e=>(e.x=document.body.clientWidth-t.clientWidth-(2*n+43),e)))}}),[a.scroll]),t.useEffect((()=>{a.paginationConfig&&(l.current={...l.current,...a.paginationConfig})}),[a.paginationConfig]),t.useImperativeHandle(r,(()=>({setTableLoading:t=>{f(t)},getPages:()=>({...l.current}),getTableList:async(t,e)=>{t&&("not-reset"===t.pagination?t.current=l.current.current:void 0===t.current&&(t.current=1),t.clearSelectIds&&(delete t.clearSelectIds,b((t=>(t.selectRowArray=[],t.selectRowIds=[],t))))),await w(t),e&&e()},setRowSelected:(t,e)=>{let n=t;!0===e&&(n=Array.from(new Set([...g.selectRowIds,...t]))),b({selectRowIds:n})},getSelectIds:()=>g.selectRowIds,clearSelectIds:()=>{b({selectRowIds:[],selectRowArray:[]})},getSelectRowsArray:()=>g.selectRowArray,removeSelectIds:t=>{b({selectRowIds:g.selectRowIds.filter((e=>{let n=!0;for(let r of t)if(r===e){n=!1;break}return n})),selectRowArray:g.selectRowArray.filter((e=>{let n=!0;for(let r of t)if(r===e[x]){n=!1;break}return n}))})},getStaticDataList:()=>JSON.parse(JSON.stringify(m||[])),setStaticDataList:(t,e)=>{if("[object Object]"===Object.prototype.toString.call(t)){let e=t;h(m.map((n=>(n[x]===e[x]&&(n=t),n))))}"[object Array]"===Object.prototype.toString.call(t)&&h(JSON.parse(JSON.stringify(t))),e&&e()}}))),n.jsx(mD,{children:n.jsx(nL,{children:n.jsx(kP,Object.assign({rowKey:"id",rowClassName:"editable-row",loading:d,bordered:!0,components:{header:{cell:xR},body:t.useMemo((()=>({row:xA,cell:t=>n.jsx(wA,Object.assign({},t,{columns:s}),void 0)})),[s])},onRow:(t,e)=>({index:e,moveRow:S,open:a.drag&&a.drag.open}),columns:s,dataSource:m,rowSelection:a.rowType?k:void 0,pagination:!(!p.default.isFunction(a.apiMethod)||!i.current)&&{size:"small",position:["bottomCenter"],showTotal:t=>`共${t}条`,showSizeChanger:!0,showQuickJumper:!0,...l.current},onChange:(t,e,n)=>{const{order:r}=n;t.orderByInfo=void 0,r&&(t.orderByInfo=`${n.field}:${"ascend"===r?1:-1}`),(t=>{!p.default.isEqual(t,l.current)&&i.current&&(l.current={...l.current,...t},w())})(t)},scroll:v},a.tableConfig),void 0)},void 0)},void 0)}));y("");const aL=t=>{const e={...t};return delete e.outerHeight,n.jsx(jy,Object.assign({className:"empty-wrap",style:{minHeight:t&&t.outerHeight?t.outerHeight:400},align:"middle",justify:"center"},{children:n.jsx(br,Object.assign({description:"暂无数据"},e),void 0)}),void 0)};y(".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:oL,Paragraph:iL}=$T;var lL=t.forwardRef((function(e,r){const a=t.useRef(null),o=t.useRef(),[i,l]=C.useSetState({saveLoading:!1,selectedRows:[]}),c=t.useMemo((()=>e.tableColumnsList&&e.tableColumnsList.tableConfig&&e.tableColumnsList.tableConfig.rowKey||"id"),[e.tableColumnsList]),s=t.useMemo((()=>{const t=e.width||0;return t>=500&&t<=800?{span:7}:t>800&&t<=1e3?{span:6}:t>1e3&&t<=1200?{span:5}:t>1200?{span:4}:{span:8}}),[e.width]),u=(t,e)=>{if(o.current){let n=[],r=[];"all"===t&&o.current.clearSelectIds(),"odd"===t&&e&&(n=[e[c]],r=i.selectedRows.filter((t=>t[c]!==e[c])),o.current.removeSelectIds(n)),l({selectedRows:r})}},d=t.useCallback((async()=>{if(a.current&&o.current){let t=await a.current.formSubmit();if(t&&Object.keys(t).length){for(let e in t){const n="YYYY-MM-DD HH:mm:ss";g.default(t[e],n,!0).isValid()&&(t[e]=g.default(t[e]).format(n))}t={clearSelectIds:!0,...t},void 0!==e.clearSelectIds&&(t.clearSelectIds=e.clearSelectIds),t.clearSelectIds&&l((t=>(t.selectedRows=[],t))),e.manualParameterChange&&(t=e.manualParameterChange(t)),e.searchCallback?e.searchCallback(t).then((e=>{e&&o.current?.getTableList(t)})):o.current.getTableList(t)}}else o.current?.getTableList()}),[e,l]),p=()=>{if(a.current){let t=[];const n=e.searchNoResetFiled||[];if(e.searchFormList)for(let r of e.searchFormList){if(r.unionConfig)for(let e of r.unionConfig.unionItems)e.name&&!n.includes(e.name)&&t.push(e.name);r.name&&!n.includes(r.name)&&t.push(r.name)}a.current.formReset(t)}d()};return t.useEffect((()=>{e.visible&&(e.autoGetList&&o.current?.getTableList(),e.openSelected&&e.openSelected.visible&&l((t=>(t.selectedRows=e.openSelected?.defaultValues||[],o.current?.setRowSelected(t.selectedRows.map((t=>t[c]))),t))))}),[e.autoGetList,e.openSelected,e.visible,c,l]),t.useImperativeHandle(r,(()=>({...a.current,...o.current,setSavaLoading:t=>{l({saveLoading:t})}}))),n.jsxs(QI,Object.assign({className:"from-table-modal",width:e.width,visible:e.visible,title:e.title||"弹窗",onCancel:e.onCancel,forceRender:!0,maskClosable:!1,footer:null},{children:[e.topExtra,e.searchFormList?n.jsx(yD,{ref:a,rowGridConfig:{gutter:10},colGirdConfig:s,list:(f=e.searchFormList,f?f.map((t=>("Select"===t.componentName&&t.selectData&&t.selectData.length&&(t.selectData.some((t=>"全部"===t.label))||(t.selectData=[{label:"全部",value:""},...t.selectData])),t))):[]),formConfig:e.formConfig,render:()=>e.searchFormList&&e.searchFormList.length?n.jsxs(RO,Object.assign({size:10},{children:[n.jsx(af,Object.assign({type:"primary",onClick:()=>{d()}},{children:"查询"}),void 0),n.jsx(af,Object.assign({className:"btn-reset",onClick:p},{children:"重置"}),void 0)]}),void 0):n.jsx(n.Fragment,{},void 0)},void 0):null,n.jsxs(jy,Object.assign({},e.rowProps,{children:[e.leftSlot?n.jsx(Dy,Object.assign({},e.leftSlot.colProps,{children:e.leftSlot.jsx}),void 0):null,n.jsx(Dy,Object.assign({},e.colProps,{children:n.jsxs(jy,Object.assign({gutter:10},{children:[n.jsx(Dy,Object.assign({span:e.openSelected&&e.openSelected.visible?16:24},{children:n.jsx(rL,{ref:o,extra:{rowType:e.tableColumnsList.rowType,apiMethod:e.apiMethod,columns:e.tableColumnsList.list,data:e.data,onSelect:(t,n)=>{((t,n)=>{l({selectedRows:n.map((n=>{let r={};const a=t.find((t=>t[c]===n));if(r[c]=n,e.openSelected&&e.openSelected.fileName&&(r[e.openSelected.fileName]=n),a&&(r=a),e.openSelected){const t=e.openSelected.fileName,a=e.openSelected.defaultValues;if(t&&a){const e=a.find((t=>t[c]===n));e&&(r[t]=e[t])}}return r}))})})(t,n),e.onSelect&&e.onSelect(t,n)},getTableSuccessData:e.getTableSuccessData,tableConfig:e.tableColumnsList.tableConfig,scroll:{x:"max-content"}}},void 0)}),void 0),e.openSelected&&e.openSelected.visible?n.jsx(Dy,Object.assign({span:8},{children:n.jsx(My,Object.assign({title:"已选列表",size:"small",bodyStyle:{height:e.openSelected.height||330,overflowY:"auto"},extra:n.jsx(oL,Object.assign({onClick:()=>u("all")},{children:"全部移除"}),void 0)},{children:i.selectedRows.length?i.selectedRows.map((t=>{const r=t[c],a=t[e.openSelected?.fileName];return n.jsxs(jy,Object.assign({gutter:12},{children:[n.jsx(Dy,Object.assign({span:11,title:a},{children:n.jsx(iL,Object.assign({ellipsis:!0},{children:a}),void 0)}),void 0),n.jsx(Dy,Object.assign({span:9,title:r},{children:n.jsx(iL,Object.assign({ellipsis:!0},{children:r}),void 0)}),void 0),n.jsx(Dy,Object.assign({span:4},{children:n.jsx(oL,Object.assign({onClick:()=>u("odd",t)},{children:"移除"}),void 0)}),void 0)]}),r)})):n.jsx(aL,{outerHeight:200},void 0)}),void 0)}),void 0):null]}),void 0)}),void 0),e.rightSlot?n.jsx(Dy,Object.assign({},e.rightSlot.colProps,{children:e.rightSlot.jsx}),void 0):null]}),void 0),n.jsx(jy,Object.assign({className:"from-table-modal-foot",justify:"center"},{children:n.jsx(Dy,{children:n.jsxs(RO,Object.assign({size:20},{children:[e.onCancel?n.jsx(af,Object.assign({onClick:()=>e.onCancel&&e.onCancel()},{children:"关闭"}),void 0):null,e.onConfirm?n.jsx(af,Object.assign({type:"primary",loading:i.saveLoading,onClick:()=>{let t=[],n=[];t=e.openSelected&&e.openSelected.visible?i.selectedRows:o.current?.getSelectRowsArray()||[],e.onConfirm&&(o.current&&(n=o.current.getSelectIds()),l({saveLoading:!0}),e.onConfirm(t,n).then((t=>{l({saveLoading:!1}),t&&e.onCancel&&e.onCancel()})).catch((t=>{l({saveLoading:!1}),Oi.warn(t,1.5)})))}},{children:"确定"}),void 0):null]}),void 0)},void 0)}),void 0)]}),void 0);var f})),cL={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"},sL=function(e,n){return t.createElement(Yo,ye(ye({},e),{},{ref:n,icon:cL}))},uL=t.forwardRef(sL);"production"!==process.env.NODE_ENV&&(uL.displayName="LeftCircleFilled");var dL={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"},pL=function(e,n){return t.createElement(Yo,ye(ye({},e),{},{ref:n,icon:dL}))},fL=t.forwardRef(pL);"production"!==process.env.NODE_ENV&&(fL.displayName="RightCircleFilled");y(".quickly-form-modal .ant-modal-body{padding-top:15px}.quickly-form-modal .quickly-form-modal-foot{margin-top:20px}");y(".form-modal .ant-modal-body{padding-top:15px}.form-modal .ant-modal-body .modal-form-height{max-height:580px;padding-right:5px;overflow-x:hidden;overflow-y:auto}.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 mL=t.forwardRef(((e,r)=>{const a=t.useRef(),[o,i]=C.useSetState({loading:!1,saveLoading:!1,disabled:!1}),l=async()=>{let t=await(a.current?.formSubmit());if(t){if(t.endTime&&t.startTime&&g.default(t.endTime).isBefore(t.startTime))return void Oi.warn("生效日期不能大于失效日期",1.5);i({saveLoading:!0});try{let n={};if(t={...t,...e.submitExtraParameters},e.switchTransform)for(let n=0;n<e.switchTransform.length;n++)t[e.switchTransform[n]]?t[e.switchTransform[n]]="1":t[e.switchTransform[n]]="0";if(e.submitRemoveField)for(let n=0;n<e.submitRemoveField.length;n++)t[e.submitRemoveField[n]]&&delete t[e.submitRemoveField[n]];for(let e in t){const n="YYYY-MM-DD HH:mm:ss";g.default(t[e],n,!0).isValid()&&(t[e]=g.default(t[e]).format(n))}if(e.manualParameterChange&&(t=e.manualParameterChange(t)),e.manualVerification&&!e.manualVerification(t))return console.warn("手动验证表单不通过"),void i({saveLoading:!1});if(t=p.default.omitBy(t,p.default.isNil),e.submitApi&&t){if(e.id?(t.id=e.id,n=await e.submitApi(t,"put")):n=await e.submitApi(t,"post"),1===n.code){if(e.onConfirm){if(!1===e.onConfirm(n))return}Oi.success("操作成功",1.5),e.onCancel&&e.onCancel()}i({saveLoading:!1})}else e.onConfirm&&t&&e.onConfirm(t)}catch(t){i({saveLoading:!1})}}};return t.useEffect((()=>{!1===e.visible&&i({saveLoading:!1})}),[e.visible,i]),t.useEffect((()=>{i({disabled:e.disable})}),[e.disable,i]),t.useImperativeHandle(r,(()=>({setFormLoading:t=>{i({loading:t})},setFormSaveLoading:t=>{i({saveLoading:t})},setFormFields:t=>{a.current&&a.current.setFormFields(t)},getFormValues:t=>a.current?.getFormValues(t),setFormValues:t=>{a.current&&a.current.setFormValues(t)},excludeFormSubmitValues:async t=>{if(a.current){const n=e.formList.filter((e=>!t?.includes(e.name)));return await(a.current?.formSubmit(n.map((t=>t.name))))}return{}},getFormSubmitValues:async t=>a.current?await(a.current?.formSubmit(t)):{}}))),n.jsx(QI,Object.assign({className:"form-modal",width:e.width?e.width:600,visible:e.visible,title:e.title||"对话框",onCancel:e.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null},{children:n.jsxs(_C,Object.assign({spinning:o.loading},{children:[n.jsxs("div",Object.assign({className:"modal-form-height"},{children:[e.topRender?e.topRender:null,n.jsx(yD,{ref:a,formConfig:{labelCol:{span:24},...e.formConfig},rowGridConfig:{gutter:[20,0]},colGirdConfig:e.colGirdConfig||{span:12},list:e.formList},void 0),e.children&&e.children]}),void 0),(()=>{const r=(()=>{const t=[n.jsx(af,Object.assign({onClick:()=>e.onCancel&&e.onCancel()},{children:"关闭"}),-1)];return o.disabled||t.push(n.jsx(af,Object.assign({type:"primary",loading:o.saveLoading,onClick:l},{children:"提交"}),-2)),t})(),a=t=>n.jsx(jy,Object.assign({className:"form-modal-foot",justify:"center"},{children:n.jsx(Dy,{children:n.jsx(RO,Object.assign({size:20},{children:t}),void 0)},void 0)}),void 0);if(e.footer)return e.footer;if(e.footBtnList){const{model:n,data:o}=e.footBtnList,i=o.map(((e,n)=>{const{children:r,...a}=e;return t.createElement(af,{...a,key:n},r)}));if("new"===n)return a(i);if("before"===n)return a([...i,...r]);if("after"===n)return a([...r,...i])}return a(r)})()]}),void 0)}),void 0)}));y('@import "https://at.alicdn.com/t/font_2381668_l6oy3doglyo.css";.icon-selected-modal .avatar-selected{display:flex;align-items:center;justify-content:center;width:36px;height:36px;overflow:hidden;border:2px solid #fff;border-radius:4px;cursor:pointer}.icon-selected-modal .avatar-selected.avatar-selected-bg{border-color:#5860f8}.icon-selected-modal .icon-selected-foot{margin-top:20px}');
43
+ */function YD(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case PD:switch(t=t.type){case zD:case AD:case TD:case DD:case ID:case _D:return t;default:switch(t=t&&t.$$typeof){case MD:case LD:case KD:case VD:case RD:return t;default:return e}}case jD:return e}}}function $D(t){return YD(t)===AD}var qD={AsyncMode:zD,ConcurrentMode:AD,ContextConsumer:MD,ContextProvider:RD,Element:PD,ForwardRef:LD,Fragment:TD,Lazy:KD,Memo:VD,Portal:jD,Profiler:DD,StrictMode:ID,Suspense:_D,isAsyncMode:function(t){return $D(t)||YD(t)===zD},isConcurrentMode:$D,isContextConsumer:function(t){return YD(t)===MD},isContextProvider:function(t){return YD(t)===RD},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===PD},isForwardRef:function(t){return YD(t)===LD},isFragment:function(t){return YD(t)===TD},isLazy:function(t){return YD(t)===KD},isMemo:function(t){return YD(t)===VD},isPortal:function(t){return YD(t)===jD},isProfiler:function(t){return YD(t)===DD},isStrictMode:function(t){return YD(t)===ID},isSuspense:function(t){return YD(t)===_D},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===TD||t===AD||t===DD||t===ID||t===_D||t===FD||"object"==typeof t&&null!==t&&(t.$$typeof===KD||t.$$typeof===VD||t.$$typeof===RD||t.$$typeof===MD||t.$$typeof===LD||t.$$typeof===BD||t.$$typeof===UD||t.$$typeof===WD||t.$$typeof===HD)},typeOf:YD},GD=F((function(t,e){"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,y=t?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:var f=t.type;switch(f){case s:case u:case a:case i:case o:case p:return f;default:var g=f&&f.$$typeof;switch(g){case c:case d:case h:case m:case l:return g;default:return e}}case r:return e}}}var w=s,k=u,C=c,E=l,O=n,S=d,N=a,P=h,j=m,T=r,I=i,D=o,R=p,M=!1;function z(t){return x(t)===u}e.AsyncMode=w,e.ConcurrentMode=k,e.ContextConsumer=C,e.ContextProvider=E,e.Element=O,e.ForwardRef=S,e.Fragment=N,e.Lazy=P,e.Memo=j,e.Portal=T,e.Profiler=I,e.StrictMode=D,e.Suspense=R,e.isAsyncMode=function(t){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(t)||x(t)===s},e.isConcurrentMode=z,e.isContextConsumer=function(t){return x(t)===c},e.isContextProvider=function(t){return x(t)===l},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===n},e.isForwardRef=function(t){return x(t)===d},e.isFragment=function(t){return x(t)===a},e.isLazy=function(t){return x(t)===h},e.isMemo=function(t){return x(t)===m},e.isPortal=function(t){return x(t)===r},e.isProfiler=function(t){return x(t)===i},e.isStrictMode=function(t){return x(t)===o},e.isSuspense=function(t){return x(t)===p},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===u||t===i||t===o||t===p||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===m||t.$$typeof===l||t.$$typeof===c||t.$$typeof===d||t.$$typeof===b||t.$$typeof===v||t.$$typeof===y||t.$$typeof===g)},e.typeOf=x}()})),XD=F((function(t){"production"===process.env.NODE_ENV?t.exports=qD:t.exports=GD})),ZD=Object.getOwnPropertySymbols,JD=Object.prototype.hasOwnProperty,QD=Object.prototype.propertyIsEnumerable;function tR(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var eR=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,r,a=tR(t),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))JD.call(n,i)&&(a[i]=n[i]);if(ZD){r=ZD(n);for(var l=0;l<r.length;l++)QD.call(n,r[l])&&(a[r[l]]=n[r[l]])}}return a},nR="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",rR=function(){};if("production"!==process.env.NODE_ENV){var aR=nR,oR={},iR=Function.call.bind(Object.prototype.hasOwnProperty);rR=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function lR(t,e,n,r,a){if("production"!==process.env.NODE_ENV)for(var o in t)if(iR(t,o)){var i;try{if("function"!=typeof t[o]){var l=Error((r||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[o]+"`.");throw l.name="Invariant Violation",l}i=t[o](e,o,r,n,null,aR)}catch(t){i=t}if(!i||i instanceof Error||rR((r||"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 oR)){oR[i.message]=!0;var c=a?a():"";rR("Failed "+n+" type: "+i.message+(null!=c?c:""))}}}lR.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(oR={})};var cR=lR,sR=Function.call.bind(Object.prototype.hasOwnProperty),uR=function(){};function dR(){return null}"production"!==process.env.NODE_ENV&&(uR=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}});var pR=function(t,e){var n="function"==typeof Symbol&&Symbol.iterator;var r="<<anonymous>>",a={array:c("array"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:l(dR),arrayOf:function(t){return l((function(e,n,r,a,o){if("function"!=typeof t)return new i("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var l=e[n];if(!Array.isArray(l))return new i("Invalid "+a+" `"+o+"` of type `"+u(l)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<l.length;c++){var s=t(l,c,r,a,o+"["+c+"]",nR);if(s instanceof Error)return s}return null}))},element:l((function(e,n,r,a,o){var l=e[n];return t(l)?null:new i("Invalid "+a+" `"+o+"` of type `"+u(l)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:l((function(t,e,n,r,a){var o=t[e];return XD.isValidElementType(o)?null:new i("Invalid "+r+" `"+a+"` of type `"+u(o)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return l((function(e,n,a,o,l){if(!(e[n]instanceof t)){var c=t.name||r;return new i("Invalid "+o+" `"+l+"` of type `"+(((s=e[n]).constructor&&s.constructor.name?s.constructor.name:r)+"` supplied to `")+a+"`, expected instance of `"+c+"`.")}var s;return null}))},node:l((function(t,e,n,r,a){return s(t[e])?null:new i("Invalid "+r+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return l((function(e,n,r,a,o){if("function"!=typeof t)return new i("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+a+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var s in l)if(sR(l,s)){var d=t(l,s,r,a,o+"."+s,nR);if(d instanceof Error)return d}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&uR(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."),dR;function e(e,n,r,a,l){for(var c=e[n],s=0;s<t.length;s++)if(o(c,t[s]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===d(e)?String(e):e}));return new i("Invalid "+a+" `"+l+"` of value `"+String(c)+"` supplied to `"+r+"`, expected one of "+u+".")}return l(e)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&uR("Invalid argument supplied to oneOfType, expected an instance of array."),dR;for(var e=0;e<t.length;e++){var n=t[e];if("function"!=typeof n)return uR("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+p(n)+" at index "+e+"."),dR}return l((function(e,n,r,a,o){for(var l=0;l<t.length;l++)if(null==(0,t[l])(e,n,r,a,o,nR))return null;return new i("Invalid "+a+" `"+o+"` supplied to `"+r+"`.")}))},shape:function(t){return l((function(e,n,r,a,o){var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+a+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var s in t){var d=t[s];if(d){var p=d(l,s,r,a,o+"."+s,nR);if(p)return p}}return null}))},exact:function(t){return l((function(e,n,r,a,o){var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+a+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var s=eR({},e[n],t);for(var d in s){var p=t[d];if(!p)return new i("Invalid "+a+" `"+o+"` key `"+d+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var f=p(l,d,r,a,o+"."+d,nR);if(f)return f}return null}))}};function o(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function i(t){this.message=t,this.stack=""}function l(t){if("production"!==process.env.NODE_ENV)var n={},a=0;function o(o,l,c,s,u,d,p){if(s=s||r,d=d||c,p!==nR){if(e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var m=s+":"+c;!n[m]&&a<3&&(uR("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,a++)}}return null==l[c]?o?null===l[c]?new i("The "+u+" `"+d+"` is marked as required in `"+s+"`, but its value is `null`."):new i("The "+u+" `"+d+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:t(l,c,s,u,d)}var l=o.bind(null,!1);return l.isRequired=o.bind(null,!0),l}function c(t){return l((function(e,n,r,a,o,l){var c=e[n];return u(c)!==t?new i("Invalid "+a+" `"+o+"` of type `"+d(c)+"` supplied to `"+r+"`, expected `"+t+"`."):null}))}function s(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(s);if(null===e||t(e))return!0;var r=function(t){var e=t&&(n&&t[n]||t["@@iterator"]);if("function"==typeof e)return e}(e);if(!r)return!1;var a,o=r.call(e);if(r!==e.entries){for(;!(a=o.next()).done;)if(!s(a.value))return!1}else for(;!(a=o.next()).done;){var i=a.value;if(i&&!s(i[1]))return!1}return!0;default:return!1}}function u(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function d(t){if(null==t)return""+t;var e=u(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function p(t){var e=d(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return i.prototype=Error.prototype,a.checkPropTypes=cR,a.resetWarningCache=cR.resetWarningCache,a.PropTypes=a,a};function fR(){}function mR(){}mR.resetWarningCache=fR;var hR=F((function(t){if("production"!==process.env.NODE_ENV){var e=XD;t.exports=pR(e.isElement,!0)}else t.exports=function(){function t(t,e,n,r,a,o){if(o!==nR){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:mR,resetWarningCache:fR};return n.PropTypes=n,n}()})),gR=F((function(t,e){e.__esModule=!0,e.resizableProps=void 0;var n=function(t){return t&&t.__esModule?t:{default:t}}(hR);var r={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:n.default.number.isRequired,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:n.default.number.isRequired};e.resizableProps=r})),bR=F((function(t,e){e.__esModule=!0,e.default=void 0;var n=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var l=o?Object.getOwnPropertyDescriptor(t,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=t[i]}r.default=t,n&&n.set(t,r);return r}(d.default),r=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(t){var e,a;function i(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).handleRefs={},e.lastHandleRect=null,e.slack=null,e}a=t,(e=i).prototype=Object.create(a.prototype),e.prototype.constructor=e,s(e,a);var c=i.prototype;return c.componentWillUnmount=function(){this.resetData()},c.resetData=function(){this.lastHandleRect=this.slack=null},c.runConstraints=function(t,e){var n=this.props,r=n.minConstraints,a=n.maxConstraints,o=n.lockAspectRatio;if(!r&&!a&&!o)return[t,e];if(o){var i=this.props.width/this.props.height,l=t-this.props.width,c=e-this.props.height;Math.abs(l)>Math.abs(c*i)?e=t/i:t=e*i}var s=t,u=e,d=this.slack||[0,0],p=d[0],f=d[1];return t+=p,e+=f,r&&(t=Math.max(r[0],t),e=Math.max(r[1],e)),a&&(t=Math.min(a[0],t),e=Math.min(a[1],e)),this.slack=[p+(s-t),f+(u-e)],[t,e]},c.resizeHandler=function(t,e){var n=this;return function(r,a){var o=a.node,i=a.deltaX,l=a.deltaY;"onResizeStart"===t&&n.resetData();var c=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==e&&"s"!==e,s=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==e&&"w"!==e;if(c||s){var u=e[0],d=e[e.length-1],p=o.getBoundingClientRect();if(null!=n.lastHandleRect){if("w"===d)i+=p.left-n.lastHandleRect.left;if("n"===u)l+=p.top-n.lastHandleRect.top}n.lastHandleRect=p,"w"===d&&(i=-i),"n"===u&&(l=-l);var f=n.props.width+(c?i/n.props.transformScale:0),m=n.props.height+(s?l/n.props.transformScale:0),h=n.runConstraints(f,m);f=h[0],m=h[1];var g=f!==n.props.width||m!==n.props.height,b="function"==typeof n.props[t]?n.props[t]:null;b&&!("onResize"===t&&!g)&&(null==r.persist||r.persist(),b(r,{node:o,size:{width:f,height:m},handle:e})),"onResizeStop"===t&&n.resetData()}}},c.renderResizeHandle=function(t,e){var r=this.props.handle;if(!r)return n.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t,ref:e});if("function"==typeof r)return r(t,e);var a=l({ref:e},"string"==typeof r.type?{}:{handleAxis:t});return n.cloneElement(r,a)},c.render=function(){var t=this,e=this.props,a=e.children,i=e.className,c=e.draggableOpts;e.width,e.height,e.handle,e.handleSize,e.lockAspectRatio,e.axis,e.minConstraints,e.maxConstraints,e.onResize,e.onResizeStop,e.onResizeStart;var s=e.resizeHandles;e.transformScale;var u=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(e,r);return(0,SD.cloneElement)(a,l(l({},u),{},{className:(i?i+" ":"")+"react-resizable",children:[].concat(a.props.children,s.map((function(e){var r,a=null!=(r=t.handleRefs[e])?r:t.handleRefs[e]=n.createRef();return n.createElement(h.default.DraggableCore,o({},c,{nodeRef:a,key:"resizableHandle-"+e,onStop:t.resizeHandler("onResizeStop",e),onStart:t.resizeHandler("onResizeStart",e),onDrag:t.resizeHandler("onResize",e)}),t.renderResizeHandle(e,a))})))}))},i}(n.Component);e.default=u,u.propTypes=gR.resizableProps,u.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}})),vR=F((function(t,e){e.__esModule=!0,e.default=void 0;var n=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var i=a?Object.getOwnPropertyDescriptor(t,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=t[o]}r.default=t,n&&n.set(t,r);return r}(d.default),r=i(hR),a=i(bR),o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(t){return t&&t.__esModule?t:{default:t}}function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var m=function(t){var e,r;function i(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).state={width:e.props.width,height:e.props.height,propsWidth:e.props.width,propsHeight:e.props.height},e.onResize=function(t,n){var r=n.size;e.props.onResize?(null==t.persist||t.persist(),e.setState(r,(function(){return e.props.onResize&&e.props.onResize(t,n)}))):e.setState(r)},e}return r=t,(e=i).prototype=Object.create(r.prototype),e.prototype.constructor=e,f(e,r),i.getDerivedStateFromProps=function(t,e){return e.propsWidth!==t.width||e.propsHeight!==t.height?{width:t.width,height:t.height,propsWidth:t.width,propsHeight:t.height}:null},i.prototype.render=function(){var t=this.props,e=t.handle,r=t.handleSize;t.onResize;var i=t.onResizeStart,l=t.onResizeStop,s=t.draggableOpts,d=t.minConstraints,p=t.maxConstraints,f=t.lockAspectRatio,m=t.axis;t.width,t.height;var h=t.resizeHandles,g=t.style,b=t.transformScale,v=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(t,o);return n.createElement(a.default,{axis:m,draggableOpts:s,handle:e,handleSize:r,height:this.state.height,lockAspectRatio:f,maxConstraints:p,minConstraints:d,onResizeStart:i,onResize:this.onResize,onResizeStop:l,resizeHandles:h,transformScale:b,width:this.state.width},n.createElement("div",c({},v,{style:u(u({},g),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},i}(n.Component);e.default=m,m.propTypes=u(u({},gR.resizableProps),{},{children:r.default.element})})),yR=bR.default;vR.default;const xR=t=>{const{onResize:e,width:r,...a}=t;return r?n.jsx(yR,Object.assign({width:r,height:0,handle:n.jsx("span",{className:"react-resizable-handle",onClick:t=>{t.stopPropagation()}},void 0),onResize:e,draggableOpts:{enableUserSelectHack:!1}},{children:n.jsx("th",Object.assign({},a),void 0)}),void 0):n.jsx("th",Object.assign({},a),void 0)};var wR,kR=t.createContext({dragDropManager:void 0});function CR(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];if("production"!==process.env.NODE_ENV&&void 0===e)throw new Error("invariant requires an error message argument");if(!t){var o;if(void 0===e)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;(o=new Error(e.replace(/%s/g,(function(){return r[i++]})))).name="Invariant Violation"}throw o.framesToPop=1,o}}!function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"}(wR||(wR={}));var ER="dnd-core/INIT_COORDS",OR="dnd-core/BEGIN_DRAG",SR="dnd-core/PUBLISH_DRAG_SOURCE",NR="dnd-core/HOVER",PR="dnd-core/DROP",jR="dnd-core/END_DRAG";function TR(t,e){return{type:ER,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function IR(t){return(IR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function DR(t,e,n){return e.split(".").reduce((function(t,e){return t&&t[e]?t[e]:n||null}),t)}function RR(t,e){return t.filter((function(t){return t!==e}))}function MR(t){return"object"===IR(t)}function zR(t,e){var n=new Map,r=function(t){n.set(t,n.has(t)?n.get(t)+1:1)};t.forEach(r),e.forEach(r);var a=[];return n.forEach((function(t,e){1===t&&a.push(e)})),a}var AR={type:ER,payload:{clientOffset:null,sourceClientOffset:null}};function LR(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,a=void 0===r||r,o=n.clientOffset,i=n.getSourceClientOffset,l=t.getMonitor(),c=t.getRegistry();t.dispatch(TR(o)),_R(e,l,c);var s=KR(e,l);if(null!==s){var u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");FR(i),u=i(s)}t.dispatch(TR(o,u));var d=c.getSource(s),p=d.beginDrag(l,s);if(null!=p){VR(p),c.pinSource(s);var f=c.getSourceType(s);return{type:OR,payload:{itemType:f,item:p,sourceId:s,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!a}}}}else t.dispatch(AR)}}function _R(t,e,n){CR(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach((function(t){CR(n.getSource(t),"Expected sourceIds to be registered.")}))}function FR(t){CR("function"==typeof t,"When clientOffset is provided, getSourceClientOffset must be a function.")}function VR(t){CR(MR(t),"Item must be an object.")}function KR(t,e){for(var n=null,r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function HR(t){return function(){if(t.getMonitor().isDragging())return{type:SR}}}function BR(t,e){return null===e?null===t:Array.isArray(t)?t.some((function(t){return t===e})):t===e}function UR(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.clientOffset;WR(e);var a=e.slice(0),o=t.getMonitor(),i=t.getRegistry();YR(a,o,i);var l=o.getItemType();return $R(a,i,l),qR(a,o,i),{type:NR,payload:{targetIds:a,clientOffset:r||null}}}}function WR(t){CR(Array.isArray(t),"Expected targetIds to be an array.")}function YR(t,e,n){CR(e.isDragging(),"Cannot call hover while not dragging."),CR(!e.didDrop(),"Cannot call hover after drop.");for(var r=0;r<t.length;r++){var a=t[r];CR(t.lastIndexOf(a)===r,"Expected targetIds to be unique in the passed array."),CR(n.getTarget(a),"Expected targetIds to be registered.")}}function $R(t,e,n){for(var r=t.length-1;r>=0;r--){var a=t[r];BR(e.getTargetType(a),n)||t.splice(r,1)}}function qR(t,e,n){t.forEach((function(t){n.getTarget(t).hover(e,t)}))}function GR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function XR(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?GR(Object(n),!0).forEach((function(e){ZR(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):GR(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ZR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function JR(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getMonitor(),r=t.getRegistry();QR(n);var a=eM(n);a.forEach((function(a,o){var i=tM(a,o,r,n),l={type:PR,payload:{dropResult:XR(XR({},e),i)}};t.dispatch(l)}))}}function QR(t){CR(t.isDragging(),"Cannot call drop while not dragging."),CR(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function tM(t,e,n,r){var a=n.getTarget(t),o=a?a.drop(r,t):void 0;return function(t){CR(void 0===t||MR(t),"Drop result must either be an object or undefined.")}(o),void 0===o&&(o=0===e?{}:r.getDropResult()),o}function eM(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function nM(t){return function(){var e=t.getMonitor(),n=t.getRegistry();!function(t){CR(t.isDragging(),"Cannot call endDrag while not dragging.")}(e);var r=e.getSourceId();null!=r&&(n.getSource(r,!0).endDrag(e,r),n.unpinSource());return{type:jR}}}function rM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function aM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var oM=function(){function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),aM(this,"store",void 0),aM(this,"monitor",void 0),aM(this,"backend",void 0),aM(this,"isSetUp",!1),aM(this,"handleRefCountChange",(function(){var t=r.store.getState().refCount>0;r.backend&&(t&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!t&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))})),this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}var e,n,r;return e=t,(n=[{key:"receiveBackend",value:function(t){this.backend=t}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var t=this,e=this.store.dispatch,n=function(t){return{beginDrag:LR(t),publishDragSource:HR(t),hover:UR(t),drop:JR(t),endDrag:nM(t)}}(this);return Object.keys(n).reduce((function(r,a){var o,i=n[a];return r[a]=(o=i,function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];var i=o.apply(t,r);void 0!==i&&e(i)}),r}),{})}},{key:"dispatch",value:function(t){this.store.dispatch(t)}}])&&rM(e.prototype,n),r&&rM(e,r),t}();function iM(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var lM="function"==typeof Symbol&&Symbol.observable||"@@observable",cM=function(){return Math.random().toString(36).substring(7).split("").join(".")},sM={INIT:"@@redux/INIT"+cM(),REPLACE:"@@redux/REPLACE"+cM(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+cM()}};function uM(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function dM(t){if(void 0===t)return"undefined";if(null===t)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(function(t){return t instanceof Date||"function"==typeof t.toDateString&&"function"==typeof t.getDate&&"function"==typeof t.setDate}(t))return"date";if(function(t){return t instanceof Error||"string"==typeof t.message&&t.constructor&&"number"==typeof t.constructor.stackTraceLimit}(t))return"error";var n=function(t){return"function"==typeof t.constructor?t.constructor.name:null}(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function pM(t){var e=typeof t;return"production"!==process.env.NODE_ENV&&(e=dM(t)),e}function fM(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?iM(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?iM(1):"Expected the enhancer to be a function. Instead, received: '"+pM(n)+"'");return n(fM)(t,e)}if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?iM(2):"Expected the root reducer to be a function. Instead, received: '"+pM(t)+"'");var a=t,o=e,i=[],l=i,c=!1;function s(){l===i&&(l=i.slice())}function u(){if(c)throw new Error("production"===process.env.NODE_ENV?iM(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(t){if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?iM(4):"Expected the listener to be a function. Instead, received: '"+pM(t)+"'");if(c)throw new Error("production"===process.env.NODE_ENV?iM(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var e=!0;return s(),l.push(t),function(){if(e){if(c)throw new Error("production"===process.env.NODE_ENV?iM(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");e=!1,s();var n=l.indexOf(t);l.splice(n,1),i=null}}}function p(t){if(!uM(t))throw new Error("production"===process.env.NODE_ENV?iM(7):"Actions must be plain objects. Instead, the actual type was: '"+pM(t)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(void 0===t.type)throw new Error("production"===process.env.NODE_ENV?iM(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?iM(9):"Reducers may not dispatch actions.");try{c=!0,o=a(o,t)}finally{c=!1}for(var e=i=l,n=0;n<e.length;n++){(0,e[n])()}return t}function f(t){if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?iM(10):"Expected the nextReducer to be a function. Instead, received: '"+pM(t));a=t,p({type:sM.REPLACE})}function m(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error("production"===process.env.NODE_ENV?iM(11):"Expected the observer to be an object. Instead, received: '"+pM(t)+"'");function n(){t.next&&t.next(u())}return n(),{unsubscribe:e(n)}}})[lM]=function(){return this},t}return p({type:sM.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:f})[lM]=m,r}function mM(){}"production"!==process.env.NODE_ENV&&"string"==typeof mM.name&&"isCrushed"!==mM.name&&function(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t);try{throw new Error(t)}catch(t){}}('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.');var hM=function(t,e){return t===e};function gM(t,e){return!t&&!e||!(!t||!e)&&(t.x===e.x&&t.y===e.y)}function bM(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hM;if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function vM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yM(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vM(Object(n),!0).forEach((function(e){xM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vM(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wM={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function kM(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wM,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case ER:case OR:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case NR:return gM(t.clientOffset,n.clientOffset)?t:yM(yM({},t),{},{clientOffset:n.clientOffset});case jR:case PR:return wM;default:return t}}var CM="dnd-core/ADD_SOURCE",EM="dnd-core/ADD_TARGET",OM="dnd-core/REMOVE_SOURCE",SM="dnd-core/REMOVE_TARGET";function NM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function PM(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?NM(Object(n),!0).forEach((function(e){jM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):NM(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function jM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var TM={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function IM(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:TM,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case OR:return PM(PM({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case SR:return PM(PM({},t),{},{isSourcePublic:!0});case NR:return PM(PM({},t),{},{targetIds:n.targetIds});case SM:return-1===t.targetIds.indexOf(n.targetId)?t:PM(PM({},t),{},{targetIds:RR(t.targetIds,n.targetId)});case PR:return PM(PM({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case jR:return PM(PM({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function DM(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case CM:case EM:return t+1;case OM:case SM:return t-1;default:return t}}var RM=[],MM=[];function zM(t,e){return t!==RM&&(t===MM||void 0===e||(n=t,e.filter((function(t){return n.indexOf(t)>-1}))).length>0);var n}function AM(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case NR:break;case CM:case EM:case SM:case OM:return RM;case OR:case SR:case jR:case PR:default:return MM}var e=t.payload,n=e.targetIds,r=void 0===n?[]:n,a=e.prevTargetIds,o=void 0===a?[]:a,i=zR(r,o),l=i.length>0||!bM(r,o);if(!l)return RM;var c=o[o.length-1],s=r[r.length-1];return c!==s&&(c&&i.push(c),s&&i.push(s)),i}function LM(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t+1}function _M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function FM(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_M(Object(n),!0).forEach((function(e){VM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_M(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function VM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function KM(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:AM(t.dirtyHandlerIds,{type:e.type,payload:FM(FM({},e.payload),{},{prevTargetIds:DR(t,"dragOperation.targetIds",[])})}),dragOffset:kM(t.dragOffset,e),refCount:DM(t.refCount,e),dragOperation:IM(t.dragOperation,e),stateId:LM(t.stateId)}}function HM(t,e){return{x:t.x-e.x,y:t.y-e.y}}function BM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function UM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}RM.__IS_NONE__=!0,MM.__IS_ALL__=!0;var WM=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),UM(this,"store",void 0),UM(this,"registry",void 0),this.store=e,this.registry=n}var e,n,r;return e=t,(n=[{key:"subscribeToStateChange",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},r=n.handlerIds;CR("function"==typeof t,"listener must be a function."),CR(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");var a=this.store.getState().stateId,o=function(){var n=e.store.getState(),o=n.stateId;try{o===a||o===a+1&&!zM(n.dirtyHandlerIds,r)||t()}finally{a=o}};return this.store.subscribe(o)}},{key:"subscribeToOffsetChange",value:function(t){var e=this;CR("function"==typeof t,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=e.store.getState().dragOffset;r!==n&&(n=r,t())}))}},{key:"canDragSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t);return CR(e,"Expected to find a valid source. sourceId=".concat(t)),!this.isDragging()&&e.canDrag(this,t)}},{key:"canDropOnTarget",value:function(t){if(!t)return!1;var e=this.registry.getTarget(t);return CR(e,"Expected to find a valid target. targetId=".concat(t)),!(!this.isDragging()||this.didDrop())&&BR(this.registry.getTargetType(t),this.getItemType())&&e.canDrop(this,t)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t,!0);return CR(e,"Expected to find a valid source. sourceId=".concat(t)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(t)===this.getItemType()&&e.isDragging(this,t)}},{key:"isOverTarget",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!t)return!1;var n=e.shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(t),a=this.getItemType();if(a&&!BR(r,a))return!1;var o=this.getTargetIds();if(!o.length)return!1;var i=o.indexOf(t);return n?i===o.length-1:i>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return t=this.store.getState().dragOffset,e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset,e&&n&&r?HM(function(t,e){return{x:t.x+e.x,y:t.y+e.y}}(e,r),n):null;var t,e,n,r}},{key:"getDifferenceFromInitialOffset",value:function(){return t=this.store.getState().dragOffset,e=t.clientOffset,n=t.initialClientOffset,e&&n?HM(e,n):null;var t,e,n}}])&&BM(e.prototype,n),r&&BM(e,r),t}(),YM=0;function $M(t){return($M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qM(t,e){e&&Array.isArray(t)?t.forEach((function(t){return qM(t,!1)})):CR("string"==typeof t||"symbol"===$M(t),e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const GM="undefined"!=typeof global?global:self,XM=GM.MutationObserver||GM.WebKitMutationObserver;function ZM(t){return function(){const e=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(e),clearInterval(n),t()}}}const JM="function"==typeof XM?function(t){let e=1;const n=new XM(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}:ZM;class QM{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,e){this.onError=t,this.release=e,this.task=null}}const tz=new class{enqueueTask(t){const{queue:e,requestFlush:n}=this;e.length||(n(),this.flushing=!0),e[e.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const e=this.index;if(this.index++,t[e].call(),this.index>this.capacity){for(let e=0,n=t.length-this.index;e<n;e++)t[e]=t[e+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=JM(this.flush),this.requestErrorThrow=ZM((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},ez=new class{create(t){const e=this.freeTasks,n=e.length?e.pop():new QM(this.onError,(t=>e[e.length]=t));return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}(tz.registerPendingError);function nz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function rz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function az(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return oz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oz(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function iz(t){var e=(YM++).toString();switch(t){case wR.SOURCE:return"S".concat(e);case wR.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function lz(t){switch(t[0]){case"S":return wR.SOURCE;case"T":return wR.TARGET;default:CR(!1,"Cannot parse handler ID: ".concat(t))}}function cz(t,e){var n=t.entries(),r=!1;do{var a=n.next(),o=a.done;if(az(a.value,2)[1]===e)return!0;r=!!o}while(!r);return!1}var sz=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),rz(this,"types",new Map),rz(this,"dragSources",new Map),rz(this,"dropTargets",new Map),rz(this,"pinnedSourceId",null),rz(this,"pinnedSource",null),rz(this,"store",void 0),this.store=e}var e,n,r;return e=t,(n=[{key:"addSource",value:function(t,e){qM(t),function(t){CR("function"==typeof t.canDrag,"Expected canDrag to be a function."),CR("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),CR("function"==typeof t.endDrag,"Expected endDrag to be a function.")}(e);var n=this.addHandler(wR.SOURCE,t,e);return this.store.dispatch(function(t){return{type:CM,payload:{sourceId:t}}}(n)),n}},{key:"addTarget",value:function(t,e){qM(t,!0),function(t){CR("function"==typeof t.canDrop,"Expected canDrop to be a function."),CR("function"==typeof t.hover,"Expected hover to be a function."),CR("function"==typeof t.drop,"Expected beginDrag to be a function.")}(e);var n=this.addHandler(wR.TARGET,t,e);return this.store.dispatch(function(t){return{type:EM,payload:{targetId:t}}}(n)),n}},{key:"containsHandler",value:function(t){return cz(this.dragSources,t)||cz(this.dropTargets,t)}},{key:"getSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];CR(this.isSourceId(t),"Expected a valid source ID.");var n=e&&t===this.pinnedSourceId,r=n?this.pinnedSource:this.dragSources.get(t);return r}},{key:"getTarget",value:function(t){return CR(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}},{key:"getSourceType",value:function(t){return CR(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}},{key:"getTargetType",value:function(t){return CR(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}},{key:"isSourceId",value:function(t){return lz(t)===wR.SOURCE}},{key:"isTargetId",value:function(t){return lz(t)===wR.TARGET}},{key:"removeSource",value:function(t){var e,n=this;CR(this.getSource(t),"Expected an existing source."),this.store.dispatch(function(t){return{type:OM,payload:{sourceId:t}}}(t)),e=function(){n.dragSources.delete(t),n.types.delete(t)},tz.enqueueTask(ez.create(e))}},{key:"removeTarget",value:function(t){CR(this.getTarget(t),"Expected an existing target."),this.store.dispatch(function(t){return{type:SM,payload:{targetId:t}}}(t)),this.dropTargets.delete(t),this.types.delete(t)}},{key:"pinSource",value:function(t){var e=this.getSource(t);CR(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e}},{key:"unpinSource",value:function(){CR(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(t,e,n){var r=iz(t);return this.types.set(r,e),t===wR.SOURCE?this.dragSources.set(r,n):t===wR.TARGET&&this.dropTargets.set(r,n),r}}])&&nz(e.prototype,n),r&&nz(e,r),t}();function uz(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=dz(r),o=new WM(a,new sz(a)),i=new oM(a,o),l=t(i,e,n);return i.receiveBackend(l),i}function dz(t){var e="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return fM(KM,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var pz=["children"];function fz(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return mz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mz(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function hz(t,e){if(null==t)return{};var n,r,a=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}var gz=0,bz=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),vz=t.memo((function(e){var r=e.children,a=fz(function(t){if("manager"in t){return[{dragDropManager:t.manager},!1]}var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yz(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a=e;a[bz]||(a[bz]={dragDropManager:uz(t,e,n,r)});return a[bz]}(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}(hz(e,pz)),2),o=a[0],i=a[1];return t.useEffect((function(){if(i){var t=yz();return++gz,function(){0==--gz&&(t[bz]=null)}}}),[]),n.jsx(kR.Provider,Object.assign({value:o},{children:r}),void 0)}));function yz(){return"undefined"!=typeof global?global:window}function xz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var kz=!1,Cz=!1,Ez=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),wz(this,"internalMonitor",void 0),wz(this,"sourceId",null),this.internalMonitor=e.getMonitor()}var e,n,r;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.sourceId=t}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){CR(!kz,"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 kz=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{kz=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;CR(!Cz,"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 Cz=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Cz=!1}}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"isDraggingSource",value:function(t){return this.internalMonitor.isDraggingSource(t)}},{key:"isOverTarget",value:function(t,e){return this.internalMonitor.isOverTarget(t,e)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(t){return this.internalMonitor.subscribeToOffsetChange(t)}},{key:"canDragSource",value:function(t){return this.internalMonitor.canDragSource(t)}},{key:"canDropOnTarget",value:function(t){return this.internalMonitor.canDropOnTarget(t)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&xz(e.prototype,n),r&&xz(e,r),t}();function Oz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Sz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Nz=!1,Pz=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Sz(this,"internalMonitor",void 0),Sz(this,"targetId",null),this.internalMonitor=e.getMonitor()}var e,n,r;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.targetId=t}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;CR(!Nz,"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 Nz=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Nz=!1}}},{key:"isOver",value:function(t){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,t)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&Oz(e.prototype,n),r&&Oz(e,r),t}();function jz(t){if("string"!=typeof t.type){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function Tz(e){var n={};return Object.keys(e).forEach((function(r){var a=e[r];if(r.endsWith("Ref"))n[r]=e[r];else{var o=function(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t.isValidElement(n)){var a=n;return e(a,r),a}var o=n;return jz(o),Dz(o,r?function(t){return e(t,r)}:e)}}(a);n[r]=function(){return o}}})),n}function Iz(t,e){"function"==typeof t?t(e):t.current=e}function Dz(e,n){var r=e.ref;return CR("string"!=typeof r,"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"),r?t.cloneElement(e,{ref:function(t){Iz(r,t),Iz(n,t)}}):t.cloneElement(e,{ref:n})}function Rz(t){return(Rz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mz(t){return null!==t&&"object"===Rz(t)&&Object.prototype.hasOwnProperty.call(t,"current")}function zz(t,e,n,r){var a=n?n.call(r,t,e):void 0;if(void 0!==a)return!!a;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var o=Object.keys(t),i=Object.keys(e);if(o.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(e),c=0;c<o.length;c++){var s=o[c];if(!l(s))return!1;var u=t[s],d=e[s];if(!1===(a=n?n.call(r,u,d,s):void 0)||void 0===a&&u!==d)return!1}return!0}function Az(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Lz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _z=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Lz(this,"hooks",Tz({dragSource:function(t,e){n.clearDragSource(),n.dragSourceOptions=e||null,Mz(t)?n.dragSourceRef=t:n.dragSourceNode=t,n.reconnectDragSource()},dragPreview:function(t,e){n.clearDragPreview(),n.dragPreviewOptions=e||null,Mz(t)?n.dragPreviewRef=t:n.dragPreviewNode=t,n.reconnectDragPreview()}})),Lz(this,"handlerId",null),Lz(this,"dragSourceRef",null),Lz(this,"dragSourceNode",void 0),Lz(this,"dragSourceOptionsInternal",null),Lz(this,"dragSourceUnsubscribe",void 0),Lz(this,"dragPreviewRef",null),Lz(this,"dragPreviewNode",void 0),Lz(this,"dragPreviewOptionsInternal",null),Lz(this,"dragPreviewUnsubscribe",void 0),Lz(this,"lastConnectedHandlerId",null),Lz(this,"lastConnectedDragSource",null),Lz(this,"lastConnectedDragSourceOptions",null),Lz(this,"lastConnectedDragPreview",null),Lz(this,"lastConnectedDragPreviewOptions",null),Lz(this,"backend",void 0),this.backend=e}var e,n,r;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(t){this.dragSourceOptionsInternal=t}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(t){this.dragPreviewOptionsInternal=t}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var t=this.dragSource,e=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();e&&this.disconnectDragSource(),this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)):this.lastConnectedDragSource=t)}},{key:"reconnectDragPreview",value:function(){var t=this.dragPreview,e=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();e&&this.disconnectDragPreview(),this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!zz(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!zz(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}}])&&Az(e.prototype,n),r&&Az(e,r),t}();function Fz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Vz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Kz=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Vz(this,"hooks",Tz({dropTarget:function(t,e){n.clearDropTarget(),n.dropTargetOptions=e,Mz(t)?n.dropTargetRef=t:n.dropTargetNode=t,n.reconnect()}})),Vz(this,"handlerId",null),Vz(this,"dropTargetRef",null),Vz(this,"dropTargetNode",void 0),Vz(this,"dropTargetOptionsInternal",null),Vz(this,"unsubscribeDropTarget",void 0),Vz(this,"lastConnectedHandlerId",null),Vz(this,"lastConnectedDropTarget",null),Vz(this,"lastConnectedDropTargetOptions",null),Vz(this,"backend",void 0),this.backend=e}var e,n,r;return e=t,(n=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();var e=this.dropTarget;this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=e,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,e,this.dropTargetOptions)):this.lastConnectedDropTarget=e)}},{key:"receiveHandlerId",value:function(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(t){this.dropTargetOptionsInternal=t}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!zz(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}}])&&Fz(e.prototype,n),r&&Fz(e,r),t}();var Hz="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function Bz(t){return(Bz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Uz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Wz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Yz=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Wz(this,"spec",void 0),Wz(this,"monitor",void 0),Wz(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=r}var e,n,r;return e=t,(n=[{key:"beginDrag",value:function(){var t,e=this.spec,n=this.monitor;return null!==(t="object"===Bz(e.item)?e.item:"function"==typeof e.item?e.item(n):{})&&void 0!==t?t:null}},{key:"canDrag",value:function(){var t=this.spec,e=this.monitor;return"boolean"==typeof t.canDrag?t.canDrag:"function"!=typeof t.canDrag||t.canDrag(e)}},{key:"isDragging",value:function(t,e){var n=this.spec,r=this.monitor,a=n.isDragging;return a?a(r):e===t.getSourceId()}},{key:"endDrag",value:function(){var t=this.spec,e=this.monitor,n=this.connector,r=t.end;r&&r(e.getItem(),e),n.reconnect()}}])&&Uz(e.prototype,n),r&&Uz(e,r),t}();function $z(){var e=t.useContext(kR).dragDropManager;return CR(null!=e,"Expected drag drop context"),e}function qz(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Gz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gz(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Xz(e,n,r){var a=$z(),o=function(e,n,r){var a=t.useMemo((function(){return new Yz(e,n,r)}),[n,r]);return t.useEffect((function(){a.spec=e}),[e]),a}(e,n,r),i=function(e){return t.useMemo((function(){var t=e.type;return CR(null!=t,"spec.type must be defined"),t}),[e])}(e);Hz((function(){if(null!=i){var t=qz(function(t,e,n){var r=n.getRegistry(),a=r.addSource(t,e);return[a,function(){return r.removeSource(a)}]}(i,o,a),2),e=t[0],l=t[1];return n.receiveHandlerId(e),r.receiveHandlerId(e),l}}),[a,n,r,o,i])}function Zz(t){return function(t){if(Array.isArray(t))return Jz(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Jz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jz(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Qz(e,n){var r=Zz(n||[]);return null==n&&"function"!=typeof e&&r.push(e),t.useMemo((function(){return"function"==typeof e?e():e}),r)}var tA=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,a,o;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(a=r;0!=a--;)if(!t(e[a],n[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(o=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(a=r;0!=a--;)if(!Object.prototype.hasOwnProperty.call(n,o[a]))return!1;for(a=r;0!=a--;){var i=o[a];if(!t(e[i],n[i]))return!1}return!0}return e!=e&&n!=n};function eA(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return nA(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nA(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nA(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function rA(e,n,r){var a=eA(t.useState((function(){return n(e)})),2),o=a[0],i=a[1],l=t.useCallback((function(){var t=n(e);tA(o,t)||(i(t),r&&r())}),[o,e,r]);return Hz(l),[o,l]}function aA(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return oA(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oA(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oA(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function iA(t,e,n){return function(t,e,n){var r=aA(rA(t,e,n),2),a=r[0],o=r[1];return Hz((function(){var e=t.getHandlerId();if(null!=e)return t.subscribeToStateChange(o,{handlerIds:[e]})}),[t,o]),a}(e,t||function(){return{}},(function(){return n.reconnect()}))}function lA(e){return t.useMemo((function(){return e.hooks.dragSource()}),[e])}function cA(e){return t.useMemo((function(){return e.hooks.dragPreview()}),[e])}function sA(e,n){var r=Qz(e,n);CR(!r.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 a,o=(a=$z(),t.useMemo((function(){return new Ez(a)}),[a])),i=function(e,n){var r=$z(),a=t.useMemo((function(){return new _z(r.getBackend())}),[r]);return Hz((function(){return a.dragSourceOptions=e||null,a.reconnect(),function(){return a.disconnectDragSource()}}),[a,e]),Hz((function(){return a.dragPreviewOptions=n||null,a.reconnect(),function(){return a.disconnectDragPreview()}}),[a,n]),a}(r.options,r.previewOptions);return Xz(r,o,i),[iA(r.collect,o,i),lA(i),cA(i)]}function uA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function dA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pA=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),dA(this,"spec",void 0),dA(this,"monitor",void 0),this.spec=e,this.monitor=n}var e,n,r;return e=t,(n=[{key:"canDrop",value:function(){var t=this.spec,e=this.monitor;return!t.canDrop||t.canDrop(e.getItem(),e)}},{key:"hover",value:function(){var t=this.spec,e=this.monitor;t.hover&&t.hover(e.getItem(),e)}},{key:"drop",value:function(){var t=this.spec,e=this.monitor;if(t.drop)return t.drop(e.getItem(),e)}}])&&uA(e.prototype,n),r&&uA(e,r),t}();function fA(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return mA(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mA(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mA(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function hA(e,n,r){var a=$z(),o=function(e,n){var r=t.useMemo((function(){return new pA(e,n)}),[n]);return t.useEffect((function(){r.spec=e}),[e]),r}(e,n),i=function(e){var n=e.accept;return t.useMemo((function(){return CR(null!=e.accept,"accept must be defined"),Array.isArray(n)?n:[n]}),[n])}(e);Hz((function(){var t=fA(function(t,e,n){var r=n.getRegistry(),a=r.addTarget(t,e);return[a,function(){return r.removeTarget(a)}]}(i,o,a),2),e=t[0],l=t[1];return n.receiveHandlerId(e),r.receiveHandlerId(e),l}),[a,n,o,r,i.map((function(t){return t.toString()})).join("|")])}function gA(e){return t.useMemo((function(){return e.hooks.dropTarget()}),[e])}function bA(e,n){var r,a=Qz(e,n),o=(r=$z(),t.useMemo((function(){return new Pz(r)}),[r])),i=function(e){var n=$z(),r=t.useMemo((function(){return new Kz(n.getBackend())}),[n]);return Hz((function(){return r.dropTargetOptions=e||null,r.reconnect(),function(){return r.disconnectDropTarget()}}),[e]),r}(a.options);return hA(a,o,i),[iA(a.collect,o,i),gA(i)]}y('.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;position:relative;min-width:50px;min-height:20px}.editable-row:hover .editable-cell-value-wrap:after,[data-theme=dark] .editable-row:hover .editable-cell-value-wrap:after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;z-index:1;border:1px dashed #5860f8}');const{Option:vA}=Kd,yA=d.default.createContext(null),xA=({open:e,index:r,moveRow:a,className:o,style:i,...l})=>{const[c]=Fk.useForm(),s=t.useRef(null),[{isOver:u,dropClassName:d},p]=bA({accept:"DraggableBodyRow",collect:t=>{const{index:e}=t.getItem()||{};return e===r?{}:{isOver:t.isOver(),dropClassName:e<r?" drop-over-downward":" drop-over-upward"}},drop:t=>{a(t.index,r)}}),[,f]=sA({type:"DraggableBodyRow",item:{index:r},collect:t=>({isDragging:t.isDragging()})});return e&&p(f(s)),n.jsx(Fk,Object.assign({size:"small",component:!1,form:c},{children:n.jsx(yA.Provider,Object.assign({value:c},{children:n.jsx("tr",Object.assign({ref:s,className:`${o}${u?d:""}`,style:{cursor:e?"move":"auto",...i}},l),void 0)}),void 0)}),void 0)},wA=({columns:e,record:r,dataIndex:a,title:o,editable:i,inputType:l,valueType:c,valueEnum:s,recordSelectField:u,controlRender:d,formChange:f,remoteConfig:m,children:h,formItemProps:b,handleSave:v,...y})=>{const x=t.useContext(yA),[w,k]=t.useState(!1),[C,E]=t.useState(!1),[O,S]=t.useState({}),N=t.useRef(null);t.useEffect((()=>{w&&N.current.focus()}),[w]);const P=(t,e,n,r)=>{r&&(E(!0),r(t,n).then((t=>{E(!1),e&&S({[e]:t})})))},j=()=>{T()},T=()=>{k(!1)},I=()=>{void 0!==r[a]&&null!==r[a]&&""!==r[a]&&("DatePicker"!==c&&"DateTimePicker"!==c||(r[a]=g.default(r[a])),"status"===a&&(r[a]=String(r[a]))),k(!w),x.setFieldsValue({[a]:r[a]})},D=t=>{const e={DateTimePicker:"YYYY-MM-DD HH:mm:ss",DatePicker:"YYYY-MM-DD"};return Object.keys(e).includes(c)&&t[a]&&(t[a]=t[a].format(e[c])),t},R=()=>{if(c&&a){if(s&&("Select"===c||"AutoComplete"===c)||"RemoteSearch"===c)return oD(s,r[a]);if(r[u]&&"RecordSelect"===c)return oD(r[u],r[a]);if(g.default.isMoment(r[a]))return D(r)[a]}return h},M=(t,e)=>{let o=null;const i=(t,e)=>{let n="";const r=function(t){for(let e of t)if(e)if(aD({data:e,type:"String"}))n+=e;else{const t=e.props.children;aD({data:t,type:"Object"})&&r([t]),aD({data:t,type:"Array"})&&r(t),aD({data:t,type:"String"})&&(n+=t)}};return r([e.children]),n.toLowerCase().indexOf(t.toLowerCase())>=0},c=t=>{if(p.default.isArray(t))return t.map(((t,e)=>n.jsx(vA,Object.assign({value:t.value},{children:t.label}),e)))};switch(t){case"RecordSelect":o=n.jsx(Kd,Object.assign({ref:N,open:w,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:z,onBlur:j,optionFilterProp:"children",filterOption:i},{children:c(r[u])}),void 0);break;case"Select":o=n.jsx(Kd,Object.assign({ref:N,open:w,dropdownMatchSelectWidth:!1,onChange:z,onBlur:j,placeholder:e},{children:c(s)}),void 0);break;case"DatePicker":o=n.jsx(Fw,{ref:N,open:w,onChange:z,onBlur:j,placeholder:e},void 0);break;case"DateTimePicker":o=n.jsx(Fw,{ref:N,open:w,onChange:z,onBlur:j,placeholder:e,showTime:!0},void 0);break;case"AutoComplete":o=n.jsx(Kd,Object.assign({ref:N,open:w,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:z,onBlur:j,optionFilterProp:"children",filterOption:i},{children:c(s)}),void 0);break;case"RemoteSearch":let t=s;O[a]&&(t=O[a]),o=n.jsx(Kd,Object.assign({ref:N,open:w,mode:m.remoteMode,placeholder:e,notFoundContent:C?n.jsx(_C,{size:"small"},void 0):null,dropdownMatchSelectWidth:!1,filterOption:!1,allowClear:!0,showSearch:!0,onChange:z,onBlur:j,onFocus:()=>P(void 0,a,r,m.remoteApi),onSearch:t=>P(t,a,r,m.remoteApi)},{children:a&&c(t)}),void 0);break;default:o=n.jsx(fx,{ref:N,onPressEnter:z,onBlur:z,placeholder:e,type:l||"text"},void 0)}return o},z=async()=>{try{const t=await x.validateFields();let e={...r,...t};e[a]=e[a]||void 0,e=D(e),f&&(e=await f(e)||e),r[a]!==e[a]&&v(e,a),T()}catch(t){console.log("保存表单字段失败:",t)}};let A=h;return A=i?w?n.jsx(Fk.Item,Object.assign({style:{margin:0},name:a,rules:b?b.rules:void 0},{children:M(c,o)}),void 0):n.jsx("div",Object.assign({className:"editable-cell-value-wrap",onClick:I},{children:R()}),void 0):R(),d&&(A=d(r,A)),n.jsx("td",Object.assign({},y,{title:r&&r[a]},{children:A}),void 0)};function kA(t){var e=null;return function(){return null==e&&(e=t()),e}}function CA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function EA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var OA=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),EA(this,"entered",[]),EA(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}var e,n,r;return e=t,(n=[{key:"enter",value:function(t){var e=this,n=this.entered.length;return this.entered=function(t,e){var n=new Set,r=function(t){return n.add(t)};t.forEach(r),e.forEach(r);var a=[];return n.forEach((function(t){return a.push(t)})),a}(this.entered.filter((function(n){return e.isNodeInDocument(n)&&(!n.contains||n.contains(t))})),[t]),0===n&&this.entered.length>0}},{key:"leave",value:function(t){var e,n,r=this.entered.length;return this.entered=(e=this.entered.filter(this.isNodeInDocument),n=t,e.filter((function(t){return t!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&CA(e.prototype,n),r&&CA(e,r),t}(),SA=kA((function(){return/firefox/i.test(navigator.userAgent)})),NA=kA((function(){return Boolean(window.safari)}));function PA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var TA=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),jA(this,"xs",void 0),jA(this,"ys",void 0),jA(this,"c1s",void 0),jA(this,"c2s",void 0),jA(this,"c3s",void 0);for(var r=e.length,a=[],o=0;o<r;o++)a.push(o);a.sort((function(t,n){return e[t]<e[n]?-1:1}));for(var i,l,c=[],s=[],u=0;u<r-1;u++)i=e[u+1]-e[u],l=n[u+1]-n[u],c.push(i),s.push(l/i);for(var d=[s[0]],p=0;p<c.length-1;p++){var f=s[p],m=s[p+1];if(f*m<=0)d.push(0);else{i=c[p];var h=c[p+1],g=i+h;d.push(3*g/((g+h)/f+(g+i)/m))}}d.push(s[s.length-1]);for(var b,v=[],y=[],x=0;x<d.length-1;x++){b=s[x];var w=d[x],k=1/c[x],C=w+d[x+1]-b-b;v.push((b-w-C)*k),y.push(C*k*k)}this.xs=e,this.ys=n,this.c1s=d,this.c2s=v,this.c3s=y}var e,n,r;return e=t,(n=[{key:"interpolate",value:function(t){var e=this.xs,n=this.ys,r=this.c1s,a=this.c2s,o=this.c3s,i=e.length-1;if(t===e[i])return n[i];for(var l,c=0,s=o.length-1;c<=s;){var u=e[l=Math.floor(.5*(c+s))];if(u<t)c=l+1;else{if(!(u>t))return n[l];s=l-1}}var d=t-e[i=Math.max(0,s)],p=d*d;return n[i]+r[i]*d+a[i]*p+o[i]*d*p}}])&&PA(e.prototype,n),r&&PA(e,r),t}();function IA(t){var e=1===t.nodeType?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function DA(t){return{x:t.clientX,y:t.clientY}}function RA(t,e,n,r,a){var o,i,l="IMG"===(o=e).nodeName&&(SA()||!(null!==(i=document.documentElement)&&void 0!==i&&i.contains(o))),c=IA(l?t:e),s={x:n.x-c.x,y:n.y-c.y},u=t.offsetWidth,d=t.offsetHeight,p=r.anchorX,f=r.anchorY,m=function(t,e,n,r){var a=t?e.width:n,o=t?e.height:r;return NA()&&t&&(o/=window.devicePixelRatio,a/=window.devicePixelRatio),{dragPreviewWidth:a,dragPreviewHeight:o}}(l,e,u,d),h=m.dragPreviewWidth,g=m.dragPreviewHeight,b=a.offsetX,v=a.offsetY,y=0===v||v;return{x:0===b||b?b:new TA([0,.5,1],[s.x,s.x/u*h,s.x+h-u]).interpolate(p),y:y?v:function(){var t=new TA([0,.5,1],[s.y,s.y/d*g,s.y+g-d]).interpolate(f);return NA()&&l&&(t+=(window.devicePixelRatio-1)*g),t}()}}var MA,zA="__NATIVE_FILE__",AA="__NATIVE_URL__",LA="__NATIVE_TEXT__",_A="__NATIVE_HTML__",FA=Object.freeze({__proto__:null,FILE:zA,URL:AA,TEXT:LA,HTML:_A});function VA(t,e,n){var r=e.reduce((function(e,n){return e||t.getData(n)}),"");return null!=r?r:n}function KA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var HA=(KA(MA={},zA,{exposeProperties:{files:function(t){return Array.prototype.slice.call(t.files)},items:function(t){return t.items},dataTransfer:function(t){return t}},matchesTypes:["Files"]}),KA(MA,_A,{exposeProperties:{html:function(t,e){return VA(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Html","text/html"]}),KA(MA,AA,{exposeProperties:{urls:function(t,e){return VA(t,e,"").split("\n")},dataTransfer:function(t){return t}},matchesTypes:["Url","text/uri-list"]}),KA(MA,LA,{exposeProperties:{text:function(t,e){return VA(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Text","text/plain"]}),MA);function BA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function UA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var WA=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),UA(this,"item",void 0),UA(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}var e,n,r;return e=t,(n=[{key:"initializeExposedProperties",value:function(){var t=this;Object.keys(this.config.exposeProperties).forEach((function(e){Object.defineProperty(t.item,e,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(e,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(t){var e=this;if(t){var n={};Object.keys(this.config.exposeProperties).forEach((function(r){n[r]={value:e.config.exposeProperties[r](t,e.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(t,e){return e===t.getSourceId()}},{key:"endDrag",value:function(){}}])&&BA(e.prototype,n),r&&BA(e,r),t}();function YA(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(HA).filter((function(t){return HA[t].matchesTypes.some((function(t){return e.indexOf(t)>-1}))}))[0]||null}function $A(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function qA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var GA=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),qA(this,"ownerDocument",null),qA(this,"globalContext",void 0),qA(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}var e,n,r;return e=t,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var t;return null!==(t=this.globalContext)&&void 0!==t&&t.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var t;return(null===(t=this.optionsArgs)||void 0===t?void 0:t.rootElement)||this.window}}])&&$A(e.prototype,n),r&&$A(e,r),t}();function XA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ZA(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?XA(Object(n),!0).forEach((function(e){QA(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):XA(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function JA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function QA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var tL=function(){function t(e,n,r){var a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),QA(this,"options",void 0),QA(this,"actions",void 0),QA(this,"monitor",void 0),QA(this,"registry",void 0),QA(this,"enterLeaveCounter",void 0),QA(this,"sourcePreviewNodes",new Map),QA(this,"sourcePreviewNodeOptions",new Map),QA(this,"sourceNodes",new Map),QA(this,"sourceNodeOptions",new Map),QA(this,"dragStartSourceIds",null),QA(this,"dropTargetIds",[]),QA(this,"dragEnterTargetIds",[]),QA(this,"currentNativeSource",null),QA(this,"currentNativeHandle",null),QA(this,"currentDragSourceNode",null),QA(this,"altKeyPressed",!1),QA(this,"mouseMoveTimeoutTimer",null),QA(this,"asyncEndDragFrameId",null),QA(this,"dragOverTargetIds",null),QA(this,"lastClientOffset",null),QA(this,"hoverRafId",null),QA(this,"getSourceClientOffset",(function(t){var e=a.sourceNodes.get(t);return e&&IA(e)||null})),QA(this,"endDragNativeItem",(function(){a.isDraggingNativeItem()&&(a.actions.endDrag(),a.currentNativeHandle&&a.registry.removeSource(a.currentNativeHandle),a.currentNativeHandle=null,a.currentNativeSource=null)})),QA(this,"isNodeInDocument",(function(t){return Boolean(t&&a.document&&a.document.body&&a.document.body.contains(t))})),QA(this,"endDragIfSourceWasRemovedFromDOM",(function(){var t=a.currentDragSourceNode;null==t||a.isNodeInDocument(t)||a.clearCurrentDragSourceNode()&&a.monitor.isDragging()&&a.actions.endDrag()})),QA(this,"handleTopDragStartCapture",(function(){a.clearCurrentDragSourceNode(),a.dragStartSourceIds=[]})),QA(this,"handleTopDragStart",(function(t){if(!t.defaultPrevented){var e=a.dragStartSourceIds;a.dragStartSourceIds=null;var n=DA(t);a.monitor.isDragging()&&a.actions.endDrag(),a.actions.beginDrag(e||[],{publishSource:!1,getSourceClientOffset:a.getSourceClientOffset,clientOffset:n});var r=t.dataTransfer,o=YA(r);if(a.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){var i=a.monitor.getSourceId(),l=a.sourceNodes.get(i),c=a.sourcePreviewNodes.get(i)||l;if(c){var s=a.getCurrentSourcePreviewNodeOptions(),u=RA(l,c,n,{anchorX:s.anchorX,anchorY:s.anchorY},{offsetX:s.offsetX,offsetY:s.offsetY});r.setDragImage(c,u.x,u.y)}}try{null==r||r.setData("application/json",{})}catch(t){}a.setCurrentDragSourceNode(t.target),a.getCurrentSourcePreviewNodeOptions().captureDraggingState?a.actions.publishDragSource():setTimeout((function(){return a.actions.publishDragSource()}),0)}else if(o)a.beginDragNativeItem(o);else{if(r&&!r.types&&(t.target&&!t.target.hasAttribute||!t.target.hasAttribute("draggable")))return;t.preventDefault()}}})),QA(this,"handleTopDragEndCapture",(function(){a.clearCurrentDragSourceNode()&&a.monitor.isDragging()&&a.actions.endDrag()})),QA(this,"handleTopDragEnterCapture",(function(t){if(a.dragEnterTargetIds=[],a.enterLeaveCounter.enter(t.target)&&!a.monitor.isDragging()){var e=t.dataTransfer,n=YA(e);n&&a.beginDragNativeItem(n,e)}})),QA(this,"handleTopDragEnter",(function(t){var e=a.dragEnterTargetIds;(a.dragEnterTargetIds=[],a.monitor.isDragging())&&(a.altKeyPressed=t.altKey,e.length>0&&a.actions.hover(e,{clientOffset:DA(t)}),e.some((function(t){return a.monitor.canDropOnTarget(t)}))&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=a.getCurrentDropEffect())))})),QA(this,"handleTopDragOverCapture",(function(){a.dragOverTargetIds=[]})),QA(this,"handleTopDragOver",(function(t){var e=a.dragOverTargetIds;if(a.dragOverTargetIds=[],!a.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer&&(t.dataTransfer.dropEffect="none"));a.altKeyPressed=t.altKey,a.lastClientOffset=DA(t),null===a.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(a.hoverRafId=requestAnimationFrame((function(){a.monitor.isDragging()&&a.actions.hover(e||[],{clientOffset:a.lastClientOffset}),a.hoverRafId=null}))),(e||[]).some((function(t){return a.monitor.canDropOnTarget(t)}))?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=a.getCurrentDropEffect())):a.isDraggingNativeItem()?t.preventDefault():(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none"))})),QA(this,"handleTopDragLeaveCapture",(function(t){a.isDraggingNativeItem()&&t.preventDefault(),a.enterLeaveCounter.leave(t.target)&&a.isDraggingNativeItem()&&setTimeout((function(){return a.endDragNativeItem()}),0)})),QA(this,"handleTopDropCapture",(function(t){var e;(a.dropTargetIds=[],a.isDraggingNativeItem())?(t.preventDefault(),null===(e=a.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer)):YA(t.dataTransfer)&&t.preventDefault();a.enterLeaveCounter.reset()})),QA(this,"handleTopDrop",(function(t){var e=a.dropTargetIds;a.dropTargetIds=[],a.actions.hover(e,{clientOffset:DA(t)}),a.actions.drop({dropEffect:a.getCurrentDropEffect()}),a.isDraggingNativeItem()?a.endDragNativeItem():a.monitor.isDragging()&&a.actions.endDrag()})),QA(this,"handleSelectStart",(function(t){var e=t.target;"function"==typeof e.dragDrop&&("INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable||(t.preventDefault(),e.dragDrop()))})),this.options=new GA(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new OA(this.isNodeInDocument)}var e,n,r;return e=t,(n=[{key:"profile",value:function(){var t,e;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(t=this.dragStartSourceIds)||void 0===t?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var t=this.rootElement;if(void 0!==t){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}},{key:"teardown",value:function(){var t,e=this.rootElement;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(t,e,n){var r=this;return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,e),function(){r.sourcePreviewNodes.delete(t),r.sourcePreviewNodeOptions.delete(t)}}},{key:"connectDragSource",value:function(t,e,n){var r=this;this.sourceNodes.set(t,e),this.sourceNodeOptions.set(t,n);var a=function(e){return r.handleDragStart(e,t)},o=function(t){return r.handleSelectStart(t)};return e.setAttribute("draggable","true"),e.addEventListener("dragstart",a),e.addEventListener("selectstart",o),function(){r.sourceNodes.delete(t),r.sourceNodeOptions.delete(t),e.removeEventListener("dragstart",a),e.removeEventListener("selectstart",o),e.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(t,e){var n=this,r=function(e){return n.handleDragEnter(e,t)},a=function(e){return n.handleDragOver(e,t)},o=function(e){return n.handleDrop(e,t)};return e.addEventListener("dragenter",r),e.addEventListener("dragover",a),e.addEventListener("drop",o),function(){e.removeEventListener("dragenter",r),e.removeEventListener("dragover",a),e.removeEventListener("drop",o)}}},{key:"addEventListeners",value:function(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var t=this.monitor.getSourceId(),e=this.sourceNodeOptions.get(t);return ZA({dropEffect:this.altKeyPressed?"copy":"move"},e||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var t=this.monitor.getSourceId();return ZA({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(t)||{})}},{key:"isDraggingNativeItem",value:function(){var t=this.monitor.getItemType();return Object.keys(FA).some((function(e){return FA[e]===t}))}},{key:"beginDragNativeItem",value:function(t,e){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(t,e){var n=new WA(HA[t]);return n.loadDataTransfer(e),n}(t,e),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(t){var e=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t,this.mouseMoveTimeoutTimer=setTimeout((function(){var t;return null===(t=e.rootElement)||void 0===t?void 0:t.addEventListener("mousemove",e.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var t;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(t=this.window)||void 0===t||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(t,e){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(e))}},{key:"handleDragEnter",value:function(t,e){this.dragEnterTargetIds.unshift(e)}},{key:"handleDragOver",value:function(t,e){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(e)}},{key:"handleDrop",value:function(t,e){this.dropTargetIds.unshift(e)}}])&&JA(e.prototype,n),r&&JA(e,r),t}();const eL=function(t,e,n){return new tL(t,e,n)},nL=t=>n.jsx(vz,Object.assign({backend:eL,context:window},{children:t.children}),void 0);y(".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{width:26px;height:26px}.ant-table-wrapper .ant-table-pagination.ant-pagination{margin-top:10px;margin-bottom:10px;padding-top:10px;padding-bottom:10px}.ant-table-wrapper .react-resizable{position:relative;background-clip:padding-box}.ant-table-wrapper .react-resizable-handle{position:absolute;right:-5px;bottom:0;z-index:1;width:10px;height:100%;cursor:col-resize}");var rL=t.forwardRef(((e,r)=>{const a=t.useMemo((()=>{const t=e.extra||{};return{tableConfig:t.tableConfig,rowType:t.rowType,scroll:t.scroll,apiMethod:t.apiMethod,columns:t.columns||[],data:t.data,drag:t.drag,onSelect:t.onSelect,paginationConfig:t.paginationConfig,getCheckboxProps:t.getCheckboxProps,resultFilter:t.resultFilter,getTableSuccessData:t.getTableSuccessData}}),[e.extra]),o=t.useRef();let i=t.useRef(!0);const l=t.useRef({position:["bottomCenter"],size:"small",current:1,total:0,pages:0,pageSize:10,showSizeChanger:!0,orderByInfo:void 0}),c=t.useRef([]),[s,u]=t.useState(a.columns),[d,f]=t.useState(!1),[m,h]=t.useState([]),[g,b]=C.useSetState({selectRowIds:[],selectRowArray:[]}),[v,y]=t.useState({x:void 0,y:330}),x=t.useMemo((()=>a.tableConfig&&a.tableConfig.rowKey?a.tableConfig.rowKey:"id"),[a.tableConfig]),w=t.useCallback((async t=>{let e=!0;f(!0),t&&(void 0!==t.updateSelected&&(e=t.updateSelected,delete t.updateSelected),"not-reset"===t.pagination&&delete t.pagination,o.current={...o.current,...t});try{const n={...o.current};for(let t in l.current){const e=l.current[t];"orderByInfo"===t&&(n.orderByInfo=e),"current"===t&&(n.page=e),"pageSize"===t&&(n.size=n.size||e)}if(t&&t.current&&(n.page=t.current,l.current.current=t.current),a.apiMethod){delete n.current;const t=await a.apiMethod(p.default.pickBy(n,p.default.identity));let r=[];p.default.isArray(t.data.content)&&(!1!==a.paginationConfig?i.current=!0:i.current=!1,r=t.data.content,l.current.total=t.data.total,l.current.pages=t.data.pages),p.default.isArray(t.data)&&(i.current=!1,r=t.data),a.resultFilter&&(r=await a.resultFilter(r)),e&&b((t=>{let e=[...t.selectRowIds],n=[...t.selectRowArray];const a=r=>{if(t.selectRowIds.length)for(let o of r){for(let r of t.selectRowIds)o[x]===r&&(e.push(r),n.push(o));o.children&&a(o.children)}};return a(r),t.selectRowIds=p.default.unionBy(e),t.selectRowArray=p.default.unionBy(n,x),t})),h(r),a.getTableSuccessData&&a.getTableSuccessData(t)}}catch(t){}f(!1)}),[a,x,b]),k={fixed:!0,type:a.rowType,selectedRowKeys:g.selectRowIds,getCheckboxProps:a.getCheckboxProps,onSelectAll:(t,e,n)=>{b((e=>{let r=[...e.selectRowIds],o=[...e.selectRowArray];return t?(r=p.default.uniq([...r,...n.map((t=>t[x]))]),o=p.default.uniqBy([...o,...n],x)):(r=r.filter((t=>!n.some((e=>e[x]===t)))),o=o.filter((t=>!n.some((e=>e[x]===t[x]))))),a.onSelect&&a.onSelect(o,r),e.selectRowIds=r,e.selectRowArray=o,e}))},onSelect:(t,e)=>{b((n=>{let r=[...n.selectRowIds],o=[...n.selectRowArray];return"checkbox"===a.rowType&&(e?(r.push(t[x]),o.push(t)):(r=r.filter((e=>e!==t[x])),o=o.filter((e=>e[x]!==t[x])))),"radio"===a.rowType&&e&&(r=[t[x]],o=[t]),a.onSelect&&a.onSelect(o,r),n.selectRowIds=r,n.selectRowArray=o,n}))}},E=t=>(e,{size:n})=>{u((e=>{const r=[...e];return r[t]={...r[t],width:n.width},c.current=r,r}))},O=t.useCallback((t=>{h((e=>{let n=JSON.parse(JSON.stringify(e));for(let[e,r]of n.entries())if(r[x]===t[x]){n[e]={...n[e],...t};break}return n}))}),[x]),S=t.useCallback((async(t,e)=>{const n=m[t],r=xD(m,{$splice:[[t,1],[e,0,n]]});f(!0);try{if(a.drag){const n=JSON.parse(JSON.stringify(r)),o=JSON.parse(JSON.stringify(m)),i=[t,e].sort();!1!==await a.drag.moveRow(t,e,n,o,n.slice(i[0],i[1]+1))&&h(n)}}finally{f(!1)}}),[a.drag,m]);return t.useEffect((()=>{(async()=>{let t=[...a.columns];a.hidSortColumn||t.unshift({width:55,fixed:"left",title:"序号",dataIndex:"sequence",render:(t,e,n)=>{const r=l.current;return Object.keys(r).length?((r.current||0)-1)*(r.pageSize||0)+n+1:n+1}});for(let[e,n]of t.entries()){"RemoteSearch"===n.valueType&&n.remoteConfig&&n.remoteConfig.remoteApi&&(n.valueEnum=await n.remoteConfig.remoteApi());let r={...n,onHeaderCell:t=>({width:t.width,onResize:E(e)}),onCell:(t,e)=>({record:t,dataIndex:n.dataIndex,title:n.title,editable:"function"==typeof n.editable?n.editable(t,e):n.editable,inputType:n.inputType,valueType:n.valueType,valueEnum:n.valueEnum,recordSelectField:n.recordSelectField,controlRender:n.controlRender,formChange:n.formChange,remoteConfig:n.remoteConfig,formItemProps:n.formItemProps,handleSave:O})},a=c.current.find((t=>t.dataIndex===n.dataIndex&&t.title===n.title));a&&(r.width=a.width),t[e]=r}u(t)})()}),[a.columns,a.hidSortColumn,O]),t.useEffect((()=>{b((t=>{let e=[];const n=t=>{for(let r of t){for(let t of g.selectRowIds)r[x]===t&&e.push(r);r.children&&n(r.children)}};return g.selectRowIds.length&&(n(m),e=p.default.unionBy([...t.selectRowArray,...e],x)),t.selectRowArray=e,t}))}),[x,m,b,g.selectRowIds]),t.useEffect((()=>{p.default.isArray(a.data)&&h(JSON.parse(JSON.stringify(a.data)))}),[a.data]),t.useEffect((()=>{const t=document.getElementById("slider-menu"),e=document.getElementById("router-render");if(void 0!==a.scroll?.x||void 0!==a.scroll?.y)y((t=>({...t,...a.scroll})));else if(t&&e){let n=parseInt(window.getComputedStyle(e,null).paddingLeft);y((e=>(e.x=document.body.clientWidth-t.clientWidth-(2*n+43),e)))}}),[a.scroll]),t.useEffect((()=>{a.paginationConfig&&(l.current={...l.current,...a.paginationConfig})}),[a.paginationConfig]),t.useImperativeHandle(r,(()=>({setTableLoading:t=>{f(t)},getPages:()=>({...l.current}),getTableList:async(t,e)=>{t&&("not-reset"===t.pagination?t.current=l.current.current:void 0===t.current&&(t.current=1),t.clearSelectIds&&(delete t.clearSelectIds,b((t=>(t.selectRowArray=[],t.selectRowIds=[],t))))),await w(t),e&&e()},setRowSelected:(t,e)=>{let n=t;!0===e&&(n=Array.from(new Set([...g.selectRowIds,...t]))),b({selectRowIds:n})},getSelectIds:()=>g.selectRowIds,clearSelectIds:()=>{b({selectRowIds:[],selectRowArray:[]})},getSelectRowsArray:()=>g.selectRowArray,removeSelectIds:t=>{b({selectRowIds:g.selectRowIds.filter((e=>{let n=!0;for(let r of t)if(r===e){n=!1;break}return n})),selectRowArray:g.selectRowArray.filter((e=>{let n=!0;for(let r of t)if(r===e[x]){n=!1;break}return n}))})},getStaticDataList:()=>JSON.parse(JSON.stringify(m||[])),setStaticDataList:(t,e)=>{if("[object Object]"===Object.prototype.toString.call(t)){let e=t;h(m.map((n=>(n[x]===e[x]&&(n=t),n))))}"[object Array]"===Object.prototype.toString.call(t)&&h(JSON.parse(JSON.stringify(t))),e&&e()}}))),n.jsx(mD,{children:n.jsx(nL,{children:n.jsx(kP,Object.assign({rowKey:"id",rowClassName:"editable-row",loading:d,bordered:!0,components:{header:{cell:xR},body:t.useMemo((()=>({row:xA,cell:t=>n.jsx(wA,Object.assign({},t,{columns:s}),void 0)})),[s])},onRow:(t,e)=>({index:e,moveRow:S,open:a.drag&&a.drag.open}),columns:s,dataSource:m,rowSelection:a.rowType?k:void 0,pagination:!(!p.default.isFunction(a.apiMethod)||!i.current)&&{size:"small",position:["bottomCenter"],showTotal:t=>`共${t}条`,showSizeChanger:!0,showQuickJumper:!0,...l.current},onChange:(t,e,n)=>{const{order:r}=n;t.orderByInfo=void 0,r&&(t.orderByInfo=`${n.field}:${"ascend"===r?1:-1}`),(t=>{!p.default.isEqual(t,l.current)&&i.current&&(l.current={...l.current,...t},w())})(t)},scroll:v},a.tableConfig),void 0)},void 0)},void 0)}));y("");const aL=t=>{const e={...t};return delete e.outerHeight,n.jsx(jy,Object.assign({className:"empty-wrap",style:{minHeight:t&&t.outerHeight?t.outerHeight:400},align:"middle",justify:"center"},{children:n.jsx(br,Object.assign({description:"暂无数据"},e),void 0)}),void 0)};y(".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:oL,Paragraph:iL}=$T;var lL=t.forwardRef((function(e,r){const a=t.useRef(null),o=t.useRef(),[i,l]=C.useSetState({saveLoading:!1,selectedRows:[]}),c=t.useMemo((()=>e.tableColumnsList&&e.tableColumnsList.tableConfig&&e.tableColumnsList.tableConfig.rowKey||"id"),[e.tableColumnsList]),s=t.useMemo((()=>{const t=e.width||0;return t>=500&&t<=800?{span:7}:t>800&&t<=1e3?{span:6}:t>1e3&&t<=1200?{span:5}:t>1200?{span:4}:{span:8}}),[e.width]),u=(t,e)=>{if(o.current){let n=[],r=[];"all"===t&&o.current.clearSelectIds(),"odd"===t&&e&&(n=[e[c]],r=i.selectedRows.filter((t=>t[c]!==e[c])),o.current.removeSelectIds(n)),l({selectedRows:r})}},d=t.useCallback((async()=>{if(a.current&&o.current){let t=await a.current.formSubmit();if(t&&Object.keys(t).length){for(let e in t){const n="YYYY-MM-DD HH:mm:ss";g.default(t[e],n,!0).isValid()&&(t[e]=g.default(t[e]).format(n))}t={clearSelectIds:!0,...t},void 0!==e.clearSelectIds&&(t.clearSelectIds=e.clearSelectIds),t.clearSelectIds&&l((t=>(t.selectedRows=[],t))),e.manualParameterChange&&(t=e.manualParameterChange(t)),e.searchCallback?e.searchCallback(t).then((e=>{e&&o.current?.getTableList(t)})):o.current.getTableList(t)}}else o.current?.getTableList()}),[e,l]),p=()=>{if(a.current){let t=[];const n=e.searchNoResetFiled||[];if(e.searchFormList)for(let r of e.searchFormList){if(r.unionConfig)for(let e of r.unionConfig.unionItems)e.name&&!n.includes(e.name)&&t.push(e.name);r.name&&!n.includes(r.name)&&t.push(r.name)}a.current.formReset(t)}d()};return t.useEffect((()=>{e.visible&&(e.autoGetList&&o.current?.getTableList(),e.openSelected&&e.openSelected.visible&&l((t=>(t.selectedRows=e.openSelected?.defaultValues||[],o.current?.setRowSelected(t.selectedRows.map((t=>t[c]))),t))))}),[e.autoGetList,e.openSelected,e.visible,c,l]),t.useImperativeHandle(r,(()=>({...a.current,...o.current,setSavaLoading:t=>{l({saveLoading:t})}}))),n.jsxs(QI,Object.assign({className:"from-table-modal",width:e.width,visible:e.visible,title:e.title||"弹窗",onCancel:e.onCancel,forceRender:!0,maskClosable:!1,footer:null},{children:[e.topExtra,e.searchFormList?n.jsx(yD,{ref:a,rowGridConfig:{gutter:10},colGirdConfig:s,list:(f=e.searchFormList,f?f.map((t=>("Select"===t.componentName&&t.selectData&&t.selectData.length&&(t.selectData.some((t=>"全部"===t.label))||(t.selectData=[{label:"全部",value:""},...t.selectData])),t))):[]),formConfig:e.formConfig,render:()=>e.searchFormList&&e.searchFormList.length?n.jsxs(RO,Object.assign({size:10},{children:[n.jsx(af,Object.assign({type:"primary",onClick:()=>{d()}},{children:"查询"}),void 0),n.jsx(af,Object.assign({className:"btn-reset",onClick:p},{children:"重置"}),void 0)]}),void 0):n.jsx(n.Fragment,{},void 0)},void 0):null,n.jsxs(jy,Object.assign({},e.rowProps,{children:[e.leftSlot?n.jsx(Dy,Object.assign({},e.leftSlot.colProps,{children:e.leftSlot.jsx}),void 0):null,n.jsx(Dy,Object.assign({},e.colProps,{children:n.jsxs(jy,Object.assign({gutter:10},{children:[n.jsx(Dy,Object.assign({span:e.openSelected&&e.openSelected.visible?16:24},{children:n.jsx(rL,{ref:o,extra:{rowType:e.tableColumnsList.rowType,apiMethod:e.apiMethod,columns:e.tableColumnsList.list,data:e.data,onSelect:(t,n)=>{((t,n)=>{l({selectedRows:n.map((n=>{let r={};const a=t.find((t=>t[c]===n));if(r[c]=n,e.openSelected&&e.openSelected.fileName&&(r[e.openSelected.fileName]=n),a&&(r=a),e.openSelected){const t=e.openSelected.fileName,a=e.openSelected.defaultValues;if(t&&a){const e=a.find((t=>t[c]===n));e&&(r[t]=e[t])}}return r}))})})(t,n),e.onSelect&&e.onSelect(t,n)},getTableSuccessData:e.getTableSuccessData,tableConfig:e.tableColumnsList.tableConfig,scroll:{x:"max-content"}}},void 0)}),void 0),e.openSelected&&e.openSelected.visible?n.jsx(Dy,Object.assign({span:8},{children:n.jsx(My,Object.assign({title:"已选列表",size:"small",bodyStyle:{height:e.openSelected.height||330,overflowY:"auto"},extra:n.jsx(oL,Object.assign({onClick:()=>u("all")},{children:"全部移除"}),void 0)},{children:i.selectedRows.length?i.selectedRows.map((t=>{const r=t[c],a=t[e.openSelected?.fileName];return n.jsxs(jy,Object.assign({gutter:12},{children:[n.jsx(Dy,Object.assign({span:11,title:a},{children:n.jsx(iL,Object.assign({ellipsis:!0},{children:a}),void 0)}),void 0),n.jsx(Dy,Object.assign({span:9,title:r},{children:n.jsx(iL,Object.assign({ellipsis:!0},{children:r}),void 0)}),void 0),n.jsx(Dy,Object.assign({span:4},{children:n.jsx(oL,Object.assign({onClick:()=>u("odd",t)},{children:"移除"}),void 0)}),void 0)]}),r)})):n.jsx(aL,{outerHeight:200},void 0)}),void 0)}),void 0):null]}),void 0)}),void 0),e.rightSlot?n.jsx(Dy,Object.assign({},e.rightSlot.colProps,{children:e.rightSlot.jsx}),void 0):null]}),void 0),n.jsx(jy,Object.assign({className:"from-table-modal-foot",justify:"center"},{children:n.jsx(Dy,{children:n.jsxs(RO,Object.assign({size:20},{children:[e.onCancel?n.jsx(af,Object.assign({onClick:()=>e.onCancel&&e.onCancel()},{children:"关闭"}),void 0):null,e.onConfirm?n.jsx(af,Object.assign({type:"primary",loading:i.saveLoading,onClick:()=>{let t=[],n=[];t=e.openSelected&&e.openSelected.visible?i.selectedRows:o.current?.getSelectRowsArray()||[],e.onConfirm&&(o.current&&(n=o.current.getSelectIds()),l({saveLoading:!0}),e.onConfirm(t,n).then((t=>{l({saveLoading:!1}),t&&e.onCancel&&e.onCancel()})).catch((t=>{l({saveLoading:!1}),Oi.warn(t,1.5)})))}},{children:"确定"}),void 0):null]}),void 0)},void 0)}),void 0)]}),void 0);var f})),cL={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"},sL=function(e,n){return t.createElement(Yo,ye(ye({},e),{},{ref:n,icon:cL}))},uL=t.forwardRef(sL);"production"!==process.env.NODE_ENV&&(uL.displayName="LeftCircleFilled");var dL={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"},pL=function(e,n){return t.createElement(Yo,ye(ye({},e),{},{ref:n,icon:dL}))},fL=t.forwardRef(pL);"production"!==process.env.NODE_ENV&&(fL.displayName="RightCircleFilled");y(".quickly-form-modal .ant-modal-body{padding-top:15px}.quickly-form-modal .quickly-form-modal-foot{margin-top:20px}");y(".form-modal .ant-modal-body{padding-top:15px}.form-modal .ant-modal-body .modal-form-height{max-height:580px;padding-right:5px;overflow-x:hidden;overflow-y:auto}.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 mL=t.forwardRef(((e,r)=>{const a=t.useRef(),[o,i]=C.useSetState({loading:!1,saveLoading:!1,disabled:!1}),l=async()=>{let t=await(a.current?.formSubmit());if(t){if(t.endTime&&t.startTime&&g.default(t.endTime).isBefore(t.startTime))return void Oi.warn("生效日期不能大于失效日期",1.5);i({saveLoading:!0});try{let n={};if(t={...t,...e.submitExtraParameters},e.switchTransform)for(let n=0;n<e.switchTransform.length;n++)t[e.switchTransform[n]]?t[e.switchTransform[n]]="1":t[e.switchTransform[n]]="0";if(e.submitRemoveField)for(let n=0;n<e.submitRemoveField.length;n++)t[e.submitRemoveField[n]]&&delete t[e.submitRemoveField[n]];for(let e in t){const n="YYYY-MM-DD HH:mm:ss";g.default(t[e],n,!0).isValid()&&(t[e]=g.default(t[e]).format(n))}if(e.manualParameterChange&&(t=e.manualParameterChange(t)),e.manualVerification&&!e.manualVerification(t))return console.warn("手动验证表单不通过"),void i({saveLoading:!1});if(t=p.default.omitBy(t,p.default.isNil),e.submitApi&&t){if(e.id?(t.id=e.id,n=await e.submitApi(t,"put")):n=await e.submitApi(t,"post"),1===n.code){if(e.onConfirm){if(!1===e.onConfirm(n))return}Oi.success("操作成功",1.5),e.onCancel&&e.onCancel()}i({saveLoading:!1})}else e.onConfirm&&t&&e.onConfirm(t)}catch(t){i({saveLoading:!1})}}};return t.useEffect((()=>{!1===e.visible&&i({saveLoading:!1})}),[e.visible,i]),t.useEffect((()=>{i({disabled:e.disable})}),[e.disable,i]),t.useImperativeHandle(r,(()=>({setFormLoading:t=>{i({loading:t})},setFormSaveLoading:t=>{i({saveLoading:t})},setFormFields:t=>{a.current&&a.current.setFormFields(t)},getFormValues:t=>a.current?.getFormValues(t),setFormValues:t=>{a.current&&a.current.setFormValues(t)},excludeFormSubmitValues:async t=>{if(a.current){const n=e.formList.filter((e=>!t?.includes(e.name)));return await(a.current?.formSubmit(n.map((t=>t.name))))}return{}},getFormSubmitValues:async t=>a.current?await(a.current?.formSubmit(t)):{}}))),n.jsx(QI,Object.assign({className:"form-modal",width:e.width?e.width:600,visible:e.visible,title:e.title||"对话框",onCancel:e.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null},{children:n.jsxs(_C,Object.assign({spinning:o.loading},{children:[n.jsxs("div",Object.assign({className:"modal-form-height"},{children:[e.topRender?e.topRender:null,n.jsx(yD,{ref:a,formConfig:{labelCol:{span:24},...e.formConfig},rowGridConfig:{gutter:[20,0]},colGirdConfig:e.colGirdConfig||{span:12},list:e.formList},void 0),e.children&&e.children]}),void 0),(()=>{const r=(()=>{const t=[n.jsx(af,Object.assign({onClick:()=>e.onCancel&&e.onCancel()},{children:"关闭"}),-1)];return o.disabled||t.push(n.jsx(af,Object.assign({type:"primary",loading:o.saveLoading,onClick:l},{children:"提交"}),-2)),t})(),a=t=>n.jsx(jy,Object.assign({className:"form-modal-foot",justify:"center"},{children:n.jsx(Dy,{children:n.jsx(RO,Object.assign({size:20},{children:t}),void 0)},void 0)}),void 0);if(e.footer)return e.footer;if(e.footBtnList){const{model:n,data:o}=e.footBtnList,i=o.map(((e,n)=>{const{children:r,...a}=e;return t.createElement(af,{...a,key:n},r)}));if("new"===n)return a(i);if("before"===n)return a([...i,...r]);if("after"===n)return a([...r,...i])}return a(r)})()]}),void 0)}),void 0)}));y('@import "https://at.alicdn.com/t/font_2381668_l6oy3doglyo.css";.icon-selected-modal .avatar-selected{display:flex;align-items:center;justify-content:center;width:36px;height:36px;overflow:hidden;border:2px solid #fff;border-radius:4px;cursor:pointer}.icon-selected-modal .avatar-selected.avatar-selected-bg{border-color:#5860f8}.icon-selected-modal .icon-selected-foot{margin-top:20px}');
44
44
  /*! *****************************************************************************
45
45
  Copyright (c) Microsoft Corporation. All rights reserved.
46
46
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hlyc-web-pack",
3
- "version": "3.6.76",
3
+ "version": "3.6.78",
4
4
  "description": "华旅云创web端组件",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.js",
@@ -91,6 +91,7 @@
91
91
  },
92
92
  "dependencies": {
93
93
  "antd": "4.16.13",
94
+ "hlyc-web-pack": "file:",
94
95
  "immutability-helper": "^3.1.1",
95
96
  "react-dnd": "14.0.5",
96
97
  "react-dnd-html5-backend": "14.1.0",