zmdms-webui 0.0.29 → 0.0.30

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.
@@ -51,10 +51,22 @@ var TabsCom = function (_a) {
51
51
  deleteTabs.splice(currentIndex, 1);
52
52
  if (activeTab !== currentTab.key) {
53
53
  // 如果当前选中页签,不是当前操作的这个页签
54
- deleteTabsHandle && deleteTabsHandle(currentTab, deleteTabs, true);
54
+ deleteTabsHandle &&
55
+ deleteTabsHandle(currentTab, {
56
+ deleteTabs: deleteTabs,
57
+ isGo: true,
58
+ deleteType: "other",
59
+ currentIndex: currentIndex,
60
+ });
55
61
  }
56
62
  else {
57
- deleteTabsHandle && deleteTabsHandle(currentTab, deleteTabs, false);
63
+ deleteTabsHandle &&
64
+ deleteTabsHandle(currentTab, {
65
+ deleteTabs: deleteTabs,
66
+ isGo: false,
67
+ deleteType: "other",
68
+ currentIndex: currentIndex,
69
+ });
58
70
  }
59
71
  }
60
72
  }
@@ -66,11 +78,21 @@ var TabsCom = function (_a) {
66
78
  // 如果当前打开的页签在需要关闭的右侧tabs中
67
79
  if (deleteRightPanes.find(function (item) { return item.key === activeTab; })) {
68
80
  deleteTabsHandle &&
69
- deleteTabsHandle(currentTab, deleteRightPanes, true);
81
+ deleteTabsHandle(currentTab, {
82
+ deleteTabs: deleteRightPanes,
83
+ isGo: true,
84
+ deleteType: "right",
85
+ currentIndex: currentIndex,
86
+ });
70
87
  }
71
88
  else {
72
89
  deleteTabsHandle &&
73
- deleteTabsHandle(currentTab, deleteRightPanes, false);
90
+ deleteTabsHandle(currentTab, {
91
+ deleteTabs: deleteRightPanes,
92
+ isGo: false,
93
+ deleteType: "right",
94
+ currentIndex: currentIndex,
95
+ });
74
96
  }
75
97
  }
76
98
  }, [remove, tabs, activeTab, deleteTabsHandle]);
package/dist/index.umd.js CHANGED
@@ -3,4 +3,4 @@
3
3
  Copyright (c) 2018 Jed Watson.
4
4
  Licensed under the MIT License (MIT), see
5
5
  http://jedwatson.github.io/classnames
