@rsdoctor/client 2.0.0-beta.2 → 2.0.0-beta.4

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.
@@ -1,112 +0,0 @@
1
- "use strict";(self.rspackChunk_rsdoctor_client=self.rspackChunk_rsdoctor_client||[]).push([[187],{62253(){},70492(e,t){t.A={container:"container-t1WME9",badgeContainer:"badgeContainer-K7EgOu"}},17255(){},77172(){},8418(e,t){t.A={title:"title-BZ9xk1"}},2895(e,t){t.A={text:"text-QI6k9S"}},40544(e,t){t.A={loaderAnalysis:"loaderAnalysis-h6mG3n",dividerDiv:"dividerDiv-hrfVKQ",divider:"divider-hnPRxv",box:"box-lFdvrG",keyword:"keyword-UO64w1",textBox:"textBox-sVZZ_A",text:"text-omPvlh",space:"space-qT5CaN",executions:"executions-uZxmQC",timeline:"timeline-wMFXyU",loader:"loader-PHR4ca",selected:"selected-wUMOH3"}},82073(){},31041(){},6451(){},56743(){},22890(){},22700(e,t,r){var n=r(64558);r(1102),t.A=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",fillRule:"evenodd",style:{flex:"none",lineHeight:1},viewBox:"0 0 24 24",...e,children:(0,n.jsx)("path",{d:"M22.106 5.68 12.5.135a1 1 0 0 0-.998 0L1.893 5.68a.84.84 0 0 0-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a1 1 0 0 0 .998 0l9.608-5.547a.84.84 0 0 0 .42-.727V6.407a.84.84 0 0 0-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 0 0-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514"})})},97558(e,t,r){var n=r(64558);r(1102),t.A=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",style:{flex:"none",lineHeight:1},viewBox:"0 0 24 24",...e,children:(0,n.jsx)("path",{fill:"#32F08C",d:"M24 20.541H3.428v-3.426H0V3.4h24v17.14zM3.428 17.115h17.144V6.827H3.428zm8.573-5.196-2.425 2.424-2.424-2.424 2.424-2.424zm6.857-.001-2.424 2.423-2.425-2.423 2.425-2.425z"})})},31008(e,t,r){var n=r(64558);r(1102),t.A=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:100,height:100,fill:"none",viewBox:"0 0 100 100",...e,children:[(0,n.jsx)("mask",{id:"vscode_svg__a",width:100,height:100,x:0,y:0,"mask-type":"alpha",maskUnits:"userSpaceOnUse",children:(0,n.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M70.912 99.317a6.22 6.22 0 0 0 4.96-.19l20.589-9.907A6.25 6.25 0 0 0 100 83.587V16.413a6.25 6.25 0 0 0-3.54-5.632L75.874.874a6.23 6.23 0 0 0-7.104 1.21L29.355 38.04 12.187 25.01a4.16 4.16 0 0 0-5.318.236l-5.506 5.009a4.17 4.17 0 0 0-.004 6.162L16.247 50 1.36 63.583a4.17 4.17 0 0 0 .004 6.162l5.506 5.01a4.16 4.16 0 0 0 5.318.236l17.168-13.032L68.77 97.917a6.2 6.2 0 0 0 2.143 1.4M75.015 27.3 45.11 50l29.906 22.701z",clipRule:"evenodd"})}),(0,n.jsxs)("g",{mask:"url(#vscode_svg__a)",children:[(0,n.jsx)("path",{fill:"#0065A9",d:"M96.461 10.796 75.857.876a6.23 6.23 0 0 0-7.107 1.207l-67.451 61.5a4.167 4.167 0 0 0 .004 6.162l5.51 5.009a4.17 4.17 0 0 0 5.32.236l81.228-61.62c2.725-2.067 6.639-.124 6.639 3.297v-.24a6.25 6.25 0 0 0-3.539-5.63"}),(0,n.jsx)("g",{filter:"url(#vscode_svg__b)",children:(0,n.jsx)("path",{fill:"#007ACC",d:"m96.461 89.204-20.604 9.92a6.23 6.23 0 0 1-7.107-1.207l-67.451-61.5a4.167 4.167 0 0 1 .004-6.162l5.51-5.009a4.17 4.17 0 0 1 5.32-.236l81.228 61.62c2.725 2.067 6.639.124 6.639-3.297v.24a6.25 6.25 0 0 1-3.539 5.63"})}),(0,n.jsx)("g",{filter:"url(#vscode_svg__c)",children:(0,n.jsx)("path",{fill:"#1F9CF0",d:"M75.858 99.126a6.23 6.23 0 0 1-7.108-1.21c2.306 2.307 6.25.674 6.25-2.588V4.672c0-3.262-3.944-4.895-6.25-2.589a6.23 6.23 0 0 1 7.108-1.21l20.6 9.908A6.25 6.25 0 0 1 100 16.413v67.174a6.25 6.25 0 0 1-3.541 5.633z"})}),(0,n.jsx)("path",{fill:"url(#vscode_svg__d)",fillRule:"evenodd",d:"M70.851 99.317a6.22 6.22 0 0 0 4.96-.19L96.4 89.22a6.25 6.25 0 0 0 3.54-5.633V16.413a6.25 6.25 0 0 0-3.54-5.632L75.812.874a6.23 6.23 0 0 0-7.104 1.21L29.294 38.04 12.126 25.01a4.16 4.16 0 0 0-5.317.236l-5.507 5.009a4.17 4.17 0 0 0-.004 6.162L16.186 50 1.298 63.583a4.17 4.17 0 0 0 .004 6.162l5.507 5.009a4.16 4.16 0 0 0 5.317.236L29.294 61.96l39.414 35.958a6.2 6.2 0 0 0 2.143 1.4M74.954 27.3 45.048 50l29.906 22.701z",clipRule:"evenodd",opacity:.25,style:{mixBlendMode:"overlay"}})]}),(0,n.jsxs)("defs",{children:[(0,n.jsxs)("filter",{id:"vscode_svg__b",width:116.727,height:92.246,x:-8.394,y:15.829,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[(0,n.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,n.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,n.jsx)("feOffset",{}),(0,n.jsx)("feGaussianBlur",{stdDeviation:4.167}),(0,n.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,n.jsx)("feBlend",{in2:"BackgroundImageFix",mode:"overlay",result:"effect1_dropShadow"}),(0,n.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,n.jsxs)("filter",{id:"vscode_svg__c",width:47.917,height:116.151,x:60.417,y:-8.076,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[(0,n.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,n.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,n.jsx)("feOffset",{}),(0,n.jsx)("feGaussianBlur",{stdDeviation:4.167}),(0,n.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,n.jsx)("feBlend",{in2:"BackgroundImageFix",mode:"overlay",result:"effect1_dropShadow"}),(0,n.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,n.jsxs)("linearGradient",{id:"vscode_svg__d",x1:49.939,x2:49.939,y1:.258,y2:99.742,gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#fff"}),(0,n.jsx)("stop",{offset:1,stopColor:"#fff",stopOpacity:0})]})]})]})},9926(e,t,r){r.d(t,{ZZ:()=>E,aM:()=>M,rU:()=>C});var n=r(64558),s=r(80844),i=r(63598),l=r(7802),a=r(66482),o=r(74374),d=r(81320),c=r(41648),h=r(85326),u=r(6755),p=r(78593),m=r(54594),f=r(53919),x=r(67782),g=r(7472),y=r(22733),j=r(23858),v=r(1426),b=r(68062),A=r(76174);r(15061);var w=r(8857),S=r(41611),k=r(87826);let M=e=>{let{data:t}=e;return(0,n.jsx)(s.A,{gutter:20,wrap:!1,align:"top",children:(0,n.jsx)(i.A,{style:{height:"100%",width:"100%"},children:t.length?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(l.A,{style:{marginTop:"20px"},children:t.map((e,r)=>{let{dependency:s,module:i,relativePath:o}=e,{statements:d}=s,{start:c}=d?.[0]?.position?i.isPreferSource?d[0].position.source:d[0].position.transformed:{start:{line:0,column:0}},h=`${o}:${c.line}:${c.column||1}`;return(0,n.jsx)(l.A.Item,{style:{cursor:"default"},children:(0,n.jsxs)(a.A.Text,{children:[(0,n.jsxs)("div",{className:"filePath-UF3inH",children:[h,(0,n.jsx)(a.A.Paragraph,{copyable:{text:o},style:{position:"relative",top:"7px"}})]}),r!==t.length-1?(0,n.jsx)(g.A,{className:"arrow-VrZOco"}):null]})},h)})})}):(0,n.jsx)(o.A,{description:"This package no dependencies"})})})},C=(0,S.eN)({Component:M,api:k.hp.uT.n.GetPackageRelationAlertDetails,responsePropName:"data"}),E=e=>{let{data:t,getPackageRelationContentComponent:r}=e,{level:s,code:i,packages:l}=t,o=(0,v.nN)(i,t.link),g=(0,x.xu)(l,e=>e.targetSize.sourceSize),S=(0,v.Xq)(g),{xs:M,lg:C,xxl:E}=d.Ay.useBreakpoint(),{name:N}=l.find(e=>!!e.target.name).target,T=l.map(e=>e.target.version);return(0,n.jsx)(c.A,{showIcon:!M,message:(0,n.jsxs)(h.A,{wrap:!0,split:M?null:(0,n.jsx)(u.A,{type:"vertical"}),align:"center",children:[(0,n.jsxs)(h.A,{wrap:!1,children:[(0,n.jsx)(a.A.Text,{code:!0,strong:!0,onClick:o,style:{cursor:"pointer"},children:(0,n.jsx)("a",{children:i})}),(0,n.jsx)(a.A.Text,{strong:!0,children:k.jO.bW[i]?.title||t.title})]}),(0,n.jsxs)(a.A.Paragraph,{ellipsis:{rows:1},style:{marginBottom:0},children:[(0,n.jsx)(a.A.Text,{strong:!0,code:!0,children:N}),(0,n.jsxs)(a.A.Text,{strong:!0,children:[" ",t.packages.length]}),(0,n.jsx)(a.A.Text,{children:" versions was found"})]}),(0,n.jsx)(w.Ex,{label:"total size",value:S,type:"error",tooltip:`total size of ${t.packages.length} versions is ${S}`})]}),description:(0,n.jsx)(h.A,{direction:"vertical",wrap:!1,children:t.packages.map(e=>{let{target:t,targetSize:r}=e,s=(0,v.Xq)(r.sourceSize),i=r.parsedSize?(0,v.Xq)(r.parsedSize):null,l=`${t.name}@${t.version}`;return(0,n.jsxs)(h.A,{style:{wordBreak:"break-all"},align:"center",split:M?null:(0,n.jsx)(u.A,{type:"vertical"}),wrap:!0,children:[(0,n.jsxs)(h.A,{wrap:!1,children:[(0,n.jsx)(a.A.Text,{style:{marginLeft:4},children:"└"}),(0,n.jsx)(w.Ex,{label:t.name,value:`v${t.version}`,tooltip:l})]}),(0,n.jsxs)(h.A,{children:[(0,n.jsx)(w.Ex,{label:(0,n.jsxs)("div",{color:"rgb(255, 255, 255)",children:["Source Size ",(0,n.jsx)(y.A,{})]}),value:s,tooltip:`The bundle size of "${l}" is ${s}, this is source size.`,type:"error"}),(0,n.jsx)(w.Ex,{label:"Bundled size",value:i||"CONCATENATED",tooltip:`The bundle size of "${l}" is ${s}, this is after bundled, concatenated module cannot get bundled size. `,type:"error"})]}),(0,n.jsx)(a.A.Paragraph,{style:{marginBottom:0,width:E?"40rem":C?"30rem":"20rem"},copyable:{text:t.root},ellipsis:{rows:1,expandable:!0,symbol:(0,n.jsx)(j.A,{}),tooltip:t.root},code:!0,children:t.root})]},t.version)})}),type:"warn"===s?"info":s,action:(0,n.jsxs)(n.Fragment,{children:[l&&l.length>0?(0,n.jsx)(b.hX,{text:"Show Relations",buttonProps:{size:"small"},drawerProps:{title:t.title,width:"60%"},children:(0,n.jsxs)(h.A,{direction:"vertical",className:"alert-space",children:[(0,n.jsxs)(h.A,{style:{marginBottom:10},children:[(0,n.jsx)(A.h,{text:N,upperFirst:!1}),(0,n.jsx)(a.A.Text,{strong:!0,children:T.length}),(0,n.jsx)(a.A.Text,{children:" versions was found: "}),T.map(e=>(0,n.jsx)(a.A.Text,{strong:!0,code:!0,children:e},e))]}),(0,n.jsx)(p.A,{type:"card",size:"middle",className:"tabs-space",defaultActiveKey:T[0],items:l.map(e=>{let{target:s,targetSize:i}=e;return{label:(0,n.jsxs)(h.A,{children:[(0,n.jsx)(a.A.Text,{children:`${N}@${s.version}`}),(0,n.jsx)(m.A,{color:"#e17055",children:(0,v.Xq)(i.sourceSize)})]}),key:`${s.root}${s.name}${s.version}`,children:r({data:t,package:e})}})})]})}):null,(0,n.jsx)(u.A,{type:"vertical"}),(0,n.jsx)(f.Ay,{type:"link",onClick:o,size:"small",icon:(0,n.jsx)(y.A,{})})]})})}},10943(e,t,r){r.d(t,{J:()=>ef});var n=r(64558),s=r(54594),i=r(74374),l=r(78593),a=r(1102),o=r(44506),d=r(66482),c=r(53919),h=r(76253),u=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,n.jsx)("rect",{width:16,height:16,fill:"#FFF2E8",rx:2}),(0,n.jsx)("path",{fill:"#FA541C",d:"M13.21 4.026a.5.5 0 0 0-.5-.5H3.29a.5.5 0 0 0-.5.5v1.316a.5.5 0 0 0 .5.5h9.42a.5.5 0 0 0 .5-.5zM13.21 7.342a.5.5 0 0 0-.5-.5H3.29a.5.5 0 0 0-.5.5v1.316a.5.5 0 0 0 .5.5h9.42a.5.5 0 0 0 .5-.5zM13.21 10.658a.5.5 0 0 0-.5-.5H3.29a.5.5 0 0 0-.5.5v1.316a.5.5 0 0 0 .5.5h9.42a.5.5 0 0 0 .5-.5z"})]}),p=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,n.jsx)("rect",{width:16,height:16,fill:"#F6FFED",rx:2}),(0,n.jsx)("path",{fill:"#52C41A",fillRule:"evenodd",d:"M4.586 6.172a.853.853 0 0 0-.853.854v5.12c0 .472.382.854.853.854h6.828a.853.853 0 0 0 .853-.854v-5.12a.853.853 0 0 0-.853-.854H9.707V7.88a1.707 1.707 0 1 1-3.414 0V6.172z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#52C41A",d:"M7.147 4.466a.853.853 0 1 1 1.707 0V7.88a.853.853 0 0 1-1.707 0z"}),(0,n.jsx)("path",{fill:"#52C41A",d:"m8 3 2.217 2.304H5.783z"})]}),m=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,n.jsx)("rect",{width:16,height:16,fill:"#FFF1F0",rx:2}),(0,n.jsx)("path",{fill:"#FF5658",fillRule:"evenodd",d:"M13 8A5 5 0 1 1 3 8a5 5 0 0 1 10 0M9.768 6.232a.5.5 0 0 1 0 .707L8.708 8l1.06 1.06a.5.5 0 0 1-.707.708L8 8.708l-1.062 1.06a.5.5 0 0 1-.707-.707L7.293 8l-1.06-1.062a.5.5 0 0 1 .706-.707L8 7.293l1.06-1.06a.5.5 0 0 1 .708 0",clipRule:"evenodd"})]}),f=r(1426),x="box-yCgd0f",g="title-OR484p",y="content-iOwxYc";let{Text:j}=d.A,v=e=>{let{data:t}=e;return t.map((e,t)=>{let{code:r,link:s,error:i}=e,{source:l,output:a}=i||{},o=l?.path?`${l?.path}:${l?.line}:${l?.column}`:null,d=a?.path?`${a?.path}:${a?.line}:${a?.column}`:`There's no source map for this error. Possible reasons are as follows:
2
- 1. It might come from a third-party library without source map.
3
- 2. If this is your business source code, source map should be enabled in your build config.
4
- `,v=(0,f.nN)(r,s);return(0,n.jsxs)("div",{className:"container-iQTvf7",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:g,children:"Source"}),(0,n.jsxs)("div",{className:x,children:[(0,n.jsx)(h.A,{component:u}),(0,n.jsx)(j,{ellipsis:{tooltip:o},className:`${y} e2e-ecma-source`,children:o})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:g,children:"Output"}),(0,n.jsxs)("div",{className:x,children:[(0,n.jsx)(h.A,{component:p}),(0,n.jsx)(j,{ellipsis:{tooltip:d},className:`${y} e2e-ecma-output`,children:d})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:g,children:"Error"}),(0,n.jsxs)("div",{className:x,children:[(0,n.jsx)(h.A,{component:m}),(0,n.jsx)(j,{ellipsis:{tooltip:e.description},className:`${y} e2e-ecma-error`,children:e.description})]})]}),(0,n.jsx)(c.Ay,{onClick:v,type:"link",children:"more"})]},`${r}-${s}-${t}`)})};var b=r(88557),A=r(50162),w=r(6755),S=r(85326),k=r(55552),M=r(67782),C=r(68062),E=r(76174);r(15061);var N=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,n.jsx)("rect",{width:16,height:16,fill:"#FFF7E6",rx:2}),(0,n.jsx)("path",{fill:"#F2793D",fillRule:"evenodd",d:"M11.377 5.186h1.488L10.973 3H5.027L3.135 5.186h1.488l.87-1.005h5.015z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#F2793D",fillRule:"evenodd",d:"M3.676 4.82h8.648c.299 0 .54.243.54.545v7.09a.543.543 0 0 1-.54.545H3.676a.543.543 0 0 1-.54-.545v-7.09c0-.302.241-.546.54-.546m2.702 1.77a.54.54 0 0 0 0 1.082h3.244a.54.54 0 1 0 0-1.081z",clipRule:"evenodd"})]}),T=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,n.jsx)("rect",{width:16,height:16,fill:"#FFF7E6",rx:2}),(0,n.jsx)("path",{fill:"#F2793D",d:"M3 7V5c0-1.105 2.239-2 5-2s5 .895 5 2v2c0 1.105-2.239 2-5 2s-5-.895-5-2"}),(0,n.jsx)("path",{fill:"#F2793D",d:"M8 10c2.761 0 5-.895 5-2v1c0 1.105-2.239 2-5 2s-5-.895-5-2V8c0 1.105 2.239 2 5 2"}),(0,n.jsx)("path",{fill:"#F2793D",d:"M8 12c2.761 0 5-.895 5-2v1c0 1.105-2.239 2-5 2s-5-.895-5-2v-1c0 1.105 2.239 2 5 2"})]}),D=r(52726),z=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,n.jsx)("rect",{width:16,height:16,fill:"#E6F7FF",rx:2}),(0,n.jsx)("g",{clipPath:"url(#version_svg__a)",children:(0,n.jsx)("path",{fill:"#3874F6",d:"M13.438 9.875a.6.6 0 0 0-.216.043h-.002l-.002.002L8 12.079l-5.217-2.16H2.78l-.002-.001a.562.562 0 0 0-.43 1.039l5.432 2.248.002.001.003.001a.56.56 0 0 0 .43 0h.003l.002-.002 5.433-2.248a.563.563 0 0 0-.216-1.082M2.348 6.082 7.78 8.33l.003.001.002.001a.56.56 0 0 0 .43 0h.003l.002-.002 5.433-2.248a.563.563 0 0 0 0-1.04L8.22 2.796l-.002-.001-.003-.001a.56.56 0 0 0-.43 0h-.003l-.002.002-5.433 2.248a.563.563 0 0 0 0 1.039m11.09 1.355a.6.6 0 0 0-.216.043l-.002.001-.002.001L8 9.642l-5.217-2.16H2.78l-.002-.002a.563.563 0 0 0-.43 1.04l5.432 2.248h.002l.003.002a.56.56 0 0 0 .43 0l.003-.001.002-.001 5.433-2.248a.563.563 0 0 0-.216-1.083"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"version_svg__a",children:(0,n.jsx)("path",{fill:"#fff",d:"M2 2h12v12H2z"})})})]}),L="collapseContainer-RlFMpI",I="collapseChild-WWZD3z",_="attribute-bDSZ0z",R="iconContainer-qPzCrR",P="data-po89g7",B="pkgName-vA16cZ",$="tag-lJs0Ro",F=r(31008),O=r(22700),G=r(97558),q=r(91326);let W=e=>{let{title:t,description:r,extra:s}=e;return(0,n.jsxs)("div",{className:"label-XufLCq",children:[(0,n.jsxs)("div",{className:"labelContent-nkrbEg",children:[(0,n.jsx)("div",{children:t}),(0,n.jsx)("div",{children:r})]}),(0,n.jsx)("div",{children:s})]})},V=e=>{let{file:t}=e;return(0,n.jsxs)(S.A,{size:4,style:{marginLeft:8,flexShrink:0,marginTop:5},children:[(0,n.jsx)(A.A,{title:"Open in VSCode",children:(0,n.jsx)(F.A,{style:{width:16,height:16,cursor:"pointer"},onClick:e=>{e.stopPropagation(),(0,q.jk)({file:t})}})}),(0,n.jsx)(A.A,{title:"Open in Cursor",children:(0,n.jsx)(O.A,{style:{width:16,height:16,cursor:"pointer"},onClick:e=>{e.stopPropagation(),(0,q.L2)({file:t})}})}),(0,n.jsx)(A.A,{title:"Open in Trae",children:(0,n.jsx)(G.A,{style:{width:16,height:16,cursor:"pointer"},onClick:e=>{e.stopPropagation(),(0,q.bX)({file:t})}})})]})},{Paragraph:U,Text:H}=d.A,{innerWidth:K}=window,J=e=>{let{data:t,extraData:r}=e,i=t.map(e=>{let{packages:t}=e;return{totalSize:(0,M.xu)(t,e=>e.targetSize.sourceSize),data:e}}).sort((e,t)=>t.totalSize-e.totalSize).map(e=>{let{data:t,totalSize:i}=e,{packages:a}=t,o=(0,f.Xq)(i),{name:c}=a.find(e=>!!e.target.name).target,u=a.map(e=>e.target.version);return{key:c,label:(0,n.jsx)(W,{title:(0,n.jsx)(s.A,{className:$,children:(0,n.jsx)("span",{className:B,children:c})}),description:`${a.length} versions was found`,extra:(0,n.jsxs)("div",{className:"extraContainer-Zf1u14",children:[(0,n.jsxs)("div",{className:R,children:[(0,n.jsx)(h.A,{style:{fontSize:"18px"},component:D.A}),(0,n.jsx)("span",{className:P,children:o})]}),a&&a.length>0?(0,n.jsx)(C.hX,{text:"Show Relations",buttonProps:{size:"small"},drawerProps:{title:t.title,width:"60%"},children:(0,n.jsxs)(S.A,{direction:"vertical",className:"alert-space",style:{width:"100%"},children:[(0,n.jsxs)(S.A,{style:{marginBottom:10,width:"100%"},children:[(0,n.jsx)(E.h,{text:(0,n.jsx)(s.A,{className:$,children:c}),upperFirst:!1}),(0,n.jsx)(d.A.Text,{strong:!0,children:u.length}),(0,n.jsx)(d.A.Text,{children:" versions found"})]}),(0,n.jsx)(l.A,{size:"middle",items:a.map(e=>{let{target:i,targetSize:l}=e;return{label:(0,n.jsxs)(S.A,{className:"drawerLabelTitle-bDwhFt",children:[(0,n.jsxs)("div",{children:["v",i.version]}),(0,n.jsx)(s.A,{className:"drawerLabelSize-gzchzs",children:(0,f.Xq)(l.sourceSize)})]}),key:`${i.root}${i.name}${i.version}`,children:r.getPackageRelationContentComponent({data:t,package:e})}})})]})}):null]})}),children:(0,n.jsx)(()=>a.map((e,t)=>{let r=e.target.version,s=e.target.root,i=(0,f.Xq)(e.targetSize.sourceSize),l=e.targetSize.parsedSize?(0,f.Xq)(e.targetSize.parsedSize):null;return(0,n.jsxs)("div",{className:L,children:[(0,n.jsx)(b.h,{title:(0,n.jsx)(H,{style:{width:K>1500?900:700},ellipsis:{tooltip:s},children:s}),description:(0,n.jsxs)("div",{className:I,children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:_,children:"Version"}),(0,n.jsxs)("div",{className:R,children:[(0,n.jsx)(h.A,{style:{fontSize:"18px"},component:z}),(0,n.jsxs)("span",{className:P,children:["v",r]})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:_,children:"Source size"}),(0,n.jsxs)("div",{className:R,children:[(0,n.jsx)(h.A,{style:{fontSize:"18px"},component:T}),(0,n.jsx)("span",{className:P,children:i})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:_,children:"Bundle size"}),(0,n.jsxs)("div",{className:R,children:[(0,n.jsx)(h.A,{style:{fontSize:"18px"},component:N}),(0,n.jsx)(A.A,{title:`The bundle size of "${c}" is ${i}, this is after bundled, concatenated module cannot get bundled size. `,children:(0,n.jsx)("span",{className:P,children:l||"CONCATENATED"})})]})]})]}),icon:(0,n.jsx)(U,{style:{position:"relative",top:"-10px"},copyable:{text:s}})}),t!==a.length-1?(0,n.jsx)(w.A,{style:{margin:"10px 0"}}):null]})}),{})}});return(0,n.jsx)(k.A,{style:{width:"100%"},defaultActiveKey:["E1001"],items:i})},Y=e=>{let{data:t,showCode:r}=e;return t.map(e=>{let{code:t,link:s,description:i}=e,l=(0,f.nN)(t,s);return(0,n.jsx)(b.A,{style:{background:"#fff"},description:(0,n.jsxs)("div",{className:"description-h4sYv3",children:[r?(0,n.jsx)("div",{className:"code-ocfe7Q",children:t}):null,(0,n.jsx)("div",{children:i||""})]}),icon:(0,n.jsx)(c.Ay,{onClick:l,type:"link",children:"more"})})})},{Text:Z}=d.A,{innerWidth:X}=window,Q=e=>{let{data:t}=e,r=t.map(e=>{let{package:t,chunks:r}=e;return{key:`${t.name}@${t.version}`,label:(0,n.jsx)(W,{title:(0,n.jsx)(s.A,{className:$,children:(0,n.jsx)("span",{className:B,children:`${t.name}@${t.version}`})}),description:"has duplicates bundled into multiple chunks."}),children:(0,n.jsx)(()=>r.map(e=>{let{chunks:t,module:r}=e;return(0,n.jsx)("div",{className:L,children:(0,n.jsx)(b.h,{title:(0,n.jsxs)(S.A,{children:[(0,n.jsx)(h.A,{style:{fontSize:"18px"},component:D.A}),(0,n.jsxs)(Z,{style:{width:X>1500?900:700},children:["Module:"," ",(0,n.jsx)(Z,{type:"secondary",style:{fontSize:12,fontWeight:300},children:r.path})]})]}),description:(0,n.jsx)("div",{className:I,children:t.map(e=>(0,n.jsxs)("div",{style:{display:"flex"},children:[(0,n.jsx)("div",{className:_,children:"Chunk"}),(0,n.jsx)("div",{className:R,children:(0,n.jsx)("span",{className:P,children:e.name})})]}))})})})}),{})}});return(0,n.jsx)(k.A,{style:{width:"100%"},defaultActiveKey:["E1005"],items:r})};var ee=r(35784);let{Text:et}=d.A,{innerWidth:er}=window,en=e=>{let{data:t,extraData:r}=e,{cwd:i}=r,l=t.map(e=>{let{module:t,initialChunks:r,asyncChunks:l}=e,a=(0,ee.Zb)(t.path,i);return{key:a,label:(0,n.jsx)(W,{title:(0,n.jsx)(s.A,{className:$,children:(0,n.jsx)("span",{className:B,children:a})}),description:"is included in both initial and async chunks."}),children:(0,n.jsx)(()=>(0,n.jsx)("div",{className:L,children:(0,n.jsx)(b.h,{title:(0,n.jsxs)(S.A,{children:[(0,n.jsx)(h.A,{style:{fontSize:"18px"},component:D.A}),(0,n.jsxs)(et,{style:{width:er>1500?900:700},children:["Module:"," ",(0,n.jsx)(et,{type:"secondary",style:{fontSize:12,fontWeight:300},children:a})]})]}),description:(0,n.jsxs)("div",{className:I,children:[r.length>0&&(0,n.jsxs)("div",{style:{marginBottom:16},children:[(0,n.jsx)("div",{style:{marginBottom:8,fontWeight:500},children:"Initial Chunks:"}),r.map(e=>(0,n.jsxs)("div",{style:{display:"flex",marginBottom:4},children:[(0,n.jsx)("div",{className:_,children:"Chunk"}),(0,n.jsx)("div",{className:R,children:(0,n.jsx)("span",{className:P,children:e.name||`chunk-${e.id}`})})]},e.id))]}),l.length>0&&(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{style:{marginBottom:8,fontWeight:500},children:"Async Chunks:"}),l.map(e=>(0,n.jsxs)("div",{style:{display:"flex",marginBottom:4},children:[(0,n.jsx)("div",{className:_,children:"Chunk"}),(0,n.jsx)("div",{className:R,children:(0,n.jsx)("span",{className:P,children:e.name||`(no chunk name, ChunkId: ${e.id})`})})]},e.id))]})]})})}),{})}});return(0,n.jsx)(k.A,{style:{width:"100%"},defaultActiveKey:l.map(e=>e.key),items:l})},{Text:es}=d.A,{innerWidth:ei}=window,el=e=>{let{data:t,extraData:r}=e,{cwd:i}=r,l=t.map(e=>{let{module:t,connections:r}=e,l=(0,ee.Zb)(t.path,i);return{key:l,label:(0,n.jsx)(W,{title:(0,n.jsx)(S.A,{size:4,align:"center",children:(0,n.jsx)(s.A,{className:$,children:(0,n.jsx)("span",{className:B,children:l})})}),description:`is only imported for its side effects by ${new Set(r.map(e=>e.originModule)).size} importer(s).`}),children:(0,n.jsx)(()=>(0,n.jsx)("div",{className:L,children:(0,n.jsx)(b.h,{title:(0,n.jsxs)(S.A,{align:"center",children:[(0,n.jsx)(h.A,{style:{fontSize:"18px"},component:D.A}),(0,n.jsxs)(es,{style:{width:ei>1500?900:700},children:["Module:"," ",(0,n.jsx)(es,{type:"secondary",style:{fontSize:12,fontWeight:300},children:l})]}),(0,n.jsx)(V,{file:t.path})]}),description:(0,n.jsxs)("div",{className:I,children:[(0,n.jsx)("div",{style:{marginBottom:8,fontWeight:500},children:"Side-Effects-Only Importers:"}),r.map((e,t)=>(0,n.jsxs)("div",{style:{display:"flex",marginBottom:4},children:[(0,n.jsx)("div",{className:_,children:"Import"}),(0,n.jsxs)("div",{className:R,children:[(0,n.jsx)("span",{className:P,children:e.userRequest}),(0,n.jsx)(s.A,{className:$,style:{marginLeft:8,fontSize:11},children:e.dependencyType})]})]},t))]})})}),{})}});return(0,n.jsx)(k.A,{style:{width:"100%"},defaultActiveKey:l.map(e=>e.key),items:l})},{innerWidth:ea}=window,eo=e=>{let{data:t,extraData:r}=e,{cwd:i}=r,l=new Map;for(let e of t){let t=e.requiredModule.path;l.has(t)||l.set(t,{requiredPath:t,issuers:[]}),l.get(t).issuers.push({issuerPath:e.issuerModule.path,request:e.request})}let a=Array.from(l.values()).map(e=>{let t=(0,ee.Zb)(e.requiredPath,i),r=e.issuers.length;return{key:t,label:(0,n.jsx)(W,{title:(0,n.jsx)(S.A,{size:4,align:"center",children:(0,n.jsx)(s.A,{className:$,children:(0,n.jsx)("span",{className:B,children:t})})}),description:`cannot be tree-shaken — required via CJS \`require()\` by ${r} caller(s).`}),children:(0,n.jsx)(()=>(0,n.jsx)("div",{className:L,children:(0,n.jsx)(b.h,{title:(0,n.jsxs)(S.A,{align:"center",children:[(0,n.jsx)("span",{style:{fontSize:13,fontWeight:500},children:"Required Module:"}),(0,n.jsx)("span",{style:{fontSize:12,color:"var(--text-color-secondary)",fontWeight:300,maxWidth:ea>1500?900:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block"},children:t})]}),description:(0,n.jsxs)("div",{className:I,children:[(0,n.jsx)("div",{style:{marginBottom:8,fontWeight:500},children:"CJS Require Callers:"}),e.issuers.map((e,t)=>(0,n.jsxs)("div",{style:{display:"flex",marginBottom:4,alignItems:"center"},children:[(0,n.jsx)("div",{className:_,children:"require"}),(0,n.jsxs)("div",{className:R,children:[(0,n.jsx)("span",{className:P,children:(0,ee.Zb)(e.issuerPath,i)}),(0,n.jsx)(s.A,{className:$,style:{marginLeft:8,fontSize:11,fontFamily:"Menlo"},children:`require('${e.request}')`}),(0,n.jsx)(V,{file:e.issuerPath})]})]},t))]})})}),{})}});return(0,n.jsx)(k.A,{style:{width:"100%"},defaultActiveKey:a.map(e=>e.key),items:a})};function ed(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60;if(e.length<=t)return e;let r=Math.floor((t-3)/2);return`${e.slice(0,r)}...${e.slice(-r)}`}let{Text:ec}=d.A,eh=e=>{let{data:t,extraData:r}=e,{cwd:i}=r,l=t.map(e=>{let{packageName:t,packageVersion:r,esmEntry:l,resolvedModule:a,issuers:o}=e,d=(0,ee.Zb)(a.path,i),c=(0,ee.Zb)(l,i);return{key:`${t}::${a.path}`,label:(0,n.jsx)(W,{title:(0,n.jsx)(S.A,{size:4,align:"center",children:(0,n.jsx)(s.A,{className:$,style:{backgroundColor:"#EAEDF1",borderRadius:"2px"},children:(0,n.jsx)("span",{className:B,children:`${t}@${r}`})})}),description:`has an ESM entry but was resolved to CJS by ${o.length} importer(s).`}),children:(0,n.jsx)(()=>(0,n.jsx)("div",{className:L,children:(0,n.jsx)(b.h,{title:(0,n.jsxs)(S.A,{align:"center",wrap:!0,children:[(0,n.jsx)(ec,{strong:!0,style:{fontSize:13},children:"Package:"}),(0,n.jsx)(s.A,{className:$,style:{fontFamily:"Menlo"},children:`${t}@${r}`})]}),description:(0,n.jsxs)("div",{className:I,style:{flexDirection:"column",paddingTop:16},children:[(0,n.jsxs)("div",{style:{display:"flex",marginBottom:8,alignItems:"center"},children:[(0,n.jsx)("div",{className:_,style:{color:"#52c41a",minWidth:100},children:(0,n.jsx)(s.A,{style:{backgroundColor:"#f6ffed",borderColor:"#b7eb8f",color:"#389e0d",borderRadius:"2px"},children:"ESM Entry"})}),(0,n.jsxs)("div",{className:R,children:[(0,n.jsx)(A.A,{title:c,children:(0,n.jsx)("span",{className:P,children:ed(c)})}),(0,n.jsx)(s.A,{style:{marginLeft:8,backgroundColor:"#f6ffed",borderColor:"#b7eb8f",color:"#389e0d",borderRadius:"2px",fontSize:11},children:"declared in package.json"})]})]}),(0,n.jsxs)("div",{style:{display:"flex",marginBottom:16,alignItems:"center"},children:[(0,n.jsx)("div",{className:_,style:{color:"#ff4d4f",minWidth:100},children:(0,n.jsx)(s.A,{style:{backgroundColor:"#fff7e6",borderColor:"#ffd591",color:"#d46b08",borderRadius:"2px"},children:"CJS Resolved"})}),(0,n.jsxs)("div",{className:R,children:[(0,n.jsx)(A.A,{title:d,children:(0,n.jsx)("span",{className:P,children:ed(d)})}),(0,n.jsx)(s.A,{style:{marginLeft:8,backgroundColor:"#fff1f0",borderColor:"#ffa39e",color:"#cf1322",borderRadius:"2px",fontSize:11},children:"actually bundled"})]})]}),(0,n.jsx)(k.A,{size:"small",ghost:!0,items:[{key:"issuers",label:(0,n.jsx)("span",{style:{fontWeight:500},children:`ESM Importers (${o.length})`}),children:o.map((e,t)=>(0,n.jsxs)("div",{style:{display:"flex",marginBottom:4,alignItems:"center"},children:[(0,n.jsx)("div",{className:_,children:"import"}),(0,n.jsxs)("div",{className:R,children:[(0,n.jsx)("span",{className:P,children:(0,ee.Zb)(e.path,i)}),(0,n.jsx)(s.A,{className:$,style:{marginLeft:8,fontSize:11,fontFamily:"Menlo"},children:`'${e.request}'`})]})]},t))}]})]})})}),{})}});return(0,n.jsx)(k.A,{style:{width:"100%"},defaultActiveKey:l.map(e=>e.key),items:l})};var eu=r(87826);let ep=[{key:"E1001",label:"Duplicate Packages"},{key:"E1002",label:"Cross Chunks Package"},{key:"E1003",label:"Loader Performance Optimization"},{key:"E1004",label:"ECMA Version Check"},{key:"E1005",label:"Default Import Check"},{key:"E1006",label:"Module Mixed Chunks"},{key:"E1007",label:"Tree Shaking Side Effects Only"},{key:"E1008",label:"CJS Require Cannot Tree-Shake"},{key:"E1009",label:"ESM Import Resolved to CJS"}];function em(e){if(!(e instanceof Element))return null;let t=e.closest(".ant-tabs-nav-wrap");return t instanceof HTMLElement?t:null}let ef=e=>{let t,r,d,c,h,{title:u,dataSource:p,extraData:m}=e,f=(t=(0,a.useRef)(null),r=(0,a.useRef)(!1),d=(e,n)=>{let s=t.current;s&&s.pointerId===e&&(delete s.element.dataset.dragging,s.element.hasPointerCapture(e)&&s.element.releasePointerCapture(e),t.current=null,n&&s.moved&&(r.current=!0,window.setTimeout(()=>{r.current=!1})))},{onWheel(e){let t=em(e.target);if(!t)return;let r=function(e){let{scrollLeft:t,scrollWidth:r,clientWidth:n,deltaX:s,deltaY:i,deltaMode:l}=e;return Math.min(Math.max(0,r-n),Math.max(0,t+(Math.abs(s)>Math.abs(i)?s:i)*(1===l?16:2===l?n:1)))}({scrollLeft:t.scrollLeft,scrollWidth:t.scrollWidth,clientWidth:t.clientWidth,deltaX:e.deltaX,deltaY:e.deltaY,deltaMode:e.deltaMode});r!==t.scrollLeft&&(t.scrollLeft=r,e.preventDefault())},onPointerDown(e){if("mouse"!==e.pointerType||0!==e.button)return;let r=em(e.target);r&&!(r.scrollWidth<=r.clientWidth)&&(t.current={element:r,pointerId:e.pointerId,startX:e.clientX,startScrollLeft:r.scrollLeft,moved:!1},r.dataset.dragging="true",r.setPointerCapture(e.pointerId))},onPointerMove(e){let r=t.current;if(!r||r.pointerId!==e.pointerId)return;let n=e.clientX-r.startX;Math.abs(n)>=4&&(r.moved=!0),r.moved&&(r.element.scrollLeft=r.startScrollLeft-n,e.preventDefault())},onPointerUp(e){d(e.pointerId,!0)},onPointerCancel(e){d(e.pointerId,!1)},onClickCapture(e){r.current&&em(e.target)&&(r.current=!1,e.preventDefault(),e.stopPropagation())}}),x=(c=ep.map(e=>({...e,data:[],tag:e.key})),h=[],p.forEach(e=>{let t=c.find(t=>{let{key:r}=t;return r===e.code});t?t.data.push(e):e.code===eu.jO.jr.Extend&&h.push(e)}),h.length&&c.push({key:"CUSTOM_RULES",label:"Custom Rules",data:h,tag:"Custom"}),c);x.sort((e,t)=>(t.data.length>0)-(e.data.length>0));let g=x.some(e=>{let{data:t}=e;return t.length>0}),y=x[0]?.key??"E1001",[j,A]=(0,a.useState)(y),w=x.some(e=>e.key===j)?j:y,S=x.map(e=>{let t,r,l=w===e.key?{border:"1px solid #91D5FF",backgroundColor:"#E6F7FF"}:{},a=w===e.key?{color:"#1890FF"}:{};switch(e.key){case"E1001":t=(0,n.jsx)(J,{data:e.data,extraData:m});break;case"E1002":t=(0,n.jsx)(Q,{data:e.data,extraData:m});break;case"E1003":case"E1005":t=(0,n.jsx)(Y,{data:e.data});break;case"E1004":r=(0,n.jsx)("span",{children:"No ECMA Version Check Rules were found. Please refer to 「https://rsdoctor.rs/guide/usage/rule-config」."}),t=(0,n.jsx)(v,{data:e.data});break;case"E1006":t=(0,n.jsx)(en,{data:e.data,extraData:m});break;case"E1007":t=(0,n.jsx)(el,{data:e.data,extraData:m});break;case"E1008":t=(0,n.jsx)(eo,{data:e.data,extraData:m});break;case"E1009":t=(0,n.jsx)(eh,{data:e.data,extraData:m});break;case"CUSTOM_RULES":t=(0,n.jsx)(Y,{data:e.data,showCode:!0});break;default:t=null}return e.data.length||(t=(0,n.jsx)(i.A,{description:r,image:i.A.PRESENTED_IMAGE_SIMPLE})),{key:e.key,label:(0,n.jsx)(()=>(0,n.jsx)(b.A,{style:{backgroundColor:"transparent",border:"none",borderRadius:0,minHeight:"auto",padding:"8px 0",width:"100%"},title:(0,n.jsx)("span",{className:"labelTitle-tjSCQ_",children:e.label}),description:(0,n.jsxs)("div",{className:"labelDescription-kB74lb",children:[(0,n.jsx)("span",{children:e.data.length}),(0,n.jsx)(s.A,{style:{fontFamily:"Menlo",borderRadius:"2px",...l},children:(0,n.jsx)("span",{style:{...a},children:e.tag})})]})}),{}),children:(0,n.jsx)(o.Zp,{className:"card-HNTMcZ",type:"inner",title:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.A,{className:$,style:{fontFamily:"Menlo",fontWeight:"700",fontSize:"13px"},children:e.tag}),(0,n.jsx)("span",{children:e.label})]}),children:t})}});return(0,n.jsx)(o.Zp,{style:{width:"100%",borderRadius:"12px"},children:(0,n.jsxs)("div",{className:"container-TWzmhb",...f,children:[(0,n.jsx)("div",{className:"title-gD67_A",children:u}),g?(0,n.jsx)(l.A,{onChange:A,tabBarGutter:10,type:"card",activeKey:w,items:S}):(0,n.jsx)("div",{style:{minHeight:"480px",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,n.jsx)(i.A,{description:"No Bundle Alerts Data",image:i.A.PRESENTED_IMAGE_SIMPLE})})]})})}},594(e,t,r){var n=r(64558),s=r(1102),i=r(87826),l=r(1426),a=r(10943),o=r(41611);r(15061);var d=r(9926);(0,o.eN)({api:i.hp.uT.n.GetProjectInfo,responsePropName:"project",Component:e=>{let{filter:t,project:r}=e,{root:i,errors:o}=r,c=(0,l.y8)(o),{setCompileAlertsViewMode:h,viewMode:u,setViewMode:p}=(0,l.an)(),m=t?c.filter(t):c;return(0,s.useEffect)(()=>{(0,l.it)()||p({compileAlerts:c.length>=5?"group":"list"},!1)},[]),(0,n.jsx)(a.J,{title:"Compile Alerts",dataSource:m,extraData:{cwd:i,getPackageRelationContentComponent:e=>(0,n.jsx)(d.rU,{body:{id:e.data.id,target:e.package.target},cwd:i})},viewMode:u.compileAlerts,setViewMode:h,cwd:i})}})},8857(e,t,r){var n=r(64558),s=r(50162);r(1102);let i={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%)"};r.d(t,{},{Ex:e=>{let{label:t,value:r,type:l="default",tooltip:a}=e,o={height:"100%",lineHeight:"22px",width:"auto",display:"inline-block",boxSizing:"border-box",padding:"0 6px",color:"#fff",fontSize:12,textAlign:"center",verticalAlign:"middle"},d=(0,n.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,n.jsx)("div",{style:{...o,borderTopLeftRadius:4,borderBottomLeftRadius:4,background:"linear-gradient(to bottom, #525252a3 0%, #1F1F1F 100%)"},children:t}),(0,n.jsx)("div",{style:{...o,borderTopRightRadius:4,borderBottomRightRadius:4,overflow:"hidden",textOverflow:"ellipsis",background:i[l]||i.default},children:r})]});return a?(0,n.jsx)(s.A,{title:!0===a?r:a,placement:"topLeft",children:d}):d}})},71029(e,t,r){var n=r(64558),s=r(85326),i=r(66482),l=r(6755),a=r(44953),o=r(16798),d=r(83821),c=r(53919),h=r(1102),u=r(30670),p=r(14061),m=r(15061),f=r(17886),x=r(78131),g=r(1426);let{jK:y,Sx:j}=m,v={colorPrimary:"#2f81f7",colorInfo:"#5b8ff9",colorSuccess:"#5ccb8a",colorWarning:"#f2b84b",colorError:"#ff6b6b",colorBgBase:"#090b10",colorBgLayout:"#090b10",colorBgContainer:"#11151b",colorBgElevated:"#171c24",colorBorder:"rgba(255, 255, 255, 0.16)",colorBorderSecondary:"rgba(255, 255, 255, 0.1)",colorText:"#f3f5f7",colorTextSecondary:"#aab2bf",colorTextTertiary:"#7d8796",colorFill:"rgba(255, 255, 255, 0.16)",colorFillSecondary:"rgba(255, 255, 255, 0.1)",colorFillTertiary:"rgba(255, 255, 255, 0.06)",colorFillQuaternary:"rgba(255, 255, 255, 0.04)",borderRadius:8,borderRadiusLG:12,boxShadowSecondary:"0 12px 32px rgba(0, 0, 0, 0.24)"},b={Layout:{bodyBg:"#090b10",headerBg:"#071827",headerColor:"#f3f5f7"},Menu:{activeBarHeight:2,darkItemBg:"transparent",darkSubMenuItemBg:"#11151b",darkItemColor:"#aab2bf",darkItemHoverColor:"#f3f5f7",darkItemHoverBg:"rgba(47, 129, 247, 0.08)",darkItemSelectedColor:"#f3f5f7",darkItemSelectedBg:"rgba(47, 129, 247, 0.14)",itemBorderRadius:8,horizontalItemBorderRadius:8},Card:{headerBg:"transparent",extraColor:"#aab2bf"},Segmented:{trackBg:"rgba(255, 255, 255, 0.06)",itemHoverBg:"rgba(255, 255, 255, 0.08)",itemActiveBg:"rgba(47, 129, 247, 0.12)",itemSelectedBg:"#202733",itemSelectedColor:"#f3f5f7"},Progress:{defaultColor:"#2f81f7",remainingColor:"rgba(255, 255, 255, 0.1)"},Tree:{nodeHoverBg:"rgba(47, 129, 247, 0.08)",nodeSelectedBg:"rgba(47, 129, 247, 0.14)",directoryNodeSelectedBg:"rgba(47, 129, 247, 0.18)"}};t.A=e=>{let{router:t,renderFailState:r,extraContent:A}=e,[w,S]=(0,h.useState)(y.Success),[k,M]=(0,h.useState)({...f.s.viewMode}),[C,E]=(0,h.useState)(),[N,T]=(0,h.useState)(f.s.theme);return w===m.jK.Fail?r?(0,n.jsx)(n.Fragment,{children:r()}):(0,n.jsxs)(s.A,{direction:"vertical",style:{padding:14},children:[(0,n.jsx)(i.A.Text,{strong:!0,style:{fontSize:16},children:"load json file of Rsdoctor failed."}),(0,n.jsxs)(i.A.Text,{children:["try to use ",(0,n.jsx)(i.A.Text,{keyboard:!0,children:"command + r"})," to refresh page."]}),null,(0,n.jsx)(l.A,{}),(0,n.jsx)(s.A,{direction:"vertical",style:{width:"100%"},children:(0,n.jsxs)(i.A.Text,{style:{fontSize:16},children:["you can",(0,n.jsx)(i.A.Text,{strong:!0,style:{fontSize:"inherit"},children:"upload a file"}),"in the area below to analyze your project."]})}),(0,n.jsx)(l.A,{})]}):(0,n.jsx)(p.I9,{children:(0,n.jsx)(f.Q.Provider,{value:{...f.s,theme:N,setTheme:e=>{T(e),(0,g.Kv)(e)},pageState:w,json:C,viewMode:k,setManifest:E,setPageState:S,setViewMode(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r={...k,...e};M(r),t&&(0,g.ZI)(r)}},children:(0,n.jsx)(a.Ay,{locale:(0,g.JK)(),theme:{components:{...N===j.Dark?b:{},Layout:{...N===j.Dark?b?.Layout:{},...j.Light===N&&{headerBg:"#fff"}}},algorithm:N===j.Dark?o.A.darkAlgorithm:o.A.defaultAlgorithm,token:{padding:16,fontFamily:"var(--font-family-code)",...N===j.Dark?v:{}}},children:(0,n.jsx)(x.P,{children:(0,n.jsxs)(n.Fragment,{children:[A,(0,n.jsx)(u.tH,{FallbackComponent:e=>{let{error:t,resetErrorBoundary:r}=e;return(0,n.jsx)(d.Ay,{status:"error",title:"Sorry, something went wrong.",extra:(0,n.jsx)(c.Ay,{type:"primary",onClick:r,loading:w===y.Pending,children:"Reload"}),children:(0,n.jsxs)(i.A.Paragraph,{children:[(0,n.jsx)(i.A.Title,{level:3,children:"Error Stack"}),(0,n.jsx)("pre",{children:t.stack||t.message})]})})},onReset:()=>{window.location.reload()},children:t})]})})})})})}},1637(e,t,r){var n=r(64558),s=r(87826),i=r(66482),l=r(85326),a=r(50162),o=r(17076),d=r(3534),c=r(1102),h=r(1426);r(15061);var u=r(50832);let p=e=>{let{percent:t,state:r,fontSize:l=14}=e,a=+t.toFixed(2);if(a>0){let e=`${a}`;if(r===s.Kj.Ol.Up)return(0,n.jsxs)(i.A.Text,{strong:!0,style:{fontSize:l,color:"#e17055"},children:["+",e,"%"]});if(r===s.Kj.Ol.Down)return(0,n.jsxs)(i.A.Text,{strong:!0,style:{fontSize:l,color:"#52c41a"},children:["-",e,"%"]})}return null},m=e=>{let{data:t,formatter:r}=e,{percent:s,state:o,size:d}=t,{baseline:c,current:u}=d,m=r?r(c,"baseline"):(0,h.Xq)(c),f=r?r(u,"current"):(0,h.Xq)(u);return(0,n.jsx)(l.A,{align:"start",children:(0,n.jsxs)(l.A,{direction:"vertical",style:{textAlign:"left"},children:[(0,n.jsxs)(l.A,{children:[(0,n.jsx)(i.A.Text,{style:{fontSize:10,color:"inherit"},keyboard:!0,children:"Current"}),(0,n.jsx)(a.A,{title:"number"==typeof f||"string"==typeof f?`Value of Current is ${f}`:void 0,children:(0,n.jsx)(i.A.Text,{style:{fontSize:16,color:"inherit"},strong:!0,children:f})}),(0,n.jsx)(p,{percent:s,state:o})]}),(0,n.jsxs)(l.A,{children:[(0,n.jsx)(i.A.Text,{style:{fontSize:10,color:"inherit"},keyboard:!0,children:"Baseline"}),(0,n.jsx)(a.A,{title:"number"==typeof m||"string"==typeof m?`Value of Baseline is ${m}`:void 0,children:(0,n.jsx)(i.A.Text,{style:{fontSize:14},type:"secondary",children:m})})]})]})})};r.d(t,{},{QE:p,aq:e=>{let{titles:t,datas:r,formatter:s,showPercentInTitle:a}=e,[d,h]=(0,c.useState)(0);return(0,n.jsx)(u.j,{title:t.length>1?(0,n.jsx)(o.A,{defaultValue:t[d],options:a?t.map((e,t)=>{let s=r[t];return{label:(0,n.jsxs)(l.A,{children:[(0,n.jsx)(i.A.Text,{children:e}),(0,n.jsx)(p,{percent:s.percent,state:s.state})]}),value:e}}):t,onChange:e=>{h(t.indexOf(e))},size:"small",style:{transition:"transform 0.3s ease"},value:t[d]||t[0]}):t[d],value:(0,n.jsx)(m,{data:r[d],formatter:s}),statisticProps:{style:{textAlign:"left"}}})},vh:e=>{let{baseline:t,current:r,...s}=e,i=d.TS.Nt(t,r);return(0,n.jsx)(p,{...s,...i})}})},44506(e,t,r){var n=r(64558),s=r(1102),i=r(28005),l=r(59896),a=r(30147),o=r(85326);r(1637),r.d(t,{},{Zp:e=>{let{collapsable:t=!1,children:r,title:d,dividerStyle:c,defaultCollapsed:h=!1,...u}=e,[p,m]=(0,s.useState)(h);return d&&t?(0,n.jsx)(a.A,{style:{borderRadius:"12px"},...u,title:(0,n.jsxs)(o.A,{style:{fontSize:"inherit"},children:[(0,n.jsx)("div",{style:{cursor:"pointer"},onClick:()=>m(!p),children:p?(0,n.jsx)(i.A,{}):(0,n.jsx)(l.A,{})}),d]}),children:p?null:r}):(0,n.jsx)(a.A,{style:{borderRadius:"12px"},title:d,...u,children:r})}})},50832(e,t,r){var n=r(64558),s=r(67628);r.d(t,{},{j:e=>{let{title:t,value:r,statisticProps:i,boxProps:l}=e;return(0,n.jsx)("div",{className:"statistic-card",...l,children:(0,n.jsx)(s.A,{title:(0,n.jsx)("div",{className:"statistic-card-title",children:t}),valueRender:()=>r,valueStyle:{fontSize:24},...i})})}})},29980(e,t,r){r.d(t,{n:()=>j});var n=r(64558),s=r(1102),i=r(35574),l=r(91241),a=r(88523),o=r(74008),d=r(77731),c=r(3935),h=r(96308),u=r(6750),p=r(51199),m=r(817),f=r.n(m),x=r(67782),g=r(66592),y=r(1426);l.Y([d.a,c.a,h.a,u.a,p.a]);let j=(0,s.memo)(e=>{let{loaderData:t,pluginsData:r,formatterFn:l,chartType:d=5,exts:c=null}=e,[h,u]=(0,s.useState)({}),p=(0,y.al)(),{data:m,categories:j}=(0,s.useMemo)(()=>{let e=[],n=[];if(t){t.forEach(e=>{n.unshift(e.n+" total"),n.unshift(e.n)}),t.forEach((t,r)=>{let s=g.LS[r%g.LS.length];e.push({name:t.n+" total",value:[n.indexOf(t.n+" total"),t.s,t.e,t.e-t.s],itemStyle:{normal:{color:s,opacity:.34}}}),t.c?.forEach((s,i)=>{e.push({name:t.n,value:[n.indexOf(t.n),s.s,s.e,s.e-s.s],itemStyle:{normal:{color:g.LS[(r+i)%g.LS.length],opacity:.78}},ext:s.ext})})});for(let e=0;e<n.length;e++)n[e]=e%2!=0?n[e].replace(" total",""):""}if(r){let t=(0,x.$z)(r,e=>e.pid);Object.keys(t).reverse().forEach((r,s)=>{t[r].forEach((t,r)=>{e.push({name:String(t.pid),value:[s,t.args.s,t.args.e,t.args.e-t.args.s],itemStyle:{normal:{color:g.LS[(s+r)%g.LS.length],opacity:.78}},ext:t})}),n.push(String(r.charAt(0).toUpperCase()+r.slice(1)))})}return{data:e,categories:n}},[t,r]);(0,s.useEffect)(()=>{u({tooltip:{formatter:e=>l(e)},dataZoom:[{type:"slider",filterMode:"weakFilter",showDataShadow:!1,top:-8,height:14,borderColor:p.colorBorderSecondary,backgroundColor:p.colorFillQuaternary,fillerColor:p.colorPrimaryBg,handleStyle:{color:p.colorTextSecondary,borderColor:p.colorBorder}},{type:"inside",filterMode:"weakFilter"}],grid:{top:18,left:12,bottom:12,right:16,height:j.length>(4===d?6:3)?"auto":46*j.length,containLabel:!0},xAxis:{interval:function(e){if(!e)return null;let t=e.endTimestamp-e.startTimestamp;return!Number.isFinite(t)||t<=0?null:Math.max(1,Math.ceil(t/5))}(c??void 0),position:"top",splitLine:{show:!0,lineStyle:{color:p.colorBorderSecondary,width:1}},scale:!0,axisLine:{show:!1},axisLabel:{color:p.colorTextSecondary,fontSize:11,hideOverlap:!0,margin:10,formatter:e=>f()(e).format("HH:mm:ss:SSS")}},yAxis:{type:"category",splitLine:{show:!1},axisLabel:{inside:!1,lineHeight:20,width:4===d?220:140,overflow:"truncate",margin:16,fontSize:12,color:p.colorTextSecondary,verticalAlign:"middle"},axisLine:{show:!1},axisTick:{show:!1},data:j},series:[{type:"custom",renderItem:function(e,t){let r=t.value(0),n=t.coord([t.value(1),r]),s=t.coord([t.value(2),r]),i=.36*t.size([0,1])[1],l=a.clipRectByRect({x:n[0],y:4===d?n[1]-(r%2!=0?0:2*i):n[1],width:s[0]-n[0]||5,height:i},{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:1},encode:{x:[1,2],y:0},data:m}]})},[j,d,m,c,l,p]);let v=t?2*t.length:new Set(r?.map(e=>e.pid)).size,b=3===d?100:4===d?Math.min(Math.max(46*v+80,300),1e3):Math.min(Math.max(46*v+70,200),1e3);return(0,n.jsx)(i.A,{option:h,echarts:o,style:{width:"100%",height:`${b}px`,border:"1px solid var(--color-border)",borderRadius:"10px"}})})},95194(e,t,r){var n=r(64558),s=r(1102),i=r(67782),l=r(74374);r(17255);var a=r(22009),o=r(5525),d=r(35784),c=r(29980),h=r(55096);let u=0,p=0;r.d(t,{},{z:e=>{let{loaders:t,cwd:r}=e,{isDark:m}=(0,a.DP)(),f=(0,s.useRef)(null),[x,g]=(0,s.useState)([]),y=(0,h.Wy)(x,200),j=(0,s.useMemo)(()=>(0,i.$z)(t,e=>e.loader),[t]),v=(0,s.useCallback)(e=>{let{name:n,data:s}=e,i=n.replace(" total","");return s?.ext?(0,h.Bq)(s.ext):(0,h.iv)(i,t,r)},[]);return(0,s.useEffect)(()=>{g(Object.keys(j).map(e=>{let t=j[e]||[],{start:n,end:s}=(0,o.xr)(t);return(n<u||0===u)&&(u=n),(s>p||0===p)&&(p=s),{p:e,n:e,s:n,e:s,c:t.map(t=>({p:e,n:(0,d.Zb)(t.resource,r),s:t.startAt,e:t.endAt,ext:t}))}}))},[j]),(0,n.jsx)(n.Fragment,{children:x?.length?(0,n.jsx)("div",{className:["loader-chart-container",m?"loader-chart-container_dark":""].join(" ").trim(),ref:f,style:{width:"100%"},children:(0,n.jsx)(c.n,{loaderData:y,formatterFn:v,chartType:4,exts:{startTimestamp:u,endTimestamp:p}})}):(0,n.jsx)(l.A,{})})}})},75140(e,t,r){r.d(t,{h:()=>j,C:()=>y});var n=r(64558);r(1102);var s=r(85326),i=r(61324),l=r(14124),a=r(37831),o=r(48406),d=r(87738),c=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,n.jsx)("path",{fill:"#FAAD14",d:"M11.409 3.51 8.046.146A.5.5 0 0 0 7.693 0H1.056a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.462 1.152l2.94 2.94h-2.94zm2.969 11.722H1.68V1.125h4.718V4.5a.656.656 0 0 0 .657.656h3.375z"}),(0,n.jsx)("path",{fill:"#FAAD14",d:"M6.927 9.651h.888a1.6 1.6 0 0 1-.24.775q-.211.339-.592.528-.377.19-.908.19a1.9 1.9 0 0 1-.745-.142 1.6 1.6 0 0 1-.564-.416 1.9 1.9 0 0 1-.354-.653 2.8 2.8 0 0 1-.121-.858v-.3q0-.474.124-.858.128-.386.362-.656.238-.27.567-.415.33-.146.737-.146.54 0 .911.196.375.195.58.54.206.345.249.784H6.93a1.15 1.15 0 0 0-.104-.442.6.6 0 0 0-.27-.276 1 1 0 0 0-.475-.095.86.86 0 0 0-.39.083.7.7 0 0 0-.278.252 1.3 1.3 0 0 0-.17.428q-.053.255-.053.6v.305q0 .335.05.591.051.251.155.428a.7.7 0 0 0 .273.26.9.9 0 0 0 .407.087q.28 0 .46-.09a.6.6 0 0 0 .276-.263q.098-.176.116-.437"}),(0,n.jsx)("path",{fill:"#FFF1B8",fillRule:"evenodd",d:"M6.4 1.125V4.5a.656.656 0 0 0 .656.656h3.375v7.719H1.68V1.125zm1.415 8.526h-.888q-.017.261-.116.437a.6.6 0 0 1-.276.264q-.18.09-.46.089a.9.9 0 0 1-.407-.086.7.7 0 0 1-.273-.261q-.104-.176-.154-.428a3 3 0 0 1-.05-.59v-.307q0-.345.053-.6.056-.258.169-.427a.7.7 0 0 1 .279-.252.86.86 0 0 1 .389-.083q.297 0 .475.095a.6.6 0 0 1 .27.276q.09.18.104.442h.89a1.8 1.8 0 0 0-.249-.784q-.205-.345-.579-.54-.37-.195-.911-.196-.407 0-.737.146-.33.145-.567.415-.234.27-.362.656a2.8 2.8 0 0 0-.124.858v.3q0 .476.121.858.122.383.354.653.234.27.564.416.33.143.745.143.531 0 .908-.19.38-.19.591-.529a1.6 1.6 0 0 0 .24-.775",clipRule:"evenodd"})]}),h=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,n.jsx)("path",{fill:"#722ED1",d:"M6.076 7.58a.356.356 0 0 1 .646.299l-1.576 3.414a.356.356 0 0 1-.646-.298zM7.198 8.135a.356.356 0 0 0 0 .503l.8.799-.8.8a.356.356 0 1 0 .503.502l1.05-1.05a.356.356 0 0 0 0-.503l-1.05-1.05a.356.356 0 0 0-.503 0M4.024 8.135a.356.356 0 0 1 0 .503l-.799.799.8.8a.356.356 0 1 1-.504.502l-1.05-1.05a.356.356 0 0 1 0-.503l1.05-1.05a.356.356 0 0 1 .503 0"}),(0,n.jsx)("path",{fill:"#EFDBFF",fillRule:"evenodd",d:"M5.955 1.125V4.5a.656.656 0 0 0 .656.656h3.375v7.719h-8.75V1.125zm.121 6.456a.356.356 0 1 1 .646.298l-1.576 3.414a.356.356 0 1 1-.646-.298zm1.122.554a.356.356 0 0 0 0 .503l.8.799-.8.8a.356.356 0 1 0 .503.502l1.05-1.05a.356.356 0 0 0 0-.503l-1.05-1.05a.356.356 0 0 0-.503 0m-3.174.503a.356.356 0 1 0-.503-.503l-1.05 1.05a.356.356 0 0 0 0 .503l1.05 1.05a.355.355 0 1 0 .503-.502l-.799-.799z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#722ED1",d:"M10.964 3.51 7.602.146A.5.5 0 0 0 7.249 0H.61a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.017 1.152l2.941 2.94h-2.94zm2.97 11.722h-8.75V1.125h4.718V4.5a.656.656 0 0 0 .656.656h3.375z"})]}),u=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,n.jsx)("path",{fill:"#E6F7FF",d:"M6.733 4.5V1.125h-4.72v11.75h8.75V5.156H7.39a.656.656 0 0 1-.656-.656m-2.094.781a.625.625 0 1 1 0 1.25.625.625 0 0 1 0-1.25m4.625 4.594H3.515a.125.125 0 0 1-.098-.202l1.56-1.987a.125.125 0 0 1 .196 0l.642.819 1.216-1.55a.126.126 0 0 1 .199 0l2.132 2.718a.125.125 0 0 1-.098.202"}),(0,n.jsx)("path",{fill:"#1890FF",d:"M11.742 3.51 8.38.146A.5.5 0 0 0 8.026 0H1.39a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.795 1.152l2.94 2.94h-2.94zm2.969 11.722h-8.75V1.125h4.719V4.5a.656.656 0 0 0 .656.656h3.375z"}),(0,n.jsx)("path",{fill:"#1890FF",d:"m7.031 6.955-1.215 1.55-.643-.82a.125.125 0 0 0-.196 0l-1.56 1.988a.125.125 0 0 0 .099.202h5.748c.105 0 .163-.12.098-.202L7.23 6.955a.127.127 0 0 0-.199 0M4.014 5.906a.625.625 0 1 0 1.25 0 .625.625 0 0 0-1.25 0"})]}),p=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,n.jsx)("path",{fill:"#E6F7FF",fillRule:"evenodd",d:"M6.177 1.125V4.5a.656.656 0 0 0 .656.656h3.375v7.719h-8.75V1.125zm1.806 8.7q.03.081.03.183a.411.411 0 0 1-.26.388.8.8 0 0 1-.333.057q-.166 0-.307-.034a.7.7 0 0 1-.24-.11.5.5 0 0 1-.153-.197.7.7 0 0 1-.055-.3H5.88q0 .321.133.555.132.234.354.386.225.15.497.226.275.073.555.073.313 0 .565-.07.254-.07.435-.206.183-.135.279-.33a1 1 0 0 0 .096-.443q0-.235-.08-.42a1 1 0 0 0-.24-.33 1.7 1.7 0 0 0-.396-.263 3.5 3.5 0 0 0-.544-.211 3 3 0 0 1-.326-.118 1.3 1.3 0 0 1-.237-.127.5.5 0 0 1-.146-.146.33.33 0 0 1-.047-.174q0-.129.068-.23a.45.45 0 0 1 .203-.164.8.8 0 0 1 .339-.062q.21 0 .349.073a.48.48 0 0 1 .208.2q.07.125.07.292h.777q0-.339-.175-.602a1.17 1.17 0 0 0-.484-.414 1.7 1.7 0 0 0-.732-.15q-.307 0-.565.075-.255.075-.443.216a1 1 0 0 0-.292.333.9.9 0 0 0-.104.43q0 .244.1.43.1.184.275.325.178.138.406.242.232.104.49.188.232.072.378.14a1 1 0 0 1 .226.138q.08.068.11.152M4.595 7.209v2.628q0 .195-.063.33a.46.46 0 0 1-.17.206.47.47 0 0 1-.257.07.6.6 0 0 1-.263-.051.36.36 0 0 1-.17-.175.8.8 0 0 1-.057-.33h-.783q0 .398.164.658.164.258.45.383t.659.125q.36 0 .646-.146.289-.146.456-.416.166-.274.166-.654V7.208z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#1890FF",d:"M8.014 10.008a.5.5 0 0 0-.031-.182.34.34 0 0 0-.11-.152 1 1 0 0 0-.226-.138 3 3 0 0 0-.378-.14 5 5 0 0 1-.49-.188 2 2 0 0 1-.406-.242 1.1 1.1 0 0 1-.276-.325.9.9 0 0 1-.099-.43q0-.237.104-.43a1 1 0 0 1 .292-.333q.188-.141.443-.216.258-.075.565-.076.42 0 .732.151.312.152.484.414.175.264.175.602h-.776a.6.6 0 0 0-.07-.292.48.48 0 0 0-.21-.2.74.74 0 0 0-.348-.073.8.8 0 0 0-.339.062.45.45 0 0 0-.203.164.4.4 0 0 0-.067.23q0 .096.046.174.05.078.146.146t.237.127q.14.06.326.118.31.093.544.21.237.118.396.264a1 1 0 0 1 .24.33q.08.185.08.42a1 1 0 0 1-.096.442.9.9 0 0 1-.279.331q-.181.135-.435.206a2.1 2.1 0 0 1-.565.07q-.28 0-.555-.073a1.7 1.7 0 0 1-.497-.226q-.222-.152-.354-.386a1.1 1.1 0 0 1-.133-.555h.784q0 .178.055.3a.5.5 0 0 0 .153.198q.102.075.24.11.14.033.307.033.204 0 .333-.057a.41.41 0 0 0 .26-.388M4.595 9.836V7.208h.778v2.628q0 .38-.166.654-.167.27-.456.416a1.4 1.4 0 0 1-.646.146q-.372 0-.659-.125a1 1 0 0 1-.45-.383q-.164-.26-.164-.659h.783q0 .21.058.331a.36.36 0 0 0 .169.175q.109.052.263.052a.47.47 0 0 0 .258-.07.46.46 0 0 0 .17-.206q.061-.135.062-.331"}),(0,n.jsx)("path",{fill:"#1890FF",d:"M11.186 3.51 7.824.146A.5.5 0 0 0 7.47 0H.833a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.24 1.152l2.94 2.94H7.24zm2.968 11.722h-8.75V1.125h4.72V4.5a.656.656 0 0 0 .655.656h3.375z"})]}),m=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,n.jsx)("path",{fill:"#F0F0F0",d:"M6.288 4.5V1.125H1.57v11.75h8.75V5.156H6.944a.656.656 0 0 1-.656-.656m-.344 6.625a.5.5 0 1 1 0-.999.5.5 0 0 1 0 .999m1.72-3.569c.01.702-.465 1.32-1.162 1.546a.22.22 0 0 0-.151.207V9.5c0 .086-.07.156-.157.156h-.5a.157.157 0 0 1-.156-.156V9a.65.65 0 0 1 .542-.627c.443-.057.77-.4.77-.795 0-.439-.402-.805-.906-.805-.503 0-.906.366-.906.807a.15.15 0 0 1-.153.147H4.38a.15.15 0 0 1-.153-.149c0-.897.783-1.62 1.742-1.61.926.013 1.683.721 1.695 1.588"}),(0,n.jsx)("path",{fill:"#8C8C8C",d:"M11.298 3.51 7.935.148A.5.5 0 0 0 7.58 0H.944a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.146-.353M7.35 1.154l2.94 2.94h-2.94zm2.968 11.722H1.57V1.125h4.72V4.5a.656.656 0 0 0 .655.656h3.375z"}),(0,n.jsx)("path",{fill:"#8C8C8C",d:"M5.444 10.625a.5.5 0 1 0 1 0 .5.5 0 0 0-1 0M4.226 7.578a.15.15 0 0 0 .153.149h.506a.15.15 0 0 0 .153-.147c0-.44.403-.807.906-.807.504 0 .907.366.907.805 0 .395-.328.738-.77.795A.65.65 0 0 0 5.537 9v.5c0 .086.07.156.156.156h.5c.086 0 .157-.07.157-.156v-.19a.22.22 0 0 1 .151-.208c.697-.225 1.172-.844 1.161-1.546-.012-.867-.769-1.575-1.695-1.587-.96-.011-1.742.712-1.742 1.61"})]}),f=r(1426),x=r(13078),g=r.n(x);function y(e){let t=function(e){switch(g().extname(e).slice(1).toLowerCase()){case"js":case"jsx":case"ts":case"mjs":case"cjs":case"mts":case"cts":return(0,n.jsx)(p,{});case"tsx":default:return(0,n.jsx)(m,{});case"css":case"scss":case"sass":case"less":case"styl":case"stylus":return(0,n.jsx)(c,{});case"html":return(0,n.jsx)(h,{});case"png":case"jpg":case"jpeg":case"gif":case"svg":case"bmp":case"webp":case"ico":case"apng":case"avif":case"tif":case"tiff":case"jfif":case"pjpeg":case"pjp":return(0,n.jsx)(u,{})}}(e);return(0,n.jsx)("div",{className:"file-icon",children:t})}let j=e=>{let{isDark:t}=(0,f.DP)(),r=(0,f.al)(),c=t?r.colorWhite:r.colorText,h={fontSize:r.fontSize};return(0,n.jsx)(d.A,{checkable:!1,selectable:!0,switcherIcon:e=>{let{data:t,expanded:r}=e;return t?.children?(0,n.jsxs)(s.A,{style:{color:c},children:[(0,n.jsx)(i.A,{twoToneColor:c,className:`file-tree-switcher-arrow ${r?"file-tree-switcher-arrow-expand":""}`,style:h}),r?(0,n.jsx)(l.A,{}):(0,n.jsx)(a.A,{})]}):t?.key&&"string"==typeof t.key?y(t.key):(0,n.jsx)(o.A,{})},expandAction:"click",...e})}},7415(e,t,r){var n=r(64558),s=r(1102),i=r(70722),l=r(53919),a=r(66482);r.d(t,{},{E:e=>{let t,{icon:r,label:o,labelStyle:d={},placeholder:c,onChange:h,style:u,className:p,width:m,delay:f=300}=e,[x,g]=(0,s.useState)(""),y={width:120,...d},j=(0,s.useRef)(null);return(0,s.useEffect)(()=>{h(x)},[x]),(0,n.jsxs)(i.A.Group,{compact:!0,style:u,className:p,children:[o||r?(0,n.jsxs)(l.Ay,{style:y,onClick:()=>{j&&j.current&&j.current.focus()},children:[r||null,(0,n.jsx)(a.A.Text,{children:o})]}):null,(0,n.jsx)(i.A,{ref:j,allowClear:!0,defaultValue:x,style:{width:m?m-120:250},placeholder:c,onChange:e=>{t&&clearTimeout(t);let r=e.target.value.trim();t=setTimeout(()=>{g(r)},f)}})]})}})},78131(e,t,r){r.d(t,{P:()=>W});var n=r(64558),s=r(1102),i=r(75273),l=r(36187),a=r(15061),o=r(87826),d=r(80844),c=r(63598),h=r(85395),u=r(23807),p=r(1426),m=r(49249),f=r(6755),x=r(85326),g=r(66482),y=r(13616),j=r(54594),v=r(52726),b=r(76253);let A=()=>{let[e,t]=(0,s.useState)(""),[r,i]=(0,s.useState)([]);return((0,s.useEffect)(()=>{let e=window[o.YM.tQ];if(e?.name&&e.series?.length){t(e.name),i(e.series);return}(0,p.Cj)().then(e=>{let{name:r,series:n}=e;r&&t(r),n&&n.length>0&&i(n)})},[]),e.length<=0||r.length<=1)?(0,n.jsx)(n.Fragment,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f.A,{type:"vertical",style:{margin:"0 24px"}}),(0,n.jsxs)(x.A,{children:[(0,n.jsx)(b.A,{style:{fontSize:"18px"},component:v.A}),(0,n.jsx)(g.A,{children:"Compiler"}),(0,n.jsx)(y.A,{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,p.$G)(t.origin):t.path?location.href=t.path.endsWith(".html")?new URL(t.path,location.href).href:(0,p.mZ)(t.path):console.error("No Rsdoctor compiler report location"))},children:r.map(e=>(0,n.jsx)(y.A.Option,{value:e.name,className:"builder-selector-option-item",children:(0,n.jsxs)(x.A,{size:6,children:[(0,n.jsx)("span",{children:e.displayName||e.name}),e.isChild?(0,n.jsx)(j.A,{color:"blue",bordered:!1,children:"Child"}):null]})},e.name))})]})]})};var w=r(37318),S=r(47682),k=r(89275),M=r(32715),C=r(40008),E=r(53879),N=r(80606),T=r(41611),D=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,n.jsx)("rect",{width:12,height:9.333,x:.396,y:.167,fill:"#0079FF",rx:1}),(0,n.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M3.563 3.5c.276 0 .5.214.5.478v3.044a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478V3.978a.49.49 0 0 1 .5-.478M6.396 1.833c.276 0 .5.214.5.479v4.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-4.71a.49.49 0 0 1 .5-.479M9.23 4.833c.275 0 .5.214.5.479v1.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-1.71a.49.49 0 0 1 .5-.479",clipRule:"evenodd"}),(0,n.jsx)("rect",{width:6,height:1.333,x:3.396,y:10.5,fill:"#0079FF",fillOpacity:.5,rx:.667})]}),z=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,n.jsx)("rect",{width:12,height:9.333,x:.396,y:.167,fill:"#0079FF",rx:1}),(0,n.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M4.023 6.212 2.676 5.014l1.347-1.199M8.752 6.212l1.347-1.198-1.347-1.199M5.742 7.014l1.362-4"}),(0,n.jsx)("rect",{width:6,height:1.333,x:3.396,y:10.5,fill:"#0079FF",fillOpacity:.5,rx:.667})]}),L=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,n.jsx)("path",{fill:"#0079FF",fillRule:"evenodd",d:"M6.329.788A1 1 0 0 0 5.35.8L.466 3.62l5.36 2.83 5.327-3.044zm-.993 12.777V7.322L.063 4.54v5.404a1 1 0 0 0 .5.866z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#0079FF",fillOpacity:.5,fillRule:"evenodd",d:"M5.354.8H5.35L.546 3.576l.017-.01L5.336.81zm-.018 12.765V7.322L.063 4.54l5.273 2.783zm1-6.254 5.265-3.009q.009.064.009.13v5.511a1 1 0 0 1-.5.866l-4.774 2.756z",clipRule:"evenodd"})]}),I=r(42718);let _="Compile Analysis",R={overall:(0,n.jsx)(e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,n.jsx)("rect",{width:12,height:9.333,x:.615,y:.167,fill:"#5E6673",rx:1}),(0,n.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M3.781 3.5c.277 0 .5.214.5.478v3.044a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478V3.978a.49.49 0 0 1 .5-.478M6.615 1.833c.276 0 .5.214.5.479v4.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-4.71a.49.49 0 0 1 .5-.479M9.448 4.833c.276 0 .5.214.5.479v1.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-1.71a.49.49 0 0 1 .5-.479",clipRule:"evenodd"}),(0,n.jsx)("rect",{width:6,height:1.333,x:3.615,y:10.5,fill:"#5E6673",fillOpacity:.5,rx:.667})]}),{}),compile:(0,n.jsx)(e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,n.jsx)("rect",{width:12,height:9.333,x:.615,y:.167,fill:"#5E6673",rx:1}),(0,n.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M4.241 6.212 2.895 5.014 4.24 3.815M8.97 6.212l1.347-1.198-1.346-1.199M5.96 7.014l1.363-4"}),(0,n.jsx)("rect",{width:6,height:1.333,x:3.615,y:10.5,fill:"#5E6673",fillOpacity:.5,rx:.667})]}),{}),bundle:(0,n.jsx)(e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,n.jsx)("path",{fill:"#5E6673",fillRule:"evenodd",d:"M6.44.672a1 1 0 0 0-.977.013L.578 3.505l5.36 2.83 5.327-3.044zm-.992 12.777V7.206L.175 4.423v5.404a1 1 0 0 0 .5.866z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#5E6673",fillOpacity:.5,fillRule:"evenodd",d:"m5.466.683-.003.002L.658 3.459l.017-.01L5.448.693zM5.448 13.45V7.206L.175 4.423l5.273 2.783zm1-6.254 5.265-3.009q.009.064.009.13v5.511a1 1 0 0 1-.5.866L6.448 13.45z",clipRule:"evenodd"})]}),{})},P=(0,T.eN)({api:o.hp.uT.n.GetClientRoutes,responsePropName:"routes",Component:e=>{let{t}=(0,p.s9)(),{pathname:r}=(0,u.zy)(),i=(0,u.Zp)(),[l,a]=(0,s.useState)(R),{routes:d}=e,c=(0,p.TR)(),h=d&&d.length>0?d:c||[];(0,s.useEffect)(()=>{r.includes("loaders")||r.includes("plugins")||r.includes("/module/resolve")?a({...R,compile:(0,n.jsx)(z,{})}):r.includes("overall")||"/"===r?a({...R,overall:(0,n.jsx)(D,{})}):r.includes("bundle")&&a({...R,bundle:(0,n.jsx)(L,{})})},[r]);let m={color:"rgba(96, 102, 114)"},f=[];h.includes(o._8.z.Overall)&&f.push({label:t(N.U),key:N.w,icon:l.overall,children:[],onTitleClick(e){i(e.key)}}),(0,p.cv)(h)&&f.push({label:t(_),key:_,icon:l.compile,children:[h.includes(o._8.z.Loaders)&&{label:t(I.pI.UU),key:I.pI.wE,icon:(0,n.jsx)(w.A,{style:m})},h.includes(o._8.z.Loaders)&&{label:t(I.hK.UU),key:I.hK.wE,icon:(0,n.jsx)(S.A,{style:m})},h.includes(o._8.z.ModuleResolve)&&{label:t(I.dn.UU),key:I.dn.wE,icon:(0,n.jsx)(k.A,{style:m})},h.includes(o._8.z.Plugins)&&{label:t(I.FO.UU),key:I.FO.wE,icon:(0,n.jsx)(M.A,{style:m})}].filter(e=>!!e)}),(0,p.r0)(h)&&f.push({label:t(I._y.UU),key:I._y.UU,icon:l.bundle,children:[],onTitleClick(){i(I._y.wE)}});let{theme:x}=(0,p.DP)(),g=(0,n.jsx)(E.A,{items:f,theme:x,mode:"horizontal",onClick:e=>{e.keyPath.includes("builder-switcher")||i(e.key)},disabledOverflow:!0,overflowedIndicator:(0,n.jsx)(C.A,{}),className:"primaryMenu-gMpDIg",style:{height:54,lineHeight:"54px",minWidth:0,justifyContent:"flex-start",...e.style},selectedKeys:["/"===r?N.w:r]},h.join(""));return(0,n.jsx)("nav",{className:"menuContainer-teTlDu","aria-label":"Primary navigation",children:g})},fallbackComponent:()=>null,showSkeleton:!1}),B=e=>{let{enableRoutes:t}=e,r=(0,u.Zp)(),{setTheme:s,isLight:l,isDark:f}=(0,p.DP)();return(0,n.jsx)(i.A.Header,{className:"root-nAtwJx",children:(0,n.jsxs)(d.A,{className:"innerRoot-b2vAK8",children:[(0,n.jsx)(c.A,{className:"leftCol-n3WyJ5",children:(0,n.jsxs)("div",{className:"leftColInner-AB1JiD",children:[(0,n.jsx)("button",{type:"button",className:"logoButton-TKslN_","aria-label":"Go to Rsdoctor home",onClick:()=>{location.hash.includes(o.Kj.EH.Uploader)&&location.pathname.includes("/preview")?location.href="http://rsdoctor.rs":r(o.Kj.EH.Home)},children:(0,n.jsx)("img",{width:"1604",height:"380",src:l?"https://assets.rspack.rs/rsdoctor/rsdoctor-title-logo.png":"https://assets.rspack.rs/rsdoctor/rsdoctor-logo-dark.png",className:"rsdoctorLogo-O30iKB",alt:"Rsdoctor",draggable:!1})}),(0,n.jsx)(A,{})]})}),(0,n.jsx)(P,{style:{transition:"none"}},t?JSON.stringify(t):"default"),(0,n.jsx)(c.A,{className:"rightCol-jgHpb9",children:(0,n.jsxs)(d.A,{className:"rightColInner-nINgMT",children:[(0,n.jsx)(c.A,{children:(0,n.jsx)(m.EJ,{})}),(0,n.jsx)(c.A,{children:(0,n.jsx)(h.A,{className:"themeSwitch-qaSSKB","aria-label":f?"Use light theme":"Use dark theme",checkedChildren:"🌛",unCheckedChildren:"🌞",checked:f,onChange:e=>{s(e?a.Sx.Dark:a.Sx.Light)}})})]})})]})})};var $=r(23197);let F=(0,T.eN)({api:o.hp.uT.k.GetCompileProgress,responsePropName:"progress",Component:e=>{let{progress:t}=e;if(!t)return null;let{percentage:r=1,message:s}=t;if(r>=1)return null;let i=+(100*r).toFixed(1);return(0,n.jsx)(d.A,{wrap:!0,style:{width:"100%",position:"fixed",top:54,left:1,zIndex:99},children:(0,n.jsx)(c.A,{span:Math.min(Math.floor(24*r),24),children:(0,n.jsx)($.A,{percent:100,status:"active",size:"small",format:()=>(0,n.jsx)(g.A.Text,{style:{fontSize:12},type:"secondary",children:`${i}% ${s}`})})})})},fallbackComponent:()=>null,showSkeleton:!1});var O=r(17886),G=r(76274);let q=e=>{let{name:t}=e;return(0,s.useEffect)(()=>{t?document.title=`Rsdoctor - ${t}`:document.title="Rsdoctor"},[t]),null},W=e=>{let{isLight:t}=(0,p.DP)(),r=(0,p.al)(),{children:a}=e,d=(0,p.xF)(),[c,h]=(0,s.useState)(()=>(0,p.TR)()||void 0);(0,s.useEffect)(()=>{h((0,p.TR)()||void 0)},[d]);let u=!(0,s.useContext)(O.Q).embedded;return(0,s.useLayoutEffect)(()=>{let e=document.documentElement;for(let[n,s]of Object.entries({"--spacing-base":"20px","--layout-nav-height":u?"54px":"0px","--color-bg-main":t?"":r.colorBgLayout,"--color-bg-box":r.colorBgContainer,"--color-bg-box-elevated":t?r.colorBgLayout:r.colorBgElevated,"--color-bg-box-subtle":t?r.colorBgContainer:"#0d1218","--color-border":r.colorBorder,"--color-border-secondary":r.colorBorderSecondary,"--color-divider":r.colorBorder,"--color-scrollbar":t?"rgba(0, 0, 0, 0.5)":"rgba(255,255,255, 0.5)","--text-color":r.colorText,"--text-color-secondary":r.colorTextSecondary,"--text-color-muted":r.colorTextTertiary,"--color-accent-subtle":t?"#e6f4ff":"rgba(47, 129, 247, 0.12)","--color-data-bundled":"#5b8ff9","--color-data-source":"#43c6d9","--color-data-gzip":"#f2b84b","--color-data-initial":"#43c6d9","--border-radius":r.borderRadius+"px","--border-radius-lg":r.borderRadiusLG+"px"}))e.style.setProperty(n,s)},[u,r,t]),(0,n.jsx)(T.zW,{api:o.hp.uT.n.GetProjectInfo,showSkeleton:!1,children:e=>(0,n.jsx)(G.h.Provider,{value:{project:e},children:(0,n.jsxs)(i.A,{children:[(0,n.jsx)(q,{name:e?.name}),u&&(0,n.jsx)(B,{enableRoutes:c}),(0,n.jsx)(F,{}),(0,n.jsxs)(i.A.Content,{className:"content-LBJ07l",children:[a,(0,n.jsx)(l.A.BackTop,{})]})]})})})}},73058(e,t,r){r.d(t,{h:()=>q});var n=r(64558),s=r(12529),i=r(87826),l=r(6755),a=r(54594),o=r(85326),d=r(50162),c=r(66482),h=r(50037),u=r(88693),p=r(80844),m=r(63598),f=r(30147),x=r(35074),g=r(60339),y=r(67782),j=r(1102),v=r(15061),b=r(1426),A=r(75140),w=r(46977),S=r(41611),k=r(20458),M=r(74374),C=r(7802),E=r(78593),N=r(817),T=r.n(N),D=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:12,fill:"none",viewBox:"0 0 10 12",...e,children:[(0,n.jsx)("path",{fill:"#FAAD14",fillRule:"evenodd",d:"M3.151 7.98h-1.85a.925.925 0 0 1-.924-.925V1.508c0-.511.414-.925.925-.925h7.396c.511 0 .925.414.925.925v5.547c0 .51-.414.924-.925.924H6.85V6.13a1.85 1.85 0 0 0-3.698 0z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#FAAD14",d:"M4.076 9.829a.925.925 0 0 0 1.849 0V6.13a.925.925 0 0 0-1.85 0z"}),(0,n.jsx)("path",{fill:"#FAAD14",d:"M5 11.416 7.402 8.92H2.598z"})]}),z=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,n.jsx)("rect",{width:16,height:16,fill:"#F6FFED",rx:2}),(0,n.jsx)("path",{fill:"#52C41A",fillRule:"evenodd",d:"M4.302 6.02a.925.925 0 0 0-.925.925v5.547c0 .51.414.925.925.925h7.396c.511 0 .925-.414.925-.925V6.945a.925.925 0 0 0-.925-.925zm5.547 0H6.151v1.85a1.85 1.85 0 0 0 3.698 0z",clipRule:"evenodd"}),(0,n.jsx)("path",{fill:"#52C41A",d:"M7.076 4.171a.925.925 0 0 1 1.849 0V7.87a.925.925 0 0 1-1.85 0z"}),(0,n.jsx)("path",{fill:"#52C41A",d:"m8 2.584 2.402 2.496H5.598z"})]}),L=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",viewBox:"0 0 14 14",...e,children:(0,n.jsx)("path",{fill:"#2994FF",d:"M7 10.736 1.7 6.589a.125.125 0 0 0-.201.098v1.208c0 .077.036.15.095.197l5.097 3.989a.5.5 0 0 0 .617 0l5.095-3.99a.25.25 0 0 0 .096-.196V6.687a.125.125 0 0 0-.202-.098zm0-4.75L1.7 1.839a.125.125 0 0 0-.201.098v1.208c0 .077.036.15.095.197L6.692 7.33a.5.5 0 0 0 .617 0l5.095-3.99a.25.25 0 0 0 .096-.196V1.937a.125.125 0 0 0-.202-.098z"})}),I=r(73308),_=r(44506),R=r(91326),P=r(76174),B=r(40544),$=r(70851);let F=e=>{let{loader:t,resource:r,cwd:s}=e;return(0,n.jsx)(_.Zp,{title:"Loader Details",style:{border:"none"},extra:(0,n.jsx)(a.A,{icon:(0,n.jsx)(k.A,{}),color:"default",children:T()(t.startAt).format("YYYY-MM-DD HH:mm:ss")}),children:(0,n.jsxs)(o.A,{direction:"vertical",style:{width:"100%"},children:[t.isPitch?(0,n.jsx)(c.A.Text,{code:!0,children:"pitch"}):null,(0,n.jsxs)(u.A,{size:"large",bordered:!0,children:[(0,n.jsxs)(u.A.Item,{children:[(0,n.jsx)(c.A.Text,{strong:!0,children:"File Path"}),(0,n.jsx)("div",{children:(0,b.Zb)(r.path,s)})]}),(0,n.jsxs)(u.A.Item,{children:[(0,n.jsx)(c.A.Text,{strong:!0,children:"Resource Path"}),(0,n.jsx)(R.hZ,{cwd:s,url:r.path,loc:"",disabled:!0})]}),(0,n.jsxs)(u.A.Item,{children:[(0,n.jsx)(c.A.Text,{strong:!0,children:"Resource Query"}),(0,n.jsx)("div",{children:r.queryRaw||"-"})]}),(0,n.jsxs)(u.A.Item,{children:[(0,n.jsx)(c.A.Text,{strong:!0,children:"Duration"}),(0,n.jsx)("div",{children:(0,b.a4)(t.costs)})]}),(0,n.jsxs)(u.A.Item,{children:[(0,n.jsx)(c.A.Text,{strong:!0,children:"Loader"}),(0,n.jsx)("div",{children:(0,n.jsx)(c.A.Text,{code:!0,children:t.loader})})]}),(0,n.jsxs)(u.A.Item,{children:[(0,n.jsx)(c.A.Text,{strong:!0,children:"Loader Index"}),(0,n.jsx)("div",{children:`${t.loaderIndex}`})]}),(0,n.jsxs)(u.A.Item,{children:[(0,n.jsx)(c.A.Text,{strong:!0,children:"Loader Path"}),(0,n.jsx)(R.hZ,{cwd:s,url:t.path,loc:"",disabled:!0})]}),(0,n.jsxs)(u.A.Item,{children:[(0,n.jsx)("div",{style:{width:180},children:(0,n.jsx)(c.A.Text,{strong:!0,children:"Options"})}),(0,n.jsx)(l.A,{type:"vertical"}),(0,n.jsx)(c.A.Paragraph,{ellipsis:{rows:2,expandable:!0,symbol:"more"},copyable:!0,children:JSON.stringify(t.options||"-")})]})]})]})})},O=e=>{let{loader:t,resource:r,isLight:s,codeData:i}=e,l=t.errors&&t.errors.length,a=i?.input||"",o=i?.output||"";return(0,n.jsx)("div",{style:{height:"100%"},children:l?(0,n.jsxs)(m.A,{span:24,style:{height:"53%",minHeight:400},children:[(0,n.jsx)("div",{style:{padding:20,borderTop:`1px solid ${s?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`,borderBottom:`1px solid ${s?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:(0,n.jsx)(P.h,{text:`the error stack of [${t.loader}] ${t.isPitch?"pitch":""}`})}),(0,n.jsx)("div",{style:{height:"90%"},children:(0,n.jsx)(I.Cv,{code:t.errors[0].message,lang:"javascript"})})]}):(0,n.jsxs)(m.A,{span:24,style:{height:"53%",minHeight:400},children:[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",padding:20,borderBottom:`1px solid ${s?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:[(0,n.jsx)(P.h,{text:(0,n.jsxs)(n.Fragment,{children:[`the result of [${t.loader}] ${t.isPitch?"pitch":""}`,!t.isPitch&&(0,n.jsxs)("span",{style:{fontWeight:400},children:["(",(0,n.jsx)(D,{style:{verticalAlign:"middle",margin:"0 2px"}}),"Input ⟷",(0,n.jsx)(z,{style:{verticalAlign:"middle",position:"relative",top:-2}}),"Output)"]})]})}),(0,n.jsx)("div",{style:{flex:1}})]}),t.isPitch?o?(0,n.jsx)("div",{style:{height:"90%"},children:(0,n.jsx)(I.Cv,{isEmbed:!0,code:o,filePath:r.path})}):(0,n.jsx)(M.A,{description:"No loader result. If you use the Brief Mode, there will not have loader results."}):(0,n.jsx)("div",{style:{minHeight:"700px"},children:(0,n.jsx)("div",{style:{height:"40rem",overflow:"hidden"},children:o||a?(0,n.jsx)(I.Mh,{isEmbed:!0,original:a,modified:o||"",originalFilePath:r.path,modifiedFilePath:r.path}):(0,n.jsx)(M.A,{description:"No loader result. If you use the Brief Mode, there will not have loader results."})})})]})})},G=e=>{let{data:t,cwd:r,index:s}=e,{loaders:l,resource:h}=t,[u,f]=(0,j.useState)(s||0),{isLight:x}=(0,b.DP)(),g=l[u],[y,v]=(0,j.useState)("loaderDetails"),A=(0,j.useCallback)(e=>{v(e)},[]);return(0,n.jsxs)(p.A,{className:B.A.executions,style:{height:"100%"},children:[(0,n.jsx)(m.A,{span:5,style:{borderRight:"1px solid var(--color-border-secondary)",padding:20},children:(0,n.jsxs)(o.A,{direction:"vertical",style:{width:"100%"},children:[(0,n.jsx)(P.h,{text:"Executions"}),(0,n.jsx)(C.A,{mode:"left",style:{marginTop:20},children:l.map((e,t,r)=>{let{loader:s,isPitch:i}=e,l=(0,b.a4)(e.costs);return(0,n.jsxs)(C.A.Item,{dot:i?(0,n.jsx)(a.A,{style:{marginLeft:1,fontWeight:500},children:"pitch"}):(0,n.jsx)(k.A,{}),style:{paddingBottom:10,textAlign:"center"},children:[(0,n.jsx)(p.A,{align:"middle",justify:"space-between",gutter:[0,10],children:(0,n.jsx)(m.A,{span:24,className:B.A.timeline,children:(0,n.jsx)(d.A,{title:s,trigger:"hover",children:(0,n.jsxs)("div",{className:(0,$.A)(B.A.box,u===t&&B.A.selected),onClick:()=>{f(t)},style:{textAlign:"left"},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(c.A.Text,{children:l.match(/[0-9]*\.?[0-9]+/g)?.[0]})," ",(0,n.jsx)(c.A.Text,{type:"secondary",children:l.match(/[a-zA-Z]+/g)})]}),(0,n.jsx)(c.A.Text,{className:B.A.loader,children:s})]})})})}),t===r.length-1?null:(0,n.jsx)("div",{style:{paddingTop:10},children:(0,n.jsx)(L,{})})]},t)})})]})}),(0,n.jsx)(m.A,{span:19,style:{height:"100%"},children:(0,n.jsx)(E.A,{type:"card",defaultActiveKey:"loaderDetails",activeKey:y,items:[{label:"Loader Props",key:"loaderProps",children:(0,n.jsx)(F,{loader:g,resource:h,cwd:r})},{label:"Loader Details",key:"loaderDetails",children:"loaderDetails"===y?(0,n.jsx)(S.zW,{api:i.hp.uT.n.GetLoaderFileInputAndOutput,body:{file:h.path,loader:g.loader,loaderIndex:g.loaderIndex,isPitch:g.isPitch},showSkeleton:!1,children:e=>(0,n.jsx)(O,{loader:g,resource:h,isLight:x,codeData:e})}):null}],onChange:A})})]})},q=e=>{let{cwd:t,filetree:r}=e,[k,M]=(0,j.useState)(!1),[C,E]=(0,j.useState)(""),[N,T]=(0,j.useState)(0),[D,z]=(0,j.useState)(null),L=(0,j.useMemo)(()=>r.filter(t=>t.loaders.some(r=>(0,b.ak)(t.path,r.loader,e.filename,e.loaders,t.layer,e?.layer))),[e.filename,e.loaders,e.layer]),I="__RESOURCEPATH__",_=(0,j.useMemo)(()=>(0,b.Bq)({files:L.map(e=>e.path),cwd:t,fileTitle(e,t){let{loaders:i,layer:p}=r.find(t=>t.path===e),m=[];return i.forEach((e,t)=>t>3&&m.push(e)),(0,n.jsxs)("div",{style:{wordBreak:"break-all",display:"flex",cursor:"pointer"},onClick:()=>{T(0),E(e),M(!0)},children:[(0,n.jsx)("div",{className:B.A.box,children:(0,n.jsx)("div",{className:B.A.keywords,children:(0,n.jsx)(w.i,{text:t.replace(/\[.*?\]/g,""),keyword:""})})}),(0,n.jsx)("div",{className:B.A.dividerDiv,style:{flex:1},children:(0,n.jsx)(l.A,{className:B.A.divider,dashed:!0})}),p&&(0,n.jsx)(a.A,{color:"cyan",bordered:!1,children:p}),(0,n.jsxs)(o.A,{children:[i.slice(0,3).map((t,r)=>{let i=t.errors&&t.errors.length,o=`${e}_${t.loader}_${r}`;if(r<=3)return(0,n.jsx)(d.A,{title:t.path,children:(0,n.jsxs)(a.A,{onClick:t=>{t.stopPropagation(),E(e),T(r),M(!0)},className:B.A.textBox,style:{color:i?"#f50":"inherit"},children:[(0,n.jsx)(c.A.Text,{className:B.A.text,ellipsis:!0,children:t.loader.match(/([^/]+-loader)/g)?.[0]||t.loader}),(0,n.jsx)(l.A,{type:"vertical"}),i?(0,n.jsx)(s.A,{}):(0,n.jsx)(c.A.Text,{className:B.A.text,children:(0,b.a4)(t.costs)})]})},o)}),m?.length>0&&(0,n.jsx)(h.A,{content:(0,n.jsx)(u.A,{dataSource:m,renderItem:(t,r)=>{let s=t.errors&&t.errors.length,i=`${e}_${t.loader}_${r+3}`;return(0,n.jsx)(u.A.Item,{children:(0,n.jsx)(d.A,{title:t.path,children:(0,n.jsx)("div",{style:{paddingBottom:5},children:(0,n.jsxs)(a.A,{onClick:t=>{t.stopPropagation(),E(e),T(r),M(!0)},className:B.A.textBox,style:{color:s?"#f50":"inherit"},children:[(0,n.jsx)(c.A.Text,{className:B.A.text,ellipsis:!0,children:t.loader.match(/([^/]+-loader)/g)?.[0]||t.loader}),(0,n.jsx)(l.A,{type:"vertical"}),(0,n.jsx)(c.A.Text,{className:B.A.text,children:(0,b.a4)(t.costs)})]})})},i)})}}),children:(0,n.jsx)(a.A,{className:B.A.textBox,children:(0,n.jsx)(c.A.Text,{children:"···"})})})]})]})},dirTitle:(e,t)=>(0,n.jsx)("div",{style:{display:"flex",cursor:"pointer"},children:(0,n.jsx)(w.i,{text:t,keyword:""})})}),[L]);return(0,n.jsxs)(p.A,{style:{width:"100%",marginLeft:0},gutter:20,children:[(0,n.jsx)(m.A,{span:24,children:(0,n.jsxs)(f.A,{title:(0,n.jsxs)(o.A,{children:[(0,n.jsx)(c.A.Text,{strong:!0,children:"Files"}),(0,n.jsxs)(c.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Total Files: ",L.length]})]}),bodyStyle:{overflow:"auto",maxHeight:800,minHeight:"40rem",padding:14},children:[(0,n.jsx)(A.h,{defaultExpandedKeys:(0,b.ME)(_,L.length>=100?3:4,e=>!((0,y.Jt)(e,I).indexOf("/node_modules/")>-1)),treeData:_,onSelect:(e,t)=>{t.node.isLeaf||z(t.node)},selectedKeys:D?[D.key]:void 0,expandAction:"click"},`${e.loaders.join("|")}_${e.filename}`),(0,n.jsx)(x.A,{open:k,onClose:()=>M(!1),maskClosable:!0,width:v.Y7,zIndex:999,bodyStyle:{padding:0},children:k?(0,n.jsx)(S.zW,{api:i.hp.uT.n.GetLoaderFileDetails,body:{path:C},children:e=>(0,n.jsx)(G,{data:e,cwd:t,index:N})}):null})]})}),(0,n.jsx)(x.A,{open:!!D,onClose:()=>z(null),maskClosable:!0,width:v.Y7,zIndex:999,bodyStyle:{padding:0},children:D&&(0,n.jsx)(p.A,{children:(0,n.jsx)(m.A,{span:24,children:(0,n.jsx)(f.A,{title:(0,n.jsx)(d.A,{title:j.cloneElement(D.title,{style:{color:"#fff"}}),children:(0,n.jsxs)(c.A.Text,{children:["Statistics of",D.title]})}),children:(0,n.jsx)(S.zW,{api:i.hp.uT.n.GetLoaderFolderStatistics,body:{folder:D[I]},children:e=>(0,n.jsx)(g.A,{style:{width:"100%",maxHeight:800,height:"40rem",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)(c.A.Text,{strong:!0,children:(0,b.a4)(e)}),sorter:(e,t)=>e.costs-t.costs,defaultSortOrder:"descend",sortDirections:["descend","ascend"]}],dataSource:e})})})})})})]})}},41611(e,t,r){r.d(t,{zW:()=>p,kn:()=>n.k,eN:()=>m});var n=r(91307),s=r(64558),i=r(87826),l=r(304),a=r(68122),o=r(1102),d=r(67782),c=r(1426);r(15061);var h=r(82982),u=r(3534);let p=e=>{let{manifestLoader:t=c.Cj,api:r,children:n,body:p=null,showSkeleton:m=!0,fallbackComponent:f}=e,[x,g]=(0,o.useState)(),[y,j]=(0,o.useState)(1),[v,b]=(0,o.useState)({}),{loader:A}=(0,c.VX)(x);function w(e){window[i.YM.tQ]?k(e):t().then(e=>{g(e)}).catch(e=>{if(!("u"<typeof window)&&window.location.hash.includes(i.Kj.EH.Uploader)){console.warn("[ServerAPIProvider] Failed to load manifest for uploader route, continuing with empty manifest:",e),j(0);return}throw j(3),e}).then(()=>{k(e)})}let S=(0,o.useCallback)(e=>{let{req:t,res:n}=e;t.api===r&&((0,d.n4)(t.body,p)||u.AP.gD(t.body)&&u.AP.gD(p))&&!(0,d.n4)(v,n)&&b(n),j(0)},[v,r,p]);function k(e){e&&(Object.values(i.hp.uT.k).includes(r)?j(0):e.loadAPI(r,p).then(e=>{u.AP.gD(e)||(b(e),j(0))}).catch(e=>{console.error(e),j(3)}))}return((0,o.useEffect)(()=>{w(A)},[A,r,p]),(0,o.useEffect)(()=>{if(A)return A.onDataUpdate(r,p,S),()=>{A.removeOnDataUpdate(r,p,S)}},[A,r,p]),1===y)?m?(0,s.jsx)(l.A,{active:!0}):null:3===y?f||(0,s.jsx)(h.c,{retry:()=>{j(1),t(),w()}}):2===y?(0,s.jsx)(a.A,{spinning:!0,children:n(v)}):n(v)};function m(e){let{Component:t,api:r,responsePropName:n,body:i,fallbackComponent:l,showSkeleton:a}=e;return function(e){let{body:o=i,...d}=e;return(0,s.jsx)(p,{api:r,body:o,showSkeleton:a,fallbackComponent:l,children:e=>{let r={...d,[n]:e};return(0,s.jsx)(t,{...r})}})}}},91326(e,t,r){let n;r.d(t,{hZ:()=>y,L2:()=>m,bX:()=>f,jk:()=>p});var s=r(64558),i=r(66482),l=r(13078),a=r.n(l),o=r(3534),d=r(87826);function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;n===e&&(n=void 0)}async function h(e){if(e){if(!n){let t=fetch(`${e}${d.hp.uT.n.Manifest}`).then(e=>e.ok?e.json():void 0).then(e=>{let r=function(e){if(e)try{return new URL(e,window.location.origin).searchParams.get("token")||void 0}catch{return}}(e?.__SOCKET__URL__);return r||c(t),r}).catch(()=>{c(t)});n=t}return n}}async function u(e,t,r,n,s){let i=`${e}:${t}:${r}`;try{let e="u">typeof window&&window.location?.origin?window.location.origin:"",t=await h(e);if(!t)return void s();let r=new URLSearchParams({file:i,editor:n,token:t}),l=await fetch(`${e}/__open-in-editor?${r}`,{method:"GET"});403===l.status&&c(),l.ok||s()}catch{s()}}function p(e){let{file:t,line:r=1,column:n=1,windowId:s}=e,i={windowId:s},l=Object.keys(i).map(e=>{let t=i[e];return o.AP.gD(t)||""===t?null:`${e}=${t}`}).filter(Boolean).join("&");u(t,r,n,"code",()=>{let e=`vscode://file/${t}:${r}:${n}`;l&&(e+=`?${l}`),window.open(e)})}function m(e){let{file:t,line:r=1,column:n=1}=e;u(t,r,n,"cursor",()=>{window.open(`cursor://file/${t}:${r}:${n}`)})}function f(e){let{file:t,line:r=1,column:n=1}=e;u(t,r,n,"trae",()=>{window.open(`trae://file/${t}:${r}:${n}`)})}r(1102),r(31008);var x=r(1426);let g=+Date.now().toString().slice(-4)+1e3,y=e=>{let t,r,{cwd:n,url:l,loc:o,windowId:d=g,label:c,disabled:h,code:u=!1}=e,m=a().resolve(n,(1===(r=l.split(" ")).length?[t]=r:[t]=r.filter(e=>a().isAbsolute(e)||e.startsWith("./")),t||l)),{line:f,columnStart:y}=function(e){if(!e)return{line:1,column:1};let[t,r=""]=e.split(":"),[n=1,s]=r.split("-");return{line:t,columnStart:n,columnEnd:s||n}}(o);return(0,s.jsxs)("span",{style:{wordBreak:"break-all"},children:[(0,s.jsx)(i.A.Text,{copyable:{text:m},children:(0,s.jsxs)(i.A.Text,{code:u,onClick:()=>{h||p({file:m,line:f,column:y,windowId:d})},style:{cursor:h?"revert":"pointer"},children:[c||(0,x.Ml)(l),o?`:${o}`:""]})}),(0,s.jsx)("div",{style:{display:"inline-block"}})]})}},51747(e,t,r){r.d(t,{F:()=>y});var n=r(64558),s=r(1102),i=r(70722),l=r(53919),a=r(66482),o=r(13616),d=r(80844),c=r(63598),h=r(89802),u=r(44767),p=r(7415);r(15061);var m=r(41611),f=r(87826);let x=e=>{let{style:t,onChange:r,loaderNames:d}=e,[c,u]=(0,s.useState)([]);return(0,n.jsxs)(i.A.Group,{compact:!0,style:t,children:[(0,n.jsxs)(l.Ay,{style:{width:120},children:[(0,n.jsx)(h.A,{}),(0,n.jsx)(a.A.Text,{children:"Loaders"})]}),(0,n.jsx)(o.A,{mode:"multiple",allowClear:!0,defaultValue:c,className:"loader-select",style:{width:300},popupMatchSelectWidth:300,placeholder:"select loaders",onChange:e=>{u(e),r(e)},children:d.map(e=>(0,n.jsx)(o.A.Option,{label:e,value:e,children:e},e))})]})},g=e=>{let{onChange:t,layers:r}=e,[d,c]=(0,s.useState)("");return(0,n.jsxs)(i.A.Group,{compact:!0,children:[(0,n.jsxs)(l.Ay,{style:{width:120},children:[(0,n.jsx)(h.A,{}),(0,n.jsx)(a.A.Text,{children:"Layers"})]}),(0,n.jsx)(o.A,{allowClear:!0,className:"layer-select",style:{width:150},defaultValue:d,placeholder:"select layer",onChange:e=>{c(e),t(e)},children:r?.length?r?.map(e=>(0,n.jsx)(o.A.Option,{label:e,value:e,children:e},e)):(0,n.jsx)(n.Fragment,{})})]})},y=e=>{let{onChange:t,loaderNames:r}=e,[i,l]=(0,s.useState)([]),[a,o]=(0,s.useState)(""),[h,y]=(0,s.useState)("");return(0,s.useEffect)(()=>{t({loaders:i,filename:a,layer:h})},[i,a,h]),(0,n.jsxs)(d.A,{style:{marginBottom:20,marginLeft:10},children:[(0,n.jsx)(c.A,{children:(0,n.jsx)(x,{loaderNames:r,style:{marginRight:20},onChange:e=>{l(e)}})}),(0,n.jsx)(c.A,{children:(0,n.jsx)(p.E,{icon:(0,n.jsx)(u.A,{}),style:{marginRight:20},label:"Filename",placeholder:"search filename by keyword",onChange:e=>{o(e)}})}),(0,n.jsx)(c.A,{children:(0,n.jsx)(m.zW,{api:f.hp.uT.n.GetLayers,children:e=>e.length?(0,n.jsx)(g,{layers:e,onChange:e=>{y(e)}}):(0,n.jsx)(n.Fragment,{})})})]})}},40879(e,t,r){var n=r(64558),s=r(74374),i=r(85326),l=r(66482),a=r(53919);let o=r(1102).memo(e=>{let{title:t="Load data failed, please try again",buttonText:r="retry",retry:o}=e;return(0,n.jsx)(s.A,{description:(0,n.jsxs)(i.A,{direction:"vertical",children:[(0,n.jsx)(l.A.Text,{children:t}),(0,n.jsx)(a.Ay,{type:"primary",onClick:()=>{o()},children:r})]})})});r.d(t,{},{c:o})},68062(e,t,r){r.d(t,{P6:()=>j,hX:()=>v});var n=r(64558),s=r(10489),i=r(53919),l=r(35074),a=r(1102),o=r(50162),d=r(85326),c=r(66482),h=r(80844),u=r(63598),p=r(87826),m=r(33468),f=r(3534);r(15061);var x=r(9926),g=r(41611);let y=e=>{let{duplicatePackages:t=[],cwd:r,children:s,...i}=e;return(0,n.jsx)(v,{...i,buttonStyle:{fontSize:"inherit",...i.buttonStyle},buttonProps:{type:"text",...i.buttonProps},text:(0,n.jsx)(o.A,{title:"Click to show the details of duplicate packages",children:(0,n.jsxs)(d.A,{style:{fontSize:"inherit"},children:[(0,n.jsx)(c.A.Text,{strong:!0,style:{fontSize:"inherit",color:"inherit",...i.textStyle},children:t.length}),(0,n.jsx)(m.A,{})]})}),drawerProps:{title:"Duplicate Packages Viewer",...i.drawerProps},children:(0,n.jsx)(h.A,{gutter:[20,20],children:t.map((e,t)=>(0,n.jsx)(u.A,{span:24,children:(0,n.jsx)(x.ZZ,{data:e,cwd:r,getPackageRelationContentComponent:s})},t))})})},j=e=>{let{moduleGraph:t,...r}=e;return(0,n.jsx)(y,{...r,children:e=>(0,n.jsx)(g.zW,{api:p.hp.uT.n.GetModuleCodeByModuleIds,body:{moduleIds:t.modules.map(e=>e.id)},children:s=>(0,n.jsx)(x.aM,{data:f.Wh.X(t.modules,t.dependencies,r.cwd,e.package.dependencies,s),cwd:r.cwd})})})},v=e=>{let[t,r]=(0,a.useState)(!1);return(0,n.jsxs)("div",{onClick:e=>e.stopPropagation(),...e.containerProps,children:[e.button?(0,n.jsx)("div",{onClick:()=>r(!t),children:e.button}):e.text?(0,n.jsx)(i.Ay,{type:"link",...e.buttonProps,onClick:()=>r(!t),style:{padding:0,...e.buttonStyle},children:e.text}):(0,n.jsx)(s.A,{style:{fontSize:14,padding:0},onClick:()=>r(!t)}),(0,n.jsx)(l.A,{maskClosable:!0,zIndex:999,width:"60%",...e.drawerProps,open:t,onClose:()=>r(!1),destroyOnClose:!0,children:e.children})]})}},76174(e,t,r){var n=r(64558);r(1102);var s=r(66482),i=r(67782);r.d(t,{},{h:e=>{let{upperFirst:t=!0,fontSize:r=16,text:l,hash:a}=e,o="string"==typeof l&&t?(0,i.Zb)(l):l;return(0,n.jsx)(s.A.Text,{style:{fontSize:r},strong:!0,children:a?(0,n.jsx)("a",{href:a,id:a.replace(/^#/,""),style:{color:"inherit"},children:o}):o})}})},70403(e,t,r){r.d(t,{Cv:()=>h});var n=r(64558),s=r(89797),i=r(70851),l=r(1102),a=r(75232),o=r(97173),d=r(3534),c=r(1426);function h(e){let{className:t,style:r,code:h="",lang:u,filePath:p="",defaultLine:m,ranges:f,isEmbed:x=!1,headerVisible:g=!0,isLightTheme:y,formatOnMount:j=!1}=e,{isLight:v}=(0,c.DP)(),b=(0,l.useRef)(void 0),A=(0,l.useRef)(void 0),w=(0,l.useMemo)(()=>u||(0,a.rZ)(p)||"plaintext",[u,p]),[S,k]=(0,l.useState)(!0),M=(0,l.useMemo)(()=>(0,a.$N)({wordWrap:S?"on":"off"}),[S]),C=(0,l.useCallback)((e,t)=>{b.current=e,A.current=t,(0,a.sK)(e,t,f),d.AP.Et(m)&&setTimeout(()=>{e.revealLine(m)}),j&&setTimeout(()=>{e.getAction("editor.action.formatDocument")?.run()},0)},[f,m,j]);return(0,l.useEffect)(()=>()=>{b.current?.setModel(null)},[]),(0,n.jsxs)("div",{className:(0,i.A)("monaco-component","code-viewer","code-viewer-H7hGrZ",x&&"embed-tjljOS",t),style:r,children:[g&&!!p&&(0,n.jsxs)("div",{className:"header-qejtwX",children:[(0,n.jsx)("div",{children:(0,a.WP)(p)}),(0,n.jsx)("div",{style:{flex:1}}),(0,n.jsx)("div",{children:(0,n.jsx)(o.A,{className:"text-T29bd1",title:"side-by-side",checked:S,onChange:e=>{k(e.target.checked)},children:"word-wrap"})})]}),(0,n.jsx)("div",{className:(0,i.A)("content-EVSW1C","editor-wrap"),children:(0,n.jsx)(s.KE,{theme:y??v?"vs-light":"vs-dark",language:w,value:h,options:M,onMount:C})})]})}r(81650)},75232(e,t,r){var n=r(13078);function s(e){if(!e)return"";let t=function(e){if(!e)return"";try{if(!e.startsWith("data:"))return"";let{mimeType:t}=function(e){if(!e.startsWith("data:"))throw Error("The input is not a valid data URL");let t=e.substring(5),r=t.indexOf(",");if(-1===r)throw Error("Invalid data URL: missing data separator");let n=t.substring(0,r),s=t.substring(r+1),i="",l="",a=!1,o=n.split(";");o.length>0&&(i=o[0]||"text/plain");for(let e=1;e<o.length;e++){let t=o[e];"base64"===t?a=!0:t.startsWith("charset=")&&(l=t.substring(8))}return{mimeType:i,charset:l,isBase64:a,data:s}}(e);switch(t){case"text/javascript":return"javascript";case"text/html":return"html";case"text/css":return"css";case"text/plain":return"text";case"application/json":return"json";default:return""}}catch(e){return console.error("Failed to parse the data URL:",e),""}}(e);if(t)return t;try{let t=(0,n.extname)(e).slice(1);switch(t){case"js":case"cjs":case"mjs":case"jsx":return"javascript";case"ts":case"tsx":return"typescript";case"md":return"markdown";default:return t}}catch{return""}}let i={readOnly:!0,domReadOnly:!0,fontSize:14,tabSize:2,lineHeight:24,renderValidationDecorations:"off",hideCursorInOverviewRuler:!0,smoothScrolling:!0,wordWrap:"on",colorDecorators:!0,codeLens:!1,cursorWidth:0,minimap:{enabled:!1},contextmenu:!1,gotoLocation:{multiple:"goto",multipleDefinitions:"goto",multipleTypeDefinitions:"goto",multipleDeclarations:"goto",multipleImplementations:"goto",multipleReferences:"goto"},hover:{enabled:!1},links:!1};function l(e){return{...structuredClone(i),...e}}function a(e){return e?e.startsWith("data:")?"data":e.split("/").at(-1)||"":""}function o(e,t){let{start:r,end:n}=e,{line:s=1,column:i=0}=r;return new t(s,i+1,n?.line??s,(n?.column??9999)+1)}function d(e,t,r){if(!r||0===r.length)return;let n=r.map(e=>({range:o(e,t.Range),options:{inlineClassName:"file-inline-decoration"}}));e.deltaDecorations([],n),setTimeout(()=>{e.revealLine(n[0].range.startLineNumber)})}r.d(t,{$N:()=>l,WP:()=>a,qK:()=>o,rZ:()=>s,sK:()=>d},{XX:i})},73308(e,t,r){r.d(t,{Cv:()=>n.Cv,Mh:()=>u});var n=r(70403),s=r(64558),i=r(89797),l=r(97173),a=r(70851),o=r(1102),d=r(75232);let c={...structuredClone(d.XX),readOnly:!0,originalEditable:!1,renderSideBySide:!0,renderSideBySideInlineBreakpoint:1,renderIndicators:!0,definitionLinkOpensInPeek:!1,domReadOnly:!0,minimap:{enabled:!1},diffWordWrap:"on",folding:!1,lineNumbersMinChars:3,renderLineHighlight:"none",matchBrackets:"never",diffAlgorithm:"advanced",ignoreTrimWhitespace:!0,renderOverviewRuler:!0,renderLineHighlightOnlyWhenFocus:!0,smoothScrolling:!0,letterSpacing:.5};var h=r(1426);function u(e){let{className:t,style:r,original:n="",modified:u="",originalFilePath:p="",modifiedFilePath:m="",originalLang:f,modifiedLang:x,isEmbed:g=!1,isLightTheme:y,headerVisible:j=!0}=e,{isLight:v}=(0,h.DP)(),[b,A]=(0,o.useState)(!0),w=(0,o.useRef)(void 0),S=(0,o.useMemo)(()=>f||(0,d.rZ)(p)||"plaintext",[f,p]),k=(0,o.useMemo)(()=>x||(0,d.rZ)(m)||"plaintext",[x,m]),M=(0,o.useMemo)(()=>{var e;return e={renderSideBySide:b},{...structuredClone(c),...e}},[b]),C=(0,o.useCallback)(e=>{w.current=e},[]);return(0,o.useEffect)(()=>()=>{w.current?.setModel(null)},[]),(0,s.jsxs)("div",{className:(0,a.A)("monaco-component","diff-viewer","diff-viewer-CczjmT",g&&"embed-VNMDA8",t),style:r,children:[j&&(0,s.jsxs)("div",{className:"header-VBdMD0",children:[(0,s.jsx)("div",{children:(0,d.WP)(p)}),(0,s.jsx)("div",{style:{flex:1}}),(0,s.jsx)("div",{children:(0,s.jsx)(l.A,{className:"text-Pi6YdN",title:"side-by-side",checked:b,onChange:e=>{A(e.target.checked)},children:"side-by-side"})})]}),(0,s.jsx)("div",{className:(0,a.A)("content-BsfSuD","editor-wrap"),children:(0,s.jsx)(i.zC,{theme:y??v?"vs-light":"vs-dark",originalLanguage:S,modifiedLanguage:k,original:n,modified:u,width:"100%",options:M,onMount:C})})]})}},17886(e,t,r){var n=r(1102),s=r(10815),i=r(15061);let l={theme:(0,s.DT)(),pageState:i.jK.Pending,viewMode:(0,s.oi)(),json:{},setTheme(){},setManifest(){},setPageState(e){},setViewMode(){}},a=(0,n.createContext)({...l});r.d(t,{},{Q:a,s:l})},15061(e,t,r){var n,s,i,l=((n={}).Light="light",n.Dark="dark",n),a=((s={})[s.Success=0]="Success",s[s.Pending=1]="Pending",s[s.Fail=2]="Fail",s),o=((i={})[i.BasePadding=20]="BasePadding",i[i.BaseBorderRadius=8]="BaseBorderRadius",i[i.NavBarHeight=54]="NavBarHeight",i);let d="u"<typeof window?0:.85*window.innerWidth>=1100?.85*window.innerWidth:1100;r.d(t,{Sx:()=>l,jK:()=>a,or:()=>o},{Y7:d})},54845(e,t,r){r.d(t,{YW:()=>ey,wE:()=>eg});var n,s,i=r(64558),l=r(1102),a=r(36187),o=r(50162),d=r(85326),c=r(30147),h=r(66482),u=r(6755),p=r(53919),m=r(11063),f=r(78593),x=r(22733),g=r(18890),y=r(87826);r(15061);var j=r(80844),v=r(63598),b=r(1637),A=r(1426),w=r(68062),S=r(74374),k=r(13616),M=r(60339),C=r(67782),E=r(54594),N=r(44767),T=r(7415),D=r(15017),z=r(17076),L=r(73308);let I=e=>{let{file:t,data:r}=e,[n,s]=(0,l.useState)(r[0].group),a=r.find(e=>e.group===n);return(0,i.jsxs)(j.A,{wrap:!0,gutter:[20,20],style:{height:"100%",alignContent:"flex-start"},children:[r.length>1?(0,i.jsx)(v.A,{span:24,children:(0,i.jsx)(z.A,{value:n,options:r.map(e=>e.group),onChange:e=>s(e)})}):null,a?(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)(v.A,{span:24,children:(0,i.jsxs)(h.A.Text,{strong:!0,children:[a.baselineTitle||"Baseline"," ⟷"," ",a.currentTitle||"Current"]})}),(0,i.jsx)(v.A,{span:24,children:(0,i.jsx)(L.Mh,{originalFilePath:t,modifiedFilePath:t,original:a.baseline||"",modified:a.current||""})})]},n):null]})},_=e=>{let{text:t="View Changes",...r}=e;return(0,i.jsx)(w.hX,{text:t,buttonProps:{size:"small",icon:(0,i.jsx)(D.A,{})},drawerProps:{destroyOnClose:!0,title:`Content diff for "${r.file}"`},children:(0,i.jsx)(I,{...r})})};var R=((n={}).New="New",n.Changed="Changed",n.Deleted="Deleted",n.NotChanged="Not Changed",n),P=((s={}).Name="Sorted by Name",s.Size="Sorted by Size",s.Delta="Sorted by Delta",s),B=r(8857);let $=/[a-fA-F0-9]{20,}/,F=/\|[a-fA-F0-9]{16,}$/;function O(e){let t=e=>e?.replace(F,"").replace($,"")||"";return t(e.identifier)||t(e.path)}var G=r(42322),q=r(70722);let W=(e,t,r,n)=>(0,i.jsx)(i.Fragment,{children:t-e==0?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(h.A.Text,{strong:!0,style:{color:r===y.Kj.Ol.Up?"#e17055":"#52c41a",...n},children:[r===y.Kj.Ol.Up?"+":"-",(0,A.Xq)(Math.abs(t-e))]})});var V=r(3534);let U=(e,t,r)=>{let n=r?(e,r)=>(e.current?.size[t]||0)-(e.baseline?.size[t]||0)-(r.current?.size[t]||0)+(r.baseline?.size[t]||0):(r,n)=>(r[e]?.size[t]||0)-(n[e]?.size[t]||0);return{width:200,sorter:(e,t)=>n(e,t),render:(r,n)=>{if(!n[e])return"-";let s=n[e].size[t];return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(h.A.Text,{children:(0,A.Xq)(s)}),"current"===e?W(n.baseline?.size[t]||0,s,(n.baseline?.size[t]||0)>s?y.Kj.Ol.Down:y.Kj.Ol.Up):null]})}}},H=(e,t,r)=>{let[n,s]=(0,l.useState)(!1),a="baseline"===e;return{title:()=>{let n=a?t:r,s=(0,C.Zb)(e),l=V.TS.Nt(t,r);return(0,i.jsxs)("div",{children:[(0,i.jsx)(h.A.Text,{children:s}),(0,i.jsx)(u.A,{type:"vertical"}),(0,i.jsx)(o.A,{title:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(h.A.Text,{style:{color:"inherit"},children:[s," modules is ",n]}),a?null:(0,i.jsxs)(h.A.Text,{style:{color:"inherit"},children:["Percent is ",(0,A.l9)(l.percent)]})]}),children:(0,i.jsxs)(d.A,{children:[(0,i.jsx)(h.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400},children:n}),(0,i.jsx)(x.A,{})]})})]})},children:[{title:"Source Size",...U(e,"sourceSize",n)},{title:"Parsed Size",defaultSortOrder:a?void 0:"descend",...U(e,"parsedSize",n)}],filterSearch:!0,filters:[{text:"Show Changed",value:R.NotChanged},{text:"Show All",value:"All"}],onFilter:(e,t)=>(e===R.NotChanged?s(!0):s(!1),e!==R.NotChanged||J(t)!==e)}},K=e=>{let{data:t,baseline:r,current:n}=e,{modules:s}=r.moduleGraph,{modules:a}=n.moduleGraph,{chunks:c}=r.chunkGraph,{chunks:m}=n.chunkGraph,f=r.root,g=n.root,[y,j]=(0,l.useState)(""),v=(0,l.useRef)(null),b=(e,t)=>{t(),j(e[0])},w="__is_baseline__",S=(0,l.useMemo)(()=>t.baseline?V.TS.Xm(t.baseline,c,s).map(e=>({...e,[w]:!0})).filter(e=>!e.concatenationModules?.length):[],[t,r]),k=(0,l.useMemo)(()=>t.current?V.TS.Xm(t.current,m,a).map(e=>({...e,[w]:!1})).filter(e=>!e.concatenationModules?.length):[],[t,n]),C=e=>(0,A.Rz)(e.path,e.__is_baseline__?f:g),N=(0,l.useMemo)(()=>{let e=[...S,...k],t=new Map;return e.forEach(e=>{let r=O(e),n=t.get(r);n||(n={path:r}),e[w]?n.baseline=e:n.current=e,t.set(r,n)}),[...t.values()]},[S,k,y]),{bModulesCount:T,cModulesCount:D,totalCount:z}=(0,l.useMemo)(()=>{let e=e=>C(e).alias.indexOf(y)>-1,t=N.filter(e=>e.baseline),r=N.filter(e=>e.current),n=N.length;return y&&(t=t.filter(e),r=r.filter(e),n=N.filter(e).length),{bModulesCount:t.length,cModulesCount:r.length,totalCount:n}},[N,y]);return(0,i.jsx)(M.A,{dataSource:N,rowKey:e=>e.path,size:"small",pagination:{size:"small"},bordered:!0,scroll:{x:1500},columns:[{fixed:"left",title:()=>(0,i.jsxs)("div",{children:[(0,i.jsxs)(h.A.Text,{children:["Modules of ",`"${t.alias}"`]}),(0,i.jsx)(u.A,{type:"vertical"}),(0,i.jsxs)(o.A,{title:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(h.A.Text,{style:{color:"inherit"},children:["filtered modules: ",z]}),(0,i.jsxs)(h.A.Text,{style:{color:"inherit"},children:["total modules: ",N.length]})]}),children:[(0,i.jsxs)(h.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[z,"/",N.length]}),(0,i.jsx)(x.A,{})]})]}),filterDropdown(e){let{setSelectedKeys:t,selectedKeys:r,confirm:n,clearFilters:s}=e;return(0,i.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,i.jsx)(q.A,{ref:v,placeholder:"Search by file name",value:r[0],onChange:e=>t(e.target.value?[e.target.value]:[]),onPressEnter:()=>b(r,n),style:{marginBottom:8,display:"block"}}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(p.Ay,{type:"primary",onClick:()=>b(r,n),icon:(0,i.jsx)(G.A,{}),size:"small",style:{width:90},children:"Search"}),(0,i.jsx)(p.Ay,{onClick:()=>{s&&(s(),j("")),t([]),b([],n)},size:"small",style:{width:90},children:"Reset"})]})]})},filterSearch:!0,filterIcon:e=>(0,i.jsxs)(d.A,{children:[(0,i.jsx)(h.A.Text,{type:y?void 0:"secondary",style:{fontWeight:400},children:y||"Search by file name"}),(0,i.jsx)(G.A,{style:{color:e?"#1677ff":void 0}})]}),onFilterDropdownOpenChange:e=>{e&&setTimeout(()=>v.current?.focus(),100)},onFilter:(e,t)=>C(t).alias.indexOf(e)>-1,render:(e,t)=>{let{alias:r,inNodeModules:n}=C(t);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(o.A,{title:t.path,children:(0,i.jsx)(h.A.Text,{copyable:{text:t.path},children:r})}),n?(0,i.jsx)(E.A,{color:"warning",children:"node_modules"}):null,(0,i.jsx)(Y,{type:J(t)})]})}},H("current",T,D),H("baseline",T,D),{title:"Actions",width:200,render:(e,t)=>(0,i.jsx)(d.A,{direction:"vertical",style:{maxWidth:170},children:(0,i.jsx)(_,{text:"View Changes",file:t.path,data:[{baseline:r.moduleCodeMap[t.baseline?.id]?.source,current:n.moduleCodeMap[t.current?.id]?.source,group:"Source"},{baseline:r.moduleCodeMap[t.baseline?.id]?.transformed,current:n.moduleCodeMap[t.current?.id]?.transformed,group:"Transformed Source"},{baseline:r.moduleCodeMap[t.baseline?.id]?.parsedSource,current:n.moduleCodeMap[t.current?.id]?.parsedSource,group:"Parsed Source"}]})})}]})};function J(e){if(e.baseline&&!e.current)return R.Deleted;if(!e.baseline&&e.current)return R.New;if(e.baseline&&e.current)return e.baseline.size.sourceSize===e.current.size.sourceSize&&e.baseline.size.parsedSize===e.current.size.parsedSize?R.NotChanged:R.Changed;throw Error("Update Type not match")}let Y=e=>{let{type:t}=e;return t===R.NotChanged?(0,i.jsx)(o.A,{title:"It hasn't changed between Baseline and Current",children:(0,i.jsx)(E.A,{color:"success",children:"Not Changed"})}):t===R.Changed?(0,i.jsx)(o.A,{title:"It has been changed between Baseline and Current",children:(0,i.jsx)(E.A,{color:"warning",children:"Changed"})}):t===R.New?(0,i.jsx)(o.A,{title:"It is created in Current",children:(0,i.jsx)(E.A,{color:"error",children:"New"})}):t===R.Deleted?(0,i.jsx)(o.A,{title:"It has been deleted in Current",children:(0,i.jsx)(E.A,{color:"error",children:"Deleted"})}):null},Z=e=>{let{baseline:t,current:r}=e,n=(0,l.useMemo)(()=>(0,A.CL)(t.moduleGraph.modules),[t]),s=(0,l.useMemo)(()=>(0,A.CL)(r.moduleGraph.modules),[r]),a=t.chunkGraph.chunks,c=r.chunkGraph.chunks,p=t.root,m=r.root,[f,g]=(0,l.useState)(),[y,b]=(0,l.useState)([]),w=(0,l.useMemo)(()=>{let e={};return n.forEach(t=>{let r=O(t);e[r]?console.warn("[Baseline Module Exists]: ",t,e):e[r]={path:r,baseline:t}}),s.forEach(t=>{let r=O(t);e[r]||(e[r]={path:r}),e[r].current=t}),Object.values(e)},[n,s]),S=(0,l.useMemo)(()=>{let e=w.slice();return f&&(e=e.filter(e=>e.path.indexOf(f)>-1)),y.length&&(e=e.filter(e=>y.includes(J(e)))),e},[w,f,y]),{bFilteredModulesLength:D,cFilteredModulesLength:z}=(0,l.useMemo)(()=>({bFilteredModulesLength:S.filter(e=>e.baseline).length,cFilteredModulesLength:S.filter(e=>e.current).length}),[S]);return(0,i.jsxs)(j.A,{gutter:[20,20],children:[(0,i.jsx)(v.A,{span:24,children:(0,i.jsxs)(d.A,{wrap:!0,children:[(0,i.jsx)(T.E,{icon:(0,i.jsx)(N.A,{}),label:"",labelStyle:{width:45},placeholder:"Search by name",onChange:e=>{g(e)}}),(0,i.jsx)(k.A,{mode:"multiple",placeholder:"Filter by changed type",style:{width:200},options:Object.values(R).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{b(e)}})]})}),(0,i.jsx)(v.A,{span:24,children:(0,i.jsx)(M.A,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},scroll:{x:1700},dataSource:S,rowKey:e=>e.path,columns:[{fixed:"left",title:(0,i.jsxs)(o.A,{title:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(h.A.Text,{style:{color:"inherit"},children:["filtered modules is ",S.length," (Current & Baseline)"]}),(0,i.jsxs)(h.A.Text,{style:{color:"inherit"},children:["total modules is ",w.length," (Current & Baseline)"]})]}),children:[(0,i.jsx)(h.A.Text,{strong:!0,children:"Modules"}),(0,i.jsx)(u.A,{type:"vertical"}),(0,i.jsxs)(h.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[S.length,"/",w.length]}),(0,i.jsx)(x.A,{})]}),render:(e,t)=>{let{alias:r,inNodeModules:n}=(0,A.Rz)(t.path,t.baseline?p:m);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(o.A,{title:t.path,children:(0,i.jsx)(h.A.Text,{copyable:{text:t.path},children:r})}),(0,i.jsx)(Y,{type:J(t)}),n?(0,i.jsx)(E.A,{color:"warning",children:"node_modules"}):null]})}},H("current",D,z),H("baseline",D,z),{title:"in Assets",render:(e,t)=>{let r=[],n=[];return(t.current&&V.TS.QZ(t.current,c).forEach(e=>e.assets.forEach(e=>n.push(e))),t.baseline&&V.TS.QZ(t.baseline,a).forEach(e=>e.assets.forEach(e=>r.push(e))),r.length||n.length)?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,C.sb)(n).filter(Boolean).map(e=>(0,i.jsx)(B.Ex,{label:"Current",value:e},`c_${e}`)),(0,C.sb)(r).filter(Boolean).map(e=>(0,i.jsx)(B.Ex,{label:"Baseline",value:e},`b_${e}`))]}):null}},{title:"Actions",width:200,render:(e,n)=>{let s=J(n)===R.Changed;return(0,i.jsxs)(d.A,{direction:"vertical",style:{maxWidth:170},children:[s?(0,i.jsx)(_,{text:"View Changes",file:n.path,data:[{baseline:t.moduleCodeMap[n.baseline?.id]?.source,current:r.moduleCodeMap[n.current?.id]?.source,group:"Source"},{baseline:t.moduleCodeMap[n.baseline?.id]?.transformed,current:r.moduleCodeMap[n.current?.id]?.transformed,group:"Transformed Source"},{baseline:t.moduleCodeMap[n.baseline?.id]?.parsedSource,current:r.moduleCodeMap[n.current?.id]?.parsedSource,group:"Parsed Source"}]}):null,n?.current?(0,i.jsx)(_,{text:"Current Result Viewer",file:n.path,data:[{baseline:r.moduleCodeMap[n.current.id]?.source,current:r.moduleCodeMap[n.current.id]?.transformed,baselineTitle:"Current Source",currentTitle:"Current Transformed Source",group:"Transformed Source"},{baseline:r.moduleCodeMap[n.current.id]?.source,current:r.moduleCodeMap[n.current.id]?.parsedSource,baselineTitle:"Current Source",currentTitle:"Current Parsed Source",group:"Parsed Source"}]}):null]})}}]})})]})},X=e=>e.baseline&&e.current?e.baseline.map(e=>e.version).sort().join()===e.current.map(e=>e.version).sort().join()?R.NotChanged:R.Changed:e.baseline||e.current?e.baseline&&!e.current?R.Deleted:R.New:R.NotChanged,Q=e=>X(e)!==R.NotChanged,ee=e=>{let{dataSource:t}=e,{newCount:r,deleteCount:n,changedCount:s}=(0,l.useMemo)(()=>({newCount:t.filter(e=>e.updateType===R.New).length,deleteCount:t.filter(e=>e.updateType===R.Deleted).length,changedCount:t.filter(e=>e.updateType===R.Changed).length}),[t]);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(B.Ex,{label:"New",value:r,type:r>0?"error":"default",tooltip:`Current has ${r} packages which not found in Baseline`}),(0,i.jsx)(B.Ex,{label:"Deleted",value:n,type:n>0?"error":"default",tooltip:`Current delete ${n} packages than Baseline`}),(0,i.jsx)(B.Ex,{label:"Changed",value:s,type:s>0?"error":"default",tooltip:`Current has ${s} changed packages than Baseline`})]})},et=e=>{let{baseline:t,current:r}=e,{packages:n=[]}=t||{},{packages:s=[]}=r||{},i={},l=(e,t)=>{i[e.name]||(i[e.name]={name:e.name,updateType:R.NotChanged}),i[e.name][t]||(i[e.name][t]=[]),i[e.name][t].push(e)};n.forEach(e=>l(e,"baseline")),s.forEach(e=>l(e,"current"));let a=[],o=[];return Object.values(i).forEach(e=>{Q(e)?a.push(e):o.push(e)}),a.concat(o).map(e=>({...e,updateType:X(e)}))},er=e=>{let{baseline:t,current:r}=e,{packages:n=[]}=t||{},{packages:s=[]}=r||{};if(!n.length&&!s.length)return(0,i.jsx)(S.A,{});let a=(0,l.useMemo)(()=>(0,C.sb)(n.concat(s).map(e=>e.name)),[n,s]),[c,p]=(0,l.useState)([]),[m,f]=(0,l.useState)([]),x=(0,l.useMemo)(()=>et({baseline:t,current:r}),[t,r]),g=(0,l.useMemo)(()=>x.filter(e=>m.length?m.indexOf(e.updateType)>-1:!c.length||c.indexOf(e.name)>-1),[x,c,m]);return(0,i.jsxs)(j.A,{gutter:[20,20],children:[(0,i.jsx)(v.A,{span:24,style:{marginTop:16},children:(0,i.jsxs)(d.A,{wrap:!0,children:[(0,i.jsx)(k.A,{mode:"multiple",placeholder:"Filter by package names",style:{width:400},options:a.map(e=>{let t=x.find(t=>t.name===e);return t&&Q(t)?{label:(0,i.jsxs)(d.A,{children:[(0,i.jsx)(h.A.Text,{children:e}),(0,i.jsx)(Y,{type:X(t)})]}),value:e}:{label:e,value:e}}),allowClear:!0,onChange:e=>{p(e)}}),(0,i.jsx)(k.A,{mode:"multiple",placeholder:"Filter by changed type",style:{width:200},options:Object.values(R).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{f(e)}})]})}),(0,i.jsx)(v.A,{span:24,children:(0,i.jsx)(M.A,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},dataSource:g,rowKey:e=>e.name,columns:[{title:()=>(0,i.jsxs)(d.A,{children:[(0,i.jsx)(h.A.Text,{children:"Package Name"}),(0,i.jsx)(u.A,{type:"vertical"}),(0,i.jsx)(o.A,{title:`Filtered Package Count is ${g.length}, Total Package Count is ${x.length}`,children:(0,i.jsxs)(h.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400},children:[g.length," / ",x.length]})})]}),render:(e,t)=>t.updateType!==R.NotChanged?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(h.A.Text,{children:t.name}),(0,i.jsx)(Y,{type:t.updateType})]}):t.name},{title:()=>(0,i.jsxs)(d.A,{children:[(0,i.jsx)(h.A.Text,{children:"Current"}),(0,i.jsx)(u.A,{type:"vertical"}),(0,i.jsx)(ee,{dataSource:x})]}),children:[{title:"Version",render:(e,t)=>t.current?(0,i.jsx)(d.A,{direction:"vertical",children:t.current.map(e=>(0,i.jsx)(B.Ex,{label:"version",value:e.version,tooltip:e.root,type:t.updateType===R.Deleted?"error":t.updateType===R.Changed?"warn":"default"},e.version))}):null},{title:"Parsed Size",render:(e,t)=>{let r=(0,C.xu)(t.current,e=>e.size.parsedSize),n=()=>(0,i.jsx)(b.vh,{baseline:(0,C.xu)(t.baseline,e=>e.size.parsedSize),current:r});return t.current?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(h.A.Text,{strong:t.updateType!==R.NotChanged,children:(0,A.Xq)(r)}),(0,i.jsx)(n,{})]}):(0,i.jsx)(n,{})}}]},{title:"Baseline",children:[{title:"Version",render:(e,t)=>t.baseline?(0,i.jsx)(d.A,{direction:"vertical",children:t.baseline.map(e=>(0,i.jsx)(B.Ex,{label:"version",value:e.version,tooltip:e.root,type:t.updateType===R.Deleted?"error":t.updateType===R.Changed?"warn":"default"},e.version))}):null},{title:"Parsed Size",render:(e,t)=>{if(t.baseline){let e=(0,C.xu)(t.baseline,e=>e.size.parsedSize);return(0,i.jsx)(h.A.Text,{children:(0,A.Xq)(e)})}return null}}]}]})})]})},en=e=>{let{baseline:t,current:r,assetsDiffResult:n}=e,s=(0,A.CL)(t.moduleGraph.modules),l=(0,A.CL)(r.moduleGraph.modules),a=(0,A.sO)(t.errors),o=(0,A.sO)(r.errors),c=(0,A.yC)(t.moduleGraph),u=(0,A.yC)(r.moduleGraph),p=t.root,m=r.root,f=et({baseline:t.packageGraph,current:r.packageGraph}),x=[{title:["Bundle Size"],value:[n.all.total]},{title:["Total JS","Initial JS"],value:[n.js.total,n.js.initial]},{title:["Total CSS","Initial CSS"],value:[n.css.total,n.css.initial]},{title:["Images","Fonts","Media"],value:[n.imgs.total,n.fonts.total,n.media.total]},{title:["HTML"],value:[n.html.total]},{title:["Others"],value:[n.others.total]}];return(0,i.jsxs)(j.A,{gutter:[20,20],wrap:!0,style:{marginBottom:20},children:[x.map(e=>(0,i.jsx)(v.A,{style:{minWidth:335},children:(0,i.jsx)(b.aq,{titles:e.title,datas:e.value,showPercentInTitle:!0})},e.title.join(","))),(0,i.jsx)(v.A,{style:{minWidth:335},children:(0,i.jsx)(b.aq,{titles:["Duplicate Packages"],datas:[{size:{baseline:a.length,current:o.length},count:{baseline:a.length,current:o.length},percent:0,state:y.Kj.Ol.Equal}],formatter:(e,n)=>(0,i.jsx)(w.P6,{duplicatePackages:"baseline"===n?a:o,moduleGraph:"baseline"===n?c:u,cwd:"baseline"===n?p:m,buttonProps:{size:"small"},moduleCodeMap:"baseline"===n?t.moduleCodeMap:r.moduleCodeMap})})}),(0,i.jsx)(v.A,{style:{minWidth:335},children:(0,i.jsx)(b.aq,{titles:["Modules"],datas:[{size:{baseline:s.length,current:l.length},count:{baseline:s.length,current:l.length},percent:0,state:y.Kj.Ol.Equal}],formatter:(e,t)=>{if("baseline"===t)return e;let r=V.TS.Nt(s.length,l.length);return(0,i.jsxs)(d.A,{style:{fontSize:"inherit"},children:[(0,i.jsx)(h.A.Text,{style:{fontSize:"inherit"},children:e}),(0,i.jsx)(b.QE,{...r})]})}})}),(0,i.jsx)(v.A,{style:{minWidth:335},children:(0,i.jsx)(b.aq,{titles:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(h.A.Text,{style:{color:"inherit"},children:"Packages"}),(0,i.jsx)(ee,{dataSource:f})]},"0")],datas:[{size:{baseline:f.filter(e=>e.baseline).length,current:f.filter(e=>e.current).length},count:{baseline:f.filter(e=>e.baseline).length,current:f.filter(e=>e.current).length},percent:0,state:y.Kj.Ol.Equal}],formatter:(e,t)=>"baseline"===t?e:(0,i.jsx)(d.A,{children:e})})})]})},es=e=>{let{assetsDiffResult:t}=e,r=[{type:"JS",data:t.js},{type:"CSS",data:t.css},{type:"Imgs",data:t.imgs},{type:"Fonts",data:t.fonts},{type:"Media",data:t.media},{type:"HTML",data:t.html},{type:"Others",data:t.others}];return(0,i.jsx)(M.A,{bordered:!0,pagination:!1,dataSource:r,rowKey:e=>e.type,style:{marginTop:15},columns:[{title:"File Type",dataIndex:"type",key:"type",render:e=>(0,i.jsx)(h.A.Text,{strong:!0,children:e})},{title:"Size",dataIndex:"data",key:"size",children:[{title:"Current",dataIndex:"data",key:"csize",render:e=>{let t=(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)(h.A.Text,{strong:!0,children:(0,A.Xq)(e.total.size.current)}),(0,i.jsx)(b.QE,{percent:e.total.percent,state:e.total.state}),W(e.total.size.baseline,e.total.size.current,e.total.state)]});return e.initial?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(E.A,{color:"#1677ff",children:"Total"}),t]}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(E.A,{color:"#1677ff",children:"Initial"}),(0,i.jsx)(h.A.Text,{strong:!0,children:(0,A.Xq)(e.initial.size.current)}),(0,i.jsx)(b.QE,{percent:e.initial.percent,state:e.initial.state}),W(e.initial.size.baseline,e.initial.size.current,e.initial.state)]})]}):(0,i.jsx)(d.A,{children:t})}},{title:"Baseline",dataIndex:"data",key:"bsize",render:e=>{let t=(0,i.jsx)(h.A.Text,{children:(0,A.Xq)(e.total.size.baseline)});return e.initial?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(E.A,{color:"#1677ff",children:"Total"}),t]}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(E.A,{color:"#1677ff",children:"Initial"}),(0,i.jsx)(h.A.Text,{children:(0,A.Xq)(e.initial.size.baseline)})]})]}):t}}]},{title:"Count",dataIndex:"data",key:"count",children:[{title:"Current",dataIndex:"data",key:"ccount",render:e=>{let t=(0,i.jsx)(h.A.Text,{strong:!0,children:e.total.count.current});return e.initial?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(E.A,{color:"#1677ff",children:"Total"}),t]}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(E.A,{color:"#1677ff",children:"Initial"}),(0,i.jsx)(h.A.Text,{strong:!0,children:e.initial.count.current})]})]}):(0,i.jsx)(d.A,{children:t})}},{title:"Baseline",dataIndex:"data",key:"bcount",render:e=>{let t=(0,i.jsx)(h.A.Text,{children:e.total.count.baseline});return e.initial?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(E.A,{color:"#1677ff",children:"Total"}),t]}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(E.A,{color:"#1677ff",children:"Initial"}),(0,i.jsx)(h.A.Text,{children:e.initial.count.baseline})]})]}):(0,i.jsx)(d.A,{children:t})}}]}]})};var ei=r(93164),el=r(83449),ea=r(8951),eo=r(8295),ed=r(127);let ec={JS:y.YM.Wm,CSS:[y.YM.lk],HTML:[y.YM.Fe],Imgs:y.YM.q$,Fonts:y.YM.AU,Media:y.YM.zz,Others:[]},eh=Object.values(ec).flat(),eu=e=>{let{data:t}=e,r=(0,i.jsxs)(d.A,{children:[(0,i.jsx)(h.A.Text,{strong:!0,children:t.alias}),(0,i.jsx)(o.A,{title:(0,i.jsxs)(d.A,{style:{color:"inherit"},direction:"vertical",children:[t.current?(0,i.jsxs)(h.A.Text,{style:{color:"inherit"},children:["Current realpath: ",t.current.path]}):null,t.baseline?(0,i.jsxs)(h.A.Text,{style:{color:"inherit"},children:["Baseline realpath: ",t.baseline.path]}):null]}),children:(0,i.jsx)(x.A,{})})]});return t.baseline&&!t.current?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(ei.A,{style:{color:"#e17055"}}),r]}):!t.baseline&&t.current?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(el.A,{style:{color:"#52c41a"}}),r]}):t.baseline&&t.current?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(ea.A,{style:{color:"#faad14"}}),r]}):r},ep=e=>{let{baseline:t,current:r,outputFilename:n}=e,[s,a]=(0,l.useState)(),[c,m]=(0,l.useState)([]),[f,g]=(0,l.useState)([]),[w,S]=(0,l.useState)(P.Size),[D,z]=(0,l.useState)(null),[L,I]=(0,l.useState)(null),{assets:B}=t.chunkGraph,{assets:$}=r.chunkGraph,F=(0,l.useMemo)(()=>{let e={};return D&&L?e.choose={alias:`${D}
5
- ${L}`,current:$.find(e=>e.path===L),baseline:B.find(e=>e.path===D)}:(B.forEach(t=>{let r=V.TS.H9(t.path,n);e[r]?console.warn("[Baseline Asset Exists]: ",t,e):e[r]={alias:r,baseline:t}}),$.forEach(t=>{let r=V.TS.H9(t.path,n);e[r]||(e[r]={alias:r}),e[r].current=t})),Object.values(e)},[B,$,D,L]),O=(0,l.useMemo)(()=>{let e=F.slice();if(s&&(e=e.filter(e=>e.alias.indexOf(s)>-1)),c.length){let t=c.map(e=>ec[e]).flat(),r=c.indexOf("Others")>-1;e=e.filter(e=>{let n=e.baseline||e.current;return!!V.TS.C5(n,t)||!!r&&!V.TS.C5(n,eh)})}if(f.length&&(e=e.filter(e=>e.baseline&&!e.current?f.includes(R.Deleted):!e.baseline&&e.current?f.includes(R.New):!!e.baseline&&!!e.current&&(e.baseline.size===e.current.size?f.includes(R.NotChanged):f.includes(R.Changed)))),w)if(w===P.Name)e.sort((e,t)=>e.alias.localeCompare(t.alias));else{let{prev:s,others:i}=e.reduce((e,t)=>(t.current?t.baseline?e.prev.unshift(t):e.prev.push(t):e.others.push(t),e),{prev:[],others:[]});e=[...s.sort((e,s)=>{if(s.current&&e.current){if(w===P.Delta){let{percent:i}=V.TS.SE(t.chunkGraph,r.chunkGraph,t=>V.TS.H9(t.path,n)===e.alias),{percent:l}=V.TS.SE(t.chunkGraph,r.chunkGraph,e=>V.TS.H9(e.path,n)===s.alias);return l-i}return s.current.size-e.current.size}return -1}),...i]}return e},[F,s,c,f,w]),G=(0,l.useMemo)(()=>(0,C.xu)(O,e=>e.current?e.current.size:0)||0,[O]),q=(0,l.useMemo)(()=>(0,C.xu)(O,e=>e.baseline?e.baseline.size:0)||0,[O]);return(0,i.jsxs)(j.A,{gutter:[20,20],children:[(0,i.jsxs)(v.A,{span:24,children:[(0,i.jsxs)(d.A,{wrap:!0,children:[(0,i.jsx)(T.E,{icon:(0,i.jsx)(N.A,{}),label:"",labelStyle:{width:45},placeholder:"Search by file name",onChange:e=>{a(e)}}),(0,i.jsx)(k.A,{mode:"multiple",placeholder:"Filter by file type",style:{width:250},options:Object.keys(ec).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{m(e)}}),(0,i.jsx)(k.A,{mode:"multiple",placeholder:"Filter by file changed type",style:{width:200},options:Object.values(R).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{g(e)}}),(0,i.jsx)(k.A,{suffixIcon:(0,i.jsx)(eo.A,{}),options:Object.values(P).map(e=>({label:e,value:e})),value:w,onChange:e=>{S(e)}})]}),(0,i.jsxs)(j.A,{style:{marginTop:10},gutter:[6,6],children:[(0,i.jsx)(v.A,{children:(0,i.jsx)(p.Ay,{children:"Select Baseline Asset and Current Asset to Diff "})}),(0,i.jsx)(v.A,{children:(0,i.jsx)(k.A,{allowClear:!0,placeholder:"select baseline assets",showSearch:!0,style:{width:300},options:Object.values(t.chunkGraph.assets).map(e=>({label:e.path,value:e.path})),onChange:e=>z(e)})}),(0,i.jsx)(v.A,{children:(0,i.jsx)(k.A,{allowClear:!0,placeholder:"select current assets",showSearch:!0,style:{width:300},options:Object.values(r.chunkGraph.assets).map(e=>({label:e.path,value:e.path})),onChange:e=>I(e)})})]})]}),(0,i.jsx)(v.A,{span:24,children:(0,i.jsx)(M.A,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},dataSource:O,rowKey:e=>e.alias,expandable:{expandedRowRender:e=>(0,i.jsx)("div",{style:{margin:20/3},children:(0,i.jsx)(K,{data:e,baseline:t,current:r})}),columnTitle:(0,i.jsx)(o.A,{title:"Click to expand row to see the modules which the chunk contains",placement:"left",children:(0,i.jsx)(ed.A,{style:{cursor:"pointer"}})})},columns:[{title:(0,i.jsxs)(o.A,{title:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(h.A.Text,{style:{color:"inherit"},children:["filtered assets is ",O.length]}),(0,i.jsxs)(h.A.Text,{style:{color:"inherit"},children:["total assets is ",F.length]})]}),children:[(0,i.jsx)(h.A.Text,{strong:!0,children:"Assets"}),(0,i.jsx)(u.A,{type:"vertical"}),(0,i.jsxs)(h.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[O.length,"/",F.length]}),(0,i.jsx)(x.A,{})]}),render:(e,t)=>(0,i.jsx)(eu,{data:t})},{title:()=>{let e=(0,A.Xq)(G),t=V.TS.Nt(q,G);return(0,i.jsxs)(o.A,{title:`Current size is ${e}, Delta is ${(0,A.l9)(t.percent)}`,children:[(0,i.jsx)(h.A.Text,{strong:!0,children:"Current"}),(0,i.jsx)(u.A,{type:"vertical"}),(0,i.jsxs)(h.A.Text,{style:{fontSize:10,fontWeight:400,marginRight:4},children:[(0,i.jsx)(h.A.Text,{style:{fontSize:"inherit",marginRight:8},children:e}),(0,i.jsx)(b.vh,{fontSize:"inherit",baseline:q,current:G}),W(q,G,q>G?y.Kj.Ol.Down:y.Kj.Ol.Up,{fontSize:10,fontWeight:400,marginLeft:4})]}),(0,i.jsx)(x.A,{})]})},render:(e,s)=>{if(s.current){let{percent:e,state:l}=V.TS.SE(t.chunkGraph,r.chunkGraph,e=>V.TS.H9(e.path,n)===s.alias),a=V.TS.X9(s.current,r.chunkGraph.chunks);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(h.A.Text,{children:(0,A.Xq)(s.current.size)}),(0,i.jsx)(b.QE,{percent:e,state:l}),a?(0,i.jsx)(E.A,{color:"#1677ff",children:"initial"}):null]})}return"-"}},{title:()=>{let e=(0,A.Xq)(q);return(0,i.jsxs)(o.A,{title:`Baseline size is ${e}`,children:[(0,i.jsx)(h.A.Text,{strong:!0,children:"Baseline"}),(0,i.jsx)(u.A,{type:"vertical"}),(0,i.jsx)(h.A.Text,{style:{fontSize:10,fontWeight:400,marginRight:4},children:e}),(0,i.jsx)(x.A,{})]})},render:(e,r)=>{if(r.baseline){let e=V.TS.X9(r.baseline,t.chunkGraph.chunks);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(h.A.Text,{children:(0,A.Xq)(r.baseline.size)}),e?(0,i.jsx)(E.A,{color:"#1677ff",children:"initial"}):null]})}return"-"}},{title:"Actions",key:"actions",render:(e,t)=>(0,i.jsx)(_,{file:t.alias,data:[{baseline:t.baseline?.content,current:t.current?.content,group:"assets"}]})}]})})]})};var em=r(41611);let ef=e=>{let{api:t,body:r,children:n,manifests:s}=e,l=(0,A.xF)(),a=window[y.YM.tQ];if(a?.baseline&&a?.current){let e=JSON.parse(V.oG.J0(a.baseline)),t=JSON.parse(V.oG.J0(a.current));return(0,i.jsx)(i.Fragment,{children:n(e,t)})}if(s?.length)return(0,i.jsx)(i.Fragment,{children:n(s[0].data,s[1].data)});let[o,d]=l[y.Kj.H9.BundleDiffFiles]?.split(",")||[];return(0,i.jsx)(em.zW,{api:t,body:r,manifestLoader:o?()=>(0,A.Cj)(o):void 0,children:e=>(0,i.jsx)(em.zW,{api:t,body:r,manifestLoader:d?()=>(0,A.Cj)(d):void 0,children:t=>n(e,t)})})},ex=e=>{let{manifests:t}=e;return(0,l.useEffect)(()=>{console.log("BundleDiff Manifests: ",t)},[t]),(0,i.jsx)(ef,{api:y.hp.uT.n.GetBundleDiffSummary,manifests:t,children:(e,t)=>{let r=e.chunkGraph===t.chunkGraph,n=e.chunkGraph,s=r?n:t.chunkGraph,l=V.TS.oT(n,s);return(0,i.jsxs)("div",{children:[(0,i.jsxs)(a.A.Group,{children:[(0,i.jsx)(o.A,{placement:"leftBottom",title:(0,i.jsx)(d.A,{direction:"vertical",children:[{title:"Baseline",data:e},{title:"Current",data:t}].map(e=>{let{title:t,data:r}=e;return(0,i.jsx)(c.A,{size:"small",children:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsx)(h.A.Text,{strong:!0,children:t}),(0,i.jsxs)(d.A,{style:{fontSize:10},children:[(0,i.jsx)(h.A.Text,{style:{fontSize:"inherit",width:30,display:"inline-block"},children:"Hash"}),(0,i.jsx)(u.A,{type:"vertical"}),(0,i.jsx)(h.A.Text,{type:"secondary",style:{fontSize:"inherit"},children:r.hash||"-"})]}),r.cloudManifestUrl?(0,i.jsx)(p.Ay,{type:"link",size:"small",style:{padding:0,fontSize:10},onClick:()=>window.open(r.cloudManifestUrl),children:"Open File"}):null]})},t)})}),children:(0,i.jsx)(a.A,{icon:(0,i.jsx)(x.A,{})})}),(0,i.jsx)(m.A,{title:(0,i.jsxs)(h.A.Text,{children:["Are you sure to",(0,i.jsx)(h.A.Text,{strong:!0,children:" re-upload "}),"json files for bundle diff?"]}),onConfirm:()=>{},okText:"Yes",cancelText:"Cancel",placement:"topLeft",trigger:"hover",children:(0,i.jsx)(a.A,{icon:(0,i.jsx)(g.A,{})})}),(0,i.jsx)(a.A.BackTop,{})]}),(0,i.jsx)(en,{baseline:e,current:t,onlyBaseline:r,assetsDiffResult:l}),(0,i.jsx)(f.A,{defaultActiveKey:"Overview",tabBarStyle:{marginBottom:20/3},items:[{label:"Overview",key:"Overview",children:(0,i.jsx)(es,{assetsDiffResult:l})},{label:"Assets",key:"Assets",children:(0,i.jsx)(ep,{outputFilename:e.outputFilename,baseline:e,current:t})},{label:"Modules",key:"Modules",children:(0,i.jsx)(Z,{baseline:e,current:t,onlyBaseline:r,assetsDiffResult:l})},{label:"Packages",key:"Packages",children:(0,i.jsx)(er,{baseline:e.packageGraph,current:t.packageGraph})}].map(e=>({...e,label:(0,i.jsx)(h.A.Text,{strong:!0,children:e.label})}))})]})}})},eg=y.Kj.EH.BundleDiff,ey=()=>(0,i.jsx)(ex,{manifests:[]})},54378(e,t,r){var n=r(64558),s=r(22733),i=r(42287),l=r(89797),a=r(30147),o=r(50162),d=r(85326),c=r(66482),h=r(13078),u=r.n(h),p=r(1102),m=r(75232),f=r(214),x=r(3810),g=r(44462);let y=(0,m.$N)();function j(e){let{module:t,moduleGraph:r,ranges:h,toLine:j,setEditorData:v,source:b}=e,A=(0,p.useRef)(void 0),w=(0,p.useRef)([]),S=(0,p.useRef)([]),k=(0,p.useRef)(void 0),M=(0,p.useRef)(!1),[C,E]=(0,p.useState)("");return((0,p.useEffect)(()=>{let{isPreferSource:e}=t;M.current=!0,E(b.source||e?b.source:b.transformed),setTimeout(()=>{S.current=A.current?.getModel()?.deltaDecorations(S.current,(0,g.L1)(t,r))??[]},200)},[t,b]),(0,p.useEffect)(()=>{function e(){let e=A.current?.getModel();e&&(w.current=e.deltaDecorations(w.current,h.map(e=>({range:(0,m.qK)(e,x.Q),options:{stickiness:1,inlineClassName:"tree-shaking-statement-side-effect",isWholeLine:!1,showIfCollapsed:!0}}))),A.current&&"number"==typeof j&&k.current!==j&&(k.current=j,A.current.revealLine(j,0)))}M?setTimeout(e,300):e(),M.current=!1},[h,j]),(0,p.useEffect)(()=>{let e=e=>{let t=(0,f.U1)(e.target);if(t){let e=r.getModuleById(t.module);e&&v(e,[t.range],t.range.start.line)}};return document.body.addEventListener("click",e),()=>{document.body.removeEventListener("click",e)}},[]),t)?(0,n.jsx)(a.A,{title:(0,n.jsx)(o.A,{title:t.path,children:(0,n.jsxs)(d.A,{children:[(0,n.jsx)(c.A.Text,{children:u().basename(t.path)}),(0,n.jsx)(s.A,{})]})}),className:"tree-shaking-editor",children:(0,n.jsx)(l.Ay,{theme:"vs-dark",language:(0,m.rZ)(t.path),value:C,loading:(0,n.jsx)(i.A,{style:{fontSize:30}}),options:y,onMount:e=>{A.current=e}})}):(0,n.jsx)("div",{children:"Please select a module to view"})}r.d(t,{B:()=>j})},214(e,t,r){function n(e,t,r){return`<a data-href="data-module=${e}&data-range=${encodeURIComponent(JSON.stringify(t))}">${r}</a>`}function s(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}r.d(t,{U1:()=>s,mJ:()=>n})},3810(e,t,r){class n{startLineNumber;startColumn;endLineNumber;endColumn;constructor(e,t,r,n){e>r||e===r&&t>n?(this.startLineNumber=r,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=r,this.endColumn=n)}isEmpty(){return n.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return n.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber)&&!(t.lineNumber>e.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.column<e.startColumn))&&(t.lineNumber!==e.endLineNumber||!(t.column>e.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber)&&!(t.lineNumber>e.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.column<=e.startColumn))&&(t.lineNumber!==e.endLineNumber||!(t.column>=e.endColumn))}containsRange(e){return n.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber)&&!(t.endLineNumber<e.startLineNumber)&&!(t.startLineNumber>e.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumn<e.startColumn))&&(t.endLineNumber!==e.endLineNumber||!(t.endColumn>e.endColumn))}strictContainsRange(e){return n.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber)&&!(t.endLineNumber<e.startLineNumber)&&!(t.startLineNumber>e.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumn<=e.startColumn))&&(t.endLineNumber!==e.endLineNumber||!(t.endColumn>=e.endColumn))}plusRange(e){return n.plusRange(this,e)}static plusRange(e,t){let r,s,i,l;return t.startLineNumber<e.startLineNumber?(r=t.startLineNumber,s=t.startColumn):t.startLineNumber===e.startLineNumber?(r=t.startLineNumber,s=Math.min(t.startColumn,e.startColumn)):(r=e.startLineNumber,s=e.startColumn),t.endLineNumber>e.endLineNumber?(i=t.endLineNumber,l=t.endColumn):t.endLineNumber===e.endLineNumber?(i=t.endLineNumber,l=Math.max(t.endColumn,e.endColumn)):(i=e.endLineNumber,l=e.endColumn),new n(r,s,i,l)}intersectRanges(e){return n.intersectRanges(this,e)}static intersectRanges(e,t){let r=e.startLineNumber,s=e.startColumn,i=e.endLineNumber,l=e.endColumn,a=t.startLineNumber,o=t.startColumn,d=t.endLineNumber,c=t.endColumn;return(r<a?(r=a,s=o):r===a&&(s=Math.max(s,o)),i>d?(i=d,l=c):i===d&&(l=Math.min(l,c)),r>i||r===i&&s>l)?null:new n(r,s,i,l)}equalsRange(e){return n.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return n.getEndPosition(this)}static getEndPosition(e){return new s(e.endLineNumber,e.endColumn)}getStartPosition(){return n.getStartPosition(this)}static getStartPosition(e){return new s(e.startLineNumber,e.startColumn)}toString(){return`[${this.startLineNumber},${this.startColumn} -> ${this.endLineNumber},${this.endColumn}]`}setEndPosition(e,t){return new n(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new n(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return n.collapseToStart(this)}static collapseToStart(e){return new n(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return n.collapseToEnd(this)}static collapseToEnd(e){return new n(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new n(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new n(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new n(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber)&&(e.endLineNumber!==t.startLineNumber||!(e.endColumn<t.startColumn))&&!(t.endLineNumber<e.startLineNumber)&&(t.endLineNumber!==e.startLineNumber||!(t.endColumn<e.startColumn))}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber)&&(e.endLineNumber!==t.startLineNumber||!(e.endColumn<=t.startColumn))&&!(t.endLineNumber<e.startLineNumber)&&(t.endLineNumber!==e.startLineNumber||!(t.endColumn<=e.startColumn))}static compareRangesUsingStarts(e,t){if(e&&t){let r=0|e.startLineNumber,n=0|t.startLineNumber;if(r===n){let r=0|e.startColumn,n=0|t.startColumn;if(r===n){let r=0|e.endLineNumber,n=0|t.endLineNumber;return r===n?(0|e.endColumn)-(0|t.endColumn):r-n}return r-n}return r-n}return!!e-!!t}static compareRangesUsingEnds(e,t){if(e.endLineNumber===t.endLineNumber)return e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn;return e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}class s{lineNumber;column;constructor(e,t){this.lineNumber=e,this.column=t}with(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lineNumber,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.column;return e===this.lineNumber&&t===this.column?this:new s(e,t)}delta(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.with(this.lineNumber+e,this.column+t)}equals(e){return s.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return s.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return s.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){let r=0|e.lineNumber,n=0|t.lineNumber;return r===n?(0|e.column)-(0|t.column):r-n}clone(){return new s(this.lineNumber,this.column)}toString(){return`(${this.lineNumber},${this.column})`}static lift(e){return new s(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}r.d(t,{Q:()=>n})},21344(e,t,r){var n=r(64558),s=r(30147),i=r(74374);function l(){return(0,n.jsx)(s.A,{title:"Tree Shaking Analysis",bodyStyle:{paddingTop:0},className:"tree-shaking-page",children:(0,n.jsx)(i.A,{style:{marginTop:30}})})}r.d(t,{$:()=>l})},18345(e,t,r){var n=r(64558),s=r(50162),i=r(53919),l=r(70722),a=r(85326),o=r(66482),d=r(6755),c=r(60339),h=r(42322),u=r(1102),p=r(41175),m=r.n(p),f=r(44506),x=r(44462),g=r(1426);function y(e,t){if(!e)return(0,n.jsx)("div",{children:"Can not find declaration."});let{module:r}=e,l=r.isPreferSource?e.position.source:e.position.transformed;return(0,n.jsx)(s.A,{title:`${r.path}, line ${l.start.line}`,children:(0,n.jsx)(i.Ay,{type:"link",onClick:()=>t(r,[l],l.start.line),children:"Move To"})})}function j(e){let[t,r]=(0,u.useState)(""),[s,o]=(0,u.useState)(""),d=(0,u.useRef)(null),c=(e,t,n)=>{t(),r(e[0]),o(n)};return{filterDropdown:t=>{let{setSelectedKeys:s,selectedKeys:o,confirm:u,clearFilters:p,close:m}=t;return(0,n.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,n.jsx)(l.A,{ref:d,placeholder:`Search ${e}`,value:o[0],onChange:e=>s(e.target.value?[e.target.value]:[]),onPressEnter:()=>c(o,u,e),style:{marginBottom:8,display:"block"}}),(0,n.jsxs)(a.A,{children:[(0,n.jsx)(i.Ay,{type:"primary",onClick:()=>c(o,u,e),icon:(0,n.jsx)(h.A,{}),size:"small",style:{width:90},children:"Search"}),(0,n.jsx)(i.Ay,{onClick:()=>p&&void(p(),r("")),size:"small",style:{width:90},children:"Reset"}),(0,n.jsx)(i.Ay,{type:"link",size:"small",onClick:m,children:"close"})]})]})},filterIcon:e=>(0,n.jsx)(h.A,{style:{color:e?"#1890ff":void 0}}),onFilter:(t,r)=>r[e].toString().toLowerCase().includes(t.toLowerCase()),render:r=>s===e?(0,n.jsx)(m(),{highlightStyle:{backgroundColor:"#ffc069",padding:0},searchWords:[t],autoEscape:!0,textToHighlight:r?r.toString():""}):r}}let v=e=>{let{module:t,moduleGraph:r,setEditorData:l}=e,h=(0,u.useMemo)(()=>r.getModuleGraphModule(t).getSideEffects(),[t]),p=h.map((e,r)=>{let{variable:n,name:s,identifier:i}=e;return{key:r,name:s,identifier:t.isPreferSource?i.position.source:i.position.transformed,declaration:n?.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.push(t),e},[]),m=[{title:"Name",dataIndex:"name",key:"name",align:"center",...j("name")},{title:"SideEffect",dataIndex:"identifier",key:"identifier",align:"center",render:e=>(0,n.jsx)(s.A,{title:`Current File line ${e.start.line}`,children:(0,n.jsx)(i.Ay,{type:"link",onClick:()=>l(t,[e],e.start.line),children:"Move To"})})},{title:"Declaration",dataIndex:"declaration",key:"declaration",align:"center",render:e=>y(e,l)}],x=(0,n.jsx)(u.Fragment,{children:(0,n.jsxs)(a.A,{style:{fontWeight:400},children:["Import",(0,n.jsx)(o.A.Text,{strong:!0,children:p.length}),"variables",(0,n.jsx)(d.A,{type:"vertical"}),(0,n.jsx)(o.A.Text,{strong:!0,children:h.length}),"sideEffects"]})});return(0,n.jsx)(f.Zp,{style:{marginBottom:10},title:x,className:"tree-shaking-export-table",children:(0,n.jsx)(c.A,{size:"small",dataSource:p,columns:m,pagination:!1,scroll:{y:600}})})},b=e=>{let{module:t,moduleGraph:r,setEditorData:l}=e,h=(0,u.useMemo)(()=>r.getModuleGraphModule(t).getExports(),[t]),p=h.filter(e=>0===e.getSideEffects().length),m=(0,n.jsxs)(u.Fragment,{children:[(0,n.jsxs)(a.A,{style:{fontWeight:400},children:["Export",(0,n.jsx)(o.A.Text,{strong:!0,children:h.length})]}),h.length>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.A,{type:"vertical"}),(0,n.jsxs)(o.A.Text,{style:{fontWeight:400},code:!0,children:[(0,n.jsx)(o.A.Text,{children:"Unused"}),(0,n.jsx)(d.A,{type:"vertical"}),(0,n.jsx)(o.A.Text,{strong:!0,children:p.length})]}),(0,n.jsx)(d.A,{type:"vertical"}),(0,n.jsxs)(o.A.Text,{style:{fontWeight:400},code:!0,children:[(0,n.jsx)(o.A.Text,{children:"Used"}),(0,n.jsx)(d.A,{type:"vertical"}),(0,n.jsx)(o.A.Text,{strong:!0,children:h.length-p.length})]})]}):""]}),v=h.map((e,t)=>{let{variable:r}=e;return{key:t,name:e.name,declaration:r?.identifier,used:e.getSideEffects().map(e=>{let{module:t,identifier:r}=e,n=t?.isPreferSource?r.position.source:r.position.transformed;if(t&&n)return{module:t,range:n}}).filter(g.C8)}}),b=[{title:"Name",dataIndex:"name",key:"name",align:"center",...j("name")},{title:"Declaration",dataIndex:"declaration",key:"declaration",align:"center",render:e=>y(e,l)},{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)(f.Zp,{title:m,className:"tree-shaking-export-table",children:(0,n.jsx)(c.A,{size:"small",dataSource:v,columns:b,pagination:!1,scroll:{y:600},expandable:{expandedRowRender:e=>(0,n.jsxs)("div",{className:"tree-shaking-side-effect-list",children:[(0,n.jsx)(o.A.Text,{children:"List of SideEffect:"}),e.used.map(e=>{let{module:t,range:r}=e;return(0,n.jsx)(s.A,{title:`${t.path}:${r.start.line}`,children:(0,n.jsx)(i.Ay,{className:"tree-shaking-side-effect-list-item",type:"link",onClick:()=>{l(t,[r],r.start.line)},children:`${(0,x.jx)(t.path)}:${r.start.line}`})},t.id)})]}),rowExpandable:e=>e.used.length>0}})})};r.d(t,{},{oK:e=>"side-effect"===e.kind?(0,n.jsx)(v,{...e}):(0,n.jsx)(b,{...e})})},44462(e,t,r){var n=r(64558),s=r(41537),i=r(85326),l=r(54594),a=r(67782),o=r(13078),d=r.n(o),c=r(1102),h=r(75232),u=r(46977),p=r(1426),m=r(214),f=r(3810);function x(e,t,r,a,o,d){return(0,c.useMemo)(()=>(0,p.Bq)({files:e.map(e=>e.path),cwd:d,fileTitle(e,r){let a=t.getModules().find(t=>t.path===e&&t.kind===s.nV.kind.Normal),d=t.getModuleGraphModule(a),c=d.getExports().filter(e=>0===e.getSideEffects().length);return(0,n.jsxs)(i.A,{style:{wordBreak:"break-all"},children:[(0,n.jsx)(u.i,{text:r,keyword:e,onClick:()=>o(e)}),d.dynamic?(0,n.jsx)(l.A,{color:"cyan",children:"dynamic"}):"",c.length>0?(0,n.jsxs)(l.A,{color:"green",children:[c.length," Unused"]}):""]})}}),[r,a])}function g(e){return(0,p.ME)(e,3,e=>!((0,a.Jt)(e,"__RESOURCEPATH__").indexOf("/node_modules/")>-1))}function y(e){let t="",r=e;for(let e=0;e<3;e++)t=t?`${d().basename(r)}/${t}`:d().basename(r),r=d().dirname(r);return`...${t}`}function j(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:s}=e;return n.map(e=>{let t=s?e.identifier.position.source:e.identifier.position.transformed,r=t&&(0,h.qK)(t,f.Q);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:
6
-
7
- <div data-code="tree-shaking-hover">
8
- <li>`;for(let e of r){if(!e)continue;let{identifier:t,module:r}=e;if(!r)continue;let{id:s,isPreferSource:i}=r,l=t.getLineCode();n+=`
9
- <ol>
10
- ${(0,m.mJ)(s,i?t.position.source:t.position.transformed,function(e,t){let{path:r,isPreferSource:n}=t,s=n?e.position.source.start:e.position.transformed.start,i=`:${s.line??1}:${s.column??0}`;return r.length<=30?`${r}${i}`:`...${r.substring(r.length-30)}${i}`}(t,r))}
11
- ${l?`<pre>${(0,a.ih)(l)}</pre>`:""}
12
- </ol>`}return n+"\n</li></div>"}(e)}}}}).filter(e=>!!e)}r.d(t,{EV:()=>x,L1:()=>j,jx:()=>y,ut:()=>g})},53715(e,t,r){r.d(t,{V:()=>f});var n=r(87826),s=r(1102),i=r(3534),l=r(67782);class a{manifest;pool=new Map;loader;disposed=!1;shardingDataMap=new Map;constructor(e){this.manifest=e,this.loader=new i.B_.s(this),console.log("[DataLoader] isLocal: ",this.isLocal())}get(e){if(this.manifest)return this.manifest[e]}getData(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data",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(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];console.log(`[${this.constructor.name}]`,...t)}async loadManifest(){return this.manifest}}var o=r(83977),d=r(19495);class c extends a{events=new Map;isLocal(){return!0}async loadData(e){return this.limit(e,async()=>{let[t,...r]=this.getKeys(e),s=this.getData(t);if(!s)return;let a=s;if(i._8.tg(a)){if(!this.shardingDataMap.has(e)){let t=(0,o.mq)(n.hp.uT.n.LoadDataByKey,{key:e}).catch(t=>{throw this.log("loadData error: ",a,e),t});this.shardingDataMap.set(e,t)}return a=await this.shardingDataMap.get(e),this.shardingDataMap.delete(e),a}return r.length>0?(0,l.Jt)(a,this.joinKeys(r)):a})}async loadAPI(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,s]=t,i=s?`${n}_${JSON.stringify(s)}`:`${n}`,l=this.get("__SOCKET__PORT__")??"",a=this.get("__SOCKET__URL__")??"";return this.limit(i,async()=>{try{return await (0,d.XM)(n,s,l,a)}catch(e){throw this.log("loadAPI error: ",i),e}})}dispose(){super.dispose(),this.events.forEach(e=>{let{api:t,body:r,listeners:n}=e;n.forEach(e=>{this.removeOnDataUpdate(t,r,e)}),n.clear()}),this.events.clear()}onDataUpdate(e,t,r){let n=t??null,s=`${e}::${JSON.stringify(n)}`;this.events.has(s)||this.events.set(s,{api:e,body:n,listeners:new Set});let i=this.events.get(s);if(i.listeners.has(r))return;i.listeners.add(r);let l=this.get("__SOCKET__PORT__")??"",a=this.get("__SOCKET__URL__")??"";(0,d.Wi)(e,n,r,l,a)}removeOnDataUpdate(e,t,r){let n=`${e}::${JSON.stringify(t??null)}`,s=this.get("__SOCKET__PORT__")??"",i=this.get("__SOCKET__URL__")??"";(0,d.Xi)(e,t,r,s,i),this.events.get(n)?.listeners.delete(r)}}class h extends a{isLocal(){return!1}async loadData(e){return this.limit(e,async()=>{let[t,...r]=this.getKeys(e),n=this.getData(t,"cloudData");if(!n)return;let s=n;if(i._8.tg(s)){if(!this.shardingDataMap.has(t)){let r=i._8.pJ(s,o.fZ).catch(t=>{throw this.log("loadData error: ",s,e),t});this.shardingDataMap.set(t,r)}s=await this.shardingDataMap.get(t)}return r.length>0?(0,l.Jt)(s,this.joinKeys(r)):s})}async loadAPI(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,s]=t,i=s?`${n}_${JSON.stringify(s)}`:`${n}`;return this.limit(i,async()=>this.loader.loadAPI(...t))}dispose(){super.dispose()}onDataUpdate(){}removeOnDataUpdate(){}}r(10815),r(15061);class u extends a{isLocal(){return!1}async loadData(e){console.log(`[loadData]-[key]: ${e}`);let[t]=this.getKeys(e);console.log(`[loadData]-[scope]: ${t}`);let r=this.getData(t);if(!r)return;let n=r;if(!this.shardingDataMap.has(t)){let e=this.parseData(n);this.shardingDataMap.set(t,Promise.resolve(e))}return await this.shardingDataMap.get(t)}getData(e){return console.log(`[getData]-[scope]: ${e}`),window[n.YM.tQ][e]}parseData(e){if("object"==typeof e&&null!==e||"string"!=typeof e)return e;try{return JSON.parse(i.oG.J0(e))}catch{return e}}async loadAPI(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.loader.loadAPI(...t)}dispose(){super.dispose()}onDataUpdate(){}removeOnDataUpdate(){}}let p=new WeakMap;async function m(e){try{if(e.__LOCAL__SERVER__)return console.log("[LocalServerDataLoader]"),new c(e)}catch{console.log("[DataLoader] fallback to RemoteDataLoader")}return new h(e)}function f(e){let[t,r]=(0,s.useState)(void 0);return(0,s.useEffect)(()=>{window[n.YM.tQ]&&(console.log("[brief mode]"),r(new u({data:[]})))},[]),(0,s.useEffect)(()=>{if(e){if(!p.has(e)){let t=m(e);p.set(e,t)}p.get(e).then(e=>{r(e)})}},[e]),{loader:t}}},71631(e,t,r){var n=r(25205),s=r(33663);n.Ay.use(s.r9).init({lng:"en",supportedLngs:["en"],resources:{en:{translations:{Overall:"Overall","Compile Analysis":"Compile Analysis","Bundle Alerts":"Bundle Alerts","Help Center":"Help Center",LoadersAnalysis:"Loaders Analysis","Loaders Timeline":"Loaders Timeline","Loaders Analysis":"Loaders Analysis","Rsdoctor Introduction":"Rsdoctor Introduction","Compilation Alerts":"Compilation Alerts","Plugins Analysis":"Plugins Analysis",PluginsAnalysis:"Plugins Analysis",ModuleResolve:"Module Resolve","Bundle Analysis":"Bundle Analysis",BundleSize:"Bundle Size",ViewBundleSize:"View 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.",AsyncLoaderInfo:"For async loaders, the time cost of each loader is not accurate. For example: mini-css-extract-plugin's loader.",Details:"Details",Expand:"Expand",Collapse:"Collapse"}}},fallbackLng:"en",debug:!1,ns:["translations"],defaultNS:"translations",keySeparator:!1,interpolation:{escapeValue:!1}})},5525(e,t,r){let{xr:n,Wx:s}=r(3534).aH;function i(e,t,r,n,s,i){return!(r&&-1===e.indexOf(r)||s&&i&&s!==i||n?.length&&!n.includes(t))}r.d(t,{ak:()=>i},{xr:n})},24336(e,t,r){var n=r(79514);function s(){return n.A}r.d(t,{J:()=>s})},22009(e,t,r){var n=r(1102),s=r(41537),i=r(17886),l=r(15061);function a(){let{theme:e,setTheme:t}=(0,n.useContext)(i.Q),r=e===l.Sx.Dark;return{theme:e,setTheme:t,isDark:r,isLight:!r}}function o(){let{viewMode:e,setViewMode:t}=(0,n.useContext)(i.Q),{bundleAlerts:r,compileAlerts:s}=e;return{viewMode:e,setViewMode:t,setCompileAlertsViewMode(e){t({compileAlerts:e})},setBundleAlertsViewMode(e){t({bundleAlerts:e})},isCompileList:"list"===s,isBundleList:"list"===r}}function d(e){return(0,n.useMemo)(()=>s.dh.fromData(e),[e])}r(83977),r.d(t,{DP:()=>a,an:()=>o,mB:()=>d})},83977(e,t,r){var n=r(87826),s=r(3534);r(15061);var i=r(36577);r(10815);async function l(e,t){return(await s.Fp.u9(e,{timeout:t})).text()}async function a(e){return s.s0.gU(e)?l(e,999999):e}async function o(e){let t=await l(e,3e4);if("string"==typeof t){let e=t.trim();t=/^<!doctype html\b/i.test(e)||/^<html\b/i.test(e)?{}:JSON.parse(t)}return t}let d=new Map;async function c(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:((e=window[n._8.V.WindowPropertyForManifestUrl]?window[n._8.V.WindowPropertyForManifestUrl]:(0,i.kJ)())||(e=n.hp.uT.n.Manifest),e);return d.has(t)||d.set(t,o(t).catch(e=>{throw d.delete(t),e})),await d.get(t)}async function h(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,i]=t,l={method:"POST",headers:{"Content-Type":"application/json"},timeout:6e4};null!=i&&(l.body=JSON.stringify(i));let a=await s.Fp.u9(`${n}?_t=${Date.now()}${Math.floor(1e4*Math.random())}`,l);return await a.json()}r.d(t,{Cj:()=>c,fZ:()=>a,mq:()=>h})},62772(e,t,r){var n=r(87826);function s(e){return e.includes(n._8.z.Loaders)||e.includes(n._8.z.ModuleResolve)||e.includes(n._8.z.Plugins)}function i(e){return e.includes(n._8.z.BundleSize)||e.includes(n._8.z.ModuleGraph)||e.includes(n._8.z.TreeShaking)}r.d(t,{c:()=>s,r:()=>i})},91431(e,t,r){function n(e){return e>=1e9?`${(e/1e9).toFixed(2)} GB`:e>=1e6?`${(e/1e6).toFixed(2)} MB`:e>=1e3?`${(e/1e3).toFixed(2)} KB`:e>1?`${e} bytes`:1===e?`${e} byte`:"0 bytes"}function s(e){return`${+e.toFixed(2)}%`}r.d(t,{X:()=>n,l:()=>s})},19495(e,t,r){let n=new Map,s=0,i=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;function l(e){return e.includes("https")?"wss":"ws"}function a(){if("u"<typeof location)return"";let e=l(location.protocol);return`${e}://${location.host}`}function o(e,t){return t||("u"<typeof location?e?`ws://localhost:${e}`:"":e?function(e){let{port:t,protocol:r,hostname:n}=e,s=l(r),a=i.test(n)||n.includes("localhost");if("u">typeof URL){let e=new URL("http://localhost");return e.hostname=n,e.protocol=s,t&&a&&(e.port=t),e.toString()}let o=t&&a?`:${t}`:"";return`${s}://${n}${o}`}({port:e,hostname:location.hostname,protocol:location.protocol}):a())}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a(),t=e||"__default__";return n.has(t)||n.set(t,{url:e,listeners:new Map,subscriptions:new Map,requests:new Map}),n.get(t)}function c(e,t){return`${e}:${JSON.stringify(t??null)}`}function h(e,t){e.socket?.readyState===1&&e.socket.send(JSON.stringify({type:"subscribe",api:t.api,body:t.body??null}))}function u(e,t){if(e.socket?.readyState!==1)return;let r=e.requests.get(t);r&&e.socket.send(r.message)}function p(e){if(!e.url||"u"<typeof WebSocket||e.socket)return;let t=new WebSocket(e.url);t.addEventListener("open",()=>{e.subscriptions.forEach(t=>{h(e,t)}),e.requests.forEach((t,r)=>{u(e,r)})}),t.addEventListener("message",t=>{if("string"==typeof t.data)try{var r,s;let i=JSON.parse(t.data);if("type"in i&&"response"===i.type)return void function(e,t){let r=e.requests.get(t.id);if(r){if(e.requests.delete(t.id),t.error)return r.reject(Error(t.error));r.resolve(t.payload)}}(e,i);r=i,((s=e.url)?[d(s)]:[...n.values()]).forEach(e=>{let t=c(r.api,r.payload.req.body);e.listeners.get(t)?.forEach(e=>{e(r.payload)})})}catch{}}),t.addEventListener("close",()=>{e.socket=void 0,e.requests.forEach(e=>{e.reject(Error("WebSocket closed before the response arrived."))}),e.requests.clear()}),e.socket=t}function m(e,t,r,n){let i=o(r,n);if(!i)return Promise.reject(Error("WebSocket URL is not available."));if("u"<typeof WebSocket)return Promise.reject(Error("WebSocket is not available."));let l=d(i),a=`${Date.now()}-${++s}`;return new Promise((r,n)=>{l.requests.set(a,{message:JSON.stringify({type:"request",id:a,api:e,body:t??null}),resolve:r,reject:n}),p(l),u(l,a)})}function f(e,t,r,n,s){let i=d(o(n,s)),l=t??null,a=c(e,l);i.listeners.has(a)||i.listeners.set(a,new Set),i.listeners.get(a).add(r);let u={api:e,body:l};return i.subscriptions.set(a,u),p(i),h(i,u),()=>{x(e,l,r,n,s)}}function x(e,t,r,n,s){let i=d(o(n,s)),l=c(e,t),a=i.listeners.get(l);if(a?.delete(r),a?.size===0){let e=i.subscriptions.get(l);e&&i.socket?.readyState===1&&i.socket.send(JSON.stringify({type:"unsubscribe",api:e.api,body:e.body??null})),i.listeners.delete(l),i.subscriptions.delete(l)}}r.d(t,{Wi:()=>f,XM:()=>m,Xi:()=>x})},10815(e,t,r){var n=r(15061);function s(e){return window.localStorage.getItem(`__RSDOCTOR__STORAGE__${e}`)}function i(e,t){try{return window.localStorage.setItem(`__RSDOCTOR__STORAGE__${e}`,t),!0}catch(e){return console.error(e),!1}}function l(){return s("THEME")||n.Sx.Light}function a(e){i("THEME",e)}function o(){let e={bundleAlerts:"list",compileAlerts:"list"};try{let t=s("VIEWMODE");if(t)return JSON.parse(t)||e;return e}catch{return e}}function d(e){i("VIEWMODE",JSON.stringify(e))}function c(){return!!s("VIEWMODE")}r.d(t,{DT:()=>l,Kv:()=>a,ZI:()=>d,it:()=>c,oi:()=>o})},72911(e,t,r){let{ox:n,l_:s,a4:i}=r(3534).gX;r.d(t,{},{a4:i})},36744(){class e{worker;timer=0;callbacks=new Map;constructor(e){this.worker=e,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){var r;let n=this.createEventId();return this.callbacks.set(n,t),r={id:n,data:e},this.worker.postMessage(r),{abort:()=>this.callbacks.delete(n)}}dispose(){this.worker.terminate()}}class t{_workerMap=new WeakMap;detectWorker(t){if(this._workerMap.has(t))return this._workerMap.get(t);let r=new e(t());return this._workerMap.set(t,r),r}}new t},64033(e,t,r){var n=r(13078);let{relative:s}=(r.n(n))();function i(e,t,r,n,i){return n.slice().reverse().map(n=>{let l=t.find(e=>e.id===n.dependencyId);if(!l)return null;let a=e.find(e=>e.id===l.module);return a?{group:n.group,module:a,dependency:l,relativePath:s(r,a.path),moduleCode:i?.[a.id]}:null}).filter(Boolean)}r.d(t,{X:()=>i})},16397(e,t,r){var n=r(46068),s=r(36533);function i(e){let t,r;e.sort((e,t)=>e[0]-t[0]);let n=[];for(let s=0;s<e.length;s++)r=e[s],!t||r[0]>t[1]?(t=r,n.push(r)):t[1]=Math.max(t[1],r[1]);return n}function l(e){return(0,n.inflateSync)(s.Buffer.from(e,"base64")).toString()}r.d(t,{J0:()=>l,l7:()=>i})},17806(e,t,r){r(87826)},61101(e,t,r){r.d(t,{s:()=>m});var n=r(87826),s=r(13078),i=r.n(s),l=r(83920),a=r(94485),o=r(47776);function d(e){return Object.keys(e)}function c(e){let t=d(e),r=new Set;return t.forEach(t=>{e[t].forEach(e=>{r.add(e.tapName)})}),[...r]}var h=r(88297),u=r(64033);let{relative:p}=i();class m{loader;constructor(e){this.loader=e,this.loadAPI=this.loadAPI.bind(this)}log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];console.log(`[${this.constructor.name}]`,...t)}loadAPI(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[s,i]=t;switch(s){case n.hp.uT.n.LoadDataByKey:return this.loader.loadData(i.key);case n.hp.uT.n.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=>{let[t,r,n,s,i,l,a]=e;return{root:t,pid:r,hash:n,summary:s,configs:i,envinfo:l,errors:a,name:i?.[0]?.config?.name}});case n.hp.uT.n.GetClientRoutes:{let e="u"<typeof window?void 0:window;if(e?.[n.YM.tQ]?.enableRoutes)return Promise.resolve(e[n.YM.tQ].enableRoutes);return this.loader.loadManifest().then(e=>{let{enableRoutes:t=[]}=e.client||{};return t})}case n.hp.uT.n.GetLoaderNames:return this.loader.loadData("loader").then(e=>a.Gk(e||[]));case n.hp.uT.n.GetLayers:return this.loader.loadData("moduleGraph").then(e=>{let{layers:t}=e||{};return t});case n.hp.uT.n.GetLoaderChartData:return this.loader.loadData("loader").then(e=>a.q6(e||[]));case n.hp.uT.n.GetLoaderFileTree:return this.loader.loadData("loader").then(e=>a.Ym(e||[]));case n.hp.uT.n.GetLoaderFileDetails:return this.loader.loadData("loader").then(e=>a.Yf(i.path,e||[]));case n.hp.uT.n.GetLoaderFolderStatistics:return this.loader.loadData("loader").then(e=>a.bO(i.folder,e||[]));case n.hp.uT.n.GetLoaderFileFirstInput:return this.loader.loadData("loader").then(e=>a.Ah(i.file,e||[]));case n.hp.uT.n.GetLoaderFileInputAndOutput:return this.loader.loadData("loader").then(e=>a.eJ(i.file,i.loader,i.loaderIndex,e||[],i.isPitch));case n.hp.uT.n.GetResolverFileTree:return this.loader.loadData("resolver").then(e=>o.NB(e||[]));case n.hp.uT.n.GetResolverFileDetails:return Promise.all([this.loader.loadData("resolver"),this.loader.loadData("moduleGraph.modules"),this.loader.loadData("moduleCodeMap")]).then(e=>{let t=e[0],r=e[1],n=e[2];return o.Vj(i.filepath,t||[],r||[],n||{})});case n.hp.uT.n.GetPluginSummary:return this.loader.loadData("plugin").then(e=>{var t;return{hooks:d(t=e||{}),tapNames:c(t)}});case n.hp.uT.n.GetPluginData:return this.loader.loadData("plugin").then(e=>{let{hooks:t,tapNames:r}=i;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=d(e).filter(e=>!t.length||-1!==t.indexOf(e));return n.length?c(e).reduce((t,s)=>(r.length&&-1===r.indexOf(s)||n.forEach(r=>{let n=e[r].filter(e=>e.tapName===s);0!==n.length&&t.push({tapName:s,hook:r,data:n.map(e=>({startAt:e.startAt,endAt:e.endAt,costs:e.costs,type:e.type}))})}),t),[]):[]}(e||{},t,r)});case n.hp.uT.n.GetAssetsSummary:return this.loader.loadData("chunkGraph").then(e=>{let{withFileContent:t=!0}=i,{assets:r=[],chunks:n=[]}=e||{};return h.iD(r,n,{withFileContent:t})});case n.hp.uT.n.GetAssetDetails:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("configs")]).then(e=>{let{assetPath:t}=i,{isRspack:r,hasSourceMap:n}=(0,l.fM)(e[2]||[]),{assets:s=[],chunks:a=[]}=e[0]||{},{modules:o=[]}=e[1]||{};return h.Xh(t,s,a,o,r||n?e=>0!==e.size.parsedSize:()=>!0)});case n.hp.uT.n.GetSummaryBundles:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("configs")]).then(e=>{let{assets:t=[],chunks:r=[]}=e[0]||{},{modules:n=[]}=e[1]||{},s=e[2]||[],i=t;return Array.isArray(s)&&s[0]?.config?.name==="lynx"&&(i=t.filter(e=>!e.path.endsWith("/template.js"))),h.ko(i,r,n,["id","path","size","kind"])});case n.hp.uT.n.GetChunksByModuleId:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let{moduleId:t}=i,{chunks:r=[]}=e[0]||{},{modules:n=[]}=e[1]||{};return h.lq(t,n,r)});case n.hp.uT.n.GetModuleDetails:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph"),this.loader.loadData("treeShaking")]).then(e=>{let{moduleId:t}=i,{modules:r=[],dependencies:n=[]}=e[1]||{},s=e[2],l=s?.sideEffectCodes[t]||[];return h.lD(t,r,n,l)});case n.hp.uT.n.GetModulesByModuleIds:return this.loader.loadData("moduleGraph").then(e=>{let{moduleIds:t}=i,{modules:r=[]}=e||{};return h.xp(t,r)});case n.hp.uT.n.GetEntryPoints:return Promise.all([this.loader.loadData("chunkGraph")]).then(e=>{let[t]=e,{entrypoints:r=[]}=t||{};return h.WL(r)});case n.hp.uT.n.GetModuleCodeByModuleId:return this.loader.loadData("moduleCodeMap").then(e=>{let{moduleId:t}=i;return e?e[t]:{source:"",transformed:"",parsedSource:""}});case n.hp.uT.n.GetModuleCodeByModuleIds:return this.loader.loadData("moduleCodeMap").then(e=>{let{moduleIds:t}=i,r={};return e?(t.forEach(t=>{r[t]=e[t]}),r):[]});case n.hp.uT.n.GetAllModuleGraph:return this.loader.loadData("moduleGraph").then(e=>e?.modules);case n.hp.uT.n.GetSearchModules:return Promise.all([this.loader.loadData("moduleGraph"),this.loader.loadData("chunkGraph")]).then(e=>{let[t,r]=e,{moduleName:n}=i;if(!n)return[];let s=r.chunks.reduce((e,t)=>(t.assets.forEach(r=>{e[t.id]||(e[t.id]=[]),e[t.id].push(r)}),e),{}),l=new Map;return t?.modules.filter(e=>{e.identifier.includes(n)&&e.chunks.forEach(e=>{l.has(e)||(s[e]||[]).forEach(t=>{t.endsWith(".js")&&l.set(e,t)})})}),Object.fromEntries(l)});case n.hp.uT.n.GetSearchModuleInChunk:return Promise.all([this.loader.loadData("moduleGraph"),this.loader.loadData("root")]).then(e=>{let[t,r]=e,{moduleName:n,chunk:s}=i;return n?t?.modules.filter(e=>e.identifier.includes(n)&&e.chunks.includes(s)).map(e=>({id:e.id,path:e.path,relativePath:p(r,e.path)})):[]});case n.hp.uT.n.GetAllChunkGraph:return this.loader.loadData("chunkGraph").then(e=>e?.chunks);case n.hp.uT.n.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:r}=i,[n,s=[],l="",a]=e,{modules:o=[],dependencies:d=[]}=n||{},{packages:c=[]}=s.find(e=>e.id===t)||{},{dependencies:h=[]}=c.find(e=>e.target.name===r.name&&e.target.root===r.root&&e.target.version===r.version)||{};return u.X(o,d,l,h,a||{})});case n.hp.uT.n.GetOverlayAlerts:return this.loader.loadData("errors").then(e=>(e||[]).filter(e=>e.code===n.jO.jr.Overlay));case n.hp.uT.n.GetBundleAlerts:return this.loader.loadData("errors").then(e=>(e||[]).filter(e=>e.category===n.jO.y1.Bundle));case n.hp.uT.n.BundleDiffManifest:return this.loader.loadManifest();case n.hp.uT.n.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=>{let[t,r="",n="",s={},i={},l={},a={},o={},d=[]]=e,c="";return"string"==typeof d[0]?.config?.output?.chunkFilename&&(c=d[0]?.config.output.chunkFilename),{root:r,hash:n,errors:s,chunkGraph:i,moduleGraph:l,packageGraph:o,outputFilename:c,moduleCodeMap:a}});case n.hp.uT.n.GetChunkGraph:return this.loader.loadData("chunkGraph").then(e=>{let{chunks:t=[]}=e||{};return t});case n.hp.uT.n.GetAllModuleGraphFilter:return this.loader.loadData("moduleGraph").then(e=>e?.modules.map(e=>({id:e.id,identifier:e.identifier,path:e.path,size:e.size,chunks:e.chunks,kind:e.kind})));case n.hp.uT.n.GetModuleByName:return this.loader.loadData("moduleGraph").then(e=>{let{moduleName:t}=i,{modules:r=[]}=e||{};return r.filter(e=>e.path.includes(t)).map(e=>({id:e.id,path:e.path}))||[]});case n.hp.uT.n.GetModuleIssuerPath:return this.loader.loadData("moduleGraph").then(e=>{let{moduleId:t}=i,r=e?.modules||[],n=r.find(e=>String(e.id)===t)?.issuerPath||[];return Array.isArray(n)&&n.length>0&&"number"==typeof n[0]?n.map(e=>r.find(t=>t.id===e)?.path).filter(Boolean):n});case n.hp.uT.n.GetPackageInfo:return this.loader.loadData("packageGraph").then(e=>e?.packages);case n.hp.uT.n.GetPackageDependency:return this.loader.loadData("packageGraph").then(e=>e?.dependencies||[]);case n.hp.uT.n.GetChunkGraphAI:return this.loader.loadData("chunkGraph").then(e=>{let{assets:t=[]}=e||{};return t.map(e=>{let{content:t,...r}=e;return r})});case n.hp.uT.n.GetChunkByIdAI:return Promise.all([this.loader.loadData("chunkGraph"),this.loader.loadData("moduleGraph")]).then(e=>{let[t,r]=e,{chunks:n=[]}=t||{},{modules:s=[]}=r||{},{chunkId:l}=i,a=n.find(e=>e.id===l);if(!a)return null;let o=s.filter(e=>a.modules.includes(e.id)).map(e=>({id:e.id,path:e.path,size:e.size,chunks:e.chunks,kind:e.kind,issuerPath:e.issuerPath}));return a.modulesInfo=o,a});case n.hp.uT.n.GetDirectoriesLoaders:return Promise.all([this.loader.loadData("root"),this.loader.loadData("loader")]).then(e=>{let[t,r]=e;return a.qJ(r||[],t||"")});default:throw Error(`API not implement: "${s}"`)}}}},33592(e,t,r){async function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{timeout:r=3e4,signal:n,...s}=t,i=new AbortController,l=setTimeout(()=>i.abort(),r);n&&(n.aborted?i.abort():n.addEventListener("abort",()=>i.abort(),{once:!0}));let a=function(){let e=globalThis.fetch;if("function"!=typeof e)throw Error("fetch is not available in this environment");return e.bind(globalThis)}();try{let t=await a(e,{...s,signal:i.signal});if(!t.ok)throw Error(`Request failed with status ${t.status}`);return t}finally{clearTimeout(l)}}r.d(t,{u9:()=>n})},88297(e,t,r){r.d(t,{SE:()=>v,Nt:()=>j,H9:()=>u,ko:()=>w,Xh:()=>A,oT:()=>y,iD:()=>b,QZ:()=>i,lq:()=>a,WL:()=>S,lD:()=>c,xp:()=>d,Xm:()=>o,C5:()=>m,X9:()=>x});var n=r(87826);function s(e){return e.chunks?e.chunks:[]}function i(e,t){return e.chunks.length?l(e.chunks,t):[]}function l(e,t,r){return e.length?e.map(e=>t.find(t=>t.id===e)).filter(Boolean).map(e=>{if(r&&r.length>0){let t={};for(let n of r)void 0!==e[n]&&(t[n]=e[n]);return t}return e}):[]}function a(e,t,r){let n=t.find(t=>t.id===e);return n?i(n,r):[]}function o(e,t,r,n,i){var a=l(s(e),t),o=r,d=n,c=i;let h=[];try{a.forEach(e=>{(function(e){let{modules:t=[]}=e;return t})(e).map(e=>{let t=o.find(t=>t.id===e);if(d&&d.length>0){if(!t)return null;let e={};for(let r of d)void 0!==t[r]&&(e[r]=t[r]);return e}return t}).filter(Boolean).forEach(e=>{(!c||c(e))&&!h.filter(t=>t.id===e.id).length&&h.push(e)})})}catch{}return h}function d(e,t){return e.map(e=>t.find(t=>t.id===e)).filter(Boolean)}function c(e,t,r,n){let s=t.find(t=>t.id===e);return{module:s,dependencies:s.dependencies.map(e=>r.find(t=>t.id===e)).filter(Boolean),...n?.length?{sideEffectCodes:n}:{}}}let h=RegExp(`(.*)${/[-|.]/.source}(${/(?:[a-f0-9]{4,32}|[a-zA-Z]{3,}[0-9]|[a-zA-Z]*[0-9][a-zA-Z]{2,}|[a-zA-Z]*[0-9][a-zA-Z0-9]{3,31})/.source})(${/(?:\.[a-z|A-Z|0-9]{2,}){1,}/.source})$`);function u(e,t){let r=t?.split(".");if(r?.length&&r.length>=3&&r[r.length-2]?.indexOf("[")<0&&"js|css|html".indexOf(r[r.length-1])>-1){let t=r[r.length-2],n=e.match(/(.*)(\.([a-f0-9]{4,32}|[a-zA-Z]*[0-9][a-zA-Z0-9]*))(\.[^.]+){2,}$/);if(n&&n[3].length>=4&&n[3].length<=32){let r=n[1];return`${r}.${t}.${e.substring(e.lastIndexOf(".")+1)}`}}let n=e.match(h);return n&&n[2]&&n[2].length>=4&&n[2].length<=32?e.replace(h,"$1$3"):e}function p(e,t){let r;return e.path.slice(-t.length)===t||((r=e.path.split("?")[0].match(/\.([0-9a-z]+)(?:[?#]|$)/i))?`.${r[1]}`:"")===t}function m(e,t){return!!t.length&&t.some(t=>p(e,t))}function f(e,t){var r,s;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{withFileContent:l=!0,filterOrExtensions:a}=i;return(e=e.filter(e=>!m(e,n.YM.Jt)),a&&(r=e,a&&(r="function"==typeof a?r.filter(a):(s=r,"string"==typeof a?s.filter(e=>p(e,a)):Array.isArray(a)?s.filter(e=>m(e,a)):[])),e=r),e.length)?{count:e.length,size:e.reduce((e,t)=>e+t.size,0),files:e.map(e=>({path:e.path,size:e.size,gzipSize:e.gzipSize,brotliSize:e.brotliSize,initial:x(e,t),content:l?e.content:void 0}))}:{count:0,size:0,files:[]}}function x(e,t){return l(s(e),t,void 0).some(e=>!!e.initial)}function g(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f(e,t,{...r,filterOrExtensions:e=>{var n;return(!(n=r.filterOrExtensions)||("function"==typeof n?n(e):"string"==typeof n?p(e,n):m(e,n)))&&x(e,t)}})}function y(e,t){return{all:{total:v(e,t)},js:{total:v(e,t,n.YM.Wm),initial:v(e,t,n.YM.Wm,!0)},css:{total:v(e,t,n.YM.lk),initial:v(e,t,n.YM.lk,!0)},imgs:{total:v(e,t,n.YM.q$)},html:{total:v(e,t,n.YM.Fe)},media:{total:v(e,t,n.YM.zz)},fonts:{total:v(e,t,n.YM.AU)},others:{total:v(e,t,e=>!m(e,[...n.YM.Wm,n.YM.lk,n.YM.Fe].concat(n.YM.q$,n.YM.zz,n.YM.AU,n.YM.Jt)))}}}function j(e,t){let r=e===t;return{percent:r?0:0===e?100:Math.abs(t-e)/e*100,state:r?n.Kj.Ol.Equal:e>t?n.Kj.Ol.Down:n.Kj.Ol.Up}}function v(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s,i,{size:l,count:a}=n?g(e.assets,e.chunks,{filterOrExtensions:r}):f(e.assets,e.chunks,{filterOrExtensions:r});if(e===t)s=l,i=a;else{let{size:e,count:l}=n?g(t.assets,t.chunks,{filterOrExtensions:r}):f(t.assets,t.chunks,{filterOrExtensions:r});s=e,i=l}let{percent:o,state:d}=j(l,s);return{size:{baseline:l,current:s},count:{baseline:a,current:i},percent:o,state:d}}function b(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s={...r,filterOrExtensions:n.YM.Wm},i={...r,filterOrExtensions:n.YM.lk},l={...r,filterOrExtensions:n.YM.q$},a={...r,filterOrExtensions:n.YM.Fe},o={...r,filterOrExtensions:n.YM.zz},d={...r,filterOrExtensions:n.YM.AU},c={...r,filterOrExtensions:e=>!m(e,[...n.YM.Wm,n.YM.lk,n.YM.Fe].concat(n.YM.q$,n.YM.zz,n.YM.AU,n.YM.Jt))};return{all:{total:f(e,t,r)},js:{total:f(e,t,s),initial:g(e,t,s)},css:{total:f(e,t,i),initial:g(e,t,i)},imgs:{total:f(e,t,l)},html:{total:f(e,t,a)},media:{total:f(e,t,o)},fonts:{total:f(e,t,d)},others:{total:f(e,t,c)}}}function A(e,t,r,n,i){let a=t.find(t=>t.path===e);return{asset:a,chunks:l(s(a),r,void 0),modules:o(a,r,n,void 0,i)}}function w(e,t,r,n){let s=[];try{for(let i=0;i<e.length;i++){let l=e[i];s.push({asset:l,modules:o(l,t,r,n)})}return s}catch(e){return console.error(e),[]}}function S(e){return e}},94485(e,t,r){var n=r(16397),s=r(85409);function i(e){let t=1/0,r=-1/0;for(let n=0;n<e.length;n++){let s=e[n];s.startAt<=t&&(t=s.startAt),s.endAt>=r&&(r=s.endAt)}return{start:t,end:r}}function l(e,t){let r={},s={};t.forEach(t=>{e(t)?(r[t.pid]||(r[t.pid]=[]),r[t.pid].push([t.startAt,t.endAt])):(s[t.pid]||(s[t.pid]=[]),s[t.pid].push([t.startAt,t.endAt]))});let i=0,l=Object.keys(r);for(let e=0;e<l.length;e++){let t=l[e],a=(0,n.l7)(r[t]),o=(0,n.l7)(s[t]||[]).filter(e=>{let[t,r]=e;return a.some(e=>t>=e[0]&&r<=e[1])});i+=(a.length?a.reduce((e,t)=>e+t[1]-t[0],0):0)-(o.length?o.reduce((e,t)=>e+t[1]-t[0],0):0)}return i}function a(e,t){let r=t.filter(t=>!t.loader.includes("builtin")&&t!==e&&t.pid===e.pid&&t.startAt>=e.startAt&&t.endAt<=e.endAt),s=e.endAt-e.startAt;return r.length&&(0,n.l7)(r.map(t=>[Math.max(t.startAt,e.startAt),Math.min(t.endAt,e.endAt)])).forEach(e=>{let t=e[1]-e[0];s-=t}),s}function o(e){let t=new Set;return e.forEach(e=>e.loaders.forEach(e=>t.add(g(e.loader)))),[...t]}function d(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 c(e){let t=[],r=d(e);return e.forEach(e=>{e.loaders.forEach(n=>{t.push({layer:e.resource.layer,loader:g(n.loader),isPitch:n.isPitch,startAt:n.startAt,endAt:n.endAt,pid:n.pid,sync:n.sync,resource:e.resource.path,costs:a(n,r)})})}),t}function h(e){let t=d(e);return e.map(e=>{let{loaders:r,resource:n}=e;return{path:n.path,layer:n.layer,loaders:r.map(e=>({key:e.path,loader:g(e.loader),path:e.path,errors:e.errors,costs:a(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=d(t);return{...r,loaders:r.loaders.map(e=>{let{input:t,result:r,...s}=e;return{...s,loader:g(e.loader),costs:a(e,n)}})}}function p(e,t){let r=t.filter(t=>{let{path:r}=t.resource;return r.startsWith(e)}),n=[],s=new Map;return r.forEach(e=>{e.loaders.forEach(e=>{let t=s.get(e.loader);return t?s.set(e.loader,{files:t.files+1,path:e.path}):s.set(e.loader,{files:1,path:e.path}),n.push({loader:e.loader,startAt:e.startAt,endAt:e.endAt,pid:e.pid})})}),Array.from(s).map(e=>{let t=l(t=>t.loader===e[0],n);return{loader:e[0],files:e[1].files,path:e[1].path,costs:t}})}function m(e,t){let r,n=t||s.cwd();return(r=new Set,e.forEach(e=>{if(e.resource.path.startsWith(n)){let t=e.resource.path.split(n).slice(1).join("/").split("/");if(t.length>=2){let e=t.slice(0,2).join("/");r.add(`${n}/${e}`)}}else{let t=e.resource.path.split("/"),n=t.slice(0,t.length-1).join("/");r.add(n)}}),Array.from(r)).map(t=>{let r=p(t,e);return{directory:t,stats:r}})}function f(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 x(e,t,r,n,s){for(let i=0;i<n.length;i++){let l=n[i];if(l.resource.path===e)for(let e=0;e<l.loaders.length;e++){let n=l.loaders[e];if(g(n.loader)===t&&n.loaderIndex===r&&(void 0===s||n.isPitch===s))return{input:n.input||"",output:n.result||""}}}return{input:"",output:""}}let g=e=>{let t=e.includes("node_modules")?e.split("node_modules"):null;return t?t[t.length-1]:e};r.d(t,{Ah:()=>f,Gk:()=>o,Wx:()=>a,Yf:()=>u,Ym:()=>h,bO:()=>p,eJ:()=>x,pU:()=>l,q6:()=>c,qJ:()=>m,xr:()=>i})},73555(e,t,r){var n=r(36533),s=r(43803),i=r(86704),l=r(46068),a=r(52497);async function*o(e,t){let r="",s=0,i=new Map,l=()=>{for(;s<e.length&&i.size<3;){let r=s++;i.set(r,Promise.resolve().then(()=>t(e[r])).then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e})))}};l();for(let t=0;t<e.length;t++){let e=await i.get(t);if(i.delete(t),"rejected"===e.status)throw e.reason;l();let s=r+e.value,a=s.length-s.length%4;a>0&&(yield n.Buffer.from(s.slice(0,a),"base64")),r=s.slice(a)}if(1===r.length)throw Error("Invalid Base64 shard data: truncated final quartet.");r.length>0&&(yield n.Buffer.from(r,"base64"))}function d(e){return!!(Array.isArray(e)&&e.length>0&&e.every(e=>(0,a.Km)(e)))}async function c(e,t){if(0===e.length)return[];let r=new i.I("utf8"),a=[];await new Promise((i,d)=>{let c,h;(0,s.pipeline)((c=o(e,t)[Symbol.asyncIterator](),h=!1,new s.Readable({read(){h||(h=!0,c.next().then(e=>{let{value:t,done:r}=e;h=!1,this.push(r?null:t)},e=>{h=!1,this.destroy(e)}))}})),(0,l.createInflate)(),new s.Writable({write(e,t,s){a.push(r.write(n.Buffer.from(e))),s()}}),e=>{e?d(e):i()})});let d=r.end();return d&&a.push(d),JSON.parse(a.join(""))}r.d(t,{pJ:()=>c,tg:()=>d})},16664(){let e=/[a-zA-Z0-9]+(?:[-|_|.]+[a-zA-Z0-9]+)*/;RegExp(`(?:${/(?:node_modules|~)(?:\/\.pnpm)?/.source}/)(?:(?:@${e.source}[/|+])?(?:${e.source}\\+)*(?:${e.source})(?:${/@[\w|\-|_|.]+/.source})?)(?:_(?:@${e.source}[/|+])?(?:${e.source})(?:@${e.source})?)*/`,"g")},47776(e,t,r){var n=r(16397);function s(e){return!!e.result}function i(e){return e.map(e=>({issuerPath:e.issuerPath}))}function l(e,t,r,i){let l=r.find(t=>t.path===e),a=t.filter(t=>t.issuerPath===e),o=l&&i&&i[l.id]?i[l.id].source:"",d=a.reduce((e,t)=>t.request&&s(t)?e.replace(RegExp(`["']${t.request}["']`),`"${t.result}"`):e,o);return{filepath:e,before:o,after:d,resolvers:a.map(e=>{let r,s;return{...e,costs:(r=t.filter(t=>t!==e&&t.pid===e.pid&&t.startAt>=e.startAt&&t.endAt<=e.endAt),s=e.endAt-e.startAt,r.length&&(0,n.l7)(r.map(t=>[Math.max(t.startAt,e.startAt),Math.min(t.endAt,e.endAt)])).forEach(e=>{let t=e[1]-e[0];s-=t}),s)}})}}r.d(t,{Iu:()=>s,NB:()=>i,Vj:()=>l})},83920(e,t,r){var n;function s(e){if(!Array.isArray(e)||!e[0])return{isRspack:!1,hasSourceMap:!1,isLynx:!1,isEvalSourceMap:!1};let t=e[0].config,r=t?.name==="lynx",n="rspack"===e[0].name&&!r,s=t?.devtool,i="string"==typeof s&&/eval/i.test(s),l=t?.plugins,a=l?.filter(e=>e&&e.includes("SourceMapDevToolPlugin"));return{isRspack:n,hasSourceMap:"string"==typeof s&&s.includes("source-map")&&!i||!!a?.length,isLynx:r,isEvalSourceMap:i}}(n={}).Bootstrap="bootstrap->rspack:beforeCompile",n.Compile="rspack:beforeCompile->afterCompile",n.Done="rspack:afterCompile->done",n.Minify="rspack:minify(rspack:optimizeChunkAssets)",r.d(t,{fM:()=>s})},34275(e,t,r){function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return 0===t?Math.floor(e):+e.toFixed(t)}function s(e,t){return"m"===t?e>1?"mins":"min":e>1?"hours":"hour"}function i(e){if((e=Number(e))>=1e3){let t=e/1e3;if(t>=60){let e=t/60;if(e>=60){let t=n(e/60,0),r=n(e%60,1),i=s(t,"h");return r>0?`${t}${i} ${r}${s(r,"m")}`:`${t}${i}`}let r=s(e=n(e,0),"m"),i=n(t%60,0);return i>0?`${e}${r} ${i}s`:`${e}${r}`}return`${n(t,1)}s`}if(e>=10)return`${+n(e,0)}ms`;if(e>=1)return`${+n(e,1)}ms`;let t=+n(e,2);return 0===t&&(t=+n(e,3)),`${t}ms`}r(85409),r(85409),r.d(t,{a4:()=>i,l_:()=>s,ox:()=>n})},52497(e,t,r){var n=r(13078);let{isAbsolute:s}=(r.n(n))(),i=/^(?:[a-zA-Z]:[\\/]|\\\\)/;function l(e){return/^https?:\/\//.test(e)}function a(e){var t;return!!("string"==typeof e&&(l(e)||s(t=e)||i.test(t)))}r.d(t,{Km:()=>a,gU:()=>l})},11223(e,t,r){var n=r(87826);let s=1;class i{static kind=n.hp.yV;static init(){s=1}id;request;module;kind;typeString;statements=[];_originDependency;meta={exportsType:"default-with-named"};constructor(e,t,r,n,i){this.id=s++,this.request=e,this.module=t,this._originDependency=r,this.kind=n,this.statements=i??[]}get resolvedRequest(){return this.dependency.path}get dependency(){return this.originDependency.rootModule??this.originDependency}get originDependency(){return this._originDependency}get kindString(){return n.hp.yV[this.kind]}get resolveConcatenationModule(){return this.dependency.kind===n.hp.JT.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,...void 0!==this.typeString&&{typeString:this.typeString},module:this.module.id,dependency:this.dependency.id,originDependency:this.originDependency.id,statements:this.statements.map(e=>e.toData())}}setId(e){this.id=e}}r.d(t,{O:()=>i})},22464(e,t,r){var n=r(87826),s=r(11223),i=r(66714),l=r(87261),a=r(61726);class o{static init(){i.n.init(),s.O.init(),a.To.init()}static fromData(e){let t=new o,r=e=>new l.W(t.getModuleById(e.module),e.position);for(let r of e.modules??[]){let e=new i.n(String(r.id),r.path,r.isEntry,r.kind,r.renderId,r.layer);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 s=t.getModuleById(n.id);for(let i of n.dependencies){let n=(e.dependencies??[]).find(e=>e.id===i),l=n&&t.getModuleById(n.originDependency);if(!n||!l){console.warn(`The connection data ID is empty: ${i}`);continue}let a=s.addDependency(n.request,l,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}s.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}s.addConcatenationModule(r)}}for(let n of e.exports??[]){let e=new a.Du(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:${n.module}`);continue}let s=new a.rT(n.name,e,n.usedInfo,r(n.identifier)),i=t._exportIdMap.get(n.exported??-1);i&&s.setExportInfo(i),s.id=n.id,t.addVariable(s)}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:${n.module}`);continue}let s=new a.be(n.name,e,r(n.identifier),n.originName);for(let e of(s.isNameSpace=n.isNameSpace,s.id=n.id,n.exports??[])){let r=t._exportIdMap.get(e);r&&r.addSideEffect(s)}if(n.variable){let e=t._varIdMap.get(n.variable);e&&(s._variable=e)}t.addSideEffect(s)}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.To(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 o.init(),t}_dependenciesIdMap=new Map;_connectionsOnlyImports=[];_moduleIdentifierMap=new Map;_moduleIdMap=new Map;_moduleGraphModules=new Map;_exportIdMap=new Map;_sideEffectIdMap=new Map;_varIdMap=new Map;_layers=new Map;clear(){this._dependenciesIdMap=new Map,this._moduleIdentifierMap=new Map,this._moduleIdMap=new Map,this._moduleGraphModules=new Map,this._exportIdMap=new Map,this._sideEffectIdMap=new Map,this._varIdMap=new Map,this._layers=new Map}size(){return this._moduleIdMap.size}fromInstance(e){this.setModules(e.getModules()),this.setDependencies(e.getDependencies()),this.setConnectionsOnlyImports(e.getConnectionsOnlyImports()),e instanceof o&&(this._moduleGraphModules=new Map(e._moduleGraphModules),this._exportIdMap=new Map(e._exportIdMap),this._sideEffectIdMap=new Map(e._sideEffectIdMap),this._varIdMap=new Map(e._varIdMap),this._layers=new Map(e._layers))}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._moduleIdentifierMap.values())}getDependencies(){return Array.from(this._dependenciesIdMap.values())}getEntryModules(){return this.getModules().filter(e=>e.isEntry&&e.kind!==n.hp.JT.Concatenation)}getModuleById(e){return this._moduleIdMap.get(e)}getDependencyById(e){return this._dependenciesIdMap.get(e)}getModuleByIdentifier(e){return this._moduleIdentifierMap.get(e)}getModuleByFile(e,t){return this.getModules().filter(r=>r.path===e&&(void 0===t||r.layer===t))}addModule(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(let e of t)!this._moduleIdMap.has(e.id)&&(this._moduleIdentifierMap.set(e.identifier,e),this._moduleIdMap.set(e.id,e),e.layer&&this.addLayer(e.layer))}addDependency(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(let e of t)this._dependenciesIdMap.has(e.id)||(this._dependenciesIdMap.set(e.id,e),this.addModule(e.module),this.addModule(e.dependency))}removeModule(e){for(let t of this.getDependencies().filter(t=>t.module===e||t.originDependency===e||t.dependency===e))this.removeDependency(t);this._moduleGraphModules.delete(e),this._moduleIdMap.delete(e.id),this._moduleIdentifierMap.delete(e.identifier)}removeDependency(e){for(let t of(this._dependenciesIdMap.delete(e.id),e.module.removeDependency(e),new Set([e.originDependency,e.dependency])))e.module.getDependencies().some(e=>e.originDependency===t||e.dependency===t)||t.removeImported(e.module)}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)}addLayer(e){this._layers.get(e)||this._layers.set(e,1)}getLayers(){return this._layers}toData(e){let t=!!(e?.briefOptions?.type&&e.briefOptions.type.length);return{dependencies:this.getDependencies().map(e=>e.toData()),modules:this.getModules().map(r=>r.toData(e?.contextPath,t)),moduleGraphModules:t?[]:Array.from(this._moduleGraphModules.values()).map(e=>e.toData()),exports:t?[]:Array.from(this._exportIdMap.values()).map(e=>e.toData()),sideEffects:t?[]:Array.from(this._sideEffectIdMap.values()).map(e=>e.toData()),variables:t?[]:Array.from(this._varIdMap.values()).map(e=>e.toData()),layers:Array.from(this._layers.keys())}}toTreeShakingData(){let e={};for(let t of this.getModules()){let r=t.getSideEffectCodes();r.length>0&&(e[r[0].moduleId]=r)}return{sideEffectCodes:e}}toCodeData(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.hp.w5.Normal,t={};return this.getModules().forEach(r=>{t[r.id]=r.getSource(e)}),t}setModules(e){this._moduleIdMap=new Map(e.map(e=>[e.id,e])),this._moduleIdentifierMap=new Map(e.map(e=>[e.identifier,e])),this._layers=new Map(e.filter(e=>e.layer).map(e=>[e.layer,1]))}setDependencies(e){this._dependenciesIdMap=new Map(e.map(e=>[e.id,e]))}setConnectionsOnlyImports(e){this._connectionsOnlyImports=e}getConnectionsOnlyImports(){return this._connectionsOnlyImports}}r.d(t,{d:()=>o})},66714(e,t,r){var n=r(87826),s=r(62343),i=r(13078),l=r.n(i),a=r(11223),o=r(87261),d=r(54005);let c=1;class h{static kind=n.hp.JT;issuerPath=[];static init(){c=1}id;renderId;bailoutReason=[];sideEffectLocations=[];sideEffectCodes=[];identifier;path;isEntry;kind;layer;source={source:"",transformed:"",parsedSource:""};size={sourceSize:0,transformedSize:0,parsedSize:0,gzipSize:0};sourceMap;program;chunks=[];dependencies=[];imported=[];modules=[];concatenationModules=[];_isPreferSource;meta={hasSetEsModuleStatement:!1,strictHarmonyModule:!1};constructor(e,t,r=!1,s=n.hp.JT.Normal,i,l=""){this.id=c++,this.identifier=e,this.path=t,this.isEntry=r,this.kind=s,this.renderId=i,this.layer=l}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}addBailoutReason(e){this.bailoutReason.push(e)}getBailoutReason(){return this.bailoutReason}addSideEffectLocation(e){this.sideEffectLocations.push(e)}getSideEffectLocations(){return this.sideEffectLocations.slice()}addSideEffectCode(e){this.sideEffectCodes.push(e)}getSideEffectCodes(){return this.sideEffectCodes.slice()}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 s=new a.O(e,this,t,r,n);if(this.dependencies.every(e=>!e.isSameWithoutStatements(s)))return this.dependencies.push(s),t.addImported(this),t.rootModule&&t.rootModule.addImported(this),s}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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.hp.w5.Normal;return e===n.hp.w5.NoCode?{source:"",transformed:"",parsedSource:""}:e===n.hp.w5.NoSourceAndAssets||e===n.hp.w5.NoSource?{source:"",transformed:"",parsedSource:this.isPreferSource?"":this.source.parsedSource}:e===n.hp.w5.All?{source:this.source.source,transformed:this.source.transformed,parsedSource:this.isPreferSource?"":this.source.parsedSource}:{source:this.source.source,transformed:"",parsedSource:this.isPreferSource?"":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,"brotliSize"in e&&(void 0===e.brotliSize?delete t.brotliSize:t.brotliSize=e.brotliSize),"number"==typeof e.gzipSize&&(t.gzipSize=e.gzipSize)}getSize(){return{...this.size}}getStatement(e){return new o.W(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,s.Et)(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,s.Et)(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)}addIssuerPath(e){this.issuerPath?.length||(this.issuerPath=e)}getIssuerPath(){return this.issuerPath}getConcatenationModules(){return this.concatenationModules.slice()}toData(e,t){let{isPreferSource:r}=this,n=(0,d.ug)(this.identifier),s={id:this.id,renderId:this.renderId,identifier:e&&n.indexOf(".")>0?l().relative(e,n):this.identifier,path:this.path,isPreferSource:r,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,...this.layer?{layer:this.layer}:{},issuerPath:t?void 0:this.issuerPath?.filter(e=>e.moduleId).map(e=>e.moduleId)||[],bailoutReason:this.bailoutReason,...this.sideEffectLocations.length>0?{sideEffectLocations:this.sideEffectLocations}:{}};return(this.meta.hasSetEsModuleStatement||this.meta.strictHarmonyModule)&&(s.meta={},this.meta.hasSetEsModuleStatement&&(s.meta.hasSetEsModuleStatement=!0),this.meta.strictHarmonyModule&&(s.meta.strictHarmonyModule=!0)),this.isEntry&&(s.isEntry=this.isEntry),this.modules.length>0&&(s.modules=this.modules.map(e=>e.id)),this.rootModule&&(s.rootModule=this.rootModule.id),this.concatenationModules.length>0&&(s.concatenationModules=this.concatenationModules.map(e=>e.id)),s}setId(e){this.id=e}setRenderId(e){this.renderId=e}setChunks(e){this.chunks=e}setDependencies(e){this.dependencies=e}setImported(e){this.imported=e}setModules(e){this.modules=e}setConcatenationModules(e){this.concatenationModules=e}}r.d(t,{n:()=>h})},87261(e,t,r){var n=r(54005);class s{static getDefaultStatement(e){let t={line:1,column:0},r={start:{...t},end:{...t}};return new s(e,{source:{...r},transformed:{...r}})}position;module;constructor(e,t){this.module=e,this.position=t}isSame(e){return this.module.id===e.module.id&&(0,n.Ut)(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}}}r.d(t,{W:()=>s})},61726(e,t,r){r.d(t,{Du:()=>s,To:()=>d,be:()=>l,rT:()=>o});let n=1;class s{static init(){n=1}id=n++;name;identifier;from;_variable;_sideEffects=[];constructor(e,t,r){this.name=e,this.identifier=t,this._variable=r}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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]: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}}let i=1;class l{static init(){i=1}static NamespaceSymbol=Symbol("namespace");id=i++;name;originName;module;identifier;isNameSpace;fromDependency;_exports=[];_variable;constructor(e,t,r,n,s){this.name=e,this.module=t,this.identifier=r,n&&(this.fromDependency=this.module.getDependencyByRequest(n)),s===l.NamespaceSymbol?this.isNameSpace=!0:(this.isNameSpace=!1,this.originName=s)}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}}let a=1;class o{static init(){a=1}id=a++;name;module;usedInfo;identifier;_exported;constructor(e,t,r,n){this.name=e,this.module=t,this.usedInfo=r,this.identifier=n}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}}class d{static init(){s.init(),l.init(),o.init()}module;exports=[];sideEffects=[];variables=[];_dynamic;_graph;constructor(e,t,r){this.module=e,this._graph=t,"boolean"==typeof this._dynamic&&(this._dynamic=r)}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)}}}},54005(e,t,r){var n=r(62343);function s(e,t){return e.line===t.line&&e.column===t.column}function i(e,t){return!!s(e.start,t.start)&&((0,n.gD)(e.end)||(0,n.gD)(t.end)?(0,n.b0)(e.end)&&(0,n.b0)(t.end):s(e.end,t.end))}let l=/!/,a=/\s\+\s\d*\smodules$/,o=/^css\s.*node_modules(?!\/)/;function d(e){if(!e)return"";if(l.test(e)){let t=(0,n.HV)(e.split(l));if(t?.trim())return t}return a.test(e)?e.replace(a,""):o.test(e)?e.replace(o,""):e}r.d(t,{Ut:()=>i,ug:()=>d})},72229(e,t,r){r(71638),r(8963).hp},98147(e,t,r){r(57896)},87826(e,t,r){r.d(t,{Kj:()=>b,YM:()=>o,_8:()=>i,jO:()=>v,hp:()=>a});var n,s,i={};r.r(i),r.d(i,{V:()=>u,z:()=>h});var l={};r.r(l),r.d(l,{n:()=>y,k:()=>j});var a={};r.r(a),r.d(a,{yV:()=>g.yV,JT:()=>g.JT,uT:()=>l,w5:()=>g.w5});var o={};r.r(o),r.d(o,{lk:()=>w,AU:()=>C,Fe:()=>S,q$:()=>k,Wm:()=>A,Jt:()=>E,zz:()=>M,Fv:()=>N,tQ:()=>T});var d,c,h=((d={}).Overall="Overall",d.Loaders="Compile.Loaders",d.ModuleResolve="Compile.ModuleResolve",d.Plugins="Compile.Plugins",d.BundleSize="Bundle.BundleSize",d.ModuleGraph="Bundle.ModuleGraph",d.TreeShaking="Bundle.TreeShaking",d),u=((c={}).WindowPropertyForManifestUrl="__DEVTOOLS_MANIFEST_URL__",c);(p={})[p.Ignore=0]="Ignore",p[p.Warn=1]="Warn",p[p.Error=2]="Error",(m={})[m.Silent=0]="Silent",m[m.Error=1]="Error",m[m.Warning=2]="Warning",m[m.Info=3]="Info",m[m.Debug=4]="Debug",m[m.Verbose=5]="Verbose";var p,m,f,x,g=r(4349),y=((f={}).ApplyErrorFix="/api/apply/error/fix",f.Env="/api/env",f.EntryHtml="/index.html",f.Manifest="/api/manifest.json",f.LoadDataByKey="/api/data/key",f.SendAPIDataToClient="/api/socket/send",f.GetProjectInfo="/api/project/info",f.GetClientRoutes="/api/routes",f.ReportLoader="/api/loader/report",f.GetLoaderNames="/api/loader/names",f.GetLoaderChartData="/api/loader/chart/data",f.GetLoaderFileTree="/api/loader/filetree",f.GetLoaderFileDetails="/api/loader/file",f.GetLoaderFolderStatistics="/api/loader/folder/statics",f.GetLoaderFileFirstInput="/api/loader/input",f.GetLoaderFileInputAndOutput="/api/loader/inputandoutput",f.GetDirectoriesLoaders="/api/loader/directories",f.ReportSourceMap="/api/sourcemap/report",f.GetResolverFileTree="/api/resolver/filetree",f.GetResolverFileDetails="/api/resolver/file",f.GetPluginSummary="/api/plugins/summary",f.GetPluginData="/api/plugins/data",f.GetSummaryBundles="/api/graph/bundles/summary",f.GetChunkGraph="/api/graph/chunks/graph",f.GetAssetsSummary="/api/graph/assets/summary",f.GetAssetDetails="/api/graph/asset/details",f.GetChunksByModuleId="/api/graph/chunk/module",f.GetModuleDetails="/api/graph/module/details",f.GetModulesByModuleIds="/api/graph/modules/ids",f.GetEntryPoints="/api/graph/entrypoints",f.GetModuleCodeByModuleId="/api/graph/module/code",f.GetModuleCodeByModuleIds="/api/graph/module/codes",f.GetAllModuleGraph="/api/graph/module/all",f.GetAllChunkGraph="/api/graph/chunk/all",f.GetLayers="/api/graph/layers",f.GetSearchModules="/api/search/modules",f.GetSearchModuleInChunk="/api/search/chunk/modules",f.GetAllModuleGraphFilter="/api/graph/module/filter",f.GetModuleByName="/api/graph/module/name",f.GetModuleIssuerPath="/api/graph/module/issuer_path",f.GetPackageInfo="/api/package/info",f.GetPackageDependency="/api/package/dependency",f.GetPackageRelationAlertDetails="/api/alerts/details/package/relation",f.GetOverlayAlerts="/api/alerts/overlay",f.GetBundleAlerts="/api/alerts/bundle",f.BundleDiffManifest="/api/bundle_diff/manifest.json",f.GetBundleDiffSummary="/api/bundle_diff/summary",f.GetChunkGraphAI="/api/graph/chunks/graph/ai",f.GetChunkByIdAI="/api/graph/chunk/id/ai",f),j=((x={}).GetCompileProgress="/api/progress",x);(n={})[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",(s={}).brief="brief",s.lite="lite",s.normal="normal";var v=r(57942),b=r(11339);let A=[".js",".bundle"],w=".css",S=".html",k=[".png",".jpg",".svg",".webp",".jpeg",".gif",".bmp"],M=[".mp3",".mp4",".avi",".wav",".flv",".mov",".mpg",".mpeg"],C=[".ttf",".fnt",".fon",".otf",".woff",".woff2"],E=[".js.map",".css.map",".ts.map",".LICENSE.txt"],N="",T="__RSDOCTOR__"},61982(e,t,r){let n="E1001",s={code:n,title:"Duplicate Packages",type:"markdown",category:"bundle",description:`
13
- #### Description
14
-
15
- There is a same name package which is bundled in multiple versions in your application.
16
-
17
- This negatively impacts the bundle size of your application.
18
-
19
- #### General Solution
20
-
21
- Add an entry in \`resolve.alias\` to configure Rspack to route any package references to a single specified path.
22
-
23
- For example, if \`lodash\` is duplicated in your bundle, the following configuration would make all Lodash imports refer to the \`lodash\` instance found at \`./node_modules/lodash\`:
24
-
25
- \`\`\`js
26
- {
27
- alias: {
28
- lodash: path.resolve(__dirname, 'node_modules/lodash')
29
- }
30
- }
31
- \`\`\`
32
- `};r.d(t,{a:()=>n,i:()=>s})},65467(e,t,r){let n="E1002",s={code:n,title:"Cross Chunks Packages",type:"markdown",category:"bundle",description:`
33
- #### Description
34
-
35
- There is a package with the same version that is duplicated across different chunks in your application. This redundancy increases the overall bundle size, which is not optimal for performance.
36
-
37
- #### General Solution
38
-
39
- To address this issue, you can use Rspack's **SplitChunksPlugin** to extract common dependencies into a separate chunk. This ensures that the same package is not duplicated across multiple chunks, thereby reducing the bundle size.
40
-
41
- For example, if **lodash** is being duplicated across different chunks, you can configure the **optimization.splitChunks** option in your Rspack configuration to extract **lodash** into a separate chunk:
42
-
43
- \`\`\`
44
- module.exports = {
45
- optimization: {
46
- splitChunks: {
47
- cacheGroups: {
48
- commons: {
49
- test: /[\\/]node_modules[\\/]lodash[\\/]/,
50
- name: 'lodash',
51
- chunks: 'all',
52
- },
53
- },
54
- },
55
- },
56
- };
57
- \`\`\`
58
-
59
- This configuration will automatically split out common dependencies (including those from \`node_modules\`) into separate chunks, ensuring that no package is duplicated across different chunks.
60
- `};r.d(t,{a:()=>n,i:()=>s})},17524(e,t,r){let n="E1003",s={code:n,title:"Loader Performance Optimization",type:"markdown",category:"compile",description:`
61
- #### Description
62
-
63
- Usually the slow compile of most projects is due to the slow execution of the loaders.
64
-
65
- And the loaders always pre-process many unnecessary files, such as \`node_modules files\` and \`already compiled files\`.
66
-
67
- #### General Solution
68
-
69
- Set \`exclude\` to the \`module.rules\` of Rspack configuration for target loader.
70
-
71
- For example, if \`node_modules/lodash\` is processed by the \`babel-loader\` that make the compile slowly:
72
-
73
- \`\`\`
74
- {
75
- module: {
76
- rules: [
77
- {
78
- test: /\\.js$/,
79
- use: 'babel-loader',
80
- exclude: [
81
- /node_modules\\/lodash/
82
- ]
83
- }
84
- ]
85
- }
86
- }
87
- \`\`\`
88
- `};r.d(t,{a:()=>n,i:()=>s})},45121(e,t,r){let n="E1004",s={code:n,title:"ECMA Version Check",type:"markdown",category:"bundle",description:`
89
- #### Description
90
-
91
- Detect if there is a newer version of ECMA syntax in the js bundle file
92
- `};r.d(t,{a:()=>n,i:()=>s})},37842(e,t,r){let n="E1005",s={code:n,title:"Default Import Check",type:"markdown",category:"compile",description:`
93
- #### Description
94
-
95
- Usually the bundler will automatically compatible different modules that has different types, but in a special case, the operation of compatibility will fail.
96
- 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 = \`.
97
-
98
- #### General Solution
99
-
100
- 1. for cjs module, write a \`exports.default = \` statement for default export.
101
- 2. use \`Namespace Import\` for import the cjs module.
102
-
103
- For example, for the package \`htmlparser2@7.2.0\`:
104
-
105
- \`\`\`ts
106
- // you should use this
107
- import * as Parser from 'htmlparser2';
108
-
109
- // can not use this
110
- import Parser from 'htmlparser2';
111
- \`\`\`
112
- `};r.d(t,{a:()=>n,i:()=>s})},44639(e,t,r){let n="E1006",s={code:n,title:"Module Mixed Chunks",type:"markdown",category:"bundle",description:"\n#### Description\n\nWhen a module is included in both **initial chunks** and **async chunks**, the same module code is bundled into multiple chunks, increasing output size and potentially affecting first-screen load and cache efficiency.\n\n- **Initial chunks**: Chunks loaded with the main entry (e.g. entry points, synchronous `import` in the main bundle).\n- **Async chunks**: Chunks loaded on demand via dynamic `import()` or similar.\n\nIn the **Module Mixed Chunks** tab of Bundle Alerts, each entry shows the module path, **Initial Chunks** list, and **Async Chunks** list so you can locate duplicated modules.\n\n#### Common Causes\n\n- **Same module referenced in two ways**: The module is both synchronously imported in the main bundle or entry and dynamically `import()`ed elsewhere, so the bundler emits it in both initial and async chunks.\n- **A file is both an entry and an async chunk**: e.g. a utility module is configured as an entry and also `import()`ed in app code, so it appears in the entry's initial chunk and in a dynamically loaded async chunk.\n- **splitChunks overlapping with entry**: A path is split into an async chunk via `splitChunks`, but that path is also an entry or a main-bundle dependency, leading to mixed chunk types.\n\n#### General Solution\n\n1. **Use a single import style**: Prefer one way to reference a module—either all synchronous imports (initial) or all dynamic `import()` (async). Avoid the same file being both synchronously imported in the main bundle and dynamically imported elsewhere.\n2. **Review entry vs dynamic loading**: If a file is both an entry and part of an async chunk, remove one of those usages or extract it into a single shared chunk via build config so both initial and async chunks reference it instead of duplicating it.\n3. **Adjust splitChunks**: Check rules for that module path in `optimization.splitChunks` (Rspack) or `splitChunks` (Rsbuild), and avoid the same module being split into both initial and async chunks. Use `chunks: 'async'` or `chunks: 'initial'` where appropriate, or control which chunk type it goes into via `cacheGroups` and `test` / `chunks`.\n4. **Trace dependencies**: From the reported module path and chunk list, search the codebase for references to that module, distinguish sync vs dynamic imports, then converge to a single chunk type or extract a common chunk.\n"};r.d(t,{a:()=>n,i:()=>s})},10024(e,t,r){let n="E1007",s={code:n,title:"Tree Shaking Side Effects Only",type:"markdown",category:"bundle",description:"\n#### Description\n\nThis rule detects modules that are pulled in and bundled solely due to side effects. This is often caused by unintended tree-shaking failures (e.g. missing or incorrect `\"sideEffects\"` field in `package.json`, or non-tree-shakeable import patterns), resulting in the entire module being bundled even though none of its exports are used.\n\n#### Common Causes\n\n- The package's `package.json` is missing `\"sideEffects\": false` (or incorrectly set to `true`), preventing the bundler from pruning unused exports.\n- An import statement like `import 'some-module'` or `import './styles.css'` is being treated as a side-effect-only import, but the intended use was to consume exports.\n- Barrel files (index files that re-export many things) cause the whole module to be kept alive when only a side-effect import is present.\n\n#### General Solution\n\n1. **Audit import statements**: Make sure you are actually importing and using named exports from this module. Replace bare side-effect imports with explicit named imports when you intend to use the module's exports.\n2. **Set `\"sideEffects\"` correctly**: In the module's `package.json`, set `\"sideEffects\": false` if the module has no global side effects, so the bundler can safely tree-shake unused exports.\n3. **Avoid unintended side-effect imports**: Remove or convert `import 'module'` patterns to explicit `import { foo } from 'module'` patterns where the exports are needed.\n"};r.d(t,{a:()=>n,i:()=>s})},89205(e,t,r){let n="E1008",s={code:n,title:"CJS Require Cannot Tree-Shake",type:"markdown",category:"bundle",description:"\n#### Description\n\nThis rule detects `require()` calls that use the **CJS Require** dependency type, which prevents tree-shaking of the required module. Unlike `require('module').property` (CJS Full Require), a bare `require('module')` call forces the entire module to be bundled because the bundler cannot statically determine which exports are used.\n\n#### Common Causes\n\n- Using `const mod = require('some-module')` instead of destructuring at the require site.\n- Dynamically accessing properties of the required module at runtime rather than statically.\n\n#### General Solution\n\n1. **Use destructured require**: Replace `const mod = require('A')` with `const { foo } = require('A')` (CJS Full Require) so the bundler can track which exports are used.\n2. **Migrate to ESM**: Use `import { foo } from 'A'` to enable full tree-shaking support.\n3. **Use require with property access**: Replace `const mod = require('A'); mod.foo()` with `const foo = require('A').foo` to allow partial tree-shaking.\n"};r.d(t,{a:()=>n,i:()=>s})},77366(e,t,r){let n="E1009",s={code:n,title:"ESM Import Resolved to CJS",type:"markdown",category:"bundle",description:'\n#### Description\n\nThis rule detects cases where a package provides both **ESM** and **CJS** formats (via the `module` field or `exports["."]["import"]` in `package.json`), but the bundler resolved the ESM `import` statement to the **CJS** entry instead.\n\nThis prevents tree-shaking of the package, leading to larger bundle sizes than necessary.\n\n#### Common Causes\n\n- The bundler\'s `resolve.mainFields` does not include `module`, so it falls back to `main` (CJS).\n- The `resolve.conditionNames` does not include `import`, so `exports` conditions are resolved as `require`.\n- The package uses `exports` field but the bundler version does not support conditional exports.\n\n#### General Solution\n\n1. **Add `module` to `resolve.mainFields`**: Ensure your bundler config includes `"module"` before `"main"`.\n2. **Add `import` to `resolve.conditionNames`**: For packages using the `exports` field, ensure the `import` condition is listed.\n3. **Check bundler version**: Older Rspack versions may not support `exports` conditional resolution. Upgrade if necessary.\n'};r.d(t,{a:()=>n,i:()=>s})},13259(e,t,r){var n,s,i=((n={}).Extend="EXTEND",n.Overlay="OVERLAY",n),l=((s={}).Compile="compile",s.Bundle="bundle",s.EMO="emo",s);r.d(t,{j:()=>i,y:()=>l})},50902(){},3710(){}}]);