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