@rsdoctor/client 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.html +1 -1
- package/dist/resource/css/505.b09c71b1.css +1 -0
- package/dist/resource/js/305.c739e0ad.js +1 -0
- package/dist/resource/js/505.b0671115.js +460 -0
- package/dist/resource/js/685.cfc0d5a4.js +1 -0
- package/dist/resource/js/async/239.bd71915c.js +1 -0
- package/dist/resource/js/async/432.627e7428.js +1 -0
- package/dist/resource/js/async/544.a3528983.js +1 -0
- package/dist/resource/js/async/811.1fbe2090.js +1 -0
- package/dist/resource/js/async/849.38fafa21.js +1 -0
- package/dist/resource/js/index.a7b9ce38.js +156 -0
- package/dist/resource/js/monaco-0.c3af1bd3.js +2 -0
- package/dist/resource/js/monaco-1.7b4f9f8c.js +17 -0
- package/dist/resource/js/monaco-10.3718b786.js +25 -0
- package/dist/resource/js/monaco-11.2ffe6be1.js +369 -0
- package/dist/resource/js/monaco-12.d0039040.js +1 -0
- package/dist/resource/js/monaco-13.c39a81c1.js +70 -0
- package/dist/resource/js/monaco-14.ab3cfa3a.js +31 -0
- package/dist/resource/js/monaco-2.deeec9f1.js +4 -0
- package/dist/resource/js/monaco-3.09ebbb5b.js +31 -0
- package/dist/resource/js/monaco-4.12cd3f32.js +1 -0
- package/dist/resource/js/monaco-5.59c23100.js +2 -0
- package/dist/resource/js/monaco-6.e7bfde98.js +1 -0
- package/dist/resource/js/monaco-7.020d48ca.js +38 -0
- package/dist/resource/js/monaco-8.fa1080e5.js +7 -0
- package/dist/resource/js/monaco-9.34b51cf9.js +4 -0
- package/package.json +7 -7
- package/dist/resource/css/117.75ade4fc.css +0 -1
- package/dist/resource/css/monaco-0.eadd16b0.css +0 -1
- package/dist/resource/css/monaco-1.535483b8.css +0 -1
- package/dist/resource/css/monaco-10.19b5ab97.css +0 -1
- package/dist/resource/css/monaco-11.e09f4a76.css +0 -1
- package/dist/resource/css/monaco-12.9ae50643.css +0 -1
- package/dist/resource/css/monaco-13.f69f0e8c.css +0 -1
- package/dist/resource/css/monaco-14.0a887a2d.css +0 -1
- package/dist/resource/css/monaco-2.3f0ef564.css +0 -1
- package/dist/resource/css/monaco-3.681f0305.css +0 -1
- package/dist/resource/css/monaco-4.37d5626c.css +0 -1
- package/dist/resource/css/monaco-5.bc87f9b2.css +0 -1
- package/dist/resource/css/monaco-6.3f11493c.css +0 -1
- package/dist/resource/css/monaco-7.25aae788.css +0 -1
- package/dist/resource/css/monaco-8.86c79c6e.css +0 -1
- package/dist/resource/css/monaco-9.b782cd98.css +0 -1
- package/dist/resource/js/117.510490e1.js +0 -461
- package/dist/resource/js/117.510490e1.js.LICENSE.txt +0 -16654
- package/dist/resource/js/305.d594f1d5.js +0 -1
- package/dist/resource/js/685.0e8f89c3.js +0 -2
- package/dist/resource/js/685.0e8f89c3.js.LICENSE.txt +0 -12
- package/dist/resource/js/async/239.737ce11d.js +0 -2
- package/dist/resource/js/async/239.737ce11d.js.LICENSE.txt +0 -1
- package/dist/resource/js/async/432.6eb18a99.js +0 -2
- package/dist/resource/js/async/432.6eb18a99.js.LICENSE.txt +0 -13
- package/dist/resource/js/async/544.873dca4e.js +0 -2
- package/dist/resource/js/async/544.873dca4e.js.LICENSE.txt +0 -9
- package/dist/resource/js/async/811.63649e86.js +0 -2
- package/dist/resource/js/async/811.63649e86.js.LICENSE.txt +0 -55
- package/dist/resource/js/async/849.1d9c8131.js +0 -1
- package/dist/resource/js/index.93b99658.js +0 -157
- package/dist/resource/js/index.93b99658.js.LICENSE.txt +0 -1995
- package/dist/resource/js/monaco-0.1a91b04d.js +0 -23
- package/dist/resource/js/monaco-0.1a91b04d.js.LICENSE.txt +0 -453
- package/dist/resource/js/monaco-1.28969d00.js +0 -3
- package/dist/resource/js/monaco-1.28969d00.js.LICENSE.txt +0 -420
- package/dist/resource/js/monaco-10.3d270acb.js +0 -5
- package/dist/resource/js/monaco-10.3d270acb.js.LICENSE.txt +0 -684
- package/dist/resource/js/monaco-11.e35d7677.js +0 -71
- package/dist/resource/js/monaco-11.e35d7677.js.LICENSE.txt +0 -800
- package/dist/resource/js/monaco-12.841db992.js +0 -2
- package/dist/resource/js/monaco-12.841db992.js.LICENSE.txt +0 -539
- package/dist/resource/js/monaco-13.cc63a6b1.js +0 -2
- package/dist/resource/js/monaco-13.cc63a6b1.js.LICENSE.txt +0 -542
- package/dist/resource/js/monaco-14.16179ee4.js +0 -29
- package/dist/resource/js/monaco-14.16179ee4.js.LICENSE.txt +0 -531
- package/dist/resource/js/monaco-2.c55ad17a.js +0 -368
- package/dist/resource/js/monaco-2.c55ad17a.js.LICENSE.txt +0 -668
- package/dist/resource/js/monaco-3.ee63c788.js +0 -25
- package/dist/resource/js/monaco-3.ee63c788.js.LICENSE.txt +0 -603
- package/dist/resource/js/monaco-4.73c5efca.js +0 -26
- package/dist/resource/js/monaco-4.73c5efca.js.LICENSE.txt +0 -668
- package/dist/resource/js/monaco-5.10e27961.js +0 -2
- package/dist/resource/js/monaco-5.10e27961.js.LICENSE.txt +0 -523
- package/dist/resource/js/monaco-6.54504449.js +0 -22
- package/dist/resource/js/monaco-6.54504449.js.LICENSE.txt +0 -533
- package/dist/resource/js/monaco-7.28555798.js +0 -32
- package/dist/resource/js/monaco-7.28555798.js.LICENSE.txt +0 -993
- package/dist/resource/js/monaco-8.38bbec6f.js +0 -6
- package/dist/resource/js/monaco-8.38bbec6f.js.LICENSE.txt +0 -649
- package/dist/resource/js/monaco-9.0e0e4c2a.js +0 -2
- package/dist/resource/js/monaco-9.0e0e4c2a.js.LICENSE.txt +0 -633
- /package/dist/resource/css/{index.fb881e51.css → index.be7fc0b3.css} +0 -0
- /package/dist/resource/font/{codicon.f866ab84.ttf → codicon.7fe16dbd.ttf} +0 -0
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
/*! For license information please see index.93b99658.js.LICENSE.txt */
|
|
2
|
-
!function(){var e,t,r,n,i={311299:function(e,t,r){"use strict";r.r(t),r.d(t,{CodeChangeAlert:function(){return g}});var n=r("397458"),i=r("652983"),s=r("721899"),o=r("311618"),a=r("113090"),l=r("678741"),d=r("277422"),c=r("457448"),u=r("723675"),p=r("699997"),h=r("446591");let f=({data:e,setIsFixed:t,cwd:r})=>{let{file:i,id:d}=e,{path:c,line:f,isFixed:g,actual:m,expected:x}=i,y=()=>{s.default.post(l.SDK.ServerAPI.API.ApplyErrorFix,{id:d}).then(()=>{t(!0)})};return(0,n.jsxs)(o.Space,{direction:"vertical",className:"alert-space",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(u.Title,{text:g?"Fix History":"Suggest Fix"}),(0,n.jsx)("span",{className:"code-change-tag-list",children:(0,n.jsx)(()=>(0,n.jsx)(o.Popconfirm,{title:"Did you confirm to apply the change i the area below ?",onConfirm:y,okText:"Yes",cancelText:"Cancel",zIndex:99999,disabled:g,placement:"bottom",children:(0,n.jsx)(o.Button,{type:"primary",size:"small",icon:g?(0,n.jsx)(a.CheckOutlined,{}):void 0,disabled:g,children:g?"Fix Applied":"Apply Fix"})}),{})})]}),(0,n.jsx)(p.CodeOpener,{cwd:r,url:c,loc:String(f),code:!0,disabled:!0}),(0,n.jsxs)(o.Row,{children:[(0,n.jsx)(o.Col,{span:12,children:(0,n.jsx)(o.Typography.Text,{strong:!0,children:"Before"})}),(0,n.jsx)(o.Col,{span:12,children:(0,n.jsx)(o.Typography.Text,{strong:!0,children:"After"})})]}),(0,n.jsx)(h.DiffViewer,{className:"full-space",filepath:c,before:m,after:x})]})},g=({data:e,cwd:t})=>{let{title:r,description:s="",level:l,code:u,file:p}=e,[h,g]=(0,i.useState)(p.isFixed??!1),m=(0,d.useRuleIndexNavigate)(u,e.link),x=(0,n.jsxs)(o.Space,{direction:"vertical",children:[(0,n.jsx)(o.Typography.Text,{children:s}),(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(o.Typography.Text,{children:"File:"}),(0,n.jsx)(o.Typography.Text,{strong:!0,code:!0,children:p.path}),(0,n.jsx)(o.Typography.Text,{children:"in line"}),(0,n.jsx)(o.Typography.Text,{strong:!0,code:!0,children:p.line})]})]});return(0,n.jsx)(o.Alert,{showIcon:!0,message:(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(o.Typography.Text,{code:!0,strong:!0,onClick:m,style:{cursor:"pointer"},children:(0,n.jsx)("a",{children:u})}),(0,n.jsx)(o.Typography.Text,{strong:!0,children:r})]}),description:x,type:h?"success":"warn"===l?"info":l,action:(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(c.TextDrawer,{text:h?"Fixed | Show Fix History":"Show Fix Suggestion",buttonProps:{size:"small"},children:(0,n.jsx)(f,{data:e,setIsFixed:e=>{g(e),p.isFixed=e},cwd:t})}),(0,n.jsx)(o.Divider,{type:"vertical"}),(0,n.jsx)(o.Button,{type:"link",onClick:m,size:"small",children:(0,n.jsx)(a.InfoCircleOutlined,{})})]})})}},836479:function(e,t,r){"use strict";r.r(t),r.d(t,{FileRelationAlert:function(){return s}});var n=r("397458"),i=r("311618");let s=({data:e})=>{let{description:t="",level:r}=e;return(0,n.jsx)(i.Alert,{type:"warn"===r?"info":r,description:t})}},397946:function(e,t,r){"use strict";r.r(t),r.d(t,{Alert:function(){return d}});var n=r("397458"),i=r("432058"),s=r("836479"),o=r("57031"),a=r("311299"),l=r("742152");r("271338");let d=e=>{let{data:t,cwd:r=""}=e;if("file-relation"===t.type)return(0,n.jsx)(s.FileRelationAlert,{data:t});if("code-view"===t.type)return(0,n.jsx)(l.CodeViewAlert,{data:t,cwd:r});if("code-change"===t.type)return(0,n.jsx)(a.CodeChangeAlert,{data:t,cwd:r});if("emo"===t.type)return(0,n.jsx)(n.Fragment,{});if("package-relation"===t.type){let{getPackageRelationContentComponent:i}=e;return(0,n.jsx)(o.PackageRelationAlert,{data:t,cwd:r,getPackageRelationContentComponent:i})}return(0,n.jsx)(i.LinkRuleAlert,{data:t})}},432058:function(e,t,r){"use strict";r.r(t),r.d(t,{LinkRuleAlert:function(){return a}});var n=r("397458"),i=r("311618"),s=r("113090"),o=r("277422");let a=({data:e})=>{let{title:t,description:r="",level:a,code:l}=e,d=(0,o.useRuleIndexNavigate)(l,e.link);return(0,n.jsx)(i.Alert,{showIcon:!0,message:(0,n.jsxs)(i.Space,{children:[(0,n.jsx)(i.Typography.Text,{code:!0,strong:!0,onClick:d,style:{cursor:"pointer"},children:(0,n.jsx)("a",{children:l})}),(0,n.jsx)(i.Typography.Text,{strong:!0,children:t})]}),description:(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:r}}),type:"warn"===a?"info":a,action:(0,n.jsxs)(i.Button,{type:"link",onClick:d,size:"small",children:["More",(0,n.jsx)(s.InfoCircleOutlined,{})]})})}},57031:function(e,t,r){"use strict";r.r(t),r.d(t,{PackageRelationAlert:function(){return y},PackageRelationReasonsWithServer:function(){return x}});var n=r("397458"),i=r("652983"),s=r.n(i),o=r("311618"),a=r("673148"),l=r("678741"),d=r("113090"),c=r("277422"),u=r("457448"),p=r("723675"),h=r("895925"),f=r("294386"),g=r("446591"),m=r("143622");let x=(0,m.withServerAPI)({Component:({data:e,cwd:t})=>{let[r,a]=(0,i.useState)(0),{t:l}=(0,c.useI18n)();return(0,n.jsxs)(o.Row,{gutter:h.Size.BasePadding,wrap:!1,align:"top",children:[(0,n.jsx)(o.Col,{span:12,style:{height:"100%"},children:(0,n.jsx)(o.Card,{title:"The reasons for importing this version",style:{height:"100%"},extra:(0,n.jsx)(o.Popover,{content:(0,n.jsx)(o.Typography.Text,{children:l("DuplicatePakCodeExplain")}),children:(0,n.jsx)("a",{href:"#",children:"Explain"})}),bodyStyle:{overflow:"scroll"},children:e.length?(0,n.jsxs)(s().Fragment,{children:[(0,n.jsx)("div",{style:{marginBottom:h.Size.BasePadding},children:(0,n.jsx)(o.Typography.Text,{type:"secondary",strong:!0,children:"Click the file path below to show the reason in code viewer."})}),(0,n.jsx)(o.Timeline,{children:e.map((t,i)=>{let{dependency:s,module:l,relativePath:d}=t,{statements:c}=s,{start:u}=c?.[0]?.position?l.isPreferSource?c[0].position.source:c[0].position.transformed:{start:{line:0,column:0}},p=`${d}:${u.line}:${u.column||1}`;return(0,n.jsx)(o.Timeline.Item,{style:{cursor:"pointer"},dot:i===e.length-1?void 0:"\u2B07\uFE0F",children:(0,n.jsx)(o.Typography.Text,{copyable:{text:d},onClick:e=>{e.preventDefault(),e.stopPropagation(),a(i)},strong:i===r,style:{color:i===r?h.Color.Blue:"inherit",display:"block"},children:p})},p)})})]}):(0,n.jsx)(o.Empty,{description:"This package no dependencies"})})}),(0,n.jsx)(o.Col,{span:12,style:{height:"100%"},children:(0,i.createElement)(g.FileHightLightViewer,{...e[r],key:r,cwd:t})})]})},api:l.SDK.ServerAPI.API.GetPackageRelationAlertDetails,responsePropName:"data"}),y=({data:e,getPackageRelationContentComponent:t})=>{let{level:r,code:i,packages:g}=e,m=(0,c.useRuleIndexNavigate)(i,e.link),x=(0,a.sumBy)(g,e=>e.targetSize.sourceSize),y=(0,c.formatSize)(x),{xs:j,lg:S,xxl:v}=o.Grid.useBreakpoint(),{name:M}=g.find(e=>!!e.target.name).target,C=g.map(e=>e.target.version);return(0,n.jsx)(o.Alert,{showIcon:!j,message:(0,n.jsxs)(o.Space,{wrap:!0,split:j?null:(0,n.jsx)(o.Divider,{type:"vertical"}),align:"center",children:[(0,n.jsxs)(o.Space,{wrap:!1,children:[(0,n.jsx)(o.Typography.Text,{code:!0,strong:!0,onClick:m,style:{cursor:"pointer"},children:(0,n.jsx)("a",{children:i})}),(0,n.jsx)(o.Typography.Text,{strong:!0,children:l.Rule.RuleErrorMap[i]?.title||e.title})]}),(0,n.jsxs)(o.Typography.Paragraph,{ellipsis:{rows:1},style:{marginBottom:0},children:[(0,n.jsx)(o.Typography.Text,{strong:!0,code:!0,children:M}),(0,n.jsxs)(o.Typography.Text,{strong:!0,children:[" ",e.packages.length]}),(0,n.jsx)(o.Typography.Text,{children:" versions was found"})]}),(0,n.jsx)(f.Badge,{label:"total size",value:y,type:"error",tooltip:`total size of ${e.packages.length} versions is ${y}`})]}),description:(0,n.jsx)(o.Space,{direction:"vertical",wrap:!1,children:e.packages.map(({target:e,targetSize:t})=>{let r=(0,c.formatSize)(t.sourceSize),i=t.parsedSize?(0,c.formatSize)(t.parsedSize):null,s=`${e.name}@${e.version}`;return(0,n.jsxs)(o.Space,{style:{wordBreak:"break-all"},align:"center",split:j?null:(0,n.jsx)(o.Divider,{type:"vertical"}),wrap:!0,children:[(0,n.jsxs)(o.Space,{wrap:!1,children:[(0,n.jsx)(o.Typography.Text,{style:{marginLeft:4},children:"\u2514"}),(0,n.jsx)(f.Badge,{label:e.name,value:`v${e.version}`,tooltip:s})]}),(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(f.Badge,{label:(0,n.jsxs)("div",{color:"rgb(255, 255, 255)",children:["Source Size ",(0,n.jsx)(d.InfoCircleOutlined,{})]}),value:r,tooltip:`The bundle size of "${s}" is ${r}, this is source size.`,type:"error"}),(0,n.jsx)(f.Badge,{label:"Bundled size",value:i||"CONCATENATED",tooltip:`The bundle size of "${s}" is ${r}, this is after bundled, concatenated module cannot get bundled size. `,type:"error"})]}),(0,n.jsx)(o.Typography.Paragraph,{style:{marginBottom:0,width:v?"40rem":S?"30rem":"20rem"},copyable:{text:e.root},ellipsis:{rows:1,expandable:!0,symbol:(0,n.jsx)(d.ExpandAltOutlined,{}),tooltip:e.root},code:!0,children:e.root})]},e.version)})}),type:"warn"===r?"info":r,action:(0,n.jsxs)(s().Fragment,{children:[g&&g.length>0?(0,n.jsx)(u.TextDrawer,{text:"Show Relations",buttonProps:{size:"small"},drawerProps:{title:e.title},children:(0,n.jsxs)(o.Space,{direction:"vertical",className:"alert-space",children:[(0,n.jsxs)(o.Space,{style:{marginBottom:h.Size.BasePadding/2},children:[(0,n.jsx)(p.Title,{text:M,upperFisrt:!1}),(0,n.jsx)(o.Typography.Text,{strong:!0,children:C.length}),(0,n.jsx)(o.Typography.Text,{children:" versions was found: "}),C.map(e=>(0,n.jsx)(o.Typography.Text,{strong:!0,code:!0,children:e},e))]}),(0,n.jsx)(o.Tabs,{type:"card",size:"middle",className:"tabs-space",defaultActiveKey:C[0],items:g.map(r=>{let{target:i,targetSize:s}=r;return{label:(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(o.Typography.Text,{children:`${M}@${i.version}`}),(0,n.jsx)(o.Tag,{color:h.Color.Red,children:(0,c.formatSize)(s.sourceSize)})]}),key:`${i.root}${i.name}${i.version}`,children:t({data:e,package:r})}})})]})}):null,(0,n.jsx)(o.Divider,{type:"vertical"}),(0,n.jsx)(o.Button,{type:"link",onClick:m,size:"small",icon:(0,n.jsx)(d.InfoCircleOutlined,{})})]})})}},742152:function(e,t,r){"use strict";r.r(t),r.d(t,{CodeViewAlert:function(){return h}});var n=r("397458"),i=r("673148"),s=r("311618"),o=r("113090"),a=r("277422"),l=r("457448"),d=r("723675"),c=r("699997"),u=r("446591");let p=({data:e,cwd:t})=>{let{file:r}=e,{path:o,ranges:a}=r,l=a?.[0].start.line;return(0,n.jsxs)(s.Space,{direction:"vertical",className:"alert-space",children:[(0,n.jsx)(d.Title,{text:"Code Viewer"}),(0,n.jsx)(c.CodeOpener,{cwd:t,url:o,loc:(0,i.isNumber)(l)?String(l):void 0,code:!0,disabled:!0}),(0,n.jsx)(u.CodeViewer,{path:r.path,content:r.content,ranges:a,defaultLine:l})]})},h=({data:e,cwd:t})=>{let{title:r,description:d="",level:c,code:u,file:h}=e,f=(0,a.useRuleIndexNavigate)(u,e.link),g=h.ranges?.[0].start.line,m=(0,n.jsxs)(s.Space,{direction:"vertical",children:[(0,n.jsx)(s.Typography.Text,{children:d}),(0,n.jsxs)(s.Space,{children:[(0,n.jsx)(s.Typography.Text,{children:"File:"}),(0,n.jsx)(s.Typography.Text,{strong:!0,code:!0,children:h.path}),(0,i.isNumber)(g)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Typography.Text,{children:"in line"}),(0,n.jsx)(s.Typography.Text,{strong:!0,code:!0,children:g})]}):""]})]});return(0,n.jsx)(s.Alert,{showIcon:!0,message:(0,n.jsxs)(s.Space,{children:[(0,n.jsx)(s.Typography.Text,{code:!0,strong:!0,onClick:f,style:{cursor:"pointer"},children:(0,n.jsx)("a",{children:u})}),(0,n.jsx)(s.Typography.Text,{strong:!0,children:r})]}),description:m,type:"warn"===c?"info":c,action:(0,n.jsxs)(s.Space,{children:[(0,n.jsx)(l.TextDrawer,{text:"Show Source Code",buttonProps:{size:"small"},children:(0,n.jsx)(p,{data:e,cwd:t})}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Divider,{type:"vertical"}),(0,n.jsx)(s.Button,{type:"link",onClick:f,size:"small",icon:(0,n.jsx)(o.InfoCircleOutlined,{})})]})]})})}},397322:function(e,t,r){"use strict";r.r(t),r.d(t,{BundleAlerts:function(){return p}});var n=r("397458"),i=r("652983"),s=r("678741"),o=r("277422"),a=r("706692"),l=r("143622"),d=r("895925"),c=r("57031"),u=r("311618");let p=(0,l.withServerAPI)({api:s.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({filter:e,project:t})=>{let{errors:r,root:s}=t,l=(0,o.useBundleAlertsByErrors)(r),{setBundleAlertsViewMode:p,viewMode:h,setViewMode:f}=(0,o.useViewMode)(),g=e?l.filter(e):l;return(0,i.useEffect)(()=>{!(0,o.hasViewModeFromStorage)()&&f({bundleAlerts:l.length>=5?d.ViewMode.Group:d.ViewMode.List},!1)},[]),(0,n.jsx)(u.ConfigProvider,{theme:{components:{Alert:{colorInfoBg:"#e6f4ff57",colorInfoBorder:"none"}}},children:(0,n.jsx)(a.CommonAlertsContainer,{title:"Bundle Alerts",dataSource:g,extraData:{cwd:s,getPackageRelationContentComponent:e=>(0,n.jsx)(c.PackageRelationReasonsWithServer,{body:{id:e.data.id,target:e.package.target},cwd:s})},viewMode:h.bundleAlerts,setViewMode:p,cwd:s})})}})},706692:function(e,t,r){"use strict";r.r(t),r.d(t,{CommonAlertsContainer:function(){return m}});var n=r("397458"),i=r("311618"),s=r("652983"),o=r("113090"),a=r("678741"),l=r("673148"),d=r("895925"),c=r("397946"),u=r("321807"),p=r("294386");let h={warn:1,error:2},f=({dataSource:e,extraData:t})=>{let r=(0,s.useMemo)(()=>e.slice().sort((e,t)=>h[t.level]-h[e.level]),[e]);return(0,n.jsx)(i.Space,{direction:"vertical",style:{wordBreak:"break-all",width:"100%"},children:r.map((e,r)=>(0,n.jsx)(c.Alert,{data:e,...t},r))})},g=({dataSource:e,extraData:t})=>{let r=(0,s.useMemo)(()=>(0,l.values)((0,l.groupBy)(e,e=>e.code)),[e]);return(0,n.jsx)(i.Space,{direction:"vertical",style:{wordBreak:"break-all",width:"100%"},children:(0,n.jsx)(i.Collapse,{children:r.map(e=>{let[r]=e;return(0,n.jsx)(i.Collapse.Panel,{header:(0,n.jsxs)(i.Space,{children:[(0,n.jsx)(i.Typography.Text,{code:!0,strong:!0,style:{cursor:"pointer"},children:r.code}),(0,n.jsx)(i.Typography.Text,{strong:!0,children:a.Rule.RuleErrorMap[r.code]?.title||r.title}),(0,n.jsx)(p.Badge,{label:"count",value:e.length,type:"error"})]}),children:(0,n.jsx)(i.Space,{direction:"vertical",size:16,style:{width:"100%"},children:e.map((e,r)=>(0,n.jsx)(c.Alert,{data:e,...t},r))})},r.code)})})})},m=({title:e,dataSource:t,extraData:r,viewMode:s,setViewMode:a,extraCom:l})=>t.length?(0,n.jsx)(u.Card,{title:e,style:{marginTop:d.Size.BasePadding},collapsable:!0,extra:l||(0,n.jsx)(i.Radio.Group,{options:[{label:(0,n.jsx)(i.Tooltip,{title:"display by list",children:(0,n.jsx)(o.UnorderedListOutlined,{})}),value:d.ViewMode.List},{label:(0,n.jsx)(i.Tooltip,{title:"display by group",children:(0,n.jsx)(o.AppstoreOutlined,{})}),value:d.ViewMode.Group}],value:s,optionType:"button",size:"small",onChange:e=>{a(e.target.value)}}),children:s===d.ViewMode.List?(0,n.jsx)(f,{dataSource:t,extraData:r}):(0,n.jsx)(g,{dataSource:t,extraData:r})}):null},35037:function(e,t,r){"use strict";r.r(t),r.d(t,{CompileAlerts:function(){return u}});var n=r("397458"),i=r("652983"),s=r("678741"),o=r("277422"),a=r("706692"),l=r("143622"),d=r("895925"),c=r("57031");let u=(0,l.withServerAPI)({api:s.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({filter:e,project:t})=>{let{root:r,errors:s}=t,l=(0,o.useCompileAlertsByErrors)(s),{setCompileAlertsViewMode:u,viewMode:p,setViewMode:h}=(0,o.useViewMode)(),f=e?l.filter(e):l;return(0,i.useEffect)(()=>{!(0,o.hasViewModeFromStorage)()&&h({compileAlerts:l.length>=5?d.ViewMode.Group:d.ViewMode.List},!1)},[]),(0,n.jsx)(a.CommonAlertsContainer,{title:"Compile Alerts",dataSource:f,extraData:{cwd:r,getPackageRelationContentComponent:e=>(0,n.jsx)(c.PackageRelationReasonsWithServer,{body:{id:e.data.id,target:e.package.target},cwd:r})},viewMode:p.compileAlerts,setViewMode:u,cwd:r})}})},314496:function(e,t,r){"use strict";r.r(t);var n=r("397322");r.es(n,t);var i=r("35037");r.es(i,t);var s=r("614188");r.es(s,t)},614188:function(e,t,r){"use strict";r.r(t),r.d(t,{OverlayAlertsWithButton:function(){return m},OverlayAlertsWithTips:function(){return x}});var n=r("397458"),i=r("652983"),s=r.n(i),o=r("678741"),a=r("311618"),l=r("113090"),d=r("173843"),c=r("290773"),u=r.n(c),p=r("143622"),h=r("895925");function f(e){let t=0,r=0;e.forEach(e=>{"warn"===e.level?t++:r++});let i=0!==t&&0!==r?"problems":0===t?"errors":"warns";return{title:`${e.length} compiled ${i}`,detail:(0,n.jsxs)(a.Typography.Text,{strong:!0,style:{color:"#fff",marginBottom:0},children:[(0,n.jsx)(a.Typography.Text,{style:{color:"inherit",fontSize:16},children:"Compiled with "}),(0,n.jsxs)(a.Typography.Text,{strong:!0,style:{color:h.Color.Red,fontSize:16},children:[r," errors"]}),(0,n.jsx)(a.Typography.Text,{style:{color:"inherit",fontSize:16},children:" and "}),(0,n.jsxs)(a.Typography.Text,{strong:!0,style:{color:h.Color.Yellow,fontSize:16},children:[t," warnings"]})]}),warns:t,errors:r}}r("678814");let g=({alerts:e=[],open:t,onClose:r})=>e.length?(0,n.jsxs)(d.default,{visible:t,onClose:()=>r(),style:{width:"100%",height:"100%",margin:0,zIndex:1e3},closable:!1,modalRender:e=>s().cloneElement(e,{style:{background:"rgba(0, 0, 0, 0.7)",color:"#fff",height:"100%",overflow:"scroll",borderRadius:0}}),children:[(0,n.jsxs)(a.Row,{justify:"space-between",align:"middle",children:[f(e).detail,(0,n.jsx)(a.Button,{onClick:()=>r(),type:"text",style:{color:"#fff"},size:"large",icon:(0,n.jsx)(l.CloseCircleOutlined,{})})]}),(0,n.jsx)(a.Row,{gutter:[0,h.Size.BasePadding],children:e.map(e=>(0,n.jsx)(a.Col,{span:24,style:{whiteSpace:"pre-wrap",lineHeight:"16px",fontSize:14},children:(0,n.jsx)(a.Collapse,{ghost:!0,style:{background:"#000"},defaultActiveKey:[e.id],expandIcon:e=>e.isActive?(0,n.jsx)(l.DownOutlined,{style:{color:"#fff"}}):(0,n.jsx)(l.RightOutlined,{style:{color:"#fff"}}),children:(0,n.jsx)(a.Collapse.Panel,{header:(0,n.jsxs)("div",{style:{color:"#fff"},children:["warn"===e.level?(0,n.jsx)(a.Tag,{color:h.Color.Yellow,children:"WARNING"}):(0,n.jsx)(a.Tag,{color:h.Color.Red,children:"ERROR"}),(0,n.jsx)(u(),{children:e.description||e.title})]}),children:(0,n.jsx)("div",{style:{color:"#fff"},children:(0,n.jsx)(u(),{children:e.stack})})},e.id)})},e.id))})]}):null,m=(0,p.withServerAPI)({api:o.SDK.ServerAPI.API.GetOverlayAlerts,Component:({alerts:e=[]})=>{if(!e.length)return null;let{errors:t}=f(e),[r,o]=(0,i.useState)(t>0);return(0,n.jsxs)(s().Fragment,{children:[(0,n.jsx)(a.Button,{icon:(0,n.jsx)(l.BugOutlined,{}),danger:!0,size:"small",onClick:()=>o(!r),children:f(e).title}),(0,n.jsx)(g,{alerts:e,open:r,onClose:()=>o(!1)})]})},responsePropName:"alerts",fallbackComponent:()=>null}),x=(0,p.withServerAPI)({api:o.SDK.ServerAPI.API.GetOverlayAlerts,Component:({alerts:e=[],defaultOpen:t=e.length>0})=>{if(!e.length)return null;let[r,o]=(0,i.useState)(t);return(0,n.jsxs)(s().Fragment,{children:[(0,n.jsx)(a.Alert,{banner:!0,message:s().cloneElement(f(e).detail,{style:{color:"#000"}}),icon:(0,n.jsx)(l.BugOutlined,{}),action:(0,n.jsx)(a.Button,{onClick:()=>o(!0),size:"small",children:"More"})}),(0,n.jsx)(g,{alerts:e,open:r,onClose:()=>o(!1)})]})},responsePropName:"alerts",fallbackComponent:()=>null})},294386:function(e,t,r){"use strict";r.r(t),r.d(t,{Badge:function(){return l},BadgeColorMap:function(){return a},BadgeType:function(){return o}});var n,i=r("397458"),s=r("311618");var o=((n=o||{}).Default="default",n.Success="success",n.Warn="warn",n.Error="error",n);let a={default:"linear-gradient(to bottom, #3ea2ff 0%, #0072db 100%)",success:"linear-gradient(to bottom, #6cf42a 0%, #52C41A 100%)",warn:"linear-gradient(to bottom, #ffc100 0%, #f59025 100%)",error:"linear-gradient(to bottom, rgb(250 127 22), #FF4D4F 100%)"},l=({label:e,value:t,type:r="default",tooltip:n})=>{let o={height:"100%",lineHeight:"22px",width:"auto",display:"inline-block",boxSizing:"border-box",padding:"0 6px",color:"#fff",fontSize:12,textAlign:"center",verticalAlign:"middle"},l=(0,i.jsxs)("div",{style:{height:22,margin:0,padding:0,boxSizing:"border-box",borderRadius:4,fontSize:0,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",display:"flex",justifyContent:"flex-start",alignItems:"center"},children:[(0,i.jsx)("div",{style:{...o,borderTopLeftRadius:4,borderBottomLeftRadius:4,background:"linear-gradient(to bottom, #525252a3 0%, #1F1F1F 100%)"},children:e}),(0,i.jsx)("div",{style:{...o,borderTopRightRadius:4,borderBottomRightRadius:4,overflow:"hidden",textOverflow:"ellipsis",background:a[r]||a.default},children:t})]});return n?(0,i.jsx)(s.Tooltip,{title:!0===n?t:n,placement:"topLeft",children:l}):l}},633475:function(e,t,r){"use strict";r.r(t),r("397458"),r("652983"),r("146641");var n=r("673148"),i=r("678741");r("277422"),r("131646"),r("318005"),r("598306"),r("72277"),r("138195"),r("334050"),r("895925");let s={JS:[i.Constants.JSExtension],CSS:[i.Constants.CSSExtension],HTML:[i.Constants.HtmlExtension],Imgs:i.Constants.ImgExtensions,Fonts:i.Constants.FontExtensions,Media:i.Constants.MediaExtensions,Others:[]};(0,n.flatten)((0,n.values)(s))},254066:function(e,t,r){"use strict";r.r(t),r("397458"),r("318005"),r("131646"),r("277422"),r("678741"),r("146641"),r("895925"),r("448349")},72277:function(e,t,r){"use strict";r.r(t),r("397458"),r("652983"),r("318005"),r("895925")},138195:function(e,t,r){"use strict";r.r(t);var n,i,s=((n=s||{}).New="New",n.Changed="Changed",n.Deleted="Deleted",n.NotChanged="Not Changed",n);var o=((i=o||{}).Name="Sorted by Name",i.Size="Sorted by Size",i.Delta="Sorted by Delta",i)},101812:function(e,t,r){"use strict";r.r(t),r("397458"),r("678741"),r("146641"),r("652983"),r("895925"),r("321807"),r("277422")},368604:function(e,t,r){"use strict";r.r(t),r("397458"),r("652983"),r("146641"),r("678741"),r("254066"),r("757722"),r("633475"),r("585797"),r("448349"),r("557406"),r("895925")},585797:function(e,t,r){"use strict";r.r(t),r("397458"),r("652983"),r("146641"),r("277422"),r("72277"),r("138195"),r("318005"),r("598306"),r("895925")},757722:function(e,t,r){"use strict";r.r(t),r("397458"),r("652983"),r("334050"),r("895925"),r("277422"),r("101812")},448349:function(e,t,r){"use strict";r.r(t),r("397458"),r("131646"),r("277422"),r("652983"),r("138195"),r("585797"),r("895925")},598306:function(e,t,r){"use strict";r.r(t),r("397458"),r("277422"),r("678741"),r("146641"),r("652983"),r("72277"),r("138195"),r("585797"),r("334050"),r("895925")},334050:function(e,t,r){"use strict";r.r(t),r("397458"),r("277422"),r("678741"),r("895925")},557406:function(e,t,r){"use strict";r.r(t),r("397458"),r("678741"),r("143622"),r("277422")},291770:function(e,t,r){"use strict";r.r(t);var n=r("368604");r.es(n,t)},230524:function(e,t,r){"use strict";r.r(t),r("397458"),r("678741"),r("146641"),r("652983"),r("277422"),r("895925"),r("850818")},321807:function(e,t,r){"use strict";r.r(t),r.d(t,{Card:function(){return l}});var n=r("397458"),i=r("113090"),s=r("311618"),o=r("652983"),a=r("230524");r.es(a,t);let l=({collapsable:e=!1,children:t,title:r,dividerStyle:a,defaultCollapsed:l=!1,...d})=>{let[c,u]=(0,o.useState)(l);return r&&e?(0,n.jsx)(s.Card,{...d,title:(0,n.jsxs)(s.Space,{style:{fontSize:"inherit"},children:[(0,n.jsx)(s.Button,{icon:c?(0,n.jsx)(i.ColumnHeightOutlined,{}):(0,n.jsx)(i.VerticalAlignMiddleOutlined,{}),onClick:()=>u(!c),size:"small"}),r]}),children:c?(0,n.jsx)(s.Divider,{orientation:"center",style:a,plain:!0,children:(0,n.jsx)(s.Button,{icon:(0,n.jsx)(i.ColumnHeightOutlined,{}),type:"text",onClick:()=>u(!c),children:"show more"})}):t}):(0,n.jsx)(s.Card,{title:r,...d,children:t})}},187457:function(e,t,r){"use strict";r.r(t),r.d(t,{SizeCard:function(){return p}});var n=r("397458"),i=r("113090"),s=r("311618"),o=r("673148"),a=r("652983"),l=r("277422"),d=r("635972"),c=r("457448");let{useToken:u}=s.theme,p=({files:e,total:t,showProgress:r=!1,tagBgColor:p})=>{let{token:h}=u(),f=(0,a.useMemo)(()=>(0,o.sumBy)(e,e=>e.size),[e]),g=(0,a.useMemo)(()=>(0,l.createFileStructures)({files:e.map(e=>e.path),fileTitle(t,r){let{size:i}=e.find(e=>e.path===t);return(0,n.jsxs)(s.Space,{children:[(0,n.jsx)(s.Typography.Text,{children:r}),(0,n.jsx)(s.Tag,{color:"success",children:(0,l.formatSize)(i)})]})}}),[e]);return 0===g.length?(0,n.jsx)(s.Space,{style:{height:100,fontSize:24},align:"center",children:(0,n.jsx)(s.Tag,{bordered:!1,color:p,children:(0,n.jsxs)(s.Typography.Text,{style:{fontSize:14,color:h.colorWhite},children:[(0,n.jsxs)(s.Typography.Text,{style:{color:h.colorWhite},children:[" ",0]})," Files"]})})}):(0,n.jsxs)(s.Space,{style:{height:100},align:"center",children:[r?0===f?(0,n.jsx)(s.Empty,{}):(0,n.jsx)(s.Progress,{type:"dashboard",percent:+(f/t*100).toFixed(2),strokeColor:{"0%":"#108ee9","100%":"#87d068"},width:80}):null,(0,n.jsx)(c.TextDrawer,{text:(0,n.jsx)(s.Tooltip,{title:"Click to show the total files",children:(0,n.jsxs)(s.Space,{style:{textAlign:r?"left":"center"},align:"end",children:[(0,n.jsxs)(s.Space,{direction:"vertical",children:[(0,n.jsx)(s.Tag,{bordered:!1,color:p,children:(0,n.jsxs)(s.Typography.Text,{style:{fontSize:14,color:h.colorWhite},children:[(0,n.jsxs)(s.Typography.Text,{style:{color:h.colorWhite},children:[" ",e.length]})," Files"]})}),(0,n.jsx)(s.Typography.Text,{style:{fontSize:20},children:(0,l.formatSize)(f)})]}),(0,n.jsx)(i.ExceptionOutlined,{style:{transform:"translateY(-3.5px)"}})]})}),buttonStyle:{height:"100%"},buttonProps:{type:"text"},children:(0,n.jsx)(d.FileTree,{treeData:g,defaultExpandAll:!0,titleRender:e=>(0,n.jsx)(s.Typography.Text,{children:e.title})})})]})}},850818:function(e,t,r){"use strict";r.r(t),r.d(t,{StatisticCard:function(){return o}});var n=r("397458"),i=r("311618");r("388139");var s=r("277422");let o=({title:e,value:t,statisticProps:r,boxProps:o})=>{let{theme:a}=(0,s.useTheme)();return(0,n.jsx)("div",{className:`statistic-card statistic-card-${a}`,...o,children:(0,n.jsx)(i.Statistic,{title:(0,n.jsx)("div",{className:"statistic-card-title",children:e}),valueRender:()=>t,valueStyle:{fontSize:24},...r})})}},467451:function(e,t,r){"use strict";r.r(t),r.d(t,{TimelineCom:function(){return u}});var n=r("397458"),i=r("652983"),s=r("452921"),o=r("332186"),a=r("214123"),l=r.n(a),d=r("673148"),c=r("52161");let u=(0,i.memo)(({loaderData:e,pluginsData:t,formatterFn:r,chartType:a="normal"})=>{let u=[],p=[],[h,f]=(0,i.useState)({});return(0,i.useEffect)(()=>{if(!e)return;let t=[];e.forEach(e=>{t.unshift(e.n+" total"),t.unshift(e.n)}),e.forEach(function(e,r){if(u.push({name:e.n+" total",value:[t.indexOf(e.n+" total"),e.s,e.e,e.e-e.s],itemStyle:{normal:{color:c.LITTLE_PALETTE_COLORS[r%8]}}}),e?.c)for(let n=0;n<e?.c?.length;n++)u.push({name:e.n,value:[t.indexOf(e.n),e.c[n].s,e.c[n].e,e.c[n].e-e.c[n].s],itemStyle:{normal:{color:c.PALETTE_COLORS[(n+r)%30]}},ext:e.c[n].ext})}),p=t.map((e,t)=>t%2!=0?e.replace(" total",""):"")},[e]),(0,i.useEffect)(()=>{if(!t)return;let e=(0,d.groupBy)(t,e=>e.pid);Object.keys(e).reverse().forEach(function(t,r){e[t].forEach((e,t)=>{u.push({name:String(e.pid),value:[r,e.args.s,e.args.e,e.args.e-e.args.s],itemStyle:{normal:{color:c.PALETTE_COLORS[(t+r)%30]}},ext:e})}),p.push(String(t.charAt(0).toUpperCase()+t.slice(1)))})},[t]),(0,i.useEffect)(()=>{f({tooltip:{formatter:e=>r(e)},dataZoom:[{type:"slider",filterMode:"weakFilter",showDataShadow:!1,top:-10,labelFormatter:""},{type:"inside",filterMode:"weakFilter"}],grid:{top:10,left:0,bottom:10,right:0,height:p.length>("loader"===a?6:3)?"auto":60*p.length,containLabel:!0},xAxis:{position:"top",splitLine:{show:!1},scale:!0,axisLine:{show:!1},axisLabel:{formatter:e=>l()(e).format("HH:mm:ss")}},yAxis:{type:"category",splitLine:{interval:"loader"===a?1:0,show:!0},axisLabel:{inside:!0,lineHeight:20,width:100,fontSize:12,color:"#000",verticalAlign:"bottom"},axisLine:{show:!0},axisTick:{show:!1},data:p},series:[{type:"custom",renderItem:function(e,t){let r=t.value(0),n=t.coord([t.value(1),r]),i=t.coord([t.value(2),r]),s=.3*t.size([0,1])[1],l=o.graphic.clipRectByRect({x:n[0],y:"loader"===a?n[1]-(r%2!=0?0:2*s):n[1],width:i[0]-n[0]||5,height:s},{x:e.coordSys.x,y:e.coordSys.y,width:e.coordSys.width,height:e.coordSys.height});return l&&{type:"rect",transition:["shape"],shape:l,style:t.style(),enterFrom:{style:{opacity:0},x:0}}},itemStyle:{opacity:.8},encode:{x:[1,2],y:0},data:u}]})},[e,t]),(0,n.jsx)(s.default,{option:h,echarts:o,style:{width:"100%",minHeight:"400px"}})})},85057:function(e,t,r){"use strict";r.r(t),r.d(t,{BootstrapChartContainer:function(){return u}});var n=r("397458"),i=r("311618"),s=r("113090"),o=r("678741"),a=r("457448");r("403028"),r("376179");var l=r("406454"),d=r("143622"),c=r("146641");let u=({summary:e})=>{let{costs:t=[]}=e||{},r=t.find(e=>e.name===c.Summary.SummaryCostsDataName.Bootstrap);return r?(0,n.jsx)(a.TextDrawer,{drawerProps:{title:'Chart of the "Bootstrap -> BeforeCompile" stage'},text:(0,n.jsxs)(i.Space,{children:["detail",(0,n.jsx)(s.BarChartOutlined,{})]}),children:(0,n.jsx)(d.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetPluginData,body:{hooks:["environment","afterEnvironment","entryOption","afterPlugins","afterResolvers","initialize","beforeRun","run","watchRun","normalModuleFactory","contextModuleFactory","beforeCompile"]},children:e=>e&&e.length?(0,n.jsx)(l.CommonExecutionsChart,{plugins:e}):(0,n.jsx)(l.CommonExecutionEmptyTips,{})})}):null}},406454:function(e,t,r){"use strict";r.r(t),r.d(t,{CommonExecutionEmptyTips:function(){return c},CommonExecutionsChart:function(){return d}});var n=r("397458"),i=r("311618"),s=r("652983"),o=r("277422"),a=r("467451");r("403028"),r("376179");var l=r("218019");let d=({plugins:e,defaultDatas:t=[]})=>{let{isDark:r}=(0,o.useTheme)(),i=(0,s.useRef)(null),[d,c]=(0,s.useState)([]);return(0,s.useEffect)(()=>{let r=[];e.forEach(e=>{e.data.forEach(t=>{r.push({p:e.hook,n:`${e.tapName}`,s:t.startAt,e:t.endAt})})}),c([...(0,l.processTrans)(t),...(0,l.processTrans)(r)])},[]),(0,n.jsx)("div",{className:["loader-chart-container",r?"loader-chart-container_dark":""].join(" ").trim(),ref:i,style:{width:"100%",height:"600px"},children:(0,n.jsx)(a.TimelineCom,{pluginsData:d,formatterFn:l.formatterForPlugins})})},c=()=>(0,n.jsx)(i.Alert,{message:(0,n.jsxs)(i.Typography.Text,{children:[(0,n.jsx)(i.Typography.Text,{children:"make sure that you have turn on "}),(0,n.jsx)(i.Typography.Text,{children:" in configuration for the Rsdoctor plugin."})]}),type:"info",showIcon:!0})},52161:function(e,t,r){"use strict";r.r(t),r.d(t,{LITTLE_PALETTE_COLORS:function(){return n},PALETTE_COLORS:function(){return i}});let n=["#a8071a","#ad6800","#237804","#006d75","#ad8b00","#ad4e00","#5b8c00","#003eb3"],i=["#4096ff","#69b1ff","#9e1068","#722ed1","#bae0ff","#d3adf7","#597ef7","#ffadd2","#c41d7f","#391085","#ffa940","#5c060b","#a81414","#ff7875","#ffd591","#ffe58f","#d3f261","#d4b106","#7cb305","#f4ffb8","#fa8c16","#0958d9","#fff3f0","#82090d","#ffbfb3","#f44336","#ff998a","#ff7161","#ffe2db","#cf2923"]},992381:function(e,t,r){"use strict";r.r(t),r.d(t,{DoneChartContainer:function(){return h}});var n=r("397458"),i=r("311618"),s=r("113090"),o=r("678741"),a=r("146641"),l=r("457448"),d=r("321807"),c=r("406454"),u=r("513938"),p=r("143622");r("403028"),r("376179");let h=({summary:e})=>{let{costs:t=[]}=e||{},r=t.find(e=>e.name===a.Summary.SummaryCostsDataName.Done),h='of the "AfterCompile -> Done" stage';return r?(0,n.jsx)(l.TextDrawer,{drawerProps:{title:`Details ${h}`},text:(0,n.jsxs)(i.Space,{children:["detail",(0,n.jsx)(s.BarChartOutlined,{})]}),children:(0,n.jsx)(p.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetPluginData,body:{hooks:["afterCompile","shouldEmit","emit","afterEmit","assetEmitted","done"]},children:e=>e&&e.length?(0,n.jsxs)(i.Space,{direction:"vertical",style:{width:"100%"},children:[(0,n.jsx)(d.Card,{title:`Plugin DataSource of ${h}`,collapsable:!0,children:(0,n.jsx)(u.WebpackPluginsDataTable,{dataSource:e})}),(0,n.jsx)(i.Divider,{}),(0,n.jsx)(d.Card,{title:`Chart ${h}`,children:(0,n.jsx)(c.CommonExecutionsChart,{plugins:e})})]}):(0,n.jsx)(c.CommonExecutionEmptyTips,{})})}):null}},498463:function(e,t,r){"use strict";r.r(t),r.d(t,{LoaderChart:function(){return h}});var n,i=r("397458"),s=r("652983"),o=r("311618"),a=r("678741"),l=r("342068"),d=r("143622"),c=r("856816"),u=r("275196");var p=((n=p||{})[n.Loader=0]="Loader",n[n.Process=1]="Process",n);let h=(0,d.withServerAPI)({api:a.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({project:e})=>{let{root:t}=e,[r,n]=(0,s.useState)({filename:"",loaders:[]}),[p,h]=(0,s.useState)(0);return(0,i.jsxs)(o.Space,{direction:"vertical",style:{width:"100%"},children:[(0,i.jsx)(d.ServerAPIProvider,{api:a.SDK.ServerAPI.API.GetLoaderNames,children:e=>(0,i.jsx)(l.LoaderCommonSelect,{onChange:n,loaderNames:e})}),(0,i.jsx)(d.ServerAPIProvider,{api:a.SDK.ServerAPI.API.GetLoaderChartData,children:e=>{let n=e.filter(e=>(0,u.filterLoader)(e.resource,e.loader,r.filename,r.loaders));return 0===p?(0,i.jsx)(c.LoaderExecutionsChart,{loaders:n,cwd:t}):(0,i.jsx)(i.Fragment,{})}})]})}})},856816:function(e,t,r){"use strict";r.r(t),r.d(t,{LoaderExecutionsChart:function(){return p}});var n=r("397458"),i=r("652983"),s=r("673148"),o=r("311618");r("403028");var a=r("844428"),l=r("275196"),d=r("785518"),c=r("467451"),u=r("218019");let p=({loaders:e,cwd:t})=>{let{isDark:r}=(0,a.useTheme)(),p=(0,i.useRef)(null),[h,f]=(0,i.useState)([]),g=(0,u.useDebounceHook)(h,200),m=(0,i.useMemo)(()=>(0,s.groupBy)(e,e=>e.loader),[e]),x=(0,i.useCallback)(r=>{let{name:n,data:i}=r,s=n.replace(" total","");return i?.ext?(0,u.getTooltipHtmlForLoader)(i.ext):(0,u.renderTotalLoadersTooltip)(s,e,t)},[]);return(0,i.useEffect)(()=>{f(Object.keys(m).map(e=>{let r=m[e]||[],{start:n,end:i}=(0,l.findLoaderTotalTiming)(r);return{p:e,n:e,s:n,e:i,c:r.map(r=>({p:e,n:(0,d.beautifyPath)(r.resource,t),s:r.startAt,e:r.endAt,ext:r}))}}))},[m]),(0,n.jsx)(n.Fragment,{children:h?.length?(0,n.jsx)("div",{className:["loader-chart-container",r?"loader-chart-container_dark":""].join(" ").trim(),ref:p,style:{width:"100%",height:"600px"},children:(0,n.jsx)(c.TimelineCom,{loaderData:g,formatterFn:x,chartType:"loader"})}):(0,n.jsx)(o.Empty,{})})}},40263:function(e,t,r){"use strict";r.r(t),r.d(t,{MinifyChartContainer:function(){return h}});var n=r("397458"),i=r("113090"),s=r("678741"),o=r("311618"),a=r("457448"),l=r("146641"),d=r("321807"),c=r("143622"),u=r("513938"),p=r("406454");r("403028"),r("376179");let h=({summary:e})=>{let{costs:t=[]}=e||{};return t.find(e=>e.name===l.Summary.SummaryCostsDataName.Minify)?(0,n.jsx)(a.TextDrawer,{drawerProps:{title:'Details of the "Minify" stage'},text:(0,n.jsxs)(o.Space,{children:["detail",(0,n.jsx)(i.BarChartOutlined,{})]}),children:(0,n.jsx)(c.ServerAPIProvider,{api:s.SDK.ServerAPI.API.GetPluginData,body:{hooks:["processAssets","optimizeChunkAssets"]},children:e=>e&&e.length?(0,n.jsxs)(o.Space,{direction:"vertical",style:{width:"100%"},children:[(0,n.jsx)(d.Card,{title:'Plugin DataSource of the "Minify"',collapsable:!0,children:(0,n.jsx)(u.WebpackPluginsDataTable,{dataSource:e})}),(0,n.jsx)(o.Divider,{}),(0,n.jsx)(d.Card,{title:'Chart of the "Minify"',children:(0,n.jsx)(p.CommonExecutionsChart,{plugins:e})})]}):(0,n.jsx)(p.CommonExecutionEmptyTips,{})})}):null}},367804:function(e,t,r){"use strict";r.r(t),r.d(t,{ETraceEventPhase:function(){return i}});var n,i=((n=i||{}).BEGIN="B",n.END="E",n.COMPLETE="X",n.INSTANT="I",n.MARK="R",n)},218019:function(e,t,r){"use strict";r.r(t),r.d(t,{formatterForPlugins:function(){return h},getTooltipHtmlForLoader:function(){return c},processTrans:function(){return p},renderTotalLoadersTooltip:function(){return u},useDebounceHook:function(){return f}});var n=r("146641"),i=r("214123"),s=r.n(i),o=r("673148"),a=r("277422");r("376179");var l=r("367804"),d=r("652983");function c(e){return`
|
|
3
|
-
<div class="loader-tooltip-container">
|
|
4
|
-
<div class="loader-tooltip-title">${e.loader}</div>
|
|
5
|
-
<li class="loader-tooltip-item">
|
|
6
|
-
<span>isPitch</span>
|
|
7
|
-
<span>${e.isPitch}</span>
|
|
8
|
-
</li>
|
|
9
|
-
<li class="loader-tooltip-item">
|
|
10
|
-
<span>duration</span>
|
|
11
|
-
<span class="loader-tooltip-textbold">${(0,a.formatCosts)(e.costs)}</span>
|
|
12
|
-
</li>
|
|
13
|
-
<li class="loader-tooltip-item">
|
|
14
|
-
<span>filepath</span>
|
|
15
|
-
<span>${e.resource}</span>
|
|
16
|
-
</li>
|
|
17
|
-
<li class="loader-tooltip-item">
|
|
18
|
-
<span>start</span>
|
|
19
|
-
<span class="loader-tooltip-textbold">${s()(e.startAt).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
20
|
-
</li>
|
|
21
|
-
<li class="loader-tooltip-item">
|
|
22
|
-
<span>end</span>
|
|
23
|
-
<span class="loader-tooltip-textbold">${s()(e.endAt).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
24
|
-
</li>
|
|
25
|
-
</div>
|
|
26
|
-
`.trim()}function u(e,t,r){let i=t=>t.loader===e,l=t.filter(i),d=l.map(e=>e.resource),c=d.filter(e=>e.includes("/node_modules/")),u=d.filter(e=>!e.startsWith(r)),p=(0,o.minBy)(l,e=>e.startAt).startAt,h=(0,o.maxBy)(l,e=>e.endAt).endAt,f=n.Loader.getLoadersCosts(i,t);return`
|
|
27
|
-
<div class="loader-tooltip-container">
|
|
28
|
-
<div class="loader-tooltip-title">${e}</div>
|
|
29
|
-
<li class="loader-tooltip-item">
|
|
30
|
-
<span>files</span>
|
|
31
|
-
<span class="loader-tooltip-textbold">${d.length}</span>
|
|
32
|
-
</li>
|
|
33
|
-
<li class="loader-tooltip-item">
|
|
34
|
-
<span>files(node_modules)</span>
|
|
35
|
-
<span class="loader-tooltip-textbold">${c.length}</span>
|
|
36
|
-
</li>
|
|
37
|
-
<li class="loader-tooltip-item">
|
|
38
|
-
<span>files(outside the cwd)</span>
|
|
39
|
-
<span class="loader-tooltip-textbold">${u.length}</span>
|
|
40
|
-
</li>
|
|
41
|
-
<li class="loader-tooltip-item">
|
|
42
|
-
<span>duration(estimated)</span>
|
|
43
|
-
<span class="loader-tooltip-textbold">${(0,a.formatCosts)(f)}</span>
|
|
44
|
-
</li>
|
|
45
|
-
<li class="loader-tooltip-item">
|
|
46
|
-
<span>start(min)</span>
|
|
47
|
-
<span>${s()(p).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
48
|
-
</li>
|
|
49
|
-
<li class="loader-tooltip-item">
|
|
50
|
-
<span>end(max)</span>
|
|
51
|
-
<span>${s()(h).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
52
|
-
</li>
|
|
53
|
-
</div>
|
|
54
|
-
`.trim()}function p(e){return function e(t){return t.reduce((t,r)=>{if(r.c){let n=e(r.c);t.push({name:r.n,ph:l.ETraceEventPhase.BEGIN,pid:r.p,ts:r.s,args:r},...n,{name:r.n,ph:l.ETraceEventPhase.END,pid:r.p,ts:r.e,args:r})}else t.push({name:r.n,ph:l.ETraceEventPhase.BEGIN,pid:r.p,ts:r.s,args:r}),t.push({name:r.n,ph:l.ETraceEventPhase.END,pid:r.p,ts:r.e,args:r});return t},[])}(Object.entries(e.sort((e,t)=>e.s-t.s).reduce((e,t)=>{let r=e[t.p];return r?function(e,t){let r=[e];for(;r.length>0;){let e;let n=r.shift()||[];if(0===n.length)return;let i=n[n.length-1];if(i.e<=t.s)return n.push(t);for(let t=n.length-1;t>=0;t--){let{c:r}=n[t];r&&(e=r)}e?r.push(e):i.c=[t]}}(r,t):e[t.p]=[t],e},{})).reduce((e,[t,r])=>(e.push(...r),e),[]))}function h(e){let{ext:t}=e.data;return`
|
|
55
|
-
<div class="loader-tooltip-container">
|
|
56
|
-
<div class="loader-tooltip-title">[${t.args.p}] ${t.args.n}</div>
|
|
57
|
-
<li class="loader-tooltip-item">
|
|
58
|
-
<span>hook</span>
|
|
59
|
-
<span>${t.args.p}</span>
|
|
60
|
-
</li>
|
|
61
|
-
<li class="loader-tooltip-item">
|
|
62
|
-
<span>tap name</span>
|
|
63
|
-
<span>${t.args.n}</span>
|
|
64
|
-
</li>
|
|
65
|
-
<li class="loader-tooltip-item">
|
|
66
|
-
<span>start</span>
|
|
67
|
-
<span>${s()(t.args.s).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
68
|
-
</li>
|
|
69
|
-
<li class="loader-tooltip-item">
|
|
70
|
-
<span>end</span>
|
|
71
|
-
<span>${s()(t.args.e).format("YYYY/MM/DD HH:mm:ss")}</span>
|
|
72
|
-
</li>
|
|
73
|
-
<li class="loader-tooltip-item">
|
|
74
|
-
<span>duration</span>
|
|
75
|
-
<span>${(0,a.formatCosts)(t.args.e-t.args.s)}</span>
|
|
76
|
-
</li>
|
|
77
|
-
</div>
|
|
78
|
-
`.trim()}function f(e,t){let[r,n]=(0,d.useState)(e);return(0,d.useEffect)(()=>{let r=setTimeout(()=>n(e),t);return()=>clearTimeout(r)},[e,t]),r}},281185:function(e,t,r){"use strict";r.r(t),r.d(t,{DefaultEditorConfig:function(){return n}});let n={readOnly:!0,domReadOnly:!0,fontSize:12,renderValidationDecorations:"off",hideCursorInOverviewRuler:!0,smoothScrolling:!0,wordWrap:"bounded",colorDecorators:!0,codeLens:!1,cursorWidth:0,minimap:{enabled:!1}}},678527:function(e,t,r){"use strict";r.r(t),r.d(t,{DiffViewer:function(){return a}});var n=r("397458"),i=r("112326"),s=r("895925"),o=r("277422");let a=({before:e,after:t,filepath:r,className:a,editorProps:l})=>(0,n.jsx)(i.DiffEditor,{className:a,originalLanguage:(0,o.getOriginalLanguage)(r),modifiedLanguage:(0,o.getModifiedLanguage)(r),theme:"vs-dark",original:e,modified:t,width:"100%",...l,options:{readOnly:!0,originalEditable:!1,renderSideBySide:!0,renderIndicators:!0,lineDecorationsWidth:s.Size.BasePadding,definitionLinkOpensInPeek:!1,domReadOnly:!0,fontSize:14,minimap:{enabled:!1},diffWordWrap:"on",...l?.options}})},803579:function(e,t,r){"use strict";r.r(t),r.d(t,{FileHightLightViewer:function(){return c}});var n=r("397458"),i=r("652983"),s=r("311618"),o=r("113090"),a=r("112326"),l=r("277422"),d=r("699997");let c=({dependency:e,module:t,cwd:r,moduleCode:c})=>{let u=(0,i.useRef)(null);if(!e)return null;let{statements:p}=e,h=!!p?.[0]?.position?.source,{start:f,end:g}=p?.[0]?.position?h?p[0].position.source:p[0].position.transformed:{start:{line:0,column:0},end:{line:0,column:0}},m=h?c?.source:c?.transformed||c?.source,x=t.path;return(0,n.jsx)(s.Card,{title:(0,n.jsxs)(s.Space,{children:[(0,n.jsx)(s.Tooltip,{title:x,zIndex:99999,children:(0,n.jsx)(o.InfoCircleOutlined,{})}),(0,n.jsx)(d.CodeOpener,{cwd:r,url:x,label:(0,l.beautifyModulePath)(x,r).alias,loc:`${f.line}:${f.column||1}`,code:!0,disabled:!0})]}),style:{height:"100%"},children:(0,n.jsx)(a.default,{theme:"vs-dark",language:(0,l.getOriginalLanguage)(x),value:m,width:"100%",height:window.innerHeight/1.5,options:{readOnly:!0,domReadOnly:!0,fontSize:14,minimap:{enabled:!1}},onMount:(e,t)=>{u.current=e;let r=(0,l.getSelectionRange)({start:f,end:g},t.Range),n=(0,l.getRevealPositionForViewer)(r.startLineNumber,r.startColumn);e.revealPositionInCenter(n),e.deltaDecorations([],[{range:r,options:{inlineClassName:"file-inline-decoration"}}])}})})}},446591:function(e,t,r){"use strict";r.r(t);var n=r("678527");r.es(n,t);var i=r("803579");r.es(i,t);var s=r("244548");r.es(s,t);var o=r("281185");r.es(o,t)},244548:function(e,t,r){"use strict";r.r(t),r.d(t,{CodeViewer:function(){return c},CodeViewerWithDrawer:function(){return u}});var n=r("397458"),i=r("112326"),s=r("673148"),o=r("113090"),a=r("277422"),l=r("281185"),d=r("457448");let c=({content:e,ranges:t,path:r,defaultLine:o,editorConfig:d={}})=>(0,n.jsx)(i.default,{theme:"vs-dark",language:(0,a.getOriginalLanguage)(r),value:e,width:"100%",height:window.innerHeight/1.5,options:{...l.DefaultEditorConfig,...d},onMount:(e,r)=>{(0,s.isNumber)(o)&&e.revealLine(o),t&&t.length>0&&e.deltaDecorations([],t.map(e=>({range:(0,a.getSelectionRange)(e,r.Range),options:{inlineClassName:"file-inline-decoration"}})))}}),u=e=>(0,n.jsx)(d.TextDrawer,{text:"",buttonProps:{size:"small",icon:(0,n.jsx)(o.CodepenCircleOutlined,{}),type:"default"},buttonStyle:{padding:"0 4px"},drawerProps:{destroyOnClose:!0,title:`Code of "${e.path}"`},children:(0,n.jsx)(c,{...e})})},798915:function(e,t,r){"use strict";r.r(t),r.d(t,{WebpackConfigurationViewer:function(){return f}});var n=r("397458"),i=r("678741"),s=r("311618"),o=r("673148"),a=r("652983"),l=r("345462"),d=r.n(l),c=r("277422"),u=r("143622"),p=r("457448"),h=r("723675");let f=(0,u.withServerAPI)({Component:({defaultKeys:e,configs:t})=>{let r=(0,c.useWebpackConfigurationByConfigs)(t||[]);if(!r)return null;let{config:i,version:l,name:u}=r,f=Object.keys(i),[g,m]=(0,a.useState)(e||f);return(0,n.jsx)(p.TextDrawer,{text:"View Bundler Config",children:(0,n.jsxs)(s.Row,{children:[(0,n.jsx)(h.Title,{text:"Bundler Config Viewer"}),(0,n.jsx)(s.Divider,{}),(0,n.jsxs)(s.Space,{children:[(0,n.jsx)(s.Typography.Text,{children:"Properties: "}),(0,n.jsx)(s.Select,{dropdownStyle:{zIndex:999},mode:"multiple",allowClear:!0,value:g.length===f.length?[]:g,style:{width:350},dropdownMatchSelectWidth:!0,placeholder:"Show Selected Properties Only.",onChange:e=>{m(e)},children:f.map(e=>(0,n.jsx)(s.Select.Option,{label:e,value:e,children:e},e))})]}),(0,n.jsx)(s.Divider,{}),(0,n.jsx)(d(),{name:l&&"unknown"!==l?`${u}@${l}`:"webpack.config",theme:"monokai",src:0===g.length?i:(0,o.pick)(i,g),displayDataTypes:!1,displayObjectSize:!1})]})})},api:i.SDK.ServerAPI.API.LoadDataByKey,responsePropName:"configs",body:{key:"configs"},showSkeleton:!1})},251264:function(e,t,r){"use strict";r.r(t);var n=r("798915");r.es(n,t)},635972:function(e,t,r){"use strict";r.r(t),r.d(t,{FileTree:function(){return c}});var n=r("397458"),i=r("311618"),s=r("113090"),o=r("818968"),a=r("895925");r("313842");var l=r("277422");let{useToken:d}=i.theme,c=e=>{let{isDark:t}=(0,l.useTheme)(),{token:r}=d(),c=t?r.colorWhite:r.colorText,u={fontSize:r.fontSize};return(0,n.jsx)(o.default,{checkable:!1,selectable:!0,switcherIcon:({data:e,expanded:t})=>e?.children?(0,n.jsxs)(i.Space,{style:{color:c},children:[(0,n.jsx)(s.RightOutlined,{twoToneColor:c,className:`file-tree-switcher-arrow ${t?"file-tree-switcher-arrow-expand":""}`,style:u}),t?(0,n.jsx)(s.FolderOpenOutlined,{twoToneColor:c,style:u}):(0,n.jsx)(s.FolderOutlined,{twoToneColor:c,style:u})]}):(0,n.jsx)(s.FileOutlined,{style:{marginLeft:a.Size.BasePadding-6,color:c}}),expandAction:"click",...e})}},233448:function(e,t,r){"use strict";r.r(t),r.d(t,{KeywordInput:function(){return o}});var n=r("397458"),i=r("652983"),s=r("311618");let o=({icon:e,label:t,labelStyle:r={},placeholder:o,onChange:a,style:l,className:d,width:c,delay:u=300})=>{let p;let[h,f]=(0,i.useState)(""),g={width:120,...r},m=(0,i.useRef)(null);return(0,i.useEffect)(()=>{a(h)},[h]),(0,n.jsxs)(s.Input.Group,{compact:!0,style:l,className:d,children:[t||e?(0,n.jsxs)(s.Button,{style:g,onClick:()=>{m&&m.current&&m.current.focus()},children:[e||null,(0,n.jsx)(s.Typography.Text,{children:t})]}):null,(0,n.jsx)(s.Input,{ref:m,allowClear:!0,defaultValue:h,style:{width:c?c-120:250},placeholder:o,onChange:e=>{clearTimeout(p);let t=e.target.value.trim();setTimeout(()=>{f(t)},u)}})]})}},467522:function(e,t,r){"use strict";r.r(t),r.d(t,{Keyword:function(){return s}});var n=r("397458"),i=r("311618");let s=({text:e,keyword:t,...r})=>{if(!t||-1===e.indexOf(t))return(0,n.jsx)(i.Typography.Text,{...r,children:e});let s=[],o=e;for(;o.length>0;){let e=o.indexOf(t);if(e>-1)0!==e&&s.push((0,n.jsx)(i.Typography.Text,{style:{fontSize:"inherit"},children:o.slice(0,e)},s.length)),s.push((0,n.jsx)(i.Typography.Text,{mark:!0,style:{fontSize:"inherit"},children:t},s.length)),o=o.slice(e+t.length);else{s.push((0,n.jsx)(i.Typography.Text,{style:{fontSize:"inherit"},children:o},s.length));break}}return(0,n.jsx)(i.Typography.Text,{...r,children:s})}},905161:function(e,t,r){"use strict";r.r(t),r.d(t,{BuilderSelect:function(){return l}});var n=r("397458"),i=r("311618"),s=r("652983"),o=r("239504"),a=r("277422");let l=()=>{let[e,t]=(0,s.useState)(""),[r,l]=(0,s.useState)([]);return((0,s.useEffect)(()=>{(0,a.fetchManifest)().then(({name:e,series:r})=>{e&&t(e),r&&r.length>0&&l(r)})},[]),e.length<=0||r.length<=0)?(0,n.jsx)(n.Fragment,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Divider,{type:"vertical",style:{margin:"0 24px"}}),(0,n.jsx)("img",{src:o,style:{marginRight:6,height:16}}),(0,n.jsx)(i.Typography,{children:"Compiler"}),(0,n.jsx)(i.Select,{className:"builder-selector",defaultValue:e,bordered:!1,style:{minWidth:100},onChange:e=>{let t=r.find(t=>t.name===e);t&&(t.origin?location.href=(0,a.changeOrigin)(t.origin):console.error("No RsdoctorManifestSeriesData.origin"))},children:r.map((e,t)=>(0,n.jsx)(i.Select.Option,{value:e.name,className:"builder-selector-option-item",children:e.name},t))})]})}},175910:function(e,t,r){"use strict";r.r(t),r.d(t,{CompileName:function(){return n}});let n="Compile Analysis"},789782:function(e,t,r){"use strict";r.r(t),r.d(t,{Header:function(){return u}});var n=r("397458"),i=r("113090"),s=r("311618"),o=r("895925"),a=r("277422"),l=r("314496"),d=r("905161"),c=r("53876");r("767546");let u=()=>{let{i18n:e}=(0,a.useI18n)(),{isLight:t}=(0,a.useTheme)(),r=[{value:o.Language.Cn,label:"\u4E2D\u6587"},{value:o.Language.En,label:"English"}];return(0,n.jsx)(s.Layout.Header,{style:{height:o.Size.NavBarHeight,padding:0,paddingLeft:o.Size.BasePadding,paddingRight:o.Size.BasePadding,position:"fixed",zIndex:999,width:"100%",backgroundColor:t?"#fff":"#141414",transition:"none"},children:(0,n.jsxs)(s.Row,{justify:"space-between",align:"middle",style:{height:o.Size.NavBarHeight},wrap:!1,children:[(0,n.jsx)(s.Col,{style:{height:o.Size.NavBarHeight,lineHeight:`${o.Size.NavBarHeight+2}px`},children:(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:"100%"},children:[(0,n.jsx)("img",{style:{height:30},src:"https://lf3-static.bytednsdoc.com/obj/eden-cn/lognuvj/rsdoctor/logo/rsdoctor.png",className:"web-doctor-logo",alt:"logo"}),(0,n.jsx)(s.Typography.Text,{style:{color:"inherit",fontSize:18,marginLeft:4,marginTop:8},children:"Rsdoctor"}),(0,n.jsx)(d.BuilderSelect,{})]})}),(0,n.jsx)(s.Col,{flex:1,children:(0,n.jsxs)(s.Row,{align:"middle",justify:"end",style:{height:o.Size.NavBarHeight},wrap:!1,gutter:[o.Size.BasePadding/3,0],children:[(0,n.jsx)(s.Col,{children:(0,n.jsx)(l.OverlayAlertsWithButton,{})}),(0,n.jsx)(c.Menus,{style:{transition:"none"}}),(0,n.jsx)(s.Col,{children:(0,n.jsx)(s.Dropdown,{overlayStyle:{zIndex:1e3},menu:{items:r.map(t=>({label:t.label,key:t.value,onClick(){e.changeLanguage(t.value)}})),selectedKeys:[e.language]},children:(0,n.jsx)(i.TranslationOutlined,{className:"header-icon",style:{display:"inline-block",fontSize:20,textAlign:"center",verticalAlign:"middle",cursor:"pointer",width:30,transition:"all 0.3s ease"}})})})]})})]})})}},942579:function(e,t,r){"use strict";r.r(t),r.d(t,{Layout:function(){return c}});var n=r("397458"),i=r("652983"),s=r("311618"),o=r("895925"),a=r("789782"),l=r("277422"),d=r("636838");let c=e=>{let t=(0,l.useLocale)(),{i18n:r}=(0,l.useI18n)(),{children:c}=e;return(0,i.useEffect)(()=>{r.language!==t&&r.changeLanguage(t)},[t]),(0,n.jsxs)(s.Layout,{children:[(0,n.jsx)(a.Header,{}),(0,n.jsx)(d.Progress,{}),(0,n.jsxs)(s.Layout.Content,{style:{height:"100%",minHeight:"100vh",padding:o.Size.BasePadding,marginTop:o.Size.NavBarHeight,background:o.MAIN_BG},children:[c,(0,n.jsx)(s.FloatButton.BackTop,{})]})]})}},53876:function(e,t,r){"use strict";r.r(t),r.d(t,{Menus:function(){return m}});var n=r("397458"),i=r("113090"),s=r("678741"),o=r("311618"),a=r("673148"),l=r("264124"),d=r("451019"),c=r("895925"),u=r("538613"),p=r("277422"),h=r("143622"),f=r("283177"),g=r("175910");let m=(0,h.withServerAPI)({api:s.SDK.ServerAPI.API.GetClientRoutes,responsePropName:"routes",Component:e=>{let{t}=(0,p.useI18n)(),{pathname:r}=(0,l.useLocation)(),h=(0,l.useNavigate)(),{routes:m}=e,x={fontSize:16},y={...x,transform:"translateY(-2px)"},j=[];console.log("enableRoutes: ",m),(0,a.includes)(m,s.Manifest.RsdoctorManifestClientRoutes.Overall)&&j.push({label:t(u.name),key:u.route,icon:(0,n.jsx)(i.BarChartOutlined,{style:x}),children:[],onTitleClick(e){h(e.key)}}),(0,p.hasCompile)(m)&&j.push({label:t(g.CompileName),key:g.CompileName,icon:(0,n.jsx)(i.ToolOutlined,{style:x}),children:[(0,a.includes)(m,s.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders)&&{label:(0,n.jsx)(o.Typography.Text,{style:{marginRight:8},children:t(f.LoaderFiles.name)}),key:f.LoaderFiles.route,icon:(0,n.jsx)("img",{src:d,alt:"",style:{...x,width:16}}),children:[{label:t(f.LoaderTimeline.name),key:f.LoaderTimeline.route,icon:(0,n.jsx)(i.BarChartOutlined,{style:x})},{label:t(f.LoaderFiles.name),key:f.LoaderFiles.route,icon:(0,n.jsx)(i.MonitorOutlined,{style:x})}]},(0,a.includes)(m,s.Manifest.RsdoctorManifestClientRoutes.ModuleResolve)&&{label:t(f.ModuleResolve.name),key:f.ModuleResolve.route,icon:(0,n.jsx)(i.NodeIndexOutlined,{style:x})},(0,a.includes)(m,s.Manifest.RsdoctorManifestClientRoutes.WebpackPlugins)&&{label:t(f.PluginsAnalyze.name),key:f.PluginsAnalyze.route,icon:(0,n.jsx)(i.ApiOutlined,{style:x})}].filter(e=>!!e)}),(0,p.hasBundle)(m)&&j.push({label:t(f.BundleSize.name),key:f.BundleSize.name,icon:(0,n.jsx)("span",{style:y,children:"\uD83D\uDCE6"}),children:[(0,a.includes)(m,s.Manifest.RsdoctorManifestClientRoutes.BundleSize)&&{label:t(f.BundleSize.name),key:f.BundleSize.route,icon:(0,n.jsx)(i.FolderViewOutlined,{style:x})},(0,a.includes)(m,s.Manifest.RsdoctorManifestClientRoutes.TreeShaking)&&{label:t(f.TreeShaking.name),key:f.TreeShaking.route,icon:(0,n.jsx)(i.FolderViewOutlined,{style:x})}].filter(e=>!!e)});let S=(0,n.jsx)(o.Menu,{items:j,mode:"horizontal",onClick:e=>{!e.keyPath.includes("builder-switcher")&&h(e.key)},overflowedIndicator:(0,n.jsx)(i.MenuOutlined,{}),style:{height:c.Size.NavBarHeight,lineHeight:`${c.Size.NavBarHeight}px`,minWidth:0,justifyContent:"flex-end",...e.style},selectedKeys:["/"===r?u.route:r]},m.join(""));return(0,n.jsx)(o.Col,{xs:{span:3},md:{span:6},lg:{span:10},xl:{span:11},xxl:{span:12},children:S})},fallbackComponent:()=>null})},636838:function(e,t,r){"use strict";r.r(t),r.d(t,{Progress:function(){return l}});var n=r("397458"),i=r("311618"),s=r("678741"),o=r("895925"),a=r("143622");let l=(0,a.withServerAPI)({api:s.SDK.ServerAPI.APIExtends.GetCompileProgess,responsePropName:"progress",Component:({progress:e})=>{if(!e)return null;let{percentage:t=1,message:r}=e;if(t>=1)return null;let s=+(100*t).toFixed(1);return(0,n.jsx)(i.Row,{wrap:!0,style:{width:"100%",position:"fixed",top:o.Size.NavBarHeight,left:1,zIndex:99},children:(0,n.jsx)(i.Col,{span:Math.min(Math.floor(24*t),24),children:(0,n.jsx)(i.Progress,{percent:100,status:"active",size:"small",format:()=>(0,n.jsx)(i.Typography.Text,{style:{fontSize:12},type:"secondary",children:`${s}% ${r}`})})})})},fallbackComponent:()=>null})},637189:function(e,t,r){"use strict";r.r(t),r.d(t,{LoaderFiles:function(){return x}});var n=r("397458"),i=r("652983"),s=r.n(i),o=r("673148"),a=r("311618"),l=r("113090"),d=r("678741"),c=r("143622"),u=r("895925"),p=r("277422"),h=r("84011"),f=r("635972"),g=r("467522"),m=r("613872");let x=e=>{let{cwd:t,filetree:r}=e,[x,y]=(0,i.useState)(!1),[j,S]=(0,i.useState)(""),[v,M]=(0,i.useState)(0),[C,T]=(0,i.useState)(null),b=(0,i.useRef)(null),{initMonaco:D}=(0,p.useMonacoEditor)(),I=(0,i.useCallback)(async()=>{await D(b)},[]),w=(0,i.useMemo)(()=>r.filter(t=>t.loaders.some(r=>(0,p.filterLoader)(t.path,r.loader,e.filename,e.loaders))),[e.filename,e.loaders]),A="__RESOURCEPATH__",P=(0,i.useMemo)(()=>(0,p.createFileStructures)({files:w.map(e=>e.path),cwd:t,fileTitle(t,i){let{loaders:s}=r.find(e=>e.path===t);return(0,n.jsxs)(a.Space,{style:{wordBreak:"break-all"},onClick:()=>{M(0),S(t),y(!0)},children:[(0,n.jsx)(g.Keyword,{text:i,keyword:e.filename}),(0,o.endsWith)(t,d.Constants.JSExtension)?(0,n.jsx)(c.ServerAPIProvider,{api:d.SDK.ServerAPI.API.GetLoaderFileFirstInput,body:{file:t},fallbackComponent:()=>null,children:e=>(0,n.jsx)(m.ECMAVersionDetectTag,{code:e})}):null,s.map((e,r)=>{let i=e.errors&&e.errors.length,s=`${t}_${e.loader}_${r}`;return(0,n.jsx)(a.Tooltip,{title:e.path,children:(0,n.jsxs)(a.Typography.Text,{code:!0,style:{color:i?"#f50":"inherit"},onClick:e=>{e.stopPropagation(),S(t),M(r),y(!0)},children:[(0,n.jsx)(a.Typography.Text,{style:{maxWidth:135,color:"inherit"},ellipsis:!0,children:e.loader}),(0,n.jsx)(a.Divider,{type:"vertical"}),i?(0,n.jsx)(l.CloseCircleOutlined,{}):(0,n.jsx)(a.Typography.Text,{strong:!0,children:(0,p.formatCosts)(e.costs)})]})},s)})]})},dirTitle:(t,r)=>(0,n.jsx)(g.Keyword,{text:r,keyword:e.filename})}),[w]);return(0,n.jsxs)(a.Row,{style:{width:"100%"},gutter:u.Size.BasePadding,children:[(0,n.jsx)(a.Col,{span:14,children:(0,n.jsxs)(a.Card,{title:(0,n.jsxs)(a.Typography.Text,{strong:!0,children:["Total Files: ",w.length]}),bodyStyle:{overflow:"scroll",maxHeight:700},children:[(0,n.jsx)(f.FileTree,{defaultExpandedKeys:(0,p.mapFileKey)(P,w.length>=100?3:4,e=>!((0,o.get)(e,A).indexOf("/node_modules/")>-1)),treeData:P,onSelect:(e,t)=>{I(),!t.node.isLeaf&&T(t.node)},selectedKeys:C?[C.key]:void 0,expandAction:"click"},`${e.loaders.join("|")}_${e.filename}`),(0,n.jsx)(a.Drawer,{open:x,onClose:()=>y(!1),maskClosable:!0,width:u.drawerWidth,zIndex:999,bodyStyle:{padding:0},children:x?(0,n.jsx)(c.ServerAPIProvider,{api:d.SDK.ServerAPI.API.GetLoaderFileDetails,body:{path:j},children:e=>(0,n.jsx)(h.LoaderExecutions,{data:e,cwd:t,index:v})}):null})]})}),C?(0,n.jsx)(a.Col,{span:10,children:(0,n.jsx)(a.Card,{title:(0,n.jsx)(a.Tooltip,{title:s().cloneElement(C.title,{style:{color:"#fff"}}),children:(0,n.jsxs)(a.Typography.Text,{children:['Statistics of "',C.title,'"']})}),children:(0,n.jsx)(c.ServerAPIProvider,{api:d.SDK.ServerAPI.API.GetLoaderFolderStatistics,body:{folder:C[A]},children:e=>(0,n.jsx)(a.Table,{style:{width:"100%",maxHeight:700,overflowY:"scroll",wordBreak:"break-all"},pagination:!1,bordered:!0,rowKey:e=>e.loader,columns:[{title:"Loader Name",dataIndex:"loader"},{title:"Files",dataIndex:"files"},{title:"Total Duration",dataIndex:"costs",render:e=>(0,n.jsx)(a.Typography.Text,{strong:!0,children:(0,p.formatCosts)(e)}),sorter:(e,t)=>e.costs-t.costs,defaultSortOrder:"descend",sortDirections:["descend","ascend"]}],dataSource:e,footer:()=>(0,n.jsxs)(a.Descriptions,{title:"Total",bordered:!0,layout:"vertical",size:"small",children:[(0,n.jsx)(a.Descriptions.Item,{label:"loaders",children:e.length}),(0,n.jsx)(a.Descriptions.Item,{label:"files",children:(0,o.sumBy)(e,e=>e.files)}),(0,n.jsx)(a.Descriptions.Item,{label:"duration",children:(0,n.jsx)(a.Typography.Text,{strong:!0,children:(0,p.formatCosts)((0,o.sumBy)(e,e=>e.costs))})})]})})})})}):null]})}},4487:function(e,t,r){"use strict";r.r(t),r.d(t,{LoaderAnalysis:function(){return d}});var n=r("397458"),i=r("652983"),s=r("678741"),o=r("143622"),a=r("637189"),l=r("342068");let d=(0,o.withServerAPI)({api:s.SDK.ServerAPI.API.LoadDataByKey,body:{key:"root"},responsePropName:"cwd",Component:({cwd:e})=>{let[t,r]=(0,i.useState)({filename:"",loaders:[]});return(0,n.jsxs)("div",{children:[(0,n.jsx)(o.ServerAPIProvider,{api:s.SDK.ServerAPI.API.GetLoaderNames,children:e=>(0,n.jsx)(l.LoaderCommonSelect,{onChange:e=>r(e),loaderNames:e})}),(0,n.jsx)(o.ServerAPIProvider,{api:s.SDK.ServerAPI.API.GetLoaderFileTree,children:r=>(0,n.jsx)(a.LoaderFiles,{filename:t.filename,filetree:r,loaders:t.loaders,cwd:e})})]})}})},84011:function(e,t,r){"use strict";r.r(t),r.d(t,{LoaderExecutions:function(){return S}});var n=r("397458"),i=r("113090"),s=r("112326"),o=r("678741"),a=r("311618"),l=r("214123"),d=r.n(l),c=r("673148"),u=r("652983"),p=r("895925"),h=r("277422"),f=r("321807"),g=r("446591"),m=r("699997"),x=r("723675"),y=r("501438");let j=({label:e,value:t,ellipsis:r=!1,...i})=>(0,n.jsxs)(a.Row,{children:[(0,n.jsx)(a.Col,{span:6,children:(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(a.Badge,{status:"processing"}),(0,n.jsx)("div",{style:{width:180},children:(0,n.jsx)(a.Typography.Text,{strong:!0,code:!0,children:e})}),(0,n.jsx)(a.Divider,{type:"vertical"})]})}),(0,n.jsx)(a.Col,{span:18,children:(0,n.jsx)(a.Typography.Paragraph,{ellipsis:r,strong:!0,...i,children:t})})]}),S=({data:e,cwd:t,index:r})=>{let{loaders:l,resource:S}=e,[v,M]=(0,u.useState)(r||0),{theme:C}=(0,h.useTheme)(),T="light"===C,b=l[v],D=b.input||"",I=b.errors&&b.errors.length;return(0,n.jsxs)(a.Row,{style:{height:"100%"},children:[(0,n.jsx)(a.Col,{span:5,style:{borderRight:T?"1px solid #f0f0f0":void 0,padding:p.Size.BasePadding},children:(0,n.jsxs)(a.Space,{direction:"vertical",style:{width:"100%"},children:[(0,n.jsx)(x.Title,{text:"Executions"}),(0,n.jsx)(a.Timeline,{mode:"left",style:{marginTop:p.Size.BasePadding},children:l.map((e,t,r)=>{let{loader:s,isPitch:o}=e;return(0,n.jsxs)(a.Timeline.Item,{dot:o?(0,n.jsx)(a.Tag,{style:{marginLeft:1,fontWeight:500},children:"pitch"}):(0,n.jsx)(i.ClockCircleOutlined,{}),style:{paddingBottom:10,textAlign:"center"},children:[(0,n.jsx)(a.Row,{align:"middle",justify:"space-between",gutter:[0,10],children:(0,n.jsx)(a.Col,{span:24,children:(0,n.jsx)(a.Tooltip,{title:s,trigger:"hover",children:(0,n.jsx)(a.Button,{type:t===v?"primary":"default",block:!0,onClick:()=>{M(t)},style:{textAlign:"left"},children:(0,n.jsxs)(a.Typography.Text,{ellipsis:!0,style:{color:"inherit"},children:[(0,n.jsx)(a.Typography.Text,{strong:!0,style:{color:"inherit"},children:(0,h.formatCosts)(e.costs)}),(0,n.jsx)(a.Divider,{type:"vertical"}),s]})})})})}),t===r.length-1?null:(0,n.jsx)("div",{style:{paddingTop:10},children:(0,n.jsx)(a.Typography.Text,{children:"\u2B07\uFE0F"})})]},t)})})]})}),(0,n.jsxs)(a.Col,{span:19,style:{height:"100%"},children:[(0,n.jsx)(a.Col,{span:24,children:(0,n.jsxs)(f.Card,{title:"Loader Details",style:{border:"none"},collapsable:!0,defaultCollapsed:!0,extra:(0,n.jsx)(a.Tag,{icon:(0,n.jsx)(i.ClockCircleOutlined,{}),color:"default",children:d()(b.startAt).format("YYYY-MM-DD HH:mm:ss")}),children:[b.isPitch?(0,n.jsx)(a.Typography.Text,{code:!0,children:"pitch"}):null,b.isPitch||I||!(0,c.endsWith)(S.path,o.Constants.JSExtension)?null:(0,n.jsx)(y.JSIsEqualTag,{input:D,output:b.result||""}),(0,n.jsxs)(a.Space,{direction:"vertical",style:{padding:p.Size.BasePadding,wordBreak:"break-all"},children:[(0,n.jsx)(j,{label:"file path",value:(0,h.beautifyPath)(S.path,t),code:!0}),(0,n.jsx)(j,{label:"resource path",value:(0,n.jsx)(m.CodeOpener,{cwd:t,url:S.path,loc:"",disabled:!0})}),(0,n.jsx)(j,{label:"resource query",value:S.queryRaw||"-"}),(0,n.jsx)(j,{label:"duration",value:(0,h.formatCosts)(b.costs),mark:!0}),(0,n.jsx)(j,{label:"loader name",value:b.loader,code:!0}),(0,n.jsx)(j,{label:"loader index",value:`${b.loaderIndex}`}),(0,n.jsx)(j,{label:"loader path",value:(0,n.jsx)(m.CodeOpener,{cwd:t,url:b.path,loc:"",disabled:!0})}),(0,n.jsx)(j,{label:"options",value:JSON.stringify(b.options||"-"),copyable:!0,ellipsis:{rows:2,expandable:!0,symbol:"more"}})]})]})}),I?(0,n.jsxs)(a.Col,{span:24,style:{height:"53%",minHeight:400},children:[(0,n.jsx)("div",{style:{padding:p.Size.BasePadding,borderTop:`1px solid ${T?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`,borderBottom:`1px solid ${T?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:(0,n.jsx)(x.Title,{text:`the error stack of [${b.loader}] ${b.isPitch?"pitch":""}`})}),(0,n.jsx)("div",{style:{height:"90%"},children:(0,n.jsx)(s.default,{theme:"vs-dark",options:{readOnly:!0,domReadOnly:!0,fontSize:14,minimap:{enabled:!1},lineNumbers:"off"},value:b.errors[0].message,language:"javascript"})})]}):(0,n.jsxs)(a.Col,{span:24,style:{height:"53%",minHeight:400},children:[(0,n.jsx)("div",{style:{padding:p.Size.BasePadding,borderTop:`1px solid ${T?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`,borderBottom:`1px solid ${T?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:(0,n.jsx)(x.Title,{text:`the result of [${b.loader}] ${b.isPitch?"pitch":""}`})}),b.isPitch?b.result?(0,n.jsx)("div",{style:{height:"90%"},children:(0,n.jsx)(s.default,{theme:"vs-dark",options:{readOnly:!0,domReadOnly:!0,fontSize:14,formatOnType:!0,formatOnPaste:!0},value:b.result,language:(0,h.getModifiedLanguage)(S.path)})}):(0,n.jsx)(a.Empty,{}):(0,n.jsxs)("div",{style:{height:"90%"},children:[(0,n.jsxs)(a.Row,{children:[(0,n.jsx)(a.Col,{span:12,style:{padding:`${p.Size.BasePadding/2}px ${p.Size.BasePadding}px`},children:(0,n.jsx)(a.Typography.Text,{strong:!0,children:"Input"})}),(0,n.jsx)(a.Col,{span:12,style:{padding:`${p.Size.BasePadding/2}px ${p.Size.BasePadding}px`},children:(0,n.jsx)(a.Typography.Text,{strong:!0,children:"Output"})})]}),(0,n.jsx)("div",{style:{height:"86%"},children:(0,n.jsx)(g.DiffViewer,{filepath:S.path,before:D,after:b.result||""})})]})]})]})]})}},326255:function(e,t,r){"use strict";r.r(t),r.d(t,{ServerAPIProvider:function(){return u},withServerAPI:function(){return p}});var n=r("397458"),i=r("678741"),s=r("311618"),o=r("652983"),a=r("673148"),l=r("277422"),d=r("895925"),c=r("989639");let u=e=>{let{manifestLoader:t=l.fetchManifest,api:r,children:u,body:p=null,showSkeleton:h=!0,fallbackComponent:f}=e,g=t(),[m,x]=(0,o.useState)(),[y,j]=(0,o.useState)(d.ComponentState.Pending),[S,v]=(0,o.useState)({}),{loader:M}=(0,l.useDataLoader)(m);function C(e){(function(e){return e.then(e=>{x(e)}).catch(e=>{throw j(d.ComponentState.Fail),e})})(g).then(()=>{(function(e){if(!e)return;let t=(0,a.values)(i.SDK.ServerAPI.APIExtends);if((0,a.includes)(t,r)){j(d.ComponentState.Success);return}e.loadAPI(r,p).then(e=>{!(0,a.isNil)(e)&&(v(e),j(d.ComponentState.Success))}).catch(e=>{console.error(e),j(d.ComponentState.Fail)})})(e)})}let T=(0,o.useCallback)(({req:e,res:t})=>{e.api===r&&((0,a.isEqual)(e.body,p)||(0,a.isNil)(e.body)&&(0,a.isNil)(p))&&!(0,a.isEqual)(S,t)&&v(t),j(d.ComponentState.Success)},[S,r,p]);(0,o.useEffect)(()=>{C(M)},[M,r,p]),(0,o.useEffect)(()=>{if(M)return M.onDataUpdate(r,T),()=>{M.removeOnDataUpdate(r,T)}},[M,r,p]);if(y===d.ComponentState.Pending)return h?(0,n.jsx)(s.Skeleton,{active:!0}):null;if(y===d.ComponentState.Fail)return f?f:(0,n.jsx)(c.FailedStatus,{retry:()=>{j(d.ComponentState.Pending),g=t(),C()}});return y===d.ComponentState.Updating?(0,n.jsx)(s.Spin,{spinning:!0,children:u(S)}):u(S)};function p({Component:e,api:t,responsePropName:r,body:i,fallbackComponent:s,showSkeleton:o}){return function(a){let{body:l=i,...d}=a;return(0,n.jsx)(u,{api:t,body:l,showSkeleton:o,fallbackComponent:s,children:t=>{let i={...d,[r]:t};return(0,n.jsx)(e,{...i})}})}}},242420:function(e,t,r){"use strict";r.r(t),r.d(t,{ConnectManifestData:function(){return d}});var n=r("397458"),i=r("311618"),s=r("652983"),o=r("277422"),a=r("895925"),l=r("989639");function d(e,t,r){let d=e();return function(){let[c,u]=(0,s.useState)(),[p,h]=(0,s.useState)(a.PageState.Pending),[f,g]=(0,s.useState)({}),{loader:m}=(0,o.useDataLoader)(c);function x(e){return e.then(e=>{u(e)}).catch(()=>{h(a.PageState.Fail)})}function y(e){e&&Promise.all(t.map(([t])=>e.loadData(t))).then(e=>{g(e.reduce((e,r,n)=>{let[i,s]=t[n];return e[s]=r,e},{})),h(a.PageState.Success)}).catch(e=>{console.error(e),h(a.PageState.Fail)})}return((0,s.useEffect)(()=>{x(d).then(()=>{y(m)})},[m]),p===a.PageState.Pending)?(0,n.jsx)(i.Skeleton,{active:!0}):p===a.PageState.Fail?(0,n.jsx)(l.FailedStatus,{retry:()=>{h(a.PageState.Pending),d.then(()=>{y(m)}).catch(()=>{x(e())})}}):(0,n.jsx)(r,{...f})}}},143622:function(e,t,r){"use strict";r.r(t);var n=r("242420");r.es(n,t);var i=r("326255");r.es(i,t)},797835:function(e,t,r){"use strict";r.r(t),r.d(t,{CodeOpener:function(){return c}});var n=r("397458"),i=r("311618"),s=r("377410"),o=r.n(s),a=r("673148"),l=r("707368");let d=+Date.now().toString().slice(-4)+1e3,c=({cwd:e,url:t,loc:r,windowId:s=d,label:c,disabled:u,code:p=!1})=>{let h=o().resolve(e,function(e){let t=e.split(" "),r="";return 1===t.length?[r]=t:[r]=t.filter(e=>o().isAbsolute(e)||(0,a.startsWith)(e,"./")),r||e}(t)),{line:f,columnStart:g}=function(e){if(!e)return{line:1,column:1};let[t,r=""]=e.split(":"),[n=1,i]=r.split("-");return{line:t,columnStart:n,columnEnd:i||n}}(r);return(0,n.jsxs)("span",{style:{wordBreak:"break-all"},children:[(0,n.jsx)(i.Typography.Text,{copyable:{text:h},children:(0,n.jsxs)(i.Typography.Text,{code:p,onClick:()=>{!u&&(0,l.openVSCode)({file:h,line:f,column:g,windowId:s})},style:{cursor:u?"revert":"pointer"},children:[c||t,r?`:${r}`:""]})}),(0,n.jsx)("div",{style:{display:"inline-block"}})]})}},699997:function(e,t,r){"use strict";r.r(t);var n=r("797835");r.es(n,t);var i=r("707368");r.es(i,t)},707368:function(e,t,r){"use strict";r.r(t),r.d(t,{openVSCode:function(){return i}}),r("397458");var n=r("673148");function i({file:e,line:t=1,column:r=1,windowId:i}){let s={windowId:i},o=Object.keys(s).map(e=>{let t=s[e];return(0,n.isNil)(t)||""===t?null:`${e}=${t}`}).filter(Boolean).join("&"),a=`vscode://file/${e}:${t}:${r}`;o&&(a+=`?${o}`),window.open(a)}},109665:function(e,t,r){"use strict";r.r(t),r.d(t,{NumberButton:function(){return o}});var n=r("397458"),i=r("311618"),s=r("57102");let o=({theme:e,number:t,onClick:r,description:o,numberFontSize:a})=>{let l={success:{number:s.default.successNumber,button:s.default.successButton,description:s.default.successText},error:{number:s.default.errorNumber,button:s.default.errorButton,description:s.default.errorText},warning:{number:s.default.warningNumber,button:s.default.warningButton,description:s.default.warningText}};return(0,n.jsxs)(i.Button,{type:"text",className:l[e].button,onClick:r,children:[(0,n.jsx)(i.Typography.Text,{className:l[e].number,style:{fontSize:a},children:t}),(0,n.jsx)("div",{className:l[e].description,children:o})]})}},57102:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}}),r("264072");var n={errorNumber:"errorNumber_3c2f5",warningNumber:"warningNumber_3c2f5",successNumber:"successNumber_3c2f5",errorText:"errorText_3c2f5",warningText:"warningText_3c2f5",successText:"successText_3c2f5",errorButton:"errorButton_3c2f5",warningButton:"warningButton_3c2f5",successButton:"successButton_3c2f5",container:"container_3c2f5"}},610907:function(e,t,r){"use strict";r.r(t),r.d(t,{BundleOverall:function(){return S}});var n=r("397458"),i=r("311618"),s=r("652983"),o=r("678741"),a=r("113090"),l=r("264124"),d=r("277422"),c=r("457448"),u=r("321807"),p=r("143622"),h=r("635972"),f=r("959544"),g=r("319942"),m=r("57102"),x=r("109665");let y=e=>{let t=(0,s.useMemo)(()=>e.files.length?(0,d.createFileStructures)({files:e.files.map(e=>e.path),fileTitle(t,r){let{size:s,initial:o}=e.files.find(e=>e.path===t);return(0,n.jsxs)(i.Space,{children:[(0,n.jsx)(i.Typography.Text,{children:r}),(0,n.jsx)(i.Tag,{color:"success",style:{marginRight:0},children:(0,d.formatSize)(s)}),o?(0,n.jsx)(i.Tag,{color:"cyan",children:"Initial"}):null]})}}):[],[e.files]);return(0,n.jsx)(n.Fragment,{children:e.files.length?(0,n.jsx)(c.TextDrawer,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},text:(0,n.jsxs)(n.Fragment,{children:[e.count," ",(0,n.jsx)(a.ExceptionOutlined,{})]}),children:(0,n.jsx)(h.FileTree,{treeData:t,defaultExpandAll:!0})}):e.count})},j=({res:e})=>{let t=[{key:"total-files-count",label:"Total files",children:e.all.total.count},{key:"total-files-size",label:"",children:""},{key:"js-files-count",label:"JS files",children:y(e.js.total)},{key:"js-files-size",label:"JS size",children:(0,d.formatSize)(e.js.total.size)},{key:"css-files-count",label:"CSS files",children:y(e.css.total)},{key:"css-files-size",label:"CSS size",children:(0,d.formatSize)(e.css.total.size)},{key:"font-files-count",label:"Font files",children:y(e.fonts.total)},{key:"font-files-size",label:"Font size",children:(0,d.formatSize)(e.fonts.total.size)},{key:"html-files-count",label:"HTML files",children:y(e.html.total)},{key:"html-files-size",label:"HTML size",children:(0,d.formatSize)(e.html.total.size)},{key:"image-files-count",label:"Image files",children:y(e.imgs.total)},{key:"image-files-size",label:"Image size",children:(0,d.formatSize)(e.imgs.total.size)},{key:"media-files-count",label:"Media files",children:y(e.media.total)},{key:"media-files-size",label:"Media size",children:(0,d.formatSize)(e.media.total.size)}];return(0,n.jsx)(i.Descriptions,{className:f.default.root,size:"small",column:2,items:t})},S=({errors:e,cwd:t})=>{let{t:r}=(0,d.useI18n)(),s=(0,l.useNavigate)(),a=(0,d.useDuplicatePackagesByErrors)(e);return(0,n.jsx)(p.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let l=(0,d.formatSize)(e.all.total.size);return(0,n.jsxs)(u.Card,{title:r("Bundle Overall"),className:g.default.card,children:[(0,n.jsxs)(i.Row,{gutter:16,children:[(0,n.jsx)(i.Col,{span:12,className:m.default.container,children:(0,n.jsx)(x.NumberButton,{theme:"success",number:l,description:"Total Size",numberFontSize:"30px",onClick:()=>{s(o.Client.RsdoctorClientRoutes.BundleSize)}})}),(0,n.jsx)(i.Col,{span:12,className:m.default.container,children:(0,n.jsx)(c.DuplicatePackageDrawerWithServer,{cwd:t,duplicatePackages:a,button:(0,n.jsx)(x.NumberButton,{theme:0===a.length?"success":"warning",number:a.length,description:"Duplicate Packages"})})})]}),(0,n.jsx)(j,{res:e})]})}})}},319942:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}}),r("800255");var n={card:"card_3bba1"}},81981:function(e,t,r){"use strict";r.r(t),r.d(t,{CompileOverall:function(){return g}});var n=r("397458"),i=r("146641"),s=r("311618"),o=r("277422"),a=r("321807"),l=r("85057"),d=r("992381"),c=r("40263"),u=r("319942"),p=r("155295");let h=({children:e,name:t,showDivider:r=!0})=>(0,n.jsxs)(s.Typography.Text,{style:{color:"inherit"},children:[(0,n.jsx)(s.Typography.Text,{style:{color:"inherit"},children:t}),r?(0,n.jsx)(s.Divider,{type:"vertical"}):null,e]}),f=e=>e<33.3?{"0%":"#95de64","100%":"#5cdbd3"}:{"0%":"#ff9c6e","100%":"#ff7875"},g=({summary:e})=>{let{t}=(0,o.useI18n)();if(!e?.costs?.length)return null;let r=Math.max(...e.costs.map(e=>e.costs));return(0,n.jsx)(a.Card,{title:t("Compile Overall"),className:u.default.card,children:(0,n.jsx)(s.Space,{style:{wordBreak:"break-all",width:"100%"},size:20,direction:"vertical",children:e.costs.map(t=>{let{name:a,costs:u}=t,g=100*u/r,m=(0,n.jsx)(s.Progress,{className:p.default.progress,percent:g,status:"normal",strokeColor:f(g),format:()=>(0,o.formatCosts)(u)});switch(a){case i.Summary.SummaryCostsDataName.Bootstrap:return(0,n.jsxs)(h,{name:"Bootstrap ~ BeforeCompile",children:[(0,n.jsx)(l.BootstrapChartContainer,{summary:e}),m]},a);case i.Summary.SummaryCostsDataName.Compile:return(0,n.jsx)(h,{name:"Compile",showDivider:!1,children:m},a);case i.Summary.SummaryCostsDataName.Done:return(0,n.jsxs)(h,{name:"AfterCompile ~ Done",children:[(0,n.jsx)(d.DoneChartContainer,{summary:e}),m]},a);case i.Summary.SummaryCostsDataName.Minify:return(0,n.jsxs)(h,{name:"Minify",children:[(0,n.jsx)(c.MinifyChartContainer,{summary:e}),m]},a);default:return null}})})})}},155295:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}}),r("767152");var n={progress:"progress_61324"}},923312:function(e,t,r){"use strict";r.r(t);var n=r("610907");r.es(n,t);var i=r("81981");r.es(i,t);var s=r("122686");r.es(s,t)},959544:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}}),r("102394");var n={root:"root_17e15"}},122686:function(e,t,r){"use strict";r.r(t),r.d(t,{ProjectOverall:function(){return g}});var n=r("397458"),i=r("311618"),s=r("673148"),o=r("277422"),a=r("251264"),l=r("321807"),d=r("959544"),c=r("319942"),u=r("57102"),p=r("457448"),h=r("314496"),f=r("109665");let g=({configs:e=[],cwd:t,envinfo:r,alerts:g=[]})=>{let{t:m}=(0,o.useI18n)(),x=(0,s.filter)(g,e=>"warn"===e.level).length,y=g.length-x,j=[...Object.keys(r).map(e=>{let t=/Version$/,n=t.test(e);return{key:e,label:n?e.replace(t,""):e,children:r?r[e]:void 0}}),...e.filter(e=>!!e.version).map(e=>{let{name:t,version:r}=e;return{key:t,label:t,children:r}}),{key:"cwd",label:"cwd",children:t}];return(0,n.jsxs)(l.Card,{title:m("Project Overall"),extra:(0,n.jsx)(a.WebpackConfigurationViewer,{}),className:c.default.card,children:[(0,n.jsxs)(i.Row,{gutter:16,children:[(0,n.jsx)(i.Col,{span:12,className:u.default.container,children:(0,n.jsx)(p.TextDrawer,{button:(0,n.jsx)(f.NumberButton,{theme:0===y?"success":"error",number:y,description:"Errors"}),drawerProps:{title:"Errors List"},children:(0,n.jsxs)(i.Space,{direction:"vertical",style:{width:"100%"},children:[(0,n.jsx)(h.OverlayAlertsWithTips,{defaultOpen:!1}),(0,n.jsx)(h.BundleAlerts,{filter:e=>"error"===e.level}),(0,n.jsx)(h.CompileAlerts,{filter:e=>"error"===e.level})]})})}),(0,n.jsx)(i.Col,{span:12,className:u.default.container,children:(0,n.jsx)(p.TextDrawer,{button:(0,n.jsx)(f.NumberButton,{theme:0===x?"success":"warning",number:x,description:"Warnings"}),drawerProps:{title:"Warnings List"},children:(0,n.jsxs)(i.Space,{direction:"vertical",style:{width:"100%"},children:[(0,n.jsx)(h.OverlayAlertsWithTips,{defaultOpen:!1}),(0,n.jsx)(h.BundleAlerts,{filter:e=>"warn"===e.level}),(0,n.jsx)(h.CompileAlerts,{filter:e=>"warn"===e.level})]})})})]}),(0,n.jsx)(i.Descriptions,{className:d.default.root,items:j,size:"small",column:1})]})}},513938:function(e,t,r){"use strict";r.r(t),r.d(t,{WebpackPluginsDataTable:function(){return a}});var n=r("397458");r("652983");var i=r("311618"),s=r("673148"),o=r("277422");let a=({dataSource:e})=>(0,n.jsx)(i.Table,{dataSource:e,rowKey:e=>`${e.tapName}_${e.hook}`,columns:[{title:"Plugin Tap Name",render:(e,t)=>t.tapName},{title:"Hook",render:(e,t)=>t.hook},{title:"calls",render:(e,t)=>(0,n.jsx)(i.Tooltip,{title:`"${t.hook}" has been called ${t.data.length} times by "${t.tapName}"`,children:t.data.length}),sorter:(e,t)=>e.data.length-t.data.length},{title:"duration(total)",render:(e,t)=>(0,o.formatCosts)((0,s.sumBy)(t.data,e=>e.costs)),sorter:(e,t)=>(0,s.sumBy)(e.data,e=>e.costs)-(0,s.sumBy)(t.data,e=>e.costs),defaultSortOrder:"descend"}]})},690647:function(e,t,r){"use strict";r.r(t),r.d(t,{ResolverAnalysis:function(){return j}});var n=r("397458"),i=r("652983"),s=r.n(i),o=r("673148"),a=r("311618"),l=r("113090"),d=r("146641"),c=r("678741"),u=r("895925"),p=r("277422"),h=r("635972"),f=r("233448"),g=r("446591"),m=r("143622");let x=({filepath:e,before:t,after:r,resolvers:o})=>{let[c,u]=(0,i.useState)(!1);return(0,n.jsxs)(s().Fragment,{children:[(0,n.jsx)(a.Col,{flex:1,children:(0,n.jsx)(a.Card,{title:"Resolve Diff Viewer",children:(0,n.jsx)(g.DiffViewer,{filepath:e,before:t,after:r,editorProps:{height:735}})})}),(0,n.jsx)(a.Col,{span:c?2:7,children:(0,n.jsx)(a.Card,{title:c?"...":"Resolve Details",extra:(0,n.jsx)(a.Button,{onClick:()=>u(!c),size:"small",icon:c?(0,n.jsx)(l.MenuFoldOutlined,{}):(0,n.jsx)(l.MenuUnfoldOutlined,{})}),style:c?{width:80}:void 0,children:c?null:(0,n.jsx)(a.Table,{style:{width:"100%",height:735,overflowY:"scroll",wordBreak:"break-all"},size:"small",pagination:!1,bordered:!0,rowKey:e=>e.request,columns:[{title:"Source Code",width:200,render:(e,t)=>(0,n.jsx)(a.Typography.Text,{copyable:!0,children:(0,n.jsx)(a.Typography.Text,{code:!0,strong:!0,children:t.request})})},{title:"Duration",width:80,render:(e,t)=>(0,n.jsx)(a.Typography.Text,{strong:!0,children:(0,p.formatCosts)(t.costs)}),sorter:(e,t)=>e.costs-t.costs,sortDirections:["descend","ascend"]},{title:"Resolve Result",render:(e,t)=>d.Resolver.isResolveSuccessData(t)?(0,n.jsx)(a.Typography.Text,{copyable:!0,children:t.result}):(0,n.jsx)(l.CloseCircleOutlined,{style:{color:"#f50"}})}],dataSource:o})})})]})},y=e=>{let{resolver:t,cwd:r}=e,[s,l]=(0,i.useState)(""),d="/node_modules/",f=(0,i.useMemo)(()=>(0,o.map)(t,e=>e.issuerPath).filter(Boolean),[t]),g=(0,i.useMemo)(()=>f.filter(t=>!e.filename||t.indexOf(e.filename)>-1),[e.filename,f]),y=g.length&&g.every(e=>e.indexOf(d)>-1),j=(0,i.useMemo)(()=>(0,p.createFileStructures)({files:g.length?g:f,cwd:r,fileTitle:(e,t)=>(0,n.jsx)("div",{onClick:()=>l(e),children:t})}),[e.filename]);return(0,n.jsxs)(a.Row,{justify:"start",align:"top",wrap:!1,gutter:u.Size.BasePadding,children:[(0,n.jsx)(a.Col,{span:7,children:(0,n.jsx)(a.Card,{title:"Files",children:(0,n.jsx)(h.FileTree,{style:{width:"100%",height:735,overflow:"scroll"},treeData:j,defaultExpandedKeys:(0,p.mapFileKey)(j,y?1:4,y?void 0:e=>{let t=(0,o.get)(e,"__RESOURCEPATH__").indexOf(d)>-1;return!!(g.length&&g.every(e=>e.indexOf(d)>-1))||!t})},`tree_${e.filename}`)})}),s&&(0,n.jsx)(m.ServerAPIProvider,{api:c.SDK.ServerAPI.API.GetResolverFileDetails,body:{filepath:s},children:e=>(0,n.jsx)(x,{...e})})]})},j=(0,m.withServerAPI)({api:c.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({project:e})=>{let{root:t}=e,[r,s]=(0,i.useState)("");return(0,n.jsxs)("div",{style:{width:"100%"},children:[(0,n.jsx)(a.Space,{style:{marginTop:u.Size.BasePadding,marginBottom:u.Size.BasePadding},children:(0,n.jsx)(f.KeywordInput,{icon:(0,n.jsx)(l.FileSearchOutlined,{}),label:"Filename",placeholder:"search filename by keyword",onChange:e=>s(e)})}),(0,n.jsx)(m.ServerAPIProvider,{api:c.SDK.ServerAPI.API.GetResolverFileTree,children:e=>(0,n.jsx)(y,{filename:r,resolver:e,cwd:t})})]})}})},342068:function(e,t,r){"use strict";r.r(t),r.d(t,{LoaderCommonSelect:function(){return c}});var n=r("397458"),i=r("652983"),s=r("311618"),o=r("113090"),a=r("233448"),l=r("895925");let d=({style:e,onChange:t,loaderNames:r})=>{let[a,l]=(0,i.useState)([]);return(0,n.jsxs)(s.Input.Group,{compact:!0,style:e,children:[(0,n.jsxs)(s.Button,{style:{width:120},children:[(0,n.jsx)(o.SelectOutlined,{}),(0,n.jsx)(s.Typography.Text,{children:"Loaders"})]}),(0,n.jsx)(s.Select,{mode:"multiple",allowClear:!0,defaultValue:a,style:{width:350},dropdownMatchSelectWidth:!0,placeholder:"select loaders",onChange:e=>{l(e),t(e)},children:r.map(e=>(0,n.jsx)(s.Select.Option,{label:e,value:e,children:e},e))})]})},c=({onChange:e,loaderNames:t})=>{let[r,c]=(0,i.useState)([]),[u,p]=(0,i.useState)("");return(0,i.useEffect)(()=>{e({loaders:r,filename:u})},[r,u]),(0,n.jsxs)(s.Space,{style:{marginBottom:l.Size.BasePadding},children:[(0,n.jsx)(d,{loaderNames:t,style:{marginRight:l.Size.BasePadding-8},onChange:e=>{c(e)}}),(0,n.jsx)(a.KeywordInput,{icon:(0,n.jsx)(o.FileSearchOutlined,{}),label:"Filename",placeholder:"search filename by keyword",onChange:e=>{p(e)}})]})}},629802:function(e,t,r){"use strict";r.r(t),r.d(t,{FailedStatus:function(){return d}});var n=r("397458"),i=r("311618"),s=r("652983"),o=r.n(s);let a="Load data failed, please try again",l="retry",d=o().memo(({title:e=a,buttonText:t=l,retry:r})=>(0,n.jsx)(i.Empty,{description:(0,n.jsxs)(i.Space,{direction:"vertical",children:[(0,n.jsx)(i.Typography.Text,{children:e}),(0,n.jsx)(i.Button,{type:"primary",onClick:()=>{r()},children:t})]})}))},989639:function(e,t,r){"use strict";r.r(t);var n=r("629802");r.es(n,t)},150010:function(e,t,r){"use strict";r.r(t),r.d(t,{DuplicatePackageDrawerWithServer:function(){return c}});var n=r("397458"),i=r("311618");r("678741");var s=r("113090");r("146641");var o=r("895925"),a=r("457448"),l=r("57031");r("143622");let d=({duplicatePackages:e=[],cwd:t,children:r,...d})=>(0,n.jsx)(a.TextDrawer,{...d,buttonStyle:{fontSize:"inherit",...d.buttonStyle},buttonProps:{type:"text",...d.buttonProps},text:(0,n.jsx)(i.Tooltip,{title:"Click to show the details of duplicate packages",children:(0,n.jsxs)(i.Space,{style:{fontSize:"inherit"},children:[(0,n.jsx)(i.Typography.Text,{strong:!0,style:{fontSize:"inherit",color:"inherit",...d.textStyle},children:e.length}),(0,n.jsx)(s.ExceptionOutlined,{})]})}),drawerProps:{title:"Duplicate Packages Viewer",...d.drawerProps},children:(0,n.jsx)(i.Row,{gutter:[o.Size.BasePadding,o.Size.BasePadding],children:e.map((e,s)=>(0,n.jsx)(i.Col,{span:24,children:(0,n.jsx)(l.PackageRelationAlert,{data:e,cwd:t,getPackageRelationContentComponent:r})},s))})}),c=e=>(0,n.jsx)(d,{...e,children:t=>(0,n.jsx)(l.PackageRelationReasonsWithServer,{body:{id:t.data.id,target:t.package.target},cwd:e.cwd})})},457448:function(e,t,r){"use strict";r.r(t),r.d(t,{TextDrawer:function(){return d}});var n=r("397458"),i=r("311618"),s=r("652983"),o=r.n(s),a=r("895925"),l=r("150010");r.es(l,t);let d=e=>{let[t,r]=(0,s.useState)(!1);return(0,n.jsxs)(o().Fragment,{children:[e.button?(0,n.jsx)("div",{onClick:()=>r(!t),children:e.button}):(0,n.jsx)(i.Button,{type:"link",...e.buttonProps,onClick:()=>r(!t),style:{padding:0,...e.buttonStyle},children:e.text}),(0,n.jsx)(i.Drawer,{maskClosable:!0,width:a.drawerWidth,zIndex:999,...e.drawerProps,open:t,onClose:()=>r(!1),destroyOnClose:!0,children:e.children})]})}},723675:function(e,t,r){"use strict";r.r(t),r.d(t,{Title:function(){return o}});var n=r("397458"),i=r("311618"),s=r("673148");let o=({upperFisrt:e=!0,fontSize:t=16,text:r,hash:o})=>{let a="string"==typeof r&&e?(0,s.upperFirst)(r):r;return(0,n.jsx)(i.Typography.Text,{style:{fontSize:t},strong:!0,children:o?(0,n.jsx)("a",{href:o,id:o.replace(/^#/,""),style:{color:"inherit"},children:a}):a})}},131646:function(e,t,r){"use strict";r.r(t);var n=r("397946");r.es(n,t);var i=r("314496");r.es(i,t);var s=r("294386");r.es(s,t);var o=r("321807");r.es(o,t);var a=r("446591");r.es(a,t);var l=r("942579");r.es(l,t);var d=r("923312");r.es(d,t);var c=r("143622");r.es(c,t);var u=r("233448");r.es(u,t);var p=r("457448");r.es(p,t);var h=r("291770");r.es(h,t),r("467451")},613872:function(e,t,r){"use strict";r.r(t),r.d(t,{ECMAVersionDetectTag:function(){return c}});var n=r("397458"),i=r("652983"),s=r("294386"),o=r("279381"),a=r("947993");let l=()=>new Worker(new URL(r.p+r.u("811"),r.b)),d={[o.ECMAVersion.ES5]:s.BadgeColorMap[s.BadgeType.Success],[o.ECMAVersion.ES6]:s.BadgeColorMap[s.BadgeType.Error],[o.ECMAVersion.ES7P]:s.BadgeColorMap[s.BadgeType.Error]},c=({code:e})=>{if(!e)return null;let{version:t}=function(e){let{code:t}=e,[r,n]=(0,i.useState)();return(0,i.useEffect)(()=>{if(!t)return;let{abort:e}=a.master.detectWorker(l).emit(t,e=>{n(e)});return()=>{e()}},[t]),{version:r}}({code:e});return t?(0,n.jsx)("div",{style:{display:"inline-block",height:19.5,padding:"0px 4px",width:40,fontSize:10,lineHeight:"19.5px",textAlign:"center",color:"#fff",background:d[t]||s.BadgeColorMap[s.BadgeType.Default],borderRadius:4},children:t}):null}},501438:function(e,t,r){"use strict";r.r(t),r.d(t,{JSIsEqualTag:function(){return d}});var n=r("397458"),i=r("652983"),s=r("311618"),o=r("947993"),a=r("277422");let l=()=>new Worker(new URL(r.p+r.u("432"),r.b)),d=({input:e,output:t})=>{if(!e||!t)return null;let{isEqual:r}=function(e){let{input:t,output:r}=e,[n,s]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!t||!r)return;let{abort:e}=o.master.detectWorker(l).emit({input:t,output:r},e=>{s(e)});return()=>{e()}},[t,r]),{isEqual:n}}({input:e,output:t}),{t:d}=(0,a.useI18n)();return r?(0,n.jsx)(s.Tag,{color:"warning",children:d("the file content not changed after transpiled by this loader")}):null}},667351:function(e,t,r){"use strict";r.r(t),r.d(t,{ConfigContext:function(){return a},defaultConfig:function(){return o}});var n=r("652983"),i=r("341451"),s=r("895925");let o={locale:(0,i.getLocaleFromStorage)(),theme:(0,i.getThemeFromStorage)(),pageState:s.PageState.Pending,viewMode:(0,i.getViewModeFromStorage)(),json:{},setTheme(){},setManifest(){},setPageState(e){},setViewMode(){}},a=(0,n.createContext)({...o})},895925:function(e,t,r){"use strict";r.r(t),r.d(t,{APILoaderMode4Dev:function(){return m},Color:function(){return y},ComponentState:function(){return h},Language:function(){return g},MAIN_BG:function(){return v},PageState:function(){return p},ROOT_BG_COLOR:function(){return M},Size:function(){return x},TAG_PALLETE:function(){return S},Theme:function(){return u},ViewMode:function(){return f},drawerWidth:function(){return j}});var n,i,s,o,a,l,d,c,u=((n=u||{}).Light="light",n.Dark="dark",n);var p=((i=p||{})[i.Success=0]="Success",i[i.Pending=1]="Pending",i[i.Fail=2]="Fail",i);var h=((s=h||{})[s.Success=0]="Success",s[s.Pending=1]="Pending",s[s.Updating=2]="Updating",s[s.Fail=3]="Fail",s);var f=((o=f||{}).List="list",o.Group="group",o);var g=((a=g||{}).Cn="cn",a.En="en",a);var m=((l=m||{}).Local="local",l.Remote="remote",l.Default="default",l);var x=((d=x||{})[d.BasePadding=24]="BasePadding",d[d.BaseBorderRadius=8]="BaseBorderRadius",d[d.NavBarHeight=54]="NavBarHeight",d);var y=((c=y||{}).Red="#e17055",c.Green="#52c41a",c.Yellow="#faad14",c.Blue="#1677ff",c);let j="undefined"==typeof window?0:.85*window.innerWidth>=1100?.85*window.innerWidth:1100,S={COLOR_A:"#90DCE9",COLOR_B:"green",COLOR_C:"#4EAAB9",COLOR_D:"#B7E9F4",COLOR_E:"#2E7CBE",DARK_BLUE:"#1554ad"},v="",M="rgb(105, 177, 255)"},318005:function(e,t,r){"use strict";r.r(t),r.d(t,{Constants:function(){return s}});var n=r("131646");r.es(n,t);var i=r("277422");r.es(i,t);var s=r("895925")},689256:function(e,t,r){"use strict";r.r(t),r.d(t,{AssetDetail:function(){return w}});var n=r("397458"),i=r("113090"),s=r("112326"),o=r("678741"),a=r("311618"),l=r("673148"),d=r("377410"),c=r("652983"),u=r("143622"),p=r("418602"),h=r("294386"),f=r("635972"),g=r("233448"),m=r("467522"),x=r("457448"),y=r("895925"),j=r("277422"),S=r("753394");let v=[],M={source:"source code",transformed:"Transformed Code (After compile)",parsedSource:"Bundled Code (After bundle and tree-shaking)"},C={margin:"none",marginInlineEnd:0},T=({data:e})=>{let[t,r]=(0,c.useState)("source"),{t:d}=(0,j.useI18n)(),p={source:"Source Code",transformed:`Transformed Code(${d("After Compile")})`,parsedSource:`Bundled Code(${d("After Bundled")})`};if(!e)return null;let{path:h}=e;return(0,n.jsx)(x.TextDrawer,{text:"",buttonProps:{size:"small",icon:(0,n.jsx)(i.CodepenCircleOutlined,{}),type:"default"},buttonStyle:{padding:"0 4px"},drawerProps:{destroyOnClose:!0,title:`Code of "${h}"`},children:(0,n.jsx)(u.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetModuleCodeByModuleId,body:{moduleId:e.id},children:e=>(0,n.jsx)(n.Fragment,{children:e.source||e.parsedSource||e.transformed?(0,n.jsx)(a.Card,{className:"code-size-card",style:{width:"100%"},tabList:Object.keys((0,l.omitBy)(e,e=>!e)).map(e=>({tab:e})).map(e=>({...e,tab:p[e.tab],key:e.tab})),onTabChange:e=>r(e),tabBarExtraContent:(0,n.jsx)(a.Popover,{placement:"bottom",title:(0,n.jsx)(a.Typography.Title,{level:5,children:"Explain"}),content:(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",marginBottom:30},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(a.Typography.Text,{strong:!0,children:"Source: "}),(0,n.jsx)(a.Typography.Text,{children:M.source})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(a.Typography.Text,{strong:!0,children:"Transformed: "}),(0,n.jsx)(a.Typography.Text,{children:M.transformed})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(a.Typography.Text,{strong:!0,children:"Bundled Source: "}),(0,n.jsx)(a.Typography.Text,{children:M.parsedSource})]}),(0,n.jsx)("br",{}),(0,n.jsx)(a.Typography.Text,{strong:!0,children:"More"}),(0,n.jsx)(a.Typography.Text,{children:d("CodeModeExplain")})]})}),trigger:"hover",children:(0,n.jsx)("a",{href:"#",children:"Explain"})}),children:(0,n.jsx)(s.default,{theme:"vs-dark",language:(0,j.getOriginalLanguage)(h),height:window.innerHeight/1.5,value:e[t],options:{readOnly:!0,domReadOnly:!0,fontSize:14,wordWrap:"bounded",minimap:{enabled:!1}}})}):(0,n.jsx)(a.Empty,{description:"No Code. Rspack builder not support code yet. And if you upload the stats.json to analysis, it's also no code to show."})})})})},b=({id:e,show:t,setShow:r,cwd:i})=>e?(0,n.jsx)(a.Drawer,{open:t,maskClosable:!0,width:y.drawerWidth,onClose:()=>r(!1),children:(0,n.jsx)(u.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetAllModuleGraph,body:{},children:t=>(0,n.jsx)(p.ModuleAnalyzeComponent,{cwd:i,moduleId:e,modules:t})})}):null,D="__RESOURCEPATH__",I=({modules:e,chunks:t,filteredModules:r})=>{let{sourceSize:s,parsedSize:o,filteredParsedSize:d,filteredSourceSize:u}=(0,c.useMemo)(()=>({sourceSize:(0,l.sumBy)(e,e=>e.size.sourceSize),parsedSize:(0,l.sumBy)(e,e=>e.size.parsedSize),filteredSourceSize:(0,l.sumBy)(r,e=>e.size.sourceSize),filteredParsedSize:(0,l.sumBy)(r,e=>e.size.parsedSize)}),[e,r]);return(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(a.Tooltip,{title:`total modules count is ${e.length}, the filtered modules count is ${r.length}`,children:(0,n.jsxs)(a.Space,{children:[(0,n.jsxs)(a.Typography.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules: ",r.length," / ",e.length]}),(0,n.jsx)(i.InfoCircleOutlined,{})]})}),(0,n.jsx)(a.Divider,{type:"vertical"}),(0,n.jsx)(a.Tooltip,{title:(0,n.jsxs)(a.Space,{direction:"vertical",children:[(0,n.jsxs)(a.Typography.Text,{style:{color:"inherit"},children:["Total modules bundled size: ",(0,j.formatSize)(o)]}),(0,n.jsxs)(a.Typography.Text,{style:{color:"inherit"},children:["Total modules source size: ",(0,j.formatSize)(s)]}),(0,n.jsxs)(a.Typography.Text,{style:{color:"inherit"},children:["Filtered modules bundled size: ",(0,j.formatSize)(d)]}),(0,n.jsxs)(a.Typography.Text,{style:{color:"inherit"},children:["Filtered modules source size: ",(0,j.formatSize)(u)]})]}),children:(0,n.jsxs)(a.Space,{children:[(0,n.jsxs)(a.Typography.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules Size:"," ",d===o?(0,j.formatSize)(o):`${(0,j.formatSize)(d)} / ${(0,j.formatSize)(o)}`]}),(0,n.jsx)(i.InfoCircleOutlined,{})]})}),(0,n.jsx)(a.Divider,{type:"vertical"}),(0,n.jsx)(a.Tooltip,{title:(0,n.jsxs)(a.Space,{direction:"vertical",children:[(0,n.jsxs)(a.Typography.Text,{style:{color:"inherit"},children:["this asset includes ",t.length," chunks: "]}),t.map(e=>(0,n.jsx)(h.Badge,{label:"chunk",value:e.name},e.name))]}),children:(0,n.jsxs)(a.Space,{children:[(0,n.jsxs)(a.Typography.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Chunks: ",t.length]}),(0,n.jsx)(i.InfoCircleOutlined,{})]})})]})},w=({asset:e,chunks:t,modules:r,moduleSizeLimit:s,height:u,root:p})=>{let[h,x]=(0,c.useState)(""),[M,w]=(0,c.useState)(!1),[A,P]=(0,c.useState)([]),[E,k]=(0,c.useState)(!1),z=(0,c.useMemo)(()=>{let e=r.slice();if(h){let t=RegExp(h,"i");e=e.filter(e=>t.test(e.path))}return s&&(e=e.filter(e=>e.size.parsedSize>=s)),e},[r,h,s]),O=(0,c.useMemo)(()=>(0,j.createFileStructures)({files:z.map(e=>e.path).filter(Boolean),inlinedResourcePathKey:D,fileTitle(e,t){let s=z.find(t=>t.path===e);if(!s)return t;let{parsedSize:l=0,sourceSize:c=0}=s.size,u=s.kind===o.SDK.ModuleKind.Concatenation,p=!u&&0===l&&r.filter(e=>e!==s&&e.modules&&e.modules.indexOf(s.id)>-1);return(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(m.Keyword,{ellipsis:!0,style:{maxWidth:500},text:t,keyword:h}),0!==l?(0,n.jsx)(a.Tooltip,{title:(0,n.jsxs)(a.Space,{direction:"vertical",children:[(0,n.jsx)(a.Tag,{color:"orange",children:"Bundled Size:"+(0,j.formatSize)(l)}),(0,n.jsx)(a.Tag,{color:"volcano",children:"Source Size:"+(0,j.formatSize)(c)})]}),color:"white",children:(0,n.jsx)(a.Tag,{color:"purple",style:C,children:"Bundled: "+(0,j.formatSize)(l)})}):0!==c?(0,n.jsx)(a.Tag,{color:"geekblue",children:"Source Size:"+(0,j.formatSize)(c)}):null,u?(0,n.jsx)(a.Tooltip,{title:(0,n.jsx)(a.Space,{children:(0,n.jsxs)(a.Typography.Text,{style:{color:"inherit"},children:["this is a concatenated module, it contains ",s.modules?.length," modules"]})}),children:(0,n.jsx)(a.Tag,{color:"green",style:C,children:"concatenated"})}):null,p&&p.length?(0,n.jsx)(a.Tooltip,{title:(0,n.jsxs)(a.Space,{direction:"vertical",children:[(0,n.jsx)(a.Typography.Text,{style:{color:"inherit"},children:"this is a concatenated module, it is be contained in these modules below:"}),p.map(({id:e,path:t})=>{if((0,j.isJsDataUrl)(t))return(0,n.jsx)(a.Typography.Paragraph,{ellipsis:{rows:4},style:{color:"inherit",maxWidth:"100%"},code:!0,children:t},e);let r=(0,d.relative)((0,d.dirname)(s.path),t);return r.startsWith("javascript;charset=utf-8;base64,")?(0,n.jsx)(a.Typography.Text,{style:{color:"inherit",maxWidth:"100%"},code:!0,children:"."===r[0]?r:`./${r}`},e):(0,n.jsx)(a.Typography.Text,{style:{color:"inherit"},code:!0,children:"."===r[0]?r:`./${r}`},e)})]}),children:(0,n.jsx)(a.Tag,{color:"green",children:"concatenated"})}):null,(0,n.jsx)(a.Button,{size:"small",icon:(0,n.jsx)(i.DeploymentUnitOutlined,{}),onClick:()=>{P([s.id]),k(!0)}}),(0,n.jsx)(T,{data:s})]})},dirTitle(e,t){let i=function e(t){let r=[];return t.children&&t.children.forEach(t=>{t.isLeaf?r.push(t[D]):e(t)}),r}(e);if(i.length){let e=i.map(e=>r.find(t=>t.path===e)),s=(0,l.sumBy)(e,e=>e.size?.parsedSize||0);return(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(a.Typography.Text,{children:t}),s>0?(0,n.jsx)(a.Tag,{style:C,color:"orange",children:"Bundled:"+(0,j.formatSize)(s)}):null]})}return t}}),[z]);return(0,c.useEffect)(()=>{x(""),w(!1)},[e]),(0,c.useEffect)(()=>{w(!1)},[h]),(0,n.jsx)(S.ModuleGraphListContext.Provider,{value:{moduleJumpList:A,setModuleJumpList:P},children:(0,n.jsxs)(a.Card,{title:`Modules of "${e.path}"`,bodyStyle:{overflow:"scroll",height:u},size:"small",children:[r.length?(0,n.jsxs)(a.Row,{children:[(0,n.jsx)(a.Col,{span:24,children:(0,n.jsx)(I,{modules:r,chunks:t,filteredModules:z})}),(0,n.jsx)(a.Col,{span:24,children:(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(g.KeywordInput,{placeholder:"search module by keyword",onChange:e=>x(e)},e.path),(0,n.jsx)(a.Button,{onClick:()=>w(!0),size:"small",icon:(0,n.jsx)(i.ColumnHeightOutlined,{}),children:"expand all"})]})}),(0,n.jsx)(a.Col,{span:24,style:{marginTop:y.Size.BasePadding},children:z.length?(0,n.jsx)(f.FileTree,{onExpand:e=>{v=e},treeData:O,autoExpandParent:!0,defaultExpandParent:!0,defaultExpandedKeys:v?.length?v:1===O.length?[O[0].key]:[],defaultExpandAll:M||z.length<=20},`tree_${h}_${M}_${e.path}`):(0,n.jsx)(a.Empty,{description:(0,n.jsx)(a.Typography.Text,{strong:!0,children:`"${h}" can't match any modules`})})})]}):(0,n.jsx)(a.Empty,{description:(0,n.jsx)(a.Typography.Text,{strong:!0,children:`"${e.path}" doesn't have any modules`})}),(0,n.jsx)(b,{id:A?.length?A[A.length-1]:"",show:E,setShow:k,cwd:p})]})})}},916581:function(e,t,r){"use strict";r.r(t),r.d(t,{BundleCards:function(){return f}});var n=r("397458"),i=r("652983"),s=r("311618"),o=r("277422"),a=r("895925"),l=r("850818"),d=r("457448"),c=r("187457");let{useToken:u}=s.theme,p=({showProgress:e=!1,data:t,total:r,tagBgColor:i})=>{let{token:s}=u(),o=i||s.colorPrimaryBorderHover;return(0,n.jsx)(c.SizeCard,{files:t.files,total:r,showProgress:e,tagBgColor:o})},h=({titles:e,datas:t,bgColor:r})=>{let[o,a]=(0,i.useState)(0);return(0,n.jsx)(l.StatisticCard,{title:e.length>1?(0,n.jsx)(s.Segmented,{defaultValue:e[o],options:e,onChange:t=>{a(e.indexOf(t))},size:"small",style:{transition:"transform 0.3s ease"},value:e[o]||e[0]}):e[o],value:t.map((e,t)=>(0,i.createElement)(p,{...e,key:t,tagBgColor:r?.tagBgColor}))[o],boxProps:{style:{background:r?.bgColor}}})},f=({cwd:e,errors:t,summary:r})=>{let i=(0,o.useWindowWidth)(),c=(0,o.useDuplicatePackagesByErrors)(t),u=[(0,n.jsx)(h,{titles:["Total Files"],datas:[{data:r.all.total,total:r.all.total.size,showProgress:!0}]}),(0,n.jsx)(h,{titles:["Total JS","Initial JS"],datas:[{data:r.js.total,total:r.all.total.size,showProgress:!0},{data:r.js.initial,total:r.all.total.size,showProgress:!0}]}),(0,n.jsx)(h,{titles:["Total CSS","Initial CSS"],datas:[{data:r.css.total,total:r.all.total.size,showProgress:!0},{data:r.css.initial,total:r.all.total.size,showProgress:!0}]}),(0,n.jsx)(h,{titles:["Images","Fonts","Media"],datas:[{data:r.imgs.total,total:r.all.total.size,showProgress:!0},{data:r.fonts.total,total:r.all.total.size,showProgress:!0},{data:r.media.total,total:r.all.total.size,showProgress:!0}]}),(0,n.jsx)(h,{titles:["HTML Files"],datas:[{data:r.html.total,total:r.all.total.size,showProgress:!0}]}),(0,n.jsx)(l.StatisticCard,{title:"Duplicate Packages",value:(0,n.jsx)(d.DuplicatePackageDrawerWithServer,{buttonStyle:{height:100},duplicatePackages:c,cwd:e})})];return(0,n.jsx)(s.Row,{gutter:i>1200&&i<1400?[2*a.Size.BasePadding,a.Size.BasePadding]:[a.Size.BasePadding,a.Size.BasePadding],wrap:!0,style:{marginBottom:a.Size.BasePadding},children:u.map((e,t)=>(0,n.jsx)(s.Col,{span:i>1500?4:8,children:e},t))})}},262585:function(e,t,r){"use strict";r.r(t),r.d(t,{WebpackModulesOverall:function(){return C}});var n=r("397458"),i=r("113090"),s=r("678741"),o=r("311618"),a=r("673148"),l=r("652983"),d=r.n(l),c=r("143622"),u=r("294386"),p=r("635972"),h=r("233448"),f=r("467522"),g=r("723675"),m=r("895925"),x=r("277422"),y=r("916581"),j=r("446591"),S=r("689256");r("238330");let{Option:v}=o.Select,M=({errors:e,cwd:t,summary:r,entryPoints:M})=>{let[C,T]=(0,l.useState)([]),[b,D]=(0,l.useState)(0),[I,w]=(0,l.useState)(""),[A,P]=(0,l.useState)(0),[E,k]=(0,l.useState)(!1),[z,O]=(0,l.useState)(""),[R,L]=(0,l.useState)(""),[B,N]=(0,l.useState)(null),[_,F]=(0,l.useState)(!1),[G,W]=(0,l.useState)("tree"),{t:$}=(0,x.useI18n)(),K=r.all.total.files,V=(0,l.useCallback)(e=>t=>{"module"===e?O(t):"chunk"===e&&L(t)},[]),U=e=>(0,n.jsxs)(o.Select,{defaultValue:"kb",onChange:V(e),children:[(0,n.jsx)(v,{value:"kb",children:"KB"}),(0,n.jsx)(v,{value:"mb",children:"MB"})]}),H=(0,l.useCallback)((0,a.debounce)(e=>{D("mb"===z?1048576*e:1024*e)},300),[]),Y=(0,l.useCallback)((0,a.debounce)(e=>{P("mb"===R?1048576*e:1024*e)},300),[]),Q=(0,l.useMemo)(()=>{let e=K.slice();return I&&(e=e.filter(e=>e.path.indexOf(I)>-1)),A>0&&(e=e.filter(e=>e.size>=A)),C.length&&(e=e.filter(e=>!!C.some(t=>(0,a.includes)(t.assets,e.path))||!1)),e.sort((e,t)=>{let r=e.path.indexOf("/")>-1?1:0;return(t.path.indexOf("/")>-1?1:0)-r})},[K,C,I,A]),Z=(0,l.useMemo)(()=>(0,x.createFileStructures)({files:Q.map(e=>e.path).filter(Boolean),fileTitle(e,t){let{size:r,initial:i,path:s,content:a}=Q.find(t=>t.path===e);return(0,n.jsxs)(o.Space,{onClick:()=>{N(s)},children:[(0,n.jsx)(f.Keyword,{text:t,keyword:I}),(0,n.jsx)(o.Tag,{color:"success",style:{margin:0},children:(0,x.formatSize)(r)}),i?(0,n.jsx)(o.Tag,{color:"cyan",style:{margin:0},children:"initial"}):null,(0,n.jsx)(j.CodeViewerWithDrawer,{path:s,content:a,editorConfig:{readOnly:!1,domReadOnly:!1}})]})}}),[Q]);return(0,n.jsxs)(d().Fragment,{children:[(0,n.jsx)(y.BundleCards,{cwd:t,errors:e,summary:r}),(0,n.jsxs)(o.Radio.Group,{value:G,onChange:e=>W(e.target.value),style:{marginBottom:m.Size.BasePadding},buttonStyle:"solid",optionType:"button",children:[(0,n.jsx)(o.Radio.Button,{value:"tree",children:"Tree Graph"}),(0,n.jsx)(o.Radio.Button,{value:"tile",children:"Bundle Analyzer Graph"})]}),(0,n.jsx)(o.Card,{hidden:"tree"===G,title:(0,n.jsx)(o.Space,{children:(0,n.jsx)(g.Title,{text:"From: Webpack Bundle Analyzer"})}),children:(0,n.jsx)(c.ServerAPIProvider,{api:s.SDK.ServerAPI.API.GetTileReportHtml,body:{},children:e=>e&&"tile"===G?(0,n.jsx)("iframe",{srcDoc:e,width:"100%",height:800,style:{border:"none"}}):(0,n.jsx)(o.Empty,{})})}),(0,n.jsx)(o.Card,{hidden:"tile"===G,title:(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(g.Title,{text:"Bundle Analysis"}),(0,n.jsx)(o.Tooltip,{color:"white",title:(0,n.jsxs)(o.Space,{direction:"vertical",color:"white",children:[(0,n.jsx)(o.Row,{children:(0,n.jsxs)(o.Col,{children:[(0,n.jsx)(o.Tag,{color:"cyan",style:{margin:0},children:"initial"}),(0,n.jsx)(o.Typography.Text,{children:": Indignify whether the chunk is the initial chunk."})]})}),(0,n.jsx)(o.Row,{children:(0,n.jsxs)(o.Col,{children:[(0,n.jsx)(o.Tag,{color:"green",children:"concatenated"}),(0,n.jsx)(o.Typography.Text,{children:": Indignify whether the module is the concatenated module. "}),(0,n.jsx)("br",{}),(0,n.jsx)(o.Typography.Text,{strong:!0,children:"Concatenated Module:"}),(0,n.jsx)(o.Typography.Text,{children:"A series module is to lift or series multiple modules into a closure when packaging. "})]})}),(0,n.jsx)(o.Row,{children:(0,n.jsxs)(o.Col,{children:[(0,n.jsx)(o.Button,{size:"small",icon:(0,n.jsx)(i.CodepenCircleOutlined,{})}),(0,n.jsx)(o.Typography.Text,{children:": Open the code."})]})}),(0,n.jsx)(o.Row,{children:(0,n.jsxs)(o.Col,{children:[(0,n.jsx)(o.Button,{size:"small",icon:(0,n.jsx)(i.DeploymentUnitOutlined,{})}),(0,n.jsx)(o.Typography.Text,{children:": View the module dependency, that is, module reasons in stats.json."})]})}),(0,n.jsx)(o.Row,{children:(0,n.jsxs)(o.Col,{children:[(0,n.jsx)(o.Tag,{color:"purple",children:"Bundled: 15.77 KB"}),(0,n.jsx)(o.Typography.Text,{strong:!0,children:"Bundled Size"}),(0,n.jsx)(o.Typography.Text,{children:"The size of the code which bundled. That is, after bundle and tree-shaking."})]})}),(0,n.jsx)(o.Row,{children:(0,n.jsxs)(o.Col,{children:[(0,n.jsx)(o.Tag,{color:"orange",children:"Source: 15.77 KB"}),(0,n.jsx)(o.Typography.Text,{strong:!0,children:"Source Size"}),(0,n.jsx)(o.Typography.Text,{children:"The size of the code which before bundle and transform."})]})})]}),style:{marginLeft:3},children:(0,n.jsx)(i.InfoCircleOutlined,{style:{color:"rgba(0,0,0,.45)"}})})]}),extra:_?(0,n.jsx)(o.Button,{onClick:()=>F(!1),children:(0,n.jsxs)(o.Typography.Text,{children:["Expand ",(0,n.jsx)(i.ColumnHeightOutlined,{})]})}):(0,n.jsx)(o.Button,{onClick:()=>F(!0),children:(0,n.jsxs)(o.Typography.Text,{children:["Fold",(0,n.jsx)(i.VerticalAlignMiddleOutlined,{})]})}),children:(0,n.jsxs)(o.Row,{align:"middle",gutter:[m.Size.BasePadding,m.Size.BasePadding],children:[M&&M.length?(0,n.jsx)(o.Col,{children:(0,n.jsx)(o.Select,{mode:"multiple",value:C.map(e=>e.name),style:{minWidth:230,width:"auto",maxWidth:300},placeholder:"filter assets by entry point",onChange:e=>{T(e.map(e=>M.find(t=>t.name===e)).filter(Boolean))},allowClear:!0,onClear:()=>{T([])},children:M.map(e=>(0,n.jsx)(o.Select.Option,{value:e.name,children:(0,n.jsx)(o.Space,{children:(0,n.jsx)(u.Badge,{label:e.name,value:(0,x.formatSize)(e.size),tooltip:e.name})})},e.name))})}):null,(0,n.jsx)(o.Col,{children:(0,n.jsx)(h.KeywordInput,{placeholder:"search asset by keyword",onChange:e=>{w(e),k(!1)}})}),(0,n.jsx)(o.Col,{span:7,children:(0,n.jsx)(o.InputNumber,{min:0,style:{width:"95%"},addonBefore:(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(o.Typography.Text,{style:{fontSize:14,color:"inherit"},children:"Asset Size"}),(0,n.jsx)(o.Tooltip,{title:$("filter the output assets which size is greater than the input value"),style:{marginLeft:3},children:(0,n.jsx)(i.InfoCircleOutlined,{style:{color:"rgba(0,0,0,.45)"}})})]}),onChange:e=>Y(Number(e)),addonAfter:U("chunk")})}),(0,n.jsx)(o.Col,{span:7,children:(0,n.jsx)(o.InputNumber,{min:0,style:{width:"95%"},addonBefore:(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(o.Typography.Text,{style:{fontSize:14,color:"inherit"},children:"Module Size"}),(0,n.jsx)(o.Tooltip,{title:$("filter the modules which size is greater than the input value"),style:{marginLeft:3},children:(0,n.jsx)(i.InfoCircleOutlined,{style:{color:"rgba(0,0,0,.45)"}})})]}),onChange:e=>{H(Number(e))},addonAfter:U("module")})}),(0,n.jsx)(o.Col,{span:24,children:Q.length?(0,n.jsxs)(o.Row,{gutter:m.Size.BasePadding,children:[(0,n.jsx)(o.Col,{span:8,children:(0,n.jsx)(o.Card,{title:(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(o.Typography.Text,{children:$("Output Assets List")}),(0,n.jsx)(o.Divider,{type:"vertical"}),(0,n.jsx)(o.Tooltip,{title:`total assets count is ${K.length}, the filtered assets count is ${Q.length}`,children:(0,n.jsxs)(o.Typography.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:[Q.length," / ",K.length]})}),(0,n.jsx)(o.Divider,{type:"vertical"}),(0,n.jsx)(o.Typography.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:(0,x.formatSize)((0,a.sumBy)(Q,e=>e.size))})]}),size:"small",bodyStyle:{overflow:"scroll",height:_?410:800},extra:(0,n.jsx)(o.Button,{size:"small",icon:(0,n.jsx)(i.ColumnHeightOutlined,{}),onClick:()=>k(!0),children:"expand all"}),children:(0,n.jsx)(p.FileTree,{treeData:Z,autoExpandParent:!0,defaultExpandAll:E||Q.length<=20},`tree_${I}_${E}`)})}),(0,n.jsx)(o.Col,{span:16,children:B?(0,n.jsx)(c.ServerAPIProvider,{api:s.SDK.ServerAPI.API.GetAssetDetails,body:{assetPath:B},children:e=>(0,n.jsx)(S.AssetDetail,{asset:e.asset,chunks:e.chunks,modules:e.modules,height:_?410:800,moduleSizeLimit:b,root:t})}):(0,n.jsx)(o.Card,{bodyStyle:{height:_?450:800},children:(0,n.jsx)(o.Empty,{description:(0,n.jsx)(o.Typography.Text,{strong:!0,children:"Click the file path on the left to show the modules of the asset"})})})})]}):(0,n.jsx)(o.Empty,{})})]})})]})},C=(0,c.withServerAPI)({api:s.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:e=>{let{root:t,errors:r}=e.project;return(0,n.jsx)(c.ServerAPIProvider,{api:s.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!0},children:e=>(0,n.jsx)(c.ServerAPIProvider,{api:s.SDK.ServerAPI.API.GetEntryPoints,children:i=>(0,n.jsx)(M,{cwd:t,errors:r,summary:e,entryPoints:i})})})}})},753394:function(e,t,r){"use strict";r.r(t),r.d(t,{ModuleGraphListContext:function(){return n}});let n=(0,r("652983").createContext)({setModuleJumpList(e){},moduleJumpList:[]})},16342:function(e,t,r){"use strict";r.r(t),r.d(t,{name:function(){return i},route:function(){return s}});var n=r("678741");let i="BundleSize",s=n.Client.RsdoctorClientRoutes.BundleSize},37556:function(e,t,r){"use strict";r.r(t),r.d(t,{Page:function(){return l}});var n=r("397458"),i=r("311618"),s=r("895925"),o=r("262585"),a=r("16342");r.es(a,t);let l=()=>(0,n.jsx)(i.Row,{children:(0,n.jsx)(i.Col,{span:24,style:{marginBottom:s.Size.BasePadding},children:(0,n.jsx)(o.WebpackModulesOverall,{})})})},611682:function(e,t,r){"use strict";r.r(t),r.d(t,{ChunksTable:function(){return d}});var n=r("397458"),i=r("311618"),s=r("673148"),o=r("652983"),a=r("277422");r("933712");let l=[{title:"Chunk Name",dataIndex:"name",key:"name"},{title:"size | \u5927\u5C0F",dataIndex:"size",key:"size"},{title:"assets | \u8D44\u6E90",dataIndex:"assets",key:"assets"},{title:"Entry or Not | \u662F\u5426\u662F\u5165\u53E3",dataIndex:"entry",key:"entry"}],d=({chunks:e})=>{let t=(0,o.useMemo)(()=>{let t=e.map(e=>{if(e)return{key:e.id,name:(0,n.jsx)(i.Tag,{children:e.name}),size:(0,n.jsx)(i.Tag,{children:(0,a.formatSize)(e.parsedSize)}),entry:(0,n.jsx)(i.Tag,{children:e.entry?"\u662F | Yes":"\u5426 | No"}),assets:e.assets.map(e=>(0,n.jsx)("p",{children:(0,n.jsx)(i.Tag,{children:e},e)},e))}});return(0,s.orderBy)((0,s.compact)(t),["size"],["desc"])},[e]);return(0,n.jsx)(n.Fragment,{children:t?.length?(0,n.jsx)(i.Table,{bordered:!0,pagination:!1,dataSource:t,columns:l}):(0,n.jsx)(i.Empty,{})})}},725321:function(e,t,r){"use strict";r.r(t),r.d(t,{FileTree:function(){return h}});var n=r("397458"),i=r("113090"),s=r("678741"),o=r("311618"),a=r("652983"),l=r("373057"),d=r("143622"),c=r("895925"),u=r("753394");r("923273");let p="file-tree-com",h=e=>{let{treeData:t,needJumpto:r=!1,defaultOpened:h=!1,defaultOpenFather:f=0}=e,{required:g,handlers:m}=(0,l.useTreeState)({id:`${p}-tree`,data:t||[],defaultOpened:h,multipleSelect:!1,refreshAsyncNodes:!0}),x=(0,a.useCallback)(({node:e,onToggle:t})=>(f&&e.data.level<f&&e.setOpened(!0),(0,n.jsx)("div",{className:`${p}-titles-box`,children:(0,n.jsx)("div",{className:`${p}-titles`,children:(0,n.jsx)(o.Space,{direction:"vertical",children:(0,n.jsx)("div",{className:`${p}-node-title`,children:(0,n.jsxs)(o.Space,{children:[(0,n.jsxs)("div",{onClick:t,children:[!e.options.opened&&e.data.children?.length?(0,n.jsx)(i.PlusCircleOutlined,{style:{color:"lightblue"}}):(0,n.jsx)(i.MinusCircleOutlined,{style:{color:"lightblue"}}),(0,n.jsxs)(o.Typography.Text,{code:!0,children:[e.data.name,(0,n.jsx)(o.Popover,{content:(0,n.jsx)(n.Fragment,{children:e.data.__RESOURCEPATH__?(0,n.jsx)(o.Typography.Text,{code:!0,children:e.data.__RESOURCEPATH__},`${e.data.name}-popover-path`):(0,n.jsx)(n.Fragment,{})}),title:"INFO",trigger:"hover",children:(0,n.jsx)(i.InfoCircleOutlined,{style:{marginLeft:4}})},`${e.data.name}popover`)]})]}),(0,n.jsxs)(o.Space,{children:[e.data.concatModules?.length?(0,n.jsx)(o.Popover,{content:(0,n.jsx)(d.ServerAPIProvider,{api:s.SDK.ServerAPI.API.GetModulesByModuleIds,body:{moduleIds:e.data.concatModules||[]},children:e=>(0,n.jsx)("div",{children:e.map(({path:e},t)=>(0,n.jsx)("p",{children:e},`${e}-${t}`))})}),title:"Concatenated Module Name",trigger:"hover",children:(0,n.jsx)(o.Tag,{className:`${p}-node-title-tag`,color:c.TAG_PALLETE.DARK_BLUE,children:"Concatenated"},`${e.data.name}-size-tag`)}):e.data.size&&"0 bytes"!==e.data.size?(0,n.jsx)(o.Tag,{className:`${p}-node-title-tag`,color:c.TAG_PALLETE.COLOR_B,children:`Bundled: ${e.data.size}`},`${e.data.name}-size-tag`):(0,n.jsx)(n.Fragment,{}),r&&(0,n.jsx)(u.ModuleGraphListContext.Consumer,{children:({moduleJumpList:t,setModuleJumpList:r})=>(0,n.jsx)(i.RightSquareTwoTone,{onClick:()=>{let n=[...t];n.push(+e.id),r(n)}})})]})]})})})})},e.data.name)),[]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(l.default,{...g,...m,horizontalLineStyles:{stroke:"#c4c4c4",strokeWidth:2,strokeDasharray:"1 1"},verticalLineStyles:{stroke:"#c4c4c4",strokeWidth:2,strokeDasharray:"1 1"},draggable:!1,depthGap:14,gapMode:"padding",disableLines:!1,disableTransitions:!0,disableHorizontalLines:!1,disableVerticalLines:!1,verticalLineTopOffset:0,verticalLineOffset:5,renderNode:x})})}},798771:function(e,t,r){"use strict";r.r(t),r.d(t,{clsNamePrefix:function(){return s}}),r("678741").Client.RsdoctorClientRoutes.ModuleAnalyze;var n,i=((n=i||{}).UrlQueryForModuleAnalyze="curModuleId",n);let s="module-analyze"},335210:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return d}});var n=r("397458"),i=r("311618"),s=r("673148"),o=r("652983"),a=r("277422"),l=r("725321");r("933712");var d=(0,o.memo)(({dependencies:e,cwd:t,module:r})=>{let d=(0,o.useMemo)(()=>{let t=r.dependencies.map(t=>{let r=(0,s.find)(e,e=>e.id===t);if(r)return{__RESOURCEPATH__:r.resolvedRequest||"",id:r.dependency,key:r.resolvedRequest,name:(0,a.getShortPath)(r.resolvedRequest)||"",level:1,kind:r.kind,concatModules:void 0}});return(0,s.compact)(t)},[r]);return(0,n.jsx)(i.Row,{justify:"start",align:"middle",children:(0,n.jsx)(i.Col,{span:24,children:d.length?(0,n.jsx)(l.FileTree,{treeData:d,needJumpto:!0,cwd:t}):(0,n.jsx)(i.Empty,{})})})})},31837:function(e,t,r){"use strict";r.r(t),r.d(t,{ModuleFilesTree:function(){return S}});var n,i=r("397458"),s=r("113090"),o=r("678741"),a=r("311618"),l=r("652983"),d=r("143622"),c=r("723675"),u=r("895925"),p=r("791767"),h=r("611682"),f=r("725321"),g=r("798771"),m=r("335210"),x=r("803022"),y=r("539465");var j=((n=j||{})[n.Dependencies=0]="Dependencies",n[n.Chunks=1]="Chunks",n);let S=e=>{let{curModule:t,modules:r,dependencies:n,cwd:j,selectedChunk:S=""}=e,{t:v}=(0,p.useI18n)(),[M,C]=(0,l.useState)([]),[T,b]=(0,l.useState)(0),[D,I]=(0,l.useState)(!0),{data:w}=(0,y.useCreatFileTreeData)(r,M,t),[A,P]=(0,l.useState)({});return(0,l.useEffect)(()=>{C((0,x.getImporteds)(t,r))},[t,r]),(0,l.useEffect)(()=>{let e={};M.forEach(t=>{let n=[],i=new Map;(0,x.getModuleReasonsTree)(t,r,n,i),e[t.id]=n}),P(e)},[M]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.Row,{children:(0,i.jsx)(a.Popover,{content:(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(a.Badge,{status:"success",text:" "}),(0,i.jsxs)(a.Typography.Text,{code:!0,children:[(0,i.jsx)(s.ExpandOutlined,{})," Expand the node_modules's modules that was omitted... "]})," ",(0,i.jsx)(a.Typography.Text,{children:`: ${v("Expand Omitted")}`})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(a.Badge,{status:"success",text:" "}),(0,i.jsx)(a.Popover,{content:"xxxx",title:"Concatenated Module Name",trigger:"hover",children:(0,i.jsx)(a.Tag,{color:u.TAG_PALLETE.DARK_BLUE,children:"Concatenated"})}),(0,i.jsx)(a.Typography.Text,{children:`: ${v("Concatenated Tag")}`})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(a.Badge,{status:"success",text:" "}),(0,i.jsx)(s.RightSquareTwoTone,{}),(0,i.jsx)(a.Typography.Text,{children:": Jump button, click to jump to the Module dependency analysis page of this module."})]})]}),title:"Usage",children:(0,i.jsx)(a.Button,{type:"primary",icon:(0,i.jsx)(s.InfoCircleOutlined,{}),children:"Usage"})})}),(0,i.jsxs)(a.Row,{gutter:4,style:{marginTop:u.Size.BasePadding},children:[(0,i.jsx)(a.Col,{span:D?18:12,children:(0,i.jsx)(a.Row,{className:`${g.clsNamePrefix}-file-tree`,justify:"center",children:(0,i.jsxs)(a.Col,{span:24,style:{padding:u.Size.BasePadding/2},children:[(0,i.jsx)(c.Title,{text:"Current Module Imported Reasons Tree:"}),M?(0,i.jsx)(f.FileTree,{cwd:j,treeData:S?w.filter(e=>A[e.id].indexOf(S)>=0):w,needCode:!0,needShowAllTree:!0,needJumpto:!0,selectedChunk:S}):(0,i.jsx)(a.Empty,{className:`${g.clsNamePrefix}-empty`})]})})}),(0,i.jsx)(a.Col,{span:D?6:12,children:(0,i.jsxs)("div",{className:`${g.clsNamePrefix}-file-tree`,style:{padding:u.Size.BasePadding/2},children:[D?(0,i.jsx)(a.Popover,{content:"Unfold [Dependencies & Chunks] Box.",children:(0,i.jsx)(s.MenuFoldOutlined,{onClick:()=>I(!D),style:{marginRight:8}})}):(0,i.jsx)(a.Popover,{content:"Fold [Dependencies & Chunks] Box.",children:(0,i.jsx)(s.MenuUnfoldOutlined,{onClick:()=>I(!D),style:{marginRight:8}})}),(0,i.jsx)(a.Radio.Group,{options:[{label:"Dependencies",value:0},{label:"Chunks",value:1}],onChange:e=>b(e.target.value),value:T,optionType:"button",buttonStyle:"solid",size:"middle"}),D?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(i.Fragment,{children:[0===T&&(0,i.jsx)(a.Col,{span:24,style:{marginTop:u.Size.BasePadding/2},children:t?(0,i.jsx)(m.default,{module:t,dependencies:n,cwd:j}):(0,i.jsx)(a.Empty,{className:`${g.clsNamePrefix}-empty`})}),1===T&&(0,i.jsx)(a.Col,{span:18,style:{marginTop:u.Size.BasePadding/2},children:t?(0,i.jsx)(d.ServerAPIProvider,{api:o.SDK.ServerAPI.API.GetChunksByModuleId,body:{moduleId:t.id},children:e=>(0,i.jsx)(h.ChunksTable,{chunks:e})}):(0,i.jsx)(a.Empty,{className:`${g.clsNamePrefix}-empty`})})]})]})})]})]})}},418602:function(e,t,r){"use strict";r.r(t),r.d(t,{ModuleAnalyzeComponent:function(){return h}});var n=r("397458"),i=r("113090"),s=r("678741"),o=r("311618"),a=r("652983"),l=r("143622"),d=r("277422"),c=r("673148"),u=r("753394"),p=r("31837");r("933712");let h=({modules:e,cwd:t,moduleId:r})=>{let[h,f]=(0,a.useState)("");return(0,n.jsx)(l.ServerAPIProvider,{api:s.SDK.ServerAPI.API.GetModuleDetails,body:{moduleId:+r},children:({module:r,dependencies:a})=>(0,n.jsx)(l.ServerAPIProvider,{api:s.SDK.ServerAPI.API.GetAllChunkGraph,body:{},children:s=>(0,n.jsx)(u.ModuleGraphListContext.Consumer,{children:({moduleJumpList:l,setModuleJumpList:u})=>(0,n.jsxs)(o.Card,{title:(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(i.LeftSquareOutlined,{onClick:()=>{u([...l.slice(0,-1)])}}),(0,n.jsx)(o.Typography.Title,{code:!0,level:5,style:{marginBottom:"revert"},children:`Current Module: ${(0,d.getShortPath)(r.path)}`})]}),style:{height:"100%"},children:[(0,n.jsx)(o.Row,{justify:"start",style:{marginBottom:20},children:(0,n.jsx)(o.Col,{children:(0,n.jsx)(o.Select,{allowClear:!0,placeholder:"Select Chunk To Filter Modules Links",showSearch:!0,style:{width:300},options:(0,c.values)(s).map(e=>({label:e.name,value:e.id})),onChange:e=>f(e)})})}),(0,n.jsx)(o.Row,{justify:"start",align:"middle",children:(0,n.jsx)(o.Col,{span:24,children:(0,n.jsx)(p.ModuleFilesTree,{curModule:r,modules:e,dependencies:a,cwd:t,selectedChunk:h})})})]})})})})}},539465:function(e,t,r){"use strict";r.r(t),r.d(t,{useCreatFileTreeData:function(){return a}});var n=r("673148"),i=r("652983"),s=r("277422"),o=r("803022");function a(e,t,r){return(0,i.useMemo)(()=>t&&t?.length?{data:(0,n.compact)(t?.map((t,n)=>({key:`0-${n}`,name:s.getShortPath(t.path),__RESOURCEPATH__:t.path,id:t.id,level:1,chunks:t.chunks,size:s.formatSize(t.size.parsedSize),kind:t.kind,concatModules:t.concatenationModules,fatherPath:s.getShortPath(r.path),dependencies:t.dependencies,getChildren:()=>(function e(t,r,n){let i=(0,o.getImporteds)(t,r);return i?.map((i,o)=>({key:`0-${o}`,name:s.getShortPath(i.path),__RESOURCEPATH__:i.path,id:i.id,level:1,size:s.formatSize(i.size.parsedSize),kind:i.kind,chunks:i.chunks,concatModules:i.concatenationModules,fatherPath:s.getShortPath(n.path),dependencies:i.dependencies,getChildren:()=>e(i,r,t),children:i.imported}))})(t,e,r),children:t.imported})))}:{filterData:[],data:[]},[t,r])}},803022:function(e,t,r){"use strict";r.r(t),r.d(t,{getImporteds:function(){return i},getModuleReasonsTree:function(){return s}});var n=r("673148");let i=(e,t)=>{if(e?.imported?.length){let r=e.imported.map(e=>(0,n.find)(t,t=>t.id===Number(e)));return(0,n.compact)(r)}return[]},s=(e,t,r,n)=>{if(n.has(e.id)){if(n.get(e.id))return}else n.set(e.id,!0);let o=i(e,t);o.length&&o.forEach(e=>{e?.chunks?.forEach(e=>{0>r.indexOf(e)&&r.push(e)}),s(e,t,r,n)})}},115837:function(e,t,r){"use strict";r.r(t),r.d(t,{name:function(){return i},route:function(){return s}});var n=r("678741");let i="ModuleResolve",s=n.Client.RsdoctorClientRoutes.ModuleResolve},690025:function(e,t,r){"use strict";r.r(t),r.d(t,{Page:function(){return l}});var n=r("397458"),i=r("311618"),s=r("690647"),o=r("251264"),a=r("115837");r.es(a,t);let l=()=>(0,n.jsx)("div",{children:(0,n.jsx)(i.Card,{title:"Webpack Resolver Analysis",extra:(0,n.jsx)(o.WebpackConfigurationViewer,{defaultKeys:["resolve","resolveLoader"]}),bodyStyle:{paddingTop:0},children:(0,n.jsx)(s.ResolverAnalysis,{})})})},538613:function(e,t,r){"use strict";r.r(t),r.d(t,{name:function(){return i},route:function(){return s}});var n=r("678741");let i="Overall",s=n.Client.RsdoctorClientRoutes.Overall},411970:function(e,t,r){"use strict";r.r(t),r.d(t,{Page:function(){return c}});var n=r("397458"),i=r("678741"),s=r("314496"),o=r("143622"),a=r("923312"),l=r("245838"),d=r("538613");r.es(d,t);let c=(0,o.withServerAPI)({api:i.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:({project:e})=>{let{summary:t,configs:r,root:i,envinfo:o,errors:d}=e;return(0,n.jsxs)("div",{children:[(0,n.jsxs)(l.ResponsiveGridLayout,{children:[(0,n.jsx)(a.ProjectOverall,{configs:r,cwd:i,envinfo:o,alerts:d}),(0,n.jsx)(a.BundleOverall,{errors:d,cwd:i}),(0,n.jsx)(a.CompileOverall,{summary:t})]}),(0,n.jsx)(s.CompileAlerts,{}),(0,n.jsx)(s.BundleAlerts,{})]})}})},245838:function(e,t,r){"use strict";r.r(t),r.d(t,{ResponsiveGridLayout:function(){return a}});var n=r("397458"),i=r("311618"),s=r("652983"),o=r("895925");let a=({children:e})=>{let{sm:t,xxl:r}=i.Grid.useBreakpoint(),a=(0,s.useMemo)(()=>r?[2*o.Size.BasePadding,o.Size.BasePadding]:[o.Size.BasePadding,o.Size.BasePadding],[t,r]);return(0,n.jsx)(i.Row,{gutter:a,wrap:!0,style:{marginBottom:o.Size.BasePadding},children:e.map((e,t)=>(0,n.jsx)(i.Col,{xs:24,sm:24,md:12,lg:8,children:e},t))})}},604282:function(e,t,r){"use strict";r.r(t),r.d(t,{route:function(){return n}});let n=r("678741").Client.RsdoctorClientRoutes.RuleIndex},700488:function(e,t,r){"use strict";r.r(t),r.d(t,{Page:function(){return h}});var n=r("397458"),i=r("652983"),s=r("678741"),o=r("311618"),a=r("955508"),l=r("673148"),d=r("723675"),c=r("895925"),u=r("277422"),p=r("604282");r.es(p,t);let h=()=>{let e=(0,u.useUrlQuery)()[s.Rule.RsdoctorRuleClientConstant.UrlQueryForErrorCode]||"",[t,r]=(0,i.useState)(s.Rule.RuleErrorMap[e]),p=(0,l.values)(s.Rule.RuleErrorMap);return(0,i.useEffect)(()=>{window.scrollTo({top:0})},[]),(0,n.jsxs)(o.Row,{gutter:c.Size.BasePadding/2,children:[(0,n.jsx)(o.Col,{span:8,children:(0,n.jsx)(o.Card,{title:(0,n.jsx)(d.Title,{text:"list of the error codes."}),bordered:!0,children:(0,n.jsx)(o.Space,{direction:"vertical",children:p.map((e,i)=>(0,n.jsxs)(o.Space,{style:{marginTop:0===i?0:c.Size.BasePadding/2,cursor:"pointer"},onClick:()=>r(e),align:"center",children:[(0,n.jsx)(o.Badge,{status:"default"}),(0,n.jsx)(o.Typography.Text,{code:!0,children:(0,n.jsx)("a",{children:e.code})}),(0,n.jsx)(o.Typography.Text,{style:{color:t&&t.code===e.code?"#1890ff":void 0},children:e.title})]},e.code))})})}),(0,n.jsx)(o.Col,{span:16,children:t?(0,n.jsx)(o.Card,{title:(0,n.jsxs)(o.Row,{justify:"space-between",children:[(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(o.Typography.Text,{code:!0,children:t.code}),(0,n.jsx)(o.Typography.Text,{children:t.title})]}),(0,n.jsx)("div",{children:(0,n.jsx)(o.Tag,{children:t.category})})]}),bodyStyle:{paddingTop:0},bordered:!0,children:(0,n.jsx)(o.Typography.Paragraph,{children:"markdown"===t.type?(0,n.jsx)(a.default,{children:t.description}):(0,n.jsx)(o.Typography.Text,{children:t.description})})}):(0,n.jsx)(o.Card,{title:"This page lists all the error codes emitted by the Rsdoctor.",bordered:!0,children:(0,n.jsx)(o.Typography.Text,{children:"click the error code in left bar to show more details."})})})]})}},443721:function(e,t,r){"use strict";r.r(t),r.d(t,{name:function(){return i},route:function(){return s}});var n=r("678741");let i="TreeShaking",s=n.Client.RsdoctorClientRoutes.TreeShaking},977754:function(e,t,r){"use strict";r.r(t),r.d(t,{CodeEditor:function(){return g}});var n=r("397458"),i=r("652983"),s=r("377410"),o=r.n(s),a=r("311618"),l=r("113090"),d=r("112326"),c=r("367367"),u=r("251742"),p=r("565079"),h=r("277422"),f=r("446591");function g(e){let{module:t,moduleGraph:r,ranges:s,toLine:g,setEditorData:m,source:x}=e,y=(0,i.useRef)(),j=(0,i.useRef)([]),S=(0,i.useRef)([]),v=(0,i.useRef)(),M=(0,i.useRef)(!1),[C,T]=(0,i.useState)("");return((0,i.useEffect)(()=>{let{isPreferSource:e}=t;M.current=!0,T(x.source||e?x.source:x.transformed),setTimeout(()=>{S.current=y.current?.getModel()?.deltaDecorations(S.current,p.getHoverMessageInModule(t,r))??[]},200)},[t,x]),(0,i.useEffect)(()=>{function e(){let e=y.current?.getModel();e&&(j.current=e.deltaDecorations(j.current,s.map(e=>({range:(0,h.getSelectionRange)(e,c.Range),options:{stickiness:1,inlineClassName:"tree-shaking-statement-side-effect",isWholeLine:!1,showIfCollapsed:!0}}))),y.current&&"number"==typeof g&&v.current!==g&&(v.current=g,y.current.revealLine(g,c.editor.ScrollType.Smooth)))}M?setTimeout(e,300):e(),M.current=!1},[s,g]),(0,i.useEffect)(()=>{let e=e=>{let t=(0,u.parseOpenTag)(e.target);if(t){let e=r.getModuleById(t.module);e&&m(e,[t.range],t.range.start.line)}};return document.body.addEventListener("click",e),()=>{document.body.removeEventListener("click",e)}},[]),t)?(0,n.jsx)(a.Card,{title:(0,n.jsx)(a.Tooltip,{title:t.path,children:(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(a.Typography.Text,{children:o().basename(t.path)}),(0,n.jsx)(l.InfoCircleOutlined,{})]})}),className:"tree-shaking-editor",children:(0,n.jsx)(d.default,{theme:"vs-dark",language:(0,h.getOriginalLanguage)(t.path),value:C,loading:(0,n.jsx)(l.LoadingOutlined,{style:{fontSize:30}}),options:f.DefaultEditorConfig,onMount:e=>{y.current=e}})}):(0,n.jsx)("div",{children:"\u8BF7\u9009\u62E9\u8981\u67E5\u770B\u7684\u6A21\u5757"})}},529668:function(e,t,r){"use strict";r.r(t),r.d(t,{TreeShakingPage:function(){return v}});var n=r("397458"),i=r("652983"),s=r("311618"),o=r("673148"),a=r("113090"),l=r("678741"),d=r("377410"),c=r.n(d),u=r("143622"),p=r("895925"),h=r("635972"),f=r("233448"),g=r("565079"),m=r("277422"),x=r("977754"),y=r("265609"),j=r("174915");r("777893");var S=r("443721");r.es(S,t);let v=(0,u.ConnectManifestData)(m.fetchManifest,[["moduleGraph","data"],["root","cwd"]],({data:e,cwd:t})=>{let r=(0,m.useModuleGraphInstanceByModuleGraph)(e);if(0===r.size())return(0,n.jsx)(y.Space,{});let[d,S]=(0,i.useState)(""),[v,M]=(0,i.useState)(1),[C,T]=(0,i.useState)([]),[b,D]=(0,i.useState)("side-effect"),I=(0,i.useMemo)(()=>r.getModules().filter(e=>e.kind===l.SDK.ModuleKind.Normal&&c().basename(e.path).includes(d)),[d]),w=(0,i.useMemo)(()=>I.find(e=>e.isEntry),[]),[A,P]=(0,i.useState)(w||I?.length&&I?.[0]),E=(0,g.useFileStructures)(I,r,d,A,e=>{k(I.find(t=>t.path===e),[])},t),k=(e,t,r)=>{P(e),T(t.slice()),(0,o.isNumber)(r)&&M(r)};return(0,n.jsxs)(s.Card,{title:"Tree Shaking Analysis",bodyStyle:{paddingTop:0},className:"tree-shaking-page",children:[(0,n.jsxs)(s.Row,{justify:"space-between",align:"middle",style:{marginBottom:p.Size.BasePadding,marginTop:p.Size.BasePadding},children:[(0,n.jsx)(f.KeywordInput,{icon:(0,n.jsx)(a.FileSearchOutlined,{}),width:400,label:"FileName",placeholder:"search filename by keyword",style:{width:"auto"},onChange:e=>S(e)}),(0,n.jsxs)(s.Radio.Group,{value:b,onChange:({target:e})=>D(e.value),children:[(0,n.jsx)(s.Radio.Button,{value:"side-effect",children:"SideEffects"}),(0,n.jsx)(s.Radio.Button,{value:"export",children:"Export Variables"})]})]}),(0,n.jsxs)(s.Row,{justify:"space-between",align:"top",wrap:!1,gutter:[p.Size.BasePadding,p.Size.BasePadding],children:[(0,n.jsx)(s.Col,{span:7,children:(0,n.jsx)(s.Card,{title:`Total Files: ${I.length}`,className:"tree-shaking-files-box",children:(0,n.jsx)(h.FileTree,{className:"tree-shaking-files",selectedKeys:A?[A.path]:[],defaultExpandedKeys:(0,g.getTreeFilesDefaultExpandedKeys)(E),treeData:E,expandAction:"click"})})}),(0,n.jsx)(s.Col,{span:9,children:(0,n.jsx)(u.ServerAPIProvider,{api:l.SDK.ServerAPI.API.GetModuleCodeByModuleId,body:{moduleId:A.id},children:e=>(0,n.jsx)(x.CodeEditor,{module:A,moduleGraph:r,ranges:C,toLine:v,setEditorData:k,source:e})})}),(0,n.jsx)(s.Col,{flex:1,children:(0,n.jsx)(j.TreeShakingTable,{kind:b,setEditorData:k,module:A,moduleGraph:r})})]})]})})},251742:function(e,t,r){"use strict";r.r(t),r.d(t,{getOpenTagText:function(){return s},parseOpenTag:function(){return o}});var n,i=((n=i||{}).Module="data-module",n.Range="data-range",n);function s(e,t,r){return`<a data-href="data-module=${e}&data-range=${encodeURIComponent(JSON.stringify(t))}">${r}</a>`}function o(e){if("a"!==e.tagName.toLocaleLowerCase())return;let t=e.getAttribute("data-href")??"",r={module:-1,range:{start:{line:1,column:0},end:{line:1,column:0}}};for(let e of t.split("&")){let[t,n]=e.split("=");if("data-module"===t){r.module=Number.parseInt(n,10);continue}"data-range"===t&&(r.range=JSON.parse(decodeURIComponent(n)))}return r}},265609:function(e,t,r){"use strict";r.r(t),r.d(t,{Space:function(){return s}});var n=r("397458"),i=r("311618");function s(){return(0,n.jsx)(i.Card,{title:"Tree Shaking Analysis",bodyStyle:{paddingTop:0},className:"tree-shaking-page",children:(0,n.jsx)(i.Empty,{style:{marginTop:30}})})}},174915:function(e,t,r){"use strict";r.r(t),r.d(t,{TreeShakingTable:function(){return x}});var n=r("397458"),i=r("311618"),s=r("113090"),o=r("652983"),a=r.n(o),l=r("363764"),d=r.n(l),c=r("321807"),u=r("565079"),p=r("277422");function h(e,t){if(!e)return(0,n.jsx)("div",{children:"Can not find declaration."});let{module:r}=e,s=r.isPreferSource?e.position.source:e.position.transformed;return(0,n.jsx)(i.Tooltip,{title:`${r.path}, line ${s.start.line}`,children:(0,n.jsx)(i.Button,{type:"link",onClick:()=>t(r,[s],s.start.line),children:"Move To"})})}function f(e){let[t,r]=(0,o.useState)(""),[a,l]=(0,o.useState)(""),c=(0,o.useRef)(null),u=(e,t,n)=>{t(),r(e[0]),l(n)},p=e=>{e(),r("")};return{filterDropdown:({setSelectedKeys:t,selectedKeys:r,confirm:o,clearFilters:a,close:l})=>(0,n.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,n.jsx)(i.Input,{ref:c,placeholder:`Search ${e}`,value:r[0],onChange:e=>t(e.target.value?[e.target.value]:[]),onPressEnter:()=>u(r,o,e),style:{marginBottom:8,display:"block"}}),(0,n.jsxs)(i.Space,{children:[(0,n.jsx)(i.Button,{type:"primary",onClick:()=>u(r,o,e),icon:(0,n.jsx)(s.SearchOutlined,{}),size:"small",style:{width:90},children:"Search"}),(0,n.jsx)(i.Button,{onClick:()=>a&&p(a),size:"small",style:{width:90},children:"Reset"}),(0,n.jsx)(i.Button,{type:"link",size:"small",onClick:l,children:"close"})]})]}),filterIcon:e=>(0,n.jsx)(s.SearchOutlined,{style:{color:e?"#1890ff":void 0}}),onFilter:(t,r)=>r[e].toString().toLowerCase().includes(t.toLowerCase()),render:r=>a===e?(0,n.jsx)(d(),{highlightStyle:{backgroundColor:"#ffc069",padding:0},searchWords:[t],autoEscape:!0,textToHighlight:r?r.toString():""}):r}}let g=({module:e,moduleGraph:t,setEditorData:r})=>{let s=(0,o.useMemo)(()=>t.getModuleGraphModule(e).getSideEffects(),[e]),l=s.map(({variable:t,name:r,identifier:n},i)=>({key:i,name:r,identifier:e.isPreferSource?n.position.source:n.position.transformed,declaration:t?.identifier})).sort((e,t)=>e.name===t.name?e.identifier.start.line>t.identifier.start.line?1:-1:e.name>t.name?1:-1).reduce((e,t)=>{let r=e[e.length-1];return r&&r.name===t.name?(!r.children&&(r.children=[]),r.children.push(t),e):(e.push(t),e)},[]),d=[{title:"Name",dataIndex:"name",key:"name",align:"center",...f("name")},{title:"SideEffect",dataIndex:"identifier",key:"identifier",align:"center",render:t=>(0,n.jsx)(i.Tooltip,{title:`Current File line ${t.start.line}`,children:(0,n.jsx)(i.Button,{type:"link",onClick:()=>r(e,[t],t.start.line),children:"Move To"})})},{title:"Declaration",dataIndex:"declaration",key:"declaration",align:"center",render:e=>h(e,r)}],u=(0,n.jsx)(a().Fragment,{children:(0,n.jsxs)(i.Space,{style:{fontWeight:400},children:["Import",(0,n.jsx)(i.Typography.Text,{strong:!0,children:l.length}),"variables",(0,n.jsx)(i.Divider,{type:"vertical"}),(0,n.jsx)(i.Typography.Text,{strong:!0,children:s.length}),"sideEffects"]})});return(0,n.jsx)(c.Card,{style:{marginBottom:10},title:u,className:"tree-shaking-export-table",children:(0,n.jsx)(i.Table,{size:"small",dataSource:l,columns:d,pagination:!1,scroll:{y:600}})})},m=({module:e,moduleGraph:t,setEditorData:r})=>{let s=(0,o.useMemo)(()=>t.getModuleGraphModule(e).getExports(),[e]),l=s.filter(e=>0===e.getSideEffects().length),d=(0,n.jsxs)(a().Fragment,{children:[(0,n.jsxs)(i.Space,{style:{fontWeight:400},children:["Export",(0,n.jsx)(i.Typography.Text,{strong:!0,children:s.length})]}),s.length>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Divider,{type:"vertical"}),(0,n.jsxs)(i.Typography.Text,{style:{fontWeight:400},code:!0,children:[(0,n.jsx)(i.Typography.Text,{children:"Unused"}),(0,n.jsx)(i.Divider,{type:"vertical"}),(0,n.jsx)(i.Typography.Text,{strong:!0,children:l.length})]}),(0,n.jsx)(i.Divider,{type:"vertical"}),(0,n.jsxs)(i.Typography.Text,{style:{fontWeight:400},code:!0,children:[(0,n.jsx)(i.Typography.Text,{children:"Used"}),(0,n.jsx)(i.Divider,{type:"vertical"}),(0,n.jsx)(i.Typography.Text,{strong:!0,children:s.length-l.length})]})]}):""]}),g=s.map((e,t)=>{let{variable:r}=e;return{key:t,name:e.name,declaration:r?.identifier,used:e.getSideEffects().map(({module:e,identifier:t})=>{let r=e?.isPreferSource?t.position.source:t.position.transformed;if(e&&r)return{module:e,range:r}}).filter(p.isDef)}}),m=[{title:"Name",dataIndex:"name",key:"name",align:"center",...f("name")},{title:"Declaration",dataIndex:"declaration",key:"declaration",align:"center",render:e=>h(e,r)},{title:"Info",dataIndex:"used",key:"used",align:"center",sorter:(e,t)=>e.used.length-t.used.length,sortDirections:["descend","ascend"],render:e=>(0,n.jsxs)("span",{children:["Used ",e.length," times"]})}];return(0,n.jsx)(c.Card,{title:d,className:"tree-shaking-export-table",children:(0,n.jsx)(i.Table,{size:"small",dataSource:g,columns:m,pagination:!1,scroll:{y:600},expandable:{expandedRowRender:e=>(0,n.jsxs)("div",{className:"tree-shaking-side-effect-list",children:[(0,n.jsx)(i.Typography.Text,{children:"List of SideEffect:"}),e.used.map(({module:e,range:t})=>(0,n.jsx)(i.Tooltip,{title:`${e.path}:${t.start.line}`,children:(0,n.jsx)(i.Button,{className:"tree-shaking-side-effect-list-item",type:"link",onClick:()=>{r(e,[t],t.start.line)},children:`${(0,u.ellipsisPath)(e.path)}:${t.start.line}`})},e.id))]}),rowExpandable:e=>e.used.length>0}})})},x=e=>"side-effect"===e.kind?(0,n.jsx)(g,{...e}):(0,n.jsx)(m,{...e})},565079:function(e,t,r){"use strict";r.r(t),r.d(t,{ellipsisPath:function(){return m},getHoverMessageInModule:function(){return x},getTreeFilesDefaultExpandedKeys:function(){return g},useFileStructures:function(){return f}});var n=r("397458"),i=r("652983"),s=r("377410"),o=r.n(s),a=r("673148"),l=r("170459"),d=r("311618"),c=r("367367"),u=r("251742"),p=r("277422"),h=r("467522");function f(e,t,r,s,o,a){return(0,i.useMemo)(()=>(0,p.createFileStructures)({files:e.map(e=>e.path),cwd:a,fileTitle(e,r){let i=t.getModules().find(t=>t.path===e&&t.kind===l.Module.kind.Normal),s=t.getModuleGraphModule(i),a=s.getExports().filter(e=>0===e.getSideEffects().length);return(0,n.jsxs)(d.Space,{style:{wordBreak:"break-all"},children:[(0,n.jsx)(h.Keyword,{text:r,keyword:e,onClick:()=>o(e)}),s.dynamic?(0,n.jsx)(d.Tag,{color:"cyan",children:"dynamic"}):"",a.length>0?(0,n.jsxs)(d.Tag,{color:"green",children:[a.length," Unused"]}):""]})}}),[r,s])}function g(e){return(0,p.mapFileKey)(e,3,e=>!((0,a.get)(e,"__RESOURCEPATH__").indexOf("/node_modules/")>-1))}function m(e){let t="",r=e;for(let e=0;e<3;e++)t=t?`${o().basename(r)}/${t}`:o().basename(r),r=o().dirname(r);return`...${t}`}function x(e,t){let r=t.getModuleGraphModule(e).getOwnExports(),n=r.map(e=>e.variable).filter(e=>!!e);if(0===r.length&&0===n.length)return[];let{isPreferSource:i}=e;return n.map(e=>{let t=i?e.identifier.position.source:e.identifier.position.transformed,r=t&&(0,p.getSelectionRange)(t,c.Range);if(t&&r)return{range:r,options:{stickiness:1,inlineClassName:"tree-shaking-statement-declaration-identifier",isWholeLine:!1,showIfCollapsed:!0,hoverMessage:{supportHtml:!0,supportThemeIcons:!0,isTrusted:!0,value:function(e){let t=e.getExportInfo();if(!t)return"Can not find SideEffect info.";let r=t.getSideEffects();if(0===r.length)return"Have no sideEffect.";let n=`Used **${r.length}** times:
|
|
79
|
-
|
|
80
|
-
<div data-code="tree-shaking-hover">
|
|
81
|
-
<li>`;for(let e of r){if(!e)continue;let{identifier:t,module:r}=e;if(!r)continue;let{id:i,isPreferSource:s}=r,o=t.getLineCode();n+=`
|
|
82
|
-
<ol>
|
|
83
|
-
${(0,u.getOpenTagText)(i,s?t.position.source:t.position.transformed,function(e,t){let{path:r,isPreferSource:n}=t,i=n?e.position.source.start:e.position.transformed.start,s=`:${i.line??1}:${i.column??0}`;return r.length<=30?`${r}${s}`:`...${r.substring(r.length-30)}${s}`}(t,r))}
|
|
84
|
-
${o?`<pre>${(0,a.escape)(o)}</pre>`:""}
|
|
85
|
-
</ol>`}return n+="\n</li></div>"}(e)}}}}).filter(e=>!!e)}},141457:function(e,t,r){"use strict";r.r(t),r.d(t,{name:function(){return i},route:function(){return s}});var n=r("678741");let i="Loaders Analysis",s=n.Client.RsdoctorClientRoutes.WebpackLoaderAnalysis},840335:function(e,t,r){"use strict";r.r(t),r.d(t,{Page:function(){return l}});var n=r("397458"),i=r("4487"),s=r("251264"),o=r("321807"),a=r("141457");r.es(a,t);let l=()=>(0,n.jsx)(o.Card,{title:"Webpack Loader Analysis",extra:(0,n.jsx)(s.WebpackConfigurationViewer,{defaultKeys:["module","resolve"]}),bodyStyle:{paddingTop:0},children:(0,n.jsx)(i.LoaderAnalysis,{})})},550638:function(e,t,r){"use strict";r.r(t),r.d(t,{name:function(){return i},route:function(){return s}});var n=r("678741");let i="Loaders Timeline",s=n.Client.RsdoctorClientRoutes.WebpackLoaderOverall},277122:function(e,t,r){"use strict";r.r(t),r.d(t,{Page:function(){return l}});var n=r("397458"),i=r("251264"),s=r("321807"),o=r("498463"),a=r("550638");r.es(a,t);let l=()=>(0,n.jsx)(s.Card,{title:"Loader Timeline",extra:(0,n.jsx)(i.WebpackConfigurationViewer,{defaultKeys:["module"]}),collapsable:!0,children:(0,n.jsx)(o.LoaderChart,{})})},890520:function(e,t,r){"use strict";r.r(t),r.d(t,{name:function(){return i},route:function(){return s}});var n=r("678741");let i="Plugins Analysis",s=n.Client.RsdoctorClientRoutes.WebpackPlugins},786825:function(e,t,r){"use strict";r.r(t),r.d(t,{Page:function(){return h}});var n=r("397458"),i=r("113090"),s=r("678741"),o=r("311618"),a=r("652983"),l=r("251264"),d=r("143622"),c=r("513938"),u=r("895925"),p=r("890520");r.es(p,t);let h=()=>{let[e,t]=(0,a.useState)([]),[r,p]=(0,a.useState)([]);return(0,n.jsx)("div",{children:(0,n.jsx)(o.Card,{title:"Webpack Plugins Overall",bodyStyle:{paddingTop:u.Size.BasePadding/3},extra:(0,n.jsx)(l.WebpackConfigurationViewer,{defaultKeys:["plugins"]}),children:(0,n.jsxs)(o.Space,{direction:"vertical",children:[(0,n.jsx)(d.ServerAPIProvider,{api:s.SDK.ServerAPI.API.GetPluginSummary,children:({hooks:e,tapNames:r})=>(0,n.jsxs)(o.Space,{style:{marginBottom:u.Size.BasePadding/2},children:[(0,n.jsxs)(o.Input.Group,{compact:!0,children:[(0,n.jsxs)(o.Button,{children:[(0,n.jsx)(i.ApiOutlined,{}),(0,n.jsx)(o.Typography.Text,{children:"Plugin Tap Names"})]}),(0,n.jsx)(o.Select,{mode:"multiple",allowClear:!0,style:{width:350},dropdownMatchSelectWidth:!0,onChange:e=>{t(e)},children:r.map(e=>(0,n.jsx)(o.Select.Option,{label:e,value:e,children:e},e))})]}),(0,n.jsxs)(o.Input.Group,{compact:!0,children:[(0,n.jsxs)(o.Button,{children:[(0,n.jsx)(i.PartitionOutlined,{}),(0,n.jsx)(o.Typography.Text,{children:"Hooks"})]}),(0,n.jsx)(o.Select,{mode:"multiple",allowClear:!0,style:{width:350},dropdownMatchSelectWidth:!0,onChange:e=>{p(e)},children:e.map(e=>(0,n.jsx)(o.Select.Option,{label:e,value:e,children:e},e))})]})]})}),(0,n.jsx)(d.ServerAPIProvider,{api:s.SDK.ServerAPI.API.GetPluginData,body:{hooks:r,tapNames:e},children:e=>(0,n.jsx)(c.WebpackPluginsDataTable,{dataSource:e})})]})})})}},283177:function(e,t,r){"use strict";r.r(t),r.d(t,{BundleSize:function(){return i},LoaderFiles:function(){return o},LoaderTimeline:function(){return s},ModuleResolve:function(){return l},Overall:function(){return n},PluginsAnalyze:function(){return a},RuleIndex:function(){return d},TreeShaking:function(){return c}});var n=r("411970"),i=r("37556");r("418602");var s=r("277122"),o=r("840335"),a=r("786825"),l=r("690025"),d=r("700488"),c=r("529668")},211082:function(e,t,r){"use strict";r.r(t),r.d(t,{BaseDataLoader:function(){return i}});var n=r("146641");class i{constructor(e){this.manifest=e,this.pool=new Map,this.disposed=!1,this.shardingDataMap=new Map,this.loader=new n.Data.APIDataLoader(this),console.log("[DataLoader] isLocal: ",this.isLocal())}get(e){if(this.manifest)return this.manifest[e]}getData(e,t="data"){let r=this.get(t);if(r)return r[e]}getKeys(e){return e.split(".")}joinKeys(e){return e.join(".")}dispose(){this.disposed=!0}limit(e,t){if(this.pool.has(e))return this.pool.get(e);let r=t().finally(()=>this.pool.delete(e));return this.pool.set(e,r),r}log(...e){console.log(`[${this.constructor.name}]`,...e)}async loadManifest(){return this.manifest}}},801675:function(e,t,r){"use strict";r.r(t),r.d(t,{useDataLoader:function(){return l}});var n=r("652983"),i=r("336514"),s=r("421249");r("341451"),r("895925");let o=new WeakMap;async function a(e){try{if(e.__LOCAL__SERVER__)return new i.LocalServerDataLoader(e)}catch(e){console.log("[DataLoader] fallback to RemoteDataLoader")}return new s.RemoteDataLoader(e)}function l(e){let[t,r]=(0,n.useState)(void 0);return(0,n.useEffect)(()=>{if(!!e){if(!o.has(e)){let t=a(e);o.set(e,t)}o.get(e).then(e=>{r(e)})}},[e]),{loader:t}}},336514:function(e,t,r){"use strict";r.r(t),r.d(t,{LocalServerDataLoader:function(){return l}});var n=r("146641"),i=r("678741"),s=r("673148"),o=r("211082"),a=r("841561");class l extends o.BaseDataLoader{constructor(){super(...arguments),this.events=new Map}isLocal(){return!0}async loadData(e){return this.limit(e,async()=>{let[t,...r]=this.getKeys(e),o=this.getData(t);if(!o)return;let l=o;if(n.Manifest.isShardingData(l)){if(!this.shardingDataMap.has(e)){let t=new Promise(t=>{(0,a.getSocket)(this.manifest.__SOCKET__URL__).emit(i.SDK.ServerAPI.API.LoadDataByKey,{key:e},e=>{t(e.res)})});this.shardingDataMap.set(e,t)}return l=await this.shardingDataMap.get(e),this.shardingDataMap.delete(e),l}return r.length>0?(0,s.get)(l,this.joinKeys(r)):l})}async loadAPI(...e){let[t,r]=e,n=r?`${t}_${JSON.stringify(r)}`:`${t}`;return this.limit(n,async()=>new Promise(e=>{(0,a.getSocket)(this.manifest.__SOCKET__URL__).emit(t,r,t=>{e(t.res)})}))}dispose(){super.dispose(),this.events.forEach((e,t)=>{e.forEach(e=>{this.removeOnDataUpdate(t,e)}),e.clear()}),this.events.clear()}onDataUpdate(e,t){!this.events.has(e)&&this.events.set(e,new Set),!this.events.get(e).has(t)&&(this.events.get(e).add(t),(0,a.getSocket)(this.manifest.__SOCKET__URL__).on(e,t))}removeOnDataUpdate(e,t){(0,a.getSocket)(this.manifest.__SOCKET__URL__).off(e,t),this.events.get(e).delete(t)}}},421249:function(e,t,r){"use strict";r.r(t),r.d(t,{RemoteDataLoader:function(){return a}});var n=r("146641"),i=r("673148"),s=r("211082"),o=r("48612");class a extends s.BaseDataLoader{isLocal(){return!1}async loadData(e){return this.limit(e,async()=>{let[t,...r]=this.getKeys(e),s=this.getData(t,"cloudData");if(!s)return;let a=s;if(n.Manifest.isShardingData(a)){if(!this.shardingDataMap.has(t)){let r=n.Manifest.fetchShardingData(a,o.fetchShardingFile).catch(t=>{throw this.log("loadData error: ",a,e),t});this.shardingDataMap.set(t,r)}a=await this.shardingDataMap.get(t)}return r.length>0?(0,i.get)(a,this.joinKeys(r)):a})}async loadAPI(...e){let[t,r]=e,n=r?`${t}_${JSON.stringify(r)}`:`${t}`;return this.limit(n,async()=>this.loader.loadAPI(...e))}dispose(){super.dispose()}onDataUpdate(){}removeOnDataUpdate(){}}},785518:function(e,t,r){"use strict";r.r(t),r.d(t,{beautifyModulePath:function(){return d},beautifyPath:function(){return l},createFileStructures:function(){return a},mapFileKey:function(){return s}});var n=r("673148");let i=(e,t="/")=>{let r=e?.indexOf(t);return -1===r?null:0===r?t+(i(e?.slice(1))||""):e?.slice(0,r)};function s(e,t=2,r=()=>!0){let n=0,i=[],s=e;for(;n<t&&(s.filter(r).forEach(e=>{!e.isLeaf&&i.push(e.key)}),(s=s.reduce((e,t)=>e.concat(t.children||[]),[])).length);){;n++}return i}let o="__BASENAME__";function a({files:e,sep:t="/",inlinedResourcePathKey:r="__RESOURCEPATH__",fileTitle:s=(e,t)=>t,dirTitle:a=(e,t)=>t}){let l=new RegExp(t),d=e.reduce((e,a)=>{let d=i(a,t),c=d?a?.slice(d.length+1):a,u=e;for(;d;){let e=u.children.find(e=>e.title===d);if(!e){let n=[u[r],d].filter(Boolean).join(t);e={title:d,key:n,children:[],[r]:n,[o]:d},u.children.push(e)}u=e,c=(d=i(c))?c.slice(d.length).replace(l,""):c}return u.children.some(e=>(0,n.get)(e,r)===a)?e:(u.children.push({title:()=>s(a,c),key:a,isLeaf:!0,[r]:a,[o]:c}),e)},{key:"0",children:[]}).children;return d.forEach(e=>{e.children&&e.children.forEach(n=>(function e(t,r,n="/",i,s=(e,t)=>t){if(!t.isLeaf){if(r.children&&1===r.children.length){let a=[r[o],t[o]].join(n);r[i]=t[i],r[o]=a,r.key=[r.key,t.key].join("-"),r.children=t.children,r.title=s(r,a),t.children&&t.children.forEach(t=>{e(t,r,n,i,s)})}else t.title=s(t,t[o]),t.children&&t.children.forEach(r=>{e(r,t,n,i,s)})}})(n,e,t,r,a))}),d}function l(e,t){return(0,n.startsWith)(e,t)?e.replace(t,"."):e}function d(e,t){let r=l(e,t),n="/node_modules/",i=r.lastIndexOf(n);return i>-1?{alias:r.slice(i+n.length),inNodeModules:!0}:{alias:r,inNodeModules:!1}}},791767:function(e,t,r){"use strict";r.r(t),r.d(t,{useBundleAlertsByErrors:function(){return m},useCompileAlertsByErrors:function(){return g},useDetectIfCloudIdeEnv:function(){return j},useDuplicatePackagesByErrors:function(){return x},useI18n:function(){return p},useRuleIndexNavigate:function(){return h},useUrlQuery:function(){return f},useWebpackConfigurationByConfigs:function(){return y},useWindowWidth:function(){return S}}),r("146641");var n=r("678741"),i=r("673148"),s=r("652983"),o=r("498615"),a=r("264124"),l=r("489730"),d=r.n(l);r("263396");var c=r("341451");let u=n.Client.RsdoctorClientRoutes.RuleIndex,p=()=>{let{i18n:e,...t}=(0,o.useTranslation)();return{...t,i18n:{...e,changeLanguage:(t,r)=>e.changeLanguage(t,(e,n)=>{!e&&(0,c.setLocaleToStorage)(t),r&&r(e,n)})}}};function h(e,t){let r=(0,a.useNavigate)();return t?()=>window.open(t,"__blank"):()=>{r(`${u}?${n.Rule.RsdoctorRuleClientConstant.UrlQueryForErrorCode}=${e}`)}}function f(){let e=(0,a.useLocation)().search||location.search,{query:t}=d()(e,!0);return t}function g(e){return(0,i.isArray)(e)?e.filter(e=>e.category===n.Rule.RuleMessageCategory.Compile&&e.code!==n.Rule.RuleMessageCodeEnumerated.Overlay):[]}function m(e){return(0,i.isArray)(e)?e.filter(e=>e.category===n.Rule.RuleMessageCategory.Bundle&&e.code!==n.Rule.RuleMessageCodeEnumerated.Overlay):[]}function x(e){return m(e).filter(e=>e.code===n.Rule.RuleErrorMap.E1001.code)}function y(e=[]){return(0,i.isArray)(e)?e.find(e=>"webpack"===e.name||"rspack"===e.name):null}function j(){return!!("https:"===window.location.protocol&&window.location.href.indexOf("ide-proxy")>0)||!1}function S(){let[e,t]=(0,s.useState)(window.innerWidth);return(0,s.useEffect)(()=>{let e=()=>t(window.innerWidth);return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),e}},591110:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}});var n={Overall:"\u6982\u89C8","Compile Analysis":"\u7F16\u8BD1\u5206\u6790",LoadersAnalysis:"Loaders \u5206\u6790","Loaders Timeline":"Loaders \u6982\u89C8","Loaders Analysis":"Loaders \u5206\u6790",PluginsAnalysis:"Plugins \u5206\u6790",ModuleResolve:"Module Resolve \u5206\u6790","Bundle Analysis":"\u4EA7\u7269\u5206\u6790",BundleSize:"\u4EA7\u7269\u4F53\u79EF\u5206\u6790","Module Graph":"Module Graph",TreeShaking:"Tree Shaking","Rule Index":"\u9519\u8BEF\u7D22\u5F15\u4FE1\u606F",Resources:"\u8D44\u6E90","Project Overall":"\u9879\u76EE\u4FE1\u606F\u6982\u89C8","Compile Overall":"\u7F16\u8BD1\u6570\u636E\u6982\u89C8","Bundle Overall":"\u4EA7\u7269\u6570\u636E\u6982\u89C8","Expand Omitted":" reasons \u6811\u4F1A\u9ED8\u8BA4\u6298\u53E0\u4E2D\u95F4\u7684\u7B2C\u4E09\u65B9\u5F15\u5165\u7684\u6A21\u5757\uFF0C\u70B9\u51FB\u8FD9\u4E2A\u56FE\u6807\u53EF\u4EE5\u67E5\u770B\u5B8C\u6574\u6811\u56FE","Concatenated Tag":"\u4E32\u8054\u6A21\u5757\uFF0Chover \u4E0A\u53BB\u53EF\u4EE5\u663E\u793A\u805A\u5408\u6210\u7684\u4E3B\u6A21\u5757\u540D\u79F0\u3002\u6CE8\uFF1A\u805A\u5408\u6A21\u5757 bundled size \u4E3A\u96F6\uFF0C\u6709\u53EF\u80FD\u662F\u56E0\u4E3A\u88AB\u805A\u5408\u5230\u4E86\u4E3B\u6A21\u5757\u4E2D\u3002","the file content not changed after transpiled by this loader":"\u8BE5\u6587\u4EF6\u5185\u5BB9\u5728 loader \u5904\u7406\u524D\u540E\u6CA1\u6709\u53D1\u751F\u53D8\u5316","Output Assets List":"\u4EA7\u7269\u6587\u4EF6\u5217\u8868","filter the output assets which size is greater than the input value":"\u7B5B\u9009\u5927\u5C0F\u5927\u4E8E\u8F93\u5165\u503C\u7684\u4EA7\u7269\u6587\u4EF6","filter the modules which size is greater than the input value":"\u7B5B\u9009\u5927\u5C0F\u5927\u4E8E\u8F93\u5165\u503C\u7684\u6A21\u5757","After Compile":"\u7F16\u8BD1\u540E","After Bundle":"\u6253\u5305\u540E",CodeModeExplain:"Lite \u6A21\u5F0F\u4E0B\u6216\u7EAF stats.json \u4E0A\u4F20\u7684\u60C5\u51B5\u4E0B\u53EA\u6709 source code.",DuplicatePakCodeExplain:"\u7EAF stats.json \u8F93\u5165\u7684\u60C5\u51B5\u4E0B\u6CA1\u6709\u4EE3\u7801\uFF0C\u53EF\u4F7F\u7528 web-doctor \u63D2\u4EF6\u53C2\u4E0E\u6784\u5EFA\u4F1A\u6709\u5BF9\u5E94\u4EE3\u7801\u3002"}},785371:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n}});var n={Overall:"Overall","Compile Analysis":"Compile Analysis",LoadersAnalysis:"Loaders Analysis","Loaders Timeline":"Loaders Timeline","Loaders Analysis":"Loaders Analysis",PluginsAnalysis:"Plugins Analysis",ModuleResolve:"Module Resolve","Bundle Analysis":"Bundle Analysis",BundleSize:"Bundle Size","Module Graph":"Module Graph",TreeShaking:"Tree Shaking","Rule Index":"Rule Index",Resources:"Resources","Project Overall":"Project Overall","Compile Overall":"Compile Overall","Bundle Overall":"Bundle Overall","Expand Omitted":"By default, the reasons tree collapses to the middle of the module introduced by a third party. Click on this icon to view the full tree diagram","Concatenated Tag":"Concatenated Module,hover can display the name of the concatenated main module. Note: the bundled size of the concatenated module is zero, possibly because it is aggregated into the main module.","the file content not changed after transpiled by this loader":"the file content not changed after transpiled by this loader","Output Assets List":"Output Assets List","filter the output assets which size is greater than the input value":"filter the output assets which size is greater than the input value","filter the modules which size is greater than the input value":"filter the modules which size is greater than the input value","After Compile":"After Compile","After Bundle":"After Bundle",CodeModeExplain:"In lite mode or pure stats.json upload, only source code.",DuplicatePakCodeExplain:"There is no code, when in the case of pure stats.json."}},263396:function(e,t,r){"use strict";r.r(t);var n=r("181346"),i=r("498615"),s=r("785371"),o=r("591110"),a=r("341451");n.default.use(i.initReactI18next).init({lng:(0,a.getLocaleFromStorage)(),resources:{en:{translations:s.default},cn:{translations:o.default}},fallbackLng:{"zh-CN":["cn"],default:["en"]},debug:!1,ns:["translations"],defaultNS:"translations",keySeparator:!1,interpolation:{escapeValue:!1}}),n.default},277422:function(e,t,r){"use strict";r.r(t);var n=r("801675");r.es(n,t);var i=r("785518");r.es(i,t);var s=r("791767");r.es(s,t);var o=r("584573");r.es(o,t);var a=r("844428");r.es(a,t);var l=r("960271");r.es(l,t);var d=r("48612");r.es(d,t);var c=r("545437");r.es(c,t);var u=r("329321");r.es(u,t);var p=r("841561");r.es(p,t);var h=r("341451");r.es(h,t);var f=r("453607");r.es(f,t);var g=r("593155");r.es(g,t);var m=r("947993");r.es(m,t);var x=r("275196");r.es(x,t)},275196:function(e,t,r){"use strict";r.r(t),r.d(t,{filterLoader:function(){return a},findLoaderTotalTiming:function(){return s}});var n=r("146641"),i=r("673148");let{findLoaderTotalTiming:s,getLoaderCosts:o}=n.Loader;function a(e,t,r,n){return!(r&&-1===e.indexOf(r)||n?.length&&!(0,i.includes)(n,t))&&!0}},584573:function(e,t,r){"use strict";r.r(t),r.d(t,{getLocale:function(){return s}});var n=r("85352"),i=r("134437");function s(e){return"cn"===e||"zh-CN"===e?n.default:i.default}},844428:function(e,t,r){"use strict";r.r(t),r.d(t,{useLocale:function(){return a},useModuleGraphInstanceByModuleGraph:function(){return c},useTheme:function(){return l},useViewMode:function(){return d}});var n=r("652983"),i=r("170459"),s=r("667351"),o=r("895925");function a(){return(0,n.useContext)(s.ConfigContext).locale}function l(){let{theme:e,setTheme:t}=(0,n.useContext)(s.ConfigContext),r=e===o.Theme.Dark;return{theme:e,setTheme:t,isDark:r,isLight:!r}}function d(){let{viewMode:e,setViewMode:t}=(0,n.useContext)(s.ConfigContext),{bundleAlerts:r,compileAlerts:i}=e;return{viewMode:e,setViewMode:t,setCompileAlertsViewMode(e){t({compileAlerts:e})},setBundleAlertsViewMode(e){t({bundleAlerts:e})},isCompileList:i===o.ViewMode.List,isBundleList:r===o.ViewMode.List}}function c(e){return(0,n.useMemo)(()=>i.ModuleGraph.fromData(e),[e])}r("48612")},960271:function(e,t,r){"use strict";r.r(t),r.d(t,{getModifiedLanguage:function(){return l},getOriginalLanguage:function(){return a},getRevealPositionForViewer:function(){return d},getSelectionRange:function(){return c},useMonacoEditor:function(){return p}});var n=r("377410"),i=r("112326"),s=r("593155");let o=i.loader.init();function a(e){if((0,s.isJsDataUrl)(e))return"javascript";let t=(0,n.extname)(e).slice(1);switch(t){case"js":case"jsx":return"javascript";case"ts":case"tsx":return"typescript";default:return t}}function l(e){let t=(0,n.extname)(e).slice(1);switch(t){case"js":case"jsx":case"ts":case"tsx":return"javascript";default:return t}}function d(e,t){return{lineNumber:Math.floor(e/1.2)||1,column:Math.floor(t/1.5)||1}}function c(e,t){let{start:r,end:n}=e,{line:i=1,column:s=0}=r;return new t(i,s+1,n?.line??i,(n?.column??9999)+1)}let u=e=>new Promise((t,r)=>{if(e.value){t();return}o.then(t=>{e.value=t}).catch(e=>{e?.type!=="cancelation"&&(console.error("Monaco initialization error:",e),r())})});function p(){return{initMonaco:u}}},48612:function(e,t,r){"use strict";let n;r.r(t),r.d(t,{fetchManifest:function(){return u},fetchShardingFile:function(){return l}});var i=r("721899"),s=r("678741"),o=r("146641");r("895925");var a=r("593155");async function l(e){return o.Url.isUrl(e)?i.default.get(e,{timeout:999999,responseType:"text"}).then(e=>e.data):e}async function d(e){let t=await i.default.get(e,{timeout:3e4}).then(e=>e.data);return"string"==typeof t&&(t=JSON.parse(t)),console.log("[json] ",e,t),t}r("341451");let c=new Map;async function u(e=(!(n=window[s.Manifest.RsdoctorManifestClientConstant.WindowPropertyForManifestUrl]?window[s.Manifest.RsdoctorManifestClientConstant.WindowPropertyForManifestUrl]:(0,a.getManifestUrlFromUrlQuery)())&&(n=s.SDK.ServerAPI.API.Manifest),n)){return!c.has(e)&&c.set(e,d(e).catch(t=>{throw c.delete(e),t})),await c.get(e)}},545437:function(e,t,r){"use strict";r.r(t),r.d(t,{hasBundle:function(){return o},hasCompile:function(){return s}});var n=r("673148"),i=r("678741");function s(e){return(0,n.includes)(e,i.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders)||(0,n.includes)(e,i.Manifest.RsdoctorManifestClientRoutes.ModuleResolve)||(0,n.includes)(e,i.Manifest.RsdoctorManifestClientRoutes.WebpackPlugins)}function o(e){return(0,n.includes)(e,i.Manifest.RsdoctorManifestClientRoutes.BundleSize)||(0,n.includes)(e,i.Manifest.RsdoctorManifestClientRoutes.ModuleGraph)||(0,n.includes)(e,i.Manifest.RsdoctorManifestClientRoutes.TreeShaking)}},329321:function(e,t,r){"use strict";function n(e){let t;return t=e>=1073741824?`${(e/1073741824).toFixed(2)} GB`:e>=1048576?`${(e/1048576).toFixed(2)} MB`:e>=1024?`${(e/1024).toFixed(2)} KB`:e>1?`${e} bytes`:1===e?`${e} byte`:"0 bytes"}r.r(t),r.d(t,{formatSize:function(){return n}})},841561:function(e,t,r){"use strict";r.r(t),r.d(t,{getSocket:function(){return o}});var n=r("599524");let i=new Map,s=`ws://${location.host}`;function o(e=s){return function(e=s){if(!i.has(e)){let t=(0,n.io)(e,{});t.on("connect",()=>{console.log(`Scoket Connect ${e}`)}),i.set(e,t)}return i.get(e)}(e)}},341451:function(e,t,r){"use strict";r.r(t),r.d(t,{getLocaleFromStorage:function(){return c},getThemeFromStorage:function(){return l},getViewModeFromStorage:function(){return p},hasViewModeFromStorage:function(){return f},setLocaleToStorage:function(){return u},setThemeToStorage:function(){return d},setViewModeToStorage:function(){return h}});var n,i=r("895925");var s=((n=s||{}).Namespace="__RSDOCTOR__STORAGE__",n.Theme="THEME",n.Locale="LOCALE",n.ViewMode="VIEWMODE",n.APILoaderMode4Dev="APILOADERMODE_DEV",n);function o(e){return window.localStorage.getItem(`__RSDOCTOR__STORAGE__${e}`)}function a(e,t){try{return window.localStorage.setItem(`__RSDOCTOR__STORAGE__${e}`,t),!0}catch(e){return console.error(e),!1}}function l(){return o("THEME")||i.Theme.Light}function d(e){a("THEME",e)}function c(){return o("LOCALE")||i.Language.En}function u(e){a("LOCALE",e)}function p(){let e={bundleAlerts:i.ViewMode.List,compileAlerts:i.ViewMode.List};try{let t=o("VIEWMODE");if(t)return JSON.parse(t)||e;return e}catch(t){return e}}function h(e){a("VIEWMODE",JSON.stringify(e))}function f(){return!!o("VIEWMODE")}},453607:function(e,t,r){"use strict";r.r(t),r.d(t,{formatCosts:function(){return s}});let{toFixedDigits:n,getUnit:i,formatCosts:s}=r("146641").Time},593155:function(e,t,r){"use strict";r.r(t),r.d(t,{changeOrigin:function(){return d},getDemoUrl:function(){return c},getManifestUrlFromUrlQuery:function(){return l},getShortPath:function(){return u},isDef:function(){return p},isJsDataUrl:function(){return a}});var n=r("489730"),i=r.n(n),s=r("678741"),o=r("673148");function a(e){return e.startsWith("data:text/javascript;")}function l(){let{query:e}=i()(location.href,!0),t=e[s.Client.RsdoctorClientUrlQuery.ManifestFile];if(t)return decodeURIComponent(t)}function d(e){var t;let r=i()(location.href,!0),n=i()(e,!0);return t=r,(0,o.endsWith)(t.hash,s.Client.RsdoctorClientRoutes.Uploader)&&t.set("hash",s.Client.RsdoctorClientRoutes.Overall),r.set("origin",e),r.set("protocol",n.protocol),r.set("host",n.host),r.set("port",n.port),r.toString()}function c(){return null}let u=e=>{if(e?.indexOf("node_modules")>=0){let t=e.split("node_modules");return`node_modules${t[t.length-1]}`}return e?.length?`${e?.split("/").slice(-4).join("/")}`:e};function p(e){return null!=e}},947993:function(e,t,r){"use strict";r.r(t);var n=r("286848");r.es(n,t);var i=r("303204");r.es(i,t);var s=r("586880");r.es(s,t)},303204:function(e,t,r){"use strict";r.r(t),r.d(t,{master:function(){return i}});var n=r("586880");let i=new class e{constructor(){this._workerMap=new WeakMap}detectWorker(e){if(this._workerMap.has(e))return this._workerMap.get(e);let t=e(),r=new n.ChildWorker(t);return this._workerMap.set(e,r),r}}},286848:function(e,t,r){"use strict";function n(e,t){return t.postMessage(e)}function i(e,t){let r={id:e.data.id,data:t};return postMessage(r)}function s({handler:e}){onmessage=t=>{let r=e(t.data.data);r instanceof Promise?r.then(e=>{i(t,e)}):i(t,r)}}r.r(t),r.d(t,{handleMessageInWorker:function(){return s},sendMessageInClient:function(){return n},sendMessageInWorker:function(){return i}})},586880:function(e,t,r){"use strict";r.r(t),r.d(t,{ChildWorker:function(){return i}});var n=r("286848");class i{constructor(e){this.worker=e,this.timer=0,this.callbacks=new Map,this.setup()}setup(){this.worker.onmessage=e=>{let{data:t}=e;if(this.callbacks.has(t.id)){let e=this.callbacks.get(t.id);this.callbacks.delete(t.id),e(t.data)}}}createEventId(){return`${Date.now()}_${++this.timer}`}emit(e,t){let r=this.createEventId();return this.callbacks.set(r,t),(0,n.sendMessageInClient)({id:r,data:e},this.worker),{abort:()=>this.callbacks.delete(r)}}dispose(){this.worker.terminate()}}},835563:function(e,t,r){"use strict";r.r(t),r("678741")},247687:function(e,t,r){"use strict";r.r(t);var n=r("835563");r.es(n,t)},949689:function(e,t,r){"use strict";r.r(t);var n=r("247687");r.es(n,t);var i=r("655620");r.es(i,t);var s=r("316898");r.es(s,t)},393492:function(e,t,r){"use strict";r.r(t),r.d(t,{Dependency:function(){return s}});var n=r("678741");e=r.hmd(e);let i=1;class s{constructor(e,t,r,n,s){this.statements=[],this.meta={exportsType:"default-with-named"},this.id=i++,this.request=e,this.module=t,this._originDependency=r,this.kind=n,this.statements=s??[]}static init(){i=1}get resolvedRequest(){return this.dependency.path}get dependency(){return this.originDependency.rootModule??this.originDependency}get originDependency(){return this._originDependency}get kindString(){return n.SDK.DependencyKind[this.kind]}get resolveConcatenationModule(){return this.dependency.kind===n.SDK.ModuleKind.Concatenation}isSameWithoutStatements(e){return this.request===e.request&&this.kind===e.kind&&this.module.id===e.module.id&&this.dependency.id===e.dependency.id}addStatement(e){!this.hasStatement(e)&&this.statements.push(e)}hasStatement(e){return this.statements.some(t=>t.isSame(e))}setBuildMeta(e){this.meta={...this.meta,...e}}toData(){return{id:this.id,request:this.request,resolvedRequest:this.resolvedRequest,kind:this.kind,module:this.module.id,dependency:this.dependency.id,originDependency:this.originDependency.id,statements:this.statements.map(e=>e.toData())}}}s.kind=n.SDK.DependencyKind},939126:function(e,t,r){"use strict";r.r(t),r.d(t,{ModuleGraph:function(){return l}});var n=r("678741"),i=r("393492"),s=r("354223"),o=r("101718"),a=r("57882");class l{constructor(){this._dependenciesIdMap=new Map,this._moduleWebpackIdMap=new Map,this._moduleIdMap=new Map,this._moduleGraphModules=new Map,this._exportIdMap=new Map,this._sideEffectIdMap=new Map,this._varIdMap=new Map}static init(){s.Module.init(),i.Dependency.init(),a.ModuleGraphModule.init()}static fromData(e){let t=new l,r=e=>new o.Statement(t.getModuleById(e.module),e.position);for(let r of e.modules??[]){let e=new s.Module(String(r.id),r.path,r.isEntry,r.kind);e.id=r.id,e.setSize(r.size),e.meta={strictHarmonyModule:r.meta?.strictHarmonyModule??!1,hasSetEsModuleStatement:r.meta?.hasSetEsModuleStatement??!1},e._isPreferSource=r.isPreferSource,e.chunks=r.chunks,t.addModule(e)}for(let n of e.modules??[]){let i=t.getModuleById(n.id);for(let s of n.dependencies){let n=(e.dependencies??[]).find(e=>e.id===s),o=n&&t.getModuleById(n.originDependency);if(!n||!o){console.warn(`The connection data ID is empty: ${s}`);continue}let a=i.addDependency(n.request,o,n.kind,n.statements.map(r));a&&(a.id=n.id,t.addDependency(a))}for(let e of n.modules??[]){let r=t.getModuleById(e);if(!r){console.warn(`Add the ordinary module ID as empty: ${e}`);continue}i.addNormalModule(r)}for(let e of n.concatenationModules??[]){let r=t.getModuleById(e);if(!r){console.warn(`The aggregation module ID is empty: ${r}`);continue}i.addConcatenationModule(r)}}for(let n of e.exports??[]){let e=new a.ExportInfo(n.name,n.identifier?r(n.identifier):void 0);e.id=n.id,t.addExportInfo(e)}for(let r of e.exports??[])if(r.from){let e=t._exportIdMap.get(r.id),n=t._exportIdMap.get(r.from);e&&n&&e.setFromExport(n)}for(let n of e.variables??[]){let e=t.getModuleById(n.module);if(!e){console.warn(`The module ID in the variable is empty\u{FF1A}${n.module}`);continue}let i=new a.Variable(n.name,e,n.usedInfo,r(n.identifier)),s=t._exportIdMap.get(n.exported??-1);s&&i.setExportInfo(s),i.id=n.id,t.addVariable(i)}for(let n of e.sideEffects??[]){let e=t.getModuleById(n.module);if(!e){console.warn(`The module ID in the side effects is empty\u{FF1A}${n.module}`);continue}let i=new a.SideEffect(n.name,e,r(n.identifier),n.originName);for(let e of(i.isNameSpace=n.isNameSpace,i.id=n.id,n.exports??[])){let r=t._exportIdMap.get(e);r&&r.addSideEffect(i)}if(n.variable){let e=t._varIdMap.get(n.variable);e&&(i._variable=e)}t.addSideEffect(i)}for(let r of e.moduleGraphModules??[]){let e=t.getModuleById(r.module);if(!e){console.warn(`The module ID in ModuleGraphModule is empty: ${r.module}`);continue}let n=new a.ModuleGraphModule(e,t,r.dynamic);t.addModuleGraphModule(n),r.exports.forEach(e=>{let r=t._exportIdMap.get(e);r&&n.addExportInfo(r)}),r.sideEffects.forEach(e=>{let r=t._sideEffectIdMap.get(e);r&&n.addSideEffect(r)}),r.variables.forEach(e=>{let r=t._varIdMap.get(e);r&&n.addVariable(r)})}return l.init(),t}clear(){this._dependenciesIdMap=new Map,this._moduleWebpackIdMap=new Map,this._moduleIdMap=new Map,this._moduleGraphModules=new Map,this._exportIdMap=new Map,this._sideEffectIdMap=new Map,this._varIdMap=new Map}size(){return this._moduleIdMap.size}fromInstance(e){this._dependenciesIdMap=new Map(e._dependenciesIdMap),this._moduleWebpackIdMap=new Map(e._moduleWebpackIdMap),this._moduleIdMap=new Map(e._moduleIdMap),this._moduleGraphModules=new Map(e._moduleGraphModules),this._exportIdMap=new Map(e._exportIdMap),this._sideEffectIdMap=new Map(e._sideEffectIdMap),this._varIdMap=new Map(e._varIdMap)}getSubGraphByModule(e){let t=new Set,r=[e];t.add(e);for(let e=0;e<r.length;e++)for(let{dependency:n}of r[e].getDependencies())!t.has(n)&&(t.add(n),r.push(n));return r}getModules(){return Array.from(this._moduleWebpackIdMap.values())}getDependencies(){return Array.from(this._dependenciesIdMap.values())}getEntryModules(){return this.getModules().filter(e=>e.isEntry&&e.kind!==n.SDK.ModuleKind.Concatenation)}getModuleById(e){return this._moduleIdMap.get(e)}getDependencyById(e){return this._dependenciesIdMap.get(e)}getModuleByWebpackId(e){return this._moduleWebpackIdMap.get(e)}getModuleByFile(e){return this.getModules().find(t=>t.path===e)}addModule(...e){for(let t of e)!this._moduleIdMap.has(t.id)&&(this._moduleWebpackIdMap.set(t.webpackId,t),this._moduleIdMap.set(t.id,t))}addDependency(...e){for(let t of e)!this._dependenciesIdMap.has(t.id)&&(this._dependenciesIdMap.set(t.id,t),this.addModule(t.module),this.addModule(t.dependency))}removeModule(e){for(let t of(this._moduleIdMap.delete(e.id),this._moduleWebpackIdMap.delete(e.webpackId),e.getDependencies()))this.removeDependency(t),this._dependenciesIdMap.delete(t.id);for(let t of e.getImported())t.removeDependencyByModule(t)}removeDependency(e){e.module.removeDependency(e),e.dependency.removeImported(e.module),this._dependenciesIdMap.delete(e.id)}addModuleGraphModule(e){!this._moduleGraphModules.has(e.module)&&this._moduleGraphModules.set(e.module,e)}getModuleGraphModule(e){return this._moduleGraphModules.get(e)}getModuleGraphModules(){return Array.from(this._moduleGraphModules.values())}addExportInfo(e){this._exportIdMap.set(e.id,e)}addSideEffect(e){this._sideEffectIdMap.set(e.id,e)}addVariable(e){this._varIdMap.set(e.id,e)}toData(e){return{dependencies:this.getDependencies().map(e=>e.toData()),modules:this.getModules().map(t=>t.toData(e?.contextPath)),moduleGraphModules:Array.from(this._moduleGraphModules.values()).map(e=>e.toData()),exports:Array.from(this._exportIdMap.values()).map(e=>e.toData()),sideEffects:Array.from(this._sideEffectIdMap.values()).map(e=>e.toData()),variables:Array.from(this._varIdMap.values()).map(e=>e.toData())}}toCodeData(e=n.SDK.ToDataType.Normal){let t={};return this.getModules().forEach(r=>{t[r.id]=r.getSource(e)}),t}}},655620:function(e,t,r){"use strict";r.r(t);var n=r("393492");r.es(n,t);var i=r("354223");r.es(i,t);var s=r("939126");r.es(s,t);var o=r("101718");r.es(o,t);var a=r("57882");r.es(a,t)},354223:function(e,t,r){"use strict";r.r(t),r.d(t,{Module:function(){return u}});var n=r("678741"),i=r("377410"),s=r.n(i),o=r("139378"),a=r("393492"),l=r("101718"),d=r("4034");let c=1;class u{constructor(e,t,r=!1,i=n.SDK.ModuleKind.Normal){this.source={source:"",transformed:"",parsedSource:""},this.size={sourceSize:0,transformedSize:0,parsedSize:0},this.chunks=[],this.dependencies=[],this.imported=[],this.modules=[],this.concatenationModules=[],this.meta={hasSetEsModuleStatement:!1,strictHarmonyModule:!1},this.id=c++,this.webpackId=e,this.path=t,this.isEntry=r,this.kind=i}static init(){c=1}get rootModule(){return this.modules.find(e=>e.path===this.path)}get isPreferSource(){if("boolean"==typeof this._isPreferSource)return this._isPreferSource;let e=this.source.source.length>0&&"test code"!==this.source.source&&!!this.sourceMap;return this._isPreferSource=e,e}getChunks(){return this.chunks.slice()}addChunk(e){!this.chunks.includes(e)&&(this.chunks.push(e),e.addModule(this))}removeChunk(e){this.chunks=this.chunks.filter(t=>t!==e)}getDependencies(){return this.dependencies.slice()}getDependencyByRequest(e){return this.dependencies.find(t=>t.request===e)}getDependencyByModule(e){return this.dependencies.find(t=>t.originDependency===e||t.dependency===e)}addDependency(e,t,r,n){let i=new a.Dependency(e,this,t,r,n);if(this.dependencies.every(e=>!e.isSameWithoutStatements(i)))return this.dependencies.push(i),t.addImported(this),t.rootModule&&t.rootModule.addImported(this),i}removeDependency(e){this.dependencies=this.dependencies.filter(t=>t===e)}removeDependencyByModule(e){let t=this.getDependencyByModule(e);t&&this.removeDependency(t)}getImported(){return this.imported.slice()}addImported(e){!this.imported.includes(e)&&this.imported.push(e)}removeImported(e){this.imported=this.imported.filter(t=>t===e)}setProgram(e){this.program=e}getProgram(){return this.program}setSource(e){let{source:t}=this;t.source=e.source??t.source,t.transformed=e.transformed??t.transformed,t.parsedSource=e.parsedSource??t.parsedSource}getSource(e=n.SDK.ToDataType.Normal){return e===n.SDK.ToDataType.Lite?{source:"",transformed:"",parsedSource:this.source.parsedSource}:this.isPreferSource?{source:this.source.source,transformed:"",parsedSource:""}:e===n.SDK.ToDataType.All?{source:this.source.source,transformed:this.source.transformed,parsedSource:this.source.parsedSource}:{source:this.source.source,transformed:"",parsedSource:this.source.parsedSource}}setSourceMap(e){this.sourceMap=e}getSourceMap(){return this.sourceMap}setSize(e){let{size:t}=this;t.sourceSize=e.sourceSize??t.sourceSize,t.transformedSize=e.transformedSize??t.transformedSize,t.parsedSize=e.parsedSize??t.parsedSize}getSize(){return{...this.size}}getStatement(e){return new l.Statement(this,{source:this.getSourceRange(e),transformed:{start:{...e.start},end:e.end?{...e.end}:void 0}})}getSourceRange(e){let{sourceMap:t}=this;if(!t)return;let r={start:{}},n=t.originalPositionFor({line:e.start.line??0,column:e.start.column??0,bias:1});if((0,o.isNumber)(n.line)&&(r.start={line:n.line,column:n.column??void 0}),e.end){let n=t.originalPositionFor({line:e.end.line??0,column:e.end.column??0});(0,o.isNumber)(n.line)&&(r.end={line:n.line,column:n.column??void 0})}return r}addNormalModule(e){!this.modules.includes(e)&&(this.modules.push(e),e.addConcatenationModule(this))}getNormalModules(){return this.modules.slice()}addConcatenationModule(e){!this.concatenationModules.includes(e)&&this.concatenationModules.push(e)}getConcatenationModules(){return this.concatenationModules.slice()}toData(e){let{isPreferSource:t}=this,r=(0,d.getModuleName)(this.webpackId),n={id:this.id,webpackId:e&&r.indexOf(".")>0?s().relative(e,r):this.webpackId,path:this.path,isPreferSource:t,dependencies:this.dependencies.map(e=>e.id),imported:this.imported.map(e=>e.id),chunks:this.chunks.map(e=>e.id),size:this.getSize(),kind:this.kind};return(this.meta.hasSetEsModuleStatement||this.meta.strictHarmonyModule)&&(n.meta={},this.meta.hasSetEsModuleStatement&&(n.meta.hasSetEsModuleStatement=!0),this.meta.strictHarmonyModule&&(n.meta.strictHarmonyModule=!0)),this.isEntry&&(n.isEntry=this.isEntry),this.modules.length>0&&(n.modules=this.modules.map(e=>e.id)),this.rootModule&&(n.rootModule=this.rootModule.id),this.concatenationModules.length>0&&(n.concatenationModules=this.concatenationModules.map(e=>e.id)),n}}u.kind=n.SDK.ModuleKind},101718:function(e,t,r){"use strict";r.r(t),r.d(t,{Statement:function(){return i}});var n=r("4034");e=r.hmd(e);class i{static getDefaultStatement(e){let t={line:1,column:0},r={start:{...t},end:{...t}};return new i(e,{source:{...r},transformed:{...r}})}constructor(e,t){this.module=e,this.position=t}isSame(e){return this.module.id===e.module.id&&(0,n.isSameRange)(this.position.transformed,e.position.transformed)}getSourcePosition(){let{module:e,position:t}=this;return t.source?t.source:e.getSourceMap()?(t.source=e.getSourceRange(t.transformed),t.source):void 0}getLineCode(){let e=this.module.isPreferSource&&this.position.source,t=this.module.getSource(),r=e?t.source:t.transformed,n=e?this.position.source.start.line:this.position.transformed.start.line;if("number"==typeof n)return r.split("\n")[n-1]}toData(){let e={transformed:this.position.transformed};return this.position.source&&(e.source=this.position.source),{position:e,module:this.module.id}}}},223634:function(e,t,r){"use strict";r.r(t),r.d(t,{ExportInfo:function(){return i}});let n=1;class i{constructor(e,t,r){this.id=n++,this._sideEffects=[],this.name=e,this.identifier=t,this._variable=r}static init(){n=1}get isReExport(){return!!this.from}set variable(e){this._variable=e}get variable(){if(this._variable)return this._variable;if(!this.from||!1===this._variable){this._variable=!1;return}let e=this.getRecursiveExport()?.variable;return!e&&(this._variable=!1),e}addSideEffect(e){this._sideEffects.every(t=>t.id!==e.id)&&(this._sideEffects.push(e),this.from&&this.from.addSideEffect(e))}getSideEffects(){return this._sideEffects.slice()}setFromExport(e){this.from=e}getRecursiveExport(e=1/0){if(0===e)throw Error("`getRecursiveExport` method parameter depth must be greater than 1.");if(!this.from)return this;let t=0,r=this;for(;r.from&&t<e;)t++,r=r.from;return r}toData(){let e={id:this.id,name:this.name,isReExport:this.isReExport,used:this._sideEffects.map(e=>e.id)};return this.from&&(e.from=this.from.id,e.root=this.getRecursiveExport().id),this.variable&&(e.variable=this.variable.id),e}}},57882:function(e,t,r){"use strict";r.r(t);var n=r("497095");r.es(n,t);var i=r("223634");r.es(i,t);var s=r("512689");r.es(s,t);var o=r("988449");r.es(o,t)},497095:function(e,t,r){"use strict";r.r(t),r.d(t,{ModuleGraphModule:function(){return o}});var n=r("223634"),i=r("988449"),s=r("512689");e=r.hmd(e);class o{constructor(e,t,r){this.exports=[],this.sideEffects=[],this.variables=[],this.module=e,this._graph=t,"boolean"==typeof this._dynamic&&(this._dynamic=r)}static init(){n.ExportInfo.init(),i.SideEffect.init(),s.Variable.init()}get dynamic(){return"boolean"==typeof this._dynamic?this._dynamic:this.module.getImported().map(e=>e.getDependencyByModule(this.module)).some(e=>e&&"dynamic"===e.meta.exportsType)}addExportInfo(e){this.exports.push(e),this._graph.addExportInfo(e)}addSideEffect(e){this.sideEffects.push(e),this._graph.addSideEffect(e)}addVariable(e){this.variables.push(e),this._graph.addVariable(e)}getExports(){return this.exports.slice()}getSideEffects(e){return e?this.sideEffects.filter(t=>t.name===e):this.sideEffects.slice()}getOwnExports(){return this.exports.filter(e=>!e.isReExport)}getExport(e){return this.exports.find(t=>t.name===e)}getReExports(){return this.exports.filter(e=>e.isReExport)}getOwnExport(e){return this.getOwnExports().find(t=>t.name===e)}getReExport(e){return this.getReExports().find(t=>t.name===e)}toData(){return{module:this.module.id,dynamic:this.dynamic,exports:this.exports.map(e=>e.id),sideEffects:this.sideEffects.map(e=>e.id),variables:this.variables.map(e=>e.id)}}}},988449:function(e,t,r){"use strict";r.r(t),r.d(t,{SideEffect:function(){return s}}),e=r.hmd(e);let n=1,i=class e{constructor(t,r,i,s,o){this.id=n++,this._exports=[],this.name=t,this.module=r,this.identifier=i,s&&(this.fromDependency=this.module.getDependencyByRequest(s)),o===e.NamespaceSymbol?this.isNameSpace=!0:(this.isNameSpace=!1,this.originName=o)}static init(){n=1}get variable(){if(void 0!==this._variable)return this._variable?this._variable:void 0;let e=this.exports[0]?.getRecursiveExport()?.variable;return this._variable=e??!1,e}get exports(){return this._exports?.slice()??[]}setModuleExport(e){e.getExports().forEach(e=>this.setExportInfo(e))}setExportInfo(e){this._exports.push(e),e.addSideEffect(this)}toData(){let e={id:this.id,name:this.name,identifier:this.identifier.toData(),module:this.module.id};return this.fromDependency&&(e.fromDependency=this.fromDependency.id),this.isNameSpace&&(e.isNameSpace=this.isNameSpace),this.exports.length>0&&(e.exports=this.exports.map(e=>e.id)),this.variable&&(e.variable=this.variable.id),e}};i.NamespaceSymbol=Symbol("namespace");let s=i},512689:function(e,t,r){"use strict";r.r(t),r.d(t,{Variable:function(){return i}}),e=r.hmd(e);let n=1;class i{constructor(e,t,r,i){this.id=n++,this.name=e,this.module=t,this.usedInfo=r,this.identifier=i}static init(){n=1}get isUsed(){return!!this._exported&&this._exported.getSideEffects().length>0}setExportInfo(e){this._exported=e,e.variable=this}getExportInfo(){return this._exported}toData(){let e={id:this.id,name:this.name,module:this.module.id,identifier:this.identifier.toData(),usedInfo:this.usedInfo};return this._exported&&(e.exported=this._exported.id),e}}},4034:function(e,t,r){"use strict";r.r(t),r.d(t,{getModuleName:function(){return d},isSameRange:function(){return s}});var n=r("139378");function i(e,t){return e.line===t.line&&e.column===t.column}function s(e,t){return!!i(e.start,t.start)&&((0,n.isNil)(e.end)||(0,n.isNil)(t.end)?(0,n.isUndefined)(e.end)&&(0,n.isUndefined)(t.end):i(e.end,t.end))}let o=/!/,a=/\s\+\s\d*\smodules$/,l=/^css\s.*node_modules(?!\/)/;function d(e){if(!e)return"";if(o.test(e)){let t=(0,n.last)(e.split(o));if(t?.trim())return t}return a.test(e)?e.replace(a,""):l.test(e)?e.replace(l,""):e}},453330:function(e,t,r){"use strict";r.r(t),r("139378"),r("377410"),r("678741"),r("146641"),r("932603")},316898:function(e,t,r){"use strict";r.r(t);var n=r("453330");r.es(n,t);var i=r("932603");r.es(i,t)},932603:function(e,t,r){"use strict";r.r(t),r("377410")},170459:function(e,t,r){"use strict";r.r(t);var n=r("949689");r.es(n,t)},898878:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},105264:function(e,t){"use strict";var r,n,i,s,o,a;Object.defineProperty(t,"__esModule",{value:!0}),t.RsdoctorClientDiffState=t.RsdoctorClientRoutes=t.RsdoctorClientUrlQuery=void 0,(s=r||(t.RsdoctorClientUrlQuery=r={})).BundleDiffFiles="__bundle_files__",s.ManifestFile="manifest",(o=n||(t.RsdoctorClientRoutes=n={})).Overall="/overall",o.WebpackLoaderOverall="/webpack/loaders/overall",o.WebpackLoaderAnalysis="/webpack/loaders/analysis",o.ModuleResolve="/module/resolve",o.WebpackPlugins="/webpack/plugins",o.BundleSize="/bundle/size",o.ModuleAnalyze="/module/analyze",o.TreeShaking="/treeshaking",o.BundleDiff="/resources/bundle/diff",o.RuleIndex="/resources/rules",o.Uploader="/resources/uploader",o.EmoCheck="/emo/check",(a=i||(t.RsdoctorClientDiffState=i={})).Equal="-",a.Up="UP",a.Down="DOWN"},343900:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},881046:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RsdoctorClientUrl=t.RsdoctorProcessEnvDebugKey=t.RsdoctorMonitorDocBId=t.RsdoctorMonitorWebBId=t.RsdoctorMonitorNodeBId=t.StatsFilePath=t.RsdoctorOutputManifestPath=t.RsdoctorOutputManifest=t.RsdoctorOutputFolder=t.MapExtensions=t.FontExtensions=t.MediaExtensions=t.ImgExtensions=t.HtmlExtension=t.CSSExtension=t.JSExtension=void 0,t.JSExtension=".js",t.CSSExtension=".css",t.HtmlExtension=".html",t.ImgExtensions=[".png",".jpg",".svg",".webp",".jpeg",".gif",".bmp"],t.MediaExtensions=[".mp3",".mp4",".avi",".wav",".flv",".mov",".mpg",".mpeg"],t.FontExtensions=[".ttf",".fnt",".fon",".otf",".woff",".woff2"],t.MapExtensions=[".js.map",".ts.map",".LICENSE.txt"],t.RsdoctorOutputFolder=".rsdoctor",t.RsdoctorOutputManifest="manifest.json",t.RsdoctorOutputManifestPath=`${t.RsdoctorOutputFolder}/${t.RsdoctorOutputManifest}`,t.StatsFilePath="dist/stats.json",t.RsdoctorMonitorNodeBId="Rsdoctor",t.RsdoctorMonitorWebBId="Rsdoctor-Client",t.RsdoctorMonitorDocBId="Rsdoctor-Doc",t.RsdoctorProcessEnvDebugKey="RSDOCTOR_DEBUG",t.RsdoctorClientUrl=""},638159:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorLevel=void 0,(n=r||(t.ErrorLevel=r={}))[n.Ignore=0]="Ignore",n[n.Warn=1]="Warn",n[n.Error=2]="Error"},499982:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},678741:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Plugin=t.Constants=t.Client=t.Thirdparty=t.Rule=t.Linter=t.Modules=t.SDK=t.Logger=t.Err=t.Common=t.Babel=t.Esbuild=t.Manifest=void 0,t.Manifest=s(r("741657")),t.Esbuild=s(r("499982")),t.Babel=s(r("898878")),t.Common=s(r("343900")),t.Err=s(r("638159")),t.Logger=s(r("579841")),t.SDK=s(r("202167")),t.Modules=s(r("625775")),t.Linter=s(r("257274")),t.Rule=s(r("430518")),t.Thirdparty=s(r("811549")),t.Client=s(r("105264")),t.Constants=s(r("881046")),t.Plugin=s(r("387428"))},946615:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Severity=void 0;var n=r("638159");Object.defineProperty(t,"Severity",{enumerable:!0,get:function(){return n.ErrorLevel}})},257274:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r("946615"),t),i(r("757222"),t)},757222:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},579841:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.LogLevel=void 0,(n=r||(t.LogLevel=r={}))[n.Silent=0]="Silent",n[n.Error=1]="Error",n[n.Warning=2]="Warning",n[n.Info=3]="Info",n[n.Debug=4]="Debug",n[n.Verbose=5]="Verbose"},741657:function(e,t){"use strict";var r,n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.RsdoctorManifestClientConstant=t.RsdoctorManifestClientRoutes=void 0,(i=r||(t.RsdoctorManifestClientRoutes=r={})).Overall="Overall",i.WebpackLoaders="Compile.WebpackLoaders",i.ModuleResolve="Compile.ModuleResolve",i.WebpackPlugins="Compile.WebpackPlugins",i.BundleSize="Bundle.BundleSize",i.ModuleGraph="Bundle.ModuleGraph",i.TreeShaking="Bundle.TreeShaking",(n||(t.RsdoctorManifestClientConstant=n={})).WindowPropertyForManifestUrl="__DEVTOOLS_MANIFEST_URL__"},625775:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},882122:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},413709:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},629842:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},387428:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r("882122"),t),i(r("629842"),t),i(r("363345"),t),i(r("413709"),t)},363345:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},105312:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.message=t.code=void 0,t.code="E1001",t.message={code:t.code,title:"Duplicate Packages",type:"markdown",category:"bundle",description:`
|
|
86
|
-
#### Description
|
|
87
|
-
|
|
88
|
-
there is a same name package which bundled more than one version in your application.
|
|
89
|
-
|
|
90
|
-
it is not good to the bundle size of your application.
|
|
91
|
-
|
|
92
|
-
#### General Solution
|
|
93
|
-
|
|
94
|
-
add an entry in \`resolve.alias\` which will configure Webpack to route any package references to a single specified path.
|
|
95
|
-
|
|
96
|
-
For example, if \`lodash\` is duplicated in your bundle, the following configuration would render all Lodash imports to always refer to the \`lodash\` instance found at \`./node_modules/lodash\`:
|
|
97
|
-
|
|
98
|
-
\`\`\`js
|
|
99
|
-
{
|
|
100
|
-
alias: {
|
|
101
|
-
lodash: path.resolve(__dirname, 'node_modules/lodash')
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
\`\`\`
|
|
105
|
-
`}},388659:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.message=t.code=void 0,t.code="E1002",t.message={code:t.code,title:"Default Import Check",type:"markdown",category:"compile",description:`
|
|
106
|
-
#### Description
|
|
107
|
-
|
|
108
|
-
Usually webpack will automatically compatible different modules that has different types, but in a special case, the operation of compatibility will fail.
|
|
109
|
-
That is, when you use \`Default Import\` to import a cjs module, and this cjs module do not have the compatible statement, such as \`exports.default = \`.
|
|
110
|
-
|
|
111
|
-
#### General Solution
|
|
112
|
-
|
|
113
|
-
1. for cjs module, write a \`exports.default = \` statement for default export.
|
|
114
|
-
2. use \`Namespace Import\` for import the cjs module.
|
|
115
|
-
|
|
116
|
-
For example, for the package \`htmlparser2@7.2.0\`:
|
|
117
|
-
|
|
118
|
-
\`\`\`ts
|
|
119
|
-
// you should use this
|
|
120
|
-
import * as Parser from 'htmlparser2';
|
|
121
|
-
|
|
122
|
-
// can not use this
|
|
123
|
-
import Parser from 'htmlparser2';
|
|
124
|
-
\`\`\`
|
|
125
|
-
`}},746580:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.message=t.code=void 0,t.code="E1003",t.message={code:t.code,title:"Loader Performance Optimization",type:"markdown",category:"compile",description:`
|
|
126
|
-
#### Description
|
|
127
|
-
|
|
128
|
-
Usually the slow compile of most projects is due to the slow execution of the loaders.
|
|
129
|
-
|
|
130
|
-
And the loaders always pre-process many unnecessary files, such as \`node_modules files\` and \`already compiled files\`.
|
|
131
|
-
|
|
132
|
-
#### General Solution
|
|
133
|
-
|
|
134
|
-
Set \`exclude\` to the \`module.rules\` of webpack configuration for target loader.
|
|
135
|
-
|
|
136
|
-
For example, if \`node_modules/lodash\` is processed by the \`babel-loader\` that make the compile slowly:
|
|
137
|
-
|
|
138
|
-
\`\`\`
|
|
139
|
-
{
|
|
140
|
-
module: {
|
|
141
|
-
rules: [
|
|
142
|
-
{
|
|
143
|
-
test: /\\.js$/,
|
|
144
|
-
use: 'babel-loader',
|
|
145
|
-
exclude: [
|
|
146
|
-
/node_modules\\/lodash/
|
|
147
|
-
]
|
|
148
|
-
}
|
|
149
|
-
]
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
\`\`\`
|
|
153
|
-
`}},158686:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.message=t.code=void 0,t.code="E1004",t.message={code:t.code,title:"ECMA Version Check",type:"markdown",category:"bundle",description:`
|
|
154
|
-
#### Description
|
|
155
|
-
|
|
156
|
-
Detect if there is a newer version of ECMA syntax in the js bundle file
|
|
157
|
-
`}},643450:function(e,t,r){"use strict";var n,i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return s(t,e),t},a=this&&this.__exportStar||function(e,t){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(t,r)&&i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.RsdoctorRuleClientConstant=t.RuleErrorMap=void 0;let l=o(r("105312")),d=o(r("388659")),c=o(r("746580")),u=o(r("158686"));t.RuleErrorMap={[l.code]:l.message,[d.code]:d.message,[c.code]:c.message,[u.code]:u.message},(n||(t.RsdoctorRuleClientConstant=n={})).UrlQueryForErrorCode="code",a(r("22552"),t)},22552:function(e,t){"use strict";var r,n,i,s;Object.defineProperty(t,"__esModule",{value:!0}),t.RuleMessageCategory=t.RuleMessageCodeEnumerated=void 0,(i=r||(t.RuleMessageCodeEnumerated=r={})).Extend="EXTEND",i.Overlay="OVERLAY",(s=n||(t.RuleMessageCategory=n={})).Compile="compile",s.Bundle="bundle",s.EMO="emo"},383014:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},430518:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r("643450"),t),i(r("383014"),t)},423012:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},183033:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},762353:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},976532:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},719753:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},202167:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r("548051"),t),i(r("758615"),t),i(r("982635"),t),i(r("389258"),t),i(r("423012"),t),i(r("399342"),t),i(r("762757"),t),i(r("766596"),t),i(r("762353"),t),i(r("183033"),t),i(r("718377"),t),i(r("164420"),t),i(r("446147"),t),i(r("976532"),t),i(r("212674"),t),i(r("719753"),t)},212674:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},548051:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},389258:function(e,t){"use strict";var r,n,i,s,o,a;Object.defineProperty(t,"__esModule",{value:!0}),t.ToDataType=t.ModuleKind=t.DependencyKind=void 0,(s=r||(t.DependencyKind=r={}))[s.Unknown=0]="Unknown",s[s.ImportStatement=1]="ImportStatement",s[s.DynamicImport=2]="DynamicImport",s[s.RequireCall=3]="RequireCall",s[s.AMDRequire=4]="AMDRequire",(o=n||(t.ModuleKind=n={}))[o.Normal=0]="Normal",o[o.Concatenation=1]="Concatenation",(a=i||(t.ToDataType=i={}))[a.Normal=0]="Normal",a[a.Lite=1]="Lite",a[a.LiteAndNoAsset=2]="LiteAndNoAsset",a[a.All=3]="All"},766596:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},982635:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},758615:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},399342:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},943866:function(e,t,r){"use strict";var n,i,s,o=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(t,r)&&o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.APIExtends=t.API=void 0,a(r("750028"),t),(n=i||(t.API=i={})).ApplyErrorFix="/api/apply/error/fix",n.Env="/api/env",n.EntryHtml="/index.html",n.Manifest="/api/manifest.json",n.LoadDataByKey="/api/data/key",n.SendAPIDataToClient="/api/socket/send",n.GetProjectInfo="/api/project/info",n.GetClientRoutes="/api/routes",n.ReportLoader="/api/loader/report",n.GetLoaderNames="/api/loader/names",n.GetLoaderChartData="/api/loader/chart/data",n.GetLoaderFileTree="/api/loader/filetree",n.GetLoaderFileDetails="/api/loader/file",n.GetLoaderFolderStatistics="/api/loader/folder/statics",n.GetLoaderFileFirstInput="/api/loader/input",n.GetLoaderFileInputAndOutput="/api/loader/inputandoutput",n.ReportSourceMap="/api/sourcemap/report",n.GetResolverFileTree="/api/resolver/filetree",n.GetResolverFileDetails="/api/resolver/file",n.GetPluginSummary="/api/plugins/summary",n.GetPluginData="/api/plugins/data",n.GetAssetsSummary="/api/graph/assets/summary",n.GetAssetDetails="/api/graph/asset/details",n.GetChunksByModuleId="/api/graph/chunk/module",n.GetModuleDetails="/api/graph/module/details",n.GetModulesByModuleIds="/api/graph/modules/ids",n.GetEntryPoints="/api/graph/entrypoints",n.GetModuleCodeByModuleId="/api/graph/module/code",n.GetModuleCodeByModuleIds="/api/graph/module/codes",n.GetAllModuleGraph="/api/graph/module/all",n.GetAllChunkGraph="/api/graph/chunk/all",n.GetPackageRelationAlertDetails="/api/alerts/details/package/relation",n.GetOverlayAlerts="/api/alerts/overlay",n.BundleDiffManifest="/api/bundle_diff/manifest.json",n.GetBundleDiffSummary="/api/bundle_diff/summary",n.GetTileReportHtml="/api/tile/report",(s||(t.APIExtends=s={})).GetCompileProgess="/api/progress"},750028:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},718377:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ServerAPI=void 0,t.ServerAPI=s(r("943866"))},164420:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.StatementKind=void 0,(n=r||(t.StatementKind=r={}))[n.ImportDefault=100]="ImportDefault",n[n.ImportNamed=101]="ImportNamed",n[n.ImportDefaultWithNamed=102]="ImportDefaultWithNamed",n[n.ImportDefaultWithNamespace=103]="ImportDefaultWithNamespace",n[n.ImportNamespace=104]="ImportNamespace",n[n.ImportSideEffect=105]="ImportSideEffect",n[n.ImportDynamic=106]="ImportDynamic",n[n.ExportDeclaration=200]="ExportDeclaration",n[n.ExportList=201]="ExportList",n[n.ExportDefault=202]="ExportDefault",n[n.ExportAggregating=203]="ExportAggregating",n[n.ExportNamespace=204]="ExportNamespace",n[n.RequireCall=300]="RequireCall",n[n.RequireName=301]="RequireName",n[n.RequireExports=302]="RequireExports",n[n.RequireExportAggregating=303]="RequireExportAggregating",n[n.RequireExportName=304]="RequireExportName",n[n.Unknown=999]="Unknown"},762757:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},446147:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},811549:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},156997:function(e,t,r){"use strict";r.r(t),r.d(t,{getPackageRelationAlertDetails:function(){return i}});var n=r("377410");function i(e,t,r,i,s){return i.slice().reverse().map(i=>{let o=t.find(e=>e.id===i.dependencyId);if(!o)return null;let a=e.find(e=>e.id===o.module);return a?{group:i.group,module:a,dependency:o,relativePath:(0,n.relative)(r,a.path),moduleCode:s?.[a.id]}:null}).filter(Boolean)}},132662:function(e,t,r){"use strict";r.r(t),r.d(t,{decompressText:function(){return o},mergeIntervals:function(){return s}});var n=r("662802"),i=r("257861");function s(e){let t,r;e.sort((e,t)=>e[0]-t[0]);let n=[];for(let i=0;i<e.length;i++)r=e[i],!t||r[0]>t[1]?(t=r,n.push(r)):t[1]=Math.max(t[1],r[1]);return n}function o(e){return(0,n.inflateSync)(i.Buffer.from(e,"base64")).toString()}},289896:function(e,t,r){"use strict";r.r(t),r("678741")},96270:function(e,t,r){"use strict";r.r(t),r.d(t,{APIDataLoader:function(){return d}});var n=r("678741"),i=r("499522"),s=r("673225"),o=r("423150"),a=r("466183"),l=r("156997");class d{constructor(e){this.loader=e,this.loadAPI=this.loadAPI.bind(this)}log(...e){console.log(`[${this.constructor.name}]`,...e)}loadAPI(...e){let[t,r]=e;switch(t){case n.SDK.ServerAPI.API.LoadDataByKey:return this.loader.loadData(r.key);case n.SDK.ServerAPI.API.GetProjectInfo:return Promise.all([this.loader.loadData("root"),this.loader.loadData("pid"),this.loader.loadData("hash"),this.loader.loadData("summary"),this.loader.loadData("configs"),this.loader.loadData("envinfo"),this.loader.loadData("errors")]).then(([e,t,r,n,i,s,o])=>({root:e,pid:t,hash:r,summary:n,configs:i,envinfo:s,errors:o}));case n.SDK.ServerAPI.API.GetClientRoutes:return this.loader.loadManifest().then(e=>{let{enableRoutes:t=[]}=e.client||{};return t});case n.SDK.ServerAPI.API.GetLoaderNames:return this.loader.loadData("loader").then(e=>i.getLoaderNames(e||[]));case n.SDK.ServerAPI.API.GetLoaderChartData:return this.loader.loadData("loader").then(e=>i.getLoaderChartData(e||[]));case n.SDK.ServerAPI.API.GetLoaderFileTree:return this.loader.loadData("loader").then(e=>i.getLoaderFileTree(e||[]));case n.SDK.ServerAPI.API.GetLoaderFileDetails:return this.loader.loadData("loader").then(e=>i.getLoaderFileDetails(r.path,e||[]));case n.SDK.ServerAPI.API.GetLoaderFolderStatistics:return this.loader.loadData("loader").then(e=>i.getLoaderFolderStatistics(r.folder,e||[]));case n.SDK.ServerAPI.API.GetLoaderFileFirstInput:return this.loader.loadData("loader").then(e=>i.getLoaderFileFirstInput(r.file,e||[]));case n.SDK.ServerAPI.API.GetLoaderFileInputAndOutput:return this.loader.loadData("loader").then(e=>i.getLoaderFileFirstInput(r.file,e||[]));case n.SDK.ServerAPI.API.GetResolverFileTree:return this.loader.loadData("resolver").then(e=>s.getResolverFileTree(e||[]));case n.SDK.ServerAPI.API.GetResolverFileDetails:return Promise.all([this.loader.loadData("resolver"),this.loader.loadData("moduleGraph.modules"),this.loader.loadData("moduleCodeMap")]).then(e=>{let t=e[0],n=e[1],i=e[2];return s.getResolverFileDetails(r.filepath,t||[],n||[],i||{})});case n.SDK.ServerAPI.API.GetPluginSummary:return this.loader.loadData("plugin").then(e=>o.getPluginSummary(e||{}));case n.SDK.ServerAPI.API.GetPluginData:return this.loader.loadData("plugin").then(e=>{let{hooks:t,tapNames:n}=r;return o.getPluginData(e||{},t,n)});case n.SDK.ServerAPI.API.GetAssetsSummary:return this.loader.loadData("chunkGraph").then(e=>{let{withFileContent:t=!0}=r,{assets:n=[],chunks:i=[]}=e||{};return a.getAssetsSummary(n,i,{withFileContent:t})});case n.SDK.ServerAPI.API.GetAssetDetails:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let{assetPath:t}=r,{assets:n=[],chunks:i=[]}=e[0]||{},{modules:s=[]}=e[1]||{};return a.getAssetDetails(t,n,i,s)});case n.SDK.ServerAPI.API.GetChunksByModuleId:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let{moduleId:t}=r,{chunks:n=[]}=e[0]||{},{modules:i=[]}=e[1]||{};return a.getChunksByModuleId(t,i,n)});case n.SDK.ServerAPI.API.GetModuleDetails:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let{moduleId:t}=r,{modules:n=[],dependencies:i=[]}=e[1]||{};return a.getModuleDetails(t,n,i)});case n.SDK.ServerAPI.API.GetModulesByModuleIds:return this.loader.loadData("moduleGraph").then(e=>{let{moduleIds:t}=r,{modules:n=[]}=e||{};return a.getModuleIdsByModulesIds(t,n)});case n.SDK.ServerAPI.API.GetEntryPoints:return Promise.all([this.loader.loadData("chunkGraph")]).then(e=>{let[t]=e,{entrypoints:r=[]}=t||{};return a.getEntryPoints(r)});case n.SDK.ServerAPI.API.GetModuleCodeByModuleId:return this.loader.loadData("moduleCodeMap").then(e=>{let{moduleId:t}=r;return e?e[t]:{source:"",transformed:"",parsedSource:""}});case n.SDK.ServerAPI.API.GetModuleCodeByModuleIds:return this.loader.loadData("moduleCodeMap").then(e=>{let{moduleIds:t}=r,n={};return e?(t.forEach(t=>{n[t]=e[t]}),n):[]});case n.SDK.ServerAPI.API.GetAllModuleGraph:return this.loader.loadData("moduleGraph").then(e=>e?.modules);case n.SDK.ServerAPI.API.GetAllChunkGraph:return this.loader.loadData("chunkGraph").then(e=>e?.chunks);case n.SDK.ServerAPI.API.GetPackageRelationAlertDetails:return Promise.all([this.loader.loadData("moduleGraph"),this.loader.loadData("errors"),this.loader.loadData("root"),this.loader.loadData("moduleCodeMap")]).then(e=>{let{id:t,target:n}=r,[i,s=[],o="",a]=e,{modules:d=[],dependencies:c=[]}=i||{},{packages:u=[]}=s.find(e=>e.id===t)||{},{dependencies:p=[]}=u.find(e=>e.target.name===n.name&&e.target.root===n.root&&e.target.version===n.version)||{};return l.getPackageRelationAlertDetails(d,c,o,p,a||{})});case n.SDK.ServerAPI.API.GetOverlayAlerts:return this.loader.loadData("errors").then(e=>(e||[]).filter(e=>e.code===n.Rule.RuleMessageCodeEnumerated.Overlay));case n.SDK.ServerAPI.API.BundleDiffManifest:return this.loader.loadManifest();case n.SDK.ServerAPI.API.GetBundleDiffSummary:return Promise.all([this.loader.loadManifest(),this.loader.loadData("root"),this.loader.loadData("hash"),this.loader.loadData("errors"),this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("moduleCodeMap"),this.loader.loadData("packageGraph"),this.loader.loadData("configs")]).then(([e,t="",r="",n={},i={},s={},o={},a={},l=[]])=>{let d="";return"string"==typeof l[0]?.config?.output?.chunkFilename&&(d=l[0]?.config.output.chunkFilename),{root:t,hash:r,errors:n,chunkGraph:i,moduleGraph:s,packageGraph:a,outputFilename:d,moduleCodeMap:o}});case n.SDK.ServerAPI.API.GetTileReportHtml:return this.loader.loadData("otherReports").then(e=>e?.tileReportHtml);default:throw Error(`API not implement: "${t}"`)}}}},400266:function(e,t,r){"use strict";r.r(t),r.d(t,{getAssetDetails:function(){return h},getAssetsSummary:function(){return p}});var n=r("678741"),i=r("737610"),s=r("344176");function o(e,t){return e.path.slice(-t.length)===t}function a(e,t){return!!t.length&&t.some(t=>o(e,t))}RegExp(`(.*)${/[-|.]/.source}${/[a-z|A-Z|0-9]{4,32}/.source}(${/(?:\.[a-z|A-Z|0-9]{2,}){1,}/.source})$`);function l(e,t){if(t){if("function"==typeof t)e=e.filter(t);else{var r,n;r=e,e="string"==typeof(n=t)?r.filter(e=>o(e,n)):Array.isArray(n)?r.filter(e=>a(e,n)):[]}}return e}function d(e,t,r={}){let{withFileContent:i=!0,filterOrExtensions:s}=r;return(e=e.filter(e=>!a(e,n.Constants.MapExtensions)),s&&(e=l(e,s)),e.length)?{count:e.length,size:e.reduce((e,t)=>e+t.size,0),files:e.map(e=>({path:e.path,size:e.size,initial:c(e,t),content:i?e.content:void 0}))}:{count:0,size:0,files:[]}}function c(e,t){return(0,i.getChunksByAsset)(e,t).some(e=>!!e.initial)}function u(e,t,r={}){return r.filterOrExtensions&&(e=l(e,r.filterOrExtensions)),d(e,t,{...r,filterOrExtensions:e=>c(e,t)})}function p(e,t,r={}){let i={...r,filterOrExtensions:n.Constants.JSExtension},s={...r,filterOrExtensions:n.Constants.CSSExtension},o={...r,filterOrExtensions:n.Constants.ImgExtensions},l={...r,filterOrExtensions:n.Constants.HtmlExtension},c={...r,filterOrExtensions:n.Constants.MediaExtensions},p={...r,filterOrExtensions:n.Constants.FontExtensions},h={...r,filterOrExtensions:e=>!a(e,[n.Constants.JSExtension,n.Constants.CSSExtension,n.Constants.HtmlExtension].concat(n.Constants.ImgExtensions,n.Constants.MediaExtensions,n.Constants.FontExtensions,n.Constants.MapExtensions))};return{all:{total:d(e,t,r)},js:{total:d(e,t,i),initial:u(e,t,i)},css:{total:d(e,t,s),initial:u(e,t,s)},imgs:{total:d(e,t,o)},html:{total:d(e,t,l)},media:{total:d(e,t,c)},fonts:{total:d(e,t,p)},others:{total:d(e,t,h)}}}function h(e,t,r,n){let o=t.find(t=>t.path===e);return{asset:o,chunks:(0,i.getChunksByAsset)(o,r),modules:(0,s.getModulesByAsset)(o,r,n)}}},737610:function(e,t,r){"use strict";function n(e){return e.chunks?e.chunks:[]}r.r(t),r.d(t,{getChunkIdsByAsset:function(){return n},getChunksByAsset:function(){return s},getChunksByChunkIds:function(){return i},getChunksByModuleId:function(){return o}});function i(e,t){return e.length?e.map(e=>{var r;return r=e,t.find(e=>e.id===r)}).filter(Boolean):[]}function s(e,t){return i(n(e),t)}function o(e,t,r){var n,s;let o=t.find(t=>t.id===e);if(!o)return[];return n=o,s=r,n.chunks.length?i(n.chunks,s):[]}},30035:function(e,t,r){"use strict";function n(e,t){return e.dependencies.map(e=>t.find(t=>t.id===e)).filter(Boolean)}r.r(t),r.d(t,{getDependenciesByModule:function(){return n}})},644350:function(e,t,r){"use strict";function n(e){return e}r.r(t),r.d(t,{getEntryPoints:function(){return n}})},466183:function(e,t,r){"use strict";r.r(t);var n=r("400266");r.es(n,t);var i=r("737610");r.es(i,t);var s=r("344176");r.es(s,t);var o=r("30035");r.es(o,t);var a=r("644350");r.es(a,t)},344176:function(e,t,r){"use strict";r.r(t),r.d(t,{getModuleDetails:function(){return a},getModuleIdsByModulesIds:function(){return o},getModulesByAsset:function(){return s}});var n=r("737610"),i=r("30035");function s(e,t,r){let i=(0,n.getChunkIdsByAsset)(e);return function(e,t){let r=[];return e.forEach(e=>{var n,i;(n=e,i=t,(function(e){let{modules:t=[]}=e;return t})(n).map(e=>i.find(t=>t.id===e)).filter(Boolean)).forEach(e=>{!r.filter(t=>t.id===e.id).length&&r.push(e)})}),r}((0,n.getChunksByChunkIds)(i,t),r)}function o(e,t){return e.map(e=>t.find(t=>t.id===e)).filter(Boolean)}function a(e,t,r){let n=t.find(t=>t.id===e);return{module:n,dependencies:(0,i.getDependenciesByModule)(n,r)}}},146641:function(e,t,r){"use strict";r.r(t),r.d(t,{Data:function(){return d},Loader:function(){return s},Manifest:function(){return i},Resolver:function(){return a},Summary:function(){return n},Time:function(){return o},Url:function(){return l}});var n=r("679610"),i=r("696528"),s=r("499522"),o=r("814399");r("132662");var a=r("673225");r("466183"),r("289896");var l=r("230514");r("423150");var d=r("96270");r("156997"),r("287341"),r("752352")},499522:function(e,t,r){"use strict";r.r(t),r.d(t,{LoaderInternalPropertyName:function(){return g},findLoaderTotalTiming:function(){return i},getLoaderChartData:function(){return d},getLoaderCosts:function(){return o},getLoaderFileDetails:function(){return u},getLoaderFileFirstInput:function(){return h},getLoaderFileInputAndOutput:function(){return f},getLoaderFileTree:function(){return c},getLoaderFolderStatistics:function(){return p},getLoaderNames:function(){return a},getLoadersCosts:function(){return s},getLoadersTransformData:function(){return l},isVue:function(){return m}});var n=r("132662");function i(e){let t=1/0,r=-1/0;for(let n=0;n<e.length;n++){let i=e[n];i.startAt<=t&&(t=i.startAt),i.endAt>=r&&(r=i.endAt)}return{start:t,end:r}}function s(e,t){let r={},i={};t.forEach(t=>{e(t)?(!r[t.pid]&&(r[t.pid]=[]),r[t.pid].push([t.startAt,t.endAt])):(!i[t.pid]&&(i[t.pid]=[]),i[t.pid].push([t.startAt,t.endAt]))});let s=0,o=Object.keys(r);for(let e=0;e<o.length;e++){let t=o[e],a=(0,n.mergeIntervals)(r[t]),l=(0,n.mergeIntervals)(i[t]||[]).filter(([e,t])=>a.some(r=>e>=r[0]&&t<=r[1])),d=a.length?a.reduce((e,t)=>e+=t[1]-t[0],0):0;s+=d-(l.length?l.reduce((e,t)=>e+=t[1]-t[0],0):0)}return s}function o(e,t){let r=t.filter(t=>t!==e&&t.pid===e.pid&&!!(t.startAt>=e.startAt)&&!!(t.endAt<=e.endAt)||!1),i=e.endAt-e.startAt;if(r.length){let t=r.map(t=>[Math.max(t.startAt,e.startAt),Math.min(t.endAt,e.endAt)]);(0,n.mergeIntervals)(t).forEach(e=>{let t=e[1]-e[0];i-=t})}return i}function a(e){let t=new Set;return e.forEach(e=>e.loaders.forEach(e=>t.add(e.loader))),[...t]}function l(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(let e=0;e<n.loaders.length;e++){let r=n.loaders[e];t.push(r)}}return t}function d(e){let t=[],r=l(e);return e.forEach(e=>{e.loaders.forEach(n=>{t.push({loader:n.loader,isPitch:n.isPitch,startAt:n.startAt,endAt:n.endAt,pid:n.pid,sync:n.sync,resource:e.resource.path,costs:o(n,r)})})}),t}function c(e){let t=l(e);return e.map(e=>{let{loaders:r,resource:n}=e;return{path:n.path,loaders:r.map(e=>({loader:e.loader,path:e.path,errors:e.errors,costs:o(e,t)}))}})}function u(e,t){let r=t.find(t=>t.resource.path===e);if(!r)throw Error(`"${e}" not match any loader data`);let n=l(t);return{...r,loaders:r.loaders.map(e=>({...e,costs:o(e,n)}))}}function p(e,t){let r=t.filter(t=>{let{path:r}=t.resource;return r.startsWith(e)}),n=l(t);return r.reduce((e,t)=>{let{loaders:r}=t;return r.forEach(t=>{let r=e.find(e=>e.loader===t.loader),i=o(t,n);r?(r.files++,r.costs+=i):e.push({loader:t.loader,path:t.path,files:1,costs:i})}),e},[])}function h(e,t){for(let r=0;r<t.length;r++){let n=t[r];if(n.resource.path===e){let e=n.loaders.filter(e=>!e.isPitch);if(!e.length)return"";return e[0].input||""}}return""}function f(e,t,r,n){for(let i=0;i<n.length;i++){let s=n[i];if(s.resource.path===e)for(let e=0;e<s.loaders.length;e++){let n=s.loaders[e];if(n.loader===t&&n.loaderIndex===r)return{input:n.input||"",output:n.result||""};return{input:"",output:""}}}return{input:"",output:""}}let g="__l__",m=e=>e.options.module.rules.some(e=>!!(e&&"object"==typeof e&&e.test instanceof RegExp&&e.test?.test(".vue"))||!1)},696528:function(e,t,r){"use strict";r.r(t),r.d(t,{fetchShardingData:function(){return o},isShardingData:function(){return s}});var n=r("132662"),i=r("230514");function s(e){return!!(Array.isArray(e)&&e.length>0&&e.every(e=>(0,i.isRemoteUrl)(e)))||!1}async function o(e,t){let r=await Promise.all(e.map(e=>t(e))),i=0===r.length?[]:r.reduce((e,t)=>e+t);return"object"==typeof i?i:JSON.parse((0,n.decompressText)(i))}},752352:function(e,t,r){"use strict";r.r(t),r("139378");let n=/[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*/;RegExp(`(?:${/(?:node_modules|~)(?:\/\.pnpm)?/.source}/)(?:(?:@${n.source}[/|+])?(?:${n.source}\\+)*(?:${n.source})(?:${/@[\w|\-|_|.]+/.source})?)(?:_(?:@${n.source}[/|+])?(?:${n.source})(?:@${n.source})?)*/`,"g")},423150:function(e,t,r){"use strict";function n(e){return Object.keys(e)}function i(e){let t=n(e),r=new Set;return t.forEach(t=>{e[t].forEach(e=>{r.add(e.tapName)})}),[...r]}function s(e){return{hooks:n(e),tapNames:i(e)}}function o(e,t=[],r=[]){let s=n(e).filter(e=>(!t.length||-1!==t.indexOf(e))&&!0);return s.length?i(e).reduce((t,n)=>r.length&&-1===r.indexOf(n)?t:(s.forEach(r=>{let i=e[r].filter(e=>e.tapName===n);0!==i.length&&t.push({tapName:n,hook:r,data:i.map(e=>({startAt:e.startAt,endAt:e.endAt,costs:e.costs,type:e.type}))})}),t),[]):[]}r.r(t),r.d(t,{getPluginData:function(){return o},getPluginSummary:function(){return s}})},673225:function(e,t,r){"use strict";r.r(t),r.d(t,{getResolverFileDetails:function(){return o},getResolverFileTree:function(){return s},isResolveSuccessData:function(){return i}});var n=r("132662");function i(e){return!!e.result}function s(e){return e.map(e=>({issuerPath:e.issuerPath}))}function o(e,t,r,s){let o=r.find(t=>t.path===e),a=t.filter(t=>t.issuerPath===e),l=o&&s&&s[o.id]?s[o.id].source:"",d=a.reduce((e,t)=>t.request&&i(t)?e.replace(RegExp(`["']${t.request}["']`),`"${t.result}"`):e,l);return{filepath:e,before:l,after:d,resolvers:a.map(e=>({...e,costs:function(e,t){let r=t.filter(t=>t!==e&&t.pid===e.pid&&t.startAt>=e.startAt&&t.endAt<=e.endAt),i=e.endAt-e.startAt;if(r.length){let t=r.map(t=>[Math.max(t.startAt,e.startAt),Math.min(t.endAt,e.endAt)]);(0,n.mergeIntervals)(t).forEach(e=>{let t=e[1]-e[0];i-=t})}return i}(e,t)}))}}},287341:function(e,t,r){"use strict";r.r(t);var n,i=((n=i||{}).Bootstrap="bootstrap->rspack:beforeCompile",n.Compile="rspack:beforeCompile->afterCompile",n.Done="rspack:afterCompile->done",n.Minify="rspack:minify(rspack:optimizeChunkAssets)",n)},679610:function(e,t,r){"use strict";r.r(t),r.d(t,{SummaryCostsDataName:function(){return i}});var n,i=((n=i||{}).Bootstrap="bootstrap->beforeCompile",n.Compile="beforeCompile->afterCompile",n.Done="afterCompile->done",n.Minify="minify(webpack4:optimizeChunkAssets|webpack5:processAssets|rspack:processAssets)",n)},814399:function(e,t,r){"use strict";r.r(t),r.d(t,{formatCosts:function(){return a},getCurrentTimestamp:function(){return l},getUnit:function(){return o},toFixedDigits:function(){return s}});var n=r("173656"),i=r("173656");function s(e,t=2){return 0===t?Math.floor(e):+e.toFixed(t)}function o(e,t){let r;return r="m"===t?e>1?"mins":"min":e>1?"hours":"hour"}function a(e){if((e=Number(e))>=1e3){let t=e/1e3;if(t>=60){let e=t/60;if(e>=60){let t=s(e/60,0),r=s(e%60,1),n=o(t,"h");return r>0?`${t}${n} ${r}${o(r,"m")}`:`${t}${n}`}let r=o(e=s(e,0),"m"),n=s(t%60,0);return n>0?`${e}${r} ${n}s`:`${e}${r}`}return`${s(t,1)}s`}if(e>=10)return`${+s(e,0)}ms`;if(e>=1)return`${+s(e,1)}ms`;let t=+s(e,2);return 0===t&&(t=+s(e,3)),`${t}ms`}function l(e,t){let r=(0,n.hrtime)(t);return e+1e3*r[0]+(i.env.VITEST?Math.round(r[1]/1e6):r[1]/1e6)}},230514:function(e,t,r){"use strict";r.r(t),r.d(t,{isRemoteUrl:function(){return s},isUrl:function(){return i}});var n=r("377410");function i(e){return/^https?:\/\//.test(e)}function s(e){if("string"==typeof e){var t;if(i(e)||(t=e,(0,n.isAbsolute)(t)))return!0}return!1}},771015:function(e,t,r){"use strict";r.r(t),r("896386"),r("139378")},47665:function(e,t,r){"use strict";r.r(t);var n=r("771015");r.es(n,t);var i=r("719263");r.es(i,t)},719263:function(e,t,r){"use strict";r.r(t),r("771015")},279381:function(e,t,r){"use strict";r.r(t);var n=r("47665");r.es(n,t);var i=r("77383");r.es(i,t)},709964:function(e,t,r){"use strict";r.r(t),r.d(t,{asserts:function(){return o}});var n=r("139378");function i(e){return(0,n.isObject)(e)&&"type"in e}function s(e){return t=>i(t)&&t.type===e}let o={isProgram:s("Program"),isEmptyStatement:s("EmptyStatement"),isBlockStatement:s("BlockStatement"),isStaticBlock:s("StaticBlock"),isExpressionStatement:s("ExpressionStatement"),isIfStatement:s("IfStatement"),isLabeledStatement:s("LabeledStatement"),isBreakStatement:s("BreakStatement"),isContinueStatement:s("ContinueStatement"),isWithStatement:s("WithStatement"),isSwitchStatement:s("SwitchStatement"),isReturnStatement:s("ReturnStatement"),isThrowStatement:s("ThrowStatement"),isTryStatement:s("TryStatement"),isWhileStatement:s("WhileStatement"),isDoWhileStatement:s("DoWhileStatement"),isForStatement:s("ForStatement"),isForInStatement:s("ForInStatement"),isForOfStatement:s("ForOfStatement"),isDebuggerStatement:s("DebuggerStatement"),isFunctionDeclaration:s("FunctionDeclaration"),isVariableDeclaration:s("VariableDeclaration"),isVariableDeclarator:s("VariableDeclarator"),isChainExpression:s("ChainExpression"),isThisExpression:s("ThisExpression"),isArrayExpression:s("ArrayExpression"),isObjectExpression:s("ObjectExpression"),isPrivateIdentifier:s("PrivateIdentifier"),isProperty:s("Property"),isPropertyDefinition:s("PropertyDefinition"),isFunctionExpression:s("FunctionExpression"),isSequenceExpression:s("SequenceExpression"),isUnaryExpression:s("UnaryExpression"),isBinaryExpression:s("BinaryExpression"),isAssignmentExpression:s("AssignmentExpression"),isUpdateExpression:s("UpdateExpression"),isLogicalExpression:s("LogicalExpression"),isConditionalExpression:s("ConditionalExpression"),isNewExpression:s("NewExpression"),isSwitchCase:s("SwitchCase"),isCatchClause:s("CatchClause"),isIdentifier:s("Identifier"),isLiteral:s("Literal"),isSuper:s("Super"),isSpreadElement:s("SpreadElement"),isArrowFunctionExpression:s("ArrowFunctionExpression"),isYieldExpression:s("YieldExpression"),isTemplateLiteral:s("TemplateLiteral"),isTaggedTemplateExpression:s("TaggedTemplateExpression"),isTemplateElement:s("TemplateElement"),isObjectPattern:s("ObjectPattern"),isArrayPattern:s("ArrayPattern"),isRestElement:s("RestElement"),isAssignmentPattern:s("AssignmentPattern"),isClassBody:s("ClassBody"),isClassDeclaration:s("ClassDeclaration"),isClassExpression:s("ClassExpression"),isMetaProperty:s("MetaProperty"),isImportDeclaration:s("ImportDeclaration"),isImportSpecifier:s("ImportSpecifier"),isImportExpression:s("ImportExpression"),isImportDefaultSpecifier:s("ImportDefaultSpecifier"),isImportNamespaceSpecifier:s("ImportNamespaceSpecifier"),isExportNamedDeclaration:s("ExportNamedDeclaration"),isExportSpecifier:s("ExportSpecifier"),isExportDefaultDeclaration:s("ExportDefaultDeclaration"),isExportAllDeclaration:s("ExportAllDeclaration"),isAwaitExpression:s("AwaitExpression"),isMethodDefinition:s("MethodDefinition"),isMemberExpression:s("MemberExpression"),isComment:e=>i(e)&&("Line"===e.type||"Block"===e.type),isDirective:e=>o.isExpressionStatement(e)&&"directive"in e,isSimpleCallExpression:e=>i(e)&&"CallExpression"===e.type,isAssignmentProperty:e=>o.isProperty(e)&&"init"===e.kind,isSimpleLiteral:e=>o.isLiteral(e)&&!o.isRegExpLiteral(e)&&!o.isBigIntLiteral(e),isRegExpLiteral:e=>o.isLiteral(e)&&"regex"in e,isBigIntLiteral:e=>o.isLiteral(e)&&"bigint"in e,isExportStatement:e=>o.isExportAllDeclaration(e)||o.isExportDefaultDeclaration(e)||o.isExportNamedDeclaration(e)}},77383:function(e,t,r){"use strict";r.r(t);var n=r("709964");r.es(n,t);var i=r("890042");r.es(i,t);var s=r("823396");r.es(s,t);var o=r("994683");r.es(o,t)},890042:function(e,t,r){"use strict";r.r(t);var n=r("299738"),i=r("328385");r("828272");var s=r("709964");r("823396"),n.Parser.extend(i.importAssertions);let o=n.Parser.extend(i.importAssertions);(e,t)=>o.parse(e,t),s.asserts},994683:function(e,t,r){"use strict";r.r(t),r.d(t,{ECMAVersion:function(){return i}});var n,i=((n=i||{}).ES5="ES5",n.ES6="ES6",n.ES7P="ES7+",n)},823396:function(e,t,r){"use strict";r.r(t),r.d(t,{canParse:function(){return u},detectECMAVersion:function(){return f},getDefaultImports:function(){return o},getIdentifierInDeclaration:function(){return l},getIdentifierInExport:function(){return c},getIdentifierInImport:function(){return d},getIdentifierInPattern:function(){return a},isES5:function(){return p},isES6:function(){return h},isSameSemantics:function(){return function e(t,r){if(t.type!==r.type)return!1;switch(t.type){case"CallExpression":return t.arguments.length===r.arguments.length&&!!t.optional==!!r.optional&&e(t.callee,r.callee)&&t.arguments.every((t,n)=>e(t,r.arguments[n]));case"MemberExpression":return t.computed===r.computed&&!!t.optional==!!r.optional&&e(t.object,r.object)&&e(t.property,r.property);case"Identifier":return t.name===r.name;case"Literal":if(s.asserts.isSimpleLiteral(t)&&s.asserts.isSimpleLiteral(r))return t.value===r.value;return t.raw===r.raw;case"ObjectExpression":return t.properties.length===r.properties.length&&t.properties.every((t,n)=>e(t,r.properties[n]));case"Property":return t.computed===r.computed&&t.kind===r.kind&&t.method===r.method&&e(t.key,r.key)&&e(t.value,r.value);default:throw Error(`Unknown node type: ${t.type}`)}}}});var n=r("299738"),i=r("994683"),s=r("709964");function o(e){return e.body.filter(e=>{if("ImportDeclaration"!==e.type)return!1;let t=e?.specifiers?.[0];return t?.type==="ImportDefaultSpecifier"||!1})}function a(e,t){if(s.asserts.isIdentifier(t)&&t.name===e)return t;if(s.asserts.isObjectPattern(t))for(let r of t.properties){if(s.asserts.isAssignmentProperty(r))return a(e,r.value);if(s.asserts.isRestElement(r))return a(e,r)}if(s.asserts.isArrayPattern(t)){for(let r of t.elements)if(r){let t=a(e,r);if(t)return t}}return s.asserts.isRestElement(t)?a(e,t.argument):s.asserts.isAssignmentPattern(t)?a(e,t.left):void 0}function l(e,t){function r(t){return s.asserts.isIdentifier(t.id)&&t.id.name===e?t.id:void 0}return s.asserts.isFunctionDeclaration(t)||s.asserts.isClassDeclaration(t)?r(t):s.asserts.isVariableDeclaration(t)?t.declarations.find(t=>a(e,t.id))?.id:void 0}function d(e,t){if(s.asserts.isImportDeclaration(t)){for(let r of t.specifiers??[])if(r.local.name===e)return r.local}}function c(e,t){if(s.asserts.isExportNamedDeclaration(t)){if(t.declaration)return l(e,t.declaration);for(let r of t.specifiers??[])if(r.exported.name===e)return r.exported}if(s.asserts.isExportAllDeclaration(t)&&t.exported&&t.exported.name===e)return t.exported}function u(e,t){try{return(0,n.parse)(e,{ecmaVersion:t,sourceType:"number"==typeof t&&t<=5?"script":"module"}),!0}catch(e){return!1}}function p(e){return u(e,5)}function h(e){return u(e,6)}function f(e){if(h(e))return p(e)?i.ECMAVersion.ES5:i.ECMAVersion.ES6;return i.ECMAVersion.ES7P}},884345:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII="},981266:function(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},359394:function(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},239504:function(e){"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDQ4IDQ4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik01IDI0TDQzIDI0IiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PHBhdGggZD0iTTI4IDRIMjBDMTguODk1NCA0IDE4IDQuODk1NDMgMTggNlYxNEMxOCAxNS4xMDQ2IDE4Ljg5NTQgMTYgMjAgMTZIMjhDMjkuMTA0NiAxNiAzMCAxNS4xMDQ2IDMwIDE0VjZDMzAgNC44OTU0MyAyOS4xMDQ2IDQgMjggNFoiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzMzMyIgc3Ryb2tlLXdpZHRoPSI0IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PHBhdGggZD0iTTE2IDMySDhDNi44OTU0MyAzMiA2IDMyLjg5NTQgNiAzNFY0MkM2IDQzLjEwNDYgNi44OTU0MyA0NCA4IDQ0SDE2QzE3LjEwNDYgNDQgMTggNDMuMTA0NiAxOCA0MlYzNEMxOCAzMi44OTU0IDE3LjEwNDYgMzIgMTYgMzJaIiBmaWxsPSJub25lIiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik00MCAzMkgzMkMzMC44OTU0IDMyIDMwIDMyLjg5NTQgMzAgMzRWNDJDMzAgNDMuMTA0NiAzMC44OTU0IDQ0IDMyIDQ0SDQwQzQxLjEwNDYgNDQgNDIgNDMuMTA0NiA0MiA0MlYzNEM0MiAzMi44OTU0IDQxLjEwNDYgMzIgNDAgMzJaIiBmaWxsPSJub25lIiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik0yNCAyNFYxNiIgc3Ryb2tlPSIjMzMzIiBzdHJva2Utd2lkdGg9IjQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik0zNiAzMlYyNCIgc3Ryb2tlPSIjMzMzIiBzdHJva2Utd2lkdGg9IjQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik0xMiAzMlYyNCIgc3Ryb2tlPSIjMzMzIiBzdHJva2Utd2lkdGg9IjQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg=="},451019:function(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTIwMCAxMjAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Im02MDAgMCA1MzAuMyAzMDB2NjAwbC01MzAuMyAzMDAtNTMwLjMtMzAwdi02MDB6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0ibTEwMzUuNiA4NzkuMy00MTguMSAyMzYuNXYtMTg0LjJsMjYwLjUtMTQzLjN6bTI4LjYtMjUuOXYtNDk0LjZsLTE1MyA4OC4zdjMxNy45em0tOTAxLjUgMjUuOSA0MTguMSAyMzYuNXYtMTg0LjJsLTI2MC41LTE0My4zem0tMjguNi0yNS45di00OTQuNmwxNTMgODguM3YzMTcuOXptMTcuOS01MjYuNiA0MjguOC0yNDIuNnYxNzguMWwtMjc0LjcgMTUxLjEtMi4xIDEuMnptODk0LjMgMC00MjguOC0yNDIuNnYxNzguMWwyNzQuNyAxNTEuMSAyLjEgMS4yeiIgZmlsbD0iIzhlZDZmYiIvPjxwYXRoIGQ9Im01ODAuOCA4ODkuNy0yNTctMTQxLjN2LTI4MGwyNTcgMTQ4LjR6bTM2LjcgMCAyNTctMTQxLjN2LTI4MGwtMjU3IDE0OC40em0tMjc2LjMtNDUzLjcgMjU4LTE0MS45IDI1OCAxNDEuOS0yNTggMTQ5eiIgZmlsbD0iIzFjNzhjMCIvPjwvc3ZnPg=="},176930:function(e,t,r){"use strict";r.r(t);var n=r("397458"),i=r("318005"),s=r("667351"),o=r("131646"),a=r("277422"),l=r("588113"),d=r("652983"),c=r("482435"),u=r("175169"),p=r("490070");let{PageState:h,Theme:f}=i.Constants;t.default=()=>{let e=(0,a.useDetectIfCloudIdeEnv)(),[t,r]=(0,d.useState)(h.Success),[g,m]=(0,d.useState)({...s.defaultConfig.viewMode}),[x,y]=(0,d.useState)(),[j,S]=(0,d.useState)(s.defaultConfig.theme);if(t===i.Constants.PageState.Fail){let e=(0,a.getDemoUrl)();return(0,n.jsxs)(l.Space,{direction:"vertical",style:{padding:14},children:[(0,n.jsx)(l.Typography.Text,{strong:!0,style:{fontSize:16},children:"load json file of Rsdoctor failed."}),(0,n.jsxs)(l.Typography.Text,{children:["try to use ",(0,n.jsx)(l.Typography.Text,{keyboard:!0,children:"command + r"})," to refresh page."]}),null,(0,n.jsx)(l.Divider,{}),(0,n.jsx)(l.Space,{direction:"vertical",style:{width:"100%"},children:(0,n.jsxs)(l.Typography.Text,{style:{fontSize:16},children:["you can",(0,n.jsxs)(l.Typography.Text,{strong:!0,style:{fontSize:"inherit"},children:[" ","upload a file"," "]}),"in the area below to analyze your project."]})}),(0,n.jsx)(l.Divider,{}),e?(0,n.jsxs)(l.Typography.Text,{style:{fontSize:16},children:["or you can open the"," ",(0,n.jsx)(l.Typography.Text,{strong:!0,style:{fontSize:"inherit"},children:(0,n.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",children:"demo"})})," ","to get started with the Rsdoctor."]}):null]})}return(0,n.jsx)(u.HashRouter,{children:(0,n.jsx)(s.ConfigContext.Provider,{value:{...s.defaultConfig,theme:j,setTheme:e=>{S(e),(0,a.setThemeToStorage)(e)},pageState:t,json:x,viewMode:g,setManifest:y,setPageState:r,setViewMode(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r={...g,...e};m(r),t&&(0,a.setViewModeToStorage)(r)}},children:(0,n.jsx)(s.ConfigContext.Consumer,{children:r=>(0,n.jsx)(l.ConfigProvider,{locale:(0,a.getLocale)(r.locale),theme:{algorithm:j===f.Dark?l.theme.darkAlgorithm:l.theme.defaultAlgorithm},children:(0,n.jsx)(o.Layout,{children:(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(l.Alert,{message:"Warning",description:(0,n.jsx)("a",{href:window.location.href.replace(/https/,"http"),children:`Please jump to\u{FF1A}${window.location.href.replace(/https/,"http")}`}),type:"warning",showIcon:!0,closable:!0}),(0,n.jsx)(c.ErrorBoundary,{FallbackComponent:e=>{let{error:r,resetErrorBoundary:i}=e;return(0,n.jsx)(l.Result,{status:"error",title:"Sorry, something went wrong.",extra:(0,n.jsx)(l.Button,{type:"primary",onClick:i,loading:t===h.Pending,children:"Reload"}),children:(0,n.jsxs)(l.Typography.Paragraph,{children:[(0,n.jsx)(l.Typography.Title,{level:3,children:"Error Stack"}),(0,n.jsx)("pre",{children:r.stack||r.message})]})})},onReset:()=>{window.location.reload()},children:(0,n.jsx)(p.default,{})})]})})})})})})}},569506:function(e,t,r){"use strict";r.r(t);var n=r("397458");r("263396");var i=r("176930"),s=r("278520");r("864936");let o=document.getElementById("root");s.createRoot(o).render((0,n.jsx)(i.default,{}));let a=document.createElement("link");a.setAttribute("type","image/x-icon"),a.setAttribute("rel","icon"),a.setAttribute("href","https://lf3-static.bytednsdoc.com/obj/eden-cn/lognuvj/rsdoctor/logo/rsdoctor.png"),document.head.appendChild(a)},490070:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return o}}),r("342773"),r("805470"),r("353779"),r("627743"),r("880568");var n=r("397458");r("652983");var i=r("175169"),s=r("283177");function o(){let e=[{path:s.BundleSize.route,element:(0,n.jsx)(s.BundleSize.Page,{})},{path:s.LoaderFiles.route,element:(0,n.jsx)(s.LoaderFiles.Page,{})},{path:s.LoaderFiles.route,element:(0,n.jsx)(s.LoaderFiles.Page,{})},{path:s.PluginsAnalyze.route,element:(0,n.jsx)(s.PluginsAnalyze.Page,{})},{path:s.ModuleResolve.route,element:(0,n.jsx)(s.ModuleResolve.Page,{})},{path:s.LoaderTimeline.route,element:(0,n.jsx)(s.LoaderTimeline.Page,{})},{path:s.RuleIndex.route,element:(0,n.jsx)(s.RuleIndex.Page,{})},{path:s.TreeShaking.route,element:(0,n.jsx)(s.TreeShaking.TreeShakingPage,{})}].filter(e=>!!e);return(0,n.jsxs)(i.Routes,{children:[(0,n.jsx)(i.Route,{path:"/",element:(0,n.jsx)(s.Overall.Page,{})}),(0,n.jsx)(i.Route,{path:s.Overall.route,element:(0,n.jsx)(s.Overall.Page,{})}),e.map(e=>(0,n.jsx)(i.Route,{path:e.path,element:e.element},e.path))]})}},864936:function(e){},271338:function(e){},388139:function(e){},403028:function(e){},376179:function(e){},313842:function(e){},767546:function(e){},264072:function(e){},800255:function(e){},767152:function(e){},102394:function(e){},238330:function(e){},923273:function(e){},933712:function(e){},777893:function(e){},606156:function(){},841037:function(){}},s={};function o(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={id:e,loaded:!1,exports:{}};return i[e].call(r.exports,r,r.exports,o),r.loaded=!0,r.exports}o.m=i,o.es=function(e,t){return Object.keys(e).forEach(function(r){"default"!==r&&!Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),e},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.e=function(){return Promise.resolve()},o.k=function(e){return""+e+".css"},o.u=function(e){return"resource/js/async/"+e+"."+({432:"6eb18a99",811:"63649e86"})[e]+".js"},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.hmd=function(e){return!(e=Object.create(e)).children&&(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=function(e){return e.paths=[],!e.children&&(e.children=[]),e},e=[],o.O=function(t,r,n,i){if(r){i=i||0;for(var s=e.length;s>0&&e[s-1][2]>i;s--)e[s]=e[s-1];e[s]=[r,n,i];return}for(var a=1/0,s=0;s<e.length;s++){for(var r=e[s][0],n=e[s][1],i=e[s][2],l=!0,d=0;d<r.length;d++)a>=i&&Object.keys(o.O).every(function(e){return o.O[e](r[d])})?r.splice(d--,1):(l=!1,i<a&&(a=i));if(l){e.splice(s--,1);var c=n();void 0!==c&&(t=c)}}return t},o.p="/",o.b=document.baseURI||self.location.href,t={980:0},o.O.j=function(e){return 0===t[e]},r=function(e,r){var n=r[0],i=r[1],s=r[2],a,l,d=0;if(n.some(function(e){return 0!==t[e]})){for(a in i)o.o(i,a)&&(o.m[a]=i[a]);if(s)var c=s(o)}for(e&&e(r);d<n.length;d++)l=n[d],o.o(t,l)&&t[l]&&t[l][0](),t[l]=0;return o.O(c)},(n=self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).forEach(r.bind(null,0)),n.push=r.bind(null,n.push.bind(n));var a=o.O(void 0,["670","624","889","786","531","242","159","86","790","387","488","25","297","606","310","685","305","117"],function(){return o("569506")});o.O(a)}();
|