hlyc-web-pack 3.6.81 → 3.6.83
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.
|
@@ -5,11 +5,16 @@ import { TableColumns } from '../index';
|
|
|
5
5
|
import './index.less';
|
|
6
6
|
declare type remoteValueType = string | undefined;
|
|
7
7
|
declare type remotePromiseType = (value: remoteValueType, record: AnyObjectType) => Promise<SelectType[]>;
|
|
8
|
+
declare type SpanType = number | undefined;
|
|
9
|
+
declare type CellType = {
|
|
10
|
+
rowSpan?: SpanType;
|
|
11
|
+
colSpan?: SpanType;
|
|
12
|
+
};
|
|
8
13
|
export interface EditableColumnsType {
|
|
9
14
|
/** 纵向合并单元格 */
|
|
10
|
-
rowSpanNum: (record: AnyObjectType, index: number) =>
|
|
15
|
+
rowSpanNum: SpanType | ((record: AnyObjectType, index: number) => SpanType);
|
|
11
16
|
/** 横向向合并单元格 */
|
|
12
|
-
colSpanNum: (record: AnyObjectType, index: number) =>
|
|
17
|
+
colSpanNum: SpanType | ((record: AnyObjectType, index: number) => SpanType);
|
|
13
18
|
/** 是否打开可编辑单元格 */
|
|
14
19
|
editable: boolean | ((record: AnyObjectType, index: number) => boolean);
|
|
15
20
|
/** 整数输入框 */
|
|
@@ -52,5 +57,5 @@ interface DraggableBodyRowProps extends React.HTMLAttributes<HTMLTableRowElement
|
|
|
52
57
|
}
|
|
53
58
|
export declare const EditableRow: ({ open, index, moveRow, className, style, ...restProps }: DraggableBodyRowProps) => JSX.Element;
|
|
54
59
|
/** 可编辑单元格 */
|
|
55
|
-
declare const EditableCell: React.FC<EditableCellProps>;
|
|
60
|
+
declare const EditableCell: React.FC<EditableCellProps & CellType>;
|
|
56
61
|
export default EditableCell;
|
package/lib/index.js
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
Copyright (c) 2018 Jed Watson.
|
|
33
33
|
Licensed under the MIT License (MIT), see
|
|
34
34
|
http://jedwatson.github.io/classnames
|
|
35
|
-
*/$T.Text=function(e){var n=e.ellipsis,r=KT(e,["ellipsis"]),a=t.useMemo((function(){return n&&"object"===O(n)?Y(n,["expandable","rows"]):n}),[n]);return tr("object"!==O(n)||!n||!("expandable"in n)&&!("rows"in n),"Typography.Text","`ellipsis` do not support `expandable` or `rows` props."),t.createElement(VT,E({},r,{ellipsis:a,component:"span"}))},$T.Link=UT,$T.Title=function(e){var n,r=e.level,a=void 0===r?1:r,o=WT(e,["level"]);return-1!==YT.indexOf(a)?n="h".concat(a):(tr(!1,"Typography.Title","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version."),n="h1"),t.createElement(VT,E({},o,{component:n}))},$T.Paragraph=function(e){return t.createElement(VT,E({},e,{component:"div"}))};var fI=F((function(t){!function(){var e={}.hasOwnProperty;function n(){for(var t=[],r=0;r<arguments.length;r++){var a=arguments[r];if(a){var o=typeof a;if("string"===o||"number"===o)t.push(a);else if(Array.isArray(a)){if(a.length){var i=n.apply(null,a);i&&t.push(i)}}else if("object"===o)if(a.toString===Object.prototype.toString)for(var l in a)e.call(a,l)&&a[l]&&t.push(l);else t.push(a.toString())}}return t.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n}()}));function mI(t){var e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch(t){return e}}function hI(t){var e=new XMLHttpRequest;t.onProgress&&e.upload&&(e.upload.onprogress=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),t.onProgress(e)});var n=new FormData;t.data&&Object.keys(t.data).forEach((function(e){var r=t.data[e];Array.isArray(r)?r.forEach((function(t){n.append("".concat(e,"[]"),t)})):n.append(e,r)})),t.file instanceof Blob?n.append(t.filename,t.file,t.file.name):n.append(t.filename,t.file),e.onerror=function(e){t.onError(e)},e.onload=function(){return e.status<200||e.status>=300?t.onError(function(t,e){var n="cannot ".concat(t.method," ").concat(t.action," ").concat(e.status,"'"),r=new Error(n);return r.status=e.status,r.method=t.method,r.url=t.action,r}(t,e),mI(e)):t.onSuccess(mI(e),e)},e.open(t.method,t.action,!0),t.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);var r=t.headers||{};return null!==r["X-Requested-With"]&&e.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(t){null!==r[t]&&e.setRequestHeader(t,r[t])})),e.send(n),{abort:function(){e.abort()}}}var gI=+new Date,bI=0;function vI(){return"rc-upload-".concat(gI,"-").concat(++bI)}var yI=function(t,e){if(t&&e){var n=Array.isArray(e)?e:e.split(","),r=t.name||"",a=t.type||"",o=a.replace(/\/.*$/,"");return n.some((function(t){var e=t.trim();if(/^\*(\/\*)?$/.test(t))return!0;if("."===e.charAt(0)){var n=r.toLowerCase(),i=e.toLowerCase(),l=[i];return".jpg"!==i&&".jpeg"!==i||(l=[".jpg",".jpeg"]),l.some((function(t){return n.endsWith(t)}))}return/\/\*$/.test(e)?o===e.replace(/\/.*$/,""):a===e||!!/^\w+$/.test(e)&&(yt(!1,"Upload takes an invalidate 'accept' type '".concat(e,"'.Skip for check.")),!0)}))}return!0};var xI=function(t,e,n){var r=function t(r,a){r&&(r.path=a||"",r.isFile?r.file((function(t){n(t)&&(r.fullPath&&!t.webkitRelativePath&&(Object.defineProperties(t,{webkitRelativePath:{writable:!0}}),t.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(t,{webkitRelativePath:{writable:!1}})),e([t]))})):r.isDirectory&&function(t,e){var n=t.createReader(),r=[];!function t(){n.readEntries((function(n){var a=Array.prototype.slice.apply(n);r=r.concat(a),a.length?t():e(r)}))}()}(r,(function(e){e.forEach((function(e){t(e,"".concat(a).concat(r.name,"/"))}))})))};t.forEach((function(t){r(t.webkitGetAsEntry())}))},wI=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],kI=function(e){eI(r,t.Component);var n=oI(r);function r(){var t;GT(this,r);for(var e=arguments.length,a=new Array(e),o=0;o<e;o++)a[o]=arguments[o];return(t=n.call.apply(n,[this].concat(a))).state={uid:vI()},t.reqs={},t.fileInput=void 0,t._isMounted=void 0,t.onChange=function(e){var n=t.props,r=n.accept,a=n.directory,o=pI(e.target.files).filter((function(t){return!a||yI(t,r)}));t.uploadFiles(o),t.reset()},t.onClick=function(e){var n=t.fileInput;if(n){var r=e.target,a=t.props.onClick;if(r&&"BUTTON"===r.tagName)n.parentNode.focus(),r.blur();n.click(),a&&a(e)}},t.onKeyDown=function(e){"Enter"===e.key&&t.onClick(e)},t.onFileDrop=function(e){var n=t.props.multiple;if(e.preventDefault(),"dragover"!==e.type)if(t.props.directory)xI(Array.prototype.slice.call(e.dataTransfer.items),t.uploadFiles,(function(e){return yI(e,t.props.accept)}));else{var r=pI(e.dataTransfer.files).filter((function(e){return yI(e,t.props.accept)}));!1===n&&(r=r.slice(0,1)),t.uploadFiles(r)}},t.uploadFiles=function(e){var n=pI(e),r=n.map((function(e){return e.uid=vI(),t.processFile(e,n)}));Promise.all(r).then((function(e){var n=t.props.onBatchStart;null==n||n(e.map((function(t){return{file:t.origin,parsedFile:t.parsedFile}}))),e.filter((function(t){return null!==t.parsedFile})).forEach((function(e){t.post(e)}))}))},t.processFile=function(){var e=uI(cI().mark((function e(n,r){var a,o,i,l,c,s,u,d,p;return cI().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.props.beforeUpload,o=n,!a){e.next=14;break}return e.prev=3,e.next=6,a(n,r);case 6:o=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),o=!1;case 12:if(!1!==o){e.next=14;break}return e.abrupt("return",{origin:n,parsedFile:null,action:null,data:null});case 14:if("function"!=typeof(i=t.props.action)){e.next=21;break}return e.next=18,i(n);case 18:l=e.sent,e.next=22;break;case 21:l=i;case 22:if("function"!=typeof(c=t.props.data)){e.next=29;break}return e.next=26,c(n);case 26:s=e.sent,e.next=30;break;case 29:s=c;case 30:return u="object"!==XT(o)&&"string"!=typeof o||!o?n:o,d=u instanceof File?u:new File([u],n.name,{type:n.type}),(p=d).uid=n.uid,e.abrupt("return",{origin:n,data:s,parsedFile:p,action:l});case 35:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(t,n){return e.apply(this,arguments)}}(),t.saveFileInput=function(e){t.fileInput=e},t}return QT(r,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(t){var e=this,n=t.data,r=t.origin,a=t.action,o=t.parsedFile;if(this._isMounted){var i=this.props,l=i.onStart,c=i.customRequest,s=i.name,u=i.headers,d=i.withCredentials,p=i.method,f=r.uid,m=c||hI,h={action:a,filename:s,data:n,file:o,headers:u,withCredentials:d,method:p||"post",onProgress:function(t){var n=e.props.onProgress;null==n||n(t,o)},onSuccess:function(t,n){var r=e.props.onSuccess;null==r||r(t,o,n),delete e.reqs[f]},onError:function(t,n){var r=e.props.onError;null==r||r(t,n,o),delete e.reqs[f]}};l(r),this.reqs[f]=m(h)}}},{key:"reset",value:function(){this.setState({uid:vI()})}},{key:"abort",value:function(t){var e=this.reqs;if(t){var n=t.uid?t.uid:t;e[n]&&e[n].abort&&e[n].abort(),delete e[n]}else Object.keys(e).forEach((function(t){e[t]&&e[t].abort&&e[t].abort(),delete e[t]}))}},{key:"render",value:function(){var t=this.props,e=t.component,n=t.prefixCls,r=t.className,a=t.disabled,o=t.id,i=t.style,l=t.multiple,c=t.accept,s=t.capture,u=t.children,p=t.directory,f=t.openFileDialogOnClick,m=t.onMouseEnter,h=t.onMouseLeave,g=lI(t,wI),b=fI(iI(iI(iI({},n,!0),"".concat(n,"-disabled"),a),r,r)),v=p?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},y=a?{}:{onClick:f?this.onClick:function(){},onKeyDown:f?this.onKeyDown:function(){},onMouseEnter:m,onMouseLeave:h,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return d.default.createElement(e,qT({},y,{className:b,role:"button",style:i}),d.default.createElement("input",qT({},Xl(g,{aria:!0,data:!0}),{id:o,disabled:a,type:"file",ref:this.saveFileInput,onClick:function(t){return t.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:c},v,{multiple:l,onChange:this.onChange},null!=s?{capture:s}:{})),u)}}]),r}();function CI(){}var EI=function(e){eI(r,t.Component);var n=oI(r);function r(){var t;GT(this,r);for(var e=arguments.length,a=new Array(e),o=0;o<e;o++)a[o]=arguments[o];return(t=n.call.apply(n,[this].concat(a))).uploader=void 0,t.saveUploader=function(e){t.uploader=e},t}return QT(r,[{key:"abort",value:function(t){this.uploader.abort(t)}},{key:"render",value:function(){return d.default.createElement(kI,qT({},this.props,{ref:this.saveUploader}))}}]),r}();EI.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:CI,onError:CI,onSuccess:CI,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var OI=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]])}return n},SI=function(e,n){var r=e.style,a=e.height,o=OI(e,["style","height"]);return t.createElement(ZI,E({ref:n},o,{type:"drag",style:E(E({},r),{height:a})}))},NI=t.forwardRef(SI);NI.displayName="Dragger";var PI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},jI=function(e,n){return t.createElement(Yo,ye(ye({},e),{},{ref:n,icon:PI}))},TI=t.forwardRef(jI);"production"!==process.env.NODE_ENV&&(TI.displayName="PaperClipOutlined");var II={icon:function(t,e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:e}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:e}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:e}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},DI=function(e,n){return t.createElement(Yo,ye(ye({},e),{},{ref:n,icon:II}))},RI=t.forwardRef(DI);"production"!==process.env.NODE_ENV&&(RI.displayName="PictureTwoTone");var MI={icon:function(t,e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:e}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},zI=function(e,n){return t.createElement(Yo,ye(ye({},e),{},{ref:n,icon:MI}))},AI=t.forwardRef(zI);function LI(t){return E(E({},t),{lastModified:t.lastModified,lastModifiedDate:t.lastModifiedDate,name:t.name,size:t.size,type:t.type,uid:t.uid,percent:0,originFileObj:t})}function _I(t,e){var n=fl(e),r=n.findIndex((function(e){return e.uid===t.uid}));return-1===r?n.push(t):n[r]=t,n}function FI(t,e){var n=void 0!==t.uid?"uid":"name";return e.filter((function(e){return e[n]===t[n]}))[0]}"production"!==process.env.NODE_ENV&&(AI.displayName="FileTwoTone");var VI=function(t){return 0===t.indexOf("image/")};var KI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},HI=function(e,n){return t.createElement(Yo,ye(ye({},e),{},{ref:n,icon:KI}))},BI=t.forwardRef(HI);"production"!==process.env.NODE_ENV&&(BI.displayName="DownloadOutlined");var UI=t.forwardRef((function(e,n){var r,a,o,i=e.prefixCls,l=e.className,c=e.style,s=e.locale,u=e.listType,d=e.file,p=e.items,f=e.progress,m=e.iconRender,h=e.actionIconRender,g=e.itemRender,b=e.isImgUrl,v=e.showPreviewIcon,y=e.showRemoveIcon,x=e.showDownloadIcon,w=e.removeIcon,k=e.downloadIcon,C=e.onPreview,O=e.onDownload,S=e.onClose,P=pi(t.useState(!1),2),j=P[0],T=P[1],I=t.useRef();t.useEffect((function(){return I.current=setTimeout((function(){T(!0)}),300),function(){window.clearTimeout(I.current)}}),[]);var D="".concat(i,"-span"),R=m(d),M=t.createElement("div",{className:"".concat(i,"-text-icon")},R);if("picture"===u||"picture-card"===u)if("uploading"===d.status||!d.thumbUrl&&!d.url){var z,A=V((N(z={},"".concat(i,"-list-item-thumbnail"),!0),N(z,"".concat(i,"-list-item-file"),"uploading"!==d.status),z));M=t.createElement("div",{className:A},R)}else{var L,_=(null==b?void 0:b(d))?t.createElement("img",{src:d.thumbUrl||d.url,alt:d.name,className:"".concat(i,"-list-item-image")}):R,F=V((N(L={},"".concat(i,"-list-item-thumbnail"),!0),N(L,"".concat(i,"-list-item-file"),b&&!b(d)),L));M=t.createElement("a",{className:F,onClick:function(t){return C(d,t)},href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer"},_)}var K,H=V((N(r={},"".concat(i,"-list-item"),!0),N(r,"".concat(i,"-list-item-").concat(d.status),!0),N(r,"".concat(i,"-list-item-list-type-").concat(u),!0),r)),B="string"==typeof d.linkProps?JSON.parse(d.linkProps):d.linkProps,U=y?h(("function"==typeof w?w(d):w)||t.createElement(OP,null),(function(){return S(d)}),i,s.removeFile):null,W=x&&"done"===d.status?h(("function"==typeof k?k(d):k)||t.createElement(BI,null),(function(){return O(d)}),i,s.downloadFile):null,Y="picture-card"!==u&&t.createElement("span",{key:"download-delete",className:V("".concat(i,"-list-item-card-actions"),{picture:"picture"===u})},W,U),$=V("".concat(i,"-list-item-name")),q=d.url?[t.createElement("a",E({key:"view",target:"_blank",rel:"noopener noreferrer",className:$,title:d.name},B,{href:d.url,onClick:function(t){return C(d,t)}}),d.name),Y]:[t.createElement("span",{key:"view",className:$,onClick:function(t){return C(d,t)},title:d.name},d.name),Y],G=v?t.createElement("a",{href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:d.url||d.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:function(t){return C(d,t)},title:s.previewFile},t.createElement(Ux,null)):null,X="picture-card"===u&&"uploading"!==d.status&&t.createElement("span",{className:"".concat(i,"-list-item-actions")},G,"done"===d.status&&W,U);K=d.response&&"string"==typeof d.response?d.response:(null===(a=d.error)||void 0===a?void 0:a.statusText)||(null===(o=d.error)||void 0===o?void 0:o.message)||s.uploadError;var Z=t.createElement("span",{className:D},M,q),J=(0,t.useContext(vr).getPrefixCls)(),Q=t.createElement("div",{className:H},t.createElement("div",{className:"".concat(i,"-list-item-info")},Z),X,j&&t.createElement(Ma,{motionName:"".concat(J,"-fade"),visible:"uploading"===d.status,motionDeadline:2e3},(function(e){var n=e.className,r="percent"in d?t.createElement(oO,E({},f,{type:"line",percent:d.percent})):null;return t.createElement("div",{className:V("".concat(i,"-list-item-progress"),n)},r)}))),tt=V("".concat(i,"-list-").concat(u,"-container"),l),et="error"===d.status?t.createElement(vp,{title:K,getPopupContainer:function(t){return t.parentNode}},Q):Q;return t.createElement("div",{className:tt,style:c,ref:n},g?g(et,d,p,{download:O.bind(null,d),preview:C.bind(null,d),remove:S.bind(null,d)}):et)})),WI=E({},Ld);delete WI.onAppearEnd,delete WI.onEnterEnd,delete WI.onLeaveEnd;var YI=function(e,n){var r,a=e.listType,o=e.previewFile,i=e.onPreview,l=e.onDownload,c=e.onRemove,s=e.locale,u=e.iconRender,d=e.isImageUrl,p=e.prefixCls,f=e.items,m=void 0===f?[]:f,h=e.showPreviewIcon,g=e.showRemoveIcon,b=e.showDownloadIcon,v=e.removeIcon,y=e.downloadIcon,x=e.progress,w=e.appendAction,k=e.itemRender,C=sk(),O=pi(t.useState(!1),2),S=O[0],P=O[1];t.useEffect((function(){"picture"!==a&&"picture-card"!==a||(m||[]).forEach((function(t){"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(t.originFileObj instanceof File||t.originFileObj instanceof Blob)&&void 0===t.thumbUrl&&(t.thumbUrl="",o&&o(t.originFileObj).then((function(e){t.thumbUrl=e||"",C()})))}))}),[a,m,o]),t.useEffect((function(){P(!0)}),[]);var j=function(t,e){if(i)return null==e||e.preventDefault(),i(t)},T=function(t){"function"==typeof l?l(t):t.url&&window.open(t.url)},I=function(t){null==c||c(t)},D=function(e){if(u)return u(e,a);var n="uploading"===e.status,r=d&&d(e)?t.createElement(RI,null):t.createElement(AI,null),o=n?t.createElement(qo,null):t.createElement(TI,null);return"picture"===a?o=n?t.createElement(qo,null):r:"picture-card"===a&&(o=n?s.uploading:r),o},R=function(e,n,r,a){var o={type:"text",size:"small",title:a,onClick:function(t){n(),Hd(e)&&e.props.onClick&&e.props.onClick(t)},className:"".concat(r,"-list-item-card-actions-btn")};if(Hd(e)){var i=Ud(e,E(E({},e.props),{onClick:function(){}}));return t.createElement(af,E({},o,{icon:i}))}return t.createElement(af,o,t.createElement("span",null,e))};t.useImperativeHandle(n,(function(){return{handlePreview:j,handleDownload:T}}));var M=t.useContext(vr),z=M.getPrefixCls,A=M.direction,L=z("upload",p),_=V((N(r={},"".concat(L,"-list"),!0),N(r,"".concat(L,"-list-").concat(a),!0),N(r,"".concat(L,"-list-rtl"),"rtl"===A),r)),F=fl(m.map((function(t){return{key:t.uid,file:t}}))),K="picture-card"===a?"animate-inline":"animate",H={motionDeadline:2e3,motionName:"".concat(L,"-").concat(K),keys:F,motionAppear:S};return"picture-card"!==a&&(H=E(E({},WI),H)),t.createElement("div",{className:_},t.createElement(Ha,E({},H,{component:!1}),(function(e){var n=e.key,r=e.file,o=e.className,i=e.style;return t.createElement(UI,{key:n,locale:s,prefixCls:L,className:o,style:i,file:r,items:m,progress:x,listType:a,isImgUrl:d,showPreviewIcon:h,showRemoveIcon:g,showDownloadIcon:b,removeIcon:v,downloadIcon:y,iconRender:D,actionIconRender:R,itemRender:k,onPreview:j,onDownload:T,onClose:I})})),w&&t.createElement(Ma,H,(function(t){var e=t.className,n=t.style;return Ud(w,(function(t){return{className:V(t.className,e),style:E(E({},n),t.style)}}))})))},$I=t.forwardRef(YI);$I.displayName="UploadList",$I.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:function(t){return new Promise((function(e){if(t.type&&VI(t.type)){var n=document.createElement("canvas");n.width=200,n.height=200,n.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(200,"px; height: ").concat(200,"px; z-index: 9999; display: none;"),document.body.appendChild(n);var r=n.getContext("2d"),a=new Image;a.onload=function(){var t=a.width,o=a.height,i=200,l=200,c=0,s=0;t>o?s=-((l=o*(200/t))-i)/2:c=-((i=t*(200/o))-l)/2,r.drawImage(a,c,s,i,l);var u=n.toDataURL();document.body.removeChild(n),e(u)},a.src=window.URL.createObjectURL(t)}else e("")}))},isImageUrl:function(t){if(t.type&&!t.thumbUrl)return VI(t.type);var e=t.thumbUrl||t.url||"",n=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),e=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(e)||[""])[0]}(e);return!(!/^data:image\//.test(e)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n))||!/^data:/.test(e)&&!n}};var qI=function(t,e,n,r){return new(n||(n=Promise))((function(a,o){function i(t){try{c(r.next(t))}catch(t){o(t)}}function l(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?a(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,l)}c((r=r.apply(t,e||[])).next())}))},GI="__LIST_IGNORE_".concat(Date.now(),"__"),XI=function(e,n){var r,a=e.fileList,o=e.defaultFileList,i=e.onRemove,l=e.showUploadList,c=e.listType,s=e.onPreview,u=e.onDownload,d=e.onChange,p=e.onDrop,f=e.previewFile,m=e.disabled,h=e.locale,g=e.iconRender,b=e.isImageUrl,v=e.progress,y=e.prefixCls,x=e.className,w=e.type,k=e.children,C=e.style,S=e.itemRender,P=e.maxCount,j=pi(bc(o||[],{value:a,postState:function(t){return null!=t?t:[]}}),2),T=j[0],I=j[1],D=pi(t.useState("drop"),2),R=D[0],M=D[1],z=t.useRef();t.useEffect((function(){tr("fileList"in e||!("value"in e),"Upload","`value` is not a valid prop, do you mean `fileList`?"),tr(!("transformFile"in e),"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly.")}),[]),t.useMemo((function(){var t=Date.now();(a||[]).forEach((function(e,n){e.uid||Object.isFrozen(e)||(e.uid="__AUTO__".concat(t,"_").concat(n,"__"))}))}),[a]);var A=function(t,e,n){var r=fl(e);1===P?r=r.slice(-1):P&&(r=r.slice(0,P)),I(r);var a={file:t,fileList:r};n&&(a.event=n),null==d||d(a)},L=function(t){var e=t.filter((function(t){return!t.file[GI]}));if(e.length){var n=e.map((function(t){return LI(t.file)})),r=fl(T);n.forEach((function(t){r=_I(t,r)})),n.forEach((function(t,n){var a=t;if(e[n].parsedFile)t.status="uploading";else{var o,i=t.originFileObj;try{o=new File([i],i.name,{type:i.type})}catch(t){(o=new Blob([i],{type:i.type})).name=i.name,o.lastModifiedDate=new Date,o.lastModified=(new Date).getTime()}o.uid=t.uid,a=o}A(a,r)}))}},_=function(t,e,n){try{"string"==typeof t&&(t=JSON.parse(t))}catch(t){}if(FI(e,T)){var r=LI(e);r.status="done",r.percent=100,r.response=t,r.xhr=n;var a=_I(r,T);A(r,a)}},F=function(t,e){if(FI(e,T)){var n=LI(e);n.status="uploading",n.percent=t.percent;var r=_I(n,T);A(n,r,t)}},K=function(t,e,n){if(FI(n,T)){var r=LI(n);r.error=t,r.response=e,r.status="error";var a=_I(r,T);A(r,a)}},H=function(t){var e;Promise.resolve("function"==typeof i?i(t):i).then((function(n){var r;if(!1!==n){var a=function(t,e){var n=void 0!==t.uid?"uid":"name",r=e.filter((function(e){return e[n]!==t[n]}));return r.length===e.length?null:r}(t,T);a&&(e=E(E({},t),{status:"removed"}),null==T||T.forEach((function(t){var n=void 0!==e.uid?"uid":"name";t[n]!==e[n]||Object.isFrozen(t)||(t.status="removed")})),null===(r=z.current)||void 0===r||r.abort(e),A(e,a))}}))},B=function(t){M(t.type),"drop"===t.type&&(null==p||p(t))};t.useImperativeHandle(n,(function(){return{onBatchStart:L,onSuccess:_,onProgress:F,onError:K,fileList:T,upload:z.current}}));var U=t.useContext(vr),W=U.getPrefixCls,Y=U.direction,$=W("upload",y),q=E(E({onBatchStart:L,onError:K,onProgress:F,onSuccess:_},e),{prefixCls:$,beforeUpload:function(t,n){return qI(void 0,void 0,void 0,ji.mark((function r(){var a,o,i,l;return ji.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=e.beforeUpload,o=e.transformFile,i=t,!a){r.next=13;break}return r.next=5,a(t,n);case 5:if(!1!==(l=r.sent)){r.next=8;break}return r.abrupt("return",!1);case 8:if(delete t[GI],l!==GI){r.next=12;break}return Object.defineProperty(t,GI,{value:!0,configurable:!0}),r.abrupt("return",!1);case 12:"object"===O(l)&&l&&(i=l);case 13:if(!o){r.next=17;break}return r.next=16,o(i);case 16:i=r.sent;case 17:return r.abrupt("return",i);case 18:case"end":return r.stop()}}),r)})))},onChange:void 0});delete q.className,delete q.style,k&&!m||delete q.id;var G=function(e){return l?t.createElement(dr,{componentName:"Upload",defaultLocale:or.Upload},(function(n){var r="boolean"==typeof l?{}:l,a=r.showRemoveIcon,o=r.showPreviewIcon,i=r.showDownloadIcon,d=r.removeIcon,p=r.downloadIcon;return t.createElement($I,{listType:c,items:T,previewFile:f,onPreview:s,onDownload:u,onRemove:H,showRemoveIcon:!m&&a,showPreviewIcon:o,showDownloadIcon:i,removeIcon:d,downloadIcon:p,iconRender:g,locale:E(E({},n),h),isImageUrl:b,progress:v,appendAction:e,itemRender:S})})):e};if("drag"===w){var X,Z=V($,(N(X={},"".concat($,"-drag"),!0),N(X,"".concat($,"-drag-uploading"),T.some((function(t){return"uploading"===t.status}))),N(X,"".concat($,"-drag-hover"),"dragover"===R),N(X,"".concat($,"-disabled"),m),N(X,"".concat($,"-rtl"),"rtl"===Y),X),x);return t.createElement("span",null,t.createElement("div",{className:Z,onDrop:B,onDragOver:B,onDragLeave:B,style:C},t.createElement(EI,E({},q,{ref:z,className:"".concat($,"-btn")}),t.createElement("div",{className:"".concat($,"-drag-container")},k))),G())}var J=V($,(N(r={},"".concat($,"-select"),!0),N(r,"".concat($,"-select-").concat(c),!0),N(r,"".concat($,"-disabled"),m),N(r,"".concat($,"-rtl"),"rtl"===Y),r)),Q=t.createElement("div",{className:J,style:k?void 0:{display:"none"}},t.createElement(EI,E({},q,{ref:z})));return"picture-card"===c?t.createElement("span",{className:V("".concat($,"-picture-card-wrapper"),x)},G(Q)):t.createElement("span",{className:x},Q,G())},ZI=t.forwardRef(XI);ZI.Dragger=NI,ZI.LIST_IGNORE=GI,ZI.displayName="Upload",ZI.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0},ZI.Dragger=NI;y(".dialog .ant-modal-content{display:flex;flex-direction:column;height:100%}.dialog .ant-modal-body{flex:auto;overflow:auto}.dialog.ant-modal>.react-draggable{height:100%}");let JI=1;class QI extends d.default.Component{static show(t){let e,r=document.body,a=document.createElement("div"),o=t&&t.onOk,i=t&&t.onCancel;return a.id="dialog-"+JI++,a.style.cssText="position:absolute;top:0;left:0;",r.appendChild(a),(t=t||{}).visible=!0,t.getContainer=!1,t.destroyOnClose=!0,t.onOk=()=>{o&&o(),r.removeChild(a)},t.onCancel=()=>{i&&i(),r.removeChild(a)},f.default.render(n.jsx(QI,Object.assign({},t,{ref:t=>e=t}),void 0),a),e}static confirm(t,e,n){return QI.show({title:t,children:e,onOk:n})}draggleRef;constructor(t){super(t),this.state={disabled:!0,bounds:{left:0,top:0,bottom:0,right:0}}}onStart(t,e){const{clientWidth:n,clientHeight:r}=window.document.documentElement,a=this.draggleRef?.current?.getBoundingClientRect();this.setState({bounds:{left:-a?.left+e?.x,right:n-(a?.right-e?.x),top:-a?.top+e?.y,bottom:r-(a?.bottom-e?.y)}})}render(){let t=this.props,e=this.state;return n.jsx(LE,Object.assign({className:"dialog",maskClosable:!1},t,{title:n.jsx("div",Object.assign({style:{cursor:"move"},onMouseOver:()=>{this.setState({disabled:!1})},onMouseOut:()=>{this.setState({disabled:!0})},onFocus:()=>{},onBlur:()=>{}},{children:t.title}),void 0),modalRender:t=>n.jsx(h.default,Object.assign({disabled:e.disabled,bounds:e.bounds,onStart:(t,e)=>this.onStart(t,e)},{children:n.jsx("div",Object.assign({ref:this.draggleRef},{children:t}),void 0)}),void 0)},{children:t.children}),void 0)}close(t){let e=this.props;t?e.onOk&&e.onOk():e.onCancel&&e.onCancel()}}y(".anchorBL,.BMap_cpyCtrl{display:none}.gaoDe-container{position:relative}.gaoDe-container .input-item-prepend{position:absolute;top:12px;left:12px;z-index:99;width:320px}.gaoDe-container .input-item-prepend .ant-input-group-wrapper{position:relative}.gaoDe-container .input-item-prepend .ant-input-group-wrapper .ant-input-affix-wrapper{padding-top:0;padding-bottom:0;border-radius:0}.gaoDe-container .input-item-prepend .ant-input-group-wrapper .ant-input-affix-wrapper .ant-input{height:30px}");var tD=t.forwardRef(((e,r)=>{const a=t.useRef(null),o=t.useRef(null),l=t.useRef(null),c=t.useMemo((()=>i.v4()),[]),s=t.useMemo((()=>i.v4()),[]),u=t=>{let e=0,n=0;const r=new BMap.Convertor,a=[];a.push(t.point),"baidu"===t.target&&(e=3,n=5),"google"===t.target&&(e=5,n=3),r.translate(a,e,n,(e=>{0===e.status&&t.callback&&t.callback(e.points[0])}))},d=t=>{a.current.addOverlay(new BMap.Marker(t,{icon:new BMap.Icon("https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png",new BMap.Size(20,32))}))},p=t.useCallback(((t,e)=>{if(a.current){const n=new BMap.Point(t[0],t[1]);d(n),a.current.centerAndZoom(n,e||18)}else o.current={location:t,zoom:e}}),[]),f=t.useCallback((t=>{console.log("转换为google坐标前:",t.location);const n=new BMap.Point(t.location.lng,t.location.lat);u({target:"google",point:n,callback:n=>{t.location.lng=n.lng,t.location.lat=n.lat,console.log("转换为google坐标后:",t.location),e.onChange&&e.onChange(t)}})}),[e]),m=t.useCallback((t=>{a.current.clearOverlays();const e=new BMap.LocalSearch(a.current,{onSearchComplete:()=>{let t=e.getResults().getPoi(0);if(t){const e=t.point;p([e.lng,e.lat]),f({...t,location:{lng:e.lng,lat:e.lat}})}}});e.search(t)}),[p,f]);return t.useEffect((()=>{const t=()=>{a.current=new BMap.Map(c,{enableMapClick:!1}),a.current.enableScrollWheelZoom(!0);new BMap.Autocomplete({input:s,location:a.current}).addEventListener("onconfirm",(t=>{const{province:e,city:n,district:r,street:a,business:o}=t.item.value;m(e+n+r+a+o)})),a.current.addEventListener("click",(t=>{a.current.clearOverlays(),d(new BMap.Point(t.point.lng,t.point.lat)),f({location:{lng:t.point.lng,lat:t.point.lat}})})),l.current&&l.current(),o.current?p(o.current.location,o.current.zoom):p([116.404,39.915])};if(document.getElementById("lbs"))t();else{window.onMapInit=function(){t()};let e="https://api.map.baidu.com/api?v=3.0&ak=1IzhwXLOwlEnencZUoSnMkSkMVADfT3s&callback=onMapInit",n=document.createElement("script");n.src=e,n.id="lbs",document.head.appendChild(n)}}),[c]),t.useImperativeHandle(r,(()=>({setMapCenter:(t,e)=>{console.log("转换为百度坐标前:",{lng:t[0],lat:t[1]});const n=()=>{const n=new BMap.Point(t[0],t[1]);u({target:"baidu",point:n,callback:t=>{console.log("转换为百度坐标后:",{lng:t.lng,lat:t.lat}),p([t.lng,t.lat],e)}})};try{n()}catch(t){l.current=n}}}))),n.jsxs("div",Object.assign({className:`gaoDe-container ${e.className}`},{children:[n.jsx("div",{id:c,style:e.style?e.style:{width:"100%",height:365}},void 0),n.jsx("div",Object.assign({className:"input-item-prepend"},{children:n.jsx("span",Object.assign({className:"ant-input-group-wrapper"},{children:n.jsxs("span",Object.assign({className:"ant-input-wrapper ant-input-group"},{children:[n.jsx("span",Object.assign({className:"ant-input-group-addon"},{children:"关键字"}),void 0),n.jsx("span",Object.assign({className:"ant-input-affix-wrapper"},{children:n.jsx("input",{id:s,className:"ant-input",type:"text",placeholder:"请输入关键字"},void 0)}),void 0)]}),void 0)}),void 0)}),void 0)]}),void 0)}));y("");var eD=t.forwardRef((function(e,r){const[a,o]=t.useState([]);return t.useImperativeHandle(r,(()=>({setFileList:t=>{o(t)}}))),n.jsx(ZI,Object.assign({onChange:t=>{const{response:r}=t.file;let a=r&&parseInt(r.code);Oi.destroy(),console.log("上传的文件对象:",t),("string"==typeof r||"object"==typeof r&&500===r.status)&&(a=-1),"removed"===t.file.status||-1!==a&&400!==a&&500!==a||(t.file.status="error",Oi.warn({content:n.jsx("span",{dangerouslySetInnerHTML:{__html:r.msg||"上传失败"}},void 0),duration:1.5})),"done"===t.file.status&&Oi.success("上传成功",1.5),o(t.fileList),"done"===t.file.status&&e.uploadSuccess&&e.uploadSuccess(t.fileList.filter((t=>"done"===t.status)))},fileList:a,onRemove:t=>{o((n=>(n&&(n=n.filter((e=>e.uid!==t.uid)),e.uploadSuccess&&e.uploadSuccess(n.filter((t=>"done"===t.status)))),n)))}},e,{beforeUpload:(t,n)=>!e.beforeUpload||(e.beforeUpload(t,n)||ZI.LIST_IGNORE)},{children:e.children}),void 0)}));y(".tree-wrap .tree-search{margin-bottom:10px}.tree-wrap .tree-handle-box{display:flex;align-items:center;margin-right:5px;visibility:hidden}.tree-wrap .ant-tree-node-content-wrapper.ant-tree-node-selected .tree-handle-box,.tree-wrap .ant-tree-node-content-wrapper:hover .tree-handle-box{visibility:visible}");const{Search:nD}=fx;var rD=t.forwardRef(((e,r)=>{const[a,o]=C.useSetState({loading:!1,searchOpen:!1,searchValue:"",treeList:[],draggableOpen:!1,processOpen:!1,checkedOpen:!1,firstLevelCollection:[],expandedKeys:[],autoExpandParent:!1,selectNode:[],selectCurrent:[],checkedNode:[],checkedCurrent:[]}),i=t.useCallback((t=>{const e=[],n=t=>{for(let r=0;r<t.length;r++){const a=t[r];e.push(t[r]),a.children&&n(a.children)}};n(t),o({firstLevelCollection:e})}),[o]),l=t.useCallback(((t,n)=>{p.default.isArray(t)&&(o({selectNode:t}),e.onSelect&&e.onSelect(t,n))}),[e,o]),c=t.useCallback((t=>{o({autoExpandParent:!1,expandedKeys:t})}),[o]),s=t.useCallback(((t,e)=>{let n;for(let r=0;r<e.length;r++){const a=e[r];a.children&&(a.children.some((e=>e.key===t))?n=a.key:s(t,a.children)&&(n=s(t,a.children)))}return n}),[]),u=t.useCallback((t=>{const{value:e}=t.target,n=a.firstLevelCollection.map((t=>t.title.indexOf(e)>-1?s(t.key,a.treeList):null)).filter(((t,e,n)=>t&&n.indexOf(t)===e));o({searchValue:e,expandedKeys:n,autoExpandParent:!0})}),[s,o,a.firstLevelCollection,a.treeList]),d=t.useCallback((t=>{o({checkedNode:t.checked||t})}),[o]),f=t.useCallback((t=>t.map((t=>{const r=t.title,o=r.indexOf(a.searchValue),i=r.substr(0,o),l=r.substr(o+a.searchValue.length),c=e.processOpen&&!t.processOpen&&!t.disabled?n.jsx(Dy,Object.assign({className:"tree-handle-box"},{children:e.customAction&&e.customAction(t)}),void 0):null,s=o>-1?n.jsxs(jy,Object.assign({justify:"space-between",align:"middle"},{children:[n.jsxs(Dy,{children:[i,n.jsx("span",Object.assign({className:"text-error"},{children:a.searchValue}),void 0),l]},void 0),c]}),void 0):n.jsxs(jy,Object.assign({justify:"space-between",align:"middle"},{children:[n.jsx(Dy,{children:t.title},void 0),c]}),void 0);return t.children?{...t,title:s,children:f(t.children)}:{...t,title:s}}))),[e,a.searchValue]);return t.useEffect((()=>{o({checkedCurrent:(t=>{let e=[];const n=t=>{for(let r of t)a.checkedNode.some((t=>t===r.key))&&e.push(r),r.children&&n(r.children)};return n(t),e})(a.treeList)})}),[o,a.checkedNode,a.treeList]),t.useEffect((()=>{o({selectCurrent:(t=>{let e=[];const n=t=>{for(let r of t)a.selectNode.some((t=>t===r.key))&&e.push(r),r.children&&n(r.children)};return n(t),e})(a.treeList)})}),[o,a.selectNode,a.treeList]),t.useEffect((()=>{p.default.isArray(e.data)&&(o({treeList:e.data}),i(e.data))}),[i,e.data,o]),t.useEffect((()=>{let t={};e.searchOpen&&(t.searchOpen=e.searchOpen),e.draggableOpen&&(t.draggableOpen=e.draggableOpen),e.processOpen&&(t.processOpen=e.processOpen),e.checkedOpen&&(t.checkedOpen=e.checkedOpen),Object.keys(t).length&&o(t)}),[e.checkedOpen,e.draggableOpen,e.processOpen,e.searchOpen,o]),t.useImperativeHandle(r,(()=>({setLoading:t=>{o({loading:t})},getSelectNode:()=>a.selectNode,getSelectCurrent:()=>a.selectCurrent,getCheckedNode:()=>a.checkedNode,getCheckedCurrent:()=>a.checkedCurrent,setSelectNode:t=>{o({selectNode:t})},setCheckedNode:t=>{o({checkedNode:t})}}))),n.jsx("div",Object.assign({className:"tree-wrap"},{children:n.jsxs(_C,Object.assign({spinning:a.loading},{children:[a.searchOpen?n.jsx(nD,{className:"tree-search",placeholder:"输入名称搜索",onChange:u},void 0):null,a.treeList.length?n.jsx(xj,Object.assign({blockNode:!0,height:500,showLine:{showLeafIcon:!1},checkable:a.checkedOpen,treeData:f(a.treeList),expandedKeys:a.expandedKeys,selectedKeys:a.selectNode,checkedKeys:a.checkedNode,autoExpandParent:a.autoExpandParent,onSelect:l,onExpand:c,onCheck:d,draggable:a.draggableOpen,onDrop:t=>{const n=t.node.key,r=t.dragNode.key,i=t.node.pos.split("-"),l=t.dropPosition-Number(i[i.length-1]),c=(t,e,n)=>{for(let r=0;r<t.length;r++){if(t[r].key===e)return n(t[r],r,t);t[r].children&&c(t[r].children,e,n)}};if(e.onVerificationDropCallBack&&e.onVerificationDropCallBack(t,a.treeList))return;if(t.dragNode.noDrag)return void Oi.warn("此节点不支持修改",1.5);const s=[...a.treeList];let u={title:"",key:""};if(c(s,r,((t,e,n)=>{n.splice(e,1),u=t})),t.dropToGap)if((t.node.children||[]).length>0&&t.node.expanded&&1===l)c(s,n,(t=>{t.children=t.children||[],t.children.unshift(u)}));else{let t=[],e=0;c(s,n,((n,r,a)=>{t=a,e=r})),-1===l?t.splice(e,0,u):t.splice(e+1,0,u)}else c(s,n,(t=>{t.children=t.children||[],t.children.push(u)}));e.onDropCallBack&&e.onDropCallBack(t,s),o({treeList:s})},onDragEnter:t=>{o({expandedKeys:t.expandedKeys})}},e.treeConfig),void 0):n.jsx(br,{},void 0)]}),void 0)}),void 0)}));const aD=t=>Object.prototype.toString.call(t.data)===`[object ${t.type}]`,oD=(t,e)=>{for(let n of t){let t=n.value;if("number"==typeof e&&(t=parseInt(n.value)),t===e)return n.label}return e};var iD={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},lD={lang:E({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeWeekPlaceholder:["开始周","结束周"]},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"}),timePickerLocale:E({},iD)};lD.lang.ok="确 定";var cD="${label}不是一个有效的${type}",sD={locale:"zh-cn",Pagination:aE,DatePicker:lD,TimePicker:iD,Calendar:lD,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:cD,method:cD,array:cD,object:cD,number:cD,date:cD,boolean:cD,integer:cD,float:cD,regexp:cD,email:cD,url:cD,hex:cD},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"}},uD={placeholder:"請選擇時間"},dD={lang:E({placeholder:"請選擇日期",yearPlaceholder:"請選擇年份",quarterPlaceholder:"請選擇季度",monthPlaceholder:"請選擇月份",weekPlaceholder:"請選擇周",rangePlaceholder:["開始日期","結束日期"],rangeYearPlaceholder:["開始年份","結束年份"],rangeMonthPlaceholder:["開始月份","結束月份"],rangeWeekPlaceholder:["開始周","結束周"]},{locale:"zh_TW",today:"今天",now:"此刻",backToToday:"返回今天",ok:"確定",timeSelect:"選擇時間",dateSelect:"選擇日期",weekSelect:"選擇周",clear:"清除",month:"月",year:"年",previousMonth:"上個月 (翻頁上鍵)",nextMonth:"下個月 (翻頁下鍵)",monthSelect:"選擇月份",yearSelect:"選擇年份",decadeSelect:"選擇年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH時mm分ss秒",previousYear:"上一年 (Control鍵加左方向鍵)",nextYear:"下一年 (Control鍵加右方向鍵)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世紀",nextCentury:"下一世紀"}),timePickerLocale:E({},uD)};dD.lang.ok="確 定";var pD="${label}不是一個有效的${type}",fD={locale:"zh-hk",Pagination:{items_per_page:"條/頁",jump_to:"跳至",jump_to_confirm:"確定",page:"頁",prev_page:"上一頁",next_page:"下一頁",prev_5:"向前 5 頁",next_5:"向後 5 頁",prev_3:"向前 3 頁",next_3:"向後 3 頁",page_size:"頁碼"},DatePicker:dD,TimePicker:uD,Calendar:dD,global:{placeholder:"請選擇"},Table:{filterTitle:"篩選器",filterConfirm:"確定",filterReset:"重置",filterEmptyText:"無篩選項",selectAll:"全部選取",selectInvert:"反向選取",selectNone:"清空所有",selectionAll:"全選所有",sortTitle:"排序",expand:"展開行",collapse:"關閉行",triggerDesc:"點擊降序",triggerAsc:"點擊升序",cancelSort:"取消排序"},Modal:{okText:"確定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{okText:"確定",cancelText:"取消"},Transfer:{searchPlaceholder:"搜尋資料",itemUnit:"項目",itemsUnit:"項目",remove:"刪除",selectCurrent:"全選當頁",removeCurrent:"刪除當頁",selectAll:"全選所有",removeAll:"刪除全部",selectInvert:"反選當頁"},Upload:{uploading:"正在上傳...",removeFile:"刪除檔案",uploadError:"上傳失敗",previewFile:"檔案預覽",downloadFile:"下载文件"},Empty:{description:"無此資料"},Icon:{icon:"圖標"},Text:{edit:"編輯",copy:"複製",copied:"複製成功",expand:"展開"},PageHeader:{back:"返回"},Form:{defaultValidateMessages:{default:"字段驗證錯誤${label}",required:"請輸入${label}",enum:"${label}必須是其中一個[${enum}]",whitespace:"${label}不能為空字符",date:{format:"${label}日期格式無效",parse:"${label}不能轉換為日期",invalid:"${label}是一個無效日期"},types:{string:pD,method:pD,array:pD,object:pD,number:pD,date:pD,boolean:pD,integer:pD,float:pD,regexp:pD,email:pD,url:pD,hex:pD},string:{len:"${label}須為${len}個字符",min:"${label}最少${min}個字符",max:"${label}最多${max}個字符",range:"${label}須在${min}-${max}字符之間"},number:{len:"${label}必須等於${len}",min:"${label}最小值為${min}",max:"${label}最大值為${max}",range:"${label}須在${min}-${max}之間"},array:{len:"須為${len}個${label}",min:"最少${min}個${label}",max:"最多${max}個${label}",range:"${label}數量須在${min}-${max}之間"},pattern:{mismatch:"${label}與模式不匹配${pattern}"}}},Image:{preview:"預覽"}};g.default.locale("zh-cn");const mD=e=>{const[r,a]=t.useState(sD);return t.useEffect((()=>{const t=t=>{switch(t){case"zh-CN":a(sD),g.default.locale("zh-cn");break;case"zh-HK":a(fD),g.default.locale("zh-hk");break;case"en":a(or),g.default.locale("en")}};t((t=>{if(!t)return null;t=t.toString();const e=window.localStorage.getItem(t);try{return JSON.parse(e)}catch(t){return e}})("i18nextLng")),window.addEventListener("web_pack:language",(e=>{const n=e.language;t(n)}))}),[]),n.jsx(dl,Object.assign({locale:r},{children:e.children}),void 0)};y(".generate-form.ant-form .ant-row.ant-form-item{margin-bottom:8px}.generate-form.ant-form .ant-row .ant-col.ant-form-item-label{padding-bottom:0}.generate-form.ant-form .ant-row .ant-col .ant-picker{width:100%}.generate-form.ant-form .ant-row .ant-col .form-item-divide .ant-form-item{margin-bottom:0}.generate-form.ant-form .ant-row .ant-col .form-item-divide .divide{position:absolute;top:5px;right:-5px;z-index:1;color:#ccc}.multiple-checkbox .ant-checkbox-wrapper{margin-top:5px;margin-bottom:5px;margin-left:10px}.hlyc-web-com-align-right input{padding-right:24px;text-align:right}");const{Option:hD}=Kd,{RangePicker:gD}=Fw,{RangePicker:bD}=mT;var vD,yD=t.forwardRef((function(e,r){const[a]=Fk.useForm();let{className:o,formConfig:l,rowGridConfig:c,colGirdConfig:s,render:u}=e;const d=t.useRef({}),f=t.useRef({}),[m,h]=C.useSetState({update:!1,remoteFetching:!1,remoteData:{},treeSelectData:{},treeSelectFlattenData:{},selectMultiple:{}});let b=t.useMemo((()=>e.list?[...e.list]:[]),[e.list]);const v=t.useMemo((()=>i.v4()),[]),y=t.useCallback(((t,e)=>{const n=e.remoteConfig,r=e.name;let a=d.current[r];n&&n.remoteApi&&(h((t=>(t.remoteFetching=!0,d.current[r]=[],t.remoteData[r]=[],t))),n.remoteApi(t).then((t=>{setTimeout((()=>{void 0===a&&(d.current[r]=[]),r&&h((e=>(e.remoteFetching=!1,d.current[r]=t,e.remoteData[r]=t,e)))}),100)})).catch((()=>{h((t=>(t.remoteFetching=!1,d.current[r]=[],t.remoteData[r]=[],t)))})))}),[h]),x=t.useCallback(((t,e)=>{const n=t.treeSelectConfig;n&&n.data&&n.data.api(e).then((e=>{const r=t.name;if(r){f.current[r]=[];let t=[],a=[];const o=(t,e)=>{for(let[r,i]of t.entries()){const t=n.data?.children||"children";e[r]={},e[r].title=i[n.data?.title],e[r].value=i[n.data?.value],e[r].key=e[r].value,a.push(i),Array.isArray(i[t])&&(e[r].children=[],o(i[t],e[r].children))}};o(e,t),h((e=>(e.treeSelectData[r]=t,e.treeSelectFlattenData[r]=a,e)))}}))}),[h]);return t.useEffect((()=>{if(b){let t={};for(let t of b)"RemoteSearch"===t.componentName&&t.name&&!d.current[t.name]&&t.remoteConfig&&!1!==t.remoteConfig.initLoad&&y(void 0,t),"TreeSelect"===t.componentName&&t.name&&!f.current[t.name]&&t.treeSelectConfig&&t.treeSelectConfig.data&&x(t);a.setFieldsValue(t)}}),[y,x,a,b]),t.useImperativeHandle(r,(()=>({getFormValues:t=>a.getFieldsValue(t),setFormFields:t=>{a.setFields(t)},setFormValues:t=>{a.setFieldsValue(t),setTimeout((()=>{b.forEach((t=>{"RemoteSearch"===t.componentName&&t.remoteConfig&&t.remoteConfig.reLoad&&y(void 0,t)}))}),100)},formSubmit:t=>new Promise(((e,n)=>{a.validateFields(t).then((t=>{for(let e in t)aD({data:t[e],type:"String"})&&(t[e]=t[e].replace(/(^\s*)|(\s*$)/g,""));e(t)})).catch((t=>{t.errorFields&&t.errorFields.length&&(console.warn("请输入或选择表单必填项:",t),Oi.warn("请输入或选择表单必填项",1.5)),n(new Error("false"))}))})),formReset:t=>(a.resetFields(t),a.getFieldsValue())}))),n.jsx(mD,{children:n.jsx(Fk,Object.assign({name:v,className:`generate-form ${o||""}`,form:a},l,{initialValues:{sortSeq:10,startTime:g.default(`${(new Date).getFullYear()}-01-01`),endTime:g.default("2099-12-31"),...l?l.initialValues:void 0}},{children:n.jsxs(jy,Object.assign({},c,{children:[(()=>{const e=(t,e)=>{h((n=>(t.name&&(n.selectMultiple[t.name]=e),n)))};if(!b)return;const r=t=>{const{inputMode:e,...r}=t.inputConfig||{};return n.jsx(fx,Object.assign({disabled:t.disabled,type:e||"text",maxLength:t.maxLength,placeholder:t.placeholder||`请输入${t.label}`,onChange:t.inputChange,onPressEnter:t.inputEnter},r),void 0)},o=t=>n.jsx(Kd,Object.assign({allowClear:!0,disabled:t.disabled,placeholder:t.placeholder||`请选择${t.label}`,onChange:t.selectChange},t.selectConfig,{children:t.selectData?t.selectData.map(((t,e)=>n.jsx(hD,Object.assign({value:t.value},{children:t.label}),e))):null}),void 0),i=t=>{const r=t.selectData||[];return n.jsx(Kd,Object.assign({mode:"multiple",allowClear:!0,disabled:t.disabled,placeholder:t.placeholder||`请选择${t.label}`,onChange:n=>{e(t,n.length===r.length),t.multipleChange&&t.multipleChange(n)},filterOption:(t,e)=>!!e&&e.children.toLowerCase().indexOf(t.toLowerCase())>=0,dropdownRender:r=>((t,r)=>{const o=r.selectData||[];return n.jsxs("div",Object.assign({className:"multiple-checkbox"},{children:[n.jsx(gw,Object.assign({checked:r.name?m.selectMultiple[r.name]:void 0,onChange:t=>{const n={};t.target.checked?r.name&&(n[r.name]=o.map((t=>t.value))):r.name&&(n[r.name]=[]),e(r,t.target.checked),a.setFieldsValue(n)}},{children:"全选"}),void 0),t]}),void 0)})(r,t)},t.selectConfig,{children:r.map(((t,e)=>n.jsx(hD,Object.assign({value:t.value},{children:t.label}),e)))}),void 0)},l=t=>{const e=t.remoteConfig,r=e&&e.remoteMode,a=e&&e.allowClear,o=e&&e.showSearch;return n.jsx(Kd,Object.assign({mode:r||void 0,disabled:t.disabled,placeholder:t.placeholder||`请选择${t.label}`,notFoundContent:m.remoteFetching?n.jsx(_C,{size:"small"},void 0):n.jsx(br,{style:{marginTop:8,marginBottom:8},image:br.PRESENTED_IMAGE_SIMPLE},void 0),filterOption:!1,allowClear:!1!==a,showSearch:!1!==o,onFocus:()=>y(void 0,t),onSearch:!1===o?void 0:p.default.debounce((e=>y(e,t)),300),onChange:t.remoteSearchChange},t.selectConfig,{children:t.name&&m.remoteData[t.name]?m.remoteData[t.name].map(((t,e)=>n.jsx(hD,Object.assign({value:t.value},{children:t.label}),e))):null}),void 0)},c=t=>n.jsx(Fw,Object.assign({disabled:t.disabled,placeholder:t.placeholder||`请选择${t.label}`,onChange:t.datePickerChange},t.datePickerConfig),void 0),u=t=>n.jsx(mT,Object.assign({disabled:t.disabled,placeholder:t.placeholder||`请选择${t.label}`,onChange:t.timePickerChange},t.timePickerConfig),void 0),d=t=>{const e=t.regionSelectionConfig;return n.jsx(lw,{disabled:t.disabled,placeholder:t.placeholder||`请选择${t.label}`,options:e&&e.loadData||[],loadData:e=>(async(t,e)=>{if(e){const n=e[e.length-1];let r=[];if(!t.regionSelectionConfig?.selectLoad)return;n.loading=!0,r=await(t.regionSelectionConfig?.selectLoad(n.id)),n.loading=!1,r.length?n.children=r:n.isLeaf=!0,h({update:!m.update})}})(t,e),changeOnSelect:!0,onChange:t.cascaderChange},void 0)},f=t=>"Input"===t.componentName?r(t):"Select"===t.componentName?o(t):"DatePicker"===t.componentName?c(t):"TimePicker"===t.componentName?u(t):"RemoteSearch"===t.componentName?l(t):null;return b.map(((e,h)=>{let g=null;switch(e.componentName){case"Input":g=r(e);break;case"InputNumber":g=(t=>{const{alignRight:e,...r}=t.inputNumberConfig||{};return n.jsx(zC,Object.assign({disabled:t.disabled,style:{width:"100%"},placeholder:t.placeholder||`请输入${t.label}`,onChange:t.inputNumberChange,className:e?"hlyc-web-com-align-right":""},r),void 0)})(e);break;case"HideInput":g=(t=>n.jsx(fx,{style:{display:"none"},maxLength:t.maxLength,disabled:t.disabled,type:"text",placeholder:t.placeholder||`请输入${t.label}`,onChange:t.inputChange,onPressEnter:t.inputEnter},void 0))(e);break;case"TextArea":g=(t=>n.jsx(fx.TextArea,{rows:t.rows,disabled:t.disabled,maxLength:t.maxLength,placeholder:t.placeholder||`请输入${t.label}`,onChange:t.textAreaChange},void 0))(e);break;case"AutoComplete":g=(t=>n.jsx(Kd,Object.assign({allowClear:!0,showSearch:!0,disabled:t.disabled,placeholder:t.placeholder||`请选择${t.label}`,optionFilterProp:"children",filterOption:(t,e)=>!!e&&e.children.toLowerCase().indexOf(t.toLowerCase())>=0,onChange:t.autoCompleteChange},t.selectConfig,{children:t.selectData?t.selectData.map(((t,e)=>n.jsx(hD,Object.assign({value:t.value},{children:t.label}),e))):null}),void 0))(e);break;case"InputAutoComplete":g=(t=>n.jsx(qd,Object.assign({filterOption:(t,e)=>-1!==e.value.toUpperCase().indexOf(t.toUpperCase()),disabled:t.disabled,placeholder:t.placeholder||`请选择${t.label}`,onChange:t.inputAutoCompleteChange},t.inputAutoCompleteConfig),void 0))(e);break;case"Select":g=o(e);break;case"Multiple":g=i(e);break;case"MultipleTag":g=(t=>n.jsx(Kd,Object.assign({mode:"tags",allowClear:!0,disabled:t.disabled,placeholder:t.placeholder||`请选择${t.label}`,onChange:t.multipleChange},t.selectConfig,{children:t.selectData?t.selectData.map(((t,e)=>n.jsx(hD,Object.assign({value:t.value},{children:t.label}),e))):null}),void 0))(e);break;case"RemoteSearch":g=l(e);break;case"DatePicker":g=c(e);break;case"RangePicker":g=(t=>n.jsx(gD,Object.assign({disabled:t.disabled,placeholder:t.rangePickerPlaceholder,onChange:t.rangePickerChange},t.rangePickerConfig),void 0))(e);break;case"TimeRangePicker":g=(t=>n.jsx(bD,Object.assign({disabled:t.disabled,placeholder:t.timeRangePickerPlaceholder,onChange:t.timeRangePickerChange},t.timeRangePickerConfig),void 0))(e);break;case"TimePicker":g=u(e);break;case"Switch":g=(t=>n.jsx(HO,{defaultChecked:!1,checkedChildren:"ON",unCheckedChildren:"OFF",disabled:t.disabled,onChange:t.switchChange},void 0))(e);break;case"Radio":g=(t=>n.jsx(ob.Group,Object.assign({onChange:t.radioChange},{children:t.selectData?t.selectData.map(((e,r)=>n.jsx(ob,Object.assign({disabled:t.disabled,value:e.value},{children:e.label}),r))):null}),void 0))(e);break;case"Checkbox":g=(t=>n.jsx(gw.Group,Object.assign({onChange:t.checkboxChange},{children:t.selectData?t.selectData.map(((e,r)=>n.jsx(gw,Object.assign({disabled:t.disabled,value:e.value},{children:e.label}),r))):null}),void 0))(e);break;case"TreeSelect":g=((t,e)=>{const r=t.name;return n.jsx(sT,Object.assign({disabled:t.disabled,style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:m.treeSelectData[r],placeholder:t.placeholder||`请选择${t.label}`,onChange:n=>{if(t.treeSelectConfig&&t.treeSelectConfig.data){const o=t.treeSelectConfig.data,i=o.onChange,l=m.treeSelectFlattenData[r],c=Object.prototype.toString.call(n);let s=[],u={...t};if("[object String]"===c&&(s=l.filter((t=>t[o.value]===n))),"[object Array]"===c&&Array.isArray(n))for(let t=l.length;t--;)n.some((e=>e===l[t][o.value]))&&s.push(l[t]);if(i){const n=i(s,{...t});n&&(u=n),u&&(b[e]=u)}a.setFieldsValue({[u.name]:n}),x(u)}},allowClear:!0,treeDefaultExpandAll:!0},t.treeSelectConfig?.extra),void 0)})(e,h);break;case"Union":let t,s=0;e.unionConfig&&(s=e.unionConfig.unionItems.length,t=100/s+"%"),g=n.jsx(jy,Object.assign({className:"form-item-divide",gutter:16},{children:e.unionConfig?.unionItems.map(((r,a)=>n.jsxs(Dy,Object.assign({style:{width:t}},{children:[n.jsx(Fk.Item,Object.assign({name:r.name,rules:r.rules,noStyle:!0},{children:f(r)}),void 0),a<s-1?n.jsx("span",Object.assign({className:"divide"},{children:e.unionConfig&&(e.unionConfig.divide?e.unionConfig.divide:"~")}),void 0):null]}),a)))}),void 0);break;case"RegionSelection":g=d(e);break;case"Rate":g=(t=>n.jsx(PO,Object.assign({disabled:t.disabled,onChange:t.rateChange},t.rateConfig),void 0))(e);break;default:return null}let v,y={...e};return y.label=(t=>{let e=t.label;return"Union"===t.componentName&&t.rules&&(e=n.jsxs("span",{children:[n.jsx("i",Object.assign({style:{marginRight:4,color:"#ff4d4f",fontStyle:"normal",fontFamily:"SimSun, sans-serif"}},{children:"*"}),void 0),t.label]},void 0)),e})(y),y=p.default.omit(y,["colProps","componentName","selectData","inputConfig","inputNumberConfig","datePickerConfig","rangePickerConfig","timeRangePickerConfig","timePickerConfig","inputAutoCompleteConfig","unionConfig","remoteConfig","selectConfig","regionSelectionConfig","treeSelectConfig","rows","render","rangePickerPlaceholder","timeRangePickerPlaceholder","visible","selectIsHideAll","rateConfig","inputChange","inputNumberChange","inputAutoCompleteChange","inputEnter","textAreaChange","autoCompleteChange","selectChange","multipleChange","remoteSearchChange","datePickerChange","rangePickerChange","timeRangePickerChange","timePickerChange","switchChange","radioChange","checkboxChange","cascaderChange","rateChange"]),"Union"===e.componentName&&(y=p.default.omit(y,["name"])),v=e.colProps?e.colProps:s,t.createElement(Dy,{...v,key:h,style:{display:!1===e.visible?"none":"block"}},n.jsx(Fk.Item,Object.assign({className:"HideInput"===e.componentName?"hide-item":void 0},y,{children:g}),void 0),e.render&&e.render())}))})(),u?n.jsx(Dy,{children:n.jsx(Fk.Item,{children:u&&u()},void 0)},void 0):null]}),void 0)}),void 0)},void 0)})),xD=_(F((function(t,e){function n(t){return"object"!=typeof t||"toString"in t?t:Object.prototype.toString.call(t).slice(8,-1)}Object.defineProperty(e,"__esModule",{value:!0});var r="object"==typeof process&&"production"===process.env.NODE_ENV;function a(t,e){if(!t){if(r)throw new Error("Invariant failed");throw new Error(e())}}e.invariant=a;var o=Object.prototype.hasOwnProperty,i=Array.prototype.splice,l=Object.prototype.toString;function c(t){return l.call(t).slice(8,-1)}var s=Object.assign||function(t,e){return u(e).forEach((function(n){o.call(e,n)&&(t[n]=e[n])})),t},u="function"==typeof Object.getOwnPropertySymbols?function(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.keys(t)};function d(t){return Array.isArray(t)?s(t.constructor(t.length),t):"Map"===c(t)?new Map(t):"Set"===c(t)?new Set(t):t&&"object"==typeof t?s(Object.create(Object.getPrototypeOf(t)),t):t}var p=function(){function t(){this.commands=s({},f),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(t,e){return t===e},this.update.newContext=function(){return(new t).update}}return Object.defineProperty(t.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(t){this.update.isEquals=t},enumerable:!0,configurable:!0}),t.prototype.extend=function(t,e){this.commands[t]=e},t.prototype.update=function(t,e){var n=this,r="function"==typeof e?{$apply:e}:e;Array.isArray(t)&&Array.isArray(r)||a(!Array.isArray(r),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),a("object"==typeof r&&null!==r,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(n.commands).join(", ")+"."}));var i=t;return u(r).forEach((function(e){if(o.call(n.commands,e)){var a=t===i;i=n.commands[e](r[e],i,r,t),a&&n.isEquals(i,t)&&(i=t)}else{var l="Map"===c(t)?n.update(t.get(e),r[e]):n.update(t[e],r[e]),s="Map"===c(i)?i.get(e):i[e];n.isEquals(l,s)&&(void 0!==l||o.call(t,e))||(i===t&&(i=d(t)),"Map"===c(i)?i.set(e,l):i[e]=l)}})),i},t}();e.Context=p;var f={$push:function(t,e,n){return h(e,n,"$push"),t.length?e.concat(t):e},$unshift:function(t,e,n){return h(e,n,"$unshift"),t.length?t.concat(e):e},$splice:function(t,e,r,o){return function(t,e){a(Array.isArray(t),(function(){return"Expected $splice target to be an array; got "+n(t)})),b(e.$splice)}(e,r),t.forEach((function(t){b(t),e===o&&t.length&&(e=d(o)),i.apply(e,t)})),e},$set:function(t,e,n){return function(t){a(1===Object.keys(t).length,(function(){return"Cannot have more than one key in an object with $set"}))}(n),t},$toggle:function(t,e){g(t,"$toggle");var n=t.length?d(e):e;return t.forEach((function(t){n[t]=!e[t]})),n},$unset:function(t,e,n,r){return g(t,"$unset"),t.forEach((function(t){Object.hasOwnProperty.call(e,t)&&(e===r&&(e=d(r)),delete e[t])})),e},$add:function(t,e,n,r){return v(e,"$add"),g(t,"$add"),"Map"===c(e)?t.forEach((function(t){var n=t[0],a=t[1];e===r&&e.get(n)!==a&&(e=d(r)),e.set(n,a)})):t.forEach((function(t){e!==r||e.has(t)||(e=d(r)),e.add(t)})),e},$remove:function(t,e,n,r){return v(e,"$remove"),g(t,"$remove"),t.forEach((function(t){e===r&&e.has(t)&&(e=d(r)),e.delete(t)})),e},$merge:function(t,e,r,o){var i,l;return i=e,a((l=t)&&"object"==typeof l,(function(){return"update(): $merge expects a spec of type 'object'; got "+n(l)})),a(i&&"object"==typeof i,(function(){return"update(): $merge expects a target of type 'object'; got "+n(i)})),u(t).forEach((function(n){t[n]!==e[n]&&(e===o&&(e=d(o)),e[n]=t[n])})),e},$apply:function(t,e){var r;return a("function"==typeof(r=t),(function(){return"update(): expected spec of $apply to be a function; got "+n(r)+"."})),t(e)}},m=new p;function h(t,e,r){a(Array.isArray(t),(function(){return"update(): expected target of "+n(r)+" to be an array; got "+n(t)+"."})),g(e[r],r)}function g(t,e){a(Array.isArray(t),(function(){return"update(): expected spec of "+n(e)+" to be an array; got "+n(t)+". Did you forget to wrap your parameter in an array?"}))}function b(t){a(Array.isArray(t),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(t)+". Did you forget to wrap your parameters in an array?"}))}function v(t,e){var r=c(t);a("Map"===r||"Set"===r,(function(){return"update(): "+n(e)+" expects a target of type Set or Map; got "+n(r)}))}e.isEquals=m.update.isEquals,e.extend=m.extend,e.default=m.update,e.default.default=t.exports=s(e.default,e)}))),wD=function(t,e){e.style&&t.props.style&&(e.style=ED(ED({},t.props.style),e.style));e.className&&t.props.className&&(e.className=t.props.className+" "+e.className);return kD.default.cloneElement(t,e)},kD=(vD=d.default)&&vD.__esModule?vD:{default:vD};function CD(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 ED(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?CD(Object(n),!0).forEach((function(e){OD(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):CD(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function OD(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var SD=Object.defineProperty({cloneElement:wD},"__esModule",{value:!0}),ND="function"==typeof Symbol&&Symbol.for,PD=ND?Symbol.for("react.element"):60103,jD=ND?Symbol.for("react.portal"):60106,TD=ND?Symbol.for("react.fragment"):60107,ID=ND?Symbol.for("react.strict_mode"):60108,DD=ND?Symbol.for("react.profiler"):60114,RD=ND?Symbol.for("react.provider"):60109,MD=ND?Symbol.for("react.context"):60110,zD=ND?Symbol.for("react.async_mode"):60111,AD=ND?Symbol.for("react.concurrent_mode"):60111,LD=ND?Symbol.for("react.forward_ref"):60112,_D=ND?Symbol.for("react.suspense"):60113,FD=ND?Symbol.for("react.suspense_list"):60120,VD=ND?Symbol.for("react.memo"):60115,KD=ND?Symbol.for("react.lazy"):60116,HD=ND?Symbol.for("react.block"):60121,BD=ND?Symbol.for("react.fundamental"):60117,UD=ND?Symbol.for("react.responder"):60118,WD=ND?Symbol.for("react.scope"):60119;
|
|
35
|
+
*/$T.Text=function(e){var n=e.ellipsis,r=KT(e,["ellipsis"]),a=t.useMemo((function(){return n&&"object"===O(n)?Y(n,["expandable","rows"]):n}),[n]);return tr("object"!==O(n)||!n||!("expandable"in n)&&!("rows"in n),"Typography.Text","`ellipsis` do not support `expandable` or `rows` props."),t.createElement(VT,E({},r,{ellipsis:a,component:"span"}))},$T.Link=UT,$T.Title=function(e){var n,r=e.level,a=void 0===r?1:r,o=WT(e,["level"]);return-1!==YT.indexOf(a)?n="h".concat(a):(tr(!1,"Typography.Title","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version."),n="h1"),t.createElement(VT,E({},o,{component:n}))},$T.Paragraph=function(e){return t.createElement(VT,E({},e,{component:"div"}))};var fI=F((function(t){!function(){var e={}.hasOwnProperty;function n(){for(var t=[],r=0;r<arguments.length;r++){var a=arguments[r];if(a){var o=typeof a;if("string"===o||"number"===o)t.push(a);else if(Array.isArray(a)){if(a.length){var i=n.apply(null,a);i&&t.push(i)}}else if("object"===o)if(a.toString===Object.prototype.toString)for(var l in a)e.call(a,l)&&a[l]&&t.push(l);else t.push(a.toString())}}return t.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n}()}));function mI(t){var e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch(t){return e}}function hI(t){var e=new XMLHttpRequest;t.onProgress&&e.upload&&(e.upload.onprogress=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),t.onProgress(e)});var n=new FormData;t.data&&Object.keys(t.data).forEach((function(e){var r=t.data[e];Array.isArray(r)?r.forEach((function(t){n.append("".concat(e,"[]"),t)})):n.append(e,r)})),t.file instanceof Blob?n.append(t.filename,t.file,t.file.name):n.append(t.filename,t.file),e.onerror=function(e){t.onError(e)},e.onload=function(){return e.status<200||e.status>=300?t.onError(function(t,e){var n="cannot ".concat(t.method," ").concat(t.action," ").concat(e.status,"'"),r=new Error(n);return r.status=e.status,r.method=t.method,r.url=t.action,r}(t,e),mI(e)):t.onSuccess(mI(e),e)},e.open(t.method,t.action,!0),t.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);var r=t.headers||{};return null!==r["X-Requested-With"]&&e.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(t){null!==r[t]&&e.setRequestHeader(t,r[t])})),e.send(n),{abort:function(){e.abort()}}}var gI=+new Date,bI=0;function vI(){return"rc-upload-".concat(gI,"-").concat(++bI)}var yI=function(t,e){if(t&&e){var n=Array.isArray(e)?e:e.split(","),r=t.name||"",a=t.type||"",o=a.replace(/\/.*$/,"");return n.some((function(t){var e=t.trim();if(/^\*(\/\*)?$/.test(t))return!0;if("."===e.charAt(0)){var n=r.toLowerCase(),i=e.toLowerCase(),l=[i];return".jpg"!==i&&".jpeg"!==i||(l=[".jpg",".jpeg"]),l.some((function(t){return n.endsWith(t)}))}return/\/\*$/.test(e)?o===e.replace(/\/.*$/,""):a===e||!!/^\w+$/.test(e)&&(yt(!1,"Upload takes an invalidate 'accept' type '".concat(e,"'.Skip for check.")),!0)}))}return!0};var xI=function(t,e,n){var r=function t(r,a){r&&(r.path=a||"",r.isFile?r.file((function(t){n(t)&&(r.fullPath&&!t.webkitRelativePath&&(Object.defineProperties(t,{webkitRelativePath:{writable:!0}}),t.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(t,{webkitRelativePath:{writable:!1}})),e([t]))})):r.isDirectory&&function(t,e){var n=t.createReader(),r=[];!function t(){n.readEntries((function(n){var a=Array.prototype.slice.apply(n);r=r.concat(a),a.length?t():e(r)}))}()}(r,(function(e){e.forEach((function(e){t(e,"".concat(a).concat(r.name,"/"))}))})))};t.forEach((function(t){r(t.webkitGetAsEntry())}))},wI=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],kI=function(e){eI(r,t.Component);var n=oI(r);function r(){var t;GT(this,r);for(var e=arguments.length,a=new Array(e),o=0;o<e;o++)a[o]=arguments[o];return(t=n.call.apply(n,[this].concat(a))).state={uid:vI()},t.reqs={},t.fileInput=void 0,t._isMounted=void 0,t.onChange=function(e){var n=t.props,r=n.accept,a=n.directory,o=pI(e.target.files).filter((function(t){return!a||yI(t,r)}));t.uploadFiles(o),t.reset()},t.onClick=function(e){var n=t.fileInput;if(n){var r=e.target,a=t.props.onClick;if(r&&"BUTTON"===r.tagName)n.parentNode.focus(),r.blur();n.click(),a&&a(e)}},t.onKeyDown=function(e){"Enter"===e.key&&t.onClick(e)},t.onFileDrop=function(e){var n=t.props.multiple;if(e.preventDefault(),"dragover"!==e.type)if(t.props.directory)xI(Array.prototype.slice.call(e.dataTransfer.items),t.uploadFiles,(function(e){return yI(e,t.props.accept)}));else{var r=pI(e.dataTransfer.files).filter((function(e){return yI(e,t.props.accept)}));!1===n&&(r=r.slice(0,1)),t.uploadFiles(r)}},t.uploadFiles=function(e){var n=pI(e),r=n.map((function(e){return e.uid=vI(),t.processFile(e,n)}));Promise.all(r).then((function(e){var n=t.props.onBatchStart;null==n||n(e.map((function(t){return{file:t.origin,parsedFile:t.parsedFile}}))),e.filter((function(t){return null!==t.parsedFile})).forEach((function(e){t.post(e)}))}))},t.processFile=function(){var e=uI(cI().mark((function e(n,r){var a,o,i,l,c,s,u,d,p;return cI().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.props.beforeUpload,o=n,!a){e.next=14;break}return e.prev=3,e.next=6,a(n,r);case 6:o=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),o=!1;case 12:if(!1!==o){e.next=14;break}return e.abrupt("return",{origin:n,parsedFile:null,action:null,data:null});case 14:if("function"!=typeof(i=t.props.action)){e.next=21;break}return e.next=18,i(n);case 18:l=e.sent,e.next=22;break;case 21:l=i;case 22:if("function"!=typeof(c=t.props.data)){e.next=29;break}return e.next=26,c(n);case 26:s=e.sent,e.next=30;break;case 29:s=c;case 30:return u="object"!==XT(o)&&"string"!=typeof o||!o?n:o,d=u instanceof File?u:new File([u],n.name,{type:n.type}),(p=d).uid=n.uid,e.abrupt("return",{origin:n,data:s,parsedFile:p,action:l});case 35:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(t,n){return e.apply(this,arguments)}}(),t.saveFileInput=function(e){t.fileInput=e},t}return QT(r,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(t){var e=this,n=t.data,r=t.origin,a=t.action,o=t.parsedFile;if(this._isMounted){var i=this.props,l=i.onStart,c=i.customRequest,s=i.name,u=i.headers,d=i.withCredentials,p=i.method,f=r.uid,m=c||hI,h={action:a,filename:s,data:n,file:o,headers:u,withCredentials:d,method:p||"post",onProgress:function(t){var n=e.props.onProgress;null==n||n(t,o)},onSuccess:function(t,n){var r=e.props.onSuccess;null==r||r(t,o,n),delete e.reqs[f]},onError:function(t,n){var r=e.props.onError;null==r||r(t,n,o),delete e.reqs[f]}};l(r),this.reqs[f]=m(h)}}},{key:"reset",value:function(){this.setState({uid:vI()})}},{key:"abort",value:function(t){var e=this.reqs;if(t){var n=t.uid?t.uid:t;e[n]&&e[n].abort&&e[n].abort(),delete e[n]}else Object.keys(e).forEach((function(t){e[t]&&e[t].abort&&e[t].abort(),delete e[t]}))}},{key:"render",value:function(){var t=this.props,e=t.component,n=t.prefixCls,r=t.className,a=t.disabled,o=t.id,i=t.style,l=t.multiple,c=t.accept,s=t.capture,u=t.children,p=t.directory,f=t.openFileDialogOnClick,m=t.onMouseEnter,h=t.onMouseLeave,g=lI(t,wI),b=fI(iI(iI(iI({},n,!0),"".concat(n,"-disabled"),a),r,r)),v=p?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},y=a?{}:{onClick:f?this.onClick:function(){},onKeyDown:f?this.onKeyDown:function(){},onMouseEnter:m,onMouseLeave:h,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return d.default.createElement(e,qT({},y,{className:b,role:"button",style:i}),d.default.createElement("input",qT({},Xl(g,{aria:!0,data:!0}),{id:o,disabled:a,type:"file",ref:this.saveFileInput,onClick:function(t){return t.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:c},v,{multiple:l,onChange:this.onChange},null!=s?{capture:s}:{})),u)}}]),r}();function CI(){}var EI=function(e){eI(r,t.Component);var n=oI(r);function r(){var t;GT(this,r);for(var e=arguments.length,a=new Array(e),o=0;o<e;o++)a[o]=arguments[o];return(t=n.call.apply(n,[this].concat(a))).uploader=void 0,t.saveUploader=function(e){t.uploader=e},t}return QT(r,[{key:"abort",value:function(t){this.uploader.abort(t)}},{key:"render",value:function(){return d.default.createElement(kI,qT({},this.props,{ref:this.saveUploader}))}}]),r}();EI.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:CI,onError:CI,onSuccess:CI,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var OI=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]])}return n},SI=function(e,n){var r=e.style,a=e.height,o=OI(e,["style","height"]);return t.createElement(ZI,E({ref:n},o,{type:"drag",style:E(E({},r),{height:a})}))},NI=t.forwardRef(SI);NI.displayName="Dragger";var PI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},jI=function(e,n){return t.createElement(Yo,ye(ye({},e),{},{ref:n,icon:PI}))},TI=t.forwardRef(jI);"production"!==process.env.NODE_ENV&&(TI.displayName="PaperClipOutlined");var II={icon:function(t,e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:e}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:e}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:e}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},DI=function(e,n){return t.createElement(Yo,ye(ye({},e),{},{ref:n,icon:II}))},RI=t.forwardRef(DI);"production"!==process.env.NODE_ENV&&(RI.displayName="PictureTwoTone");var MI={icon:function(t,e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:e}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},zI=function(e,n){return t.createElement(Yo,ye(ye({},e),{},{ref:n,icon:MI}))},AI=t.forwardRef(zI);function LI(t){return E(E({},t),{lastModified:t.lastModified,lastModifiedDate:t.lastModifiedDate,name:t.name,size:t.size,type:t.type,uid:t.uid,percent:0,originFileObj:t})}function _I(t,e){var n=fl(e),r=n.findIndex((function(e){return e.uid===t.uid}));return-1===r?n.push(t):n[r]=t,n}function FI(t,e){var n=void 0!==t.uid?"uid":"name";return e.filter((function(e){return e[n]===t[n]}))[0]}"production"!==process.env.NODE_ENV&&(AI.displayName="FileTwoTone");var VI=function(t){return 0===t.indexOf("image/")};var KI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},HI=function(e,n){return t.createElement(Yo,ye(ye({},e),{},{ref:n,icon:KI}))},BI=t.forwardRef(HI);"production"!==process.env.NODE_ENV&&(BI.displayName="DownloadOutlined");var UI=t.forwardRef((function(e,n){var r,a,o,i=e.prefixCls,l=e.className,c=e.style,s=e.locale,u=e.listType,d=e.file,p=e.items,f=e.progress,m=e.iconRender,h=e.actionIconRender,g=e.itemRender,b=e.isImgUrl,v=e.showPreviewIcon,y=e.showRemoveIcon,x=e.showDownloadIcon,w=e.removeIcon,k=e.downloadIcon,C=e.onPreview,O=e.onDownload,S=e.onClose,P=pi(t.useState(!1),2),j=P[0],T=P[1],I=t.useRef();t.useEffect((function(){return I.current=setTimeout((function(){T(!0)}),300),function(){window.clearTimeout(I.current)}}),[]);var D="".concat(i,"-span"),R=m(d),M=t.createElement("div",{className:"".concat(i,"-text-icon")},R);if("picture"===u||"picture-card"===u)if("uploading"===d.status||!d.thumbUrl&&!d.url){var z,A=V((N(z={},"".concat(i,"-list-item-thumbnail"),!0),N(z,"".concat(i,"-list-item-file"),"uploading"!==d.status),z));M=t.createElement("div",{className:A},R)}else{var L,_=(null==b?void 0:b(d))?t.createElement("img",{src:d.thumbUrl||d.url,alt:d.name,className:"".concat(i,"-list-item-image")}):R,F=V((N(L={},"".concat(i,"-list-item-thumbnail"),!0),N(L,"".concat(i,"-list-item-file"),b&&!b(d)),L));M=t.createElement("a",{className:F,onClick:function(t){return C(d,t)},href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer"},_)}var K,H=V((N(r={},"".concat(i,"-list-item"),!0),N(r,"".concat(i,"-list-item-").concat(d.status),!0),N(r,"".concat(i,"-list-item-list-type-").concat(u),!0),r)),B="string"==typeof d.linkProps?JSON.parse(d.linkProps):d.linkProps,U=y?h(("function"==typeof w?w(d):w)||t.createElement(OP,null),(function(){return S(d)}),i,s.removeFile):null,W=x&&"done"===d.status?h(("function"==typeof k?k(d):k)||t.createElement(BI,null),(function(){return O(d)}),i,s.downloadFile):null,Y="picture-card"!==u&&t.createElement("span",{key:"download-delete",className:V("".concat(i,"-list-item-card-actions"),{picture:"picture"===u})},W,U),$=V("".concat(i,"-list-item-name")),q=d.url?[t.createElement("a",E({key:"view",target:"_blank",rel:"noopener noreferrer",className:$,title:d.name},B,{href:d.url,onClick:function(t){return C(d,t)}}),d.name),Y]:[t.createElement("span",{key:"view",className:$,onClick:function(t){return C(d,t)},title:d.name},d.name),Y],G=v?t.createElement("a",{href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:d.url||d.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:function(t){return C(d,t)},title:s.previewFile},t.createElement(Ux,null)):null,X="picture-card"===u&&"uploading"!==d.status&&t.createElement("span",{className:"".concat(i,"-list-item-actions")},G,"done"===d.status&&W,U);K=d.response&&"string"==typeof d.response?d.response:(null===(a=d.error)||void 0===a?void 0:a.statusText)||(null===(o=d.error)||void 0===o?void 0:o.message)||s.uploadError;var Z=t.createElement("span",{className:D},M,q),J=(0,t.useContext(vr).getPrefixCls)(),Q=t.createElement("div",{className:H},t.createElement("div",{className:"".concat(i,"-list-item-info")},Z),X,j&&t.createElement(Ma,{motionName:"".concat(J,"-fade"),visible:"uploading"===d.status,motionDeadline:2e3},(function(e){var n=e.className,r="percent"in d?t.createElement(oO,E({},f,{type:"line",percent:d.percent})):null;return t.createElement("div",{className:V("".concat(i,"-list-item-progress"),n)},r)}))),tt=V("".concat(i,"-list-").concat(u,"-container"),l),et="error"===d.status?t.createElement(vp,{title:K,getPopupContainer:function(t){return t.parentNode}},Q):Q;return t.createElement("div",{className:tt,style:c,ref:n},g?g(et,d,p,{download:O.bind(null,d),preview:C.bind(null,d),remove:S.bind(null,d)}):et)})),WI=E({},Ld);delete WI.onAppearEnd,delete WI.onEnterEnd,delete WI.onLeaveEnd;var YI=function(e,n){var r,a=e.listType,o=e.previewFile,i=e.onPreview,l=e.onDownload,c=e.onRemove,s=e.locale,u=e.iconRender,d=e.isImageUrl,p=e.prefixCls,f=e.items,m=void 0===f?[]:f,h=e.showPreviewIcon,g=e.showRemoveIcon,b=e.showDownloadIcon,v=e.removeIcon,y=e.downloadIcon,x=e.progress,w=e.appendAction,k=e.itemRender,C=sk(),O=pi(t.useState(!1),2),S=O[0],P=O[1];t.useEffect((function(){"picture"!==a&&"picture-card"!==a||(m||[]).forEach((function(t){"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(t.originFileObj instanceof File||t.originFileObj instanceof Blob)&&void 0===t.thumbUrl&&(t.thumbUrl="",o&&o(t.originFileObj).then((function(e){t.thumbUrl=e||"",C()})))}))}),[a,m,o]),t.useEffect((function(){P(!0)}),[]);var j=function(t,e){if(i)return null==e||e.preventDefault(),i(t)},T=function(t){"function"==typeof l?l(t):t.url&&window.open(t.url)},I=function(t){null==c||c(t)},D=function(e){if(u)return u(e,a);var n="uploading"===e.status,r=d&&d(e)?t.createElement(RI,null):t.createElement(AI,null),o=n?t.createElement(qo,null):t.createElement(TI,null);return"picture"===a?o=n?t.createElement(qo,null):r:"picture-card"===a&&(o=n?s.uploading:r),o},R=function(e,n,r,a){var o={type:"text",size:"small",title:a,onClick:function(t){n(),Hd(e)&&e.props.onClick&&e.props.onClick(t)},className:"".concat(r,"-list-item-card-actions-btn")};if(Hd(e)){var i=Ud(e,E(E({},e.props),{onClick:function(){}}));return t.createElement(af,E({},o,{icon:i}))}return t.createElement(af,o,t.createElement("span",null,e))};t.useImperativeHandle(n,(function(){return{handlePreview:j,handleDownload:T}}));var M=t.useContext(vr),z=M.getPrefixCls,A=M.direction,L=z("upload",p),_=V((N(r={},"".concat(L,"-list"),!0),N(r,"".concat(L,"-list-").concat(a),!0),N(r,"".concat(L,"-list-rtl"),"rtl"===A),r)),F=fl(m.map((function(t){return{key:t.uid,file:t}}))),K="picture-card"===a?"animate-inline":"animate",H={motionDeadline:2e3,motionName:"".concat(L,"-").concat(K),keys:F,motionAppear:S};return"picture-card"!==a&&(H=E(E({},WI),H)),t.createElement("div",{className:_},t.createElement(Ha,E({},H,{component:!1}),(function(e){var n=e.key,r=e.file,o=e.className,i=e.style;return t.createElement(UI,{key:n,locale:s,prefixCls:L,className:o,style:i,file:r,items:m,progress:x,listType:a,isImgUrl:d,showPreviewIcon:h,showRemoveIcon:g,showDownloadIcon:b,removeIcon:v,downloadIcon:y,iconRender:D,actionIconRender:R,itemRender:k,onPreview:j,onDownload:T,onClose:I})})),w&&t.createElement(Ma,H,(function(t){var e=t.className,n=t.style;return Ud(w,(function(t){return{className:V(t.className,e),style:E(E({},n),t.style)}}))})))},$I=t.forwardRef(YI);$I.displayName="UploadList",$I.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:function(t){return new Promise((function(e){if(t.type&&VI(t.type)){var n=document.createElement("canvas");n.width=200,n.height=200,n.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(200,"px; height: ").concat(200,"px; z-index: 9999; display: none;"),document.body.appendChild(n);var r=n.getContext("2d"),a=new Image;a.onload=function(){var t=a.width,o=a.height,i=200,l=200,c=0,s=0;t>o?s=-((l=o*(200/t))-i)/2:c=-((i=t*(200/o))-l)/2,r.drawImage(a,c,s,i,l);var u=n.toDataURL();document.body.removeChild(n),e(u)},a.src=window.URL.createObjectURL(t)}else e("")}))},isImageUrl:function(t){if(t.type&&!t.thumbUrl)return VI(t.type);var e=t.thumbUrl||t.url||"",n=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),e=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(e)||[""])[0]}(e);return!(!/^data:image\//.test(e)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n))||!/^data:/.test(e)&&!n}};var qI=function(t,e,n,r){return new(n||(n=Promise))((function(a,o){function i(t){try{c(r.next(t))}catch(t){o(t)}}function l(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?a(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,l)}c((r=r.apply(t,e||[])).next())}))},GI="__LIST_IGNORE_".concat(Date.now(),"__"),XI=function(e,n){var r,a=e.fileList,o=e.defaultFileList,i=e.onRemove,l=e.showUploadList,c=e.listType,s=e.onPreview,u=e.onDownload,d=e.onChange,p=e.onDrop,f=e.previewFile,m=e.disabled,h=e.locale,g=e.iconRender,b=e.isImageUrl,v=e.progress,y=e.prefixCls,x=e.className,w=e.type,k=e.children,C=e.style,S=e.itemRender,P=e.maxCount,j=pi(bc(o||[],{value:a,postState:function(t){return null!=t?t:[]}}),2),T=j[0],I=j[1],D=pi(t.useState("drop"),2),R=D[0],M=D[1],z=t.useRef();t.useEffect((function(){tr("fileList"in e||!("value"in e),"Upload","`value` is not a valid prop, do you mean `fileList`?"),tr(!("transformFile"in e),"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly.")}),[]),t.useMemo((function(){var t=Date.now();(a||[]).forEach((function(e,n){e.uid||Object.isFrozen(e)||(e.uid="__AUTO__".concat(t,"_").concat(n,"__"))}))}),[a]);var A=function(t,e,n){var r=fl(e);1===P?r=r.slice(-1):P&&(r=r.slice(0,P)),I(r);var a={file:t,fileList:r};n&&(a.event=n),null==d||d(a)},L=function(t){var e=t.filter((function(t){return!t.file[GI]}));if(e.length){var n=e.map((function(t){return LI(t.file)})),r=fl(T);n.forEach((function(t){r=_I(t,r)})),n.forEach((function(t,n){var a=t;if(e[n].parsedFile)t.status="uploading";else{var o,i=t.originFileObj;try{o=new File([i],i.name,{type:i.type})}catch(t){(o=new Blob([i],{type:i.type})).name=i.name,o.lastModifiedDate=new Date,o.lastModified=(new Date).getTime()}o.uid=t.uid,a=o}A(a,r)}))}},_=function(t,e,n){try{"string"==typeof t&&(t=JSON.parse(t))}catch(t){}if(FI(e,T)){var r=LI(e);r.status="done",r.percent=100,r.response=t,r.xhr=n;var a=_I(r,T);A(r,a)}},F=function(t,e){if(FI(e,T)){var n=LI(e);n.status="uploading",n.percent=t.percent;var r=_I(n,T);A(n,r,t)}},K=function(t,e,n){if(FI(n,T)){var r=LI(n);r.error=t,r.response=e,r.status="error";var a=_I(r,T);A(r,a)}},H=function(t){var e;Promise.resolve("function"==typeof i?i(t):i).then((function(n){var r;if(!1!==n){var a=function(t,e){var n=void 0!==t.uid?"uid":"name",r=e.filter((function(e){return e[n]!==t[n]}));return r.length===e.length?null:r}(t,T);a&&(e=E(E({},t),{status:"removed"}),null==T||T.forEach((function(t){var n=void 0!==e.uid?"uid":"name";t[n]!==e[n]||Object.isFrozen(t)||(t.status="removed")})),null===(r=z.current)||void 0===r||r.abort(e),A(e,a))}}))},B=function(t){M(t.type),"drop"===t.type&&(null==p||p(t))};t.useImperativeHandle(n,(function(){return{onBatchStart:L,onSuccess:_,onProgress:F,onError:K,fileList:T,upload:z.current}}));var U=t.useContext(vr),W=U.getPrefixCls,Y=U.direction,$=W("upload",y),q=E(E({onBatchStart:L,onError:K,onProgress:F,onSuccess:_},e),{prefixCls:$,beforeUpload:function(t,n){return qI(void 0,void 0,void 0,ji.mark((function r(){var a,o,i,l;return ji.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=e.beforeUpload,o=e.transformFile,i=t,!a){r.next=13;break}return r.next=5,a(t,n);case 5:if(!1!==(l=r.sent)){r.next=8;break}return r.abrupt("return",!1);case 8:if(delete t[GI],l!==GI){r.next=12;break}return Object.defineProperty(t,GI,{value:!0,configurable:!0}),r.abrupt("return",!1);case 12:"object"===O(l)&&l&&(i=l);case 13:if(!o){r.next=17;break}return r.next=16,o(i);case 16:i=r.sent;case 17:return r.abrupt("return",i);case 18:case"end":return r.stop()}}),r)})))},onChange:void 0});delete q.className,delete q.style,k&&!m||delete q.id;var G=function(e){return l?t.createElement(dr,{componentName:"Upload",defaultLocale:or.Upload},(function(n){var r="boolean"==typeof l?{}:l,a=r.showRemoveIcon,o=r.showPreviewIcon,i=r.showDownloadIcon,d=r.removeIcon,p=r.downloadIcon;return t.createElement($I,{listType:c,items:T,previewFile:f,onPreview:s,onDownload:u,onRemove:H,showRemoveIcon:!m&&a,showPreviewIcon:o,showDownloadIcon:i,removeIcon:d,downloadIcon:p,iconRender:g,locale:E(E({},n),h),isImageUrl:b,progress:v,appendAction:e,itemRender:S})})):e};if("drag"===w){var X,Z=V($,(N(X={},"".concat($,"-drag"),!0),N(X,"".concat($,"-drag-uploading"),T.some((function(t){return"uploading"===t.status}))),N(X,"".concat($,"-drag-hover"),"dragover"===R),N(X,"".concat($,"-disabled"),m),N(X,"".concat($,"-rtl"),"rtl"===Y),X),x);return t.createElement("span",null,t.createElement("div",{className:Z,onDrop:B,onDragOver:B,onDragLeave:B,style:C},t.createElement(EI,E({},q,{ref:z,className:"".concat($,"-btn")}),t.createElement("div",{className:"".concat($,"-drag-container")},k))),G())}var J=V($,(N(r={},"".concat($,"-select"),!0),N(r,"".concat($,"-select-").concat(c),!0),N(r,"".concat($,"-disabled"),m),N(r,"".concat($,"-rtl"),"rtl"===Y),r)),Q=t.createElement("div",{className:J,style:k?void 0:{display:"none"}},t.createElement(EI,E({},q,{ref:z})));return"picture-card"===c?t.createElement("span",{className:V("".concat($,"-picture-card-wrapper"),x)},G(Q)):t.createElement("span",{className:x},Q,G())},ZI=t.forwardRef(XI);ZI.Dragger=NI,ZI.LIST_IGNORE=GI,ZI.displayName="Upload",ZI.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0},ZI.Dragger=NI;y(".dialog .ant-modal-content{display:flex;flex-direction:column;height:100%}.dialog .ant-modal-body{flex:auto;overflow:auto}.dialog.ant-modal>.react-draggable{height:100%}");let JI=1;class QI extends d.default.Component{static show(t){let e,r=document.body,a=document.createElement("div"),o=t&&t.onOk,i=t&&t.onCancel;return a.id="dialog-"+JI++,a.style.cssText="position:absolute;top:0;left:0;",r.appendChild(a),(t=t||{}).visible=!0,t.getContainer=!1,t.destroyOnClose=!0,t.onOk=()=>{o&&o(),r.removeChild(a)},t.onCancel=()=>{i&&i(),r.removeChild(a)},f.default.render(n.jsx(QI,Object.assign({},t,{ref:t=>e=t}),void 0),a),e}static confirm(t,e,n){return QI.show({title:t,children:e,onOk:n})}draggleRef;constructor(t){super(t),this.state={disabled:!0,bounds:{left:0,top:0,bottom:0,right:0}}}onStart(t,e){const{clientWidth:n,clientHeight:r}=window.document.documentElement,a=this.draggleRef?.current?.getBoundingClientRect();this.setState({bounds:{left:-a?.left+e?.x,right:n-(a?.right-e?.x),top:-a?.top+e?.y,bottom:r-(a?.bottom-e?.y)}})}render(){let t=this.props,e=this.state;return n.jsx(LE,Object.assign({className:"dialog",maskClosable:!1},t,{title:n.jsx("div",Object.assign({style:{cursor:"move"},onMouseOver:()=>{this.setState({disabled:!1})},onMouseOut:()=>{this.setState({disabled:!0})},onFocus:()=>{},onBlur:()=>{}},{children:t.title}),void 0),modalRender:t=>n.jsx(h.default,Object.assign({disabled:e.disabled,bounds:e.bounds,onStart:(t,e)=>this.onStart(t,e)},{children:n.jsx("div",Object.assign({ref:this.draggleRef},{children:t}),void 0)}),void 0)},{children:t.children}),void 0)}close(t){let e=this.props;t?e.onOk&&e.onOk():e.onCancel&&e.onCancel()}}y(".anchorBL,.BMap_cpyCtrl{display:none}.gaoDe-container{position:relative}.gaoDe-container .input-item-prepend{position:absolute;top:12px;left:12px;z-index:99;width:320px}.gaoDe-container .input-item-prepend .ant-input-group-wrapper{position:relative}.gaoDe-container .input-item-prepend .ant-input-group-wrapper .ant-input-affix-wrapper{padding-top:0;padding-bottom:0;border-radius:0}.gaoDe-container .input-item-prepend .ant-input-group-wrapper .ant-input-affix-wrapper .ant-input{height:30px}");var tD=t.forwardRef(((e,r)=>{const a=t.useRef(null),o=t.useRef(null),l=t.useRef(null),c=t.useMemo((()=>i.v4()),[]),s=t.useMemo((()=>i.v4()),[]),u=t=>{let e=0,n=0;const r=new BMap.Convertor,a=[];a.push(t.point),"baidu"===t.target&&(e=3,n=5),"google"===t.target&&(e=5,n=3),r.translate(a,e,n,(e=>{0===e.status&&t.callback&&t.callback(e.points[0])}))},d=t=>{a.current.addOverlay(new BMap.Marker(t,{icon:new BMap.Icon("https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png",new BMap.Size(20,32))}))},p=t.useCallback(((t,e)=>{if(a.current){const n=new BMap.Point(t[0],t[1]);d(n),a.current.centerAndZoom(n,e||18)}else o.current={location:t,zoom:e}}),[]),f=t.useCallback((t=>{console.log("转换为google坐标前:",t.location);const n=new BMap.Point(t.location.lng,t.location.lat);u({target:"google",point:n,callback:n=>{t.location.lng=n.lng,t.location.lat=n.lat,console.log("转换为google坐标后:",t.location),e.onChange&&e.onChange(t)}})}),[e]),m=t.useCallback((t=>{a.current.clearOverlays();const e=new BMap.LocalSearch(a.current,{onSearchComplete:()=>{let t=e.getResults().getPoi(0);if(t){const e=t.point;p([e.lng,e.lat]),f({...t,location:{lng:e.lng,lat:e.lat}})}}});e.search(t)}),[p,f]);return t.useEffect((()=>{const t=()=>{a.current=new BMap.Map(c,{enableMapClick:!1}),a.current.enableScrollWheelZoom(!0);new BMap.Autocomplete({input:s,location:a.current}).addEventListener("onconfirm",(t=>{const{province:e,city:n,district:r,street:a,business:o}=t.item.value;m(e+n+r+a+o)})),a.current.addEventListener("click",(t=>{a.current.clearOverlays(),d(new BMap.Point(t.point.lng,t.point.lat)),f({location:{lng:t.point.lng,lat:t.point.lat}})})),l.current&&l.current(),o.current?p(o.current.location,o.current.zoom):p([116.404,39.915])};if(document.getElementById("lbs"))t();else{window.onMapInit=function(){t()};let e="https://api.map.baidu.com/api?v=3.0&ak=1IzhwXLOwlEnencZUoSnMkSkMVADfT3s&callback=onMapInit",n=document.createElement("script");n.src=e,n.id="lbs",document.head.appendChild(n)}}),[c]),t.useImperativeHandle(r,(()=>({setMapCenter:(t,e)=>{console.log("转换为百度坐标前:",{lng:t[0],lat:t[1]});const n=()=>{const n=new BMap.Point(t[0],t[1]);u({target:"baidu",point:n,callback:t=>{console.log("转换为百度坐标后:",{lng:t.lng,lat:t.lat}),p([t.lng,t.lat],e)}})};try{n()}catch(t){l.current=n}}}))),n.jsxs("div",Object.assign({className:`gaoDe-container ${e.className}`},{children:[n.jsx("div",{id:c,style:e.style?e.style:{width:"100%",height:365}},void 0),n.jsx("div",Object.assign({className:"input-item-prepend"},{children:n.jsx("span",Object.assign({className:"ant-input-group-wrapper"},{children:n.jsxs("span",Object.assign({className:"ant-input-wrapper ant-input-group"},{children:[n.jsx("span",Object.assign({className:"ant-input-group-addon"},{children:"关键字"}),void 0),n.jsx("span",Object.assign({className:"ant-input-affix-wrapper"},{children:n.jsx("input",{id:s,className:"ant-input",type:"text",placeholder:"请输入关键字"},void 0)}),void 0)]}),void 0)}),void 0)}),void 0)]}),void 0)}));y("");var eD=t.forwardRef((function(e,r){const[a,o]=t.useState([]);return t.useImperativeHandle(r,(()=>({setFileList:t=>{o(t)}}))),n.jsx(ZI,Object.assign({onChange:t=>{const{response:r}=t.file;let a=r&&parseInt(r.code);Oi.destroy(),console.log("上传的文件对象:",t),("string"==typeof r||"object"==typeof r&&500===r.status)&&(a=-1),"removed"===t.file.status||-1!==a&&400!==a&&500!==a||(t.file.status="error",Oi.warn({content:n.jsx("span",{dangerouslySetInnerHTML:{__html:r.msg||"上传失败"}},void 0),duration:1.5})),"done"===t.file.status&&Oi.success("上传成功",1.5),o(t.fileList),"done"===t.file.status&&e.uploadSuccess&&e.uploadSuccess(t.fileList.filter((t=>"done"===t.status)))},fileList:a,onRemove:t=>{o((n=>(n&&(n=n.filter((e=>e.uid!==t.uid)),e.uploadSuccess&&e.uploadSuccess(n.filter((t=>"done"===t.status)))),n)))}},e,{beforeUpload:(t,n)=>!e.beforeUpload||(e.beforeUpload(t,n)||ZI.LIST_IGNORE)},{children:e.children}),void 0)}));y(".tree-wrap .tree-search{margin-bottom:10px}.tree-wrap .tree-handle-box{display:flex;align-items:center;margin-right:5px;visibility:hidden}.tree-wrap .ant-tree-node-content-wrapper.ant-tree-node-selected .tree-handle-box,.tree-wrap .ant-tree-node-content-wrapper:hover .tree-handle-box{visibility:visible}");const{Search:nD}=fx;var rD=t.forwardRef(((e,r)=>{const[a,o]=C.useSetState({loading:!1,searchOpen:!1,searchValue:"",treeList:[],draggableOpen:!1,processOpen:!1,checkedOpen:!1,firstLevelCollection:[],expandedKeys:[],autoExpandParent:!1,selectNode:[],selectCurrent:[],checkedNode:[],checkedCurrent:[]}),i=t.useCallback((t=>{const e=[],n=t=>{for(let r=0;r<t.length;r++){const a=t[r];e.push(t[r]),a.children&&n(a.children)}};n(t),o({firstLevelCollection:e})}),[o]),l=t.useCallback(((t,n)=>{p.default.isArray(t)&&(o({selectNode:t}),e.onSelect&&e.onSelect(t,n))}),[e,o]),c=t.useCallback((t=>{o({autoExpandParent:!1,expandedKeys:t})}),[o]),s=t.useCallback(((t,e)=>{let n;for(let r=0;r<e.length;r++){const a=e[r];a.children&&(a.children.some((e=>e.key===t))?n=a.key:s(t,a.children)&&(n=s(t,a.children)))}return n}),[]),u=t.useCallback((t=>{const{value:e}=t.target,n=a.firstLevelCollection.map((t=>t.title.indexOf(e)>-1?s(t.key,a.treeList):null)).filter(((t,e,n)=>t&&n.indexOf(t)===e));o({searchValue:e,expandedKeys:n,autoExpandParent:!0})}),[s,o,a.firstLevelCollection,a.treeList]),d=t.useCallback((t=>{o({checkedNode:t.checked||t})}),[o]),f=t.useCallback((t=>t.map((t=>{const r=t.title,o=r.indexOf(a.searchValue),i=r.substr(0,o),l=r.substr(o+a.searchValue.length),c=e.processOpen&&!t.processOpen&&!t.disabled?n.jsx(Dy,Object.assign({className:"tree-handle-box"},{children:e.customAction&&e.customAction(t)}),void 0):null,s=o>-1?n.jsxs(jy,Object.assign({justify:"space-between",align:"middle"},{children:[n.jsxs(Dy,{children:[i,n.jsx("span",Object.assign({className:"text-error"},{children:a.searchValue}),void 0),l]},void 0),c]}),void 0):n.jsxs(jy,Object.assign({justify:"space-between",align:"middle"},{children:[n.jsx(Dy,{children:t.title},void 0),c]}),void 0);return t.children?{...t,title:s,children:f(t.children)}:{...t,title:s}}))),[e,a.searchValue]);return t.useEffect((()=>{o({checkedCurrent:(t=>{let e=[];const n=t=>{for(let r of t)a.checkedNode.some((t=>t===r.key))&&e.push(r),r.children&&n(r.children)};return n(t),e})(a.treeList)})}),[o,a.checkedNode,a.treeList]),t.useEffect((()=>{o({selectCurrent:(t=>{let e=[];const n=t=>{for(let r of t)a.selectNode.some((t=>t===r.key))&&e.push(r),r.children&&n(r.children)};return n(t),e})(a.treeList)})}),[o,a.selectNode,a.treeList]),t.useEffect((()=>{p.default.isArray(e.data)&&(o({treeList:e.data}),i(e.data))}),[i,e.data,o]),t.useEffect((()=>{let t={};e.searchOpen&&(t.searchOpen=e.searchOpen),e.draggableOpen&&(t.draggableOpen=e.draggableOpen),e.processOpen&&(t.processOpen=e.processOpen),e.checkedOpen&&(t.checkedOpen=e.checkedOpen),Object.keys(t).length&&o(t)}),[e.checkedOpen,e.draggableOpen,e.processOpen,e.searchOpen,o]),t.useImperativeHandle(r,(()=>({setLoading:t=>{o({loading:t})},getSelectNode:()=>a.selectNode,getSelectCurrent:()=>a.selectCurrent,getCheckedNode:()=>a.checkedNode,getCheckedCurrent:()=>a.checkedCurrent,setSelectNode:t=>{o({selectNode:t})},setCheckedNode:t=>{o({checkedNode:t})}}))),n.jsx("div",Object.assign({className:"tree-wrap"},{children:n.jsxs(_C,Object.assign({spinning:a.loading},{children:[a.searchOpen?n.jsx(nD,{className:"tree-search",placeholder:"输入名称搜索",onChange:u},void 0):null,a.treeList.length?n.jsx(xj,Object.assign({blockNode:!0,height:500,showLine:{showLeafIcon:!1},checkable:a.checkedOpen,treeData:f(a.treeList),expandedKeys:a.expandedKeys,selectedKeys:a.selectNode,checkedKeys:a.checkedNode,autoExpandParent:a.autoExpandParent,onSelect:l,onExpand:c,onCheck:d,draggable:a.draggableOpen,onDrop:t=>{const n=t.node.key,r=t.dragNode.key,i=t.node.pos.split("-"),l=t.dropPosition-Number(i[i.length-1]),c=(t,e,n)=>{for(let r=0;r<t.length;r++){if(t[r].key===e)return n(t[r],r,t);t[r].children&&c(t[r].children,e,n)}};if(e.onVerificationDropCallBack&&e.onVerificationDropCallBack(t,a.treeList))return;if(t.dragNode.noDrag)return void Oi.warn("此节点不支持修改",1.5);const s=[...a.treeList];let u={title:"",key:""};if(c(s,r,((t,e,n)=>{n.splice(e,1),u=t})),t.dropToGap)if((t.node.children||[]).length>0&&t.node.expanded&&1===l)c(s,n,(t=>{t.children=t.children||[],t.children.unshift(u)}));else{let t=[],e=0;c(s,n,((n,r,a)=>{t=a,e=r})),-1===l?t.splice(e,0,u):t.splice(e+1,0,u)}else c(s,n,(t=>{t.children=t.children||[],t.children.push(u)}));e.onDropCallBack&&e.onDropCallBack(t,s),o({treeList:s})},onDragEnter:t=>{o({expandedKeys:t.expandedKeys})}},e.treeConfig),void 0):n.jsx(br,{},void 0)]}),void 0)}),void 0)}));const aD=t=>Object.prototype.toString.call(t.data)===`[object ${t.type}]`,oD=(t,e)=>{for(let n of t){let t=n.value;if("number"==typeof e&&(t=parseInt(n.value)),t===e)return n.label}return e};var iD={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},lD={lang:E({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeWeekPlaceholder:["开始周","结束周"]},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"}),timePickerLocale:E({},iD)};lD.lang.ok="确 定";var cD="${label}不是一个有效的${type}",sD={locale:"zh-cn",Pagination:aE,DatePicker:lD,TimePicker:iD,Calendar:lD,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:cD,method:cD,array:cD,object:cD,number:cD,date:cD,boolean:cD,integer:cD,float:cD,regexp:cD,email:cD,url:cD,hex:cD},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"}},uD={placeholder:"請選擇時間"},dD={lang:E({placeholder:"請選擇日期",yearPlaceholder:"請選擇年份",quarterPlaceholder:"請選擇季度",monthPlaceholder:"請選擇月份",weekPlaceholder:"請選擇周",rangePlaceholder:["開始日期","結束日期"],rangeYearPlaceholder:["開始年份","結束年份"],rangeMonthPlaceholder:["開始月份","結束月份"],rangeWeekPlaceholder:["開始周","結束周"]},{locale:"zh_TW",today:"今天",now:"此刻",backToToday:"返回今天",ok:"確定",timeSelect:"選擇時間",dateSelect:"選擇日期",weekSelect:"選擇周",clear:"清除",month:"月",year:"年",previousMonth:"上個月 (翻頁上鍵)",nextMonth:"下個月 (翻頁下鍵)",monthSelect:"選擇月份",yearSelect:"選擇年份",decadeSelect:"選擇年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH時mm分ss秒",previousYear:"上一年 (Control鍵加左方向鍵)",nextYear:"下一年 (Control鍵加右方向鍵)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世紀",nextCentury:"下一世紀"}),timePickerLocale:E({},uD)};dD.lang.ok="確 定";var pD="${label}不是一個有效的${type}",fD={locale:"zh-hk",Pagination:{items_per_page:"條/頁",jump_to:"跳至",jump_to_confirm:"確定",page:"頁",prev_page:"上一頁",next_page:"下一頁",prev_5:"向前 5 頁",next_5:"向後 5 頁",prev_3:"向前 3 頁",next_3:"向後 3 頁",page_size:"頁碼"},DatePicker:dD,TimePicker:uD,Calendar:dD,global:{placeholder:"請選擇"},Table:{filterTitle:"篩選器",filterConfirm:"確定",filterReset:"重置",filterEmptyText:"無篩選項",selectAll:"全部選取",selectInvert:"反向選取",selectNone:"清空所有",selectionAll:"全選所有",sortTitle:"排序",expand:"展開行",collapse:"關閉行",triggerDesc:"點擊降序",triggerAsc:"點擊升序",cancelSort:"取消排序"},Modal:{okText:"確定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{okText:"確定",cancelText:"取消"},Transfer:{searchPlaceholder:"搜尋資料",itemUnit:"項目",itemsUnit:"項目",remove:"刪除",selectCurrent:"全選當頁",removeCurrent:"刪除當頁",selectAll:"全選所有",removeAll:"刪除全部",selectInvert:"反選當頁"},Upload:{uploading:"正在上傳...",removeFile:"刪除檔案",uploadError:"上傳失敗",previewFile:"檔案預覽",downloadFile:"下载文件"},Empty:{description:"無此資料"},Icon:{icon:"圖標"},Text:{edit:"編輯",copy:"複製",copied:"複製成功",expand:"展開"},PageHeader:{back:"返回"},Form:{defaultValidateMessages:{default:"字段驗證錯誤${label}",required:"請輸入${label}",enum:"${label}必須是其中一個[${enum}]",whitespace:"${label}不能為空字符",date:{format:"${label}日期格式無效",parse:"${label}不能轉換為日期",invalid:"${label}是一個無效日期"},types:{string:pD,method:pD,array:pD,object:pD,number:pD,date:pD,boolean:pD,integer:pD,float:pD,regexp:pD,email:pD,url:pD,hex:pD},string:{len:"${label}須為${len}個字符",min:"${label}最少${min}個字符",max:"${label}最多${max}個字符",range:"${label}須在${min}-${max}字符之間"},number:{len:"${label}必須等於${len}",min:"${label}最小值為${min}",max:"${label}最大值為${max}",range:"${label}須在${min}-${max}之間"},array:{len:"須為${len}個${label}",min:"最少${min}個${label}",max:"最多${max}個${label}",range:"${label}數量須在${min}-${max}之間"},pattern:{mismatch:"${label}與模式不匹配${pattern}"}}},Image:{preview:"預覽"}};g.default.locale("zh-cn");const mD=e=>{const[r,a]=t.useState(sD);return t.useEffect((()=>{const t=t=>{switch(t){case"zh-CN":a(sD),g.default.locale("zh-cn");break;case"zh-HK":a(fD),g.default.locale("zh-hk");break;case"en":a(or),g.default.locale("en")}};t((t=>{if(!t)return null;t=t.toString();const e=window.localStorage.getItem(t);try{return JSON.parse(e)}catch(t){return e}})("i18nextLng")),window.addEventListener("web_pack:language",(e=>{const n=e.language;t(n)}))}),[]),n.jsx(dl,Object.assign({locale:r},{children:e.children}),void 0)};y(".generate-form.ant-form .ant-row.ant-form-item{margin-bottom:8px}.generate-form.ant-form .ant-row .ant-col.ant-form-item-label{padding-bottom:0}.generate-form.ant-form .ant-row .ant-col .ant-picker{width:100%}.generate-form.ant-form .ant-row .ant-col .form-item-divide .ant-form-item{margin-bottom:0}.generate-form.ant-form .ant-row .ant-col .form-item-divide .divide{position:absolute;top:5px;right:-5px;z-index:1;color:#ccc}.multiple-checkbox .ant-checkbox-wrapper{margin-top:5px;margin-bottom:5px;margin-left:10px}.hlyc-web-com-align-right input{padding-right:24px;text-align:right}");const{Option:hD}=Kd,{RangePicker:gD}=Fw,{RangePicker:bD}=mT;var vD,yD=t.forwardRef((function(e,r){const[a]=Fk.useForm();let{className:o,formConfig:l,rowGridConfig:c,colGirdConfig:s,render:u}=e;const d=t.useRef({}),f=t.useRef({}),[m,h]=C.useSetState({update:!1,remoteFetching:!1,remoteData:{},treeSelectData:{},treeSelectFlattenData:{},selectMultiple:{}});let b=t.useMemo((()=>e.list?[...e.list]:[]),[e.list]);const v=t.useMemo((()=>i.v4()),[]),y=t.useCallback(((t,e)=>{const n=e.remoteConfig,r=e.name;let a=d.current[r];n&&n.remoteApi&&(h((t=>(t.remoteFetching=!0,d.current[r]=[],t.remoteData[r]=[],t))),n.remoteApi(t).then((t=>{setTimeout((()=>{void 0===a&&(d.current[r]=[]),r&&h((e=>(e.remoteFetching=!1,d.current[r]=t,e.remoteData[r]=t,e)))}),100)})).catch((()=>{h((t=>(t.remoteFetching=!1,d.current[r]=[],t.remoteData[r]=[],t)))})))}),[h]),x=t.useCallback(((t,e)=>{const n=t.treeSelectConfig;n&&n.data&&n.data.api(e).then((e=>{const r=t.name;if(r){f.current[r]=[];let t=[],a=[];const o=(t,e)=>{for(let[r,i]of t.entries()){const t=n.data?.children||"children";e[r]={},e[r].title=i[n.data?.title],e[r].value=i[n.data?.value],e[r].key=e[r].value,a.push(i),Array.isArray(i[t])&&(e[r].children=[],o(i[t],e[r].children))}};o(e,t),h((e=>(e.treeSelectData[r]=t,e.treeSelectFlattenData[r]=a,e)))}}))}),[h]);return t.useEffect((()=>{if(b){let t={};for(let t of b)"RemoteSearch"===t.componentName&&t.name&&!d.current[t.name]&&t.remoteConfig&&!1!==t.remoteConfig.initLoad&&y(void 0,t),"TreeSelect"===t.componentName&&t.name&&!f.current[t.name]&&t.treeSelectConfig&&t.treeSelectConfig.data&&x(t);a.setFieldsValue(t)}}),[y,x,a,b]),t.useImperativeHandle(r,(()=>({getFormValues:t=>a.getFieldsValue(t),setFormFields:t=>{a.setFields(t)},setFormValues:t=>{a.setFieldsValue(t),setTimeout((()=>{b.forEach((t=>{"RemoteSearch"===t.componentName&&t.remoteConfig&&t.remoteConfig.reLoad&&y(void 0,t)}))}),100)},formSubmit:t=>new Promise(((e,n)=>{a.validateFields(t).then((t=>{for(let e in t)aD({data:t[e],type:"String"})&&(t[e]=t[e].replace(/(^\s*)|(\s*$)/g,""));e(t)})).catch((t=>{t.errorFields&&t.errorFields.length&&(console.warn("请输入或选择表单必填项:",t),Oi.warn("请输入或选择表单必填项",1.5)),n(new Error("false"))}))})),formReset:t=>(a.resetFields(t),a.getFieldsValue())}))),n.jsx(mD,{children:n.jsx(Fk,Object.assign({name:v,className:`generate-form ${o||""}`,form:a},l,{initialValues:{sortSeq:10,startTime:g.default(`${(new Date).getFullYear()}-01-01`),endTime:g.default("2099-12-31"),...l?l.initialValues:void 0}},{children:n.jsxs(jy,Object.assign({},c,{children:[(()=>{const e=(t,e)=>{h((n=>(t.name&&(n.selectMultiple[t.name]=e),n)))};if(!b)return;const r=t=>{const{inputMode:e,...r}=t.inputConfig||{};return n.jsx(fx,Object.assign({disabled:t.disabled,type:e||"text",maxLength:t.maxLength,placeholder:t.placeholder||`请输入${t.label}`,onChange:t.inputChange,onPressEnter:t.inputEnter},r),void 0)},o=t=>n.jsx(Kd,Object.assign({allowClear:!0,disabled:t.disabled,placeholder:t.placeholder||`请选择${t.label}`,onChange:t.selectChange},t.selectConfig,{children:t.selectData?t.selectData.map(((t,e)=>n.jsx(hD,Object.assign({value:t.value},{children:t.label}),e))):null}),void 0),i=t=>{const r=t.selectData||[];return n.jsx(Kd,Object.assign({mode:"multiple",allowClear:!0,disabled:t.disabled,placeholder:t.placeholder||`请选择${t.label}`,onChange:n=>{e(t,n.length===r.length),t.multipleChange&&t.multipleChange(n)},filterOption:(t,e)=>!!e&&e.children.toLowerCase().indexOf(t.toLowerCase())>=0,dropdownRender:r=>((t,r)=>{const o=r.selectData||[];return n.jsxs("div",Object.assign({className:"multiple-checkbox"},{children:[n.jsx(gw,Object.assign({checked:r.name?m.selectMultiple[r.name]:void 0,onChange:t=>{const n={};t.target.checked?r.name&&(n[r.name]=o.map((t=>t.value))):r.name&&(n[r.name]=[]),e(r,t.target.checked),a.setFieldsValue(n)}},{children:"全选"}),void 0),t]}),void 0)})(r,t)},t.selectConfig,{children:r.map(((t,e)=>n.jsx(hD,Object.assign({value:t.value},{children:t.label}),e)))}),void 0)},l=t=>{const e=t.remoteConfig,r=e&&e.remoteMode,a=e&&e.allowClear,o=e&&e.showSearch;return n.jsx(Kd,Object.assign({mode:r||void 0,disabled:t.disabled,placeholder:t.placeholder||`请选择${t.label}`,notFoundContent:m.remoteFetching?n.jsx(_C,{size:"small"},void 0):n.jsx(br,{style:{marginTop:8,marginBottom:8},image:br.PRESENTED_IMAGE_SIMPLE},void 0),filterOption:!1,allowClear:!1!==a,showSearch:!1!==o,onFocus:()=>y(void 0,t),onSearch:!1===o?void 0:p.default.debounce((e=>y(e,t)),300),onChange:t.remoteSearchChange},t.selectConfig,{children:t.name&&m.remoteData[t.name]?m.remoteData[t.name].map(((t,e)=>n.jsx(hD,Object.assign({value:t.value},{children:t.label}),e))):null}),void 0)},c=t=>n.jsx(Fw,Object.assign({disabled:t.disabled,placeholder:t.placeholder||`请选择${t.label}`,onChange:t.datePickerChange},t.datePickerConfig),void 0),u=t=>n.jsx(mT,Object.assign({disabled:t.disabled,placeholder:t.placeholder||`请选择${t.label}`,onChange:t.timePickerChange},t.timePickerConfig),void 0),d=t=>{const e=t.regionSelectionConfig;return n.jsx(lw,{disabled:t.disabled,placeholder:t.placeholder||`请选择${t.label}`,options:e&&e.loadData||[],loadData:e=>(async(t,e)=>{if(e){const n=e[e.length-1];let r=[];if(!t.regionSelectionConfig?.selectLoad)return;n.loading=!0,r=await(t.regionSelectionConfig?.selectLoad(n.id)),n.loading=!1,r.length?n.children=r:n.isLeaf=!0,h({update:!m.update})}})(t,e),changeOnSelect:!0,onChange:t.cascaderChange},void 0)},f=t=>"Input"===t.componentName?r(t):"Select"===t.componentName?o(t):"DatePicker"===t.componentName?c(t):"TimePicker"===t.componentName?u(t):"RemoteSearch"===t.componentName?l(t):null;return b.map(((e,h)=>{let g=null;switch(e.selectData&&(e.selectData=e.selectData.filter((t=>!e.selectIsHideAll||"全部"!==t.label&&""!==t.value))),e.componentName){case"Input":g=r(e);break;case"InputNumber":g=(t=>{const{alignRight:e,...r}=t.inputNumberConfig||{};return n.jsx(zC,Object.assign({disabled:t.disabled,style:{width:"100%"},placeholder:t.placeholder||`请输入${t.label}`,onChange:t.inputNumberChange,className:e?"hlyc-web-com-align-right":""},r),void 0)})(e);break;case"HideInput":g=(t=>n.jsx(fx,{style:{display:"none"},maxLength:t.maxLength,disabled:t.disabled,type:"text",placeholder:t.placeholder||`请输入${t.label}`,onChange:t.inputChange,onPressEnter:t.inputEnter},void 0))(e);break;case"TextArea":g=(t=>n.jsx(fx.TextArea,{rows:t.rows,disabled:t.disabled,maxLength:t.maxLength,placeholder:t.placeholder||`请输入${t.label}`,onChange:t.textAreaChange},void 0))(e);break;case"AutoComplete":g=(t=>n.jsx(Kd,Object.assign({allowClear:!0,showSearch:!0,disabled:t.disabled,placeholder:t.placeholder||`请选择${t.label}`,optionFilterProp:"children",filterOption:(t,e)=>!!e&&e.children.toLowerCase().indexOf(t.toLowerCase())>=0,onChange:t.autoCompleteChange},t.selectConfig,{children:t.selectData?t.selectData.map(((t,e)=>n.jsx(hD,Object.assign({value:t.value},{children:t.label}),e))):null}),void 0))(e);break;case"InputAutoComplete":g=(t=>n.jsx(qd,Object.assign({filterOption:(t,e)=>-1!==e.value.toUpperCase().indexOf(t.toUpperCase()),disabled:t.disabled,placeholder:t.placeholder||`请选择${t.label}`,onChange:t.inputAutoCompleteChange},t.inputAutoCompleteConfig),void 0))(e);break;case"Select":g=o(e);break;case"Multiple":g=i(e);break;case"MultipleTag":g=(t=>n.jsx(Kd,Object.assign({mode:"tags",allowClear:!0,disabled:t.disabled,placeholder:t.placeholder||`请选择${t.label}`,onChange:t.multipleChange},t.selectConfig,{children:t.selectData?t.selectData.map(((t,e)=>n.jsx(hD,Object.assign({value:t.value},{children:t.label}),e))):null}),void 0))(e);break;case"RemoteSearch":g=l(e);break;case"DatePicker":g=c(e);break;case"RangePicker":g=(t=>n.jsx(gD,Object.assign({disabled:t.disabled,placeholder:t.rangePickerPlaceholder,onChange:t.rangePickerChange},t.rangePickerConfig),void 0))(e);break;case"TimeRangePicker":g=(t=>n.jsx(bD,Object.assign({disabled:t.disabled,placeholder:t.timeRangePickerPlaceholder,onChange:t.timeRangePickerChange},t.timeRangePickerConfig),void 0))(e);break;case"TimePicker":g=u(e);break;case"Switch":g=(t=>n.jsx(HO,{defaultChecked:!1,checkedChildren:"ON",unCheckedChildren:"OFF",disabled:t.disabled,onChange:t.switchChange},void 0))(e);break;case"Radio":g=(t=>n.jsx(ob.Group,Object.assign({onChange:t.radioChange},{children:t.selectData?t.selectData.map(((e,r)=>n.jsx(ob,Object.assign({disabled:t.disabled,value:e.value},{children:e.label}),r))):null}),void 0))(e);break;case"Checkbox":g=(t=>n.jsx(gw.Group,Object.assign({onChange:t.checkboxChange},{children:t.selectData?t.selectData.map(((e,r)=>n.jsx(gw,Object.assign({disabled:t.disabled,value:e.value},{children:e.label}),r))):null}),void 0))(e);break;case"TreeSelect":g=((t,e)=>{const r=t.name;return n.jsx(sT,Object.assign({disabled:t.disabled,style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:m.treeSelectData[r],placeholder:t.placeholder||`请选择${t.label}`,onChange:n=>{if(t.treeSelectConfig&&t.treeSelectConfig.data){const o=t.treeSelectConfig.data,i=o.onChange,l=m.treeSelectFlattenData[r],c=Object.prototype.toString.call(n);let s=[],u={...t};if("[object String]"===c&&(s=l.filter((t=>t[o.value]===n))),"[object Array]"===c&&Array.isArray(n))for(let t=l.length;t--;)n.some((e=>e===l[t][o.value]))&&s.push(l[t]);if(i){const n=i(s,{...t});n&&(u=n),u&&(b[e]=u)}a.setFieldsValue({[u.name]:n}),x(u)}},allowClear:!0,treeDefaultExpandAll:!0},t.treeSelectConfig?.extra),void 0)})(e,h);break;case"Union":let t,s=0;e.unionConfig&&(s=e.unionConfig.unionItems.length,t=100/s+"%"),g=n.jsx(jy,Object.assign({className:"form-item-divide",gutter:16},{children:e.unionConfig?.unionItems.map(((r,a)=>n.jsxs(Dy,Object.assign({style:{width:t}},{children:[n.jsx(Fk.Item,Object.assign({name:r.name,rules:r.rules,noStyle:!0},{children:f(r)}),void 0),a<s-1?n.jsx("span",Object.assign({className:"divide"},{children:e.unionConfig&&(e.unionConfig.divide?e.unionConfig.divide:"~")}),void 0):null]}),a)))}),void 0);break;case"RegionSelection":g=d(e);break;case"Rate":g=(t=>n.jsx(PO,Object.assign({disabled:t.disabled,onChange:t.rateChange},t.rateConfig),void 0))(e);break;default:return null}let v,y={...e};return y.label=(t=>{let e=t.label;return"Union"===t.componentName&&t.rules&&(e=n.jsxs("span",{children:[n.jsx("i",Object.assign({style:{marginRight:4,color:"#ff4d4f",fontStyle:"normal",fontFamily:"SimSun, sans-serif"}},{children:"*"}),void 0),t.label]},void 0)),e})(y),y=p.default.omit(y,["colProps","componentName","selectData","inputConfig","inputNumberConfig","datePickerConfig","rangePickerConfig","timeRangePickerConfig","timePickerConfig","inputAutoCompleteConfig","unionConfig","remoteConfig","selectConfig","regionSelectionConfig","treeSelectConfig","rows","render","rangePickerPlaceholder","timeRangePickerPlaceholder","visible","selectIsHideAll","rateConfig","inputChange","inputNumberChange","inputAutoCompleteChange","inputEnter","textAreaChange","autoCompleteChange","selectChange","multipleChange","remoteSearchChange","datePickerChange","rangePickerChange","timeRangePickerChange","timePickerChange","switchChange","radioChange","checkboxChange","cascaderChange","rateChange"]),"Union"===e.componentName&&(y=p.default.omit(y,["name"])),v=e.colProps?e.colProps:s,t.createElement(Dy,{...v,key:h,style:{display:!1===e.visible?"none":"block"}},n.jsx(Fk.Item,Object.assign({className:"HideInput"===e.componentName?"hide-item":void 0},y,{children:g}),void 0),e.render&&e.render())}))})(),u?n.jsx(Dy,{children:n.jsx(Fk.Item,{children:u&&u()},void 0)},void 0):null]}),void 0)}),void 0)},void 0)})),xD=_(F((function(t,e){function n(t){return"object"!=typeof t||"toString"in t?t:Object.prototype.toString.call(t).slice(8,-1)}Object.defineProperty(e,"__esModule",{value:!0});var r="object"==typeof process&&"production"===process.env.NODE_ENV;function a(t,e){if(!t){if(r)throw new Error("Invariant failed");throw new Error(e())}}e.invariant=a;var o=Object.prototype.hasOwnProperty,i=Array.prototype.splice,l=Object.prototype.toString;function c(t){return l.call(t).slice(8,-1)}var s=Object.assign||function(t,e){return u(e).forEach((function(n){o.call(e,n)&&(t[n]=e[n])})),t},u="function"==typeof Object.getOwnPropertySymbols?function(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.keys(t)};function d(t){return Array.isArray(t)?s(t.constructor(t.length),t):"Map"===c(t)?new Map(t):"Set"===c(t)?new Set(t):t&&"object"==typeof t?s(Object.create(Object.getPrototypeOf(t)),t):t}var p=function(){function t(){this.commands=s({},f),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(t,e){return t===e},this.update.newContext=function(){return(new t).update}}return Object.defineProperty(t.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(t){this.update.isEquals=t},enumerable:!0,configurable:!0}),t.prototype.extend=function(t,e){this.commands[t]=e},t.prototype.update=function(t,e){var n=this,r="function"==typeof e?{$apply:e}:e;Array.isArray(t)&&Array.isArray(r)||a(!Array.isArray(r),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),a("object"==typeof r&&null!==r,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(n.commands).join(", ")+"."}));var i=t;return u(r).forEach((function(e){if(o.call(n.commands,e)){var a=t===i;i=n.commands[e](r[e],i,r,t),a&&n.isEquals(i,t)&&(i=t)}else{var l="Map"===c(t)?n.update(t.get(e),r[e]):n.update(t[e],r[e]),s="Map"===c(i)?i.get(e):i[e];n.isEquals(l,s)&&(void 0!==l||o.call(t,e))||(i===t&&(i=d(t)),"Map"===c(i)?i.set(e,l):i[e]=l)}})),i},t}();e.Context=p;var f={$push:function(t,e,n){return h(e,n,"$push"),t.length?e.concat(t):e},$unshift:function(t,e,n){return h(e,n,"$unshift"),t.length?t.concat(e):e},$splice:function(t,e,r,o){return function(t,e){a(Array.isArray(t),(function(){return"Expected $splice target to be an array; got "+n(t)})),b(e.$splice)}(e,r),t.forEach((function(t){b(t),e===o&&t.length&&(e=d(o)),i.apply(e,t)})),e},$set:function(t,e,n){return function(t){a(1===Object.keys(t).length,(function(){return"Cannot have more than one key in an object with $set"}))}(n),t},$toggle:function(t,e){g(t,"$toggle");var n=t.length?d(e):e;return t.forEach((function(t){n[t]=!e[t]})),n},$unset:function(t,e,n,r){return g(t,"$unset"),t.forEach((function(t){Object.hasOwnProperty.call(e,t)&&(e===r&&(e=d(r)),delete e[t])})),e},$add:function(t,e,n,r){return v(e,"$add"),g(t,"$add"),"Map"===c(e)?t.forEach((function(t){var n=t[0],a=t[1];e===r&&e.get(n)!==a&&(e=d(r)),e.set(n,a)})):t.forEach((function(t){e!==r||e.has(t)||(e=d(r)),e.add(t)})),e},$remove:function(t,e,n,r){return v(e,"$remove"),g(t,"$remove"),t.forEach((function(t){e===r&&e.has(t)&&(e=d(r)),e.delete(t)})),e},$merge:function(t,e,r,o){var i,l;return i=e,a((l=t)&&"object"==typeof l,(function(){return"update(): $merge expects a spec of type 'object'; got "+n(l)})),a(i&&"object"==typeof i,(function(){return"update(): $merge expects a target of type 'object'; got "+n(i)})),u(t).forEach((function(n){t[n]!==e[n]&&(e===o&&(e=d(o)),e[n]=t[n])})),e},$apply:function(t,e){var r;return a("function"==typeof(r=t),(function(){return"update(): expected spec of $apply to be a function; got "+n(r)+"."})),t(e)}},m=new p;function h(t,e,r){a(Array.isArray(t),(function(){return"update(): expected target of "+n(r)+" to be an array; got "+n(t)+"."})),g(e[r],r)}function g(t,e){a(Array.isArray(t),(function(){return"update(): expected spec of "+n(e)+" to be an array; got "+n(t)+". Did you forget to wrap your parameter in an array?"}))}function b(t){a(Array.isArray(t),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(t)+". Did you forget to wrap your parameters in an array?"}))}function v(t,e){var r=c(t);a("Map"===r||"Set"===r,(function(){return"update(): "+n(e)+" expects a target of type Set or Map; got "+n(r)}))}e.isEquals=m.update.isEquals,e.extend=m.extend,e.default=m.update,e.default.default=t.exports=s(e.default,e)}))),wD=function(t,e){e.style&&t.props.style&&(e.style=ED(ED({},t.props.style),e.style));e.className&&t.props.className&&(e.className=t.props.className+" "+e.className);return kD.default.cloneElement(t,e)},kD=(vD=d.default)&&vD.__esModule?vD:{default:vD};function CD(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 ED(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?CD(Object(n),!0).forEach((function(e){OD(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):CD(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function OD(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var SD=Object.defineProperty({cloneElement:wD},"__esModule",{value:!0}),ND="function"==typeof Symbol&&Symbol.for,PD=ND?Symbol.for("react.element"):60103,jD=ND?Symbol.for("react.portal"):60106,TD=ND?Symbol.for("react.fragment"):60107,ID=ND?Symbol.for("react.strict_mode"):60108,DD=ND?Symbol.for("react.profiler"):60114,RD=ND?Symbol.for("react.provider"):60109,MD=ND?Symbol.for("react.context"):60110,zD=ND?Symbol.for("react.async_mode"):60111,AD=ND?Symbol.for("react.concurrent_mode"):60111,LD=ND?Symbol.for("react.forward_ref"):60112,_D=ND?Symbol.for("react.suspense"):60113,FD=ND?Symbol.for("react.suspense_list"):60120,VD=ND?Symbol.for("react.memo"):60115,KD=ND?Symbol.for("react.lazy"):60116,HD=ND?Symbol.for("react.block"):60121,BD=ND?Symbol.for("react.fundamental"):60117,UD=ND?Symbol.for("react.responder"):60118,WD=ND?Symbol.for("react.scope"):60119;
|
|
36
36
|
/** @license React v16.13.1
|
|
37
37
|
* react-is.production.min.js
|
|
38
38
|
*
|
|
@@ -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,hidSortColumn:t.hidSortColumn,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,rowSpan:"function"==typeof n.rowSpanNum?n.rowSpanNum(t,e):void 0,colSpan:"function"==typeof n.colSpanNum?n.colSpanNum(t,e):void 0,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 ${e.className}`,width:e.width?e.width:600,visible:e.visible,title:e.title||"对话框",onCancel:e.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null},{children:n.jsxs(_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,rowSpanNum:i,colSpanNum:l,rowSpan:c,colSpan:s,editable:u,inputType:d,valueType:f,valueEnum:m,recordSelectField:h,controlRender:b,formChange:v,remoteConfig:y,children:x,formItemProps:w,handleSave:k,...C})=>{const E=t.useContext(yA),[O,S]=t.useState(!1),[N,P]=t.useState(!1),[j,T]=t.useState({}),I=t.useRef(null);t.useEffect((()=>{O&&I.current.focus()}),[O]);const D=(t,e,n,r)=>{r&&(P(!0),r(t,n).then((t=>{P(!1),e&&T({[e]:t})})))},R=()=>{M()},M=()=>{S(!1)},z=()=>{void 0!==r[a]&&null!==r[a]&&""!==r[a]&&("DatePicker"!==f&&"DateTimePicker"!==f||(r[a]=g.default(r[a])),"status"===a&&(r[a]=String(r[a]))),S(!O),E.setFieldsValue({[a]:r[a]})},A=t=>{const e={DateTimePicker:"YYYY-MM-DD HH:mm:ss",DatePicker:"YYYY-MM-DD"};return Object.keys(e).includes(f)&&t[a]&&(t[a]=t[a].format(e[f])),t},L=()=>{if(f&&a){if(m&&("Select"===f||"AutoComplete"===f)||"RemoteSearch"===f)return oD(m,r[a]);if(r[h]&&"RecordSelect"===f)return oD(r[h],r[a]);if(g.default.isMoment(r[a]))return A(r)[a]}return x},_=(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},l=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:I,open:O,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:F,onBlur:R,optionFilterProp:"children",filterOption:i},{children:l(r[h])}),void 0);break;case"Select":o=n.jsx(Kd,Object.assign({ref:I,open:O,dropdownMatchSelectWidth:!1,onChange:F,onBlur:R,placeholder:e},{children:l(m)}),void 0);break;case"DatePicker":o=n.jsx(Fw,{ref:I,open:O,onChange:F,onBlur:R,placeholder:e},void 0);break;case"DateTimePicker":o=n.jsx(Fw,{ref:I,open:O,onChange:F,onBlur:R,placeholder:e,showTime:!0},void 0);break;case"AutoComplete":o=n.jsx(Kd,Object.assign({ref:I,open:O,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:F,onBlur:R,optionFilterProp:"children",filterOption:i},{children:l(m)}),void 0);break;case"RemoteSearch":let t=m;j[a]&&(t=j[a]),o=n.jsx(Kd,Object.assign({ref:I,open:O,mode:y.remoteMode,placeholder:e,notFoundContent:N?n.jsx(_C,{size:"small"},void 0):null,dropdownMatchSelectWidth:!1,filterOption:!1,allowClear:!0,showSearch:!0,onChange:F,onBlur:R,onFocus:()=>D(void 0,a,r,y.remoteApi),onSearch:t=>D(t,a,r,y.remoteApi)},{children:a&&l(t)}),void 0);break;default:o=n.jsx(fx,{ref:I,onPressEnter:F,onBlur:F,placeholder:e,type:d||"text"},void 0)}return o},F=async()=>{try{const t=await E.validateFields();let e={...r,...t};e[a]=e[a]||void 0,e=A(e),v&&(e=await v(e)||e),r[a]!==e[a]&&k(e,a),M()}catch(t){console.log("保存表单字段失败:",t)}};let V=x;return V=u?O?n.jsx(Fk.Item,Object.assign({style:{margin:0},name:a,rules:w?w.rules:void 0},{children:_(f,o)}),void 0):n.jsx("div",Object.assign({className:"editable-cell-value-wrap",onClick:z},{children:L()}),void 0):L(),b&&(V=b(r,V)),c||s?n.jsx("td",Object.assign({},C,{rowSpan:c,colSpan:s,title:r&&r[a]},{children:V}),void 0):0!==i&&0!==l?n.jsx("td",Object.assign({},C,{rowSpan:i,colSpan:l,title:r&&r[a]},{children:V}),void 0):null};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,hidSortColumn:t.hidSortColumn,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,rowSpanNum:"function"==typeof n.rowSpanNum?n.rowSpanNum(t,e):n.rowSpanNum,colSpanNum:"function"==typeof n.colSpanNum?n.colSpanNum(t,e):n.colSpanNum,editable:"function"==typeof n.editable?n.editable(t,e):n.editable,inputType:n.inputType,valueType:n.valueType,valueEnum:n.valueEnum,recordSelectField:n.recordSelectField,controlRender:n.controlRender,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 ${e.className}`,width:e.width?e.width:600,visible:e.visible,title:e.title||"对话框",onCancel:e.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null},{children:n.jsxs(_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
|