-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path4223.async.js
More file actions
2 lines (2 loc) · 25.1 KB
/
4223.async.js
File metadata and controls
2 lines (2 loc) · 25.1 KB
1
2
!(function(){"use strict";var Ie=Object.defineProperty,Me=Object.defineProperties;var we=Object.getOwnPropertyDescriptors;var me=Object.getOwnPropertySymbols;var ye=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable;var $e=(S,p,a)=>p in S?Ie(S,p,{enumerable:!0,configurable:!0,writable:!0,value:a}):S[p]=a,fe=(S,p)=>{for(var a in p||(p={}))ye.call(p,a)&&$e(S,a,p[a]);if(me)for(var a of me(p))be.call(p,a)&&$e(S,a,p[a]);return S},ve=(S,p)=>Me(S,we(p));var Ce=(S,p)=>{var a={};for(var l in S)ye.call(S,l)&&p.indexOf(l)<0&&(a[l]=S[l]);if(S!=null&&me)for(var l of me(S))p.indexOf(l)<0&&be.call(S,l)&&(a[l]=S[l]);return a};(self.webpackChunk=self.webpackChunk||[]).push([[4223],{15746:function(S,p,a){var l=a(21584);p.Z=l.Z},26412:function(S,p,a){a.d(p,{Z:function(){return b}});var l=a(67294),w=a(93967),T=a.n(w),D=a(74443),G=a(53124),K=a(98675),Z=a(25378),k={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},O=l.createContext({}),_=a(50344),f=function(e,n){var i={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(i[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o<t.length;o++)n.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(i[t[o]]=e[t[o]]);return i};const c=e=>(0,_.Z)(e).map(n=>Object.assign(Object.assign({},n==null?void 0:n.props),{key:n.key}));function C(e,n,i){const t=l.useMemo(()=>n||c(i),[n,i]);return l.useMemo(()=>t.map(h=>{var{span:m}=h,x=f(h,["span"]);return m==="filled"?Object.assign(Object.assign({},x),{filled:!0}):Object.assign(Object.assign({},x),{span:typeof m=="number"?m:(0,D.m9)(e,m)})}),[t,e])}var g=function(e,n){var i={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(i[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o<t.length;o++)n.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(i[t[o]]=e[t[o]]);return i};function I(e,n){let i=[],t=[],o=!1,h=0;return e.filter(m=>m).forEach(m=>{const{filled:x}=m,M=g(m,["filled"]);if(x){t.push(M),i.push(t),t=[],h=0;return}const E=n-h;h+=m.span||1,h>=n?(h>n?(o=!0,t.push(Object.assign(Object.assign({},M),{span:E}))):t.push(M),i.push(t),t=[],h=0):t.push(M)}),t.length>0&&i.push(t),i=i.map(m=>{const x=m.reduce((M,E)=>M+(E.span||1),0);if(x<n){const M=m[m.length-1];return M.span=n-x+1,m}return m}),[i,o]}var y=(e,n)=>{const[i,t]=(0,l.useMemo)(()=>I(n,e),[n,e]);return i},V=e=>{let{children:n}=e;return n};function F(e){return e!=null}var q=e=>{const{itemPrefixCls:n,component:i,span:t,className:o,style:h,labelStyle:m,contentStyle:x,bordered:M,label:E,content:R,colon:W,type:A}=e,L=i;return M?l.createElement(L,{className:T()({[`${n}-item-label`]:A==="label",[`${n}-item-content`]:A==="content"},o),style:h,colSpan:t},F(E)&&l.createElement("span",{style:m},E),F(R)&&l.createElement("span",{style:x},R)):l.createElement(L,{className:T()(`${n}-item`,o),style:h,colSpan:t},l.createElement("div",{className:`${n}-item-container`},(E||E===0)&&l.createElement("span",{className:T()(`${n}-item-label`,{[`${n}-item-no-colon`]:!W}),style:m},E),(R||R===0)&&l.createElement("span",{className:T()(`${n}-item-content`),style:x},R)))};function Q(e,n,i){let{colon:t,prefixCls:o,bordered:h}=n,{component:m,type:x,showLabel:M,showContent:E,labelStyle:R,contentStyle:W}=i;return e.map((A,L)=>{let{label:B,children:Y,prefixCls:te=o,className:N,style:ne,labelStyle:j,contentStyle:P,span:H=1,key:oe}=A;return typeof m=="string"?l.createElement(q,{key:`${x}-${oe||L}`,className:N,style:ne,labelStyle:Object.assign(Object.assign({},R),j),contentStyle:Object.assign(Object.assign({},W),P),span:H,colon:t,component:m,itemPrefixCls:te,bordered:h,label:M?B:null,content:E?Y:null,type:x}):[l.createElement(q,{key:`label-${oe||L}`,className:N,style:Object.assign(Object.assign(Object.assign({},R),ne),j),span:1,colon:t,component:m[0],itemPrefixCls:te,bordered:h,label:B,type:"label"}),l.createElement(q,{key:`content-${oe||L}`,className:N,style:Object.assign(Object.assign(Object.assign({},W),ne),P),span:H*2-1,component:m[1],itemPrefixCls:te,bordered:h,content:Y,type:"content"})]})}var le=e=>{const n=l.useContext(O),{prefixCls:i,vertical:t,row:o,index:h,bordered:m}=e;return t?l.createElement(l.Fragment,null,l.createElement("tr",{key:`label-${h}`,className:`${i}-row`},Q(o,e,Object.assign({component:"th",type:"label",showLabel:!0},n))),l.createElement("tr",{key:`content-${h}`,className:`${i}-row`},Q(o,e,Object.assign({component:"td",type:"content",showContent:!0},n)))):l.createElement("tr",{key:h,className:`${i}-row`},Q(o,e,Object.assign({component:m?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},n)))},v=a(11568),ae=a(14747),ie=a(83559),re=a(83262);const ee=e=>{const{componentCls:n,labelBg:i}=e;return{[`&${n}-bordered`]:{[`> ${n}-view`]:{border:`${(0,v.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${n}-row`]:{borderBottom:`${(0,v.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${n}-item-label, > ${n}-item-content`]:{padding:`${(0,v.bf)(e.padding)} ${(0,v.bf)(e.paddingLG)}`,borderInlineEnd:`${(0,v.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${n}-item-label`]:{color:e.colorTextSecondary,backgroundColor:i,"&::after":{display:"none"}}}},[`&${n}-middle`]:{[`${n}-row`]:{[`> ${n}-item-label, > ${n}-item-content`]:{padding:`${(0,v.bf)(e.paddingSM)} ${(0,v.bf)(e.paddingLG)}`}}},[`&${n}-small`]:{[`${n}-row`]:{[`> ${n}-item-label, > ${n}-item-content`]:{padding:`${(0,v.bf)(e.paddingXS)} ${(0,v.bf)(e.padding)}`}}}}}},J=e=>{const{componentCls:n,extraColor:i,itemPaddingBottom:t,itemPaddingEnd:o,colonMarginRight:h,colonMarginLeft:m,titleMarginBottom:x}=e;return{[n]:Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(e)),ee(e)),{"&-rtl":{direction:"rtl"},[`${n}-header`]:{display:"flex",alignItems:"center",marginBottom:x},[`${n}-title`]:Object.assign(Object.assign({},ae.vS),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${n}-extra`]:{marginInlineStart:"auto",color:i,fontSize:e.fontSize},[`${n}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${n}-row`]:{"> th, > td":{paddingBottom:t,paddingInlineEnd:o},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${n}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,v.bf)(m)} ${(0,v.bf)(h)}`},[`&${n}-item-no-colon::after`]:{content:'""'}},[`${n}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${n}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${n}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${n}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${n}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${n}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${n}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},r=e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText});var s=(0,ie.I$)("Descriptions",e=>{const n=(0,re.IX)(e,{});return J(n)},r),u=function(e,n){var i={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(i[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o<t.length;o++)n.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(i[t[o]]=e[t[o]]);return i};const d=e=>{const{prefixCls:n,title:i,extra:t,column:o,colon:h=!0,bordered:m,layout:x,children:M,className:E,rootClassName:R,style:W,size:A,labelStyle:L,contentStyle:B,items:Y}=e,te=u(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:N,direction:ne,descriptions:j}=l.useContext(G.E_),P=N("descriptions",n),H=(0,Z.Z)(),oe=l.useMemo(()=>{var ue;return typeof o=="number"?o:(ue=(0,D.m9)(H,Object.assign(Object.assign({},k),o)))!==null&&ue!==void 0?ue:3},[H,o]),ge=C(H,Y,M),de=(0,K.Z)(A),he=y(oe,ge),[Se,Oe,Ee]=s(P),xe=l.useMemo(()=>({labelStyle:L,contentStyle:B}),[L,B]);return Se(l.createElement(O.Provider,{value:xe},l.createElement("div",Object.assign({className:T()(P,j==null?void 0:j.className,{[`${P}-${de}`]:de&&de!=="default",[`${P}-bordered`]:!!m,[`${P}-rtl`]:ne==="rtl"},E,R,Oe,Ee),style:Object.assign(Object.assign({},j==null?void 0:j.style),W)},te),(i||t)&&l.createElement("div",{className:`${P}-header`},i&&l.createElement("div",{className:`${P}-title`},i),t&&l.createElement("div",{className:`${P}-extra`},t)),l.createElement("div",{className:`${P}-view`},l.createElement("table",null,l.createElement("tbody",null,he.map((ue,pe)=>l.createElement(le,{key:pe,index:pe,colon:h,prefixCls:P,vertical:x==="vertical",bordered:m,row:ue}))))))))};d.Item=V;var b=d},99134:function(S,p,a){var l=a(67294);const w=(0,l.createContext)({});p.Z=w},21584:function(S,p,a){var l=a(67294),w=a(93967),T=a.n(w),D=a(53124),G=a(99134),K=a(6999),Z=function(O,_){var f={};for(var c in O)Object.prototype.hasOwnProperty.call(O,c)&&_.indexOf(c)<0&&(f[c]=O[c]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,c=Object.getOwnPropertySymbols(O);C<c.length;C++)_.indexOf(c[C])<0&&Object.prototype.propertyIsEnumerable.call(O,c[C])&&(f[c[C]]=O[c[C]]);return f};function U(O){return typeof O=="number"?`${O} ${O} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(O)?`0 0 ${O}`:O}const k=["xs","sm","md","lg","xl","xxl"],X=l.forwardRef((O,_)=>{const{getPrefixCls:f,direction:c}=l.useContext(D.E_),{gutter:C,wrap:g}=l.useContext(G.Z),{prefixCls:I,span:$,order:y,offset:z,push:V,pull:F,className:se,children:q,flex:Q,style:ce}=O,le=Z(O,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),v=f("col",I),[ae,ie,re]=(0,K.cG)(v),ee={};let J={};k.forEach(u=>{let d={};const b=O[u];typeof b=="number"?d.span=b:typeof b=="object"&&(d=b||{}),delete le[u],J=Object.assign(Object.assign({},J),{[`${v}-${u}-${d.span}`]:d.span!==void 0,[`${v}-${u}-order-${d.order}`]:d.order||d.order===0,[`${v}-${u}-offset-${d.offset}`]:d.offset||d.offset===0,[`${v}-${u}-push-${d.push}`]:d.push||d.push===0,[`${v}-${u}-pull-${d.pull}`]:d.pull||d.pull===0,[`${v}-rtl`]:c==="rtl"}),d.flex&&(J[`${v}-${u}-flex`]=!0,ee[`--${v}-${u}-flex`]=U(d.flex))});const r=T()(v,{[`${v}-${$}`]:$!==void 0,[`${v}-order-${y}`]:y,[`${v}-offset-${z}`]:z,[`${v}-push-${V}`]:V,[`${v}-pull-${F}`]:F},se,J,ie,re),s={};if(C&&C[0]>0){const u=C[0]/2;s.paddingLeft=u,s.paddingRight=u}return Q&&(s.flex=U(Q),g===!1&&!s.minWidth&&(s.minWidth=0)),ae(l.createElement("div",Object.assign({},le,{style:Object.assign(Object.assign(Object.assign({},s),ce),ee),className:r,ref:_}),q))});p.Z=X},92820:function(S,p,a){var l=a(67294),w=a(93967),T=a.n(w),D=a(74443),G=a(53124),K=a(99134),Z=a(6999),U=function(f,c){var C={};for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&c.indexOf(g)<0&&(C[g]=f[g]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,g=Object.getOwnPropertySymbols(f);I<g.length;I++)c.indexOf(g[I])<0&&Object.prototype.propertyIsEnumerable.call(f,g[I])&&(C[g[I]]=f[g[I]]);return C};const k=null,X=null;function O(f,c){const[C,g]=l.useState(typeof f=="string"?f:""),I=()=>{if(typeof f=="string"&&g(f),typeof f=="object")for(let $=0;$<D.c4.length;$++){const y=D.c4[$];if(!c[y])continue;const z=f[y];if(z!==void 0){g(z);return}}};return l.useEffect(()=>{I()},[JSON.stringify(f),c]),C}const _=l.forwardRef((f,c)=>{const{prefixCls:C,justify:g,align:I,className:$,style:y,children:z,gutter:V=0,wrap:F}=f,se=U(f,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:q,direction:Q}=l.useContext(G.E_),[ce,le]=l.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,ae]=l.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),ie=O(I,v),re=O(g,v),ee=l.useRef(V),J=(0,D.ZP)();l.useEffect(()=>{const x=J.subscribe(M=>{ae(M);const E=ee.current||0;(!Array.isArray(E)&&typeof E=="object"||Array.isArray(E)&&(typeof E[0]=="object"||typeof E[1]=="object"))&&le(M)});return()=>J.unsubscribe(x)},[]);const r=()=>{const x=[void 0,void 0];return(Array.isArray(V)?V:[V,void 0]).forEach((E,R)=>{if(typeof E=="object")for(let W=0;W<D.c4.length;W++){const A=D.c4[W];if(ce[A]&&E[A]!==void 0){x[R]=E[A];break}}else x[R]=E}),x},s=q("row",C),[u,d,b]=(0,Z.VM)(s),e=r(),n=T()(s,{[`${s}-no-wrap`]:F===!1,[`${s}-${re}`]:re,[`${s}-${ie}`]:ie,[`${s}-rtl`]:Q==="rtl"},$,d,b),i={},t=e[0]!=null&&e[0]>0?e[0]/-2:void 0;t&&(i.marginLeft=t,i.marginRight=t);const[o,h]=e;i.rowGap=h;const m=l.useMemo(()=>({gutter:[o,h],wrap:F}),[o,h,F]);return u(l.createElement(K.Z.Provider,{value:m},l.createElement("div",Object.assign({},se,{className:n,style:Object.assign(Object.assign({},i),y),ref:c}),z)))});p.Z=_},6999:function(S,p,a){a.d(p,{VM:function(){return O},cG:function(){return _}});var l=a(11568),w=a(83559),T=a(83262);const D=f=>{const{componentCls:c}=f;return{[c]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},G=f=>{const{componentCls:c}=f;return{[c]:{position:"relative",maxWidth:"100%",minHeight:1}}},K=(f,c)=>{const{prefixCls:C,componentCls:g,gridColumns:I}=f,$={};for(let y=I;y>=0;y--)y===0?($[`${g}${c}-${y}`]={display:"none"},$[`${g}-push-${y}`]={insetInlineStart:"auto"},$[`${g}-pull-${y}`]={insetInlineEnd:"auto"},$[`${g}${c}-push-${y}`]={insetInlineStart:"auto"},$[`${g}${c}-pull-${y}`]={insetInlineEnd:"auto"},$[`${g}${c}-offset-${y}`]={marginInlineStart:0},$[`${g}${c}-order-${y}`]={order:0}):($[`${g}${c}-${y}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${y/I*100}%`,maxWidth:`${y/I*100}%`}],$[`${g}${c}-push-${y}`]={insetInlineStart:`${y/I*100}%`},$[`${g}${c}-pull-${y}`]={insetInlineEnd:`${y/I*100}%`},$[`${g}${c}-offset-${y}`]={marginInlineStart:`${y/I*100}%`},$[`${g}${c}-order-${y}`]={order:y});return $[`${g}${c}-flex`]={flex:`var(--${C}${c}-flex)`},$},Z=(f,c)=>K(f,c),U=(f,c,C)=>({[`@media (min-width: ${(0,l.bf)(c)})`]:Object.assign({},Z(f,C))}),k=()=>({}),X=()=>({}),O=(0,w.I$)("Grid",D,k),_=(0,w.I$)("Grid",f=>{const c=(0,T.IX)(f,{gridColumns:24}),C={"-sm":c.screenSMMin,"-md":c.screenMDMin,"-lg":c.screenLGMin,"-xl":c.screenXLMin,"-xxl":c.screenXXLMin};return[G(c),Z(c,""),Z(c,"-xs"),Object.keys(C).map(g=>U(c,C[g],g)).reduce((g,I)=>Object.assign(Object.assign({},g),I),{})]},X)},71230:function(S,p,a){var l=a(92820);p.Z=l.Z},72269:function(S,p,a){a.d(p,{Z:function(){return J}});var l=a(67294),w=a(50888),T=a(93967),D=a.n(T),G=a(87462),K=a(4942),Z=a(97685),U=a(45987),k=a(21770),X=a(15105),O=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],_=l.forwardRef(function(r,s){var u,d=r.prefixCls,b=d===void 0?"rc-switch":d,e=r.className,n=r.checked,i=r.defaultChecked,t=r.disabled,o=r.loadingIcon,h=r.checkedChildren,m=r.unCheckedChildren,x=r.onClick,M=r.onChange,E=r.onKeyDown,R=(0,U.Z)(r,O),W=(0,k.Z)(!1,{value:n,defaultValue:i}),A=(0,Z.Z)(W,2),L=A[0],B=A[1];function Y(j,P){var H=L;return t||(H=j,B(H),M==null||M(H,P)),H}function te(j){j.which===X.Z.LEFT?Y(!1,j):j.which===X.Z.RIGHT&&Y(!0,j),E==null||E(j)}function N(j){var P=Y(!L,j);x==null||x(P,j)}var ne=D()(b,e,(u={},(0,K.Z)(u,"".concat(b,"-checked"),L),(0,K.Z)(u,"".concat(b,"-disabled"),t),u));return l.createElement("button",(0,G.Z)({},R,{type:"button",role:"switch","aria-checked":L,disabled:t,className:ne,ref:s,onKeyDown:te,onClick:N}),o,l.createElement("span",{className:"".concat(b,"-inner")},l.createElement("span",{className:"".concat(b,"-inner-checked")},h),l.createElement("span",{className:"".concat(b,"-inner-unchecked")},m)))});_.displayName="Switch";var f=_,c=a(45353),C=a(53124),g=a(98866),I=a(98675),$=a(11568),y=a(10274),z=a(14747),V=a(83559),F=a(83262);const se=r=>{const{componentCls:s,trackHeightSM:u,trackPadding:d,trackMinWidthSM:b,innerMinMarginSM:e,innerMaxMarginSM:n,handleSizeSM:i,calc:t}=r,o=`${s}-inner`,h=(0,$.bf)(t(i).add(t(d).mul(2)).equal()),m=(0,$.bf)(t(n).mul(2).equal());return{[s]:{[`&${s}-small`]:{minWidth:b,height:u,lineHeight:(0,$.bf)(u),[`${s}-inner`]:{paddingInlineStart:n,paddingInlineEnd:e,[`${o}-checked, ${o}-unchecked`]:{minHeight:u},[`${o}-checked`]:{marginInlineStart:`calc(-100% + ${h} - ${m})`,marginInlineEnd:`calc(100% - ${h} + ${m})`},[`${o}-unchecked`]:{marginTop:t(u).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${s}-handle`]:{width:i,height:i},[`${s}-loading-icon`]:{top:t(t(i).sub(r.switchLoadingIconSize)).div(2).equal(),fontSize:r.switchLoadingIconSize},[`&${s}-checked`]:{[`${s}-inner`]:{paddingInlineStart:e,paddingInlineEnd:n,[`${o}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${o}-unchecked`]:{marginInlineStart:`calc(100% - ${h} + ${m})`,marginInlineEnd:`calc(-100% + ${h} - ${m})`}},[`${s}-handle`]:{insetInlineStart:`calc(100% - ${(0,$.bf)(t(i).add(d).equal())})`}},[`&:not(${s}-disabled):active`]:{[`&:not(${s}-checked) ${o}`]:{[`${o}-unchecked`]:{marginInlineStart:t(r.marginXXS).div(2).equal(),marginInlineEnd:t(r.marginXXS).mul(-1).div(2).equal()}},[`&${s}-checked ${o}`]:{[`${o}-checked`]:{marginInlineStart:t(r.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:t(r.marginXXS).div(2).equal()}}}}}}},q=r=>{const{componentCls:s,handleSize:u,calc:d}=r;return{[s]:{[`${s}-loading-icon${r.iconCls}`]:{position:"relative",top:d(d(u).sub(r.fontSize)).div(2).equal(),color:r.switchLoadingIconColor,verticalAlign:"top"},[`&${s}-checked ${s}-loading-icon`]:{color:r.switchColor}}}},Q=r=>{const{componentCls:s,trackPadding:u,handleBg:d,handleShadow:b,handleSize:e,calc:n}=r,i=`${s}-handle`;return{[s]:{[i]:{position:"absolute",top:u,insetInlineStart:u,width:e,height:e,transition:`all ${r.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:d,borderRadius:n(e).div(2).equal(),boxShadow:b,transition:`all ${r.switchDuration} ease-in-out`,content:'""'}},[`&${s}-checked ${i}`]:{insetInlineStart:`calc(100% - ${(0,$.bf)(n(e).add(u).equal())})`},[`&:not(${s}-disabled):active`]:{[`${i}::before`]:{insetInlineEnd:r.switchHandleActiveInset,insetInlineStart:0},[`&${s}-checked ${i}::before`]:{insetInlineEnd:0,insetInlineStart:r.switchHandleActiveInset}}}}},ce=r=>{const{componentCls:s,trackHeight:u,trackPadding:d,innerMinMargin:b,innerMaxMargin:e,handleSize:n,calc:i}=r,t=`${s}-inner`,o=(0,$.bf)(i(n).add(i(d).mul(2)).equal()),h=(0,$.bf)(i(e).mul(2).equal());return{[s]:{[t]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e,paddingInlineEnd:b,transition:`padding-inline-start ${r.switchDuration} ease-in-out, padding-inline-end ${r.switchDuration} ease-in-out`,[`${t}-checked, ${t}-unchecked`]:{display:"block",color:r.colorTextLightSolid,fontSize:r.fontSizeSM,transition:`margin-inline-start ${r.switchDuration} ease-in-out, margin-inline-end ${r.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:u},[`${t}-checked`]:{marginInlineStart:`calc(-100% + ${o} - ${h})`,marginInlineEnd:`calc(100% - ${o} + ${h})`},[`${t}-unchecked`]:{marginTop:i(u).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${s}-checked ${t}`]:{paddingInlineStart:b,paddingInlineEnd:e,[`${t}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${t}-unchecked`]:{marginInlineStart:`calc(100% - ${o} + ${h})`,marginInlineEnd:`calc(-100% + ${o} - ${h})`}},[`&:not(${s}-disabled):active`]:{[`&:not(${s}-checked) ${t}`]:{[`${t}-unchecked`]:{marginInlineStart:i(d).mul(2).equal(),marginInlineEnd:i(d).mul(-1).mul(2).equal()}},[`&${s}-checked ${t}`]:{[`${t}-checked`]:{marginInlineStart:i(d).mul(-1).mul(2).equal(),marginInlineEnd:i(d).mul(2).equal()}}}}}},le=r=>{const{componentCls:s,trackHeight:u,trackMinWidth:d}=r;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,z.Wf)(r)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:d,height:u,lineHeight:(0,$.bf)(u),verticalAlign:"middle",background:r.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${r.motionDurationMid}`,userSelect:"none",[`&:hover:not(${s}-disabled)`]:{background:r.colorTextTertiary}}),(0,z.Qy)(r)),{[`&${s}-checked`]:{background:r.switchColor,[`&:hover:not(${s}-disabled)`]:{background:r.colorPrimaryHover}},[`&${s}-loading, &${s}-disabled`]:{cursor:"not-allowed",opacity:r.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${s}-rtl`]:{direction:"rtl"}})}},v=r=>{const{fontSize:s,lineHeight:u,controlHeight:d,colorWhite:b}=r,e=s*u,n=d/2,i=2,t=e-i*2,o=n-i*2;return{trackHeight:e,trackHeightSM:n,trackMinWidth:t*2+i*4,trackMinWidthSM:o*2+i*2,trackPadding:i,handleBg:b,handleSize:t,handleSizeSM:o,handleShadow:`0 2px 4px 0 ${new y.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:t/2,innerMaxMargin:t+i+i*2,innerMinMarginSM:o/2,innerMaxMarginSM:o+i+i*2}};var ae=(0,V.I$)("Switch",r=>{const s=(0,F.IX)(r,{switchDuration:r.motionDurationMid,switchColor:r.colorPrimary,switchDisabledOpacity:r.opacityLoading,switchLoadingIconSize:r.calc(r.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${r.opacityLoading})`,switchHandleActiveInset:"-30%"});return[le(s),ce(s),Q(s),q(s),se(s)]},v),ie=function(r,s){var u={};for(var d in r)Object.prototype.hasOwnProperty.call(r,d)&&s.indexOf(d)<0&&(u[d]=r[d]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,d=Object.getOwnPropertySymbols(r);b<d.length;b++)s.indexOf(d[b])<0&&Object.prototype.propertyIsEnumerable.call(r,d[b])&&(u[d[b]]=r[d[b]]);return u};const ee=l.forwardRef((r,s)=>{const{prefixCls:u,size:d,disabled:b,loading:e,className:n,rootClassName:i,style:t,checked:o,value:h,defaultChecked:m,defaultValue:x,onChange:M}=r,E=ie(r,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[R,W]=(0,k.Z)(!1,{value:o!=null?o:h,defaultValue:m!=null?m:x}),{getPrefixCls:A,direction:L,switch:B}=l.useContext(C.E_),Y=l.useContext(g.Z),te=(b!=null?b:Y)||e,N=A("switch",u),ne=l.createElement("div",{className:`${N}-handle`},e&&l.createElement(w.Z,{className:`${N}-loading-icon`})),[j,P,H]=ae(N),oe=(0,I.Z)(d),ge=D()(B==null?void 0:B.className,{[`${N}-small`]:oe==="small",[`${N}-loading`]:e,[`${N}-rtl`]:L==="rtl"},n,i,P,H),de=Object.assign(Object.assign({},B==null?void 0:B.style),t),he=function(){W(arguments.length<=0?void 0:arguments[0]),M==null||M.apply(void 0,arguments)};return j(l.createElement(c.Z,{component:"Switch"},l.createElement(f,Object.assign({},E,{checked:R,onChange:he,prefixCls:N,className:ge,style:de,disabled:te,ref:s,loadingIcon:ne}))))});ee.__ANT_SWITCH=!0;var J=ee},33733:function(S,p,a){a.d(p,{Z:function(){return T}});var l=a(67294);var w={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};const T=(D,G,K,Z)=>{const U=(0,l.forwardRef)((I,g)=>{var $=I,{color:k="currentColor",size:X=24,stroke:O=2,title:_,className:f,children:c}=$,C=Ce($,["color","size","stroke","title","className","children"]);return(0,l.createElement)("svg",fe(fe(ve(fe({ref:g},w[D]),{width:X,height:X,className:["tabler-icon",`tabler-icon-${G}`,f].join(" ")}),D==="filled"?{fill:k}:{strokeWidth:O,stroke:k}),C),[_&&(0,l.createElement)("title",{key:"svg-title"},_),...Z.map(([y,z])=>(0,l.createElement)(y,z)),...Array.isArray(c)?c:[c]])});return U.displayName=`${K}`,U}},50545:function(S,p,a){a.d(p,{Z:function(){return w}});var l=a(33733);var w=(0,l.Z)("outline","archive","IconArchive",[["path",{d:"M3 4m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10",key:"svg-1"}],["path",{d:"M10 12l4 0",key:"svg-2"}]])},97975:function(S,p,a){a.d(p,{Z:function(){return w}});var l=a(33733);var w=(0,l.Z)("outline","plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]])},78298:function(S,p,a){a.d(p,{Z:function(){return w}});var l=a(33733);var w=(0,l.Z)("outline","refresh","IconRefresh",[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]])},70278:function(S,p,a){a.d(p,{Z:function(){return w}});var l=a(33733);var w=(0,l.Z)("outline","trash","IconTrash",[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]])}}]);
}());