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.
1 lines
14 KiB
1 lines
14 KiB
"use strict";(self.webpackChunkantd=self.webpackChunkantd||[]).push([[1032],{35518:function(w,h,t){t.r(h),t.d(h,{default:function(){return s3}});var n=t(97857),m=t.n(n),i=t(805574),B=t.n(i),E=t(666818),r=t(513669),C=t(606641),g=t(667294),N=t(217187),H=t(967333),P=t.n(H),b=t(513769),G=t.n(b),K=t(953193),e=t(370917),$=["children","theme"],U=function(a){var c=a.children,o=a.theme,s=G()(a,$),f=(0,g.useContext)(r.ConfigProvider.ConfigContext),d=f.getPrefixCls,v=f.iconPrefixCls,y=d(),L=r.theme.useToken(),l=L.token;return g.useEffect(function(){r.ConfigProvider.config({theme:o})},[o]),(0,e.tZ)(K.f6,P()({},s,{theme:o,customToken:{headerHeight:64,menuItemBorder:2,mobileMaxWidth:767.99,siteMarkdownCodeBg:l.colorFillTertiary,antCls:".".concat(y),iconCls:".".concat(v),marginFarXS:l.marginXXL/6*7,marginFarSM:l.marginXXL/3*5,marginFar:l.marginXXL*2,codeFamily:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace"}}),c)},V=U,J=t(438746),Q=t(719632),T=t.n(Q),Y=t(173224),q=t(468839),_=t(122366),t3=t(769906),e3=t(352180),D=t(373638),n3=t(316165),o3=function(a){var c=g.useCallback(function(){return(0,e.tZ)("svg",P()({width:20,height:20,viewBox:"0 0 24 24",fill:"currentColor"},a),(0,e.tZ)("g",{fillRule:"evenodd"},(0,e.tZ)("g",{fillRule:"nonzero"},(0,e.tZ)("path",{d:"M7.02 3.635l12.518 12.518a1.863 1.863 0 010 2.635l-1.317 1.318a1.863 1.863 0 01-2.635 0L3.068 7.588A2.795 2.795 0 117.02 3.635zm2.09 14.428a.932.932 0 110 1.864.932.932 0 010-1.864zm-.043-9.747L7.75 9.635l9.154 9.153 1.318-1.317-9.154-9.155zM3.52 12.473c.514 0 .931.417.931.931v.932h.932a.932.932 0 110 1.864h-.932v.931a.932.932 0 01-1.863 0l-.001-.931h-.93a.932.932 0 010-1.864h.93v-.932c0-.514.418-.931.933-.931zm15.374-3.727a1.398 1.398 0 110 2.795 1.398 1.398 0 010-2.795zM4.385 4.953a.932.932 0 000 1.317l2.046 2.047L7.75 7 5.703 4.953a.932.932 0 00-1.318 0zM14.701.36a.932.932 0 01.931.932v.931h.932a.932.932 0 010 1.864h-.933l.001.932a.932.932 0 11-1.863 0l-.001-.932h-.93a.932.932 0 110-1.864h.93v-.931a.932.932 0 01.933-.932z"}))))},[a]);return(0,e.tZ)(n3.Z,P()({component:c},a))},a3=o3,i3=function(a){var c=a.value,o=c===void 0?["light"]:c,s=a.onChange,f=(0,e3.Z)(),d=f.token,v=(0,C.TH)(),y=v.pathname,L=v.search,l=o.includes("motion-off");return(0,e.tZ)(r.FloatButton.Group,{trigger:"click",icon:(0,e.tZ)(a3,null)},(0,e.tZ)(C.rU,{to:(0,D.J1)("/theme-editor",(0,D.KE)(y),L),style:{display:"block",marginBottom:d.margin}},(0,e.tZ)(r.FloatButton,{icon:(0,e.tZ)(Y.Z,null),tooltip:(0,e.tZ)(C._H,{id:"app.footer.theme"})})),(0,e.tZ)(r.FloatButton,{icon:(0,e.tZ)(q.Z,null),type:o.includes("dark")?"primary":"default",onClick:function(){o.includes("dark")?s(o.filter(function(u){return u!=="dark"})):s([].concat(T()(o),["dark"]))},tooltip:(0,e.tZ)(C._H,{id:"app.theme.switch.dark"})}),(0,e.tZ)(r.FloatButton,{icon:(0,e.tZ)(_.Z,null),type:o.includes("compact")?"primary":"default",onClick:function(){o.includes("compact")?s(o.filter(function(u){return u!=="compact"})):s([].concat(T()(o),["compact"]))},tooltip:(0,e.tZ)(C._H,{id:"app.theme.switch.compact"})}),(0,e.tZ)(r.FloatButton,{icon:(0,e.tZ)(t3.Z,null),type:l?"default":"primary",onClick:function(){s(l?o.filter(function(u){return u!=="motion-off"}):[].concat(T()(o),["motion-off"]))},tooltip:(0,e.tZ)(C._H,{id:l?"app.theme.switch.motion.off":"app.theme.switch.motion.on"})}))},r3=i3,l3=t(438199),c3=768,O=(0,E.Df)();typeof t.g!="undefined"&&(t.g.styleCache=O);var u3=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return a.map(function(c){return c==="dark"?r.theme.darkAlgorithm:c==="compact"?r.theme.compactAlgorithm:r.theme.defaultAlgorithm})},m3=function(){var a=(0,C.pC)(),c=(0,J.Z)(),o=c.pathname,s=(0,C.lr)(),f=B()(s,2),d=f[0],v=f[1],y=(0,N.Z)({isMobile:!1,direction:"ltr",theme:["light","motion-off"]}),L=B()(y,2),l=L[0],S=l.theme,u=S===void 0?[]:S,j=l.direction,z=l.isMobile,R=L[1],k=(0,g.useCallback)(function(Z){R(function(F){return m()(m()({},F),Z)});var p=d.toString(),M=d;Object.entries(Z).forEach(function(F){var W=B()(F,2),I=W[0],X=W[1];I==="direction"&&(X==="rtl"?M.set("direction","rtl"):M.delete("direction")),I==="theme"&&(M=(0,C.fW)(m()(m()({},M),{},{theme:X.filter(function(d3){return d3!=="light"})})))}),M.toString()!==p&&v(M)},[d,v]),A=function(){k({isMobile:window.innerWidth<c3})};(0,g.useEffect)(function(){var Z=d.getAll("theme"),p=d.get("direction");return R({theme:Z,direction:p==="rtl"?"rtl":"ltr"}),A(),window.addEventListener("resize",A),function(){window.removeEventListener("resize",A)}},[]);var C3=(0,g.useMemo)(function(){return{direction:j,updateSiteConfig:k,theme:u,isMobile:z}},[z,j,k,u]);return(0,e.tZ)(E.V9,{cache:O,linters:[E.nc,E.Ke,E.rA]},(0,e.tZ)(l3.Z.Provider,{value:C3},(0,e.tZ)(V,{theme:{algorithm:u3(u),token:{motion:!u.includes("motion-off")}}},(0,e.tZ)(r.App,null,a,!o.startsWith("/~demos")&&(0,e.tZ)(r3,{value:u,onChange:function(p){return k({theme:p})}})))))},s3=m3},122366:function(w,h,t){var n=t(667294);function m(i){return n.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i,{style:Object.assign({verticalAlign:"-0.125em"},i.style),className:["nanqu-token-panel-icon",i.className].filter(Boolean).join(" ")}),n.createElement("g",{id:"Compact-\u9875\u9762-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},n.createElement("g",{id:"Compact-\u9ED8\u8BA4",transform:"translate(-9.000000, -82.500000)",fill:"currentColor",fillRule:"nonzero"},n.createElement("g",{id:"Compact-\u9009\u9879\u4E00",transform:"translate(9.268811, 79.500000)"},n.createElement("g",{id:"Compact-smaller",transform:"translate(0.000000, 3.000000)"},n.createElement("rect",{id:"Compact-\u77E9\u5F62",opacity:0,x:0,y:0,width:16,height:16}),n.createElement("path",{d:"M10,14 L10,12 C10,10.8666667 10.8666667,10 12,10 L14,10 C14.4,10 14.6666667,10.2666667 14.6666667,10.6666667 C14.6666667,11.0666667 14.4,11.3333333 14,11.3333333 L12,11.3333333 C11.6,11.3333333 11.3333333,11.6 11.3333333,12 L11.3333333,14 C11.3333333,14.4 11.0666667,14.6666667 10.6666667,14.6666667 C10.2666667,14.6666667 10,14.4 10,14 L10,14 Z M4.66666667,14 L4.66666667,12 C4.66666667,11.6 4.4,11.3333333 4,11.3333333 L2,11.3333333 C1.6,11.3333333 1.33333333,11.0666667 1.33333333,10.6666667 C1.33333333,10.2666667 1.6,10 2,10 L4,10 C5.13333333,10 6,10.8666667 6,12 L6,14 C6,14.4 5.73333333,14.6666667 5.33333333,14.6666667 C4.93333333,14.6666667 4.66666666,14.4 4.66666667,14 L4.66666667,14 Z M12,6 C10.8666667,6 10,5.13333333 10,4 L10,2 C10,1.6 10.2666667,1.33333333 10.6666667,1.33333333 C11.0666667,1.33333333 11.3333333,1.6 11.3333333,2 L11.3333333,4 C11.3333333,4.4 11.6,4.66666667 12,4.66666667 L14,4.66666667 C14.4,4.66666667 14.6666667,4.93333334 14.6666667,5.33333333 C14.6666667,5.73333331 14.4,6 14,6 L12,6 L12,6 Z M2,6 C1.6,6 1.33333333,5.73333333 1.33333333,5.33333333 C1.33333333,4.93333333 1.6,4.66666666 2,4.66666667 L4,4.66666667 C4.4,4.66666667 4.66666667,4.4 4.66666667,4 L4.66666667,2 C4.66666667,1.6 4.93333334,1.33333333 5.33333333,1.33333333 C5.73333331,1.33333333 6,1.6 6,2 L6,4 C6,5.13333333 5.13333333,6 4,6 L2,6 Z",id:"Compact-\u5F62\u72B6"}))))))}h.Z=m},468839:function(w,h,t){var n=t(667294);function m(i){return n.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i,{style:Object.assign({verticalAlign:"-0.125em"},i.style),className:["nanqu-token-panel-icon",i.className].filter(Boolean).join(" ")}),n.createElement("g",{id:"Dark-\u9875\u9762-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},n.createElement("g",{id:"Dark-\u9ED8\u8BA4",transform:"translate(-9.000000, -49.500000)",fill:"currentColor",fillRule:"nonzero"},n.createElement("g",{id:"Dark-\u7F16\u7EC4-17",transform:"translate(0.000000, 42.500000)"},n.createElement("g",{id:"Dark-moon",transform:"translate(9.268811, 7.500000)"},n.createElement("rect",{id:"Dark-\u77E9\u5F62",opacity:0,x:0,y:0,width:16,height:16}),n.createElement("path",{d:"M8,1.33333333 C8.14933333,1.33333333 8.29688889,1.33844444 8.44266667,1.34866666 C8.14755556,1.98422221 8,2.64577777 8,3.33333333 C8,3.96533333 8.12333333,4.56955555 8.37,5.146 C8.61666667,5.72244445 8.94822222,6.21888889 9.36466667,6.63533333 C9.78111112,7.05177777 10.2775556,7.38333332 10.854,7.63 C11.4304444,7.87666668 12.0346667,8.00000001 12.6666667,8 C13.3542222,8 14.0157778,7.85244444 14.6513333,7.55733333 C14.6615556,7.70311111 14.6666667,7.85066667 14.6666667,8 C14.6666667,8.604 14.5868889,9.19422222 14.4273333,9.77066667 C14.2677778,10.3471111 14.0446667,10.8793333 13.758,11.3673333 C13.4713333,11.8553333 13.1233333,12.3042222 12.714,12.714 C12.3046667,13.1237778 11.8557778,13.4717778 11.3673333,13.758 C10.8788889,14.0442222 10.3466667,14.2673333 9.77066667,14.4273333 C9.19466667,14.5873333 8.60444445,14.6671111 8,14.6666685 C7.39555555,14.6662222 6.80533333,14.5864444 6.22933333,14.4273333 C5.65333333,14.2682222 5.1211111,14.0451111 4.63266666,13.758 C4.14422221,13.4708889 3.69533332,13.1228889 3.28599998,12.714 C2.87666665,12.3051111 2.52866665,11.8562222 2.24199998,11.3673333 C1.95533332,10.8784444 1.73222221,10.3462222 1.57266666,9.77066667 C1.4131111,9.19511112 1.33333333,8.6048889 1.33333333,8 C1.33333333,7.3951111 1.4131111,6.80488888 1.57266666,6.22933333 C1.73222221,5.65377778 1.95533332,5.12155555 2.24199998,4.63266666 C2.52866665,4.14377776 2.87666665,3.69488887 3.28599998,3.28599998 C3.69533332,2.8771111 4.14422221,2.5291111 4.63266666,2.24199998 C5.1211111,1.95488887 5.65333333,1.73177776 6.22933333,1.57266666 C6.80533333,1.41355555 7.39555555,1.33377778 8,1.33333333 Z M6.68733333,2.828 C6.11444444,2.97377778 5.58066667,3.20977778 5.086,3.536 C4.59133333,3.86222222 4.166,4.24933333 3.81,4.69733333 C3.454,5.14533333 3.17444444,5.65488889 2.97133333,6.226 C2.76822221,6.79711111 2.66666666,7.38822222 2.66666666,7.99933333 C2.66666666,8.72155555 2.80733332,9.41155555 3.08866666,10.0693333 C3.36999999,10.7271111 3.74933332,11.2948889 4.22666666,11.7726667 C4.70399999,12.2504444 5.27177777,12.6297778 5.92999998,12.9106667 C6.5882222,13.1915556 7.2782222,13.3322222 7.99999998,13.3326667 C8.6111111,13.3326667 9.20222221,13.2311111 9.77333331,13.028 C10.3444444,12.8248889 10.854,12.5453333 11.302,12.1893333 C11.75,11.8333333 12.1371111,11.408 12.4633333,10.9133333 C12.7895555,10.4186666 13.0255555,9.88488887 13.1713333,9.31199998 C13.022,9.32577777 12.8535555,9.33266666 12.666,9.33266666 C11.8535555,9.33266666 11.0775555,9.17377777 10.338,8.85599998 C9.59844443,8.5382222 8.96044443,8.11111109 8.42399998,7.57466666 C7.88755554,7.03822222 7.46044443,6.40022222 7.14266666,5.66066666 C6.82488889,4.92111109 6.66599999,4.14511109 6.66599998,3.33266666 C6.66599998,3.1451111 6.67288888,2.97666666 6.68666666,2.82733333 L6.68733333,2.828 Z",id:"Dark-\u5F62\u72B6"}))))))}h.Z=m},769906:function(w,h,t){var n=t(667294);function m(i){return n.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 16 17",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i,{style:Object.assign({verticalAlign:"-0.125em"},i.style),className:["nanqu-token-panel-icon",i.className].filter(Boolean).join(" ")}),n.createElement("g",{id:"Motion-\u9875\u9762-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},n.createElement("g",{id:"Motion-\u5BCC\u6587\u672C\u7F16\u8F91\u5668_\u52A8\u6548",transform:"translate(0.000000, 0.903962)",fill:"currentColor",fillRule:"nonzero"},n.createElement("rect",{id:"Motion-\u77E9\u5F62",opacity:0,x:0,y:0,width:16,height:15.9807923}),n.createElement("path",{d:"M6.55644444,12.5262777 L7.99555556,13.9627734 C8.13290682,14.0984321 8.18701716,14.2971622 8.13737053,14.4836147 C8.0877239,14.6700672 7.94192169,14.8156943 7.75524511,14.8652814 C7.56856853,14.9148684 7.36959959,14.860823 7.23377778,14.7236366 L5.79555556,13.2862532 C5.60250935,13.0737079 5.61045949,12.7472435 5.8136232,12.5443237 C6.01678692,12.3414038 6.3436437,12.3334632 6.55644444,12.5262777 L6.55644444,12.5262777 Z M12.2435556,12.6630023 L13.3857778,13.8038533 C13.5231286,13.9395121 13.5772386,14.138242 13.527592,14.3246942 C13.4779453,14.5111464 13.3321433,14.6567734 13.145467,14.7063605 C12.9587906,14.7559476 12.7598219,14.7019025 12.624,14.5647165 L11.4817778,13.4238655 C11.3444269,13.2882067 11.2903169,13.0894768 11.3399636,12.9030246 C11.3896103,12.7165724 11.5354123,12.5709454 11.7220886,12.5213583 C11.9087649,12.4717712 12.1077337,12.5258163 12.2435556,12.6630023 L12.2435556,12.6630023 Z M7.29511111,0.990809123 C7.37066667,1.03342457 7.43377778,1.09645992 7.47644444,1.17192476 L9.23911111,4.29439403 L12.7564444,5.00376364 C12.9258902,5.03768098 13.0638332,5.16026877 13.1172645,5.32441904 C13.1706959,5.4885693 13.1313024,5.66874209 13.0142222,5.79570068 L10.5866667,8.43430705 L10.9982222,11.9953603 C11.018176,12.1667991 10.94398,12.3356549 10.8041422,12.4370491 C10.6643043,12.5384432 10.4805781,12.5566027 10.3235556,12.4845501 L7.06133333,10.9930095 L3.79733333,12.4845501 C3.64031082,12.5566027 3.45658456,12.5384432 3.3167467,12.4370491 C3.17690884,12.3356549 3.10271286,12.1667991 3.12266667,11.9953603 L3.53511111,8.43519487 L1.10577778,5.79570068 C0.988697555,5.66874209 0.949304077,5.4885693 1.00273546,5.32441904 C1.05616684,5.16026877 1.19410976,5.03768098 1.36355556,5.00376364 L4.88177778,4.29439403 L6.64266667,1.17192476 C6.70502264,1.06136833 6.80886024,0.980137913 6.93126543,0.94615878 C7.05367063,0.912179648 7.18458201,0.928244805 7.29511111,0.990809123 Z M7.05955556,2.62440123 L5.57688889,5.25235374 L2.61688889,5.84808216 L4.65955556,8.07030012 L4.31288889,11.0666987 L7.05955556,9.81131866 L9.80533333,11.0666987 L9.45866667,8.07030012 L11.5031111,5.84896999 L8.54222222,5.25235374 L7.05866667,2.62440123 L7.05955556,2.62440123 Z M13.1528889,7.76045031 L14.5911111,9.19694597 C14.7892424,9.40878705 14.7837079,9.73933037 14.5785954,9.9444359 C14.373483,10.1495414 14.0425491,10.1554552 13.8302222,9.95780926 L12.3911111,8.5213136 C12.2537603,8.38565475 12.1996502,8.18692487 12.2492969,8.00047265 C12.2989436,7.81402043 12.4447456,7.66839345 12.6314219,7.61880637 C12.8180983,7.56921929 13.017067,7.62326436 13.1528889,7.76045031 L13.1528889,7.76045031 Z",id:"Motion-\u5F62\u72B6"}))))}h.Z=m}}]);
|
|
|