@uiw/doc
Version:
UIW documentation website.
1 lines • 173 kB
JavaScript
(()=>{"use strict";var e={8869:(e,t,n)=>{n.d(t,{Z:()=>a});n(8573);var r=n(4760);const a={dark:(0,r.jsx)("svg",{viewBox:"0 0 20 20",width:"23",height:"23",version:"1.1",children:(0,r.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,r.jsx)("path",{d:"M5.70480219,0 L10.4096044,3.41834667 L8.61252986,8.94934776 L2.79707453,8.94934776 L1,3.41834667 L5.70480219,0 Z M5.70480219,20 L1,16.5816533 L2.79707453,11.0506522 L8.61252986,11.0506522 L10.4096044,16.5816533 L5.70480219,20 Z M18.8709653,12.9678909 L13.3400514,14.7649021 L9.92167142,10.0599974 L13.3399103,5.35519519 L18.8708781,7.15237223 L18.8709653,12.9678909 Z",fill:"#FFFFFF"})})}),light:(0,r.jsx)("svg",{viewBox:"0 0 20 20",version:"1.1",children:(0,r.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,r.jsx)("path",{d:"M5.70480219,0 L10.4096044,3.41834667 L8.61252986,8.94934776 L2.79707453,8.94934776 L1,3.41834667 L5.70480219,0 Z M5.70480219,20 L1,16.5816533 L2.79707453,11.0506522 L8.61252986,11.0506522 L10.4096044,16.5816533 L5.70480219,20 Z M18.8709653,12.9678909 L13.3400514,14.7649021 L9.92167142,10.0599974 L13.3399103,5.35519519 L18.8708781,7.15237223 L18.8709653,12.9678909 Z",fill:"#FFFFFF"})})})}},5578:(e,t,n)=>{var r=n(8573),a=n(8650),l=n(3279),i=n(623),s=n(948),o=(n(9059),n(4760));function c(){return(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{children:"It looks like you're lost..."}),(0,o.jsx)("p",{children:(0,o.jsx)(i.rU,{to:"/",children:"Go to the home page"})})]})}var d=n(7937);function u(){return(0,o.jsx)(d.Loader,{tip:"Loading...",indicator:(0,o.jsx)(d.Icon,{type:"loading",spin:!0,style:{verticalAlign:"text-top"}})})}var h=n(5752);const p={};function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.useMemo)((()=>(0,o.jsx)(d.Select.Option,{value:e.version,children:e.version})),[e.version])}const f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function t(e){const t=e.target.value,n="1"===t.split(".")[0];window.location.href=n?"https://unpkg.com/uiw@".concat(t,"/dist/index.html"):"https://unpkg.com/@uiw/doc@".concat(t,"/web/index.html")}const n=h.i8,a=e.data;return a[0]!==n&&a.unshift(n),(0,r.useMemo)((()=>(0,o.jsx)("div",{className:p.nav,children:(0,o.jsx)(d.Select,{defaultValue:a[0],onChange:t,children:a.map(((e,t)=>(0,o.jsx)(m,{version:e},t)))})})),[a])},v={sider:"index_sider__vrASx",menuWarpper:"index_menuWarpper__asOzy",subMenu:"index_subMenu__c4Mvo",layoutWrap:"index_layoutWrap__6CE3D",layoutSider:"index_layoutSider__1t-SG"},x=JSON.parse('["4.0.0","3.10.12","2.0.1","1.16.19"]'),g={title:"index_title__O5TzH",menu:"index_menu__9HE8I",divider:"index_divider__1cINS"};var y=n(6646);const j={home:(0,o.jsx)("svg",{width:"23",height:"24",viewBox:"0 0 23 24",children:(0,o.jsx)("path",{fill:"#555",d:"M7.95808665,21.4797568 L7.95808665,14.2926972 C7.95808665,13.872855 8.29729322,13.5325056 8.71572573,13.5325056 L14.7768383,13.5325056 C15.1952708,13.5325056 15.5344774,13.872855 15.5344774,14.2926972 L15.5344774,21.4800639 L18.3333605,21.4801773 C18.4412665,21.4760176 18.5251665,21.4671569 18.58271,21.4596448 C18.588514,21.3995182 18.5915777,21.3235793 18.5907536,21.2318213 L18.5909124,14.2893672 C18.590922,13.869525 18.9301364,13.5291834 19.3485689,13.5291931 C19.7670014,13.5292027 20.1062001,13.8695599 20.1061905,14.2894021 L20.1059996,21.2248359 C20.1119888,21.8771673 19.9896563,22.3494462 19.5993559,22.6516032 C19.3010239,22.8825616 18.9057568,22.9796164 18.3624477,23 L4.48346492,22.9997015 C3.86961191,22.9824374 3.38486601,22.8118189 3.07125061,22.4182996 C2.79329968,22.0695315 2.68322544,21.5965073 2.68425496,20.9934992 L2.68424909,14.2893853 C2.68424872,13.8695431 3.02345499,13.5291934 3.4418875,13.5291931 C3.86032001,13.5291927 4.19952687,13.8695418 4.19952724,14.289384 L4.199532,20.9947994 C4.19904359,21.2811808 4.23526541,21.4410529 4.2538782,21.4676906 C4.24030246,21.4480656 4.31738234,21.474056 4.50469304,21.4796169 L7.95808665,21.4797568 Z M9.4733648,21.4798183 L14.0191993,21.4800025 L14.0191993,15.0528888 L9.4733648,15.0528888 L9.4733648,21.4798183 Z M2.28332829,11.4133771 C1.98200714,11.7046849 1.50237937,11.6957445 1.21204968,11.3934082 C0.921719999,11.0910719 0.930630346,10.6098283 1.2319515,10.3185205 L10.4507678,1.41136668 C10.7833916,1.14885042 11.1310579,1 11.4999998,1 C11.9102569,1 12.2738276,1.19453217 12.5845816,1.51087139 L21.7658664,10.3164197 C22.0683439,10.6065186 22.0791684,11.0877227 21.7900436,11.3912192 C21.5009189,11.6947157 21.0213305,11.7055767 20.718853,11.4154779 L11.5218713,2.5944308 C11.4545418,2.52599021 11.4440624,2.52038312 11.4999998,2.52038312 C11.514622,2.52038312 11.4750696,2.53731716 11.4448602,2.55629655 L2.28332829,11.4133771 Z"})}),component:(0,o.jsxs)("svg",{viewBox:"0 0 1041 1024",width:"20",height:"20",children:[(0,o.jsx)("path",{d:"M133.498105 661.882904h31.175644v195.047619a34.373146 34.373146 0 0 0 34.373146 34.373146h109.514441a34.373146 34.373146 0 1 0 0-68.746292h-75.141295V627.509758a35.172521 35.172521 0 0 0-34.373146-35.172521h-65.54879a63.950039 63.950039 0 0 1 0-127.900079h65.54879a35.172521 35.172521 0 0 0 34.373146-35.172521V233.417642h195.846994a35.172521 35.172521 0 0 0 35.172522-34.373146v-65.54879a63.950039 63.950039 0 0 1 127.900078 0v65.54879a35.172521 35.172521 0 0 0 35.172521 34.373146h195.047619v74.341921a34.373146 34.373146 0 0 0 68.746292 0V199.044496a34.373146 34.373146 0 0 0-34.373146-34.373145H661.885302v-31.175645a133.495706 133.495706 0 0 0-266.991413 0v31.175645H199.046895a34.373146 34.373146 0 0 0-34.373146 34.373145v195.846995h-31.175644A132.696331 132.696331 0 0 0 0.002398 527.587822a133.495706 133.495706 0 0 0 133.495707 134.295082z",fill:"#6F737E"}),(0,o.jsx)("path",{d:"M1004.817386 840.943013a79.937549 79.937549 0 1 1 0-159.875097 34.373146 34.373146 0 0 0 34.373146-32.774395V533.982826a34.373146 34.373146 0 0 0-34.373146-34.373146H879.315435v-10.391881a103.119438 103.119438 0 1 0-206.238876 0v10.391881H549.972734a35.172521 35.172521 0 0 0-35.172522 34.373146v124.702576h-10.391881a103.119438 103.119438 0 1 0 0 206.238876h10.391881v124.702576a35.172521 35.172521 0 0 0 35.172522 34.373146H663.484053a34.373146 34.373146 0 0 0 34.373146-34.373146 79.937549 79.937549 0 0 1 159.875098 0 34.373146 34.373146 0 0 0 34.373146 34.373146h114.310694a34.373146 34.373146 0 0 0 34.373146-34.373146V879.313037a34.373146 34.373146 0 0 0-35.971897-38.370024z",fill:"#6F737E"})]}),github:(0,o.jsxs)("svg",{viewBox:"0 0 1049 1024",width:"20",height:"20",children:[(0,o.jsx)("path",{d:"M524.979332 0C234.676191 0 0 234.676191 0 524.979332c0 232.068678 150.366597 428.501342 358.967656 498.035028 26.075132 5.215026 35.636014-11.299224 35.636014-25.205961 0-12.168395-0.869171-53.888607-0.869171-97.347161-146.020741 31.290159-176.441729-62.580318-176.441729-62.580318-23.467619-60.841976-58.234462-76.487055-58.234463-76.487055-47.804409-32.15933 3.476684-32.15933 3.476685-32.15933 53.019436 3.476684 80.83291 53.888607 80.83291 53.888607 46.935238 79.963739 122.553122 57.365291 152.97411 43.458554 4.345855-33.897672 18.252593-57.365291 33.028501-70.402857-116.468925-12.168395-239.022047-57.365291-239.022047-259.012982 0-57.365291 20.860106-104.300529 53.888607-140.805715-5.215026-13.037566-23.467619-66.926173 5.215027-139.067372 0 0 44.327725-13.906737 144.282399 53.888607 41.720212-11.299224 86.917108-17.383422 131.244833-17.383422s89.524621 6.084198 131.244833 17.383422C756.178839 203.386032 800.506564 217.29277 800.506564 217.29277c28.682646 72.1412 10.430053 126.029806 5.215026 139.067372 33.897672 36.505185 53.888607 83.440424 53.888607 140.805715 0 201.64769-122.553122 245.975415-239.891218 259.012982 19.121764 16.514251 35.636014 47.804409 35.636015 97.347161 0 70.402857-0.869171 126.898978-0.869172 144.282399 0 13.906737 9.560882 30.420988 35.636015 25.205961 208.601059-69.533686 358.967656-265.96635 358.967655-498.035028C1049.958663 234.676191 814.413301 0 524.979332 0z",fill:"#191717"}),(0,o.jsx)("path",{d:"M199.040177 753.571326c-0.869171 2.607513-5.215026 3.476684-8.691711 1.738342s-6.084198-5.215026-4.345855-7.82254c0.869171-2.607513 5.215026-3.476684 8.691711-1.738342s5.215026 5.215026 4.345855 7.82254z m-6.953369-4.345856M219.900283 777.038945c-2.607513 2.607513-7.82254 0.869171-10.430053-2.607514-3.476684-3.476684-4.345855-8.691711-1.738342-11.299224 2.607513-2.607513 6.953369-0.869171 10.430053 2.607514 3.476684 4.345855 4.345855 9.560882 1.738342 11.299224z m-5.215026-5.215027M240.760389 807.459932c-3.476684 2.607513-8.691711 0-11.299224-4.345855-3.476684-4.345855-3.476684-10.430053 0-12.168395 3.476684-2.607513 8.691711 0 11.299224 4.345855 3.476684 4.345855 3.476684 9.560882 0 12.168395z m0 0M269.443034 837.011749c-2.607513 3.476684-8.691711 2.607513-13.906737-1.738342-4.345855-4.345855-6.084198-10.430053-2.607513-13.037566 2.607513-3.476684 8.691711-2.607513 13.906737 1.738342 4.345855 3.476684 5.215026 9.560882 2.607513 13.037566z m0 0M308.555733 853.526c-0.869171 4.345855-6.953369 6.084198-13.037566 4.345855-6.084198-1.738342-9.560882-6.953369-8.691711-10.430053 0.869171-4.345855 6.953369-6.084198 13.037566-4.345855 6.084198 1.738342 9.560882 6.084198 8.691711 10.430053z m0 0M351.145116 857.002684c0 4.345855-5.215026 7.82254-11.299224 7.82254-6.084198 0-11.299224-3.476684-11.299224-7.82254s5.215026-7.82254 11.299224-7.82254c6.084198 0 11.299224 3.476684 11.299224 7.82254z m0 0M391.126986 850.049315c0.869171 4.345855-3.476684 8.691711-9.560882 9.560882-6.084198 0.869171-11.299224-1.738342-12.168395-6.084197-0.869171-4.345855 3.476684-8.691711 9.560881-9.560882 6.084198-0.869171 11.299224 1.738342 12.168396 6.084197z m0 0",fill:"#191717"})]}),issue:(0,o.jsxs)("svg",{className:"issue",viewBox:"0 0 1024 1024",width:"23",height:"23",children:[(0,o.jsx)("path",{d:"M1022.976 698.368c0-58.88-24.064-113.664-64.512-155.648-44.544 175.616-223.744 307.2-438.784 310.784 51.712 55.296 131.072 90.624 219.648 90.624 21.504 0 41.984-2.048 61.952-6.144 54.784 75.776 121.856 72.192 121.856 72.192-24.064-14.848-27.136-69.632-26.112-108.032 76.288-44.032 125.952-119.296 125.952-203.776z m0 0",fill:"#558EFF"}),(0,o.jsx)("path",{d:"M458.24 13.824C205.312 13.824 0 191.488 0 410.624c0 137.216 80.384 258.048 202.24 329.216 1.536 61.44-3.584 150.016-41.984 174.592 0 0 108.544 5.632 197.12-116.736 32.256 6.144 66.048 9.728 100.352 9.728H465.92c215.04-3.584 394.24-135.168 438.784-310.784 7.168-27.648 10.752-56.32 10.752-86.016 0.512-219.136-204.288-396.8-457.216-396.8zM256 462.848c-33.792 0-60.928-27.136-60.928-60.928 0-33.792 27.136-60.928 60.928-60.928 33.792 0 60.928 27.136 60.928 60.928 0 33.792-27.136 60.928-60.928 60.928z m202.24 0c-33.792 0-60.928-27.136-60.928-60.928 0-33.792 27.136-60.928 60.928-60.928 33.792 0 60.928 27.136 60.928 60.928 0 33.792-27.136 60.928-60.928 60.928z m202.24 0c-33.792 0-60.928-27.136-60.928-60.928 0-33.792 27.136-60.928 60.928-60.928 33.792 0 60.928 27.136 60.928 60.928 0 33.792-27.136 60.928-60.928 60.928z m0 0",fill:"#549EFF"})]}),gitee:(0,o.jsx)("svg",{className:"gitee",viewBox:"0 0 1024 1024",width:"200",height:"200",children:(0,o.jsx)("path",{d:"M512 1024C229.222 1024 0 794.778 0 512S229.222 0 512 0s512 229.222 512 512-229.222 512-512 512z m259.149-568.883h-290.74a25.293 25.293 0 0 0-25.292 25.293l-0.026 63.206c0 13.952 11.315 25.293 25.267 25.293h177.024c13.978 0 25.293 11.315 25.293 25.267v12.646a75.853 75.853 0 0 1-75.853 75.853h-240.23a25.293 25.293 0 0 1-25.267-25.293V417.203a75.853 75.853 0 0 1 75.827-75.853h353.946a25.293 25.293 0 0 0 25.267-25.292l0.077-63.207a25.293 25.293 0 0 0-25.268-25.293H417.152a189.62 189.62 0 0 0-189.62 189.645V771.15c0 13.977 11.316 25.293 25.294 25.293h372.94a170.65 170.65 0 0 0 170.65-170.65V480.384a25.293 25.293 0 0 0-25.293-25.267z",fill:"#C71D23"})}),plugin:(0,o.jsxs)("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24",children:[(0,o.jsx)("path",{d:"M937.6 251.3L538 69.7c-11.5-5.1-24.6-5.1-36.1 0L102.4 251.3c-22.4 9.9-32.5 32.2-22.6 54.6 4.5 10.1 12.5 15.1 22.6 19.6L502 506.1c11.5 5.1 24.6 5.1 36.1 0l399.6-180.6c22.4-9.9 32.5-33.2 22.6-55.6-4.6-10.1-12.6-14.1-22.7-18.6zM497.6 723.4l-398.7-165c-18.4-7.6-27.1-28.7-19.5-47 7.6-18.4 28.7-27.1 47-19.5l398.7 165c18.4 7.6 27.1 28.7 19.5 47-7.6 18.3-28.6 27.1-47 19.5z"}),(0,o.jsx)("path",{d:"M526.4 723.4l398.7-165c18.4-7.6 27.1-28.7 19.5-47-7.6-18.4-28.7-27.1-47-19.5l-398.7 165c-18.4 7.6-27.1 28.7-19.5 47 7.6 18.3 28.6 27.1 47 19.5z"}),(0,o.jsx)("path",{d:"M497.6 955.4l-398.7-165c-18.4-7.6-27.1-28.7-19.5-47 7.6-18.4 28.7-27.1 47-19.5l398.7 165c18.4 7.6 27.1 28.7 19.5 47-7.6 18.3-28.6 27.1-47 19.5z"}),(0,o.jsx)("path",{d:"M526.4 955.4l398.7-165c18.4-7.6 27.1-28.7 19.5-47-7.6-18.4-28.7-27.1-47-19.5l-398.7 165c-18.4 7.6-27.1 28.7-19.5 47 7.6 18.3 28.6 27.1 47 19.5z"})]})};function b(){const e=(0,l.TH)(),t=y.find((t=>new RegExp("^".concat(t.path||"")).test(e.pathname)));return null!==t&&void 0!==t&&t.children?(0,o.jsxs)("div",{className:g.wapper,children:[(0,o.jsxs)("h2",{className:g.title,children:[j[t.icon],(0,o.jsx)("span",{children:t.name})]}),(0,o.jsx)("div",{className:g.menu,children:t.children&&t.children.map(((e,t)=>e.divider?(0,o.jsx)("div",{className:g.divider,children:e.name},t):/^http(?:|s):\/\//.test(e.path||"")?(0,o.jsxs)("a",{href:e.path,target:"__blank",children:[e.name,(0,o.jsxs)("svg",{viewBox:"0 0 1024 1024",width:14,children:[(0,o.jsx)("path",{d:"M821.1456 276.8384c-235.9296 25.1392-449.1776 226.7136-490.5472 452.352a38.4 38.4 0 1 1-75.5712-13.824c45.568-248.576 269.312-468.48 526.6944-510.6688l-117.8112-69.1712a38.4 38.4 0 0 1 38.912-66.2528l223.3344 131.1744a38.4 38.4 0 0 1 10.1376 57.6l-170.752 206.6432a38.4 38.4 0 1 1-59.1872-48.9472l114.7904-138.9056z"}),(0,o.jsx)("path",{d:"M832 620.0832a38.4 38.4 0 0 1 76.8 0v158.208c0 85.9648-61.5936 157.8496-140.8 157.8496H204.8c-79.2064 0-140.8-71.8848-140.8-157.9008V300.3904c0-86.016 61.5936-157.8496 140.8-157.8496h220.2112a38.4 38.4 0 1 1 0 76.8H204.8c-33.8944 0-64 35.072-64 81.0496V778.24c0 45.9776 30.1056 81.1008 64 81.1008h563.2c33.8944 0 64-35.1232 64-81.1008v-158.1568z"})]})]},t):(0,o.jsx)(i.OL,{to:e.path||"",replace:!0,children:e.name},t)))})]}):null}const w={logo:"index_logo__kUQOi",top:"index_top__DLxV-",nav:"index_nav__SdXbb",navTop:"index_navTop__08yh1",btn:"index_btn__YYGUe",btnTop:"index_btnTop__PlNw6"},C={layout:"top"},N=(e,t)=>({...e,...t}),k=r.createContext({state:C,dispatch:()=>null});var S=n(8869);const Z={menu:(0,o.jsx)("svg",{width:"19",height:"19",viewBox:"0 0 26 26",children:(0,o.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,o.jsx)("rect",{width:"26",height:"26",fill:"#9E9E9E",rx:"4"}),(0,o.jsx)("rect",{width:"5",height:"20",x:"3",y:"3",fill:"#202224",rx:"2.5"}),(0,o.jsx)("rect",{width:"12",height:"20",x:"11",y:"3",fill:"#FFF",fillOpacity:".657",rx:"2"})]})}),menutop:(0,o.jsx)("svg",{width:"19",height:"19",viewBox:"0 0 26 26",children:(0,o.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,o.jsx)("rect",{width:"26",height:"26",fill:"#9E9E9E",rx:"4"}),(0,o.jsx)("rect",{width:"20",height:"5",x:"3",y:"3",fill:"#202224",rx:"2.5"}),(0,o.jsx)("rect",{width:"20",height:"12",x:"3",y:"11",fill:"#FFF",fillOpacity:".66",rx:"2"})]})}),china:(0,o.jsxs)("svg",{className:"flag",width:"19",height:"19",viewBox:"0 0 512 512",children:[(0,o.jsx)("defs",{children:(0,o.jsx)("path",{id:"a",fill:"#ffde00",d:"M1-.3L-.7.8 0-1 .6.8-1-.3z"})}),(0,o.jsx)("path",{fill:"#de2910",d:"M0 0h512v512H0z"}),(0,o.jsx)("use",{width:"30",height:"20",transform:"matrix(76.8 0 0 76.8 128 128)",xlinkHref:"#a"}),(0,o.jsx)("use",{width:"30",height:"20",transform:"rotate(-121 142.6 -47) scale(25.5827)",xlinkHref:"#a"}),(0,o.jsx)("use",{width:"30",height:"20",transform:"rotate(-98.1 198 -82) scale(25.6)",xlinkHref:"#a"}),(0,o.jsx)("use",{width:"30",height:"20",transform:"rotate(-74 272.4 -114) scale(25.6137)",xlinkHref:"#a"}),(0,o.jsx)("use",{width:"30",height:"20",transform:"matrix(16 -19.968 19.968 16 256 230.4)",xlinkHref:"#a"})]})};function E(){const{state:e,dispatch:t}=(0,r.useContext)(k);return(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)("div",{className:[w.logo,"left"===e.layout?null:w.top].filter(Boolean).join(" ").trim(),children:(0,o.jsxs)(i.rU,{to:"/",children:[S.Z.dark,"top"===e.layout&&(0,o.jsxs)("span",{children:["UIW",(0,o.jsx)("sup",{children:h.i8})]})]})}),(0,o.jsx)("div",{className:[w.nav,"left"===e.layout?null:w.navTop].filter(Boolean).join(" ").trim(),children:y.map(((t,n)=>{let{path:r,name:a,icon:l}=t;if(Object.keys(j).includes(l)&&(l=j[l]),/^https?:(?:\/\/)?/.test(r))return"top"===e.layout?(0,o.jsxs)("a",{target:"__blank",href:r,className:w.outerUrl,children:[l," ",(0,o.jsx)("span",{children:a})]},n):(0,o.jsx)(d.Tooltip,{usePortal:!1,placement:"left"===e.layout?"right":"bottom",content:(0,o.jsx)("span",{style:{whiteSpace:"nowrap"},children:a}),children:(0,o.jsx)("a",{target:"__blank",href:r,className:w.outerUrl,children:l})},n);let s={color:"#fff"};return"top"===e.layout?(0,o.jsxs)(i.OL,{to:r,style:e=>{let{isActive:t}=e;return t?s:void 0},children:[l," ",(0,o.jsx)("span",{children:a})]},n):(0,o.jsx)(d.Tooltip,{usePortal:!1,placement:"left"===e.layout?"right":"bottom",content:(0,o.jsx)("span",{style:{whiteSpace:"nowrap"},children:a}),children:(0,o.jsx)(i.OL,{to:r,style:e=>{let{isActive:t}=e;return t?s:void 0},children:l})},n)}))}),(0,o.jsxs)("div",{className:[w.btn,"left"===e.layout?null:w.btnTop].filter(Boolean).join(" ").trim(),children:[(0,o.jsx)(d.Tooltip,{placement:"left"===e.layout?"right":"bottom",content:"\u56fd\u5185\u955c\u50cf\u7ad9\u70b9",children:(0,o.jsx)("a",{href:"http://uiw.gitee.io",rel:"noopener noreferrer",target:"_blank",children:Z.china})}),(0,o.jsx)("button",{onClick:()=>t({layout:"left"===e.layout?"top":"left"}),children:"left"===e.layout?Z.menu:Z.menutop})]})]})}const{Header:P,Sider:M,Content:B}=d.Layout;function z(e){const{siderMenu:t=!0}=e,{state:n}=(0,r.useContext)(k);return(0,o.jsx)(d.Layout,{className:v.layout,children:"top"===n.layout?(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)(d.Affix,{offsetTop:0,style:{zIndex:999,width:"100%"},children:(0,o.jsx)(P,{style:{display:"flex",alignItems:"center"},children:(0,o.jsx)(E,{})})}),(0,o.jsxs)(d.Layout,{className:v.layoutWrap,children:[(0,o.jsx)(M,{width:t?260:0,className:v.layoutSider,children:(0,o.jsx)("div",{style:{width:t?260:0,height:"calc(100vh - 53px)"},children:(0,o.jsx)(b,{})})}),(0,o.jsxs)(B,{style:{padding:20},className:v.layoutContent,children:[(0,o.jsx)(P,{style:{height:"inherit",lineHeight:"32px",position:"absolute",padding:"5px 10px",right:10,marginTop:-10,display:"flex",flexDirection:"row",justifyContent:"flex-end",backgroundColor:"transparent",zIndex:99},children:(0,o.jsx)(f,{data:x})}),(0,o.jsx)(l.j3,{})]})]})]}):(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)(M,{width:t?330:64,children:(0,o.jsxs)(d.Layout,{className:v.sider,children:[(0,o.jsx)(M,{className:v.menuWarpper,width:64,children:(0,o.jsx)(E,{})}),(0,o.jsx)(d.Layout,{style:{position:"fixed",width:t?330:64,zIndex:1,left:0,top:0,bottom:0,overflow:"auto"},children:(0,o.jsx)(B,{className:v.subMenu,style:{paddingLeft:64},children:(0,o.jsx)(b,{})})})]})}),(0,o.jsxs)(d.Layout,{style:{position:"relative"},children:[(0,o.jsx)(P,{style:{height:"inherit",lineHeight:"32px",position:"absolute",padding:"5px 10px",width:"100%",display:"flex",flexDirection:"row",justifyContent:"flex-end",backgroundColor:"transparent",zIndex:99},children:(0,o.jsx)(f,{data:x})}),(0,o.jsx)(B,{style:{padding:20},"data-ddd":"xxx",className:v.layoutContent,children:(0,o.jsx)(l.j3,{})})]})]})})}const L=e=>t=>(0,o.jsx)(r.Suspense,{fallback:(0,o.jsx)(u,{}),children:(0,o.jsx)(e,{...t})}),O=L((0,r.lazy)((()=>n.e(3174).then(n.bind(n,3174))))),D=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(6449)]).then(n.bind(n,9860))))),R=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(7465)]).then(n.bind(n,8818))))),A=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(5877)]).then(n.bind(n,7498))))),T=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(4876)]).then(n.bind(n,9558))))),I=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(3152)]).then(n.bind(n,707))))),F=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(993)]).then(n.bind(n,762))))),H=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(4154)]).then(n.bind(n,6552))))),W=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(7779)]).then(n.bind(n,5581))))),_=L((0,r.lazy)((()=>n.e(7025).then(n.bind(n,7025))))),V=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(3588)]).then(n.bind(n,3044))))),K=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(9406)]).then(n.bind(n,3634))))),Y=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(7729)]).then(n.bind(n,9816))))),$=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(2923)]).then(n.bind(n,816))))),U=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(7427)]).then(n.bind(n,5449))))),J=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(3533)]).then(n.bind(n,2180))))),G=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(188)]).then(n.bind(n,9659))))),q=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(295)]).then(n.bind(n,4454))))),X=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(9932)]).then(n.bind(n,1981))))),Q=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(677)]).then(n.bind(n,7969))))),ee=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(286)]).then(n.bind(n,2345))))),te=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(8386)]).then(n.bind(n,3282))))),ne=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(1599)]).then(n.bind(n,7852))))),re=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(6968)]).then(n.bind(n,9254))))),ae=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(8818)]).then(n.bind(n,3304))))),le=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(7329)]).then(n.bind(n,416))))),ie=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(6084)]).then(n.bind(n,7942))))),se=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(6074)]).then(n.bind(n,8518))))),oe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(9846)]).then(n.bind(n,8372))))),ce=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(2668)]).then(n.bind(n,8177))))),de=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(3028)]).then(n.bind(n,6053))))),ue=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(6521)]).then(n.bind(n,6157))))),he=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(1350)]).then(n.bind(n,1249))))),pe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(5922)]).then(n.bind(n,4513))))),me=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(3451)]).then(n.bind(n,6529))))),fe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(6610)]).then(n.bind(n,5921))))),ve=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(2474)]).then(n.bind(n,2762))))),xe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(269)]).then(n.bind(n,3805))))),ge=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(8586)]).then(n.bind(n,5462))))),ye=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(2027)]).then(n.bind(n,8759))))),je=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(1908),n.e(2405),n.e(9677),n.e(8577)]).then(n.bind(n,8080))))),be=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(1992)]).then(n.bind(n,4346))))),we=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(4907)]).then(n.bind(n,1712))))),Ce=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(517)]).then(n.bind(n,7737))))),Ne=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(2452)]).then(n.bind(n,6421))))),ke=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(6965)]).then(n.bind(n,1887))))),Se=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(5740)]).then(n.bind(n,1067))))),Ze=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(968)]).then(n.bind(n,1962))))),Ee=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(9899)]).then(n.bind(n,6134))))),Pe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(4687)]).then(n.bind(n,5046))))),Me=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(2976)]).then(n.bind(n,3411))))),Be=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(250)]).then(n.bind(n,8872))))),ze=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(383)]).then(n.bind(n,3962))))),Le=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(6819)]).then(n.bind(n,3798))))),Oe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(5704)]).then(n.bind(n,4463))))),De=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(6434)]).then(n.bind(n,145))))),Re=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(706)]).then(n.bind(n,9754))))),Ae=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(2678)]).then(n.bind(n,2437))))),Te=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(3492)]).then(n.bind(n,5778))))),Ie=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(3966)]).then(n.bind(n,2133))))),Fe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(7604)]).then(n.bind(n,350))))),He=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(4833)]).then(n.bind(n,1065))))),We=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(6037)]).then(n.bind(n,5066))))),_e=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(6349)]).then(n.bind(n,9543))))),Ve=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(3262)]).then(n.bind(n,2530))))),Ke=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(5817)]).then(n.bind(n,2110))))),Ye=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(494)]).then(n.bind(n,6927))))),$e=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(5490)]).then(n.bind(n,5626))))),Ue=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(9721)]).then(n.bind(n,4426))))),Je=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(2993)]).then(n.bind(n,5482))))),Ge=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(3864)]).then(n.bind(n,2129))))),qe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(632)]).then(n.bind(n,6982))))),Xe=L((0,r.lazy)((()=>Promise.all([n.e(6982),n.e(2405),n.e(9677),n.e(3026)]).then(n.bind(n,3297))))),Qe=[{path:"/extensions",element:(0,o.jsx)(z,{siderMenu:!1}),children:[{index:!0,element:(0,o.jsx)(D,{})},{path:"*",element:(0,o.jsx)(c,{})}]},{path:"/guide",element:(0,o.jsx)(z,{}),children:[{index:!0,element:(0,o.jsx)(R,{})},{path:"/guide/quick-start",element:(0,o.jsx)(R,{})},{path:"/guide/import",element:(0,o.jsx)(A,{})},{path:"/guide/create-react-app",element:(0,o.jsx)(T,{})},{path:"/guide/kkt",element:(0,o.jsx)(I,{})},{path:"/guide/vscode",element:(0,o.jsx)(H,{})},{path:"/guide/docs",element:(0,o.jsx)(F,{})},{path:"/guide/recommendation",element:(0,o.jsx)(W,{})},{path:"*",element:(0,o.jsx)(c,{})}]},{path:"/components",element:(0,o.jsx)(z,{}),children:[{index:!0,element:(0,o.jsx)(_,{})},{path:"/components/overview",element:(0,o.jsx)(_,{})},{path:"/components/colors",element:(0,o.jsx)(V,{})},{path:"/components/reset-css",element:(0,o.jsx)($,{})},{path:"/components/alert",element:(0,o.jsx)(K,{})},{path:"/components/auto-link",element:(0,o.jsx)(Y,{})},{path:"/components/avatar",element:(0,o.jsx)(U,{})},{path:"/components/affix",element:(0,o.jsx)(J,{})},{path:"/components/calendar",element:(0,o.jsx)(G,{})},{path:"/components/checkbox",element:(0,o.jsx)(X,{})},{path:"/components/copy-to-clipboard",element:(0,o.jsx)(Q,{})},{path:"/components/collapse",element:(0,o.jsx)(ee,{})},{path:"/components/card",element:(0,o.jsx)(te,{})},{path:"/components/carousel",element:(0,o.jsx)(ne,{})},{path:"/components/cascader",element:(0,o.jsx)(q,{})},{path:"/components/descriptions",element:(0,o.jsx)(re,{})},{path:"/components/loader",element:(0,o.jsx)(ae,{})},{path:"/components/icon",element:(0,o.jsx)(le,{})},{path:"/components/divider",element:(0,o.jsx)(ie,{})},{path:"/components/drawer",element:(0,o.jsx)(se,{})},{path:"/components/date-picker",element:(0,o.jsx)(oe,{})},{path:"/components/date-input",element:(0,o.jsx)(ce,{})},{path:"/components/dropdown",element:(0,o.jsx)(de,{})},{path:"/components/badge",element:(0,o.jsx)(ue,{})},{path:"/components/progress",element:(0,o.jsx)(he,{})},{path:"/components/pagination",element:(0,o.jsx)(pe,{})},{path:"/components/pin-code",element:(0,o.jsx)(me,{})},{path:"/components/input",element:(0,o.jsx)(fe,{})},{path:"/components/button",element:(0,o.jsx)(ve,{})},{path:"/components/radio",element:(0,o.jsx)(xe,{})},{path:"/components/select",element:(0,o.jsx)(ge,{})},{path:"/components/search-select",element:(0,o.jsx)(ye,{})},{path:"/components/split",element:(0,o.jsx)(je,{})},{path:"/components/switch",element:(0,o.jsx)(be,{})},{path:"/components/slider",element:(0,o.jsx)(we,{})},{path:"/components/grid",element:(0,o.jsx)(Ce,{})},{path:"/components/form",element:(0,o.jsx)(Ne,{})},{path:"/components/file-input",element:(0,o.jsx)(ke,{})},{path:"/components/breadcrumb",element:(0,o.jsx)(Se,{})},{path:"/components/list",element:(0,o.jsx)(Ze,{})},{path:"/components/layout",element:(0,o.jsx)(Ee,{})},{path:"/components/notify",element:(0,o.jsx)(Pe,{})},{path:"/components/tree",element:(0,o.jsx)(Me,{})},{path:"/components/tree-checked",element:(0,o.jsx)(Be,{})},{path:"/components/search-tree",element:(0,o.jsx)(ze,{})},{path:"/components/transfer",element:(0,o.jsx)(Le,{})},{path:"/components/tag",element:(0,o.jsx)(Oe,{})},{path:"/components/tabs",element:(0,o.jsx)(De,{})},{path:"/components/tooltip",element:(0,o.jsx)(Re,{})},{path:"/components/table",element:(0,o.jsx)(Ae,{})},{path:"/components/time-picker",element:(0,o.jsx)(Te,{})},{path:"/components/rate",element:(0,o.jsx)(Ie,{})},{path:"/components/overlay",element:(0,o.jsx)(Fe,{})},{path:"/components/back-top",element:(0,o.jsx)(He,{})},{path:"/components/portal",element:(0,o.jsx)(We,{})},{path:"/components/overlay-trigger",element:(0,o.jsx)(_e,{})},{path:"/components/popover",element:(0,o.jsx)(Ve,{})},{path:"/components/message",element:(0,o.jsx)(Ke,{})},{path:"/components/month-picker",element:(0,o.jsx)(Ye,{})},{path:"/components/textarea",element:(0,o.jsx)($e,{})},{path:"/components/modal",element:(0,o.jsx)(Ue,{})},{path:"/components/formatter",element:(0,o.jsx)(Je,{})},{path:"/components/steps",element:(0,o.jsx)(Ge,{})},{path:"/components/menu",element:(0,o.jsx)(qe,{})},{path:"/components/empty",element:(0,o.jsx)(Xe,{})},{path:"*",element:(0,o.jsx)(c,{})}]},{path:"/",element:(0,o.jsx)(O,{})}],et=()=>(0,l.V$)(Qe),tt=e=>{let{children:t}=e;const[n,a]=(0,r.useReducer)(N,C);return(0,o.jsx)(k.Provider,{value:{state:n,dispatch:a},children:t})},nt=document.getElementById("root");(0,a.s)(nt).render((0,o.jsxs)(i.UT,{children:[(0,o.jsx)(s.Z,{style:{zIndex:9999},children:"Top"}),(0,o.jsx)(tt,{children:(0,o.jsx)(et,{})})]}))},7937:(e,t,n)=>{n.r(t),n.d(t,{Affix:()=>h,Alert:()=>M,AutoLink:()=>L,Avatar:()=>D,BackTop:()=>T,Badge:()=>F,Breadcrumb:()=>K,Button:()=>N,ButtonGroup:()=>$,Calendar:()=>_e,Card:()=>Ke,Carousel:()=>$e,Cascader:()=>ut,Checkbox:()=>kt,CheckboxGroup:()=>bt,Circle:()=>er,Col:()=>dn,Collapse:()=>zt,CopyToClipboard:()=>Rt,DateInput:()=>Ft,DateInputRange:()=>Tt,DatePicker:()=>Te,DatePickerCaption:()=>De,DatePickerDay:()=>Ee,DatePickerMonth:()=>Me,DatePickerYear:()=>ze,DayRect:()=>ke,Descriptions:()=>Ut,Divider:()=>Gt,Drawer:()=>Xt,Dropdown:()=>Je,Empty:()=>en,FileInput:()=>on,Form:()=>gn,FormItem:()=>mn,Icon:()=>w,Input:()=>fe,InputNumber:()=>pe,Layout:()=>kn.default,LayoutContent:()=>kn.LayoutContent,LayoutContext:()=>kn.LayoutContext,LayoutFooter:()=>kn.LayoutFooter,LayoutHeader:()=>kn.LayoutHeader,LayoutSider:()=>kn.LayoutSider,Line:()=>nr,List:()=>Nn,ListItem:()=>jn,Loader:()=>Zn,Menu:()=>dt,MenuDivider:()=>tt,MenuItem:()=>Qe,Message:()=>Pn,Modal:()=>E,MonthPicker:()=>zn,Notify:()=>Fn,Overlay:()=>y,OverlayTrigger:()=>ce,Pagination:()=>Un,PinCode:()=>qn,Popover:()=>ue,Portal:()=>x,Progress:()=>rr,Radio:()=>mt,RadioAbstract:()=>pt,RadioButton:()=>yt,RadioGroup:()=>vt,Rate:()=>lr,Row:()=>hn,SearchSelect:()=>dr,SearchTree:()=>aa,Select:()=>Yn,Slider:()=>gr,Split:()=>ur.default,Steps:()=>fr,SubMenu:()=>at,Switch:()=>jr,Table:()=>Or,Tabs:()=>Ar,Tag:()=>sr,Textarea:()=>Ir,ThemeContext:()=>it,TimePicker:()=>be,TimePickerTime:()=>ye,Tooltip:()=>Hr,Transfer:()=>ia,Tree:()=>Gr,TreeChecked:()=>Xr,canUseDOM:()=>v,formatter:()=>U.Z,getChildKeys:()=>$r,randomid:()=>kn.randomid});var r=n(808),a=n(5773),l=n(8573);function i(){}function s(e,t){if("undefined"===typeof window)return 0;var n=t?"scrollTop":"scrollLeft",r=e===window,a=r?e[t?"pageYOffset":"pageXOffset"]:e[n];return r&&"number"!==typeof a&&(a=document.documentElement[n]),a}var o=(e,t)=>{var n=e.getBoundingClientRect(),r=(e=>e!==window?e.getBoundingClientRect():{top:0,left:0,bottom:0})(t),a=s(t,!0),l=s(t),i=window.document.body,o=i.clientTop||0,c=i.clientLeft||0;return{top:n.top-r.top+a-o,left:n.left-r.left+l-c,width:n.width,height:n.height}},c=()=>"undefined"!==typeof window?window:null,d=n(4760),u=["prefixCls","className","children","offsetTop","offsetBottom","target","onChange"];class h extends l.Component{constructor(e){super(e),this.state={placeholderStyle:void 0,affixStyle:void 0},this.box=void 0,this.target=void 0,this.events=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],this.eventHandlers={},this.timeout=void 0,this.getInstance=e=>{e&&(this.box=e)},this.updatePosition=this.updatePosition.bind(this)}componentDidMount(){var e=this.props.target||c;this.timeout=window.setTimeout((()=>{this.target=e(),this.setTargetEventListeners()}))}componentWillUnmount(){this.clearEventListeners(),clearTimeout(this.timeout)}updatePosition(){var{offsetTop:e}=this.props,{offsetBottom:t}=this.props;if(this.box&&this.box.offsetParent){var n={width:this.box.clientWidth,height:this.box.clientHeight},r={top:!0,bottom:!1};"number"!==typeof e&&"number"!==typeof t&&(r.top=!0,e=0),"number"===typeof t&&(r.top=!1,r.bottom=!0);var l=o(this.box,this.target),i=this.box.getBoundingClientRect(),s=document.documentElement.clientHeight-i.y-l.height;r.top&&i.y<0?(this.setPlaceholderStyle((0,a.Z)({},n)),this.setAffixStyle({position:"fixed",top:e||0,left:l.left,width:l.width})):r.bottom&&s<0?(this.setPlaceholderStyle((0,a.Z)({},n)),this.setAffixStyle({position:"fixed",bottom:t||0,left:l.left,width:l.width})):(this.setPlaceholderStyle(),this.setAffixStyle())}}setAffixStyle(e){var{onChange:t}=this.props,n=!!this.state.affixStyle;this.setState({affixStyle:e},(()=>{t&&t(n)}))}setPlaceholderStyle(e){this.setState({placeholderStyle:e})}setTargetEventListeners(){this.clearEventListeners(),this.events.forEach((e=>{this.eventHandlers[e]=this.updatePosition,this.target&&this.target.addEventListener(e,this.updatePosition,!1)}))}clearEventListeners(){this.events.forEach((e=>{var t=this.eventHandlers[e];this.target&&this.target.removeEventListener(e,t,!1)}))}render(){var e=this.props,{prefixCls:t,className:n,children:l}=e,i=(0,r.Z)(e,u),s=[n,t].filter(Boolean).join(" ").trim();return(0,d.jsx)("div",(0,a.Z)({},i,{ref:this.getInstance,style:(0,a.Z)({},this.state.placeholderStyle,this.props.style),children:(0,d.jsx)("div",{className:s,style:this.state.affixStyle,children:l})}))}}h.defaultProps={prefixCls:"w-affix",onChange:i};var p=n(7791),m=n(6231),f=n(6836),v=!("undefined"===typeof window||!window.document||!window.document.createElement);function x(e){var{container:t}=e,n=(0,l.useRef)(),r=(0,l.useRef)(t);return(0,l.useEffect)((()=>()=>{n.current&&r.current&&(r.current.removeChild(n.current),n.current=void 0)}),[]),v?(r.current||(r.current=document.body),n.current||(n.current=document.createElement("div"),r.current.appendChild(n.current)),f.createPortal(e.children,n.current)):null}var g=["className","style","isOpen","prefixCls","usePortal","maskClosable","backdropProps","portalProps","hasBackdrop","unmountOnExit","timeout","transitionName","onOpening","onOpened","onClosing","onClosed","onClose","onEnter","onExiting","onEntering","onEntered","onExit","children","dialogProps"];function y(e){var{className:t,style:n,isOpen:s=!1,prefixCls:o="w-overlay",usePortal:c=!0,maskClosable:u=!0,backdropProps:h={},portalProps:p={},hasBackdrop:f=!0,unmountOnExit:v=!0,timeout:y=300,transitionName:j="w-overlay",onOpening:b=i,onOpened:w=i,onClosing:C=i,onClosed:N=i,onClose:k=i,onEnter:S=i,onExiting:Z=i,onEntering:E=i,onEntered:P=i,onExit:M=i,children:B,dialogProps:z={}}=e,L=(0,r.Z)(e,g),[O,D]=(0,l.useState)(),[R,A]=(0,l.useState)(!1),T=(0,l.useRef)(null),I=(0,l.useRef)(null);(0,l.useEffect)((()=>{O!==e.isOpen&&e.isOpen&&A(!0),O===e.isOpen||e.isOpen||(W(),D(!1))}),[e.isOpen]),(0,l.useEffect)((()=>{R&&(f&&c&&document.body.classList.add(o+"-open"),D(!0))}),[R]);var F="object"===typeof B?(0,l.cloneElement)(B,(0,a.Z)({},z,{style:(0,a.Z)({},B.props.style,z.style),className:[B.props.className,o+"-content"].filter(Boolean).join(" ").trim(),tabIndex:0})):(0,d.jsx)("span",(0,a.Z)({},z,{className:o+"-content",children:B}));function H(e){e.target!==T.current&&c||(u&&f&&(W(),D(!1),k&&k(e)),h&&h.onMouseDown&&h.onMouseDown(e))}function W(){f&&c&&document.body.classList.remove(o+"-open")}var _=(0,d.jsx)(m.Z,(0,a.Z)({classNames:j,unmountOnExit:v,timeout:y,in:O,onEnter:e=>{S(I.current,e)},onEntering:e=>{b(I.current,e),E(I.current)},onEntered:e=>{w(I.current,e),P(I.current)},onExiting:()=>{C(I.current),Z(I.current)},onExited:()=>{var e;e=I.current,A(!1),N&&N(e),M(I.current)},nodeRef:I},L,{children:e=>(0,d.jsxs)("div",{style:n,ref:I,className:[o,t,c?null:o+"-inline",O?o+"-enter-done":null].filter(Boolean).join(" ").trim(),children:[f&&(0,l.cloneElement)((0,d.jsx)("div",{}),(0,a.Z)({},h,{onMouseDown:H,className:[o+"-backdrop",h.className].filter(Boolean).join(" ").trim(),tabIndex:u?0:null})),c?(0,d.jsx)("div",{ref:T,onMouseDown:H,className:o+"-container",children:(0,l.cloneElement)(F,{"data-status":e})}):(0,l.cloneElement)(F,{"data-status":e})]})}));return R&&c?(0,d.jsx)(x,(0,a.Z)({},(0,a.Z)({},p),{children:_})):_}var j=n(2193),b=["className","prefixCls","verticalAlign","tagName","color","type","spin","style"];const w=e=>{var{className:t,prefixCls:n="w-icon",verticalAlign:l="middle",tagName:i="span",color:s,type:o,spin:c=!1,style:u}=e,h=(0,r.Z)(e,b),p=null;"string"===typeof o&&(p=(0,d.jsx)("svg",{fill:s||e.fill,viewBox:"0 0 20 20",children:(j[o]||[]).map(((e,t)=>(0,d.jsx)("path",{d:e,fillRule:"evenodd"},t)))}));var m=(0,a.Z)({fill:"currentColor"},u),f=[n,t,n&&l?n+"-"+l:null,c&&n?n+"-spin":null].filter(Boolean).join(" ").trim();return(0,d.jsx)(i,(0,a.Z)({className:f},h,{style:m,children:p}))};var C=["prefixCls","disabled","active","loading","block","basic","htmlType","type","size","icon","className","children"];const N=l.forwardRef(((e,t)=>{var{prefixCls:n="w-btn",disabled:i=!1,active:s=!1,loading:o=!1,block:c=!1,basic:u=!1,htmlType:h="button",type:p="light",size:m="default",icon:f,className:v,children:x}=e,g=(0,r.Z)(e,C),y=[v,n,m?n+"-size-"+m:null,p?n+"-"+p:null,u?n+"-basic":null,o?n+"-loading":null,i||o?"disabled":null,s?"active":null,c?"block":null].filter(Boolean).join(" ").trim();return(0,d.jsxs)("button",(0,a.Z)({},g,{ref:t,type:h,disabled:i||o,className:y,children:[f&&(0,d.jsx)(w,{type:f}),x&&l.Children.map(x,(e=>e?l.isValidElement(e)?e:(0,d.jsx)("span",{children:e}):e))]}))}));var k=["title","children"];var S=["prefixCls","className","children","useButton","usePortal","autoFocus","isOpen","title","cancelText","cancelButtonProps","confirmButtonProps","content","confirmText","type","icon","maxWidth","minWidth","width","isCloseButtonShown","onCancel","onConfirm","bodyStyle"],Z=l.forwardRef(((e,t)=>{var{prefixCls:n="w-modal",className:s,children:o,useButton:c=!0,usePortal:u=!0,autoFocus:h=!1,isOpen:m=!1,title:f,cancelText:v,cancelButtonProps:x,confirmButtonProps:g,content:j,confirmText:b="\u786e\u8ba4",type:C="light",icon:k,maxWidth:Z=500,minWidth:E=320,width:P,isCloseButtonShown:M=!0,onCancel:B=i,onConfirm:z=i,bodyStyle:L}=e,O=(0,r.Z)(e,S),[D,R]=(0,l.useState)(e.isOpen);(0,l.useEffect)((()=>{e.isOpen!==D&&R(e.isOpen)}),[e.isOpen]);var[A,T]=(0,l.useState)(!1),I=[n,s,C?""+C:null].filter(Boolean).join(" ").trim();function F(e){return H.apply(this,arguments)}function H(){return(H=(0,p.Z)((function*(e){T(!0);try{B&&(yield B(e))}catch(e){}R(!1),T(!1)}))).apply(this,arguments)}function W(){return(W=(0,p.Z)((function*(e){T(!0);try{z&&(yield z(e))}catch(e){}R(!1),T(!1)}))).apply(this,arguments)}return(0,d.jsx)(y,(0,a.Z)({usePortal:u,isOpen:D},O,{onClose:function(){R(!1)},className:I,children:(0,d.jsx)("div",{className:n+"-container",children:(0,d.jsxs)("div",{className:[n+"-inner",f?n+"-shown-title":null,k?n+"-shown-icon":null].filter(Boolean).join(" ").trim(),style:{maxWidth:Z,minWidth:E,width:P},children:[(f||k)&&(0,d.jsxs)("div",{className:n+"-header",children:[k&&(0,d.jsx)(w,{type:k}),f&&(0,d.jsx)("h4",{children:f}),M&&(0,d.jsx)(N,{basic:!0,onClick:e=>F(e),icon:"close",type:"light"})]}),(0,d.jsx)("div",{className:n+"-body",style:L,children:o||j}),c&&(0,d.jsxs)("div",{className:n+"-footer",children:[(0,d.jsx)(N,(0,a.Z)({autoFocus:h,type:C,loading:A,disabled:A},g,{onClick:e=>function(e){return W.apply(this,arguments)}(e),children:b})),v&&(0,d.jsx)(N,(0,a.Z)({},x,{onClick:e=>F(e),children:v}))]})]})})}))}));Z.show=function(e){var t=e||{},{title:n="\u63d0\u793a\u6846",children:l}=t,i=(0,r.Z)(t,k),s=document.createElement("div");s.id="uiw-modal-call-show-element",document.body.appendChild(s),f.render((0,d.jsx)(E,(0,a.Z)({},i,{title:n,isOpen:!0,onClosed:()=>{s.remove()},children:l})),s)};const E=Z;var P=["prefixCls","className","width"];const M=function(e){void 0===e&&(e={});var{prefixCls:t="w-alert",className:n,width:l=400}=e,i=(0,r.Z)(e,P),s=[t,n].filter(Boolean).join(" ").trim();return(0,d.jsx)(E,(0,a.Z)({},i,{width:l,className:s,children:e.children}))};var B=["text"],z=/((?:https?:\/\/)?(?:(?:[a-z0-9]?(?:[a-z0-9\-]{1,61}[a-z0-9])?\.[^\.|\s])+[a-z\.]*[a-z]+|(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3})(?::\d{1,5})*[a-z0-9.,_\/~#&=;%+?\-\\(\\)]*)/gi;const L=function(e){void 0===e&&(e={});var{text:t=""}=e,n=(0,r.Z)(e,B);return(0,d.jsx)(l.Fragment,{children:t.split(z).map(((e,t)=>{var r=e.match(z);if(r&&r[0]){var i=r[0];return(0,l.createElement)("a",(0,a.Z)({},n,{key:t,href:i.startsWith("http")?i:"http://"+i}),i)}return(0,d.jsx)(l.Fragment,{children:e},t)}))})};var O=["prefixCls","shape","size","className","src","alt","icon","onError"];const D=l.forwardRef(((e,t)=>{var{prefixCls:n="w-avatar",shape:s="circle",size:o="default",className:c,src:u,alt:h,icon:p,onError:m=i}=e,f=(0,r.Z)(e,O),v=e.children,[x,g]=(0,l.useState)(!0),y=[n,c,o?n+"-"+o:null,s?n+"-"+s:null,u?n+"-image":null].filter(Boolean).join(" ").trim();return(0,l.useEffect)((()=>{g(!0)}),[e.src]),x&&u?v=(0,d.jsx)("img",{src:u,alt:h,onError:e=>{!1!==(m?m(e):void 0)&&g(!1)}}):p&&"string"===typeof p?v=(0,d.jsx)(w,{type:p}):p&&l.isValidElement(p)&&(v=p),(0,d.jsx)("span",(0,a.Z)({},f,{className:y,ref:t,children:v}))}));function R(){var e=0;return document&&document.documentElement&&document.documentElement.scrollTop?e=document.documentElement.scrollTop:document.body&&(e=document.body.scrollTop),e}var A=["prefixCls","className","content","children","offsetTop","fixed","speed","showBelow","clickable"];const T=l.forwardRef(((e,t)=>{var{prefixCls:n="w-back-top",className:i,content:s,children:o,offsetTop:c=0,fixed:u=!0,speed:h=100,showBelow:p=1,clickable:m=!0}=e,f=(0,r.Z)(e,A),v=u&&p||0,[x,g]=(0,l.useState)(0),[y,j]=(0,l.useState)(0),b=x>=v,w=[n,i,u?null:"no-fixed",b?n+"-show":null,b?null:n+"-hide"].filter(Boolean).join(" ").trim();function C(){g(function(e){void 0===e&&(e=0);var t=0;return e<R()&&(t=Math.round((R()-e)/(document.body.scrollHeight-e-window.innerHeight)*100)),t>100?100:t}(c)),j(R())}function N(){"number"===typeof c&&"number"===typeof h&&"number"===typeof y&&function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=100),void 0===n&&(n=0);var r=0,a=setInterval((()=>{n-r>=e?n-(r+=t)>=e?window.scrollTo(0,n-r):window.scrollTo(0,e):clearInterval(a)}),0)}(c,h,y)}return(0,l.useEffect)((()=>(window&&window.addEventListener("scroll",C),function(){window&&window.removeEventListener("scroll",C)}))),(0,d.jsxs)("div",(0,a.Z)({onClick:()=>m&&N(),className:w},f,{ref:t,children:[s,"function"!==typeof o?o:o({percent:x,current:y,scrollToTop:N})]}))}));var I=["prefixCls","className","style","color","max","dot","processing","count","children"];const F=l.forwardRef(((e,t)=>{var{prefixCls:n="w-badge",className:l,style:i={},color:s,max:o=99,dot:c=!1,processing:u=!1,count:h,children:p}=e,m=(0,r.Z)(e,I),f={className:[c?null:n+"-count",c?"dot":null].filter(Boolean).join(" ").trim(),style:{}},v=[l,n,p?null:"nowrap",p?null:n+"-status",u?n+"-processing":null].filter(Boolean).join(" ").trim(),x={};return h||0===h?f.style=(0,a.Z)({backgroundColor:s},i):x.style=i||{},(0,d.jsxs)("span",(0,a.Z)({className:v},m,x,{ref:t,children:[s&&(0,d.jsx)("span",{className:n+"-dot",style:{backgroundColor:s}}),p,0!==h&&!s&&(0,d.jsx)("sup",(0,a.Z)({},f,{children:!c&&h&&o&&h>o?o+"+":h}))]}))}));var H=["prefixCls","className","tagName","active","separator"];const W=l.forwardRef(((e,t)=>{var{prefixCls:n="w-breadcrumb",className:i,tagName:s="span",active:o,separator:c}=e,u=(0,r.Z)(e,H),h=l.isValidElement(c),p=[n+"-item",i,o?"active":null,c?null:"no-separator",h?"no-before":null].filter(Boolean).join(" ").trim(),m=(0,a.Z)({className:p},u);return h||(m["data-separator"]=c),l.createElement(s,(0,a.Z)({},m,{ref:t}),(0,d.jsxs)(l.Fragment,{children:[h&&(0,d.jsx)("span",{className:n+"-separator",children:c}),e.children]}))}));var _=["prefixCls","className","separator"],V=l.forwardRef(((e,t)=>{var{prefixCls:n="w-breadcrumb",className:i,separator:s="/"}=e,o=(0,r.Z)(e,_),c=[n,i].filter(Boolean).join(" ").trim();return(0,d.jsx)("div",(0,a.Z)({},(0,a.Z)({className:c},o),{ref:t,children:l.Children.map(e.children,(e=>l.cloneElement(e,Object.assign({separator:s},e.props,{}))))}))}));V.Item=W;const K=V;var Y=["prefixCls","vertical","children","className"];const $=l.forwardRef(((e,t)=>{var{prefixCls:n="w-btn-group",vertical:l=!1,children:i,className:s}=e,o=(0,r.Z)(e,Y),c=[n,s,l&&n+"-vertical"].filter(Boolean).join(" ").trim();return(0,d.jsx)("div",(0,a.Z)({className:c},o,{ref:t,children:i}))}));var U=n(371);function J(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}function G(e){return"function"===typeof HTMLElement?e instanceof HTMLElement:e&&"object"===typeof e&&1===e.nodeType&&"string"===typeof e.nodeName}const q=!("undefined"===typeof window||!window.document||!window.document.createElement)?function(e,t){return e&&e.contains&&"function"===typeof e.contains&&G(t)?e.contains(t):e&&e.compareDocumentPosition&&G(t)?e===t||!!e.compareDocumentPosition(t):J(e,t)}:J;function X(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}const Q="undefined"!==typeof window&&"undefined"!==typeof document;var ee=Q&&!(!window.MSInputMethodContext||!document.documentMode),te=Q&&/MSIE 10/.test(navigator.userAgent);function ne(e){return 11===e?ee:10===e?te:ee||te}function re(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],ne(10)?parseInt(n["offset"+e],10)+parseInt(r["margin"+("Height"===e?"Top":"Left")],10)+parseInt(r["margin"+("Height"===e?"Bottom":"Right")],10):0)}function ae(e){var t={};try{if(ne(10)){t=e.getBoundingClientRect();var n=s(e,!0),r=s(e);t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(m){}var l,i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?function(e){var t=e.body,n=e.documentElement,r=getComputedStyle(n);return{height:re("Height",t,n,r),width:re("Width",t,n,r)}}(e.ownerDocument):{},c=o.width||e.clientWidth||i.right-i.left,d=o.height||e.clientHeight||i.bottom-i.top,u=e.offsetWidth-c,h=e.offsetHeight-d;if(i.offsetLeft=e.offsetLeft||e.scrollLeft||0,i.offsetTop=e.offsetTop||e.offsetTop||0,u||h){var p=function(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}(e);u-=X(p,"x"),h-=X(p,"y"),i.width-=u,i.height-=h}return l=i,(0,a.Z)({},l,{right:l.left+l.width,bottom:l.top+l.height})}function le(e){var t=e.getBoundingClientRect();return{width:e.offsetWidth||e.scrollWidth||t.width||0,height:e.offsetHeight||e.scrollHeight||t.height||0}}function ie(e){var{trigger:t,popup:n,placement:r,usePortal:l,autoAdjustOverflow:i}=e||{},o={left:0,top:0,placement:r};if(!t||!n||!document)return o;var c=Math.max(document.documentElement.clientHeight,window.innerHeight||0),d=Math.max(document.documentElement.clientWidth,window.innerWidth||0);o.placement=r;var u=s(t.ownerDocument.documentElement,!0),h=s(t.ownerDocument.documentElement),p=(0,a.Z)({},ae(t),le(t)),m=(0,a.Z)({},ae(n),le(n)),f=c-p.bottom,v=d-p.left-p.width;switch(o.top=p.top+u,o.left=p.left,l||(o.top=p.offsetTop,o.left=p.offsetLeft),r&&/^(top)/.test(r)&&(o.top-=m.height),r&&/^(right)/.test(r)&&(o.left+=p.width),r&&/^(bottom)/.test(r)&&(o.top+=p.height),r&&/^(left)/.test(r)&&(o.left-=m.width),o.placement){case"bottomLeft":case"topLeft":case"rightTop":case"leftTop":default:break;case"bottom":case"top":o.left=o.left-(m.width-p.width)/2;break;case"bottomRight":case"topRight":o.left=o.left+h+p.width-m.width;break;case"right":case"left":o.top=o.top-(m.height-p.height)/2;break;case"rightBottom":case"leftBottom":o.top=o.top-m.height+p.height}return i&&(r&&/^(top)/.test(r)&&p.top<m.height&&f>m.height&&(o.placement=r.replace(/^top/