(self.webpackChunk=self.webpackChunk||[]).push([[21560],{78673:function(e,n,t){"use strict";t.d(n,{Z:function(){return N}});var r=t(58617),i=t(92310),a=t.n(i),o=t(54476),c=t(20068),l=t(42978),u=t(75931),s=t(59301),d=t(18929),f=t(10228),p=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],g=s.forwardRef((function(e,n){var t,r=e.prefixCls,i=void 0===r?"rc-switch":r,g=e.className,h=e.checked,m=e.defaultChecked,v=e.disabled,b=e.loadingIcon,S=e.checkedChildren,w=e.unCheckedChildren,y=e.onClick,x=e.onChange,$=e.onKeyDown,k=(0,u.Z)(e,p),I=(0,d.Z)(!1,{value:h,defaultValue:m}),_=(0,l.Z)(I,2),E=_[0],O=_[1];function C(e,n){var t=E;return v||(O(t=e),null==x||x(t,n)),t}var j=a()(i,g,(t={},(0,c.Z)(t,"".concat(i,"-checked"),E),(0,c.Z)(t,"".concat(i,"-disabled"),v),t));return s.createElement("button",(0,o.Z)({},k,{type:"button",role:"switch","aria-checked":E,disabled:v,className:j,ref:n,onKeyDown:function(e){e.which===f.Z.LEFT?C(!1,e):e.which===f.Z.RIGHT&&C(!0,e),null==$||$(e)},onClick:function(e){var n=C(!E,e);null==y||y(n,e)}}),b,s.createElement("span",{className:"".concat(i,"-inner")},s.createElement("span",{className:"".concat(i,"-inner-checked")},S),s.createElement("span",{className:"".concat(i,"-inner-unchecked")},w)))}));g.displayName="Switch";var h=g,m=t(14088),v=t(36355),b=t(1684),S=t(19716),w=t(64993),y=t(17313),x=t(83116),$=t(37613);const k=e=>{const{componentCls:n,trackHeightSM:t,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:c}=e,l=`${n}-inner`;return{[n]:{[`&${n}-small`]:{minWidth:i,height:t,lineHeight:`${t}px`,[`${n}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c+2*r}px - ${2*o}px)`,marginInlineEnd:`calc(100% - ${c+2*r}px + ${2*o}px)`},[`${l}-unchecked`]:{marginTop:-t,marginInlineStart:0,marginInlineEnd:0}},[`${n}-handle`]:{width:c,height:c},[`${n}-loading-icon`]:{top:(c-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${n}-checked`]:{[`${n}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c+2*r}px + ${2*o}px)`,marginInlineEnd:`calc(-100% + ${c+2*r}px - ${2*o}px)`}},[`${n}-handle`]:{insetInlineStart:`calc(100% - ${c+r}px)`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${n}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},I=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:i,handleShadow:a,handleSize:o}=e,c=`${n}-handle`;return{[n]:{[c]:{position:"absolute",top:r,insetInlineStart:r,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:i,borderRadius:o/2,boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${n}-checked ${c}`]:{insetInlineStart:`calc(100% - ${o+r}px)`},[`&:not(${n}-disabled):active`]:t?{[`${c}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${n}-checked ${c}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},E=e=>{const{componentCls:n,trackHeight:t,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o}=e,c=`${n}-inner`;return{[n]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-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"},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${o+2*r}px - ${2*a}px)`,marginInlineEnd:`calc(100% - ${o+2*r}px + ${2*a}px)`},[`${c}-unchecked`]:{marginTop:-t,marginInlineStart:0,marginInlineEnd:0}},[`&${n}-checked ${c}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${o+2*r}px + ${2*a}px)`,marginInlineEnd:`calc(-100% + ${o+2*r}px - ${2*a}px)`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:2*r,marginInlineEnd:2*-r}},[`&${n}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:2*-r,marginInlineEnd:2*r}}}}}},O=e=>{const{componentCls:n,trackHeight:t,trackMinWidth:r}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,y.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,y.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 C=(0,x.Z)("Switch",(e=>{const n=(0,$.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[O(n),E(n),_(n),I(n),k(n)]}),(e=>{const{fontSize:n,lineHeight:t,controlHeight:r,colorWhite:i}=e,a=n*t,o=r/2,c=a-4,l=o-4;return{trackHeight:a,trackHeightSM:o,trackMinWidth:2*c+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:i,handleSize:c,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new w.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}})),j=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 i=0;for(r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,size:i,disabled:o,loading:c,className:l,rootClassName:u,style:d}=e,f=j(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:p,direction:g,switch:w}=s.useContext(v.E_),y=s.useContext(b.Z),x=(null!=o?o:y)||c,$=p("switch",t),k=s.createElement("div",{className:`${$}-handle`},c&&s.createElement(r.Z,{className:`${$}-loading-icon`})),[I,_]=C($),E=(0,S.Z)(i),O=a()(null==w?void 0:w.className,{[`${$}-small`]:"small"===E,[`${$}-loading`]:c,[`${$}-rtl`]:"rtl"===g},l,u,_),M=Object.assign(Object.assign({},null==w?void 0:w.style),d);return I(s.createElement(m.Z,{component:"Switch"},s.createElement(h,Object.assign({},f,{prefixCls:$,className:O,style:M,disabled:x,ref:n,loadingIcon:k}))))}));M.__ANT_SWITCH=!0;var N=M},7062:function(e,n,t){var r=t(19637),i=t(13412),a=[t(96627)];e.exports=r.createStore(i,a)},96627:function(e,n,t){e.exports=function(){return t(42424),{}}},42424:function(){"object"!=typeof JSON&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta,rep;function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,(function(e){var n=meta[e];return"string"==typeof n?n:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function str(e,n){var t,r,i,a,o,c=gap,l=n[e];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(e)),"function"==typeof rep&&(l=rep.call(n,e,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,o=[],"[object Array]"===Object.prototype.toString.apply(l)){for(a=l.length,t=0;t=0;t--)if(a(n[t])){var r=n[t].split("="),i=unescape(r[0]);e(unescape(r[1]),i)}}function l(e){e&&u(e)&&(o.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function u(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(o.cookie)}},52496:function(e,n,t){var r=t(67039).Global;function i(){return r.localStorage}function a(e){return i().getItem(e)}e.exports={name:"localStorage",read:a,write:function(e,n){return i().setItem(e,n)},each:function(e){for(var n=i().length-1;n>=0;n--){var t=i().key(n);e(a(t),t)}},remove:function(e){return i().removeItem(e)},clearAll:function(){return i().clear()}}},65300:function(e){e.exports={name:"memoryStorage",read:function(e){return n[e]},write:function(e,t){n[e]=t},each:function(e){for(var t in n)n.hasOwnProperty(t)&&e(n[t],t)},remove:function(e){delete n[e]},clearAll:function(e){n={}}};var n={}},16436:function(e,n,t){var r=t(67039).Global;e.exports={name:"oldFF-globalStorage",read:function(e){return i[e]},write:function(e,n){i[e]=n},each:a,remove:function(e){return i.removeItem(e)},clearAll:function(){a((function(e,n){delete i[e]}))}};var i=r.globalStorage;function a(e){for(var n=i.length-1;n>=0;n--){var t=i.key(n);e(i[t],t)}}},76673:function(e,n,t){var r=t(67039).Global;e.exports={name:"oldIE-userDataStorage",write:function(e,n){if(c)return;var t=u(e);o((function(e){e.setAttribute(t,n),e.save(i)}))},read:function(e){if(c)return;var n=u(e),t=null;return o((function(e){t=e.getAttribute(n)})),t},each:function(e){o((function(n){for(var t=n.XMLDocument.documentElement.attributes,r=t.length-1;r>=0;r--){var i=t[r];e(n.getAttribute(i.name),i.name)}}))},remove:function(e){var n=u(e);o((function(e){e.removeAttribute(n),e.save(i)}))},clearAll:function(){o((function(e){var n=e.XMLDocument.documentElement.attributes;e.load(i);for(var t=n.length-1;t>=0;t--)e.removeAttribute(n[t].name);e.save(i)}))}};var i="storejs",a=r.document,o=function(){if(!a||!a.documentElement||!a.documentElement.addBehavior)return null;var e,n,t,r="script";try{(n=new ActiveXObject("htmlfile")).open(),n.write("<"+r+">document.w=window'),n.close(),e=n.w.frames[0].document,t=e.createElement("div")}catch(n){t=a.createElement("div"),e=a.body}return function(n){var r=[].slice.call(arguments,0);r.unshift(t),e.appendChild(t),t.addBehavior("#default#userData"),t.load(i),n.apply(this,r),e.removeChild(t)}}(),c=(r.navigator?r.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);var l=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function u(e){return e.replace(/^\d/,"___$&").replace(l,"___")}},65578:function(e,n,t){var r=t(67039).Global;function i(){return r.sessionStorage}function a(e){return i().getItem(e)}e.exports={name:"sessionStorage",read:a,write:function(e,n){return i().setItem(e,n)},each:function(e){for(var n=i().length-1;n>=0;n--){var t=i().key(n);e(a(t),t)}},remove:function(e){return i().removeItem(e)},clearAll:function(){return i().clear()}}}}]);