You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/17377.async.js

1 line
44 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[17377,47897,47221,93803],{80882:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(87462),o=t(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},i=t(43387),l=function(e,n){return o.createElement(i.Z,(0,r.Z)({},e,{ref:n,icon:a}))};var c=o.forwardRef(l)},11475:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(87462),o=t(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},i=t(43387),l=function(e,n){return o.createElement(i.Z,(0,r.Z)({},e,{ref:n,icon:a}))};var c=o.forwardRef(l)},3089:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(87462),o=t(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},i=t(43387),l=function(e,n){return o.createElement(i.Z,(0,r.Z)({},e,{ref:n,icon:a}))};var c=o.forwardRef(l)},64789:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(87462),o=t(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},i=t(43387),l=function(e,n){return o.createElement(i.Z,(0,r.Z)({},e,{ref:n,icon:a}))};var c=o.forwardRef(l)},25035:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(87462),o=t(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},i=t(43387),l=function(e,n){return o.createElement(i.Z,(0,r.Z)({},e,{ref:n,icon:a}))};var c=o.forwardRef(l)},48115:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(87462),o=t(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},i=t(43387),l=function(e,n){return o.createElement(i.Z,(0,r.Z)({},e,{ref:n,icon:a}))};var c=o.forwardRef(l)},48783:function(e,n,t){var r=t(74902),o=t(96523);n.Z=function(e){let n;const t=t=>()=>{n=null,e.apply(void 0,(0,r.Z)(t))},a=function(){if(null==n){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];n=(0,o.Z)(t(r))}};return a.cancel=()=>{o.Z.cancel(n),n=null},a}},30291:function(e,n,t){t.d(n,{Z:function(){return O}});var r=t(15671),o=t(43144),a=t(60136),i=t(51630),l=t(67294),c=t(94184),s=t.n(c),d=t(48555),u=t(10366),p=t(48783),f=t(53124),g=t(67968),m=t(45503);const h=e=>{const{componentCls:n}=e;return{[n]:{position:"fixed",zIndex:e.zIndexPopup}}};var b=(0,g.Z)("Affix",(e=>{const n=(0,m.TS)(e,{zIndexPopup:e.zIndexBase+10});return[h(n)]}));function v(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function y(e,n,t){if(void 0!==t&&n.top>e.top-t)return t+n.top}function C(e,n,t){if(void 0!==t&&n.bottom<e.bottom+t){return t+(window.innerHeight-n.bottom)}}const S=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function E(){return"undefined"!=typeof window?window:null}var x;!function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"}(x||(x={}));let $=function(e){(0,a.Z)(t,e);var n=(0,i.Z)(t);function t(){var e;return(0,r.Z)(this,t),(e=n.apply(this,arguments)).state={status:x.None,lastAffix:!1,prevTarget:null},e.placeholderNodeRef=(0,l.createRef)(),e.fixedNodeRef=(0,l.createRef)(),e.addListeners=()=>{const n=e.getTargetFunc(),t=null==n?void 0:n(),{prevTarget:r}=e.state;r!==t&&(S.forEach((n=>{null==r||r.removeEventListener(n,e.lazyUpdatePosition),null==t||t.addEventListener(n,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:t}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:n}=e.state,t=e.getTargetFunc(),r=null==t?void 0:t();S.forEach((t=>{null==r||r.removeEventListener(t,e.lazyUpdatePosition),null==n||n.removeEventListener(t,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:n,offsetTop:t}=e.props;return void 0===n&&void 0===t?0:t},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:n,lastAffix:t}=e.state,{onChange:r}=e.props,o=e.getTargetFunc();if(n!==x.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!o)return;const a=e.getOffsetTop(),i=e.getOffsetBottom(),l=o();if(l){const n={status:x.None},o=v(e.placeholderNodeRef.current);if(0===o.top&&0===o.left&&0===o.width&&0===o.height)return;const c=v(l),s=y(o,c,a),d=C(o,c,i);void 0!==s?(n.affixStyle={position:"fixed",top:s,width:o.width,height:o.height},n.placeholderStyle={width:o.width,height:o.height}):void 0!==d&&(n.affixStyle={position:"fixed",bottom:d,width:o.width,height:o.height},n.placeholderStyle={width:o.width,height:o.height}),n.lastAffix=!!n.affixStyle,r&&t!==n.lastAffix&&r(n.lastAffix),e.setState(n)}},e.prepareMeasure=()=>{e.setState({status:x.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,p.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,p.Z)((()=>{const n=e.getTargetFunc(),{affixStyle:t}=e.state;if(n&&t){const r=e.getOffsetTop(),o=e.getOffsetBottom(),a=n();if(a&&e.placeholderNodeRef.current){const n=v(a),i=v(e.placeholderNodeRef.current),l=y(i,n,r),c=C(i,n,o);if(void 0!==l&&t.top===l||void 0!==c&&t.bottom===c)return}}e.prepareMeasure()})),e}return(0,o.Z)(t,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:n}=this.props;return void 0!==n?n:null!=e?e:E}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:n}=this.state,{affixPrefixCls:t,rootClassName:r,children:o}=this.props,a=s()(e&&r,{[t]:!!e});let i=(0,u.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return l.createElement(d.Z,{onResize:this.updatePosition},l.createElement("div",Object.assign({},i,{ref:this.placeholderNodeRef}),e&&l.createElement("div",{style:n,"aria-hidden":"true"}),l.createElement("div",{className:a,ref:this.fixedNodeRef,style:e},l.createElement(d.Z,{onResize:this.updatePosition},o))))}}]),t}(l.Component);$.contextType=f.E_;var O=(0,l.forwardRef)(((e,n)=>{const{prefixCls:t,rootClassName:r}=e,{getPrefixCls:o}=(0,l.useContext)(f.E_),a=o("affix",t),[i,c]=b(a),d=Object.assign(Object.assign({},e),{affixPrefixCls:a,rootClassName:s()(r,c)});return i(l.createElement($,Object.assign({},d,{ref:n})))}))},85673:function(e,n,t){t.d(n,{Z:function(){return P}});var r=t(94184),o=t.n(r),a=t(37419),i=t(1337),l=t(67294),c=t(96159),s=t(53124),d=t(15558),u=t(56153);const p=e=>{let{children:n}=e;const{getPrefixCls:t}=l.useContext(s.E_),r=t("breadcrumb");return l.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},""===n?n:n||"/")};p.__ANT_BREADCRUMB_SEPARATOR=!0;var f=p,g=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t};function m(e,n,t,r){if(null==t)return null;const{className:a,onClick:c}=n,s=g(n,["className","onClick"]),d=Object.assign(Object.assign({},(0,i.Z)(s,{data:!0,aria:!0})),{onClick:c});return void 0!==r?l.createElement("a",Object.assign({},d,{className:o()(`${e}-link`,a),href:r}),t):l.createElement("span",Object.assign({},d,{className:o()(`${e}-link`,a)}),t)}function h(e,n){return(t,r,o,a,i)=>{if(n)return n(t,r,o,a);const l=function(e,n){if(void 0===e.title||null===e.title)return null;const t=Object.keys(n).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${t})`,"g"),((e,t)=>n[t]||e))}(t,r);return m(e,t,l,i)}}var b=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t};const v=e=>{const{prefixCls:n,separator:t="/",children:r,menu:o,overlay:a,dropdownProps:i,href:c}=e;const s=(e=>{if(o||a){const t=Object.assign({},i);if(o){const e=o||{},{items:n}=e,r=b(e,["items"]);t.menu=Object.assign(Object.assign({},r),{items:null==n?void 0:n.map(((e,n)=>{var{key:t,title:r,label:o,path:a}=e,i=b(e,["key","title","label","path"]);let s=null!=o?o:r;return a&&(s=l.createElement("a",{href:`${c}${a}`},s)),Object.assign(Object.assign({},i),{key:null!=t?t:n,label:s})}))})}else a&&(t.overlay=a);return l.createElement(u.Z,Object.assign({placement:"bottom"},t),l.createElement("span",{className:`${n}-overlay-link`},e,l.createElement(d.Z,null)))}return e})(r);return null!=s?l.createElement(l.Fragment,null,l.createElement("li",null,s),t&&l.createElement(f,null,t)):null},y=e=>{const{prefixCls:n,children:t,href:r}=e,o=b(e,["prefixCls","children","href"]),{getPrefixCls:a}=l.useContext(s.E_),i=a("breadcrumb",n);return l.createElement(v,Object.assign({},o,{prefixCls:i}),m(i,o,t,r))};y.__ANT_BREADCRUMB_ITEM=!0;var C=y,S=t(14747),E=t(67968),x=t(45503);const $=e=>{const{componentCls:n,iconCls:t}=e;return{[n]:Object.assign(Object.assign({},(0,S.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[t]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,S.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${n}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${n}-link`]:{[`\n > ${t} + span,\n > ${t} + a\n `]:{marginInlineStart:e.marginXXS}},[`${n}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${t}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var O=(0,E.Z)("Breadcrumb",(e=>{const n=(0,x.TS)(e,{});return[$(n)]}),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),I=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t};function N(e){const{breadcrumbName:n,children:t}=e,r=I(e,["breadcrumbName","children"]),o=Object.assign({title:n},r);return t&&(o.menu={items:t.map((e=>{var{breadcrumbName:n}=e,t=I(e,["breadcrumbName"]);return Object.assign(Object.assign({},t),{title:n})}))}),o}var k=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t};const w=e=>{const{prefixCls:n,separator:t="/",style:r,className:d,rootClassName:u,routes:p,items:g,children:m,itemRender:b,params:y={}}=e,C=k(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:S,direction:E,breadcrumb:x}=l.useContext(s.E_);let $;const I=S("breadcrumb",n),[w,P]=O(I),M=function(e,n){return(0,l.useMemo)((()=>e||(n?n.map(N):null)),[e,n])}(g,p);const T=h(I,b);if(M&&M.length>0){const e=[],n=g||p;$=M.map(((r,o)=>{const{path:a,key:c,type:s,menu:d,overlay:u,onClick:p,className:g,separator:m,dropdownProps:h}=r,b=((e,n)=>{if(void 0===n)return n;let t=(n||"").replace(/^\//,"");return Object.keys(e).forEach((n=>{t=t.replace(`:${n}`,e[n])})),t})(y,a);void 0!==b&&e.push(b);const C=null!=c?c:o;if("separator"===s)return l.createElement(f,{key:C},m);const S={},E=o===M.length-1;d?S.menu=d:u&&(S.overlay=u);let{href:x}=r;return e.length&&void 0!==b&&(x=`#/${e.join("/")}`),l.createElement(v,Object.assign({key:C},S,(0,i.Z)(r,{data:!0,aria:!0}),{className:g,dropdownProps:h,href:x,separator:E?"":t,onClick:p,prefixCls:I}),T(r,y,n,e,x))}))}else if(m){const e=(0,a.Z)(m).length;$=(0,a.Z)(m).map(((n,r)=>{if(!n)return n;const o=r===e-1;return(0,c.Tm)(n,{separator:o?"":t,key:r})}))}const j=o()(I,null==x?void 0:x.className,{[`${I}-rtl`]:"rtl"===E},d,u,P),R=Object.assign(Object.assign({},null==x?void 0:x.style),r);return w(l.createElement("nav",Object.assign({className:j,style:R},C),l.createElement("ol",null,$)))};w.Item=C,w.Separator=f;var P=w},47221:function(e,n,t){t.d(n,{Z:function(){return K}});var r=t(79269),o=t(94184),a=t.n(o),i=t(97685),l=t(74902),c=t(71002),s=t(21770),d=t(80334),u=t(67294),p=t(87462),f=t(45987),g=t(50344),m=t(4942),h=t(62874),b=t(15105),v=u.forwardRef((function(e,n){var t,r=e.prefixCls,o=e.forceRender,l=e.className,c=e.style,s=e.children,d=e.isActive,p=e.role,f=u.useState(d||o),g=(0,i.Z)(f,2),h=g[0],b=g[1];return u.useEffect((function(){(o||d)&&b(!0)}),[o,d]),h?u.createElement("div",{ref:n,className:a()("".concat(r,"-content"),(t={},(0,m.Z)(t,"".concat(r,"-content-active"),d),(0,m.Z)(t,"".concat(r,"-content-inactive"),!d),t),l),style:c,role:p},u.createElement("div",{className:"".concat(r,"-content-box")},s)):null}));v.displayName="PanelContent";var y=v,C=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],S=u.forwardRef((function(e,n){var t,r,o=e.showArrow,i=void 0===o||o,l=e.headerClass,c=e.isActive,s=e.onItemClick,d=e.forceRender,g=e.className,v=e.prefixCls,S=e.collapsible,E=e.accordion,x=e.panelKey,$=e.extra,O=e.header,I=e.expandIcon,N=e.openMotion,k=e.destroyInactivePanel,w=e.children,P=(0,f.Z)(e,C),M="disabled"===S,T="header"===S,j="icon"===S,R=null!=$&&"boolean"!=typeof $,A=function(){null==s||s(x)},Z="function"==typeof I?I(e):u.createElement("i",{className:"arrow"});Z&&(Z=u.createElement("div",{className:"".concat(v,"-expand-icon"),onClick:["header","icon"].includes(S)?A:void 0},Z));var _=a()((t={},(0,m.Z)(t,"".concat(v,"-item"),!0),(0,m.Z)(t,"".concat(v,"-item-active"),c),(0,m.Z)(t,"".concat(v,"-item-disabled"),M),t),g),z={className:a()(l,(r={},(0,m.Z)(r,"".concat(v,"-header"),!0),(0,m.Z)(r,"".concat(v,"-header-collapsible-only"),T),(0,m.Z)(r,"".concat(v,"-icon-collapsible-only"),j),r)),"aria-expanded":c,"aria-disabled":M,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==b.Z.ENTER&&e.which!==b.Z.ENTER||A()}};return T||j||(z.onClick=A,z.role=E?"tab":"button",z.tabIndex=M?-1:0),u.createElement("div",(0,p.Z)({},P,{ref:n,className:_}),u.createElement("div",z,i&&Z,u.createElement("span",{className:"".concat(v,"-header-text"),onClick:"header"===S?A:void 0},O),R&&u.createElement("div",{className:"".concat(v,"-extra")},$)),u.createElement(h.Z,(0,p.Z)({visible:c,leavedClassName:"".concat(v,"-content-hidden")},N,{forceRender:d,removeOnLeave:k}),(function(e,n){var t=e.className,r=e.style;return u.createElement(y,{ref:n,prefixCls:v,className:t,style:r,isActive:c,forceRender:d,role:E?"tabpanel":void 0},w)})))})),E=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];var x=function(e,n,t){return Array.isArray(e)?function(e,n){var t=n.prefixCls,r=n.accordion,o=n.collapsible,a=n.destroyInactivePanel,i=n.onItemClick,l=n.activeKey,c=n.openMotion,s=n.expandIcon;return e.map((function(e,n){var d=e.children,g=e.label,m=e.key,h=e.collapsible,b=e.onItemClick,v=e.destroyInactivePanel,y=(0,f.Z)(e,E),C=String(null!=m?m:n),x=null!=h?h:o,$=null!=v?v:a,O=!1;return O=r?l[0]===C:l.indexOf(C)>-1,u.createElement(S,(0,p.Z)({},y,{prefixCls:t,key:C,panelKey:C,isActive:O,accordion:r,openMotion:c,expandIcon:s,header:g,collapsible:x,onItemClick:function(e){"disabled"!==x&&(i(e),null==b||b(e))},destroyInactivePanel:$}),d)}))}(e,t):(0,g.Z)(n).map((function(e,n){return function(e,n,t){if(!e)return null;var r=t.prefixCls,o=t.accordion,a=t.collapsible,i=t.destroyInactivePanel,l=t.onItemClick,c=t.activeKey,s=t.openMotion,d=t.expandIcon,p=e.key||String(n),f=e.props,g=f.header,m=f.headerClass,h=f.destroyInactivePanel,b=f.collapsible,v=f.onItemClick,y=!1;y=o?c[0]===p:c.indexOf(p)>-1;var C=null!=b?b:a,S={key:p,panelKey:p,header:g,headerClass:m,isActive:y,prefixCls:r,destroyInactivePanel:null!=h?h:i,openMotion:s,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==C&&(l(e),null==v||v(e))},expandIcon:d,collapsible:C};return"string"==typeof e.type?e:(Object.keys(S).forEach((function(e){void 0===S[e]&&delete S[e]})),u.cloneElement(e,S))}(e,n,t)}))};function $(e){var n=e;if(!Array.isArray(n)){var t=(0,c.Z)(n);n="number"===t||"string"===t?[n]:[]}return n.map((function(e){return String(e)}))}var O=u.forwardRef((function(e,n){var t=e.prefixCls,r=void 0===t?"rc-collapse":t,o=e.destroyInactivePanel,c=void 0!==o&&o,p=e.style,f=e.accordion,g=e.className,m=e.children,h=e.collapsible,b=e.openMotion,v=e.expandIcon,y=e.activeKey,C=e.defaultActiveKey,S=e.onChange,E=e.items,O=a()(r,g),I=(0,s.Z)([],{value:y,onChange:function(e){return null==S?void 0:S(e)},defaultValue:C,postState:$}),N=(0,i.Z)(I,2),k=N[0],w=N[1];(0,d.ZP)(!m,"`children` will be removed in next major version. Please use `items` instead.");var P=x(E,m,{prefixCls:r,accordion:f,openMotion:b,expandIcon:v,collapsible:h,destroyInactivePanel:c,onItemClick:function(e){return w((function(){return f?k[0]===e?[]:[e]:k.indexOf(e)>-1?k.filter((function(n){return n!==e})):[].concat((0,l.Z)(k),[e])}))},activeKey:k});return u.createElement("div",{ref:n,className:O,style:p,role:f?"tablist":void 0},P)})),I=Object.assign(O,{Panel:S}),N=I,k=(I.Panel,t(37419)),w=t(10366),P=t(33603),M=t(96159),T=t(53124),j=t(98675);var R=u.forwardRef(((e,n)=>{const{getPrefixCls:t}=u.useContext(T.E_),{prefixCls:r,className:o,showArrow:i=!0}=e,l=t("collapse",r),c=a()({[`${l}-no-arrow`]:!i},o);return u.createElement(N.Panel,Object.assign({ref:n},e,{prefixCls:l,className:c}))})),A=t(14747),Z=t(33507),_=t(67968),z=t(45503);const L=e=>{const{componentCls:n,contentBg:t,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:s,lineType:d,colorBorder:u,colorText:p,colorTextHeading:f,colorTextDisabled:g,fontSize:m,fontSizeLG:h,lineHeight:b,marginSM:v,paddingSM:y,paddingLG:C,paddingXS:S,motionDurationSlow:E,fontSizeIcon:x,contentPadding:$}=e,O=`${s}px ${d} ${u}`;return{[n]:Object.assign(Object.assign({},(0,A.Wf)(e)),{backgroundColor:o,border:O,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:"rtl"},[`& > ${n}-item`]:{borderBottom:O,"&:last-child":{[`\n &,\n & > ${n}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${n}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:f,lineHeight:b,cursor:"pointer",transition:`all ${E}, visibility 0s`,[`> ${n}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${n}-expand-icon`]:{height:m*b,display:"flex",alignItems:"center",paddingInlineEnd:v},[`${n}-arrow`]:Object.assign(Object.assign({},(0,A.Ro)()),{fontSize:x,svg:{transition:`transform ${E}`}}),[`${n}-header-text`]:{marginInlineEnd:"auto"}},[`${n}-header-collapsible-only`]:{cursor:"default",[`${n}-header-text`]:{flex:"none",cursor:"pointer"}},[`${n}-icon-collapsible-only`]:{cursor:"default",[`${n}-expand-icon`]:{cursor:"pointer"}}},[`${n}-content`]:{color:p,backgroundColor:t,borderTop:O,[`& > ${n}-content-box`]:{padding:$},"&-hidden":{display:"none"}},"&-small":{[`> ${n}-item`]:{[`> ${n}-header`]:{padding:i,paddingInlineStart:S,[`> ${n}-expand-icon`]:{marginInlineStart:y-S}},[`> ${n}-content > ${n}-content-box`]:{padding:y}}},"&-large":{[`> ${n}-item`]:{fontSize:h,[`> ${n}-header`]:{padding:l,paddingInlineStart:r,[`> ${n}-expand-icon`]:{height:h*b,marginInlineStart:C-r}},[`> ${n}-content > ${n}-content-box`]:{padding:C}}},[`${n}-item:last-child`]:{[`> ${n}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${n}-item-disabled > ${n}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${n}-icon-position-end`]:{[`& > ${n}-item`]:{[`> ${n}-header`]:{[`${n}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:v}}}}})}},U=e=>{const{componentCls:n}=e;return{[`${n}-rtl`]:{[`> ${n}-item > ${n}-header ${n}-arrow svg`]:{transform:"rotate(180deg)"}}}},H=e=>{const{componentCls:n,headerBg:t,paddingXXS:r,colorBorder:o}=e;return{[`${n}-borderless`]:{backgroundColor:t,border:0,[`> ${n}-item`]:{borderBottom:`1px solid ${o}`},[`\n > ${n}-item:last-child,\n > ${n}-item:last-child ${n}-header\n `]:{borderRadius:0},[`> ${n}-item:last-child`]:{borderBottom:0},[`> ${n}-item > ${n}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${n}-item > ${n}-content > ${n}-content-box`]:{paddingTop:r}}}},B=e=>{const{componentCls:n,paddingSM:t}=e;return{[`${n}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${n}-item`]:{borderBottom:0,[`> ${n}-content`]:{backgroundColor:"transparent",border:0,[`> ${n}-content-box`]:{paddingBlock:t}}}}}};var D=(0,_.Z)("Collapse",(e=>{const n=(0,z.TS)(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[L(n),H(n),B(n),U(n),(0,Z.Z)(n)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})));const F=u.forwardRef(((e,n)=>{const{getPrefixCls:t,direction:o,collapse:i}=u.useContext(T.E_),{prefixCls:l,className:c,rootClassName:s,style:d,bordered:p=!0,ghost:f,size:g,expandIconPosition:m="start",children:h,expandIcon:b}=e,v=(0,j.Z)((e=>{var n;return null!==(n=null!=g?g:e)&&void 0!==n?n:"middle"})),y=t("collapse",l),C=t(),[S,E]=D(y),x=u.useMemo((()=>"left"===m?"start":"right"===m?"end":m),[m]),$=a()(`${y}-icon-position-${x}`,{[`${y}-borderless`]:!p,[`${y}-rtl`]:"rtl"===o,[`${y}-ghost`]:!!f,[`${y}-${v}`]:"middle"!==v},null==i?void 0:i.className,c,s,E),O=Object.assign(Object.assign({},(0,P.Z)(C)),{motionAppear:!1,leavedClassName:`${y}-content-hidden`}),I=u.useMemo((()=>h?(0,k.Z)(h).map(((e,n)=>{var t,r;if(null===(t=e.props)||void 0===t?void 0:t.disabled){const t=null!==(r=e.key)&&void 0!==r?r:String(n),{disabled:o,collapsible:a}=e.props,i=Object.assign(Object.assign({},(0,w.Z)(e.props,["disabled"])),{key:t,collapsible:null!=a?a:o?"disabled":void 0});return(0,M.Tm)(e,i)}return e})):null),[h]);return S(u.createElement(N,Object.assign({ref:n,openMotion:O},(0,w.Z)(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=b?b(e):u.createElement(r.Z,{rotate:e.isActive?90:void 0});return(0,M.Tm)(n,(()=>({className:a()(n.props.className,`${y}-arrow`)})))},prefixCls:y,className:$,style:Object.assign(Object.assign({},null==i?void 0:i.style),d)}),I))}));var K=Object.assign(F,{Panel:R})},47897:function(e,n,t){t.d(n,{Z:function(){return D}});var r=t(77322),o=t(94184),a=t.n(o);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},i.apply(this,arguments)}function l(e){return l="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},l(e)}function c(e){var n=function(e,n){if("object"!==l(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===l(n)?n:String(n)}function s(e,n,t){return(n=c(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=a.call(t)).done)&&(l.push(r.value),l.length!==n);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,n)||function(e,n){if(e){if("string"==typeof e)return d(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?d(e,n):void 0}}(e,n)||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 p(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var f=t(67294);function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function m(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=a.call(t)).done)&&(l.push(r.value),l.length!==n);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,n)||function(e,n){if(e){if("string"==typeof e)return g(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?g(e,n):void 0}}(e,n)||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 h(e){var n=f.useRef();n.current=e;var t=f.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]);return t}var b="undefined"!=typeof window&&window.document&&window.document.createElement?f.useLayoutEffect:f.useEffect,v=function(e,n){var t=f.useRef(!0);b((function(){return e(t.current)}),n),b((function(){return t.current=!1,function(){t.current=!0}}),[])},y=function(e,n){v((function(n){if(!n)return e()}),n)};function C(e){var n=f.useRef(!1),t=m(f.useState(e),2),r=t[0],o=t[1];return f.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[r,function(e,t){t&&n.current||o(e)}]}function S(e){return void 0!==e}var E={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var n=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||n>=E.F1&&n<=E.F12)return!1;switch(n){case E.ALT:case E.CAPS_LOCK:case E.CONTEXT_MENU:case E.CTRL:case E.DOWN:case E.END:case E.ESC:case E.HOME:case E.INSERT:case E.LEFT:case E.MAC_FF_META:case E.META:case E.NUMLOCK:case E.NUM_CENTER:case E.PAGE_DOWN:case E.PAGE_UP:case E.PAUSE:case E.PRINT_SCREEN:case E.RIGHT:case E.SHIFT:case E.UP:case E.WIN_KEY:case E.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=E.ZERO&&e<=E.NINE)return!0;if(e>=E.NUM_ZERO&&e<=E.NUM_MULTIPLY)return!0;if(e>=E.A&&e<=E.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case E.SPACE:case E.QUESTION_MARK:case E.NUM_PLUS:case E.NUM_MINUS:case E.NUM_PERIOD:case E.NUM_DIVISION:case E.SEMICOLON:case E.DASH:case E.EQUALS:case E.COMMA:case E.PERIOD:case E.SLASH:case E.APOSTROPHE:case E.SINGLE_QUOTE:case E.OPEN_SQUARE_BRACKET:case E.BACKSLASH:case E.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},x=E,$=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],O=f.forwardRef((function(e,n){var t,r=e.prefixCls,o=void 0===r?"rc-switch":r,l=e.className,c=e.checked,d=e.defaultChecked,g=e.disabled,b=e.loadingIcon,v=e.checkedChildren,E=e.unCheckedChildren,O=e.onClick,I=e.onChange,N=e.onKeyDown,k=p(e,$),w=function(e,n){var t=n||{},r=t.defaultValue,o=t.value,a=t.onChange,i=t.postState,l=m(C((function(){return S(o)?o:S(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),c=l[0],s=l[1],d=void 0!==o?o:c,u=i?i(d):d,p=h(a),f=m(C([d]),2),g=f[0],b=f[1];return y((function(){var e=g[0];c!==e&&p(c,e)}),[g]),y((function(){S(o)||s(o)}),[o]),[u,h((function(e,n){s(e,n),b([d],n)}))]}(!1,{value:c,defaultValue:d}),P=u(w,2),M=P[0],T=P[1];function j(e,n){var t=M;return g||(T(t=e),null==I||I(t,n)),t}var R=a()(o,l,(s(t={},"".concat(o,"-checked"),M),s(t,"".concat(o,"-disabled"),g),t));return f.createElement("button",i({},k,{type:"button",role:"switch","aria-checked":M,disabled:g,className:R,ref:n,onKeyDown:function(e){e.which===x.LEFT?j(!1,e):e.which===x.RIGHT&&j(!0,e),null==N||N(e)},onClick:function(e){var n=j(!M,e);null==O||O(n,e)}}),b,f.createElement("span",{className:"".concat(o,"-inner")},f.createElement("span",{className:"".concat(o,"-inner-checked")},v),f.createElement("span",{className:"".concat(o,"-inner-unchecked")},E)))}));O.displayName="Switch";var I=O,N=t(45353),k=t(53124),w=t(98866),P=t(98675),M=t(10274),T=t(14747),j=t(67968),R=t(45503);const A=e=>{const{componentCls:n,trackHeightSM:t,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:l}=e,c=`${n}-inner`;return{[n]:{[`&${n}-small`]:{minWidth:o,height:t,lineHeight:`${t}px`,[`${n}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${l+2*r}px - ${2*i}px)`,marginInlineEnd:`calc(100% - ${l+2*r}px + ${2*i}px)`},[`${c}-unchecked`]:{marginTop:-t,marginInlineStart:0,marginInlineEnd:0}},[`${n}-handle`]:{width:l,height:l},[`${n}-loading-icon`]:{top:(l-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${n}-checked`]:{[`${n}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${l+2*r}px + ${2*i}px)`,marginInlineEnd:`calc(-100% + ${l+2*r}px - ${2*i}px)`}},[`${n}-handle`]:{insetInlineStart:`calc(100% - ${l+r}px)`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${n}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},Z=e=>{const{componentCls:n,handleSize:t}=e;return{[n]:{[`${n}-loading-icon${e.iconCls}`]:{position:"relative",top:(t-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${n}-checked ${n}-loading-icon`]:{color:e.switchColor}}}},_=e=>{const{componentCls:n,motion:t,trackPadding:r,handleBg:o,handleShadow:a,handleSize:i}=e,l=`${n}-handle`;return{[n]:{[l]:{position:"absolute",top:r,insetInlineStart:r,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:i/2,boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${n}-checked ${l}`]:{insetInlineStart:`calc(100% - ${i+r}px)`},[`&:not(${n}-disabled):active`]:t?{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${n}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},z=e=>{const{componentCls:n,trackHeight:t,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i}=e,l=`${n}-inner`;return{[n]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${i+2*r}px - ${2*a}px)`,marginInlineEnd:`calc(100% - ${i+2*r}px + ${2*a}px)`},[`${l}-unchecked`]:{marginTop:-t,marginInlineStart:0,marginInlineEnd:0}},[`&${n}-checked ${l}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${i+2*r}px + ${2*a}px)`,marginInlineEnd:`calc(-100% + ${i+2*r}px - ${2*a}px)`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:2*r,marginInlineEnd:2*-r}},[`&${n}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:2*-r,marginInlineEnd:2*r}}}}}},L=e=>{const{componentCls:n,trackHeight:t,trackMinWidth:r}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,T.Wf)(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:t,lineHeight:`${t}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${n}-disabled)`]:{background:e.colorTextTertiary}}),(0,T.Qy)(e)),{[`&${n}-checked`]:{background:e.switchColor,[`&:hover:not(${n}-disabled)`]:{background:e.colorPrimaryHover}},[`&${n}-loading, &${n}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${n}-rtl`]:{direction:"rtl"}})}};var U=(0,j.Z)("Switch",(e=>{const n=(0,R.TS)(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[L(n),z(n),_(n),Z(n),A(n)]}),(e=>{const{fontSize:n,lineHeight:t,controlHeight:r,colorWhite:o}=e,a=n*t,i=r/2,l=a-4,c=i-4;return{trackHeight:a,trackHeightSM:i,trackMinWidth:2*l+8,trackMinWidthSM:2*c+4,trackPadding:2,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new M.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}})),H=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t};const B=f.forwardRef(((e,n)=>{const{prefixCls:t,size:o,disabled:i,loading:l,className:c,rootClassName:s,style:d}=e,u=H(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:p,direction:g,switch:m}=f.useContext(k.E_),h=f.useContext(w.Z),b=(null!=i?i:h)||l,v=p("switch",t),y=f.createElement("div",{className:`${v}-handle`},l&&f.createElement(r.Z,{className:`${v}-loading-icon`})),[C,S]=U(v),E=(0,P.Z)(o),x=a()(null==m?void 0:m.className,{[`${v}-small`]:"small"===E,[`${v}-loading`]:l,[`${v}-rtl`]:"rtl"===g},c,s,S),$=Object.assign(Object.assign({},null==m?void 0:m.style),d);return C(f.createElement(N.Z,{component:"Switch"},f.createElement(I,Object.assign({},u,{prefixCls:v,className:x,style:$,disabled:b,ref:n,loadingIcon:y}))))}));B.__ANT_SWITCH=!0;var D=B},66309:function(e,n,t){t.d(n,{Z:function(){return I}});var r=t(67294),o=t(85846),a=t(94184),i=t.n(a),l=t(98787),c=t(69760),s=t(45353),d=t(53124),u=t(14747),p=t(45503),f=t(67968);const g=e=>{const{lineWidth:n,fontSizeIcon:t}=e,r=e.fontSizeSM,o=e.lineHeightSM*r+"px";return(0,p.TS)(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:t-2*n,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},m=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var h=(0,f.Z)("Tag",(e=>(e=>{const{paddingXXS:n,lineWidth:t,tagPaddingHorizontal:r,componentCls:o}=e,a=r-t,i=n-t;return{[o]:Object.assign(Object.assign({},(0,u.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:i,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(g(e))),m),b=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t};var v=e=>{const{prefixCls:n,style:t,className:o,checked:a,onChange:l,onClick:c}=e,s=b(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:p}=r.useContext(d.E_),f=u("tag",n),[g,m]=h(f),v=i()(f,`${f}-checkable`,{[`${f}-checkable-checked`]:a},null==p?void 0:p.className,o,m);return g(r.createElement("span",Object.assign({},s,{style:Object.assign(Object.assign({},t),null==p?void 0:p.style),className:v,onClick:e=>{null==l||l(!a),null==c||c(e)}})))},y=t(98719);var C=(0,f.b)(["Tag","preset"],(e=>(e=>(0,y.Z)(e,((n,t)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:i}=t;return{[`${e.componentCls}-${n}`]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(g(e))),m);const S=(e,n,t)=>{const r="string"!=typeof(o=t)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}-${n}`]:{color:e[`color${t}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var E=(0,f.b)(["Tag","status"],(e=>{const n=g(e);return[S(n,"success","Success"),S(n,"processing","Info"),S(n,"error","Error"),S(n,"warning","Warning")]}),m),x=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t};const $=(e,n)=>{const{prefixCls:t,className:a,rootClassName:u,style:p,children:f,icon:g,color:m,onClose:b,closeIcon:v,closable:y,bordered:S=!0}=e,$=x(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:O,direction:I,tag:N}=r.useContext(d.E_),[k,w]=r.useState(!0);r.useEffect((()=>{"visible"in $&&w($.visible)}),[$.visible]);const P=(0,l.o2)(m),M=(0,l.yT)(m),T=P||M,j=Object.assign(Object.assign({backgroundColor:m&&!T?m:void 0},null==N?void 0:N.style),p),R=O("tag",t),[A,Z]=h(R),_=i()(R,null==N?void 0:N.className,{[`${R}-${m}`]:T,[`${R}-has-color`]:m&&!T,[`${R}-hidden`]:!k,[`${R}-rtl`]:"rtl"===I,[`${R}-borderless`]:!S},a,u,Z),z=e=>{e.stopPropagation(),null==b||b(e),e.defaultPrevented||w(!1)},[,L]=(0,c.Z)(y,v,(e=>null===e?r.createElement(o.Z,{className:`${R}-close-icon`,onClick:z}):r.createElement("span",{className:`${R}-close-icon`,onClick:z},e)),null,!1),U="function"==typeof $.onClick||f&&"a"===f.type,H=g||null,B=H?r.createElement(r.Fragment,null,H,f&&r.createElement("span",null,f)):f,D=r.createElement("span",Object.assign({},$,{ref:n,className:_,style:j}),B,L,P&&r.createElement(C,{key:"preset",prefixCls:R}),M&&r.createElement(E,{key:"status",prefixCls:R}));return A(U?r.createElement(s.Z,{component:"Tag"},D):D)},O=r.forwardRef($);O.CheckableTag=v;var I=O}}]);