zmdms-webui 0.0.4 → 0.0.5
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.
- package/README.md +22 -12
- package/dist/es/login/index.d.ts +1 -0
- package/dist/es/login/index.js +2 -2
- package/dist/index.dark.css +1 -1
- package/dist/index.default.css +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +5 -2
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}()}(S);var x=O(S.exports),w=function(e){var i,o=e.agentClick,a=void 0===o||o,s=e.type,c=e.className,u=e.disabled,l=e.size,d=e.danger,f=e.onClick,g=v(e,["agentClick","type","className","disabled","size","danger","onClick"]),h=r.useRef(0),p=x("zt-btn",c,((i={})["zt-btn-".concat(s)]=s,i["zt-btn-disabled"]=u,i["zt-btn-".concat(l)]=l,i["zt-btn-dangerous"]=d,i));return t.jsx(n.Button,y({className:p,type:s,disabled:u,size:l,danger:d,onClick:function(e){if(a){var t=Date.now();0===h.current||t-h.current>300?(h.current=t,f&&f(e)):(h.current=t,console.log("点击按钮过于频繁"))}else f&&f(e)}},g))};w.displayName="ZTXK_WEBUI_Button";var C=r.memo(r.forwardRef((function(e,r){return t.jsx(n.Input,y({},e,{ref:r}))})));C.displayName="ZTXK_WEBUI_Input",C.Group=n.Input.Group,C.Search=n.Input.Search,C.TextArea=n.Input.TextArea,C.Password=n.Input.Password;function D(e,t,r){return e&&!isNaN(Number(e))&&!t.current&&r?Number(e).toFixed(r):e}function T(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 I=function(e,i){var o=e.formatterType,a=(e.currencySymbol,e.formatter),s=e.parser,c=e.precision,u=e.onBlur,l=e.onFocus,d=v(e,["formatterType","currencySymbol","formatter","parser","precision","onBlur","onFocus"]),f=r.useRef(!1),g=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}(D(e,r,n))},parser:function(e){return T(e.replace(/(,*)/g,""),n)},precision:3}:"percent"===e?{formatter:function(e){var t=D(e,r,n);return"".concat(t,"%")},parser:function(e){return e?e.replace("%",""):Number(e)},precision:2}:"thousands"===e?{formatter:function(e){var t=D(e,r,n);return"".concat(t,"‰")},parser:function(e){return e?e.replace("‰",""):Number(e)},precision:2}:{formatter:function(e){return D(e,r,n)},parser:function(e){return T(e,n)},precision:n}}(o,0,f,c),h=g.formatter,p=g.parser,m=g.precision;return t.jsx(n.InputNumber,y({formatter:a||h,parser:s||p,precision:null!=c?c:m,onBlur:function(e){f.current=!1,u&&u(e)},onFocus:function(e){f.current=!0,l&&l(e)}},d,{ref:i}))};I.displayName="ZTXK_WEBUI_InputNumber";var E=r.memo(r.forwardRef(I)),j={};function k(e,t){}function N(e,t){}function P(e,t,r){t||j[r]||(e(!1,r),j[r]=!0)}function M(e,t){P(k,e,t)}function A(e,t){P(N,e,t)}M.preMessage=function(e){},M.resetWarned=function(){j={}},M.noteOnce=A,i.extend(l),i.extend(u),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 R={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"},_=function(e){return R[e]||e.split("_")[0]},L=function(){A(!1,"Not match any format. Please help to fire a issue about this.")},F={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(_(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(_(e)).weekday(0)},getWeek:function(e,t){return t.locale(_(e)).week()},getShortWeekDays:function(e){return i().locale(_(e)).localeData().weekdaysMin()},getShortMonths:function(e){return i().locale(_(e)).localeData().monthsShort()},format:function(e,t,r){return t.locale(_(e)).format(r)},parse:function(e,t,r){for(var n=_(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],u=s.split("-")[1],l=i(c,"YYYY").startOf("year").locale(n),d=0;d<=52;d+=1){var f=l.add(d,"week");if(f.format("Wo")===u)return f}return L(),null}var g=i(s,a).locale(n);if(g.isValid())return g}return t&&L(),null}}},z=d(F),B=f(F),H=r.forwardRef((function(e,r){return t.jsx(z,y({},e,{picker:"time",mode:void 0,ref:r}))}));H.displayName="TimePicker";var U=r.createContext({locale:"zh-cn"});var q=n.Form.Item,W=function(e){var r=e.loginLogo,i=e.loginBg,o=e.onFinishHandle,a=n.Form.useForm()[0];return t.jsx("div",y({className:"login-wrap",style:{backgroundImage:"url(".concat(i,")")}},{children:t.jsxs(n.Form,y({form:a,requiredMark:!1,layout:"vertical",className:"login-form",onFinish:function(e){o&&o(e)}},{children:[t.jsx("div",y({className:"login-logo"},{children:t.jsx("img",{src:r,title:"浙商中拓ERP",alt:"zszt_logo"})})),t.jsx(q,y({label:"请输入您的账号",name:"username",rules:[{required:!0,message:"请输入您的账号"}]},{children:t.jsx(C,{size:"large",prefix:t.jsx(ut,{type:"icon-yonghu",style:{fontSize:"14px",color:"rgba(0,0,0,.65)"}})})})),t.jsx(q,y({label:"请输入您的密码",name:"password",rules:[{required:!0,message:"请输入您的密码"}]},{children:t.jsx(C.Password,{size:"large",prefix:t.jsx(ut,{type:"icon-mima",style:{fontSize:"14px",color:"rgba(0,0,0,.65)"}})})})),t.jsx(q,{children:t.jsx(w,y({htmlType:"submit",block:!0,className:"form__item--button"},{children:"登录"}))}),t.jsxs("div",y({className:"form__item--remember"},{children:[t.jsx(q,y({name:"remember",valuePropName:"checked"},{children:t.jsx(n.Checkbox,{children:"记住密码"})})),t.jsx("div",y({className:"form__item--remember-forget"},{children:"忘记密码"}))]}))]}))}))};W.displayName="ZTXK_WEBUI_Login";var $=r.createContext({});function K(e){return K="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},K(e)}function Y(e){var t=function(e,t){if("object"!==K(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==K(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===K(t)?t:String(t)}function V(e,t,r){return(t=Y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X(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 G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?X(Object(r),!0).forEach((function(t){V(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Z(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 J(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,u=!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){u=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Z(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)?Z(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 Q(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 ee(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 te(e){return e<=1?"".concat(100*Number(e),"%"):e}function re(e){return 1===e.length?"0"+e:String(e)}function ne(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 ie(e){return oe(e)/255}function oe(e){return parseInt(e,16)}var ae={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 se(e){var t,r,n,i={r:0,g:0,b:0},o=1,a=null,s=null,c=null,u=!1,l=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(ae[e])e=ae[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var r=de.rgb.exec(e);if(r)return{r:r[1],g:r[2],b:r[3]};if(r=de.rgba.exec(e),r)return{r:r[1],g:r[2],b:r[3],a:r[4]};if(r=de.hsl.exec(e),r)return{h:r[1],s:r[2],l:r[3]};if(r=de.hsla.exec(e),r)return{h:r[1],s:r[2],l:r[3],a:r[4]};if(r=de.hsv.exec(e),r)return{h:r[1],s:r[2],v:r[3]};if(r=de.hsva.exec(e),r)return{h:r[1],s:r[2],v:r[3],a:r[4]};if(r=de.hex8.exec(e),r)return{r:oe(r[1]),g:oe(r[2]),b:oe(r[3]),a:ie(r[4]),format:t?"name":"hex8"};if(r=de.hex6.exec(e),r)return{r:oe(r[1]),g:oe(r[2]),b:oe(r[3]),format:t?"name":"hex"};if(r=de.hex4.exec(e),r)return{r:oe(r[1]+r[1]),g:oe(r[2]+r[2]),b:oe(r[3]+r[3]),a:ie(r[4]+r[4]),format:t?"name":"hex8"};if(r=de.hex3.exec(e),r)return{r:oe(r[1]+r[1]),g:oe(r[2]+r[2]),b:oe(r[3]+r[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(fe(e.r)&&fe(e.g)&&fe(e.b)?(t=e.r,r=e.g,n=e.b,i={r:255*ee(t,255),g:255*ee(r,255),b:255*ee(n,255)},u=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):fe(e.h)&&fe(e.s)&&fe(e.v)?(a=te(e.s),s=te(e.v),i=function(e,t,r){e=6*ee(e,360),t=ee(t,100),r=ee(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),u=!0,l="hsv"):fe(e.h)&&fe(e.s)&&fe(e.l)&&(a=te(e.s),c=te(e.l),i=function(e,t,r){var n,i,o;if(e=ee(e,360),t=ee(t,100),r=ee(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=ne(s,a,e+1/3),i=ne(s,a,e),o=ne(s,a,e-1/3)}return{r:255*n,g:255*i,b:255*o}}(e.h,a,c),u=!0,l="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:u,format:e.format||l,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 ce="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),ue="[\\s|\\(]+(".concat(ce,")[,|\\s]+(").concat(ce,")[,|\\s]+(").concat(ce,")\\s*\\)?"),le="[\\s|\\(]+(".concat(ce,")[,|\\s]+(").concat(ce,")[,|\\s]+(").concat(ce,")[,|\\s]+(").concat(ce,")\\s*\\)?"),de={CSS_UNIT:new RegExp(ce),rgb:new RegExp("rgb"+ue),rgba:new RegExp("rgba"+le),hsl:new RegExp("hsl"+ue),hsla:new RegExp("hsla"+le),hsv:new RegExp("hsv"+ue),hsva:new RegExp("hsva"+le),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 fe(e){return Boolean(de.CSS_UNIT.exec(String(e)))}var ge=2,he=.16,pe=.05,me=.05,ye=.15,ve=5,be=4,Oe=[{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 Se(e){var t=function(e,t,r){e=ee(e,255),t=ee(t,255),r=ee(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 xe(e){var t=e.r,r=e.g,n=e.b;return"#".concat(function(e,t,r,n){var i=[re(Math.round(e).toString(16)),re(Math.round(t).toString(16)),re(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 we(e,t,r){var n;return(n=Math.round(e.h)>=60&&Math.round(e.h)<=240?r?Math.round(e.h)-ge*t:Math.round(e.h)+ge*t:r?Math.round(e.h)+ge*t:Math.round(e.h)-ge*t)<0?n+=360:n>=360&&(n-=360),n}function Ce(e,t,r){return 0===e.h&&0===e.s?e.s:((n=r?e.s-he*t:t===be?e.s+he:e.s+pe*t)>1&&(n=1),r&&t===ve&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)));var n}function De(e,t,r){var n;return(n=r?e.v+me*t:e.v-ye*t)>1&&(n=1),Number(n.toFixed(2))}function Te(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],n=se(e),i=ve;i>0;i-=1){var o=Se(n),a=xe(se({h:we(o,i,!0),s:Ce(o,i,!0),v:De(o,i,!0)}));r.push(a)}r.push(xe(n));for(var s=1;s<=be;s+=1){var c=Se(n),u=xe(se({h:we(c,s),s:Ce(c,s),v:De(c,s)}));r.push(u)}return"dark"===t.theme?Oe.map((function(e){var n,i,o,a=e.index,s=e.opacity;return xe((n=se(t.backgroundColor||"#141414"),i=se(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 Ie={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"},Ee={},je={};Object.keys(Ie).forEach((function(e){Ee[e]=Te(Ie[e]),Ee[e].primary=Ee[e][5],je[e]=Te(Ie[e],{theme:"dark",backgroundColor:"#141414"}),je[e].primary=je[e][5]}));var ke="data-rc-order",Ne="rc-util-key",Pe=new Map;function Me(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):Ne}function Ae(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Re(e){return Array.from((Pe.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function _e(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(ke,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=Ae(t),a=o.firstChild;if(n){if("queue"===n){var s=Re(o).filter((function(e){return["prepend","prependQueue"].includes(e.getAttribute(ke))}));if(s.length)return o.insertBefore(i,s[s.length-1].nextSibling),i}o.insertBefore(i,a)}else o.appendChild(i);return i}function Le(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var r=Pe.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=_e("",t),i=n.parentNode;Pe.set(e,i),e.removeChild(n)}}(Ae(r),r);var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Re(Ae(t)).find((function(r){return r.getAttribute(Me(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=_e(e,r);return s.setAttribute(Me(r),t),s}function Fe(e,t){M(e,"[@ant-design/icons] ".concat(t))}function ze(e){return"object"===K(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===K(e.icon)||"function"==typeof e.icon)}function Be(){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 He(e,t,n){return n?r.createElement(e.tag,G(G({key:t},Be(e.attrs)),n),(e.children||[]).map((function(r,n){return He(r,"".concat(t,"-").concat(e.tag,"-").concat(n))}))):r.createElement(e.tag,G({key:t},Be(e.attrs)),(e.children||[]).map((function(r,n){return He(r,"".concat(t,"-").concat(e.tag,"-").concat(n))})))}function Ue(e){return Te(e)[0]}function qe(e){return e?Array.isArray(e)?e:[e]:[]}var We={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},$e=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=r.useContext($).csp;r.useEffect((function(){Le(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])},Ke=["icon","className","onClick","style","primaryColor","secondaryColor"],Ye={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Ve=function(e){var t=e.icon,r=e.className,n=e.onClick,i=e.style,o=e.primaryColor,a=e.secondaryColor,s=Q(e,Ke),c=Ye;if(o&&(c={primaryColor:o,secondaryColor:a||Ue(o)}),$e(),Fe(ze(t),"icon should be icon definiton, but got ".concat(t)),!ze(t))return null;var u=t;return u&&"function"==typeof u.icon&&(u=G(G({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),He(u.icon,"svg-".concat(u.name),G({className:r,onClick:n,style:i,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s))};Ve.displayName="IconReact",Ve.getTwoToneColors=function(){return G({},Ye)},Ve.setTwoToneColors=function(e){var t=e.primaryColor,r=e.secondaryColor;Ye.primaryColor=t,Ye.secondaryColor=r||Ue(t),Ye.calculated=!!r};var Xe=Ve;function Ge(e){var t=J(qe(e),2),r=t[0],n=t[1];return Xe.setTwoToneColors({primaryColor:r,secondaryColor:n})}var Ze=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Ge("#1890ff");var Je=m.forwardRef((function(e,t){var r,n=e.className,i=e.icon,o=e.spin,a=e.rotate,s=e.tabIndex,c=e.onClick,u=e.twoToneColor,l=Q(e,Ze),d=m.useContext($),f=d.prefixCls,g=void 0===f?"anticon":f,h=d.rootClassName,p=x(h,g,(V(r={},"".concat(g,"-").concat(i.name),!!i.name),V(r,"".concat(g,"-spin"),!!o||"loading"===i.name),r),n),y=s;void 0===y&&c&&(y=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=J(qe(u),2),O=b[0],S=b[1];return m.createElement("span",G(G({role:"img","aria-label":i.name},l),{},{ref:t,tabIndex:y,onClick:c,className:p}),m.createElement(Xe,{icon:i,primaryColor:O,secondaryColor:S,style:v}))}));Je.displayName="AntdIcon",Je.getTwoToneColor=function(){var e=Xe.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Je.setTwoToneColor=Ge;var Qe=Je,et={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"},tt=function(e,t){return m.createElement(Qe,G(G({},e),{},{ref:t,icon:et}))};tt.displayName="SettingOutlined";var rt=m.forwardRef(tt),nt=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],it=m.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,u=e.children,l=Q(e,nt);Fe(Boolean(n||u),"Should have `component` prop or `children`."),$e();var d=m.useContext($),f=d.prefixCls,g=void 0===f?"anticon":f,h=d.rootClassName,p=x(h,g,r),y=x(V({},"".concat(g,"-spin"),!!o)),v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=G(G({},We),{},{className:y,style:v,viewBox:i});i||delete b.viewBox;var O=s;return void 0===O&&c&&(O=-1),m.createElement("span",G(G({role:"img"},l),{},{ref:t,tabIndex:O,onClick:c,className:p}),n?m.createElement(n,G({},b),u):u?(Fe(Boolean(i)||1===m.Children.count(u)&&m.isValidElement(u)&&"use"===m.Children.only(u).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),m.createElement("svg",G(G({},b),{},{viewBox:i}),u)):null)}));it.displayName="AntdIcon";var ot=it,at=["type","children"],st=new Set;function ct(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&&!st.has(t))){var i=document.createElement("script");i.setAttribute("src",n),i.setAttribute("data-namespace",n),e.length>r+1&&(i.onload=function(){ct(e,r+1)},i.onerror=function(){ct(e,r+1)}),st.add(n),document.body.appendChild(i)}}var ut=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)?ct(t.reverse()):ct([t]));var i=m.forwardRef((function(e,t){var r=e.type,i=e.children,o=Q(e,at),a=null;return e.type&&(a=m.createElement("use",{xlinkHref:"#".concat(r)})),i&&(a=i),m.createElement(ot,G(G(G({},n),o),{},{ref:t}),a)}));return i.displayName="Iconfont",i}({scriptUrl:["//at.alicdn.com/t/c/font_4078313_tg40lf02k9.js"]});const lt=r.createContext({dragDropManager:void 0});function dt(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 ft="function"==typeof Symbol&&Symbol.observable||"@@observable",gt=function(){return Math.random().toString(36).substring(7).split("").join(".")},ht={INIT:"@@redux/INIT"+gt(),REPLACE:"@@redux/REPLACE"+gt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+gt()}};function pt(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(dt(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(dt(1));return r(pt)(e,t)}if("function"!=typeof e)throw new Error(dt(2));var i=e,o=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){if(c)throw new Error(dt(3));return o}function d(e){if("function"!=typeof e)throw new Error(dt(4));if(c)throw new Error(dt(5));var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error(dt(6));t=!1,u();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(dt(7));if(void 0===e.type)throw new Error(dt(8));if(c)throw new Error(dt(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:ht.INIT}),(n={dispatch:f,subscribe:d,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(dt(10));i=e,f({type:ht.REPLACE})}})[ft]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(dt(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[ft]=function(){return this},e},n}function mt(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 yt(e){return"object"==typeof e}const vt="dnd-core/INIT_COORDS",bt="dnd-core/BEGIN_DRAG",Ot="dnd-core/PUBLISH_DRAG_SOURCE",St="dnd-core/HOVER",xt="dnd-core/DROP",wt="dnd-core/END_DRAG";function Ct(e,t){return{type:vt,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const Dt={type:vt,payload:{clientOffset:null,sourceClientOffset:null}};function Tt(e){return function(t=[],r={publishSource:!0}){const{publishSource:n=!0,clientOffset:i,getSourceClientOffset:o}=r,a=e.getMonitor(),s=e.getRegistry();e.dispatch(Ct(i)),function(e,t,r){mt(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){mt(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(Dt);let u=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");!function(e){mt("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(o),u=o(c)}e.dispatch(Ct(i,u));const l=s.getSource(c).beginDrag(a,c);if(null==l)return;!function(e){mt(yt(e),"Item must be an object.")}(l),s.pinSource(c);const d=s.getSourceType(c);return{type:bt,payload:{itemType:d,item:l,sourceId:c,clientOffset:i||null,sourceClientOffset:u||null,isSourcePublic:!!n}}}}function It(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Et(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){It(e,t,r[t])}))}return e}function jt(e){return function(t={}){const r=e.getMonitor(),n=e.getRegistry();!function(e){mt(e.isDragging(),"Cannot call drop while not dragging."),mt(!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){mt(void 0===e||yt(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:xt,payload:{dropResult:Et({},t,a)}};e.dispatch(s)}))}}function kt(e){return function(){const t=e.getMonitor(),r=e.getRegistry();!function(e){mt(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:wt}}}function Nt(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function Pt(e){return function(t,{clientOffset:r}={}){!function(e){mt(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];Nt(t.getTargetType(i),r)||e.splice(n,1)}}(n,o,i.getItemType()),function(e,t,r){mt(t.isDragging(),"Cannot call hover while not dragging."),mt(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t<e.length;t++){const n=e[t];mt(e.lastIndexOf(n)===t,"Expected targetIds to be unique in the passed array.");mt(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:St,payload:{targetIds:n,clientOffset:r||null}}}}function Mt(e){return function(){if(e.getMonitor().isDragging())return{type:Ot}}}class At{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:Tt(e),publishDragSource:Mt(e),hover:Pt(e),drop:jt(e),endDrag:kt(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 Rt(e,t){return{x:e.x-t.x,y:e.y-t.y}}const _t=[],Lt=[];_t.__IS_NONE__=!0,Lt.__IS_ALL__=!0;class Ft{subscribeToStateChange(e,t={}){const{handlerIds:r}=t;mt("function"==typeof e,"listener must be a function."),mt(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!==_t&&(e===Lt||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){mt("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 mt(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(mt(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return Nt(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(mt(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&&!Nt(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?Rt((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?Rt(t,r):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const zt="undefined"!=typeof global?global:self,Bt=zt.MutationObserver||zt.WebKitMutationObserver;function Ht(e){return function(){const t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}const Ut="function"==typeof Bt?function(e){let t=1;const r=new Bt(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}:Ht;class qt{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 Wt=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=Ut(this.flush),this.requestErrorThrow=Ht((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},$t=new class{create(e){const t=this.freeTasks,r=t.length?t.pop():new qt(this.onError,(e=>t[t.length]=e));return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}(Wt.registerPendingError);const Kt="dnd-core/ADD_SOURCE",Yt="dnd-core/ADD_TARGET",Vt="dnd-core/REMOVE_SOURCE",Xt="dnd-core/REMOVE_TARGET";function Gt(e,t){t&&Array.isArray(e)?e.forEach((e=>Gt(e,!1))):mt("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 Zt;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(Zt||(Zt={}));let Jt=0;function Qt(e){const t=(Jt++).toString();switch(e){case Zt.SOURCE:return`S${t}`;case Zt.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function er(e){switch(e[0]){case"S":return Zt.SOURCE;case"T":return Zt.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function tr(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 rr{addSource(e,t){Gt(e),function(e){mt("function"==typeof e.canDrag,"Expected canDrag to be a function."),mt("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),mt("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const r=this.addHandler(Zt.SOURCE,e,t);return this.store.dispatch(function(e){return{type:Kt,payload:{sourceId:e}}}(r)),r}addTarget(e,t){Gt(e,!0),function(e){mt("function"==typeof e.canDrop,"Expected canDrop to be a function."),mt("function"==typeof e.hover,"Expected hover to be a function."),mt("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const r=this.addHandler(Zt.TARGET,e,t);return this.store.dispatch(function(e){return{type:Yt,payload:{targetId:e}}}(r)),r}containsHandler(e){return tr(this.dragSources,e)||tr(this.dropTargets,e)}getSource(e,t=!1){mt(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return mt(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return mt(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return mt(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return er(e)===Zt.SOURCE}isTargetId(e){return er(e)===Zt.TARGET}removeSource(e){var t;mt(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:Vt,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},Wt.enqueueTask($t.create(t))}removeTarget(e){mt(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:Xt,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);mt(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){mt(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,r){const n=Qt(e);return this.types.set(n,t),e===Zt.SOURCE?this.dragSources.set(n,r):e===Zt.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 nr=(e,t)=>e===t;function ir(e=_t,t){switch(t.type){case St:break;case Kt:case Yt:case Xt:case Vt:return _t;default:return Lt}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=nr){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 _t;const a=n[n.length-1],s=r[r.length-1];return a!==s&&(a&&i.push(a),s&&i.push(s)),i}function or(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ar={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function sr(e=ar,t){const{payload:r}=t;switch(t.type){case vt:case bt:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case St: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){or(e,t,r[t])}))}return e}({},e,{clientOffset:r.clientOffset});case wt:case xt:return ar;default:return e}var n,i}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 ur(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}const lr={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function dr(e=lr,t){const{payload:r}=t;switch(t.type){case bt:return ur({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case Ot:return ur({},e,{isSourcePublic:!0});case St:return ur({},e,{targetIds:r.targetIds});case Xt:return-1===e.targetIds.indexOf(r.targetId)?e:ur({},e,{targetIds:(n=e.targetIds,i=r.targetId,n.filter((e=>e!==i)))});case xt:return ur({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case wt:return ur({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var n,i}function fr(e=0,t){switch(t.type){case Kt:case Yt:return e+1;case Vt:case Xt:return e-1;default:return e}}function gr(e=0){return e+1}function hr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pr(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){hr(e,t,r[t])}))}return e}function mr(e={},t){return{dirtyHandlerIds:ir(e.dirtyHandlerIds,{type:t.type,payload:pr({},t.payload,{prevTargetIds:(r=e,n="dragOperation.targetIds",i=[],n.split(".").reduce(((e,t)=>e&&e[t]?e[t]:i||null),r))})}),dragOffset:sr(e.dragOffset,t),refCount:fr(e.refCount,t),dragOperation:dr(e.dragOperation,t),stateId:gr(e.stateId)};var r,n,i}function yr(e,t=void 0,r={},n=!1){const i=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return pt(mr,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(n),o=new Ft(i,new rr(i)),a=new At(i,o),s=e(a,t,r);return a.receiveBackend(s),a}function vr(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 br=0;const Or=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Sr=r.memo((function(e){var{children:n}=e,i=vr(e,["children"]);const[o,a]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=xr(),r,n){const i=t;i[Or]||(i[Or]={dragDropManager:yr(e,t,r,n)});return i[Or]}(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}(i);return r.useEffect((()=>{if(a){const e=xr();return++br,()=>{0==--br&&(e[Or]=null)}}}),[]),t.jsx(lt.Provider,{value:o,children:n})}));function xr(){return"undefined"!=typeof global?global:window}var wr=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},Cr=O(wr);const Dr="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function Tr(e,t,n){const[i,o]=function(e,t,n){const[i,o]=r.useState((()=>t(e))),a=r.useCallback((()=>{const r=t(e);Cr(i,r)||(o(r),n&&n())}),[i,e,n]);return Dr(a),[i,a]}(e,t,n);return Dr((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})}),[e,o]),i}function Ir(e,t,r){return Tr(t,e||(()=>({})),(()=>r.reconnect()))}function Er(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),r.useMemo((()=>"function"==typeof e?e():e),n)}function jr(e){return r.useMemo((()=>e.hooks.dragSource()),[e])}function kr(e){return r.useMemo((()=>e.hooks.dragPreview()),[e])}let Nr=!1,Pr=!1;class Mr{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){mt(!Nr,"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 Nr=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Nr=!1}}isDragging(){if(!this.sourceId)return!1;mt(!Pr,"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 Pr=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Pr=!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 Ar=!1;class Rr{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;mt(!Ar,"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 Ar=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Ar=!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 _r(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 u=e[c],l=t[c];if(i=r?r.call(n,u,l,c):void 0,!1===i||void 0===i&&u!==l)return!1}return!0}function Lr(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Fr(e){return(t=null,n=null)=>{if(!r.isValidElement(t)){const r=t;return e(r,n),r}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 n=e.ref;return mt("string"!=typeof n,"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"),n?r.cloneElement(e,{ref:e=>{Br(n,e),Br(t,e)}}):r.cloneElement(e,{ref:t})}(i,n?t=>e(t,n):e)}}function zr(e){const t={};return Object.keys(e).forEach((r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const e=Fr(n);t[r]=()=>e}})),t}function Br(e,t){"function"==typeof e?e(t):e.current=t}class Hr{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!_r(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!_r(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=zr({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,Lr(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,Lr(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 Ur{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!_r(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=zr({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,Lr(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 qr(){const{dragDropManager:e}=r.useContext(lt);return mt(null!=e,"Expected drag drop context"),e}class Wr{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 $r(e,t,n){const i=qr(),o=function(e,t,n){const i=r.useMemo((()=>new Wr(e,t,n)),[t,n]);return r.useEffect((()=>{i.spec=e}),[e]),i}(e,t,n),a=function(e){return r.useMemo((()=>{const t=e.type;return mt(null!=t,"spec.type must be defined"),t}),[e])}(e);Dr((function(){if(null!=a){const[e,r]=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),n.receiveHandlerId(e),r}}),[i,t,n,o,a])}function Kr(e,t){const n=Er(e,t);mt(!n.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=qr();return r.useMemo((()=>new Mr(e)),[e])}(),o=function(e,t){const n=qr(),i=r.useMemo((()=>new Hr(n.getBackend())),[n]);return Dr((()=>(i.dragSourceOptions=e||null,i.reconnect(),()=>i.disconnectDragSource())),[i,e]),Dr((()=>(i.dragPreviewOptions=t||null,i.reconnect(),()=>i.disconnectDragPreview())),[i,t]),i}(n.options,n.previewOptions);return $r(n,i,o),[Ir(n.collect,i,o),jr(o),kr(o)]}function Yr(e){return r.useMemo((()=>e.hooks.dropTarget()),[e])}class Vr{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 Xr(e,t,n){const i=qr(),o=function(e,t){const n=r.useMemo((()=>new Vr(e,t)),[t]);return r.useEffect((()=>{n.spec=e}),[e]),n}(e,t),a=function(e){const{accept:t}=e;return r.useMemo((()=>(mt(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);Dr((function(){const[e,r]=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),n.receiveHandlerId(e),r}),[i,t,o,n,a.map((e=>e.toString())).join("|")])}function Gr(e,t){const n=Er(e,t),i=function(){const e=qr();return r.useMemo((()=>new Rr(e)),[e])}(),o=function(e){const t=qr(),n=r.useMemo((()=>new Ur(t.getBackend())),[t]);return Dr((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return Xr(n,i,o),[Ir(n.collect,i,o),Yr(o)]}function Zr(e){let t=null;return()=>(null==t&&(t=e()),t)}class Jr{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 Qr{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 en="__NATIVE_FILE__",tn="__NATIVE_URL__",rn="__NATIVE_TEXT__",nn="__NATIVE_HTML__";var on=Object.freeze({__proto__:null,FILE:en,HTML:nn,TEXT:rn,URL:tn});function an(e,t,r){const n=t.reduce(((t,r)=>t||e.getData(r)),"");return null!=n?n:r}const sn={[en]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[nn]:{exposeProperties:{html:(e,t)=>an(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[tn]:{exposeProperties:{urls:(e,t)=>an(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[rn]:{exposeProperties:{text:(e,t)=>an(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function cn(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(sn).filter((e=>{const r=sn[e];return!!(null==r?void 0:r.matchesTypes)&&r.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const un=Zr((()=>/firefox/i.test(navigator.userAgent))),ln=Zr((()=>Boolean(window.safari)));class dn{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,u=o.length-1;for(;c<=u;){s=Math.floor(.5*(c+u));const n=t[s];if(n<e)c=s+1;else{if(!(n>e))return r[s];u=s-1}}a=Math.max(0,u);const l=e-t[a],d=l*l;return r[a]+n[a]*l+i[a]*d+o[a]*l*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 u=[],l=[];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;u.push((d-t-n)*r),l.push(n*r*r)}this.xs=e,this.ys=t,this.c1s=c,this.c2s=u,this.c3s=l}}const fn=1;function gn(e){const t=e.nodeType===fn?e:e.parentElement;if(!t)return null;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function hn(e){return{x:e.clientX,y:e.clientY}}function pn(e,t,r,n,i){const o="IMG"===(a=t).nodeName&&(un()||!(null===(s=document.documentElement)||void 0===s?void 0:s.contains(a)));var a,s;const c=gn(o?e:t),u={x:r.x-c.x,y:r.y-c.y},{offsetWidth:l,offsetHeight:d}=e,{anchorX:f,anchorY:g}=n,{dragPreviewWidth:h,dragPreviewHeight:p}=function(e,t,r,n){let i=e?t.width:r,o=e?t.height:n;return ln()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}(o,t,l,d),{offsetX:m,offsetY:y}=i,v=0===y||y;return{x:0===m||m?m:new dn([0,.5,1],[u.x,u.x/l*h,u.x+h-l]).interpolate(f),y:v?y:(()=>{let e=new dn([0,.5,1],[u.y,u.y/d*p,u.y+p-d]).interpolate(g);return ln()&&o&&(e+=(window.devicePixelRatio-1)*p),e})()}}class mn{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 yn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vn(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){yn(e,t,r[t])}))}return e}class bn{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 vn({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return vn({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(on).some((t=>on[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const r=sn[e];if(!r)throw new Error(`native type ${e} has no configuration`);const n=new Qr(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&&gn(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=hn(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=cn(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=pn(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=cn(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:hn(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=hn(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)):cn(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:hn(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 mn(t,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Jr(this.isNodeInDocument)}}const On=function(e,t,r){return new bn(e,t,r)};var Sn={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 u=Object.assign||function(e,t){return l(t).forEach((function(r){o.call(t,r)&&(e[r]=t[r])})),e},l="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)?u(e.constructor(e.length),e):"Map"===c(e)?new Map(e):"Set"===c(e)?new Set(e):e&&"object"==typeof e?u(Object.create(Object.getPrototypeOf(e)),e):e}var f=function(){function e(){this.commands=u({},g),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 l(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]),u="Map"===c(a)?a.get(t):a[t];r.isEquals(s,u)&&(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 g={$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)})),y(t.$splice)}(t,n),e.forEach((function(e){y(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 v(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 v(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)})),l(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)}},h=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 y(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 v(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=h.update.isEquals,t.extend=h.extend,t.default=h.update,t.default.default=e.exports=u(t.default,t)}(Sn,Sn.exports);var xn=O(Sn.exports),wn=function(e){var n=e.type,i=e.onMoveItem,o=e.index,a=e.id,s=e.children,c=e.style,u=e.className,l=r.useRef(null),d=x("zt-sortable",u,{}),f=Gr({accept:n,hover:function(e,t){var r;if(l.current){var n=e.index,a=o;if(n!==a){var s=null===(r=l.current)||void 0===r?void 0:r.getBoundingClientRect(),c=(s.bottom-s.top)/2,u=t.getClientOffset().y-s.top;n<a&&u<c||n>a&&u>c||(i(n,a),e.index=a)}}}}),g=f[1],h=Kr({type:n,item:function(){return{id:a,index:o}},collect:function(e){return{isDragging:e.isDragging()}}}),p=h[0].isDragging?0:1;return(0,h[1])(g(l)),t.jsx("div",y({ref:l,className:d,style:y(y({},c),{opacity:p})},{children:s}))},Cn=500;function Dn(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.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 Tn(e,t,n,i,o,a,s){var c=r.useState(!1),u=c[0],l=c[1],d=r.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>Cn){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=r.useCallback((function(){l(!1),o(e)}),[o,e]),g=r.useCallback((function(){l(!1),t(a),s(a),o(a),d()(n,a)}),[a,t,n,d,o]),h=r.useCallback((function(e){l(!1),t(e),o(e),s(e),d()(n,e)}),[t,n,d,o]);return{visible:u,setVisible:l,onClose:f,onReset:g,onSure:h}}var In=function(e,i){var o=e.list,a=e.dynamicKey,s=e.parentDynamicKey,c=e.title,u=void 0===c?"自定义配置":c,l=e.onCurrentListChange,d=function(e,t,n){var i=r.useMemo((function(){return Dn(e,t,n)}),[e,t,n]),o=r.useState(i),a=o[0],s=o[1],c=r.useState(i),u=c[0],l=c[1];return r.useEffect((function(){i&&(s(i),l(i))}),[i]),{currentDynamicList:a,setCurrentDynamicList:s,tempDynamicList:u,setTempDynamicList:l}}(a,s,o),f=d.currentDynamicList,g=d.setCurrentDynamicList,h=d.tempDynamicList,p=d.setTempDynamicList,m=Tn(f,g,a,s,p,o,l),v=m.visible,b=m.setVisible,O=m.onClose,S=m.onReset,x=m.onSure;r.useImperativeHandle(i,(function(){return{setVisible:b}}));var C=r.useMemo((function(){var e=[];return h.forEach((function(t){t.checked&&e.push(t.key)})),e}),[h]),D=r.useCallback((function(e,t){p((function(r){var n=r[e];return xn(r,{$splice:[[e,1],[t,0,n]]})}))}),[p]),T=function(){x&&x(h)};return t.jsx(n.Drawer,y({className:"dynamic-drawer",title:t.jsxs("div",{children:[t.jsx(rt,{style:{fontSize:16}}),t.jsxs("span",y({className:"search-drawer--title-text"},{children:[u,t.jsx("span",{children:"(拖拽排序)"})]}))]}),width:300,placement:"right",open:v,closable:!1,maskClosable:!1,footer:t.jsxs(t.Fragment,{children:[t.jsx(w,y({type:"default",onClick:O},{children:"取消"})),t.jsx(w,y({type:"default",onClick:S},{children:"重置"})),t.jsx(w,y({type:"primary",onClick:T},{children:"确定"}))]})},{children:t.jsx(Sr,y({backend:On,context:window},{children:t.jsx(n.Checkbox.Group,y({value:C,onChange:function(e){var t=h.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:h.map((function(e,r){return t.jsx(wn,y({type:"search-drawer",index:r,onMoveItem:D},{children:t.jsx(n.Checkbox,y({value:e.key,disabled:e.disabled},{children:e.label||e.key}))}),e.key)}))}))}))}))};In.displayName="ZTXK_WEBUI_DynamicDrawer";var En=r.memo(r.forwardRef(In)),jn=function(e,n){var i=e.dynamicKey,o=e.parentDynamicKey,a=e.defaultList,s=e.children,c=e.title,u=e.onCurrentListChange,l=e.hiddenOperationIcon,d=r.useState(a),f=d[0],g=d[1],h=r.useRef({});return r.useImperativeHandle(n,(function(){return{getCurrentDynamicList:function(e){return Dn(i,o,e)},setList:g,setVisible:function(e){var t;null===(t=h.current)||void 0===t||t.setVisible(e)}}})),Array.isArray(f)&&f.length>0?t.jsxs("div",y({className:"ztxk-dynamic-setting"},{children:[l?null:t.jsx("div",y({onClick:function(){var e;return null===(e=h.current)||void 0===e?void 0:e.setVisible(!0)}},{children:s||t.jsx(rt,{style:{fontSize:18,color:"#768696"}})})),t.jsx(En,{list:f,dynamicKey:i,parentDynamicKey:o,ref:h,title:c,onCurrentListChange:u})]})):null};jn.displayName="ZTXK_WEBUI_DynamicSetting";var kn=r.memo(r.forwardRef(jn));var Nn=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(Fn,y({index:r},e,{outsideState:n}),"".concat(e.name))})):null})},Pn="ztxk-webui-dynamic-form",Mn=r.memo((function(e){var i=e.form,o=e.bottomBorder,a=e.isFlex,s=void 0===a||a,c=e.wrapClassName,u=e.leftClassName;e.itemClassName;var l=e.rightWrapVisible,d=e.rightClassName,f=e.children,g=e.dynamicKey,h=e.formConfigInfo,p=e.items,m=e.outsideState,b=e.onValuesChange,O=e.onResetHandle,S=e.onSearchHandle,C=v(e,["form","bottomBorder","isFlex","wrapClassName","leftClassName","itemClassName","rightWrapVisible","rightClassName","children","dynamicKey","formConfigInfo","items","outsideState","onValuesChange","onResetHandle","onSearchHandle"]),D=function(e,t){return{configInfoItems:r.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])}}(h,p).configInfoItems,T=function(e,t,n){var i=r.useRef({}),o=r.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]);r.useEffect((function(){var e,r;n&&t&&(null===(r=null===(e=i.current)||void 0===e?void 0:e.setList)||void 0===r||r.call(e,o))}),[n,t]);var a=r.useState((function(){return Dn(t,Pn,o)})),s=a[0],c=a[1],u=r.useCallback((function(e){c(e)}),[]),l=r.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:u,newItems:l,dynamicSettingRef:i}}(D,g,h),I=T.dynamicList,E=T.onCurrentListChange,j=T.newItems,k=T.dynamicSettingRef,N=x("ztxk-form",c,{"ztxk-form--bottom-border":o}),P=x("ztxk-form__left",u,{"ztxk-form__left--flex":s}),M=x("ztxk-form__right",d),A=r.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]),R=r.useCallback((function(e,t){if(e){var r=Object.keys(e);Object.keys(A).forEach((function(e){var t,n,o=A[e]?A[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)))}))}b&&b(e,t)}),[b,A,i]),_=function(e,t){var n=t.onResetHandle,i=t.onSearchHandle;return{onResetHandleInner:r.useCallback((function(){null==e||e.resetFields(),n&&n()}),[e,n]),onSearchHandleInner:r.useCallback((function(){var t=null==e?void 0:e.getFieldsValue();i&&i(t)}),[e,i])}}(i,{onSearchHandle:S,onResetHandle:O}),L=_.onSearchHandleInner,F=_.onResetHandleInner;return t.jsxs(n.Form,y({form:i,onValuesChange:R},C,{className:N},{children:[t.jsx("div",y({className:P},{children:p?t.jsx(Nn,{items:g?j:D,outsideState:m}):f})),g?t.jsx(kn,{dynamicKey:g,parentDynamicKey:Pn,defaultList:I,onCurrentListChange:E,ref:k}):null,l?t.jsxs("div",y({className:M},{children:[t.jsx(w,y({type:"default",onClick:F},{children:"重置"})),t.jsx(w,y({type:"primary",onClick:L},{children:"查询"}))]})):null]}))}));function An(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)}Mn.displayName="ZTXK_WEBUI_Form",Mn.useForm=n.Form.useForm,Mn.Item=n.Form.Item,Mn.List=n.Form.List,Mn.ErrorList=n.Form.ErrorList,Mn.Provider=n.Form.Provider,Mn.useFormInstance=n.Form.useFormInstance,Mn.useWatch=n.Form.useWatch;var Rn=function(e){var r,n=e.children,i=e.isDisplay,o=e.isRequired,a=e.isChangeable,s=e.preNode,c=e.nextNode;e.dynamicDisabled;var u=e.hiddenBorder,l=e.singleSelectShowBorder,d=e.hiddenLabel,f=e.width,g=e.className,h=e.itemClassName,p=e.render,m=e.shouldUpdateNames;e.shouldUpdateClear;var b=e.dependencies,O=e.shouldUpdate;e.index,e.outsideState,e.shouldUpdateBeOutsideState;var S=v(e,["children","isDisplay","isRequired","isChangeable","preNode","nextNode","dynamicDisabled","hiddenBorder","singleSelectShowBorder","hiddenLabel","width","className","itemClassName","render","shouldUpdateNames","shouldUpdateClear","dependencies","shouldUpdate","index","outsideState","shouldUpdateBeOutsideState"]),w=Mn.useFormInstance();if(!1===i||"0"===i)return null;if(void 0!==o){var C=!!o,D=Array.isArray(S.rules)?S.rules:[],T=D.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=D[T])||void 0===r?void 0:r.message;D.splice(T,1,{required:C,message:I})}else D.unshift({required:C,message:"".concat(S.label," 未填!")});S.rules=D}var E={disabled:!1};void 0!==a&&(E.disabled="0"===a||!a);var j=x("ztxk-form__item",h,{"ztxk-form__item--disabled":E.disabled,"ztxk-form__item--hidden-border":u,"ztxk-form__item--hidden-label":d,"pro-form__item--single-show-border":l});if(b)return t.jsxs(Ln,y({width:f,className:g},{children:[s||null,t.jsx(Mn.Item,y({dependencies:b,noStyle:!0},{children:function(e){return t.jsx(Mn.Item,y({},S,{className:j},{children:p(E,e)}))}})),c||null]}));if(O||m){var k=m?function(e,t,r){for(var n=0;n<m.length;n++){var i=m[n];if(e[i]!==t[i])return!0}return"function"==typeof O?O(e,t,r):"boolean"==typeof O&&O}:O;return t.jsxs(Ln,y({width:f,className:g},{children:[s||null,t.jsx(Mn.Item,y({shouldUpdate:k,noStyle:!0},{children:function(e){return S.name?t.jsx(Mn.Item,y({},S,{className:j},{children:p(E,e)})):p(E,e)}})),c||null]}))}return t.jsxs(Ln,y({width:f,className:g},{children:[s||null,t.jsx(Mn.Item,y({},S,{className:j},{children:p?p(E,w):n})),c||null]}))};function _n(e){switch(e){case"half":return"16.66%";case"all":return"100%";case"double":return"66.66%";case"halfAll":return"50%";default:return"33.33%"}}function Ln(e){var r=e.className,n=e.children,i=e.width,o=x("ztxk-form__item--wrap",r);return t.jsx("div",y({className:o,style:{width:_n(i)}},{children:n}))}Rn.displayName="ZTXK_WEBUI_FormItem";var Fn=r.memo(Rn,(function(e,t){return(null==t?void 0:t.shouldUpdateBeOutsideState)?!!An(e,t,["render","shouldUpdateBeOutsideState","shouldUpdate","outsideState"])&&!t.shouldUpdateBeOutsideState(e.outsideState,t.outsideState):An(e,t)}));var zn=function(e){var i=e.loading,o=function(e){var t=r.useState(1),n=t[0],i=t[1];return r.useEffect((function(){e||i(1)}),[e]),r.useEffect((function(){if(e){var t=setInterval((function(){i((function(e){return e+1}))}),1e3);return function(){t&&clearInterval(t)}}}),[e]),{countTimer:n}}(i).countTimer;return t.jsx(n.Spin,{spinning:i,size:"large",tip:"".concat(o),className:"ztxk-container__loading",style:{display:i?"flex":"none"}})},Bn=r.memo((function(e){var r=e.children,n=e.isMarginTop,i=e.className,o=x("ztxk-container--btn-wrap",i,{"btn-wrap--margin-top":n});return t.jsx("div",y({className:o},{children:r}))})),Hn=r.memo((function(e){var r=e.className,n=e.isFlex,i=e.children,o=e.loading,a=e.footerDom,s=x("ztxk-container__content",r,{"ztxk-container__content--flex":n});return t.jsxs("div",y({className:"ztxk-container"},{children:[t.jsx(zn,{loading:o}),t.jsx("div",y({className:s},{children:i})),t.jsx(qn,{footerDom:a})]}))}));Hn.displayName="ZTXK_WEBUI_ContainerMemo",Hn.ButtonWrap=Bn;var Un=["10","20","30","100"],qn=r.memo((function(e){var r=e.children,n=e.className,i=e.align,o=void 0===i?"left":i,a=e.footerDom,s=x("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=e.loading,s=e.disabled,c=e.onClick;return t.jsx(w,y({type:o,loading:a,disabled:s,onClick:c},{children:e.text}),r)}if("pagination"===n){var u=e.total,l=e.pageSize,d=e.current,f=e.onChange,g=e.onShowSizeChange,h=e.pageSizeOptions;return t.jsx(Wn,{total:u,pageSize:l,current:d,onChange:f,onShowSizeChange:g,showTotal:function(e){return"共".concat(e,"条")},showSizeChanger:!0,pageSizeOptions:h||Un},r)}return i?i():null})),r]})):null}))})),Wn=function(e){var r=e.className,i=v(e,["className"]),o=x("ztxk-pagination",r,{});return t.jsx(n.Pagination,y({className:o},i))};var $n=function(e){var r=e.copyKey,i=e.dataSourceRef;return t.jsx(ut,{type:"icon-copy",style:{fontSize:"22px"},className:"thead-icon",title:"复制整列",onClick:function(){return function(e,t){var r,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===(r=navigator.clipboard)||void 0===r?void 0:r.writeText(o))||void 0===i||i.then((function(){n.message.info("复制成功!")}));else{var a=document.createElement("textarea");a.value=o,document.body.appendChild(a),a.select(),document.execCommand?(n.message.info("复制成功!"),document.execCommand("copy")):n.message.info("复制失败!请手工复制\n ".concat(o)),document.body.removeChild(a)}}catch(e){n.message.info("复制失败!请手工复制\n ".concat(o))}}}(r,i.current)}})};function Kn(e,r){var n=r.currentDynamicList,i=r.dataSourceRef,o=r.onEditableSave,a=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=e.find((function(e){return e.key===r||(null==e?void 0:e.dataIndex)===r}));i&&n.push(i)})),e.filter((function(e){return e.fixed})).forEach((function(e){"left"===e.fixed?r.push(e):"right"===e.fixed&&i.push(e)})),b(b(b([],r,!0),n,!0),i,!0)}return e}(e,n),s=[];return Array.isArray(a)&&a.forEach((function(e){var r=y({},e),n=r.isCopy,a=r.editable,c=r.editableConfig,u=r.title,l=r.key,d=l||(null==r?void 0:r.dataIndex);n&&(r.title=t.jsxs(t.Fragment,{children:[u,t.jsx($n,{copyKey:!0===n?l:n,dataSourceRef:i})]})),a&&(r.onCell=function(e,t){return{record:e,index:t,editable:a,editableConfig:c,dataIndex:d,title:u,onEditableSave:o}}),s.push(r)})),{newColumns:s}}var Yn="ztxk-webui-dynamic-table";var Vn={body:{row:function(e){var r=e.className,n=v(e,["className"]),i=x("ztxk-table__enhance-row",r);return t.jsx("tr",y({className:i},n))},cell:function(e){var n=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 u=e.children,l=v(e,["record","index","editable","editableConfig","dataIndex","title","onEditableSave","onMouseEnter","onMouseLeave","children"]),d=r.useState(n?n[s]:void 0),f=d[0],g=d[1],h=function(){var e=r.useState(!1),t=e[0],n=e[1];return{editing:t,toggleEdit:function(){n(!t)}}}(),p=h.editing,m=h.toggleEdit,b=function(e){var t=r.useRef();return r.useEffect((function(){e&&t.current.focus()}),[e]),t}(p),O=function(e){var t;if(!c)throw Error("如果开启了editable, 那么必须传递 onEditableSave属性 来更改表格数据!");m(),c(y(y({},n),((t={})[s]=f,t)),i,s)};if(o){var S=a||{type:"input"},x=S.type,w=v(S,["type"]),D=null;return"input"===x&&(D=t.jsx(C,y({value:f,onChange:function(e){g(e.target.value)},onPressEnter:O,onBlur:O,ref:b},w))),"inputNumber"===x&&(D=t.jsx(E,y({value:f,onChange:function(e){g(e)},onPressEnter:O,onBlur:O,ref:b},w))),t.jsx("td",y({},l,{children:p?t.jsx("div",y({className:"ztxk-table__enhance-cell"},{children:D})):t.jsx("div",y({className:"ztxk-table__enhance-cell-wrap",onClick:m},{children:u}))}))}return t.jsx("td",y({},l,{children:u}))}}},Xn=r.memo((function(e){var i=e.className,o=e.bordered,a=void 0===o||o,s=e.pagination,c=void 0!==s&&s,u=e.dynamicKey,l=e.columns,d=e.dataSource,f=e.onTableChange,g=e.isEdit;e.isMove;var h=v(e,["className","bordered","pagination","dynamicKey","columns","dataSource","onTableChange","isEdit","isMove"]),p=x("ztxk-table",i),m=r.useRef();r.useEffect((function(){m.current=d}),[d]);var b=function(e,t){var n=r.useRef({}),i=r.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=r.useState((function(){return Dn(t,Yn,i)})),a=o[0],s=o[1],c=r.useCallback((function(e){s(e)}),[]);return{defaultDynamicList:i,currentDynamicList:a,onCurrentListChange:c,dynamicSettingRef:n}}(l,u),O=b.defaultDynamicList,S=b.onCurrentListChange,w=b.currentDynamicList,C=b.dynamicSettingRef,D=function(e,t){return r.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}))}),[t])}(m,f),T=Kn(l,{currentDynamicList:w,dataSource:d,dataSourceRef:m,onEditableSave:D}).newColumns;return t.jsxs("div",{children:[t.jsx(n.Table,y({className:p,bordered:a,pagination:c,dataSource:d,columns:T,components:g?Vn:null},h)),u?t.jsx(kn,{parentDynamicKey:Yn,dynamicKey:u,defaultList:O,onCurrentListChange:S,ref:C,hiddenOperationIcon:!0}):null]})}));Xn.displayName="ZTXK_WEBUI_Table",Xn.SELECTION_COLUMN=n.Table.SELECTION_COLUMN,Xn.EXPAND_COLUMN=n.Table.EXPAND_COLUMN,Xn.SELECTION_ALL=n.Table.SELECTION_ALL,Xn.SELECTION_INVERT=n.Table.SELECTION_INVERT,Xn.SELECTION_NONE=n.Table.SELECTION_NONE,Xn.Column=n.Table.Column,Xn.ColumnGroup=n.Table.ColumnGroup,Xn.Summary=n.Table.Summary;var Gn=r.memo((function(e){var r,i=e.className,o=e.isHeader,a=e.isContent,s=e.marginTop,c=void 0!==s&&s,u=e.marginBottom,l=void 0===u||u,d=v(e,["className","isHeader","isContent","marginTop","marginBottom"]),f=x("ztxk-tabs",i,((r={})["ztxk-tabs--header"]=o,r["ztxk-tabs--content"]=a,r["ztxk-tabs--marginTop"]=c,r["ztxk-tabs--marginBottom"]=l,r));return t.jsx(n.Tabs,y({type:o?"editable-card":a?"card":void 0,hideAdd:!!o||void 0,className:f},d))}));Gn.displayName="ZTXK_WEBUI_Tabs",Gn.TabPane=n.Tabs.TabPane;var Zn=function(e){var r=e.children,i=e.layoutSliderRender,o=e.layoutHeaderRender;return t.jsxs(n.Layout,y({className:"zmdms-container"},{children:[i,t.jsxs(n.Layout,y({className:"zmdms-content"},{children:[o,t.jsx(n.Layout.Content,y({className:"zmdms-content--content"},{children:r}))]}))]}))};Zn.displayName="ZTXK_WEBUI_AppLayout";var Jn=r.memo(Zn),Qn=function(e){var n=e.tabs,i=e.activeTab,o=e.deleteTab,a=e.setActiveTab,s=r.useMemo((function(){return Array.isArray(n)?n.map((function(e){return{key:e.key,label:t.jsx(h.Link,y({to:e.path},{children:e.label}))}})):[]}),[n]);return t.jsx(Gn,{items:s,activeKey:i,isHeader:!0,onTabClick:function(e){a(e)},onEdit:function(e){o(e)}})},ei=function(){return t.jsx("div",{children:"SettingCom"})},ti=function(e){var r=e.tabs,i=e.activeTab,o=e.deleteTab,a=e.setActiveTab;return t.jsxs(n.Layout.Header,y({className:"zmdms-content--header"},{children:[t.jsx(Qn,{tabs:r,activeTab:i,deleteTab:o,setActiveTab:a}),t.jsx(ei,{})]}))};ti.displayName="ZTXK_WEBUI_AppLayoutHeader";var ri=r.memo(ti),ni=r.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"})}))})),ii=function(e){var i=e.userMenus,o=e.onMouseEnter,a=e.onMainLinkClick,s=e.addTab,c=r.useCallback((function(e){return"index"===e.type?t.jsx(h.Link,y({to:e.path,onClick:function(){s&&s({key:e.path,path:e.path,label:e.name})}},{children:e.name})):"/"===e.path?e.name:t.jsx(h.Link,y({to:e.path,onClick:function(){s&&s({key:e.path,path:e.path,label:e.name})}},{children:e.name}))}),[s]),u=r.useMemo((function(){return Array.isArray(i)?i.map((function(e){return{label:c(e),title:e.name,key:e.id,icon:e.source?t.jsx(ut,{type:e.source,style:{fontSize:"18px"}}):null}})):(console.error("用户主菜单没有按预期传入对应数据!"),[])}),[i,c]),l=r.useCallback((function(e){var t=e.key;a(t)}),[a]);return t.jsx(n.Menu,{className:"zmdms-menu--main",items:u,inlineIndent:10,mode:"inline",onMouseEnter:o,onClick:l})},oi=r.memo(r.forwardRef((function(e,i){var o=e.marginLeft,a=e.subMenus,s=e.subMenuWidth,c=e.layoutSiderRef,u=e.addTab,l=r.useState(),d=l[0],f=l[1],g=r.useState(),p=g[0],m=g[1],v=r.useCallback((function(){m((function(e){return c.current.style.marginRight=e?0:"".concat(s,"px"),!e}))}),[c,s]),b=t.jsxs(w,y({type:"link",onClick:v},{children:[t.jsx(ut,{type:"icon-toggle",style:{fontSize:"18px"}}),p?"浮动":"固定"]}));r.useImperativeHandle(i,(function(){return{setVisible:function(e){p||f(e)}}}));var O=r.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={label:"/"===r.path?r.name:t.jsx(h.Link,y({to:r.path,onClick:function(){u({key:r.path,path:r.path,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(o)})),n)};return e(a)}),[a,u]);return t.jsx(n.Drawer,y({mask:!1,placement:"left",width:s,zIndex:99,closable:!1,open:d,className:"zmdms-menu--sub",style:{marginLeft:o},footer:b},{children:t.jsx(n.Menu,{inlineIndent:10,mode:"inline",items:O})}))}))),ai=[],si=r.memo((function(e){var n=e.width,i=e.subMenuWidth,o=e.layoutSiderRef,a=e.userMenus,s=e.userSubMenus,c=e.addTab,u=e.logo,l=r.useRef({}),d=r.useState(ai),f=d[0],g=d[1],h=r.useCallback((function(){var e;null===(e=l.current)||void 0===e||e.setVisible(!0)}),[]),p=r.useCallback((function(e){e?s&&g(s[e]):g(ai)}),[s]),m=r.useCallback((function(){var e;null===(e=l.current)||void 0===e||e.setVisible(!1)}),[]);return t.jsxs("div",y({className:"zmdms-menu",onMouseLeave:m},{children:[t.jsx(ni,{logo:u}),t.jsx(ii,{userMenus:a,onMouseEnter:h,onMainLinkClick:p,addTab:c}),t.jsx(oi,{ref:l,marginLeft:n,subMenuWidth:i,subMenus:f,layoutSiderRef:o,addTab:c})]}))})),ci=function(e){var i=e.siderWidth,o=void 0===i?118:i,a=e.subMenuWidth,s=void 0===a?162:a,c=e.userMenus,u=e.userSubMenus,l=e.addTab,d=e.siderBg,f=e.logo,g=r.useRef();return t.jsx(n.Layout.Sider,y({className:"zmdms-sider",collapsedWidth:"0",collapsible:!0,trigger:null,width:o,ref:g,style:{backgroundImage:d}},{children:t.jsx(si,{width:o,subMenuWidth:s,layoutSiderRef:g,userMenus:c,userSubMenus:u,addTab:l,logo:f})}))};ci.displayName="ZTXK_WEBUI_AppLayoutSider";var ui=r.memo(ci);Object.defineProperty(e,"Affix",{enumerable:!0,get:function(){return n.Affix}}),Object.defineProperty(e,"Alert",{enumerable:!0,get:function(){return n.Alert}}),Object.defineProperty(e,"Anchor",{enumerable:!0,get:function(){return n.Anchor}}),Object.defineProperty(e,"AutoComplete",{enumerable:!0,get:function(){return n.AutoComplete}}),Object.defineProperty(e,"Avatar",{enumerable:!0,get:function(){return n.Avatar}}),Object.defineProperty(e,"BackTop",{enumerable:!0,get:function(){return n.BackTop}}),Object.defineProperty(e,"Badge",{enumerable:!0,get:function(){return n.Badge}}),Object.defineProperty(e,"Breadcrumb",{enumerable:!0,get:function(){return n.Breadcrumb}}),Object.defineProperty(e,"Card",{enumerable:!0,get:function(){return n.Card}}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return n.Carousel}}),Object.defineProperty(e,"Cascader",{enumerable:!0,get:function(){return n.Cascader}}),Object.defineProperty(e,"Checkbox",{enumerable:!0,get:function(){return n.Checkbox}}),Object.defineProperty(e,"Collapse",{enumerable:!0,get:function(){return n.Collapse}}),Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return n.Comment}}),Object.defineProperty(e,"ConfigProvider",{enumerable:!0,get:function(){return n.ConfigProvider}}),Object.defineProperty(e,"Descriptions",{enumerable:!0,get:function(){return n.Descriptions}}),Object.defineProperty(e,"Divider",{enumerable:!0,get:function(){return n.Divider}}),Object.defineProperty(e,"Drawer",{enumerable:!0,get:function(){return n.Drawer}}),Object.defineProperty(e,"Dropdown",{enumerable:!0,get:function(){return n.Dropdown}}),Object.defineProperty(e,"Empty",{enumerable:!0,get:function(){return n.Empty}}),Object.defineProperty(e,"Grid",{enumerable:!0,get:function(){return n.Grid}}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return n.Image}}),Object.defineProperty(e,"Layout",{enumerable:!0,get:function(){return n.Layout}}),Object.defineProperty(e,"List",{enumerable:!0,get:function(){return n.List}}),Object.defineProperty(e,"Mentions",{enumerable:!0,get:function(){return n.Mentions}}),Object.defineProperty(e,"Menu",{enumerable:!0,get:function(){return n.Menu}}),Object.defineProperty(e,"Modal",{enumerable:!0,get:function(){return n.Modal}}),Object.defineProperty(e,"PageHeader",{enumerable:!0,get:function(){return n.PageHeader}}),Object.defineProperty(e,"Popconfirm",{enumerable:!0,get:function(){return n.Popconfirm}}),Object.defineProperty(e,"Popover",{enumerable:!0,get:function(){return n.Popover}}),Object.defineProperty(e,"Progress",{enumerable:!0,get:function(){return n.Progress}}),Object.defineProperty(e,"Radio",{enumerable:!0,get:function(){return n.Radio}}),Object.defineProperty(e,"Rate",{enumerable:!0,get:function(){return n.Rate}}),Object.defineProperty(e,"Result",{enumerable:!0,get:function(){return n.Result}}),Object.defineProperty(e,"Segmented",{enumerable:!0,get:function(){return n.Segmented}}),Object.defineProperty(e,"Select",{enumerable:!0,get:function(){return n.Select}}),Object.defineProperty(e,"Skeleton",{enumerable:!0,get:function(){return n.Skeleton}}),Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return n.Slider}}),Object.defineProperty(e,"Space",{enumerable:!0,get:function(){return n.Space}}),Object.defineProperty(e,"Spin",{enumerable:!0,get:function(){return n.Spin}}),Object.defineProperty(e,"Statistic",{enumerable:!0,get:function(){return n.Statistic}}),Object.defineProperty(e,"Steps",{enumerable:!0,get:function(){return n.Steps}}),Object.defineProperty(e,"Switch",{enumerable:!0,get:function(){return n.Switch}}),Object.defineProperty(e,"Tag",{enumerable:!0,get:function(){return n.Tag}}),Object.defineProperty(e,"Timeline",{enumerable:!0,get:function(){return n.Timeline}}),Object.defineProperty(e,"Tooltip",{enumerable:!0,get:function(){return n.Tooltip}}),Object.defineProperty(e,"Transfer",{enumerable:!0,get:function(){return n.Transfer}}),Object.defineProperty(e,"Tree",{enumerable:!0,get:function(){return n.Tree}}),Object.defineProperty(e,"TreeSelect",{enumerable:!0,get:function(){return n.TreeSelect}}),Object.defineProperty(e,"Typography",{enumerable:!0,get:function(){return n.Typography}}),Object.defineProperty(e,"Upload",{enumerable:!0,get:function(){return n.Upload}}),Object.defineProperty(e,"message",{enumerable:!0,get:function(){return n.message}}),Object.defineProperty(e,"notification",{enumerable:!0,get:function(){return n.notification}}),e.AppLayout=Jn,e.AppLayoutHeader=ri,e.AppLayoutSider=ui,e.Button=w,e.Calendar=B,e.Container=Hn,e.DatePicker=z,e.DynamicSetting=kn,e.Footer=qn,e.Form=Mn,e.FormItem=Fn,e.Icon=ut,e.Input=C,e.InputNumber=E,e.Login=W,e.Pagination=Wn,e.ProtectedRoute=function(e){var r=e.hasAuth,n=void 0===r||r,i=e.element,o=e.backLogin;return g.getToken()?n?i:t.jsx("div",{children:"您没有权限访问当前页面!"}):(console.log("当前页面需要登录! 请登录成功后再进行访问!"),o())},e.SuspenseComponent=function(e){var n=e.children;return t.jsx(r.Suspense,y({fallback:t.jsx("div",{children:"loading..."})},{children:n}))},e.Table=Xn,e.Tabs=Gn,e.TimePicker=H,e.ZtxkContext=U}));
|
|
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}()}(S);var x=O(S.exports),w=function(e){var i,o=e.agentClick,a=void 0===o||o,s=e.type,c=e.className,u=e.disabled,l=e.size,d=e.danger,f=e.onClick,g=v(e,["agentClick","type","className","disabled","size","danger","onClick"]),h=r.useRef(0),p=x("zt-btn",c,((i={})["zt-btn-".concat(s)]=s,i["zt-btn-disabled"]=u,i["zt-btn-".concat(l)]=l,i["zt-btn-dangerous"]=d,i));return t.jsx(n.Button,y({className:p,type:s,disabled:u,size:l,danger:d,onClick:function(e){if(a){var t=Date.now();0===h.current||t-h.current>300?(h.current=t,f&&f(e)):(h.current=t,console.log("点击按钮过于频繁"))}else f&&f(e)}},g))};w.displayName="ZTXK_WEBUI_Button";var C=r.memo(r.forwardRef((function(e,r){return t.jsx(n.Input,y({},e,{ref:r}))})));C.displayName="ZTXK_WEBUI_Input",C.Group=n.Input.Group,C.Search=n.Input.Search,C.TextArea=n.Input.TextArea,C.Password=n.Input.Password;function D(e,t,r){return e&&!isNaN(Number(e))&&!t.current&&r?Number(e).toFixed(r):e}function T(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 I=function(e,i){var o=e.formatterType,a=(e.currencySymbol,e.formatter),s=e.parser,c=e.precision,u=e.onBlur,l=e.onFocus,d=v(e,["formatterType","currencySymbol","formatter","parser","precision","onBlur","onFocus"]),f=r.useRef(!1),g=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}(D(e,r,n))},parser:function(e){return T(e.replace(/(,*)/g,""),n)},precision:3}:"percent"===e?{formatter:function(e){var t=D(e,r,n);return"".concat(t,"%")},parser:function(e){return e?e.replace("%",""):Number(e)},precision:2}:"thousands"===e?{formatter:function(e){var t=D(e,r,n);return"".concat(t,"‰")},parser:function(e){return e?e.replace("‰",""):Number(e)},precision:2}:{formatter:function(e){return D(e,r,n)},parser:function(e){return T(e,n)},precision:n}}(o,0,f,c),h=g.formatter,p=g.parser,m=g.precision;return t.jsx(n.InputNumber,y({formatter:a||h,parser:s||p,precision:null!=c?c:m,onBlur:function(e){f.current=!1,u&&u(e)},onFocus:function(e){f.current=!0,l&&l(e)}},d,{ref:i}))};I.displayName="ZTXK_WEBUI_InputNumber";var E=r.memo(r.forwardRef(I)),j={};function k(e,t){}function N(e,t){}function P(e,t,r){t||j[r]||(e(!1,r),j[r]=!0)}function M(e,t){P(k,e,t)}function A(e,t){P(N,e,t)}M.preMessage=function(e){},M.resetWarned=function(){j={}},M.noteOnce=A,i.extend(l),i.extend(u),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 R={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"},_=function(e){return R[e]||e.split("_")[0]},L=function(){A(!1,"Not match any format. Please help to fire a issue about this.")},F={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(_(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(_(e)).weekday(0)},getWeek:function(e,t){return t.locale(_(e)).week()},getShortWeekDays:function(e){return i().locale(_(e)).localeData().weekdaysMin()},getShortMonths:function(e){return i().locale(_(e)).localeData().monthsShort()},format:function(e,t,r){return t.locale(_(e)).format(r)},parse:function(e,t,r){for(var n=_(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],u=s.split("-")[1],l=i(c,"YYYY").startOf("year").locale(n),d=0;d<=52;d+=1){var f=l.add(d,"week");if(f.format("Wo")===u)return f}return L(),null}var g=i(s,a).locale(n);if(g.isValid())return g}return t&&L(),null}}},z=d(F),B=f(F),H=r.forwardRef((function(e,r){return t.jsx(z,y({},e,{picker:"time",mode:void 0,ref:r}))}));H.displayName="TimePicker";var U=r.createContext({locale:"zh-cn"});var q=n.Form.Item,W=function(e){var r=e.loginLogo,i=e.loginBg,o=e.onFinishHandle,a=e.loading,s=n.Form.useForm()[0];return t.jsx("div",y({className:"login-wrap",style:{backgroundImage:"url(".concat(i,")")}},{children:t.jsxs(n.Form,y({form:s,requiredMark:!1,layout:"vertical",className:"login-form",onFinish:function(e){o&&o(e)}},{children:[t.jsx("div",y({className:"login-logo"},{children:t.jsx("img",{src:r,title:"浙商中拓ERP",alt:"zszt_logo"})})),t.jsx(q,y({label:"请输入您的账号",name:"username",rules:[{required:!0,message:"请输入您的账号"}]},{children:t.jsx(C,{size:"large",prefix:t.jsx(ut,{type:"icon-yonghu",style:{fontSize:"14px",color:"rgba(0,0,0,.65)"}})})})),t.jsx(q,y({label:"请输入您的密码",name:"password",rules:[{required:!0,message:"请输入您的密码"}]},{children:t.jsx(C.Password,{size:"large",prefix:t.jsx(ut,{type:"icon-mima",style:{fontSize:"14px",color:"rgba(0,0,0,.65)"}})})})),t.jsx(q,{children:t.jsx(w,y({htmlType:"submit",block:!0,className:"form__item--button",loading:a},{children:"登录"}))}),t.jsxs("div",y({className:"form__item--remember"},{children:[t.jsx(q,y({name:"remember",valuePropName:"checked"},{children:t.jsx(n.Checkbox,{children:"记住密码"})})),t.jsx("div",y({className:"form__item--remember-forget"},{children:"忘记密码"}))]}))]}))}))};W.displayName="ZTXK_WEBUI_Login";var $=r.createContext({});function K(e){return K="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},K(e)}function Y(e){var t=function(e,t){if("object"!==K(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==K(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===K(t)?t:String(t)}function V(e,t,r){return(t=Y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X(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 G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?X(Object(r),!0).forEach((function(t){V(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Z(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 J(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,u=!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){u=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Z(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)?Z(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 Q(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 ee(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 te(e){return e<=1?"".concat(100*Number(e),"%"):e}function re(e){return 1===e.length?"0"+e:String(e)}function ne(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 ie(e){return oe(e)/255}function oe(e){return parseInt(e,16)}var ae={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 se(e){var t,r,n,i={r:0,g:0,b:0},o=1,a=null,s=null,c=null,u=!1,l=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(ae[e])e=ae[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var r=de.rgb.exec(e);if(r)return{r:r[1],g:r[2],b:r[3]};if(r=de.rgba.exec(e),r)return{r:r[1],g:r[2],b:r[3],a:r[4]};if(r=de.hsl.exec(e),r)return{h:r[1],s:r[2],l:r[3]};if(r=de.hsla.exec(e),r)return{h:r[1],s:r[2],l:r[3],a:r[4]};if(r=de.hsv.exec(e),r)return{h:r[1],s:r[2],v:r[3]};if(r=de.hsva.exec(e),r)return{h:r[1],s:r[2],v:r[3],a:r[4]};if(r=de.hex8.exec(e),r)return{r:oe(r[1]),g:oe(r[2]),b:oe(r[3]),a:ie(r[4]),format:t?"name":"hex8"};if(r=de.hex6.exec(e),r)return{r:oe(r[1]),g:oe(r[2]),b:oe(r[3]),format:t?"name":"hex"};if(r=de.hex4.exec(e),r)return{r:oe(r[1]+r[1]),g:oe(r[2]+r[2]),b:oe(r[3]+r[3]),a:ie(r[4]+r[4]),format:t?"name":"hex8"};if(r=de.hex3.exec(e),r)return{r:oe(r[1]+r[1]),g:oe(r[2]+r[2]),b:oe(r[3]+r[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(fe(e.r)&&fe(e.g)&&fe(e.b)?(t=e.r,r=e.g,n=e.b,i={r:255*ee(t,255),g:255*ee(r,255),b:255*ee(n,255)},u=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):fe(e.h)&&fe(e.s)&&fe(e.v)?(a=te(e.s),s=te(e.v),i=function(e,t,r){e=6*ee(e,360),t=ee(t,100),r=ee(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),u=!0,l="hsv"):fe(e.h)&&fe(e.s)&&fe(e.l)&&(a=te(e.s),c=te(e.l),i=function(e,t,r){var n,i,o;if(e=ee(e,360),t=ee(t,100),r=ee(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=ne(s,a,e+1/3),i=ne(s,a,e),o=ne(s,a,e-1/3)}return{r:255*n,g:255*i,b:255*o}}(e.h,a,c),u=!0,l="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:u,format:e.format||l,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 ce="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),ue="[\\s|\\(]+(".concat(ce,")[,|\\s]+(").concat(ce,")[,|\\s]+(").concat(ce,")\\s*\\)?"),le="[\\s|\\(]+(".concat(ce,")[,|\\s]+(").concat(ce,")[,|\\s]+(").concat(ce,")[,|\\s]+(").concat(ce,")\\s*\\)?"),de={CSS_UNIT:new RegExp(ce),rgb:new RegExp("rgb"+ue),rgba:new RegExp("rgba"+le),hsl:new RegExp("hsl"+ue),hsla:new RegExp("hsla"+le),hsv:new RegExp("hsv"+ue),hsva:new RegExp("hsva"+le),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 fe(e){return Boolean(de.CSS_UNIT.exec(String(e)))}var ge=2,he=.16,pe=.05,me=.05,ye=.15,ve=5,be=4,Oe=[{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 Se(e){var t=function(e,t,r){e=ee(e,255),t=ee(t,255),r=ee(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 xe(e){var t=e.r,r=e.g,n=e.b;return"#".concat(function(e,t,r,n){var i=[re(Math.round(e).toString(16)),re(Math.round(t).toString(16)),re(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 we(e,t,r){var n;return(n=Math.round(e.h)>=60&&Math.round(e.h)<=240?r?Math.round(e.h)-ge*t:Math.round(e.h)+ge*t:r?Math.round(e.h)+ge*t:Math.round(e.h)-ge*t)<0?n+=360:n>=360&&(n-=360),n}function Ce(e,t,r){return 0===e.h&&0===e.s?e.s:((n=r?e.s-he*t:t===be?e.s+he:e.s+pe*t)>1&&(n=1),r&&t===ve&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)));var n}function De(e,t,r){var n;return(n=r?e.v+me*t:e.v-ye*t)>1&&(n=1),Number(n.toFixed(2))}function Te(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],n=se(e),i=ve;i>0;i-=1){var o=Se(n),a=xe(se({h:we(o,i,!0),s:Ce(o,i,!0),v:De(o,i,!0)}));r.push(a)}r.push(xe(n));for(var s=1;s<=be;s+=1){var c=Se(n),u=xe(se({h:we(c,s),s:Ce(c,s),v:De(c,s)}));r.push(u)}return"dark"===t.theme?Oe.map((function(e){var n,i,o,a=e.index,s=e.opacity;return xe((n=se(t.backgroundColor||"#141414"),i=se(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 Ie={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"},Ee={},je={};Object.keys(Ie).forEach((function(e){Ee[e]=Te(Ie[e]),Ee[e].primary=Ee[e][5],je[e]=Te(Ie[e],{theme:"dark",backgroundColor:"#141414"}),je[e].primary=je[e][5]}));var ke="data-rc-order",Ne="rc-util-key",Pe=new Map;function Me(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):Ne}function Ae(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Re(e){return Array.from((Pe.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function _e(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(ke,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=Ae(t),a=o.firstChild;if(n){if("queue"===n){var s=Re(o).filter((function(e){return["prepend","prependQueue"].includes(e.getAttribute(ke))}));if(s.length)return o.insertBefore(i,s[s.length-1].nextSibling),i}o.insertBefore(i,a)}else o.appendChild(i);return i}function Le(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var r=Pe.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=_e("",t),i=n.parentNode;Pe.set(e,i),e.removeChild(n)}}(Ae(r),r);var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Re(Ae(t)).find((function(r){return r.getAttribute(Me(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=_e(e,r);return s.setAttribute(Me(r),t),s}function Fe(e,t){M(e,"[@ant-design/icons] ".concat(t))}function ze(e){return"object"===K(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===K(e.icon)||"function"==typeof e.icon)}function Be(){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 He(e,t,n){return n?r.createElement(e.tag,G(G({key:t},Be(e.attrs)),n),(e.children||[]).map((function(r,n){return He(r,"".concat(t,"-").concat(e.tag,"-").concat(n))}))):r.createElement(e.tag,G({key:t},Be(e.attrs)),(e.children||[]).map((function(r,n){return He(r,"".concat(t,"-").concat(e.tag,"-").concat(n))})))}function Ue(e){return Te(e)[0]}function qe(e){return e?Array.isArray(e)?e:[e]:[]}var We={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},$e=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=r.useContext($).csp;r.useEffect((function(){Le(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])},Ke=["icon","className","onClick","style","primaryColor","secondaryColor"],Ye={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Ve=function(e){var t=e.icon,r=e.className,n=e.onClick,i=e.style,o=e.primaryColor,a=e.secondaryColor,s=Q(e,Ke),c=Ye;if(o&&(c={primaryColor:o,secondaryColor:a||Ue(o)}),$e(),Fe(ze(t),"icon should be icon definiton, but got ".concat(t)),!ze(t))return null;var u=t;return u&&"function"==typeof u.icon&&(u=G(G({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),He(u.icon,"svg-".concat(u.name),G({className:r,onClick:n,style:i,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s))};Ve.displayName="IconReact",Ve.getTwoToneColors=function(){return G({},Ye)},Ve.setTwoToneColors=function(e){var t=e.primaryColor,r=e.secondaryColor;Ye.primaryColor=t,Ye.secondaryColor=r||Ue(t),Ye.calculated=!!r};var Xe=Ve;function Ge(e){var t=J(qe(e),2),r=t[0],n=t[1];return Xe.setTwoToneColors({primaryColor:r,secondaryColor:n})}var Ze=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Ge("#1890ff");var Je=m.forwardRef((function(e,t){var r,n=e.className,i=e.icon,o=e.spin,a=e.rotate,s=e.tabIndex,c=e.onClick,u=e.twoToneColor,l=Q(e,Ze),d=m.useContext($),f=d.prefixCls,g=void 0===f?"anticon":f,h=d.rootClassName,p=x(h,g,(V(r={},"".concat(g,"-").concat(i.name),!!i.name),V(r,"".concat(g,"-spin"),!!o||"loading"===i.name),r),n),y=s;void 0===y&&c&&(y=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=J(qe(u),2),O=b[0],S=b[1];return m.createElement("span",G(G({role:"img","aria-label":i.name},l),{},{ref:t,tabIndex:y,onClick:c,className:p}),m.createElement(Xe,{icon:i,primaryColor:O,secondaryColor:S,style:v}))}));Je.displayName="AntdIcon",Je.getTwoToneColor=function(){var e=Xe.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Je.setTwoToneColor=Ge;var Qe=Je,et={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"},tt=function(e,t){return m.createElement(Qe,G(G({},e),{},{ref:t,icon:et}))};tt.displayName="SettingOutlined";var rt=m.forwardRef(tt),nt=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],it=m.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,u=e.children,l=Q(e,nt);Fe(Boolean(n||u),"Should have `component` prop or `children`."),$e();var d=m.useContext($),f=d.prefixCls,g=void 0===f?"anticon":f,h=d.rootClassName,p=x(h,g,r),y=x(V({},"".concat(g,"-spin"),!!o)),v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=G(G({},We),{},{className:y,style:v,viewBox:i});i||delete b.viewBox;var O=s;return void 0===O&&c&&(O=-1),m.createElement("span",G(G({role:"img"},l),{},{ref:t,tabIndex:O,onClick:c,className:p}),n?m.createElement(n,G({},b),u):u?(Fe(Boolean(i)||1===m.Children.count(u)&&m.isValidElement(u)&&"use"===m.Children.only(u).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),m.createElement("svg",G(G({},b),{},{viewBox:i}),u)):null)}));it.displayName="AntdIcon";var ot=it,at=["type","children"],st=new Set;function ct(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&&!st.has(t))){var i=document.createElement("script");i.setAttribute("src",n),i.setAttribute("data-namespace",n),e.length>r+1&&(i.onload=function(){ct(e,r+1)},i.onerror=function(){ct(e,r+1)}),st.add(n),document.body.appendChild(i)}}var ut=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)?ct(t.reverse()):ct([t]));var i=m.forwardRef((function(e,t){var r=e.type,i=e.children,o=Q(e,at),a=null;return e.type&&(a=m.createElement("use",{xlinkHref:"#".concat(r)})),i&&(a=i),m.createElement(ot,G(G(G({},n),o),{},{ref:t}),a)}));return i.displayName="Iconfont",i}({scriptUrl:["//at.alicdn.com/t/c/font_4078313_tg40lf02k9.js"]});const lt=r.createContext({dragDropManager:void 0});function dt(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 ft="function"==typeof Symbol&&Symbol.observable||"@@observable",gt=function(){return Math.random().toString(36).substring(7).split("").join(".")},ht={INIT:"@@redux/INIT"+gt(),REPLACE:"@@redux/REPLACE"+gt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+gt()}};function pt(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(dt(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(dt(1));return r(pt)(e,t)}if("function"!=typeof e)throw new Error(dt(2));var i=e,o=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){if(c)throw new Error(dt(3));return o}function d(e){if("function"!=typeof e)throw new Error(dt(4));if(c)throw new Error(dt(5));var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error(dt(6));t=!1,u();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(dt(7));if(void 0===e.type)throw new Error(dt(8));if(c)throw new Error(dt(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:ht.INIT}),(n={dispatch:f,subscribe:d,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(dt(10));i=e,f({type:ht.REPLACE})}})[ft]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(dt(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[ft]=function(){return this},e},n}function mt(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 yt(e){return"object"==typeof e}const vt="dnd-core/INIT_COORDS",bt="dnd-core/BEGIN_DRAG",Ot="dnd-core/PUBLISH_DRAG_SOURCE",St="dnd-core/HOVER",xt="dnd-core/DROP",wt="dnd-core/END_DRAG";function Ct(e,t){return{type:vt,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const Dt={type:vt,payload:{clientOffset:null,sourceClientOffset:null}};function Tt(e){return function(t=[],r={publishSource:!0}){const{publishSource:n=!0,clientOffset:i,getSourceClientOffset:o}=r,a=e.getMonitor(),s=e.getRegistry();e.dispatch(Ct(i)),function(e,t,r){mt(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){mt(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(Dt);let u=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");!function(e){mt("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(o),u=o(c)}e.dispatch(Ct(i,u));const l=s.getSource(c).beginDrag(a,c);if(null==l)return;!function(e){mt(yt(e),"Item must be an object.")}(l),s.pinSource(c);const d=s.getSourceType(c);return{type:bt,payload:{itemType:d,item:l,sourceId:c,clientOffset:i||null,sourceClientOffset:u||null,isSourcePublic:!!n}}}}function It(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Et(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){It(e,t,r[t])}))}return e}function jt(e){return function(t={}){const r=e.getMonitor(),n=e.getRegistry();!function(e){mt(e.isDragging(),"Cannot call drop while not dragging."),mt(!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){mt(void 0===e||yt(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:xt,payload:{dropResult:Et({},t,a)}};e.dispatch(s)}))}}function kt(e){return function(){const t=e.getMonitor(),r=e.getRegistry();!function(e){mt(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:wt}}}function Nt(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function Pt(e){return function(t,{clientOffset:r}={}){!function(e){mt(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];Nt(t.getTargetType(i),r)||e.splice(n,1)}}(n,o,i.getItemType()),function(e,t,r){mt(t.isDragging(),"Cannot call hover while not dragging."),mt(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t<e.length;t++){const n=e[t];mt(e.lastIndexOf(n)===t,"Expected targetIds to be unique in the passed array.");mt(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:St,payload:{targetIds:n,clientOffset:r||null}}}}function Mt(e){return function(){if(e.getMonitor().isDragging())return{type:Ot}}}class At{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:Tt(e),publishDragSource:Mt(e),hover:Pt(e),drop:jt(e),endDrag:kt(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 Rt(e,t){return{x:e.x-t.x,y:e.y-t.y}}const _t=[],Lt=[];_t.__IS_NONE__=!0,Lt.__IS_ALL__=!0;class Ft{subscribeToStateChange(e,t={}){const{handlerIds:r}=t;mt("function"==typeof e,"listener must be a function."),mt(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!==_t&&(e===Lt||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){mt("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 mt(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(mt(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return Nt(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(mt(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&&!Nt(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?Rt((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?Rt(t,r):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const zt="undefined"!=typeof global?global:self,Bt=zt.MutationObserver||zt.WebKitMutationObserver;function Ht(e){return function(){const t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}const Ut="function"==typeof Bt?function(e){let t=1;const r=new Bt(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}:Ht;class qt{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 Wt=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=Ut(this.flush),this.requestErrorThrow=Ht((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},$t=new class{create(e){const t=this.freeTasks,r=t.length?t.pop():new qt(this.onError,(e=>t[t.length]=e));return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}(Wt.registerPendingError);const Kt="dnd-core/ADD_SOURCE",Yt="dnd-core/ADD_TARGET",Vt="dnd-core/REMOVE_SOURCE",Xt="dnd-core/REMOVE_TARGET";function Gt(e,t){t&&Array.isArray(e)?e.forEach((e=>Gt(e,!1))):mt("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 Zt;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(Zt||(Zt={}));let Jt=0;function Qt(e){const t=(Jt++).toString();switch(e){case Zt.SOURCE:return`S${t}`;case Zt.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function er(e){switch(e[0]){case"S":return Zt.SOURCE;case"T":return Zt.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function tr(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 rr{addSource(e,t){Gt(e),function(e){mt("function"==typeof e.canDrag,"Expected canDrag to be a function."),mt("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),mt("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const r=this.addHandler(Zt.SOURCE,e,t);return this.store.dispatch(function(e){return{type:Kt,payload:{sourceId:e}}}(r)),r}addTarget(e,t){Gt(e,!0),function(e){mt("function"==typeof e.canDrop,"Expected canDrop to be a function."),mt("function"==typeof e.hover,"Expected hover to be a function."),mt("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const r=this.addHandler(Zt.TARGET,e,t);return this.store.dispatch(function(e){return{type:Yt,payload:{targetId:e}}}(r)),r}containsHandler(e){return tr(this.dragSources,e)||tr(this.dropTargets,e)}getSource(e,t=!1){mt(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return mt(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return mt(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return mt(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return er(e)===Zt.SOURCE}isTargetId(e){return er(e)===Zt.TARGET}removeSource(e){var t;mt(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:Vt,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},Wt.enqueueTask($t.create(t))}removeTarget(e){mt(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:Xt,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);mt(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){mt(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,r){const n=Qt(e);return this.types.set(n,t),e===Zt.SOURCE?this.dragSources.set(n,r):e===Zt.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 nr=(e,t)=>e===t;function ir(e=_t,t){switch(t.type){case St:break;case Kt:case Yt:case Xt:case Vt:return _t;default:return Lt}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=nr){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 _t;const a=n[n.length-1],s=r[r.length-1];return a!==s&&(a&&i.push(a),s&&i.push(s)),i}function or(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ar={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function sr(e=ar,t){const{payload:r}=t;switch(t.type){case vt:case bt:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case St: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){or(e,t,r[t])}))}return e}({},e,{clientOffset:r.clientOffset});case wt:case xt:return ar;default:return e}var n,i}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 ur(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}const lr={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function dr(e=lr,t){const{payload:r}=t;switch(t.type){case bt:return ur({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case Ot:return ur({},e,{isSourcePublic:!0});case St:return ur({},e,{targetIds:r.targetIds});case Xt:return-1===e.targetIds.indexOf(r.targetId)?e:ur({},e,{targetIds:(n=e.targetIds,i=r.targetId,n.filter((e=>e!==i)))});case xt:return ur({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case wt:return ur({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var n,i}function fr(e=0,t){switch(t.type){case Kt:case Yt:return e+1;case Vt:case Xt:return e-1;default:return e}}function gr(e=0){return e+1}function hr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pr(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){hr(e,t,r[t])}))}return e}function mr(e={},t){return{dirtyHandlerIds:ir(e.dirtyHandlerIds,{type:t.type,payload:pr({},t.payload,{prevTargetIds:(r=e,n="dragOperation.targetIds",i=[],n.split(".").reduce(((e,t)=>e&&e[t]?e[t]:i||null),r))})}),dragOffset:sr(e.dragOffset,t),refCount:fr(e.refCount,t),dragOperation:dr(e.dragOperation,t),stateId:gr(e.stateId)};var r,n,i}function yr(e,t=void 0,r={},n=!1){const i=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return pt(mr,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(n),o=new Ft(i,new rr(i)),a=new At(i,o),s=e(a,t,r);return a.receiveBackend(s),a}function vr(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 br=0;const Or=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Sr=r.memo((function(e){var{children:n}=e,i=vr(e,["children"]);const[o,a]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=xr(),r,n){const i=t;i[Or]||(i[Or]={dragDropManager:yr(e,t,r,n)});return i[Or]}(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}(i);return r.useEffect((()=>{if(a){const e=xr();return++br,()=>{0==--br&&(e[Or]=null)}}}),[]),t.jsx(lt.Provider,{value:o,children:n})}));function xr(){return"undefined"!=typeof global?global:window}var wr=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},Cr=O(wr);const Dr="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function Tr(e,t,n){const[i,o]=function(e,t,n){const[i,o]=r.useState((()=>t(e))),a=r.useCallback((()=>{const r=t(e);Cr(i,r)||(o(r),n&&n())}),[i,e,n]);return Dr(a),[i,a]}(e,t,n);return Dr((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})}),[e,o]),i}function Ir(e,t,r){return Tr(t,e||(()=>({})),(()=>r.reconnect()))}function Er(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),r.useMemo((()=>"function"==typeof e?e():e),n)}function jr(e){return r.useMemo((()=>e.hooks.dragSource()),[e])}function kr(e){return r.useMemo((()=>e.hooks.dragPreview()),[e])}let Nr=!1,Pr=!1;class Mr{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){mt(!Nr,"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 Nr=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Nr=!1}}isDragging(){if(!this.sourceId)return!1;mt(!Pr,"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 Pr=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Pr=!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 Ar=!1;class Rr{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;mt(!Ar,"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 Ar=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Ar=!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 _r(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 u=e[c],l=t[c];if(i=r?r.call(n,u,l,c):void 0,!1===i||void 0===i&&u!==l)return!1}return!0}function Lr(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Fr(e){return(t=null,n=null)=>{if(!r.isValidElement(t)){const r=t;return e(r,n),r}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 n=e.ref;return mt("string"!=typeof n,"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"),n?r.cloneElement(e,{ref:e=>{Br(n,e),Br(t,e)}}):r.cloneElement(e,{ref:t})}(i,n?t=>e(t,n):e)}}function zr(e){const t={};return Object.keys(e).forEach((r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const e=Fr(n);t[r]=()=>e}})),t}function Br(e,t){"function"==typeof e?e(t):e.current=t}class Hr{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!_r(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!_r(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=zr({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,Lr(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,Lr(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 Ur{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!_r(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=zr({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,Lr(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 qr(){const{dragDropManager:e}=r.useContext(lt);return mt(null!=e,"Expected drag drop context"),e}class Wr{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 $r(e,t,n){const i=qr(),o=function(e,t,n){const i=r.useMemo((()=>new Wr(e,t,n)),[t,n]);return r.useEffect((()=>{i.spec=e}),[e]),i}(e,t,n),a=function(e){return r.useMemo((()=>{const t=e.type;return mt(null!=t,"spec.type must be defined"),t}),[e])}(e);Dr((function(){if(null!=a){const[e,r]=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),n.receiveHandlerId(e),r}}),[i,t,n,o,a])}function Kr(e,t){const n=Er(e,t);mt(!n.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=qr();return r.useMemo((()=>new Mr(e)),[e])}(),o=function(e,t){const n=qr(),i=r.useMemo((()=>new Hr(n.getBackend())),[n]);return Dr((()=>(i.dragSourceOptions=e||null,i.reconnect(),()=>i.disconnectDragSource())),[i,e]),Dr((()=>(i.dragPreviewOptions=t||null,i.reconnect(),()=>i.disconnectDragPreview())),[i,t]),i}(n.options,n.previewOptions);return $r(n,i,o),[Ir(n.collect,i,o),jr(o),kr(o)]}function Yr(e){return r.useMemo((()=>e.hooks.dropTarget()),[e])}class Vr{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 Xr(e,t,n){const i=qr(),o=function(e,t){const n=r.useMemo((()=>new Vr(e,t)),[t]);return r.useEffect((()=>{n.spec=e}),[e]),n}(e,t),a=function(e){const{accept:t}=e;return r.useMemo((()=>(mt(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);Dr((function(){const[e,r]=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),n.receiveHandlerId(e),r}),[i,t,o,n,a.map((e=>e.toString())).join("|")])}function Gr(e,t){const n=Er(e,t),i=function(){const e=qr();return r.useMemo((()=>new Rr(e)),[e])}(),o=function(e){const t=qr(),n=r.useMemo((()=>new Ur(t.getBackend())),[t]);return Dr((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return Xr(n,i,o),[Ir(n.collect,i,o),Yr(o)]}function Zr(e){let t=null;return()=>(null==t&&(t=e()),t)}class Jr{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 Qr{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 en="__NATIVE_FILE__",tn="__NATIVE_URL__",rn="__NATIVE_TEXT__",nn="__NATIVE_HTML__";var on=Object.freeze({__proto__:null,FILE:en,HTML:nn,TEXT:rn,URL:tn});function an(e,t,r){const n=t.reduce(((t,r)=>t||e.getData(r)),"");return null!=n?n:r}const sn={[en]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[nn]:{exposeProperties:{html:(e,t)=>an(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[tn]:{exposeProperties:{urls:(e,t)=>an(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[rn]:{exposeProperties:{text:(e,t)=>an(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function cn(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(sn).filter((e=>{const r=sn[e];return!!(null==r?void 0:r.matchesTypes)&&r.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const un=Zr((()=>/firefox/i.test(navigator.userAgent))),ln=Zr((()=>Boolean(window.safari)));class dn{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,u=o.length-1;for(;c<=u;){s=Math.floor(.5*(c+u));const n=t[s];if(n<e)c=s+1;else{if(!(n>e))return r[s];u=s-1}}a=Math.max(0,u);const l=e-t[a],d=l*l;return r[a]+n[a]*l+i[a]*d+o[a]*l*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 u=[],l=[];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;u.push((d-t-n)*r),l.push(n*r*r)}this.xs=e,this.ys=t,this.c1s=c,this.c2s=u,this.c3s=l}}const fn=1;function gn(e){const t=e.nodeType===fn?e:e.parentElement;if(!t)return null;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function hn(e){return{x:e.clientX,y:e.clientY}}function pn(e,t,r,n,i){const o="IMG"===(a=t).nodeName&&(un()||!(null===(s=document.documentElement)||void 0===s?void 0:s.contains(a)));var a,s;const c=gn(o?e:t),u={x:r.x-c.x,y:r.y-c.y},{offsetWidth:l,offsetHeight:d}=e,{anchorX:f,anchorY:g}=n,{dragPreviewWidth:h,dragPreviewHeight:p}=function(e,t,r,n){let i=e?t.width:r,o=e?t.height:n;return ln()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}(o,t,l,d),{offsetX:m,offsetY:y}=i,v=0===y||y;return{x:0===m||m?m:new dn([0,.5,1],[u.x,u.x/l*h,u.x+h-l]).interpolate(f),y:v?y:(()=>{let e=new dn([0,.5,1],[u.y,u.y/d*p,u.y+p-d]).interpolate(g);return ln()&&o&&(e+=(window.devicePixelRatio-1)*p),e})()}}class mn{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 yn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vn(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){yn(e,t,r[t])}))}return e}class bn{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 vn({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return vn({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(on).some((t=>on[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const r=sn[e];if(!r)throw new Error(`native type ${e} has no configuration`);const n=new Qr(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&&gn(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=hn(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=cn(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=pn(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=cn(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:hn(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=hn(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)):cn(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:hn(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 mn(t,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Jr(this.isNodeInDocument)}}const On=function(e,t,r){return new bn(e,t,r)};var Sn={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 u=Object.assign||function(e,t){return l(t).forEach((function(r){o.call(t,r)&&(e[r]=t[r])})),e},l="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)?u(e.constructor(e.length),e):"Map"===c(e)?new Map(e):"Set"===c(e)?new Set(e):e&&"object"==typeof e?u(Object.create(Object.getPrototypeOf(e)),e):e}var f=function(){function e(){this.commands=u({},g),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 l(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]),u="Map"===c(a)?a.get(t):a[t];r.isEquals(s,u)&&(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 g={$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)})),y(t.$splice)}(t,n),e.forEach((function(e){y(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 v(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 v(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)})),l(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)}},h=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 y(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 v(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=h.update.isEquals,t.extend=h.extend,t.default=h.update,t.default.default=e.exports=u(t.default,t)}(Sn,Sn.exports);var xn=O(Sn.exports),wn=function(e){var n=e.type,i=e.onMoveItem,o=e.index,a=e.id,s=e.children,c=e.style,u=e.className,l=r.useRef(null),d=x("zt-sortable",u,{}),f=Gr({accept:n,hover:function(e,t){var r;if(l.current){var n=e.index,a=o;if(n!==a){var s=null===(r=l.current)||void 0===r?void 0:r.getBoundingClientRect(),c=(s.bottom-s.top)/2,u=t.getClientOffset().y-s.top;n<a&&u<c||n>a&&u>c||(i(n,a),e.index=a)}}}}),g=f[1],h=Kr({type:n,item:function(){return{id:a,index:o}},collect:function(e){return{isDragging:e.isDragging()}}}),p=h[0].isDragging?0:1;return(0,h[1])(g(l)),t.jsx("div",y({ref:l,className:d,style:y(y({},c),{opacity:p})},{children:s}))},Cn=500;function Dn(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.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 Tn(e,t,n,i,o,a,s){var c=r.useState(!1),u=c[0],l=c[1],d=r.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>Cn){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=r.useCallback((function(){l(!1),o(e)}),[o,e]),g=r.useCallback((function(){l(!1),t(a),s(a),o(a),d()(n,a)}),[a,t,n,d,o]),h=r.useCallback((function(e){l(!1),t(e),o(e),s(e),d()(n,e)}),[t,n,d,o]);return{visible:u,setVisible:l,onClose:f,onReset:g,onSure:h}}var In=function(e,i){var o=e.list,a=e.dynamicKey,s=e.parentDynamicKey,c=e.title,u=void 0===c?"自定义配置":c,l=e.onCurrentListChange,d=function(e,t,n){var i=r.useMemo((function(){return Dn(e,t,n)}),[e,t,n]),o=r.useState(i),a=o[0],s=o[1],c=r.useState(i),u=c[0],l=c[1];return r.useEffect((function(){i&&(s(i),l(i))}),[i]),{currentDynamicList:a,setCurrentDynamicList:s,tempDynamicList:u,setTempDynamicList:l}}(a,s,o),f=d.currentDynamicList,g=d.setCurrentDynamicList,h=d.tempDynamicList,p=d.setTempDynamicList,m=Tn(f,g,a,s,p,o,l),v=m.visible,b=m.setVisible,O=m.onClose,S=m.onReset,x=m.onSure;r.useImperativeHandle(i,(function(){return{setVisible:b}}));var C=r.useMemo((function(){var e=[];return h.forEach((function(t){t.checked&&e.push(t.key)})),e}),[h]),D=r.useCallback((function(e,t){p((function(r){var n=r[e];return xn(r,{$splice:[[e,1],[t,0,n]]})}))}),[p]),T=function(){x&&x(h)};return t.jsx(n.Drawer,y({className:"dynamic-drawer",title:t.jsxs("div",{children:[t.jsx(rt,{style:{fontSize:16}}),t.jsxs("span",y({className:"search-drawer--title-text"},{children:[u,t.jsx("span",{children:"(拖拽排序)"})]}))]}),width:300,placement:"right",open:v,closable:!1,maskClosable:!1,footer:t.jsxs(t.Fragment,{children:[t.jsx(w,y({type:"default",onClick:O},{children:"取消"})),t.jsx(w,y({type:"default",onClick:S},{children:"重置"})),t.jsx(w,y({type:"primary",onClick:T},{children:"确定"}))]})},{children:t.jsx(Sr,y({backend:On,context:window},{children:t.jsx(n.Checkbox.Group,y({value:C,onChange:function(e){var t=h.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:h.map((function(e,r){return t.jsx(wn,y({type:"search-drawer",index:r,onMoveItem:D},{children:t.jsx(n.Checkbox,y({value:e.key,disabled:e.disabled},{children:e.label||e.key}))}),e.key)}))}))}))}))};In.displayName="ZTXK_WEBUI_DynamicDrawer";var En=r.memo(r.forwardRef(In)),jn=function(e,n){var i=e.dynamicKey,o=e.parentDynamicKey,a=e.defaultList,s=e.children,c=e.title,u=e.onCurrentListChange,l=e.hiddenOperationIcon,d=r.useState(a),f=d[0],g=d[1],h=r.useRef({});return r.useImperativeHandle(n,(function(){return{getCurrentDynamicList:function(e){return Dn(i,o,e)},setList:g,setVisible:function(e){var t;null===(t=h.current)||void 0===t||t.setVisible(e)}}})),Array.isArray(f)&&f.length>0?t.jsxs("div",y({className:"ztxk-dynamic-setting"},{children:[l?null:t.jsx("div",y({onClick:function(){var e;return null===(e=h.current)||void 0===e?void 0:e.setVisible(!0)}},{children:s||t.jsx(rt,{style:{fontSize:18,color:"#768696"}})})),t.jsx(En,{list:f,dynamicKey:i,parentDynamicKey:o,ref:h,title:c,onCurrentListChange:u})]})):null};jn.displayName="ZTXK_WEBUI_DynamicSetting";var kn=r.memo(r.forwardRef(jn));var Nn=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(Fn,y({index:r},e,{outsideState:n}),"".concat(e.name))})):null})},Pn="ztxk-webui-dynamic-form",Mn=r.memo((function(e){var i=e.form,o=e.bottomBorder,a=e.isFlex,s=void 0===a||a,c=e.wrapClassName,u=e.leftClassName;e.itemClassName;var l=e.rightWrapVisible,d=e.rightClassName,f=e.children,g=e.dynamicKey,h=e.formConfigInfo,p=e.items,m=e.outsideState,b=e.onValuesChange,O=e.onResetHandle,S=e.onSearchHandle,C=v(e,["form","bottomBorder","isFlex","wrapClassName","leftClassName","itemClassName","rightWrapVisible","rightClassName","children","dynamicKey","formConfigInfo","items","outsideState","onValuesChange","onResetHandle","onSearchHandle"]),D=function(e,t){return{configInfoItems:r.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])}}(h,p).configInfoItems,T=function(e,t,n){var i=r.useRef({}),o=r.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]);r.useEffect((function(){var e,r;n&&t&&(null===(r=null===(e=i.current)||void 0===e?void 0:e.setList)||void 0===r||r.call(e,o))}),[n,t]);var a=r.useState((function(){return Dn(t,Pn,o)})),s=a[0],c=a[1],u=r.useCallback((function(e){c(e)}),[]),l=r.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:u,newItems:l,dynamicSettingRef:i}}(D,g,h),I=T.dynamicList,E=T.onCurrentListChange,j=T.newItems,k=T.dynamicSettingRef,N=x("ztxk-form",c,{"ztxk-form--bottom-border":o}),P=x("ztxk-form__left",u,{"ztxk-form__left--flex":s}),M=x("ztxk-form__right",d),A=r.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]),R=r.useCallback((function(e,t){if(e){var r=Object.keys(e);Object.keys(A).forEach((function(e){var t,n,o=A[e]?A[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)))}))}b&&b(e,t)}),[b,A,i]),_=function(e,t){var n=t.onResetHandle,i=t.onSearchHandle;return{onResetHandleInner:r.useCallback((function(){null==e||e.resetFields(),n&&n()}),[e,n]),onSearchHandleInner:r.useCallback((function(){var t=null==e?void 0:e.getFieldsValue();i&&i(t)}),[e,i])}}(i,{onSearchHandle:S,onResetHandle:O}),L=_.onSearchHandleInner,F=_.onResetHandleInner;return t.jsxs(n.Form,y({form:i,onValuesChange:R},C,{className:N},{children:[t.jsx("div",y({className:P},{children:p?t.jsx(Nn,{items:g?j:D,outsideState:m}):f})),g?t.jsx(kn,{dynamicKey:g,parentDynamicKey:Pn,defaultList:I,onCurrentListChange:E,ref:k}):null,l?t.jsxs("div",y({className:M},{children:[t.jsx(w,y({type:"default",onClick:F},{children:"重置"})),t.jsx(w,y({type:"primary",onClick:L},{children:"查询"}))]})):null]}))}));function An(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)}Mn.displayName="ZTXK_WEBUI_Form",Mn.useForm=n.Form.useForm,Mn.Item=n.Form.Item,Mn.List=n.Form.List,Mn.ErrorList=n.Form.ErrorList,Mn.Provider=n.Form.Provider,Mn.useFormInstance=n.Form.useFormInstance,Mn.useWatch=n.Form.useWatch;var Rn=function(e){var r,n=e.children,i=e.isDisplay,o=e.isRequired,a=e.isChangeable,s=e.preNode,c=e.nextNode;e.dynamicDisabled;var u=e.hiddenBorder,l=e.singleSelectShowBorder,d=e.hiddenLabel,f=e.width,g=e.className,h=e.itemClassName,p=e.render,m=e.shouldUpdateNames;e.shouldUpdateClear;var b=e.dependencies,O=e.shouldUpdate;e.index,e.outsideState,e.shouldUpdateBeOutsideState;var S=v(e,["children","isDisplay","isRequired","isChangeable","preNode","nextNode","dynamicDisabled","hiddenBorder","singleSelectShowBorder","hiddenLabel","width","className","itemClassName","render","shouldUpdateNames","shouldUpdateClear","dependencies","shouldUpdate","index","outsideState","shouldUpdateBeOutsideState"]),w=Mn.useFormInstance();if(!1===i||"0"===i)return null;if(void 0!==o){var C=!!o,D=Array.isArray(S.rules)?S.rules:[],T=D.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=D[T])||void 0===r?void 0:r.message;D.splice(T,1,{required:C,message:I})}else D.unshift({required:C,message:"".concat(S.label," 未填!")});S.rules=D}var E={disabled:!1};void 0!==a&&(E.disabled="0"===a||!a);var j=x("ztxk-form__item",h,{"ztxk-form__item--disabled":E.disabled,"ztxk-form__item--hidden-border":u,"ztxk-form__item--hidden-label":d,"pro-form__item--single-show-border":l});if(b)return t.jsxs(Ln,y({width:f,className:g},{children:[s||null,t.jsx(Mn.Item,y({dependencies:b,noStyle:!0},{children:function(e){return t.jsx(Mn.Item,y({},S,{className:j},{children:p(E,e)}))}})),c||null]}));if(O||m){var k=m?function(e,t,r){for(var n=0;n<m.length;n++){var i=m[n];if(e[i]!==t[i])return!0}return"function"==typeof O?O(e,t,r):"boolean"==typeof O&&O}:O;return t.jsxs(Ln,y({width:f,className:g},{children:[s||null,t.jsx(Mn.Item,y({shouldUpdate:k,noStyle:!0},{children:function(e){return S.name?t.jsx(Mn.Item,y({},S,{className:j},{children:p(E,e)})):p(E,e)}})),c||null]}))}return t.jsxs(Ln,y({width:f,className:g},{children:[s||null,t.jsx(Mn.Item,y({},S,{className:j},{children:p?p(E,w):n})),c||null]}))};function _n(e){switch(e){case"half":return"16.66%";case"all":return"100%";case"double":return"66.66%";case"halfAll":return"50%";default:return"33.33%"}}function Ln(e){var r=e.className,n=e.children,i=e.width,o=x("ztxk-form__item--wrap",r);return t.jsx("div",y({className:o,style:{width:_n(i)}},{children:n}))}Rn.displayName="ZTXK_WEBUI_FormItem";var Fn=r.memo(Rn,(function(e,t){return(null==t?void 0:t.shouldUpdateBeOutsideState)?!!An(e,t,["render","shouldUpdateBeOutsideState","shouldUpdate","outsideState"])&&!t.shouldUpdateBeOutsideState(e.outsideState,t.outsideState):An(e,t)}));var zn=function(e){var i=e.loading,o=function(e){var t=r.useState(1),n=t[0],i=t[1];return r.useEffect((function(){e||i(1)}),[e]),r.useEffect((function(){if(e){var t=setInterval((function(){i((function(e){return e+1}))}),1e3);return function(){t&&clearInterval(t)}}}),[e]),{countTimer:n}}(i).countTimer;return t.jsx(n.Spin,{spinning:i,size:"large",tip:"".concat(o),className:"ztxk-container__loading",style:{display:i?"flex":"none"}})},Bn=r.memo((function(e){var r=e.children,n=e.isMarginTop,i=e.className,o=x("ztxk-container--btn-wrap",i,{"btn-wrap--margin-top":n});return t.jsx("div",y({className:o},{children:r}))})),Hn=r.memo((function(e){var r=e.className,n=e.isFlex,i=e.children,o=e.loading,a=e.footerDom,s=x("ztxk-container__content",r,{"ztxk-container__content--flex":n});return t.jsxs("div",y({className:"ztxk-container"},{children:[t.jsx(zn,{loading:o}),t.jsx("div",y({className:s},{children:i})),t.jsx(qn,{footerDom:a})]}))}));Hn.displayName="ZTXK_WEBUI_ContainerMemo",Hn.ButtonWrap=Bn;var Un=["10","20","30","100"],qn=r.memo((function(e){var r=e.children,n=e.className,i=e.align,o=void 0===i?"left":i,a=e.footerDom,s=x("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=e.loading,s=e.disabled,c=e.onClick;return t.jsx(w,y({type:o,loading:a,disabled:s,onClick:c},{children:e.text}),r)}if("pagination"===n){var u=e.total,l=e.pageSize,d=e.current,f=e.onChange,g=e.onShowSizeChange,h=e.pageSizeOptions;return t.jsx(Wn,{total:u,pageSize:l,current:d,onChange:f,onShowSizeChange:g,showTotal:function(e){return"共".concat(e,"条")},showSizeChanger:!0,pageSizeOptions:h||Un},r)}return i?i():null})),r]})):null}))})),Wn=function(e){var r=e.className,i=v(e,["className"]),o=x("ztxk-pagination",r,{});return t.jsx(n.Pagination,y({className:o},i))};var $n=function(e){var r=e.copyKey,i=e.dataSourceRef;return t.jsx(ut,{type:"icon-copy",style:{fontSize:"22px"},className:"thead-icon",title:"复制整列",onClick:function(){return function(e,t){var r,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===(r=navigator.clipboard)||void 0===r?void 0:r.writeText(o))||void 0===i||i.then((function(){n.message.info("复制成功!")}));else{var a=document.createElement("textarea");a.value=o,document.body.appendChild(a),a.select(),document.execCommand?(n.message.info("复制成功!"),document.execCommand("copy")):n.message.info("复制失败!请手工复制\n ".concat(o)),document.body.removeChild(a)}}catch(e){n.message.info("复制失败!请手工复制\n ".concat(o))}}}(r,i.current)}})};function Kn(e,r){var n=r.currentDynamicList,i=r.dataSourceRef,o=r.onEditableSave,a=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=e.find((function(e){return e.key===r||(null==e?void 0:e.dataIndex)===r}));i&&n.push(i)})),e.filter((function(e){return e.fixed})).forEach((function(e){"left"===e.fixed?r.push(e):"right"===e.fixed&&i.push(e)})),b(b(b([],r,!0),n,!0),i,!0)}return e}(e,n),s=[];return Array.isArray(a)&&a.forEach((function(e){var r=y({},e),n=r.isCopy,a=r.editable,c=r.editableConfig,u=r.title,l=r.key,d=l||(null==r?void 0:r.dataIndex);n&&(r.title=t.jsxs(t.Fragment,{children:[u,t.jsx($n,{copyKey:!0===n?l:n,dataSourceRef:i})]})),a&&(r.onCell=function(e,t){return{record:e,index:t,editable:a,editableConfig:c,dataIndex:d,title:u,onEditableSave:o}}),s.push(r)})),{newColumns:s}}var Yn="ztxk-webui-dynamic-table";var Vn={body:{row:function(e){var r=e.className,n=v(e,["className"]),i=x("ztxk-table__enhance-row",r);return t.jsx("tr",y({className:i},n))},cell:function(e){var n=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 u=e.children,l=v(e,["record","index","editable","editableConfig","dataIndex","title","onEditableSave","onMouseEnter","onMouseLeave","children"]),d=r.useState(n?n[s]:void 0),f=d[0],g=d[1],h=function(){var e=r.useState(!1),t=e[0],n=e[1];return{editing:t,toggleEdit:function(){n(!t)}}}(),p=h.editing,m=h.toggleEdit,b=function(e){var t=r.useRef();return r.useEffect((function(){e&&t.current.focus()}),[e]),t}(p),O=function(e){var t;if(!c)throw Error("如果开启了editable, 那么必须传递 onEditableSave属性 来更改表格数据!");m(),c(y(y({},n),((t={})[s]=f,t)),i,s)};if(o){var S=a||{type:"input"},x=S.type,w=v(S,["type"]),D=null;return"input"===x&&(D=t.jsx(C,y({value:f,onChange:function(e){g(e.target.value)},onPressEnter:O,onBlur:O,ref:b},w))),"inputNumber"===x&&(D=t.jsx(E,y({value:f,onChange:function(e){g(e)},onPressEnter:O,onBlur:O,ref:b},w))),t.jsx("td",y({},l,{children:p?t.jsx("div",y({className:"ztxk-table__enhance-cell"},{children:D})):t.jsx("div",y({className:"ztxk-table__enhance-cell-wrap",onClick:m},{children:u}))}))}return t.jsx("td",y({},l,{children:u}))}}},Xn=r.memo((function(e){var i=e.className,o=e.bordered,a=void 0===o||o,s=e.pagination,c=void 0!==s&&s,u=e.dynamicKey,l=e.columns,d=e.dataSource,f=e.onTableChange,g=e.isEdit;e.isMove;var h=v(e,["className","bordered","pagination","dynamicKey","columns","dataSource","onTableChange","isEdit","isMove"]),p=x("ztxk-table",i),m=r.useRef();r.useEffect((function(){m.current=d}),[d]);var b=function(e,t){var n=r.useRef({}),i=r.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=r.useState((function(){return Dn(t,Yn,i)})),a=o[0],s=o[1],c=r.useCallback((function(e){s(e)}),[]);return{defaultDynamicList:i,currentDynamicList:a,onCurrentListChange:c,dynamicSettingRef:n}}(l,u),O=b.defaultDynamicList,S=b.onCurrentListChange,w=b.currentDynamicList,C=b.dynamicSettingRef,D=function(e,t){return r.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}))}),[t])}(m,f),T=Kn(l,{currentDynamicList:w,dataSource:d,dataSourceRef:m,onEditableSave:D}).newColumns;return t.jsxs("div",{children:[t.jsx(n.Table,y({className:p,bordered:a,pagination:c,dataSource:d,columns:T,components:g?Vn:null},h)),u?t.jsx(kn,{parentDynamicKey:Yn,dynamicKey:u,defaultList:O,onCurrentListChange:S,ref:C,hiddenOperationIcon:!0}):null]})}));Xn.displayName="ZTXK_WEBUI_Table",Xn.SELECTION_COLUMN=n.Table.SELECTION_COLUMN,Xn.EXPAND_COLUMN=n.Table.EXPAND_COLUMN,Xn.SELECTION_ALL=n.Table.SELECTION_ALL,Xn.SELECTION_INVERT=n.Table.SELECTION_INVERT,Xn.SELECTION_NONE=n.Table.SELECTION_NONE,Xn.Column=n.Table.Column,Xn.ColumnGroup=n.Table.ColumnGroup,Xn.Summary=n.Table.Summary;var Gn=r.memo((function(e){var r,i=e.className,o=e.isHeader,a=e.isContent,s=e.marginTop,c=void 0!==s&&s,u=e.marginBottom,l=void 0===u||u,d=v(e,["className","isHeader","isContent","marginTop","marginBottom"]),f=x("ztxk-tabs",i,((r={})["ztxk-tabs--header"]=o,r["ztxk-tabs--content"]=a,r["ztxk-tabs--marginTop"]=c,r["ztxk-tabs--marginBottom"]=l,r));return t.jsx(n.Tabs,y({type:o?"editable-card":a?"card":void 0,hideAdd:!!o||void 0,className:f},d))}));Gn.displayName="ZTXK_WEBUI_Tabs",Gn.TabPane=n.Tabs.TabPane;var Zn=function(e){var r=e.children,i=e.layoutSliderRender,o=e.layoutHeaderRender;return t.jsxs(n.Layout,y({className:"zmdms-container"},{children:[i,t.jsxs(n.Layout,y({className:"zmdms-content"},{children:[o,t.jsx(n.Layout.Content,y({className:"zmdms-content--content"},{children:r}))]}))]}))};Zn.displayName="ZTXK_WEBUI_AppLayout";var Jn=r.memo(Zn),Qn=function(e){var n=e.tabs,i=e.activeTab,o=e.deleteTab,a=e.setActiveTab,s=r.useMemo((function(){return Array.isArray(n)?n.map((function(e){return{key:e.key,label:t.jsx(h.Link,y({to:e.path},{children:e.label}))}})):[]}),[n]);return t.jsx(Gn,{items:s,activeKey:i,isHeader:!0,onTabClick:function(e){a(e)},onEdit:function(e){o(e)}})},ei=function(){return t.jsx("div",{children:"SettingCom"})},ti=function(e){var r=e.tabs,i=e.activeTab,o=e.deleteTab,a=e.setActiveTab;return t.jsxs(n.Layout.Header,y({className:"zmdms-content--header"},{children:[t.jsx(Qn,{tabs:r,activeTab:i,deleteTab:o,setActiveTab:a}),t.jsx(ei,{})]}))};ti.displayName="ZTXK_WEBUI_AppLayoutHeader";var ri=r.memo(ti),ni=r.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"})}))})),ii=function(e){var i=e.userMenus,o=e.onMouseEnter,a=e.onMainLinkClick,s=e.addTab,c=r.useCallback((function(e){return"index"===e.type?t.jsx(h.Link,y({to:e.path,onClick:function(){s&&s({key:e.path,path:e.path,label:e.name})}},{children:e.name})):"/"===e.path?e.name:t.jsx(h.Link,y({to:e.path,onClick:function(){s&&s({key:e.path,path:e.path,label:e.name})}},{children:e.name}))}),[s]),u=r.useMemo((function(){return Array.isArray(i)?i.map((function(e){return{label:c(e),title:e.name,key:e.id,icon:e.source?t.jsx(ut,{type:e.source,style:{fontSize:"18px"}}):null}})):(console.error("用户主菜单没有按预期传入对应数据!"),[])}),[i,c]),l=r.useCallback((function(e){var t=e.key;a(t)}),[a]);return t.jsx(n.Menu,{className:"zmdms-menu--main",items:u,inlineIndent:10,mode:"inline",onMouseEnter:o,onClick:l})},oi=r.memo(r.forwardRef((function(e,i){var o=e.marginLeft,a=e.subMenus,s=e.subMenuWidth,c=e.layoutSiderRef,u=e.addTab,l=r.useState(),d=l[0],f=l[1],g=r.useState(),p=g[0],m=g[1],v=r.useCallback((function(){m((function(e){return c.current.style.marginRight=e?0:"".concat(s,"px"),!e}))}),[c,s]),b=t.jsxs(w,y({type:"link",onClick:v},{children:[t.jsx(ut,{type:"icon-toggle",style:{fontSize:"18px"}}),p?"浮动":"固定"]}));r.useImperativeHandle(i,(function(){return{setVisible:function(e){p||f(e)}}}));var O=r.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={label:"/"===r.path?r.name:t.jsx(h.Link,y({to:r.path,onClick:function(){u({key:r.path,path:r.path,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(o)})),n)};return e(a)}),[a,u]);return t.jsx(n.Drawer,y({mask:!1,placement:"left",width:s,zIndex:99,closable:!1,open:d,className:"zmdms-menu--sub",style:{marginLeft:o},footer:b},{children:t.jsx(n.Menu,{inlineIndent:10,mode:"inline",items:O})}))}))),ai=[],si=r.memo((function(e){var n=e.width,i=e.subMenuWidth,o=e.layoutSiderRef,a=e.userMenus,s=e.userSubMenus,c=e.addTab,u=e.logo,l=r.useRef({}),d=r.useState(ai),f=d[0],g=d[1],h=r.useCallback((function(){var e;null===(e=l.current)||void 0===e||e.setVisible(!0)}),[]),p=r.useCallback((function(e){e?s&&g(s[e]):g(ai)}),[s]),m=r.useCallback((function(){var e;null===(e=l.current)||void 0===e||e.setVisible(!1)}),[]);return t.jsxs("div",y({className:"zmdms-menu",onMouseLeave:m},{children:[t.jsx(ni,{logo:u}),t.jsx(ii,{userMenus:a,onMouseEnter:h,onMainLinkClick:p,addTab:c}),t.jsx(oi,{ref:l,marginLeft:n,subMenuWidth:i,subMenus:f,layoutSiderRef:o,addTab:c})]}))})),ci=function(e){var i=e.siderWidth,o=void 0===i?118:i,a=e.subMenuWidth,s=void 0===a?162:a,c=e.userMenus,u=e.userSubMenus,l=e.addTab,d=e.siderBg,f=e.logo,g=r.useRef();return t.jsx(n.Layout.Sider,y({className:"zmdms-sider",collapsedWidth:"0",collapsible:!0,trigger:null,width:o,ref:g,style:{backgroundImage:d}},{children:t.jsx(si,{width:o,subMenuWidth:s,layoutSiderRef:g,userMenus:c,userSubMenus:u,addTab:l,logo:f})}))};ci.displayName="ZTXK_WEBUI_AppLayoutSider";var ui=r.memo(ci);Object.defineProperty(e,"Affix",{enumerable:!0,get:function(){return n.Affix}}),Object.defineProperty(e,"Alert",{enumerable:!0,get:function(){return n.Alert}}),Object.defineProperty(e,"Anchor",{enumerable:!0,get:function(){return n.Anchor}}),Object.defineProperty(e,"AutoComplete",{enumerable:!0,get:function(){return n.AutoComplete}}),Object.defineProperty(e,"Avatar",{enumerable:!0,get:function(){return n.Avatar}}),Object.defineProperty(e,"BackTop",{enumerable:!0,get:function(){return n.BackTop}}),Object.defineProperty(e,"Badge",{enumerable:!0,get:function(){return n.Badge}}),Object.defineProperty(e,"Breadcrumb",{enumerable:!0,get:function(){return n.Breadcrumb}}),Object.defineProperty(e,"Card",{enumerable:!0,get:function(){return n.Card}}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return n.Carousel}}),Object.defineProperty(e,"Cascader",{enumerable:!0,get:function(){return n.Cascader}}),Object.defineProperty(e,"Checkbox",{enumerable:!0,get:function(){return n.Checkbox}}),Object.defineProperty(e,"Collapse",{enumerable:!0,get:function(){return n.Collapse}}),Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return n.Comment}}),Object.defineProperty(e,"ConfigProvider",{enumerable:!0,get:function(){return n.ConfigProvider}}),Object.defineProperty(e,"Descriptions",{enumerable:!0,get:function(){return n.Descriptions}}),Object.defineProperty(e,"Divider",{enumerable:!0,get:function(){return n.Divider}}),Object.defineProperty(e,"Drawer",{enumerable:!0,get:function(){return n.Drawer}}),Object.defineProperty(e,"Dropdown",{enumerable:!0,get:function(){return n.Dropdown}}),Object.defineProperty(e,"Empty",{enumerable:!0,get:function(){return n.Empty}}),Object.defineProperty(e,"Grid",{enumerable:!0,get:function(){return n.Grid}}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return n.Image}}),Object.defineProperty(e,"Layout",{enumerable:!0,get:function(){return n.Layout}}),Object.defineProperty(e,"List",{enumerable:!0,get:function(){return n.List}}),Object.defineProperty(e,"Mentions",{enumerable:!0,get:function(){return n.Mentions}}),Object.defineProperty(e,"Menu",{enumerable:!0,get:function(){return n.Menu}}),Object.defineProperty(e,"Modal",{enumerable:!0,get:function(){return n.Modal}}),Object.defineProperty(e,"PageHeader",{enumerable:!0,get:function(){return n.PageHeader}}),Object.defineProperty(e,"Popconfirm",{enumerable:!0,get:function(){return n.Popconfirm}}),Object.defineProperty(e,"Popover",{enumerable:!0,get:function(){return n.Popover}}),Object.defineProperty(e,"Progress",{enumerable:!0,get:function(){return n.Progress}}),Object.defineProperty(e,"Radio",{enumerable:!0,get:function(){return n.Radio}}),Object.defineProperty(e,"Rate",{enumerable:!0,get:function(){return n.Rate}}),Object.defineProperty(e,"Result",{enumerable:!0,get:function(){return n.Result}}),Object.defineProperty(e,"Segmented",{enumerable:!0,get:function(){return n.Segmented}}),Object.defineProperty(e,"Select",{enumerable:!0,get:function(){return n.Select}}),Object.defineProperty(e,"Skeleton",{enumerable:!0,get:function(){return n.Skeleton}}),Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return n.Slider}}),Object.defineProperty(e,"Space",{enumerable:!0,get:function(){return n.Space}}),Object.defineProperty(e,"Spin",{enumerable:!0,get:function(){return n.Spin}}),Object.defineProperty(e,"Statistic",{enumerable:!0,get:function(){return n.Statistic}}),Object.defineProperty(e,"Steps",{enumerable:!0,get:function(){return n.Steps}}),Object.defineProperty(e,"Switch",{enumerable:!0,get:function(){return n.Switch}}),Object.defineProperty(e,"Tag",{enumerable:!0,get:function(){return n.Tag}}),Object.defineProperty(e,"Timeline",{enumerable:!0,get:function(){return n.Timeline}}),Object.defineProperty(e,"Tooltip",{enumerable:!0,get:function(){return n.Tooltip}}),Object.defineProperty(e,"Transfer",{enumerable:!0,get:function(){return n.Transfer}}),Object.defineProperty(e,"Tree",{enumerable:!0,get:function(){return n.Tree}}),Object.defineProperty(e,"TreeSelect",{enumerable:!0,get:function(){return n.TreeSelect}}),Object.defineProperty(e,"Typography",{enumerable:!0,get:function(){return n.Typography}}),Object.defineProperty(e,"Upload",{enumerable:!0,get:function(){return n.Upload}}),Object.defineProperty(e,"message",{enumerable:!0,get:function(){return n.message}}),Object.defineProperty(e,"notification",{enumerable:!0,get:function(){return n.notification}}),e.AppLayout=Jn,e.AppLayoutHeader=ri,e.AppLayoutSider=ui,e.Button=w,e.Calendar=B,e.Container=Hn,e.DatePicker=z,e.DynamicSetting=kn,e.Footer=qn,e.Form=Mn,e.FormItem=Fn,e.Icon=ut,e.Input=C,e.InputNumber=E,e.Login=W,e.Pagination=Wn,e.ProtectedRoute=function(e){var r=e.hasAuth,n=void 0===r||r,i=e.element,o=e.backLogin;return g.getToken()?n?i:t.jsx("div",{children:"您没有权限访问当前页面!"}):(console.log("当前页面需要登录! 请登录成功后再进行访问!"),o())},e.SuspenseComponent=function(e){var n=e.children;return t.jsx(r.Suspense,y({fallback:t.jsx("div",{children:"loading..."})},{children:n}))},e.Table=Xn,e.Tabs=Gn,e.TimePicker=H,e.ZtxkContext=U}));
|