6
- */!function(e){!function(){var t={}.hasOwnProperty;function r(){for(var e=[],n=0;n<arguments.length;n++){var i=arguments[n];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i)){if(i.length){var a=r.apply(null,i);a&&e.push(a)}}else if("object"===o){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){e.push(i.toString());continue}for(var s in i)t.call(i,s)&&i[s]&&e.push(s)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r}()}(C);var D=O(C.exports),k=function(e){var n,i=e.type,o=e.className,a=e.disabled,s=e.size,c=e.danger,l=e.onClick,u=b(e,["type","className","disabled","size","danger","onClick"]),d=D("zt-btn",o,((n={})["zt-btn-".concat(i)]=i,n["zt-btn-disabled"]=a,n["zt-btn-".concat(s)]=s,n["zt-btn-dangerous"]=c,n)),f={canClick:!0};return t.jsx(r.Button,y({className:d,type:i,disabled:a,size:s,danger:c,onClick:function(e){f.canClick&&l&&l(e,f)}},u))};k.displayName="ZTXK_WEBUI_Button";var T=n.memo(n.forwardRef((function(e,n){return t.jsx(r.Input,y({},e,{ref:n}))})));T.displayName="ZTXK_WEBUI_Input",T.Group=r.Input.Group,T.Search=r.Input.Search,T.TextArea=r.Input.TextArea,T.Password=r.Input.Password;function I(e,t,r){return e&&!isNaN(Number(e))&&!t.current&&r?Number(e).toFixed(r):e}function E(e,t){if(!e)return e;var r=e.lastIndexOf("."),n=e,i="";return-1!==r&&(n=e.substring(0,r),i=e.substring(r+1)),t&&(i=i.length<t?i:i.substring(0,t)),i?n+"."+i:n}var j=function(e,i){var o=e.formatterType,a=(e.currencySymbol,e.formatter),s=e.parser,c=e.precision,l=e.onBlur,u=e.onFocus,d=b(e,["formatterType","currencySymbol","formatter","parser","precision","onBlur","onFocus"]),f=n.useRef(!1),h=function(e,t,r,n){return"currency"===e?{formatter:function(e){return function(e){if(null!=e){var t=e.toString(),r="",n="";t.startsWith("-")&&(r="-",t=t.slice(1));var i=t.indexOf(".");-1!==i?(e=t.slice(0,i),n=t.slice(i)):e=t;for(var o="",a=e.toString(),s=a.length,c=s-1;c>=0;c--)o=(s-c)%3==0?0===c?a[c]+o:","+a[c]+o:a[c]+o;return r+o+n}return e}(I(e,r,n))},parser:function(e){return E(e.replace(/(,*)/g,""),n)},precision:3}:"percent"===e?{formatter:function(e){var t=I(e,r,n);return"".concat(t,"%")},parser:function(e){return e?e.replace("%",""):Number(e)},precision:2}:"thousands"===e?{formatter:function(e){var t=I(e,r,n);return"".concat(t,"‰")},parser:function(e){return e?e.replace("‰",""):Number(e)},precision:2}:{formatter:function(e){return I(e,r,n)},parser:function(e){return E(e,n)},precision:n}}(o,0,f,c),g=h.formatter,p=h.parser,m=h.precision;return t.jsx(r.InputNumber,y({formatter:a||g,parser:s||p,precision:null!=c?c:m,onBlur:function(e){f.current=!1,l&&l(e)},onFocus:function(e){f.current=!0,u&&u(e)}},d,{ref:i}))};j.displayName="ZTXK_WEBUI_InputNumber";var N=n.memo(n.forwardRef(j)),P={};function A(e,t){}function M(e,t){}function R(e,t,r){t||P[r]||(e(!1,r),P[r]=!0)}function _(e,t){R(A,e,t)}function L(e,t){R(M,e,t)}_.preMessage=function(e){},_.resetWarned=function(){P={}},_.noteOnce=L,i.extend(u),i.extend(l),i.extend(o),i.extend(a),i.extend(s),i.extend(c),i.extend((function(e,t){var r=t.prototype,n=r.format;r.format=function(e){var t=(e||"").replace("Wo","wo");return n.bind(this)(t)}}));var z={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},F=function(e){return z[e]||e.split("_")[0]},B=function(){L(!1,"Not match any format. Please help to fire a issue about this.")},H={getNow:function(){return i()},getFixedDate:function(e){return i(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return i().locale(F(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(F(e)).weekday(0)},getWeek:function(e,t){return t.locale(F(e)).week()},getShortWeekDays:function(e){return i().locale(F(e)).localeData().weekdaysMin()},getShortMonths:function(e){return i().locale(F(e)).localeData().monthsShort()},format:function(e,t,r){return t.locale(F(e)).format(r)},parse:function(e,t,r){for(var n=F(e),o=0;o<r.length;o+=1){var a=r[o],s=t;if(a.includes("wo")||a.includes("Wo")){for(var c=s.split("-")[0],l=s.split("-")[1],u=i(c,"YYYY").startOf("year").locale(n),d=0;d<=52;d+=1){var f=u.add(d,"week");if(f.format("Wo")===l)return f}return B(),null}var h=i(s,a).locale(n);if(h.isValid())return h}return t&&B(),null}}},U=d(H),q=f(H),K=n.forwardRef((function(e,r){return t.jsx(U,y({},e,{picker:"time",mode:void 0,ref:r}))}));K.displayName="TimePicker";var W=n.createContext({locale:"zh-cn"});function V(e,t){for(var r="",n=t.length,i=0;i<e.length;i++){var o=e.charAt(i),a=t.charAt(i%n);r+=String.fromCharCode(o.charCodeAt(0)+a.charCodeAt(0))}return r}function $(e,t){for(var r="",n=t.length,i=0;i<e.length;i++){var o=e.charAt(i),a=t.charAt(i%n);r+=String.fromCharCode(o.charCodeAt(0)-a.charCodeAt(0))}return r}var Y=r.Form.Item,X="6fr6x",G="PUsvG",Z="kVhfO",J="simide",Q=function(e){var i=e.loginLogo,o=e.loginBg,a=e.onFinishHandle,s=e.loading,c=r.Form.useForm()[0];n.useEffect((function(){var e=localStorage.getItem(X);if(e)try{var t=JSON.parse(e),r=$(t[G],J),n=$(t[Z],J);r&&n&&c.setFieldsValue({username:r,password:n,remember:!0})}catch(e){console.log(e)}}),[c]);return t.jsx("div",y({className:"login-wrap",style:{backgroundImage:"url(".concat(o,")")}},{children:t.jsxs(r.Form,y({form:c,requiredMark:!1,layout:"vertical",className:"login-form",onFinish:function(e){var t;e.remember&&localStorage.setItem(X,JSON.stringify(((t={})[G]=V(e.username,J),t[Z]=V(e.password,J),t))),a&&a(e)}},{children:[t.jsx("div",y({className:"login-logo"},{children:t.jsx("img",{src:i,title:"浙商中拓ERP",alt:"zszt_logo"})})),t.jsx(Y,y({label:"请输入您的账号",name:"username",rules:[{required:!0,message:"请输入您的账号"}]},{children:t.jsx(T,{size:"large",autoComplete:"username",prefix:t.jsx(ar,{type:"icon-yonghu",style:{fontSize:"14px",color:"rgba(0,0,0,.65)"}})})})),t.jsx(Y,y({label:"请输入您的密码",name:"password",rules:[{required:!0,message:"请输入您的密码"}]},{children:t.jsx(T.Password,{size:"large",autoComplete:"current-password",prefix:t.jsx(ar,{type:"icon-mima",style:{fontSize:"14px",color:"rgba(0,0,0,.65)"}})})})),t.jsx(Y,{children:t.jsx(k,y({htmlType:"submit",block:!0,className:"form__item--button",loading:s},{children:"登录"}))}),t.jsxs("div",y({className:"form__item--remember"},{children:[t.jsx(Y,y({name:"remember",valuePropName:"checked"},{children:t.jsx(r.Checkbox,{children:"记住密码"})})),t.jsx("div",y({className:"form__item--remember-forget"},{children:"忘记密码"}))]}))]}))}))};Q.displayName="ZTXK_WEBUI_Login";var ee=n.createContext({});function te(e){return te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te(e)}function re(e){var t=function(e,t){if("object"!==te(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==te(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===te(t)?t:String(t)}function ne(e,t,r){return(t=re(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(r),!0).forEach((function(t){ne(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ae(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ae(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function le(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function ue(e){return e<=1?"".concat(100*Number(e),"%"):e}function de(e){return 1===e.length?"0"+e:String(e)}function fe(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*r*(t-e):r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function he(e){return ge(e)/255}function ge(e){return parseInt(e,16)}var pe={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function me(e){var t,r,n,i={r:0,g:0,b:0},o=1,a=null,s=null,c=null,l=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(pe[e])e=pe[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var r=xe.rgb.exec(e);if(r)return{r:r[1],g:r[2],b:r[3]};if(r=xe.rgba.exec(e),r)return{r:r[1],g:r[2],b:r[3],a:r[4]};if(r=xe.hsl.exec(e),r)return{h:r[1],s:r[2],l:r[3]};if(r=xe.hsla.exec(e),r)return{h:r[1],s:r[2],l:r[3],a:r[4]};if(r=xe.hsv.exec(e),r)return{h:r[1],s:r[2],v:r[3]};if(r=xe.hsva.exec(e),r)return{h:r[1],s:r[2],v:r[3],a:r[4]};if(r=xe.hex8.exec(e),r)return{r:ge(r[1]),g:ge(r[2]),b:ge(r[3]),a:he(r[4]),format:t?"name":"hex8"};if(r=xe.hex6.exec(e),r)return{r:ge(r[1]),g:ge(r[2]),b:ge(r[3]),format:t?"name":"hex"};if(r=xe.hex4.exec(e),r)return{r:ge(r[1]+r[1]),g:ge(r[2]+r[2]),b:ge(r[3]+r[3]),a:he(r[4]+r[4]),format:t?"name":"hex8"};if(r=xe.hex3.exec(e),r)return{r:ge(r[1]+r[1]),g:ge(r[2]+r[2]),b:ge(r[3]+r[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(Se(e.r)&&Se(e.g)&&Se(e.b)?(t=e.r,r=e.g,n=e.b,i={r:255*le(t,255),g:255*le(r,255),b:255*le(n,255)},l=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):Se(e.h)&&Se(e.s)&&Se(e.v)?(a=ue(e.s),s=ue(e.v),i=function(e,t,r){e=6*le(e,360),t=le(t,100),r=le(r,100);var n=Math.floor(e),i=e-n,o=r*(1-t),a=r*(1-i*t),s=r*(1-(1-i)*t),c=n%6;return{r:255*[r,a,o,o,s,r][c],g:255*[s,r,r,a,o,o][c],b:255*[o,o,s,r,r,a][c]}}(e.h,a,s),l=!0,u="hsv"):Se(e.h)&&Se(e.s)&&Se(e.l)&&(a=ue(e.s),c=ue(e.l),i=function(e,t,r){var n,i,o;if(e=le(e,360),t=le(t,100),r=le(r,100),0===t)i=r,o=r,n=r;else{var a=r<.5?r*(1+t):r+t-r*t,s=2*r-a;n=fe(s,a,e+1/3),i=fe(s,a,e),o=fe(s,a,e-1/3)}return{r:255*n,g:255*i,b:255*o}}(e.h,a,c),l=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=function(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}(o),{ok:l,format:e.format||u,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:o}}var ve="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),ye="[\\s|\\(]+(".concat(ve,")[,|\\s]+(").concat(ve,")[,|\\s]+(").concat(ve,")\\s*\\)?"),be="[\\s|\\(]+(".concat(ve,")[,|\\s]+(").concat(ve,")[,|\\s]+(").concat(ve,")[,|\\s]+(").concat(ve,")\\s*\\)?"),xe={CSS_UNIT:new RegExp(ve),rgb:new RegExp("rgb"+ye),rgba:new RegExp("rgba"+be),hsl:new RegExp("hsl"+ye),hsla:new RegExp("hsla"+be),hsv:new RegExp("hsv"+ye),hsva:new RegExp("hsva"+be),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Se(e){return Boolean(xe.CSS_UNIT.exec(String(e)))}var we=2,Oe=.16,Ce=.05,De=.05,ke=.15,Te=5,Ie=4,Ee=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function je(e){var t=function(e,t,r){e=le(e,255),t=le(t,255),r=le(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o=0,a=n,s=n-i,c=0===n?0:s/n;if(n===i)o=0;else{switch(n){case e:o=(t-r)/s+(t<r?6:0);break;case t:o=(r-e)/s+2;break;case r:o=(e-t)/s+4}o/=6}return{h:o,s:c,v:a}}(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function Ne(e){var t=e.r,r=e.g,n=e.b;return"#".concat(function(e,t,r,n){var i=[de(Math.round(e).toString(16)),de(Math.round(t).toString(16)),de(Math.round(r).toString(16))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}(t,r,n,!1))}function Pe(e,t,r){var n;return(n=Math.round(e.h)>=60&&Math.round(e.h)<=240?r?Math.round(e.h)-we*t:Math.round(e.h)+we*t:r?Math.round(e.h)+we*t:Math.round(e.h)-we*t)<0?n+=360:n>=360&&(n-=360),n}function Ae(e,t,r){return 0===e.h&&0===e.s?e.s:((n=r?e.s-Oe*t:t===Ie?e.s+Oe:e.s+Ce*t)>1&&(n=1),r&&t===Te&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)));var n}function Me(e,t,r){var n;return(n=r?e.v+De*t:e.v-ke*t)>1&&(n=1),Number(n.toFixed(2))}function Re(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],n=me(e),i=Te;i>0;i-=1){var o=je(n),a=Ne(me({h:Pe(o,i,!0),s:Ae(o,i,!0),v:Me(o,i,!0)}));r.push(a)}r.push(Ne(n));for(var s=1;s<=Ie;s+=1){var c=je(n),l=Ne(me({h:Pe(c,s),s:Ae(c,s),v:Me(c,s)}));r.push(l)}return"dark"===t.theme?Ee.map((function(e){var n,i,o,a=e.index,s=e.opacity;return Ne((n=me(t.backgroundColor||"#141414"),i=me(r[a]),o=100*s/100,{r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b}))})):r}var _e={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Le={},ze={};Object.keys(_e).forEach((function(e){Le[e]=Re(_e[e]),Le[e].primary=Le[e][5],ze[e]=Re(_e[e],{theme:"dark",backgroundColor:"#141414"}),ze[e].primary=ze[e][5]}));var Fe="data-rc-order",Be="rc-util-key",He=new Map;function Ue(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):Be}function qe(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ke(e){return Array.from((He.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function We(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("undefined"==typeof window||!window.document||!window.document.createElement)return null;var r=t.csp,n=t.prepend,i=document.createElement("style");i.setAttribute(Fe,function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(n)),null!=r&&r.nonce&&(i.nonce=null==r?void 0:r.nonce),i.innerHTML=e;var o=qe(t),a=o.firstChild;if(n){if("queue"===n){var s=Ke(o).filter((function(e){return["prepend","prependQueue"].includes(e.getAttribute(Fe))}));if(s.length)return o.insertBefore(i,s[s.length-1].nextSibling),i}o.insertBefore(i,a)}else o.appendChild(i);return i}function Ve(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var r=He.get(e);if(!r||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}(document,r)){var n=We("",t),i=n.parentNode;He.set(e,i),e.removeChild(n)}}(qe(r),r);var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ke(qe(t)).find((function(r){return r.getAttribute(Ue(t))===e}))}(t,r);if(n){var i,o,a;if(null!==(i=r.csp)&&void 0!==i&&i.nonce&&n.nonce!==(null===(o=r.csp)||void 0===o?void 0:o.nonce))n.nonce=null===(a=r.csp)||void 0===a?void 0:a.nonce;return n.innerHTML!==e&&(n.innerHTML=e),n}var s=We(e,r);return s.setAttribute(Ue(r),t),s}function $e(e,t){_(e,"[@ant-design/icons] ".concat(t))}function Ye(e){return"object"===te(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===te(e.icon)||"function"==typeof e.icon)}function Xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,r){var n=e[r];if("class"===r)t.className=n,delete t.class;else t[r]=n;return t}),{})}function Ge(e,t,r){return r?n.createElement(e.tag,oe(oe({key:t},Xe(e.attrs)),r),(e.children||[]).map((function(r,n){return Ge(r,"".concat(t,"-").concat(e.tag,"-").concat(n))}))):n.createElement(e.tag,oe({key:t},Xe(e.attrs)),(e.children||[]).map((function(r,n){return Ge(r,"".concat(t,"-").concat(e.tag,"-").concat(n))})))}function Ze(e){return Re(e)[0]}function Je(e){return e?Array.isArray(e)?e:[e]:[]}var Qe={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},et=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",t=n.useContext(ee).csp;n.useEffect((function(){Ve(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])},tt=["icon","className","onClick","style","primaryColor","secondaryColor"],rt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var nt=function(e){var t=e.icon,r=e.className,n=e.onClick,i=e.style,o=e.primaryColor,a=e.secondaryColor,s=ce(e,tt),c=rt;if(o&&(c={primaryColor:o,secondaryColor:a||Ze(o)}),et(),$e(Ye(t),"icon should be icon definiton, but got ".concat(t)),!Ye(t))return null;var l=t;return l&&"function"==typeof l.icon&&(l=oe(oe({},l),{},{icon:l.icon(c.primaryColor,c.secondaryColor)})),Ge(l.icon,"svg-".concat(l.name),oe({className:r,onClick:n,style:i,"data-icon":l.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s))};nt.displayName="IconReact",nt.getTwoToneColors=function(){return oe({},rt)},nt.setTwoToneColors=function(e){var t=e.primaryColor,r=e.secondaryColor;rt.primaryColor=t,rt.secondaryColor=r||Ze(t),rt.calculated=!!r};var it=nt;function ot(e){var t=se(Je(e),2),r=t[0],n=t[1];return it.setTwoToneColors({primaryColor:r,secondaryColor:n})}var at=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ot("#1890ff");var st=v.forwardRef((function(e,t){var r,n=e.className,i=e.icon,o=e.spin,a=e.rotate,s=e.tabIndex,c=e.onClick,l=e.twoToneColor,u=ce(e,at),d=v.useContext(ee),f=d.prefixCls,h=void 0===f?"anticon":f,g=d.rootClassName,p=D(g,h,(ne(r={},"".concat(h,"-").concat(i.name),!!i.name),ne(r,"".concat(h,"-spin"),!!o||"loading"===i.name),r),n),m=s;void 0===m&&c&&(m=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=se(Je(l),2),x=b[0],S=b[1];return v.createElement("span",oe(oe({role:"img","aria-label":i.name},u),{},{ref:t,tabIndex:m,onClick:c,className:p}),v.createElement(it,{icon:i,primaryColor:x,secondaryColor:S,style:y}))}));st.displayName="AntdIcon",st.getTwoToneColor=function(){var e=it.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},st.setTwoToneColor=ot;var ct=st,lt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"},ut=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:lt}))};ut.displayName="ArrowsAltOutlined";var dt=v.forwardRef(ut),ft={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},ht=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:ft}))};ht.displayName="CaretDownOutlined";var gt=v.forwardRef(ht),pt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},mt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:pt}))};mt.displayName="CaretUpOutlined";var vt=v.forwardRef(mt),yt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},bt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:yt}))};bt.displayName="CopyOutlined";var xt=v.forwardRef(bt),St={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},wt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:St}))};wt.displayName="DownOutlined";var Ot=v.forwardRef(wt),Ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"},Dt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:Ct}))};Dt.displayName="LogoutOutlined";var kt=v.forwardRef(Dt),Tt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},It=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:Tt}))};It.displayName="MinusOutlined";var Et=v.forwardRef(It),jt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Nt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:jt}))};Nt.displayName="MinusSquareOutlined";var Pt=v.forwardRef(Nt),At={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M952 792H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-632H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-24 500c8.8 0 16-7.2 16-16V380c0-8.8-7.2-16-16-16H416c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h512zM472 436h400v152H472V436zM80 646c0 4.4 3.6 8 8 8h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H88c-4.4 0-8 3.6-8 8v56zm8-204h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H88c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z"}}]},name:"pic-right",theme:"outlined"},Mt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:At}))};Mt.displayName="PicRightOutlined";var Rt=v.forwardRef(Mt),_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Lt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:_t}))};Lt.displayName="PlusOutlined";var zt=v.forwardRef(Lt),Ft={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},Bt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:Ft}))};Bt.displayName="SettingOutlined";var Ht=v.forwardRef(Bt),Ut={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881.7 187.4l-45.1-45.1a8.03 8.03 0 00-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L447.9 585a7.9 7.9 0 00-8.9-8.9z"}}]},name:"shrink",theme:"outlined"},qt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:Ut}))};qt.displayName="ShrinkOutlined";var Kt=v.forwardRef(qt),Wt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"unlock",theme:"outlined"},Vt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:Wt}))};Vt.displayName="UnlockOutlined";var $t=v.forwardRef(Vt),Yt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},Xt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:Yt}))};Xt.displayName="UserOutlined";var Gt=v.forwardRef(Xt),Zt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-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.8z"}}]},name:"vertical-align-bottom",theme:"outlined"},Jt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:Zt}))};Jt.displayName="VerticalAlignBottomOutlined";var Qt=v.forwardRef(Jt),er=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],tr=v.forwardRef((function(e,t){var r=e.className,n=e.component,i=e.viewBox,o=e.spin,a=e.rotate,s=e.tabIndex,c=e.onClick,l=e.children,u=ce(e,er);$e(Boolean(n||l),"Should have `component` prop or `children`."),et();var d=v.useContext(ee),f=d.prefixCls,h=void 0===f?"anticon":f,g=d.rootClassName,p=D(g,h,r),m=D(ne({},"".concat(h,"-spin"),!!o)),y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=oe(oe({},Qe),{},{className:m,style:y,viewBox:i});i||delete b.viewBox;var x=s;return void 0===x&&c&&(x=-1),v.createElement("span",oe(oe({role:"img"},u),{},{ref:t,tabIndex:x,onClick:c,className:p}),n?v.createElement(n,oe({},b),l):l?($e(Boolean(i)||1===v.Children.count(l)&&v.isValidElement(l)&&"use"===v.Children.only(l).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),v.createElement("svg",oe(oe({},b),{},{viewBox:i}),l)):null)}));tr.displayName="AntdIcon";var rr=tr,nr=["type","children"],ir=new Set;function or(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e[r];if(t=n,Boolean("string"==typeof t&&t.length&&!ir.has(t))){var i=document.createElement("script");i.setAttribute("src",n),i.setAttribute("data-namespace",n),e.length>r+1&&(i.onload=function(){or(e,r+1)},i.onerror=function(){or(e,r+1)}),ir.add(n),document.body.appendChild(i)}}var ar=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scriptUrl,r=e.extraCommonProps,n=void 0===r?{}:r;t&&"undefined"!=typeof document&&"undefined"!=typeof window&&"function"==typeof document.createElement&&(Array.isArray(t)?or(t.reverse()):or([t]));var i=v.forwardRef((function(e,t){var r=e.type,i=e.children,o=ce(e,nr),a=null;return e.type&&(a=v.createElement("use",{xlinkHref:"#".concat(r)})),i&&(a=i),v.createElement(rr,oe(oe(oe({},n),o),{},{ref:t}),a)}));return i.displayName="Iconfont",i}({scriptUrl:["//at.alicdn.com/t/c/font_4078313_tg40lf02k9.js"]});const sr=n.createContext({dragDropManager:void 0});function cr(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var lr="function"==typeof Symbol&&Symbol.observable||"@@observable",ur=function(){return Math.random().toString(36).substring(7).split("").join(".")},dr={INIT:"@@redux/INIT"+ur(),REPLACE:"@@redux/REPLACE"+ur(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ur()}};function fr(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(cr(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(cr(1));return r(fr)(e,t)}if("function"!=typeof e)throw new Error(cr(2));var i=e,o=t,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function u(){if(c)throw new Error(cr(3));return o}function d(e){if("function"!=typeof e)throw new Error(cr(4));if(c)throw new Error(cr(5));var t=!0;return l(),s.push(e),function(){if(t){if(c)throw new Error(cr(6));t=!1,l();var r=s.indexOf(e);s.splice(r,1),a=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(cr(7));if(void 0===e.type)throw new Error(cr(8));if(c)throw new Error(cr(9));try{c=!0,o=i(o,e)}finally{c=!1}for(var t=a=s,r=0;r<t.length;r++){(0,t[r])()}return e}return f({type:dr.INIT}),(n={dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(cr(10));i=e,f({type:dr.REPLACE})}})[lr]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(cr(11));function r(){e.next&&e.next(u())}return r(),{unsubscribe:t(r)}}})[lr]=function(){return this},e},n}function hr(e,t,...r){if("undefined"!=typeof process&&"production"===process.env.NODE_ENV&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let n=0;e=new Error(t.replace(/%s/g,(function(){return r[n++]}))),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function gr(e){return"object"==typeof e}const pr="dnd-core/INIT_COORDS",mr="dnd-core/BEGIN_DRAG",vr="dnd-core/PUBLISH_DRAG_SOURCE",yr="dnd-core/HOVER",br="dnd-core/DROP",xr="dnd-core/END_DRAG";function Sr(e,t){return{type:pr,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const wr={type:pr,payload:{clientOffset:null,sourceClientOffset:null}};function Or(e){return function(t=[],r={publishSource:!0}){const{publishSource:n=!0,clientOffset:i,getSourceClientOffset:o}=r,a=e.getMonitor(),s=e.getRegistry();e.dispatch(Sr(i)),function(e,t,r){hr(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){hr(r.getSource(e),"Expected sourceIds to be registered.")}))}(t,a,s);const c=function(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}(t,a);if(null==c)return void e.dispatch(wr);let l=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");!function(e){hr("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(o),l=o(c)}e.dispatch(Sr(i,l));const u=s.getSource(c).beginDrag(a,c);if(null==u)return;!function(e){hr(gr(e),"Item must be an object.")}(u),s.pinSource(c);const d=s.getSourceType(c);return{type:mr,payload:{itemType:d,item:u,sourceId:c,clientOffset:i||null,sourceClientOffset:l||null,isSourcePublic:!!n}}}}function Cr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Cr(e,t,r[t])}))}return e}function kr(e){return function(t={}){const r=e.getMonitor(),n=e.getRegistry();!function(e){hr(e.isDragging(),"Cannot call drop while not dragging."),hr(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(r);const i=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(r);i.forEach(((i,o)=>{const a=function(e,t,r,n){const i=r.getTarget(e);let o=i?i.drop(n,e):void 0;(function(e){hr(void 0===e||gr(e),"Drop result must either be an object or undefined.")})(o),void 0===o&&(o=0===t?{}:n.getDropResult());return o}(i,o,n,r),s={type:br,payload:{dropResult:Dr({},t,a)}};e.dispatch(s)}))}}function Tr(e){return function(){const t=e.getMonitor(),r=e.getRegistry();!function(e){hr(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const n=t.getSourceId();if(null!=n){r.getSource(n,!0).endDrag(t,n),r.unpinSource()}return{type:xr}}}function Ir(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function Er(e){return function(t,{clientOffset:r}={}){!function(e){hr(Array.isArray(e),"Expected targetIds to be an array.")}(t);const n=t.slice(0),i=e.getMonitor(),o=e.getRegistry();return function(e,t,r){for(let n=e.length-1;n>=0;n--){const i=e[n];Ir(t.getTargetType(i),r)||e.splice(n,1)}}(n,o,i.getItemType()),function(e,t,r){hr(t.isDragging(),"Cannot call hover while not dragging."),hr(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t<e.length;t++){const n=e[t];hr(e.lastIndexOf(n)===t,"Expected targetIds to be unique in the passed array.");hr(r.getTarget(n),"Expected targetIds to be registered.")}}(n,i,o),function(e,t,r){e.forEach((function(e){r.getTarget(e).hover(t,e)}))}(n,i,o),{type:yr,payload:{targetIds:n,clientOffset:r||null}}}}function jr(e){return function(){if(e.getMonitor().isDragging())return{type:vr}}}class Nr{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const r=function(e){return{beginDrag:Or(e),publishDragSource:jr(e),hover:Er(e),drop:kr(e),endDrag:Tr(e)}}(this);return Object.keys(r).reduce(((n,i)=>{const o=r[i];var a;return n[i]=(a=o,(...r)=>{const n=a.apply(e,r);void 0!==n&&t(n)}),n}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function Pr(e,t){return{x:e.x-t.x,y:e.y-t.y}}const Ar=[],Mr=[];Ar.__IS_NONE__=!0,Mr.__IS_ALL__=!0;class Rr{subscribeToStateChange(e,t={}){const{handlerIds:r}=t;hr("function"==typeof e,"listener must be a function."),hr(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let n=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),i=t.stateId;try{const o=i===n||i===n+1&&!function(e,t){return e!==Ar&&(e===Mr||void 0===t||(r=e,t.filter((e=>r.indexOf(e)>-1))).length>0);var r}(t.dirtyHandlerIds,r);o||e()}finally{n=i}}))}subscribeToOffsetChange(e){hr("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const r=this.store.getState().dragOffset;r!==t&&(t=r,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return hr(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if(hr(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return Ir(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if(hr(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:r}=t;if(!this.isDragging())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();if(i&&!Ir(n,i))return!1;const o=this.getTargetIds();if(!o.length)return!1;const a=o.indexOf(e);return r?a===o.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return t&&r&&n?Pr((o=n,{x:(i=t).x+o.x,y:i.y+o.y}),r):null;var i,o}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:r}=e;return t&&r?Pr(t,r):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const _r="undefined"!=typeof global?global:self,Lr=_r.MutationObserver||_r.WebKitMutationObserver;function zr(e){return function(){const t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}const Fr="function"==typeof Lr?function(e){let t=1;const r=new Lr(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}:zr;class Br{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const Hr=new class{enqueueTask(e){const{queue:t,requestFlush:r}=this;t.length||(r(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,r=e.length-this.index;t<r;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Fr(this.flush),this.requestErrorThrow=zr((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},Ur=new class{create(e){const t=this.freeTasks,r=t.length?t.pop():new Br(this.onError,(e=>t[t.length]=e));return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}(Hr.registerPendingError);const qr="dnd-core/ADD_SOURCE",Kr="dnd-core/ADD_TARGET",Wr="dnd-core/REMOVE_SOURCE",Vr="dnd-core/REMOVE_TARGET";function $r(e,t){t&&Array.isArray(e)?e.forEach((e=>$r(e,!1))):hr("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Yr;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(Yr||(Yr={}));let Xr=0;function Gr(e){const t=(Xr++).toString();switch(e){case Yr.SOURCE:return`S${t}`;case Yr.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function Zr(e){switch(e[0]){case"S":return Yr.SOURCE;case"T":return Yr.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Jr(e,t){const r=e.entries();let n=!1;do{const{done:e,value:[,i]}=r.next();if(i===t)return!0;n=!!e}while(!n);return!1}class Qr{addSource(e,t){$r(e),function(e){hr("function"==typeof e.canDrag,"Expected canDrag to be a function."),hr("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),hr("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const r=this.addHandler(Yr.SOURCE,e,t);return this.store.dispatch(function(e){return{type:qr,payload:{sourceId:e}}}(r)),r}addTarget(e,t){$r(e,!0),function(e){hr("function"==typeof e.canDrop,"Expected canDrop to be a function."),hr("function"==typeof e.hover,"Expected hover to be a function."),hr("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const r=this.addHandler(Yr.TARGET,e,t);return this.store.dispatch(function(e){return{type:Kr,payload:{targetId:e}}}(r)),r}containsHandler(e){return Jr(this.dragSources,e)||Jr(this.dropTargets,e)}getSource(e,t=!1){hr(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return hr(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return hr(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return hr(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Zr(e)===Yr.SOURCE}isTargetId(e){return Zr(e)===Yr.TARGET}removeSource(e){var t;hr(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:Wr,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},Hr.enqueueTask(Ur.create(t))}removeTarget(e){hr(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:Vr,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);hr(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){hr(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,r){const n=Gr(e);return this.types.set(n,t),e===Yr.SOURCE?this.dragSources.set(n,r):e===Yr.TARGET&&this.dropTargets.set(n,r),n}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const en=(e,t)=>e===t;function tn(e=Ar,t){switch(t.type){case yr:break;case qr:case Kr:case Vr:case Wr:return Ar;default:return Mr}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,i=function(e,t){const r=new Map,n=e=>{r.set(e,r.has(e)?r.get(e)+1:1)};e.forEach(n),t.forEach(n);const i=[];return r.forEach(((e,t)=>{1===e&&i.push(t)})),i}(r,n),o=i.length>0||!function(e,t,r=en){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}(r,n);if(!o)return Ar;const a=n[n.length-1],s=r[r.length-1];return a!==s&&(a&&i.push(a),s&&i.push(s)),i}function rn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const nn={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function on(e=nn,t){const{payload:r}=t;switch(t.type){case pr:case mr:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case yr:return n=e.clientOffset,i=r.clientOffset,!n&&!i||n&&i&&n.x===i.x&&n.y===i.y?e:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){rn(e,t,r[t])}))}return e}({},e,{clientOffset:r.clientOffset});case xr:case br:return nn;default:return e}var n,i}function an(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){an(e,t,r[t])}))}return e}const cn={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function ln(e=cn,t){const{payload:r}=t;switch(t.type){case mr:return sn({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case vr:return sn({},e,{isSourcePublic:!0});case yr:return sn({},e,{targetIds:r.targetIds});case Vr:return-1===e.targetIds.indexOf(r.targetId)?e:sn({},e,{targetIds:(n=e.targetIds,i=r.targetId,n.filter((e=>e!==i)))});case br:return sn({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case xr:return sn({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var n,i}function un(e=0,t){switch(t.type){case qr:case Kr:return e+1;case Wr:case Vr:return e-1;default:return e}}function dn(e=0){return e+1}function fn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){fn(e,t,r[t])}))}return e}function gn(e={},t){return{dirtyHandlerIds:tn(e.dirtyHandlerIds,{type:t.type,payload:hn({},t.payload,{prevTargetIds:(r=e,n="dragOperation.targetIds",i=[],n.split(".").reduce(((e,t)=>e&&e[t]?e[t]:i||null),r))})}),dragOffset:on(e.dragOffset,t),refCount:un(e.refCount,t),dragOperation:ln(e.dragOperation,t),stateId:dn(e.stateId)};var r,n,i}function pn(e,t=void 0,r={},n=!1){const i=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return fr(gn,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(n),o=new Rr(i,new Qr(i)),a=new Nr(i,o),s=e(a,t,r);return a.receiveBackend(s),a}function mn(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}let vn=0;const yn=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var bn=n.memo((function(e){var{children:r}=e,i=mn(e,["children"]);const[o,a]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=xn(),r,n){const i=t;i[yn]||(i[yn]={dragDropManager:pn(e,t,r,n)});return i[yn]}(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}(i);return n.useEffect((()=>{if(a){const e=xn();return++vn,()=>{0==--vn&&(e[yn]=null)}}}),[]),t.jsx(sr.Provider,{value:o,children:r})}));function xn(){return"undefined"!=typeof global?global:window}var Sn=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r},wn=O(Sn);const On="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function Cn(e,t,r){const[i,o]=function(e,t,r){const[i,o]=n.useState((()=>t(e))),a=n.useCallback((()=>{const n=t(e);wn(i,n)||(o(n),r&&r())}),[i,e,r]);return On(a),[i,a]}(e,t,r);return On((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})}),[e,o]),i}function Dn(e,t,r){return Cn(t,e||(()=>({})),(()=>r.reconnect()))}function kn(e,t){const r=[...t||[]];return null==t&&"function"!=typeof e&&r.push(e),n.useMemo((()=>"function"==typeof e?e():e),r)}function Tn(e){return n.useMemo((()=>e.hooks.dragSource()),[e])}function In(e){return n.useMemo((()=>e.hooks.dragPreview()),[e])}let En=!1,jn=!1;class Nn{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){hr(!En,"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 En=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{En=!1}}isDragging(){if(!this.sourceId)return!1;hr(!jn,"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 jn=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{jn=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let Pn=!1;class An{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;hr(!Pn,"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 Pn=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Pn=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function Mn(e,t,r,n){let i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let a=0;a<o.length;a++){const c=o[a];if(!s(c))return!1;const l=e[c],u=t[c];if(i=r?r.call(n,l,u,c):void 0,!1===i||void 0===i&&l!==u)return!1}return!0}function Rn(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function _n(e){return(t=null,r=null)=>{if(!n.isValidElement(t)){const n=t;return e(n,r),n}const i=t;!function(e){if("string"==typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(i);return function(e,t){const r=e.ref;return hr("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?n.cloneElement(e,{ref:e=>{zn(r,e),zn(t,e)}}):n.cloneElement(e,{ref:t})}(i,r?t=>e(t,r):e)}}function Ln(e){const t={};return Object.keys(e).forEach((r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const e=_n(n);t[r]=()=>e}})),t}function zn(e,t){"function"==typeof e?e(t):e.current=t}class Fn{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();r&&this.disconnectDragPreview(),this.handlerId&&(t?r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!Mn(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Mn(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=Ln({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,Rn(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,Rn(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class Bn{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!Mn(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=Ln({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,Rn(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Hn(){const{dragDropManager:e}=n.useContext(sr);return hr(null!=e,"Expected drag drop context"),e}class Un{beginDrag(){const e=this.spec,t=this.monitor;let r=null;return r="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=r?r:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const r=this.spec,n=this.monitor,{isDragging:i}=r;return i?i(n):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,r=this.connector,{end:n}=e;n&&n(t.getItem(),t),r.reconnect()}constructor(e,t,r){this.spec=e,this.monitor=t,this.connector=r}}function qn(e,t,r){const i=Hn(),o=function(e,t,r){const i=n.useMemo((()=>new Un(e,t,r)),[t,r]);return n.useEffect((()=>{i.spec=e}),[e]),i}(e,t,r),a=function(e){return n.useMemo((()=>{const t=e.type;return hr(null!=t,"spec.type must be defined"),t}),[e])}(e);On((function(){if(null!=a){const[e,n]=function(e,t,r){const n=r.getRegistry(),i=n.addSource(e,t);return[i,()=>n.removeSource(i)]}(a,o,i);return t.receiveHandlerId(e),r.receiveHandlerId(e),n}}),[i,t,r,o,a])}function Kn(e,t){const r=kn(e,t);hr(!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)");const i=function(){const e=Hn();return n.useMemo((()=>new Nn(e)),[e])}(),o=function(e,t){const r=Hn(),i=n.useMemo((()=>new Fn(r.getBackend())),[r]);return On((()=>(i.dragSourceOptions=e||null,i.reconnect(),()=>i.disconnectDragSource())),[i,e]),On((()=>(i.dragPreviewOptions=t||null,i.reconnect(),()=>i.disconnectDragPreview())),[i,t]),i}(r.options,r.previewOptions);return qn(r,i,o),[Dn(r.collect,i,o),Tn(o),In(o)]}function Wn(e){return n.useMemo((()=>e.hooks.dropTarget()),[e])}class Vn{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function $n(e,t,r){const i=Hn(),o=function(e,t){const r=n.useMemo((()=>new Vn(e,t)),[t]);return n.useEffect((()=>{r.spec=e}),[e]),r}(e,t),a=function(e){const{accept:t}=e;return n.useMemo((()=>(hr(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);On((function(){const[e,n]=function(e,t,r){const n=r.getRegistry(),i=n.addTarget(e,t);return[i,()=>n.removeTarget(i)]}(a,o,i);return t.receiveHandlerId(e),r.receiveHandlerId(e),n}),[i,t,o,r,a.map((e=>e.toString())).join("|")])}function Yn(e,t){const r=kn(e,t),i=function(){const e=Hn();return n.useMemo((()=>new An(e)),[e])}(),o=function(e){const t=Hn(),r=n.useMemo((()=>new Bn(t.getBackend())),[t]);return On((()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget())),[e]),r}(r.options);return $n(r,i,o),[Dn(r.collect,i,o),Wn(o)]}function Xn(e){let t=null;return()=>(null==t&&(t=e()),t)}class Gn{enter(e){const t=this.entered.length;return this.entered=function(e,t){const r=new Set,n=e=>r.add(e);e.forEach(n),t.forEach(n);const i=[];return r.forEach((e=>i.push(e))),i}(this.entered.filter((t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e)))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var r,n;return this.entered=(r=this.entered.filter(this.isNodeInDocument),n=e,r.filter((e=>e!==n))),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class Zn{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((r=>{const n=this.config.exposeProperties[r];null!=n&&(t[r]={value:n(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const Jn="__NATIVE_FILE__",Qn="__NATIVE_URL__",ei="__NATIVE_TEXT__",ti="__NATIVE_HTML__";var ri=Object.freeze({__proto__:null,FILE:Jn,HTML:ti,TEXT:ei,URL:Qn});function ni(e,t,r){const n=t.reduce(((t,r)=>t||e.getData(r)),"");return null!=n?n:r}const ii={[Jn]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[ti]:{exposeProperties:{html:(e,t)=>ni(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Qn]:{exposeProperties:{urls:(e,t)=>ni(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[ei]:{exposeProperties:{text:(e,t)=>ni(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function oi(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(ii).filter((e=>{const r=ii[e];return!!(null==r?void 0:r.matchesTypes)&&r.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const ai=Xn((()=>/firefox/i.test(navigator.userAgent))),si=Xn((()=>Boolean(window.safari)));class ci{interpolate(e){const{xs:t,ys:r,c1s:n,c2s:i,c3s:o}=this;let a=t.length-1;if(e===t[a])return r[a];let s,c=0,l=o.length-1;for(;c<=l;){s=Math.floor(.5*(c+l));const n=t[s];if(n<e)c=s+1;else{if(!(n>e))return r[s];l=s-1}}a=Math.max(0,l);const u=e-t[a],d=u*u;return r[a]+n[a]*u+i[a]*d+o[a]*u*d}constructor(e,t){const{length:r}=e,n=[];for(let e=0;e<r;e++)n.push(e);n.sort(((t,r)=>e[t]<e[r]?-1:1));const i=[],o=[];let a,s;for(let n=0;n<r-1;n++)a=e[n+1]-e[n],s=t[n+1]-t[n],i.push(a),o.push(s/a);const c=[o[0]];for(let e=0;e<i.length-1;e++){const t=o[e],r=o[e+1];if(t*r<=0)c.push(0);else{a=i[e];const n=i[e+1],o=a+n;c.push(3*o/((o+n)/t+(o+a)/r))}}c.push(o[o.length-1]);const l=[],u=[];let d;for(let e=0;e<c.length-1;e++){d=o[e];const t=c[e],r=1/i[e],n=t+c[e+1]-d-d;l.push((d-t-n)*r),u.push(n*r*r)}this.xs=e,this.ys=t,this.c1s=c,this.c2s=l,this.c3s=u}}const li=1;function ui(e){const t=e.nodeType===li?e:e.parentElement;if(!t)return null;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function di(e){return{x:e.clientX,y:e.clientY}}function fi(e,t,r,n,i){const o="IMG"===(a=t).nodeName&&(ai()||!(null===(s=document.documentElement)||void 0===s?void 0:s.contains(a)));var a,s;const c=ui(o?e:t),l={x:r.x-c.x,y:r.y-c.y},{offsetWidth:u,offsetHeight:d}=e,{anchorX:f,anchorY:h}=n,{dragPreviewWidth:g,dragPreviewHeight:p}=function(e,t,r,n){let i=e?t.width:r,o=e?t.height:n;return si()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}(o,t,u,d),{offsetX:m,offsetY:v}=i,y=0===v||v;return{x:0===m||m?m:new ci([0,.5,1],[l.x,l.x/u*g,l.x+g-u]).interpolate(f),y:y?v:(()=>{let e=new ci([0,.5,1],[l.y,l.y/d*p,l.y+p-d]).interpolate(h);return si()&&o&&(e+=(window.devicePixelRatio-1)*p),e})()}}class hi{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function gi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){gi(e,t,r[t])}))}return e}class mi{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;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)))}connectDragPreview(e,t,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,r){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);const n=t=>this.handleDragStart(t,e),i=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",n),t.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",n),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const r=t=>this.handleDragEnter(t,e),n=t=>this.handleDragOver(t,e),i=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",r),t.addEventListener("dragover",n),t.addEventListener("drop",i),()=>{t.removeEventListener("dragenter",r),t.removeEventListener("dragover",n),t.removeEventListener("drop",i)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return pi({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return pi({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(ri).some((t=>ri[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const r=ii[e];if(!r)throw new Error(`native type ${e} has no configuration`);const n=new Zn(r);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){var e;if(this.currentDragSourceNode=null,this.rootElement)null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&ui(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const r=di(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});const{dataTransfer:n}=e,i=oi(n);if(this.monitor.isDragging()){if(n&&"function"==typeof n.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),i=this.sourcePreviewNodes.get(e)||t;if(i){const{anchorX:e,anchorY:o,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),c=fi(t,i,r,{anchorX:e,anchorY:o},{offsetX:a,offsetY:s});n.setDragImage(i,c.x,c.y)}}try{null==n||n.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(i)this.beginDragNativeItem(i);else{if(n&&!n.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;(this.dragEnterTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:r}=e,n=oi(r);n&&this.beginDragNativeItem(n,r)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:di(e)});t.some((e=>this.monitor.canDropOnTarget(e)))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=e=>{var t;(this.dragOverTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=di(e),this.scheduleHover(t);(t||[]).some((e=>this.monitor.canDropOnTarget(e)))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault();this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;(this.dropTargetIds=[],this.isDraggingNativeItem())?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):oi(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:di(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new hi(t,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Gn(this.isNodeInDocument)}}const vi=function(e,t,r){return new mi(e,t,r)};var yi={exports:{}};!function(e,t){function r(e){return"object"!=typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var n="object"==typeof process&&!0;function i(e,t){if(!e){if(n)throw new Error("Invariant failed");throw new Error(t())}}t.invariant=i;var o=Object.prototype.hasOwnProperty,a=Array.prototype.splice,s=Object.prototype.toString;function c(e){return s.call(e).slice(8,-1)}var l=Object.assign||function(e,t){return u(t).forEach((function(r){o.call(t,r)&&(e[r]=t[r])})),e},u="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function d(e){return Array.isArray(e)?l(e.constructor(e.length),e):"Map"===c(e)?new Map(e):"Set"===c(e)?new Set(e):e&&"object"==typeof e?l(Object.create(Object.getPrototypeOf(e)),e):e}var f=function(){function e(){this.commands=l({},h),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var r=this,n="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(n)||i(!Array.isArray(n),(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."})),i("object"==typeof n&&null!==n,(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(r.commands).join(", ")+"."}));var a=e;return u(n).forEach((function(t){if(o.call(r.commands,t)){var i=e===a;a=r.commands[t](n[t],a,n,e),i&&r.isEquals(a,e)&&(a=e)}else{var s="Map"===c(e)?r.update(e.get(t),n[t]):r.update(e[t],n[t]),l="Map"===c(a)?a.get(t):a[t];r.isEquals(s,l)&&(void 0!==s||o.call(e,t))||(a===e&&(a=d(e)),"Map"===c(a)?a.set(t,s):a[t]=s)}})),a},e}();t.Context=f;var h={$push:function(e,t,r){return p(t,r,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,r){return p(t,r,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,o){return function(e,t){i(Array.isArray(e),(function(){return"Expected $splice target to be an array; got "+r(e)})),v(t.$splice)}(t,n),e.forEach((function(e){v(e),t===o&&e.length&&(t=d(o)),a.apply(t,e)})),t},$set:function(e,t,r){return function(e){i(1===Object.keys(e).length,(function(){return"Cannot have more than one key in an object with $set"}))}(r),e},$toggle:function(e,t){m(e,"$toggle");var r=e.length?d(t):t;return e.forEach((function(e){r[e]=!t[e]})),r},$unset:function(e,t,r,n){return m(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===n&&(t=d(n)),delete t[e])})),t},$add:function(e,t,r,n){return y(t,"$add"),m(e,"$add"),"Map"===c(t)?e.forEach((function(e){var r=e[0],i=e[1];t===n&&t.get(r)!==i&&(t=d(n)),t.set(r,i)})):e.forEach((function(e){t!==n||t.has(e)||(t=d(n)),t.add(e)})),t},$remove:function(e,t,r,n){return y(t,"$remove"),m(e,"$remove"),e.forEach((function(e){t===n&&t.has(e)&&(t=d(n)),t.delete(e)})),t},$merge:function(e,t,n,o){var a,s;return a=t,i((s=e)&&"object"==typeof s,(function(){return"update(): $merge expects a spec of type 'object'; got "+r(s)})),i(a&&"object"==typeof a,(function(){return"update(): $merge expects a target of type 'object'; got "+r(a)})),u(e).forEach((function(r){e[r]!==t[r]&&(t===o&&(t=d(o)),t[r]=e[r])})),t},$apply:function(e,t){var n;return i("function"==typeof(n=e),(function(){return"update(): expected spec of $apply to be a function; got "+r(n)+"."})),e(t)}},g=new f;function p(e,t,n){i(Array.isArray(e),(function(){return"update(): expected target of "+r(n)+" to be an array; got "+r(e)+"."})),m(t[n],n)}function m(e,t){i(Array.isArray(e),(function(){return"update(): expected spec of "+r(t)+" to be an array; got "+r(e)+". Did you forget to wrap your parameter in an array?"}))}function v(e){i(Array.isArray(e),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+r(e)+". Did you forget to wrap your parameters in an array?"}))}function y(e,t){var n=c(e);i("Map"===n||"Set"===n,(function(){return"update(): "+r(t)+" expects a target of type Set or Map; got "+r(n)}))}t.isEquals=g.update.isEquals,t.extend=g.extend,t.default=g.update,t.default.default=e.exports=l(t.default,t)}(yi,yi.exports);var bi=O(yi.exports),xi=function(e){var r=e.type,i=e.onMoveItem,o=e.index,a=e.id,s=e.children,c=e.style,l=e.className,u=n.useRef(null),d=D("zt-sortable",l,{}),f=Yn({accept:r,hover:function(e,t){var r;if(u.current){var n=e.index,a=o;if(n!==a){var s=null===(r=u.current)||void 0===r?void 0:r.getBoundingClientRect(),c=(s.bottom-s.top)/2,l=t.getClientOffset().y-s.top;n<a&&l<c||n>a&&l>c||(i(n,a),e.index=a)}}}}),h=f[1],g=Kn({type:r,item:function(){return{id:a,index:o}},collect:function(e){return{isDragging:e.isDragging()}}}),p=g[0].isDragging?0:1;return(0,g[1])(h(u)),t.jsx("div",y({ref:u,className:d,style:y(y({},c),{opacity:p})},{children:s}))},Si=500;function wi(e,t,r){if(e&&t&&Array.isArray(r)){var n=[];try{n=(JSON.parse(localStorage.getItem(t)||"{}")||{})[e]}catch(e){console.log(e)}var i=Array.isArray(n)&&n.length>0?n:[];return n&&0!==n.length?r.forEach((function(e,t){var r=y({checked:!0},e),n=i.find((function(e){return e.key===r.key}));n?(n.label=r.label,n.isFind=!0):i.push(y(y({},r),{isFind:!0}))})):r.forEach((function(e){var t=y(y({},e),{checked:void 0===e.checked||e.checked});i.push(y(y({},t),{isFind:!0}))})),i.filter((function(e){return e.isFind})).map((function(e){var t=y({},e);return Reflect.deleteProperty(t,"isFind"),t}))}return[]}function Oi(e,t,r,i,o,a,s){var c=n.useState(!1),l=c[0],u=c[1],d=n.useCallback((function(){return e=i,t="".concat(i,"_lru_key"),function(r,n){var i={},o=[];try{i=JSON.parse(localStorage.getItem(e)||"{}")||{},o=JSON.parse(localStorage.getItem(t)||"[]")||[]}catch(e){console.error(e)}o.length!==Object.keys(i).length&&(o=Object.keys(i));var a=o.findIndex((function(e){return e===r}));if(-1!==a?(o.splice(a,1),o.push(r)):o.push(r),o.length>Si){var s=o.shift();try{delete i[s]}catch(e){}}i[r]=n,localStorage.setItem(e,JSON.stringify(i)),localStorage.setItem(t,JSON.stringify(o))};var e,t}),[i]),f=n.useCallback((function(){u(!1),o(e)}),[o,e]),h=n.useCallback((function(){u(!1),t(a),s(a),o(a),d()(r,a)}),[a,t,r,d,o]),g=n.useCallback((function(e){u(!1),t(e),o(e),s(e),d()(r,e)}),[t,r,d,o]);return{visible:l,setVisible:u,onClose:f,onReset:h,onSure:g}}var Ci=function(e,i){var o=e.list,a=e.dynamicKey,s=e.parentDynamicKey,c=e.title,l=void 0===c?"自定义配置":c,u=e.onCurrentListChange,d=function(e,t,r){var i=n.useMemo((function(){return wi(e,t,r)}),[e,t,r]),o=n.useState(i),a=o[0],s=o[1],c=n.useState(i),l=c[0],u=c[1];return n.useEffect((function(){i&&(s(i),u(i))}),[i]),{currentDynamicList:a,setCurrentDynamicList:s,tempDynamicList:l,setTempDynamicList:u}}(a,s,o),f=d.currentDynamicList,h=d.setCurrentDynamicList,g=d.tempDynamicList,p=d.setTempDynamicList,m=Oi(f,h,a,s,p,o,u),v=m.visible,b=m.setVisible,x=m.onClose,S=m.onReset,w=m.onSure;n.useImperativeHandle(i,(function(){return{setVisible:b}}));var O=n.useMemo((function(){var e=[];return g.forEach((function(t){t.checked&&e.push(t.key)})),e}),[g]),C=n.useCallback((function(e,t){p((function(r){var n=r[e];return bi(r,{$splice:[[e,1],[t,0,n]]})}))}),[p]),D=function(){w&&w(g)};return t.jsx(r.Drawer,y({className:"dynamic-drawer",title:t.jsxs("div",{children:[t.jsx(Ht,{style:{fontSize:16}}),t.jsxs("span",y({className:"search-drawer--title-text"},{children:[l,t.jsx("span",{children:"(拖拽排序)"})]}))]}),width:300,placement:"right",open:v,closable:!1,maskClosable:!1,footer:t.jsxs(t.Fragment,{children:[t.jsx(k,y({type:"default",onClick:x},{children:"取消"})),t.jsx(k,y({type:"default",onClick:S},{children:"重置"})),t.jsx(k,y({type:"primary",onClick:D},{children:"确定"}))]})},{children:t.jsx(bn,y({backend:vi,context:window},{children:t.jsx(r.Checkbox.Group,y({value:O,onChange:function(e){var t=g.map((function(e){return y({},e)}))||[];t.forEach((function(t){e.find((function(e){return e===t.key}))?t.checked=!0:t.checked=!1})),p(t)}},{children:g.map((function(e,n){return t.jsx(xi,y({type:"search-drawer",index:n,onMoveItem:C},{children:t.jsx(r.Checkbox,y({value:e.key,disabled:e.disabled},{children:e.label||e.key}))}),e.key)}))}))}))}))};Ci.displayName="ZTXK_WEBUI_DynamicDrawer";var Di=n.memo(n.forwardRef(Ci)),ki=function(e,r){var i=e.dynamicKey,o=e.parentDynamicKey,a=e.defaultList,s=e.children,c=e.title,l=e.onCurrentListChange,u=e.hiddenOperationIcon,d=n.useState(a),f=d[0],h=d[1],g=n.useRef({});return n.useImperativeHandle(r,(function(){return{getCurrentDynamicList:function(e){return wi(i,o,e)},setList:h,setVisible:function(e){var t;null===(t=g.current)||void 0===t||t.setVisible(e)}}})),Array.isArray(f)&&f.length>0?t.jsxs("div",y({className:"ztxk-dynamic-setting"},{children:[u?null:t.jsx("div",y({onClick:function(){var e;return null===(e=g.current)||void 0===e?void 0:e.setVisible(!0)}},{children:s||t.jsx(Ht,{style:{fontSize:18,color:"#768696"}})})),t.jsx(Di,{list:f,dynamicKey:i,parentDynamicKey:o,ref:g,title:c,onCurrentListChange:l})]})):null};ki.displayName="ZTXK_WEBUI_DynamicSetting";var Ti=n.memo(n.forwardRef(ki));var Ii=n.memo((function(e){var r=e.items,n=e.outsideState;return t.jsx(t.Fragment,{children:Array.isArray(r)?null==r?void 0:r.map((function(e,r){return t.jsx(_i,y({index:r},e,{outsideState:n}),"".concat(e.name))})):null})})),Ei=n.memo((function(e){var r=e.children,n=e.value;return t.jsx("div",y({className:"ztxk-form--detault-dom"},{children:r||(n||"— —")}))})),ji="ztxk-webui-dynamic-form",Ni=n.memo((function(e){var i=e.form,o=e.bottomBorder,a=e.isFlex,s=void 0===a||a,c=e.wrapClassName,l=e.leftClassName;e.itemClassName;var u=e.rightWrapVisible,d=e.rightClassName,f=e.children,h=e.dynamicKey,g=e.formPreferences,p=e.items,m=e.outsideState,v=e.onValuesChange,x=e.onResetHandle,S=e.onSearchHandle,w=e.type,O=b(e,["form","bottomBorder","isFlex","wrapClassName","leftClassName","itemClassName","rightWrapVisible","rightClassName","children","dynamicKey","formPreferences","items","outsideState","onValuesChange","onResetHandle","onSearchHandle","type"]),C=function(e,t){return{configInfoItems:n.useMemo((function(){return e?null==t?void 0:t.map((function(t){var r,n,i,o=t.name,a=t.configName||o;return y(y({},t),{isDisplay:null===(r=e[a])||void 0===r?void 0:r.isDisplay,isRequired:null===(n=e[a])||void 0===n?void 0:n.isRequired,isChangeable:null===(i=e[a])||void 0===i?void 0:i.isChangeable})})):t}),[e,t])}}(g,p).configInfoItems,T=function(e,t,r){var i=n.useRef({}),o=n.useMemo((function(){var r=[];return t&&e&&(r=e.map((function(e){return{key:e.name,label:e.label,disabled:!0===e.dynamicDisabled,checked:!1!==e.isDisplay}}))),r}),[t,e]);n.useEffect((function(){var e,n;r&&t&&(null===(n=null===(e=i.current)||void 0===e?void 0:e.setList)||void 0===n||n.call(e,o))}),[r,t]);var a=n.useState((function(){return wi(t,ji,o)})),s=a[0],c=a[1],l=n.useCallback((function(e){c(e)}),[]),u=n.useMemo((function(){var t=[];return Array.isArray(s)&&s.length>0&&s.forEach((function(r){var n=r.key,i=r.checked,o=null==e?void 0:e.find((function(e){return(null==e?void 0:e.name)===n}));o&&(o.isDisplay=!!i,t.push(o))})),t}),[e,s]);return{dynamicList:o,currentDynamicList:s,onCurrentListChange:l,newItems:u,dynamicSettingRef:i}}(C,h,g),I=T.dynamicList,E=T.onCurrentListChange,j=T.newItems,N=T.dynamicSettingRef,P=D("ztxk-form",c,{"ztxk-form--bottom-border":o,"ztxk-form--list":"list"===w}),A=D("ztxk-form__left",l,{"ztxk-form__left--flex":s}),M=D("ztxk-form__right",d),R=n.useMemo((function(){var e={};if(p)for(var t=0;t<p.length;t++){var r=p[t];"string"==typeof r.name&&r.shouldUpdateNames&&r.shouldUpdateClear&&(e[r.name]="boolean"==typeof r.shouldUpdateClear?r.shouldUpdateNames:r.shouldUpdateClear)}return e}),[p]),_=n.useCallback((function(e,t){if(e){var r=Object.keys(e);Object.keys(R).forEach((function(e){var t,n,o=R[e]?R[e]:[];r.find((function(e){return o.includes(e)}))&&(null===(n=null==i?void 0:i.setFieldsValue)||void 0===n||n.call(i,((t={})[e]=void 0,t)))}))}v&&v(e,t)}),[v,R,i]),L=function(e,t){var r=t.onResetHandle,i=t.onSearchHandle;return{onResetHandleInner:n.useCallback((function(){null==e||e.resetFields(),r&&r()}),[e,r]),onSearchHandleInner:n.useCallback((function(){var t=null==e?void 0:e.getFieldsValue();i&&i(t)}),[e,i])}}(i,{onSearchHandle:S,onResetHandle:x}),z=L.onSearchHandleInner,F=L.onResetHandleInner;return t.jsxs(r.Form,y({form:i,onValuesChange:_},O,{className:P},{children:[t.jsx("div",y({className:A},{children:p?t.jsx(Ii,{items:h?j:C,outsideState:m}):f})),h?t.jsx(Ti,{dynamicKey:h,parentDynamicKey:ji,defaultList:I,onCurrentListChange:E,ref:N}):null,u?t.jsxs("div",y({className:M},{children:[t.jsx(k,y({type:"default",onClick:F},{children:"重置"})),t.jsx(k,y({type:"primary",onClick:z},{children:"查询"}))]})):null]}))}));function Pi(e,t,r){return function e(t,n){if(t===n)return!0;if((null==t?void 0:t.$$typeof)&&(null==n?void 0:n.$$typeof))return(null==t?void 0:t.key)===(null==n?void 0:n.key);if(Array.isArray(t)){if(!Array.isArray(n)||t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(!e(t[i],n[i]))return!1;return!0}if(t&&n&&"object"==typeof t&&"object"==typeof n){var o=Object.keys(t);return o.length===Object.keys(n).length&&o.every((function(i){return!(!r||!r.includes(i))||e(t[i],n[i])}))}return!1}(e,t)}Ni.displayName="ZTXK_WEBUI_Form",Ni.useForm=r.Form.useForm,Ni.Item=r.Form.Item,Ni.List=r.Form.List,Ni.ErrorList=r.Form.ErrorList,Ni.Provider=r.Form.Provider,Ni.useFormInstance=r.Form.useFormInstance,Ni.useWatch=r.Form.useWatch,Ni.DefaultDom=Ei;var Ai=function(e){var r,n=e.children,i=e.isDisplay,o=e.isRequired,a=e.isChangeable,s=e.isStress,c=e.preNode,l=e.nextNode;e.dynamicDisabled;var u=e.hiddenBorder,d=e.singleSelectShowBorder,f=e.hiddenLabel,h=e.width,g=e.className,p=e.itemClassName,m=e.render,v=e.shouldUpdateNames;e.shouldUpdateClear;var x=e.dependencies,S=e.shouldUpdate;e.index,e.outsideState,e.shouldUpdateBeOutsideState;var w=b(e,["children","isDisplay","isRequired","isChangeable","isStress","preNode","nextNode","dynamicDisabled","hiddenBorder","singleSelectShowBorder","hiddenLabel","width","className","itemClassName","render","shouldUpdateNames","shouldUpdateClear","dependencies","shouldUpdate","index","outsideState","shouldUpdateBeOutsideState"]),O=Ni.useFormInstance();if(!1===i||"0"===i)return null;if(void 0!==o){var C=!!o,k=Array.isArray(w.rules)?w.rules:[],T=k.findIndex((function(e){return"function"!=typeof e&&(!0===(null==e?void 0:e.required)||!1===(null==e?void 0:e.required))}));if(-1!==T){var I=null===(r=k[T])||void 0===r?void 0:r.message;k.splice(T,1,{required:C,message:I})}else k.unshift({required:C,message:"".concat(w.label," 未填!")});w.rules=k}var E={disabled:!1};void 0!==a&&(E.disabled="0"===a||!a);var j=D("ztxk-form__item",p,{"ztxk-form__item--disabled":E.disabled,"ztxk-form__item--hidden-border":u,"ztxk-form__item--hidden-label":f,"ztxk-form__item--single-show-border":d,"ztxk-form__item--stress":s});if(x)return t.jsxs(Ri,y({width:h,className:g},{children:[c||null,t.jsx(Ni.Item,y({dependencies:x,noStyle:!0},{children:function(e){return t.jsx(Ni.Item,y({},w,{className:j},{children:m(E,e)}))}})),l||null]}));if(S||v){var N=v?function(e,t,r){for(var n=0;n<v.length;n++){var i=v[n];if(e[i]!==t[i])return!0}return"function"==typeof S?S(e,t,r):"boolean"==typeof S&&S}:S;return t.jsxs(Ri,y({width:h,className:g},{children:[c||null,t.jsx(Ni.Item,y({shouldUpdate:N,noStyle:!0},{children:function(e){return w.name?t.jsx(Ni.Item,y({},w,{className:j},{children:m(E,e)})):m(E,e)}})),l||null]}))}return t.jsxs(Ri,y({width:h,className:g},{children:[c||null,t.jsx(Ni.Item,y({},w,{className:j},{children:m?m(E,O):n})),l||null]}))};function Mi(e){if("number"==typeof e)return e;switch(e){case"half":return 4;case"all":return 24;case"double":return 16;case"halfAll":return 12;default:return 8}}function Ri(e){var n=e.className,i=e.children,o=e.width,a=D("ztxk-form__item--wrap",n);return t.jsx(r.Col,y({className:a,span:Mi(o)},{children:i}))}Ai.displayName="ZTXK_WEBUI_FormItem";var _i=n.memo(Ai,(function(e,t){return(null==t?void 0:t.shouldUpdateBeOutsideState)?!!Pi(e,t,["render","shouldUpdateBeOutsideState","shouldUpdate","outsideState"])&&!t.shouldUpdateBeOutsideState(e.outsideState,t.outsideState):Pi(e,t)}));const Li=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],zi=(()=>{if("undefined"==typeof document)return!1;const e=Li[0],t={};for(const r of Li){const n=r?.[1];if(n in document){for(const[n,i]of r.entries())t[e[n]]=i;return t}}return!1})(),Fi={change:zi.fullscreenchange,error:zi.fullscreenerror};let Bi={request:(e=document.documentElement,t)=>new Promise(((r,n)=>{const i=()=>{Bi.off("change",i),r()};Bi.on("change",i);const o=e[zi.requestFullscreen](t);o instanceof Promise&&o.then(i).catch(n)})),exit:()=>new Promise(((e,t)=>{if(!Bi.isFullscreen)return void e();const r=()=>{Bi.off("change",r),e()};Bi.on("change",r);const n=document[zi.exitFullscreen]();n instanceof Promise&&n.then(r).catch(t)})),toggle:(e,t)=>Bi.isFullscreen?Bi.exit():Bi.request(e,t),onchange(e){Bi.on("change",e)},onerror(e){Bi.on("error",e)},on(e,t){const r=Fi[e];r&&document.addEventListener(r,t,!1)},off(e,t){const r=Fi[e];r&&document.removeEventListener(r,t,!1)},raw:zi};Object.defineProperties(Bi,{isFullscreen:{get:()=>Boolean(document[zi.fullscreenElement])},element:{enumerable:!0,get:()=>document[zi.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>Boolean(document[zi.fullscreenEnabled])}}),zi||(Bi={isEnabled:!1});var Hi=Bi;var Ui=function(e){var i=e.loading,o=function(e){var t=n.useState(1),r=t[0],i=t[1];return n.useEffect((function(){e||i(1)}),[e]),n.useEffect((function(){if(e){var t=setInterval((function(){i((function(e){return e+1}))}),1e3);return function(){t&&clearInterval(t)}}}),[e]),{countTimer:r}}(i).countTimer;return t.jsx(r.Spin,{spinning:i,size:"large",tip:"".concat(o),className:"ztxk-container__loading",style:{display:i?"flex":"none"}})},qi=n.memo((function(e){var r=e.children,n=e.isMarginTop,i=e.className,o=D("ztxk-container--btn-wrap",i,{"btn-wrap--margin-top":n});return t.jsx("div",y({className:o},{children:r}))})),Ki=n.memo((function(e){var r=e.className,n=e.isFlex,i=e.children,o=e.loading,a=e.footerDom,s=D("ztxk-container__content",r,{"ztxk-container__content--flex":n});return t.jsxs("div",y({className:"ztxk-container"},{children:[t.jsx(Ui,{loading:o}),t.jsx("div",y({className:s},{children:i})),t.jsx(Vi,{footerDom:a})]}))}));Ki.displayName="ZTXK_WEBUI_ContainerMemo",Ki.ButtonWrap=qi;var Wi=["10","20","30","100"],Vi=n.memo((function(e){var r=e.children,n=e.className,i=e.align,o=void 0===i?"left":i,a=e.footerDom,s=D("ztxk-footer",n);return t.jsx("footer",y({className:s,style:{justifyContent:"left"===o?"flex-start":"center"===o?"center":"flex-end"}},{children:a?t.jsxs("div",y({className:"ztxk-footer--group"},{children:[a.map((function(e,r){var n=e.DOMType,i=e.render;if("button"===n){var o=e.type,a=void 0===o?"primary":o,s=e.loading,c=e.disabled,l=e.onClick;return t.jsx(k,y({type:a,loading:s,disabled:c,onClick:l},{children:e.text}),r)}if("pagination"===n){var u=e.total,d=e.pageSize,f=e.current,h=e.onChange,g=e.onShowSizeChange,p=e.pageSizeOptions;return t.jsx($i,{total:u,pageSize:d,current:f,onChange:h,onShowSizeChange:g,showTotal:function(e){return"共".concat(e,"条")},showSizeChanger:!0,pageSizeOptions:p||Wi},r)}return i?i():null})),r]})):null}))})),$i=function(e){var n=e.className,i=b(e,["className"]),o=D("ztxk-pagination",n,{});return t.jsx(r.Pagination,y({className:o},i))},Yi="ztxk-webui-dynamic-table",Xi=Symbol("table-drag-row"),Gi=["bottomLeft"],Zi=["10","20","30","40"],Ji="error-td",Qi="ascend",eo="descend";var to=function(e){var r=e.className,n=b(e,["className"]),i=D("ztxk-table__enhance-row",r);return t.jsx("tr",y({className:i},n))},ro=function(e){var r=e.className,i=e.style,o=e.index,a=e.moveRow,s=b(e,["className","style","index","moveRow"]),c=function(e,t){var r=n.useRef(null),i=Yn((function(){return{accept:Xi,collect:function(e){return(e.getItem()||{}).index,{}},drop:function(r){if(!t)throw new Error("请定义移动行后触发的函数 onmoveRow");t(r.index,e)}}}),[e])[1],o=Kn({type:Xi,item:{index:e},collect:function(e){return{isDragging:e.isDragging()}},canDrag:function(e){var t;return!(null===(t=document.activeElement)||void 0===t?void 0:t.tagName.toLowerCase().match(/input|textarea/))}});return i((0,o[1])(r)),{ref:r}}(o,a).ref,l=D("ztxk-table__enhance-row",r);return t.jsx("tr",y({ref:c,style:y({cursor:"move"},i),className:l},s))};function no(e,t){var r=null==e?void 0:e.current;return r?r.pageSize*(r.page-1)+(t||0):t}var io=function(e){var r=e.record,i=e.index,o=e.editable,a=e.editableConfig,s=e.dataIndex;e.title;var c=e.onEditableSave;e.onMouseEnter,e.onMouseLeave;var l=e.children,u=e.currentPage,d=e.isValidate,f=b(e,["record","index","editable","editableConfig","dataIndex","title","onEditableSave","onMouseEnter","onMouseLeave","children","currentPage","isValidate"]),h=no(u,i),g=n.useState(r?r[s]:void 0),p=g[0],m=g[1],v=function(){var e=n.useState(!1),t=e[0],r=e[1];return{editing:t,toggleEdit:function(){r(!t)}}}(),x=v.editing,S=v.toggleEdit,w=function(e){var t=n.useRef();return n.useEffect((function(){e&&t.current.focus()}),[e]),t}(x),O=function(){var e=n.useRef(),t=n.useCallback((function(){var t,r;e.current&&(null===(r=(t=e.current.classList).contains)||void 0===r?void 0:r.call(t,Ji))&&e.current.classList.remove(Ji)}),[]);return{tdRef:e,removeErrorClass:t}}(),C=O.tdRef,D=O.removeErrorClass,k=function(e){var t;if(!c)throw Error("如果开启了editable, 那么必须传递 onEditableSave属性 来更改表格数据!");S(),c(y(y({},r),((t={})[s]=p,t)),h,s)};if(o){var I=a||{type:"input"},E=I.type,j=b(I,["type"]),P=null;return"input"===E&&(P=t.jsx(T,y({value:p,onChange:function(e){m(e.target.value),d&&D()},onPressEnter:k,onBlur:k,ref:w},j))),"inputNumber"===E&&(P=t.jsx(N,y({value:p,onChange:function(e){m(e),d&&D()},onPressEnter:k,onBlur:k,ref:w},j))),t.jsx("td",y({ref:C},f,{children:x?t.jsx("div",y({className:"ztxk-table__enhance-cell"},{children:P})):t.jsx("div",y({className:"ztxk-table__enhance-cell-wrap",onClick:S},{children:l}))}))}return t.jsx("td",y({ref:C},f,{children:l}))},oo=n.memo((function(e){var r=e.dynamicSettingRef;return t.jsx(Rt,{onClick:function(){var e;null===(e=null==r?void 0:r.current)||void 0===e||e.setVisible(!0)}})})),ao=n.memo((function(e){var n=e.onAddAndDel;return t.jsx(r.Popconfirm,y({title:"确定删除所有吗?",onConfirm:function(){return n&&n("delAll",0)}},{children:t.jsx(Pt,{title:"删除所有行"})}))})),so=n.memo((function(e){var n=e.isAdd,i=e.isDel,o=e.onAddAndDel,a=e.index;return t.jsxs(t.Fragment,{children:[n?t.jsx("div",y({className:"ztxk-column--adddel-icon"},{children:t.jsx(zt,{title:"新增一行",onClick:function(){o&&o("add",a)}})})):null,i?t.jsx("div",y({className:"ztxk-column--adddel-icon"},{children:t.jsx(r.Popconfirm,y({title:"确定删除吗?",onConfirm:function(){return o&&o("del",a)}},{children:t.jsx(Et,{title:"删除一行"})}))})):null]})}));var co=n.memo((function(e){var n=e.copyKey,i=e.dataSourceRef;return t.jsxs("div",y({onClick:function(){!function(e,t){var n,i;if(Array.isArray(t)){var o=t.map((function(t){if("string"==typeof e)return t[e];var r="";return e.forEach((function(e){return r+=t[e]})),r})).join("\n");try{if((null===navigator||void 0===navigator?void 0:navigator.clipboard)&&window.isSecureContext)null===(i=null===(n=navigator.clipboard)||void 0===n?void 0:n.writeText(o))||void 0===i||i.then((function(){r.message.info("复制成功!")}));else{var a=document.createElement("textarea");a.value=o,document.body.appendChild(a),a.select(),document.execCommand?(r.message.info("复制成功!"),document.execCommand("copy")):r.message.info("复制失败!请手工复制\n ".concat(o)),document.body.removeChild(a)}}catch(e){r.message.info("复制失败!请手工复制\n ".concat(o))}}}(n,i.current)}},{children:[t.jsx(xt,{type:"icon-copy",style:{fontSize:"16px"},className:"thead-icon"}),"复制整列"]}))})),lo=n.memo((function(e){var n=e.isFillDown,i=e.dataSourceRef,o=e.dataKey,a=e.onTableChange;return t.jsx(r.Tooltip,y({title:"点击往下填充,会将该列的第一条数据往下填充覆盖至所有数据的该列都应用此值"},{children:t.jsxs("div",y({onClick:function(){if(!Array.isArray(null==i?void 0:i.current)||(null==i?void 0:i.current.length)<=1||!n)r.message.info("数据不需要填充!");else{var e=[],t=i.current[0][o],s=!1;!0===n?e=i.current.map((function(e){var r;return e[o]!==t&&(s=!0),y(y({},e),((r={})[o]=t,r))})):(s=!0,e=i.current.map((function(e,r){return n({index:r,text:t,record:e})}))),s&&a&&a(e,i.current,{type:"fillDown"})}}},{children:[t.jsx(Qt,{style:{fontSize:"16px"},className:"thead-icon"}),"往下填充"]}))}))})),uo=n.memo((function(e){var n=e.copyKey,i=e.dataSourceRef,o=e.isFillDown,a=e.dataKey,s=e.onTableChange,c=[];return("string"==typeof n||Array.isArray(n))&&c.push({key:"copy",label:t.jsx(co,{copyKey:n,dataSourceRef:i})}),o&&c.push({key:"fill",label:t.jsx(lo,{dataKey:a,isFillDown:o,dataSourceRef:i,onTableChange:s})}),t.jsx(t.Fragment,{children:c.length>0?t.jsx(r.Dropdown,y({menu:{items:c},trigger:["click"]},{children:t.jsx(k,{type:"link",icon:t.jsx(Ot,{}),title:"一些工具方法"})})):null})})),fo=function(e){var r=e.title,i=e.field,o=e.onChange,a=e.customOrder,s=e.setCustomOrder,c=a&&(null==a?void 0:a.field)===i?null==a?void 0:a.order:null,l=n.useMemo((function(){return c===Qi?"点击降序":c===eo?"取消排序":"点击升序"}),[c]);return t.jsxs("div",y({className:"ztxk-table--sorter"},{children:[t.jsx("div",y({className:"ztxk-table--sorter-title"},{children:"function"==typeof r?r({}):r})),t.jsxs("div",y({className:"ztxk-table--sorter-icon",onClick:function(e){var t;e.stopPropagation(),s(c===Qi?{field:i,order:t=eo}:c===eo?{field:i,order:t=null}:{field:i,order:t=Qi}),o&&o({field:i,order:t})},title:l},{children:[t.jsx(vt,{className:D("ant-table-column-sorter-up",{active:c===Qi})}),t.jsx(gt,{className:D("ant-table-column-sorter-down",{active:c===eo})})]}))]}))};function ho(e,r){var n=r.dynamicKey,i=r.currentDynamicList,o=r.dataSourceRef,a=r.onEditableSave,s=r.isEdit,c=r.isAdd,l=r.isDel,u=r.dynamicSettingRef,d=r.onAddAndDel,f=r.getRefreshScuCell,h=r.isDelAll,g=r.currentPage,p=r.onTableChange,m=r.order,v=r.setOrder,b=r.customSortHandle,x=function(e,t){if(Array.isArray(t)&&t.length>0&&e){var r=[],n=[],i=[];return t.forEach((function(t){var r=t.key,i=t.checked,o=e.find((function(e){return(e.key===r||(null==e?void 0:e.dataIndex)===r)&&i}));o&&n.push(o)})),e.filter((function(e){return e.fixed})).forEach((function(e){"left"===e.fixed?r.push(e):"right"===e.fixed&&i.push(e)})),w(w(w([],r,!0),n,!0),i,!0)}return e}(e,i),S=[];if(Array.isArray(x)){if(x.forEach((function(e){var r=y(y({},e),{__title:e.title}),n=r.isCopy,i=r.editable,c=r.editableConfig,l=r.title,u=r.key,d=r.validate,h=r.isRequire,x=r.isFillDown,w=r.isOrder,O=u||(null==r?void 0:r.dataIndex);if(w&&(r.title=t.jsx(fo,{title:l,field:O,onChange:b,customOrder:m,setCustomOrder:v})),(x||n)&&(r.title=t.jsx("div",y({style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},{children:t.jsxs(t.Fragment,{children:[r.title,t.jsx(uo,{copyKey:!0===n?O:n,dataSourceRef:o,isFillDown:x,dataKey:O,onTableChange:p})]})}))),h&&(r.title=t.jsxs(t.Fragment,{children:[t.jsx("i",y({className:"ztxk-column--required"},{children:"*"})),r.title]})),i&&s&&(r.onCell=function(e,t){return{record:e,index:t,editable:i,editableConfig:c,dataIndex:O,title:l,onEditableSave:a,currentPage:g,isValidate:!!d}}),r.shouldCellUpdate){var C=r.shouldCellUpdate;r.shouldCellUpdate=function(e,t){return!(!f||!f())||C(e,t)}}r.render||r.editable||(r.render=function(e,t,r){return"object"==typeof e||null==e||""===e?"— —":e}),S.push(r)})),c||l){var O={title:function(){return h?t.jsx(ao,{}):null},width:52,fixed:"left",align:"center",render:function(e,r,n){return t.jsx(so,{isAdd:c,isDel:l,index:n,onAddAndDel:d})}};S.unshift(O)}n&&(S[0].title=function(){return c||l?t.jsxs(t.Fragment,{children:[h?t.jsx(ao,{}):null,t.jsx(oo,{dynamicSettingRef:u})]}):t.jsx(oo,{dynamicSettingRef:u})})}return{newColumns:S}}function go(e,i,o){var a=o.summaryFixed,s=o.rowSelection,c=o.expandable,l=o.isAdd,u=o.isDel,d=!!c,f=!(!l&&!u),h=Number(!!s)+Number(d),g=n.useCallback((function(n){var o=function(e,t,r){var n=[],i=r.fillNumber,o=r.columns;Array.isArray(e)&&e.forEach((function(e){var r=e.type,a=e.fields,s=e.title;switch(r){case"subtotal":if(!Array.isArray(a))return;if(0===a.length)return;var c=function(e,t){if(!Array.isArray(t))return null;var r={};return t.forEach((function(n,i){e.forEach((function(e){if("string"==typeof e){var o=Number(null==n?void 0:n[e]);o=isNaN(o)?0:o;var a=(null==r?void 0:r[e])||0;r[e]=a?po(a,o):o}else{var s=e.key,c=e.showKey,l=e.toFixedNum,u=e.value,d=e.callback;o=Number(null==n?void 0:n[s]);o=isNaN(o)?0:o;var f=(null==r?void 0:r[s])||0;if(u)if(Array.isArray(u))r[s]=u.map((function(e,t){var r=Array.isArray(l)?l[t]:l,n=Number(e);return isNaN(n)||"number"!=typeof r?e:n.toFixed(r)}));else{var h=Number(u);r[s]="number"==typeof l?isNaN(h)?u:h.toFixed(l):u}else if(c)if("string"==typeof c){var g=Number(null==n?void 0:n[c]);g=isNaN(g)?0:g,r[s]=f?"number"==typeof l?po(f,g).toFixed(l):po(f,g):"number"==typeof l?g.toFixed(l):g}else r[s]=c.map((function(e,t){var r=Number(null==n?void 0:n[e]);r=isNaN(r)?0:r;var i=Array.isArray(l)?l[t]:l;if(f){var o=Number(f[t]);return"number"==typeof i?po(o,r).toFixed(i):po(o,r)}return"number"==typeof i?r.toFixed(i):r}));else r[s]=f?"number"==typeof l?po(f,o).toFixed(l):po(f,o):"number"==typeof l?o.toFixed(l):o;d&&i===t.length-1&&(r[s]=d(r[s]))}}))})),r}(a,t),l=[],u=[];null==o||o.forEach((function(e){e.children?e.children.forEach((function(e){l.push(e.key||e.dataIndex?c[e.key||e.dataIndex]:void 0),u.push({key:null==e?void 0:e.key,dataIndex:null==e?void 0:e.dataIndex})})):(l.push(e.key||e.dataIndex?c[e.key||e.dataIndex]:void 0),u.push({key:null==e?void 0:e.key,dataIndex:null==e?void 0:e.dataIndex}))})),n.push({title:s||"小计",titleIndex:0+i,key:"subtotal",list:Array(i).fill(void 0).concat(l),columnList:Array(i).fill(void 0).concat(u)});break;case"total":if(!Array.isArray(a))return;if(0===a.length)return;var d=function(e){var t={};return e.forEach((function(e){if("object"==typeof e){var r=e.key,n=e.toFixedNum,i=e.value,o=e.callback;if(null!=i)if(Array.isArray(i))t[r]=i.map((function(e,t){var r=Number(e);r=isNaN(r)?0:r;var i=Array.isArray(n)?n[t]:n;return"number"==typeof i?r.toFixed(i):e}));else{var a=Number(i);a=isNaN(a)?0:a,t[r]="number"==typeof n?a.toFixed(n):i}else t[r]=0;o&&(t[r]=o(t[r]))}})),t}(a),f=[],h=[];null==o||o.forEach((function(e){e.children?e.children.forEach((function(e){f.push(e.key||e.dataIndex?d[e.key||e.dataIndex]:void 0),h.push({key:null==e?void 0:e.key,dataIndex:null==e?void 0:e.dataIndex})})):(f.push(e.key||e.dataIndex?d[e.key||e.dataIndex]:void 0),h.push({key:null==e?void 0:e.key,dataIndex:null==e?void 0:e.dataIndex}))})),n.push({title:s||"总计",titleIndex:0+i,key:"total",list:Array(i).fill(void 0).concat(f),columnList:Array(i).fill(void 0).concat(h)})}}));return n}(e,n,{fillNumber:h,columns:i});return t.jsx(r.Table.Summary,y({fixed:a},{children:o.map((function(e){var n=e.title,i=e.key,o=e.titleIndex,a=e.list;return t.jsx(r.Table.Summary.Row,{children:Array.isArray(a)&&a.map((function(e,i){return o+Number(f)===i?t.jsx(r.Table.Summary.Cell,y({index:i},{children:n}),i):t.jsx(r.Table.Summary.Cell,y({index:i},{children:t.jsx("div",{children:e})}),i)}))},i)}))}))}),[e,h,i,a,f]);return e?g:void 0}function po(e,t){return e+t}function mo(e,t){return e.querySelector(t)}function vo(e,t,r){var n;return x(this,void 0,void 0,(function(){var i,o,a,s,c,l,u,d,f,h,g,p,m;return S(this,(function(v){switch(v.label){case 0:if(i=r.getCurrentTable,o=r.rowSelection,a=r.expandable,s=r.tableName,c=r.isInnerPagination,l=r.setCurrent,u=r.pageSize,!Array.isArray(e)||0===e.length)return console.info("没有数据,无需验证!"),[2];if(!Array.isArray(t))return console.info("columns 不是数组!"),[2];d=[],Array.isArray(t)&&t.forEach((function(e,t){e.validate&&d.push({dataIndex:e.validate.dataIndex||e.dataIndex,title:e.validate.title||e.__title||e.title,validate:e.validate.validate,index:t+(o?1:0)+(a?1:0)})})),f=0,v.label=1;case 1:if(!(f<e.length))return[3,6];h=e[f],g=function(e){var t,r,o,a,g,p,m,v,y,b;return S(this,(function(x){switch(x.label){case 0:if(t=d[e],r=t.dataIndex,o=t.title,a=t.validate,g=t.index,!r)return[2,"break"];if(p=h[r],m=function(e,t,r){var n,o,a,s=i().resultTr[e],c=Array.prototype.slice.call(null==s?void 0:s.children),l="number"==typeof t?c[t]:null;null===(o=null===(n=null==l?void 0:l.classList)||void 0===n?void 0:n.add)||void 0===o||o.call(n,r),null===(a=null==l?void 0:l.scrollIntoView)||void 0===a||a.call(l)},v=f,y=1,c&&(y=Math.ceil((f+1)/u),v-=u*(y-1)),!a)return[3,10];if("function"!=typeof a)return[3,5];x.label=1;case 1:return x.trys.push([1,3,,4]),[4,a(p,h,v+1,o)];case 2:return x.sent(),[3,4];case 3:return b=x.sent(),c?(l(y),setTimeout((function(){m(v,g,Ji)}))):m(f,g,Ji),[2,{value:Promise.reject(b)}];case 4:return[3,9];case 5:return(null===(n=null==a?void 0:a.pattern)||void 0===n?void 0:n.test(p))?[3,9]:c?(l(y),setTimeout((function(){m(v,g,Ji)})),[4,Promise.reject({errors:"".concat(s||""," 第").concat(v+1,"行 ").concat(o," ").concat((null==a?void 0:a.message)||"填写错误!")})]):[3,7];case 6:return x.sent(),[3,9];case 7:return m(f,g,Ji),[4,Promise.reject({errors:"".concat(s||""," 第").concat(f+1,"行 ").concat(o," ").concat((null==a?void 0:a.message)||"填写错误!")})];case 8:x.sent(),x.label=9;case 9:return[3,14];case 10:return""!==p&&null!=p?[3,14]:c?(l(y),setTimeout((function(){m(v,g,Ji)})),[4,Promise.reject({errors:"".concat(s||""," 第").concat(v+1,"行 ").concat(o," 为空!"),rowIndex:f,colIndex:g})]):[3,12];case 11:return x.sent(),[3,14];case 12:return m(f,g,Ji),[4,Promise.reject({errors:"".concat(s||""," 第").concat(f+1,"行 ").concat(o," 为空!"),rowIndex:f,colIndex:g})];case 13:x.sent(),x.label=14;case 14:return[2]}}))},p=0,v.label=2;case 2:return p<d.length?[5,g(p)]:[3,5];case 3:if("object"==typeof(m=v.sent()))return[2,m.value];if("break"===m)return[3,5];v.label=4;case 4:return p++,[3,2];case 5:return f++,[3,1];case 6:return[2]}}))}))}var yo=n.memo((function(e){var i=e.className,o=e.bordered,a=void 0===o||o,s=e.pagination,c=void 0!==s&&s,l=e.isFlex;e.tablePreferences;var u=e.dynamicKey,d=e.columns,f=e.dataSource,h=e.onTableChange,g=e.isEdit,p=e.isMove,m=e.isAdd,v=e.addMode,w=e.addCallback,O=e.isDel,C=e.isDelAll,k=void 0===C||C,T=e.isAddAndDelAuto,I=e.summaryConfig,E=e.summaryFixed,j=void 0===E||E,N=e.isInnerPagination,P=e.innerPaginationPageSize,A=void 0===P?30:P,M=e.innerPaginationPosition,R=void 0===M?Gi:M,_=e.innerPaginationPageSizeOptions,L=void 0===_?Zi:_,z=e.tableRefHandle,F=e.tableName,B=b(e,["className","bordered","pagination","isFlex","tablePreferences","dynamicKey","columns","dataSource","onTableChange","isEdit","isMove","isAdd","addMode","addCallback","isDel","isDelAll","isAddAndDelAuto","summaryConfig","summaryFixed","isInnerPagination","innerPaginationPageSize","innerPaginationPosition","innerPaginationPageSizeOptions","tableRefHandle","tableName"]),H=D("ztxk-table",i,{"ztxk-table--flex":l}),U=n.useRef();n.useEffect((function(){U.current=f}),[f]);var q,K,W=function(e,t){var r=n.useRef(null),i=n.useMemo((function(){return function(e,t){var r=[];return e&&t&&t.forEach((function(e){var t=e,n=t.key,i=t.dataIndex,o=t.title,a=t.dynamicDisabled;if(!t.fixed){var s=n||i;r.push({key:s,label:o,disabled:!0===a})}})),r}(t,e)}),[t,e]),o=n.useState((function(){return wi(t,Yi,i)})),a=o[0],s=o[1],c=n.useCallback((function(e){s(e)}),[]);return{defaultDynamicList:i,currentDynamicList:a,onCurrentListChange:c,dynamicSettingRef:r}}(d,u),V=W.defaultDynamicList,$=W.onCurrentListChange,Y=W.currentDynamicList,X=W.dynamicSettingRef,G=(q=n.useRef(null),K=n.useRef(),{refreshScuCell:n.useCallback((function(){K.current=!0}),[]),getRefreshScuCell:n.useCallback((function(){return!!K.current&&(q.current&&(clearTimeout(q.current),q.current=null),q.current=setTimeout((function(){K.current=!1})),!0)}),[])}),Z=G.refreshScuCell,J=G.getRefreshScuCell,Q=function(e,t,r){var i=n.useRef(null),o=n.useState(1),a=o[0],s=o[1],c=n.useState(t),l=c[0],u=c[1],d=r.innerPaginationPageSizeOptions,f=r.innerPaginationPosition;return n.useEffect((function(){e&&(i.current={page:a,pageSize:Number(l)})}),[e,a,l]),n.useEffect((function(){e||(i.current=null)}),[e]),{paginationConfig:n.useMemo((function(){return{current:a,pageSize:l,onChange:function(t,r){e&&(s(t),u(r))},hideOnSinglePage:!0,position:d,defaultPageSize:l,pageSizeOptions:f}}),[e,a,l,d,f]),currentPage:i,setCurrent:s,pageSize:l,current:a}}(N,A,{innerPaginationPosition:R,innerPaginationPageSizeOptions:L}),ee=Q.paginationConfig,te=Q.currentPage,re=Q.setCurrent,ne=Q.pageSize,ie=function(e,t){return n.useCallback((function(r,n,i,o){var a,s=null===(a=e.current)||void 0===a?void 0:a.slice();s[n][i]!==r[i]&&(s[n]=r,t&&t(s,e.current,{type:"edit",currentIndex:n}))}),[e,t])}(U,h),oe=function(e,t,r){var i=r.isMove,o=r.refreshScuCell,a=r.currentPage,s=n.useCallback((function(r,n){var i,s=no(a,r),c=no(a,n);if(s!==c){var l=null===(i=e.current)||void 0===i?void 0:i.slice(),u=l[s],d=bi(l,{$splice:[[s,1],[c,0,u]]});o&&o(),t&&t(d,e.current,{type:"move",dragIndex:s,hoverIndex:c})}}),[e,t,o,a]),c=n.useCallback((function(e,t){return{index:t,moveRow:s}}),[s]);return{onRow:i?c:void 0}}(U,h,{isMove:p,refreshScuCell:Z,currentPage:te}).onRow,ae=function(e,t,r){var i=r.rowKey,o=r.addMode,a=r.addCallback,s=r.refreshScuCell,c=r.isAddAndDelAuto,l=r.currentPage;return n.useCallback((function(r,n){var u,d,f,h=no(l,n),g=null===(f=e.current)||void 0===f?void 0:f.slice();if("delAll"!==r){c&&(s&&s(),t&&t(g,e.current,{type:r,currentIndex:h}));var p=g[h],m=a?a(p,{index:h}):{};if("add"===r){var v={};v=y("blank"===o?((u={})[String(i)]="".concat(Date.now(),"-").concat(h),u.__INNER__ADD__DATA=!0,u):y(y({},p),((d={})[String(i)]="".concat(Date.now(),"-").concat(h),d.__INNER__ADD__DATA=!0,d)),m),g.splice(h+1,0,v)}else"del"===r&&g.splice(h,1);s&&s(),t&&t(g,e.current,{type:r,currentIndex:h})}else Array.isArray(g)&&g.length>0&&(s&&s(),t&&t([],e.current,{type:r,currentIndex:h}))}),[a,o,e,t,i,s,c,l])}(U,h,{rowKey:e.rowKey,addMode:v,addCallback:w,refreshScuCell:Z,isAddAndDelAuto:T,currentPage:te}),se=function(e,t,r){var i=r.refreshScuCell,o=n.useState(null),a=o[0],s=o[1],c=n.useState(void 0),l=c[0],u=c[1],d=n.useRef(!0),f=n.useCallback((function(r){if(Array.isArray(e)&&e.length>1){var n=r.field,o=r.order,a=function(e,t){var r=e[n]-t[n];return isNaN(r)?e[n]<t[n]?-1:e[n]>t[n]?1:0:r};if("ascend"===o){var c=e.slice().sort((function(e,t){return a(e,t)}));s(c),d.current=!0,i&&i(),t&&t(c,e,{type:"sort"})}else"descend"===o?(c=e.slice().sort((function(e,t){return-a(e,t)})),s(c),d.current=!0,i&&i(),t&&t(c,e,{type:"sort"})):s(null)}}),[e,t,i]);return n.useEffect((function(){d.current||(s(null),u(void 0)),d.current=!1}),[e]),{sortDataSource:a,setSortDataSource:s,order:l,setOrder:u,customSortHandle:f}}(f,h,{refreshScuCell:Z,currentPage:te}),ce=se.sortDataSource,le=se.order,ue=se.setOrder,de=se.customSortHandle,fe=ho(d,{dynamicKey:u,currentDynamicList:Y,dataSource:f,dataSourceRef:U,onEditableSave:ie,isEdit:g,isAdd:m,isDel:O,dynamicSettingRef:X,onAddAndDel:ae,getRefreshScuCell:J,isDelAll:k,currentPage:te,onTableChange:h,order:le,setOrder:ue,customSortHandle:de}).newColumns,he=go(I,fe,{summaryFixed:j,rowSelection:e.rowSelection,expandable:e.expandable,isAdd:m,isDel:O}),ge=function(){var e=n.useRef(),t=n.useCallback((function(){var t,r=mo(e.current,".ant-table-content");r||(r=mo(e.current,".ant-table-container"));var n=mo(r,".ant-table-tbody"),i=null==n?void 0:n.children,o=Array.prototype.slice.call(i);return{tableBody:n,resultTr:(null===(t=null==o?void 0:o.filter)||void 0===t?void 0:t.call(o,(function(e){return e.className.includes("ant-table-row")})))||[]}}),[]),r=n.useCallback((function(e){try{var r=t().resultTr;if("number"==typeof e)for(var n=r[e].querySelectorAll("td"),i=0;i<n.length;i++)n[i].classList.remove(Ji);else for(i=0;i<r.length;i++){n=r[i].querySelectorAll("td");for(var o=0;o<n.length;o++)n[o].classList.remove(Ji)}}catch(e){console.log(e)}}),[t]);return{tableRef:e,getCurrentTable:t,clearErrorClass:r}}(),pe=ge.tableRef,me=ge.getCurrentTable,ve=ge.clearErrorClass,ye=n.useMemo((function(){var e=void 0;return g&&(e={body:{row:to,cell:io}}),p&&(e={body:{row:ro,cell:g?io:void 0}}),e}),[g,p]);n.useImperativeHandle(z,(function(){return{getRealyIndex:function(e){return no(te,e)},getDynamicList:function(){return Y},tableValidate:function(){return x(void 0,void 0,void 0,(function(){return S(this,(function(t){switch(t.label){case 0:return ve(),[4,vo(f,fe,{getCurrentTable:me,rowSelection:!!e.rowSelection,expandable:!!e.expandable,tableName:F,isInnerPagination:N,setCurrent:re,pageSize:ne})];case 1:return[2,t.sent()]}}))}))},clearErrorClass:ve}}));var be=t.jsx(r.Table,y({className:H,bordered:a,dataSource:ce||f,columns:fe,components:ye,onRow:oe,summary:he,pagination:N?c||ee:c},B));return t.jsxs("div",y({style:l?{position:"relative",overflow:"hidden",flex:1}:{position:"relative",overflow:"hidden"},ref:pe},{children:[p?t.jsx(bn,y({backend:vi,context:window},{children:be})):be,u?t.jsx(Ti,{parentDynamicKey:Yi,dynamicKey:u,defaultList:V,onCurrentListChange:$,ref:X,hiddenOperationIcon:!0}):null]}))}));yo.displayName="ZTXK_WEBUI_Table",yo.SELECTION_COLUMN=r.Table.SELECTION_COLUMN,yo.EXPAND_COLUMN=r.Table.EXPAND_COLUMN,yo.SELECTION_ALL=r.Table.SELECTION_ALL,yo.SELECTION_INVERT=r.Table.SELECTION_INVERT,yo.SELECTION_NONE=r.Table.SELECTION_NONE,yo.Column=r.Table.Column,yo.ColumnGroup=r.Table.ColumnGroup,yo.Summary=r.Table.Summary;var bo=n.memo((function(e){var n,i=e.className,o=e.isHeader,a=e.isContent,s=e.marginTop,c=void 0!==s&&s,l=e.marginBottom,u=void 0===l||l,d=b(e,["className","isHeader","isContent","marginTop","marginBottom"]),f=D("ztxk-tabs",i,((n={})["ztxk-tabs--header"]=o,n["ztxk-tabs--content"]=a,n["ztxk-tabs--marginTop"]=c,n["ztxk-tabs--marginBottom"]=u,n));return t.jsx(r.Tabs,y({type:o?"editable-card":a?"card":void 0,hideAdd:!!o||void 0,className:f},d))}));function xo(e,t){e.update((function(e){return y(y({},e),{cancelButtonProps:y(y({},e.cancelButtonProps||{}),t)})}))}bo.displayName="ZTXK_WEBUI_Tabs",bo.TabPane=r.Tabs.TabPane;var So=n.forwardRef((function(e,i){var o=e.className,a=e.defaultOpen,s=e.defaultTitle,c=e.defaultConfirmMsg,l=e.defaultConfirmOkText,u=e.defaultType,d=e.confirmPreHandle,f=e.confirmOnOk,h=e.onOk,g=e.footer,p=e.onOkValidate,m=b(e,["className","defaultOpen","defaultTitle","defaultConfirmMsg","defaultConfirmOkText","defaultType","confirmPreHandle","confirmOnOk","onOk","footer","onOkValidate"]),v=D("ztxk-modal",o),w=n.useState(a),O=w[0],C=w[1],k=n.useState(s),T=k[0],I=k[1],E=n.useState(),j=E[0],N=E[1],P=n.useState(!1),A=P[0],M=P[1],R=n.useState(c),_=R[0],L=R[1],z=n.useState(l),F=z[0],B=z[1],H=n.useState(u),U=H[0],q=H[1],K=n.useCallback((function(){C(!1)}),[]),W=n.useCallback((function(){return x(void 0,void 0,void 0,(function(){var e,t,n,i,o,a;return S(this,(function(s){switch(s.label){case 0:if(e=!0,!p)return[3,4];N(!0),s.label=1;case 1:return s.trys.push([1,3,,4]),e=!1,[4,p(U)];case 2:return s.sent(),e=!0,N(!1),[3,4];case 3:return t=s.sent(),N(!1),console.log(t),n=t.errorFields,i=t.errors,n&&r.message.warning(n[0].errors+""),i&&r.message.warning(i),[3,4];case 4:return e?(A?(o=d&&d(U),a=r.Modal.confirm({title:(null==o?void 0:o.confirmMsg)?o.confirmMsg:_,okText:(null==o?void 0:o.confirmOkText)?o.confirmOkText:F||"确认保存",keyboard:!1,maskClosable:!1,onOk:f?function(){return xo(a,{loading:!0}),f(U).then((function(){xo(a,{loading:!1}),C(!1)})).catch((function(e){xo(a,{loading:!1})}))}:void 0})):h&&(N(!0),h(U).then((function(){N(!1),C(!1)})).catch((function(e){N(!1)}))),[2]):[2]}}))}))}),[A,p,d,_,F,f,U,h]);return n.useImperativeHandle(i,(function(){return{open:function(e){(null==e?void 0:e.title)&&I(e.title),(null==e?void 0:e.confirmMsg)&&L(e.confirmMsg),(null==e?void 0:e.confirmOkText)&&B(e.confirmOkText),(null==e?void 0:e.type)&&q(e.type),"boolean"==typeof(null==e?void 0:e.isConfirm)&&M(e.isConfirm),C(!0)},close:function(){C(!1)},getType:function(){return U},setConfirmMsg:B}})),t.jsx(r.Modal,y({open:O,onCancel:K,className:v,okText:"保存",onOk:g?void 0:W,width:"70%",title:T,keyboard:!1,maskClosable:!1,confirmLoading:j,cancelButtonProps:{loading:j},footer:g},m))}));So.displayName="ZTXK_WEBUI_ModalComponent",So.info=r.Modal.info,So.success=r.Modal.success,So.error=r.Modal.error,So.warning=r.Modal.warning,So.confirm=r.Modal.confirm,So.destroyAll=r.Modal.destroyAll;var wo=function(e){var n=e.children,i=e.className,o=e.border,a=e.isBg,s=b(e,["children","className","border","isBg"]),c=D("ztxk-grid",i,{"ztxk-grid--border":o,"ztxk-grid--background":a});return t.jsx(r.Row,y({className:c},s,{gutter:0},{children:n}))};wo.displayName="ZTXK_WEBUI_DetailList",wo.Item=function(e){var n=e.children,i=e.className,o=e.title,a=e.colon,s=void 0===a||a,c=e.span,l=e.titleSpan,u=e.titleProps,d=e.textProps,f=e.showDiff,h=e.isEllipsis,g=void 0===h||h,p=e.isBlod,m=D("ztxk-grid-item",i);return t.jsxs(t.Fragment,{children:[t.jsxs(r.Col,y({className:m+" ztxk-grid-item--title",span:l||3,title:o},u,{children:[t.jsx("span",y({className:"ztxk-grid-item--title-text"},{children:o})),t.jsx("span",y({className:"ztxk-grid-item--title-colon"},{children:s&&":"}))]})),t.jsx(r.Col,y({className:f?m+" ztxk-grid-item--text ztxk-grid-item--diff"+"".concat(g?" ztxk-grid-item--text-ellipsis":" ztxk-grid-item--text-noellipsis"):m+" ztxk-grid-item--text"+"".concat(g?" ztxk-grid-item--text-ellipsis":" ztxk-grid-item--text-noellipsis"),span:l?c-l:c-3,title:"string"==typeof n?n:void 0,style:{fontWeight:p?"bold":"normal"}},d,{children:n}))]})};var Oo=function(e){var n=e.children,i=e.layoutSliderRender,o=e.layoutHeaderRender;return t.jsxs(r.Layout,y({className:"zmdms-container"},{children:[i,t.jsxs(r.Layout,y({className:"zmdms-content"},{children:[o,t.jsx(r.Layout.Content,y({className:"zmdms-content--content"},{children:n}))]}))]}))};Oo.displayName="ZTXK_WEBUI_AppLayout";var Co=n.memo(Oo),Do=function(e){var i=e.tabs,o=e.activeTab,a=e.deleteTabHandle,s=e.setActiveTab,c=e.deleteTabsHandle,l=n.useCallback((function(e){1!==i.length?a(e):r.message.warning("最后一页不可关闭!")}),[a,i]),u=n.useMemo((function(){return[{label:"关闭",key:"closeCurrent"},{label:"关闭其他",key:"closeOther"},{label:"关闭右侧",key:"closeRight"}]}),[]),d=n.useCallback((function(e,t){if(console.log(e,t),"closeCurrent"===e)l(t.key);else if("closeOther"===e){if(i.length>1){var r=i.findIndex((function(e){return e.key===t.key})),n=i.slice();n.splice(r,1),o!==t.key?c&&c(t,n,!0):c&&c(t,n,!1)}}else if("closeRight"===e){r=i.findIndex((function(e){return e.key===t.key}));var a=i.slice(r+1);a.find((function(e){return e.key===o}))?c&&c(t,a,!0):c&&c(t,a,!1)}}),[l,i,o,c]),f=n.useMemo((function(){return Array.isArray(i)?i.map((function(e){return{key:e.key,label:t.jsx(r.Dropdown,y({trigger:["contextMenu"],menu:{items:u,onClick:function(t){t.domEvent.stopPropagation(),d(t.key,e)}}},{children:t.jsx(g.Link,y({to:e.path},{children:e.label}))}))}})):[]}),[i,u,d]);return t.jsx(bo,{items:f,activeKey:o,isHeader:!0,onTabClick:function(e){s(e)},onEdit:function(e){l(e)}})},ko=n.memo((function(){var e=n.useRef(null),r=function(e,t){var r=n.useState(!1),i=r[0],o=r[1];return n.useEffect((function(){if(e.current){var r=e.current,n=function(){if(Hi.isEnabled){var e=Hi;(null==t?void 0:t.current)?e.toggle(t.current):e.toggle()}};return r.addEventListener("click",n),function(){r.removeEventListener("click",n)}}}),[e,t]),n.useEffect((function(){if(Hi.isEnabled){var e=Hi,t=function(){e.isFullscreen?o(!0):o(!1)};return e.on("change",t),function(){e.off("change",t)}}}),[]),i}(e);return t.jsx("div",y({className:"full-screen",ref:e,title:r?"退出全屏":"全屏"},{children:r?t.jsx(Kt,{}):t.jsx(dt,{})}))})),To=function(e){var n=e.userInfo,i=e.logout,o=[{label:t.jsxs("div",{children:[t.jsx(Gt,{style:{marginRight:5}})," 账号信息"]}),key:"info"},{label:t.jsxs("div",{children:[t.jsx($t,{style:{marginRight:5}})," 修改密码"]}),key:"password"},{type:"divider"},{label:t.jsxs("div",y({onClick:function(){i&&i()}},{children:[t.jsx(kt,{style:{marginRight:5}})," 退出系统"]})),key:"logout"}];return t.jsx(r.Dropdown,y({menu:{items:o},placement:"bottomLeft"},{children:t.jsxs("div",y({className:"user-operation"},{children:[t.jsx(Gt,{}),t.jsx("span",{children:null==n?void 0:n.realName})]}))}))},Io=function(e){var r=e.userInfo,n=e.logout;return t.jsxs("div",y({className:"zmdms-content--header-info"},{children:[t.jsx(ko,{}),t.jsx(To,{userInfo:r,logout:n})]}))},Eo=function(e){var n=e.tabs,i=e.activeTab,o=e.deleteTabHandle,a=e.deleteTabsHandle,s=e.setActiveTab,c=e.userInfo,l=e.logout;return t.jsxs(r.Layout.Header,y({className:"zmdms-content--header"},{children:[t.jsx(Do,{tabs:n,activeTab:i,deleteTabHandle:o,deleteTabsHandle:a,setActiveTab:s}),t.jsx(Io,{userInfo:c,logout:l})]}))};Eo.displayName="ZTXK_WEBUI_AppLayoutHeader";var jo=n.memo(Eo),No=n.memo((function(e){var r=e.logo;return t.jsx("div",y({className:"zmdms-logo"},{children:t.jsx("img",{src:r,title:"浙商中拓ERP",alt:"zszt_logo"})}))})),Po=function(e){var i=e.userMenus,o=e.onMouseEnter,a=e.onMainLinkClick,s=e.addTab,c=e.getPrefixByAppId,l=n.useCallback((function(e){var r=e.system,n=e.path,i=c(r),o="/"===n?"/":i?"/".concat(i).concat(n):n;return"index"===e.type?t.jsx(g.Link,y({to:o,onClick:function(){s&&s({key:o,path:o,label:e.name})}},{children:e.name})):"/"===o?e.name:t.jsx(g.Link,y({to:o,onClick:function(){s&&s({key:o,path:o,label:e.name})}},{children:e.name}))}),[s,c]),u=n.useMemo((function(){var e;return Array.isArray(i)?1===i.length?((null===(e=i[0])||void 0===e?void 0:e.children)||[]).map((function(e){return{label:l(e),title:e.name,key:e.id,icon:e.source?t.jsx(ar,{type:e.source,style:{fontSize:"18px"}}):null}})):i.map((function(e){var r=e.children;return{label:t.jsx("span",y({title:e.name},{children:e.name})),title:e.name,key:e.id,icon:e.source?t.jsx(ar,{type:e.source,style:{fontSize:"18px"}}):null,children:r?r.map((function(e){return{label:l(e),title:e.name,key:e.id,icon:e.source?t.jsx(ar,{type:e.source,style:{fontSize:"18px"}}):null}})):null}})):(console.error("用户主菜单没有按预期传入对应数据!"),[])}),[i,l]),d=n.useCallback((function(e){var t=e.key;a(t)}),[a]);return t.jsx(r.Menu,{className:"zmdms-menu--main",items:u,inlineIndent:10,mode:"inline",onMouseEnter:o,onClick:d})},Ao=n.memo(n.forwardRef((function(e,i){var o=e.marginLeft,a=e.subMenus,s=e.subMenuWidth,c=e.layoutSiderRef,l=e.addTab,u=e.getPrefixByAppId,d=n.useState(),f=d[0],h=d[1],p=n.useState(),m=p[0],v=p[1],b=n.useCallback((function(){v((function(e){return c.current.style.marginRight=e?0:"".concat(s,"px"),!e}))}),[c,s]),x=t.jsxs(k,y({type:"link",onClick:b},{children:[t.jsx(ar,{type:"icon-toggle",style:{fontSize:"18px"}}),m?"浮动":"固定"]}));n.useImperativeHandle(i,(function(){return{setVisible:function(e){m||h(e)}}}));var S=n.useMemo((function(){var e=function(r,n,i){return void 0===n&&(n=[]),void 0===i&&(i=1),i>=3?null:(i++,Array.isArray(r)&&r.forEach((function(r){var o=r.system,a=r.path,s=u(o),c="/"===a?"/":s?"/".concat(s).concat(a):a,d={label:"/"===c?r.name:t.jsx(g.Link,y({to:c,onClick:function(){l({key:c,path:c,label:r.name})}},{children:r.name})),title:r.name,key:r.id,children:Array.isArray(r.children)&&r.children.length>0?e(r.children,[],i):null};n.push(d)})),n)};return e(a)}),[a,l,u]);return t.jsx(r.Drawer,y({mask:!1,placement:"left",width:s,zIndex:99,closable:!1,open:f,className:"zmdms-menu--sub",style:{marginLeft:o},footer:x},{children:t.jsx(r.Menu,{inlineIndent:10,mode:"inline",items:S})}))}))),Mo=[],Ro=n.memo((function(e){var r=e.width,i=e.subMenuWidth,o=e.layoutSiderRef,a=e.userMenus,s=e.userSubMenus,c=e.addTab,l=e.logo,u=e.getPrefixByAppId,d=n.useRef({}),f=n.useState(Mo),h=f[0],g=f[1],p=n.useCallback((function(){var e;null===(e=d.current)||void 0===e||e.setVisible(!0)}),[]),m=n.useCallback((function(e){e?s&&g(s[e]):g(Mo)}),[s]),v=n.useCallback((function(){var e;null===(e=d.current)||void 0===e||e.setVisible(!1)}),[]);return t.jsxs("div",y({className:"zmdms-menu",onMouseLeave:v},{children:[t.jsx(No,{logo:l}),t.jsx(Po,{userMenus:a,onMouseEnter:p,onMainLinkClick:m,addTab:c,getPrefixByAppId:u}),t.jsx(Ao,{ref:d,marginLeft:r,subMenuWidth:i,subMenus:h,layoutSiderRef:o,addTab:c,getPrefixByAppId:u})]}))})),_o=function(e){var i=e.siderWidth,o=void 0===i?118:i,a=e.subMenuWidth,s=void 0===a?162:a,c=e.userMenus,l=e.userSubMenus,u=e.addTab,d=e.siderBg,f=e.logo,h=e.apps,g=n.useRef(),p=n.useCallback((function(e){if(Array.isArray(h)&&h.length>0){var t=h.find((function(t){return t.appId+""==e+""}));if(t)return t.name}return null}),[h]);return t.jsx(r.Layout.Sider,y({className:"zmdms-sider",collapsedWidth:"0",collapsible:!0,trigger:null,width:o,ref:g,style:{backgroundImage:"url(".concat(d,")")}},{children:t.jsx(Ro,{width:o,subMenuWidth:s,layoutSiderRef:g,userMenus:c,userSubMenus:l,addTab:u,logo:f,getPrefixByAppId:p})}))};_o.displayName="ZTXK_WEBUI_AppLayoutSider";var Lo=n.memo(_o),zo=function(e){var n,i=e.statusBtnConfig,o=e.authUserBtns,a=e.callback,s=function(e){a&&a(e)};return t.jsx(t.Fragment,{children:null===(n=i||[])||void 0===n?void 0:n.map((function(e){var n=e.authority,i=e.confirmMsg,a=e.type,c=e.name,l=!1;return l="boolean"==typeof n?n:void 0===n||!!o.find((function(e){return e.code===n})),i?t.jsx(r.Popconfirm,y({title:i,cancelText:"否",okText:"是",onConfirm:function(){return s(a)}},{children:t.jsx(k,y({type:"link",style:{height:28},disabled:!l},{children:c}))}),a):t.jsx(k,y({type:"link",style:{height:28},onClick:function(){return s(a)},disabled:!l},{children:c}),a)}))})};function Fo(e){return e?"string"==typeof e?e:e instanceof Array?e.map((function(e){var t;return Fo("string"==typeof e?e:(null===(t=null==e?void 0:e.props)||void 0===t?void 0:t.children)||"")})).join(" "):Fo(e):""}zo.displayName="ZTXK_WEBUI_OperationBtn";var Bo=n.memo(n.forwardRef((function(e,i){var o,a=e.list,s=e.defaultList,c=e.dataKey,l=void 0===c?"id":c,u=e.titleKey,d=void 0===u?"name":u,f=e.joinKey,g=e.joinStr,m=void 0===g?"-":g,v=e.lineFeedKey,x=e.lineFeedStr,S=void 0===x?"-":x,w=e.showAll,O=e.children,C=e.disabledValues,D=e.dropdownMatchSelectWidth,k=void 0===D?100:D,T=e.onChange,I=e.onSearch,E=e.isRemoteSearch,j=e.dropdownButton,N=e.dropdownRender,P=b(e,["list","defaultList","dataKey","titleKey","joinKey","joinStr","lineFeedKey","lineFeedStr","showAll","children","disabledValues","dropdownMatchSelectWidth","onChange","onSearch","isRemoteSearch","dropdownButton","dropdownRender"]),A=function(e){var r=e.list,n=e.defaultList,i=e.dataKey,o=void 0===i?"id":i,a=e.titleKey,s=void 0===a?"name":a,c=e.joinKey,l=e.joinStr,u=e.lineFeedKey,d=e.lineFeedStr,f=e.showAll,g=e.children,p=e.disabledValues,m=function(e,t){if(!t)return e;var r=(null==e?void 0:e.slice())||[];t.forEach((function(e,t){if(e){var n=r.findIndex((function(t){return t&&o&&t[o]===e[o]}));if(-1===n)r.push(e);else{var i=y({},e);s&&!i[s]&&Reflect.deleteProperty(i,s),o&&!i[o]&&Reflect.deleteProperty(i,o),r.splice(n,1,y(y({},r[n]),i))}}else console.error("默认数据中有空值 位置再defalutList中第".concat(t+1,"项"))}))}(r,n);return{resultList:m,renderChildren:function(){return g||(Array.isArray(m)?t.jsxs(t.Fragment,{children:[f&&t.jsx(Bo.Option,y({title:"全部",value:""},{children:"全部"})),null==m?void 0:m.map((function(e,r){if(!e)return console.error("默认数据中有空值 位置再list中第".concat(r+1,"项")),null;var n=e[o],i=e[o],a=h.unescapeString(e[s]),f=[],g=[];c&&(f=Array.isArray(c)?c.map((function(t){return h.unescapeString(e[t])})):e[c]?[h.unescapeString(e[c])]:[]),u&&(g=Array.isArray(u)?u.map((function(t){return h.unescapeString(e[t])})):e[u]?[h.unescapeString(e[u])]:[]),Array.isArray(f)?f.unshift(a):f=[a];var m=null==e?void 0:e.disabled;return Array.isArray(p)&&p.includes(i)&&(m=!0),t.jsxs(Bo.Option,y({value:i,title:a,disabled:m},{children:[Array.isArray(f)?null==f?void 0:f.join(l):"",Array.isArray(g)&&g.length>0?t.jsx("div",y({className:"ztxk-select--feed-item"},{children:null==g?void 0:g.join(d)})):""]}),"".concat(n).concat(r))}))]}):null)}}}({list:a,defaultList:s,dataKey:l,titleKey:d,joinKey:f,joinStr:m,lineFeedKey:v,lineFeedStr:S,showAll:w,children:O,disabledValues:C}),M=A.renderChildren,R=A.resultList,_=(o=j,n.useCallback((function(e){return t.jsxs(t.Fragment,{children:[e,t.jsx(r.Divider,{style:{marginTop:0,marginBottom:"4px"}}),t.jsx("div",y({style:{padding:"0 4px"}},{children:o}))]})}),[o])),L=n.useCallback((function(e){I&&I(e)}),[I]),z=p(L,400);return t.jsx(r.Select,y({showArrow:!0,dropdownMatchSelectWidth:k,onChange:function(t,r){if(Array.isArray(R)&&0!==R.length){var n,i=l;n="multiple"===e.mode?null==(n=t.map((function(e){return R.find((function(t){return!!t&&(null!=t[i]&&t[i]===e)}))})))?void 0:n.filter((function(e){return e})):R.find((function(e){return!!e&&(null!=e[i]&&e[i]===t)})),T&&T(t,r,n)}else T&&T(t,r)},showSearch:!0,onSearch:z,filterOption:!E&&function(e,t){var r=Fo(null==t?void 0:t.children);return(null==r?void 0:r.toLowerCase().indexOf(e.toLowerCase().trim()))>=0},dropdownRender:N||(j?_:void 0)},P,{ref:i},{children:M()}))})));Bo.displayName="ZTXK_WEBUI_Select",Bo.SECRET_COMBOBOX_MODE_DO_NOT_USE=r.Select.SECRET_COMBOBOX_MODE_DO_NOT_USE,Bo.Option=r.Select.Option,Bo.OptGroup=r.Select.OptGroup,Object.defineProperty(e,"Affix",{enumerable:!0,get:function(){return r.Affix}}),Object.defineProperty(e,"Alert",{enumerable:!0,get:function(){return r.Alert}}),Object.defineProperty(e,"Anchor",{enumerable:!0,get:function(){return r.Anchor}}),Object.defineProperty(e,"AutoComplete",{enumerable:!0,get:function(){return r.AutoComplete}}),Object.defineProperty(e,"Avatar",{enumerable:!0,get:function(){return r.Avatar}}),Object.defineProperty(e,"BackTop",{enumerable:!0,get:function(){return r.BackTop}}),Object.defineProperty(e,"Badge",{enumerable:!0,get:function(){return r.Badge}}),Object.defineProperty(e,"Breadcrumb",{enumerable:!0,get:function(){return r.Breadcrumb}}),Object.defineProperty(e,"Card",{enumerable:!0,get:function(){return r.Card}}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return r.Carousel}}),Object.defineProperty(e,"Cascader",{enumerable:!0,get:function(){return r.Cascader}}),Object.defineProperty(e,"Checkbox",{enumerable:!0,get:function(){return r.Checkbox}}),Object.defineProperty(e,"Col",{enumerable:!0,get:function(){return r.Col}}),Object.defineProperty(e,"Collapse",{enumerable:!0,get:function(){return r.Collapse}}),Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return r.Comment}}),Object.defineProperty(e,"ConfigProvider",{enumerable:!0,get:function(){return r.ConfigProvider}}),Object.defineProperty(e,"Descriptions",{enumerable:!0,get:function(){return r.Descriptions}}),Object.defineProperty(e,"Divider",{enumerable:!0,get:function(){return r.Divider}}),Object.defineProperty(e,"Drawer",{enumerable:!0,get:function(){return r.Drawer}}),Object.defineProperty(e,"Dropdown",{enumerable:!0,get:function(){return r.Dropdown}}),Object.defineProperty(e,"Empty",{enumerable:!0,get:function(){return r.Empty}}),Object.defineProperty(e,"Grid",{enumerable:!0,get:function(){return r.Grid}}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return r.Image}}),Object.defineProperty(e,"Layout",{enumerable:!0,get:function(){return r.Layout}}),Object.defineProperty(e,"List",{enumerable:!0,get:function(){return r.List}}),Object.defineProperty(e,"Mentions",{enumerable:!0,get:function(){return r.Mentions}}),Object.defineProperty(e,"Menu",{enumerable:!0,get:function(){return r.Menu}}),Object.defineProperty(e,"PageHeader",{enumerable:!0,get:function(){return r.PageHeader}}),Object.defineProperty(e,"Popconfirm",{enumerable:!0,get:function(){return r.Popconfirm}}),Object.defineProperty(e,"Popover",{enumerable:!0,get:function(){return r.Popover}}),Object.defineProperty(e,"Progress",{enumerable:!0,get:function(){return r.Progress}}),Object.defineProperty(e,"Radio",{enumerable:!0,get:function(){return r.Radio}}),Object.defineProperty(e,"Rate",{enumerable:!0,get:function(){return r.Rate}}),Object.defineProperty(e,"Result",{enumerable:!0,get:function(){return r.Result}}),Object.defineProperty(e,"Row",{enumerable:!0,get:function(){return r.Row}}),Object.defineProperty(e,"Segmented",{enumerable:!0,get:function(){return r.Segmented}}),Object.defineProperty(e,"Skeleton",{enumerable:!0,get:function(){return r.Skeleton}}),Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return r.Slider}}),Object.defineProperty(e,"Space",{enumerable:!0,get:function(){return r.Space}}),Object.defineProperty(e,"Spin",{enumerable:!0,get:function(){return r.Spin}}),Object.defineProperty(e,"Statistic",{enumerable:!0,get:function(){return r.Statistic}}),Object.defineProperty(e,"Steps",{enumerable:!0,get:function(){return r.Steps}}),Object.defineProperty(e,"Switch",{enumerable:!0,get:function(){return r.Switch}}),Object.defineProperty(e,"Tag",{enumerable:!0,get:function(){return r.Tag}}),Object.defineProperty(e,"Timeline",{enumerable:!0,get:function(){return r.Timeline}}),Object.defineProperty(e,"Tooltip",{enumerable:!0,get:function(){return r.Tooltip}}),Object.defineProperty(e,"Transfer",{enumerable:!0,get:function(){return r.Transfer}}),Object.defineProperty(e,"Tree",{enumerable:!0,get:function(){return r.Tree}}),Object.defineProperty(e,"TreeSelect",{enumerable:!0,get:function(){return r.TreeSelect}}),Object.defineProperty(e,"Typography",{enumerable:!0,get:function(){return r.Typography}}),Object.defineProperty(e,"Upload",{enumerable:!0,get:function(){return r.Upload}}),Object.defineProperty(e,"message",{enumerable:!0,get:function(){return r.message}}),Object.defineProperty(e,"notification",{enumerable:!0,get:function(){return r.notification}}),e.AppLayout=Co,e.AppLayoutHeader=jo,e.AppLayoutSider=Lo,e.Button=k,e.Calendar=q,e.Container=Ki,e.DatePicker=U,e.DetailList=wo,e.DynamicSetting=Ti,e.Footer=Vi,e.Form=Ni,e.FormItem=_i,e.Icon=ar,e.Input=T,e.InputNumber=N,e.Login=Q,e.Modal=So,e.OperationBtn=zo,e.Pagination=$i,e.ProtectedRoute=function(e){var r=e.hasAuth,n=void 0===r||r,i=e.element,o=e.backLogin;return h.getToken()?n?i:t.jsx("div",{children:"您没有权限访问当前页面!"}):(console.log("当前页面需要登录! 请登录成功后再进行访问!"),o())},e.Select=Bo,e.SuspenseComponent=function(e){var r=e.children;return t.jsx(n.Suspense,y({fallback:t.jsx("div",{children:"loading..."})},{children:r}))},e.Table=yo,e.Tabs=bo,e.TimePicker=K,e.ZtxkContext=W}));
6
+ */!function(e){!function(){var t={}.hasOwnProperty;function r(){for(var e=[],n=0;n<arguments.length;n++){var i=arguments[n];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i)){if(i.length){var a=r.apply(null,i);a&&e.push(a)}}else if("object"===o){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){e.push(i.toString());continue}for(var s in i)t.call(i,s)&&i[s]&&e.push(s)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r}()}(C);var D=O(C.exports),T=function(e){var n,i=e.type,o=e.className,a=e.disabled,s=e.size,c=e.danger,l=e.onClick,u=b(e,["type","className","disabled","size","danger","onClick"]),d=D("zt-btn",o,((n={})["zt-btn-".concat(i)]=i,n["zt-btn-disabled"]=a,n["zt-btn-".concat(s)]=s,n["zt-btn-dangerous"]=c,n)),f={canClick:!0};return t.jsx(r.Button,y({className:d,type:i,disabled:a,size:s,danger:c,onClick:function(e){f.canClick&&l&&l(e,f)}},u))};T.displayName="ZTXK_WEBUI_Button";var k=n.memo(n.forwardRef((function(e,n){return t.jsx(r.Input,y({},e,{ref:n}))})));k.displayName="ZTXK_WEBUI_Input",k.Group=r.Input.Group,k.Search=r.Input.Search,k.TextArea=r.Input.TextArea,k.Password=r.Input.Password;function I(e,t,r){return e&&!isNaN(Number(e))&&!t.current&&r?Number(e).toFixed(r):e}function E(e,t){if(!e)return e;var r=e.lastIndexOf("."),n=e,i="";return-1!==r&&(n=e.substring(0,r),i=e.substring(r+1)),t&&(i=i.length<t?i:i.substring(0,t)),i?n+"."+i:n}var j=function(e,i){var o=e.formatterType,a=(e.currencySymbol,e.formatter),s=e.parser,c=e.precision,l=e.onBlur,u=e.onFocus,d=b(e,["formatterType","currencySymbol","formatter","parser","precision","onBlur","onFocus"]),f=n.useRef(!1),h=function(e,t,r,n){return"currency"===e?{formatter:function(e){return function(e){if(null!=e){var t=e.toString(),r="",n="";t.startsWith("-")&&(r="-",t=t.slice(1));var i=t.indexOf(".");-1!==i?(e=t.slice(0,i),n=t.slice(i)):e=t;for(var o="",a=e.toString(),s=a.length,c=s-1;c>=0;c--)o=(s-c)%3==0?0===c?a[c]+o:","+a[c]+o:a[c]+o;return r+o+n}return e}(I(e,r,n))},parser:function(e){return E(e.replace(/(,*)/g,""),n)},precision:3}:"percent"===e?{formatter:function(e){var t=I(e,r,n);return"".concat(t,"%")},parser:function(e){return e?e.replace("%",""):Number(e)},precision:2}:"thousands"===e?{formatter:function(e){var t=I(e,r,n);return"".concat(t,"‰")},parser:function(e){return e?e.replace("‰",""):Number(e)},precision:2}:{formatter:function(e){return I(e,r,n)},parser:function(e){return E(e,n)},precision:n}}(o,0,f,c),g=h.formatter,p=h.parser,m=h.precision;return t.jsx(r.InputNumber,y({formatter:a||g,parser:s||p,precision:null!=c?c:m,onBlur:function(e){f.current=!1,l&&l(e)},onFocus:function(e){f.current=!0,u&&u(e)}},d,{ref:i}))};j.displayName="ZTXK_WEBUI_InputNumber";var N=n.memo(n.forwardRef(j)),P={};function A(e,t){}function M(e,t){}function R(e,t,r){t||P[r]||(e(!1,r),P[r]=!0)}function _(e,t){R(A,e,t)}function L(e,t){R(M,e,t)}_.preMessage=function(e){},_.resetWarned=function(){P={}},_.noteOnce=L,i.extend(u),i.extend(l),i.extend(o),i.extend(a),i.extend(s),i.extend(c),i.extend((function(e,t){var r=t.prototype,n=r.format;r.format=function(e){var t=(e||"").replace("Wo","wo");return n.bind(this)(t)}}));var z={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},F=function(e){return z[e]||e.split("_")[0]},B=function(){L(!1,"Not match any format. Please help to fire a issue about this.")},H={getNow:function(){return i()},getFixedDate:function(e){return i(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return i().locale(F(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(F(e)).weekday(0)},getWeek:function(e,t){return t.locale(F(e)).week()},getShortWeekDays:function(e){return i().locale(F(e)).localeData().weekdaysMin()},getShortMonths:function(e){return i().locale(F(e)).localeData().monthsShort()},format:function(e,t,r){return t.locale(F(e)).format(r)},parse:function(e,t,r){for(var n=F(e),o=0;o<r.length;o+=1){var a=r[o],s=t;if(a.includes("wo")||a.includes("Wo")){for(var c=s.split("-")[0],l=s.split("-")[1],u=i(c,"YYYY").startOf("year").locale(n),d=0;d<=52;d+=1){var f=u.add(d,"week");if(f.format("Wo")===l)return f}return B(),null}var h=i(s,a).locale(n);if(h.isValid())return h}return t&&B(),null}}},U=d(H),q=f(H),K=n.forwardRef((function(e,r){return t.jsx(U,y({},e,{picker:"time",mode:void 0,ref:r}))}));K.displayName="TimePicker";var W=n.createContext({locale:"zh-cn"});function V(e,t){for(var r="",n=t.length,i=0;i<e.length;i++){var o=e.charAt(i),a=t.charAt(i%n);r+=String.fromCharCode(o.charCodeAt(0)+a.charCodeAt(0))}return r}function $(e,t){for(var r="",n=t.length,i=0;i<e.length;i++){var o=e.charAt(i),a=t.charAt(i%n);r+=String.fromCharCode(o.charCodeAt(0)-a.charCodeAt(0))}return r}var Y=r.Form.Item,X="6fr6x",G="PUsvG",Z="kVhfO",J="simide",Q=function(e){var i=e.loginLogo,o=e.loginBg,a=e.onFinishHandle,s=e.loading,c=r.Form.useForm()[0];n.useEffect((function(){var e=localStorage.getItem(X);if(e)try{var t=JSON.parse(e),r=$(t[G],J),n=$(t[Z],J);r&&n&&c.setFieldsValue({username:r,password:n,remember:!0})}catch(e){console.log(e)}}),[c]);return t.jsx("div",y({className:"login-wrap",style:{backgroundImage:"url(".concat(o,")")}},{children:t.jsxs(r.Form,y({form:c,requiredMark:!1,layout:"vertical",className:"login-form",onFinish:function(e){var t;e.remember&&localStorage.setItem(X,JSON.stringify(((t={})[G]=V(e.username,J),t[Z]=V(e.password,J),t))),a&&a(e)}},{children:[t.jsx("div",y({className:"login-logo"},{children:t.jsx("img",{src:i,title:"浙商中拓ERP",alt:"zszt_logo"})})),t.jsx(Y,y({label:"请输入您的账号",name:"username",rules:[{required:!0,message:"请输入您的账号"}]},{children:t.jsx(k,{size:"large",autoComplete:"username",prefix:t.jsx(ar,{type:"icon-yonghu",style:{fontSize:"14px",color:"rgba(0,0,0,.65)"}})})})),t.jsx(Y,y({label:"请输入您的密码",name:"password",rules:[{required:!0,message:"请输入您的密码"}]},{children:t.jsx(k.Password,{size:"large",autoComplete:"current-password",prefix:t.jsx(ar,{type:"icon-mima",style:{fontSize:"14px",color:"rgba(0,0,0,.65)"}})})})),t.jsx(Y,{children:t.jsx(T,y({htmlType:"submit",block:!0,className:"form__item--button",loading:s},{children:"登录"}))}),t.jsxs("div",y({className:"form__item--remember"},{children:[t.jsx(Y,y({name:"remember",valuePropName:"checked"},{children:t.jsx(r.Checkbox,{children:"记住密码"})})),t.jsx("div",y({className:"form__item--remember-forget"},{children:"忘记密码"}))]}))]}))}))};Q.displayName="ZTXK_WEBUI_Login";var ee=n.createContext({});function te(e){return te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te(e)}function re(e){var t=function(e,t){if("object"!==te(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==te(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===te(t)?t:String(t)}function ne(e,t,r){return(t=re(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(r),!0).forEach((function(t){ne(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ae(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ae(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function le(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function ue(e){return e<=1?"".concat(100*Number(e),"%"):e}function de(e){return 1===e.length?"0"+e:String(e)}function fe(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*r*(t-e):r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function he(e){return ge(e)/255}function ge(e){return parseInt(e,16)}var pe={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function me(e){var t,r,n,i={r:0,g:0,b:0},o=1,a=null,s=null,c=null,l=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(pe[e])e=pe[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var r=xe.rgb.exec(e);if(r)return{r:r[1],g:r[2],b:r[3]};if(r=xe.rgba.exec(e),r)return{r:r[1],g:r[2],b:r[3],a:r[4]};if(r=xe.hsl.exec(e),r)return{h:r[1],s:r[2],l:r[3]};if(r=xe.hsla.exec(e),r)return{h:r[1],s:r[2],l:r[3],a:r[4]};if(r=xe.hsv.exec(e),r)return{h:r[1],s:r[2],v:r[3]};if(r=xe.hsva.exec(e),r)return{h:r[1],s:r[2],v:r[3],a:r[4]};if(r=xe.hex8.exec(e),r)return{r:ge(r[1]),g:ge(r[2]),b:ge(r[3]),a:he(r[4]),format:t?"name":"hex8"};if(r=xe.hex6.exec(e),r)return{r:ge(r[1]),g:ge(r[2]),b:ge(r[3]),format:t?"name":"hex"};if(r=xe.hex4.exec(e),r)return{r:ge(r[1]+r[1]),g:ge(r[2]+r[2]),b:ge(r[3]+r[3]),a:he(r[4]+r[4]),format:t?"name":"hex8"};if(r=xe.hex3.exec(e),r)return{r:ge(r[1]+r[1]),g:ge(r[2]+r[2]),b:ge(r[3]+r[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(Se(e.r)&&Se(e.g)&&Se(e.b)?(t=e.r,r=e.g,n=e.b,i={r:255*le(t,255),g:255*le(r,255),b:255*le(n,255)},l=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):Se(e.h)&&Se(e.s)&&Se(e.v)?(a=ue(e.s),s=ue(e.v),i=function(e,t,r){e=6*le(e,360),t=le(t,100),r=le(r,100);var n=Math.floor(e),i=e-n,o=r*(1-t),a=r*(1-i*t),s=r*(1-(1-i)*t),c=n%6;return{r:255*[r,a,o,o,s,r][c],g:255*[s,r,r,a,o,o][c],b:255*[o,o,s,r,r,a][c]}}(e.h,a,s),l=!0,u="hsv"):Se(e.h)&&Se(e.s)&&Se(e.l)&&(a=ue(e.s),c=ue(e.l),i=function(e,t,r){var n,i,o;if(e=le(e,360),t=le(t,100),r=le(r,100),0===t)i=r,o=r,n=r;else{var a=r<.5?r*(1+t):r+t-r*t,s=2*r-a;n=fe(s,a,e+1/3),i=fe(s,a,e),o=fe(s,a,e-1/3)}return{r:255*n,g:255*i,b:255*o}}(e.h,a,c),l=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=function(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}(o),{ok:l,format:e.format||u,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:o}}var ve="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),ye="[\\s|\\(]+(".concat(ve,")[,|\\s]+(").concat(ve,")[,|\\s]+(").concat(ve,")\\s*\\)?"),be="[\\s|\\(]+(".concat(ve,")[,|\\s]+(").concat(ve,")[,|\\s]+(").concat(ve,")[,|\\s]+(").concat(ve,")\\s*\\)?"),xe={CSS_UNIT:new RegExp(ve),rgb:new RegExp("rgb"+ye),rgba:new RegExp("rgba"+be),hsl:new RegExp("hsl"+ye),hsla:new RegExp("hsla"+be),hsv:new RegExp("hsv"+ye),hsva:new RegExp("hsva"+be),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Se(e){return Boolean(xe.CSS_UNIT.exec(String(e)))}var we=2,Oe=.16,Ce=.05,De=.05,Te=.15,ke=5,Ie=4,Ee=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function je(e){var t=function(e,t,r){e=le(e,255),t=le(t,255),r=le(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o=0,a=n,s=n-i,c=0===n?0:s/n;if(n===i)o=0;else{switch(n){case e:o=(t-r)/s+(t<r?6:0);break;case t:o=(r-e)/s+2;break;case r:o=(e-t)/s+4}o/=6}return{h:o,s:c,v:a}}(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function Ne(e){var t=e.r,r=e.g,n=e.b;return"#".concat(function(e,t,r,n){var i=[de(Math.round(e).toString(16)),de(Math.round(t).toString(16)),de(Math.round(r).toString(16))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}(t,r,n,!1))}function Pe(e,t,r){var n;return(n=Math.round(e.h)>=60&&Math.round(e.h)<=240?r?Math.round(e.h)-we*t:Math.round(e.h)+we*t:r?Math.round(e.h)+we*t:Math.round(e.h)-we*t)<0?n+=360:n>=360&&(n-=360),n}function Ae(e,t,r){return 0===e.h&&0===e.s?e.s:((n=r?e.s-Oe*t:t===Ie?e.s+Oe:e.s+Ce*t)>1&&(n=1),r&&t===ke&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)));var n}function Me(e,t,r){var n;return(n=r?e.v+De*t:e.v-Te*t)>1&&(n=1),Number(n.toFixed(2))}function Re(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],n=me(e),i=ke;i>0;i-=1){var o=je(n),a=Ne(me({h:Pe(o,i,!0),s:Ae(o,i,!0),v:Me(o,i,!0)}));r.push(a)}r.push(Ne(n));for(var s=1;s<=Ie;s+=1){var c=je(n),l=Ne(me({h:Pe(c,s),s:Ae(c,s),v:Me(c,s)}));r.push(l)}return"dark"===t.theme?Ee.map((function(e){var n,i,o,a=e.index,s=e.opacity;return Ne((n=me(t.backgroundColor||"#141414"),i=me(r[a]),o=100*s/100,{r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b}))})):r}var _e={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Le={},ze={};Object.keys(_e).forEach((function(e){Le[e]=Re(_e[e]),Le[e].primary=Le[e][5],ze[e]=Re(_e[e],{theme:"dark",backgroundColor:"#141414"}),ze[e].primary=ze[e][5]}));var Fe="data-rc-order",Be="rc-util-key",He=new Map;function Ue(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):Be}function qe(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ke(e){return Array.from((He.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function We(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("undefined"==typeof window||!window.document||!window.document.createElement)return null;var r=t.csp,n=t.prepend,i=document.createElement("style");i.setAttribute(Fe,function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(n)),null!=r&&r.nonce&&(i.nonce=null==r?void 0:r.nonce),i.innerHTML=e;var o=qe(t),a=o.firstChild;if(n){if("queue"===n){var s=Ke(o).filter((function(e){return["prepend","prependQueue"].includes(e.getAttribute(Fe))}));if(s.length)return o.insertBefore(i,s[s.length-1].nextSibling),i}o.insertBefore(i,a)}else o.appendChild(i);return i}function Ve(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var r=He.get(e);if(!r||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}(document,r)){var n=We("",t),i=n.parentNode;He.set(e,i),e.removeChild(n)}}(qe(r),r);var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ke(qe(t)).find((function(r){return r.getAttribute(Ue(t))===e}))}(t,r);if(n){var i,o,a;if(null!==(i=r.csp)&&void 0!==i&&i.nonce&&n.nonce!==(null===(o=r.csp)||void 0===o?void 0:o.nonce))n.nonce=null===(a=r.csp)||void 0===a?void 0:a.nonce;return n.innerHTML!==e&&(n.innerHTML=e),n}var s=We(e,r);return s.setAttribute(Ue(r),t),s}function $e(e,t){_(e,"[@ant-design/icons] ".concat(t))}function Ye(e){return"object"===te(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===te(e.icon)||"function"==typeof e.icon)}function Xe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,r){var n=e[r];if("class"===r)t.className=n,delete t.class;else t[r]=n;return t}),{})}function Ge(e,t,r){return r?n.createElement(e.tag,oe(oe({key:t},Xe(e.attrs)),r),(e.children||[]).map((function(r,n){return Ge(r,"".concat(t,"-").concat(e.tag,"-").concat(n))}))):n.createElement(e.tag,oe({key:t},Xe(e.attrs)),(e.children||[]).map((function(r,n){return Ge(r,"".concat(t,"-").concat(e.tag,"-").concat(n))})))}function Ze(e){return Re(e)[0]}function Je(e){return e?Array.isArray(e)?e:[e]:[]}var Qe={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},et=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",t=n.useContext(ee).csp;n.useEffect((function(){Ve(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])},tt=["icon","className","onClick","style","primaryColor","secondaryColor"],rt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var nt=function(e){var t=e.icon,r=e.className,n=e.onClick,i=e.style,o=e.primaryColor,a=e.secondaryColor,s=ce(e,tt),c=rt;if(o&&(c={primaryColor:o,secondaryColor:a||Ze(o)}),et(),$e(Ye(t),"icon should be icon definiton, but got ".concat(t)),!Ye(t))return null;var l=t;return l&&"function"==typeof l.icon&&(l=oe(oe({},l),{},{icon:l.icon(c.primaryColor,c.secondaryColor)})),Ge(l.icon,"svg-".concat(l.name),oe({className:r,onClick:n,style:i,"data-icon":l.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s))};nt.displayName="IconReact",nt.getTwoToneColors=function(){return oe({},rt)},nt.setTwoToneColors=function(e){var t=e.primaryColor,r=e.secondaryColor;rt.primaryColor=t,rt.secondaryColor=r||Ze(t),rt.calculated=!!r};var it=nt;function ot(e){var t=se(Je(e),2),r=t[0],n=t[1];return it.setTwoToneColors({primaryColor:r,secondaryColor:n})}var at=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ot("#1890ff");var st=v.forwardRef((function(e,t){var r,n=e.className,i=e.icon,o=e.spin,a=e.rotate,s=e.tabIndex,c=e.onClick,l=e.twoToneColor,u=ce(e,at),d=v.useContext(ee),f=d.prefixCls,h=void 0===f?"anticon":f,g=d.rootClassName,p=D(g,h,(ne(r={},"".concat(h,"-").concat(i.name),!!i.name),ne(r,"".concat(h,"-spin"),!!o||"loading"===i.name),r),n),m=s;void 0===m&&c&&(m=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=se(Je(l),2),x=b[0],S=b[1];return v.createElement("span",oe(oe({role:"img","aria-label":i.name},u),{},{ref:t,tabIndex:m,onClick:c,className:p}),v.createElement(it,{icon:i,primaryColor:x,secondaryColor:S,style:y}))}));st.displayName="AntdIcon",st.getTwoToneColor=function(){var e=it.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},st.setTwoToneColor=ot;var ct=st,lt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"},ut=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:lt}))};ut.displayName="ArrowsAltOutlined";var dt=v.forwardRef(ut),ft={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},ht=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:ft}))};ht.displayName="CaretDownOutlined";var gt=v.forwardRef(ht),pt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},mt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:pt}))};mt.displayName="CaretUpOutlined";var vt=v.forwardRef(mt),yt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},bt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:yt}))};bt.displayName="CopyOutlined";var xt=v.forwardRef(bt),St={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},wt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:St}))};wt.displayName="DownOutlined";var Ot=v.forwardRef(wt),Ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"},Dt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:Ct}))};Dt.displayName="LogoutOutlined";var Tt=v.forwardRef(Dt),kt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},It=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:kt}))};It.displayName="MinusOutlined";var Et=v.forwardRef(It),jt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Nt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:jt}))};Nt.displayName="MinusSquareOutlined";var Pt=v.forwardRef(Nt),At={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M952 792H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-632H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-24 500c8.8 0 16-7.2 16-16V380c0-8.8-7.2-16-16-16H416c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h512zM472 436h400v152H472V436zM80 646c0 4.4 3.6 8 8 8h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H88c-4.4 0-8 3.6-8 8v56zm8-204h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H88c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z"}}]},name:"pic-right",theme:"outlined"},Mt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:At}))};Mt.displayName="PicRightOutlined";var Rt=v.forwardRef(Mt),_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Lt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:_t}))};Lt.displayName="PlusOutlined";var zt=v.forwardRef(Lt),Ft={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},Bt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:Ft}))};Bt.displayName="SettingOutlined";var Ht=v.forwardRef(Bt),Ut={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881.7 187.4l-45.1-45.1a8.03 8.03 0 00-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L447.9 585a7.9 7.9 0 00-8.9-8.9z"}}]},name:"shrink",theme:"outlined"},qt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:Ut}))};qt.displayName="ShrinkOutlined";var Kt=v.forwardRef(qt),Wt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"unlock",theme:"outlined"},Vt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:Wt}))};Vt.displayName="UnlockOutlined";var $t=v.forwardRef(Vt),Yt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},Xt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:Yt}))};Xt.displayName="UserOutlined";var Gt=v.forwardRef(Xt),Zt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-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.8z"}}]},name:"vertical-align-bottom",theme:"outlined"},Jt=function(e,t){return v.createElement(ct,oe(oe({},e),{},{ref:t,icon:Zt}))};Jt.displayName="VerticalAlignBottomOutlined";var Qt=v.forwardRef(Jt),er=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],tr=v.forwardRef((function(e,t){var r=e.className,n=e.component,i=e.viewBox,o=e.spin,a=e.rotate,s=e.tabIndex,c=e.onClick,l=e.children,u=ce(e,er);$e(Boolean(n||l),"Should have `component` prop or `children`."),et();var d=v.useContext(ee),f=d.prefixCls,h=void 0===f?"anticon":f,g=d.rootClassName,p=D(g,h,r),m=D(ne({},"".concat(h,"-spin"),!!o)),y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=oe(oe({},Qe),{},{className:m,style:y,viewBox:i});i||delete b.viewBox;var x=s;return void 0===x&&c&&(x=-1),v.createElement("span",oe(oe({role:"img"},u),{},{ref:t,tabIndex:x,onClick:c,className:p}),n?v.createElement(n,oe({},b),l):l?($e(Boolean(i)||1===v.Children.count(l)&&v.isValidElement(l)&&"use"===v.Children.only(l).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),v.createElement("svg",oe(oe({},b),{},{viewBox:i}),l)):null)}));tr.displayName="AntdIcon";var rr=tr,nr=["type","children"],ir=new Set;function or(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e[r];if(t=n,Boolean("string"==typeof t&&t.length&&!ir.has(t))){var i=document.createElement("script");i.setAttribute("src",n),i.setAttribute("data-namespace",n),e.length>r+1&&(i.onload=function(){or(e,r+1)},i.onerror=function(){or(e,r+1)}),ir.add(n),document.body.appendChild(i)}}var ar=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scriptUrl,r=e.extraCommonProps,n=void 0===r?{}:r;t&&"undefined"!=typeof document&&"undefined"!=typeof window&&"function"==typeof document.createElement&&(Array.isArray(t)?or(t.reverse()):or([t]));var i=v.forwardRef((function(e,t){var r=e.type,i=e.children,o=ce(e,nr),a=null;return e.type&&(a=v.createElement("use",{xlinkHref:"#".concat(r)})),i&&(a=i),v.createElement(rr,oe(oe(oe({},n),o),{},{ref:t}),a)}));return i.displayName="Iconfont",i}({scriptUrl:["//at.alicdn.com/t/c/font_4078313_tg40lf02k9.js"]});const sr=n.createContext({dragDropManager:void 0});function cr(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var lr="function"==typeof Symbol&&Symbol.observable||"@@observable",ur=function(){return Math.random().toString(36).substring(7).split("").join(".")},dr={INIT:"@@redux/INIT"+ur(),REPLACE:"@@redux/REPLACE"+ur(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ur()}};function fr(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(cr(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(cr(1));return r(fr)(e,t)}if("function"!=typeof e)throw new Error(cr(2));var i=e,o=t,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function u(){if(c)throw new Error(cr(3));return o}function d(e){if("function"!=typeof e)throw new Error(cr(4));if(c)throw new Error(cr(5));var t=!0;return l(),s.push(e),function(){if(t){if(c)throw new Error(cr(6));t=!1,l();var r=s.indexOf(e);s.splice(r,1),a=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(cr(7));if(void 0===e.type)throw new Error(cr(8));if(c)throw new Error(cr(9));try{c=!0,o=i(o,e)}finally{c=!1}for(var t=a=s,r=0;r<t.length;r++){(0,t[r])()}return e}return f({type:dr.INIT}),(n={dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(cr(10));i=e,f({type:dr.REPLACE})}})[lr]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(cr(11));function r(){e.next&&e.next(u())}return r(),{unsubscribe:t(r)}}})[lr]=function(){return this},e},n}function hr(e,t,...r){if("undefined"!=typeof process&&"production"===process.env.NODE_ENV&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let n=0;e=new Error(t.replace(/%s/g,(function(){return r[n++]}))),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function gr(e){return"object"==typeof e}const pr="dnd-core/INIT_COORDS",mr="dnd-core/BEGIN_DRAG",vr="dnd-core/PUBLISH_DRAG_SOURCE",yr="dnd-core/HOVER",br="dnd-core/DROP",xr="dnd-core/END_DRAG";function Sr(e,t){return{type:pr,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const wr={type:pr,payload:{clientOffset:null,sourceClientOffset:null}};function Or(e){return function(t=[],r={publishSource:!0}){const{publishSource:n=!0,clientOffset:i,getSourceClientOffset:o}=r,a=e.getMonitor(),s=e.getRegistry();e.dispatch(Sr(i)),function(e,t,r){hr(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){hr(r.getSource(e),"Expected sourceIds to be registered.")}))}(t,a,s);const c=function(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}(t,a);if(null==c)return void e.dispatch(wr);let l=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");!function(e){hr("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(o),l=o(c)}e.dispatch(Sr(i,l));const u=s.getSource(c).beginDrag(a,c);if(null==u)return;!function(e){hr(gr(e),"Item must be an object.")}(u),s.pinSource(c);const d=s.getSourceType(c);return{type:mr,payload:{itemType:d,item:u,sourceId:c,clientOffset:i||null,sourceClientOffset:l||null,isSourcePublic:!!n}}}}function Cr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Cr(e,t,r[t])}))}return e}function Tr(e){return function(t={}){const r=e.getMonitor(),n=e.getRegistry();!function(e){hr(e.isDragging(),"Cannot call drop while not dragging."),hr(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(r);const i=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(r);i.forEach(((i,o)=>{const a=function(e,t,r,n){const i=r.getTarget(e);let o=i?i.drop(n,e):void 0;(function(e){hr(void 0===e||gr(e),"Drop result must either be an object or undefined.")})(o),void 0===o&&(o=0===t?{}:n.getDropResult());return o}(i,o,n,r),s={type:br,payload:{dropResult:Dr({},t,a)}};e.dispatch(s)}))}}function kr(e){return function(){const t=e.getMonitor(),r=e.getRegistry();!function(e){hr(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const n=t.getSourceId();if(null!=n){r.getSource(n,!0).endDrag(t,n),r.unpinSource()}return{type:xr}}}function Ir(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function Er(e){return function(t,{clientOffset:r}={}){!function(e){hr(Array.isArray(e),"Expected targetIds to be an array.")}(t);const n=t.slice(0),i=e.getMonitor(),o=e.getRegistry();return function(e,t,r){for(let n=e.length-1;n>=0;n--){const i=e[n];Ir(t.getTargetType(i),r)||e.splice(n,1)}}(n,o,i.getItemType()),function(e,t,r){hr(t.isDragging(),"Cannot call hover while not dragging."),hr(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t<e.length;t++){const n=e[t];hr(e.lastIndexOf(n)===t,"Expected targetIds to be unique in the passed array.");hr(r.getTarget(n),"Expected targetIds to be registered.")}}(n,i,o),function(e,t,r){e.forEach((function(e){r.getTarget(e).hover(t,e)}))}(n,i,o),{type:yr,payload:{targetIds:n,clientOffset:r||null}}}}function jr(e){return function(){if(e.getMonitor().isDragging())return{type:vr}}}class Nr{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const r=function(e){return{beginDrag:Or(e),publishDragSource:jr(e),hover:Er(e),drop:Tr(e),endDrag:kr(e)}}(this);return Object.keys(r).reduce(((n,i)=>{const o=r[i];var a;return n[i]=(a=o,(...r)=>{const n=a.apply(e,r);void 0!==n&&t(n)}),n}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function Pr(e,t){return{x:e.x-t.x,y:e.y-t.y}}const Ar=[],Mr=[];Ar.__IS_NONE__=!0,Mr.__IS_ALL__=!0;class Rr{subscribeToStateChange(e,t={}){const{handlerIds:r}=t;hr("function"==typeof e,"listener must be a function."),hr(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let n=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),i=t.stateId;try{const o=i===n||i===n+1&&!function(e,t){return e!==Ar&&(e===Mr||void 0===t||(r=e,t.filter((e=>r.indexOf(e)>-1))).length>0);var r}(t.dirtyHandlerIds,r);o||e()}finally{n=i}}))}subscribeToOffsetChange(e){hr("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const r=this.store.getState().dragOffset;r!==t&&(t=r,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return hr(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if(hr(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return Ir(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if(hr(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:r}=t;if(!this.isDragging())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();if(i&&!Ir(n,i))return!1;const o=this.getTargetIds();if(!o.length)return!1;const a=o.indexOf(e);return r?a===o.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return t&&r&&n?Pr((o=n,{x:(i=t).x+o.x,y:i.y+o.y}),r):null;var i,o}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:r}=e;return t&&r?Pr(t,r):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const _r="undefined"!=typeof global?global:self,Lr=_r.MutationObserver||_r.WebKitMutationObserver;function zr(e){return function(){const t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}const Fr="function"==typeof Lr?function(e){let t=1;const r=new Lr(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}:zr;class Br{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const Hr=new class{enqueueTask(e){const{queue:t,requestFlush:r}=this;t.length||(r(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,r=e.length-this.index;t<r;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Fr(this.flush),this.requestErrorThrow=zr((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},Ur=new class{create(e){const t=this.freeTasks,r=t.length?t.pop():new Br(this.onError,(e=>t[t.length]=e));return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}(Hr.registerPendingError);const qr="dnd-core/ADD_SOURCE",Kr="dnd-core/ADD_TARGET",Wr="dnd-core/REMOVE_SOURCE",Vr="dnd-core/REMOVE_TARGET";function $r(e,t){t&&Array.isArray(e)?e.forEach((e=>$r(e,!1))):hr("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Yr;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(Yr||(Yr={}));let Xr=0;function Gr(e){const t=(Xr++).toString();switch(e){case Yr.SOURCE:return`S${t}`;case Yr.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function Zr(e){switch(e[0]){case"S":return Yr.SOURCE;case"T":return Yr.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Jr(e,t){const r=e.entries();let n=!1;do{const{done:e,value:[,i]}=r.next();if(i===t)return!0;n=!!e}while(!n);return!1}class Qr{addSource(e,t){$r(e),function(e){hr("function"==typeof e.canDrag,"Expected canDrag to be a function."),hr("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),hr("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const r=this.addHandler(Yr.SOURCE,e,t);return this.store.dispatch(function(e){return{type:qr,payload:{sourceId:e}}}(r)),r}addTarget(e,t){$r(e,!0),function(e){hr("function"==typeof e.canDrop,"Expected canDrop to be a function."),hr("function"==typeof e.hover,"Expected hover to be a function."),hr("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const r=this.addHandler(Yr.TARGET,e,t);return this.store.dispatch(function(e){return{type:Kr,payload:{targetId:e}}}(r)),r}containsHandler(e){return Jr(this.dragSources,e)||Jr(this.dropTargets,e)}getSource(e,t=!1){hr(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return hr(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return hr(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return hr(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Zr(e)===Yr.SOURCE}isTargetId(e){return Zr(e)===Yr.TARGET}removeSource(e){var t;hr(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:Wr,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},Hr.enqueueTask(Ur.create(t))}removeTarget(e){hr(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:Vr,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);hr(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){hr(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,r){const n=Gr(e);return this.types.set(n,t),e===Yr.SOURCE?this.dragSources.set(n,r):e===Yr.TARGET&&this.dropTargets.set(n,r),n}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const en=(e,t)=>e===t;function tn(e=Ar,t){switch(t.type){case yr:break;case qr:case Kr:case Vr:case Wr:return Ar;default:return Mr}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,i=function(e,t){const r=new Map,n=e=>{r.set(e,r.has(e)?r.get(e)+1:1)};e.forEach(n),t.forEach(n);const i=[];return r.forEach(((e,t)=>{1===e&&i.push(t)})),i}(r,n),o=i.length>0||!function(e,t,r=en){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}(r,n);if(!o)return Ar;const a=n[n.length-1],s=r[r.length-1];return a!==s&&(a&&i.push(a),s&&i.push(s)),i}function rn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const nn={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function on(e=nn,t){const{payload:r}=t;switch(t.type){case pr:case mr:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case yr:return n=e.clientOffset,i=r.clientOffset,!n&&!i||n&&i&&n.x===i.x&&n.y===i.y?e:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){rn(e,t,r[t])}))}return e}({},e,{clientOffset:r.clientOffset});case xr:case br:return nn;default:return e}var n,i}function an(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){an(e,t,r[t])}))}return e}const cn={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function ln(e=cn,t){const{payload:r}=t;switch(t.type){case mr:return sn({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case vr:return sn({},e,{isSourcePublic:!0});case yr:return sn({},e,{targetIds:r.targetIds});case Vr:return-1===e.targetIds.indexOf(r.targetId)?e:sn({},e,{targetIds:(n=e.targetIds,i=r.targetId,n.filter((e=>e!==i)))});case br:return sn({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case xr:return sn({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var n,i}function un(e=0,t){switch(t.type){case qr:case Kr:return e+1;case Wr:case Vr:return e-1;default:return e}}function dn(e=0){return e+1}function fn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){fn(e,t,r[t])}))}return e}function gn(e={},t){return{dirtyHandlerIds:tn(e.dirtyHandlerIds,{type:t.type,payload:hn({},t.payload,{prevTargetIds:(r=e,n="dragOperation.targetIds",i=[],n.split(".").reduce(((e,t)=>e&&e[t]?e[t]:i||null),r))})}),dragOffset:on(e.dragOffset,t),refCount:un(e.refCount,t),dragOperation:ln(e.dragOperation,t),stateId:dn(e.stateId)};var r,n,i}function pn(e,t=void 0,r={},n=!1){const i=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return fr(gn,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(n),o=new Rr(i,new Qr(i)),a=new Nr(i,o),s=e(a,t,r);return a.receiveBackend(s),a}function mn(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}let vn=0;const yn=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var bn=n.memo((function(e){var{children:r}=e,i=mn(e,["children"]);const[o,a]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=xn(),r,n){const i=t;i[yn]||(i[yn]={dragDropManager:pn(e,t,r,n)});return i[yn]}(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}(i);return n.useEffect((()=>{if(a){const e=xn();return++vn,()=>{0==--vn&&(e[yn]=null)}}}),[]),t.jsx(sr.Provider,{value:o,children:r})}));function xn(){return"undefined"!=typeof global?global:window}var Sn=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r},wn=O(Sn);const On="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function Cn(e,t,r){const[i,o]=function(e,t,r){const[i,o]=n.useState((()=>t(e))),a=n.useCallback((()=>{const n=t(e);wn(i,n)||(o(n),r&&r())}),[i,e,r]);return On(a),[i,a]}(e,t,r);return On((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})}),[e,o]),i}function Dn(e,t,r){return Cn(t,e||(()=>({})),(()=>r.reconnect()))}function Tn(e,t){const r=[...t||[]];return null==t&&"function"!=typeof e&&r.push(e),n.useMemo((()=>"function"==typeof e?e():e),r)}function kn(e){return n.useMemo((()=>e.hooks.dragSource()),[e])}function In(e){return n.useMemo((()=>e.hooks.dragPreview()),[e])}let En=!1,jn=!1;class Nn{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){hr(!En,"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 En=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{En=!1}}isDragging(){if(!this.sourceId)return!1;hr(!jn,"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 jn=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{jn=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let Pn=!1;class An{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;hr(!Pn,"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 Pn=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Pn=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function Mn(e,t,r,n){let i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let a=0;a<o.length;a++){const c=o[a];if(!s(c))return!1;const l=e[c],u=t[c];if(i=r?r.call(n,l,u,c):void 0,!1===i||void 0===i&&l!==u)return!1}return!0}function Rn(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function _n(e){return(t=null,r=null)=>{if(!n.isValidElement(t)){const n=t;return e(n,r),n}const i=t;!function(e){if("string"==typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(i);return function(e,t){const r=e.ref;return hr("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?n.cloneElement(e,{ref:e=>{zn(r,e),zn(t,e)}}):n.cloneElement(e,{ref:t})}(i,r?t=>e(t,r):e)}}function Ln(e){const t={};return Object.keys(e).forEach((r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const e=_n(n);t[r]=()=>e}})),t}function zn(e,t){"function"==typeof e?e(t):e.current=t}class Fn{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();r&&this.disconnectDragPreview(),this.handlerId&&(t?r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!Mn(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Mn(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=Ln({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,Rn(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,Rn(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class Bn{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!Mn(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=Ln({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,Rn(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Hn(){const{dragDropManager:e}=n.useContext(sr);return hr(null!=e,"Expected drag drop context"),e}class Un{beginDrag(){const e=this.spec,t=this.monitor;let r=null;return r="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=r?r:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const r=this.spec,n=this.monitor,{isDragging:i}=r;return i?i(n):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,r=this.connector,{end:n}=e;n&&n(t.getItem(),t),r.reconnect()}constructor(e,t,r){this.spec=e,this.monitor=t,this.connector=r}}function qn(e,t,r){const i=Hn(),o=function(e,t,r){const i=n.useMemo((()=>new Un(e,t,r)),[t,r]);return n.useEffect((()=>{i.spec=e}),[e]),i}(e,t,r),a=function(e){return n.useMemo((()=>{const t=e.type;return hr(null!=t,"spec.type must be defined"),t}),[e])}(e);On((function(){if(null!=a){const[e,n]=function(e,t,r){const n=r.getRegistry(),i=n.addSource(e,t);return[i,()=>n.removeSource(i)]}(a,o,i);return t.receiveHandlerId(e),r.receiveHandlerId(e),n}}),[i,t,r,o,a])}function Kn(e,t){const r=Tn(e,t);hr(!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)");const i=function(){const e=Hn();return n.useMemo((()=>new Nn(e)),[e])}(),o=function(e,t){const r=Hn(),i=n.useMemo((()=>new Fn(r.getBackend())),[r]);return On((()=>(i.dragSourceOptions=e||null,i.reconnect(),()=>i.disconnectDragSource())),[i,e]),On((()=>(i.dragPreviewOptions=t||null,i.reconnect(),()=>i.disconnectDragPreview())),[i,t]),i}(r.options,r.previewOptions);return qn(r,i,o),[Dn(r.collect,i,o),kn(o),In(o)]}function Wn(e){return n.useMemo((()=>e.hooks.dropTarget()),[e])}class Vn{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function $n(e,t,r){const i=Hn(),o=function(e,t){const r=n.useMemo((()=>new Vn(e,t)),[t]);return n.useEffect((()=>{r.spec=e}),[e]),r}(e,t),a=function(e){const{accept:t}=e;return n.useMemo((()=>(hr(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);On((function(){const[e,n]=function(e,t,r){const n=r.getRegistry(),i=n.addTarget(e,t);return[i,()=>n.removeTarget(i)]}(a,o,i);return t.receiveHandlerId(e),r.receiveHandlerId(e),n}),[i,t,o,r,a.map((e=>e.toString())).join("|")])}function Yn(e,t){const r=Tn(e,t),i=function(){const e=Hn();return n.useMemo((()=>new An(e)),[e])}(),o=function(e){const t=Hn(),r=n.useMemo((()=>new Bn(t.getBackend())),[t]);return On((()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget())),[e]),r}(r.options);return $n(r,i,o),[Dn(r.collect,i,o),Wn(o)]}function Xn(e){let t=null;return()=>(null==t&&(t=e()),t)}class Gn{enter(e){const t=this.entered.length;return this.entered=function(e,t){const r=new Set,n=e=>r.add(e);e.forEach(n),t.forEach(n);const i=[];return r.forEach((e=>i.push(e))),i}(this.entered.filter((t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e)))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var r,n;return this.entered=(r=this.entered.filter(this.isNodeInDocument),n=e,r.filter((e=>e!==n))),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class Zn{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((r=>{const n=this.config.exposeProperties[r];null!=n&&(t[r]={value:n(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const Jn="__NATIVE_FILE__",Qn="__NATIVE_URL__",ei="__NATIVE_TEXT__",ti="__NATIVE_HTML__";var ri=Object.freeze({__proto__:null,FILE:Jn,HTML:ti,TEXT:ei,URL:Qn});function ni(e,t,r){const n=t.reduce(((t,r)=>t||e.getData(r)),"");return null!=n?n:r}const ii={[Jn]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[ti]:{exposeProperties:{html:(e,t)=>ni(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Qn]:{exposeProperties:{urls:(e,t)=>ni(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[ei]:{exposeProperties:{text:(e,t)=>ni(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function oi(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(ii).filter((e=>{const r=ii[e];return!!(null==r?void 0:r.matchesTypes)&&r.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const ai=Xn((()=>/firefox/i.test(navigator.userAgent))),si=Xn((()=>Boolean(window.safari)));class ci{interpolate(e){const{xs:t,ys:r,c1s:n,c2s:i,c3s:o}=this;let a=t.length-1;if(e===t[a])return r[a];let s,c=0,l=o.length-1;for(;c<=l;){s=Math.floor(.5*(c+l));const n=t[s];if(n<e)c=s+1;else{if(!(n>e))return r[s];l=s-1}}a=Math.max(0,l);const u=e-t[a],d=u*u;return r[a]+n[a]*u+i[a]*d+o[a]*u*d}constructor(e,t){const{length:r}=e,n=[];for(let e=0;e<r;e++)n.push(e);n.sort(((t,r)=>e[t]<e[r]?-1:1));const i=[],o=[];let a,s;for(let n=0;n<r-1;n++)a=e[n+1]-e[n],s=t[n+1]-t[n],i.push(a),o.push(s/a);const c=[o[0]];for(let e=0;e<i.length-1;e++){const t=o[e],r=o[e+1];if(t*r<=0)c.push(0);else{a=i[e];const n=i[e+1],o=a+n;c.push(3*o/((o+n)/t+(o+a)/r))}}c.push(o[o.length-1]);const l=[],u=[];let d;for(let e=0;e<c.length-1;e++){d=o[e];const t=c[e],r=1/i[e],n=t+c[e+1]-d-d;l.push((d-t-n)*r),u.push(n*r*r)}this.xs=e,this.ys=t,this.c1s=c,this.c2s=l,this.c3s=u}}const li=1;function ui(e){const t=e.nodeType===li?e:e.parentElement;if(!t)return null;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function di(e){return{x:e.clientX,y:e.clientY}}function fi(e,t,r,n,i){const o="IMG"===(a=t).nodeName&&(ai()||!(null===(s=document.documentElement)||void 0===s?void 0:s.contains(a)));var a,s;const c=ui(o?e:t),l={x:r.x-c.x,y:r.y-c.y},{offsetWidth:u,offsetHeight:d}=e,{anchorX:f,anchorY:h}=n,{dragPreviewWidth:g,dragPreviewHeight:p}=function(e,t,r,n){let i=e?t.width:r,o=e?t.height:n;return si()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}(o,t,u,d),{offsetX:m,offsetY:v}=i,y=0===v||v;return{x:0===m||m?m:new ci([0,.5,1],[l.x,l.x/u*g,l.x+g-u]).interpolate(f),y:y?v:(()=>{let e=new ci([0,.5,1],[l.y,l.y/d*p,l.y+p-d]).interpolate(h);return si()&&o&&(e+=(window.devicePixelRatio-1)*p),e})()}}class hi{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function gi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){gi(e,t,r[t])}))}return e}class mi{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;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)))}connectDragPreview(e,t,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,r){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);const n=t=>this.handleDragStart(t,e),i=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",n),t.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",n),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const r=t=>this.handleDragEnter(t,e),n=t=>this.handleDragOver(t,e),i=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",r),t.addEventListener("dragover",n),t.addEventListener("drop",i),()=>{t.removeEventListener("dragenter",r),t.removeEventListener("dragover",n),t.removeEventListener("drop",i)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return pi({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return pi({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(ri).some((t=>ri[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const r=ii[e];if(!r)throw new Error(`native type ${e} has no configuration`);const n=new Zn(r);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){var e;if(this.currentDragSourceNode=null,this.rootElement)null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&ui(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const r=di(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});const{dataTransfer:n}=e,i=oi(n);if(this.monitor.isDragging()){if(n&&"function"==typeof n.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),i=this.sourcePreviewNodes.get(e)||t;if(i){const{anchorX:e,anchorY:o,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),c=fi(t,i,r,{anchorX:e,anchorY:o},{offsetX:a,offsetY:s});n.setDragImage(i,c.x,c.y)}}try{null==n||n.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(i)this.beginDragNativeItem(i);else{if(n&&!n.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;(this.dragEnterTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:r}=e,n=oi(r);n&&this.beginDragNativeItem(n,r)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:di(e)});t.some((e=>this.monitor.canDropOnTarget(e)))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=e=>{var t;(this.dragOverTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=di(e),this.scheduleHover(t);(t||[]).some((e=>this.monitor.canDropOnTarget(e)))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault();this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;(this.dropTargetIds=[],this.isDraggingNativeItem())?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):oi(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:di(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new hi(t,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Gn(this.isNodeInDocument)}}const vi=function(e,t,r){return new mi(e,t,r)};var yi={exports:{}};!function(e,t){function r(e){return"object"!=typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var n="object"==typeof process&&!0;function i(e,t){if(!e){if(n)throw new Error("Invariant failed");throw new Error(t())}}t.invariant=i;var o=Object.prototype.hasOwnProperty,a=Array.prototype.splice,s=Object.prototype.toString;function c(e){return s.call(e).slice(8,-1)}var l=Object.assign||function(e,t){return u(t).forEach((function(r){o.call(t,r)&&(e[r]=t[r])})),e},u="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function d(e){return Array.isArray(e)?l(e.constructor(e.length),e):"Map"===c(e)?new Map(e):"Set"===c(e)?new Set(e):e&&"object"==typeof e?l(Object.create(Object.getPrototypeOf(e)),e):e}var f=function(){function e(){this.commands=l({},h),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var r=this,n="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(n)||i(!Array.isArray(n),(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."})),i("object"==typeof n&&null!==n,(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(r.commands).join(", ")+"."}));var a=e;return u(n).forEach((function(t){if(o.call(r.commands,t)){var i=e===a;a=r.commands[t](n[t],a,n,e),i&&r.isEquals(a,e)&&(a=e)}else{var s="Map"===c(e)?r.update(e.get(t),n[t]):r.update(e[t],n[t]),l="Map"===c(a)?a.get(t):a[t];r.isEquals(s,l)&&(void 0!==s||o.call(e,t))||(a===e&&(a=d(e)),"Map"===c(a)?a.set(t,s):a[t]=s)}})),a},e}();t.Context=f;var h={$push:function(e,t,r){return p(t,r,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,r){return p(t,r,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,o){return function(e,t){i(Array.isArray(e),(function(){return"Expected $splice target to be an array; got "+r(e)})),v(t.$splice)}(t,n),e.forEach((function(e){v(e),t===o&&e.length&&(t=d(o)),a.apply(t,e)})),t},$set:function(e,t,r){return function(e){i(1===Object.keys(e).length,(function(){return"Cannot have more than one key in an object with $set"}))}(r),e},$toggle:function(e,t){m(e,"$toggle");var r=e.length?d(t):t;return e.forEach((function(e){r[e]=!t[e]})),r},$unset:function(e,t,r,n){return m(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===n&&(t=d(n)),delete t[e])})),t},$add:function(e,t,r,n){return y(t,"$add"),m(e,"$add"),"Map"===c(t)?e.forEach((function(e){var r=e[0],i=e[1];t===n&&t.get(r)!==i&&(t=d(n)),t.set(r,i)})):e.forEach((function(e){t!==n||t.has(e)||(t=d(n)),t.add(e)})),t},$remove:function(e,t,r,n){return y(t,"$remove"),m(e,"$remove"),e.forEach((function(e){t===n&&t.has(e)&&(t=d(n)),t.delete(e)})),t},$merge:function(e,t,n,o){var a,s;return a=t,i((s=e)&&"object"==typeof s,(function(){return"update(): $merge expects a spec of type 'object'; got "+r(s)})),i(a&&"object"==typeof a,(function(){return"update(): $merge expects a target of type 'object'; got "+r(a)})),u(e).forEach((function(r){e[r]!==t[r]&&(t===o&&(t=d(o)),t[r]=e[r])})),t},$apply:function(e,t){var n;return i("function"==typeof(n=e),(function(){return"update(): expected spec of $apply to be a function; got "+r(n)+"."})),e(t)}},g=new f;function p(e,t,n){i(Array.isArray(e),(function(){return"update(): expected target of "+r(n)+" to be an array; got "+r(e)+"."})),m(t[n],n)}function m(e,t){i(Array.isArray(e),(function(){return"update(): expected spec of "+r(t)+" to be an array; got "+r(e)+". Did you forget to wrap your parameter in an array?"}))}function v(e){i(Array.isArray(e),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+r(e)+". Did you forget to wrap your parameters in an array?"}))}function y(e,t){var n=c(e);i("Map"===n||"Set"===n,(function(){return"update(): "+r(t)+" expects a target of type Set or Map; got "+r(n)}))}t.isEquals=g.update.isEquals,t.extend=g.extend,t.default=g.update,t.default.default=e.exports=l(t.default,t)}(yi,yi.exports);var bi=O(yi.exports),xi=function(e){var r=e.type,i=e.onMoveItem,o=e.index,a=e.id,s=e.children,c=e.style,l=e.className,u=n.useRef(null),d=D("zt-sortable",l,{}),f=Yn({accept:r,hover:function(e,t){var r;if(u.current){var n=e.index,a=o;if(n!==a){var s=null===(r=u.current)||void 0===r?void 0:r.getBoundingClientRect(),c=(s.bottom-s.top)/2,l=t.getClientOffset().y-s.top;n<a&&l<c||n>a&&l>c||(i(n,a),e.index=a)}}}}),h=f[1],g=Kn({type:r,item:function(){return{id:a,index:o}},collect:function(e){return{isDragging:e.isDragging()}}}),p=g[0].isDragging?0:1;return(0,g[1])(h(u)),t.jsx("div",y({ref:u,className:d,style:y(y({},c),{opacity:p})},{children:s}))},Si=500;function wi(e,t,r){if(e&&t&&Array.isArray(r)){var n=[];try{n=(JSON.parse(localStorage.getItem(t)||"{}")||{})[e]}catch(e){console.log(e)}var i=Array.isArray(n)&&n.length>0?n:[];return n&&0!==n.length?r.forEach((function(e,t){var r=y({checked:!0},e),n=i.find((function(e){return e.key===r.key}));n?(n.label=r.label,n.isFind=!0):i.push(y(y({},r),{isFind:!0}))})):r.forEach((function(e){var t=y(y({},e),{checked:void 0===e.checked||e.checked});i.push(y(y({},t),{isFind:!0}))})),i.filter((function(e){return e.isFind})).map((function(e){var t=y({},e);return Reflect.deleteProperty(t,"isFind"),t}))}return[]}function Oi(e,t,r,i,o,a,s){var c=n.useState(!1),l=c[0],u=c[1],d=n.useCallback((function(){return e=i,t="".concat(i,"_lru_key"),function(r,n){var i={},o=[];try{i=JSON.parse(localStorage.getItem(e)||"{}")||{},o=JSON.parse(localStorage.getItem(t)||"[]")||[]}catch(e){console.error(e)}o.length!==Object.keys(i).length&&(o=Object.keys(i));var a=o.findIndex((function(e){return e===r}));if(-1!==a?(o.splice(a,1),o.push(r)):o.push(r),o.length>Si){var s=o.shift();try{delete i[s]}catch(e){}}i[r]=n,localStorage.setItem(e,JSON.stringify(i)),localStorage.setItem(t,JSON.stringify(o))};var e,t}),[i]),f=n.useCallback((function(){u(!1),o(e)}),[o,e]),h=n.useCallback((function(){u(!1),t(a),s(a),o(a),d()(r,a)}),[a,t,r,d,o]),g=n.useCallback((function(e){u(!1),t(e),o(e),s(e),d()(r,e)}),[t,r,d,o]);return{visible:l,setVisible:u,onClose:f,onReset:h,onSure:g}}var Ci=function(e,i){var o=e.list,a=e.dynamicKey,s=e.parentDynamicKey,c=e.title,l=void 0===c?"自定义配置":c,u=e.onCurrentListChange,d=function(e,t,r){var i=n.useMemo((function(){return wi(e,t,r)}),[e,t,r]),o=n.useState(i),a=o[0],s=o[1],c=n.useState(i),l=c[0],u=c[1];return n.useEffect((function(){i&&(s(i),u(i))}),[i]),{currentDynamicList:a,setCurrentDynamicList:s,tempDynamicList:l,setTempDynamicList:u}}(a,s,o),f=d.currentDynamicList,h=d.setCurrentDynamicList,g=d.tempDynamicList,p=d.setTempDynamicList,m=Oi(f,h,a,s,p,o,u),v=m.visible,b=m.setVisible,x=m.onClose,S=m.onReset,w=m.onSure;n.useImperativeHandle(i,(function(){return{setVisible:b}}));var O=n.useMemo((function(){var e=[];return g.forEach((function(t){t.checked&&e.push(t.key)})),e}),[g]),C=n.useCallback((function(e,t){p((function(r){var n=r[e];return bi(r,{$splice:[[e,1],[t,0,n]]})}))}),[p]),D=function(){w&&w(g)};return t.jsx(r.Drawer,y({className:"dynamic-drawer",title:t.jsxs("div",{children:[t.jsx(Ht,{style:{fontSize:16}}),t.jsxs("span",y({className:"search-drawer--title-text"},{children:[l,t.jsx("span",{children:"(拖拽排序)"})]}))]}),width:300,placement:"right",open:v,closable:!1,maskClosable:!1,footer:t.jsxs(t.Fragment,{children:[t.jsx(T,y({type:"default",onClick:x},{children:"取消"})),t.jsx(T,y({type:"default",onClick:S},{children:"重置"})),t.jsx(T,y({type:"primary",onClick:D},{children:"确定"}))]})},{children:t.jsx(bn,y({backend:vi,context:window},{children:t.jsx(r.Checkbox.Group,y({value:O,onChange:function(e){var t=g.map((function(e){return y({},e)}))||[];t.forEach((function(t){e.find((function(e){return e===t.key}))?t.checked=!0:t.checked=!1})),p(t)}},{children:g.map((function(e,n){return t.jsx(xi,y({type:"search-drawer",index:n,onMoveItem:C},{children:t.jsx(r.Checkbox,y({value:e.key,disabled:e.disabled},{children:e.label||e.key}))}),e.key)}))}))}))}))};Ci.displayName="ZTXK_WEBUI_DynamicDrawer";var Di=n.memo(n.forwardRef(Ci)),Ti=function(e,r){var i=e.dynamicKey,o=e.parentDynamicKey,a=e.defaultList,s=e.children,c=e.title,l=e.onCurrentListChange,u=e.hiddenOperationIcon,d=n.useState(a),f=d[0],h=d[1],g=n.useRef({});return n.useImperativeHandle(r,(function(){return{getCurrentDynamicList:function(e){return wi(i,o,e)},setList:h,setVisible:function(e){var t;null===(t=g.current)||void 0===t||t.setVisible(e)}}})),Array.isArray(f)&&f.length>0?t.jsxs("div",y({className:"ztxk-dynamic-setting"},{children:[u?null:t.jsx("div",y({onClick:function(){var e;return null===(e=g.current)||void 0===e?void 0:e.setVisible(!0)}},{children:s||t.jsx(Ht,{style:{fontSize:18,color:"#768696"}})})),t.jsx(Di,{list:f,dynamicKey:i,parentDynamicKey:o,ref:g,title:c,onCurrentListChange:l})]})):null};Ti.displayName="ZTXK_WEBUI_DynamicSetting";var ki=n.memo(n.forwardRef(Ti));var Ii=n.memo((function(e){var r=e.items,n=e.outsideState;return t.jsx(t.Fragment,{children:Array.isArray(r)?null==r?void 0:r.map((function(e,r){return t.jsx(_i,y({index:r},e,{outsideState:n}),"".concat(e.name))})):null})})),Ei=n.memo((function(e){var r=e.children,n=e.value;return t.jsx("div",y({className:"ztxk-form--detault-dom"},{children:r||(n||"— —")}))})),ji="ztxk-webui-dynamic-form",Ni=n.memo((function(e){var i=e.form,o=e.bottomBorder,a=e.isFlex,s=void 0===a||a,c=e.wrapClassName,l=e.leftClassName;e.itemClassName;var u=e.rightWrapVisible,d=e.rightClassName,f=e.children,h=e.dynamicKey,g=e.formPreferences,p=e.items,m=e.outsideState,v=e.onValuesChange,x=e.onResetHandle,S=e.onSearchHandle,w=e.type,O=b(e,["form","bottomBorder","isFlex","wrapClassName","leftClassName","itemClassName","rightWrapVisible","rightClassName","children","dynamicKey","formPreferences","items","outsideState","onValuesChange","onResetHandle","onSearchHandle","type"]),C=function(e,t){return{configInfoItems:n.useMemo((function(){return e?null==t?void 0:t.map((function(t){var r,n,i,o=t.name,a=t.configName||o;return y(y({},t),{isDisplay:null===(r=e[a])||void 0===r?void 0:r.isDisplay,isRequired:null===(n=e[a])||void 0===n?void 0:n.isRequired,isChangeable:null===(i=e[a])||void 0===i?void 0:i.isChangeable})})):t}),[e,t])}}(g,p).configInfoItems,k=function(e,t,r){var i=n.useRef({}),o=n.useMemo((function(){var r=[];return t&&e&&(r=e.map((function(e){return{key:e.name,label:e.label,disabled:!0===e.dynamicDisabled,checked:!1!==e.isDisplay}}))),r}),[t,e]);n.useEffect((function(){var e,n;r&&t&&(null===(n=null===(e=i.current)||void 0===e?void 0:e.setList)||void 0===n||n.call(e,o))}),[r,t]);var a=n.useState((function(){return wi(t,ji,o)})),s=a[0],c=a[1],l=n.useCallback((function(e){c(e)}),[]),u=n.useMemo((function(){var t=[];return Array.isArray(s)&&s.length>0&&s.forEach((function(r){var n=r.key,i=r.checked,o=null==e?void 0:e.find((function(e){return(null==e?void 0:e.name)===n}));o&&(o.isDisplay=!!i,t.push(o))})),t}),[e,s]);return{dynamicList:o,currentDynamicList:s,onCurrentListChange:l,newItems:u,dynamicSettingRef:i}}(C,h,g),I=k.dynamicList,E=k.onCurrentListChange,j=k.newItems,N=k.dynamicSettingRef,P=D("ztxk-form",c,{"ztxk-form--bottom-border":o,"ztxk-form--list":"list"===w}),A=D("ztxk-form__left",l,{"ztxk-form__left--flex":s}),M=D("ztxk-form__right",d),R=n.useMemo((function(){var e={};if(p)for(var t=0;t<p.length;t++){var r=p[t];"string"==typeof r.name&&r.shouldUpdateNames&&r.shouldUpdateClear&&(e[r.name]="boolean"==typeof r.shouldUpdateClear?r.shouldUpdateNames:r.shouldUpdateClear)}return e}),[p]),_=n.useCallback((function(e,t){if(e){var r=Object.keys(e);Object.keys(R).forEach((function(e){var t,n,o=R[e]?R[e]:[];r.find((function(e){return o.includes(e)}))&&(null===(n=null==i?void 0:i.setFieldsValue)||void 0===n||n.call(i,((t={})[e]=void 0,t)))}))}v&&v(e,t)}),[v,R,i]),L=function(e,t){var r=t.onResetHandle,i=t.onSearchHandle;return{onResetHandleInner:n.useCallback((function(){null==e||e.resetFields(),r&&r()}),[e,r]),onSearchHandleInner:n.useCallback((function(){var t=null==e?void 0:e.getFieldsValue();i&&i(t)}),[e,i])}}(i,{onSearchHandle:S,onResetHandle:x}),z=L.onSearchHandleInner,F=L.onResetHandleInner;return t.jsxs(r.Form,y({form:i,onValuesChange:_},O,{className:P},{children:[t.jsx("div",y({className:A},{children:p?t.jsx(Ii,{items:h?j:C,outsideState:m}):f})),h?t.jsx(ki,{dynamicKey:h,parentDynamicKey:ji,defaultList:I,onCurrentListChange:E,ref:N}):null,u?t.jsxs("div",y({className:M},{children:[t.jsx(T,y({type:"default",onClick:F},{children:"重置"})),t.jsx(T,y({type:"primary",onClick:z},{children:"查询"}))]})):null]}))}));function Pi(e,t,r){return function e(t,n){if(t===n)return!0;if((null==t?void 0:t.$$typeof)&&(null==n?void 0:n.$$typeof))return(null==t?void 0:t.key)===(null==n?void 0:n.key);if(Array.isArray(t)){if(!Array.isArray(n)||t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(!e(t[i],n[i]))return!1;return!0}if(t&&n&&"object"==typeof t&&"object"==typeof n){var o=Object.keys(t);return o.length===Object.keys(n).length&&o.every((function(i){return!(!r||!r.includes(i))||e(t[i],n[i])}))}return!1}(e,t)}Ni.displayName="ZTXK_WEBUI_Form",Ni.useForm=r.Form.useForm,Ni.Item=r.Form.Item,Ni.List=r.Form.List,Ni.ErrorList=r.Form.ErrorList,Ni.Provider=r.Form.Provider,Ni.useFormInstance=r.Form.useFormInstance,Ni.useWatch=r.Form.useWatch,Ni.DefaultDom=Ei;var Ai=function(e){var r,n=e.children,i=e.isDisplay,o=e.isRequired,a=e.isChangeable,s=e.isStress,c=e.preNode,l=e.nextNode;e.dynamicDisabled;var u=e.hiddenBorder,d=e.singleSelectShowBorder,f=e.hiddenLabel,h=e.width,g=e.className,p=e.itemClassName,m=e.render,v=e.shouldUpdateNames;e.shouldUpdateClear;var x=e.dependencies,S=e.shouldUpdate;e.index,e.outsideState,e.shouldUpdateBeOutsideState;var w=b(e,["children","isDisplay","isRequired","isChangeable","isStress","preNode","nextNode","dynamicDisabled","hiddenBorder","singleSelectShowBorder","hiddenLabel","width","className","itemClassName","render","shouldUpdateNames","shouldUpdateClear","dependencies","shouldUpdate","index","outsideState","shouldUpdateBeOutsideState"]),O=Ni.useFormInstance();if(!1===i||"0"===i)return null;if(void 0!==o){var C=!!o,T=Array.isArray(w.rules)?w.rules:[],k=T.findIndex((function(e){return"function"!=typeof e&&(!0===(null==e?void 0:e.required)||!1===(null==e?void 0:e.required))}));if(-1!==k){var I=null===(r=T[k])||void 0===r?void 0:r.message;T.splice(k,1,{required:C,message:I})}else T.unshift({required:C,message:"".concat(w.label," 未填!")});w.rules=T}var E={disabled:!1};void 0!==a&&(E.disabled="0"===a||!a);var j=D("ztxk-form__item",p,{"ztxk-form__item--disabled":E.disabled,"ztxk-form__item--hidden-border":u,"ztxk-form__item--hidden-label":f,"ztxk-form__item--single-show-border":d,"ztxk-form__item--stress":s});if(x)return t.jsxs(Ri,y({width:h,className:g},{children:[c||null,t.jsx(Ni.Item,y({dependencies:x,noStyle:!0},{children:function(e){return t.jsx(Ni.Item,y({},w,{className:j},{children:m(E,e)}))}})),l||null]}));if(S||v){var N=v?function(e,t,r){for(var n=0;n<v.length;n++){var i=v[n];if(e[i]!==t[i])return!0}return"function"==typeof S?S(e,t,r):"boolean"==typeof S&&S}:S;return t.jsxs(Ri,y({width:h,className:g},{children:[c||null,t.jsx(Ni.Item,y({shouldUpdate:N,noStyle:!0},{children:function(e){return w.name?t.jsx(Ni.Item,y({},w,{className:j},{children:m(E,e)})):m(E,e)}})),l||null]}))}return t.jsxs(Ri,y({width:h,className:g},{children:[c||null,t.jsx(Ni.Item,y({},w,{className:j},{children:m?m(E,O):n})),l||null]}))};function Mi(e){if("number"==typeof e)return e;switch(e){case"half":return 4;case"all":return 24;case"double":return 16;case"halfAll":return 12;default:return 8}}function Ri(e){var n=e.className,i=e.children,o=e.width,a=D("ztxk-form__item--wrap",n);return t.jsx(r.Col,y({className:a,span:Mi(o)},{children:i}))}Ai.displayName="ZTXK_WEBUI_FormItem";var _i=n.memo(Ai,(function(e,t){return(null==t?void 0:t.shouldUpdateBeOutsideState)?!!Pi(e,t,["render","shouldUpdateBeOutsideState","shouldUpdate","outsideState"])&&!t.shouldUpdateBeOutsideState(e.outsideState,t.outsideState):Pi(e,t)}));const Li=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],zi=(()=>{if("undefined"==typeof document)return!1;const e=Li[0],t={};for(const r of Li){const n=r?.[1];if(n in document){for(const[n,i]of r.entries())t[e[n]]=i;return t}}return!1})(),Fi={change:zi.fullscreenchange,error:zi.fullscreenerror};let Bi={request:(e=document.documentElement,t)=>new Promise(((r,n)=>{const i=()=>{Bi.off("change",i),r()};Bi.on("change",i);const o=e[zi.requestFullscreen](t);o instanceof Promise&&o.then(i).catch(n)})),exit:()=>new Promise(((e,t)=>{if(!Bi.isFullscreen)return void e();const r=()=>{Bi.off("change",r),e()};Bi.on("change",r);const n=document[zi.exitFullscreen]();n instanceof Promise&&n.then(r).catch(t)})),toggle:(e,t)=>Bi.isFullscreen?Bi.exit():Bi.request(e,t),onchange(e){Bi.on("change",e)},onerror(e){Bi.on("error",e)},on(e,t){const r=Fi[e];r&&document.addEventListener(r,t,!1)},off(e,t){const r=Fi[e];r&&document.removeEventListener(r,t,!1)},raw:zi};Object.defineProperties(Bi,{isFullscreen:{get:()=>Boolean(document[zi.fullscreenElement])},element:{enumerable:!0,get:()=>document[zi.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>Boolean(document[zi.fullscreenEnabled])}}),zi||(Bi={isEnabled:!1});var Hi=Bi;var Ui=function(e){var i=e.loading,o=function(e){var t=n.useState(1),r=t[0],i=t[1];return n.useEffect((function(){e||i(1)}),[e]),n.useEffect((function(){if(e){var t=setInterval((function(){i((function(e){return e+1}))}),1e3);return function(){t&&clearInterval(t)}}}),[e]),{countTimer:r}}(i).countTimer;return t.jsx(r.Spin,{spinning:i,size:"large",tip:"".concat(o),className:"ztxk-container__loading",style:{display:i?"flex":"none"}})},qi=n.memo((function(e){var r=e.children,n=e.isMarginTop,i=e.className,o=D("ztxk-container--btn-wrap",i,{"btn-wrap--margin-top":n});return t.jsx("div",y({className:o},{children:r}))})),Ki=n.memo((function(e){var r=e.className,n=e.isFlex,i=e.children,o=e.loading,a=e.footerDom,s=D("ztxk-container__content",r,{"ztxk-container__content--flex":n});return t.jsxs("div",y({className:"ztxk-container"},{children:[t.jsx(Ui,{loading:o}),t.jsx("div",y({className:s},{children:i})),t.jsx(Vi,{footerDom:a})]}))}));Ki.displayName="ZTXK_WEBUI_ContainerMemo",Ki.ButtonWrap=qi;var Wi=["10","20","30","100"],Vi=n.memo((function(e){var r=e.children,n=e.className,i=e.align,o=void 0===i?"left":i,a=e.footerDom,s=D("ztxk-footer",n);return t.jsx("footer",y({className:s,style:{justifyContent:"left"===o?"flex-start":"center"===o?"center":"flex-end"}},{children:a?t.jsxs("div",y({className:"ztxk-footer--group"},{children:[a.map((function(e,r){var n=e.DOMType,i=e.render;if("button"===n){var o=e.type,a=void 0===o?"primary":o,s=e.loading,c=e.disabled,l=e.onClick;return t.jsx(T,y({type:a,loading:s,disabled:c,onClick:l},{children:e.text}),r)}if("pagination"===n){var u=e.total,d=e.pageSize,f=e.current,h=e.onChange,g=e.onShowSizeChange,p=e.pageSizeOptions;return t.jsx($i,{total:u,pageSize:d,current:f,onChange:h,onShowSizeChange:g,showTotal:function(e){return"共".concat(e,"条")},showSizeChanger:!0,pageSizeOptions:p||Wi},r)}return i?i():null})),r]})):null}))})),$i=function(e){var n=e.className,i=b(e,["className"]),o=D("ztxk-pagination",n,{});return t.jsx(r.Pagination,y({className:o},i))},Yi="ztxk-webui-dynamic-table",Xi=Symbol("table-drag-row"),Gi=["bottomLeft"],Zi=["10","20","30","40"],Ji="error-td",Qi="ascend",eo="descend";var to=function(e){var r=e.className,n=b(e,["className"]),i=D("ztxk-table__enhance-row",r);return t.jsx("tr",y({className:i},n))},ro=function(e){var r=e.className,i=e.style,o=e.index,a=e.moveRow,s=b(e,["className","style","index","moveRow"]),c=function(e,t){var r=n.useRef(null),i=Yn((function(){return{accept:Xi,collect:function(e){return(e.getItem()||{}).index,{}},drop:function(r){if(!t)throw new Error("请定义移动行后触发的函数 onmoveRow");t(r.index,e)}}}),[e])[1],o=Kn({type:Xi,item:{index:e},collect:function(e){return{isDragging:e.isDragging()}},canDrag:function(e){var t;return!(null===(t=document.activeElement)||void 0===t?void 0:t.tagName.toLowerCase().match(/input|textarea/))}});return i((0,o[1])(r)),{ref:r}}(o,a).ref,l=D("ztxk-table__enhance-row",r);return t.jsx("tr",y({ref:c,style:y({cursor:"move"},i),className:l},s))};function no(e,t){var r=null==e?void 0:e.current;return r?r.pageSize*(r.page-1)+(t||0):t}var io=function(e){var r=e.record,i=e.index,o=e.editable,a=e.editableConfig,s=e.dataIndex;e.title;var c=e.onEditableSave;e.onMouseEnter,e.onMouseLeave;var l=e.children,u=e.currentPage,d=e.isValidate,f=b(e,["record","index","editable","editableConfig","dataIndex","title","onEditableSave","onMouseEnter","onMouseLeave","children","currentPage","isValidate"]),h=no(u,i),g=n.useState(r?r[s]:void 0),p=g[0],m=g[1],v=function(){var e=n.useState(!1),t=e[0],r=e[1];return{editing:t,toggleEdit:function(){r(!t)}}}(),x=v.editing,S=v.toggleEdit,w=function(e){var t=n.useRef();return n.useEffect((function(){e&&t.current.focus()}),[e]),t}(x),O=function(){var e=n.useRef(),t=n.useCallback((function(){var t,r;e.current&&(null===(r=(t=e.current.classList).contains)||void 0===r?void 0:r.call(t,Ji))&&e.current.classList.remove(Ji)}),[]);return{tdRef:e,removeErrorClass:t}}(),C=O.tdRef,D=O.removeErrorClass,T=function(e){var t;if(!c)throw Error("如果开启了editable, 那么必须传递 onEditableSave属性 来更改表格数据!");S(),c(y(y({},r),((t={})[s]=p,t)),h,s)};if(o){var I=a||{type:"input"},E=I.type,j=b(I,["type"]),P=null;return"input"===E&&(P=t.jsx(k,y({value:p,onChange:function(e){m(e.target.value),d&&D()},onPressEnter:T,onBlur:T,ref:w},j))),"inputNumber"===E&&(P=t.jsx(N,y({value:p,onChange:function(e){m(e),d&&D()},onPressEnter:T,onBlur:T,ref:w},j))),t.jsx("td",y({ref:C},f,{children:x?t.jsx("div",y({className:"ztxk-table__enhance-cell"},{children:P})):t.jsx("div",y({className:"ztxk-table__enhance-cell-wrap",onClick:S},{children:l}))}))}return t.jsx("td",y({ref:C},f,{children:l}))},oo=n.memo((function(e){var r=e.dynamicSettingRef;return t.jsx(Rt,{onClick:function(){var e;null===(e=null==r?void 0:r.current)||void 0===e||e.setVisible(!0)}})})),ao=n.memo((function(e){var n=e.onAddAndDel;return t.jsx(r.Popconfirm,y({title:"确定删除所有吗?",onConfirm:function(){return n&&n("delAll",0)}},{children:t.jsx(Pt,{title:"删除所有行"})}))})),so=n.memo((function(e){var n=e.isAdd,i=e.isDel,o=e.onAddAndDel,a=e.index;return t.jsxs(t.Fragment,{children:[n?t.jsx("div",y({className:"ztxk-column--adddel-icon"},{children:t.jsx(zt,{title:"新增一行",onClick:function(){o&&o("add",a)}})})):null,i?t.jsx("div",y({className:"ztxk-column--adddel-icon"},{children:t.jsx(r.Popconfirm,y({title:"确定删除吗?",onConfirm:function(){return o&&o("del",a)}},{children:t.jsx(Et,{title:"删除一行"})}))})):null]})}));var co=n.memo((function(e){var n=e.copyKey,i=e.dataSourceRef;return t.jsxs("div",y({onClick:function(){!function(e,t){var n,i;if(Array.isArray(t)){var o=t.map((function(t){if("string"==typeof e)return t[e];var r="";return e.forEach((function(e){return r+=t[e]})),r})).join("\n");try{if((null===navigator||void 0===navigator?void 0:navigator.clipboard)&&window.isSecureContext)null===(i=null===(n=navigator.clipboard)||void 0===n?void 0:n.writeText(o))||void 0===i||i.then((function(){r.message.info("复制成功!")}));else{var a=document.createElement("textarea");a.value=o,document.body.appendChild(a),a.select(),document.execCommand?(r.message.info("复制成功!"),document.execCommand("copy")):r.message.info("复制失败!请手工复制\n ".concat(o)),document.body.removeChild(a)}}catch(e){r.message.info("复制失败!请手工复制\n ".concat(o))}}}(n,i.current)}},{children:[t.jsx(xt,{type:"icon-copy",style:{fontSize:"16px"},className:"thead-icon"}),"复制整列"]}))})),lo=n.memo((function(e){var n=e.isFillDown,i=e.dataSourceRef,o=e.dataKey,a=e.onTableChange;return t.jsx(r.Tooltip,y({title:"点击往下填充,会将该列的第一条数据往下填充覆盖至所有数据的该列都应用此值"},{children:t.jsxs("div",y({onClick:function(){if(!Array.isArray(null==i?void 0:i.current)||(null==i?void 0:i.current.length)<=1||!n)r.message.info("数据不需要填充!");else{var e=[],t=i.current[0][o],s=!1;!0===n?e=i.current.map((function(e){var r;return e[o]!==t&&(s=!0),y(y({},e),((r={})[o]=t,r))})):(s=!0,e=i.current.map((function(e,r){return n({index:r,text:t,record:e})}))),s&&a&&a(e,i.current,{type:"fillDown"})}}},{children:[t.jsx(Qt,{style:{fontSize:"16px"},className:"thead-icon"}),"往下填充"]}))}))})),uo=n.memo((function(e){var n=e.copyKey,i=e.dataSourceRef,o=e.isFillDown,a=e.dataKey,s=e.onTableChange,c=[];return("string"==typeof n||Array.isArray(n))&&c.push({key:"copy",label:t.jsx(co,{copyKey:n,dataSourceRef:i})}),o&&c.push({key:"fill",label:t.jsx(lo,{dataKey:a,isFillDown:o,dataSourceRef:i,onTableChange:s})}),t.jsx(t.Fragment,{children:c.length>0?t.jsx(r.Dropdown,y({menu:{items:c},trigger:["click"]},{children:t.jsx(T,{type:"link",icon:t.jsx(Ot,{}),title:"一些工具方法"})})):null})})),fo=function(e){var r=e.title,i=e.field,o=e.onChange,a=e.customOrder,s=e.setCustomOrder,c=a&&(null==a?void 0:a.field)===i?null==a?void 0:a.order:null,l=n.useMemo((function(){return c===Qi?"点击降序":c===eo?"取消排序":"点击升序"}),[c]);return t.jsxs("div",y({className:"ztxk-table--sorter"},{children:[t.jsx("div",y({className:"ztxk-table--sorter-title"},{children:"function"==typeof r?r({}):r})),t.jsxs("div",y({className:"ztxk-table--sorter-icon",onClick:function(e){var t;e.stopPropagation(),s(c===Qi?{field:i,order:t=eo}:c===eo?{field:i,order:t=null}:{field:i,order:t=Qi}),o&&o({field:i,order:t})},title:l},{children:[t.jsx(vt,{className:D("ant-table-column-sorter-up",{active:c===Qi})}),t.jsx(gt,{className:D("ant-table-column-sorter-down",{active:c===eo})})]}))]}))};function ho(e,r){var n=r.dynamicKey,i=r.currentDynamicList,o=r.dataSourceRef,a=r.onEditableSave,s=r.isEdit,c=r.isAdd,l=r.isDel,u=r.dynamicSettingRef,d=r.onAddAndDel,f=r.getRefreshScuCell,h=r.isDelAll,g=r.currentPage,p=r.onTableChange,m=r.order,v=r.setOrder,b=r.customSortHandle,x=function(e,t){if(Array.isArray(t)&&t.length>0&&e){var r=[],n=[],i=[];return t.forEach((function(t){var r=t.key,i=t.checked,o=e.find((function(e){return(e.key===r||(null==e?void 0:e.dataIndex)===r)&&i}));o&&n.push(o)})),e.filter((function(e){return e.fixed})).forEach((function(e){"left"===e.fixed?r.push(e):"right"===e.fixed&&i.push(e)})),w(w(w([],r,!0),n,!0),i,!0)}return e}(e,i),S=[];if(Array.isArray(x)){if(x.forEach((function(e){var r=y(y({},e),{__title:e.title}),n=r.isCopy,i=r.editable,c=r.editableConfig,l=r.title,u=r.key,d=r.validate,h=r.isRequire,x=r.isFillDown,w=r.isOrder,O=u||(null==r?void 0:r.dataIndex);if(w&&(r.title=t.jsx(fo,{title:l,field:O,onChange:b,customOrder:m,setCustomOrder:v})),(x||n)&&(r.title=t.jsx("div",y({style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},{children:t.jsxs(t.Fragment,{children:[r.title,t.jsx(uo,{copyKey:!0===n?O:n,dataSourceRef:o,isFillDown:x,dataKey:O,onTableChange:p})]})}))),h&&(r.title=t.jsxs(t.Fragment,{children:[t.jsx("i",y({className:"ztxk-column--required"},{children:"*"})),r.title]})),i&&s&&(r.onCell=function(e,t){return{record:e,index:t,editable:i,editableConfig:c,dataIndex:O,title:l,onEditableSave:a,currentPage:g,isValidate:!!d}}),r.shouldCellUpdate){var C=r.shouldCellUpdate;r.shouldCellUpdate=function(e,t){return!(!f||!f())||C(e,t)}}r.render||r.editable||(r.render=function(e,t,r){return"object"==typeof e||null==e||""===e?"— —":e}),S.push(r)})),c||l){var O={title:function(){return h?t.jsx(ao,{}):null},width:52,fixed:"left",align:"center",render:function(e,r,n){return t.jsx(so,{isAdd:c,isDel:l,index:n,onAddAndDel:d})}};S.unshift(O)}n&&(S[0].title=function(){return c||l?t.jsxs(t.Fragment,{children:[h?t.jsx(ao,{}):null,t.jsx(oo,{dynamicSettingRef:u})]}):t.jsx(oo,{dynamicSettingRef:u})})}return{newColumns:S}}function go(e,i,o){var a=o.summaryFixed,s=o.rowSelection,c=o.expandable,l=o.isAdd,u=o.isDel,d=!!c,f=!(!l&&!u),h=Number(!!s)+Number(d),g=n.useCallback((function(n){var o=function(e,t,r){var n=[],i=r.fillNumber,o=r.columns;Array.isArray(e)&&e.forEach((function(e){var r=e.type,a=e.fields,s=e.title;switch(r){case"subtotal":if(!Array.isArray(a))return;if(0===a.length)return;var c=function(e,t){if(!Array.isArray(t))return null;var r={};return t.forEach((function(n,i){e.forEach((function(e){if("string"==typeof e){var o=Number(null==n?void 0:n[e]);o=isNaN(o)?0:o;var a=(null==r?void 0:r[e])||0;r[e]=a?po(a,o):o}else{var s=e.key,c=e.showKey,l=e.toFixedNum,u=e.value,d=e.callback;o=Number(null==n?void 0:n[s]);o=isNaN(o)?0:o;var f=(null==r?void 0:r[s])||0;if(u)if(Array.isArray(u))r[s]=u.map((function(e,t){var r=Array.isArray(l)?l[t]:l,n=Number(e);return isNaN(n)||"number"!=typeof r?e:n.toFixed(r)}));else{var h=Number(u);r[s]="number"==typeof l?isNaN(h)?u:h.toFixed(l):u}else if(c)if("string"==typeof c){var g=Number(null==n?void 0:n[c]);g=isNaN(g)?0:g,r[s]=f?"number"==typeof l?po(f,g).toFixed(l):po(f,g):"number"==typeof l?g.toFixed(l):g}else r[s]=c.map((function(e,t){var r=Number(null==n?void 0:n[e]);r=isNaN(r)?0:r;var i=Array.isArray(l)?l[t]:l;if(f){var o=Number(f[t]);return"number"==typeof i?po(o,r).toFixed(i):po(o,r)}return"number"==typeof i?r.toFixed(i):r}));else r[s]=f?"number"==typeof l?po(f,o).toFixed(l):po(f,o):"number"==typeof l?o.toFixed(l):o;d&&i===t.length-1&&(r[s]=d(r[s]))}}))})),r}(a,t),l=[],u=[];null==o||o.forEach((function(e){e.children?e.children.forEach((function(e){l.push(e.key||e.dataIndex?c[e.key||e.dataIndex]:void 0),u.push({key:null==e?void 0:e.key,dataIndex:null==e?void 0:e.dataIndex})})):(l.push(e.key||e.dataIndex?c[e.key||e.dataIndex]:void 0),u.push({key:null==e?void 0:e.key,dataIndex:null==e?void 0:e.dataIndex}))})),n.push({title:s||"小计",titleIndex:0+i,key:"subtotal",list:Array(i).fill(void 0).concat(l),columnList:Array(i).fill(void 0).concat(u)});break;case"total":if(!Array.isArray(a))return;if(0===a.length)return;var d=function(e){var t={};return e.forEach((function(e){if("object"==typeof e){var r=e.key,n=e.toFixedNum,i=e.value,o=e.callback;if(null!=i)if(Array.isArray(i))t[r]=i.map((function(e,t){var r=Number(e);r=isNaN(r)?0:r;var i=Array.isArray(n)?n[t]:n;return"number"==typeof i?r.toFixed(i):e}));else{var a=Number(i);a=isNaN(a)?0:a,t[r]="number"==typeof n?a.toFixed(n):i}else t[r]=0;o&&(t[r]=o(t[r]))}})),t}(a),f=[],h=[];null==o||o.forEach((function(e){e.children?e.children.forEach((function(e){f.push(e.key||e.dataIndex?d[e.key||e.dataIndex]:void 0),h.push({key:null==e?void 0:e.key,dataIndex:null==e?void 0:e.dataIndex})})):(f.push(e.key||e.dataIndex?d[e.key||e.dataIndex]:void 0),h.push({key:null==e?void 0:e.key,dataIndex:null==e?void 0:e.dataIndex}))})),n.push({title:s||"总计",titleIndex:0+i,key:"total",list:Array(i).fill(void 0).concat(f),columnList:Array(i).fill(void 0).concat(h)})}}));return n}(e,n,{fillNumber:h,columns:i});return t.jsx(r.Table.Summary,y({fixed:a},{children:o.map((function(e){var n=e.title,i=e.key,o=e.titleIndex,a=e.list;return t.jsx(r.Table.Summary.Row,{children:Array.isArray(a)&&a.map((function(e,i){return o+Number(f)===i?t.jsx(r.Table.Summary.Cell,y({index:i},{children:n}),i):t.jsx(r.Table.Summary.Cell,y({index:i},{children:t.jsx("div",{children:e})}),i)}))},i)}))}))}),[e,h,i,a,f]);return e?g:void 0}function po(e,t){return e+t}function mo(e,t){return e.querySelector(t)}function vo(e,t,r){var n;return x(this,void 0,void 0,(function(){var i,o,a,s,c,l,u,d,f,h,g,p,m;return S(this,(function(v){switch(v.label){case 0:if(i=r.getCurrentTable,o=r.rowSelection,a=r.expandable,s=r.tableName,c=r.isInnerPagination,l=r.setCurrent,u=r.pageSize,!Array.isArray(e)||0===e.length)return console.info("没有数据,无需验证!"),[2];if(!Array.isArray(t))return console.info("columns 不是数组!"),[2];d=[],Array.isArray(t)&&t.forEach((function(e,t){e.validate&&d.push({dataIndex:e.validate.dataIndex||e.dataIndex,title:e.validate.title||e.__title||e.title,validate:e.validate.validate,index:t+(o?1:0)+(a?1:0)})})),f=0,v.label=1;case 1:if(!(f<e.length))return[3,6];h=e[f],g=function(e){var t,r,o,a,g,p,m,v,y,b;return S(this,(function(x){switch(x.label){case 0:if(t=d[e],r=t.dataIndex,o=t.title,a=t.validate,g=t.index,!r)return[2,"break"];if(p=h[r],m=function(e,t,r){var n,o,a,s=i().resultTr[e],c=Array.prototype.slice.call(null==s?void 0:s.children),l="number"==typeof t?c[t]:null;null===(o=null===(n=null==l?void 0:l.classList)||void 0===n?void 0:n.add)||void 0===o||o.call(n,r),null===(a=null==l?void 0:l.scrollIntoView)||void 0===a||a.call(l)},v=f,y=1,c&&(y=Math.ceil((f+1)/u),v-=u*(y-1)),!a)return[3,10];if("function"!=typeof a)return[3,5];x.label=1;case 1:return x.trys.push([1,3,,4]),[4,a(p,h,v+1,o)];case 2:return x.sent(),[3,4];case 3:return b=x.sent(),c?(l(y),setTimeout((function(){m(v,g,Ji)}))):m(f,g,Ji),[2,{value:Promise.reject(b)}];case 4:return[3,9];case 5:return(null===(n=null==a?void 0:a.pattern)||void 0===n?void 0:n.test(p))?[3,9]:c?(l(y),setTimeout((function(){m(v,g,Ji)})),[4,Promise.reject({errors:"".concat(s||""," 第").concat(v+1,"行 ").concat(o," ").concat((null==a?void 0:a.message)||"填写错误!")})]):[3,7];case 6:return x.sent(),[3,9];case 7:return m(f,g,Ji),[4,Promise.reject({errors:"".concat(s||""," 第").concat(f+1,"行 ").concat(o," ").concat((null==a?void 0:a.message)||"填写错误!")})];case 8:x.sent(),x.label=9;case 9:return[3,14];case 10:return""!==p&&null!=p?[3,14]:c?(l(y),setTimeout((function(){m(v,g,Ji)})),[4,Promise.reject({errors:"".concat(s||""," 第").concat(v+1,"行 ").concat(o," 为空!"),rowIndex:f,colIndex:g})]):[3,12];case 11:return x.sent(),[3,14];case 12:return m(f,g,Ji),[4,Promise.reject({errors:"".concat(s||""," 第").concat(f+1,"行 ").concat(o," 为空!"),rowIndex:f,colIndex:g})];case 13:x.sent(),x.label=14;case 14:return[2]}}))},p=0,v.label=2;case 2:return p<d.length?[5,g(p)]:[3,5];case 3:if("object"==typeof(m=v.sent()))return[2,m.value];if("break"===m)return[3,5];v.label=4;case 4:return p++,[3,2];case 5:return f++,[3,1];case 6:return[2]}}))}))}var yo=n.memo((function(e){var i=e.className,o=e.bordered,a=void 0===o||o,s=e.pagination,c=void 0!==s&&s,l=e.isFlex;e.tablePreferences;var u=e.dynamicKey,d=e.columns,f=e.dataSource,h=e.onTableChange,g=e.isEdit,p=e.isMove,m=e.isAdd,v=e.addMode,w=e.addCallback,O=e.isDel,C=e.isDelAll,T=void 0===C||C,k=e.isAddAndDelAuto,I=e.summaryConfig,E=e.summaryFixed,j=void 0===E||E,N=e.isInnerPagination,P=e.innerPaginationPageSize,A=void 0===P?30:P,M=e.innerPaginationPosition,R=void 0===M?Gi:M,_=e.innerPaginationPageSizeOptions,L=void 0===_?Zi:_,z=e.tableRefHandle,F=e.tableName,B=b(e,["className","bordered","pagination","isFlex","tablePreferences","dynamicKey","columns","dataSource","onTableChange","isEdit","isMove","isAdd","addMode","addCallback","isDel","isDelAll","isAddAndDelAuto","summaryConfig","summaryFixed","isInnerPagination","innerPaginationPageSize","innerPaginationPosition","innerPaginationPageSizeOptions","tableRefHandle","tableName"]),H=D("ztxk-table",i,{"ztxk-table--flex":l}),U=n.useRef();n.useEffect((function(){U.current=f}),[f]);var q,K,W=function(e,t){var r=n.useRef(null),i=n.useMemo((function(){return function(e,t){var r=[];return e&&t&&t.forEach((function(e){var t=e,n=t.key,i=t.dataIndex,o=t.title,a=t.dynamicDisabled;if(!t.fixed){var s=n||i;r.push({key:s,label:o,disabled:!0===a})}})),r}(t,e)}),[t,e]),o=n.useState((function(){return wi(t,Yi,i)})),a=o[0],s=o[1],c=n.useCallback((function(e){s(e)}),[]);return{defaultDynamicList:i,currentDynamicList:a,onCurrentListChange:c,dynamicSettingRef:r}}(d,u),V=W.defaultDynamicList,$=W.onCurrentListChange,Y=W.currentDynamicList,X=W.dynamicSettingRef,G=(q=n.useRef(null),K=n.useRef(),{refreshScuCell:n.useCallback((function(){K.current=!0}),[]),getRefreshScuCell:n.useCallback((function(){return!!K.current&&(q.current&&(clearTimeout(q.current),q.current=null),q.current=setTimeout((function(){K.current=!1})),!0)}),[])}),Z=G.refreshScuCell,J=G.getRefreshScuCell,Q=function(e,t,r){var i=n.useRef(null),o=n.useState(1),a=o[0],s=o[1],c=n.useState(t),l=c[0],u=c[1],d=r.innerPaginationPageSizeOptions,f=r.innerPaginationPosition;return n.useEffect((function(){e&&(i.current={page:a,pageSize:Number(l)})}),[e,a,l]),n.useEffect((function(){e||(i.current=null)}),[e]),{paginationConfig:n.useMemo((function(){return{current:a,pageSize:l,onChange:function(t,r){e&&(s(t),u(r))},hideOnSinglePage:!0,position:d,defaultPageSize:l,pageSizeOptions:f}}),[e,a,l,d,f]),currentPage:i,setCurrent:s,pageSize:l,current:a}}(N,A,{innerPaginationPosition:R,innerPaginationPageSizeOptions:L}),ee=Q.paginationConfig,te=Q.currentPage,re=Q.setCurrent,ne=Q.pageSize,ie=function(e,t){return n.useCallback((function(r,n,i,o){var a,s=null===(a=e.current)||void 0===a?void 0:a.slice();s[n][i]!==r[i]&&(s[n]=r,t&&t(s,e.current,{type:"edit",currentIndex:n}))}),[e,t])}(U,h),oe=function(e,t,r){var i=r.isMove,o=r.refreshScuCell,a=r.currentPage,s=n.useCallback((function(r,n){var i,s=no(a,r),c=no(a,n);if(s!==c){var l=null===(i=e.current)||void 0===i?void 0:i.slice(),u=l[s],d=bi(l,{$splice:[[s,1],[c,0,u]]});o&&o(),t&&t(d,e.current,{type:"move",dragIndex:s,hoverIndex:c})}}),[e,t,o,a]),c=n.useCallback((function(e,t){return{index:t,moveRow:s}}),[s]);return{onRow:i?c:void 0}}(U,h,{isMove:p,refreshScuCell:Z,currentPage:te}).onRow,ae=function(e,t,r){var i=r.rowKey,o=r.addMode,a=r.addCallback,s=r.refreshScuCell,c=r.isAddAndDelAuto,l=r.currentPage;return n.useCallback((function(r,n){var u,d,f,h=no(l,n),g=null===(f=e.current)||void 0===f?void 0:f.slice();if("delAll"!==r){c&&(s&&s(),t&&t(g,e.current,{type:r,currentIndex:h}));var p=g[h],m=a?a(p,{index:h}):{};if("add"===r){var v={};v=y("blank"===o?((u={})[String(i)]="".concat(Date.now(),"-").concat(h),u.__INNER__ADD__DATA=!0,u):y(y({},p),((d={})[String(i)]="".concat(Date.now(),"-").concat(h),d.__INNER__ADD__DATA=!0,d)),m),g.splice(h+1,0,v)}else"del"===r&&g.splice(h,1);s&&s(),t&&t(g,e.current,{type:r,currentIndex:h})}else Array.isArray(g)&&g.length>0&&(s&&s(),t&&t([],e.current,{type:r,currentIndex:h}))}),[a,o,e,t,i,s,c,l])}(U,h,{rowKey:e.rowKey,addMode:v,addCallback:w,refreshScuCell:Z,isAddAndDelAuto:k,currentPage:te}),se=function(e,t,r){var i=r.refreshScuCell,o=n.useState(null),a=o[0],s=o[1],c=n.useState(void 0),l=c[0],u=c[1],d=n.useRef(!0),f=n.useCallback((function(r){if(Array.isArray(e)&&e.length>1){var n=r.field,o=r.order,a=function(e,t){var r=e[n]-t[n];return isNaN(r)?e[n]<t[n]?-1:e[n]>t[n]?1:0:r};if("ascend"===o){var c=e.slice().sort((function(e,t){return a(e,t)}));s(c),d.current=!0,i&&i(),t&&t(c,e,{type:"sort"})}else"descend"===o?(c=e.slice().sort((function(e,t){return-a(e,t)})),s(c),d.current=!0,i&&i(),t&&t(c,e,{type:"sort"})):s(null)}}),[e,t,i]);return n.useEffect((function(){d.current||(s(null),u(void 0)),d.current=!1}),[e]),{sortDataSource:a,setSortDataSource:s,order:l,setOrder:u,customSortHandle:f}}(f,h,{refreshScuCell:Z,currentPage:te}),ce=se.sortDataSource,le=se.order,ue=se.setOrder,de=se.customSortHandle,fe=ho(d,{dynamicKey:u,currentDynamicList:Y,dataSource:f,dataSourceRef:U,onEditableSave:ie,isEdit:g,isAdd:m,isDel:O,dynamicSettingRef:X,onAddAndDel:ae,getRefreshScuCell:J,isDelAll:T,currentPage:te,onTableChange:h,order:le,setOrder:ue,customSortHandle:de}).newColumns,he=go(I,fe,{summaryFixed:j,rowSelection:e.rowSelection,expandable:e.expandable,isAdd:m,isDel:O}),ge=function(){var e=n.useRef(),t=n.useCallback((function(){var t,r=mo(e.current,".ant-table-content");r||(r=mo(e.current,".ant-table-container"));var n=mo(r,".ant-table-tbody"),i=null==n?void 0:n.children,o=Array.prototype.slice.call(i);return{tableBody:n,resultTr:(null===(t=null==o?void 0:o.filter)||void 0===t?void 0:t.call(o,(function(e){return e.className.includes("ant-table-row")})))||[]}}),[]),r=n.useCallback((function(e){try{var r=t().resultTr;if("number"==typeof e)for(var n=r[e].querySelectorAll("td"),i=0;i<n.length;i++)n[i].classList.remove(Ji);else for(i=0;i<r.length;i++){n=r[i].querySelectorAll("td");for(var o=0;o<n.length;o++)n[o].classList.remove(Ji)}}catch(e){console.log(e)}}),[t]);return{tableRef:e,getCurrentTable:t,clearErrorClass:r}}(),pe=ge.tableRef,me=ge.getCurrentTable,ve=ge.clearErrorClass,ye=n.useMemo((function(){var e=void 0;return g&&(e={body:{row:to,cell:io}}),p&&(e={body:{row:ro,cell:g?io:void 0}}),e}),[g,p]);n.useImperativeHandle(z,(function(){return{getRealyIndex:function(e){return no(te,e)},getDynamicList:function(){return Y},tableValidate:function(){return x(void 0,void 0,void 0,(function(){return S(this,(function(t){switch(t.label){case 0:return ve(),[4,vo(f,fe,{getCurrentTable:me,rowSelection:!!e.rowSelection,expandable:!!e.expandable,tableName:F,isInnerPagination:N,setCurrent:re,pageSize:ne})];case 1:return[2,t.sent()]}}))}))},clearErrorClass:ve}}));var be=t.jsx(r.Table,y({className:H,bordered:a,dataSource:ce||f,columns:fe,components:ye,onRow:oe,summary:he,pagination:N?c||ee:c},B));return t.jsxs("div",y({style:l?{position:"relative",overflow:"hidden",flex:1}:{position:"relative",overflow:"hidden"},ref:pe},{children:[p?t.jsx(bn,y({backend:vi,context:window},{children:be})):be,u?t.jsx(ki,{parentDynamicKey:Yi,dynamicKey:u,defaultList:V,onCurrentListChange:$,ref:X,hiddenOperationIcon:!0}):null]}))}));yo.displayName="ZTXK_WEBUI_Table",yo.SELECTION_COLUMN=r.Table.SELECTION_COLUMN,yo.EXPAND_COLUMN=r.Table.EXPAND_COLUMN,yo.SELECTION_ALL=r.Table.SELECTION_ALL,yo.SELECTION_INVERT=r.Table.SELECTION_INVERT,yo.SELECTION_NONE=r.Table.SELECTION_NONE,yo.Column=r.Table.Column,yo.ColumnGroup=r.Table.ColumnGroup,yo.Summary=r.Table.Summary;var bo=n.memo((function(e){var n,i=e.className,o=e.isHeader,a=e.isContent,s=e.marginTop,c=void 0!==s&&s,l=e.marginBottom,u=void 0===l||l,d=b(e,["className","isHeader","isContent","marginTop","marginBottom"]),f=D("ztxk-tabs",i,((n={})["ztxk-tabs--header"]=o,n["ztxk-tabs--content"]=a,n["ztxk-tabs--marginTop"]=c,n["ztxk-tabs--marginBottom"]=u,n));return t.jsx(r.Tabs,y({type:o?"editable-card":a?"card":void 0,hideAdd:!!o||void 0,className:f},d))}));function xo(e,t){e.update((function(e){return y(y({},e),{cancelButtonProps:y(y({},e.cancelButtonProps||{}),t)})}))}bo.displayName="ZTXK_WEBUI_Tabs",bo.TabPane=r.Tabs.TabPane;var So=n.forwardRef((function(e,i){var o=e.className,a=e.defaultOpen,s=e.defaultTitle,c=e.defaultConfirmMsg,l=e.defaultConfirmOkText,u=e.defaultType,d=e.confirmPreHandle,f=e.confirmOnOk,h=e.onOk,g=e.footer,p=e.onOkValidate,m=b(e,["className","defaultOpen","defaultTitle","defaultConfirmMsg","defaultConfirmOkText","defaultType","confirmPreHandle","confirmOnOk","onOk","footer","onOkValidate"]),v=D("ztxk-modal",o),w=n.useState(a),O=w[0],C=w[1],T=n.useState(s),k=T[0],I=T[1],E=n.useState(),j=E[0],N=E[1],P=n.useState(!1),A=P[0],M=P[1],R=n.useState(c),_=R[0],L=R[1],z=n.useState(l),F=z[0],B=z[1],H=n.useState(u),U=H[0],q=H[1],K=n.useCallback((function(){C(!1)}),[]),W=n.useCallback((function(){return x(void 0,void 0,void 0,(function(){var e,t,n,i,o,a;return S(this,(function(s){switch(s.label){case 0:if(e=!0,!p)return[3,4];N(!0),s.label=1;case 1:return s.trys.push([1,3,,4]),e=!1,[4,p(U)];case 2:return s.sent(),e=!0,N(!1),[3,4];case 3:return t=s.sent(),N(!1),console.log(t),n=t.errorFields,i=t.errors,n&&r.message.warning(n[0].errors+""),i&&r.message.warning(i),[3,4];case 4:return e?(A?(o=d&&d(U),a=r.Modal.confirm({title:(null==o?void 0:o.confirmMsg)?o.confirmMsg:_,okText:(null==o?void 0:o.confirmOkText)?o.confirmOkText:F||"确认保存",keyboard:!1,maskClosable:!1,onOk:f?function(){return xo(a,{loading:!0}),f(U).then((function(){xo(a,{loading:!1}),C(!1)})).catch((function(e){xo(a,{loading:!1})}))}:void 0})):h&&(N(!0),h(U).then((function(){N(!1),C(!1)})).catch((function(e){N(!1)}))),[2]):[2]}}))}))}),[A,p,d,_,F,f,U,h]);return n.useImperativeHandle(i,(function(){return{open:function(e){(null==e?void 0:e.title)&&I(e.title),(null==e?void 0:e.confirmMsg)&&L(e.confirmMsg),(null==e?void 0:e.confirmOkText)&&B(e.confirmOkText),(null==e?void 0:e.type)&&q(e.type),"boolean"==typeof(null==e?void 0:e.isConfirm)&&M(e.isConfirm),C(!0)},close:function(){C(!1)},getType:function(){return U},setConfirmMsg:B}})),t.jsx(r.Modal,y({open:O,onCancel:K,className:v,okText:"保存",onOk:g?void 0:W,width:"70%",title:k,keyboard:!1,maskClosable:!1,confirmLoading:j,cancelButtonProps:{loading:j},footer:g},m))}));So.displayName="ZTXK_WEBUI_ModalComponent",So.info=r.Modal.info,So.success=r.Modal.success,So.error=r.Modal.error,So.warning=r.Modal.warning,So.confirm=r.Modal.confirm,So.destroyAll=r.Modal.destroyAll;var wo=function(e){var n=e.children,i=e.className,o=e.border,a=e.isBg,s=b(e,["children","className","border","isBg"]),c=D("ztxk-grid",i,{"ztxk-grid--border":o,"ztxk-grid--background":a});return t.jsx(r.Row,y({className:c},s,{gutter:0},{children:n}))};wo.displayName="ZTXK_WEBUI_DetailList",wo.Item=function(e){var n=e.children,i=e.className,o=e.title,a=e.colon,s=void 0===a||a,c=e.span,l=e.titleSpan,u=e.titleProps,d=e.textProps,f=e.showDiff,h=e.isEllipsis,g=void 0===h||h,p=e.isBlod,m=D("ztxk-grid-item",i);return t.jsxs(t.Fragment,{children:[t.jsxs(r.Col,y({className:m+" ztxk-grid-item--title",span:l||3,title:o},u,{children:[t.jsx("span",y({className:"ztxk-grid-item--title-text"},{children:o})),t.jsx("span",y({className:"ztxk-grid-item--title-colon"},{children:s&&":"}))]})),t.jsx(r.Col,y({className:f?m+" ztxk-grid-item--text ztxk-grid-item--diff"+"".concat(g?" ztxk-grid-item--text-ellipsis":" ztxk-grid-item--text-noellipsis"):m+" ztxk-grid-item--text"+"".concat(g?" ztxk-grid-item--text-ellipsis":" ztxk-grid-item--text-noellipsis"),span:l?c-l:c-3,title:"string"==typeof n?n:void 0,style:{fontWeight:p?"bold":"normal"}},d,{children:n}))]})};var Oo=function(e){var n=e.children,i=e.layoutSliderRender,o=e.layoutHeaderRender;return t.jsxs(r.Layout,y({className:"zmdms-container"},{children:[i,t.jsxs(r.Layout,y({className:"zmdms-content"},{children:[o,t.jsx(r.Layout.Content,y({className:"zmdms-content--content"},{children:n}))]}))]}))};Oo.displayName="ZTXK_WEBUI_AppLayout";var Co=n.memo(Oo),Do=function(e){var i=e.tabs,o=e.activeTab,a=e.deleteTabHandle,s=e.setActiveTab,c=e.deleteTabsHandle,l=n.useCallback((function(e){1!==i.length?a(e):r.message.warning("最后一页不可关闭!")}),[a,i]),u=n.useMemo((function(){return[{label:"关闭",key:"closeCurrent"},{label:"关闭其他",key:"closeOther"},{label:"关闭右侧",key:"closeRight"}]}),[]),d=n.useCallback((function(e,t){if(console.log(e,t),"closeCurrent"===e)l(t.key);else if("closeOther"===e){if(i.length>1){var r=i.findIndex((function(e){return e.key===t.key})),n=i.slice();n.splice(r,1),o!==t.key?c&&c(t,{deleteTabs:n,isGo:!0,deleteType:"other",currentIndex:r}):c&&c(t,{deleteTabs:n,isGo:!1,deleteType:"other",currentIndex:r})}}else if("closeRight"===e){r=i.findIndex((function(e){return e.key===t.key}));var a=i.slice(r+1);a.find((function(e){return e.key===o}))?c&&c(t,{deleteTabs:a,isGo:!0,deleteType:"right",currentIndex:r}):c&&c(t,{deleteTabs:a,isGo:!1,deleteType:"right",currentIndex:r})}}),[l,i,o,c]),f=n.useMemo((function(){return Array.isArray(i)?i.map((function(e){return{key:e.key,label:t.jsx(r.Dropdown,y({trigger:["contextMenu"],menu:{items:u,onClick:function(t){t.domEvent.stopPropagation(),d(t.key,e)}}},{children:t.jsx(g.Link,y({to:e.path},{children:e.label}))}))}})):[]}),[i,u,d]);return t.jsx(bo,{items:f,activeKey:o,isHeader:!0,onTabClick:function(e){s(e)},onEdit:function(e){l(e)}})},To=n.memo((function(){var e=n.useRef(null),r=function(e,t){var r=n.useState(!1),i=r[0],o=r[1];return n.useEffect((function(){if(e.current){var r=e.current,n=function(){if(Hi.isEnabled){var e=Hi;(null==t?void 0:t.current)?e.toggle(t.current):e.toggle()}};return r.addEventListener("click",n),function(){r.removeEventListener("click",n)}}}),[e,t]),n.useEffect((function(){if(Hi.isEnabled){var e=Hi,t=function(){e.isFullscreen?o(!0):o(!1)};return e.on("change",t),function(){e.off("change",t)}}}),[]),i}(e);return t.jsx("div",y({className:"full-screen",ref:e,title:r?"退出全屏":"全屏"},{children:r?t.jsx(Kt,{}):t.jsx(dt,{})}))})),ko=function(e){var n=e.userInfo,i=e.logout,o=[{label:t.jsxs("div",{children:[t.jsx(Gt,{style:{marginRight:5}})," 账号信息"]}),key:"info"},{label:t.jsxs("div",{children:[t.jsx($t,{style:{marginRight:5}})," 修改密码"]}),key:"password"},{type:"divider"},{label:t.jsxs("div",y({onClick:function(){i&&i()}},{children:[t.jsx(Tt,{style:{marginRight:5}})," 退出系统"]})),key:"logout"}];return t.jsx(r.Dropdown,y({menu:{items:o},placement:"bottomLeft"},{children:t.jsxs("div",y({className:"user-operation"},{children:[t.jsx(Gt,{}),t.jsx("span",{children:null==n?void 0:n.realName})]}))}))},Io=function(e){var r=e.userInfo,n=e.logout;return t.jsxs("div",y({className:"zmdms-content--header-info"},{children:[t.jsx(To,{}),t.jsx(ko,{userInfo:r,logout:n})]}))},Eo=function(e){var n=e.tabs,i=e.activeTab,o=e.deleteTabHandle,a=e.deleteTabsHandle,s=e.setActiveTab,c=e.userInfo,l=e.logout;return t.jsxs(r.Layout.Header,y({className:"zmdms-content--header"},{children:[t.jsx(Do,{tabs:n,activeTab:i,deleteTabHandle:o,deleteTabsHandle:a,setActiveTab:s}),t.jsx(Io,{userInfo:c,logout:l})]}))};Eo.displayName="ZTXK_WEBUI_AppLayoutHeader";var jo=n.memo(Eo),No=n.memo((function(e){var r=e.logo;return t.jsx("div",y({className:"zmdms-logo"},{children:t.jsx("img",{src:r,title:"浙商中拓ERP",alt:"zszt_logo"})}))})),Po=function(e){var i=e.userMenus,o=e.onMouseEnter,a=e.onMainLinkClick,s=e.addTab,c=e.getPrefixByAppId,l=n.useCallback((function(e){var r=e.system,n=e.path,i=c(r),o="/"===n?"/":i?"/".concat(i).concat(n):n;return"index"===e.type?t.jsx(g.Link,y({to:o,onClick:function(){s&&s({key:o,path:o,label:e.name})}},{children:e.name})):"/"===o?e.name:t.jsx(g.Link,y({to:o,onClick:function(){s&&s({key:o,path:o,label:e.name})}},{children:e.name}))}),[s,c]),u=n.useMemo((function(){var e;return Array.isArray(i)?1===i.length?((null===(e=i[0])||void 0===e?void 0:e.children)||[]).map((function(e){return{label:l(e),title:e.name,key:e.id,icon:e.source?t.jsx(ar,{type:e.source,style:{fontSize:"18px"}}):null}})):i.map((function(e){var r=e.children;return{label:t.jsx("span",y({title:e.name},{children:e.name})),title:e.name,key:e.id,icon:e.source?t.jsx(ar,{type:e.source,style:{fontSize:"18px"}}):null,children:r?r.map((function(e){return{label:l(e),title:e.name,key:e.id,icon:e.source?t.jsx(ar,{type:e.source,style:{fontSize:"18px"}}):null}})):null}})):(console.error("用户主菜单没有按预期传入对应数据!"),[])}),[i,l]),d=n.useCallback((function(e){var t=e.key;a(t)}),[a]);return t.jsx(r.Menu,{className:"zmdms-menu--main",items:u,inlineIndent:10,mode:"inline",onMouseEnter:o,onClick:d})},Ao=n.memo(n.forwardRef((function(e,i){var o=e.marginLeft,a=e.subMenus,s=e.subMenuWidth,c=e.layoutSiderRef,l=e.addTab,u=e.getPrefixByAppId,d=n.useState(),f=d[0],h=d[1],p=n.useState(),m=p[0],v=p[1],b=n.useCallback((function(){v((function(e){return c.current.style.marginRight=e?0:"".concat(s,"px"),!e}))}),[c,s]),x=t.jsxs(T,y({type:"link",onClick:b},{children:[t.jsx(ar,{type:"icon-toggle",style:{fontSize:"18px"}}),m?"浮动":"固定"]}));n.useImperativeHandle(i,(function(){return{setVisible:function(e){m||h(e)}}}));var S=n.useMemo((function(){var e=function(r,n,i){return void 0===n&&(n=[]),void 0===i&&(i=1),i>=3?null:(i++,Array.isArray(r)&&r.forEach((function(r){var o=r.system,a=r.path,s=u(o),c="/"===a?"/":s?"/".concat(s).concat(a):a,d={label:"/"===c?r.name:t.jsx(g.Link,y({to:c,onClick:function(){l({key:c,path:c,label:r.name})}},{children:r.name})),title:r.name,key:r.id,children:Array.isArray(r.children)&&r.children.length>0?e(r.children,[],i):null};n.push(d)})),n)};return e(a)}),[a,l,u]);return t.jsx(r.Drawer,y({mask:!1,placement:"left",width:s,zIndex:99,closable:!1,open:f,className:"zmdms-menu--sub",style:{marginLeft:o},footer:x},{children:t.jsx(r.Menu,{inlineIndent:10,mode:"inline",items:S})}))}))),Mo=[],Ro=n.memo((function(e){var r=e.width,i=e.subMenuWidth,o=e.layoutSiderRef,a=e.userMenus,s=e.userSubMenus,c=e.addTab,l=e.logo,u=e.getPrefixByAppId,d=n.useRef({}),f=n.useState(Mo),h=f[0],g=f[1],p=n.useCallback((function(){var e;null===(e=d.current)||void 0===e||e.setVisible(!0)}),[]),m=n.useCallback((function(e){e?s&&g(s[e]):g(Mo)}),[s]),v=n.useCallback((function(){var e;null===(e=d.current)||void 0===e||e.setVisible(!1)}),[]);return t.jsxs("div",y({className:"zmdms-menu",onMouseLeave:v},{children:[t.jsx(No,{logo:l}),t.jsx(Po,{userMenus:a,onMouseEnter:p,onMainLinkClick:m,addTab:c,getPrefixByAppId:u}),t.jsx(Ao,{ref:d,marginLeft:r,subMenuWidth:i,subMenus:h,layoutSiderRef:o,addTab:c,getPrefixByAppId:u})]}))})),_o=function(e){var i=e.siderWidth,o=void 0===i?118:i,a=e.subMenuWidth,s=void 0===a?162:a,c=e.userMenus,l=e.userSubMenus,u=e.addTab,d=e.siderBg,f=e.logo,h=e.apps,g=n.useRef(),p=n.useCallback((function(e){if(Array.isArray(h)&&h.length>0){var t=h.find((function(t){return t.appId+""==e+""}));if(t)return t.name}return null}),[h]);return t.jsx(r.Layout.Sider,y({className:"zmdms-sider",collapsedWidth:"0",collapsible:!0,trigger:null,width:o,ref:g,style:{backgroundImage:"url(".concat(d,")")}},{children:t.jsx(Ro,{width:o,subMenuWidth:s,layoutSiderRef:g,userMenus:c,userSubMenus:l,addTab:u,logo:f,getPrefixByAppId:p})}))};_o.displayName="ZTXK_WEBUI_AppLayoutSider";var Lo=n.memo(_o),zo=function(e){var n,i=e.statusBtnConfig,o=e.authUserBtns,a=e.callback,s=function(e){a&&a(e)};return t.jsx(t.Fragment,{children:null===(n=i||[])||void 0===n?void 0:n.map((function(e){var n=e.authority,i=e.confirmMsg,a=e.type,c=e.name,l=!1;return l="boolean"==typeof n?n:void 0===n||!!o.find((function(e){return e.code===n})),i?t.jsx(r.Popconfirm,y({title:i,cancelText:"否",okText:"是",onConfirm:function(){return s(a)}},{children:t.jsx(T,y({type:"link",style:{height:28},disabled:!l},{children:c}))}),a):t.jsx(T,y({type:"link",style:{height:28},onClick:function(){return s(a)},disabled:!l},{children:c}),a)}))})};function Fo(e){return e?"string"==typeof e?e:e instanceof Array?e.map((function(e){var t;return Fo("string"==typeof e?e:(null===(t=null==e?void 0:e.props)||void 0===t?void 0:t.children)||"")})).join(" "):Fo(e):""}zo.displayName="ZTXK_WEBUI_OperationBtn";var Bo=n.memo(n.forwardRef((function(e,i){var o,a=e.list,s=e.defaultList,c=e.dataKey,l=void 0===c?"id":c,u=e.titleKey,d=void 0===u?"name":u,f=e.joinKey,g=e.joinStr,m=void 0===g?"-":g,v=e.lineFeedKey,x=e.lineFeedStr,S=void 0===x?"-":x,w=e.showAll,O=e.children,C=e.disabledValues,D=e.dropdownMatchSelectWidth,T=void 0===D?100:D,k=e.onChange,I=e.onSearch,E=e.isRemoteSearch,j=e.dropdownButton,N=e.dropdownRender,P=b(e,["list","defaultList","dataKey","titleKey","joinKey","joinStr","lineFeedKey","lineFeedStr","showAll","children","disabledValues","dropdownMatchSelectWidth","onChange","onSearch","isRemoteSearch","dropdownButton","dropdownRender"]),A=function(e){var r=e.list,n=e.defaultList,i=e.dataKey,o=void 0===i?"id":i,a=e.titleKey,s=void 0===a?"name":a,c=e.joinKey,l=e.joinStr,u=e.lineFeedKey,d=e.lineFeedStr,f=e.showAll,g=e.children,p=e.disabledValues,m=function(e,t){if(!t)return e;var r=(null==e?void 0:e.slice())||[];t.forEach((function(e,t){if(e){var n=r.findIndex((function(t){return t&&o&&t[o]===e[o]}));if(-1===n)r.push(e);else{var i=y({},e);s&&!i[s]&&Reflect.deleteProperty(i,s),o&&!i[o]&&Reflect.deleteProperty(i,o),r.splice(n,1,y(y({},r[n]),i))}}else console.error("默认数据中有空值 位置再defalutList中第".concat(t+1,"项"))}))}(r,n);return{resultList:m,renderChildren:function(){return g||(Array.isArray(m)?t.jsxs(t.Fragment,{children:[f&&t.jsx(Bo.Option,y({title:"全部",value:""},{children:"全部"})),null==m?void 0:m.map((function(e,r){if(!e)return console.error("默认数据中有空值 位置再list中第".concat(r+1,"项")),null;var n=e[o],i=e[o],a=h.unescapeString(e[s]),f=[],g=[];c&&(f=Array.isArray(c)?c.map((function(t){return h.unescapeString(e[t])})):e[c]?[h.unescapeString(e[c])]:[]),u&&(g=Array.isArray(u)?u.map((function(t){return h.unescapeString(e[t])})):e[u]?[h.unescapeString(e[u])]:[]),Array.isArray(f)?f.unshift(a):f=[a];var m=null==e?void 0:e.disabled;return Array.isArray(p)&&p.includes(i)&&(m=!0),t.jsxs(Bo.Option,y({value:i,title:a,disabled:m},{children:[Array.isArray(f)?null==f?void 0:f.join(l):"",Array.isArray(g)&&g.length>0?t.jsx("div",y({className:"ztxk-select--feed-item"},{children:null==g?void 0:g.join(d)})):""]}),"".concat(n).concat(r))}))]}):null)}}}({list:a,defaultList:s,dataKey:l,titleKey:d,joinKey:f,joinStr:m,lineFeedKey:v,lineFeedStr:S,showAll:w,children:O,disabledValues:C}),M=A.renderChildren,R=A.resultList,_=(o=j,n.useCallback((function(e){return t.jsxs(t.Fragment,{children:[e,t.jsx(r.Divider,{style:{marginTop:0,marginBottom:"4px"}}),t.jsx("div",y({style:{padding:"0 4px"}},{children:o}))]})}),[o])),L=n.useCallback((function(e){I&&I(e)}),[I]),z=p(L,400);return t.jsx(r.Select,y({showArrow:!0,dropdownMatchSelectWidth:T,onChange:function(t,r){if(Array.isArray(R)&&0!==R.length){var n,i=l;n="multiple"===e.mode?null==(n=t.map((function(e){return R.find((function(t){return!!t&&(null!=t[i]&&t[i]===e)}))})))?void 0:n.filter((function(e){return e})):R.find((function(e){return!!e&&(null!=e[i]&&e[i]===t)})),k&&k(t,r,n)}else k&&k(t,r)},showSearch:!0,onSearch:z,filterOption:!E&&function(e,t){var r=Fo(null==t?void 0:t.children);return(null==r?void 0:r.toLowerCase().indexOf(e.toLowerCase().trim()))>=0},dropdownRender:N||(j?_:void 0)},P,{ref:i},{children:M()}))})));Bo.displayName="ZTXK_WEBUI_Select",Bo.SECRET_COMBOBOX_MODE_DO_NOT_USE=r.Select.SECRET_COMBOBOX_MODE_DO_NOT_USE,Bo.Option=r.Select.Option,Bo.OptGroup=r.Select.OptGroup,Object.defineProperty(e,"Affix",{enumerable:!0,get:function(){return r.Affix}}),Object.defineProperty(e,"Alert",{enumerable:!0,get:function(){return r.Alert}}),Object.defineProperty(e,"Anchor",{enumerable:!0,get:function(){return r.Anchor}}),Object.defineProperty(e,"AutoComplete",{enumerable:!0,get:function(){return r.AutoComplete}}),Object.defineProperty(e,"Avatar",{enumerable:!0,get:function(){return r.Avatar}}),Object.defineProperty(e,"BackTop",{enumerable:!0,get:function(){return r.BackTop}}),Object.defineProperty(e,"Badge",{enumerable:!0,get:function(){return r.Badge}}),Object.defineProperty(e,"Breadcrumb",{enumerable:!0,get:function(){return r.Breadcrumb}}),Object.defineProperty(e,"Card",{enumerable:!0,get:function(){return r.Card}}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return r.Carousel}}),Object.defineProperty(e,"Cascader",{enumerable:!0,get:function(){return r.Cascader}}),Object.defineProperty(e,"Checkbox",{enumerable:!0,get:function(){return r.Checkbox}}),Object.defineProperty(e,"Col",{enumerable:!0,get:function(){return r.Col}}),Object.defineProperty(e,"Collapse",{enumerable:!0,get:function(){return r.Collapse}}),Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return r.Comment}}),Object.defineProperty(e,"ConfigProvider",{enumerable:!0,get:function(){return r.ConfigProvider}}),Object.defineProperty(e,"Descriptions",{enumerable:!0,get:function(){return r.Descriptions}}),Object.defineProperty(e,"Divider",{enumerable:!0,get:function(){return r.Divider}}),Object.defineProperty(e,"Drawer",{enumerable:!0,get:function(){return r.Drawer}}),Object.defineProperty(e,"Dropdown",{enumerable:!0,get:function(){return r.Dropdown}}),Object.defineProperty(e,"Empty",{enumerable:!0,get:function(){return r.Empty}}),Object.defineProperty(e,"Grid",{enumerable:!0,get:function(){return r.Grid}}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return r.Image}}),Object.defineProperty(e,"Layout",{enumerable:!0,get:function(){return r.Layout}}),Object.defineProperty(e,"List",{enumerable:!0,get:function(){return r.List}}),Object.defineProperty(e,"Mentions",{enumerable:!0,get:function(){return r.Mentions}}),Object.defineProperty(e,"Menu",{enumerable:!0,get:function(){return r.Menu}}),Object.defineProperty(e,"PageHeader",{enumerable:!0,get:function(){return r.PageHeader}}),Object.defineProperty(e,"Popconfirm",{enumerable:!0,get:function(){return r.Popconfirm}}),Object.defineProperty(e,"Popover",{enumerable:!0,get:function(){return r.Popover}}),Object.defineProperty(e,"Progress",{enumerable:!0,get:function(){return r.Progress}}),Object.defineProperty(e,"Radio",{enumerable:!0,get:function(){return r.Radio}}),Object.defineProperty(e,"Rate",{enumerable:!0,get:function(){return r.Rate}}),Object.defineProperty(e,"Result",{enumerable:!0,get:function(){return r.Result}}),Object.defineProperty(e,"Row",{enumerable:!0,get:function(){return r.Row}}),Object.defineProperty(e,"Segmented",{enumerable:!0,get:function(){return r.Segmented}}),Object.defineProperty(e,"Skeleton",{enumerable:!0,get:function(){return r.Skeleton}}),Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return r.Slider}}),Object.defineProperty(e,"Space",{enumerable:!0,get:function(){return r.Space}}),Object.defineProperty(e,"Spin",{enumerable:!0,get:function(){return r.Spin}}),Object.defineProperty(e,"Statistic",{enumerable:!0,get:function(){return r.Statistic}}),Object.defineProperty(e,"Steps",{enumerable:!0,get:function(){return r.Steps}}),Object.defineProperty(e,"Switch",{enumerable:!0,get:function(){return r.Switch}}),Object.defineProperty(e,"Tag",{enumerable:!0,get:function(){return r.Tag}}),Object.defineProperty(e,"Timeline",{enumerable:!0,get:function(){return r.Timeline}}),Object.defineProperty(e,"Tooltip",{enumerable:!0,get:function(){return r.Tooltip}}),Object.defineProperty(e,"Transfer",{enumerable:!0,get:function(){return r.Transfer}}),Object.defineProperty(e,"Tree",{enumerable:!0,get:function(){return r.Tree}}),Object.defineProperty(e,"TreeSelect",{enumerable:!0,get:function(){return r.TreeSelect}}),Object.defineProperty(e,"Typography",{enumerable:!0,get:function(){return r.Typography}}),Object.defineProperty(e,"Upload",{enumerable:!0,get:function(){return r.Upload}}),Object.defineProperty(e,"message",{enumerable:!0,get:function(){return r.message}}),Object.defineProperty(e,"notification",{enumerable:!0,get:function(){return r.notification}}),e.AppLayout=Co,e.AppLayoutHeader=jo,e.AppLayoutSider=Lo,e.Button=T,e.Calendar=q,e.Container=Ki,e.DatePicker=U,e.DetailList=wo,e.DynamicSetting=ki,e.Footer=Vi,e.Form=Ni,e.FormItem=_i,e.Icon=ar,e.Input=k,e.InputNumber=N,e.Login=Q,e.Modal=So,e.OperationBtn=zo,e.Pagination=$i,e.ProtectedRoute=function(e){var r=e.hasAuth,n=void 0===r||r,i=e.element,o=e.backLogin;return h.getToken()?n?i:t.jsx("div",{children:"您没有权限访问当前页面!"}):(console.log("当前页面需要登录! 请登录成功后再进行访问!"),o())},e.Select=Bo,e.SuspenseComponent=function(e){var r=e.children;return t.jsx(n.Suspense,y({fallback:t.jsx("div",{children:"loading..."})},{children:r}))},e.Table=yo,e.Tabs=bo,e.TimePicker=K,e.ZtxkContext=W}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmdms-webui",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "private": false,
5
5
  "main": "dist/index.es.js",
6
6
  "module": "dist/index.es.js",