@rsdoctor/client 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html><head><title>Rsdoctor</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="./resource/js/ant-design-0.c067cf25.js"></script><script defer src="./resource/js/ant-design-1.32845f6f.js"></script><script defer src="./resource/js/ant-design-2.748849f0.js"></script><script defer src="./resource/js/ant-design-3.e823b890.js"></script><script defer src="./resource/js/ant-design-4.fc287b65.js"></script><script defer src="./resource/js/rc-0.93ad3cb8.js"></script><script defer src="./resource/js/rc-1.a0853e1e.js"></script><script defer src="./resource/js/ant-design-icons.f6718859.js"></script><script defer src="./resource/js/vender.0a509a76.js"></script><script defer src="./resource/js/react.3416b75d.js"></script><script defer src="./resource/js/304.aa917bbe.js"></script><script defer src="./resource/js/index.
|
|
1
|
+
<!doctype html><html><head><title>Rsdoctor</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="./resource/js/ant-design-0.c067cf25.js"></script><script defer src="./resource/js/ant-design-1.32845f6f.js"></script><script defer src="./resource/js/ant-design-2.748849f0.js"></script><script defer src="./resource/js/ant-design-3.e823b890.js"></script><script defer src="./resource/js/ant-design-4.fc287b65.js"></script><script defer src="./resource/js/rc-0.93ad3cb8.js"></script><script defer src="./resource/js/rc-1.a0853e1e.js"></script><script defer src="./resource/js/ant-design-icons.f6718859.js"></script><script defer src="./resource/js/vender.0a509a76.js"></script><script defer src="./resource/js/react.3416b75d.js"></script><script defer src="./resource/js/304.aa917bbe.js"></script><script defer src="./resource/js/index.dd8eb261.js"></script><link href="./resource/css/index.fc1d413f.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.rc-tree{border:1px solid #0000;margin:0}.rc-tree .rc-tree-treenode{white-space:nowrap;outline:0;align-items:center;margin:0;padding:0;line-height:24px;list-style:none;display:flex}.rc-tree .rc-tree-treenode:hover{background:#0000000a}.rc-tree .rc-tree-treenode .rc-tree-node-content-wrapper{color:#000000d9;box-sizing:border-box;vertical-align:top;cursor:pointer;margin:0;padding:0 4px;font-size:14px;font-weight:400;text-decoration:none;display:inline-block;position:relative}.rc-tree .rc-tree-treenode-child-tree{display:none}.rc-tree .rc-tree-treenode-child-tree-open{display:block}.rc-tree .rc-tree-treenode-treenode-disabled>span:not(.rc-tree-switcher),.rc-tree .rc-tree-treenode>a,.rc-tree .rc-tree-treenode>a span{color:#767676;cursor:not-allowed}.rc-tree .rc-tree-treenode-treenode-selected{background:#0591ff4d;border-radius:4px}.rc-tree .rc-tree-treenode-title{display:inline-block}.rc-tree .rc-tree-treenode-indent{vertical-align:bottom;height:0;display:inline-block}.rc-tree .rc-tree-treenode-indent-unit{width:14px;display:inline-block}.file-icon{margin-left:8px;padding:2px 0;display:inline-block}.container-iQTvf7{justify-content:space-between;align-items:center;padding:10px 20px;display:flex}.container-iQTvf7 .box-yCgd0f{width:290px;display:flex}.container-iQTvf7 .title-OR484p{color:#00000073;margin-bottom:5px;font-size:12px;font-weight:400;line-height:16px}.container-iQTvf7 .content-iOwxYc{margin-left:5px;font-size:14px;font-weight:400;line-height:16px}.container-KSV5DZ{white-space:nowrap;background:#f6f8fa;border-radius:8px;justify-content:space-between;align-items:center;width:100%;margin-right:10px;padding:8px 20px;display:flex}.container-KSV5DZ .content-BsjkSU{flex:1}.container-KSV5DZ .content-BsjkSU .title-jUwqD5{color:#000000a6;font-size:12px;font-weight:400;line-height:20px}.container-KSV5DZ .content-BsjkSU .description-ArkOg4{font-size:24px;font-weight:500;line-height:32px}.dot-NXAU38{flex-direction:column;justify-content:center;align-items:center;display:flex}.filePath-UF3inH{border:1px solid #eaedf1;border-radius:10px;justify-content:space-between;align-items:center;padding:5px 10px;display:flex}.arrow-VrZOco{color:#2994ff;position:relative;top:8px;left:50%;transform:translate(-50%)rotate(90deg)}.label-XufLCq{justify-content:space-between;display:flex}.label-XufLCq .ant-collapse-header{background-color:#fff}.label-XufLCq .labelContent-nkrbEg{display:flex}.label-XufLCq .labelContent-nkrbEg>*{margin-right:10px}.collapseContainer-RlFMpI .collapseChild-WWZD3z{text-align:left;font-size:14px;font-weight:400;line-height:20px;display:flex}.collapseContainer-RlFMpI .collapseChild-WWZD3z>*{margin-right:10px}.collapseContainer-RlFMpI .collapseChild-WWZD3z .attribute-bDSZ0z{text-align:left;color:#00000073;margin:5px 0;font-size:12px;font-weight:400;line-height:16px}.collapseContainer-RlFMpI .collapseChild-WWZD3z .copy-qK3yUU{position:relative;top:-50%;left:100%}.drawerLabelTitle-bDwhFt{justify-content:space-evenly;align-items:center;min-width:120px;display:flex}.drawerLabelTitle-bDwhFt .drawerLabelSize-gzchzs{font-size:12px;font-weight:400}.extraContainer-Zf1u14{align-items:center;display:flex}.iconContainer-qPzCrR{justify-content:center;align-items:center;margin-right:20px;display:flex}.iconContainer-qPzCrR .data-po89g7{margin-left:5px}.pkgName-vA16cZ{text-align:left;font-family:Menlo;font-size:13px;font-weight:700;line-height:20px}.description-h4sYv3{font-size:14px;font-weight:400;line-height:16px}.card-HNTMcZ .ant-card-body{padding:0}.card-HNTMcZ .ant-collapse{border:none;border-radius:0}.card-HNTMcZ .ant-collapse>.ant-collapse-item{border-bottom:none}.container-TWzmhb{height:100%;margin-top:-4px}.container-TWzmhb .ant-tabs-nav-list{width:100%}.container-TWzmhb .ant-tabs-tab{flex:1}.container-TWzmhb .ant-tabs-tab-btn{width:100%}.title-gD67_A{text-align:left;height:32px;font-size:16px;font-weight:500;line-height:20px}.labelTitle-tjSCQ_{text-align:left;font-family:PingFang SC;font-size:12px;font-weight:400;line-height:20px}.labelDescription-kB74lb{justify-content:space-between;align-items:center;display:flex}.container-t1WME9{position:relative;top:4px}.container-t1WME9 .badgeContainer-K7EgOu{justify-content:center;align-items:center;width:32px;height:32px;display:flex}.rc-dialog{width:auto;margin:10px;position:relative}.rc-dialog-wrap{z-index:1050;-webkit-overflow-scrolling:touch;outline:0;position:fixed;top:0;bottom:0;left:0;right:0;overflow:auto}.rc-dialog-title{margin:0;font-size:14px;font-weight:700;line-height:21px}.rc-dialog-content{background-color:#fff;background-clip:padding-box;border:none;border-radius:6px;position:relative}.rc-dialog-close{cursor:pointer;color:#000;text-shadow:0 1px #fff;filter:alpha(opacity=20);opacity:.2;background:0 0;border:0;font-size:21px;font-weight:700;line-height:1;text-decoration:none;position:absolute;top:12px;right:20px}.rc-dialog-close-x:after{content:"×"}.rc-dialog-close:hover{opacity:1;filter:alpha(opacity=100);text-decoration:none}.rc-dialog-header{color:#666;background:#fff;border-bottom:1px solid #e9e9e9;border-radius:5px 5px 0 0;padding:13px 20px 14px}.rc-dialog-body{padding:20px}.rc-dialog-footer{text-align:right;border-top:1px solid #e9e9e9;border-radius:0 0 5px 5px;padding:10px 20px}.rc-dialog-zoom-enter,.rc-dialog-zoom-appear{opacity:0;animation-duration:.3s;animation-timing-function:cubic-bezier(.08,.82,.17,1);animation-play-state:paused;animation-fill-mode:both}.rc-dialog-zoom-leave{animation-duration:.3s;animation-timing-function:cubic-bezier(.6,.04,.98,.34);animation-play-state:paused;animation-fill-mode:both}.rc-dialog-zoom-enter.rc-dialog-zoom-enter-active,.rc-dialog-zoom-appear.rc-dialog-zoom-appear-active{animation-name:rcDialogZoomIn;animation-play-state:running}.rc-dialog-zoom-leave.rc-dialog-zoom-leave-active{animation-name:rcDialogZoomOut;animation-play-state:running}@keyframes rcDialogZoomIn{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes rcDialogZoomOut{0%{transform:scale(1)}to{opacity:0;transform:scale(0)}}@media (min-width:768px){.rc-dialog{width:600px;margin:30px auto}}.rc-dialog-mask{height:100%;filter:alpha(opacity=50);z-index:1050;background-color:#37373799;position:fixed;top:0;bottom:0;left:0;right:0}.rc-dialog-mask-hidden{display:none}.rc-dialog-fade-enter,.rc-dialog-fade-appear{opacity:0;animation-duration:.3s;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-play-state:paused;animation-fill-mode:both}.rc-dialog-fade-leave{animation-duration:.3s;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-play-state:paused;animation-fill-mode:both}.rc-dialog-fade-enter.rc-dialog-fade-enter-active,.rc-dialog-fade-appear.rc-dialog-fade-appear-active{animation-name:rcDialogFadeIn;animation-play-state:running}.rc-dialog-fade-leave.rc-dialog-fade-leave-active{animation-name:rcDialogFadeOut;animation-play-state:running}@keyframes rcDialogFadeIn{0%{opacity:0}to{opacity:1}}@keyframes rcDialogFadeOut{0%{opacity:1}to{opacity:0}}.code-viewer-H7hGrZ{background-color:var(--vscode-editor-background);border-radius:8px;flex-direction:column;height:70vh;display:flex;overflow:hidden;box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a}.code-viewer-H7hGrZ.embed-tjljOS{box-shadow:none;border-radius:0;overflow:auto}.code-viewer-H7hGrZ .header-qejtwX{background-color:var(--vscode-textBlockQuote-background);color:var(--vscode-foreground);flex-grow:0;flex-shrink:0;align-items:center;padding:8px 16px;display:flex}.code-viewer-H7hGrZ .header-qejtwX .text-T29bd1{color:var(--vscode-foreground)}.code-viewer-H7hGrZ .content-EVSW1C{flex:1}.code-viewer-H7hGrZ .file-inline-decoration{cursor:pointer;background:#4d7097;background:var(--vscode-editor-selectionHighlightBackground);text-decoration:underline}.diff-viewer-CczjmT{background-color:var(--vscode-editor-background);border-radius:8px;flex-direction:column;height:70vh;display:flex;overflow:hidden;box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a}.diff-viewer-CczjmT.embed-VNMDA8{box-shadow:none;border-radius:0;overflow:auto}.diff-viewer-CczjmT .header-VBdMD0{background-color:var(--vscode-textBlockQuote-background);color:var(--vscode-foreground);flex-grow:0;flex-shrink:0;align-items:center;padding:8px 16px;display:flex}.diff-viewer-CczjmT .header-VBdMD0 .text-Pi6YdN{color:var(--vscode-foreground)}.diff-viewer-CczjmT .content-BsfSuD{flex:1}.title-dP_KVY{text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none;justify-content:space-between;align-items:center;height:36px;font-size:16px;font-weight:500;line-height:20px;display:flex;position:relative;top:-12px}.container-LiYKWu{flex-wrap:wrap;justify-content:space-between;display:flex}.container-LiYKWu .content-WPe5pa{cursor:pointer;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none;width:48%;font-size:14px;font-weight:400;line-height:16px;transition:color .5s}.container-LiYKWu .content-WPe5pa:hover{color:#1677ff}:is(.projectOverall-T7onhG .ant-descriptions-item-label,.projectOverall-T7onhG .ant-descriptions-item-content){color:#000000a6;font-size:13px}.projectOverall-T7onhG .ant-descriptions-item{padding-bottom:10px!important}:is(.bundleOverall-Ay7WmZ .ant-descriptions-item-label,.bundleOverall-Ay7WmZ .ant-descriptions-item-content){color:#000000a6;font-size:13px}.bundleOverall-Ay7WmZ .ant-descriptions-item{padding-bottom:0!important}.card-lyOUB6{width:100%}.errorNumber-NtnGpL,.warningNumber-UgutU8,.successNumber-YOK23K{font-size:14px;font-weight:500;line-height:32px}.errorNumber-NtnGpL,.errorText-u5Q3ns{color:#f5222d}.warningNumber-UgutU8,.warningText-PymRi4{color:#fa8c16}.successNumber-YOK23K,.successText-ddFAF_{color:#52c41a}.errorButton-jYRQzL,.warningButton-KAF3GT,.successButton-clAJSx{width:100%;color:inherit;height:90px!important;font-size:inherit!important;border-radius:12px!important;padding:4px 0 8px!important}.errorButton-jYRQzL{background-color:#f5222d14}.errorButton-jYRQzL:hover{background-color:#f5222d26!important}.warningButton-KAF3GT{background-color:#fa8b1614}.warningButton-KAF3GT:hover{background-color:#fa8b1626!important}.successButton-clAJSx{background-color:#52c41a14}.successButton-clAJSx:hover{background-color:#52c41a26!important}.errorText-u5Q3ns,.warningText-PymRi4,.successText-ddFAF_{opacity:.75;margin-top:-2px;padding-bottom:6px;font-size:13px}.container-ssAvLP{border-radius:10px;align-items:center;height:40px;margin:10px 0 20px;padding:10px 20px 10px 5px;display:flex}.container-ssAvLP .icon-K6JtIV{margin:0 5px 0 10px}.container-ssAvLP .description-Ik1PO7{color:#000000a6;margin-right:5px;font-size:14px;font-weight:400;line-height:20px}.container-ssAvLP .data-J9Vxvq{font-size:14px;font-weight:500;line-height:32px}.common-sHeHRd{background:#f0f5ff}.warning-HnVMOj{background:#fff7e6}.title-fNYU5O{text-align:left;justify-content:space-between;align-items:center;height:40px;font-size:16px;font-weight:500;line-height:20px;display:flex;position:relative;top:-10px}.column-VJtpT7{margin-bottom:14px}.description-nwRikm{color:#000;margin-right:5px;font-size:20px;font-weight:500;line-height:32px}@media (max-width:1500px){.description-nwRikm{font-size:16px}}.unit-poAoxV{color:#000;font-size:12px;font-weight:400;line-height:32px}.treeContainer-jcFlxc{display:flex}.treeContainer-jcFlxc .line-Ia_8Yg{border-bottom:1px dashed #e5e6eb;flex:1;margin:0 15px 0 10px;transform:translateY(-45%)}.treeContainer-jcFlxc .treeTitle-B083rc{word-wrap:break-word;word-break:break-all;flex-wrap:wrap}.treeContainer-jcFlxc .icon-jhYzus{font-size:16px}.treeContainer-jcFlxc .tag-fNEiQ8{height:23px}.label-vITl7c{text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none;color:#000000a6;font-size:12px;font-weight:400;line-height:20px}.loader-chart-container .x-axis .tick text{font-size:12px;font-weight:500;transform:translate(28px,10px)rotate(0)!important}.loader-chart-container:nth-child(2) text{transform:translate(52px,10px)rotate(0)!important}.loader-chart-container:last-child text{transform:translate(5px,10px)rotate(0)!important}.loader-chart-container .area .civ{transform:translateY(5px)}.loader-chart-container .area .civ .label-text{font-weight:500;transform:translate(8px);font-size:12px!important}.loader-chart-container .area .civ path[fill=\#000000],.loader-chart-container .pia-metrics-y-label,.loader-chart-container .pia-metrics-y-label .triangle{display:none}.loader-chart-container_dark .area .civ .label-text{fill:#fff!important}.loader-tooltip-container{white-space:normal;word-wrap:break-word;word-break:break-all;min-width:300px;max-width:400px;padding:12px}.loader-tooltip-title{padding-bottom:4px;font-size:16px;font-weight:500;display:block}.loader-tooltip-description{color:#0006;padding-bottom:4px;font-size:14px;display:block}.loader-tooltip-item{white-space:nowrap;justify-content:flex-start;align-items:baseline;margin-top:4px;font-size:12px;font-weight:400;list-style:none;display:flex}.loader-tooltip-item:before{content:" ";background:#1677ff;border-radius:50%;width:4px;height:4px;margin-right:4px;display:block}.loader-tooltip-item span{word-break:break-all;white-space:pre-wrap;display:inline-block}.loader-tooltip-item span:first-child{background:#9696961a;border:1px solid #64646433;border-radius:3px;margin:0 .2em;padding:1px 4px;font-family:monospace;font-size:90%;font-weight:600}.loader-tooltip-item span:last-child{flex:1;padding-left:4px}.loader-tooltip-text-bold{font-weight:500}.progress-y4rFf4 .ant-progress-text{opacity:.8;font-size:13px}.title-wq4_QM{font-size:16px;font-weight:500;line-height:20px}.title-BZ9xk1{text-align:right;font-size:13px;font-weight:400;line-height:22px}.overview-ZAp1A3{margin-bottom:19px;display:flex}.title-cqt0lp{justify-content:space-between;align-items:center;padding-bottom:20px;display:flex}.title-cqt0lp .left-sk7eLC{text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none;font-size:16px;font-weight:500;line-height:24px}:root{--font-family-code:Roboto,Roboto Mono,-apple-system,BlinkMacSystemFont,"Segoe UI",Menlo,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}:root .ant-layout-content{padding:16px 32px!important}:root .ant-tree-title{flex:1}:root .ant-tree-node-content-wrapper-normal{display:flex}.overall-MGHzQh{justify-content:space-between;display:flex}.layout-izKUgB .row-RDk0Pl{margin-bottom:16px}.text-QI6k9S{color:#000000d9;font-size:14px;font-weight:400}.file-tree-com{margin:0}.file-tree-com .file-tree-com-treenode{white-space:nowrap;outline:0;margin:0;padding:0;line-height:24px;list-style:none}.file-tree-com .file-tree-com-treenode .file-tree-com-node-content-wrapper{box-sizing:border-box;vertical-align:top;cursor:pointer;height:24px;margin:0;padding:0 4px;text-decoration:none;display:inline-block;position:relative}.file-tree-com .file-tree-com-treenode .file-tree-com-arrow-icon{transform:rotate(90deg)}.file-tree-com-child-tree{display:none}.file-tree-com-child-tree-open{display:block}.file-tree-com-treenode-disabled>span:not(.file-tree-com-switcher),.file-tree-com>a,.file-tree-com>a span{color:#767676;cursor:not-allowed}.file-tree-com-treenode-selected{background:#0591ff4d;border-radius:4px}.file-tree-com-title{cursor:pointer;display:inline-block}.file-tree-com-titles-box:hover{cursor:pointer;background-color:#f0f3f5;border:1px solid #e5e6eb;width:80%}.file-tree-com-titles-box:hover .ant-typography:hover{color:#0079ff}.file-tree-com-node-title .file-icon{padding:4px 0 0}.file-tree-com-indent{vertical-align:bottom;height:0;display:inline-block}.file-tree-com-indent-unit{width:14px;display:inline-block}.file-tree-switcher-arrow{transition:transform .3s;transform:rotate(0)}.file-tree-switcher-arrow-expand{transform:rotate(90deg)}.rc-tree.rc-tree-show-line .rc-tree-treenode:not(:last-child){border-left:1px solid #eee}.rc-tree.rc-tree-show-line .rc-tree-treenode:not(:last-child) .file-tree-com-titles{flex-direction:column;display:flex}.rc-tree.rc-tree-show-line .rc-tree-treenode:not(:last-child) .file-tree-com-titles .file-tree-com-node-title{cursor:pointer;line-height:30px;display:flex}.rc-tree.rc-tree-show-line .rc-tree-treenode:not(:last-child) .file-tree-com-titles .file-tree-com-node-title img,.rc-tree.rc-tree-show-line .rc-tree-treenode:not(:last-child) .file-tree-com-titles .file-tree-com-node-title img-tag{cursor:pointer}.rc-tree.rc-tree-show-line .rc-tree-treenode:not(:last-child) .file-tree-com-node-title-selected{background-color:#ff0}.rc-tree.rc-tree-show-line .rc-tree-treenode:not(:last-child) .file-tree-com-node-title-tag{margin-inline-end:0}.rc-tree.rc-tree-show-line .rc-tree-treenode:not(:last-child) .file-tree-com-node-title-code-tag{cursor:pointer;padding:0 2px}.rc-tree-indent{vertical-align:bottom;height:0;display:inline-block}.rc-tree-indent-unit{width:14px;display:inline-block}.module-analyze-file-tree{width:"100%";min-height:50em}.module-analyze-file-tree .module-analyze-empty{margin-top:20%}.module-analyze-box{flex-direction:column;display:flex}.file-tree-com-titles-box{line-height:30px}.assets-ll1P_L .rc-tree-indent-unit{width:22px}.assets-ll1P_L .rc-tree-treenode{line-height:30px!important}.assets-ll1P_L .rc-tree-treenode:not(.rc-tree-treenode-switcher-open):not(.rc-tree-treenode-switcher-close) .rc-tree-switcher{position:relative;bottom:4px}.assets-ll1P_L .rc-tree-treenode:not(.rc-tree-treenode-switcher-open):not(.rc-tree-treenode-switcher-close) .rc-tree-node-content-wrapper{font-size:14px}.assets-ll1P_L .rc-tree-treenode:not(.rc-tree-treenode-switcher-open):not(.rc-tree-treenode-switcher-close) .file-icon{margin-left:0;padding:10px 0 0}.assets-ll1P_L .assetBox-Y8vGse{align-items:center;display:flex}.assets-ll1P_L .assetBox-Y8vGse .fileText-W0quVZ{margin-right:4px}.bundle-tree-IbtEQg{display:flex}.bundle-tree-IbtEQg span.ant-tag{margin:none;margin-inline-end:0}.box-On1BLb{width:100%;height:30px;display:flex}.box-On1BLb .keyword-PqQzB1{flex:none;padding-right:5px}.divider-asnppW{border-color:#0000001f;position:relative;bottom:20%}.dividerDiv-s50mAr{flex-grow:1;margin:0 10px;position:relative;bottom:10%}.assetsTag-eAVvyj{height:30px}.assetsTag-eAVvyj .ant-divider-vertical{margin-inline-start:0;margin-inline-end:0}.bundle-cPw2Kc,.bundle-cPw2Kc .rc-tree-node-content-wrapper{font-size:14px}.bundle-cPw2Kc .file-icon{margin-left:0}.bundle-cPw2Kc .ant-tree-indent-unit{width:10px}.bundle-cPw2Kc .ant-tree-iconEle{margin-right:2px}.bundle-cPw2Kc .ant-tree-node-content-wrapper-open,.bundle-cPw2Kc .ant-tree-node-content-wrapper-close{display:flex}.bundle-size-card-N8rW3d .ant-tabs-tab-SpEjsl{margin-right:20px}.modal-afyzYa .ant-input-affix-wrapper{width:490px;padding:4px 5px}.search-btn-To902q{color:#fff}.search-btn-To902q>span{position:relative}.search-btn-To902q:before{content:"";opacity:1;border-radius:inherit;background:linear-gradient(135deg,#6253e1,#04befe);transition:all .3s;position:absolute;top:-1px;bottom:-1px;left:-1px;right:-1px}.search-btn-To902q:hover:before{opacity:0}.search-modal-list-G_Uxc8 .ant-spin-container{max-height:30rem;overflow:auto}.search-modal-list-G_Uxc8 .search-list-item.clickable:hover{cursor:pointer;background-color:#eee}.dataContainer-lJ0PuO{flex-direction:column;display:flex}.dataContainer-lJ0PuO .title-Gj8JxL{color:#000000a6;margin-bottom:2px;font-size:12px;font-weight:400;line-height:20px}.description-miJCbD{color:#000000d9;font-size:18px;font-weight:500;line-height:28px}@media (max-width:1500px){.description-miJCbD{font-size:14px}}.percentContainer-VJxs6L{flex-direction:column;font-size:20px;display:flex}.percentContainer-VJxs6L .percentDescription-ymSkb_{font-size:12px;font-weight:400;line-height:20px}.container-wODg_6{background-color:#fff;align-items:center;margin-bottom:20px;padding:20px 0;display:flex}.container-wODg_6 .chartsContainer-msRyOd{justify-content:space-evenly;width:100%;display:flex}.container-wODg_6 .chartsContainer-msRyOd .chart-GmBMa_{flex:1;justify-content:center;align-items:center;display:flex}.container-wODg_6 .summary-zj0ygd{flex-direction:column;justify-content:center;margin:0 20px;display:flex}.container-wODg_6 .summary-zj0ygd .description-o0ffpO{margin-right:5px;font-size:20px;font-weight:500;line-height:32px}.container-wODg_6 .summary-zj0ygd .unit-n5Yty6{font-size:12px;font-weight:400;line-height:32px}.container-wODg_6 .summary-zj0ygd .totalNumber-UweUl8{margin:4px 0;font-size:13px;font-weight:400;line-height:20px}.cardTitle-xNmEfV{justify-content:space-between;align-items:center;margin-bottom:25px;display:flex}.cardTitle-xNmEfV .title-qIR7dd{color:#000;font-size:14px;font-weight:500;line-height:20px}.bundle-size-editor{flex-grow:1;height:700px;margin-left:40px}.bundle-size-editor .ant-card-body{width:auto;height:calc(100% - 48px);padding:0}.bundle-size-module-bunton{margin-left:4em}.ant-tabs-nav{width:100%}.treemap-DOrYiA{flex-direction:column;gap:16px;display:flex}.treemap-DOrYiA .ant-checkbox-wrapper{font-size:12px;font-weight:200}.treemap-DOrYiA .all-none-checkbox{margin-bottom:4px;font-size:12px;font-weight:500}.treemap-DOrYiA .asset-checkbox-group{gap:8px;font-weight:200;display:flex}.treemap-DOrYiA .chart-container{border:5px solid #fff;border-radius:10px;width:100%;min-height:500px;max-height:1000px}.treemap-DOrYiA .card-body{transition:height .3s cubic-bezier(.4,0,.2,1),padding .3s;overflow:hidden}.treemap-DOrYiA .card-body.collapsed{height:0;padding:0}.treemap-DOrYiA .checkbox-container{opacity:1;gap:8px;transition:opacity .3s}.treemap-DOrYiA .checkbox-container.collapsed{opacity:0}.treemap-DOrYiA .statistics-space{width:100%}.tooltip-row-sZbl0R{justify-content:space-between;font-size:12px;display:flex}.tooltip-label-INs_JK{color:#999}.tooltip-path-djJmWx{word-wrap:break-word;white-space:normal;word-break:break-all;overflow-wrap:break-word;width:280px;margin-bottom:8px;font-size:12px;line-height:1.4}.collapse-icon-wzQxAS{cursor:pointer;margin-left:8px}.loader-select .ant-select-selector{width:300px}.layer-select .ant-select-selector{width:150px}.loaderAnalysis-h6mG3n .rc-tree{min-width:900px}.loaderAnalysis-h6mG3n .rc-tree .rc-tree-treenode{align-items:center;min-height:30px;display:flex}.loaderAnalysis-h6mG3n .rc-tree .rc-tree-treenode .rc-tree-indent{flex-grow:0;flex-shrink:0;display:flex}.loaderAnalysis-h6mG3n .rc-tree .rc-tree-treenode .rc-tree-switcher{cursor:pointer;flex-grow:0;flex-shrink:0}.loaderAnalysis-h6mG3n .rc-tree .rc-tree-treenode .rc-tree-switcher .file-icon{margin-left:8px;line-height:14px;display:block}.loaderAnalysis-h6mG3n .rc-tree .rc-tree-treenode .rc-tree-node-content-wrapper{flex:1;min-width:0}.dividerDiv-hrfVKQ{flex:1;margin-left:10px;margin-right:10px;position:relative}.divider-hnPRxv{border-color:#0000001f;margin:auto;position:relative;top:50%}.box-lFdvrG{flex-shrink:0}.box-lFdvrG .keyword-UO64w1{flex:none;padding-right:5px}.textBox-sVZZ_A{color:#000000d9;background-color:#fafafa;border:1px solid #d9d9d9;border-radius:2px;justify-content:center;align-items:center;max-width:320px;height:22px;padding:1px 8px;display:flex}.textBox-sVZZ_A .text-omPvlh{font-size:12px;font-weight:400}.space-qT5CaN .ant-space-item{display:flex}.executions-uZxmQC .timeline-wMFXyU .box-lFdvrG{border:1px solid #eaedf1;border-radius:8px;flex-direction:column;width:80%;height:74px;padding:16px;display:flex}.executions-uZxmQC .timeline-wMFXyU .box-lFdvrG:active{background-color:#f2f8ff;border:1px solid #0079ff}.executions-uZxmQC .timeline-wMFXyU .box-lFdvrG .ant-typography{color:#000000a6;font-size:14px}.executions-uZxmQC .timeline-wMFXyU .box-lFdvrG .loader-PHR4ca{color:inherit;align-content:center;height:72px;font-size:14px}.executions-uZxmQC .timeline-wMFXyU .selected-wUMOH3{background-color:#f2f8ff;border:1px solid #0079ff}.plugin-select .ant-select-selector{width:300px}.tree-shaking-page{width:100%;height:100%}.tree-shaking-page .ant-card{flex-direction:column;display:flex}.tree-shaking-page .tree-shaking-statement-side-effect{background:#711f1c;text-decoration:underline}.tree-shaking-page .tree-shaking-statement-declaration-identifier{background:#2c87ec;text-decoration:underline}.tree-shaking-page .tree-shaking-files-box{height:700px}.tree-shaking-page .tree-shaking-files{height:100%;overflow:auto}.tree-shaking-page .tree-shaking-editor{flex-grow:1;height:700px}.tree-shaking-page .tree-shaking-editor .ant-card-body{padding:0}.tree-shaking-page .tree-shaking-files-box,.tree-shaking-page .tree-shaking-editor .ant-card-body{width:auto;height:calc(100% - 48px)}.tree-shaking-page .tree-shaking-export-table .ant-card-body{padding:0}.tree-shaking-page .tree-shaking-export-table .ant-card-body .ant-divider{margin:24px}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td{border-bottom:none}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th{border-top:1px solid #0505050f}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:first-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:first-child:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:first-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:first-child:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:first-child:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:first-child:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-right-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:first-child:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-right-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:first-child:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-right-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:last-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-right-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:last-child:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-right-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:last-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-right-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:last-child:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-right-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:last-child:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-right-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:last-child:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-left-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:last-child:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-left-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:last-child:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-left-radius:0}.tree-shaking-page .tree-shaking-side-effect-list{flex-direction:column;align-items:flex-start;display:flex}.tree-shaking-page .tree-shaking-side-effect-list .tree-shaking-side-effect-list-item{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.monaco-hover .markdown-hover.hover-row hr{background-color:gray;margin:2px}.monaco-hover .markdown-hover.hover-row div[data-code=tree-shaking-hover] ol{margin:4px 0 10px;padding-left:4px}.monaco-hover .markdown-hover.hover-row div[data-code=tree-shaking-hover] ol pre{margin:2px 0}.header-switch .ant-switch-handle{top:1px!important}.header-icon{-webkit-user-select:none;user-select:none}.header-icon:hover{color:#1668dc}.header-icon:active{color:#40a9ff}.rsdoctor-logo{cursor:pointer;height:30px}.rsdoctor-logo:active{opacity:.8}html{-webkit-text-size-adjust:100%;line-height:1.15}body{margin:0}main{display:block}h1{margin:.67em 0;font-size:2em}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace;font-size:1em}a{background-color:#0000}abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:100%;line-height:1.15}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner{border-style:none;padding:0}[type=button]::-moz-focus-inner{border-style:none;padding:0}[type=reset]::-moz-focus-inner{border-style:none;padding:0}[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring{outline:1px dotted buttontext}[type=button]:-moz-focusring{outline:1px dotted buttontext}[type=reset]:-moz-focusring{outline:1px dotted buttontext}[type=submit]:-moz-focusring{outline:1px dotted buttontext}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;white-space:normal;max-width:100%;padding:0;display:table}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button{height:auto}[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template,[hidden]{display:none}.body{font-size:12px}
|
|
1
|
+
.rc-tree{border:1px solid #0000;margin:0}.rc-tree .rc-tree-treenode{white-space:nowrap;outline:0;align-items:center;margin:0;padding:0;line-height:24px;list-style:none;display:flex}.rc-tree .rc-tree-treenode:hover{background:#0000000a}.rc-tree .rc-tree-treenode .rc-tree-node-content-wrapper{color:#000000d9;box-sizing:border-box;vertical-align:top;cursor:pointer;margin:0;padding:0 4px;font-size:14px;font-weight:400;text-decoration:none;display:inline-block;position:relative}.rc-tree .rc-tree-treenode-child-tree{display:none}.rc-tree .rc-tree-treenode-child-tree-open{display:block}.rc-tree .rc-tree-treenode-treenode-disabled>span:not(.rc-tree-switcher),.rc-tree .rc-tree-treenode>a,.rc-tree .rc-tree-treenode>a span{color:#767676;cursor:not-allowed}.rc-tree .rc-tree-treenode-treenode-selected{background:#0591ff4d;border-radius:4px}.rc-tree .rc-tree-treenode-title{display:inline-block}.rc-tree .rc-tree-treenode-indent{vertical-align:bottom;height:0;display:inline-block}.rc-tree .rc-tree-treenode-indent-unit{width:14px;display:inline-block}.file-icon{margin-left:8px;padding:2px 0;display:inline-block}.container-iQTvf7{justify-content:space-between;align-items:center;padding:10px 20px;display:flex}.container-iQTvf7 .box-yCgd0f{width:290px;display:flex}.container-iQTvf7 .title-OR484p{color:#00000073;margin-bottom:5px;font-size:12px;font-weight:400;line-height:16px}.container-iQTvf7 .content-iOwxYc{margin-left:5px;font-size:14px;font-weight:400;line-height:16px}.container-KSV5DZ{white-space:nowrap;background:#f6f8fa;border-radius:8px;justify-content:space-between;align-items:center;width:100%;margin-right:10px;padding:8px 20px;display:flex}.container-KSV5DZ .content-BsjkSU{flex:1}.container-KSV5DZ .content-BsjkSU .title-jUwqD5{color:#000000a6;font-size:12px;font-weight:400;line-height:20px}.container-KSV5DZ .content-BsjkSU .description-ArkOg4{font-size:24px;font-weight:500;line-height:32px}.dot-NXAU38{flex-direction:column;justify-content:center;align-items:center;display:flex}.filePath-UF3inH{border:1px solid #eaedf1;border-radius:10px;justify-content:space-between;align-items:center;padding:5px 10px;display:flex}.arrow-VrZOco{color:#2994ff;position:relative;top:8px;left:50%;transform:translate(-50%)rotate(90deg)}.label-XufLCq{justify-content:space-between;display:flex}.label-XufLCq .ant-collapse-header{background-color:#fff}.label-XufLCq .labelContent-nkrbEg{display:flex}.label-XufLCq .labelContent-nkrbEg>*{margin-right:10px}.collapseContainer-RlFMpI .collapseChild-WWZD3z{text-align:left;font-size:14px;font-weight:400;line-height:20px;display:flex}.collapseContainer-RlFMpI .collapseChild-WWZD3z>*{margin-right:10px}.collapseContainer-RlFMpI .collapseChild-WWZD3z .attribute-bDSZ0z{text-align:left;color:#00000073;margin:5px 0;font-size:12px;font-weight:400;line-height:16px}.collapseContainer-RlFMpI .collapseChild-WWZD3z .copy-qK3yUU{position:relative;top:-50%;left:100%}.drawerLabelTitle-bDwhFt{justify-content:space-evenly;align-items:center;min-width:120px;display:flex}.drawerLabelTitle-bDwhFt .drawerLabelSize-gzchzs{font-size:12px;font-weight:400}.extraContainer-Zf1u14{align-items:center;display:flex}.iconContainer-qPzCrR{justify-content:center;align-items:center;margin-right:20px;display:flex}.iconContainer-qPzCrR .data-po89g7{margin-left:5px}.pkgName-vA16cZ{text-align:left;font-family:Menlo;font-size:13px;font-weight:700;line-height:20px}.description-h4sYv3{font-size:14px;font-weight:400;line-height:16px}.card-HNTMcZ .ant-card-body{padding:0}.card-HNTMcZ .ant-collapse{border:none;border-radius:0}.card-HNTMcZ .ant-collapse>.ant-collapse-item{border-bottom:none}.container-TWzmhb{height:100%;margin-top:-4px}.container-TWzmhb .ant-tabs-nav-list{width:100%}.container-TWzmhb .ant-tabs-tab{flex:1}.container-TWzmhb .ant-tabs-tab-btn{width:100%}.title-gD67_A{text-align:left;height:32px;font-size:16px;font-weight:500;line-height:20px}.labelTitle-tjSCQ_{text-align:left;font-family:PingFang SC;font-size:12px;font-weight:400;line-height:20px}.labelDescription-kB74lb{justify-content:space-between;align-items:center;display:flex}.container-t1WME9{position:relative;top:4px}.container-t1WME9 .badgeContainer-K7EgOu{justify-content:center;align-items:center;width:32px;height:32px;display:flex}.rc-dialog{width:auto;margin:10px;position:relative}.rc-dialog-wrap{z-index:1050;-webkit-overflow-scrolling:touch;outline:0;position:fixed;top:0;bottom:0;left:0;right:0;overflow:auto}.rc-dialog-title{margin:0;font-size:14px;font-weight:700;line-height:21px}.rc-dialog-content{background-color:#fff;background-clip:padding-box;border:none;border-radius:6px;position:relative}.rc-dialog-close{cursor:pointer;color:#000;text-shadow:0 1px #fff;filter:alpha(opacity=20);opacity:.2;background:0 0;border:0;font-size:21px;font-weight:700;line-height:1;text-decoration:none;position:absolute;top:12px;right:20px}.rc-dialog-close-x:after{content:"×"}.rc-dialog-close:hover{opacity:1;filter:alpha(opacity=100);text-decoration:none}.rc-dialog-header{color:#666;background:#fff;border-bottom:1px solid #e9e9e9;border-radius:5px 5px 0 0;padding:13px 20px 14px}.rc-dialog-body{padding:20px}.rc-dialog-footer{text-align:right;border-top:1px solid #e9e9e9;border-radius:0 0 5px 5px;padding:10px 20px}.rc-dialog-zoom-enter,.rc-dialog-zoom-appear{opacity:0;animation-duration:.3s;animation-timing-function:cubic-bezier(.08,.82,.17,1);animation-play-state:paused;animation-fill-mode:both}.rc-dialog-zoom-leave{animation-duration:.3s;animation-timing-function:cubic-bezier(.6,.04,.98,.34);animation-play-state:paused;animation-fill-mode:both}.rc-dialog-zoom-enter.rc-dialog-zoom-enter-active,.rc-dialog-zoom-appear.rc-dialog-zoom-appear-active{animation-name:rcDialogZoomIn;animation-play-state:running}.rc-dialog-zoom-leave.rc-dialog-zoom-leave-active{animation-name:rcDialogZoomOut;animation-play-state:running}@keyframes rcDialogZoomIn{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes rcDialogZoomOut{0%{transform:scale(1)}to{opacity:0;transform:scale(0)}}@media (min-width:768px){.rc-dialog{width:600px;margin:30px auto}}.rc-dialog-mask{height:100%;filter:alpha(opacity=50);z-index:1050;background-color:#37373799;position:fixed;top:0;bottom:0;left:0;right:0}.rc-dialog-mask-hidden{display:none}.rc-dialog-fade-enter,.rc-dialog-fade-appear{opacity:0;animation-duration:.3s;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-play-state:paused;animation-fill-mode:both}.rc-dialog-fade-leave{animation-duration:.3s;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-play-state:paused;animation-fill-mode:both}.rc-dialog-fade-enter.rc-dialog-fade-enter-active,.rc-dialog-fade-appear.rc-dialog-fade-appear-active{animation-name:rcDialogFadeIn;animation-play-state:running}.rc-dialog-fade-leave.rc-dialog-fade-leave-active{animation-name:rcDialogFadeOut;animation-play-state:running}@keyframes rcDialogFadeIn{0%{opacity:0}to{opacity:1}}@keyframes rcDialogFadeOut{0%{opacity:1}to{opacity:0}}.code-viewer-H7hGrZ{background-color:var(--vscode-editor-background);border-radius:8px;flex-direction:column;height:70vh;display:flex;overflow:hidden;box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a}.code-viewer-H7hGrZ.embed-tjljOS{box-shadow:none;border-radius:0;overflow:auto}.code-viewer-H7hGrZ .header-qejtwX{background-color:var(--vscode-textBlockQuote-background);color:var(--vscode-foreground);flex-grow:0;flex-shrink:0;align-items:center;padding:8px 16px;display:flex}.code-viewer-H7hGrZ .header-qejtwX .text-T29bd1{color:var(--vscode-foreground)}.code-viewer-H7hGrZ .content-EVSW1C{flex:1}.code-viewer-H7hGrZ .file-inline-decoration{cursor:pointer;background:#4d7097;background:var(--vscode-editor-selectionHighlightBackground);text-decoration:underline}.diff-viewer-CczjmT{background-color:var(--vscode-editor-background);border-radius:8px;flex-direction:column;height:70vh;display:flex;overflow:hidden;box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a}.diff-viewer-CczjmT.embed-VNMDA8{box-shadow:none;border-radius:0;overflow:auto}.diff-viewer-CczjmT .header-VBdMD0{background-color:var(--vscode-textBlockQuote-background);color:var(--vscode-foreground);flex-grow:0;flex-shrink:0;align-items:center;padding:8px 16px;display:flex}.diff-viewer-CczjmT .header-VBdMD0 .text-Pi6YdN{color:var(--vscode-foreground)}.diff-viewer-CczjmT .content-BsfSuD{flex:1}.title-dP_KVY{text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none;justify-content:space-between;align-items:center;height:36px;font-size:16px;font-weight:500;line-height:20px;display:flex;position:relative;top:-12px}.container-LiYKWu{flex-wrap:wrap;justify-content:space-between;display:flex}.container-LiYKWu .content-WPe5pa{cursor:pointer;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none;width:48%;font-size:14px;font-weight:400;line-height:16px;transition:color .5s}.container-LiYKWu .content-WPe5pa:hover{color:#1677ff}:is(.projectOverall-T7onhG .ant-descriptions-item-label,.projectOverall-T7onhG .ant-descriptions-item-content){color:#000000a6;font-size:13px}.projectOverall-T7onhG .ant-descriptions-item{padding-bottom:10px!important}:is(.bundleOverall-Ay7WmZ .ant-descriptions-item-label,.bundleOverall-Ay7WmZ .ant-descriptions-item-content){color:#000000a6;font-size:13px}.bundleOverall-Ay7WmZ .ant-descriptions-item{padding-bottom:0!important}.card-lyOUB6{width:100%}.errorNumber-NtnGpL,.warningNumber-UgutU8,.successNumber-YOK23K{font-size:14px;font-weight:500;line-height:32px}.errorNumber-NtnGpL,.errorText-u5Q3ns{color:#f5222d}.warningNumber-UgutU8,.warningText-PymRi4{color:#fa8c16}.successNumber-YOK23K,.successText-ddFAF_{color:#52c41a}.errorButton-jYRQzL,.warningButton-KAF3GT,.successButton-clAJSx{width:100%;color:inherit;height:90px!important;font-size:inherit!important;border-radius:12px!important;padding:4px 0 8px!important}.errorButton-jYRQzL{background-color:#f5222d14}.errorButton-jYRQzL:hover{background-color:#f5222d26!important}.warningButton-KAF3GT{background-color:#fa8b1614}.warningButton-KAF3GT:hover{background-color:#fa8b1626!important}.successButton-clAJSx{background-color:#52c41a14}.successButton-clAJSx:hover{background-color:#52c41a26!important}.errorText-u5Q3ns,.warningText-PymRi4,.successText-ddFAF_{opacity:.75;margin-top:-2px;padding-bottom:6px;font-size:13px}.container-ssAvLP{border-radius:10px;align-items:center;height:40px;margin:10px 0 20px;padding:10px 20px 10px 5px;display:flex}.container-ssAvLP .icon-K6JtIV{margin:0 5px 0 10px}.container-ssAvLP .description-Ik1PO7{color:#000000a6;margin-right:5px;font-size:14px;font-weight:400;line-height:20px}.container-ssAvLP .data-J9Vxvq{font-size:14px;font-weight:500;line-height:32px}.common-sHeHRd{background:#f0f5ff}.warning-HnVMOj{background:#fff7e6}.title-fNYU5O{text-align:left;justify-content:space-between;align-items:center;height:40px;font-size:16px;font-weight:500;line-height:20px;display:flex;position:relative;top:-10px}.column-VJtpT7{margin-bottom:14px}.description-nwRikm{color:#000;margin-right:5px;font-size:20px;font-weight:500;line-height:32px}@media (max-width:1500px){.description-nwRikm{font-size:16px}}.unit-poAoxV{color:#000;font-size:12px;font-weight:400;line-height:32px}.treeContainer-jcFlxc{display:flex}.treeContainer-jcFlxc .line-Ia_8Yg{border-bottom:1px dashed #e5e6eb;flex:1;margin:0 15px 0 10px;transform:translateY(-45%)}.treeContainer-jcFlxc .treeTitle-B083rc{word-wrap:break-word;word-break:break-all;flex-wrap:wrap}.treeContainer-jcFlxc .icon-jhYzus{font-size:16px}.treeContainer-jcFlxc .tag-fNEiQ8{height:23px}.label-vITl7c{text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none;color:#000000a6;font-size:12px;font-weight:400;line-height:20px}.loader-chart-container .x-axis .tick text{font-size:12px;font-weight:500;transform:translate(28px,10px)rotate(0)!important}.loader-chart-container:nth-child(2) text{transform:translate(52px,10px)rotate(0)!important}.loader-chart-container:last-child text{transform:translate(5px,10px)rotate(0)!important}.loader-chart-container .area .civ{transform:translateY(5px)}.loader-chart-container .area .civ .label-text{font-weight:500;transform:translate(8px);font-size:12px!important}.loader-chart-container .area .civ path[fill=\#000000],.loader-chart-container .pia-metrics-y-label,.loader-chart-container .pia-metrics-y-label .triangle{display:none}.loader-chart-container_dark .area .civ .label-text{fill:#fff!important}.loader-tooltip-container{white-space:normal;word-wrap:break-word;word-break:break-all;min-width:300px;max-width:400px;padding:12px}.loader-tooltip-title{padding-bottom:4px;font-size:16px;font-weight:500;display:block}.loader-tooltip-description{color:#0006;padding-bottom:4px;font-size:14px;display:block}.loader-tooltip-item{white-space:nowrap;justify-content:flex-start;align-items:baseline;margin-top:4px;font-size:12px;font-weight:400;list-style:none;display:flex}.loader-tooltip-item:before{content:" ";background:#1677ff;border-radius:50%;width:4px;height:4px;margin-right:4px;display:block}.loader-tooltip-item span{word-break:break-all;white-space:pre-wrap;display:inline-block}.loader-tooltip-item span:first-child{background:#9696961a;border:1px solid #64646433;border-radius:3px;margin:0 .2em;padding:1px 4px;font-family:monospace;font-size:90%;font-weight:600}.loader-tooltip-item span:last-child{flex:1;padding-left:4px}.loader-tooltip-text-bold{font-weight:500}.progress-y4rFf4 .ant-progress-text{opacity:.8;font-size:13px}.title-wq4_QM{font-size:16px;font-weight:500;line-height:20px}.title-BZ9xk1{text-align:right;font-size:13px;font-weight:400;line-height:22px}.overview-ZAp1A3{margin-bottom:19px;display:flex}.title-cqt0lp{justify-content:space-between;align-items:center;padding-bottom:20px;display:flex}.title-cqt0lp .left-sk7eLC{text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none;font-size:16px;font-weight:500;line-height:24px}:root{--font-family-code:Roboto,Roboto Mono,-apple-system,BlinkMacSystemFont,"Segoe UI",Menlo,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}:root .ant-layout-content{padding:16px 32px!important}:root .ant-tree-title{flex:1}:root .ant-tree-node-content-wrapper-normal{display:flex}.overall-MGHzQh{justify-content:space-between;display:flex}.layout-izKUgB .row-RDk0Pl{margin-bottom:16px}.text-QI6k9S{color:#000000d9;font-size:14px;font-weight:400}.file-tree-com{margin:0}.file-tree-com .file-tree-com-treenode{white-space:nowrap;outline:0;margin:0;padding:0;line-height:24px;list-style:none}.file-tree-com .file-tree-com-treenode .file-tree-com-node-content-wrapper{box-sizing:border-box;vertical-align:top;cursor:pointer;height:24px;margin:0;padding:0 4px;text-decoration:none;display:inline-block;position:relative}.file-tree-com .file-tree-com-treenode .file-tree-com-arrow-icon{transform:rotate(90deg)}.file-tree-com-child-tree{display:none}.file-tree-com-child-tree-open{display:block}.file-tree-com-treenode-disabled>span:not(.file-tree-com-switcher),.file-tree-com>a,.file-tree-com>a span{color:#767676;cursor:not-allowed}.file-tree-com-treenode-selected{background:#0591ff4d;border-radius:4px}.file-tree-com-title{cursor:pointer;display:inline-block}.file-tree-com-titles-box:hover{cursor:pointer;background-color:#f0f3f5;border:1px solid #e5e6eb;width:80%}.file-tree-com-titles-box:hover .ant-typography:hover{color:#0079ff}.file-tree-com-node-title .file-icon{padding:4px 0 0}.file-tree-com-indent{vertical-align:bottom;height:0;display:inline-block}.file-tree-com-indent-unit{width:14px;display:inline-block}.file-tree-switcher-arrow{transition:transform .3s;transform:rotate(0)}.file-tree-switcher-arrow-expand{transform:rotate(90deg)}.rc-tree.rc-tree-show-line .rc-tree-treenode:not(:last-child){border-left:1px solid #eee}.rc-tree.rc-tree-show-line .rc-tree-treenode:not(:last-child) .file-tree-com-titles{flex-direction:column;display:flex}.rc-tree.rc-tree-show-line .rc-tree-treenode:not(:last-child) .file-tree-com-titles .file-tree-com-node-title{cursor:pointer;line-height:30px;display:flex}.rc-tree.rc-tree-show-line .rc-tree-treenode:not(:last-child) .file-tree-com-titles .file-tree-com-node-title img,.rc-tree.rc-tree-show-line .rc-tree-treenode:not(:last-child) .file-tree-com-titles .file-tree-com-node-title img-tag{cursor:pointer}.rc-tree.rc-tree-show-line .rc-tree-treenode:not(:last-child) .file-tree-com-node-title-selected{background-color:#ff0}.rc-tree.rc-tree-show-line .rc-tree-treenode:not(:last-child) .file-tree-com-node-title-tag{margin-inline-end:0}.rc-tree.rc-tree-show-line .rc-tree-treenode:not(:last-child) .file-tree-com-node-title-code-tag{cursor:pointer;padding:0 2px}.rc-tree-indent{vertical-align:bottom;height:0;display:inline-block}.rc-tree-indent-unit{width:14px;display:inline-block}.module-analyze-file-tree{width:"100%";min-height:50em}.module-analyze-file-tree .module-analyze-empty{margin-top:20%}.module-analyze-box{flex-direction:column;display:flex}.file-tree-com-titles-box{line-height:30px}.assets-ll1P_L .rc-tree-indent-unit{width:22px}.assets-ll1P_L .rc-tree-treenode{line-height:30px!important}.assets-ll1P_L .rc-tree-treenode:not(.rc-tree-treenode-switcher-open):not(.rc-tree-treenode-switcher-close) .rc-tree-switcher{position:relative;bottom:4px}.assets-ll1P_L .rc-tree-treenode:not(.rc-tree-treenode-switcher-open):not(.rc-tree-treenode-switcher-close) .rc-tree-node-content-wrapper{font-size:14px}.assets-ll1P_L .rc-tree-treenode:not(.rc-tree-treenode-switcher-open):not(.rc-tree-treenode-switcher-close) .file-icon{margin-left:0;padding:10px 0 0}.assets-ll1P_L .assetBox-Y8vGse{align-items:center;display:flex}.assets-ll1P_L .assetBox-Y8vGse .fileText-W0quVZ{margin-right:4px}.bundle-tree-IbtEQg{display:flex}.bundle-tree-IbtEQg span.ant-tag{margin:none;margin-inline-end:0}.box-On1BLb{width:100%;height:30px;display:flex}.box-On1BLb .keyword-PqQzB1{flex:none;padding-right:5px}.divider-asnppW{border-color:#0000001f;position:relative;bottom:20%}.dividerDiv-s50mAr{flex-grow:1;margin:0 10px;position:relative;bottom:10%}.assetsTag-eAVvyj{height:30px}.assetsTag-eAVvyj .ant-divider-vertical{margin-inline-start:0;margin-inline-end:0}.bundle-cPw2Kc,.bundle-cPw2Kc .rc-tree-node-content-wrapper{font-size:14px}.bundle-cPw2Kc .file-icon{margin-left:0}.bundle-cPw2Kc .ant-tree-indent-unit{width:10px}.bundle-cPw2Kc .ant-tree-iconEle{margin-right:2px}.bundle-cPw2Kc .ant-tree-node-content-wrapper-open,.bundle-cPw2Kc .ant-tree-node-content-wrapper-close{display:flex}.bundle-size-card-N8rW3d .ant-tabs-tab-SpEjsl{margin-right:20px}.modal-afyzYa .ant-input-affix-wrapper{width:490px;padding:4px 5px}.search-btn-To902q{color:#fff}.search-btn-To902q>span{position:relative}.search-btn-To902q:before{content:"";opacity:1;border-radius:inherit;background:linear-gradient(135deg,#6253e1,#04befe);transition:all .3s;position:absolute;top:-1px;bottom:-1px;left:-1px;right:-1px}.search-btn-To902q:hover:before{opacity:0}.search-modal-list-G_Uxc8 .ant-spin-container{max-height:30rem;overflow:auto}.search-modal-list-G_Uxc8 .search-list-item.clickable:hover{cursor:pointer;background-color:#eee}.dataContainer-lJ0PuO{flex-direction:column;display:flex}.dataContainer-lJ0PuO .title-Gj8JxL{color:#000000a6;margin-bottom:2px;font-size:12px;font-weight:400;line-height:20px}.description-miJCbD{color:#000000d9;font-size:18px;font-weight:500;line-height:28px}@media (max-width:1500px){.description-miJCbD{font-size:14px}}.percentContainer-VJxs6L{flex-direction:column;font-size:20px;display:flex}.percentContainer-VJxs6L .percentDescription-ymSkb_{font-size:12px;font-weight:400;line-height:20px}.container-wODg_6{background-color:#fff;align-items:center;margin-bottom:20px;padding:20px 0;display:flex}.container-wODg_6 .chartsContainer-msRyOd{justify-content:space-evenly;width:100%;display:flex}.container-wODg_6 .chartsContainer-msRyOd .chart-GmBMa_{flex:1;justify-content:center;align-items:center;display:flex}.container-wODg_6 .summary-zj0ygd{flex-direction:column;justify-content:center;margin:0 20px;display:flex}.container-wODg_6 .summary-zj0ygd .description-o0ffpO{margin-right:5px;font-size:20px;font-weight:500;line-height:32px}.container-wODg_6 .summary-zj0ygd .unit-n5Yty6{font-size:12px;font-weight:400;line-height:32px}.container-wODg_6 .summary-zj0ygd .totalNumber-UweUl8{margin:4px 0;font-size:13px;font-weight:400;line-height:20px}.cardTitle-xNmEfV{justify-content:space-between;align-items:center;margin-bottom:25px;display:flex}.cardTitle-xNmEfV .title-qIR7dd{color:#000;font-size:14px;font-weight:500;line-height:20px}.bundle-size-editor{flex-grow:1;height:700px;margin-left:40px}.bundle-size-editor .ant-card-body{width:auto;height:calc(100% - 48px);padding:0}.bundle-size-module-bunton{margin-left:4em}.ant-tabs-nav{width:100%}.treemap-DOrYiA{flex-direction:column;gap:16px;display:flex}.treemap-DOrYiA .ant-checkbox-wrapper{font-size:12px;font-weight:200}.treemap-DOrYiA .all-none-checkbox{margin-bottom:4px;font-size:12px;font-weight:500}.treemap-DOrYiA .asset-checkbox-group{gap:8px;font-weight:200;display:flex}.treemap-DOrYiA .chart-container{border:5px solid #fff;border-radius:10px;width:100%;min-height:500px;max-height:1000px}.treemap-DOrYiA .card-body{transition:height .3s cubic-bezier(.4,0,.2,1),padding .3s;overflow:hidden}.treemap-DOrYiA .card-body.collapsed .ant-card-body{height:0;padding:0}.treemap-DOrYiA .checkbox-container{opacity:1;gap:8px;transition:opacity .3s}.treemap-DOrYiA .checkbox-container.collapsed{opacity:0}.treemap-DOrYiA .statistics-space{width:100%}.tooltip-row-sZbl0R{justify-content:space-between;font-size:12px;display:flex}.tooltip-label-INs_JK{color:#999}.tooltip-path-djJmWx{word-wrap:break-word;white-space:normal;word-break:break-all;overflow-wrap:break-word;width:280px;margin-bottom:8px;font-size:12px;line-height:1.4}.collapse-icon-wzQxAS{cursor:pointer;margin-left:8px}.loader-select .ant-select-selector{width:300px}.layer-select .ant-select-selector{width:150px}.loaderAnalysis-h6mG3n .rc-tree{min-width:900px}.loaderAnalysis-h6mG3n .rc-tree .rc-tree-treenode{align-items:center;min-height:30px;display:flex}.loaderAnalysis-h6mG3n .rc-tree .rc-tree-treenode .rc-tree-indent{flex-grow:0;flex-shrink:0;display:flex}.loaderAnalysis-h6mG3n .rc-tree .rc-tree-treenode .rc-tree-switcher{cursor:pointer;flex-grow:0;flex-shrink:0}.loaderAnalysis-h6mG3n .rc-tree .rc-tree-treenode .rc-tree-switcher .file-icon{margin-left:8px;line-height:14px;display:block}.loaderAnalysis-h6mG3n .rc-tree .rc-tree-treenode .rc-tree-node-content-wrapper{flex:1;min-width:0}.dividerDiv-hrfVKQ{flex:1;margin-left:10px;margin-right:10px;position:relative}.divider-hnPRxv{border-color:#0000001f;margin:auto;position:relative;top:50%}.box-lFdvrG{flex-shrink:0}.box-lFdvrG .keyword-UO64w1{flex:none;padding-right:5px}.textBox-sVZZ_A{color:#000000d9;background-color:#fafafa;border:1px solid #d9d9d9;border-radius:2px;justify-content:center;align-items:center;max-width:320px;height:22px;padding:1px 8px;display:flex}.textBox-sVZZ_A .text-omPvlh{font-size:12px;font-weight:400}.space-qT5CaN .ant-space-item{display:flex}.executions-uZxmQC .timeline-wMFXyU .box-lFdvrG{border:1px solid #eaedf1;border-radius:8px;flex-direction:column;width:80%;height:74px;padding:16px;display:flex}.executions-uZxmQC .timeline-wMFXyU .box-lFdvrG:active{background-color:#f2f8ff;border:1px solid #0079ff}.executions-uZxmQC .timeline-wMFXyU .box-lFdvrG .ant-typography{color:#000000a6;font-size:14px}.executions-uZxmQC .timeline-wMFXyU .box-lFdvrG .loader-PHR4ca{color:inherit;align-content:center;height:72px;font-size:14px}.executions-uZxmQC .timeline-wMFXyU .selected-wUMOH3{background-color:#f2f8ff;border:1px solid #0079ff}.plugin-select .ant-select-selector{width:300px}.tree-shaking-page{width:100%;height:100%}.tree-shaking-page .ant-card{flex-direction:column;display:flex}.tree-shaking-page .tree-shaking-statement-side-effect{background:#711f1c;text-decoration:underline}.tree-shaking-page .tree-shaking-statement-declaration-identifier{background:#2c87ec;text-decoration:underline}.tree-shaking-page .tree-shaking-files-box{height:700px}.tree-shaking-page .tree-shaking-files{height:100%;overflow:auto}.tree-shaking-page .tree-shaking-editor{flex-grow:1;height:700px}.tree-shaking-page .tree-shaking-editor .ant-card-body{padding:0}.tree-shaking-page .tree-shaking-files-box,.tree-shaking-page .tree-shaking-editor .ant-card-body{width:auto;height:calc(100% - 48px)}.tree-shaking-page .tree-shaking-export-table .ant-card-body{padding:0}.tree-shaking-page .tree-shaking-export-table .ant-card-body .ant-divider{margin:24px}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td{border-bottom:none}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th{border-top:1px solid #0505050f}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:first-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:first-child:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:first-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:first-child:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:first-child:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:first-child:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-right-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:first-child:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-right-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:first-child:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-right-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:last-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-right-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:last-child:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-right-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:last-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-right-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:last-child:not(:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-right-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:last-child:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-right-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:last-child:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-left-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:last-child:-moz-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-left-radius:0}.tree-shaking-page .tree-shaking-export-table .ant-table-wrapper .ant-table-tbody>tr:last-child>td .ant-table-container table>thead>tr:first-child th th:last-child:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-left-radius:0}.tree-shaking-page .tree-shaking-side-effect-list{flex-direction:column;align-items:flex-start;display:flex}.tree-shaking-page .tree-shaking-side-effect-list .tree-shaking-side-effect-list-item{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.monaco-hover .markdown-hover.hover-row hr{background-color:gray;margin:2px}.monaco-hover .markdown-hover.hover-row div[data-code=tree-shaking-hover] ol{margin:4px 0 10px;padding-left:4px}.monaco-hover .markdown-hover.hover-row div[data-code=tree-shaking-hover] ol pre{margin:2px 0}.header-switch .ant-switch-handle{top:1px!important}.header-icon{-webkit-user-select:none;user-select:none}.header-icon:hover{color:#1668dc}.header-icon:active{color:#40a9ff}.rsdoctor-logo{cursor:pointer;height:30px}.rsdoctor-logo:active{opacity:.8}html{-webkit-text-size-adjust:100%;line-height:1.15}body{margin:0}main{display:block}h1{margin:.67em 0;font-size:2em}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace;font-size:1em}a{background-color:#0000}abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:100%;line-height:1.15}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner{border-style:none;padding:0}[type=button]::-moz-focus-inner{border-style:none;padding:0}[type=reset]::-moz-focus-inner{border-style:none;padding:0}[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring{outline:1px dotted buttontext}[type=button]:-moz-focusring{outline:1px dotted buttontext}[type=reset]:-moz-focusring{outline:1px dotted buttontext}[type=submit]:-moz-focusring{outline:1px dotted buttontext}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;white-space:normal;max-width:100%;padding:0;display:table}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button{height:auto}[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template,[hidden]{display:none}.body{font-size:12px}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
</div>
|
|
28
28
|
`.trim()}let sM=e=>{let{plugins:t,defaultDatas:r=[],type:n}=e,{isDark:s}=t7(),i=(0,E.useRef)(null),[l,a]=(0,E.useState)([]);return(0,E.useEffect)(()=>{let e=[];t.forEach(t=>{t.data.forEach(r=>{e.push({p:t.hook,n:`${t.tapName}`,s:r.startAt,e:r.endAt})})}),a([...sS(r),...sS(e)])},[]),(0,v.jsx)("div",{className:["loader-chart-container",s?"loader-chart-container_dark":""].join(" ").trim(),ref:i,style:{width:"100%"},children:(0,v.jsx)(X,{pluginsData:l,formatterFn:sP,chartType:n})})},sC=()=>(0,v.jsx)(r$.Z,{message:(0,v.jsxs)(rh.Z.Text,{children:[(0,v.jsx)(rh.Z.Text,{children:"make sure that you have turn on "}),(0,v.jsxs)(rh.Z.Text,{children:[" ","in configuration for the Rsdoctor plugin."]})]}),type:"info",showIcon:!0}),sk=e=>{let{summary:t}=e,{costs:r=[]}=t||{};return r.find(e=>e.name===et.Bootstrap)?(0,v.jsx)(r9,{containerProps:{style:{display:"inline"}},drawerProps:{title:'Chart of the "Bootstrap -> BeforeCompile" stage'},text:(0,v.jsx)(tv.Z,{children:"detail"}),children:(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetPluginData,body:{hooks:["environment","afterEnvironment","entryOption","afterPlugins","afterResolvers","initialize","beforeRun","run","watchRun","normalModuleFactory","contextModuleFactory","beforeCompile"]},children:e=>e&&e.length?(0,v.jsx)(sM,{plugins:e,type:H.Bootstrap}):(0,v.jsx)(sC,{})})}):null};var sw=r(87143);let sZ=e=>{let{dataSource:t}=e;return(0,v.jsx)(sw.Z,{dataSource:t,rowKey:e=>`${e.tapName}_${e.hook}`,columns:[{title:"Plugin Tap Name",render:(e,t)=>t.tapName},{title:"Hook",render:(e,t)=>t.hook},{title:"calls",render:(e,t)=>(0,v.jsx)(rp.Z,{title:`"${t.hook}" has been called ${t.data.length} times by "${t.tapName}"`,children:t.data.length}),sorter:(e,t)=>e.data.length-t.data.length},{title:"duration(total)",render:(e,t)=>rn((0,rE.Z)(t.data,e=>e.costs)),sorter:(e,t)=>(0,rE.Z)(e.data,e=>e.costs)-(0,rE.Z)(t.data,e=>e.costs),defaultSortOrder:"descend"}]})},sD=e=>{let{summary:t}=e,{costs:r=[]}=t||{},n=r.find(e=>e.name===et.Done),s='of the "AfterCompile -> Done" stage';return n?(0,v.jsx)(r9,{containerProps:{style:{display:"inline"}},drawerProps:{title:`Details ${s}`},text:(0,v.jsx)(tv.Z,{children:"detail"}),children:(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetPluginData,body:{hooks:["afterCompile","shouldEmit","emit","afterEmit","assetEmitted","done"]},children:e=>e&&e.length?(0,v.jsxs)(tv.Z,{direction:"vertical",style:{width:"100%"},children:[(0,v.jsx)(rb,{title:`Plugin DataSource of ${s}`,collapsable:!0,children:(0,v.jsx)(sZ,{dataSource:e})}),(0,v.jsx)(rI.Z,{}),(0,v.jsx)(rb,{title:`Chart ${s}`,children:(0,v.jsx)(sM,{plugins:e,type:H.Done})})]}):(0,v.jsx)(sC,{})})}):null},sA=e=>{let{summary:t}=e,{costs:r=[]}=t||{};return r.find(e=>e.name===et.Minify)?(0,v.jsx)(r9,{containerProps:{style:{display:"inline"}},drawerProps:{title:'Details of the "Minify" stage'},text:(0,v.jsx)(tv.Z,{children:"detail"}),children:(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetPluginData,body:{hooks:["processAssets","optimizeChunkAssets"]},children:e=>e&&e.length?(0,v.jsxs)(tv.Z,{direction:"vertical",style:{width:"100%"},children:[(0,v.jsx)(rb,{title:'Plugin DataSource of the "Minify"',collapsable:!0,children:(0,v.jsx)(sZ,{dataSource:e})}),(0,v.jsx)(rI.Z,{}),(0,v.jsx)(rb,{title:'Chart of the "Minify"',children:(0,v.jsx)(sM,{plugins:e,type:H.Minify})})]}):(0,v.jsx)(sC,{})})}):null},s_=e=>{let{children:t,name:r,showDivider:n=!0}=e;return(0,v.jsxs)(rh.Z.Text,{style:{color:"inherit"},children:[(0,v.jsx)(rh.Z.Text,{style:{color:"inherit"},children:r}),n?(0,v.jsx)(rI.Z,{type:"vertical"}):null,t]})},sO=e=>{var t;let{summary:r}=e,{t:n}=tH();if(!(null==r||null==(t=r.costs)?void 0:t.length))return null;let s=Math.max(...r.costs.map(e=>e.costs));return(0,v.jsx)(rb,{className:ss,children:(0,v.jsx)("div",{children:(0,v.jsxs)(tv.Z,{style:{wordBreak:"break-all",width:"100%",marginTop:"0"},size:20,direction:"vertical",children:[(0,v.jsx)("div",{className:"title-wq4_QM",children:n("Compile Overall")}),r.costs.map(e=>{let{name:t,costs:n}=e,i=(0,v.jsx)(sy.Z,{className:"progress-y4rFf4",percent:100*n/s,status:"normal",format:()=>rn(n)});switch(t){case et.Bootstrap:return(0,v.jsxs)(s_,{name:"Bootstrap ~ BeforeCompile",children:[(0,v.jsx)(sk,{summary:r}),i]},t);case et.Compile:return(0,v.jsx)(s_,{name:"Compile",showDivider:!1,children:i},t);case et.Done:return(0,v.jsxs)(s_,{name:"AfterCompile ~ Done",children:[(0,v.jsx)(sD,{summary:r}),i]},t);case et.Minify:return(0,v.jsxs)(s_,{name:"Minify",children:[(0,v.jsx)(sA,{summary:r}),i]},t);default:return null}})]})})})};var sI=r(70655),sT=r(55297),sE=r(92960),sN=r(40026),sz=r(76884),sR=r(37804),sB=r.n(sR);let sL=r5({Component:e=>{let{defaultKeys:t,configs:r}=e,n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e.find(e=>"webpack"===e.name||"rspack"===e.name):null}(r||[]);if(!n)return null;let{config:s,version:i,name:l}=n,a=Object.keys(s),[o,d]=(0,E.useState)(t||a);return(0,v.jsxs)(r9,{text:(0,v.jsxs)("div",{className:"title-BZ9xk1",children:[(0,v.jsx)("span",{style:{marginRight:"8px",fontSize:"13px"},children:"View Bundler Config"}),(0,v.jsx)(tj.Z,{style:{fontSize:"10px"}})]}),children:[(0,v.jsxs)(rR.Z,{children:[(0,v.jsx)(rV,{text:"Bundler Config Viewer"}),(0,v.jsx)(rI.Z,{}),(0,v.jsxs)(tv.Z,{children:[(0,v.jsx)(rh.Z.Text,{children:"Properties: "}),(0,v.jsx)(nY.Z,{dropdownStyle:{zIndex:999},mode:"multiple",allowClear:!0,value:o.length===a.length?[]:o,style:{width:350},popupMatchSelectWidth:!0,placeholder:"Show Selected Properties Only.",onChange:e=>{d(e)},children:a.map(e=>(0,v.jsx)(nY.Z.Option,{label:e,value:e,children:e},e))})]}),(0,v.jsx)(rI.Z,{})]}),(0,v.jsx)(sB(),{name:i&&"unknown"!==i?`${l}@${i}`:"webpack.config",theme:"monokai",src:0===o.length?s:function(e,t){let r={};for(let n=0;n<t.length;n++){let s=t[n];Object.hasOwn(e,s)&&(r[s]=e[s])}return r}(s,o),displayDataTypes:!1,displayObjectSize:!1,style:{overflowX:"auto"}})]})},api:ee.SDK.ServerAPI.API.LoadDataByKey,responsePropName:"configs",body:{key:"configs"},showSkeleton:!1}),sF=e=>{let{configs:t=[],cwd:r,envinfo:n,alerts:s=[]}=e,{t:i}=tH(),l=s.filter(e=>"warn"===e.level).length,a=s.length-l,o=[...Object.keys(n).map(e=>{let t=/Version$/,r=t.test(e);return{key:e,label:r?e.replace(t,""):e,children:n?n[e]:void 0}}),...t.filter(e=>!!e.version).map(e=>{let{name:t,version:r}=e;return{key:t,label:t,children:r}}),{key:"cwd",label:"cwd",children:r}];return(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let t=t8(e.all.total.size),r=e.all.total.count,[n,s]=t.split(" "),d=[{title:"Errors",description:(0,v.jsx)("span",{style:{color:"#FF4D4F"},children:a}),icon:(0,v.jsx)(sI.C,{style:{background:"#FF4D4F"},shape:"circle",icon:(0,v.jsx)(sT.Z,{style:{fontSize:"18px"}})})},{title:"Warnings",description:(0,v.jsx)("span",{style:{color:"#FAAD14"},children:l}),icon:(0,v.jsx)(sI.C,{style:{background:"#FAAD14"},shape:"circle",icon:(0,v.jsx)(sE.Z,{style:{fontSize:"18px"}})})},{title:"Total Files",description:(0,v.jsx)("span",{children:r}),icon:(0,v.jsx)(sI.C,{style:{background:"#3874F6"},shape:"circle",icon:(0,v.jsx)(sN.Z,{style:{fontSize:"18px"}})})},{title:"Total Size",description:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("span",{style:{fontSize:"20px"},children:n}),(0,v.jsx)("span",{style:{fontSize:"13px",marginLeft:"5px"},children:s})]}),icon:(0,v.jsx)(sI.C,{style:{background:"rgba(226, 129, 73)"},shape:"circle",icon:(0,v.jsx)(sz.Z,{style:{fontSize:"18px"}})})}];return(0,v.jsx)(rb,{className:ss,children:(0,v.jsxs)("div",{children:[(0,v.jsxs)("div",{className:"title-cqt0lp",children:[(0,v.jsx)("span",{className:"left-sk7eLC",children:i("Project Overall")}),(0,v.jsx)(sL,{})]}),(0,v.jsx)("div",{className:"overview-ZAp1A3",children:d.map((e,t)=>(0,v.jsx)(rO,{title:e.title,description:(0,v.jsx)("span",{children:e.description}),icon:e.icon},t))}),(0,v.jsx)(sn.Z,{className:"projectOverall-T7onhG",items:o})]})})}})},sG=e=>{let{children:t}=e;return(0,v.jsx)(n8.Z,{vertical:!0,className:"layout-izKUgB",children:t.map(e=>(0,v.jsx)("div",{className:"row-RDk0Pl",children:e}))})},s$=r5({api:ee.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:e=>{let{project:t}=e,{summary:r,configs:n,root:s,envinfo:i,errors:l}=t;return(0,v.jsx)("div",{className:"overall-MGHzQh",children:(0,v.jsxs)(n8.Z,{style:{width:"100%"},children:[(0,v.jsx)("div",{style:{flex:3,marginRight:"16px",maxWidth:"75%"},children:(0,v.jsxs)(sG,{children:[(0,v.jsx)(sF,{configs:n,cwd:s,envinfo:i,alerts:l}),(0,v.jsx)(nP,{})]})}),(0,v.jsx)("div",{style:{flex:1},children:(0,v.jsxs)(sG,{children:[(0,v.jsx)(sx,{errors:l,cwd:s}),(0,v.jsx)(sO,{summary:r}),(0,v.jsx)(st,{})]})})]})})}});var sK=r(23379),sW=r(1785),sH=r(92929),sU=r(71777),sV=r(83287);let sq="text-QI6k9S",sJ=e=>{let{text:t,keyword:r,...n}=e;if(!r||-1===t.indexOf(r))return sY({text:t,rest:n});let s=[],i=t;for(;i.length>0;){let e=i.indexOf(r);if(e>-1)0!==e&&s.push(sY({text:i,els:s})),s.push(sY({text:i,els:s,marked:!0})),i=i.slice(e+r.length);else{s.push(sY({text:i,els:s,marked:!0}));break}}return(0,v.jsx)(rh.Z.Text,{className:sq,...n,children:s})},sY=e=>{let{text:t,els:r,marked:n=!1,rest:s}=e;if(!t)return null;let i=t.length;if(i>40){let e=Math.floor(18.5),r=Math.ceil(18.5);return(0,v.jsx)(sV.Z,{content:t,placement:"left",children:(0,v.jsx)("div",{children:(0,v.jsxs)(rh.Z.Text,{className:sq,mark:!!n,...s,children:[t.slice(0,e),"...",t.slice(i-r)]})})})}return(0,v.jsx)(sV.Z,{content:t,children:(0,v.jsx)("div",{children:(0,v.jsx)(rh.Z.Text,{className:sq,...s,children:t},r?r.length:0)})})};var sQ=r(4166),sX=r(51971);let s0=(0,E.createContext)({setModuleJumpList(e){},moduleJumpList:[]});var s1=r(92382),s5=r(91668),s2=r(34738),s4=r(56434);let s6="file-tree-com",s3=e=>{let{treeData:t,needJumpto:r=!1,defaultOpened:n=!1,defaultOpenFather:s=0}=e,{required:i,handlers:l}=(0,s4.Du)({id:`${s6}-tree`,data:t||[],defaultOpened:n,multipleSelect:!1,refreshAsyncNodes:!0}),a=(0,E.useCallback)(e=>{var t;let{node:n,onToggle:i}=e;s&&n.data.level<s&&n.setOpened(!0);let l=tO(n.data.name);return(0,v.jsx)("div",{className:`${s6}-titles-box`,children:(0,v.jsx)("div",{className:`${s6}-titles`,children:(0,v.jsx)(tv.Z,{direction:"vertical",children:(0,v.jsx)("div",{className:`${s6}-node-title`,children:(0,v.jsxs)(tv.Z,{children:[(0,v.jsx)("div",{onClick:i,children:(0,v.jsxs)(tv.Z,{children:[!n.options.opened&&(null==(t=n.data.children)?void 0:t.length)?(0,v.jsx)(s1.Z,{style:{color:"lightblue"}}):(0,v.jsx)(s5.Z,{style:{color:"lightblue"}}),l,(0,v.jsx)(sV.Z,{content:(0,v.jsx)(v.Fragment,{children:n.data.__RESOURCEPATH__?(0,v.jsx)(rh.Z.Text,{code:!0,children:n.data.__RESOURCEPATH__},`${n.data.name}-popover-path`):(0,v.jsx)(v.Fragment,{})}),title:"INFO",trigger:"hover",children:(0,v.jsx)(rh.Z.Text,{children:n.data.name})},`${n.data.name}popover`)]})}),(0,v.jsx)(tv.Z,{children:r&&(0,v.jsx)(s0.Consumer,{children:e=>{let{moduleJumpList:t,setModuleJumpList:r}=e;return(0,v.jsx)(s2.Z,{onClick:()=>{let e=[...t];e.push(+n.id),r(e)}})}})})]})})})})},n.data.name)},[]);return(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(s4.ZP,{...i,...l,horizontalLineStyles:{stroke:"#c4c4c4",strokeWidth:2,strokeDasharray:"1 1"},verticalLineStyles:{stroke:"#c4c4c4",strokeWidth:2,strokeDasharray:"1 1"},draggable:!1,depthGap:14,gapMode:"padding",disableLines:!1,disableTransitions:!0,disableHorizontalLines:!1,disableVerticalLines:!1,verticalLineTopOffset:0,verticalLineOffset:5,renderNode:a})})};ee.Client.RsdoctorClientRoutes.ModuleAnalyze;let s7="module-analyze",s9=(0,E.memo)(e=>{let{dependencies:t,cwd:r,module:n}=e,s=(0,E.useMemo)(()=>e4(n.dependencies.map(e=>{let r=t.find(t=>t.id===e);if(r)return{__RESOURCEPATH__:r.resolvedRequest||"",id:r.dependency,key:r.resolvedRequest,name:to(r.resolvedRequest)||"",level:1,kind:r.kind,concatModules:void 0}})),[n]);return(0,v.jsx)(rR.Z,{justify:"start",align:"middle",children:(0,v.jsx)(rB.Z,{span:24,children:s.length?(0,v.jsx)(s3,{treeData:s,needJumpto:!0,cwd:r}):(0,v.jsx)(ra.Z,{})})})}),s8=(e,t)=>{var r;return(null==e||null==(r=e.imported)?void 0:r.length)?e4(e.imported.map(e=>t.find(t=>t.id===Number(e)))):[]},ie=e=>{var t;let{curModule:r,modules:n,dependencies:s,cwd:i,activeTabKey:l,selectedChunk:a=""}=e,[o,d]=(0,E.useState)([]),{data:c}=(0,E.useMemo)(()=>o&&(null==o?void 0:o.length)?{data:e4(null==o?void 0:o.map((e,t)=>({key:`0-${t}`,name:to(e.path),__RESOURCEPATH__:e.path,id:e.id,level:1,chunks:e.chunks,size:t8(e.size.parsedSize),kind:e.kind,concatModules:e.concatenationModules,fatherPath:to(r.path),dependencies:e.dependencies,getChildren:()=>(function e(t,r,n){let s=s8(t,r);return null==s?void 0:s.map((s,i)=>({key:`0-${i}`,name:to(s.path),__RESOURCEPATH__:s.path,id:s.id,level:1,size:t8(s.size.parsedSize),kind:s.kind,chunks:s.chunks,concatModules:s.concatenationModules,fatherPath:to(n.path),dependencies:s.dependencies,getChildren:()=>e(s,r,t),children:s.imported}))})(e,n,r),children:e.imported})))}:{filterData:[],data:[]},[o,r]);return(0,E.useEffect)(()=>{d(s8(r,n))},[r,n]),(0,v.jsx)(v.Fragment,{children:l===ii[ii.Reasons]?(0,v.jsx)(v.Fragment,{children:o?(0,v.jsx)(s3,{cwd:i,treeData:c,needCode:!0,needShowAllTree:!0,needJumpto:!0,selectedChunk:a}):(0,v.jsx)(ra.Z,{className:`${s7}-empty`})}):l===ii[ii.Dependencies]?(0,v.jsx)("div",{className:`${s7}-file-tree`,style:{padding:w.BasePadding/2},children:(0,v.jsx)(rB.Z,{span:24,style:{marginTop:w.BasePadding/2},children:r?(0,v.jsx)(s9,{module:r,dependencies:s,cwd:i}):(0,v.jsx)(ra.Z,{className:`${s7}-empty`})})}):(0,v.jsx)("div",{children:null==(t=r.bailoutReason)?void 0:t.map(e=>(0,v.jsx)("div",{style:{marginBottom:10},children:(0,v.jsx)(rl.Z,{children:(0,v.jsx)(sV.Z,{content:e,children:(0,v.jsx)("span",{style:{display:"inline-block"},children:e.length>120?`${e.slice(0,120)}...`:e})})},e)}))})})};var it=r(3255),ir=r(50417),is=r(19892),ii=((p={})[p.Reasons=0]="Reasons",p[p.Dependencies=1]="Dependencies",p[p.BailoutReason=2]="BailoutReason",p);let il=[{key:ii[0],label:ii[0]},{key:ii[1],label:ii[1]},{key:ii[2],label:ii[2]}],ia=e=>{let{modules:t,cwd:r,moduleId:n,show:s,setShow:i}=e,[l,a]=(0,E.useState)(""),[o,d]=(0,E.useState)(ii[0]);return(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetModuleDetails,body:{moduleId:+n},children:e=>{let{module:n,dependencies:a}=e;return(0,v.jsx)(rz.Z,{title:(0,v.jsxs)("div",{className:"module-analyze-box",children:[(0,v.jsx)(rh.Z.Text,{children:to(n.path)}),(0,v.jsx)(rh.Z.Text,{style:{fontSize:12,color:"rgba(0, 0, 0, 0.45)"},children:`Current Module: ${n.path}`})]}),open:s,maskClosable:!0,width:.8*D,onClose:()=>i(!1),children:(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetAllChunkGraph,body:{},children:e=>(0,v.jsx)(s0.Consumer,{children:e=>{let{moduleJumpList:s,setModuleJumpList:i}=e;return(0,v.jsx)(ru.Z,{style:{minHeight:400},tabList:il,activeTabKey:o,tabProps:{size:"small",style:{fontSize:12}},onTabChange:e=>d(e),styles:{title:{paddingTop:0}},title:(0,v.jsxs)(tv.Z,{style:{padding:"10px 0px"},children:[(0,v.jsx)(it.Z,{onClick:()=>{i([...s.slice(0,-1)])}}),(0,v.jsx)(rh.Z.Text,{children:"Current Module Imported Reasons Tree"}),(0,v.jsx)(sV.Z,{content:(0,v.jsx)("div",{children:(0,v.jsxs)("div",{children:[(0,v.jsx)(nM.Z,{status:"success",text:" "}),(0,v.jsx)(ir.Z,{}),(0,v.jsx)(rh.Z.Text,{children:": Jump button, click to jump to the Module dependency analysis page of this module."})]})}),title:"Usage",children:(0,v.jsx)(is.Z,{})})]}),children:(0,v.jsx)(rR.Z,{justify:"start",align:"middle",children:(0,v.jsx)(rB.Z,{span:24,children:(0,v.jsx)(ie,{curModule:n,modules:t,dependencies:a,cwd:r,selectedChunk:l,activeTabKey:o})})})})}})})})}})},io={assets:"assets-ll1P_L",assetBox:"assetBox-Y8vGse",fileText:"fileText-W0quVZ","bundle-tree":"bundle-tree-IbtEQg",bundleTree:"bundle-tree-IbtEQg",box:"box-On1BLb",keyword:"keyword-PqQzB1",divider:"divider-asnppW",dividerDiv:"dividerDiv-s50mAr",assetsTag:"assetsTag-eAVvyj",bundle:"bundle-cPw2Kc","bundle-size-card":"bundle-size-card-N8rW3d",bundleSizeCard:"bundle-size-card-N8rW3d","ant-tabs-tab":"ant-tabs-tab-SpEjsl",antTabsTab:"ant-tabs-tab-SpEjsl",modal:"modal-afyzYa","search-btn":"search-btn-To902q",searchBtn:"search-btn-To902q","search-modal-list":"search-modal-list-G_Uxc8",searchModalList:"search-modal-list-G_Uxc8"},{DirectoryTree:id}=sr.Z,ic=[],iu={margin:"none",marginInlineEnd:0},ih=()=>(0,v.jsx)(ra.Z,{description:`Do not have the module code.
|
|
29
29
|
(1) If you use the brief mode, there will not have any codes to show.
|
|
30
|
-
(2) If you use lite mode, there will not have source codes.`}),ip=e=>{let{data:t}=e,[r,n]=(0,E.useState)(""),{t:s}=tH(),i={source:"Source Code",transformed:`Transformed Code(${s("After Compile")})`,parsedSource:`Bundled Code(${s("After Bundled")})`};if(!t)return null;let{path:l}=t;return(0,v.jsx)(r9,{text:"",buttonProps:{size:"small",icon:(0,v.jsx)(sV.Z,{content:"Open the Codes Box",children:(0,v.jsx)(sK.Z,{})}),type:"default"},buttonStyle:{padding:"0 4px"},drawerProps:{destroyOnClose:!0,title:`Code of "${l}"`},children:(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetModuleCodeByModuleId,body:{moduleId:t.id},children:e=>(0,v.jsx)(v.Fragment,{children:e.source||e.parsedSource||e.transformed?(0,v.jsx)(ru.Z,{className:"code-size-card",style:{width:"100%"},tabList:Object.keys((0,sX.Z)(e,e=>!e)).map(e=>({tab:e})).map(e=>({...e,tab:i[e.tab],key:e.tab})),defaultActiveTabKey:e.parsedSource?"parsedSource":"source",onTabChange:e=>n(e),tabBarExtraContent:(0,v.jsx)(sV.Z,{placement:"bottom",title:(0,v.jsx)(rh.Z.Title,{level:5,children:"Explain"}),content:(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)("div",{style:{display:"flex",flexDirection:"column",marginBottom:30},children:[(0,v.jsxs)("div",{children:[(0,v.jsx)(rh.Z.Text,{strong:!0,children:"Source: "}),(0,v.jsx)(rh.Z.Text,{children:"source code"})]}),(0,v.jsxs)("div",{children:[(0,v.jsx)(rh.Z.Text,{strong:!0,children:"Transformed:"}),(0,v.jsx)(rh.Z.Text,{children:"Transformed Code (After compile)"})]}),(0,v.jsxs)("div",{children:[(0,v.jsx)(rh.Z.Text,{strong:!0,children:"Bundled Source:"}),(0,v.jsx)(rh.Z.Text,{children:"Bundled Code (After bundle and tree-shaking)"})]}),(0,v.jsx)("br",{}),(0,v.jsx)(rh.Z.Text,{strong:!0,children:"More"}),(0,v.jsx)(rh.Z.Text,{children:s("CodeModeExplain")})]})}),trigger:"hover",children:(0,v.jsx)("a",{href:"#",children:"Explain"})}),styles:{body:{padding:0,overflow:"hidden"}},children:e.parsedSource||e.source||e.transformed?(0,v.jsx)(nG,{isEmbed:!0,code:r?e[r]:e.parsedSource?e.parsedSource:e.source,filePath:l}):(0,v.jsx)(ih,{})}):(0,v.jsx)(ih,{})})})})},im=e=>{let{id:t,show:r,setShow:n,cwd:s}=e;return t?(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetAllModuleGraph,body:{},children:e=>(0,v.jsx)(ia,{cwd:s,moduleId:t,modules:e,show:r,setShow:n})}):null},ig="__RESOURCEPATH__",ix=e=>{let{modules:t,chunks:r,filteredModules:n}=e,{sourceSize:s,parsedSize:i,filteredParsedSize:l,filteredSourceSize:a}=(0,E.useMemo)(()=>({sourceSize:(0,rE.Z)(t,e=>e.size.sourceSize),parsedSize:(0,rE.Z)(t,e=>e.size.parsedSize),filteredSourceSize:(0,rE.Z)(n,e=>e.size.sourceSize),filteredParsedSize:(0,rE.Z)(n,e=>e.size.parsedSize)}),[t,n]);return(0,v.jsxs)(tv.Z,{children:[(0,v.jsx)(rp.Z,{title:`total modules count is ${t.length}, the filtered modules count is ${n.length}`,children:(0,v.jsxs)(tv.Z,{children:[(0,v.jsxs)(rh.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules: ",n.length," / ",t.length]}),(0,v.jsx)(rW.Z,{})]})}),(0,v.jsx)(rI.Z,{type:"vertical"}),(0,v.jsx)(rp.Z,{title:(0,v.jsxs)(tv.Z,{direction:"vertical",children:[(0,v.jsxs)(rh.Z.Text,{style:{color:"inherit"},children:["Total modules bundled size: ",t8(i)]}),(0,v.jsxs)(rh.Z.Text,{style:{color:"inherit"},children:["Total modules source size: ",t8(s)]}),(0,v.jsxs)(rh.Z.Text,{style:{color:"inherit"},children:["Filtered modules bundled size: ",t8(l)]}),(0,v.jsxs)(rh.Z.Text,{style:{color:"inherit"},children:["Filtered modules source size: ",t8(a)]})]}),children:(0,v.jsxs)(tv.Z,{children:[(0,v.jsxs)(rh.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules Size:",l===i?t8(i):`${t8(l)} / ${t8(i)}`]}),(0,v.jsx)(rW.Z,{})]})}),(0,v.jsx)(rI.Z,{type:"vertical"}),(0,v.jsx)(rp.Z,{title:(0,v.jsxs)(tv.Z,{direction:"vertical",children:[(0,v.jsxs)(rh.Z.Text,{style:{color:"inherit"},children:["this asset includes ",r.length," chunks:"]}),r.map(e=>(0,v.jsx)(rJ,{label:"chunk",value:e.name},e.name))]}),children:(0,v.jsxs)(tv.Z,{children:[(0,v.jsxs)(rh.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Chunks: ",r.length]}),(0,v.jsx)(rW.Z,{})]})})]})},iy=e=>{let{moduleCount:t}=e;return(0,v.jsx)(rp.Z,{title:(0,v.jsx)(tv.Z,{children:(0,v.jsxs)(rh.Z.Text,{style:{color:"inherit"},children:["This is a concatenated container module that includes ",t," ","modules"]})}),children:(0,v.jsx)(rl.Z,{color:"blue",style:iu,children:"concatenated container"})})},iv=e=>{let{size:t}=e;return(0,v.jsx)(rp.Z,{title:(0,v.jsx)(tv.Z,{children:(0,v.jsx)(rh.Z.Text,{style:{color:"inherit"},children:"The total output size of all the files in this folder. If you enabled minification, this value shows the minified size."})}),children:(0,v.jsx)(rl.Z,{style:iu,color:"geekblue",children:`bundled size: ${t8(t)}`})})},ij=e=>{let{size:t}=e;return(0,v.jsx)(rp.Z,{title:(0,v.jsx)(tv.Z,{children:(0,v.jsx)(rh.Z.Text,{style:{color:"inherit"},children:"The final output size of this file. If you enabled minification, this value shows the minified size."})}),children:(0,v.jsx)(rl.Z,{color:"geekblue",children:`bundled size: ${t8(t)}`})})},ib=e=>{let{size:t}=e;return(0,v.jsx)(rp.Z,{title:(0,v.jsx)(tv.Z,{children:(0,v.jsx)(rh.Z.Text,{style:{color:"inherit"},children:"The compressed file size that users actually download, as most web servers use gzip compression."})}),children:(0,v.jsx)(rl.Z,{color:"orange",children:`gzipped: ${t8(t)}`})})},iS=e=>{let{size:t}=e;return(0,v.jsx)(rp.Z,{title:(0,v.jsx)(tv.Z,{children:(0,v.jsx)(rh.Z.Text,{style:{color:"inherit"},children:"The total original size of all the files in this folder, before any transformations and minification."})}),children:(0,v.jsx)(rl.Z,{style:iu,color:"cyan",children:`source size: ${t8(t)}`})})},iP=e=>{let{size:t}=e;return(0,v.jsx)(rp.Z,{title:(0,v.jsx)(tv.Z,{children:(0,v.jsx)(rh.Z.Text,{style:{color:"inherit"},children:"The original size of this file, before any transformations and minification."})}),children:(0,v.jsx)(rl.Z,{color:"cyan",children:`source size: ${t8(t)}`})})},iM=e=>{let{asset:t,chunks:r,modules:n,moduleSizeLimit:s,height:i,root:l}=e,[a,o]=(0,E.useState)(""),[d,c]=(0,E.useState)(!1),[u,h]=(0,E.useState)([]),[p,f]=(0,E.useState)(!1),m=(0,E.useMemo)(()=>{let e=n.slice();if(a){let t=RegExp(a,"i");e=e.filter(e=>t.test(e.path))}return s&&(e=e.filter(e=>e.size.parsedSize>=s)),e},[n,a,s]),g=(0,E.useMemo)(()=>tz({files:m.map(e=>e.path).filter(Boolean),inlinedResourcePathKey:ig,fileTitle(e,t){var r;let s=m.find(t=>t.path===e);if(!s)return t;let{parsedSize:i=0,sourceSize:l=0,gzipSize:a=0}=s.size,o=s.kind===ee.SDK.ModuleKind.Concatenation,d=!o&&0===i&&n.filter(e=>e!==s&&e.modules&&e.modules.indexOf(s.id)>-1);return(0,v.jsxs)("div",{className:io["bundle-tree"],children:[(0,v.jsx)(sV.Z,{content:`Open the ${t}\u{2019}s module reasons tree.`,placement:"bottom",children:(0,v.jsxs)("div",{className:io.box,onClick:()=>{h([s.id]),f(!0)},children:[(0,v.jsx)("div",{className:io.keywords,children:(0,v.jsx)(sJ,{ellipsis:!0,text:t,keyword:""})}),(0,v.jsx)("div",{className:io.dividerDiv,children:(0,v.jsx)(rI.Z,{className:io.divider,dashed:!0})})]})}),(0,v.jsxs)(tv.Z,{children:[0!==i?(0,v.jsx)(v.Fragment,{children:"number"==typeof a?(0,v.jsx)(sV.Z,{placement:"bottom",content:(0,v.jsx)(iP,{size:l}),children:(0,v.jsxs)(tv.Z,{direction:"horizontal",children:[(0,v.jsx)(ij,{size:i}),(0,v.jsx)(ib,{size:a})]})}):(0,v.jsxs)(tv.Z,{direction:"horizontal",children:[(0,v.jsx)(ij,{size:i}),(0,v.jsx)(iP,{size:l})]})}):0!==l?(0,v.jsx)(iP,{size:l}):null,o?(0,v.jsx)(iy,{moduleCount:(null==(r=s.modules)?void 0:r.length)||0}):null,d&&d.length?(0,v.jsx)(rp.Z,{title:(0,v.jsxs)(tv.Z,{direction:"vertical",children:[(0,v.jsx)(rh.Z.Text,{style:{color:"inherit"},children:"This module is concatenated into another container module:"}),d.map(e=>{let{id:t,path:r}=e;if(r.startsWith("data:text/javascript;"))return(0,v.jsx)(rh.Z.Paragraph,{ellipsis:{rows:4},style:{color:"inherit",maxWidth:"100%"},code:!0,children:r},t);let n=(0,eu.relative)((0,eu.dirname)(s.path),r);return n.startsWith("javascript;charset=utf-8;base64,")?(0,v.jsx)(rh.Z.Text,{style:{color:"inherit",maxWidth:"100%"},code:!0,children:"."===n[0]?n:`./${n}`},t):(0,v.jsx)(rh.Z.Text,{style:{color:"inherit"},code:!0,children:"."===n[0]?n:`./${n}`},t)})]}),children:(0,v.jsx)(rl.Z,{color:"green",children:"concatenated"})}):null,(0,v.jsx)(ip,{data:s})]})]})},dirTitle(e,t){let r=function e(t,r){return t.children&&t.children.forEach(t=>{t.isLeaf?r.push(t[ig]):e(t,r)}),r}(e,[]);if(r.length){let e=r.map(e=>n.find(t=>t.path===e)),s=(0,rE.Z)(e,e=>{var t;return(null==(t=e.size)?void 0:t.parsedSize)||0}),i=(0,rE.Z)(e,e=>{var t;return(null==(t=e.size)?void 0:t.sourceSize)||0});return(0,v.jsxs)("div",{className:io["bundle-tree"],children:[(0,v.jsxs)("div",{className:io.box,children:[(0,v.jsx)("div",{className:io.keywords,children:(0,v.jsx)(sJ,{ellipsis:!0,text:t,keyword:""})}),(0,v.jsx)("div",{className:io.dividerDiv,children:(0,v.jsx)(rI.Z,{className:io.divider,dashed:!0})})]}),(0,v.jsx)(tv.Z,{children:s>0?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(iv,{size:s}),(0,v.jsx)(iS,{size:i})]}):(0,v.jsx)(iS,{size:i})})]})}return t},page:"bundle"}),[m]);return(0,E.useEffect)(()=>{o(""),c(!1)},[t]),(0,E.useEffect)(()=>{c(!1)},[a]),(0,v.jsx)(s0.Provider,{value:{moduleJumpList:u,setModuleJumpList:h},children:(0,v.jsxs)(ru.Z,{className:io.bundle,title:`Modules of "${t.path}"`,bodyStyle:{minHeight:i},size:"small",children:[n.length?(0,v.jsxs)(rR.Z,{children:[(0,v.jsx)(rB.Z,{span:24,children:(0,v.jsx)(ix,{modules:n,chunks:r,filteredModules:m})}),(0,v.jsx)(rB.Z,{span:24,children:(0,v.jsxs)(tv.Z,{children:[(0,v.jsx)(nH,{placeholder:"search module by keyword",onChange:e=>o(e)},t.path),(0,v.jsx)(rS.ZP,{onClick:()=>c(!0),size:"small",icon:(0,v.jsx)(sQ.Z,{})})]})}),(0,v.jsx)(rB.Z,{span:24,style:{marginTop:w.BasePadding},children:m.length?(0,v.jsx)(id,{selectable:!1,defaultExpandAll:d||m.length<=20,onExpand:e=>{ic=e},defaultExpandParent:!0,defaultExpandedKeys:(null==ic?void 0:ic.length)?ic:1===g.length?[g[0].key]:[],treeData:g,rootStyle:{maxHeight:"500px",overflow:"auto",border:"1px solid rgba(235, 237, 241)",padding:"14px 20px"}},`tree_${a}_${d}_${t.path}`):(0,v.jsx)(ra.Z,{description:(0,v.jsx)(rh.Z.Text,{strong:!0,children:`"${a}" can't match any modules`})})})]}):(0,v.jsx)(ra.Z,{description:(0,v.jsx)(rh.Z.Text,{strong:!0,children:`"${t.path}" doesn't have any modules`})}),(0,v.jsx)(im,{id:(null==u?void 0:u.length)?u[u.length-1]:"",show:p,setShow:f,cwd:l})]})})};var iC=r(34136);let ik="dataContainer-lJ0PuO",iw="title-Gj8JxL",iZ="description-miJCbD",{DirectoryTree:iD}=sr.Z,iA=e=>{let{files:t,total:r,showProgress:n=!1,type:s}=e,i=s.toLocaleLowerCase(),l=(0,E.useMemo)(()=>(0,rE.Z)(t,e=>e.size),[t]);return(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let s=i.includes("image")?"imgs":i,{treeData:a}=sf(e[s].total);return(0,v.jsxs)(tv.Z,{style:{height:100},align:"center",children:[(0,v.jsx)(sy.Z,{type:"circle",percent:+(l/r*100).toFixed(2),strokeColor:{"0%":"#108ee9","100%":"#108ee9"},strokeWidth:12,format:e=>(0,v.jsxs)("div",{className:"percentContainer-VJxs6L",children:[(0,v.jsxs)("span",{style:{marginTop:"10px"},children:[e,"%"]}),(0,v.jsxs)("span",{className:"percentDescription-ymSkb_",children:["total ",s]})]})}),(0,v.jsxs)("div",{style:{marginLeft:"10px"},children:[(0,v.jsxs)("div",{className:ik,children:[(0,v.jsx)("div",{className:iw,children:"Size"}),(0,v.jsx)("div",{className:iZ,children:t8(l)})]}),(0,v.jsx)(r9,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},drawerProps:{title:"Files"},text:(0,v.jsx)(tv.Z,{style:{textAlign:n?"left":"center"},align:"end",children:(0,v.jsx)(tv.Z,{direction:"vertical",children:(0,v.jsx)("div",{className:ik,children:(0,v.jsxs)("div",{className:iw,children:[(0,v.jsx)("span",{style:{marginRight:"5px"},children:"Files"}),(0,v.jsx)(tj.Z,{})]})})})}),children:a.length?(0,v.jsx)(iD,{defaultExpandAll:!0,selectable:!1,treeData:a,rootStyle:{minHeight:"800px",border:"1px solid rgba(235, 237, 241)"}}):(0,v.jsx)("div",{style:{position:"relative",top:"50%",transform:"translateY(-50%)"},children:(0,v.jsx)(ra.Z,{style:{height:"100%"}})})}),(0,v.jsx)("div",{className:iZ,children:t.length})]})]})}})},{DirectoryTree:i_}=sr.Z,{useToken:iO}=tM.Z,{innerWidth:iI}=window,iT=e=>{let{showProgress:t=!1,data:r,total:n,tagBgColor:s,type:i}=e,{token:l}=iO(),a=s||l.colorPrimaryBorderHover;return(0,v.jsx)(iA,{type:i,files:r.files,total:n,showProgress:t,tagBgColor:a})},iE=e=>{let{titles:t,datas:r,bgColor:n,type:s}=e,[i,l]=(0,E.useState)(t[0]),a=(0,E.useMemo)(()=>t.indexOf(i),[t,i]),o=a>=0?a:0,d=s||i||t[0],c=o>=0&&o<r.length?r[o]:r[0]||{};return(0,v.jsx)(rg,{title:(0,v.jsxs)("div",{className:"cardTitle-xNmEfV",children:[(0,v.jsx)("div",{className:"title-qIR7dd",children:d}),t.length>1?(0,v.jsx)(rf.Z,{defaultValue:t[0],options:t,onChange:e=>{l(e)},size:"small",style:{transition:"transform 0.3s ease"},value:i}):null]}),value:(0,v.jsx)(iT,{type:d,...c,tagBgColor:null==n?void 0:n.tagBgColor}),boxProps:{style:{background:null==n?void 0:n.bgColor,width:iI>1300?"80%":"95%"}}})},iN=e=>{let{errors:t,summary:r}=e,n=tY(t),[s,i]=t8(r.all.total.size).split(" "),l=[(0,v.jsx)(iE,{type:"JS",titles:["Total","Initial"],datas:[{data:r.js.total,total:r.all.total.size,showProgress:!0},{data:r.js.initial,total:r.all.total.size,showProgress:!0}]}),(0,v.jsx)(iE,{type:"CSS",titles:["Total","Initial"],datas:[{data:r.css.total,total:r.all.total.size,showProgress:!0},{data:r.css.initial,total:r.all.total.size,showProgress:!0}]}),(0,v.jsx)(iE,{titles:["Images","Fonts","Media"],datas:[{data:r.imgs.total,total:r.all.total.size,showProgress:!0},{data:r.fonts.total,total:r.all.total.size,showProgress:!0},{data:r.media.total,total:r.all.total.size,showProgress:!0}]}),(0,v.jsx)(iE,{type:"HTML",titles:["HTML Files"],datas:[{data:r.html.total,total:r.all.total.size,showProgress:!0}]})];return(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let{treeData:t}=sf(e.all.total);return(0,v.jsxs)("div",{className:"container-wODg_6",children:[(0,v.jsxs)("div",{className:"summary-zj0ygd",children:[(0,v.jsx)(rO,{title:(0,v.jsx)(r9,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},drawerProps:{title:"Files"},text:(0,v.jsxs)("div",{style:{color:"#000000a6"},children:[(0,v.jsx)("span",{style:{marginRight:"5px"},children:"Total Files"}),(0,v.jsx)(tj.Z,{})]}),children:(0,v.jsx)(i_,{defaultExpandAll:!0,selectable:!1,treeData:t,rootStyle:{minHeight:"800px",border:"1px solid rgba(235, 237, 241)"}})}),description:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("span",{className:"description-o0ffpO",children:s}),(0,v.jsx)("span",{className:"unit-n5Yty6",children:i}),(0,v.jsxs)("div",{className:"totalNumber-UweUl8",children:[(0,v.jsx)("span",{style:{marginRight:"7px"},children:"Number of files"}),(0,v.jsx)("span",{style:{fontWeight:500},children:r.all.total.count})]})]}),icon:(0,v.jsx)(sI.C,{style:{background:"#3874F6"},shape:"circle",icon:(0,v.jsx)(sN.Z,{style:{fontSize:"18px"}})}),style:{marginBottom:"12px",minWidth:"210px"}}),(0,v.jsx)(rO,{style:{minWidth:"210px"},title:(0,v.jsx)("div",{style:{margin:"4px 0"},children:(0,v.jsx)("span",{style:{marginRight:"5px"},children:"Duplicate Packages"})}),description:n.length,icon:(0,v.jsx)(sI.C,{style:{background:"#13C2C2"},shape:"circle",icon:(0,v.jsx)(iC.Z,{style:{fontSize:"18px"}})})})]}),(0,v.jsx)(rI.Z,{style:{height:"200px"},type:"vertical"}),(0,v.jsx)("div",{className:"chartsContainer-msRyOd",children:l.map((e,t)=>(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"chart-GmBMa_",children:e},t),t!==l.length-1?(0,v.jsx)(rI.Z,{style:{height:"200px"},type:"vertical"},`${t}-divider`):null]}))})]})}})};var iz=r(82708),iR=r(63457),iB=r(94788);let{Search:iL}=nW.Z,iF=e=>{let{onModuleClick:t,onClose:r,open:n,setOpen:s,isIcon:i=!1}=e,[l,a]=(0,E.useState)(!1),[o,d]=(0,E.useState)(""),[c,u]=(0,E.useState)(""),h=void 0!==n?n:l,p=s||a,f=(0,E.useCallback)(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,s]=t;d(n)},[]),m=()=>{p(!0)},g=()=>{p(!1),null==r||r()},x=()=>{p(!1),null==r||r()};return(0,v.jsxs)(v.Fragment,{children:[i?(0,v.jsx)(iB.Z,{onClick:m}):(0,v.jsx)(rS.ZP,{className:io["search-btn"],color:"cyan",onClick:m,children:"Search Module"}),(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetSearchModules,body:{moduleName:String(o)},children:e=>{let n=Object.keys(e)[0];return(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)(iz.Z,{className:io.modal,title:"Search Modules",onOk:g,onCancel:x,open:h,width:"65rem",footer:"",children:[(0,v.jsx)(iL,{placeholder:"input search module name",allowClear:!0,onSearch:f,style:{width:500}}),n?(0,v.jsx)(ro.Z,{defaultActiveKey:n,tabPosition:"top",onChange:e=>u(e),items:Object.keys(e).map((s,i)=>({label:e[s],key:s,children:iG(o,c||n,e=>{null==t||t(e),p(!1),null==r||r()})}))}):(0,v.jsx)(ra.Z,{description:"No modules found."})]})})}})]})},iG=(e,t,r)=>(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetSearchModuleInChunk,body:{moduleName:String(e),chunk:t},children:t=>(0,v.jsx)(v.Fragment,{children:(null==t?void 0:t.length)!==0?(0,v.jsx)(iR.Z,{className:io["search-modal-list"],loading:!t.length,itemLayout:"horizontal",pagination:{position:"bottom",align:"center"},dataSource:t,renderItem:t=>{let n=t.relativePath.split(e);return(0,v.jsx)(iR.Z.Item,{className:r?"search-list-item clickable":"search-list-item",onClick:r?()=>r(t):void 0,children:(0,v.jsx)(rY.Z,{avatar:!0,title:!1,loading:!t.path,active:!0,children:(0,v.jsx)(iR.Z.Item.Meta,{description:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(rh.Z.Text,{code:!0,children:"Module:"}),n.map((t,r)=>r<n.length-1?(0,v.jsxs)(rh.Z.Text,{style:{fontWeight:200},children:[t,(0,v.jsx)(rh.Z.Text,{strong:!0,style:{fontWeight:600},children:e},`${t}-${r}-strong`)]},`${t}-${r}`):(0,v.jsx)(rh.Z.Text,{style:{fontWeight:200},children:t}))]})},`${t.path}-${t.relativePath}-meta`)})},`${t.path}-${t.relativePath}`)}}):(0,v.jsx)(ra.Z,{})})});var i$=r(70844),iK=r(71992),iW=r(96366);let iH={treemap:"treemap-DOrYiA","tooltip-row":"tooltip-row-sZbl0R",tooltipRow:"tooltip-row-sZbl0R","tooltip-label":"tooltip-label-INs_JK",tooltipLabel:"tooltip-label-INs_JK","tooltip-path":"tooltip-path-djJmWx",tooltipPath:"tooltip-path-djJmWx","collapse-icon":"collapse-icon-wzQxAS",collapseIcon:"collapse-icon-wzQxAS"};var iU=r(26199);function iV(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t>>>0}let iq=(0,E.memo)(e=>{let{treeData:t,valueKey:r="sourceSize",style:n,onChartClick:s,forwardedRef:i}=e,[l,a]=(0,E.useState)(null),o=E.useRef(null);return(0,E.useEffect)(()=>{i&&o.current&&("function"==typeof i?i(o.current):i.current=o.current)},[i,o.current]),(0,E.useEffect)(()=>{J.D([i$.N,R.N,F.N])},[]),(0,E.useEffect)(()=>{t&&a({title:{text:"Bundle Tree Map",left:"center"},tooltip:{position:"top",formatter:function(e){for(var t=e.treePathInfo,r=[],n=1;n<t.length;n++)r.push(t[n].name);var s=e.data||{},i=s.path||r.join("/"),l=s.sourceSize,a=s.bundledSize,o=s.gzipSize,d=s.level;function c(e,t,r){return`<div class="${iH["tooltip-row"]}"><span class="${iH["tooltip-label"]}">${e}</span><span${r?` style="color: ${r}"`:""}>${t}</span></div>`}return[`<div class="${iH["tooltip-path"]}">`+iU.F1(i)+"</div>",c(0===d?"Asset":"Source",void 0!==l?t8(l):"-"),!a?"":c("Bundled",t8(a),"#1890ff"),!o?"":c("Gzipped",t8(o),"#52c41a")].join("")}},series:[{name:"Bundle Tree Map",id:"bundle-treemap",type:"treemap",visibleMin:300,left:10,right:10,top:10,bottom:10,label:{show:!0,formatter:"{b}",color:"#000"},upperLabel:{show:!0,height:30},levels:[{itemStyle:{color:"white",borderColor:"#eee",borderWidth:5,gapWidth:5},emphasis:{itemStyle:{borderColor:"#a29f9f"}}},{colorSaturation:[.25,.5],itemStyle:{borderWidth:5,gapWidth:5,borderColorSaturation:.5,borderColor:"#eee"}}],data:t.map((e,t)=>(function e(t,n){var s;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,l=U[n],a=null==(s=t.children)?void 0:s.map((t,r)=>e(t,n,i+1));return{id:t.path?iV(t.path):void 0,name:t.name,value:t[r]??t.value??0,path:t.path,sourceSize:t.sourceSize??t.value,bundledSize:t.bundledSize,gzipSize:t.gzipSize,children:a&&a.length>0?a:void 0,itemStyle:{borderWidth:2,gapWidth:2,borderColorSaturation:.2,colorSaturation:.2,color:l[i%l.length],borderColor:l[i%l.length]},level:i}})(e,q[t%q.length],0))}]})},[t,r]),l?(0,v.jsx)("div",{children:(0,v.jsx)(N.default,{ref:o,option:l,echarts:Q,onEvents:s?{click:s}:void 0,style:{width:"100%",minHeight:"500px",maxHeight:"1000px",border:"5px solid white",borderRadius:"10px",...n},className:iH["chart-container"]})}):null}),iJ=E.forwardRef((e,t)=>(0,v.jsx)(iq,{...e,forwardedRef:t})),iY=e=>{let{treeData:t,onChartClick:r,bundledSize:n=!1}=e,s=(0,E.useMemo)(()=>t.map(e=>e.name),[t]),[i,l]=(0,E.useState)(s),[a,o]=(0,E.useState)(!1),[d,c]=(0,E.useState)(!1),u=E.useRef(null),{t:h}=tH(),p=(0,E.useMemo)(()=>t.filter(e=>i.includes(e.name)),[t,i]);return(0,v.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:16},className:iH.treemap,children:(0,v.jsxs)(tv.Z,{direction:"vertical",style:{width:"100%"},children:[(0,v.jsx)(ru.Z,{title:(0,v.jsxs)(tv.Z,{children:[(0,v.jsx)(rh.Z.Text,{children:h("Output Assets List")}),(0,v.jsx)(iF,{onModuleClick:e=>{if(!(null==e?void 0:e.path))return;let t=iV(e.path);u.current&&u.current.getEchartsInstance().dispatchAction({type:"treemapZoomToNode",seriesId:"bundle-treemap",targetNodeId:t.toString()}),c(!1)},open:d,setOpen:c,isIcon:!0}),(0,v.jsx)(rp.Z,{color:"white",title:(0,v.jsxs)("span",{children:["✨ In Rspack, TreeMap proportions are always based on Bundled Size by default.",(0,v.jsx)("br",{}),"✨ In Webpack, TreeMap proportions are based on Bundled Size only when SourceMap is enabled.",(0,v.jsx)("br",{}),"✨ ",(0,v.jsx)("b",{children:"Bundled Size"}),": The size of a module after bundling and minification.",(0,v.jsx)("br",{}),"✨ ",(0,v.jsx)("b",{children:"Source Size"}),": The size of a module after compilation (e.g., TypeScript/JSX to JS), but before bundling and minification.",(0,v.jsx)("br",{}),"✨ ",(0,v.jsx)("b",{children:"Gzipped Size"}),": The compressed file size that users actually download, as most web servers use gzip compression.",(0,v.jsx)("br",{})]}),overlayInnerStyle:{width:620,color:"black"},children:(0,v.jsx)(rW.Z,{style:{color:"#1890ff",marginLeft:8}})}),(0,v.jsxs)(rl.Z,{color:"blue",children:["TreeMap area based on"," ",n?"Bundled Size":"Source Size"]})]}),extra:(0,v.jsx)("span",{className:iH["collapse-icon"],onClick:()=>o(e=>!e),"aria-label":h(a?"Expand":"Collapse"),children:a?(0,v.jsx)(iK.Z,{}):(0,v.jsx)(iW.Z,{})}),size:"small",className:`card-body ${a?"collapsed":""}`,children:(0,v.jsxs)("div",{className:`checkbox-container ${a?"collapsed":""}`,children:[(0,v.jsx)(nF.Z,{indeterminate:i.length>0&&i.length<s.length,checked:i.length===s.length,onChange:e=>l(e.target.checked?s:[]),className:iH["all-none-checkbox"],children:"ALL / NONE"},"all-none-checkbox"),(0,v.jsx)(nF.Z.Group,{options:s,value:i,onChange:l,className:iH["asset-checkbox-group"]},"asset-checkbox-group")]})}),(0,v.jsx)("div",{style:{flex:1},children:(0,v.jsx)(iJ,{ref:u,treeData:p,valueKey:n?"bundledSize":"sourceSize",onChartClick:r})})]})})},{Option:iQ}=nY.Z,iX=[{key:"tree",label:(0,v.jsxs)(tv.Z,{children:[(0,v.jsx)(rh.Z.Text,{children:"Tree Graph"}),(0,v.jsx)(rp.Z,{overlayStyle:{maxWidth:380},overlayInnerStyle:{marginLeft:16,padding:10},color:"white",title:(0,v.jsxs)(tv.Z,{direction:"vertical",color:"white",size:"middle",children:[(0,v.jsx)(rR.Z,{children:(0,v.jsxs)(rB.Z,{children:[(0,v.jsx)(rl.Z,{color:"cyan",style:{margin:0},children:"initial"}),(0,v.jsx)(rh.Z.Text,{style:{marginLeft:4},children:"Identify whether the chunk is an initial chunk."})]})}),(0,v.jsx)(rR.Z,{children:(0,v.jsxs)(rB.Z,{children:[(0,v.jsx)(rl.Z,{color:"green",style:{margin:0},children:"concatenated"}),(0,v.jsx)(rh.Z.Text,{style:{marginLeft:4},children:"Identify whether the module is a concatenated module"}),(0,v.jsx)(rp.Z,{overlayStyle:{maxWidth:408},placement:"bottom",color:"white",title:(0,v.jsx)(tv.Z,{direction:"vertical",color:"white",children:(0,v.jsx)(rR.Z,{children:(0,v.jsxs)(rB.Z,{children:[(0,v.jsx)(rh.Z.Text,{strong:!0,children:"Concatenated Module"}),(0,v.jsx)(rh.Z.Text,{children:': A performance optimization where multiple modules are merged (or "hoisted") into a single scope instead of wrapping each module in separate function closures. This reduces the bundle size and improves runtime performance by minimizing function call overhead.'})]})})}),children:(0,v.jsx)(rW.Z,{style:{color:"rgba(0,0,0,.45)",marginLeft:4}})}),(0,v.jsx)(rh.Z.Text,{children:"."})]})}),(0,v.jsx)(rR.Z,{children:(0,v.jsxs)(rB.Z,{children:[(0,v.jsx)(rS.ZP,{size:"small",icon:(0,v.jsx)(sK.Z,{})}),(0,v.jsx)(rh.Z.Text,{style:{marginLeft:4},children:"Open the code."})]})}),(0,v.jsx)(rR.Z,{children:(0,v.jsxs)(rB.Z,{children:[(0,v.jsx)(rS.ZP,{size:"small",icon:(0,v.jsx)(sW.Z,{})}),(0,v.jsx)(rh.Z.Text,{style:{marginLeft:4},children:"View the module dependency, that is, module reasons in stats.json."})]})}),(0,v.jsx)(rR.Z,{children:(0,v.jsxs)(rB.Z,{children:[(0,v.jsx)(rl.Z,{color:"purple",children:"Bundled: 15.77 KB"}),(0,v.jsx)(rh.Z.Text,{children:"The final size of the output files after processing, bundling, and optimization. This is what is delivered to the browser."})]})}),(0,v.jsx)(rR.Z,{children:(0,v.jsxs)(rB.Z,{children:[(0,v.jsx)(rl.Z,{color:"orange",children:"Source: 60.46 KB"}),(0,v.jsx)(rh.Z.Text,{children:"The original size of your source code files before any processing or transformations. This is the raw size of your code as you wrote it."})]})})]}),children:(0,v.jsx)(rW.Z,{style:{color:"rgba(0,0,0,.45)"}})})]})},{key:"tile",label:"Tile Graph"}],i0=e=>{let{errors:t,cwd:r,summary:n,entryPoints:s}=e,[i,l]=(0,E.useState)([]),[a,o]=(0,E.useState)(0),[d,c]=(0,E.useState)(""),[u,h]=(0,E.useState)(0),[p,f]=(0,E.useState)(!1),[m,g]=(0,E.useState)(""),[x,y]=(0,E.useState)(""),[j,b]=(0,E.useState)(null),[S,P]=(0,E.useState)("tree"),{showCode:M,codeDrawerComponent:C}=function(e){let[t,r]=(0,E.useState)(""),[n,s]=(0,E.useState)(""),[i,l]=(0,E.useState)(""),[a,o]=(0,E.useState)(!1),[d,c]=(0,E.useState)(),[u,h]=(0,E.useState)();return{showCode(e){r(e.code||""),s(e.lang||""),l(e.filePath||""),c(e.defaultLine),h(e.ranges),o(!0)},codeDrawerComponent:(0,v.jsx)(rz.Z,{maskClosable:!0,zIndex:999,width:"70%",destroyOnClose:!0,title:`Code of "${i}"`,open:a,onClose:()=>o(!1),children:t?(0,v.jsx)(nG,{code:t,lang:n,filePath:i,defaultLine:d,ranges:u}):(0,v.jsx)(ra.Z,{description:e||"No Code"})})}}("Do not have the codes of assets. If you use the lite or brief mode, there will have codes."),{t:k}=tH(),Z=n.all.total.files,D=(0,E.useCallback)(e=>t=>{"module"===e?g(t):"chunk"===e&&y(t)},[]),A=e=>(0,v.jsxs)(nY.Z,{defaultValue:"kb",onChange:D(e),children:[(0,v.jsx)(iQ,{value:"kb",children:"KB"}),(0,v.jsx)(iQ,{value:"mb",children:"MB"})]}),_=(0,E.useCallback)((0,sU.Z)(e=>{o("mb"===m?1024*e*1024:1024*e)},300),[]),O=(0,E.useCallback)((0,sU.Z)(e=>{h("mb"===x?1024*e*1024:1024*e)},300),[]),I=(0,E.useMemo)(()=>{let e=Z.slice();return d&&(e=e.filter(e=>e.path.indexOf(d)>-1)),u>0&&(e=e.filter(e=>e.size>=u)),i.length&&(e=e.filter(e=>!!i.some(t=>t.assets.includes(e.path)))),e.sort((e,t)=>{let r=+(e.path.indexOf("/")>-1);return(t.path.indexOf("/")>-1)-r})},[Z,i,d,u]);(0,E.useEffect)(()=>{n.all.total.files.forEach(e=>{"js"===function(e){let t=e.split(".");return t.length>1?t.pop():""}(e.path)&&b(e.path)})},[n.all.total.files]);let T=(0,E.useMemo)(()=>tz({files:I.map(e=>e.path).filter(Boolean),fileTitle(e,t){let{size:r,initial:n,path:s,content:i}=I.find(t=>t.path===e);return(0,v.jsxs)("div",{className:io.assetBox,onClick:()=>{b(s)},children:[(0,v.jsx)(sJ,{text:t,keyword:"",className:io.fileText}),(0,v.jsxs)(tv.Z,{size:"small",className:io.assetsTag,children:[(0,v.jsx)(rI.Z,{type:"vertical"}),(0,v.jsx)(rh.Z.Text,{style:{color:"#4FD233"},children:t8(r)}),(0,v.jsx)(rI.Z,{type:"vertical"}),n?(0,v.jsx)(rh.Z.Text,{style:{color:"#009A9E"},children:"initial"}):null,(0,v.jsx)(rN.Z,{style:{fontSize:14,padding:0},onClick:()=>M({code:i,filePath:s})})]})]})}}),[I]);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("div",{className:"bundle-size-card",children:[(0,v.jsx)(iN,{cwd:r,errors:t,summary:n}),(0,v.jsx)(ru.Z,{className:"bundle-size=card",tabList:iX,activeTabKey:S,onTabChange:e=>P(e),hidden:"tree"===S,tabProps:{size:"middle"},children:(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetProjectInfo,children:e=>{let{isRspack:t,hasSourceMap:r}=e0(e.configs);return(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetSummaryBundles,children:e=>{let n=e.map(e=>({name:e.asset.path,value:e.asset.size,children:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dist",r=function e(t){if(!t.children||0===t.children.length)return t;let r=t;for(;r.children&&1===r.children.length&&!r.children[0].sourceSize;)r={name:r.name+"/"+r.children[0].name,children:r.children[0].children};return r.children&&(r.children=r.children.map(e)),r}(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dist",r={name:t,children:[],_map:new Map};for(let t of e){let e=t.path.split(/[\\/]/).filter(Boolean),l=r;for(let r=0;r<e.length;r++){let a=e[r];if(r===e.length-1){var n,s,i;l.children||(l.children=[]),l.children.push({name:a,path:t.path,sourceSize:(null==(n=t.size)?void 0:n.sourceSize)??0,bundledSize:(null==(s=t.size)?void 0:s.parsedSize)??0,gzipSize:(null==(i=t.size)?void 0:i.gzipSize)??0})}else{l._map||(l._map=new Map);let e=l._map.get(a);e||(e={name:a,children:[],_map:new Map},l.children.push(e),l._map.set(a,e)),l=e}}}return!function e(t){delete t._map,t.children&&t.children.forEach(e)}(r),r}(e,t));return!function e(t){if(!t.children||0===t.children.length)return{sourceSize:t.sourceSize??0,bundledSize:t.bundledSize??0,gzipSize:t.gzipSize??0};let r=0,n=0,s=0;for(let i of t.children){let{sourceSize:t,bundledSize:l,gzipSize:a}=e(i);r+=t,n+=l,s+=a}return t.sourceSize=r,t.bundledSize=n,t.gzipSize=s,{sourceSize:r,bundledSize:n,gzipSize:s}}(r),r}(e.modules).children}));return(0,v.jsx)(iY,{treeData:n,bundledSize:r||t})}})}})}),(0,v.jsx)(ru.Z,{hidden:"tile"===S,tabList:iX,activeTabKey:S,onTabChange:e=>P(e),tabProps:{size:"middle"},children:(0,v.jsxs)(tv.Z,{direction:"vertical",children:[(0,v.jsxs)(rR.Z,{align:"middle",gutter:[w.BasePadding,w.BasePadding],children:[s&&s.length?(0,v.jsx)(rB.Z,{children:(0,v.jsx)(nY.Z,{mode:"multiple",value:i.map(e=>e.name),style:{minWidth:230,width:"auto",maxWidth:300},placeholder:"filter assets by entry point",onChange:e=>{l(e.map(e=>s.find(t=>t.name===e)).filter(Boolean))},allowClear:!0,onClear:()=>{l([])},children:s.map(e=>(0,v.jsx)(nY.Z.Option,{value:e.name,children:(0,v.jsx)(tv.Z,{children:(0,v.jsx)(rJ,{label:e.name,value:t8(e.size),tooltip:e.name})})},e.name))})}):null,(0,v.jsx)(rB.Z,{children:(0,v.jsx)(nH,{placeholder:"search asset by keyword",onChange:e=>{c(e),f(!1)}})}),(0,v.jsx)(rB.Z,{span:6,children:(0,v.jsx)(sH.Z,{min:0,style:{width:"95%"},addonBefore:(0,v.jsxs)(tv.Z,{children:[(0,v.jsx)(rh.Z.Text,{style:{fontSize:14,color:"inherit"},children:"Asset Size"}),(0,v.jsx)(rp.Z,{title:k("filter the output assets which size is greater than the input value"),style:{marginLeft:3},children:(0,v.jsx)(rW.Z,{style:{color:"rgba(0,0,0,.45)"}})})]}),onChange:e=>O(Number(e)),addonAfter:A("chunk")})}),(0,v.jsx)(rB.Z,{span:6,children:(0,v.jsx)(sH.Z,{min:0,style:{width:"95%"},addonBefore:(0,v.jsxs)(tv.Z,{children:[(0,v.jsx)(rh.Z.Text,{style:{fontSize:14,color:"inherit"},children:"Module Size"}),(0,v.jsx)(rp.Z,{title:k("filter the modules which size is greater than the input value"),style:{marginLeft:3},children:(0,v.jsx)(rW.Z,{style:{color:"rgba(0,0,0,.45)"}})})]}),onChange:e=>{_(Number(e))},addonAfter:A("module")})})]}),(0,v.jsx)(rR.Z,{children:(0,v.jsx)(iF,{})}),(0,v.jsx)(rR.Z,{align:"middle",gutter:[w.BasePadding,w.BasePadding],children:(0,v.jsx)(rB.Z,{span:24,children:I.length?(0,v.jsxs)(rR.Z,{gutter:w.BasePadding,children:[(0,v.jsx)(rB.Z,{span:6,children:(0,v.jsx)(ru.Z,{title:(0,v.jsxs)(tv.Z,{children:[(0,v.jsx)(rh.Z.Text,{children:k("Output Assets List")}),(0,v.jsx)(rI.Z,{type:"vertical"}),(0,v.jsx)(rp.Z,{title:`total assets count is ${Z.length}, the filtered assets count is ${I.length}`,children:(0,v.jsxs)(rh.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:[I.length," / ",Z.length]})}),(0,v.jsx)(rI.Z,{type:"vertical"}),(0,v.jsx)(rh.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:t8((0,rE.Z)(I,e=>e.size))})]}),size:"small",bodyStyle:{overflow:"scroll",height:600},children:(0,v.jsx)(tI,{className:io.assets,treeData:T,autoExpandParent:!0,defaultExpandAll:p||I.length<=20},`tree_${d}_${p}`)})}),(0,v.jsx)(rB.Z,{span:18,children:j?(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetAssetDetails,body:{assetPath:j},children:e=>(0,v.jsx)(iM,{asset:e.asset,chunks:e.chunks,modules:e.modules,height:600,moduleSizeLimit:a,root:r})}):(0,v.jsx)(ru.Z,{bodyStyle:{height:600},children:(0,v.jsx)(ra.Z,{description:(0,v.jsx)(rh.Z.Text,{strong:!0,children:"Click the file path on the left to show the modules of the asset"})})})})]}):(0,v.jsx)(ra.Z,{})})})]})})]}),C]})},i1=r5({api:ee.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:e=>{let{root:t,errors:r}=e.project;return(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!0},children:e=>(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetEntryPoints,children:n=>(0,v.jsx)(i0,{cwd:t,errors:r,summary:e,entryPoints:n})})})}}),i5="BundleSize",i2=ee.Client.RsdoctorClientRoutes.BundleSize,i4=()=>(0,v.jsx)(rR.Z,{children:(0,v.jsx)(rB.Z,{span:24,style:{marginBottom:w.BasePadding},children:(0,v.jsx)(i1,{})})});var i6=r(29997),i3=r(80160);let i7=e=>{let{style:t,onChange:r,loaderNames:n}=e,[s,i]=(0,E.useState)([]);return(0,v.jsxs)(nW.Z.Group,{compact:!0,style:t,children:[(0,v.jsxs)(rS.ZP,{style:{width:120},children:[(0,v.jsx)(i6.Z,{}),(0,v.jsx)(rh.Z.Text,{children:"Loaders"})]}),(0,v.jsx)(nY.Z,{mode:"multiple",allowClear:!0,defaultValue:s,className:"loader-select",style:{width:300},popupMatchSelectWidth:300,placeholder:"select loaders",onChange:e=>{i(e),r(e)},children:n.map(e=>(0,v.jsx)(nY.Z.Option,{label:e,value:e,children:e},e))})]})},i9=e=>{let{onChange:t,layers:r}=e,[n,s]=(0,E.useState)("");return(0,v.jsxs)(nW.Z.Group,{compact:!0,children:[(0,v.jsxs)(rS.ZP,{style:{width:120},children:[(0,v.jsx)(i6.Z,{}),(0,v.jsx)(rh.Z.Text,{children:"Layers"})]}),(0,v.jsx)(nY.Z,{allowClear:!0,className:"layer-select",style:{width:150},defaultValue:n,placeholder:"select layer",onChange:e=>{s(e),t(e)},children:(null==r?void 0:r.length)?null==r?void 0:r.map(e=>(0,v.jsx)(nY.Z.Option,{label:e,value:e,children:e},e)):(0,v.jsx)(v.Fragment,{})})]})},i8=e=>{let{onChange:t,loaderNames:r}=e,[n,s]=(0,E.useState)([]),[i,l]=(0,E.useState)(""),[a,o]=(0,E.useState)("");return(0,E.useEffect)(()=>{t({loaders:n,filename:i,layer:a})},[n,i,a]),(0,v.jsxs)(rR.Z,{style:{marginBottom:w.BasePadding,marginLeft:10},children:[(0,v.jsx)(rB.Z,{children:(0,v.jsx)(i7,{loaderNames:r,style:{marginRight:w.BasePadding},onChange:e=>{s(e)}})}),(0,v.jsx)(rB.Z,{children:(0,v.jsx)(nH,{icon:(0,v.jsx)(i3.Z,{}),style:{marginRight:w.BasePadding},label:"Filename",placeholder:"search filename by keyword",onChange:e=>{l(e)}})}),(0,v.jsx)(rB.Z,{children:(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetLayers,children:e=>e.length?(0,v.jsx)(i9,{layers:e,onChange:e=>{o(e)}}):(0,v.jsx)(v.Fragment,{})})})]})},le=0,lt=0,lr=e=>{let{loaders:t,cwd:r}=e,{isDark:n}=t7(),s=(0,E.useRef)(null),[i,l]=(0,E.useState)([]),a=function(e,t){let[r,n]=(0,E.useState)(e);return(0,E.useEffect)(()=>{let t=setTimeout(()=>n(e),200);return()=>clearTimeout(t)},[e,200]),r}(i,200),o=(0,E.useMemo)(()=>(0,K.Z)(t,e=>e.loader),[t]),d=(0,E.useCallback)(e=>{let{name:n,data:s}=e,i=n.replace(" total","");if(null==s?void 0:s.ext){var l;return l=s.ext,`
|
|
30
|
+
(2) If you use lite mode, there will not have source codes.`}),ip=e=>{let{data:t}=e,[r,n]=(0,E.useState)(""),{t:s}=tH(),i={source:"Source Code",transformed:`Transformed Code(${s("After Compile")})`,parsedSource:`Bundled Code(${s("After Bundled")})`};if(!t)return null;let{path:l}=t;return(0,v.jsx)(r9,{text:"",buttonProps:{size:"small",icon:(0,v.jsx)(sV.Z,{content:"Open the Codes Box",children:(0,v.jsx)(sK.Z,{})}),type:"default"},buttonStyle:{padding:"0 4px"},drawerProps:{destroyOnClose:!0,title:`Code of "${l}"`},children:(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetModuleCodeByModuleId,body:{moduleId:t.id},children:e=>(0,v.jsx)(v.Fragment,{children:e.source||e.parsedSource||e.transformed?(0,v.jsx)(ru.Z,{className:"code-size-card",style:{width:"100%"},tabList:Object.keys((0,sX.Z)(e,e=>!e)).map(e=>({tab:e})).map(e=>({...e,tab:i[e.tab],key:e.tab})),defaultActiveTabKey:e.parsedSource?"parsedSource":"source",onTabChange:e=>n(e),tabBarExtraContent:(0,v.jsx)(sV.Z,{placement:"bottom",title:(0,v.jsx)(rh.Z.Title,{level:5,children:"Explain"}),content:(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)("div",{style:{display:"flex",flexDirection:"column",marginBottom:30},children:[(0,v.jsxs)("div",{children:[(0,v.jsx)(rh.Z.Text,{strong:!0,children:"Source: "}),(0,v.jsx)(rh.Z.Text,{children:"source code"})]}),(0,v.jsxs)("div",{children:[(0,v.jsx)(rh.Z.Text,{strong:!0,children:"Transformed:"}),(0,v.jsx)(rh.Z.Text,{children:"Transformed Code (After compile)"})]}),(0,v.jsxs)("div",{children:[(0,v.jsx)(rh.Z.Text,{strong:!0,children:"Bundled Source:"}),(0,v.jsx)(rh.Z.Text,{children:"Bundled Code (After bundle and tree-shaking)"})]}),(0,v.jsx)("br",{}),(0,v.jsx)(rh.Z.Text,{strong:!0,children:"More"}),(0,v.jsx)(rh.Z.Text,{children:s("CodeModeExplain")})]})}),trigger:"hover",children:(0,v.jsx)("a",{href:"#",children:"Explain"})}),styles:{body:{padding:0,overflow:"hidden"}},children:e.parsedSource||e.source||e.transformed?(0,v.jsx)(nG,{isEmbed:!0,code:r?e[r]:e.parsedSource?e.parsedSource:e.source,filePath:l}):(0,v.jsx)(ih,{})}):(0,v.jsx)(ih,{})})})})},im=e=>{let{id:t,show:r,setShow:n,cwd:s}=e;return t?(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetAllModuleGraph,body:{},children:e=>(0,v.jsx)(ia,{cwd:s,moduleId:t,modules:e,show:r,setShow:n})}):null},ig="__RESOURCEPATH__",ix=e=>{let{modules:t,chunks:r,filteredModules:n}=e,{sourceSize:s,parsedSize:i,filteredParsedSize:l,filteredSourceSize:a}=(0,E.useMemo)(()=>({sourceSize:(0,rE.Z)(t,e=>e.size.sourceSize),parsedSize:(0,rE.Z)(t,e=>e.size.parsedSize),filteredSourceSize:(0,rE.Z)(n,e=>e.size.sourceSize),filteredParsedSize:(0,rE.Z)(n,e=>e.size.parsedSize)}),[t,n]);return(0,v.jsxs)(tv.Z,{children:[(0,v.jsx)(rp.Z,{title:`total modules count is ${t.length}, the filtered modules count is ${n.length}`,children:(0,v.jsxs)(tv.Z,{children:[(0,v.jsxs)(rh.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules: ",n.length," / ",t.length]}),(0,v.jsx)(rW.Z,{})]})}),(0,v.jsx)(rI.Z,{type:"vertical"}),(0,v.jsx)(rp.Z,{title:(0,v.jsxs)(tv.Z,{direction:"vertical",children:[(0,v.jsxs)(rh.Z.Text,{style:{color:"inherit"},children:["Total modules bundled size: ",t8(i)]}),(0,v.jsxs)(rh.Z.Text,{style:{color:"inherit"},children:["Total modules source size: ",t8(s)]}),(0,v.jsxs)(rh.Z.Text,{style:{color:"inherit"},children:["Filtered modules bundled size: ",t8(l)]}),(0,v.jsxs)(rh.Z.Text,{style:{color:"inherit"},children:["Filtered modules source size: ",t8(a)]})]}),children:(0,v.jsxs)(tv.Z,{children:[(0,v.jsxs)(rh.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules Size:",l===i?t8(i):`${t8(l)} / ${t8(i)}`]}),(0,v.jsx)(rW.Z,{})]})}),(0,v.jsx)(rI.Z,{type:"vertical"}),(0,v.jsx)(rp.Z,{title:(0,v.jsxs)(tv.Z,{direction:"vertical",children:[(0,v.jsxs)(rh.Z.Text,{style:{color:"inherit"},children:["this asset includes ",r.length," chunks:"]}),r.map(e=>(0,v.jsx)(rJ,{label:"chunk",value:e.name},e.name))]}),children:(0,v.jsxs)(tv.Z,{children:[(0,v.jsxs)(rh.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Chunks: ",r.length]}),(0,v.jsx)(rW.Z,{})]})})]})},iy=e=>{let{moduleCount:t}=e;return(0,v.jsx)(rp.Z,{title:(0,v.jsx)(tv.Z,{children:(0,v.jsxs)(rh.Z.Text,{style:{color:"inherit"},children:["This is a concatenated container module that includes ",t," ","modules"]})}),children:(0,v.jsx)(rl.Z,{color:"blue",style:iu,children:"concatenated container"})})},iv=e=>{let{size:t}=e;return(0,v.jsx)(rp.Z,{title:(0,v.jsx)(tv.Z,{children:(0,v.jsx)(rh.Z.Text,{style:{color:"inherit"},children:"The total output size of all the files in this folder. If you enabled minification, this value shows the minified size."})}),children:(0,v.jsx)(rl.Z,{style:iu,color:"geekblue",children:`bundled size: ${t8(t)}`})})},ij=e=>{let{size:t}=e;return(0,v.jsx)(rp.Z,{title:(0,v.jsx)(tv.Z,{children:(0,v.jsx)(rh.Z.Text,{style:{color:"inherit"},children:"The final output size of this file. If you enabled minification, this value shows the minified size."})}),children:(0,v.jsx)(rl.Z,{color:"geekblue",children:`bundled size: ${t8(t)}`})})},ib=e=>{let{size:t}=e;return(0,v.jsx)(rp.Z,{title:(0,v.jsx)(tv.Z,{children:(0,v.jsx)(rh.Z.Text,{style:{color:"inherit"},children:"The compressed file size that users actually download, as most web servers use gzip compression."})}),children:(0,v.jsx)(rl.Z,{color:"orange",children:`gzipped: ${t8(t)}`})})},iS=e=>{let{size:t}=e;return(0,v.jsx)(rp.Z,{title:(0,v.jsx)(tv.Z,{children:(0,v.jsx)(rh.Z.Text,{style:{color:"inherit"},children:"The total original size of all the files in this folder, before any transformations and minification."})}),children:(0,v.jsx)(rl.Z,{style:iu,color:"cyan",children:`source size: ${t8(t)}`})})},iP=e=>{let{size:t}=e;return(0,v.jsx)(rp.Z,{title:(0,v.jsx)(tv.Z,{children:(0,v.jsx)(rh.Z.Text,{style:{color:"inherit"},children:"The original size of this file, before any transformations and minification."})}),children:(0,v.jsx)(rl.Z,{color:"cyan",children:`source size: ${t8(t)}`})})},iM=e=>{let{asset:t,chunks:r,modules:n,moduleSizeLimit:s,height:i,root:l}=e,[a,o]=(0,E.useState)(""),[d,c]=(0,E.useState)(!1),[u,h]=(0,E.useState)([]),[p,f]=(0,E.useState)(!1),m=(0,E.useMemo)(()=>{let e=n.slice();if(a){let t=RegExp(a,"i");e=e.filter(e=>t.test(e.path))}return s&&(e=e.filter(e=>e.size.parsedSize>=s)),e},[n,a,s]),g=(0,E.useMemo)(()=>tz({files:m.map(e=>e.path).filter(Boolean),inlinedResourcePathKey:ig,fileTitle(e,t){var r;let s=m.find(t=>t.path===e);if(!s)return t;let{parsedSize:i=0,sourceSize:l=0,gzipSize:a=0}=s.size,o=s.kind===ee.SDK.ModuleKind.Concatenation,d=!o&&0===i&&n.filter(e=>e!==s&&e.modules&&e.modules.indexOf(s.id)>-1);return(0,v.jsxs)("div",{className:io["bundle-tree"],children:[(0,v.jsx)(sV.Z,{content:`Open the ${t}\u{2019}s module reasons tree.`,placement:"bottom",children:(0,v.jsxs)("div",{className:io.box,onClick:()=>{h([s.id]),f(!0)},children:[(0,v.jsx)("div",{className:io.keywords,children:(0,v.jsx)(sJ,{ellipsis:!0,text:t,keyword:""})}),(0,v.jsx)("div",{className:io.dividerDiv,children:(0,v.jsx)(rI.Z,{className:io.divider,dashed:!0})})]})}),(0,v.jsxs)(tv.Z,{children:[0!==i?(0,v.jsx)(v.Fragment,{children:"number"==typeof a?(0,v.jsx)(sV.Z,{placement:"bottom",content:(0,v.jsx)(iP,{size:l}),children:(0,v.jsxs)(tv.Z,{direction:"horizontal",children:[(0,v.jsx)(ij,{size:i}),(0,v.jsx)(ib,{size:a})]})}):(0,v.jsxs)(tv.Z,{direction:"horizontal",children:[(0,v.jsx)(ij,{size:i}),(0,v.jsx)(iP,{size:l})]})}):0!==l?(0,v.jsx)(iP,{size:l}):null,o?(0,v.jsx)(iy,{moduleCount:(null==(r=s.modules)?void 0:r.length)||0}):null,d&&d.length?(0,v.jsx)(rp.Z,{title:(0,v.jsxs)(tv.Z,{direction:"vertical",children:[(0,v.jsx)(rh.Z.Text,{style:{color:"inherit"},children:"This module is concatenated into another container module:"}),d.map(e=>{let{id:t,path:r}=e;if(r.startsWith("data:text/javascript;"))return(0,v.jsx)(rh.Z.Paragraph,{ellipsis:{rows:4},style:{color:"inherit",maxWidth:"100%"},code:!0,children:r},t);let n=(0,eu.relative)((0,eu.dirname)(s.path),r);return n.startsWith("javascript;charset=utf-8;base64,")?(0,v.jsx)(rh.Z.Text,{style:{color:"inherit",maxWidth:"100%"},code:!0,children:"."===n[0]?n:`./${n}`},t):(0,v.jsx)(rh.Z.Text,{style:{color:"inherit"},code:!0,children:"."===n[0]?n:`./${n}`},t)})]}),children:(0,v.jsx)(rl.Z,{color:"green",children:"concatenated"})}):null,(0,v.jsx)(ip,{data:s})]})]})},dirTitle(e,t){let r=function e(t,r){return t.children&&t.children.forEach(t=>{t.isLeaf?r.push(t[ig]):e(t,r)}),r}(e,[]);if(r.length){let e=r.map(e=>n.find(t=>t.path===e)),s=(0,rE.Z)(e,e=>{var t;return(null==(t=e.size)?void 0:t.parsedSize)||0}),i=(0,rE.Z)(e,e=>{var t;return(null==(t=e.size)?void 0:t.sourceSize)||0});return(0,v.jsxs)("div",{className:io["bundle-tree"],children:[(0,v.jsxs)("div",{className:io.box,children:[(0,v.jsx)("div",{className:io.keywords,children:(0,v.jsx)(sJ,{ellipsis:!0,text:t,keyword:""})}),(0,v.jsx)("div",{className:io.dividerDiv,children:(0,v.jsx)(rI.Z,{className:io.divider,dashed:!0})})]}),(0,v.jsx)(tv.Z,{children:s>0?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(iv,{size:s}),(0,v.jsx)(iS,{size:i})]}):(0,v.jsx)(iS,{size:i})})]})}return t},page:"bundle"}),[m]);return(0,E.useEffect)(()=>{o(""),c(!1)},[t]),(0,E.useEffect)(()=>{c(!1)},[a]),(0,v.jsx)(s0.Provider,{value:{moduleJumpList:u,setModuleJumpList:h},children:(0,v.jsxs)(ru.Z,{className:io.bundle,title:`Modules of "${t.path}"`,bodyStyle:{minHeight:i},size:"small",children:[n.length?(0,v.jsxs)(rR.Z,{children:[(0,v.jsx)(rB.Z,{span:24,children:(0,v.jsx)(ix,{modules:n,chunks:r,filteredModules:m})}),(0,v.jsx)(rB.Z,{span:24,children:(0,v.jsxs)(tv.Z,{children:[(0,v.jsx)(nH,{placeholder:"search module by keyword",onChange:e=>o(e)},t.path),(0,v.jsx)(rS.ZP,{onClick:()=>c(!0),size:"small",icon:(0,v.jsx)(sQ.Z,{})})]})}),(0,v.jsx)(rB.Z,{span:24,style:{marginTop:w.BasePadding},children:m.length?(0,v.jsx)(id,{selectable:!1,defaultExpandAll:d||m.length<=20,onExpand:e=>{ic=e},defaultExpandParent:!0,defaultExpandedKeys:(null==ic?void 0:ic.length)?ic:1===g.length?[g[0].key]:[],treeData:g,rootStyle:{maxHeight:"500px",overflow:"auto",border:"1px solid rgba(235, 237, 241)",padding:"14px 20px"}},`tree_${a}_${d}_${t.path}`):(0,v.jsx)(ra.Z,{description:(0,v.jsx)(rh.Z.Text,{strong:!0,children:`"${a}" can't match any modules`})})})]}):(0,v.jsx)(ra.Z,{description:(0,v.jsx)(rh.Z.Text,{strong:!0,children:`"${t.path}" doesn't have any modules`})}),(0,v.jsx)(im,{id:(null==u?void 0:u.length)?u[u.length-1]:"",show:p,setShow:f,cwd:l})]})})};var iC=r(34136);let ik="dataContainer-lJ0PuO",iw="title-Gj8JxL",iZ="description-miJCbD",{DirectoryTree:iD}=sr.Z,iA=e=>{let{files:t,total:r,showProgress:n=!1,type:s}=e,i=s.toLocaleLowerCase(),l=(0,E.useMemo)(()=>(0,rE.Z)(t,e=>e.size),[t]);return(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let s=i.includes("image")?"imgs":i,{treeData:a}=sf(e[s].total);return(0,v.jsxs)(tv.Z,{style:{height:100},align:"center",children:[(0,v.jsx)(sy.Z,{type:"circle",percent:+(l/r*100).toFixed(2),strokeColor:{"0%":"#108ee9","100%":"#108ee9"},strokeWidth:12,format:e=>(0,v.jsxs)("div",{className:"percentContainer-VJxs6L",children:[(0,v.jsxs)("span",{style:{marginTop:"10px"},children:[e,"%"]}),(0,v.jsxs)("span",{className:"percentDescription-ymSkb_",children:["total ",s]})]})}),(0,v.jsxs)("div",{style:{marginLeft:"10px"},children:[(0,v.jsxs)("div",{className:ik,children:[(0,v.jsx)("div",{className:iw,children:"Size"}),(0,v.jsx)("div",{className:iZ,children:t8(l)})]}),(0,v.jsx)(r9,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},drawerProps:{title:"Files"},text:(0,v.jsx)(tv.Z,{style:{textAlign:n?"left":"center"},align:"end",children:(0,v.jsx)(tv.Z,{direction:"vertical",children:(0,v.jsx)("div",{className:ik,children:(0,v.jsxs)("div",{className:iw,children:[(0,v.jsx)("span",{style:{marginRight:"5px"},children:"Files"}),(0,v.jsx)(tj.Z,{})]})})})}),children:a.length?(0,v.jsx)(iD,{defaultExpandAll:!0,selectable:!1,treeData:a,rootStyle:{minHeight:"800px",border:"1px solid rgba(235, 237, 241)"}}):(0,v.jsx)("div",{style:{position:"relative",top:"50%",transform:"translateY(-50%)"},children:(0,v.jsx)(ra.Z,{style:{height:"100%"}})})}),(0,v.jsx)("div",{className:iZ,children:t.length})]})]})}})},{DirectoryTree:i_}=sr.Z,{useToken:iO}=tM.Z,{innerWidth:iI}=window,iT=e=>{let{showProgress:t=!1,data:r,total:n,tagBgColor:s,type:i}=e,{token:l}=iO(),a=s||l.colorPrimaryBorderHover;return(0,v.jsx)(iA,{type:i,files:r.files,total:n,showProgress:t,tagBgColor:a})},iE=e=>{let{titles:t,datas:r,bgColor:n,type:s}=e,[i,l]=(0,E.useState)(t[0]),a=(0,E.useMemo)(()=>t.indexOf(i),[t,i]),o=a>=0?a:0,d=s||i||t[0],c=o>=0&&o<r.length?r[o]:r[0]||{};return(0,v.jsx)(rg,{title:(0,v.jsxs)("div",{className:"cardTitle-xNmEfV",children:[(0,v.jsx)("div",{className:"title-qIR7dd",children:d}),t.length>1?(0,v.jsx)(rf.Z,{defaultValue:t[0],options:t,onChange:e=>{l(e)},size:"small",style:{transition:"transform 0.3s ease"},value:i}):null]}),value:(0,v.jsx)(iT,{type:d,...c,tagBgColor:null==n?void 0:n.tagBgColor}),boxProps:{style:{background:null==n?void 0:n.bgColor,width:iI>1300?"80%":"95%"}}})},iN=e=>{let{errors:t,summary:r}=e,n=tY(t),[s,i]=t8(r.all.total.size).split(" "),l=[(0,v.jsx)(iE,{type:"JS",titles:["Total","Initial"],datas:[{data:r.js.total,total:r.all.total.size,showProgress:!0},{data:r.js.initial,total:r.all.total.size,showProgress:!0}]}),(0,v.jsx)(iE,{type:"CSS",titles:["Total","Initial"],datas:[{data:r.css.total,total:r.all.total.size,showProgress:!0},{data:r.css.initial,total:r.all.total.size,showProgress:!0}]}),(0,v.jsx)(iE,{titles:["Images","Fonts","Media"],datas:[{data:r.imgs.total,total:r.all.total.size,showProgress:!0},{data:r.fonts.total,total:r.all.total.size,showProgress:!0},{data:r.media.total,total:r.all.total.size,showProgress:!0}]}),(0,v.jsx)(iE,{type:"HTML",titles:["HTML Files"],datas:[{data:r.html.total,total:r.all.total.size,showProgress:!0}]})];return(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let{treeData:t}=sf(e.all.total);return(0,v.jsxs)("div",{className:"container-wODg_6",children:[(0,v.jsxs)("div",{className:"summary-zj0ygd",children:[(0,v.jsx)(rO,{title:(0,v.jsx)(r9,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},drawerProps:{title:"Files"},text:(0,v.jsxs)("div",{style:{color:"#000000a6"},children:[(0,v.jsx)("span",{style:{marginRight:"5px"},children:"Total Files"}),(0,v.jsx)(tj.Z,{})]}),children:(0,v.jsx)(i_,{defaultExpandAll:!0,selectable:!1,treeData:t,rootStyle:{minHeight:"800px",border:"1px solid rgba(235, 237, 241)"}})}),description:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("span",{className:"description-o0ffpO",children:s}),(0,v.jsx)("span",{className:"unit-n5Yty6",children:i}),(0,v.jsxs)("div",{className:"totalNumber-UweUl8",children:[(0,v.jsx)("span",{style:{marginRight:"7px"},children:"Number of files"}),(0,v.jsx)("span",{style:{fontWeight:500},children:r.all.total.count})]})]}),icon:(0,v.jsx)(sI.C,{style:{background:"#3874F6"},shape:"circle",icon:(0,v.jsx)(sN.Z,{style:{fontSize:"18px"}})}),style:{marginBottom:"12px",minWidth:"210px"}}),(0,v.jsx)(rO,{style:{minWidth:"210px"},title:(0,v.jsx)("div",{style:{margin:"4px 0"},children:(0,v.jsx)("span",{style:{marginRight:"5px"},children:"Duplicate Packages"})}),description:n.length,icon:(0,v.jsx)(sI.C,{style:{background:"#13C2C2"},shape:"circle",icon:(0,v.jsx)(iC.Z,{style:{fontSize:"18px"}})})})]}),(0,v.jsx)(rI.Z,{style:{height:"200px"},type:"vertical"}),(0,v.jsx)("div",{className:"chartsContainer-msRyOd",children:l.map((e,t)=>(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"chart-GmBMa_",children:e},t),t!==l.length-1?(0,v.jsx)(rI.Z,{style:{height:"200px"},type:"vertical"},`${t}-divider`):null]}))})]})}})};var iz=r(82708),iR=r(63457),iB=r(94788);let{Search:iL}=nW.Z,iF=e=>{let{onModuleClick:t,onClose:r,open:n,setOpen:s,isIcon:i=!1}=e,[l,a]=(0,E.useState)(!1),[o,d]=(0,E.useState)(""),[c,u]=(0,E.useState)(""),h=void 0!==n?n:l,p=s||a,f=(0,E.useCallback)(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,s]=t;d(n)},[]),m=()=>{p(!0)},g=()=>{p(!1),null==r||r()},x=()=>{p(!1),null==r||r()};return(0,v.jsxs)(v.Fragment,{children:[i?(0,v.jsx)(iB.Z,{onClick:m}):(0,v.jsx)(rS.ZP,{className:io["search-btn"],color:"cyan",onClick:m,children:"Search Module"}),(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetSearchModules,body:{moduleName:String(o)},children:e=>{let n=Object.keys(e)[0];return(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)(iz.Z,{className:io.modal,title:"Search Modules",onOk:g,onCancel:x,open:h,width:"65rem",footer:"",children:[(0,v.jsx)(iL,{placeholder:"input search module name",allowClear:!0,onSearch:f,style:{width:500}}),n?(0,v.jsx)(ro.Z,{defaultActiveKey:n,tabPosition:"top",onChange:e=>u(e),items:Object.keys(e).map((s,i)=>({label:e[s],key:s,children:iG(o,c||n,e=>{null==t||t(e),p(!1),null==r||r()})}))}):(0,v.jsx)(ra.Z,{description:"No modules found."})]})})}})]})},iG=(e,t,r)=>(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetSearchModuleInChunk,body:{moduleName:String(e),chunk:t},children:t=>(0,v.jsx)(v.Fragment,{children:(null==t?void 0:t.length)!==0?(0,v.jsx)(iR.Z,{className:io["search-modal-list"],loading:!t.length,itemLayout:"horizontal",pagination:{position:"bottom",align:"center"},dataSource:t,renderItem:t=>{let n=t.relativePath.split(e);return(0,v.jsx)(iR.Z.Item,{className:r?"search-list-item clickable":"search-list-item",onClick:r?()=>r(t):void 0,children:(0,v.jsx)(rY.Z,{avatar:!0,title:!1,loading:!t.path,active:!0,children:(0,v.jsx)(iR.Z.Item.Meta,{description:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(rh.Z.Text,{code:!0,children:"Module:"}),n.map((t,r)=>r<n.length-1?(0,v.jsxs)(rh.Z.Text,{style:{fontWeight:200},children:[t,(0,v.jsx)(rh.Z.Text,{strong:!0,style:{fontWeight:600},children:e},`${t}-${r}-strong`)]},`${t}-${r}`):(0,v.jsx)(rh.Z.Text,{style:{fontWeight:200},children:t}))]})},`${t.path}-${t.relativePath}-meta`)})},`${t.path}-${t.relativePath}`)}}):(0,v.jsx)(ra.Z,{})})});var i$=r(70844),iK=r(71992),iW=r(96366);let iH={treemap:"treemap-DOrYiA","tooltip-row":"tooltip-row-sZbl0R",tooltipRow:"tooltip-row-sZbl0R","tooltip-label":"tooltip-label-INs_JK",tooltipLabel:"tooltip-label-INs_JK","tooltip-path":"tooltip-path-djJmWx",tooltipPath:"tooltip-path-djJmWx","collapse-icon":"collapse-icon-wzQxAS",collapseIcon:"collapse-icon-wzQxAS"};var iU=r(26199);function iV(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t>>>0}let iq=(0,E.memo)(e=>{let{treeData:t,valueKey:r="sourceSize",style:n,onChartClick:s,forwardedRef:i}=e,[l,a]=(0,E.useState)(null),o=E.useRef(null);return(0,E.useEffect)(()=>{i&&o.current&&("function"==typeof i?i(o.current):i.current=o.current)},[i,o.current]),(0,E.useEffect)(()=>{J.D([i$.N,R.N,F.N])},[]),(0,E.useEffect)(()=>{t&&a({title:{text:"Bundle Tree Map",left:"center"},tooltip:{position:"top",formatter:function(e){for(var t=e.treePathInfo,r=[],n=1;n<t.length;n++)r.push(t[n].name);var s=e.data||{},i=s.path||r.join("/"),l=s.sourceSize,a=s.bundledSize,o=s.gzipSize,d=s.level;function c(e,t,r){return`<div class="${iH["tooltip-row"]}"><span class="${iH["tooltip-label"]}">${e}</span><span${r?` style="color: ${r}"`:""}>${t}</span></div>`}return[`<div class="${iH["tooltip-path"]}">`+iU.F1(i)+"</div>",c(0===d?"Asset":"Source",void 0!==l?t8(l):"-"),!a?"":c("Bundled",t8(a),"#1890ff"),!o?"":c("Gzipped",t8(o),"#52c41a")].join("")}},series:[{name:"Bundle Tree Map",id:"bundle-treemap",type:"treemap",visibleMin:300,left:10,right:10,top:10,bottom:10,label:{show:!0,formatter:"{b}",color:"#000"},upperLabel:{show:!0,height:30},levels:[{itemStyle:{color:"white",borderColor:"#eee",borderWidth:5,gapWidth:5},emphasis:{itemStyle:{borderColor:"#a29f9f"}}},{colorSaturation:[.25,.5],itemStyle:{borderWidth:5,gapWidth:5,borderColorSaturation:.5,borderColor:"#eee"}}],data:t.map((e,t)=>(function e(t,n){var s;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,l=U[n],a=null==(s=t.children)?void 0:s.map((t,r)=>e(t,n,i+1));return{id:t.path?iV(t.path):void 0,name:t.name,value:t[r]??t.value??0,path:t.path,sourceSize:t.sourceSize??t.value,bundledSize:t.bundledSize,gzipSize:t.gzipSize,children:a&&a.length>0?a:void 0,itemStyle:{borderWidth:2,gapWidth:2,borderColorSaturation:.2,colorSaturation:.2,color:l[i%l.length],borderColor:l[i%l.length]},level:i}})(e,q[t%q.length],0))}]})},[t,r]),l?(0,v.jsx)("div",{children:(0,v.jsx)(N.default,{ref:o,option:l,echarts:Q,onEvents:s?{click:s}:void 0,style:{width:"100%",minHeight:"500px",maxHeight:"1000px",border:"5px solid white",borderRadius:"10px",...n},className:iH["chart-container"]})}):null}),iJ=E.forwardRef((e,t)=>(0,v.jsx)(iq,{...e,forwardedRef:t})),iY=e=>{let{treeData:t,onChartClick:r,bundledSize:n=!1}=e,s=(0,E.useMemo)(()=>t.map(e=>e.name),[t]),[i,l]=(0,E.useState)(s),[a,o]=(0,E.useState)(!1),[d,c]=(0,E.useState)(!1),u=E.useRef(null),{t:h}=tH(),p=(0,E.useMemo)(()=>t.filter(e=>i.includes(e.name)),[t,i]);return(0,v.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:16},className:iH.treemap,children:(0,v.jsxs)(tv.Z,{direction:"vertical",style:{width:"100%"},children:[(0,v.jsx)(ru.Z,{title:(0,v.jsxs)(tv.Z,{children:[(0,v.jsx)(rh.Z.Text,{children:h("Output Assets List")}),(0,v.jsx)(iF,{onModuleClick:e=>{if(!(null==e?void 0:e.path))return;let t=iV(e.path);u.current&&u.current.getEchartsInstance().dispatchAction({type:"treemapZoomToNode",seriesId:"bundle-treemap",targetNodeId:t.toString()}),c(!1)},open:d,setOpen:c,isIcon:!0}),(0,v.jsx)(rp.Z,{color:"white",title:(0,v.jsxs)("span",{children:["✨ In Rspack, TreeMap proportions are always based on Bundled Size by default.",(0,v.jsx)("br",{}),"✨ In Webpack, TreeMap proportions are based on Bundled Size only when SourceMap is enabled.",(0,v.jsx)("br",{}),"✨ ",(0,v.jsx)("b",{children:"Bundled Size"}),": The size of a module after bundling and minification.",(0,v.jsx)("br",{}),"✨ ",(0,v.jsx)("b",{children:"Source Size"}),": The size of a module after compilation (e.g., TypeScript/JSX to JS), but before bundling and minification.",(0,v.jsx)("br",{}),"✨ ",(0,v.jsx)("b",{children:"Gzipped Size"}),": The compressed file size that users actually download, as most web servers use gzip compression.",(0,v.jsx)("br",{})]}),overlayInnerStyle:{width:620,color:"black"},children:(0,v.jsx)(rW.Z,{style:{color:"#1890ff",marginLeft:8}})}),(0,v.jsxs)(rl.Z,{color:"blue",children:["TreeMap area based on"," ",n?"Bundled Size":"Source Size"]})]}),extra:(0,v.jsx)("span",{className:iH["collapse-icon"],onClick:()=>o(e=>!e),"aria-label":h(a?"Expand":"Collapse"),children:a?(0,v.jsx)(iK.Z,{}):(0,v.jsx)(iW.Z,{})}),size:"small",className:`card-body ${a?"collapsed":""}`,children:(0,v.jsxs)("div",{className:`checkbox-container ${a?"collapsed":""}`,children:[(0,v.jsx)(nF.Z,{indeterminate:i.length>0&&i.length<s.length,checked:i.length===s.length,onChange:e=>l(e.target.checked?s:[]),className:iH["all-none-checkbox"],children:"ALL / NONE"},"all-none-checkbox"),(0,v.jsx)(nF.Z.Group,{options:s,value:i,onChange:l,className:`checkbox-container ${a?"collapsed":""} ${iH["asset-checkbox-group"]}`},"asset-checkbox-group")]})}),(0,v.jsx)("div",{style:{flex:1},children:(0,v.jsx)(iJ,{ref:u,treeData:p,valueKey:n?"bundledSize":"sourceSize",onChartClick:r})})]})})},{Option:iQ}=nY.Z,iX=[{key:"tree",label:(0,v.jsxs)(tv.Z,{children:[(0,v.jsx)(rh.Z.Text,{children:"Tree Graph"}),(0,v.jsx)(rp.Z,{overlayStyle:{maxWidth:380},overlayInnerStyle:{marginLeft:16,padding:10},color:"white",title:(0,v.jsxs)(tv.Z,{direction:"vertical",color:"white",size:"middle",children:[(0,v.jsx)(rR.Z,{children:(0,v.jsxs)(rB.Z,{children:[(0,v.jsx)(rl.Z,{color:"cyan",style:{margin:0},children:"initial"}),(0,v.jsx)(rh.Z.Text,{style:{marginLeft:4},children:"Identify whether the chunk is an initial chunk."})]})}),(0,v.jsx)(rR.Z,{children:(0,v.jsxs)(rB.Z,{children:[(0,v.jsx)(rl.Z,{color:"green",style:{margin:0},children:"concatenated"}),(0,v.jsx)(rh.Z.Text,{style:{marginLeft:4},children:"Identify whether the module is a concatenated module"}),(0,v.jsx)(rp.Z,{overlayStyle:{maxWidth:408},placement:"bottom",color:"white",title:(0,v.jsx)(tv.Z,{direction:"vertical",color:"white",children:(0,v.jsx)(rR.Z,{children:(0,v.jsxs)(rB.Z,{children:[(0,v.jsx)(rh.Z.Text,{strong:!0,children:"Concatenated Module"}),(0,v.jsx)(rh.Z.Text,{children:': A performance optimization where multiple modules are merged (or "hoisted") into a single scope instead of wrapping each module in separate function closures. This reduces the bundle size and improves runtime performance by minimizing function call overhead.'})]})})}),children:(0,v.jsx)(rW.Z,{style:{color:"rgba(0,0,0,.45)",marginLeft:4}})}),(0,v.jsx)(rh.Z.Text,{children:"."})]})}),(0,v.jsx)(rR.Z,{children:(0,v.jsxs)(rB.Z,{children:[(0,v.jsx)(rS.ZP,{size:"small",icon:(0,v.jsx)(sK.Z,{})}),(0,v.jsx)(rh.Z.Text,{style:{marginLeft:4},children:"Open the code."})]})}),(0,v.jsx)(rR.Z,{children:(0,v.jsxs)(rB.Z,{children:[(0,v.jsx)(rS.ZP,{size:"small",icon:(0,v.jsx)(sW.Z,{})}),(0,v.jsx)(rh.Z.Text,{style:{marginLeft:4},children:"View the module dependency, that is, module reasons in stats.json."})]})}),(0,v.jsx)(rR.Z,{children:(0,v.jsxs)(rB.Z,{children:[(0,v.jsx)(rl.Z,{color:"purple",children:"Bundled: 15.77 KB"}),(0,v.jsx)(rh.Z.Text,{children:"The final size of the output files after processing, bundling, and optimization. This is what is delivered to the browser."})]})}),(0,v.jsx)(rR.Z,{children:(0,v.jsxs)(rB.Z,{children:[(0,v.jsx)(rl.Z,{color:"orange",children:"Source: 60.46 KB"}),(0,v.jsx)(rh.Z.Text,{children:"The original size of your source code files before any processing or transformations. This is the raw size of your code as you wrote it."})]})})]}),children:(0,v.jsx)(rW.Z,{style:{color:"rgba(0,0,0,.45)"}})})]})},{key:"tile",label:"Tile Graph"}],i0=e=>{let{errors:t,cwd:r,summary:n,entryPoints:s}=e,[i,l]=(0,E.useState)([]),[a,o]=(0,E.useState)(0),[d,c]=(0,E.useState)(""),[u,h]=(0,E.useState)(0),[p,f]=(0,E.useState)(!1),[m,g]=(0,E.useState)(""),[x,y]=(0,E.useState)(""),[j,b]=(0,E.useState)(null),[S,P]=(0,E.useState)("tree"),{showCode:M,codeDrawerComponent:C}=function(e){let[t,r]=(0,E.useState)(""),[n,s]=(0,E.useState)(""),[i,l]=(0,E.useState)(""),[a,o]=(0,E.useState)(!1),[d,c]=(0,E.useState)(),[u,h]=(0,E.useState)();return{showCode(e){r(e.code||""),s(e.lang||""),l(e.filePath||""),c(e.defaultLine),h(e.ranges),o(!0)},codeDrawerComponent:(0,v.jsx)(rz.Z,{maskClosable:!0,zIndex:999,width:"70%",destroyOnClose:!0,title:`Code of "${i}"`,open:a,onClose:()=>o(!1),children:t?(0,v.jsx)(nG,{code:t,lang:n,filePath:i,defaultLine:d,ranges:u}):(0,v.jsx)(ra.Z,{description:e||"No Code"})})}}("Do not have the codes of assets. If you use the lite or brief mode, there will have codes."),{t:k}=tH(),Z=n.all.total.files,D=(0,E.useCallback)(e=>t=>{"module"===e?g(t):"chunk"===e&&y(t)},[]),A=e=>(0,v.jsxs)(nY.Z,{defaultValue:"kb",onChange:D(e),children:[(0,v.jsx)(iQ,{value:"kb",children:"KB"}),(0,v.jsx)(iQ,{value:"mb",children:"MB"})]}),_=(0,E.useCallback)((0,sU.Z)(e=>{o("mb"===m?1024*e*1024:1024*e)},300),[]),O=(0,E.useCallback)((0,sU.Z)(e=>{h("mb"===x?1024*e*1024:1024*e)},300),[]),I=(0,E.useMemo)(()=>{let e=Z.slice();return d&&(e=e.filter(e=>e.path.indexOf(d)>-1)),u>0&&(e=e.filter(e=>e.size>=u)),i.length&&(e=e.filter(e=>!!i.some(t=>t.assets.includes(e.path)))),e.sort((e,t)=>{let r=+(e.path.indexOf("/")>-1);return(t.path.indexOf("/")>-1)-r})},[Z,i,d,u]);(0,E.useEffect)(()=>{n.all.total.files.forEach(e=>{"js"===function(e){let t=e.split(".");return t.length>1?t.pop():""}(e.path)&&b(e.path)})},[n.all.total.files]);let T=(0,E.useMemo)(()=>tz({files:I.map(e=>e.path).filter(Boolean),fileTitle(e,t){let{size:r,initial:n,path:s,content:i}=I.find(t=>t.path===e);return(0,v.jsxs)("div",{className:io.assetBox,onClick:()=>{b(s)},children:[(0,v.jsx)(sJ,{text:t,keyword:"",className:io.fileText}),(0,v.jsxs)(tv.Z,{size:"small",className:io.assetsTag,children:[(0,v.jsx)(rI.Z,{type:"vertical"}),(0,v.jsx)(rh.Z.Text,{style:{color:"#4FD233"},children:t8(r)}),(0,v.jsx)(rI.Z,{type:"vertical"}),n?(0,v.jsx)(rh.Z.Text,{style:{color:"#009A9E"},children:"initial"}):null,(0,v.jsx)(rN.Z,{style:{fontSize:14,padding:0},onClick:()=>M({code:i,filePath:s})})]})]})}}),[I]);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("div",{className:"bundle-size-card",children:[(0,v.jsx)(iN,{cwd:r,errors:t,summary:n}),(0,v.jsx)(ru.Z,{className:"bundle-size=card",tabList:iX,activeTabKey:S,onTabChange:e=>P(e),hidden:"tree"===S,tabProps:{size:"middle"},children:(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetProjectInfo,children:e=>{let{isRspack:t,hasSourceMap:r}=e0(e.configs);return(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetSummaryBundles,children:e=>{let n=e.map(e=>({name:e.asset.path,value:e.asset.size,children:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dist",r=function e(t){if(!t.children||0===t.children.length)return t;let r=t;for(;r.children&&1===r.children.length&&!r.children[0].sourceSize;)r={name:r.name+"/"+r.children[0].name,children:r.children[0].children};return r.children&&(r.children=r.children.map(e)),r}(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dist",r={name:t,children:[],_map:new Map};for(let t of e){let e=t.path.split(/[\\/]/).filter(Boolean),l=r;for(let r=0;r<e.length;r++){let a=e[r];if(r===e.length-1){var n,s,i;l.children||(l.children=[]),l.children.push({name:a,path:t.path,sourceSize:(null==(n=t.size)?void 0:n.sourceSize)??0,bundledSize:(null==(s=t.size)?void 0:s.parsedSize)??0,gzipSize:(null==(i=t.size)?void 0:i.gzipSize)??0})}else{l._map||(l._map=new Map);let e=l._map.get(a);e||(e={name:a,children:[],_map:new Map},l.children.push(e),l._map.set(a,e)),l=e}}}return!function e(t){delete t._map,t.children&&t.children.forEach(e)}(r),r}(e,t));return!function e(t){if(!t.children||0===t.children.length)return{sourceSize:t.sourceSize??0,bundledSize:t.bundledSize??0,gzipSize:t.gzipSize??0};let r=0,n=0,s=0;for(let i of t.children){let{sourceSize:t,bundledSize:l,gzipSize:a}=e(i);r+=t,n+=l,s+=a}return t.sourceSize=r,t.bundledSize=n,t.gzipSize=s,{sourceSize:r,bundledSize:n,gzipSize:s}}(r),r}(e.modules).children}));return(0,v.jsx)(iY,{treeData:n,bundledSize:r||t})}})}})}),(0,v.jsx)(ru.Z,{hidden:"tile"===S,tabList:iX,activeTabKey:S,onTabChange:e=>P(e),tabProps:{size:"middle"},children:(0,v.jsxs)(tv.Z,{direction:"vertical",children:[(0,v.jsxs)(rR.Z,{align:"middle",gutter:[w.BasePadding,w.BasePadding],children:[s&&s.length?(0,v.jsx)(rB.Z,{children:(0,v.jsx)(nY.Z,{mode:"multiple",value:i.map(e=>e.name),style:{minWidth:230,width:"auto",maxWidth:300},placeholder:"filter assets by entry point",onChange:e=>{l(e.map(e=>s.find(t=>t.name===e)).filter(Boolean))},allowClear:!0,onClear:()=>{l([])},children:s.map(e=>(0,v.jsx)(nY.Z.Option,{value:e.name,children:(0,v.jsx)(tv.Z,{children:(0,v.jsx)(rJ,{label:e.name,value:t8(e.size),tooltip:e.name})})},e.name))})}):null,(0,v.jsx)(rB.Z,{children:(0,v.jsx)(nH,{placeholder:"search asset by keyword",onChange:e=>{c(e),f(!1)}})}),(0,v.jsx)(rB.Z,{span:6,children:(0,v.jsx)(sH.Z,{min:0,style:{width:"95%"},addonBefore:(0,v.jsxs)(tv.Z,{children:[(0,v.jsx)(rh.Z.Text,{style:{fontSize:14,color:"inherit"},children:"Asset Size"}),(0,v.jsx)(rp.Z,{title:k("filter the output assets which size is greater than the input value"),style:{marginLeft:3},children:(0,v.jsx)(rW.Z,{style:{color:"rgba(0,0,0,.45)"}})})]}),onChange:e=>O(Number(e)),addonAfter:A("chunk")})}),(0,v.jsx)(rB.Z,{span:6,children:(0,v.jsx)(sH.Z,{min:0,style:{width:"95%"},addonBefore:(0,v.jsxs)(tv.Z,{children:[(0,v.jsx)(rh.Z.Text,{style:{fontSize:14,color:"inherit"},children:"Module Size"}),(0,v.jsx)(rp.Z,{title:k("filter the modules which size is greater than the input value"),style:{marginLeft:3},children:(0,v.jsx)(rW.Z,{style:{color:"rgba(0,0,0,.45)"}})})]}),onChange:e=>{_(Number(e))},addonAfter:A("module")})})]}),(0,v.jsx)(rR.Z,{children:(0,v.jsx)(iF,{})}),(0,v.jsx)(rR.Z,{align:"middle",gutter:[w.BasePadding,w.BasePadding],children:(0,v.jsx)(rB.Z,{span:24,children:I.length?(0,v.jsxs)(rR.Z,{gutter:w.BasePadding,children:[(0,v.jsx)(rB.Z,{span:6,children:(0,v.jsx)(ru.Z,{title:(0,v.jsxs)(tv.Z,{children:[(0,v.jsx)(rh.Z.Text,{children:k("Output Assets List")}),(0,v.jsx)(rI.Z,{type:"vertical"}),(0,v.jsx)(rp.Z,{title:`total assets count is ${Z.length}, the filtered assets count is ${I.length}`,children:(0,v.jsxs)(rh.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:[I.length," / ",Z.length]})}),(0,v.jsx)(rI.Z,{type:"vertical"}),(0,v.jsx)(rh.Z.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:t8((0,rE.Z)(I,e=>e.size))})]}),size:"small",bodyStyle:{overflow:"scroll",height:600},children:(0,v.jsx)(tI,{className:io.assets,treeData:T,autoExpandParent:!0,defaultExpandAll:p||I.length<=20},`tree_${d}_${p}`)})}),(0,v.jsx)(rB.Z,{span:18,children:j?(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetAssetDetails,body:{assetPath:j},children:e=>(0,v.jsx)(iM,{asset:e.asset,chunks:e.chunks,modules:e.modules,height:600,moduleSizeLimit:a,root:r})}):(0,v.jsx)(ru.Z,{bodyStyle:{height:600},children:(0,v.jsx)(ra.Z,{description:(0,v.jsx)(rh.Z.Text,{strong:!0,children:"Click the file path on the left to show the modules of the asset"})})})})]}):(0,v.jsx)(ra.Z,{})})})]})})]}),C]})},i1=r5({api:ee.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:e=>{let{root:t,errors:r}=e.project;return(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!0},children:e=>(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetEntryPoints,children:n=>(0,v.jsx)(i0,{cwd:t,errors:r,summary:e,entryPoints:n})})})}}),i5="BundleSize",i2=ee.Client.RsdoctorClientRoutes.BundleSize,i4=()=>(0,v.jsx)(rR.Z,{children:(0,v.jsx)(rB.Z,{span:24,style:{marginBottom:w.BasePadding},children:(0,v.jsx)(i1,{})})});var i6=r(29997),i3=r(80160);let i7=e=>{let{style:t,onChange:r,loaderNames:n}=e,[s,i]=(0,E.useState)([]);return(0,v.jsxs)(nW.Z.Group,{compact:!0,style:t,children:[(0,v.jsxs)(rS.ZP,{style:{width:120},children:[(0,v.jsx)(i6.Z,{}),(0,v.jsx)(rh.Z.Text,{children:"Loaders"})]}),(0,v.jsx)(nY.Z,{mode:"multiple",allowClear:!0,defaultValue:s,className:"loader-select",style:{width:300},popupMatchSelectWidth:300,placeholder:"select loaders",onChange:e=>{i(e),r(e)},children:n.map(e=>(0,v.jsx)(nY.Z.Option,{label:e,value:e,children:e},e))})]})},i9=e=>{let{onChange:t,layers:r}=e,[n,s]=(0,E.useState)("");return(0,v.jsxs)(nW.Z.Group,{compact:!0,children:[(0,v.jsxs)(rS.ZP,{style:{width:120},children:[(0,v.jsx)(i6.Z,{}),(0,v.jsx)(rh.Z.Text,{children:"Layers"})]}),(0,v.jsx)(nY.Z,{allowClear:!0,className:"layer-select",style:{width:150},defaultValue:n,placeholder:"select layer",onChange:e=>{s(e),t(e)},children:(null==r?void 0:r.length)?null==r?void 0:r.map(e=>(0,v.jsx)(nY.Z.Option,{label:e,value:e,children:e},e)):(0,v.jsx)(v.Fragment,{})})]})},i8=e=>{let{onChange:t,loaderNames:r}=e,[n,s]=(0,E.useState)([]),[i,l]=(0,E.useState)(""),[a,o]=(0,E.useState)("");return(0,E.useEffect)(()=>{t({loaders:n,filename:i,layer:a})},[n,i,a]),(0,v.jsxs)(rR.Z,{style:{marginBottom:w.BasePadding,marginLeft:10},children:[(0,v.jsx)(rB.Z,{children:(0,v.jsx)(i7,{loaderNames:r,style:{marginRight:w.BasePadding},onChange:e=>{s(e)}})}),(0,v.jsx)(rB.Z,{children:(0,v.jsx)(nH,{icon:(0,v.jsx)(i3.Z,{}),style:{marginRight:w.BasePadding},label:"Filename",placeholder:"search filename by keyword",onChange:e=>{l(e)}})}),(0,v.jsx)(rB.Z,{children:(0,v.jsx)(r1,{api:ee.SDK.ServerAPI.API.GetLayers,children:e=>e.length?(0,v.jsx)(i9,{layers:e,onChange:e=>{o(e)}}):(0,v.jsx)(v.Fragment,{})})})]})},le=0,lt=0,lr=e=>{let{loaders:t,cwd:r}=e,{isDark:n}=t7(),s=(0,E.useRef)(null),[i,l]=(0,E.useState)([]),a=function(e,t){let[r,n]=(0,E.useState)(e);return(0,E.useEffect)(()=>{let t=setTimeout(()=>n(e),200);return()=>clearTimeout(t)},[e,200]),r}(i,200),o=(0,E.useMemo)(()=>(0,K.Z)(t,e=>e.loader),[t]),d=(0,E.useCallback)(e=>{let{name:n,data:s}=e,i=n.replace(" total","");if(null==s?void 0:s.ext){var l;return l=s.ext,`
|
|
31
31
|
<div class="loader-tooltip-container">
|
|
32
32
|
<div class="loader-tooltip-title">${l.loader}</div>
|
|
33
33
|
<li class="loader-tooltip-item">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/client",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"main": "dist/index.html",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"sirv": "2.0.4",
|
|
30
30
|
"source-map-loader": "^5.0.0",
|
|
31
31
|
"typescript": "^5.2.2",
|
|
32
|
-
"@rsdoctor/
|
|
33
|
-
"@rsdoctor/
|
|
32
|
+
"@rsdoctor/components": "1.2.1",
|
|
33
|
+
"@rsdoctor/types": "1.2.1"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public",
|