@rsdoctor/client 1.3.6 → 1.3.7-beta.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/diff.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/react.93256790.js"></script><script defer src="./resource/js/vender.e233236e.js"></script><script defer src="./resource/js/410.a54d7b65.js"></script><script defer src="./resource/js/118.35589783.js"></script><script defer src="./resource/js/682.
|
|
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/react.93256790.js"></script><script defer src="./resource/js/vender.e233236e.js"></script><script defer src="./resource/js/410.a54d7b65.js"></script><script defer src="./resource/js/118.35589783.js"></script><script defer src="./resource/js/682.652df2a0.js"></script><script defer src="./resource/js/diff.5a62bbb0.js"></script><link href="./resource/css/682.099592c5.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
|
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/react.93256790.js"></script><script defer src="./resource/js/vender.e233236e.js"></script><script defer src="./resource/js/rc-0.a0e85196.js"></script><script defer src="./resource/js/rc-1.06a42c11.js"></script><script defer src="./resource/js/ant-design-0.5f6e41bd.js"></script><script defer src="./resource/js/ant-design-1.0aa20e29.js"></script><script defer src="./resource/js/ant-design-2.0ef4ec77.js"></script><script defer src="./resource/js/ant-design-3.86e745f2.js"></script><script defer src="./resource/js/ant-design-4.51693c58.js"></script><script defer src="./resource/js/ant-design-icons.aa649b3f.js"></script><script defer src="./resource/js/410.a54d7b65.js"></script><script defer src="./resource/js/512.c80dd09b.js"></script><script defer src="./resource/js/682.
|
|
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/react.93256790.js"></script><script defer src="./resource/js/vender.e233236e.js"></script><script defer src="./resource/js/rc-0.a0e85196.js"></script><script defer src="./resource/js/rc-1.06a42c11.js"></script><script defer src="./resource/js/ant-design-0.5f6e41bd.js"></script><script defer src="./resource/js/ant-design-1.0aa20e29.js"></script><script defer src="./resource/js/ant-design-2.0ef4ec77.js"></script><script defer src="./resource/js/ant-design-3.86e745f2.js"></script><script defer src="./resource/js/ant-design-4.51693c58.js"></script><script defer src="./resource/js/ant-design-icons.aa649b3f.js"></script><script defer src="./resource/js/410.a54d7b65.js"></script><script defer src="./resource/js/512.c80dd09b.js"></script><script defer src="./resource/js/682.652df2a0.js"></script><script defer src="./resource/js/index.e56057d5.js"></script><link href="./resource/css/682.099592c5.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
|
|
@@ -0,0 +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}.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}.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:98%}.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}}: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}.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}.text-QI6k9S{color:#000000d9;font-size:14px;font-weight:400}.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}.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%}.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}.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}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,10 +1,10 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["682"],{88880:function(){},22481:function(){},65704:function(){},42197:function(){},26779:function(){},6237:function(){},71800:function(){},90139:function(){},31180:function(){},33776:function(){},46045:function(){},38124:function(){},68878:function(){},49914:function(e,t,n){n.d(t,{A:()=>y});var l=n(65723),r=n(79763),i=n(128),s=n(43928),a=n(41595),o=n(98369),d=n(31448),c=n(8879),u=n(17086),h=n(88415),p=n(95121),x=n(31786),m=n(22155),f=n(67409),g=n(65691);let{jK:j,Sx:v}=s,y=e=>{let{router:t,renderFailState:n,extraContent:y}=e,[A,b]=(0,m.useState)(j.Success),[S,w]=(0,m.useState)({...a.s.viewMode}),[C,k]=(0,m.useState)(),[M,
|
|
1
|
+
"use strict";(self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["682"],{88880:function(){},22481:function(){},65704:function(){},42197:function(){},26779:function(){},6237:function(){},71800:function(){},90139:function(){},31180:function(){},33776:function(){},46045:function(){},38124:function(){},68878:function(){},49914:function(e,t,n){n.d(t,{A:()=>y});var l=n(65723),r=n(79763),i=n(128),s=n(43928),a=n(41595),o=n(98369),d=n(31448),c=n(8879),u=n(17086),h=n(88415),p=n(95121),x=n(31786),m=n(22155),f=n(67409),g=n(65691);let{jK:j,Sx:v}=s,y=e=>{let{router:t,renderFailState:n,extraContent:y}=e,[A,b]=(0,m.useState)(j.Success),[S,w]=(0,m.useState)({...a.s.viewMode}),[C,k]=(0,m.useState)(),[M,z]=(0,m.useState)(a.s.theme);return A===s.jK.Fail?n?(0,l.jsx)(l.Fragment,{children:n()}):(0,l.jsxs)(o.A,{direction:"vertical",style:{padding:14},children:[(0,l.jsx)(d.A.Text,{strong:!0,style:{fontSize:16},children:"load json file of Rsdoctor failed."}),(0,l.jsxs)(d.A.Text,{children:["try to use ",(0,l.jsx)(d.A.Text,{keyboard:!0,children:"command + r"})," to refresh page."]}),null,(0,l.jsx)(c.A,{}),(0,l.jsx)(o.A,{direction:"vertical",style:{width:"100%"},children:(0,l.jsxs)(d.A.Text,{style:{fontSize:16},children:["you can",(0,l.jsx)(d.A.Text,{strong:!0,style:{fontSize:"inherit"},children:"upload a file"}),"in the area below to analyze your project."]})}),(0,l.jsx)(c.A,{})]}):(0,l.jsx)(g.I9,{children:(0,l.jsx)(a.Q.Provider,{value:{...a.s,theme:M,setTheme:e=>{z(e),(0,i.setThemeToStorage)(e)},pageState:A,json:C,viewMode:S,setManifest:k,setPageState:b,setViewMode(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n={...S,...e};w(n),t&&(0,i.setViewModeToStorage)(n)}},children:(0,l.jsx)(a.Q.Consumer,{children:e=>(0,l.jsx)(u.Ay,{locale:(0,i.getLocale)(e.locale),theme:{algorithm:M===v.Dark?h.A.darkAlgorithm:h.A.defaultAlgorithm,token:{padding:16,colorText:"rgba(0, 0, 0, 0.85)",fontFamily:"var(--font-family-code)"}},children:(0,l.jsx)(r.PE,{children:(0,l.jsxs)(l.Fragment,{children:[y,(0,l.jsx)(f.tH,{FallbackComponent:e=>{let{error:t,resetErrorBoundary:n}=e;return(0,l.jsx)(p.Ay,{status:"error",title:"Sorry, something went wrong.",extra:(0,l.jsx)(x.Ay,{type:"primary",onClick:n,loading:A===j.Pending,children:"Reload"}),children:(0,l.jsxs)(d.A.Paragraph,{children:[(0,l.jsx)(d.A.Title,{level:3,children:"Error Stack"}),(0,l.jsx)("pre",{children:t.stack||t.message})]})})},onReset:()=>{window.location.reload()},children:t})]})})})})})})}},23995:function(e,t,n){n.d(t,{ZZ:()=>N,aM:()=>M,rU:()=>z});var l=n(65723),r=n(63079),i=n(84585),s=n(2323),a=n(31448),o=n(81489),d=n(14913),c=n(3149),u=n(98369),h=n(8879),p=n(37080),x=n(64801),m=n(31786),f=n(20317),g=n(75516),j=n(85189),v=n(62579),y=n(128),A=n(1361),b=n(11771),S=n(43928),w=n(42868),C=n(70054),k=n(83397);let M=e=>{let{data:t}=e;return(0,l.jsx)(r.A,{gutter:S.or.BasePadding,wrap:!1,align:"top",children:(0,l.jsx)(i.A,{style:{height:"100%",width:"100%"},children:t.length?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(s.A,{style:{marginTop:"20px"},children:t.map((e,n)=>{var r;let{dependency:i,module:o,relativePath:d}=e,{statements:c}=i,{start:u}=(null==c||null==(r=c[0])?void 0:r.position)?o.isPreferSource?c[0].position.source:c[0].position.transformed:{start:{line:0,column:0}},h=`${d}:${u.line}:${u.column||1}`;return(0,l.jsx)(s.A.Item,{style:{cursor:"default"},children:(0,l.jsxs)(a.A.Text,{children:[(0,l.jsxs)("div",{className:"filePath-UF3inH",children:[h,(0,l.jsx)(a.A.Paragraph,{copyable:{text:d},style:{position:"relative",top:"7px"}})]}),n!==t.length-1?(0,l.jsx)(g.A,{className:"arrow-VrZOco"}):null]})},h)})})}):(0,l.jsx)(o.A,{description:"This package no dependencies"})})})},z=(0,C.eN)({Component:M,api:k.SDK.ServerAPI.API.GetPackageRelationAlertDetails,responsePropName:"data"}),N=e=>{var t;let{data:n,getPackageRelationContentComponent:r}=e,{level:i,code:s,packages:o}=n,g=(0,y.useRuleIndexNavigate)(s,n.link),C=(0,f.x)(o,e=>e.targetSize.sourceSize),M=(0,y.formatSize)(C),{xs:z,lg:N,xxl:T}=d.Ay.useBreakpoint(),{name:P}=o.find(e=>!!e.target.name).target,R=o.map(e=>e.target.version);return(0,l.jsx)(c.A,{showIcon:!z,message:(0,l.jsxs)(u.A,{wrap:!0,split:z?null:(0,l.jsx)(h.A,{type:"vertical"}),align:"center",children:[(0,l.jsxs)(u.A,{wrap:!1,children:[(0,l.jsx)(a.A.Text,{code:!0,strong:!0,onClick:g,style:{cursor:"pointer"},children:(0,l.jsx)("a",{children:s})}),(0,l.jsx)(a.A.Text,{strong:!0,children:(null==(t=k.Rule.RuleErrorMap[s])?void 0:t.title)||n.title})]}),(0,l.jsxs)(a.A.Paragraph,{ellipsis:{rows:1},style:{marginBottom:0},children:[(0,l.jsx)(a.A.Text,{strong:!0,code:!0,children:P}),(0,l.jsxs)(a.A.Text,{strong:!0,children:[" ",n.packages.length]}),(0,l.jsx)(a.A.Text,{children:" versions was found"})]}),(0,l.jsx)(w.Ex,{label:"total size",value:M,type:"error",tooltip:`total size of ${n.packages.length} versions is ${M}`})]}),description:(0,l.jsx)(u.A,{direction:"vertical",wrap:!1,children:n.packages.map(e=>{let{target:t,targetSize:n}=e,r=(0,y.formatSize)(n.sourceSize),i=n.parsedSize?(0,y.formatSize)(n.parsedSize):null,s=`${t.name}@${t.version}`;return(0,l.jsxs)(u.A,{style:{wordBreak:"break-all"},align:"center",split:z?null:(0,l.jsx)(h.A,{type:"vertical"}),wrap:!0,children:[(0,l.jsxs)(u.A,{wrap:!1,children:[(0,l.jsx)(a.A.Text,{style:{marginLeft:4},children:"└"}),(0,l.jsx)(w.Ex,{label:t.name,value:`v${t.version}`,tooltip:s})]}),(0,l.jsxs)(u.A,{children:[(0,l.jsx)(w.Ex,{label:(0,l.jsxs)("div",{color:"rgb(255, 255, 255)",children:["Source Size ",(0,l.jsx)(j.A,{})]}),value:r,tooltip:`The bundle size of "${s}" is ${r}, this is source size.`,type:"error"}),(0,l.jsx)(w.Ex,{label:"Bundled size",value:i||"CONCATENATED",tooltip:`The bundle size of "${s}" is ${r}, this is after bundled, concatenated module cannot get bundled size. `,type:"error"})]}),(0,l.jsx)(a.A.Paragraph,{style:{marginBottom:0,width:T?"40rem":N?"30rem":"20rem"},copyable:{text:t.root},ellipsis:{rows:1,expandable:!0,symbol:(0,l.jsx)(v.A,{}),tooltip:t.root},code:!0,children:t.root})]},t.version)})}),type:"warn"===i?"info":i,action:(0,l.jsxs)(l.Fragment,{children:[o&&o.length>0?(0,l.jsx)(A.hX,{text:"Show Relations",buttonProps:{size:"small"},drawerProps:{title:n.title,width:"60%"},children:(0,l.jsxs)(u.A,{direction:"vertical",className:"alert-space",children:[(0,l.jsxs)(u.A,{style:{marginBottom:S.or.BasePadding/2},children:[(0,l.jsx)(b.h,{text:P,upperFirst:!1}),(0,l.jsx)(a.A.Text,{strong:!0,children:R.length}),(0,l.jsx)(a.A.Text,{children:" versions was found: "}),R.map(e=>(0,l.jsx)(a.A.Text,{strong:!0,code:!0,children:e},e))]}),(0,l.jsx)(p.A,{type:"card",size:"middle",className:"tabs-space",defaultActiveKey:R[0],items:o.map(e=>{let{target:t,targetSize:i}=e;return{label:(0,l.jsxs)(u.A,{children:[(0,l.jsx)(a.A.Text,{children:`${P}@${t.version}`}),(0,l.jsx)(x.A,{color:S.Q1.Red,children:(0,y.formatSize)(i.sourceSize)})]}),key:`${t.root}${t.name}${t.version}`,children:r({data:n,package:e})}})})]})}):null,(0,l.jsx)(h.A,{type:"vertical"}),(0,l.jsx)(m.Ay,{type:"link",onClick:g,size:"small",icon:(0,l.jsx)(j.A,{})})]})})}},54995:function(e,t,n){n.d(t,{J:()=>Y});var l=n(65723),r=n(64801),i=n(81489),s=n(37080),a=n(97255),o=n(31448),d=n(31786),c=n(11728),u=n(22155);let h=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,l.jsx)("rect",{width:16,height:16,fill:"#FFF2E8",rx:2}),(0,l.jsx)("path",{fill:"#FA541C",d:"M13.21 4.026a.5.5 0 0 0-.5-.5H3.29a.5.5 0 0 0-.5.5v1.316a.5.5 0 0 0 .5.5h9.42a.5.5 0 0 0 .5-.5zM13.21 7.342a.5.5 0 0 0-.5-.5H3.29a.5.5 0 0 0-.5.5v1.316a.5.5 0 0 0 .5.5h9.42a.5.5 0 0 0 .5-.5zM13.21 10.658a.5.5 0 0 0-.5-.5H3.29a.5.5 0 0 0-.5.5v1.316a.5.5 0 0 0 .5.5h9.42a.5.5 0 0 0 .5-.5z"})]}),p=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,l.jsx)("rect",{width:16,height:16,fill:"#F6FFED",rx:2}),(0,l.jsx)("path",{fill:"#52C41A",fillRule:"evenodd",d:"M4.586 6.172a.853.853 0 0 0-.853.854v5.12c0 .472.382.854.853.854h6.828a.853.853 0 0 0 .853-.854v-5.12a.853.853 0 0 0-.853-.854H9.707V7.88a1.707 1.707 0 1 1-3.414 0V6.172z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"#52C41A",d:"M7.147 4.466a.853.853 0 1 1 1.707 0V7.88a.853.853 0 0 1-1.707 0z"}),(0,l.jsx)("path",{fill:"#52C41A",d:"m8 3 2.217 2.304H5.783z"})]}),x=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,l.jsx)("rect",{width:16,height:16,fill:"#FFF1F0",rx:2}),(0,l.jsx)("path",{fill:"#FF5658",fillRule:"evenodd",d:"M13 8A5 5 0 1 1 3 8a5 5 0 0 1 10 0M9.768 6.232a.5.5 0 0 1 0 .707L8.708 8l1.06 1.06a.5.5 0 0 1-.707.708L8 8.708l-1.062 1.06a.5.5 0 0 1-.707-.707L7.293 8l-1.06-1.062a.5.5 0 0 1 .706-.707L8 7.293l1.06-1.06a.5.5 0 0 1 .708 0",clipRule:"evenodd"})]});var m=n(128);let f="box-yCgd0f",g="title-OR484p",j="content-iOwxYc",{Text:v}=o.A,y=e=>{let{data:t}=e;return t.map(e=>{let{code:t,link:n,error:r}=e,{source:i,output:s}=r||{},a=(null==i?void 0:i.path)?`${null==i?void 0:i.path}:${null==i?void 0:i.line}:${null==i?void 0:i.column}`:null,o=(null==s?void 0:s.path)?`${null==s?void 0:s.path}:${null==s?void 0:s.line}:${null==s?void 0:s.column}`:`There's no source map for this error. Possible reasons are as follows:
|
|
2
2
|
1. It might come from a third-party library without source map.
|
|
3
3
|
2. If this is your business source code, source map should be enabled in your build config.
|
|
4
|
-
`,u=(0,m.useRuleIndexNavigate)(t,n);return(0,l.jsxs)("div",{className:"container-iQTvf7",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:g,children:"Source"}),(0,l.jsxs)("div",{className:f,children:[(0,l.jsx)(c.A,{component:h}),(0,l.jsx)(v,{ellipsis:{tooltip:a},className:`${j} e2e-ecma-source`,children:a})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:g,children:"Output"}),(0,l.jsxs)("div",{className:f,children:[(0,l.jsx)(c.A,{component:p}),(0,l.jsx)(v,{ellipsis:{tooltip:o},className:`${j} e2e-ecma-output`,children:o})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:g,children:"Error"}),(0,l.jsxs)("div",{className:f,children:[(0,l.jsx)(c.A,{component:x}),(0,l.jsx)(v,{ellipsis:{tooltip:e.description},className:`${j} e2e-ecma-error`,children:e.description})]})]}),(0,l.jsx)(d.Ay,{onClick:u,type:"link",children:"more"})]})})};var A=n(83819),b=n(26316),S=n(8879),w=n(98369),C=n(79903),k=n(20317),M=n(1361),N=n(11771),z=n(43928);let T=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,l.jsx)("rect",{width:16,height:16,fill:"#FFF7E6",rx:2}),(0,l.jsx)("path",{fill:"#F2793D",fillRule:"evenodd",d:"M11.377 5.186h1.488L10.973 3H5.027L3.135 5.186h1.488l.87-1.005h5.015z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"#F2793D",fillRule:"evenodd",d:"M3.676 4.82h8.648c.299 0 .54.243.54.545v7.09a.543.543 0 0 1-.54.545H3.676a.543.543 0 0 1-.54-.545v-7.09c0-.302.241-.546.54-.546m2.702 1.77a.54.54 0 0 0 0 1.082h3.244a.54.54 0 1 0 0-1.081z",clipRule:"evenodd"})]}),P=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,l.jsx)("rect",{width:16,height:16,fill:"#FFF7E6",rx:2}),(0,l.jsx)("path",{fill:"#F2793D",d:"M3 7V5c0-1.105 2.239-2 5-2s5 .895 5 2v2c0 1.105-2.239 2-5 2s-5-.895-5-2"}),(0,l.jsx)("path",{fill:"#F2793D",d:"M8 10c2.761 0 5-.895 5-2v1c0 1.105-2.239 2-5 2s-5-.895-5-2V8c0 1.105 2.239 2 5 2"}),(0,l.jsx)("path",{fill:"#F2793D",d:"M8 12c2.761 0 5-.895 5-2v1c0 1.105-2.239 2-5 2s-5-.895-5-2v-1c0 1.105 2.239 2 5 2"})]});var R=n(56108);let E=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,l.jsx)("rect",{width:16,height:16,fill:"#E6F7FF",rx:2}),(0,l.jsx)("g",{clipPath:"url(#version_svg__a)",children:(0,l.jsx)("path",{fill:"#3874F6",d:"M13.438 9.875a.6.6 0 0 0-.216.043h-.002l-.002.002L8 12.079l-5.217-2.16H2.78l-.002-.001a.562.562 0 0 0-.43 1.039l5.432 2.248.002.001.003.001a.56.56 0 0 0 .43 0h.003l.002-.002 5.433-2.248a.563.563 0 0 0-.216-1.082M2.348 6.082 7.78 8.33l.003.001.002.001a.56.56 0 0 0 .43 0h.003l.002-.002 5.433-2.248a.563.563 0 0 0 0-1.04L8.22 2.796l-.002-.001-.003-.001a.56.56 0 0 0-.43 0h-.003l-.002.002-5.433 2.248a.563.563 0 0 0 0 1.039m11.09 1.355a.6.6 0 0 0-.216.043l-.002.001-.002.001L8 9.642l-5.217-2.16H2.78l-.002-.002a.563.563 0 0 0-.43 1.04l5.432 2.248h.002l.003.002a.56.56 0 0 0 .43 0l.003-.001.002-.001 5.433-2.248a.563.563 0 0 0-.216-1.083"})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"version_svg__a",children:(0,l.jsx)("path",{fill:"#fff",d:"M2 2h12v12H2z"})})})]}),O="label-XufLCq",D="labelContent-nkrbEg",L="collapseContainer-RlFMpI",_="collapseChild-WWZD3z",B="attribute-bDSZ0z",I="iconContainer-qPzCrR",F="data-po89g7",$="pkgName-vA16cZ",{Paragraph:G,Text:W}=o.A,{innerWidth:H}=window,V=e=>{let{title:t,description:n,extra:r}=e;return(0,l.jsxs)("div",{className:O,children:[(0,l.jsxs)("div",{className:D,children:[(0,l.jsx)("div",{children:t}),(0,l.jsx)("div",{children:n})]}),(0,l.jsx)("div",{children:r})]})},U=e=>{let{data:t,extraData:n}=e,i=t.map(e=>{let{packages:t}=e;return{totalSize:(0,k.x)(t,e=>e.targetSize.sourceSize),data:e}}).sort((e,t)=>t.totalSize-e.totalSize).map(e=>{let{data:t,totalSize:i}=e,{packages:a}=t,d=(0,m.formatSize)(i),{name:u}=a.find(e=>!!e.target.name).target,h=a.map(e=>e.target.version);return{key:u,label:(0,l.jsx)(V,{title:(0,l.jsx)(r.A,{style:{backgroundColor:"#EAEDF1",borderRadius:"2px"},children:(0,l.jsx)("span",{className:$,children:u})}),description:`${a.length} versions was found`,extra:(0,l.jsxs)("div",{className:"extraContainer-Zf1u14",children:[(0,l.jsxs)("div",{className:I,children:[(0,l.jsx)(c.A,{style:{fontSize:"18px"},component:R.A}),(0,l.jsx)("span",{className:F,children:d})]}),a&&a.length>0?(0,l.jsx)(M.hX,{text:"Show Relations",buttonProps:{size:"small"},drawerProps:{title:t.title,width:"60%"},children:(0,l.jsxs)(w.A,{direction:"vertical",className:"alert-space",style:{width:"100%"},children:[(0,l.jsxs)(w.A,{style:{marginBottom:z.or.BasePadding/2,width:"100%"},children:[(0,l.jsx)(N.h,{text:(0,l.jsx)(r.A,{style:{backgroundColor:"#EAEDF1"},children:u}),upperFirst:!1}),(0,l.jsx)(o.A.Text,{strong:!0,children:h.length}),(0,l.jsx)(o.A.Text,{children:" versions found"})]}),(0,l.jsx)(s.A,{size:"middle",items:a.map(e=>{let{target:i,targetSize:s}=e;return{label:(0,l.jsxs)(w.A,{className:"drawerLabelTitle-bDwhFt",children:[(0,l.jsxs)("div",{children:["v",i.version]}),(0,l.jsx)(r.A,{className:"drawerLabelSize-gzchzs",children:(0,m.formatSize)(s.sourceSize)})]}),key:`${i.root}${i.name}${i.version}`,children:n.getPackageRelationContentComponent({data:t,package:e})}})})]})}):null]})}),children:(0,l.jsx)(()=>a.map((e,t)=>{let n=e.target.version,r=e.target.root,i=(0,m.formatSize)(e.targetSize.sourceSize),s=e.targetSize.parsedSize?(0,m.formatSize)(e.targetSize.parsedSize):null;return(0,l.jsxs)("div",{className:L,children:[(0,l.jsx)(A.h,{style:{backgroundColor:"#fff"},title:(0,l.jsx)(W,{style:{width:H>1500?900:700},ellipsis:{tooltip:r},children:r}),description:(0,l.jsxs)("div",{className:_,children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:B,children:"Version"}),(0,l.jsxs)("div",{className:I,children:[(0,l.jsx)(c.A,{style:{fontSize:"18px"},component:E}),(0,l.jsxs)("span",{className:F,children:["v",n]})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:B,children:"Source size"}),(0,l.jsxs)("div",{className:I,children:[(0,l.jsx)(c.A,{style:{fontSize:"18px"},component:P}),(0,l.jsx)("span",{className:F,children:i})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:B,children:"Bundle size"}),(0,l.jsxs)("div",{className:I,children:[(0,l.jsx)(c.A,{style:{fontSize:"18px"},component:T}),(0,l.jsx)(b.A,{title:`The bundle size of "${u}" is ${i}, this is after bundled, concatenated module cannot get bundled size. `,children:(0,l.jsx)("span",{className:F,children:s||"CONCATENATED"})})]})]})]}),icon:(0,l.jsx)(G,{style:{position:"relative",top:"-10px"},copyable:{text:r}})}),t!==a.length-1?(0,l.jsx)(S.A,{style:{margin:"10px 0"}}):null]})}),{})}});return(0,l.jsx)(C.A,{style:{width:"100%"},defaultActiveKey:["E1001"],items:i})},K=e=>{let{data:t}=e;return t.map(e=>{let{code:t,link:n,description:r}=e,i=(0,m.useRuleIndexNavigate)(t,n);return(0,l.jsx)(A.A,{style:{background:"#fff"},description:(0,l.jsx)("div",{className:"description-h4sYv3",dangerouslySetInnerHTML:{__html:r||""}}),icon:(0,l.jsx)(d.Ay,{onClick:()=>i,type:"link",children:"more"})})})},{Text:q}=o.A,{innerWidth:Q}=window,J=e=>{let{title:t,description:n,extra:r}=e;return(0,l.jsxs)("div",{className:O,children:[(0,l.jsxs)("div",{className:D,children:[(0,l.jsx)("div",{children:t}),(0,l.jsx)("div",{children:n})]}),(0,l.jsx)("div",{children:r})]})},Z=e=>{let{data:t}=e,n=t.map(e=>{let{package:t,chunks:n}=e;return{key:`${t.name}@${t.version}`,label:(0,l.jsx)(J,{title:(0,l.jsx)(r.A,{style:{backgroundColor:"#EAEDF1",borderRadius:"2px"},children:(0,l.jsx)("span",{className:$,children:`${t.name}@${t.version}`})}),description:"has duplicates bundled into multiple chunks."}),children:(0,l.jsx)(()=>n.map(e=>{let{chunks:t,module:n}=e;return(0,l.jsx)("div",{className:L,children:(0,l.jsx)(A.h,{style:{backgroundColor:"#fff"},title:(0,l.jsxs)(w.A,{children:[(0,l.jsx)(c.A,{style:{fontSize:"18px"},component:R.A}),(0,l.jsxs)(q,{style:{width:Q>1500?900:700},children:["Module:"," ",(0,l.jsx)(q,{style:{fontSize:12,color:"rgba(28, 31, 35, 0.6)",fontWeight:300},children:n.path})]})]}),description:(0,l.jsx)("div",{className:_,children:t.map(e=>(0,l.jsxs)("div",{style:{display:"flex"},children:[(0,l.jsx)("div",{className:B,children:"Chunk"}),(0,l.jsx)("div",{className:I,children:(0,l.jsx)("span",{className:F,children:e.name})})]}))})})})}),{})}});return(0,l.jsx)(C.A,{style:{width:"100%"},defaultActiveKey:["E1005"],items:n})},Y=e=>{let{title:t,dataSource:n,extraData:o}=e,[d,c]=(0,u.useState)("E1001"),h=[{key:"E1001",label:"Duplicate Packages",data:[]},{key:"E1002",label:"Cross Chunks Package",data:[]},{key:"E1003",label:"Loader Performance Optimization",data:[]},{key:"E1004",label:"ECMA Version Check",data:[]},{key:"E1005",label:"Default Import Check",data:[]}];n.forEach(e=>{var t;let n=null==(t=h.find(t=>t.key===e.code))?void 0:t.data;null==n||n.push(e)});let p=h.map(e=>{let t,n,s=d===e.key?{border:"1px solid #91D5FF",backgroundColor:"#E6F7FF"}:{},c=d===e.key?{color:"#1890FF"}:{};switch(e.key){case"E1001":t=(0,l.jsx)(U,{data:e.data,extraData:o});break;case"E1002":t=(0,l.jsx)(Z,{data:e.data,extraData:o});break;case"E1003":case"E1005":t=(0,l.jsx)(K,{data:e.data});break;case"E1004":n=(0,l.jsx)("span",{children:"No ECMA Version Check Rules were found. Please refer to 「https://rsdoctor.rs/guide/usage/rule-config」."}),t=(0,l.jsx)(y,{data:e.data});break;default:t=null}return e.data.length||(t=(0,l.jsx)(i.A,{description:n,image:i.A.PRESENTED_IMAGE_SIMPLE})),{key:e.key,label:(0,l.jsx)(()=>(0,l.jsx)(A.A,{style:{backgroundColor:"transparent",paddingLeft:0,paddingRight:0,width:"100%"},title:(0,l.jsx)("span",{className:"labelTitle-tjSCQ_",children:e.label}),description:(0,l.jsxs)("div",{className:"labelDescription-kB74lb",children:[(0,l.jsx)("span",{children:e.data.length}),(0,l.jsx)(r.A,{style:{fontFamily:"Menlo",borderRadius:"2px",...s},children:(0,l.jsx)("span",{style:{...c},children:e.key})})]})}),{}),children:(0,l.jsx)(a.Zp,{className:"card-HNTMcZ",type:"inner",title:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.A,{style:{fontFamily:"Menlo",fontWeight:"700",fontSize:"13px",backgroundColor:"#EAEDF1",borderRadius:"2px"},children:e.key}),(0,l.jsx)("span",{children:e.label})]}),children:t})}});return(0,l.jsx)(a.Zp,{style:{width:"100%",borderRadius:"12px"},children:(0,l.jsxs)("div",{className:"container-TWzmhb",children:[(0,l.jsx)("div",{className:"title-gD67_A",children:t}),n.length?(0,l.jsx)(s.A,{onChange:c,type:"card",defaultActiveKey:"E1001",items:p}):(0,l.jsx)("div",{style:{minHeight:"480px",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)(i.A,{description:"No Bundle Alerts Data",image:i.A.PRESENTED_IMAGE_SIMPLE})})]})})}},5709:function(e,t,n){n.d(t,{EJ:()=>z,mn:()=>l.m});var l=n(1024),r=n(65723),i=n(22155),s=n(83397),a=n(128),o=n(54995),d=n(70054),c=n(43928),u=n(23995);(0,d.eN)({api:s.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:e=>{let{filter:t,project:n}=e,{root:l,errors:s}=n,d=(0,a.useCompileAlertsByErrors)(s),{setCompileAlertsViewMode:h,viewMode:p,setViewMode:x}=(0,a.useViewMode)(),m=t?d.filter(t):d;return(0,i.useEffect)(()=>{(0,a.hasViewModeFromStorage)()||x({compileAlerts:d.length>=5?c.nE.Group:c.nE.List},!1)},[]),(0,r.jsx)(o.J,{title:"Compile Alerts",dataSource:m,extraData:{cwd:l,getPackageRelationContentComponent:e=>(0,r.jsx)(u.rU,{body:{id:e.data.id,target:e.package.target},cwd:l})},viewMode:p.compileAlerts,setViewMode:h,cwd:l})}});var h=n(31448),p=n(63079),x=n(31786),m=n(84585),f=n(79903),g=n(64801),j=n(3149),v=n(36147),y=n(83027),A=n(62922),b=n(37622),S=n(26995),w=n(43637),C=n(99128),k=n.n(C);function M(e){let t=0,n=0;e.forEach(e=>{"warn"===e.level?t++:n++});let l=0!==t&&0!==n?"problems":0===t?"errors":"warns";return{title:`${e.length} compiled ${l}`,detail:(0,r.jsxs)(h.A.Text,{strong:!0,style:{color:"#fff",marginBottom:0},children:[(0,r.jsx)(h.A.Text,{style:{color:"inherit",fontSize:16},children:"Compiled with"}),(0,r.jsxs)(h.A.Text,{strong:!0,style:{color:c.Q1.Red,fontSize:16},children:[" ",n," ",1===n?"error":"errors"," "]}),(0,r.jsx)(h.A.Text,{style:{color:"inherit",fontSize:16},children:"and"}),(0,r.jsxs)(h.A.Text,{strong:!0,style:{color:c.Q1.Yellow,fontSize:16},children:[" ",t," ",1===t?"warning":"warnings"]})]}),warns:t,errors:n}}n(7753);let N=e=>{let{alerts:t=[],open:n,onClose:l}=e;return t.length?(0,r.jsxs)(w.default,{visible:n,onClose:()=>l(),style:{width:"100%",height:"100%",margin:0,zIndex:1e3},closable:!1,modalRender:e=>i.cloneElement(e,{style:{background:"rgba(0, 0, 0, 0.7)",color:"#fff",height:"100%",overflow:"scroll",borderRadius:0}}),children:[(0,r.jsxs)(p.A,{justify:"space-between",align:"middle",children:[M(t).detail,(0,r.jsx)(x.Ay,{onClick:()=>l(),type:"text",style:{color:"#fff"},size:"large",icon:(0,r.jsx)(y.A,{})})]}),(0,r.jsx)(p.A,{gutter:[0,c.or.BasePadding],children:t.map(e=>(0,r.jsx)(m.A,{span:24,style:{whiteSpace:"pre-wrap",lineHeight:"16px",fontSize:14},children:(0,r.jsx)(f.A,{ghost:!0,style:{background:"#000"},defaultActiveKey:[e.id],expandIcon:e=>e.isActive?(0,r.jsx)(A.A,{style:{color:"#fff"}}):(0,r.jsx)(b.A,{style:{color:"#fff"}}),children:(0,r.jsx)(f.A.Panel,{header:(0,r.jsxs)("div",{style:{color:"#fff"},children:["warn"===e.level?(0,r.jsx)(g.A,{color:c.Q1.Yellow,children:"WARNING"}):(0,r.jsx)(g.A,{color:c.Q1.Red,children:"ERROR"}),(0,r.jsx)(k(),{children:e.description||e.title})]}),children:(0,r.jsx)("div",{style:{color:"#fff"},children:(0,r.jsx)(k(),{children:e.stack})})},e.id)})},e.id))})]}):null},z=(0,d.eN)({api:s.SDK.ServerAPI.API.GetOverlayAlerts,Component:e=>{let{alerts:t=[]}=e;if(!t.length)return null;let[n,l]=(0,i.useState)(!1);return(0,r.jsxs)("div",{className:"container-t1WME9",children:[(0,r.jsx)("div",{onClick:()=>l(!n),className:"badgeContainer-K7EgOu",children:(0,r.jsx)(v.A,{count:t.length,size:"small",children:(0,r.jsx)(S.A,{style:{fontSize:15}})})}),(0,r.jsx)(N,{alerts:t,open:n,onClose:()=>l(!1)})]})},responsePropName:"alerts",fallbackComponent:()=>null});(0,d.eN)({api:s.SDK.ServerAPI.API.GetOverlayAlerts,Component:e=>{let{alerts:t=[],defaultOpen:n=t.length>0}=e;if(!t.length)return null;let[l,s]=(0,i.useState)(n);return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(j.A,{banner:!0,message:i.cloneElement(M(t).detail,{style:{color:"#000"}}),icon:(0,r.jsx)(S.A,{}),action:(0,r.jsx)(x.Ay,{onClick:()=>s(!0),size:"small",children:"More"})}),(0,r.jsx)(N,{alerts:t,open:l,onClose:()=>s(!1)})]})},responsePropName:"alerts",fallbackComponent:()=>null})},42868:function(e,t,n){n.d(t,{Ex:()=>s});var l=n(65723),r=n(26316);n(22155);let i={default:"linear-gradient(to bottom, #3ea2ff 0%, #0072db 100%)",success:"linear-gradient(to bottom, #6cf42a 0%, #52C41A 100%)",warn:"linear-gradient(to bottom, #ffc100 0%, #f59025 100%)",error:"linear-gradient(to bottom, rgb(250 127 22), #FF4D4F 100%)"},s=e=>{let{label:t,value:n,type:s="default",tooltip:a}=e,o={height:"100%",lineHeight:"22px",width:"auto",display:"inline-block",boxSizing:"border-box",padding:"0 6px",color:"#fff",fontSize:12,textAlign:"center",verticalAlign:"middle"},d=(0,l.jsxs)("div",{style:{height:22,margin:0,padding:0,boxSizing:"border-box",borderRadius:4,fontSize:0,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",display:"flex",justifyContent:"flex-start",alignItems:"center"},children:[(0,l.jsx)("div",{style:{...o,borderTopLeftRadius:4,borderBottomLeftRadius:4,background:"linear-gradient(to bottom, #525252a3 0%, #1F1F1F 100%)"},children:t}),(0,l.jsx)("div",{style:{...o,borderTopRightRadius:4,borderBottomRightRadius:4,overflow:"hidden",textOverflow:"ellipsis",background:i[s]||i.default},children:n})]});return a?(0,l.jsx)(r.A,{title:!0===a?n:a,placement:"topLeft",children:d}):d}},54352:function(e,t,n){n.d(t,{QE:()=>m,aq:()=>g,vh:()=>x});var l=n(65723),r=n(83397),i=n(31448),s=n(98369),a=n(26316),o=n(95154),d=n(32792),c=n(22155),u=n(128),h=n(43928),p=n(49249);let x=e=>{let{baseline:t,current:n,...r}=e,i=d.TS.diffSize(t,n);return(0,l.jsx)(m,{...r,...i})},m=e=>{let{percent:t,state:n,fontSize:s=14}=e,a=+t.toFixed(2);if(a>0){let e=`${a}`;if(n===r.Client.RsdoctorClientDiffState.Up)return(0,l.jsxs)(i.A.Text,{strong:!0,style:{fontSize:s,color:h.Q1.Red},children:["+",e,"%"]});if(n===r.Client.RsdoctorClientDiffState.Down)return(0,l.jsxs)(i.A.Text,{strong:!0,style:{fontSize:s,color:h.Q1.Green},children:["-",e,"%"]})}return null},f=e=>{let{data:t,formatter:n}=e,{percent:r,state:o,size:d}=t,{baseline:c,current:h}=d,p=n?n(c,"baseline"):(0,u.formatSize)(c),x=n?n(h,"current"):(0,u.formatSize)(h);return(0,l.jsx)(s.A,{align:"start",children:(0,l.jsxs)(s.A,{direction:"vertical",style:{textAlign:"left"},children:[(0,l.jsxs)(s.A,{children:[(0,l.jsx)(i.A.Text,{style:{fontSize:10,color:"inherit"},keyboard:!0,children:"Current"}),(0,l.jsx)(a.A,{title:"number"==typeof x||"string"==typeof x?`Value of Current is ${x}`:void 0,children:(0,l.jsx)(i.A.Text,{style:{fontSize:16,color:"inherit"},strong:!0,children:x})}),(0,l.jsx)(m,{percent:r,state:o})]}),(0,l.jsxs)(s.A,{children:[(0,l.jsx)(i.A.Text,{style:{fontSize:10,color:"inherit"},keyboard:!0,children:"Baseline"}),(0,l.jsx)(a.A,{title:"number"==typeof p||"string"==typeof p?`Value of Baseline is ${p}`:void 0,children:(0,l.jsx)(i.A.Text,{style:{fontSize:14},type:"secondary",children:p})})]})]})})},g=e=>{let{titles:t,datas:n,formatter:r,showPercentInTitle:a}=e,[d,u]=(0,c.useState)(0);return(0,l.jsx)(p.j,{title:t.length>1?(0,l.jsx)(o.A,{defaultValue:t[d],options:a?t.map((e,t)=>{let r=n[t];return{label:(0,l.jsxs)(s.A,{children:[(0,l.jsx)(i.A.Text,{children:e}),(0,l.jsx)(m,{percent:r.percent,state:r.state})]}),value:e}}):t,onChange:e=>{u(t.indexOf(e))},size:"small",style:{transition:"transform 0.3s ease"},value:t[d]||t[0]}):t[d],value:(0,l.jsx)(f,{data:n[d],formatter:r}),statisticProps:{style:{textAlign:"left"}}})}},97255:function(e,t,n){n.d(t,{Zp:()=>d});var l=n(65723),r=n(22155),i=n(47078),s=n(82528),a=n(20772),o=n(98369);n(54352);let d=e=>{let{collapsable:t=!1,children:n,title:d,dividerStyle:c,defaultCollapsed:u=!1,...h}=e,[p,x]=(0,r.useState)(u);return d&&t?(0,l.jsx)(a.A,{style:{borderRadius:"12px"},...h,title:(0,l.jsxs)(o.A,{style:{fontSize:"inherit"},children:[(0,l.jsx)("div",{style:{cursor:"pointer"},onClick:()=>x(!p),children:p?(0,l.jsx)(i.A,{}):(0,l.jsx)(s.A,{})}),d]}),children:p?null:n}):(0,l.jsx)(a.A,{style:{borderRadius:"12px"},title:d,...h,children:n})}},49249:function(e,t,n){n.d(t,{j:()=>i});var l=n(65723),r=n(53310);let i=e=>{let{title:t,value:n,statisticProps:i,boxProps:s}=e;return(0,l.jsx)("div",{className:"statistic-card",...s,children:(0,l.jsx)(r.A,{title:(0,l.jsx)("div",{className:"statistic-card-title",children:t}),valueRender:()=>n,valueStyle:{fontSize:24},...i})})}},41257:function(e,t,n){n.d(t,{n:()=>j});var l=n(65723),r=n(22155),i=n(49599),s=n(82943),a=n(25920),o=n(59717),d=n(33342),c=n(93655),u=n(4171),h=n.n(u),p=n(87854),x=n(8857),m=n(40097),f=n(74861),g=n(67559);let j=(0,r.memo)(e=>{let{loaderData:t,pluginsData:n,formatterFn:u,chartType:j=x.wx.Normal,exts:v=null}=e,y=[],A=[],[b,S]=(0,r.useState)({});return m.Y([s.a,a.a,o.a,d.a,c.a]),(0,r.useEffect)(()=>{if(!t)return;let e=[];t.forEach(t=>{e.unshift(t.n+" total"),e.unshift(t.n)}),t.forEach(function(t,n){var l;if(y.push({name:t.n+" total",value:[e.indexOf(t.n+" total"),t.s,t.e,t.e-t.s],itemStyle:{normal:{color:x.dK[Math.floor(27*Math.random())],opacity:.25}}}),null==t?void 0:t.c)for(let n=0;n<(null==t||null==(l=t.c)?void 0:l.length);n++)y.push({name:t.n,value:[e.indexOf(t.n),t.c[n].s,t.c[n].e,t.c[n].e-t.c[n].s],itemStyle:{normal:{color:x.dK[Math.floor(27*Math.random())],opacity:.25}},ext:t.c[n].ext})}),A=e.map((e,t)=>t%2!=0?e.replace(" total",""):"")},[t]),(0,r.useEffect)(()=>{if(!n)return;let e=(0,p.$)(n,e=>e.pid);Object.keys(e).reverse().forEach(function(t,n){e[t].forEach((e,t)=>{y.push({name:String(e.pid),value:[n,e.args.s,e.args.e,e.args.e-e.args.s],itemStyle:{normal:{color:x.dK[Math.floor(27*Math.random())],opacity:.25}},ext:e})}),A.push(String(t.charAt(0).toUpperCase()+t.slice(1)))})},[n]),(0,r.useEffect)(()=>{S({tooltip:{formatter:e=>u(e)},dataZoom:[{type:"slider",filterMode:"weakFilter",showDataShadow:!1,top:-10},{type:"inside",filterMode:"weakFilter"}],grid:{top:10,left:0,bottom:10,right:0,height:A.length>(j===x.wx.Loader?6:3)?"auto":60*A.length,containLabel:!0},xAxis:{interval:(null==v?void 0:v.endTimestamp)&&(null==v?void 0:v.startTimestamp)?Math.floor((v.endTimestamp-v.startTimestamp)/8):null,position:"top",splitLine:{show:!0},scale:!0,axisLine:{show:!1},axisLabel:{formatter:e=>h()(e).format("HH:mm:ss:SSS")}},yAxis:{type:"category",splitLine:{show:!1},axisLabel:{inside:!0,lineHeight:20,width:100,fontSize:12,color:"#000",verticalAlign:"bottom"},axisLine:{show:!1},axisTick:{show:!1},data:A},series:[{type:"custom",renderItem:function(e,t){let n=t.value(0),l=t.coord([t.value(1),n]),r=t.coord([t.value(2),n]),i=.3*t.size([0,1])[1],s=f.clipRectByRect({x:l[0],y:j===x.wx.Loader?l[1]-(n%2!=0?0:2*i):l[1],width:r[0]-l[0]||5,height:i},{x:e.coordSys.x,y:e.coordSys.y,width:e.coordSys.width,height:e.coordSys.height});return s&&{type:"rect",transition:["shape"],shape:s,style:t.style(),enterFrom:{style:{opacity:0},x:0}}},itemStyle:{opacity:.8},encode:{x:[1,2],y:0},data:y}]})},[t,n,v]),(0,l.jsx)(i.A,{option:b,echarts:g,style:{width:"100%",minHeight:j===x.wx.Loader?"500px":j===x.wx.Minify?"100px":"200px",maxHeight:j===x.wx.Minify?"100px":"1000px",border:"1px solid #eee",borderRadius:"10px"}})})},69263:function(e,t,n){n.d(t,{d:()=>N});var l=n(65723),r=n(22155),i=n(49599),s=n(44184),a=n(25920),o=n(93655),d=n(8857),c=n(98369),u=n(20772),h=n(31448),p=n(26316),x=n(64801),m=n(50118),f=n(85189),g=n(64857),j=n(45373),v=n(128),y=n(14303);let A={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 b=n(40097),S=n(82557),w=n(67559);function C(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n);return t>>>0}let k=(0,r.memo)(e=>{let{treeData:t,valueKey:n="sourceSize",style:c,onChartClick:u,forwardedRef:h}=e,[p,x]=(0,r.useState)(null),m=r.useRef(null);return(0,r.useEffect)(()=>{h&&m.current&&("function"==typeof h?h(m.current):h.current=m.current)},[h,m.current]),(0,r.useEffect)(()=>{b.Y([s.a,a.a,o.a])},[]),(0,r.useEffect)(()=>{t&&x({title:{text:"Bundle Tree Map",left:"center"},tooltip:{position:"top",formatter:function(e){for(var t=e.treePathInfo,n=[],l=1;l<t.length;l++)n.push(t[l].name);var r=e.data||{},i=r.path||n.join("/"),s=r.sourceSize,a=r.bundledSize,o=r.gzipSize,d=r.level;function c(e,t,n){return`<div class="${A["tooltip-row"]}"><span class="${A["tooltip-label"]}">${e}</span><span${n?` style="color: ${n}"`:""}>${t}</span></div>`}return[`<div class="${A["tooltip-path"]}">`+S.Me(i)+"</div>",c(0===d?"Asset":"Source",void 0!==s?(0,v.formatSize)(s):"-"),!a?"":c("Bundled",(0,v.formatSize)(a),"#1890ff"),!o?"":c("Gzipped",(0,v.formatSize)(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,l){var r;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=d.tQ[l],a=null==(r=t.children)?void 0:r.map((t,n)=>e(t,l,i+1));return{id:t.path?C(t.path):void 0,name:t.name,value:t[n]??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:s[i%s.length],borderColor:s[i%s.length]},level:i}})(e,d.Rk[t%d.Rk.length],0))}]})},[t,n]),p?(0,l.jsx)("div",{children:(0,l.jsx)(i.A,{ref:m,option:p,echarts:w,onEvents:u?{click:u}:void 0,style:{width:"100%",minHeight:"500px",maxHeight:"1000px",border:"5px solid white",borderRadius:"10px",...c},className:A["chart-container"]})}):null}),M=r.forwardRef((e,t)=>(0,l.jsx)(k,{...e,forwardedRef:t})),N=e=>{let{treeData:t,onChartClick:n,bundledSize:i=!1}=e,s=(0,r.useMemo)(()=>t.map(e=>e.name),[t]),[a,o]=(0,r.useState)(s),[d,b]=(0,r.useState)(!1),[S,w]=(0,r.useState)(!1),k=r.useRef(null),{t:N}=(0,v.useI18n)(),z=(0,r.useMemo)(()=>t.filter(e=>a.includes(e.name)),[t,a]);return(0,l.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:16},className:A.treemap,children:(0,l.jsxs)(c.A,{direction:"vertical",style:{width:"100%"},children:[(0,l.jsx)(u.A,{title:(0,l.jsxs)(c.A,{children:[(0,l.jsx)(h.A.Text,{children:N("Output Assets List")}),(0,l.jsx)(y.s,{onModuleClick:e=>{if(!(null==e?void 0:e.path))return;let t=C(e.path);k.current&&k.current.getEchartsInstance().dispatchAction({type:"treemapZoomToNode",seriesId:"bundle-treemap",targetNodeId:t.toString()}),w(!1)},open:S,setOpen:w,isIcon:!0}),(0,l.jsx)(p.A,{color:"white",title:(0,l.jsxs)("span",{children:["✨ In Rspack, TreeMap proportions are always based on Bundled Size by default.",(0,l.jsx)("br",{}),"✨ In Webpack, TreeMap proportions are based on Bundled Size only when SourceMap is enabled.",(0,l.jsx)("br",{}),"✨ ",(0,l.jsx)("b",{children:"Bundled Size"}),": The size of a module after bundling and minification.",(0,l.jsx)("br",{}),"✨ ",(0,l.jsx)("b",{children:"Source Size"}),": The size of a module after compilation (e.g., TypeScript/JSX to JS), but before bundling and minification.",(0,l.jsx)("br",{}),"✨ ",(0,l.jsx)("b",{children:"Gzipped Size"}),": The compressed file size that users actually download, as most web servers use gzip compression.",(0,l.jsx)("br",{})]}),overlayInnerStyle:{width:620,color:"black"},children:(0,l.jsx)(f.A,{style:{color:"#1890ff",marginLeft:8}})}),(0,l.jsxs)(x.A,{color:"blue",children:["TreeMap area based on"," ",i?"Bundled Size":"Source Size"]})]}),extra:(0,l.jsx)("span",{className:A["collapse-icon"],onClick:()=>b(e=>!e),"aria-label":N(d?"Expand":"Collapse"),children:d?(0,l.jsx)(g.A,{}):(0,l.jsx)(j.A,{})}),size:"small",className:`card-body ${d?"collapsed":""}`,children:(0,l.jsxs)("div",{className:`checkbox-container ${d?"collapsed":""}`,children:[(0,l.jsx)(m.A,{indeterminate:a.length>0&&a.length<s.length,checked:a.length===s.length,onChange:e=>o(e.target.checked?s:[]),className:A["all-none-checkbox"],children:"ALL / NONE"},"all-none-checkbox"),(0,l.jsx)(m.A.Group,{options:s,value:a,onChange:o,className:`checkbox-container ${d?"collapsed":""} ${A["asset-checkbox-group"]}`},"asset-checkbox-group")]})}),(0,l.jsx)("div",{style:{flex:1},children:(0,l.jsx)(M,{ref:k,treeData:z,valueKey:i?"bundledSize":"sourceSize",onChartClick:n})})]})})}},8857:function(e,t,n){n.d(t,{Rk:()=>o,dK:()=>l,tQ:()=>s,wx:()=>i});let l=["#F2793D","#F28B24","#F2A200","#F5CC00","#F5E000","#A3D900","#66CC00","#0AC419","#0AC496","#0AC7D1","#00A8E0","#1471F5","#4060FF","#7559FF","#884DFF","#A526FF","#BA39E5","#C700D9","#D900B5","#E50099","#E52E6B","#F24957","#30B2F2","#00BF70","#5959FF","#9F40FF","#528BFF"];var r,i=((r={})[r.Bootstrap=0]="Bootstrap",r[r.Compile=1]="Compile",r[r.Done=2]="Done",r[r.Minify=3]="Minify",r[r.Loader=4]="Loader",r[r.Normal=5]="Normal",r);let s={green:[a("#32b26a",.6),a("#5fcf92",.6),a("#8ee2b6",.8),a("#b7e1cd",1),a("#cdeee0",1),a("#e0f7ef",1),a("#c8e6d6",1)],blue:[a("#3498f7",.6),a("#5eb3fa",.6),a("#8ccafc",.8),a("#b3d8f8",1),a("#cde6fa",1),a("#e0f2fd",1),a("#c8e0ef",1)],purple:[a("#a04ddb",.6),a("#b26ef0",.6),a("#c49ff5",.8),a("#d1b3e6",1),a("#e0c8f2",1),a("#f0e6fa",1),a("#d6c8e6",1)],yellow:[a("#ffe066",.6),a("#ffec80",.6),a("#fff599",.8),a("#fff9c4",1),a("#fffbe0",1),a("#fffde7",1),a("#f5f2c8",1)],grey:[a("#7a7a7a",.7),a("#969696",.7),a("#b0b0b0",.8),a("#c8c8c8",1),a("#dcdcdc",1),a("#ededed",1),a("#f7f7f7",1)]};function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseInt(e.slice(1,3),16),l=parseInt(e.slice(3,5),16),r=parseInt(e.slice(5,7),16);return`rgba(${n}, ${l}, ${r}, ${t})`}let o=["blue","purple","yellow","grey","green"]},73255:function(e,t,n){n.d(t,{z:()=>m});var l=n(65723),r=n(22155),i=n(87854),s=n(81489);n(22481);var a=n(27124),o=n(78870),d=n(13409),c=n(41257),u=n(39009),h=n(8857);let p=0,x=0,m=e=>{let{loaders:t,cwd:n}=e,{isDark:m}=(0,a.DP)(),f=(0,r.useRef)(null),[g,j]=(0,r.useState)([]),v=(0,u.Wy)(g,200),y=(0,r.useMemo)(()=>(0,i.$)(t,e=>e.loader),[t]),A=(0,r.useCallback)(e=>{let{name:l,data:r}=e,i=l.replace(" total","");return(null==r?void 0:r.ext)?(0,u.Bq)(r.ext):(0,u.iv)(i,t,n)},[]);return(0,r.useEffect)(()=>{j(Object.keys(y).map(e=>{let t=y[e]||[],{start:l,end:r}=(0,o.xr)(t);return(l<p||0===p)&&(p=l),(r>x||0===x)&&(x=r),{p:e,n:e,s:l,e:r,c:t.map(t=>({p:e,n:(0,d.Zb)(t.resource,n),s:t.startAt,e:t.endAt,ext:t}))}}))},[y]),(0,l.jsx)(l.Fragment,{children:(null==g?void 0:g.length)?(0,l.jsx)("div",{className:["loader-chart-container",m?"loader-chart-container_dark":""].join(" ").trim(),ref:f,style:{width:"100%"},children:(0,l.jsx)(c.n,{loaderData:v,formatterFn:A,chartType:h.wx.Loader,exts:{startTimestamp:p,endTimestamp:x}})}):(0,l.jsx)(s.A,{})})}},90989:function(e,t,n){n.d(t,{a:()=>r});var l,r=((l={}).BEGIN="B",l.END="E",l.COMPLETE="X",l.INSTANT="I",l.MARK="R",l)},83912:function(e,t,n){n.d(t,{A:()=>l});let l={title:"title-BZ9xk1"}},96800:function(e,t,n){n.d(t,{h:()=>A,C:()=>y});var l=n(65723);n(22155);var r=n(88415),i=n(98369),s=n(37622),a=n(45586),o=n(8208),d=n(76847),c=n(16396);let u=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,l.jsx)("path",{fill:"#FAAD14",d:"M11.409 3.51 8.046.146A.5.5 0 0 0 7.693 0H1.056a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.462 1.152l2.94 2.94h-2.94zm2.969 11.722H1.68V1.125h4.718V4.5a.656.656 0 0 0 .657.656h3.375z"}),(0,l.jsx)("path",{fill:"#FAAD14",d:"M6.927 9.651h.888a1.6 1.6 0 0 1-.24.775q-.211.339-.592.528-.377.19-.908.19a1.9 1.9 0 0 1-.745-.142 1.6 1.6 0 0 1-.564-.416 1.9 1.9 0 0 1-.354-.653 2.8 2.8 0 0 1-.121-.858v-.3q0-.474.124-.858.128-.386.362-.656.238-.27.567-.415.33-.146.737-.146.54 0 .911.196.375.195.58.54.206.345.249.784H6.93a1.15 1.15 0 0 0-.104-.442.6.6 0 0 0-.27-.276 1 1 0 0 0-.475-.095.86.86 0 0 0-.39.083.7.7 0 0 0-.278.252 1.3 1.3 0 0 0-.17.428q-.053.255-.053.6v.305q0 .335.05.591.051.251.155.428a.7.7 0 0 0 .273.26.9.9 0 0 0 .407.087q.28 0 .46-.09a.6.6 0 0 0 .276-.263q.098-.176.116-.437"}),(0,l.jsx)("path",{fill:"#FFF1B8",fillRule:"evenodd",d:"M6.4 1.125V4.5a.656.656 0 0 0 .656.656h3.375v7.719H1.68V1.125zm1.415 8.526h-.888q-.017.261-.116.437a.6.6 0 0 1-.276.264q-.18.09-.46.089a.9.9 0 0 1-.407-.086.7.7 0 0 1-.273-.261q-.104-.176-.154-.428a3 3 0 0 1-.05-.59v-.307q0-.345.053-.6.056-.258.169-.427a.7.7 0 0 1 .279-.252.86.86 0 0 1 .389-.083q.297 0 .475.095a.6.6 0 0 1 .27.276q.09.18.104.442h.89a1.8 1.8 0 0 0-.249-.784q-.205-.345-.579-.54-.37-.195-.911-.196-.407 0-.737.146-.33.145-.567.415-.234.27-.362.656a2.8 2.8 0 0 0-.124.858v.3q0 .476.121.858.122.383.354.653.234.27.564.416.33.143.745.143.531 0 .908-.19.38-.19.591-.529a1.6 1.6 0 0 0 .24-.775",clipRule:"evenodd"})]}),h=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,l.jsx)("path",{fill:"#722ED1",d:"M6.076 7.58a.356.356 0 0 1 .646.299l-1.576 3.414a.356.356 0 0 1-.646-.298zM7.198 8.135a.356.356 0 0 0 0 .503l.8.799-.8.8a.356.356 0 1 0 .503.502l1.05-1.05a.356.356 0 0 0 0-.503l-1.05-1.05a.356.356 0 0 0-.503 0M4.024 8.135a.356.356 0 0 1 0 .503l-.799.799.8.8a.356.356 0 1 1-.504.502l-1.05-1.05a.356.356 0 0 1 0-.503l1.05-1.05a.356.356 0 0 1 .503 0"}),(0,l.jsx)("path",{fill:"#EFDBFF",fillRule:"evenodd",d:"M5.955 1.125V4.5a.656.656 0 0 0 .656.656h3.375v7.719h-8.75V1.125zm.121 6.456a.356.356 0 1 1 .646.298l-1.576 3.414a.356.356 0 1 1-.646-.298zm1.122.554a.356.356 0 0 0 0 .503l.8.799-.8.8a.356.356 0 1 0 .503.502l1.05-1.05a.356.356 0 0 0 0-.503l-1.05-1.05a.356.356 0 0 0-.503 0m-3.174.503a.356.356 0 1 0-.503-.503l-1.05 1.05a.356.356 0 0 0 0 .503l1.05 1.05a.355.355 0 1 0 .503-.502l-.799-.799z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"#722ED1",d:"M10.964 3.51 7.602.146A.5.5 0 0 0 7.249 0H.61a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.017 1.152l2.941 2.94h-2.94zm2.97 11.722h-8.75V1.125h4.718V4.5a.656.656 0 0 0 .656.656h3.375z"})]}),p=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,l.jsx)("path",{fill:"#E6F7FF",d:"M6.733 4.5V1.125h-4.72v11.75h8.75V5.156H7.39a.656.656 0 0 1-.656-.656m-2.094.781a.625.625 0 1 1 0 1.25.625.625 0 0 1 0-1.25m4.625 4.594H3.515a.125.125 0 0 1-.098-.202l1.56-1.987a.125.125 0 0 1 .196 0l.642.819 1.216-1.55a.126.126 0 0 1 .199 0l2.132 2.718a.125.125 0 0 1-.098.202"}),(0,l.jsx)("path",{fill:"#1890FF",d:"M11.742 3.51 8.38.146A.5.5 0 0 0 8.026 0H1.39a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.795 1.152l2.94 2.94h-2.94zm2.969 11.722h-8.75V1.125h4.719V4.5a.656.656 0 0 0 .656.656h3.375z"}),(0,l.jsx)("path",{fill:"#1890FF",d:"m7.031 6.955-1.215 1.55-.643-.82a.125.125 0 0 0-.196 0l-1.56 1.988a.125.125 0 0 0 .099.202h5.748c.105 0 .163-.12.098-.202L7.23 6.955a.127.127 0 0 0-.199 0M4.014 5.906a.625.625 0 1 0 1.25 0 .625.625 0 0 0-1.25 0"})]}),x=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,l.jsx)("path",{fill:"#E6F7FF",fillRule:"evenodd",d:"M6.177 1.125V4.5a.656.656 0 0 0 .656.656h3.375v7.719h-8.75V1.125zm1.806 8.7q.03.081.03.183a.411.411 0 0 1-.26.388.8.8 0 0 1-.333.057q-.166 0-.307-.034a.7.7 0 0 1-.24-.11.5.5 0 0 1-.153-.197.7.7 0 0 1-.055-.3H5.88q0 .321.133.555.132.234.354.386.225.15.497.226.275.073.555.073.313 0 .565-.07.254-.07.435-.206.183-.135.279-.33a1 1 0 0 0 .096-.443q0-.235-.08-.42a1 1 0 0 0-.24-.33 1.7 1.7 0 0 0-.396-.263 3.5 3.5 0 0 0-.544-.211 3 3 0 0 1-.326-.118 1.3 1.3 0 0 1-.237-.127.5.5 0 0 1-.146-.146.33.33 0 0 1-.047-.174q0-.129.068-.23a.45.45 0 0 1 .203-.164.8.8 0 0 1 .339-.062q.21 0 .349.073a.48.48 0 0 1 .208.2q.07.125.07.292h.777q0-.339-.175-.602a1.17 1.17 0 0 0-.484-.414 1.7 1.7 0 0 0-.732-.15q-.307 0-.565.075-.255.075-.443.216a1 1 0 0 0-.292.333.9.9 0 0 0-.104.43q0 .244.1.43.1.184.275.325.178.138.406.242.232.104.49.188.232.072.378.14a1 1 0 0 1 .226.138q.08.068.11.152M4.595 7.209v2.628q0 .195-.063.33a.46.46 0 0 1-.17.206.47.47 0 0 1-.257.07.6.6 0 0 1-.263-.051.36.36 0 0 1-.17-.175.8.8 0 0 1-.057-.33h-.783q0 .398.164.658.164.258.45.383t.659.125q.36 0 .646-.146.289-.146.456-.416.166-.274.166-.654V7.208z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"#1890FF",d:"M8.014 10.008a.5.5 0 0 0-.031-.182.34.34 0 0 0-.11-.152 1 1 0 0 0-.226-.138 3 3 0 0 0-.378-.14 5 5 0 0 1-.49-.188 2 2 0 0 1-.406-.242 1.1 1.1 0 0 1-.276-.325.9.9 0 0 1-.099-.43q0-.237.104-.43a1 1 0 0 1 .292-.333q.188-.141.443-.216.258-.075.565-.076.42 0 .732.151.312.152.484.414.175.264.175.602h-.776a.6.6 0 0 0-.07-.292.48.48 0 0 0-.21-.2.74.74 0 0 0-.348-.073.8.8 0 0 0-.339.062.45.45 0 0 0-.203.164.4.4 0 0 0-.067.23q0 .096.046.174.05.078.146.146t.237.127q.14.06.326.118.31.093.544.21.237.118.396.264a1 1 0 0 1 .24.33q.08.185.08.42a1 1 0 0 1-.096.442.9.9 0 0 1-.279.331q-.181.135-.435.206a2.1 2.1 0 0 1-.565.07q-.28 0-.555-.073a1.7 1.7 0 0 1-.497-.226q-.222-.152-.354-.386a1.1 1.1 0 0 1-.133-.555h.784q0 .178.055.3a.5.5 0 0 0 .153.198q.102.075.24.11.14.033.307.033.204 0 .333-.057a.41.41 0 0 0 .26-.388M4.595 9.836V7.208h.778v2.628q0 .38-.166.654-.167.27-.456.416a1.4 1.4 0 0 1-.646.146q-.372 0-.659-.125a1 1 0 0 1-.45-.383q-.164-.26-.164-.659h.783q0 .21.058.331a.36.36 0 0 0 .169.175q.109.052.263.052a.47.47 0 0 0 .258-.07.46.46 0 0 0 .17-.206q.061-.135.062-.331"}),(0,l.jsx)("path",{fill:"#1890FF",d:"M11.186 3.51 7.824.146A.5.5 0 0 0 7.47 0H.833a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.24 1.152l2.94 2.94H7.24zm2.968 11.722h-8.75V1.125h4.72V4.5a.656.656 0 0 0 .655.656h3.375z"})]}),m=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,l.jsx)("path",{fill:"#F0F0F0",d:"M6.288 4.5V1.125H1.57v11.75h8.75V5.156H6.944a.656.656 0 0 1-.656-.656m-.344 6.625a.5.5 0 1 1 0-.999.5.5 0 0 1 0 .999m1.72-3.569c.01.702-.465 1.32-1.162 1.546a.22.22 0 0 0-.151.207V9.5c0 .086-.07.156-.157.156h-.5a.157.157 0 0 1-.156-.156V9a.65.65 0 0 1 .542-.627c.443-.057.77-.4.77-.795 0-.439-.402-.805-.906-.805-.503 0-.906.366-.906.807a.15.15 0 0 1-.153.147H4.38a.15.15 0 0 1-.153-.149c0-.897.783-1.62 1.742-1.61.926.013 1.683.721 1.695 1.588"}),(0,l.jsx)("path",{fill:"#8C8C8C",d:"M11.298 3.51 7.935.148A.5.5 0 0 0 7.58 0H.944a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.146-.353M7.35 1.154l2.94 2.94h-2.94zm2.968 11.722H1.57V1.125h4.72V4.5a.656.656 0 0 0 .655.656h3.375z"}),(0,l.jsx)("path",{fill:"#8C8C8C",d:"M5.444 10.625a.5.5 0 1 0 1 0 .5.5 0 0 0-1 0M4.226 7.578a.15.15 0 0 0 .153.149h.506a.15.15 0 0 0 .153-.147c0-.44.403-.807.906-.807.504 0 .907.366.907.805 0 .395-.328.738-.77.795A.65.65 0 0 0 5.537 9v.5c0 .086.07.156.156.156h.5c.086 0 .157-.07.157-.156v-.19a.22.22 0 0 1 .151-.208c.697-.225 1.172-.844 1.161-1.546-.012-.867-.769-1.575-1.695-1.587-.96-.011-1.742.712-1.742 1.61"})]});var f=n(128),g=n(13078),j=n.n(g);let{useToken:v}=r.A;function y(e){let t=function(e){switch(j().extname(e).slice(1).toLowerCase()){case"js":case"jsx":case"ts":case"mjs":case"cjs":case"mts":case"cts":return(0,l.jsx)(x,{});case"tsx":default:return(0,l.jsx)(m,{});case"css":case"scss":case"sass":case"less":case"styl":case"stylus":return(0,l.jsx)(u,{});case"html":return(0,l.jsx)(h,{});case"png":case"jpg":case"jpeg":case"gif":case"svg":case"bmp":case"webp":case"ico":case"apng":case"avif":case"tif":case"tiff":case"jfif":case"pjpeg":case"pjp":return(0,l.jsx)(p,{})}}(e);return(0,l.jsx)("div",{className:"file-icon",children:t})}let A=e=>{let{isDark:t}=(0,f.useTheme)(),{token:n}=v(),r=t?n.colorWhite:n.colorText,u={fontSize:n.fontSize};return(0,l.jsx)(c.default,{checkable:!1,selectable:!0,switcherIcon:e=>{let{data:t,expanded:n}=e;return(null==t?void 0:t.children)?(0,l.jsxs)(i.A,{style:{color:r},children:[(0,l.jsx)(s.A,{twoToneColor:r,className:`file-tree-switcher-arrow ${n?"file-tree-switcher-arrow-expand":""}`,style:u}),n?(0,l.jsx)(a.A,{}):(0,l.jsx)(o.A,{})]}):(null==t?void 0:t.key)&&"string"==typeof t.key?y(t.key):(0,l.jsx)(d.A,{})},expandAction:"click",...e})}},10142:function(e,t,n){n.d(t,{E:()=>o});var l=n(65723),r=n(22155),i=n(98204),s=n(31786),a=n(31448);let o=e=>{let t,{icon:n,label:o,labelStyle:d={},placeholder:c,onChange:u,style:h,className:p,width:x,delay:m=300}=e,[f,g]=(0,r.useState)(""),j={width:120,...d},v=(0,r.useRef)(null);return(0,r.useEffect)(()=>{u(f)},[f]),(0,l.jsxs)(i.A.Group,{compact:!0,style:h,className:p,children:[o||n?(0,l.jsxs)(s.Ay,{style:j,onClick:()=>{v&&v.current&&v.current.focus()},children:[n||null,(0,l.jsx)(a.A.Text,{children:o})]}):null,(0,l.jsx)(i.A,{ref:v,allowClear:!0,defaultValue:f,style:{width:x?x-120:250},placeholder:c,onChange:e=>{t&&clearTimeout(t);let n=e.target.value.trim();t=setTimeout(()=>{g(n)},m)}})]})}},72854:function(e,t,n){n.d(t,{i:()=>a});var l=n(65723);n(22155);var r=n(31448),i=n(28342);let s="text-QI6k9S",a=e=>{let{text:t,keyword:n,...i}=e;if(!n||-1===t.indexOf(n))return o({text:t,rest:i});let a=[],d=t;for(;d.length>0;){let e=d.indexOf(n);if(e>-1)0!==e&&a.push(o({text:d,els:a})),a.push(o({text:d,els:a,marked:!0})),d=d.slice(e+n.length);else{a.push(o({text:d,els:a,marked:!0}));break}}return(0,l.jsx)(r.A.Text,{className:s,...i,children:a})},o=e=>{let{text:t,els:n,marked:a=!1,rest:o}=e;if(!t)return null;let d=t.length;if(d>40){let e=Math.floor(18.5),n=Math.ceil(18.5);return(0,l.jsx)(i.A,{content:t,placement:"left",children:(0,l.jsx)("div",{children:(0,l.jsxs)(r.A.Text,{className:s,mark:!!a,...o,children:[t.slice(0,e),"...",t.slice(d-n)]})})})}return(0,l.jsx)(i.A,{content:t,children:(0,l.jsx)("div",{children:(0,l.jsx)(r.A.Text,{className:s,...o,children:t},n?n.length:0)})})}},31058:function(e,t,n){n.d(t,{h:()=>V});var l=n(65723),r=n(83027),i=n(83397),s=n(8879),a=n(64801),o=n(98369),d=n(26316),c=n(31448),u=n(28342),h=n(1836),p=n(63079),x=n(84585),m=n(20772),f=n(81234),g=n(36643),j=n(14696),v=n(22155),y=n(43928),A=n(128),b=n(96800),S=n(72854),w=n(70054),C=n(9136),k=n(2323),M=n(37080),N=n(81489),z=n(4171),T=n.n(z);let P=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:12,fill:"none",viewBox:"0 0 10 12",...e,children:[(0,l.jsx)("path",{fill:"#FAAD14",fillRule:"evenodd",d:"M3.151 7.98h-1.85a.925.925 0 0 1-.924-.925V1.508c0-.511.414-.925.925-.925h7.396c.511 0 .925.414.925.925v5.547c0 .51-.414.924-.925.924H6.85V6.13a1.85 1.85 0 0 0-3.698 0z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"#FAAD14",d:"M4.076 9.829a.925.925 0 0 0 1.849 0V6.13a.925.925 0 0 0-1.85 0z"}),(0,l.jsx)("path",{fill:"#FAAD14",d:"M5 11.416 7.402 8.92H2.598z"})]}),R=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,l.jsx)("rect",{width:16,height:16,fill:"#F6FFED",rx:2}),(0,l.jsx)("path",{fill:"#52C41A",fillRule:"evenodd",d:"M4.302 6.02a.925.925 0 0 0-.925.925v5.547c0 .51.414.925.925.925h7.396c.511 0 .925-.414.925-.925V6.945a.925.925 0 0 0-.925-.925zm5.547 0H6.151v1.85a1.85 1.85 0 0 0 3.698 0z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"#52C41A",d:"M7.076 4.171a.925.925 0 0 1 1.849 0V7.87a.925.925 0 0 1-1.85 0z"}),(0,l.jsx)("path",{fill:"#52C41A",d:"m8 2.584 2.402 2.496H5.598z"})]}),E=e=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",viewBox:"0 0 14 14",...e,children:(0,l.jsx)("path",{fill:"#2994FF",d:"M7 10.736 1.7 6.589a.125.125 0 0 0-.201.098v1.208c0 .077.036.15.095.197l5.097 3.989a.5.5 0 0 0 .617 0l5.095-3.99a.25.25 0 0 0 .096-.196V6.687a.125.125 0 0 0-.202-.098zm0-4.75L1.7 1.839a.125.125 0 0 0-.201.098v1.208c0 .077.036.15.095.197L6.692 7.33a.5.5 0 0 0 .617 0l5.095-3.99a.25.25 0 0 0 .096-.196V1.937a.125.125 0 0 0-.202-.098z"})});var O=n(31465),D=n(97255),L=n(13078),_=n.n(L),B=n(32792);let I=+Date.now().toString().slice(-4)+1e3,F=e=>{let t,n,{cwd:r,url:i,loc:s,windowId:a=I,label:o,disabled:d,code:u=!1}=e,h=_().resolve(r,(t=i.split(" "),n="",1===t.length?[n]=t:[n]=t.filter(e=>_().isAbsolute(e)||e.startsWith("./")),n||i)),{line:p,columnStart:x}=function(e){if(!e)return{line:1,column:1};let[t,n=""]=e.split(":"),[l=1,r]=n.split("-");return{line:t,columnStart:l,columnEnd:r||l}}(s);return(0,l.jsxs)("span",{style:{wordBreak:"break-all"},children:[(0,l.jsx)(c.A.Text,{copyable:{text:h},children:(0,l.jsxs)(c.A.Text,{code:u,onClick:()=>{d||function(e){let{file:t,line:n=1,column:l=1,windowId:r}=e,i={windowId:r},s=Object.keys(i).map(e=>{let t=i[e];return B.AP.isNil(t)||""===t?null:`${e}=${t}`}).filter(Boolean).join("&"),a=`vscode://file/${t}:${n}:${l}`;s&&(a+=`?${s}`),window.open(a)}({file:h,line:p,column:x,windowId:a})},style:{cursor:d?"revert":"pointer"},children:[o||(0,A.getShortPath)(i),s?`:${s}`:""]})}),(0,l.jsx)("div",{style:{display:"inline-block"}})]})};var $=n(11771),G=n(79865);let W=e=>{let{loader:t,resource:n,cwd:r}=e;return(0,l.jsx)(D.Zp,{title:"Loader Details",style:{border:"none"},extra:(0,l.jsx)(a.A,{icon:(0,l.jsx)(C.A,{}),color:"default",children:T()(t.startAt).format("YYYY-MM-DD HH:mm:ss")}),children:(0,l.jsxs)(o.A,{direction:"vertical",style:{width:"100%"},children:[t.isPitch?(0,l.jsx)(c.A.Text,{code:!0,children:"pitch"}):null,(0,l.jsxs)(h.A,{size:"large",bordered:!0,children:[(0,l.jsxs)(h.A.Item,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"File Path"}),(0,l.jsx)("div",{children:(0,A.beautifyPath)(n.path,r)})]}),(0,l.jsxs)(h.A.Item,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"Resource Path"}),(0,l.jsx)(F,{cwd:r,url:n.path,loc:"",disabled:!0})]}),(0,l.jsxs)(h.A.Item,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"Resource Query"}),(0,l.jsx)("div",{children:n.queryRaw||"-"})]}),(0,l.jsxs)(h.A.Item,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"Duration"}),(0,l.jsx)("div",{children:(0,A.formatCosts)(t.costs)})]}),(0,l.jsxs)(h.A.Item,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"Loader"}),(0,l.jsx)("div",{children:(0,l.jsx)(c.A.Text,{code:!0,children:t.loader})})]}),(0,l.jsxs)(h.A.Item,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"Loader Index"}),(0,l.jsx)("div",{children:`${t.loaderIndex}`})]}),(0,l.jsxs)(h.A.Item,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"Loader Path"}),(0,l.jsx)(F,{cwd:r,url:t.path,loc:"",disabled:!0})]}),(0,l.jsxs)(h.A.Item,{children:[(0,l.jsx)("div",{style:{width:180},children:(0,l.jsx)(c.A.Text,{strong:!0,children:"Options"})}),(0,l.jsx)(s.A,{type:"vertical"}),(0,l.jsx)(c.A.Paragraph,{ellipsis:{rows:2,expandable:!0,symbol:"more"},copyable:!0,children:JSON.stringify(t.options||"-")})]})]})]})})},H=e=>{let{data:t,cwd:n,index:r}=e,{loaders:i,resource:s}=t,[u,h]=(0,v.useState)(r||0),{theme:m}=(0,A.useTheme)(),f="light"===m,g=i[u],j=g.input||"",b=g.errors&&g.errors.length,[S,w]=(0,v.useState)("loaderDetails"),z=(0,v.useCallback)(e=>{w(e)},[]);return(0,l.jsxs)(p.A,{className:G.A.executions,style:{height:"100%"},children:[(0,l.jsx)(x.A,{span:5,style:{borderRight:f?"1px solid #f0f0f0":void 0,padding:y.or.BasePadding},children:(0,l.jsxs)(o.A,{direction:"vertical",style:{width:"100%"},children:[(0,l.jsx)($.h,{text:"Executions"}),(0,l.jsx)(k.A,{mode:"left",style:{marginTop:y.or.BasePadding},children:i.map((e,t,n)=>{var r;let{loader:i,isPitch:s}=e,o=(0,A.formatCosts)(e.costs);return(0,l.jsxs)(k.A.Item,{dot:s?(0,l.jsx)(a.A,{style:{marginLeft:1,fontWeight:500},children:"pitch"}):(0,l.jsx)(C.A,{}),style:{paddingBottom:10,textAlign:"center"},children:[(0,l.jsx)(p.A,{align:"middle",justify:"space-between",gutter:[0,10],children:(0,l.jsx)(x.A,{span:24,className:G.A.timeline,children:(0,l.jsx)(d.A,{title:i,trigger:"hover",children:(0,l.jsxs)("div",{className:`${G.A.box} ${u===t?G.A.selected:""}`,onClick:()=>{h(t)},style:{textAlign:"left"},children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(c.A.Text,{style:{color:"#000"},children:null==(r=o.match(/[0-9]*\.?[0-9]+/g))?void 0:r[0]})," ",(0,l.jsx)(c.A.Text,{style:{color:"rgba(0,0,0,0.45)"},children:o.match(/[a-zA-Z]+/g)})]}),(0,l.jsx)(c.A.Text,{style:{color:"rgba(0,0,0,0.65)"},className:G.A.loader,children:i})]})})})}),t===n.length-1?null:(0,l.jsx)("div",{style:{paddingTop:10},children:(0,l.jsx)(E,{})})]},t)})})]})}),(0,l.jsx)(x.A,{span:19,style:{height:"100%"},children:(0,l.jsx)(M.A,{type:"card",defaultActiveKey:"loaderDetails",activeKey:S,items:[{label:"Loader Props",key:"loaderProps",children:(0,l.jsx)(W,{loader:g,resource:s,cwd:n})},{label:"Loader Details",key:"loaderDetails",children:(0,l.jsx)("div",{style:{height:"100%"},children:b?(0,l.jsxs)(x.A,{span:24,style:{height:"53%",minHeight:400},children:[(0,l.jsx)("div",{style:{padding:y.or.BasePadding,borderTop:`1px solid ${f?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`,borderBottom:`1px solid ${f?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:(0,l.jsx)($.h,{text:`the error stack of [${g.loader}] ${g.isPitch?"pitch":""}`})}),(0,l.jsx)("div",{style:{height:"90%"},children:(0,l.jsx)(O.Cv,{code:g.errors[0].message,lang:"javascript"})})]}):(0,l.jsxs)(x.A,{span:24,style:{height:"53%",minHeight:400},children:[(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",padding:y.or.BasePadding,borderBottom:`1px solid ${f?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:[(0,l.jsx)($.h,{text:(0,l.jsxs)(l.Fragment,{children:[`the result of [${g.loader}] ${g.isPitch?"pitch":""}`,!g.isPitch&&(0,l.jsxs)("span",{style:{fontWeight:400},children:["(",(0,l.jsx)(P,{style:{verticalAlign:"middle",margin:"0 2px"}}),"Input ⟷",(0,l.jsx)(R,{style:{verticalAlign:"middle",position:"relative",top:-2}}),"Output)"]})]})}),(0,l.jsx)("div",{style:{flex:1}})]}),g.isPitch?g.result?(0,l.jsx)("div",{style:{height:"90%"},children:(0,l.jsx)(O.Cv,{isEmbed:!0,code:g.result,filePath:s.path})}):(0,l.jsx)(N.A,{description:"No loader result. If you use the Brief Mode, there will not have loader results."}):(0,l.jsx)("div",{style:{minHeight:"700px"},children:(0,l.jsx)("div",{style:{height:"40rem",overflow:"hidden"},children:g.result||j?(0,l.jsx)(O.Mh,{isEmbed:!0,original:j,modified:g.result||"",originalFilePath:s.path,modifiedFilePath:s.path}):(0,l.jsx)(N.A,{description:"No loader result. If you use the Brief Mode, there will not have loader results."})})})]})})}],onChange:z})})]})},V=e=>{let{cwd:t,filetree:n}=e,[C,k]=(0,v.useState)(!1),[M,N]=(0,v.useState)(""),[z,T]=(0,v.useState)(0),[P,R]=(0,v.useState)(null),E=(0,v.useMemo)(()=>n.filter(t=>t.loaders.some(n=>(0,A.filterLoader)(t.path,n.loader,e.filename,e.loaders,t.layer,null==e?void 0:e.layer))),[e.filename,e.loaders,e.layer]),O="__RESOURCEPATH__",D=(0,v.useMemo)(()=>(0,A.createFileStructures)({files:E.map(e=>e.path),cwd:t,fileTitle(e,t){let{loaders:i,layer:p}=n.find(t=>t.path===e),x=[];return i.forEach((e,t)=>t>3&&x.push(e)),(0,l.jsxs)("div",{style:{wordBreak:"break-all",display:"flex",cursor:"pointer"},onClick:()=>{T(0),N(e),k(!0)},children:[(0,l.jsx)("div",{className:G.A.box,children:(0,l.jsx)("div",{className:G.A.keywords,children:(0,l.jsx)(S.i,{text:t.replace(/\[.*?\]/g,""),keyword:""})})}),(0,l.jsx)("div",{className:G.A.dividerDiv,style:{flex:1},children:(0,l.jsx)(s.A,{className:G.A.divider,dashed:!0})}),p&&(0,l.jsx)(a.A,{color:"cyan",bordered:!1,children:p}),(0,l.jsxs)(o.A,{children:[i.slice(0,3).map((t,n)=>{var i;let a=t.errors&&t.errors.length,o=`${e}_${t.loader}_${n}`;if(n<=3)return(0,l.jsx)(d.A,{title:t.path,children:(0,l.jsxs)(c.A.Text,{className:G.A.textBox,style:{color:a?"#f50":"inherit"},onClick:t=>{t.stopPropagation(),N(e),T(n),k(!0)},children:[(0,l.jsx)(c.A.Text,{className:G.A.text,ellipsis:!0,children:(null==(i=t.loader.match(/([^/]+-loader)/g))?void 0:i[0])||t.loader}),(0,l.jsx)(s.A,{type:"vertical"}),a?(0,l.jsx)(r.A,{}):(0,l.jsx)(c.A.Text,{className:G.A.text,children:(0,A.formatCosts)(t.costs)})]})},o)}),(null==x?void 0:x.length)?(0,l.jsx)(u.A,{content:(0,l.jsx)(h.A,{dataSource:x,renderItem:(t,n)=>{var r;let i=t.errors&&t.errors.length,a=`${e}_${t.loader}_${n+3}`;return(0,l.jsx)(h.A.Item,{children:(0,l.jsx)(d.A,{title:t.path,children:(0,l.jsx)("div",{style:{paddingBottom:5},children:(0,l.jsxs)(c.A.Text,{className:G.A.textBox,style:{color:i?"#f50":"inherit"},onClick:t=>{t.stopPropagation(),N(e),T(n),k(!0)},children:[(0,l.jsx)(c.A.Text,{className:G.A.text,ellipsis:!0,children:(null==(r=t.loader.match(/([^/]+-loader)/g))?void 0:r[0])||t.loader}),(0,l.jsx)(s.A,{type:"vertical"}),(0,l.jsx)(c.A.Text,{className:G.A.text,children:(0,A.formatCosts)(t.costs)})]})})},a)})}}),children:(0,l.jsx)("div",{className:G.A.textBox,children:(0,l.jsx)(c.A.Text,{children:"\xb7\xb7\xb7"})})}):(0,l.jsx)(l.Fragment,{})]})]})},dirTitle:(e,t)=>(0,l.jsx)("div",{style:{display:"flex",cursor:"pointer"},children:(0,l.jsx)(S.i,{text:t,keyword:""})})}),[E]);return(0,l.jsxs)(p.A,{style:{width:"100%",marginLeft:0},gutter:y.or.BasePadding,children:[(0,l.jsx)(x.A,{span:24,children:(0,l.jsxs)(m.A,{title:(0,l.jsxs)(o.A,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"Files"}),(0,l.jsxs)(c.A.Text,{style:{fontSize:12,fontWeight:400,color:"#1C1F2399",opacity:.6},children:["Total Files: ",E.length]})]}),bodyStyle:{overflow:"auto",maxHeight:800,minHeight:"40rem",padding:14},children:[(0,l.jsx)(b.h,{defaultExpandedKeys:(0,A.mapFileKey)(D,E.length>=100?3:4,e=>!((0,j.J)(e,O).indexOf("/node_modules/")>-1)),treeData:D,onSelect:(e,t)=>{t.node.isLeaf||R(t.node)},selectedKeys:P?[P.key]:void 0,expandAction:"click"},`${e.loaders.join("|")}_${e.filename}`),(0,l.jsx)(f.A,{open:C,onClose:()=>k(!1),maskClosable:!0,width:y.Y7,zIndex:999,bodyStyle:{padding:0},children:C?(0,l.jsx)(w.zW,{api:i.SDK.ServerAPI.API.GetLoaderFileDetails,body:{path:M},children:e=>(0,l.jsx)(H,{data:e,cwd:t,index:z})}):null})]})}),(0,l.jsx)(f.A,{open:!!P,onClose:()=>R(null),maskClosable:!0,width:y.Y7,zIndex:999,bodyStyle:{padding:0},children:P&&(0,l.jsx)(p.A,{children:(0,l.jsx)(x.A,{span:24,children:(0,l.jsx)(m.A,{title:(0,l.jsx)(d.A,{title:v.cloneElement(P.title,{style:{color:"#fff"}}),children:(0,l.jsxs)(c.A.Text,{children:["Statistics of",P.title]})}),children:(0,l.jsx)(w.zW,{api:i.SDK.ServerAPI.API.GetLoaderFolderStatistics,body:{folder:P[O]},children:e=>(0,l.jsx)(g.A,{style:{width:"100%",maxHeight:800,height:"40rem",overflowY:"scroll",wordBreak:"break-all"},pagination:!1,bordered:!0,rowKey:e=>e.loader,columns:[{title:"Loader Name",dataIndex:"loader"},{title:"Files",dataIndex:"files"},{title:"Total Duration",dataIndex:"costs",render:e=>(0,l.jsx)(c.A.Text,{strong:!0,children:(0,A.formatCosts)(e)}),sorter:(e,t)=>e.costs-t.costs,defaultSortOrder:"descend",sortDirections:["descend","ascend"]}],dataSource:e})})})})})})]})}},79865:function(e,t,n){n.d(t,{A:()=>l});let l={loaderAnalysis:"loaderAnalysis-h6mG3n",dividerDiv:"dividerDiv-hrfVKQ",divider:"divider-hnPRxv",box:"box-lFdvrG",keyword:"keyword-UO64w1",textBox:"textBox-sVZZ_A",text:"text-omPvlh",space:"space-qT5CaN",executions:"executions-uZxmQC",timeline:"timeline-wMFXyU",loader:"loader-PHR4ca",selected:"selected-wUMOH3"}},70054:function(e,t,n){n.d(t,{eN:()=>r.e,ug:()=>l.u,zW:()=>r.z});var l=n(75978),r=n(51002)},59500:function(e,t,n){n.d(t,{t:()=>d});var l=n(65723),r=n(31786),i=n(37622),s=n(97255),a=n(128);let o=[{title:"FAQ",link:"https://rsdoctor.rs/guide/more/faq"},{title:"Introduction",link:"https://rsdoctor.rs/guide/start/intro"},{title:"Bundle Alerts",link:"https://rsdoctor.rs/guide/usage/bundle-alerts"},{title:"Bundle Overall",link:"https://rsdoctor.rs/guide/usage/bundle-overall"},{title:"Bundle Analysis",link:"https://rsdoctor.rs/guide/usage/bundle-size"},{title:"Compilation Alerts",link:"https://rsdoctor.rs/guide/usage/compile-alerts"},{title:"Compile Overall",link:"https://rsdoctor.rs/guide/usage/compile-overall"},{title:"Loaders Analysis",link:"https://rsdoctor.rs/guide/usage/loaders-analysis"},{title:"Loaders Timeline",link:"https://rsdoctor.rs/guide/usage/loaders-timeline"},{title:"Plugin Analysis",link:"https://rsdoctor.rs/guide/usage/plugins-analysis"}],d=()=>{let{t:e}=(0,a.useI18n)();return(0,l.jsx)(s.Zp,{style:{width:"100%",borderRadius:"12px"},children:(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"title-dP_KVY",children:[(0,l.jsx)("span",{children:e("Help Center")}),(0,l.jsxs)(r.Ay,{style:{display:"flex",alignItems:"center",padding:0},type:"link",onClick:()=>{window.open("https://rsdoctor.rs/index","_blank")},children:[(0,l.jsx)("span",{style:{marginRight:"3px"},children:"More"}),(0,l.jsx)(i.A,{style:{fontSize:"10px"}})]})]}),(0,l.jsx)("div",{className:"container-LiYKWu",children:o.map((t,n)=>{let{title:r,link:i}=t;return(0,l.jsx)("div",{className:"content-WPe5pa",style:{marginBottom:n<o.length-2?"16px":0},onClick:()=>window.open(i,"_blank"),children:e(r)},n)})})]})})}},22185:function(e,t,n){n.d(t,{DG:()=>i.D,Rl:()=>r.R,Wf:()=>l.Wf,oc:()=>l.oc});var l=n(28220),r=n(93246),i=n(37625)},41020:function(e,t,n){n.d(t,{F:()=>v});var l=n(65723),r=n(22155),i=n(98204),s=n(31786),a=n(31448),o=n(46941),d=n(63079),c=n(84585),u=n(3124),h=n(25659),p=n(10142),x=n(43928),m=n(70054),f=n(83397);let g=e=>{let{style:t,onChange:n,loaderNames:d}=e,[c,h]=(0,r.useState)([]);return(0,l.jsxs)(i.A.Group,{compact:!0,style:t,children:[(0,l.jsxs)(s.Ay,{style:{width:120},children:[(0,l.jsx)(u.A,{}),(0,l.jsx)(a.A.Text,{children:"Loaders"})]}),(0,l.jsx)(o.A,{mode:"multiple",allowClear:!0,defaultValue:c,className:"loader-select",style:{width:300},popupMatchSelectWidth:300,placeholder:"select loaders",onChange:e=>{h(e),n(e)},children:d.map(e=>(0,l.jsx)(o.A.Option,{label:e,value:e,children:e},e))})]})},j=e=>{let{onChange:t,layers:n}=e,[d,c]=(0,r.useState)("");return(0,l.jsxs)(i.A.Group,{compact:!0,children:[(0,l.jsxs)(s.Ay,{style:{width:120},children:[(0,l.jsx)(u.A,{}),(0,l.jsx)(a.A.Text,{children:"Layers"})]}),(0,l.jsx)(o.A,{allowClear:!0,className:"layer-select",style:{width:150},defaultValue:d,placeholder:"select layer",onChange:e=>{c(e),t(e)},children:(null==n?void 0:n.length)?null==n?void 0:n.map(e=>(0,l.jsx)(o.A.Option,{label:e,value:e,children:e},e)):(0,l.jsx)(l.Fragment,{})})]})},v=e=>{let{onChange:t,loaderNames:n}=e,[i,s]=(0,r.useState)([]),[a,o]=(0,r.useState)(""),[u,v]=(0,r.useState)("");return(0,r.useEffect)(()=>{t({loaders:i,filename:a,layer:u})},[i,a,u]),(0,l.jsxs)(d.A,{style:{marginBottom:x.or.BasePadding,marginLeft:10},children:[(0,l.jsx)(c.A,{children:(0,l.jsx)(g,{loaderNames:n,style:{marginRight:x.or.BasePadding},onChange:e=>{s(e)}})}),(0,l.jsx)(c.A,{children:(0,l.jsx)(p.E,{icon:(0,l.jsx)(h.A,{}),style:{marginRight:x.or.BasePadding},label:"Filename",placeholder:"search filename by keyword",onChange:e=>{o(e)}})}),(0,l.jsx)(c.A,{children:(0,l.jsx)(m.zW,{api:f.SDK.ServerAPI.API.GetLayers,children:e=>e.length?(0,l.jsx)(j,{layers:e,onChange:e=>{v(e)}}):(0,l.jsx)(l.Fragment,{})})})]})}},1361:function(e,t,n){n.d(t,{P6:()=>y,hX:()=>A});var l=n(65723),r=n(90345),i=n(31786),s=n(81234),a=n(22155),o=n(26316),d=n(98369),c=n(31448),u=n(63079),h=n(84585),p=n(83397),x=n(57143),m=n(32792),f=n(43928),g=n(23995),j=n(70054);let v=e=>{let{duplicatePackages:t=[],cwd:n,children:r,...i}=e;return(0,l.jsx)(A,{...i,buttonStyle:{fontSize:"inherit",...i.buttonStyle},buttonProps:{type:"text",...i.buttonProps},text:(0,l.jsx)(o.A,{title:"Click to show the details of duplicate packages",children:(0,l.jsxs)(d.A,{style:{fontSize:"inherit"},children:[(0,l.jsx)(c.A.Text,{strong:!0,style:{fontSize:"inherit",color:"inherit",...i.textStyle},children:t.length}),(0,l.jsx)(x.A,{})]})}),drawerProps:{title:"Duplicate Packages Viewer",...i.drawerProps},children:(0,l.jsx)(u.A,{gutter:[f.or.BasePadding,f.or.BasePadding],children:t.map((e,t)=>(0,l.jsx)(h.A,{span:24,children:(0,l.jsx)(g.ZZ,{data:e,cwd:n,getPackageRelationContentComponent:r})},t))})})},y=e=>{let{moduleGraph:t,...n}=e;return(0,l.jsx)(v,{...n,children:e=>(0,l.jsx)(j.zW,{api:p.SDK.ServerAPI.API.GetModuleCodeByModuleIds,body:{moduleIds:t.modules.map(e=>e.id)},children:r=>(0,l.jsx)(g.aM,{data:m.Wh.getPackageRelationAlertDetails(t.modules,t.dependencies,n.cwd,e.package.dependencies,r),cwd:n.cwd})})})},A=e=>{let[t,n]=(0,a.useState)(!1);return(0,l.jsxs)("div",{onClick:e=>e.stopPropagation(),...e.containerProps,children:[e.button?(0,l.jsx)("div",{onClick:()=>n(!t),children:e.button}):e.text?(0,l.jsx)(i.Ay,{type:"link",...e.buttonProps,onClick:()=>n(!t),style:{padding:0,...e.buttonStyle},children:e.text}):(0,l.jsx)(r.A,{style:{fontSize:14,padding:0},onClick:()=>n(!t)}),(0,l.jsx)(s.A,{maskClosable:!0,zIndex:999,width:"60%",...e.drawerProps,open:t,onClose:()=>n(!1),destroyOnClose:!0,children:e.children})]})}},11771:function(e,t,n){n.d(t,{h:()=>s});var l=n(65723);n(22155);var r=n(31448),i=n(82443);let s=e=>{let{upperFirst:t=!0,fontSize:n=16,text:s,hash:a}=e,o="string"==typeof s&&t?(0,i.Z)(s):s;return(0,l.jsx)(r.A.Text,{style:{fontSize:n},strong:!0,children:a?(0,l.jsx)("a",{href:a,id:a.replace(/^#/,""),style:{color:"inherit"},children:o}):o})}},40829:function(e,t,n){n.d(t,{Cv:()=>c});var l=n(65723),r=n(16937),i=n(50251),s=n(22155),a=n(11953),o=n(50118),d=n(32792);function c(e){let{className:t,style:n,code:c="",lang:u,filePath:h="",defaultLine:p,ranges:x,isEmbed:m=!1,headerVisible:f=!0,isLightTheme:g=!0}=e,j=(0,s.useRef)(),v=(0,s.useRef)(),y=(0,s.useMemo)(()=>u||(0,a.rZ)(h)||"plaintext",[u,h]),[A,b]=(0,s.useState)(!0),S=(0,s.useMemo)(()=>(0,a.$N)({wordWrap:A?"on":"off"}),[A]),w=(0,s.useCallback)((e,t)=>{j.current=e,v.current=t,(0,a.sK)(e,t,x),d.AP.isNumber(p)&&setTimeout(()=>{e.revealLine(p)})},[]);return(0,s.useEffect)(()=>()=>{var e;null==(e=j.current)||e.setModel(null)},[]),(0,l.jsxs)("div",{className:(0,i.A)("monaco-component","code-viewer","code-viewer-H7hGrZ",m&&"embed-tjljOS",t),style:n,children:[f&&!!h&&(0,l.jsxs)("div",{className:"header-qejtwX",children:[(0,l.jsx)("div",{children:(0,a.WP)(h)}),(0,l.jsx)("div",{style:{flex:1}}),(0,l.jsx)("div",{children:(0,l.jsx)(o.A,{className:"text-T29bd1",title:"side-by-side",checked:A,onChange:e=>{b(e.target.checked)},children:"word-wrap"})})]}),(0,l.jsx)("div",{className:(0,i.A)("content-EVSW1C","editor-wrap"),children:(0,l.jsx)(r.KE,{theme:g?"vs-light":"vs-dark",language:y,value:c,options:S,onMount:w})})]})}n(71999)},71999:function(e,t,n){n.d(t,{Y:()=>o});var l=n(65723),r=n(81234),i=n(81489),s=n(22155),a=n(40829);function o(e){let[t,n]=(0,s.useState)(""),[o,d]=(0,s.useState)(""),[c,u]=(0,s.useState)(""),[h,p]=(0,s.useState)(!1),[x,m]=(0,s.useState)(),[f,g]=(0,s.useState)();return{showCode(e){n(e.code||""),d(e.lang||""),u(e.filePath||""),m(e.defaultLine),g(e.ranges),p(!0)},codeDrawerComponent:(0,l.jsx)(r.A,{maskClosable:!0,zIndex:999,width:"70%",destroyOnClose:!0,title:`Code of "${c}"`,open:h,onClose:()=>p(!1),children:t?(0,l.jsx)(a.Cv,{code:t,lang:o,filePath:c,defaultLine:x,ranges:f}):(0,l.jsx)(i.A,{description:e||"No Code"})})}}},11953:function(e,t,n){n.d(t,{$N:()=>s,WP:()=>a,XX:()=>i,qK:()=>o,rZ:()=>r,sK:()=>d});var l=n(13078);function r(e){if(!e)return"";let t=function(e){if(!e)return"";try{if(!e.startsWith("data:"))return"";let{mimeType:t}=function(e){if(!e.startsWith("data:"))throw Error("输入不是有效的 Data URL");let t=e.substring(5),n=t.indexOf(",");if(-1===n)throw Error("无效的 Data URL 格式: 缺少数据分隔符");let l=t.substring(0,n),r=t.substring(n+1),i="",s="",a=!1,o=l.split(";");o.length>0&&(i=o[0]||"text/plain");for(let e=1;e<o.length;e++){let t=o[e];"base64"===t?a=!0:t.startsWith("charset=")&&(s=t.substring(8))}return{mimeType:i,charset:s,isBase64:a,data:r}}(e);switch(t){case"text/javascript":return"javascript";case"text/html":return"html";case"text/css":return"css";case"text/plain":return"text";case"application/json":return"json";default:return""}}catch(e){return console.error("解析 data 协议文件格式失败::",e),""}}(e);if(t)return t;try{let t=(0,l.extname)(e).slice(1);switch(t){case"js":case"cjs":case"mjs":case"jsx":return"javascript";case"ts":case"tsx":return"typescript";case"md":return"markdown";default:return t}}catch(e){return""}}let i={readOnly:!0,domReadOnly:!0,fontSize:14,tabSize:2,lineHeight:24,renderValidationDecorations:"off",hideCursorInOverviewRuler:!0,smoothScrolling:!0,wordWrap:"on",colorDecorators:!0,codeLens:!1,cursorWidth:0,minimap:{enabled:!1},contextmenu:!1,gotoLocation:{multiple:"goto",multipleDefinitions:"goto",multipleTypeDefinitions:"goto",multipleDeclarations:"goto",multipleImplementations:"goto",multipleReferences:"goto"},hover:{enabled:!1},links:!1};function s(e){return{...structuredClone(i),...e}}function a(e){return e?e.startsWith("data:")?"data":e.split("/").at(-1)||"":""}function o(e,t){let{start:n,end:l}=e,{line:r=1,column:i=0}=n;return new t(r,i+1,(null==l?void 0:l.line)??r,((null==l?void 0:l.column)??9999)+1)}function d(e,t,n){if(!n||0===n.length)return;let l=n.map(e=>({range:o(e,t.Range),options:{inlineClassName:"file-inline-decoration"}}));e.deltaDecorations([],l),setTimeout(()=>{e.revealLine(l[0].range.startLineNumber)})}},31465:function(e,t,n){n.d(t,{Mh:()=>u,Cv:()=>l.Cv});var l=n(40829),r=n(65723),i=n(16937),s=n(50118),a=n(50251),o=n(22155),d=n(11953);let c={...structuredClone(d.XX),readOnly:!0,originalEditable:!1,renderSideBySide:!0,renderSideBySideInlineBreakpoint:1,renderIndicators:!0,definitionLinkOpensInPeek:!1,domReadOnly:!0,minimap:{enabled:!1},diffWordWrap:"on",folding:!1,lineNumbersMinChars:3,renderLineHighlight:"none",matchBrackets:"never",diffAlgorithm:"advanced",ignoreTrimWhitespace:!0,renderOverviewRuler:!0,renderLineHighlightOnlyWhenFocus:!0,smoothScrolling:!0,letterSpacing:.5};function u(e){let{className:t,style:n,original:l="",modified:u="",originalFilePath:h="",modifiedFilePath:p="",originalLang:x,modifiedLang:m,isEmbed:f=!1,isLightTheme:g=!0,headerVisible:j=!0}=e,[v,y]=(0,o.useState)(!0),A=(0,o.useRef)(),b=(0,o.useMemo)(()=>x||(0,d.rZ)(h)||"plaintext",[x,h]),S=(0,o.useMemo)(()=>m||(0,d.rZ)(p)||"plaintext",[m,p]),w=(0,o.useMemo)(()=>{var e;return e={renderSideBySide:v},{...structuredClone(c),...e}},[v]),C=(0,o.useCallback)(e=>{A.current=e},[]);return(0,o.useEffect)(()=>()=>{var e;null==(e=A.current)||e.setModel(null)},[]),(0,r.jsxs)("div",{className:(0,a.A)("monaco-component","diff-viewer","diff-viewer-CczjmT",f&&"embed-VNMDA8",t),style:n,children:[j&&(0,r.jsxs)("div",{className:"header-VBdMD0",children:[(0,r.jsx)("div",{children:(0,d.WP)(h)}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsx)("div",{children:(0,r.jsx)(s.A,{className:"text-Pi6YdN",title:"side-by-side",checked:v,onChange:e=>{y(e.target.checked)},children:"side-by-side"})})]}),(0,r.jsx)("div",{className:(0,a.A)("content-BsfSuD","editor-wrap"),children:(0,r.jsx)(i.zC,{theme:g?"vs-light":"vs-dark",originalLanguage:b,modifiedLanguage:S,original:l,modified:u,width:"100%",options:w,onMount:C})})]})}},79763:function(e,t,n){n.d(t,{PE:()=>G,zW:()=>T.zW}),n(41257);var l=n(5709);n(42868),n(31465),n(97255),n(10142);var r=n(65723),i=n(22155),s=n(87855),a=n(75573),o=n(43928),d=n(362),c=n(63079),u=n(84585),h=n(41495),p=n(128),x=n(8879),m=n(98369),f=n(31448),g=n(46941),j=n(56108),v=n(11728);let y=()=>{let[e,t]=(0,i.useState)(""),[n,l]=(0,i.useState)([]);return((0,i.useEffect)(()=>{(0,p.fetchManifest)().then(e=>{let{name:n,series:r}=e;n&&t(n),r&&r.length>0&&l(r)})},[]),e.length<=0||n.length<=0)?(0,r.jsx)(r.Fragment,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.A,{type:"vertical",style:{margin:"0 24px"}}),(0,r.jsxs)(m.A,{children:[(0,r.jsx)(v.A,{style:{fontSize:"18px"},component:j.A}),(0,r.jsx)(f.A,{children:"Compiler"}),(0,r.jsx)(g.A,{className:"builder-selector",defaultValue:e,bordered:!1,style:{minWidth:100},onChange:e=>{let t=n.find(t=>t.name===e);t&&(t.origin?location.href=(0,p.changeOrigin)(t.origin):console.error("No RsdoctorManifestSeriesData.origin"))},children:n.map((e,t)=>(0,r.jsx)(g.A.Option,{value:e.name,className:"builder-selector-option-item",children:e.name},t))})]})]})};var A=n(7418),b=n(15078),S=n(89033),w=n(78364),C=n(13158),k=n(83397),M=n(4351),N=n(61323),z=n(18919),T=n(70054);let P=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,r.jsx)("rect",{width:12,height:9.333,x:.396,y:.167,fill:"#0079FF",rx:1}),(0,r.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M3.563 3.5c.276 0 .5.214.5.478v3.044a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478V3.978a.49.49 0 0 1 .5-.478M6.396 1.833c.276 0 .5.214.5.479v4.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-4.71a.49.49 0 0 1 .5-.479M9.23 4.833c.275 0 .5.214.5.479v1.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-1.71a.49.49 0 0 1 .5-.479",clipRule:"evenodd"}),(0,r.jsx)("rect",{width:6,height:1.333,x:3.396,y:10.5,fill:"#0079FF",fillOpacity:.5,rx:.667})]}),R=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,r.jsx)("rect",{width:12,height:9.333,x:.396,y:.167,fill:"#0079FF",rx:1}),(0,r.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M4.023 6.212 2.676 5.014l1.347-1.199M8.752 6.212l1.347-1.198-1.347-1.199M5.742 7.014l1.362-4"}),(0,r.jsx)("rect",{width:6,height:1.333,x:3.396,y:10.5,fill:"#0079FF",fillOpacity:.5,rx:.667})]}),E=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,r.jsx)("path",{fill:"#0079FF",fillRule:"evenodd",d:"M6.329.788A1 1 0 0 0 5.35.8L.466 3.62l5.36 2.83 5.327-3.044zm-.993 12.777V7.322L.063 4.54v5.404a1 1 0 0 0 .5.866z",clipRule:"evenodd"}),(0,r.jsx)("path",{fill:"#0079FF",fillOpacity:.5,fillRule:"evenodd",d:"M5.354.8H5.35L.546 3.576l.017-.01L5.336.81zm-.018 12.765V7.322L.063 4.54l5.273 2.783zm1-6.254 5.265-3.009q.009.064.009.13v5.511a1 1 0 0 1-.5.866l-4.774 2.756z",clipRule:"evenodd"})]});var O=n(85892);let D="Compile Analysis",L={overall:(0,r.jsx)(e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,r.jsx)("rect",{width:12,height:9.333,x:.615,y:.167,fill:"#5E6673",rx:1}),(0,r.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M3.781 3.5c.277 0 .5.214.5.478v3.044a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478V3.978a.49.49 0 0 1 .5-.478M6.615 1.833c.276 0 .5.214.5.479v4.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-4.71a.49.49 0 0 1 .5-.479M9.448 4.833c.276 0 .5.214.5.479v1.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-1.71a.49.49 0 0 1 .5-.479",clipRule:"evenodd"}),(0,r.jsx)("rect",{width:6,height:1.333,x:3.615,y:10.5,fill:"#5E6673",fillOpacity:.5,rx:.667})]}),{}),webpack:(0,r.jsx)(e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,r.jsx)("rect",{width:12,height:9.333,x:.615,y:.167,fill:"#5E6673",rx:1}),(0,r.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M4.241 6.212 2.895 5.014 4.24 3.815M8.97 6.212l1.347-1.198-1.346-1.199M5.96 7.014l1.363-4"}),(0,r.jsx)("rect",{width:6,height:1.333,x:3.615,y:10.5,fill:"#5E6673",fillOpacity:.5,rx:.667})]}),{}),bundle:(0,r.jsx)(e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,r.jsx)("path",{fill:"#5E6673",fillRule:"evenodd",d:"M6.44.672a1 1 0 0 0-.977.013L.578 3.505l5.36 2.83 5.327-3.044zm-.992 12.777V7.206L.175 4.423v5.404a1 1 0 0 0 .5.866z",clipRule:"evenodd"}),(0,r.jsx)("path",{fill:"#5E6673",fillOpacity:.5,fillRule:"evenodd",d:"m5.466.683-.003.002L.658 3.459l.017-.01L5.448.693zM5.448 13.45V7.206L.175 4.423l5.273 2.783zm1-6.254 5.265-3.009q.009.064.009.13v5.511a1 1 0 0 1-.5.866L6.448 13.45z",clipRule:"evenodd"})]}),{})},_=(0,T.eN)({api:k.SDK.ServerAPI.API.GetClientRoutes,responsePropName:"routes",Component:e=>{let{t}=(0,p.useI18n)(),{pathname:n}=(0,N.zy)(),l=(0,N.Zp)(),[s,a]=(0,i.useState)(L),{routes:d}=e,c=(0,p.getEnableRoutesFromUrlQuery)(),u=d&&d.length>0?d:c||[];(0,i.useEffect)(()=>{n.includes("webpack")?a({...L,webpack:(0,r.jsx)(R,{})}):n.includes("overall")||"/"===n?a({...L,overall:(0,r.jsx)(P,{})}):n.includes("bundle")&&a({...L,bundle:(0,r.jsx)(E,{})})},[n]);let h={color:"rgba(96, 102, 114)"},x=[];u.includes(k.Manifest.RsdoctorManifestClientRoutes.Overall)&&x.push({label:t(z.U),key:z.w,icon:s.overall,children:[],onTitleClick(e){l(e.key)}}),(0,p.hasCompile)(u)&&x.push({label:t(D),key:D,icon:s.webpack,children:[u.includes(k.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders)&&{label:t(O.pI.UU),key:O.pI.wE,icon:(0,r.jsx)(A.A,{style:h})},u.includes(k.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders)&&{label:t(O.hK.UU),key:O.hK.wE,icon:(0,r.jsx)(b.A,{style:h})},u.includes(k.Manifest.RsdoctorManifestClientRoutes.ModuleResolve)&&{label:t(O.dn.UU),key:O.dn.wE,icon:(0,r.jsx)(S.A,{style:h})},u.includes(k.Manifest.RsdoctorManifestClientRoutes.WebpackPlugins)&&{label:t(O.FO.UU),key:O.FO.wE,icon:(0,r.jsx)(w.A,{style:h})}].filter(e=>!!e)}),(0,p.hasBundle)(u)&&x.push({label:t(O._y.UU),key:O._y.UU,icon:s.bundle,children:[],onTitleClick(){l(O._y.wE)}});let m=(0,r.jsx)(M.A,{items:x,mode:"horizontal",onClick:e=>{e.keyPath.includes("builder-switcher")||l(e.key)},overflowedIndicator:(0,r.jsx)(C.A,{}),style:{height:o.or.NavBarHeight,lineHeight:`${o.or.NavBarHeight}px`,minWidth:0,justifyContent:"flex-end",...e.style},selectedKeys:["/"===n?z.w:n]},u.join(""));return(0,r.jsx)("div",{style:{marginLeft:"30px"},children:m})},fallbackComponent:()=>null,showSkeleton:!1}),B=e=>{let{enableRoutes:t}=e,{i18n:n}=(0,p.useI18n)(),i=(0,N.Zp)(),{isLight:a}=(0,p.useTheme)(),x=[{value:o.TM.Cn,label:"中文"},{value:o.TM.En,label:"English"}];return(0,r.jsx)(s.A.Header,{style:{height:o.or.NavBarHeight,padding:0,paddingLeft:o.or.BasePadding,paddingRight:o.or.BasePadding,position:"fixed",zIndex:999,width:"100%",backgroundColor:a?"#fff":"#141414",transition:"none"},children:(0,r.jsxs)(c.A,{justify:"space-between",align:"middle",style:{height:o.or.NavBarHeight},wrap:!1,children:[(0,r.jsx)(u.A,{style:{height:o.or.NavBarHeight,lineHeight:`${o.or.NavBarHeight+2}px`},children:(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:"100%"},children:[(0,r.jsx)("img",{src:"https://assets.rspack.rs/rsdoctor/rsdoctor-title-logo.png",className:"rsdoctor-logo",alt:"logo",onClick:()=>{location.hash.includes(k.Client.RsdoctorClientRoutes.Uploader)&&location.pathname.includes("/preview")?location.href="http://rsdoctor.rs":i(k.Client.RsdoctorClientRoutes.Home)}}),(0,r.jsx)(y,{})]})}),(0,r.jsx)(_,{style:{transition:"none"}},t?JSON.stringify(t):"default"),(0,r.jsx)(u.A,{flex:1,children:(0,r.jsxs)(c.A,{align:"middle",justify:"end",style:{height:o.or.NavBarHeight},wrap:!1,gutter:[o.or.BasePadding/3,0],children:[(0,r.jsx)(u.A,{children:(0,r.jsx)(l.EJ,{})}),(0,r.jsx)(u.A,{children:(0,r.jsx)(h.A,{overlayStyle:{zIndex:1e3},menu:{items:x.map(e=>({label:e.label,key:e.value,onClick(){n.changeLanguage(e.value)}})),selectedKeys:[n.language]},children:(0,r.jsx)(d.A,{className:"header-icon",style:{display:"inline-block",fontSize:20,textAlign:"center",verticalAlign:"middle",cursor:"pointer",width:30,transition:"all 0.3s ease"}})})})]})})]})})};var I=n(6048);let F=(0,T.eN)({api:k.SDK.ServerAPI.APIExtends.GetCompileProgress,responsePropName:"progress",Component:e=>{let{progress:t}=e;if(!t)return null;let{percentage:n=1,message:l}=t;if(n>=1)return null;let i=+(100*n).toFixed(1);return(0,r.jsx)(c.A,{wrap:!0,style:{width:"100%",position:"fixed",top:o.or.NavBarHeight,left:1,zIndex:99},children:(0,r.jsx)(u.A,{span:Math.min(Math.floor(24*n),24),children:(0,r.jsx)(I.A,{percent:100,status:"active",size:"small",format:()=>(0,r.jsx)(f.A.Text,{style:{fontSize:12},type:"secondary",children:`${i}% ${l}`})})})})},fallbackComponent:()=>null,showSkeleton:!1});var $=n(41595);let G=e=>{let t=(0,p.useLocale)(),{i18n:n}=(0,p.useI18n)(),{children:l}=e,d=(0,p.useUrlQuery)(),[c,u]=(0,i.useState)(()=>(0,p.getEnableRoutesFromUrlQuery)()||void 0);(0,i.useEffect)(()=>{let e=t;if(!(0,p.getFirstVisitFromStorage)()){(0,p.setFirstVisitToStorage)("1");let t=window.navigator.language.split("-")[0],n=(0,p.getLanguage)(t);Object.values(o.TM).includes(n)&&(e=n)}n.language!==e&&n.changeLanguage(e)},[t]),(0,i.useEffect)(()=>{u((0,p.getEnableRoutesFromUrlQuery)()||void 0)},[d]);let h=(0,i.useContext)($.Q);return(0,r.jsxs)(s.A,{children:[h.embedded?null:(0,r.jsx)(B,{enableRoutes:c}),(0,r.jsx)(F,{}),(0,r.jsxs)(s.A.Content,{style:{height:"100%",minHeight:"100vh",padding:o.or.BasePadding,marginTop:h.embedded?0:o.or.NavBarHeight,background:""},children:[l,(0,r.jsx)(a.A.BackTop,{})]})]})};n(22185),n(1361)},41595:function(e,t,n){n.d(t,{Q:()=>a,s:()=>s});var l=n(22155),r=n(75302),i=n(43928);let s={locale:(0,r.U)(),theme:(0,r.DT)(),pageState:i.jK.Pending,viewMode:(0,r.oi)(),json:{},setTheme(){},setManifest(){},setPageState(e){},setViewMode(){}},a=(0,l.createContext)({...s})},43928:function(e,t,n){n.d(t,{Q1:()=>f,Sx:()=>c,TM:()=>x,Y7:()=>g,jK:()=>u,nE:()=>p,nl:()=>h,or:()=>m});var l,r,i,s,a,o,d,c=((l={}).Light="light",l.Dark="dark",l),u=((r={})[r.Success=0]="Success",r[r.Pending=1]="Pending",r[r.Fail=2]="Fail",r),h=((i={})[i.Success=0]="Success",i[i.Pending=1]="Pending",i[i.Updating=2]="Updating",i[i.Fail=3]="Fail",i),p=((s={}).List="list",s.Group="group",s),x=((a={}).Cn="cn",a.En="en",a),m=((o={})[o.BasePadding=20]="BasePadding",o[o.BaseBorderRadius=8]="BaseBorderRadius",o[o.NavBarHeight=54]="NavBarHeight",o),f=((d={}).Red="#e17055",d.Green="#52c41a",d.Yellow="#faad14",d.Blue="#1677ff",d);let g="undefined"==typeof window?0:.85*window.innerWidth>=1100?.85*window.innerWidth:1100},87665:function(e,t,n){n.d(t,{i5:()=>Q});var l=n(65723),r=n(44830),i=n(85189),s=n(49026),a=n(83397),o=n(95587),d=n(81489),c=n(28342),u=n(20772),h=n(31448),p=n(98369),x=n(26316),m=n(8879),f=n(64801),g=n(63079),j=n(84585),v=n(31786),y=n(15133),A=n(20317),b=n(13078),S=n(22155),w=n(31465),C=n(42868),k=n(10142),M=n(72854),N=n(70054),z=n(1361),T=n(43928),P=n(128),R=n(84141),E=n(3930),O=n(89405);let{DirectoryTree:D}=o.A,L=[],_={margin:"none",marginInlineEnd:0},B=()=>(0,l.jsx)(d.A,{description:`Do not have the module code.
|
|
4
|
+
`,u=(0,m.useRuleIndexNavigate)(t,n);return(0,l.jsxs)("div",{className:"container-iQTvf7",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:g,children:"Source"}),(0,l.jsxs)("div",{className:f,children:[(0,l.jsx)(c.A,{component:h}),(0,l.jsx)(v,{ellipsis:{tooltip:a},className:`${j} e2e-ecma-source`,children:a})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:g,children:"Output"}),(0,l.jsxs)("div",{className:f,children:[(0,l.jsx)(c.A,{component:p}),(0,l.jsx)(v,{ellipsis:{tooltip:o},className:`${j} e2e-ecma-output`,children:o})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:g,children:"Error"}),(0,l.jsxs)("div",{className:f,children:[(0,l.jsx)(c.A,{component:x}),(0,l.jsx)(v,{ellipsis:{tooltip:e.description},className:`${j} e2e-ecma-error`,children:e.description})]})]}),(0,l.jsx)(d.Ay,{onClick:u,type:"link",children:"more"})]})})};var A=n(83819),b=n(26316),S=n(8879),w=n(98369),C=n(79903),k=n(20317),M=n(1361),z=n(11771),N=n(43928);let T=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,l.jsx)("rect",{width:16,height:16,fill:"#FFF7E6",rx:2}),(0,l.jsx)("path",{fill:"#F2793D",fillRule:"evenodd",d:"M11.377 5.186h1.488L10.973 3H5.027L3.135 5.186h1.488l.87-1.005h5.015z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"#F2793D",fillRule:"evenodd",d:"M3.676 4.82h8.648c.299 0 .54.243.54.545v7.09a.543.543 0 0 1-.54.545H3.676a.543.543 0 0 1-.54-.545v-7.09c0-.302.241-.546.54-.546m2.702 1.77a.54.54 0 0 0 0 1.082h3.244a.54.54 0 1 0 0-1.081z",clipRule:"evenodd"})]}),P=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,l.jsx)("rect",{width:16,height:16,fill:"#FFF7E6",rx:2}),(0,l.jsx)("path",{fill:"#F2793D",d:"M3 7V5c0-1.105 2.239-2 5-2s5 .895 5 2v2c0 1.105-2.239 2-5 2s-5-.895-5-2"}),(0,l.jsx)("path",{fill:"#F2793D",d:"M8 10c2.761 0 5-.895 5-2v1c0 1.105-2.239 2-5 2s-5-.895-5-2V8c0 1.105 2.239 2 5 2"}),(0,l.jsx)("path",{fill:"#F2793D",d:"M8 12c2.761 0 5-.895 5-2v1c0 1.105-2.239 2-5 2s-5-.895-5-2v-1c0 1.105 2.239 2 5 2"})]});var R=n(56108);let E=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,l.jsx)("rect",{width:16,height:16,fill:"#E6F7FF",rx:2}),(0,l.jsx)("g",{clipPath:"url(#version_svg__a)",children:(0,l.jsx)("path",{fill:"#3874F6",d:"M13.438 9.875a.6.6 0 0 0-.216.043h-.002l-.002.002L8 12.079l-5.217-2.16H2.78l-.002-.001a.562.562 0 0 0-.43 1.039l5.432 2.248.002.001.003.001a.56.56 0 0 0 .43 0h.003l.002-.002 5.433-2.248a.563.563 0 0 0-.216-1.082M2.348 6.082 7.78 8.33l.003.001.002.001a.56.56 0 0 0 .43 0h.003l.002-.002 5.433-2.248a.563.563 0 0 0 0-1.04L8.22 2.796l-.002-.001-.003-.001a.56.56 0 0 0-.43 0h-.003l-.002.002-5.433 2.248a.563.563 0 0 0 0 1.039m11.09 1.355a.6.6 0 0 0-.216.043l-.002.001-.002.001L8 9.642l-5.217-2.16H2.78l-.002-.002a.563.563 0 0 0-.43 1.04l5.432 2.248h.002l.003.002a.56.56 0 0 0 .43 0l.003-.001.002-.001 5.433-2.248a.563.563 0 0 0-.216-1.083"})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"version_svg__a",children:(0,l.jsx)("path",{fill:"#fff",d:"M2 2h12v12H2z"})})})]}),O="label-XufLCq",D="labelContent-nkrbEg",L="collapseContainer-RlFMpI",_="collapseChild-WWZD3z",B="attribute-bDSZ0z",I="iconContainer-qPzCrR",F="data-po89g7",$="pkgName-vA16cZ",{Paragraph:G,Text:W}=o.A,{innerWidth:H}=window,V=e=>{let{title:t,description:n,extra:r}=e;return(0,l.jsxs)("div",{className:O,children:[(0,l.jsxs)("div",{className:D,children:[(0,l.jsx)("div",{children:t}),(0,l.jsx)("div",{children:n})]}),(0,l.jsx)("div",{children:r})]})},U=e=>{let{data:t,extraData:n}=e,i=t.map(e=>{let{packages:t}=e;return{totalSize:(0,k.x)(t,e=>e.targetSize.sourceSize),data:e}}).sort((e,t)=>t.totalSize-e.totalSize).map(e=>{let{data:t,totalSize:i}=e,{packages:a}=t,d=(0,m.formatSize)(i),{name:u}=a.find(e=>!!e.target.name).target,h=a.map(e=>e.target.version);return{key:u,label:(0,l.jsx)(V,{title:(0,l.jsx)(r.A,{style:{backgroundColor:"#EAEDF1",borderRadius:"2px"},children:(0,l.jsx)("span",{className:$,children:u})}),description:`${a.length} versions was found`,extra:(0,l.jsxs)("div",{className:"extraContainer-Zf1u14",children:[(0,l.jsxs)("div",{className:I,children:[(0,l.jsx)(c.A,{style:{fontSize:"18px"},component:R.A}),(0,l.jsx)("span",{className:F,children:d})]}),a&&a.length>0?(0,l.jsx)(M.hX,{text:"Show Relations",buttonProps:{size:"small"},drawerProps:{title:t.title,width:"60%"},children:(0,l.jsxs)(w.A,{direction:"vertical",className:"alert-space",style:{width:"100%"},children:[(0,l.jsxs)(w.A,{style:{marginBottom:N.or.BasePadding/2,width:"100%"},children:[(0,l.jsx)(z.h,{text:(0,l.jsx)(r.A,{style:{backgroundColor:"#EAEDF1"},children:u}),upperFirst:!1}),(0,l.jsx)(o.A.Text,{strong:!0,children:h.length}),(0,l.jsx)(o.A.Text,{children:" versions found"})]}),(0,l.jsx)(s.A,{size:"middle",items:a.map(e=>{let{target:i,targetSize:s}=e;return{label:(0,l.jsxs)(w.A,{className:"drawerLabelTitle-bDwhFt",children:[(0,l.jsxs)("div",{children:["v",i.version]}),(0,l.jsx)(r.A,{className:"drawerLabelSize-gzchzs",children:(0,m.formatSize)(s.sourceSize)})]}),key:`${i.root}${i.name}${i.version}`,children:n.getPackageRelationContentComponent({data:t,package:e})}})})]})}):null]})}),children:(0,l.jsx)(()=>a.map((e,t)=>{let n=e.target.version,r=e.target.root,i=(0,m.formatSize)(e.targetSize.sourceSize),s=e.targetSize.parsedSize?(0,m.formatSize)(e.targetSize.parsedSize):null;return(0,l.jsxs)("div",{className:L,children:[(0,l.jsx)(A.h,{style:{backgroundColor:"#fff"},title:(0,l.jsx)(W,{style:{width:H>1500?900:700},ellipsis:{tooltip:r},children:r}),description:(0,l.jsxs)("div",{className:_,children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:B,children:"Version"}),(0,l.jsxs)("div",{className:I,children:[(0,l.jsx)(c.A,{style:{fontSize:"18px"},component:E}),(0,l.jsxs)("span",{className:F,children:["v",n]})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:B,children:"Source size"}),(0,l.jsxs)("div",{className:I,children:[(0,l.jsx)(c.A,{style:{fontSize:"18px"},component:P}),(0,l.jsx)("span",{className:F,children:i})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:B,children:"Bundle size"}),(0,l.jsxs)("div",{className:I,children:[(0,l.jsx)(c.A,{style:{fontSize:"18px"},component:T}),(0,l.jsx)(b.A,{title:`The bundle size of "${u}" is ${i}, this is after bundled, concatenated module cannot get bundled size. `,children:(0,l.jsx)("span",{className:F,children:s||"CONCATENATED"})})]})]})]}),icon:(0,l.jsx)(G,{style:{position:"relative",top:"-10px"},copyable:{text:r}})}),t!==a.length-1?(0,l.jsx)(S.A,{style:{margin:"10px 0"}}):null]})}),{})}});return(0,l.jsx)(C.A,{style:{width:"100%"},defaultActiveKey:["E1001"],items:i})},K=e=>{let{data:t}=e;return t.map(e=>{let{code:t,link:n,description:r}=e,i=(0,m.useRuleIndexNavigate)(t,n);return(0,l.jsx)(A.A,{style:{background:"#fff"},description:(0,l.jsx)("div",{className:"description-h4sYv3",dangerouslySetInnerHTML:{__html:r||""}}),icon:(0,l.jsx)(d.Ay,{onClick:()=>i,type:"link",children:"more"})})})},{Text:q}=o.A,{innerWidth:Q}=window,J=e=>{let{title:t,description:n,extra:r}=e;return(0,l.jsxs)("div",{className:O,children:[(0,l.jsxs)("div",{className:D,children:[(0,l.jsx)("div",{children:t}),(0,l.jsx)("div",{children:n})]}),(0,l.jsx)("div",{children:r})]})},Z=e=>{let{data:t}=e,n=t.map(e=>{let{package:t,chunks:n}=e;return{key:`${t.name}@${t.version}`,label:(0,l.jsx)(J,{title:(0,l.jsx)(r.A,{style:{backgroundColor:"#EAEDF1",borderRadius:"2px"},children:(0,l.jsx)("span",{className:$,children:`${t.name}@${t.version}`})}),description:"has duplicates bundled into multiple chunks."}),children:(0,l.jsx)(()=>n.map(e=>{let{chunks:t,module:n}=e;return(0,l.jsx)("div",{className:L,children:(0,l.jsx)(A.h,{style:{backgroundColor:"#fff"},title:(0,l.jsxs)(w.A,{children:[(0,l.jsx)(c.A,{style:{fontSize:"18px"},component:R.A}),(0,l.jsxs)(q,{style:{width:Q>1500?900:700},children:["Module:"," ",(0,l.jsx)(q,{style:{fontSize:12,color:"rgba(28, 31, 35, 0.6)",fontWeight:300},children:n.path})]})]}),description:(0,l.jsx)("div",{className:_,children:t.map(e=>(0,l.jsxs)("div",{style:{display:"flex"},children:[(0,l.jsx)("div",{className:B,children:"Chunk"}),(0,l.jsx)("div",{className:I,children:(0,l.jsx)("span",{className:F,children:e.name})})]}))})})})}),{})}});return(0,l.jsx)(C.A,{style:{width:"100%"},defaultActiveKey:["E1005"],items:n})},Y=e=>{let{title:t,dataSource:n,extraData:o}=e,[d,c]=(0,u.useState)("E1001"),h=[{key:"E1001",label:"Duplicate Packages",data:[]},{key:"E1002",label:"Cross Chunks Package",data:[]},{key:"E1003",label:"Loader Performance Optimization",data:[]},{key:"E1004",label:"ECMA Version Check",data:[]},{key:"E1005",label:"Default Import Check",data:[]}];n.forEach(e=>{var t;let n=null==(t=h.find(t=>t.key===e.code))?void 0:t.data;null==n||n.push(e)});let p=h.map(e=>{let t,n,s=d===e.key?{border:"1px solid #91D5FF",backgroundColor:"#E6F7FF"}:{},c=d===e.key?{color:"#1890FF"}:{};switch(e.key){case"E1001":t=(0,l.jsx)(U,{data:e.data,extraData:o});break;case"E1002":t=(0,l.jsx)(Z,{data:e.data,extraData:o});break;case"E1003":case"E1005":t=(0,l.jsx)(K,{data:e.data});break;case"E1004":n=(0,l.jsx)("span",{children:"No ECMA Version Check Rules were found. Please refer to 「https://rsdoctor.rs/guide/usage/rule-config」."}),t=(0,l.jsx)(y,{data:e.data});break;default:t=null}return e.data.length||(t=(0,l.jsx)(i.A,{description:n,image:i.A.PRESENTED_IMAGE_SIMPLE})),{key:e.key,label:(0,l.jsx)(()=>(0,l.jsx)(A.A,{style:{backgroundColor:"transparent",paddingLeft:0,paddingRight:0,width:"100%"},title:(0,l.jsx)("span",{className:"labelTitle-tjSCQ_",children:e.label}),description:(0,l.jsxs)("div",{className:"labelDescription-kB74lb",children:[(0,l.jsx)("span",{children:e.data.length}),(0,l.jsx)(r.A,{style:{fontFamily:"Menlo",borderRadius:"2px",...s},children:(0,l.jsx)("span",{style:{...c},children:e.key})})]})}),{}),children:(0,l.jsx)(a.Zp,{className:"card-HNTMcZ",type:"inner",title:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.A,{style:{fontFamily:"Menlo",fontWeight:"700",fontSize:"13px",backgroundColor:"#EAEDF1",borderRadius:"2px"},children:e.key}),(0,l.jsx)("span",{children:e.label})]}),children:t})}});return(0,l.jsx)(a.Zp,{style:{width:"100%",borderRadius:"12px"},children:(0,l.jsxs)("div",{className:"container-TWzmhb",children:[(0,l.jsx)("div",{className:"title-gD67_A",children:t}),n.length?(0,l.jsx)(s.A,{onChange:c,tabBarGutter:10,type:"card",defaultActiveKey:"E1001",items:p}):(0,l.jsx)("div",{style:{minHeight:"480px",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,l.jsx)(i.A,{description:"No Bundle Alerts Data",image:i.A.PRESENTED_IMAGE_SIMPLE})})]})})}},5709:function(e,t,n){n.d(t,{EJ:()=>N,mn:()=>l.m});var l=n(1024),r=n(65723),i=n(22155),s=n(83397),a=n(128),o=n(54995),d=n(70054),c=n(43928),u=n(23995);(0,d.eN)({api:s.SDK.ServerAPI.API.GetProjectInfo,responsePropName:"project",Component:e=>{let{filter:t,project:n}=e,{root:l,errors:s}=n,d=(0,a.useCompileAlertsByErrors)(s),{setCompileAlertsViewMode:h,viewMode:p,setViewMode:x}=(0,a.useViewMode)(),m=t?d.filter(t):d;return(0,i.useEffect)(()=>{(0,a.hasViewModeFromStorage)()||x({compileAlerts:d.length>=5?c.nE.Group:c.nE.List},!1)},[]),(0,r.jsx)(o.J,{title:"Compile Alerts",dataSource:m,extraData:{cwd:l,getPackageRelationContentComponent:e=>(0,r.jsx)(u.rU,{body:{id:e.data.id,target:e.package.target},cwd:l})},viewMode:p.compileAlerts,setViewMode:h,cwd:l})}});var h=n(31448),p=n(63079),x=n(31786),m=n(84585),f=n(79903),g=n(64801),j=n(3149),v=n(36147),y=n(83027),A=n(62922),b=n(37622),S=n(26995),w=n(43637),C=n(99128),k=n.n(C);function M(e){let t=0,n=0;e.forEach(e=>{"warn"===e.level?t++:n++});let l=0!==t&&0!==n?"problems":0===t?"errors":"warns";return{title:`${e.length} compiled ${l}`,detail:(0,r.jsxs)(h.A.Text,{strong:!0,style:{color:"#fff",marginBottom:0},children:[(0,r.jsx)(h.A.Text,{style:{color:"inherit",fontSize:16},children:"Compiled with"}),(0,r.jsxs)(h.A.Text,{strong:!0,style:{color:c.Q1.Red,fontSize:16},children:[" ",n," ",1===n?"error":"errors"," "]}),(0,r.jsx)(h.A.Text,{style:{color:"inherit",fontSize:16},children:"and"}),(0,r.jsxs)(h.A.Text,{strong:!0,style:{color:c.Q1.Yellow,fontSize:16},children:[" ",t," ",1===t?"warning":"warnings"]})]}),warns:t,errors:n}}n(7753);let z=e=>{let{alerts:t=[],open:n,onClose:l}=e;return t.length?(0,r.jsxs)(w.default,{visible:n,onClose:()=>l(),style:{width:"100%",height:"100%",margin:0,zIndex:1e3},closable:!1,modalRender:e=>i.cloneElement(e,{style:{background:"rgba(0, 0, 0, 0.7)",color:"#fff",height:"100%",overflow:"scroll",borderRadius:0}}),children:[(0,r.jsxs)(p.A,{justify:"space-between",align:"middle",children:[M(t).detail,(0,r.jsx)(x.Ay,{onClick:()=>l(),type:"text",style:{color:"#fff"},size:"large",icon:(0,r.jsx)(y.A,{})})]}),(0,r.jsx)(p.A,{gutter:[0,c.or.BasePadding],children:t.map(e=>(0,r.jsx)(m.A,{span:24,style:{whiteSpace:"pre-wrap",lineHeight:"16px",fontSize:14},children:(0,r.jsx)(f.A,{ghost:!0,style:{background:"#000"},defaultActiveKey:[e.id],expandIcon:e=>e.isActive?(0,r.jsx)(A.A,{style:{color:"#fff"}}):(0,r.jsx)(b.A,{style:{color:"#fff"}}),children:(0,r.jsx)(f.A.Panel,{header:(0,r.jsxs)("div",{style:{color:"#fff"},children:["warn"===e.level?(0,r.jsx)(g.A,{color:c.Q1.Yellow,children:"WARNING"}):(0,r.jsx)(g.A,{color:c.Q1.Red,children:"ERROR"}),(0,r.jsx)(k(),{children:e.description||e.title})]}),children:(0,r.jsx)("div",{style:{color:"#fff"},children:(0,r.jsx)(k(),{children:e.stack})})},e.id)})},e.id))})]}):null},N=(0,d.eN)({api:s.SDK.ServerAPI.API.GetOverlayAlerts,Component:e=>{let{alerts:t=[]}=e;if(!t.length)return null;let[n,l]=(0,i.useState)(!1);return(0,r.jsxs)("div",{className:"container-t1WME9",children:[(0,r.jsx)("div",{onClick:()=>l(!n),className:"badgeContainer-K7EgOu",children:(0,r.jsx)(v.A,{count:t.length,size:"small",children:(0,r.jsx)(S.A,{style:{fontSize:15}})})}),(0,r.jsx)(z,{alerts:t,open:n,onClose:()=>l(!1)})]})},responsePropName:"alerts",fallbackComponent:()=>null});(0,d.eN)({api:s.SDK.ServerAPI.API.GetOverlayAlerts,Component:e=>{let{alerts:t=[],defaultOpen:n=t.length>0}=e;if(!t.length)return null;let[l,s]=(0,i.useState)(n);return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(j.A,{banner:!0,message:i.cloneElement(M(t).detail,{style:{color:"#000"}}),icon:(0,r.jsx)(S.A,{}),action:(0,r.jsx)(x.Ay,{onClick:()=>s(!0),size:"small",children:"More"})}),(0,r.jsx)(z,{alerts:t,open:l,onClose:()=>s(!1)})]})},responsePropName:"alerts",fallbackComponent:()=>null})},42868:function(e,t,n){n.d(t,{Ex:()=>s});var l=n(65723),r=n(26316);n(22155);let i={default:"linear-gradient(to bottom, #3ea2ff 0%, #0072db 100%)",success:"linear-gradient(to bottom, #6cf42a 0%, #52C41A 100%)",warn:"linear-gradient(to bottom, #ffc100 0%, #f59025 100%)",error:"linear-gradient(to bottom, rgb(250 127 22), #FF4D4F 100%)"},s=e=>{let{label:t,value:n,type:s="default",tooltip:a}=e,o={height:"100%",lineHeight:"22px",width:"auto",display:"inline-block",boxSizing:"border-box",padding:"0 6px",color:"#fff",fontSize:12,textAlign:"center",verticalAlign:"middle"},d=(0,l.jsxs)("div",{style:{height:22,margin:0,padding:0,boxSizing:"border-box",borderRadius:4,fontSize:0,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",display:"flex",justifyContent:"flex-start",alignItems:"center"},children:[(0,l.jsx)("div",{style:{...o,borderTopLeftRadius:4,borderBottomLeftRadius:4,background:"linear-gradient(to bottom, #525252a3 0%, #1F1F1F 100%)"},children:t}),(0,l.jsx)("div",{style:{...o,borderTopRightRadius:4,borderBottomRightRadius:4,overflow:"hidden",textOverflow:"ellipsis",background:i[s]||i.default},children:n})]});return a?(0,l.jsx)(r.A,{title:!0===a?n:a,placement:"topLeft",children:d}):d}},54352:function(e,t,n){n.d(t,{QE:()=>m,aq:()=>g,vh:()=>x});var l=n(65723),r=n(83397),i=n(31448),s=n(98369),a=n(26316),o=n(95154),d=n(32792),c=n(22155),u=n(128),h=n(43928),p=n(49249);let x=e=>{let{baseline:t,current:n,...r}=e,i=d.TS.diffSize(t,n);return(0,l.jsx)(m,{...r,...i})},m=e=>{let{percent:t,state:n,fontSize:s=14}=e,a=+t.toFixed(2);if(a>0){let e=`${a}`;if(n===r.Client.RsdoctorClientDiffState.Up)return(0,l.jsxs)(i.A.Text,{strong:!0,style:{fontSize:s,color:h.Q1.Red},children:["+",e,"%"]});if(n===r.Client.RsdoctorClientDiffState.Down)return(0,l.jsxs)(i.A.Text,{strong:!0,style:{fontSize:s,color:h.Q1.Green},children:["-",e,"%"]})}return null},f=e=>{let{data:t,formatter:n}=e,{percent:r,state:o,size:d}=t,{baseline:c,current:h}=d,p=n?n(c,"baseline"):(0,u.formatSize)(c),x=n?n(h,"current"):(0,u.formatSize)(h);return(0,l.jsx)(s.A,{align:"start",children:(0,l.jsxs)(s.A,{direction:"vertical",style:{textAlign:"left"},children:[(0,l.jsxs)(s.A,{children:[(0,l.jsx)(i.A.Text,{style:{fontSize:10,color:"inherit"},keyboard:!0,children:"Current"}),(0,l.jsx)(a.A,{title:"number"==typeof x||"string"==typeof x?`Value of Current is ${x}`:void 0,children:(0,l.jsx)(i.A.Text,{style:{fontSize:16,color:"inherit"},strong:!0,children:x})}),(0,l.jsx)(m,{percent:r,state:o})]}),(0,l.jsxs)(s.A,{children:[(0,l.jsx)(i.A.Text,{style:{fontSize:10,color:"inherit"},keyboard:!0,children:"Baseline"}),(0,l.jsx)(a.A,{title:"number"==typeof p||"string"==typeof p?`Value of Baseline is ${p}`:void 0,children:(0,l.jsx)(i.A.Text,{style:{fontSize:14},type:"secondary",children:p})})]})]})})},g=e=>{let{titles:t,datas:n,formatter:r,showPercentInTitle:a}=e,[d,u]=(0,c.useState)(0);return(0,l.jsx)(p.j,{title:t.length>1?(0,l.jsx)(o.A,{defaultValue:t[d],options:a?t.map((e,t)=>{let r=n[t];return{label:(0,l.jsxs)(s.A,{children:[(0,l.jsx)(i.A.Text,{children:e}),(0,l.jsx)(m,{percent:r.percent,state:r.state})]}),value:e}}):t,onChange:e=>{u(t.indexOf(e))},size:"small",style:{transition:"transform 0.3s ease"},value:t[d]||t[0]}):t[d],value:(0,l.jsx)(f,{data:n[d],formatter:r}),statisticProps:{style:{textAlign:"left"}}})}},97255:function(e,t,n){n.d(t,{Zp:()=>d});var l=n(65723),r=n(22155),i=n(47078),s=n(82528),a=n(20772),o=n(98369);n(54352);let d=e=>{let{collapsable:t=!1,children:n,title:d,dividerStyle:c,defaultCollapsed:u=!1,...h}=e,[p,x]=(0,r.useState)(u);return d&&t?(0,l.jsx)(a.A,{style:{borderRadius:"12px"},...h,title:(0,l.jsxs)(o.A,{style:{fontSize:"inherit"},children:[(0,l.jsx)("div",{style:{cursor:"pointer"},onClick:()=>x(!p),children:p?(0,l.jsx)(i.A,{}):(0,l.jsx)(s.A,{})}),d]}),children:p?null:n}):(0,l.jsx)(a.A,{style:{borderRadius:"12px"},title:d,...h,children:n})}},49249:function(e,t,n){n.d(t,{j:()=>i});var l=n(65723),r=n(53310);let i=e=>{let{title:t,value:n,statisticProps:i,boxProps:s}=e;return(0,l.jsx)("div",{className:"statistic-card",...s,children:(0,l.jsx)(r.A,{title:(0,l.jsx)("div",{className:"statistic-card-title",children:t}),valueRender:()=>n,valueStyle:{fontSize:24},...i})})}},41257:function(e,t,n){n.d(t,{n:()=>j});var l=n(65723),r=n(22155),i=n(49599),s=n(82943),a=n(25920),o=n(59717),d=n(33342),c=n(93655),u=n(4171),h=n.n(u),p=n(87854),x=n(8857),m=n(40097),f=n(74861),g=n(67559);let j=(0,r.memo)(e=>{let{loaderData:t,pluginsData:n,formatterFn:u,chartType:j=x.wx.Normal,exts:v=null}=e,y=[],A=[],[b,S]=(0,r.useState)({});return m.Y([s.a,a.a,o.a,d.a,c.a]),(0,r.useEffect)(()=>{if(!t)return;let e=[];t.forEach(t=>{e.unshift(t.n+" total"),e.unshift(t.n)}),t.forEach(function(t,n){var l;if(y.push({name:t.n+" total",value:[e.indexOf(t.n+" total"),t.s,t.e,t.e-t.s],itemStyle:{normal:{color:x.dK[Math.floor(27*Math.random())],opacity:.25}}}),null==t?void 0:t.c)for(let n=0;n<(null==t||null==(l=t.c)?void 0:l.length);n++)y.push({name:t.n,value:[e.indexOf(t.n),t.c[n].s,t.c[n].e,t.c[n].e-t.c[n].s],itemStyle:{normal:{color:x.dK[Math.floor(27*Math.random())],opacity:.25}},ext:t.c[n].ext})}),A=e.map((e,t)=>t%2!=0?e.replace(" total",""):"")},[t]),(0,r.useEffect)(()=>{if(!n)return;let e=(0,p.$)(n,e=>e.pid);Object.keys(e).reverse().forEach(function(t,n){e[t].forEach((e,t)=>{y.push({name:String(e.pid),value:[n,e.args.s,e.args.e,e.args.e-e.args.s],itemStyle:{normal:{color:x.dK[Math.floor(27*Math.random())],opacity:.25}},ext:e})}),A.push(String(t.charAt(0).toUpperCase()+t.slice(1)))})},[n]),(0,r.useEffect)(()=>{S({tooltip:{formatter:e=>u(e)},dataZoom:[{type:"slider",filterMode:"weakFilter",showDataShadow:!1,top:-10},{type:"inside",filterMode:"weakFilter"}],grid:{top:10,left:0,bottom:10,right:0,height:A.length>(j===x.wx.Loader?6:3)?"auto":60*A.length,containLabel:!0},xAxis:{interval:(null==v?void 0:v.endTimestamp)&&(null==v?void 0:v.startTimestamp)?Math.floor((v.endTimestamp-v.startTimestamp)/8):null,position:"top",splitLine:{show:!0},scale:!0,axisLine:{show:!1},axisLabel:{formatter:e=>h()(e).format("HH:mm:ss:SSS")}},yAxis:{type:"category",splitLine:{show:!1},axisLabel:{inside:!0,lineHeight:20,width:100,fontSize:12,color:"#000",verticalAlign:"bottom"},axisLine:{show:!1},axisTick:{show:!1},data:A},series:[{type:"custom",renderItem:function(e,t){let n=t.value(0),l=t.coord([t.value(1),n]),r=t.coord([t.value(2),n]),i=.3*t.size([0,1])[1],s=f.clipRectByRect({x:l[0],y:j===x.wx.Loader?l[1]-(n%2!=0?0:2*i):l[1],width:r[0]-l[0]||5,height:i},{x:e.coordSys.x,y:e.coordSys.y,width:e.coordSys.width,height:e.coordSys.height});return s&&{type:"rect",transition:["shape"],shape:s,style:t.style(),enterFrom:{style:{opacity:0},x:0}}},itemStyle:{opacity:.8},encode:{x:[1,2],y:0},data:y}]})},[t,n,v]),(0,l.jsx)(i.A,{option:b,echarts:g,style:{width:"100%",minHeight:j===x.wx.Loader?"500px":j===x.wx.Minify?"100px":"200px",maxHeight:j===x.wx.Minify?"100px":"1000px",border:"1px solid #eee",borderRadius:"10px"}})})},69263:function(e,t,n){n.d(t,{d:()=>z});var l=n(65723),r=n(22155),i=n(49599),s=n(44184),a=n(25920),o=n(93655),d=n(8857),c=n(98369),u=n(20772),h=n(31448),p=n(26316),x=n(64801),m=n(50118),f=n(85189),g=n(64857),j=n(45373),v=n(128),y=n(14303);let A={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 b=n(40097),S=n(82557),w=n(67559);function C(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n);return t>>>0}let k=(0,r.memo)(e=>{let{treeData:t,valueKey:n="sourceSize",style:c,onChartClick:u,forwardedRef:h}=e,[p,x]=(0,r.useState)(null),m=r.useRef(null);return(0,r.useEffect)(()=>{h&&m.current&&("function"==typeof h?h(m.current):h.current=m.current)},[h,m.current]),(0,r.useEffect)(()=>{b.Y([s.a,a.a,o.a])},[]),(0,r.useEffect)(()=>{t&&x({title:{text:"Bundle Tree Map",left:"center"},tooltip:{position:"top",formatter:function(e){for(var t=e.treePathInfo,n=[],l=1;l<t.length;l++)n.push(t[l].name);var r=e.data||{},i=r.path||n.join("/"),s=r.sourceSize,a=r.bundledSize,o=r.gzipSize,d=r.level;function c(e,t,n){return`<div class="${A["tooltip-row"]}"><span class="${A["tooltip-label"]}">${e}</span><span${n?` style="color: ${n}"`:""}>${t}</span></div>`}return[`<div class="${A["tooltip-path"]}">`+S.Me(i)+"</div>",c(0===d?"Asset":"Source",void 0!==s?(0,v.formatSize)(s):"-"),!a?"":c("Bundled",(0,v.formatSize)(a),"#1890ff"),!o?"":c("Gzipped",(0,v.formatSize)(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,l){var r;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=d.tQ[l],a=null==(r=t.children)?void 0:r.map((t,n)=>e(t,l,i+1));return{id:t.path?C(t.path):void 0,name:t.name,value:t[n]||t.value||t.sourceSize||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:s[i%s.length],borderColor:s[i%s.length]},level:i}})(e,d.Rk[t%d.Rk.length],0))}]})},[t,n]),p?(0,l.jsx)("div",{children:(0,l.jsx)(i.A,{ref:m,option:p,echarts:w,onEvents:u?{click:u}:void 0,style:{width:"100%",minHeight:"500px",maxHeight:"1000px",border:"5px solid white",borderRadius:"10px",...c},className:A["chart-container"]})}):null}),M=r.forwardRef((e,t)=>(0,l.jsx)(k,{...e,forwardedRef:t})),z=e=>{let{treeData:t,onChartClick:n,bundledSize:i=!1}=e,s=(0,r.useMemo)(()=>t.map(e=>e.name),[t]),[a,o]=(0,r.useState)(s),[d,b]=(0,r.useState)(!1),[S,w]=(0,r.useState)(!1),k=r.useRef(null),{t:z}=(0,v.useI18n)(),N=(0,r.useMemo)(()=>t.filter(e=>a.includes(e.name)),[t,a]);return(0,l.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:16},className:A.treemap,children:(0,l.jsxs)(c.A,{direction:"vertical",style:{width:"100%"},children:[(0,l.jsx)(u.A,{title:(0,l.jsxs)(c.A,{children:[(0,l.jsx)(h.A.Text,{children:z("Output Assets List")}),(0,l.jsx)(y.s,{onModuleClick:e=>{if(!(null==e?void 0:e.path))return;let t=C(e.path);k.current&&k.current.getEchartsInstance().dispatchAction({type:"treemapZoomToNode",seriesId:"bundle-treemap",targetNodeId:t.toString()}),w(!1)},open:S,setOpen:w,isIcon:!0}),(0,l.jsx)(p.A,{color:"white",title:(0,l.jsxs)("span",{children:["✨ In Rspack, TreeMap proportions are always based on Bundled Size by default.",(0,l.jsx)("br",{}),"✨ In Webpack, TreeMap proportions are based on Bundled Size only when SourceMap is enabled.",(0,l.jsx)("br",{}),"✨ ",(0,l.jsx)("b",{children:"Bundled Size"}),": The size of a module after bundling and minification.",(0,l.jsx)("br",{}),"✨ ",(0,l.jsx)("b",{children:"Source Size"}),": The size of a module after compilation (e.g., TypeScript/JSX to JS), but before bundling and minification.",(0,l.jsx)("br",{}),"✨ ",(0,l.jsx)("b",{children:"Gzipped Size"}),": The compressed file size that users actually download, as most web servers use gzip compression.",(0,l.jsx)("br",{})]}),overlayInnerStyle:{width:620,color:"black"},children:(0,l.jsx)(f.A,{style:{color:"#1890ff",marginLeft:8}})}),(0,l.jsxs)(x.A,{color:"blue",children:["TreeMap area based on"," ",i?"Bundled Size":"Source Size"]})]}),extra:(0,l.jsx)("span",{className:A["collapse-icon"],onClick:()=>b(e=>!e),"aria-label":z(d?"Expand":"Collapse"),children:d?(0,l.jsx)(g.A,{}):(0,l.jsx)(j.A,{})}),size:"small",className:`card-body ${d?"collapsed":""}`,children:(0,l.jsxs)("div",{className:`checkbox-container ${d?"collapsed":""}`,children:[(0,l.jsx)(m.A,{indeterminate:a.length>0&&a.length<s.length,checked:a.length===s.length,onChange:e=>o(e.target.checked?s:[]),className:A["all-none-checkbox"],children:"ALL / NONE"},"all-none-checkbox"),(0,l.jsx)(m.A.Group,{options:s,value:a,onChange:o,className:`checkbox-container ${d?"collapsed":""} ${A["asset-checkbox-group"]}`},"asset-checkbox-group")]})}),(0,l.jsx)("div",{style:{flex:1},children:(0,l.jsx)(M,{ref:k,treeData:N,valueKey:i?"bundledSize":"sourceSize",onChartClick:n})})]})})}},8857:function(e,t,n){n.d(t,{Rk:()=>o,dK:()=>l,tQ:()=>s,wx:()=>i});let l=["#F2793D","#F28B24","#F2A200","#F5CC00","#F5E000","#A3D900","#66CC00","#0AC419","#0AC496","#0AC7D1","#00A8E0","#1471F5","#4060FF","#7559FF","#884DFF","#A526FF","#BA39E5","#C700D9","#D900B5","#E50099","#E52E6B","#F24957","#30B2F2","#00BF70","#5959FF","#9F40FF","#528BFF"];var r,i=((r={})[r.Bootstrap=0]="Bootstrap",r[r.Compile=1]="Compile",r[r.Done=2]="Done",r[r.Minify=3]="Minify",r[r.Loader=4]="Loader",r[r.Normal=5]="Normal",r);let s={green:[a("#32b26a",.6),a("#5fcf92",.6),a("#8ee2b6",.8),a("#b7e1cd",1),a("#cdeee0",1),a("#e0f7ef",1),a("#c8e6d6",1)],blue:[a("#3498f7",.6),a("#5eb3fa",.6),a("#8ccafc",.8),a("#b3d8f8",1),a("#cde6fa",1),a("#e0f2fd",1),a("#c8e0ef",1)],purple:[a("#a04ddb",.6),a("#b26ef0",.6),a("#c49ff5",.8),a("#d1b3e6",1),a("#e0c8f2",1),a("#f0e6fa",1),a("#d6c8e6",1)],yellow:[a("#ffe066",.6),a("#ffec80",.6),a("#fff599",.8),a("#fff9c4",1),a("#fffbe0",1),a("#fffde7",1),a("#f5f2c8",1)],grey:[a("#7a7a7a",.7),a("#969696",.7),a("#b0b0b0",.8),a("#c8c8c8",1),a("#dcdcdc",1),a("#ededed",1),a("#f7f7f7",1)]};function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseInt(e.slice(1,3),16),l=parseInt(e.slice(3,5),16),r=parseInt(e.slice(5,7),16);return`rgba(${n}, ${l}, ${r}, ${t})`}let o=["blue","purple","yellow","grey","green"]},73255:function(e,t,n){n.d(t,{z:()=>m});var l=n(65723),r=n(22155),i=n(87854),s=n(81489);n(22481);var a=n(27124),o=n(78870),d=n(13409),c=n(41257),u=n(39009),h=n(8857);let p=0,x=0,m=e=>{let{loaders:t,cwd:n}=e,{isDark:m}=(0,a.DP)(),f=(0,r.useRef)(null),[g,j]=(0,r.useState)([]),v=(0,u.Wy)(g,200),y=(0,r.useMemo)(()=>(0,i.$)(t,e=>e.loader),[t]),A=(0,r.useCallback)(e=>{let{name:l,data:r}=e,i=l.replace(" total","");return(null==r?void 0:r.ext)?(0,u.Bq)(r.ext):(0,u.iv)(i,t,n)},[]);return(0,r.useEffect)(()=>{j(Object.keys(y).map(e=>{let t=y[e]||[],{start:l,end:r}=(0,o.xr)(t);return(l<p||0===p)&&(p=l),(r>x||0===x)&&(x=r),{p:e,n:e,s:l,e:r,c:t.map(t=>({p:e,n:(0,d.Zb)(t.resource,n),s:t.startAt,e:t.endAt,ext:t}))}}))},[y]),(0,l.jsx)(l.Fragment,{children:(null==g?void 0:g.length)?(0,l.jsx)("div",{className:["loader-chart-container",m?"loader-chart-container_dark":""].join(" ").trim(),ref:f,style:{width:"100%"},children:(0,l.jsx)(c.n,{loaderData:v,formatterFn:A,chartType:h.wx.Loader,exts:{startTimestamp:p,endTimestamp:x}})}):(0,l.jsx)(s.A,{})})}},90989:function(e,t,n){n.d(t,{a:()=>r});var l,r=((l={}).BEGIN="B",l.END="E",l.COMPLETE="X",l.INSTANT="I",l.MARK="R",l)},83912:function(e,t,n){n.d(t,{A:()=>l});let l={title:"title-BZ9xk1"}},96800:function(e,t,n){n.d(t,{h:()=>A,C:()=>y});var l=n(65723);n(22155);var r=n(88415),i=n(98369),s=n(37622),a=n(45586),o=n(8208),d=n(76847),c=n(16396);let u=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,l.jsx)("path",{fill:"#FAAD14",d:"M11.409 3.51 8.046.146A.5.5 0 0 0 7.693 0H1.056a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.462 1.152l2.94 2.94h-2.94zm2.969 11.722H1.68V1.125h4.718V4.5a.656.656 0 0 0 .657.656h3.375z"}),(0,l.jsx)("path",{fill:"#FAAD14",d:"M6.927 9.651h.888a1.6 1.6 0 0 1-.24.775q-.211.339-.592.528-.377.19-.908.19a1.9 1.9 0 0 1-.745-.142 1.6 1.6 0 0 1-.564-.416 1.9 1.9 0 0 1-.354-.653 2.8 2.8 0 0 1-.121-.858v-.3q0-.474.124-.858.128-.386.362-.656.238-.27.567-.415.33-.146.737-.146.54 0 .911.196.375.195.58.54.206.345.249.784H6.93a1.15 1.15 0 0 0-.104-.442.6.6 0 0 0-.27-.276 1 1 0 0 0-.475-.095.86.86 0 0 0-.39.083.7.7 0 0 0-.278.252 1.3 1.3 0 0 0-.17.428q-.053.255-.053.6v.305q0 .335.05.591.051.251.155.428a.7.7 0 0 0 .273.26.9.9 0 0 0 .407.087q.28 0 .46-.09a.6.6 0 0 0 .276-.263q.098-.176.116-.437"}),(0,l.jsx)("path",{fill:"#FFF1B8",fillRule:"evenodd",d:"M6.4 1.125V4.5a.656.656 0 0 0 .656.656h3.375v7.719H1.68V1.125zm1.415 8.526h-.888q-.017.261-.116.437a.6.6 0 0 1-.276.264q-.18.09-.46.089a.9.9 0 0 1-.407-.086.7.7 0 0 1-.273-.261q-.104-.176-.154-.428a3 3 0 0 1-.05-.59v-.307q0-.345.053-.6.056-.258.169-.427a.7.7 0 0 1 .279-.252.86.86 0 0 1 .389-.083q.297 0 .475.095a.6.6 0 0 1 .27.276q.09.18.104.442h.89a1.8 1.8 0 0 0-.249-.784q-.205-.345-.579-.54-.37-.195-.911-.196-.407 0-.737.146-.33.145-.567.415-.234.27-.362.656a2.8 2.8 0 0 0-.124.858v.3q0 .476.121.858.122.383.354.653.234.27.564.416.33.143.745.143.531 0 .908-.19.38-.19.591-.529a1.6 1.6 0 0 0 .24-.775",clipRule:"evenodd"})]}),h=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,l.jsx)("path",{fill:"#722ED1",d:"M6.076 7.58a.356.356 0 0 1 .646.299l-1.576 3.414a.356.356 0 0 1-.646-.298zM7.198 8.135a.356.356 0 0 0 0 .503l.8.799-.8.8a.356.356 0 1 0 .503.502l1.05-1.05a.356.356 0 0 0 0-.503l-1.05-1.05a.356.356 0 0 0-.503 0M4.024 8.135a.356.356 0 0 1 0 .503l-.799.799.8.8a.356.356 0 1 1-.504.502l-1.05-1.05a.356.356 0 0 1 0-.503l1.05-1.05a.356.356 0 0 1 .503 0"}),(0,l.jsx)("path",{fill:"#EFDBFF",fillRule:"evenodd",d:"M5.955 1.125V4.5a.656.656 0 0 0 .656.656h3.375v7.719h-8.75V1.125zm.121 6.456a.356.356 0 1 1 .646.298l-1.576 3.414a.356.356 0 1 1-.646-.298zm1.122.554a.356.356 0 0 0 0 .503l.8.799-.8.8a.356.356 0 1 0 .503.502l1.05-1.05a.356.356 0 0 0 0-.503l-1.05-1.05a.356.356 0 0 0-.503 0m-3.174.503a.356.356 0 1 0-.503-.503l-1.05 1.05a.356.356 0 0 0 0 .503l1.05 1.05a.355.355 0 1 0 .503-.502l-.799-.799z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"#722ED1",d:"M10.964 3.51 7.602.146A.5.5 0 0 0 7.249 0H.61a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.017 1.152l2.941 2.94h-2.94zm2.97 11.722h-8.75V1.125h4.718V4.5a.656.656 0 0 0 .656.656h3.375z"})]}),p=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,l.jsx)("path",{fill:"#E6F7FF",d:"M6.733 4.5V1.125h-4.72v11.75h8.75V5.156H7.39a.656.656 0 0 1-.656-.656m-2.094.781a.625.625 0 1 1 0 1.25.625.625 0 0 1 0-1.25m4.625 4.594H3.515a.125.125 0 0 1-.098-.202l1.56-1.987a.125.125 0 0 1 .196 0l.642.819 1.216-1.55a.126.126 0 0 1 .199 0l2.132 2.718a.125.125 0 0 1-.098.202"}),(0,l.jsx)("path",{fill:"#1890FF",d:"M11.742 3.51 8.38.146A.5.5 0 0 0 8.026 0H1.39a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.795 1.152l2.94 2.94h-2.94zm2.969 11.722h-8.75V1.125h4.719V4.5a.656.656 0 0 0 .656.656h3.375z"}),(0,l.jsx)("path",{fill:"#1890FF",d:"m7.031 6.955-1.215 1.55-.643-.82a.125.125 0 0 0-.196 0l-1.56 1.988a.125.125 0 0 0 .099.202h5.748c.105 0 .163-.12.098-.202L7.23 6.955a.127.127 0 0 0-.199 0M4.014 5.906a.625.625 0 1 0 1.25 0 .625.625 0 0 0-1.25 0"})]}),x=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,l.jsx)("path",{fill:"#E6F7FF",fillRule:"evenodd",d:"M6.177 1.125V4.5a.656.656 0 0 0 .656.656h3.375v7.719h-8.75V1.125zm1.806 8.7q.03.081.03.183a.411.411 0 0 1-.26.388.8.8 0 0 1-.333.057q-.166 0-.307-.034a.7.7 0 0 1-.24-.11.5.5 0 0 1-.153-.197.7.7 0 0 1-.055-.3H5.88q0 .321.133.555.132.234.354.386.225.15.497.226.275.073.555.073.313 0 .565-.07.254-.07.435-.206.183-.135.279-.33a1 1 0 0 0 .096-.443q0-.235-.08-.42a1 1 0 0 0-.24-.33 1.7 1.7 0 0 0-.396-.263 3.5 3.5 0 0 0-.544-.211 3 3 0 0 1-.326-.118 1.3 1.3 0 0 1-.237-.127.5.5 0 0 1-.146-.146.33.33 0 0 1-.047-.174q0-.129.068-.23a.45.45 0 0 1 .203-.164.8.8 0 0 1 .339-.062q.21 0 .349.073a.48.48 0 0 1 .208.2q.07.125.07.292h.777q0-.339-.175-.602a1.17 1.17 0 0 0-.484-.414 1.7 1.7 0 0 0-.732-.15q-.307 0-.565.075-.255.075-.443.216a1 1 0 0 0-.292.333.9.9 0 0 0-.104.43q0 .244.1.43.1.184.275.325.178.138.406.242.232.104.49.188.232.072.378.14a1 1 0 0 1 .226.138q.08.068.11.152M4.595 7.209v2.628q0 .195-.063.33a.46.46 0 0 1-.17.206.47.47 0 0 1-.257.07.6.6 0 0 1-.263-.051.36.36 0 0 1-.17-.175.8.8 0 0 1-.057-.33h-.783q0 .398.164.658.164.258.45.383t.659.125q.36 0 .646-.146.289-.146.456-.416.166-.274.166-.654V7.208z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"#1890FF",d:"M8.014 10.008a.5.5 0 0 0-.031-.182.34.34 0 0 0-.11-.152 1 1 0 0 0-.226-.138 3 3 0 0 0-.378-.14 5 5 0 0 1-.49-.188 2 2 0 0 1-.406-.242 1.1 1.1 0 0 1-.276-.325.9.9 0 0 1-.099-.43q0-.237.104-.43a1 1 0 0 1 .292-.333q.188-.141.443-.216.258-.075.565-.076.42 0 .732.151.312.152.484.414.175.264.175.602h-.776a.6.6 0 0 0-.07-.292.48.48 0 0 0-.21-.2.74.74 0 0 0-.348-.073.8.8 0 0 0-.339.062.45.45 0 0 0-.203.164.4.4 0 0 0-.067.23q0 .096.046.174.05.078.146.146t.237.127q.14.06.326.118.31.093.544.21.237.118.396.264a1 1 0 0 1 .24.33q.08.185.08.42a1 1 0 0 1-.096.442.9.9 0 0 1-.279.331q-.181.135-.435.206a2.1 2.1 0 0 1-.565.07q-.28 0-.555-.073a1.7 1.7 0 0 1-.497-.226q-.222-.152-.354-.386a1.1 1.1 0 0 1-.133-.555h.784q0 .178.055.3a.5.5 0 0 0 .153.198q.102.075.24.11.14.033.307.033.204 0 .333-.057a.41.41 0 0 0 .26-.388M4.595 9.836V7.208h.778v2.628q0 .38-.166.654-.167.27-.456.416a1.4 1.4 0 0 1-.646.146q-.372 0-.659-.125a1 1 0 0 1-.45-.383q-.164-.26-.164-.659h.783q0 .21.058.331a.36.36 0 0 0 .169.175q.109.052.263.052a.47.47 0 0 0 .258-.07.46.46 0 0 0 .17-.206q.061-.135.062-.331"}),(0,l.jsx)("path",{fill:"#1890FF",d:"M11.186 3.51 7.824.146A.5.5 0 0 0 7.47 0H.833a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.147-.355M7.24 1.152l2.94 2.94H7.24zm2.968 11.722h-8.75V1.125h4.72V4.5a.656.656 0 0 0 .655.656h3.375z"})]}),m=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,l.jsx)("path",{fill:"#F0F0F0",d:"M6.288 4.5V1.125H1.57v11.75h8.75V5.156H6.944a.656.656 0 0 1-.656-.656m-.344 6.625a.5.5 0 1 1 0-.999.5.5 0 0 1 0 .999m1.72-3.569c.01.702-.465 1.32-1.162 1.546a.22.22 0 0 0-.151.207V9.5c0 .086-.07.156-.157.156h-.5a.157.157 0 0 1-.156-.156V9a.65.65 0 0 1 .542-.627c.443-.057.77-.4.77-.795 0-.439-.402-.805-.906-.805-.503 0-.906.366-.906.807a.15.15 0 0 1-.153.147H4.38a.15.15 0 0 1-.153-.149c0-.897.783-1.62 1.742-1.61.926.013 1.683.721 1.695 1.588"}),(0,l.jsx)("path",{fill:"#8C8C8C",d:"M11.298 3.51 7.935.148A.5.5 0 0 0 7.58 0H.944a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V3.864a.5.5 0 0 0-.146-.353M7.35 1.154l2.94 2.94h-2.94zm2.968 11.722H1.57V1.125h4.72V4.5a.656.656 0 0 0 .655.656h3.375z"}),(0,l.jsx)("path",{fill:"#8C8C8C",d:"M5.444 10.625a.5.5 0 1 0 1 0 .5.5 0 0 0-1 0M4.226 7.578a.15.15 0 0 0 .153.149h.506a.15.15 0 0 0 .153-.147c0-.44.403-.807.906-.807.504 0 .907.366.907.805 0 .395-.328.738-.77.795A.65.65 0 0 0 5.537 9v.5c0 .086.07.156.156.156h.5c.086 0 .157-.07.157-.156v-.19a.22.22 0 0 1 .151-.208c.697-.225 1.172-.844 1.161-1.546-.012-.867-.769-1.575-1.695-1.587-.96-.011-1.742.712-1.742 1.61"})]});var f=n(128),g=n(13078),j=n.n(g);let{useToken:v}=r.A;function y(e){let t=function(e){switch(j().extname(e).slice(1).toLowerCase()){case"js":case"jsx":case"ts":case"mjs":case"cjs":case"mts":case"cts":return(0,l.jsx)(x,{});case"tsx":default:return(0,l.jsx)(m,{});case"css":case"scss":case"sass":case"less":case"styl":case"stylus":return(0,l.jsx)(u,{});case"html":return(0,l.jsx)(h,{});case"png":case"jpg":case"jpeg":case"gif":case"svg":case"bmp":case"webp":case"ico":case"apng":case"avif":case"tif":case"tiff":case"jfif":case"pjpeg":case"pjp":return(0,l.jsx)(p,{})}}(e);return(0,l.jsx)("div",{className:"file-icon",children:t})}let A=e=>{let{isDark:t}=(0,f.useTheme)(),{token:n}=v(),r=t?n.colorWhite:n.colorText,u={fontSize:n.fontSize};return(0,l.jsx)(c.default,{checkable:!1,selectable:!0,switcherIcon:e=>{let{data:t,expanded:n}=e;return(null==t?void 0:t.children)?(0,l.jsxs)(i.A,{style:{color:r},children:[(0,l.jsx)(s.A,{twoToneColor:r,className:`file-tree-switcher-arrow ${n?"file-tree-switcher-arrow-expand":""}`,style:u}),n?(0,l.jsx)(a.A,{}):(0,l.jsx)(o.A,{})]}):(null==t?void 0:t.key)&&"string"==typeof t.key?y(t.key):(0,l.jsx)(d.A,{})},expandAction:"click",...e})}},10142:function(e,t,n){n.d(t,{E:()=>o});var l=n(65723),r=n(22155),i=n(98204),s=n(31786),a=n(31448);let o=e=>{let t,{icon:n,label:o,labelStyle:d={},placeholder:c,onChange:u,style:h,className:p,width:x,delay:m=300}=e,[f,g]=(0,r.useState)(""),j={width:120,...d},v=(0,r.useRef)(null);return(0,r.useEffect)(()=>{u(f)},[f]),(0,l.jsxs)(i.A.Group,{compact:!0,style:h,className:p,children:[o||n?(0,l.jsxs)(s.Ay,{style:j,onClick:()=>{v&&v.current&&v.current.focus()},children:[n||null,(0,l.jsx)(a.A.Text,{children:o})]}):null,(0,l.jsx)(i.A,{ref:v,allowClear:!0,defaultValue:f,style:{width:x?x-120:250},placeholder:c,onChange:e=>{t&&clearTimeout(t);let n=e.target.value.trim();t=setTimeout(()=>{g(n)},m)}})]})}},72854:function(e,t,n){n.d(t,{i:()=>a});var l=n(65723);n(22155);var r=n(31448),i=n(28342);let s="text-QI6k9S",a=e=>{let{text:t,keyword:n,...i}=e;if(!n||-1===t.indexOf(n))return o({text:t,rest:i});let a=[],d=t;for(;d.length>0;){let e=d.indexOf(n);if(e>-1)0!==e&&a.push(o({text:d,els:a})),a.push(o({text:d,els:a,marked:!0})),d=d.slice(e+n.length);else{a.push(o({text:d,els:a,marked:!0}));break}}return(0,l.jsx)(r.A.Text,{className:s,...i,children:a})},o=e=>{let{text:t,els:n,marked:a=!1,rest:o}=e;if(!t)return null;let d=t.length;if(d>40){let e=Math.floor(18.5),n=Math.ceil(18.5);return(0,l.jsx)(i.A,{content:t,placement:"left",children:(0,l.jsx)("div",{children:(0,l.jsxs)(r.A.Text,{className:s,mark:!!a,...o,children:[t.slice(0,e),"...",t.slice(d-n)]})})})}return(0,l.jsx)(i.A,{content:t,children:(0,l.jsx)("div",{children:(0,l.jsx)(r.A.Text,{className:s,...o,children:t},n?n.length:0)})})}},31058:function(e,t,n){n.d(t,{h:()=>V});var l=n(65723),r=n(83027),i=n(83397),s=n(8879),a=n(64801),o=n(98369),d=n(26316),c=n(31448),u=n(28342),h=n(1836),p=n(63079),x=n(84585),m=n(20772),f=n(81234),g=n(36643),j=n(14696),v=n(22155),y=n(43928),A=n(128),b=n(96800),S=n(72854),w=n(70054),C=n(9136),k=n(2323),M=n(37080),z=n(81489),N=n(4171),T=n.n(N);let P=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:12,fill:"none",viewBox:"0 0 10 12",...e,children:[(0,l.jsx)("path",{fill:"#FAAD14",fillRule:"evenodd",d:"M3.151 7.98h-1.85a.925.925 0 0 1-.924-.925V1.508c0-.511.414-.925.925-.925h7.396c.511 0 .925.414.925.925v5.547c0 .51-.414.924-.925.924H6.85V6.13a1.85 1.85 0 0 0-3.698 0z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"#FAAD14",d:"M4.076 9.829a.925.925 0 0 0 1.849 0V6.13a.925.925 0 0 0-1.85 0z"}),(0,l.jsx)("path",{fill:"#FAAD14",d:"M5 11.416 7.402 8.92H2.598z"})]}),R=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16",...e,children:[(0,l.jsx)("rect",{width:16,height:16,fill:"#F6FFED",rx:2}),(0,l.jsx)("path",{fill:"#52C41A",fillRule:"evenodd",d:"M4.302 6.02a.925.925 0 0 0-.925.925v5.547c0 .51.414.925.925.925h7.396c.511 0 .925-.414.925-.925V6.945a.925.925 0 0 0-.925-.925zm5.547 0H6.151v1.85a1.85 1.85 0 0 0 3.698 0z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"#52C41A",d:"M7.076 4.171a.925.925 0 0 1 1.849 0V7.87a.925.925 0 0 1-1.85 0z"}),(0,l.jsx)("path",{fill:"#52C41A",d:"m8 2.584 2.402 2.496H5.598z"})]}),E=e=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",viewBox:"0 0 14 14",...e,children:(0,l.jsx)("path",{fill:"#2994FF",d:"M7 10.736 1.7 6.589a.125.125 0 0 0-.201.098v1.208c0 .077.036.15.095.197l5.097 3.989a.5.5 0 0 0 .617 0l5.095-3.99a.25.25 0 0 0 .096-.196V6.687a.125.125 0 0 0-.202-.098zm0-4.75L1.7 1.839a.125.125 0 0 0-.201.098v1.208c0 .077.036.15.095.197L6.692 7.33a.5.5 0 0 0 .617 0l5.095-3.99a.25.25 0 0 0 .096-.196V1.937a.125.125 0 0 0-.202-.098z"})});var O=n(31465),D=n(97255),L=n(13078),_=n.n(L),B=n(32792);let I=+Date.now().toString().slice(-4)+1e3,F=e=>{let t,n,{cwd:r,url:i,loc:s,windowId:a=I,label:o,disabled:d,code:u=!1}=e,h=_().resolve(r,(t=i.split(" "),n="",1===t.length?[n]=t:[n]=t.filter(e=>_().isAbsolute(e)||e.startsWith("./")),n||i)),{line:p,columnStart:x}=function(e){if(!e)return{line:1,column:1};let[t,n=""]=e.split(":"),[l=1,r]=n.split("-");return{line:t,columnStart:l,columnEnd:r||l}}(s);return(0,l.jsxs)("span",{style:{wordBreak:"break-all"},children:[(0,l.jsx)(c.A.Text,{copyable:{text:h},children:(0,l.jsxs)(c.A.Text,{code:u,onClick:()=>{d||function(e){let{file:t,line:n=1,column:l=1,windowId:r}=e,i={windowId:r},s=Object.keys(i).map(e=>{let t=i[e];return B.AP.isNil(t)||""===t?null:`${e}=${t}`}).filter(Boolean).join("&"),a=`vscode://file/${t}:${n}:${l}`;s&&(a+=`?${s}`),window.open(a)}({file:h,line:p,column:x,windowId:a})},style:{cursor:d?"revert":"pointer"},children:[o||(0,A.getShortPath)(i),s?`:${s}`:""]})}),(0,l.jsx)("div",{style:{display:"inline-block"}})]})};var $=n(11771),G=n(79865);let W=e=>{let{loader:t,resource:n,cwd:r}=e;return(0,l.jsx)(D.Zp,{title:"Loader Details",style:{border:"none"},extra:(0,l.jsx)(a.A,{icon:(0,l.jsx)(C.A,{}),color:"default",children:T()(t.startAt).format("YYYY-MM-DD HH:mm:ss")}),children:(0,l.jsxs)(o.A,{direction:"vertical",style:{width:"100%"},children:[t.isPitch?(0,l.jsx)(c.A.Text,{code:!0,children:"pitch"}):null,(0,l.jsxs)(h.A,{size:"large",bordered:!0,children:[(0,l.jsxs)(h.A.Item,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"File Path"}),(0,l.jsx)("div",{children:(0,A.beautifyPath)(n.path,r)})]}),(0,l.jsxs)(h.A.Item,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"Resource Path"}),(0,l.jsx)(F,{cwd:r,url:n.path,loc:"",disabled:!0})]}),(0,l.jsxs)(h.A.Item,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"Resource Query"}),(0,l.jsx)("div",{children:n.queryRaw||"-"})]}),(0,l.jsxs)(h.A.Item,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"Duration"}),(0,l.jsx)("div",{children:(0,A.formatCosts)(t.costs)})]}),(0,l.jsxs)(h.A.Item,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"Loader"}),(0,l.jsx)("div",{children:(0,l.jsx)(c.A.Text,{code:!0,children:t.loader})})]}),(0,l.jsxs)(h.A.Item,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"Loader Index"}),(0,l.jsx)("div",{children:`${t.loaderIndex}`})]}),(0,l.jsxs)(h.A.Item,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"Loader Path"}),(0,l.jsx)(F,{cwd:r,url:t.path,loc:"",disabled:!0})]}),(0,l.jsxs)(h.A.Item,{children:[(0,l.jsx)("div",{style:{width:180},children:(0,l.jsx)(c.A.Text,{strong:!0,children:"Options"})}),(0,l.jsx)(s.A,{type:"vertical"}),(0,l.jsx)(c.A.Paragraph,{ellipsis:{rows:2,expandable:!0,symbol:"more"},copyable:!0,children:JSON.stringify(t.options||"-")})]})]})]})})},H=e=>{let{data:t,cwd:n,index:r}=e,{loaders:i,resource:s}=t,[u,h]=(0,v.useState)(r||0),{theme:m}=(0,A.useTheme)(),f="light"===m,g=i[u],j=g.input||"",b=g.errors&&g.errors.length,[S,w]=(0,v.useState)("loaderDetails"),N=(0,v.useCallback)(e=>{w(e)},[]);return(0,l.jsxs)(p.A,{className:G.A.executions,style:{height:"100%"},children:[(0,l.jsx)(x.A,{span:5,style:{borderRight:f?"1px solid #f0f0f0":void 0,padding:y.or.BasePadding},children:(0,l.jsxs)(o.A,{direction:"vertical",style:{width:"100%"},children:[(0,l.jsx)($.h,{text:"Executions"}),(0,l.jsx)(k.A,{mode:"left",style:{marginTop:y.or.BasePadding},children:i.map((e,t,n)=>{var r;let{loader:i,isPitch:s}=e,o=(0,A.formatCosts)(e.costs);return(0,l.jsxs)(k.A.Item,{dot:s?(0,l.jsx)(a.A,{style:{marginLeft:1,fontWeight:500},children:"pitch"}):(0,l.jsx)(C.A,{}),style:{paddingBottom:10,textAlign:"center"},children:[(0,l.jsx)(p.A,{align:"middle",justify:"space-between",gutter:[0,10],children:(0,l.jsx)(x.A,{span:24,className:G.A.timeline,children:(0,l.jsx)(d.A,{title:i,trigger:"hover",children:(0,l.jsxs)("div",{className:`${G.A.box} ${u===t?G.A.selected:""}`,onClick:()=>{h(t)},style:{textAlign:"left"},children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(c.A.Text,{style:{color:"#000"},children:null==(r=o.match(/[0-9]*\.?[0-9]+/g))?void 0:r[0]})," ",(0,l.jsx)(c.A.Text,{style:{color:"rgba(0,0,0,0.45)"},children:o.match(/[a-zA-Z]+/g)})]}),(0,l.jsx)(c.A.Text,{style:{color:"rgba(0,0,0,0.65)"},className:G.A.loader,children:i})]})})})}),t===n.length-1?null:(0,l.jsx)("div",{style:{paddingTop:10},children:(0,l.jsx)(E,{})})]},t)})})]})}),(0,l.jsx)(x.A,{span:19,style:{height:"100%"},children:(0,l.jsx)(M.A,{type:"card",defaultActiveKey:"loaderDetails",activeKey:S,items:[{label:"Loader Props",key:"loaderProps",children:(0,l.jsx)(W,{loader:g,resource:s,cwd:n})},{label:"Loader Details",key:"loaderDetails",children:(0,l.jsx)("div",{style:{height:"100%"},children:b?(0,l.jsxs)(x.A,{span:24,style:{height:"53%",minHeight:400},children:[(0,l.jsx)("div",{style:{padding:y.or.BasePadding,borderTop:`1px solid ${f?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`,borderBottom:`1px solid ${f?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:(0,l.jsx)($.h,{text:`the error stack of [${g.loader}] ${g.isPitch?"pitch":""}`})}),(0,l.jsx)("div",{style:{height:"90%"},children:(0,l.jsx)(O.Cv,{code:g.errors[0].message,lang:"javascript"})})]}):(0,l.jsxs)(x.A,{span:24,style:{height:"53%",minHeight:400},children:[(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",padding:y.or.BasePadding,borderBottom:`1px solid ${f?"#f0f0f0":"rgba(253, 253, 253, 0.12)"}`},children:[(0,l.jsx)($.h,{text:(0,l.jsxs)(l.Fragment,{children:[`the result of [${g.loader}] ${g.isPitch?"pitch":""}`,!g.isPitch&&(0,l.jsxs)("span",{style:{fontWeight:400},children:["(",(0,l.jsx)(P,{style:{verticalAlign:"middle",margin:"0 2px"}}),"Input ⟷",(0,l.jsx)(R,{style:{verticalAlign:"middle",position:"relative",top:-2}}),"Output)"]})]})}),(0,l.jsx)("div",{style:{flex:1}})]}),g.isPitch?g.result?(0,l.jsx)("div",{style:{height:"90%"},children:(0,l.jsx)(O.Cv,{isEmbed:!0,code:g.result,filePath:s.path})}):(0,l.jsx)(z.A,{description:"No loader result. If you use the Brief Mode, there will not have loader results."}):(0,l.jsx)("div",{style:{minHeight:"700px"},children:(0,l.jsx)("div",{style:{height:"40rem",overflow:"hidden"},children:g.result||j?(0,l.jsx)(O.Mh,{isEmbed:!0,original:j,modified:g.result||"",originalFilePath:s.path,modifiedFilePath:s.path}):(0,l.jsx)(z.A,{description:"No loader result. If you use the Brief Mode, there will not have loader results."})})})]})})}],onChange:N})})]})},V=e=>{let{cwd:t,filetree:n}=e,[C,k]=(0,v.useState)(!1),[M,z]=(0,v.useState)(""),[N,T]=(0,v.useState)(0),[P,R]=(0,v.useState)(null),E=(0,v.useMemo)(()=>n.filter(t=>t.loaders.some(n=>(0,A.filterLoader)(t.path,n.loader,e.filename,e.loaders,t.layer,null==e?void 0:e.layer))),[e.filename,e.loaders,e.layer]),O="__RESOURCEPATH__",D=(0,v.useMemo)(()=>(0,A.createFileStructures)({files:E.map(e=>e.path),cwd:t,fileTitle(e,t){let{loaders:i,layer:p}=n.find(t=>t.path===e),x=[];return i.forEach((e,t)=>t>3&&x.push(e)),(0,l.jsxs)("div",{style:{wordBreak:"break-all",display:"flex",cursor:"pointer"},onClick:()=>{T(0),z(e),k(!0)},children:[(0,l.jsx)("div",{className:G.A.box,children:(0,l.jsx)("div",{className:G.A.keywords,children:(0,l.jsx)(S.i,{text:t.replace(/\[.*?\]/g,""),keyword:""})})}),(0,l.jsx)("div",{className:G.A.dividerDiv,style:{flex:1},children:(0,l.jsx)(s.A,{className:G.A.divider,dashed:!0})}),p&&(0,l.jsx)(a.A,{color:"cyan",bordered:!1,children:p}),(0,l.jsxs)(o.A,{children:[i.slice(0,3).map((t,n)=>{var i;let a=t.errors&&t.errors.length,o=`${e}_${t.loader}_${n}`;if(n<=3)return(0,l.jsx)(d.A,{title:t.path,children:(0,l.jsxs)(c.A.Text,{className:G.A.textBox,style:{color:a?"#f50":"inherit"},onClick:t=>{t.stopPropagation(),z(e),T(n),k(!0)},children:[(0,l.jsx)(c.A.Text,{className:G.A.text,ellipsis:!0,children:(null==(i=t.loader.match(/([^/]+-loader)/g))?void 0:i[0])||t.loader}),(0,l.jsx)(s.A,{type:"vertical"}),a?(0,l.jsx)(r.A,{}):(0,l.jsx)(c.A.Text,{className:G.A.text,children:(0,A.formatCosts)(t.costs)})]})},o)}),(null==x?void 0:x.length)?(0,l.jsx)(u.A,{content:(0,l.jsx)(h.A,{dataSource:x,renderItem:(t,n)=>{var r;let i=t.errors&&t.errors.length,a=`${e}_${t.loader}_${n+3}`;return(0,l.jsx)(h.A.Item,{children:(0,l.jsx)(d.A,{title:t.path,children:(0,l.jsx)("div",{style:{paddingBottom:5},children:(0,l.jsxs)(c.A.Text,{className:G.A.textBox,style:{color:i?"#f50":"inherit"},onClick:t=>{t.stopPropagation(),z(e),T(n),k(!0)},children:[(0,l.jsx)(c.A.Text,{className:G.A.text,ellipsis:!0,children:(null==(r=t.loader.match(/([^/]+-loader)/g))?void 0:r[0])||t.loader}),(0,l.jsx)(s.A,{type:"vertical"}),(0,l.jsx)(c.A.Text,{className:G.A.text,children:(0,A.formatCosts)(t.costs)})]})})},a)})}}),children:(0,l.jsx)("div",{className:G.A.textBox,children:(0,l.jsx)(c.A.Text,{children:"\xb7\xb7\xb7"})})}):(0,l.jsx)(l.Fragment,{})]})]})},dirTitle:(e,t)=>(0,l.jsx)("div",{style:{display:"flex",cursor:"pointer"},children:(0,l.jsx)(S.i,{text:t,keyword:""})})}),[E]);return(0,l.jsxs)(p.A,{style:{width:"100%",marginLeft:0},gutter:y.or.BasePadding,children:[(0,l.jsx)(x.A,{span:24,children:(0,l.jsxs)(m.A,{title:(0,l.jsxs)(o.A,{children:[(0,l.jsx)(c.A.Text,{strong:!0,children:"Files"}),(0,l.jsxs)(c.A.Text,{style:{fontSize:12,fontWeight:400,color:"#1C1F2399",opacity:.6},children:["Total Files: ",E.length]})]}),bodyStyle:{overflow:"auto",maxHeight:800,minHeight:"40rem",padding:14},children:[(0,l.jsx)(b.h,{defaultExpandedKeys:(0,A.mapFileKey)(D,E.length>=100?3:4,e=>!((0,j.J)(e,O).indexOf("/node_modules/")>-1)),treeData:D,onSelect:(e,t)=>{t.node.isLeaf||R(t.node)},selectedKeys:P?[P.key]:void 0,expandAction:"click"},`${e.loaders.join("|")}_${e.filename}`),(0,l.jsx)(f.A,{open:C,onClose:()=>k(!1),maskClosable:!0,width:y.Y7,zIndex:999,bodyStyle:{padding:0},children:C?(0,l.jsx)(w.zW,{api:i.SDK.ServerAPI.API.GetLoaderFileDetails,body:{path:M},children:e=>(0,l.jsx)(H,{data:e,cwd:t,index:N})}):null})]})}),(0,l.jsx)(f.A,{open:!!P,onClose:()=>R(null),maskClosable:!0,width:y.Y7,zIndex:999,bodyStyle:{padding:0},children:P&&(0,l.jsx)(p.A,{children:(0,l.jsx)(x.A,{span:24,children:(0,l.jsx)(m.A,{title:(0,l.jsx)(d.A,{title:v.cloneElement(P.title,{style:{color:"#fff"}}),children:(0,l.jsxs)(c.A.Text,{children:["Statistics of",P.title]})}),children:(0,l.jsx)(w.zW,{api:i.SDK.ServerAPI.API.GetLoaderFolderStatistics,body:{folder:P[O]},children:e=>(0,l.jsx)(g.A,{style:{width:"100%",maxHeight:800,height:"40rem",overflowY:"scroll",wordBreak:"break-all"},pagination:!1,bordered:!0,rowKey:e=>e.loader,columns:[{title:"Loader Name",dataIndex:"loader"},{title:"Files",dataIndex:"files"},{title:"Total Duration",dataIndex:"costs",render:e=>(0,l.jsx)(c.A.Text,{strong:!0,children:(0,A.formatCosts)(e)}),sorter:(e,t)=>e.costs-t.costs,defaultSortOrder:"descend",sortDirections:["descend","ascend"]}],dataSource:e})})})})})})]})}},79865:function(e,t,n){n.d(t,{A:()=>l});let l={loaderAnalysis:"loaderAnalysis-h6mG3n",dividerDiv:"dividerDiv-hrfVKQ",divider:"divider-hnPRxv",box:"box-lFdvrG",keyword:"keyword-UO64w1",textBox:"textBox-sVZZ_A",text:"text-omPvlh",space:"space-qT5CaN",executions:"executions-uZxmQC",timeline:"timeline-wMFXyU",loader:"loader-PHR4ca",selected:"selected-wUMOH3"}},70054:function(e,t,n){n.d(t,{eN:()=>r.e,ug:()=>l.u,zW:()=>r.z});var l=n(75978),r=n(51002)},59500:function(e,t,n){n.d(t,{t:()=>d});var l=n(65723),r=n(31786),i=n(37622),s=n(97255),a=n(128);let o=[{title:"FAQ",link:"https://rsdoctor.rs/guide/more/faq"},{title:"Introduction",link:"https://rsdoctor.rs/guide/start/intro"},{title:"Bundle Alerts",link:"https://rsdoctor.rs/guide/usage/bundle-alerts"},{title:"Bundle Overall",link:"https://rsdoctor.rs/guide/usage/bundle-overall"},{title:"Bundle Analysis",link:"https://rsdoctor.rs/guide/usage/bundle-size"},{title:"Compilation Alerts",link:"https://rsdoctor.rs/guide/usage/compile-alerts"},{title:"Compile Overall",link:"https://rsdoctor.rs/guide/usage/compile-overall"},{title:"Loaders Analysis",link:"https://rsdoctor.rs/guide/usage/loaders-analysis"},{title:"Loaders Timeline",link:"https://rsdoctor.rs/guide/usage/loaders-timeline"},{title:"Plugin Analysis",link:"https://rsdoctor.rs/guide/usage/plugins-analysis"}],d=()=>{let{t:e}=(0,a.useI18n)();return(0,l.jsx)(s.Zp,{style:{width:"100%",borderRadius:"12px"},children:(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"title-dP_KVY",children:[(0,l.jsx)("span",{children:e("Help Center")}),(0,l.jsxs)(r.Ay,{style:{display:"flex",alignItems:"center",padding:0},type:"link",onClick:()=>{window.open("https://rsdoctor.rs/index","_blank")},children:[(0,l.jsx)("span",{style:{marginRight:"3px"},children:"More"}),(0,l.jsx)(i.A,{style:{fontSize:"10px"}})]})]}),(0,l.jsx)("div",{className:"container-LiYKWu",children:o.map((t,n)=>{let{title:r,link:i}=t;return(0,l.jsx)("div",{className:"content-WPe5pa",style:{marginBottom:n<o.length-2?"16px":0},onClick:()=>window.open(i,"_blank"),children:e(r)},n)})})]})})}},22185:function(e,t,n){n.d(t,{DG:()=>i.D,Rl:()=>r.R,Wf:()=>l.Wf,oc:()=>l.oc});var l=n(28220),r=n(93246),i=n(37625)},41020:function(e,t,n){n.d(t,{F:()=>v});var l=n(65723),r=n(22155),i=n(98204),s=n(31786),a=n(31448),o=n(46941),d=n(63079),c=n(84585),u=n(3124),h=n(25659),p=n(10142),x=n(43928),m=n(70054),f=n(83397);let g=e=>{let{style:t,onChange:n,loaderNames:d}=e,[c,h]=(0,r.useState)([]);return(0,l.jsxs)(i.A.Group,{compact:!0,style:t,children:[(0,l.jsxs)(s.Ay,{style:{width:120},children:[(0,l.jsx)(u.A,{}),(0,l.jsx)(a.A.Text,{children:"Loaders"})]}),(0,l.jsx)(o.A,{mode:"multiple",allowClear:!0,defaultValue:c,className:"loader-select",style:{width:300},popupMatchSelectWidth:300,placeholder:"select loaders",onChange:e=>{h(e),n(e)},children:d.map(e=>(0,l.jsx)(o.A.Option,{label:e,value:e,children:e},e))})]})},j=e=>{let{onChange:t,layers:n}=e,[d,c]=(0,r.useState)("");return(0,l.jsxs)(i.A.Group,{compact:!0,children:[(0,l.jsxs)(s.Ay,{style:{width:120},children:[(0,l.jsx)(u.A,{}),(0,l.jsx)(a.A.Text,{children:"Layers"})]}),(0,l.jsx)(o.A,{allowClear:!0,className:"layer-select",style:{width:150},defaultValue:d,placeholder:"select layer",onChange:e=>{c(e),t(e)},children:(null==n?void 0:n.length)?null==n?void 0:n.map(e=>(0,l.jsx)(o.A.Option,{label:e,value:e,children:e},e)):(0,l.jsx)(l.Fragment,{})})]})},v=e=>{let{onChange:t,loaderNames:n}=e,[i,s]=(0,r.useState)([]),[a,o]=(0,r.useState)(""),[u,v]=(0,r.useState)("");return(0,r.useEffect)(()=>{t({loaders:i,filename:a,layer:u})},[i,a,u]),(0,l.jsxs)(d.A,{style:{marginBottom:x.or.BasePadding,marginLeft:10},children:[(0,l.jsx)(c.A,{children:(0,l.jsx)(g,{loaderNames:n,style:{marginRight:x.or.BasePadding},onChange:e=>{s(e)}})}),(0,l.jsx)(c.A,{children:(0,l.jsx)(p.E,{icon:(0,l.jsx)(h.A,{}),style:{marginRight:x.or.BasePadding},label:"Filename",placeholder:"search filename by keyword",onChange:e=>{o(e)}})}),(0,l.jsx)(c.A,{children:(0,l.jsx)(m.zW,{api:f.SDK.ServerAPI.API.GetLayers,children:e=>e.length?(0,l.jsx)(j,{layers:e,onChange:e=>{v(e)}}):(0,l.jsx)(l.Fragment,{})})})]})}},1361:function(e,t,n){n.d(t,{P6:()=>y,hX:()=>A});var l=n(65723),r=n(90345),i=n(31786),s=n(81234),a=n(22155),o=n(26316),d=n(98369),c=n(31448),u=n(63079),h=n(84585),p=n(83397),x=n(57143),m=n(32792),f=n(43928),g=n(23995),j=n(70054);let v=e=>{let{duplicatePackages:t=[],cwd:n,children:r,...i}=e;return(0,l.jsx)(A,{...i,buttonStyle:{fontSize:"inherit",...i.buttonStyle},buttonProps:{type:"text",...i.buttonProps},text:(0,l.jsx)(o.A,{title:"Click to show the details of duplicate packages",children:(0,l.jsxs)(d.A,{style:{fontSize:"inherit"},children:[(0,l.jsx)(c.A.Text,{strong:!0,style:{fontSize:"inherit",color:"inherit",...i.textStyle},children:t.length}),(0,l.jsx)(x.A,{})]})}),drawerProps:{title:"Duplicate Packages Viewer",...i.drawerProps},children:(0,l.jsx)(u.A,{gutter:[f.or.BasePadding,f.or.BasePadding],children:t.map((e,t)=>(0,l.jsx)(h.A,{span:24,children:(0,l.jsx)(g.ZZ,{data:e,cwd:n,getPackageRelationContentComponent:r})},t))})})},y=e=>{let{moduleGraph:t,...n}=e;return(0,l.jsx)(v,{...n,children:e=>(0,l.jsx)(j.zW,{api:p.SDK.ServerAPI.API.GetModuleCodeByModuleIds,body:{moduleIds:t.modules.map(e=>e.id)},children:r=>(0,l.jsx)(g.aM,{data:m.Wh.getPackageRelationAlertDetails(t.modules,t.dependencies,n.cwd,e.package.dependencies,r),cwd:n.cwd})})})},A=e=>{let[t,n]=(0,a.useState)(!1);return(0,l.jsxs)("div",{onClick:e=>e.stopPropagation(),...e.containerProps,children:[e.button?(0,l.jsx)("div",{onClick:()=>n(!t),children:e.button}):e.text?(0,l.jsx)(i.Ay,{type:"link",...e.buttonProps,onClick:()=>n(!t),style:{padding:0,...e.buttonStyle},children:e.text}):(0,l.jsx)(r.A,{style:{fontSize:14,padding:0},onClick:()=>n(!t)}),(0,l.jsx)(s.A,{maskClosable:!0,zIndex:999,width:"60%",...e.drawerProps,open:t,onClose:()=>n(!1),destroyOnClose:!0,children:e.children})]})}},11771:function(e,t,n){n.d(t,{h:()=>s});var l=n(65723);n(22155);var r=n(31448),i=n(82443);let s=e=>{let{upperFirst:t=!0,fontSize:n=16,text:s,hash:a}=e,o="string"==typeof s&&t?(0,i.Z)(s):s;return(0,l.jsx)(r.A.Text,{style:{fontSize:n},strong:!0,children:a?(0,l.jsx)("a",{href:a,id:a.replace(/^#/,""),style:{color:"inherit"},children:o}):o})}},40829:function(e,t,n){n.d(t,{Cv:()=>c});var l=n(65723),r=n(16937),i=n(50251),s=n(22155),a=n(11953),o=n(50118),d=n(32792);function c(e){let{className:t,style:n,code:c="",lang:u,filePath:h="",defaultLine:p,ranges:x,isEmbed:m=!1,headerVisible:f=!0,isLightTheme:g=!0}=e,j=(0,s.useRef)(),v=(0,s.useRef)(),y=(0,s.useMemo)(()=>u||(0,a.rZ)(h)||"plaintext",[u,h]),[A,b]=(0,s.useState)(!0),S=(0,s.useMemo)(()=>(0,a.$N)({wordWrap:A?"on":"off"}),[A]),w=(0,s.useCallback)((e,t)=>{j.current=e,v.current=t,(0,a.sK)(e,t,x),d.AP.isNumber(p)&&setTimeout(()=>{e.revealLine(p)})},[]);return(0,s.useEffect)(()=>()=>{var e;null==(e=j.current)||e.setModel(null)},[]),(0,l.jsxs)("div",{className:(0,i.A)("monaco-component","code-viewer","code-viewer-H7hGrZ",m&&"embed-tjljOS",t),style:n,children:[f&&!!h&&(0,l.jsxs)("div",{className:"header-qejtwX",children:[(0,l.jsx)("div",{children:(0,a.WP)(h)}),(0,l.jsx)("div",{style:{flex:1}}),(0,l.jsx)("div",{children:(0,l.jsx)(o.A,{className:"text-T29bd1",title:"side-by-side",checked:A,onChange:e=>{b(e.target.checked)},children:"word-wrap"})})]}),(0,l.jsx)("div",{className:(0,i.A)("content-EVSW1C","editor-wrap"),children:(0,l.jsx)(r.KE,{theme:g?"vs-light":"vs-dark",language:y,value:c,options:S,onMount:w})})]})}n(71999)},71999:function(e,t,n){n.d(t,{Y:()=>o});var l=n(65723),r=n(81234),i=n(81489),s=n(22155),a=n(40829);function o(e){let[t,n]=(0,s.useState)(""),[o,d]=(0,s.useState)(""),[c,u]=(0,s.useState)(""),[h,p]=(0,s.useState)(!1),[x,m]=(0,s.useState)(),[f,g]=(0,s.useState)();return{showCode(e){n(e.code||""),d(e.lang||""),u(e.filePath||""),m(e.defaultLine),g(e.ranges),p(!0)},codeDrawerComponent:(0,l.jsx)(r.A,{maskClosable:!0,zIndex:999,width:"70%",destroyOnClose:!0,title:`Code of "${c}"`,open:h,onClose:()=>p(!1),children:t?(0,l.jsx)(a.Cv,{code:t,lang:o,filePath:c,defaultLine:x,ranges:f}):(0,l.jsx)(i.A,{description:e||"No Code"})})}}},11953:function(e,t,n){n.d(t,{$N:()=>s,WP:()=>a,XX:()=>i,qK:()=>o,rZ:()=>r,sK:()=>d});var l=n(13078);function r(e){if(!e)return"";let t=function(e){if(!e)return"";try{if(!e.startsWith("data:"))return"";let{mimeType:t}=function(e){if(!e.startsWith("data:"))throw Error("输入不是有效的 Data URL");let t=e.substring(5),n=t.indexOf(",");if(-1===n)throw Error("无效的 Data URL 格式: 缺少数据分隔符");let l=t.substring(0,n),r=t.substring(n+1),i="",s="",a=!1,o=l.split(";");o.length>0&&(i=o[0]||"text/plain");for(let e=1;e<o.length;e++){let t=o[e];"base64"===t?a=!0:t.startsWith("charset=")&&(s=t.substring(8))}return{mimeType:i,charset:s,isBase64:a,data:r}}(e);switch(t){case"text/javascript":return"javascript";case"text/html":return"html";case"text/css":return"css";case"text/plain":return"text";case"application/json":return"json";default:return""}}catch(e){return console.error("解析 data 协议文件格式失败::",e),""}}(e);if(t)return t;try{let t=(0,l.extname)(e).slice(1);switch(t){case"js":case"cjs":case"mjs":case"jsx":return"javascript";case"ts":case"tsx":return"typescript";case"md":return"markdown";default:return t}}catch(e){return""}}let i={readOnly:!0,domReadOnly:!0,fontSize:14,tabSize:2,lineHeight:24,renderValidationDecorations:"off",hideCursorInOverviewRuler:!0,smoothScrolling:!0,wordWrap:"on",colorDecorators:!0,codeLens:!1,cursorWidth:0,minimap:{enabled:!1},contextmenu:!1,gotoLocation:{multiple:"goto",multipleDefinitions:"goto",multipleTypeDefinitions:"goto",multipleDeclarations:"goto",multipleImplementations:"goto",multipleReferences:"goto"},hover:{enabled:!1},links:!1};function s(e){return{...structuredClone(i),...e}}function a(e){return e?e.startsWith("data:")?"data":e.split("/").at(-1)||"":""}function o(e,t){let{start:n,end:l}=e,{line:r=1,column:i=0}=n;return new t(r,i+1,(null==l?void 0:l.line)??r,((null==l?void 0:l.column)??9999)+1)}function d(e,t,n){if(!n||0===n.length)return;let l=n.map(e=>({range:o(e,t.Range),options:{inlineClassName:"file-inline-decoration"}}));e.deltaDecorations([],l),setTimeout(()=>{e.revealLine(l[0].range.startLineNumber)})}},31465:function(e,t,n){n.d(t,{Mh:()=>u,Cv:()=>l.Cv});var l=n(40829),r=n(65723),i=n(16937),s=n(50118),a=n(50251),o=n(22155),d=n(11953);let c={...structuredClone(d.XX),readOnly:!0,originalEditable:!1,renderSideBySide:!0,renderSideBySideInlineBreakpoint:1,renderIndicators:!0,definitionLinkOpensInPeek:!1,domReadOnly:!0,minimap:{enabled:!1},diffWordWrap:"on",folding:!1,lineNumbersMinChars:3,renderLineHighlight:"none",matchBrackets:"never",diffAlgorithm:"advanced",ignoreTrimWhitespace:!0,renderOverviewRuler:!0,renderLineHighlightOnlyWhenFocus:!0,smoothScrolling:!0,letterSpacing:.5};function u(e){let{className:t,style:n,original:l="",modified:u="",originalFilePath:h="",modifiedFilePath:p="",originalLang:x,modifiedLang:m,isEmbed:f=!1,isLightTheme:g=!0,headerVisible:j=!0}=e,[v,y]=(0,o.useState)(!0),A=(0,o.useRef)(),b=(0,o.useMemo)(()=>x||(0,d.rZ)(h)||"plaintext",[x,h]),S=(0,o.useMemo)(()=>m||(0,d.rZ)(p)||"plaintext",[m,p]),w=(0,o.useMemo)(()=>{var e;return e={renderSideBySide:v},{...structuredClone(c),...e}},[v]),C=(0,o.useCallback)(e=>{A.current=e},[]);return(0,o.useEffect)(()=>()=>{var e;null==(e=A.current)||e.setModel(null)},[]),(0,r.jsxs)("div",{className:(0,a.A)("monaco-component","diff-viewer","diff-viewer-CczjmT",f&&"embed-VNMDA8",t),style:n,children:[j&&(0,r.jsxs)("div",{className:"header-VBdMD0",children:[(0,r.jsx)("div",{children:(0,d.WP)(h)}),(0,r.jsx)("div",{style:{flex:1}}),(0,r.jsx)("div",{children:(0,r.jsx)(s.A,{className:"text-Pi6YdN",title:"side-by-side",checked:v,onChange:e=>{y(e.target.checked)},children:"side-by-side"})})]}),(0,r.jsx)("div",{className:(0,a.A)("content-BsfSuD","editor-wrap"),children:(0,r.jsx)(i.zC,{theme:g?"vs-light":"vs-dark",originalLanguage:b,modifiedLanguage:S,original:l,modified:u,width:"100%",options:w,onMount:C})})]})}},79763:function(e,t,n){n.d(t,{PE:()=>G,zW:()=>T.zW}),n(41257);var l=n(5709);n(42868),n(31465),n(97255),n(10142);var r=n(65723),i=n(22155),s=n(87855),a=n(75573),o=n(43928),d=n(362),c=n(63079),u=n(84585),h=n(41495),p=n(128),x=n(8879),m=n(98369),f=n(31448),g=n(46941),j=n(56108),v=n(11728);let y=()=>{let[e,t]=(0,i.useState)(""),[n,l]=(0,i.useState)([]);return((0,i.useEffect)(()=>{(0,p.fetchManifest)().then(e=>{let{name:n,series:r}=e;n&&t(n),r&&r.length>0&&l(r)})},[]),e.length<=0||n.length<=0)?(0,r.jsx)(r.Fragment,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.A,{type:"vertical",style:{margin:"0 24px"}}),(0,r.jsxs)(m.A,{children:[(0,r.jsx)(v.A,{style:{fontSize:"18px"},component:j.A}),(0,r.jsx)(f.A,{children:"Compiler"}),(0,r.jsx)(g.A,{className:"builder-selector",defaultValue:e,bordered:!1,style:{minWidth:100},onChange:e=>{let t=n.find(t=>t.name===e);t&&(t.origin?location.href=(0,p.changeOrigin)(t.origin):console.error("No RsdoctorManifestSeriesData.origin"))},children:n.map((e,t)=>(0,r.jsx)(g.A.Option,{value:e.name,className:"builder-selector-option-item",children:e.name},t))})]})]})};var A=n(7418),b=n(15078),S=n(89033),w=n(78364),C=n(13158),k=n(83397),M=n(4351),z=n(61323),N=n(18919),T=n(70054);let P=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,r.jsx)("rect",{width:12,height:9.333,x:.396,y:.167,fill:"#0079FF",rx:1}),(0,r.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M3.563 3.5c.276 0 .5.214.5.478v3.044a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478V3.978a.49.49 0 0 1 .5-.478M6.396 1.833c.276 0 .5.214.5.479v4.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-4.71a.49.49 0 0 1 .5-.479M9.23 4.833c.275 0 .5.214.5.479v1.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-1.71a.49.49 0 0 1 .5-.479",clipRule:"evenodd"}),(0,r.jsx)("rect",{width:6,height:1.333,x:3.396,y:10.5,fill:"#0079FF",fillOpacity:.5,rx:.667})]}),R=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,r.jsx)("rect",{width:12,height:9.333,x:.396,y:.167,fill:"#0079FF",rx:1}),(0,r.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M4.023 6.212 2.676 5.014l1.347-1.199M8.752 6.212l1.347-1.198-1.347-1.199M5.742 7.014l1.362-4"}),(0,r.jsx)("rect",{width:6,height:1.333,x:3.396,y:10.5,fill:"#0079FF",fillOpacity:.5,rx:.667})]}),E=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,r.jsx)("path",{fill:"#0079FF",fillRule:"evenodd",d:"M6.329.788A1 1 0 0 0 5.35.8L.466 3.62l5.36 2.83 5.327-3.044zm-.993 12.777V7.322L.063 4.54v5.404a1 1 0 0 0 .5.866z",clipRule:"evenodd"}),(0,r.jsx)("path",{fill:"#0079FF",fillOpacity:.5,fillRule:"evenodd",d:"M5.354.8H5.35L.546 3.576l.017-.01L5.336.81zm-.018 12.765V7.322L.063 4.54l5.273 2.783zm1-6.254 5.265-3.009q.009.064.009.13v5.511a1 1 0 0 1-.5.866l-4.774 2.756z",clipRule:"evenodd"})]});var O=n(85892);let D="Compile Analysis",L={overall:(0,r.jsx)(e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,r.jsx)("rect",{width:12,height:9.333,x:.615,y:.167,fill:"#5E6673",rx:1}),(0,r.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M3.781 3.5c.277 0 .5.214.5.478v3.044a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478V3.978a.49.49 0 0 1 .5-.478M6.615 1.833c.276 0 .5.214.5.479v4.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-4.71a.49.49 0 0 1 .5-.479M9.448 4.833c.276 0 .5.214.5.479v1.71a.49.49 0 0 1-.5.478.49.49 0 0 1-.5-.478v-1.71a.49.49 0 0 1 .5-.479",clipRule:"evenodd"}),(0,r.jsx)("rect",{width:6,height:1.333,x:3.615,y:10.5,fill:"#5E6673",fillOpacity:.5,rx:.667})]}),{}),webpack:(0,r.jsx)(e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:12,fill:"none",viewBox:"0 0 13 12",...e,children:[(0,r.jsx)("rect",{width:12,height:9.333,x:.615,y:.167,fill:"#5E6673",rx:1}),(0,r.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M4.241 6.212 2.895 5.014 4.24 3.815M8.97 6.212l1.347-1.198-1.346-1.199M5.96 7.014l1.363-4"}),(0,r.jsx)("rect",{width:6,height:1.333,x:3.615,y:10.5,fill:"#5E6673",fillOpacity:.5,rx:.667})]}),{}),bundle:(0,r.jsx)(e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:14,fill:"none",viewBox:"0 0 12 14",...e,children:[(0,r.jsx)("path",{fill:"#5E6673",fillRule:"evenodd",d:"M6.44.672a1 1 0 0 0-.977.013L.578 3.505l5.36 2.83 5.327-3.044zm-.992 12.777V7.206L.175 4.423v5.404a1 1 0 0 0 .5.866z",clipRule:"evenodd"}),(0,r.jsx)("path",{fill:"#5E6673",fillOpacity:.5,fillRule:"evenodd",d:"m5.466.683-.003.002L.658 3.459l.017-.01L5.448.693zM5.448 13.45V7.206L.175 4.423l5.273 2.783zm1-6.254 5.265-3.009q.009.064.009.13v5.511a1 1 0 0 1-.5.866L6.448 13.45z",clipRule:"evenodd"})]}),{})},_=(0,T.eN)({api:k.SDK.ServerAPI.API.GetClientRoutes,responsePropName:"routes",Component:e=>{let{t}=(0,p.useI18n)(),{pathname:n}=(0,z.zy)(),l=(0,z.Zp)(),[s,a]=(0,i.useState)(L),{routes:d}=e,c=(0,p.getEnableRoutesFromUrlQuery)(),u=d&&d.length>0?d:c||[];(0,i.useEffect)(()=>{n.includes("webpack")?a({...L,webpack:(0,r.jsx)(R,{})}):n.includes("overall")||"/"===n?a({...L,overall:(0,r.jsx)(P,{})}):n.includes("bundle")&&a({...L,bundle:(0,r.jsx)(E,{})})},[n]);let h={color:"rgba(96, 102, 114)"},x=[];u.includes(k.Manifest.RsdoctorManifestClientRoutes.Overall)&&x.push({label:t(N.U),key:N.w,icon:s.overall,children:[],onTitleClick(e){l(e.key)}}),(0,p.hasCompile)(u)&&x.push({label:t(D),key:D,icon:s.webpack,children:[u.includes(k.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders)&&{label:t(O.pI.UU),key:O.pI.wE,icon:(0,r.jsx)(A.A,{style:h})},u.includes(k.Manifest.RsdoctorManifestClientRoutes.WebpackLoaders)&&{label:t(O.hK.UU),key:O.hK.wE,icon:(0,r.jsx)(b.A,{style:h})},u.includes(k.Manifest.RsdoctorManifestClientRoutes.ModuleResolve)&&{label:t(O.dn.UU),key:O.dn.wE,icon:(0,r.jsx)(S.A,{style:h})},u.includes(k.Manifest.RsdoctorManifestClientRoutes.WebpackPlugins)&&{label:t(O.FO.UU),key:O.FO.wE,icon:(0,r.jsx)(w.A,{style:h})}].filter(e=>!!e)}),(0,p.hasBundle)(u)&&x.push({label:t(O._y.UU),key:O._y.UU,icon:s.bundle,children:[],onTitleClick(){l(O._y.wE)}});let m=(0,r.jsx)(M.A,{items:x,mode:"horizontal",onClick:e=>{e.keyPath.includes("builder-switcher")||l(e.key)},overflowedIndicator:(0,r.jsx)(C.A,{}),style:{height:o.or.NavBarHeight,lineHeight:`${o.or.NavBarHeight}px`,minWidth:0,justifyContent:"flex-end",...e.style},selectedKeys:["/"===n?N.w:n]},u.join(""));return(0,r.jsx)("div",{style:{marginLeft:"30px"},children:m})},fallbackComponent:()=>null,showSkeleton:!1}),B=e=>{let{enableRoutes:t}=e,{i18n:n}=(0,p.useI18n)(),i=(0,z.Zp)(),{isLight:a}=(0,p.useTheme)(),x=[{value:o.TM.Cn,label:"中文"},{value:o.TM.En,label:"English"}];return(0,r.jsx)(s.A.Header,{style:{height:o.or.NavBarHeight,padding:0,paddingLeft:o.or.BasePadding,paddingRight:o.or.BasePadding,position:"fixed",zIndex:999,width:"100%",backgroundColor:a?"#fff":"#141414",transition:"none"},children:(0,r.jsxs)(c.A,{justify:"space-between",align:"middle",style:{height:o.or.NavBarHeight},wrap:!1,children:[(0,r.jsx)(u.A,{style:{height:o.or.NavBarHeight,lineHeight:`${o.or.NavBarHeight+2}px`},children:(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:"100%"},children:[(0,r.jsx)("img",{src:"https://assets.rspack.rs/rsdoctor/rsdoctor-title-logo.png",className:"rsdoctor-logo",alt:"logo",onClick:()=>{location.hash.includes(k.Client.RsdoctorClientRoutes.Uploader)&&location.pathname.includes("/preview")?location.href="http://rsdoctor.rs":i(k.Client.RsdoctorClientRoutes.Home)}}),(0,r.jsx)(y,{})]})}),(0,r.jsx)(_,{style:{transition:"none"}},t?JSON.stringify(t):"default"),(0,r.jsx)(u.A,{flex:1,children:(0,r.jsxs)(c.A,{align:"middle",justify:"end",style:{height:o.or.NavBarHeight},wrap:!1,gutter:[o.or.BasePadding/3,0],children:[(0,r.jsx)(u.A,{children:(0,r.jsx)(l.EJ,{})}),(0,r.jsx)(u.A,{children:(0,r.jsx)(h.A,{overlayStyle:{zIndex:1e3},menu:{items:x.map(e=>({label:e.label,key:e.value,onClick(){n.changeLanguage(e.value)}})),selectedKeys:[n.language]},children:(0,r.jsx)(d.A,{className:"header-icon",style:{display:"inline-block",fontSize:20,textAlign:"center",verticalAlign:"middle",cursor:"pointer",width:30,transition:"all 0.3s ease"}})})})]})})]})})};var I=n(6048);let F=(0,T.eN)({api:k.SDK.ServerAPI.APIExtends.GetCompileProgress,responsePropName:"progress",Component:e=>{let{progress:t}=e;if(!t)return null;let{percentage:n=1,message:l}=t;if(n>=1)return null;let i=+(100*n).toFixed(1);return(0,r.jsx)(c.A,{wrap:!0,style:{width:"100%",position:"fixed",top:o.or.NavBarHeight,left:1,zIndex:99},children:(0,r.jsx)(u.A,{span:Math.min(Math.floor(24*n),24),children:(0,r.jsx)(I.A,{percent:100,status:"active",size:"small",format:()=>(0,r.jsx)(f.A.Text,{style:{fontSize:12},type:"secondary",children:`${i}% ${l}`})})})})},fallbackComponent:()=>null,showSkeleton:!1});var $=n(41595);let G=e=>{let t=(0,p.useLocale)(),{i18n:n}=(0,p.useI18n)(),{children:l}=e,d=(0,p.useUrlQuery)(),[c,u]=(0,i.useState)(()=>(0,p.getEnableRoutesFromUrlQuery)()||void 0);(0,i.useEffect)(()=>{let e=t;if(!(0,p.getFirstVisitFromStorage)()){(0,p.setFirstVisitToStorage)("1");let t=window.navigator.language.split("-")[0],n=(0,p.getLanguage)(t);Object.values(o.TM).includes(n)&&(e=n)}n.language!==e&&n.changeLanguage(e)},[t]),(0,i.useEffect)(()=>{u((0,p.getEnableRoutesFromUrlQuery)()||void 0)},[d]);let h=(0,i.useContext)($.Q);return(0,r.jsxs)(s.A,{children:[h.embedded?null:(0,r.jsx)(B,{enableRoutes:c}),(0,r.jsx)(F,{}),(0,r.jsxs)(s.A.Content,{style:{height:"100%",minHeight:"100vh",padding:o.or.BasePadding,marginTop:h.embedded?0:o.or.NavBarHeight,background:""},children:[l,(0,r.jsx)(a.A.BackTop,{})]})]})};n(22185),n(1361)},41595:function(e,t,n){n.d(t,{Q:()=>a,s:()=>s});var l=n(22155),r=n(75302),i=n(43928);let s={locale:(0,r.U)(),theme:(0,r.DT)(),pageState:i.jK.Pending,viewMode:(0,r.oi)(),json:{},setTheme(){},setManifest(){},setPageState(e){},setViewMode(){}},a=(0,l.createContext)({...s})},43928:function(e,t,n){n.d(t,{Q1:()=>f,Sx:()=>c,TM:()=>x,Y7:()=>g,jK:()=>u,nE:()=>p,nl:()=>h,or:()=>m});var l,r,i,s,a,o,d,c=((l={}).Light="light",l.Dark="dark",l),u=((r={})[r.Success=0]="Success",r[r.Pending=1]="Pending",r[r.Fail=2]="Fail",r),h=((i={})[i.Success=0]="Success",i[i.Pending=1]="Pending",i[i.Updating=2]="Updating",i[i.Fail=3]="Fail",i),p=((s={}).List="list",s.Group="group",s),x=((a={}).Cn="cn",a.En="en",a),m=((o={})[o.BasePadding=20]="BasePadding",o[o.BaseBorderRadius=8]="BaseBorderRadius",o[o.NavBarHeight=54]="NavBarHeight",o),f=((d={}).Red="#e17055",d.Green="#52c41a",d.Yellow="#faad14",d.Blue="#1677ff",d);let g="undefined"==typeof window?0:.85*window.innerWidth>=1100?.85*window.innerWidth:1100},87665:function(e,t,n){n.d(t,{i5:()=>Q});var l=n(65723),r=n(44830),i=n(85189),s=n(49026),a=n(83397),o=n(95587),d=n(81489),c=n(28342),u=n(20772),h=n(31448),p=n(98369),x=n(26316),m=n(8879),f=n(64801),g=n(63079),j=n(84585),v=n(31786),y=n(15133),A=n(20317),b=n(13078),S=n(22155),w=n(31465),C=n(42868),k=n(10142),M=n(72854),z=n(70054),N=n(1361),T=n(43928),P=n(128),R=n(84141),E=n(3930),O=n(89405);let{DirectoryTree:D}=o.A,L=[],_={margin:"none",marginInlineEnd:0},B=()=>(0,l.jsx)(d.A,{description:`Do not have the module code.
|
|
5
5
|
(1) If you use the brief mode, there will not have any codes to show.
|
|
6
|
-
(2) If you use lite mode, there will not have source codes.`}),I=e=>{let{data:t}=e,[n,i]=(0,S.useState)(""),{t:s}=(0,P.useI18n)(),o={source:"Source Code",transformed:`Transformed Code(${s("After Compile")})`,parsedSource:`Bundled Code(${s("After Bundled")})`};if(!t)return null;let{path:d}=t;return(0,l.jsx)(z.hX,{text:"",buttonProps:{size:"small",icon:(0,l.jsx)(c.A,{content:"Open the Codes Box",children:(0,l.jsx)(r.A,{})}),type:"default"},buttonStyle:{padding:"0 4px"},drawerProps:{destroyOnClose:!0,title:`Code of "${d}"`},children:(0,l.jsx)(N.zW,{api:a.SDK.ServerAPI.API.GetModuleCodeByModuleId,body:{moduleId:t.id},children:e=>(0,l.jsx)(l.Fragment,{children:e.source||e.parsedSource||e.transformed?(0,l.jsx)(u.A,{className:"code-size-card",style:{width:"100%"},tabList:Object.keys((0,y.z)(e,e=>!e)).map(e=>({tab:e})).map(e=>({...e,tab:o[e.tab],key:e.tab})),defaultActiveTabKey:e.parsedSource?"parsedSource":"source",onTabChange:e=>i(e),tabBarExtraContent:(0,l.jsx)(c.A,{placement:"bottom",title:(0,l.jsx)(h.A.Title,{level:5,children:"Explain"}),content:(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",marginBottom:30},children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(h.A.Text,{strong:!0,children:"Source: "}),(0,l.jsx)(h.A.Text,{children:"source code"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(h.A.Text,{strong:!0,children:"Transformed:"}),(0,l.jsx)(h.A.Text,{children:"Transformed Code (After compile)"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(h.A.Text,{strong:!0,children:"Bundled Source:"}),(0,l.jsx)(h.A.Text,{children:"Bundled Code (After bundle and tree-shaking)"})]}),(0,l.jsx)("br",{}),(0,l.jsx)(h.A.Text,{strong:!0,children:"More"}),(0,l.jsx)(h.A.Text,{children:s("CodeModeExplain")})]})}),trigger:"hover",children:(0,l.jsx)("a",{href:"#",children:"Explain"})}),styles:{body:{padding:0,overflow:"hidden"}},children:e.parsedSource||e.source||e.transformed?(0,l.jsx)(w.Cv,{isEmbed:!0,code:n?e[n]:e.parsedSource?e.parsedSource:e.source,filePath:d}):(0,l.jsx)(B,{})}):(0,l.jsx)(B,{})})})})},F=e=>{let{id:t,show:n,setShow:r,cwd:i}=e;return t?(0,l.jsx)(N.zW,{api:a.SDK.ServerAPI.API.GetAllModuleGraph,body:{},children:e=>(0,l.jsx)(R.u,{cwd:i,moduleId:t,modules:e,show:n,setShow:r})}):null},$="__RESOURCEPATH__",G=e=>{let{modules:t,chunks:n,filteredModules:r}=e,{sourceSize:s,parsedSize:a,filteredParsedSize:o,filteredSourceSize:d}=(0,S.useMemo)(()=>({sourceSize:(0,A.x)(t,e=>e.size.sourceSize),parsedSize:(0,A.x)(t,e=>e.size.parsedSize),filteredSourceSize:(0,A.x)(r,e=>e.size.sourceSize),filteredParsedSize:(0,A.x)(r,e=>e.size.parsedSize)}),[t,r]);return(0,l.jsxs)(p.A,{children:[(0,l.jsx)(x.A,{title:`total modules count is ${t.length}, the filtered modules count is ${r.length}`,children:(0,l.jsxs)(p.A,{children:[(0,l.jsxs)(h.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules: ",r.length," / ",t.length]}),(0,l.jsx)(i.A,{})]})}),(0,l.jsx)(m.A,{type:"vertical"}),(0,l.jsx)(x.A,{title:(0,l.jsxs)(p.A,{direction:"vertical",children:[(0,l.jsxs)(h.A.Text,{style:{color:"inherit"},children:["Total modules bundled size: ",(0,P.formatSize)(a)]}),(0,l.jsxs)(h.A.Text,{style:{color:"inherit"},children:["Total modules source size: ",(0,P.formatSize)(s)]}),(0,l.jsxs)(h.A.Text,{style:{color:"inherit"},children:["Filtered modules bundled size: ",(0,P.formatSize)(o)]}),(0,l.jsxs)(h.A.Text,{style:{color:"inherit"},children:["Filtered modules source size: ",(0,P.formatSize)(d)]})]}),children:(0,l.jsxs)(p.A,{children:[(0,l.jsxs)(h.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules Size:",o===a?(0,P.formatSize)(a):`${(0,P.formatSize)(o)} / ${(0,P.formatSize)(a)}`]}),(0,l.jsx)(i.A,{})]})}),(0,l.jsx)(m.A,{type:"vertical"}),(0,l.jsx)(x.A,{title:(0,l.jsxs)(p.A,{direction:"vertical",children:[(0,l.jsxs)(h.A.Text,{style:{color:"inherit"},children:["this asset includes ",n.length," chunks:"]}),n.map(e=>(0,l.jsx)(C.Ex,{label:"chunk",value:e.name},e.name))]}),children:(0,l.jsxs)(p.A,{children:[(0,l.jsxs)(h.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Chunks: ",n.length]}),(0,l.jsx)(i.A,{})]})})]})},W=e=>{let{moduleCount:t}=e;return(0,l.jsx)(x.A,{title:(0,l.jsx)(p.A,{children:(0,l.jsxs)(h.A.Text,{style:{color:"inherit"},children:["This is a concatenated container module that includes ",t," ","modules"]})}),children:(0,l.jsx)(f.A,{color:"blue",style:_,children:"concatenated container"})})},H=e=>{let{size:t}=e;return(0,l.jsx)(x.A,{title:(0,l.jsx)(p.A,{children:(0,l.jsx)(h.A.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,l.jsx)(f.A,{style:_,color:"geekblue",children:`bundled size: ${(0,P.formatSize)(t)}`})})},V=e=>{let{size:t}=e;return(0,l.jsx)(x.A,{title:(0,l.jsx)(p.A,{children:(0,l.jsx)(h.A.Text,{style:{color:"inherit"},children:"The final output size of this file. If you enabled minification, this value shows the minified size."})}),children:(0,l.jsx)(f.A,{color:"geekblue",children:`bundled size: ${(0,P.formatSize)(t)}`})})},U=e=>{let{size:t}=e;return(0,l.jsx)(x.A,{title:(0,l.jsx)(p.A,{children:(0,l.jsx)(h.A.Text,{style:{color:"inherit"},children:"The compressed file size that users actually download, as most web servers use gzip compression."})}),children:(0,l.jsx)(f.A,{color:"orange",children:`gzipped: ${(0,P.formatSize)(t)}`})})},K=e=>{let{size:t}=e;return(0,l.jsx)(x.A,{title:(0,l.jsx)(p.A,{children:(0,l.jsx)(h.A.Text,{style:{color:"inherit"},children:"The total original size of all the files in this folder, before any transformations and minification."})}),children:(0,l.jsx)(f.A,{style:_,color:"cyan",children:`source size: ${(0,P.formatSize)(t)}`})})},q=e=>{let{size:t}=e;return(0,l.jsx)(x.A,{title:(0,l.jsx)(p.A,{children:(0,l.jsx)(h.A.Text,{style:{color:"inherit"},children:"The original size of this file, before any transformations and minification."})}),children:(0,l.jsx)(f.A,{color:"cyan",children:`source size: ${(0,P.formatSize)(t)}`})})},Q=e=>{let{asset:t,chunks:n,modules:r,moduleSizeLimit:i,height:o,root:y}=e,[w,C]=(0,S.useState)(""),[N,z]=(0,S.useState)(!1),[R,_]=(0,S.useState)([]),[B,Q]=(0,S.useState)(!1),J=(0,S.useMemo)(()=>{let e=r.slice();if(w){let t=RegExp(w,"i");e=e.filter(e=>t.test(e.path))}return i&&(e=e.filter(e=>e.size.parsedSize>=i)),e},[r,w,i]),Z=(0,S.useMemo)(()=>(0,P.createFileStructures)({files:J.map(e=>e.path).filter(Boolean),inlinedResourcePathKey:$,fileTitle(e,t){var n;let i=J.find(t=>t.path===e);if(!i)return t;let{parsedSize:s=0,sourceSize:o=0,gzipSize:d=0}=i.size,u=i.kind===a.SDK.ModuleKind.Concatenation,g=!u&&0===s&&r.filter(e=>e!==i&&e.modules&&e.modules.indexOf(i.id)>-1);return(0,l.jsxs)("div",{className:O.A["bundle-tree"],children:[(0,l.jsx)(c.A,{content:`Open the ${t}’s module reasons tree.`,placement:"bottom",children:(0,l.jsxs)("div",{className:O.A.box,onClick:()=>{_([i.id]),Q(!0)},children:[(0,l.jsx)("div",{className:O.A.keywords,children:(0,l.jsx)(M.i,{ellipsis:!0,text:t,keyword:""})}),(0,l.jsx)("div",{className:O.A.dividerDiv,children:(0,l.jsx)(m.A,{className:O.A.divider,dashed:!0})})]})}),(0,l.jsxs)(p.A,{children:[0!==s?(0,l.jsx)(l.Fragment,{children:"number"==typeof d?(0,l.jsx)(c.A,{placement:"bottom",content:(0,l.jsx)(q,{size:o}),children:(0,l.jsxs)(p.A,{direction:"horizontal",children:[(0,l.jsx)(V,{size:s}),(0,l.jsx)(U,{size:d})]})}):(0,l.jsxs)(p.A,{direction:"horizontal",children:[(0,l.jsx)(V,{size:s}),(0,l.jsx)(q,{size:o})]})}):0!==o?(0,l.jsx)(q,{size:o}):null,u?(0,l.jsx)(W,{moduleCount:(null==(n=i.modules)?void 0:n.length)||0}):null,g&&g.length?(0,l.jsx)(x.A,{title:(0,l.jsxs)(p.A,{direction:"vertical",children:[(0,l.jsx)(h.A.Text,{style:{color:"inherit"},children:"This module is concatenated into another container module:"}),g.map(e=>{let{id:t,path:n}=e;if((0,P.isJsDataUrl)(n))return(0,l.jsx)(h.A.Paragraph,{ellipsis:{rows:4},style:{color:"inherit",maxWidth:"100%"},code:!0,children:n},t);let r=(0,b.relative)((0,b.dirname)(i.path),n);return r.startsWith("javascript;charset=utf-8;base64,")?(0,l.jsx)(h.A.Text,{style:{color:"inherit",maxWidth:"100%"},code:!0,children:"."===r[0]?r:`./${r}`},t):(0,l.jsx)(h.A.Text,{style:{color:"inherit"},code:!0,children:"."===r[0]?r:`./${r}`},t)})]}),children:(0,l.jsx)(f.A,{color:"green",children:"concatenated"})}):null,(0,l.jsx)(I,{data:i})]})]})},dirTitle(e,t){let n=function e(t,n){return t.children&&t.children.forEach(t=>{t.isLeaf?n.push(t[$]):e(t,n)}),n}(e,[]);if(n.length){let e=n.map(e=>r.find(t=>t.path===e)),i=(0,A.x)(e,e=>{var t;return(null==(t=e.size)?void 0:t.parsedSize)||0}),s=(0,A.x)(e,e=>{var t;return(null==(t=e.size)?void 0:t.sourceSize)||0});return(0,l.jsxs)("div",{className:O.A["bundle-tree"],children:[(0,l.jsxs)("div",{className:O.A.box,children:[(0,l.jsx)("div",{className:O.A.keywords,children:(0,l.jsx)(M.i,{ellipsis:!0,text:t,keyword:""})}),(0,l.jsx)("div",{className:O.A.dividerDiv,children:(0,l.jsx)(m.A,{className:O.A.divider,dashed:!0})})]}),(0,l.jsx)(p.A,{children:i>0?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(H,{size:i}),(0,l.jsx)(K,{size:s})]}):(0,l.jsx)(K,{size:s})})]})}return t},page:"bundle"}),[J]);return(0,S.useEffect)(()=>{C(""),z(!1)},[t]),(0,S.useEffect)(()=>{z(!1)},[w]),(0,l.jsx)(E.C.Provider,{value:{moduleJumpList:R,setModuleJumpList:_},children:(0,l.jsxs)(u.A,{className:O.A.bundle,title:`Modules of "${t.path}"`,bodyStyle:{minHeight:o},size:"small",children:[r.length?(0,l.jsxs)(g.A,{children:[(0,l.jsx)(j.A,{span:24,children:(0,l.jsx)(G,{modules:r,chunks:n,filteredModules:J})}),(0,l.jsx)(j.A,{span:24,children:(0,l.jsxs)(p.A,{children:[(0,l.jsx)(k.E,{placeholder:"search module by keyword",onChange:e=>C(e)},t.path),(0,l.jsx)(v.Ay,{onClick:()=>z(!0),size:"small",icon:(0,l.jsx)(s.A,{})})]})}),(0,l.jsx)(j.A,{span:24,style:{marginTop:T.or.BasePadding},children:J.length?(0,l.jsx)(D,{selectable:!1,defaultExpandAll:N||J.length<=20,onExpand:e=>{L=e},defaultExpandParent:!0,defaultExpandedKeys:(null==L?void 0:L.length)?L:1===Z.length?[Z[0].key]:[],treeData:Z,rootStyle:{maxHeight:"500px",overflow:"auto",border:"1px solid rgba(235, 237, 241)",padding:"14px 20px"}},`tree_${w}_${N}_${t.path}`):(0,l.jsx)(d.A,{description:(0,l.jsx)(h.A.Text,{strong:!0,children:`"${w}" can't match any modules`})})})]}):(0,l.jsx)(d.A,{description:(0,l.jsx)(h.A.Text,{strong:!0,children:`"${t.path}" doesn't have any modules`})}),(0,l.jsx)(F,{id:(null==R?void 0:R.length)?R[R.length-1]:"",show:B,setShow:Q,cwd:y})]})})}},35410:function(e,t,n){n.d(t,{k:()=>O});var l=n(65723),r=n(22155),i=n(95587),s=n(88415),a=n(95154),o=n(28695),d=n(8879),c=n(83397),u=n(37622),h=n(59531),p=n(79740),x=n(128),m=n(49249),f=n(98369),g=n(6048),j=n(81489),v=n(20317),y=n(1361),A=n(22185),b=n(70054);let S="dataContainer-lJ0PuO",w="title-Gj8JxL",C="description-miJCbD",{DirectoryTree:k}=i.A,M=e=>{let{files:t,total:n,showProgress:i=!1,type:s}=e,a=s.toLocaleLowerCase(),o=(0,r.useMemo)(()=>(0,v.x)(t,e=>e.size),[t]);return(0,l.jsx)(b.zW,{api:c.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let r=a.includes("image")?"imgs":a,{treeData:s}=(0,A.oc)(e[r].total);return(0,l.jsxs)(f.A,{style:{height:100},align:"center",children:[(0,l.jsx)(g.A,{type:"circle",percent:+(o/n*100).toFixed(2),strokeColor:{"0%":"#108ee9","100%":"#108ee9"},strokeWidth:12,format:e=>(0,l.jsxs)("div",{className:"percentContainer-VJxs6L",children:[(0,l.jsxs)("span",{style:{marginTop:"10px"},children:[e,"%"]}),(0,l.jsxs)("span",{className:"percentDescription-ymSkb_",children:["total ",r]})]})}),(0,l.jsxs)("div",{style:{marginLeft:"10px"},children:[(0,l.jsxs)("div",{className:S,children:[(0,l.jsx)("div",{className:w,children:"Size"}),(0,l.jsx)("div",{className:C,children:(0,x.formatSize)(o)})]}),(0,l.jsx)(y.hX,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},drawerProps:{title:"Files"},text:(0,l.jsx)(f.A,{style:{textAlign:i?"left":"center"},align:"end",children:(0,l.jsx)(f.A,{direction:"vertical",children:(0,l.jsx)("div",{className:S,children:(0,l.jsxs)("div",{className:w,children:[(0,l.jsx)("span",{style:{marginRight:"5px"},children:"Files"}),(0,l.jsx)(u.A,{})]})})})}),children:s.length?(0,l.jsx)(k,{defaultExpandAll:!0,selectable:!1,treeData:s,rootStyle:{minHeight:"800px",border:"1px solid rgba(235, 237, 241)"}}):(0,l.jsx)("div",{style:{position:"relative",top:"50%",transform:"translateY(-50%)"},children:(0,l.jsx)(j.A,{style:{height:"100%"}})})}),(0,l.jsx)("div",{className:C,children:t.length})]})]})}})};var N=n(83819);let{DirectoryTree:z}=i.A,{useToken:T}=s.A,{innerWidth:P}=window,R=e=>{let{showProgress:t=!1,data:n,total:r,tagBgColor:i,type:s}=e,{token:a}=T(),o=i||a.colorPrimaryBorderHover;return(0,l.jsx)(M,{type:s,files:n.files,total:r,showProgress:t,tagBgColor:o})},E=e=>{let{titles:t,datas:n,bgColor:i,type:s}=e,[o,d]=(0,r.useState)(t[0]),c=(0,r.useMemo)(()=>t.indexOf(o),[t,o]),u=c>=0?c:0,h=s||o||t[0],p=u>=0&&u<n.length?n[u]:n[0]||{};return(0,l.jsx)(m.j,{title:(0,l.jsxs)("div",{className:"cardTitle-xNmEfV",children:[(0,l.jsx)("div",{className:"title-qIR7dd",children:h}),t.length>1?(0,l.jsx)(a.A,{defaultValue:t[0],options:t,onChange:e=>{d(e)},size:"small",style:{transition:"transform 0.3s ease"},value:o}):null]}),value:(0,l.jsx)(R,{type:h,...p,tagBgColor:null==i?void 0:i.tagBgColor}),boxProps:{style:{background:null==i?void 0:i.bgColor,width:P>1300?"80%":"95%"}}})},O=e=>{let{errors:t,summary:n}=e,r=(0,x.useDuplicatePackagesByErrors)(t),[i,s]=(0,x.formatSize)(n.all.total.size).split(" "),a=[(0,l.jsx)(E,{type:"JS",titles:["Total","Initial"],datas:[{data:n.js.total,total:n.all.total.size,showProgress:!0},{data:n.js.initial,total:n.all.total.size,showProgress:!0}]}),(0,l.jsx)(E,{type:"CSS",titles:["Total","Initial"],datas:[{data:n.css.total,total:n.all.total.size,showProgress:!0},{data:n.css.initial,total:n.all.total.size,showProgress:!0}]}),(0,l.jsx)(E,{titles:["Images","Fonts","Media"],datas:[{data:n.imgs.total,total:n.all.total.size,showProgress:!0},{data:n.fonts.total,total:n.all.total.size,showProgress:!0},{data:n.media.total,total:n.all.total.size,showProgress:!0}]}),(0,l.jsx)(E,{type:"HTML",titles:["HTML Files"],datas:[{data:n.html.total,total:n.all.total.size,showProgress:!0}]})];return(0,l.jsx)(b.zW,{api:c.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let{treeData:t}=(0,A.oc)(e.all.total);return(0,l.jsxs)("div",{className:"container-wODg_6",children:[(0,l.jsxs)("div",{className:"summary-zj0ygd",children:[(0,l.jsx)(N.h,{title:(0,l.jsx)(y.hX,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},drawerProps:{title:"Files"},text:(0,l.jsxs)("div",{style:{color:"#000000a6"},children:[(0,l.jsx)("span",{style:{marginRight:"5px"},children:"Total Files"}),(0,l.jsx)(u.A,{})]}),children:(0,l.jsx)(z,{defaultExpandAll:!0,selectable:!1,treeData:t,rootStyle:{minHeight:"800px",border:"1px solid rgba(235, 237, 241)"}})}),description:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"description-o0ffpO",children:i}),(0,l.jsx)("span",{className:"unit-n5Yty6",children:s}),(0,l.jsxs)("div",{className:"totalNumber-UweUl8",children:[(0,l.jsx)("span",{style:{marginRight:"7px"},children:"Number of files"}),(0,l.jsx)("span",{style:{fontWeight:500},children:n.all.total.count})]})]}),icon:(0,l.jsx)(o.A,{style:{background:"#3874F6"},shape:"circle",icon:(0,l.jsx)(h.A,{style:{fontSize:"18px"}})}),style:{marginBottom:"12px",minWidth:"210px"}}),(0,l.jsx)(N.h,{style:{minWidth:"210px"},title:(0,l.jsx)("div",{style:{margin:"4px 0"},children:(0,l.jsx)("span",{style:{marginRight:"5px"},children:"Duplicate Packages"})}),description:r.length,icon:(0,l.jsx)(o.A,{style:{background:"#13C2C2"},shape:"circle",icon:(0,l.jsx)(p.A,{style:{fontSize:"18px"}})})})]}),(0,l.jsx)(d.A,{style:{height:"200px"},type:"vertical"}),(0,l.jsx)("div",{className:"chartsContainer-msRyOd",children:a.map((e,t)=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"chart-GmBMa_",children:e},t),t!==a.length-1?(0,l.jsx)(d.A,{style:{height:"200px"},type:"vertical"},`${t}-divider`):null]}))})]})}})}},89405:function(e,t,n){n.d(t,{A:()=>l});let l={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"}},14303:function(e,t,n){n.d(t,{s:()=>j});var l=n(65723),r=n(22155),i=n(98204),s=n(31786),a=n(92554),o=n(37080),d=n(81489),c=n(1836),u=n(64430),h=n(31448),p=n(79763),x=n(83397),m=n(89405),f=n(98426);let{Search:g}=i.A,j=e=>{let{onModuleClick:t,onClose:n,open:i,setOpen:c,isIcon:u=!1}=e,[h,j]=(0,r.useState)(!1),[y,A]=(0,r.useState)(""),[b,S]=(0,r.useState)(""),w=void 0!==i?i:h,C=c||j,k=(0,r.useCallback)(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[l,r]=t;A(l)},[]),M=()=>{C(!0)},N=()=>{C(!1),null==n||n()},z=()=>{C(!1),null==n||n()};return(0,l.jsxs)(l.Fragment,{children:[u?(0,l.jsx)(f.A,{onClick:M}):(0,l.jsx)(s.Ay,{className:m.A["search-btn"],color:"cyan",onClick:M,children:"Search Module"}),(0,l.jsx)(p.zW,{api:x.SDK.ServerAPI.API.GetSearchModules,body:{moduleName:String(y)},children:e=>{let r=Object.keys(e)[0];return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(a.A,{className:m.A.modal,title:"Search Modules",onOk:N,onCancel:z,open:w,width:"65rem",footer:"",children:[(0,l.jsx)(g,{placeholder:"input search module name",allowClear:!0,onSearch:k,style:{width:500}}),r?(0,l.jsx)(o.A,{defaultActiveKey:r,tabPosition:"top",onChange:e=>S(e),items:Object.keys(e).map((l,i)=>({label:e[l],key:l,children:v(y,b||r,e=>{null==t||t(e),C(!1),null==n||n()})}))}):(0,l.jsx)(d.A,{description:"No modules found."})]})})}})]})},v=(e,t,n)=>(0,l.jsx)(p.zW,{api:x.SDK.ServerAPI.API.GetSearchModuleInChunk,body:{moduleName:String(e),chunk:t},children:t=>(0,l.jsx)(l.Fragment,{children:(null==t?void 0:t.length)!==0?(0,l.jsx)(c.A,{className:m.A["search-modal-list"],loading:!t.length,itemLayout:"horizontal",pagination:{position:"bottom",align:"center"},dataSource:t,renderItem:t=>{let r=t.relativePath.split(e);return(0,l.jsx)(c.A.Item,{className:n?"search-list-item clickable":"search-list-item",onClick:n?()=>n(t):void 0,children:(0,l.jsx)(u.A,{avatar:!0,title:!1,loading:!t.path,active:!0,children:(0,l.jsx)(c.A.Item.Meta,{description:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(h.A.Text,{code:!0,children:"Module:"}),r.map((t,n)=>n<r.length-1?(0,l.jsxs)(h.A.Text,{style:{fontWeight:200},children:[t,(0,l.jsx)(h.A.Text,{strong:!0,style:{fontWeight:600},children:e},`${t}-${n}-strong`)]},`${t}-${n}`):(0,l.jsx)(h.A.Text,{style:{fontWeight:200},children:t}))]})},`${t.path}-${t.relativePath}-meta`)})},`${t.path}-${t.relativePath}`)}}):(0,l.jsx)(d.A,{})})})},3930:function(e,t,n){n.d(t,{C:()=>l});let l=(0,n(22155).createContext)({setModuleJumpList(e){},moduleJumpList:[]})},84141:function(e,t,n){n.d(t,{w:()=>L,u:()=>B});var l,r=n(65723),i=n(83397),s=n(81234),a=n(31448),o=n(20772),d=n(98369),c=n(28342),u=n(36147),h=n(63079),p=n(84585),x=n(22155),m=n(70054),f=n(128),g=n(3930),j=n(81489),v=n(64801),y=n(43928),A=n(82552),b=n(79002),S=n(32619),w=n(44644),C=n(96800);let k="file-tree-com",M=e=>{let{treeData:t,needJumpto:n=!1,defaultOpened:l=!1,defaultOpenFather:i=0}=e,{required:s,handlers:o}=(0,w.pk)({id:`${k}-tree`,data:t||[],defaultOpened:l,multipleSelect:!1,refreshAsyncNodes:!0}),u=(0,x.useCallback)(e=>{var t;let{node:l,onToggle:s}=e;i&&l.data.level<i&&l.setOpened(!0);let o=(0,C.C)(l.data.name);return(0,r.jsx)("div",{className:`${k}-titles-box`,children:(0,r.jsx)("div",{className:`${k}-titles`,children:(0,r.jsx)(d.A,{direction:"vertical",children:(0,r.jsx)("div",{className:`${k}-node-title`,children:(0,r.jsxs)(d.A,{children:[(0,r.jsx)("div",{onClick:s,children:(0,r.jsxs)(d.A,{children:[!l.options.opened&&(null==(t=l.data.children)?void 0:t.length)?(0,r.jsx)(A.A,{style:{color:"lightblue"}}):(0,r.jsx)(b.A,{style:{color:"lightblue"}}),o,(0,r.jsx)(c.A,{content:(0,r.jsx)(r.Fragment,{children:l.data.__RESOURCEPATH__?(0,r.jsx)(a.A.Text,{code:!0,children:l.data.__RESOURCEPATH__},`${l.data.name}-popover-path`):(0,r.jsx)(r.Fragment,{})}),title:"INFO",trigger:"hover",children:(0,r.jsx)(a.A.Text,{children:l.data.name})},`${l.data.name}popover`)]})}),(0,r.jsx)(d.A,{children:n&&(0,r.jsx)(g.C.Consumer,{children:e=>{let{moduleJumpList:t,setModuleJumpList:n}=e;return(0,r.jsx)(S.A,{onClick:()=>{let e=[...t];e.push(+l.id),n(e)}})}})})]})})})})},l.data.name)},[]);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(w.Ay,{...s,...o,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:u})})};i.Client.RsdoctorClientRoutes.ModuleAnalyze;let N="module-analyze";var z=n(32792);let T=(0,x.memo)(e=>{let{dependencies:t,cwd:n,module:l}=e,i=(0,x.useMemo)(()=>{let e=l.dependencies.map(e=>{let n=t.find(t=>t.id===e);if(n)return{__RESOURCEPATH__:n.resolvedRequest||"",id:n.dependency,key:n.resolvedRequest,name:(0,f.getShortPath)(n.resolvedRequest)||"",level:1,kind:n.kind,concatModules:void 0}});return z.AP.compact(e)},[l]);return(0,r.jsx)(h.A,{justify:"start",align:"middle",children:(0,r.jsx)(p.A,{span:24,children:i.length?(0,r.jsx)(M,{treeData:i,needJumpto:!0,cwd:n}):(0,r.jsx)(j.A,{})})})}),P=(e,t)=>{var n;if(null==e||null==(n=e.imported)?void 0:n.length){let n=e.imported.map(e=>t.find(t=>t.id===Number(e)));return z.AP.compact(n)}return[]},R=e=>{var t;let{curModule:n,modules:l,dependencies:i,cwd:s,activeTabKey:a,selectedChunk:o=""}=e,[d,u]=(0,x.useState)([]),{data:h}=(0,x.useMemo)(()=>d&&(null==d?void 0:d.length)?{data:z.AP.compact(null==d?void 0:d.map((e,t)=>({key:`0-${t}`,name:(0,f.getShortPath)(e.path),__RESOURCEPATH__:e.path,id:e.id,level:1,chunks:e.chunks,size:(0,f.formatSize)(e.size.parsedSize),kind:e.kind,concatModules:e.concatenationModules,fatherPath:(0,f.getShortPath)(n.path),dependencies:e.dependencies,getChildren:()=>(function e(t,n,l){let r=P(t,n);return null==r?void 0:r.map((r,i)=>({key:`0-${i}`,name:(0,f.getShortPath)(r.path),__RESOURCEPATH__:r.path,id:r.id,level:1,size:(0,f.formatSize)(r.size.parsedSize),kind:r.kind,chunks:r.chunks,concatModules:r.concatenationModules,fatherPath:(0,f.getShortPath)(l.path),dependencies:r.dependencies,getChildren:()=>e(r,n,t),children:r.imported}))})(e,l,n),children:e.imported})))}:{filterData:[],data:[]},[d,n]);return(0,x.useEffect)(()=>{u(P(n,l))},[n,l]),(0,r.jsx)(r.Fragment,{children:a===L[L.Reasons]?(0,r.jsx)(r.Fragment,{children:d?(0,r.jsx)(M,{cwd:s,treeData:h,needCode:!0,needShowAllTree:!0,needJumpto:!0,selectedChunk:o}):(0,r.jsx)(j.A,{className:`${N}-empty`})}):a===L[L.Dependencies]?(0,r.jsx)("div",{className:`${N}-file-tree`,style:{padding:y.or.BasePadding/2},children:(0,r.jsx)(p.A,{span:24,style:{marginTop:y.or.BasePadding/2},children:n?(0,r.jsx)(T,{module:n,dependencies:i,cwd:s}):(0,r.jsx)(j.A,{className:`${N}-empty`})})}):(0,r.jsx)("div",{children:null==(t=n.bailoutReason)?void 0:t.map(e=>(0,r.jsx)("div",{style:{marginBottom:10},children:(0,r.jsx)(v.A,{children:(0,r.jsx)(c.A,{content:e,children:(0,r.jsx)("span",{style:{display:"inline-block"},children:e.length>120?`${e.slice(0,120)}...`:e})})},e)}))})})};var E=n(30964),O=n(54377),D=n(21416),L=((l={})[l.Reasons=0]="Reasons",l[l.Dependencies=1]="Dependencies",l[l.BailoutReason=2]="BailoutReason",l);let _=[{key:L[0],label:L[0]},{key:L[1],label:L[1]},{key:L[2],label:L[2]}],B=e=>{let{modules:t,cwd:n,moduleId:l,show:j,setShow:v}=e,[A,b]=(0,x.useState)(""),[S,w]=(0,x.useState)(L[0]);return(0,r.jsx)(m.zW,{api:i.SDK.ServerAPI.API.GetModuleDetails,body:{moduleId:+l},children:e=>{let{module:l,dependencies:x}=e;return(0,r.jsx)(s.A,{title:(0,r.jsxs)("div",{className:"module-analyze-box",children:[(0,r.jsx)(a.A.Text,{children:(0,f.getShortPath)(l.path)}),(0,r.jsx)(a.A.Text,{style:{fontSize:12,color:"rgba(0, 0, 0, 0.45)"},children:`Current Module: ${l.path}`})]}),open:j,maskClosable:!0,width:.8*y.Y7,onClose:()=>v(!1),children:(0,r.jsx)(m.zW,{api:i.SDK.ServerAPI.API.GetAllChunkGraph,body:{},children:e=>(0,r.jsx)(g.C.Consumer,{children:e=>{let{moduleJumpList:i,setModuleJumpList:s}=e;return(0,r.jsx)(o.A,{style:{minHeight:400},tabList:_,activeTabKey:S,tabProps:{size:"small",style:{fontSize:12}},onTabChange:e=>w(e),styles:{title:{paddingTop:0}},title:(0,r.jsxs)(d.A,{style:{padding:"10px 0px"},children:[(0,r.jsx)(E.A,{onClick:()=>{s([...i.slice(0,-1)])}}),(0,r.jsx)(a.A.Text,{children:"Current Module Imported Reasons Tree"}),(0,r.jsx)(c.A,{content:(0,r.jsx)("div",{children:(0,r.jsxs)("div",{children:[(0,r.jsx)(u.A,{status:"success",text:" "}),(0,r.jsx)(O.A,{}),(0,r.jsx)(a.A.Text,{children:": Jump button, click to jump to the Module dependency analysis page of this module."})]})}),title:"Usage",children:(0,r.jsx)(D.A,{})})]}),children:(0,r.jsx)(h.A,{justify:"start",align:"middle",children:(0,r.jsx)(p.A,{span:24,children:(0,r.jsx)(R,{curModule:l,modules:t,dependencies:x,cwd:n,selectedChunk:A,activeTabKey:S})})})})}})})})}})}},14752:function(e,t,n){n.d(t,{A:()=>l});let l={overall:"overall-MGHzQh",layout:"layout-izKUgB",row:"row-RDk0Pl"}},23308:function(e,t,n){n.d(t,{X:()=>s});var l=n(65723),r=n(38238);n(22155);var i=n(14752);let s=e=>{let{children:t}=e;return(0,l.jsx)(r.A,{vertical:!0,className:i.A.layout,children:t.map(e=>(0,l.jsx)("div",{className:i.A.row,children:e}))})}},59229:function(e,t,n){n.d(t,{wE:()=>ej,YW:()=>ev});var l,r,i=n(65723),s=n(22155),a=n(75573),o=n(26316),d=n(98369),c=n(20772),u=n(31448),h=n(8879),p=n(31786),x=n(1661),m=n(37080),f=n(85189),g=n(31766),j=n(83397),v=n(43928),y=n(63079),A=n(84585),b=n(54352),S=n(128),w=n(1361),C=n(81489),k=n(46941),M=n(36643),N=n(55425),z=n(20317),T=n(64801),P=n(25659),R=n(10142),E=n(40056),O=n(95154),D=n(31465);let L=e=>{let{file:t,data:n}=e,[l,r]=(0,s.useState)(n[0].group),a=n.find(e=>e.group===l);return(0,i.jsxs)(y.A,{wrap:!0,gutter:[v.or.BasePadding,v.or.BasePadding],style:{height:"100%",alignContent:"flex-start"},children:[n.length>1?(0,i.jsx)(A.A,{span:24,children:(0,i.jsx)(O.A,{value:l,options:n.map(e=>e.group),onChange:e=>r(e)})}):null,a?(0,i.jsxs)(s.Fragment,{children:[(0,i.jsx)(A.A,{span:24,children:(0,i.jsxs)(u.A.Text,{strong:!0,children:[a.baselineTitle||"Baseline"," ⟷"," ",a.currentTitle||"Current"]})}),(0,i.jsx)(A.A,{span:24,children:(0,i.jsx)(D.Mh,{originalFilePath:t,modifiedFilePath:t,original:a.baseline||"",modified:a.current||""})})]},l):null]})},_=e=>{let{text:t="View Changes",...n}=e;return(0,i.jsx)(w.hX,{text:t,buttonProps:{size:"small",icon:(0,i.jsx)(E.A,{})},drawerProps:{destroyOnClose:!0,title:`Content diff for "${n.file}"`},children:(0,i.jsx)(L,{...n})})};var B=((l={}).New="New",l.Changed="Changed",l.Deleted="Deleted",l.NotChanged="Not Changed",l),I=((r={}).Name="Sorted by Name",r.Size="Sorted by Size",r.Delta="Sorted by Delta",r),F=n(42868),$=n(98426),G=n(98204),W=n(82443);let H=(e,t,n,l)=>(0,i.jsx)(i.Fragment,{children:t-e==0?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(u.A.Text,{strong:!0,style:{color:n===j.Client.RsdoctorClientDiffState.Up?v.Q1.Red:v.Q1.Green,...l},children:[n===j.Client.RsdoctorClientDiffState.Up?"+":"-",(0,S.formatSize)(Math.abs(t-e))]})});var V=n(32792);let U=/[a-fA-F0-9]{20,}/,K=(e,t,n)=>{let l=n?(e,n)=>{var l,r,i,s;return((null==(l=e.current)?void 0:l.size[t])||0)-((null==(r=e.baseline)?void 0:r.size[t])||0)-((null==(i=n.current)?void 0:i.size[t])||0)+((null==(s=n.baseline)?void 0:s.size[t])||0)}:(n,l)=>{var r,i;return((null==(r=n[e])?void 0:r.size[t])||0)-((null==(i=l[e])?void 0:i.size[t])||0)};return{width:200,sorter:(e,t)=>l(e,t),render:(n,l)=>{var r,s;if(!l[e])return"-";let a=l[e].size[t];return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:(0,S.formatSize)(a)}),"current"===e?H((null==(r=l.baseline)?void 0:r.size[t])||0,a,((null==(s=l.baseline)?void 0:s.size[t])||0)>a?j.Client.RsdoctorClientDiffState.Down:j.Client.RsdoctorClientDiffState.Up):null]})}}},q=(e,t,n)=>{let[l,r]=(0,s.useState)(!1),a="baseline"===e;return{title:()=>{let l=a?t:n,r=(0,W.Z)(e),s=V.TS.diffSize(t,n);return(0,i.jsxs)("div",{children:[(0,i.jsx)(u.A.Text,{children:r}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsx)(o.A,{title:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:[r," modules is ",l]}),a?null:(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["Percent is ",(0,S.formatPercent)(s.percent)]})]}),children:(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400},children:l}),(0,i.jsx)(f.A,{})]})})]})},children:[{title:"Source Size",...K(e,"sourceSize",l)},{title:"Parsed Size",defaultSortOrder:a?void 0:"descend",...K(e,"parsedSize",l)}],filterSearch:!0,filters:[{text:"Show Changed",value:B.NotChanged},{text:"Show All",value:"All"}],onFilter:(e,t)=>(e===B.NotChanged?r(!0):r(!1),e!==B.NotChanged||J(t)!==e)}},Q=e=>{let{data:t,baseline:n,current:l}=e,{modules:r}=n.moduleGraph,{modules:a}=l.moduleGraph,{chunks:c}=n.chunkGraph,{chunks:x}=l.chunkGraph,m=n.root,g=l.root,[j,y]=(0,s.useState)(""),A=(0,s.useRef)(null),b=(e,t)=>{t(),y(e[0])},w="__is_baseline__",C=(0,s.useMemo)(()=>t.baseline?V.TS.getModulesByAsset(t.baseline,c,r).map(e=>({...e,[w]:!0})).filter(e=>{var t;return!(null==(t=e.concatenationModules)?void 0:t.length)}):[],[t,n]),k=(0,s.useMemo)(()=>t.current?V.TS.getModulesByAsset(t.current,x,a).map(e=>({...e,[w]:!1})).filter(e=>{var t;return!(null==(t=e.concatenationModules)?void 0:t.length)}):[],[t,l]),N=e=>(0,S.beautifyModulePath)(e.path,e.__is_baseline__?m:g),z=(0,s.useMemo)(()=>{let e=[...C,...k],t=new Map;return e.forEach(e=>{var n,l;let r=(null==(n=e.webpackId)?void 0:n.replace(U,""))||(null==(l=e.path)?void 0:l.replace(U,"")),i=t.get(r);i||(i={path:r}),e[w]?i.baseline=e:i.current=e,t.set(r,i)}),[...t.values()]},[C,k,j]),{bModulesCount:P,cModulesCount:R,totalCount:E}=(0,s.useMemo)(()=>{let e=e=>N(e).alias.indexOf(j)>-1,t=z.filter(e=>e.baseline),n=z.filter(e=>e.current),l=z.length;return j&&(t=t.filter(e),n=n.filter(e),l=z.filter(e).length),{bModulesCount:t.length,cModulesCount:n.length,totalCount:l}},[z,j]);return(0,i.jsx)(M.A,{dataSource:z,rowKey:e=>e.path,size:"small",pagination:{size:"small"},bordered:!0,scroll:{x:1500},columns:[{fixed:"left",title:()=>(0,i.jsxs)("div",{children:[(0,i.jsxs)(u.A.Text,{children:["Modules of ",`"${t.alias}"`]}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsxs)(o.A,{title:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["filtered modules: ",E]}),(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["total modules: ",z.length]})]}),children:[(0,i.jsxs)(u.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[E,"/",z.length]}),(0,i.jsx)(f.A,{})]})]}),filterDropdown(e){let{setSelectedKeys:t,selectedKeys:n,confirm:l,clearFilters:r}=e;return(0,i.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,i.jsx)(G.A,{ref:A,placeholder:"Search by file name",value:n[0],onChange:e=>t(e.target.value?[e.target.value]:[]),onPressEnter:()=>b(n,l),style:{marginBottom:8,display:"block"}}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(p.Ay,{type:"primary",onClick:()=>b(n,l),icon:(0,i.jsx)($.A,{}),size:"small",style:{width:90},children:"Search"}),(0,i.jsx)(p.Ay,{onClick:()=>{r&&(r(),y("")),t([]),b([],l)},size:"small",style:{width:90},children:"Reset"})]})]})},filterSearch:!0,filterIcon:e=>(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{type:j?void 0:"secondary",style:{fontWeight:400},children:j||"Search by file name"}),(0,i.jsx)($.A,{style:{color:e?v.Q1.Blue:void 0}})]}),onFilterDropdownOpenChange:e=>{e&&setTimeout(()=>{var e;return null==(e=A.current)?void 0:e.focus()},100)},onFilter:(e,t)=>N(t).alias.indexOf(e)>-1,render:(e,t)=>{let{alias:n,inNodeModules:l}=N(t);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(o.A,{title:t.path,children:(0,i.jsx)(u.A.Text,{copyable:{text:t.path},children:n})}),l?(0,i.jsx)(T.A,{color:"warning",children:"node_modules"}):null,(0,i.jsx)(Z,{type:J(t)})]})}},q("current",P,R),q("baseline",P,R),{title:"Actions",width:200,render:(e,t)=>{var r,s,a,o,c,u,h,p,x,m,f,g;return(0,i.jsx)(d.A,{direction:"vertical",style:{maxWidth:170},children:(0,i.jsx)(_,{text:"View Changes",file:t.path,data:[{baseline:null==(r=n.moduleCodeMap[null==(s=t.baseline)?void 0:s.id])?void 0:r.source,current:null==(a=l.moduleCodeMap[null==(o=t.current)?void 0:o.id])?void 0:a.source,group:"Source"},{baseline:null==(c=n.moduleCodeMap[null==(u=t.baseline)?void 0:u.id])?void 0:c.transformed,current:null==(h=l.moduleCodeMap[null==(p=t.current)?void 0:p.id])?void 0:h.transformed,group:"Transformed Source"},{baseline:null==(x=n.moduleCodeMap[null==(m=t.baseline)?void 0:m.id])?void 0:x.parsedSource,current:null==(f=l.moduleCodeMap[null==(g=t.current)?void 0:g.id])?void 0:f.parsedSource,group:"Parsed Source"}]})})}}]})};function J(e){if(e.baseline&&!e.current)return B.Deleted;if(!e.baseline&&e.current)return B.New;if(e.baseline&&e.current)return e.baseline.size.sourceSize===e.current.size.sourceSize&&e.baseline.size.parsedSize===e.current.size.parsedSize?B.NotChanged:B.Changed;throw Error("Update Type not match")}let Z=e=>{let{type:t}=e;return t===B.NotChanged?(0,i.jsx)(o.A,{title:"It hasn't changed between Baseline and Current",children:(0,i.jsx)(T.A,{color:"success",children:"Not Changed"})}):t===B.Changed?(0,i.jsx)(o.A,{title:"It has been changed between Baseline and Current",children:(0,i.jsx)(T.A,{color:"warning",children:"Changed"})}):t===B.New?(0,i.jsx)(o.A,{title:"It is created in Current",children:(0,i.jsx)(T.A,{color:"error",children:"New"})}):t===B.Deleted?(0,i.jsx)(o.A,{title:"It has been deleted in Current",children:(0,i.jsx)(T.A,{color:"error",children:"Deleted"})}):null},Y=e=>{let{baseline:t,current:n}=e,l=(0,s.useMemo)(()=>(0,S.useUniqModules)(t.moduleGraph.modules),[t]),r=(0,s.useMemo)(()=>(0,S.useUniqModules)(n.moduleGraph.modules),[n]),a=t.chunkGraph.chunks,c=n.chunkGraph.chunks,p=t.root,x=n.root,[m,g]=(0,s.useState)(),[j,b]=(0,s.useState)([]),w=(0,s.useMemo)(()=>{let e={};return l.forEach(t=>{var n,l;let r=(null==(n=t.webpackId)?void 0:n.replace(U,""))||(null==(l=t.path)?void 0:l.replace(U,""));e[r]?console.warn("[Baseline Module Exists]: ",t,e):e[r]={path:r,baseline:t}}),r.forEach(t=>{var n,l;let r=(null==(n=t.webpackId)?void 0:n.replace(U,""))||(null==(l=t.path)?void 0:l.replace(U,""));e[r]||(e[r]={path:r}),e[r].current=t}),Object.values(e)},[l,r]),C=(0,s.useMemo)(()=>{let e=w.slice();return m&&(e=e.filter(e=>e.path.indexOf(m)>-1)),j.length&&(e=e.filter(e=>j.includes(J(e)))),e},[w,m,j]),{bFilteredModulesLength:z,cFilteredModulesLength:E}=(0,s.useMemo)(()=>({bFilteredModulesLength:C.filter(e=>e.baseline).length,cFilteredModulesLength:C.filter(e=>e.current).length}),[C]);return(0,i.jsxs)(y.A,{gutter:[v.or.BasePadding,v.or.BasePadding],children:[(0,i.jsx)(A.A,{span:24,children:(0,i.jsxs)(d.A,{wrap:!0,children:[(0,i.jsx)(R.E,{icon:(0,i.jsx)(P.A,{}),label:"",labelStyle:{width:45},placeholder:"Search by name",onChange:e=>{g(e)}}),(0,i.jsx)(k.A,{mode:"multiple",placeholder:"Filter by changed type",style:{width:200},options:Object.values(B).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{b(e)}})]})}),(0,i.jsx)(A.A,{span:24,children:(0,i.jsx)(M.A,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},scroll:{x:1700},dataSource:C,rowKey:e=>e.path,columns:[{fixed:"left",title:(0,i.jsxs)(o.A,{title:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["filtered modules is ",C.length," (Current & Baseline)"]}),(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["total modules is ",w.length," (Current & Baseline)"]})]}),children:[(0,i.jsx)(u.A.Text,{strong:!0,children:"Modules"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsxs)(u.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[C.length,"/",w.length]}),(0,i.jsx)(f.A,{})]}),render:(e,t)=>{let{alias:n,inNodeModules:l}=(0,S.beautifyModulePath)(t.path,t.baseline?p:x);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(o.A,{title:t.path,children:(0,i.jsx)(u.A.Text,{copyable:{text:t.path},children:n})}),(0,i.jsx)(Z,{type:J(t)}),l?(0,i.jsx)(T.A,{color:"warning",children:"node_modules"}):null]})}},q("current",z,E),q("baseline",z,E),{title:"in Assets",render:(e,t)=>{let n=[],l=[];return(t.current&&V.TS.getChunksByModule(t.current,c).forEach(e=>e.assets.forEach(e=>l.push(e))),t.baseline&&V.TS.getChunksByModule(t.baseline,a).forEach(e=>e.assets.forEach(e=>n.push(e))),n.length||l.length)?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,N.s)(l).filter(Boolean).map(e=>(0,i.jsx)(F.Ex,{label:"Current",value:e},`c_${e}`)),(0,N.s)(n).filter(Boolean).map(e=>(0,i.jsx)(F.Ex,{label:"Baseline",value:e},`b_${e}`))]}):null}},{title:"Actions",width:200,render:(e,l)=>{var r,s,a,o,c,u,h,p,x,m,f,g,j,v,y,A;let b=J(l)===B.Changed;return(0,i.jsxs)(d.A,{direction:"vertical",style:{maxWidth:170},children:[b?(0,i.jsx)(_,{text:"View Changes",file:l.path,data:[{baseline:null==(r=t.moduleCodeMap[null==(s=l.baseline)?void 0:s.id])?void 0:r.source,current:null==(a=n.moduleCodeMap[null==(o=l.current)?void 0:o.id])?void 0:a.source,group:"Source"},{baseline:null==(c=t.moduleCodeMap[null==(u=l.baseline)?void 0:u.id])?void 0:c.transformed,current:null==(h=n.moduleCodeMap[null==(p=l.current)?void 0:p.id])?void 0:h.transformed,group:"Transformed Source"},{baseline:null==(x=t.moduleCodeMap[null==(m=l.baseline)?void 0:m.id])?void 0:x.parsedSource,current:null==(f=n.moduleCodeMap[null==(g=l.current)?void 0:g.id])?void 0:f.parsedSource,group:"Parsed Source"}]}):null,(null==l?void 0:l.current)?(0,i.jsx)(_,{text:"Current Result Viewer",file:l.path,data:[{baseline:null==(j=n.moduleCodeMap[l.current.id])?void 0:j.source,current:null==(v=n.moduleCodeMap[l.current.id])?void 0:v.transformed,baselineTitle:"Current Source",currentTitle:"Current Transformed Source",group:"Transformed Source"},{baseline:null==(y=n.moduleCodeMap[l.current.id])?void 0:y.source,current:null==(A=n.moduleCodeMap[l.current.id])?void 0:A.parsedSource,baselineTitle:"Current Source",currentTitle:"Current Parsed Source",group:"Parsed Source"}]}):null]})}}]})})]})},X=e=>e.baseline&&e.current?e.baseline.map(e=>e.version).sort().join()===e.current.map(e=>e.version).sort().join()?B.NotChanged:B.Changed:e.baseline||e.current?e.baseline&&!e.current?B.Deleted:B.New:B.NotChanged,ee=e=>X(e)!==B.NotChanged,et=e=>{let{dataSource:t}=e,{newCount:n,deleteCount:l,changedCount:r}=(0,s.useMemo)(()=>({newCount:t.filter(e=>e.updateType===B.New).length,deleteCount:t.filter(e=>e.updateType===B.Deleted).length,changedCount:t.filter(e=>e.updateType===B.Changed).length}),[t]);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(F.Ex,{label:"New",value:n,type:n>0?"error":"default",tooltip:`Current has ${n} packages which not found in Baseline`}),(0,i.jsx)(F.Ex,{label:"Deleted",value:l,type:l>0?"error":"default",tooltip:`Current delete ${l} packages than Baseline`}),(0,i.jsx)(F.Ex,{label:"Changed",value:r,type:r>0?"error":"default",tooltip:`Current has ${r} changed packages than Baseline`})]})},en=e=>{let{baseline:t,current:n}=e,{packages:l=[]}=t||{},{packages:r=[]}=n||{},i={},s=(e,t)=>{i[e.name]||(i[e.name]={name:e.name,updateType:B.NotChanged}),i[e.name][t]||(i[e.name][t]=[]),i[e.name][t].push(e)};l.forEach(e=>s(e,"baseline")),r.forEach(e=>s(e,"current"));let a=[],o=[];return Object.values(i).forEach(e=>{ee(e)?a.push(e):o.push(e)}),a.concat(o).map(e=>({...e,updateType:X(e)}))},el=e=>{let{baseline:t,current:n}=e,{packages:l=[]}=t||{},{packages:r=[]}=n||{};if(!l.length&&!r.length)return(0,i.jsx)(C.A,{});let a=(0,s.useMemo)(()=>(0,N.s)(l.concat(r).map(e=>e.name)),[l,r]),[c,p]=(0,s.useState)([]),[x,m]=(0,s.useState)([]),f=(0,s.useMemo)(()=>en({baseline:t,current:n}),[t,n]),g=(0,s.useMemo)(()=>f.filter(e=>x.length?x.indexOf(e.updateType)>-1:!c.length||c.indexOf(e.name)>-1),[f,c,x]);return(0,i.jsxs)(y.A,{gutter:[v.or.BasePadding,v.or.BasePadding],children:[(0,i.jsx)(A.A,{span:24,style:{marginTop:16},children:(0,i.jsxs)(d.A,{wrap:!0,children:[(0,i.jsx)(k.A,{mode:"multiple",placeholder:"Filter by package names",style:{width:400},options:a.map(e=>{let t=f.find(t=>t.name===e);return t&&ee(t)?{label:(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:e}),(0,i.jsx)(Z,{type:X(t)})]}),value:e}:{label:e,value:e}}),allowClear:!0,onChange:e=>{p(e)}}),(0,i.jsx)(k.A,{mode:"multiple",placeholder:"Filter by changed type",style:{width:200},options:Object.values(B).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{m(e)}})]})}),(0,i.jsx)(A.A,{span:24,children:(0,i.jsx)(M.A,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},dataSource:g,rowKey:e=>e.name,columns:[{title:()=>(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:"Package Name"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsx)(o.A,{title:`Filtered Package Count is ${g.length}, Total Package Count is ${f.length}`,children:(0,i.jsxs)(u.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400},children:[g.length," / ",f.length]})})]}),render:(e,t)=>t.updateType!==B.NotChanged?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:t.name}),(0,i.jsx)(Z,{type:t.updateType})]}):t.name},{title:()=>(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:"Current"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsx)(et,{dataSource:f})]}),children:[{title:"Version",render:(e,t)=>t.current?(0,i.jsx)(d.A,{direction:"vertical",children:t.current.map(e=>(0,i.jsx)(F.Ex,{label:"version",value:e.version,tooltip:e.root,type:t.updateType===B.Deleted?"error":t.updateType===B.Changed?"warn":"default"},e.version))}):null},{title:"Parsed Size",render:(e,t)=>{let n=(0,z.x)(t.current,e=>e.size.parsedSize),l=()=>(0,i.jsx)(b.vh,{baseline:(0,z.x)(t.baseline,e=>e.size.parsedSize),current:n});return t.current?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{strong:t.updateType!==B.NotChanged,children:(0,S.formatSize)(n)}),(0,i.jsx)(l,{})]}):(0,i.jsx)(l,{})}}]},{title:"Baseline",children:[{title:"Version",render:(e,t)=>t.baseline?(0,i.jsx)(d.A,{direction:"vertical",children:t.baseline.map(e=>(0,i.jsx)(F.Ex,{label:"version",value:e.version,tooltip:e.root,type:t.updateType===B.Deleted?"error":t.updateType===B.Changed?"warn":"default"},e.version))}):null},{title:"Parsed Size",render:(e,t)=>{if(t.baseline){let e=(0,z.x)(t.baseline,e=>e.size.parsedSize);return(0,i.jsx)(u.A.Text,{children:(0,S.formatSize)(e)})}return null}}]}]})})]})},er=e=>{let{baseline:t,current:n,assetsDiffResult:l}=e,r=(0,S.useUniqModules)(t.moduleGraph.modules),s=(0,S.useUniqModules)(n.moduleGraph.modules),a=(0,S.useDuplicatePackagesByErrors)(t.errors),o=(0,S.useDuplicatePackagesByErrors)(n.errors),c=(0,S.useModuleGraph)(t.moduleGraph),h=(0,S.useModuleGraph)(n.moduleGraph),p=t.root,x=n.root,m=en({baseline:t.packageGraph,current:n.packageGraph}),f=[{title:["Bundle Size"],value:[l.all.total]},{title:["Total JS","Initial JS"],value:[l.js.total,l.js.initial]},{title:["Total CSS","Initial CSS"],value:[l.css.total,l.css.initial]},{title:["Images","Fonts","Media"],value:[l.imgs.total,l.fonts.total,l.media.total]},{title:["HTML"],value:[l.html.total]},{title:["Others"],value:[l.others.total]}];return(0,i.jsxs)(y.A,{gutter:[v.or.BasePadding,v.or.BasePadding],wrap:!0,style:{marginBottom:v.or.BasePadding},children:[f.map(e=>(0,i.jsx)(A.A,{style:{minWidth:335},children:(0,i.jsx)(b.aq,{titles:e.title,datas:e.value,showPercentInTitle:!0})},e.title.join(","))),(0,i.jsx)(A.A,{style:{minWidth:335},children:(0,i.jsx)(b.aq,{titles:["Duplicate Packages"],datas:[{size:{baseline:a.length,current:o.length},count:{baseline:a.length,current:o.length},percent:0,state:j.Client.RsdoctorClientDiffState.Equal}],formatter:(e,l)=>(0,i.jsx)(w.P6,{duplicatePackages:"baseline"===l?a:o,moduleGraph:"baseline"===l?c:h,cwd:"baseline"===l?p:x,buttonProps:{size:"small"},moduleCodeMap:"baseline"===l?t.moduleCodeMap:n.moduleCodeMap})})}),(0,i.jsx)(A.A,{style:{minWidth:335},children:(0,i.jsx)(b.aq,{titles:["Modules"],datas:[{size:{baseline:r.length,current:s.length},count:{baseline:r.length,current:s.length},percent:0,state:j.Client.RsdoctorClientDiffState.Equal}],formatter:(e,t)=>{if("baseline"===t)return e;let n=V.TS.diffSize(r.length,s.length);return(0,i.jsxs)(d.A,{style:{fontSize:"inherit"},children:[(0,i.jsx)(u.A.Text,{style:{fontSize:"inherit"},children:e}),(0,i.jsx)(b.QE,{...n})]})}})}),(0,i.jsx)(A.A,{style:{minWidth:335},children:(0,i.jsx)(b.aq,{titles:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{style:{color:"inherit"},children:"Packages"}),(0,i.jsx)(et,{dataSource:m})]},"0")],datas:[{size:{baseline:m.filter(e=>e.baseline).length,current:m.filter(e=>e.current).length},count:{baseline:m.filter(e=>e.baseline).length,current:m.filter(e=>e.current).length},percent:0,state:j.Client.RsdoctorClientDiffState.Equal}],formatter:(e,t)=>"baseline"===t?e:(0,i.jsx)(d.A,{children:e})})})]})},ei=e=>{let{assetsDiffResult:t}=e,n=[{type:"JS",data:t.js},{type:"CSS",data:t.css},{type:"Imgs",data:t.imgs},{type:"Fonts",data:t.fonts},{type:"Media",data:t.media},{type:"HTML",data:t.html},{type:"Others",data:t.others}];return(0,i.jsx)(M.A,{bordered:!0,pagination:!1,dataSource:n,rowKey:e=>e.type,style:{marginTop:v.or.BasePadding-v.or.BasePadding/4},columns:[{title:"File Type",dataIndex:"type",key:"type",render:e=>(0,i.jsx)(u.A.Text,{strong:!0,children:e})},{title:"Size",dataIndex:"data",key:"size",children:[{title:"Current",dataIndex:"data",key:"csize",render:e=>{let t=(0,i.jsxs)(s.Fragment,{children:[(0,i.jsx)(u.A.Text,{strong:!0,children:(0,S.formatSize)(e.total.size.current)}),(0,i.jsx)(b.QE,{percent:e.total.percent,state:e.total.state}),H(e.total.size.baseline,e.total.size.current,e.total.state)]});return e.initial?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Total"}),t]}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Initial"}),(0,i.jsx)(u.A.Text,{strong:!0,children:(0,S.formatSize)(e.initial.size.current)}),(0,i.jsx)(b.QE,{percent:e.initial.percent,state:e.initial.state}),H(e.initial.size.baseline,e.initial.size.current,e.initial.state)]})]}):(0,i.jsx)(d.A,{children:t})}},{title:"Baseline",dataIndex:"data",key:"bsize",render:e=>{let t=(0,i.jsx)(u.A.Text,{children:(0,S.formatSize)(e.total.size.baseline)});return e.initial?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Total"}),t]}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Initial"}),(0,i.jsx)(u.A.Text,{children:(0,S.formatSize)(e.initial.size.baseline)})]})]}):t}}]},{title:"Count",dataIndex:"data",key:"count",children:[{title:"Current",dataIndex:"data",key:"ccount",render:e=>{let t=(0,i.jsx)(u.A.Text,{strong:!0,children:e.total.count.current});return e.initial?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Total"}),t]}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Initial"}),(0,i.jsx)(u.A.Text,{strong:!0,children:e.initial.count.current})]})]}):(0,i.jsx)(d.A,{children:t})}},{title:"Baseline",dataIndex:"data",key:"bcount",render:e=>{let t=(0,i.jsx)(u.A.Text,{children:e.total.count.baseline});return e.initial?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Total"}),t]}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Initial"}),(0,i.jsx)(u.A.Text,{children:e.initial.count.baseline})]})]}):(0,i.jsx)(d.A,{children:t})}}]}]})};var es=n(46201),ea=n(12168),eo=n(12199),ed=n(68794),ec=n(52762);let eu={JS:[j.Constants.JSExtension],CSS:[j.Constants.CSSExtension],HTML:[j.Constants.HtmlExtension],Imgs:j.Constants.ImgExtensions,Fonts:j.Constants.FontExtensions,Media:j.Constants.MediaExtensions,Others:[]},eh=Object.values(eu).flat(),ep=e=>{let{data:t}=e,n=(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{strong:!0,children:t.alias}),(0,i.jsx)(o.A,{title:(0,i.jsxs)(d.A,{style:{color:"inherit"},direction:"vertical",children:[t.current?(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["Current realpath: ",t.current.path]}):null,t.baseline?(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["Baseline realpath: ",t.baseline.path]}):null]}),children:(0,i.jsx)(f.A,{})})]});return t.baseline&&!t.current?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(es.A,{style:{color:v.Q1.Red}}),n]}):!t.baseline&&t.current?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(ea.A,{style:{color:v.Q1.Green}}),n]}):t.baseline&&t.current?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(eo.A,{style:{color:v.Q1.Yellow}}),n]}):n},ex=e=>{let{baseline:t,current:n,outputFilename:l}=e,[r,a]=(0,s.useState)(),[c,x]=(0,s.useState)([]),[m,g]=(0,s.useState)([]),[w,C]=(0,s.useState)(I.Size),[N,E]=(0,s.useState)(null),[O,D]=(0,s.useState)(null),{assets:L}=t.chunkGraph,{assets:F}=n.chunkGraph,$=(0,s.useMemo)(()=>{let e={};return N&&O?e.choose={alias:`${N}
|
|
7
|
-
${O}`,current:F.find(e=>e.path===O),baseline:L.find(e=>e.path===N)}:(L.forEach(t=>{let n=V.TS.formatAssetName(t.path,l);e[n]?console.warn("[Baseline Asset Exists]: ",t,e):e[n]={alias:n,baseline:t}}),F.forEach(t=>{let n=V.TS.formatAssetName(t.path,l);e[n]||(e[n]={alias:n}),e[n].current=t})),Object.values(e)},[L,F,N,O]),G=(0,s.useMemo)(()=>{let e=$.slice();if(r&&(e=e.filter(e=>e.alias.indexOf(r)>-1)),c.length){let t=c.map(e=>eu[e]).flat(),n=c.indexOf("Others")>-1;e=e.filter(e=>{let l=e.baseline||e.current;return!!V.TS.isAssetMatchExtensions(l,t)||!!n&&!V.TS.isAssetMatchExtensions(l,eh)})}if(m.length&&(e=e.filter(e=>e.baseline&&!e.current?m.includes(B.Deleted):!e.baseline&&e.current?m.includes(B.New):!!e.baseline&&!!e.current&&(e.baseline.size===e.current.size?m.includes(B.NotChanged):m.includes(B.Changed)))),w)if(w===I.Name)e.sort((e,t)=>e.alias.localeCompare(t.alias));else{let{prev:r,others:i}=e.reduce((e,t)=>(t.current?t.baseline?e.prev.unshift(t):e.prev.push(t):e.others.push(t),e),{prev:[],others:[]});e=[...r.sort((e,r)=>{if(r.current&&e.current){if(w===I.Delta){let{percent:i}=V.TS.diffAssetsByExtensions(t.chunkGraph,n.chunkGraph,t=>V.TS.formatAssetName(t.path,l)===e.alias),{percent:s}=V.TS.diffAssetsByExtensions(t.chunkGraph,n.chunkGraph,e=>V.TS.formatAssetName(e.path,l)===r.alias);return s-i}return r.current.size-e.current.size}return -1}),...i]}return e},[$,r,c,m,w]),W=(0,s.useMemo)(()=>(0,z.x)(G,e=>e.current?e.current.size:0)||0,[G]),U=(0,s.useMemo)(()=>(0,z.x)(G,e=>e.baseline?e.baseline.size:0)||0,[G]);return(0,i.jsxs)(y.A,{gutter:[v.or.BasePadding,v.or.BasePadding],children:[(0,i.jsxs)(A.A,{span:24,children:[(0,i.jsxs)(d.A,{wrap:!0,children:[(0,i.jsx)(R.E,{icon:(0,i.jsx)(P.A,{}),label:"",labelStyle:{width:45},placeholder:"Search by file name",onChange:e=>{a(e)}}),(0,i.jsx)(k.A,{mode:"multiple",placeholder:"Filter by file type",style:{width:250},options:Object.keys(eu).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{x(e)}}),(0,i.jsx)(k.A,{mode:"multiple",placeholder:"Filter by file changed type",style:{width:200},options:Object.values(B).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{g(e)}}),(0,i.jsx)(k.A,{suffixIcon:(0,i.jsx)(ed.A,{}),options:Object.values(I).map(e=>({label:e,value:e})),value:w,onChange:e=>{C(e)}})]}),(0,i.jsxs)(y.A,{style:{marginTop:10},gutter:[6,6],children:[(0,i.jsx)(A.A,{children:(0,i.jsx)(p.Ay,{children:"Select Baseline Asset and Current Asset to Diff "})}),(0,i.jsx)(A.A,{children:(0,i.jsx)(k.A,{allowClear:!0,placeholder:"select baseline assets",showSearch:!0,style:{width:300},options:Object.values(t.chunkGraph.assets).map(e=>({label:e.path,value:e.path})),onChange:e=>E(e)})}),(0,i.jsx)(A.A,{children:(0,i.jsx)(k.A,{allowClear:!0,placeholder:"select current assets",showSearch:!0,style:{width:300},options:Object.values(n.chunkGraph.assets).map(e=>({label:e.path,value:e.path})),onChange:e=>D(e)})})]})]}),(0,i.jsx)(A.A,{span:24,children:(0,i.jsx)(M.A,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},dataSource:G,rowKey:e=>e.alias,expandable:{expandedRowRender:e=>(0,i.jsx)("div",{style:{margin:v.or.BasePadding/3},children:(0,i.jsx)(Q,{data:e,baseline:t,current:n})}),columnTitle:(0,i.jsx)(o.A,{title:"Click to expand row to see the modules which the chunk contains",placement:"left",children:(0,i.jsx)(ec.A,{style:{cursor:"pointer"}})})},columns:[{title:(0,i.jsxs)(o.A,{title:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["filtered assets is ",G.length]}),(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["total assets is ",$.length]})]}),children:[(0,i.jsx)(u.A.Text,{strong:!0,children:"Assets"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsxs)(u.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[G.length,"/",$.length]}),(0,i.jsx)(f.A,{})]}),render:(e,t)=>(0,i.jsx)(ep,{data:t})},{title:()=>{let e=(0,S.formatSize)(W),t=V.TS.diffSize(U,W);return(0,i.jsxs)(o.A,{title:`Current size is ${e}, Delta is ${(0,S.formatPercent)(t.percent)}`,children:[(0,i.jsx)(u.A.Text,{strong:!0,children:"Current"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsxs)(u.A.Text,{style:{fontSize:10,fontWeight:400,marginRight:4},children:[(0,i.jsx)(u.A.Text,{style:{fontSize:"inherit",marginRight:8},children:e}),(0,i.jsx)(b.vh,{fontSize:"inherit",baseline:U,current:W}),H(U,W,U>W?j.Client.RsdoctorClientDiffState.Down:j.Client.RsdoctorClientDiffState.Up,{fontSize:10,fontWeight:400,marginLeft:4})]}),(0,i.jsx)(f.A,{})]})},render:(e,r)=>{if(r.current){let{percent:e,state:s}=V.TS.diffAssetsByExtensions(t.chunkGraph,n.chunkGraph,e=>V.TS.formatAssetName(e.path,l)===r.alias),a=V.TS.isInitialAsset(r.current,n.chunkGraph.chunks);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:(0,S.formatSize)(r.current.size)}),(0,i.jsx)(b.QE,{percent:e,state:s}),a?(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"initial"}):null]})}return"-"}},{title:()=>{let e=(0,S.formatSize)(U);return(0,i.jsxs)(o.A,{title:`Baseline size is ${e}`,children:[(0,i.jsx)(u.A.Text,{strong:!0,children:"Baseline"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsx)(u.A.Text,{style:{fontSize:10,fontWeight:400,marginRight:4},children:e}),(0,i.jsx)(f.A,{})]})},render:(e,n)=>{if(n.baseline){let e=V.TS.isInitialAsset(n.baseline,t.chunkGraph.chunks);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:(0,S.formatSize)(n.baseline.size)}),e?(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"initial"}):null]})}return"-"}},{title:"Actions",key:"actions",render:(e,t)=>{var n,l;return(0,i.jsx)(_,{file:t.alias,data:[{baseline:null==(n=t.baseline)?void 0:n.content,current:null==(l=t.current)?void 0:l.content,group:"assets"}]})}}]})})]})};var em=n(70054);let ef=e=>{var t;let{api:n,body:l,children:r,manifests:s}=e,a=(0,S.useUrlQuery)(),o=window[j.Constants.WINDOW_RSDOCTOR_TAG];if((null==o?void 0:o.baseline)&&(null==o?void 0:o.current)){let e=JSON.parse(V.oG.decompressText(o.baseline)),t=JSON.parse(V.oG.decompressText(o.current));return(0,i.jsx)(i.Fragment,{children:r(e,t)})}if(null==s?void 0:s.length)return(0,i.jsx)(i.Fragment,{children:r(s[0].data,s[1].data)});let[d,c]=(null==(t=a[j.Client.RsdoctorClientUrlQuery.BundleDiffFiles])?void 0:t.split(","))||[];return(0,i.jsx)(em.zW,{api:n,body:l,manifestLoader:d?()=>(0,S.fetchManifest)(d):void 0,children:e=>(0,i.jsx)(em.zW,{api:n,body:l,manifestLoader:c?()=>(0,S.fetchManifest)(c):void 0,children:t=>r(e,t)})})},eg=e=>{let{manifests:t}=e;return(0,s.useEffect)(()=>{console.log("BundleDiff Manifests: ",t)},[t]),(0,i.jsx)(ef,{api:j.SDK.ServerAPI.API.GetBundleDiffSummary,manifests:t,children:(e,t)=>{let n=e.chunkGraph===t.chunkGraph,l=e.chunkGraph,r=n?l:t.chunkGraph,s=V.TS.getAssetsDiffResult(l,r);return(0,i.jsxs)("div",{children:[(0,i.jsxs)(a.A.Group,{children:[(0,i.jsx)(o.A,{placement:"leftBottom",title:(0,i.jsx)(d.A,{direction:"vertical",children:[{title:"Baseline",data:e},{title:"Current",data:t}].map(e=>{let{title:t,data:n}=e;return(0,i.jsx)(c.A,{size:"small",children:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsx)(u.A.Text,{strong:!0,children:t}),(0,i.jsxs)(d.A,{style:{fontSize:10},children:[(0,i.jsx)(u.A.Text,{style:{fontSize:"inherit",width:30,display:"inline-block"},children:"Hash"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsx)(u.A.Text,{type:"secondary",style:{fontSize:"inherit"},children:n.hash||"-"})]}),n.cloudManifestUrl?(0,i.jsx)(p.Ay,{type:"link",size:"small",style:{padding:0,fontSize:10},onClick:()=>window.open(n.cloudManifestUrl),children:"Open File"}):null]})},t)})}),children:(0,i.jsx)(a.A,{icon:(0,i.jsx)(f.A,{})})}),(0,i.jsx)(x.A,{title:(0,i.jsxs)(u.A.Text,{children:["Are you sure to",(0,i.jsx)(u.A.Text,{strong:!0,children:" re-upload "}),"json files for bundle diff?"]}),onConfirm:()=>{},okText:"Yes",cancelText:"Cancel",placement:"topLeft",trigger:"hover",children:(0,i.jsx)(a.A,{icon:(0,i.jsx)(g.A,{})})}),(0,i.jsx)(a.A.BackTop,{})]}),(0,i.jsx)(er,{baseline:e,current:t,onlyBaseline:n,assetsDiffResult:s}),(0,i.jsx)(m.A,{defaultActiveKey:"Overview",tabBarStyle:{marginBottom:v.or.BasePadding/3},items:[{label:"Overview",key:"Overview",children:(0,i.jsx)(ei,{assetsDiffResult:s})},{label:"Assets",key:"Assets",children:(0,i.jsx)(ex,{outputFilename:e.outputFilename,baseline:e,current:t})},{label:"Modules",key:"Modules",children:(0,i.jsx)(Y,{baseline:e,current:t,onlyBaseline:n,assetsDiffResult:s})},{label:"Packages",key:"Packages",children:(0,i.jsx)(el,{baseline:e.packageGraph,current:t.packageGraph})}].map(e=>({...e,label:(0,i.jsx)(u.A.Text,{strong:!0,children:e.label})}))})]})}})},ej=j.Client.RsdoctorClientRoutes.BundleDiff,ev=()=>(0,i.jsx)(eg,{manifests:[]})},73311:function(e,t,n){n.d(t,{B:()=>v});var l=n(65723),r=n(85189),i=n(35730),s=n(16937),a=n(20772),o=n(26316),d=n(98369),c=n(31448),u=n(13078),h=n.n(u),p=n(22155),x=n(11953),m=n(16815),f=n(74227),g=n(67843);let j=(0,x.$N)();function v(e){let{module:t,moduleGraph:n,ranges:u,toLine:v,setEditorData:y,source:A}=e,b=(0,p.useRef)(),S=(0,p.useRef)([]),w=(0,p.useRef)([]),C=(0,p.useRef)(),k=(0,p.useRef)(!1),[M,N]=(0,p.useState)("");return((0,p.useEffect)(()=>{let{isPreferSource:e}=t;k.current=!0,N(A.source||e?A.source:A.transformed),setTimeout(()=>{var e,l;w.current=(null==(l=b.current)||null==(e=l.getModel())?void 0:e.deltaDecorations(w.current,(0,g.L1)(t,n)))??[]},200)},[t,A]),(0,p.useEffect)(()=>{function e(){var e;let t=null==(e=b.current)?void 0:e.getModel();t&&(S.current=t.deltaDecorations(S.current,u.map(e=>({range:(0,x.qK)(e,f.Q),options:{stickiness:1,inlineClassName:"tree-shaking-statement-side-effect",isWholeLine:!1,showIfCollapsed:!0}}))),b.current&&"number"==typeof v&&C.current!==v&&(C.current=v,b.current.revealLine(v,0)))}k?setTimeout(e,300):e(),k.current=!1},[u,v]),(0,p.useEffect)(()=>{let e=e=>{let t=(0,m.U1)(e.target);if(t){let e=n.getModuleById(t.module);e&&y(e,[t.range],t.range.start.line)}};return document.body.addEventListener("click",e),()=>{document.body.removeEventListener("click",e)}},[]),t)?(0,l.jsx)(a.A,{title:(0,l.jsx)(o.A,{title:t.path,children:(0,l.jsxs)(d.A,{children:[(0,l.jsx)(c.A.Text,{children:h().basename(t.path)}),(0,l.jsx)(r.A,{})]})}),className:"tree-shaking-editor",children:(0,l.jsx)(s.Ay,{theme:"vs-dark",language:(0,x.rZ)(t.path),value:M,loading:(0,l.jsx)(i.A,{style:{fontSize:30}}),options:j,onMount:e=>{b.current=e}})}):(0,l.jsx)("div",{children:"请选择要查看的模块"})}},16815:function(e,t,n){function l(e,t,n){return`<a data-href="data-module=${e}&data-range=${encodeURIComponent(JSON.stringify(t))}">${n}</a>`}function r(e){if("a"!==e.tagName.toLocaleLowerCase())return;let t=e.getAttribute("data-href")??"",n={module:-1,range:{start:{line:1,column:0},end:{line:1,column:0}}};for(let e of t.split("&")){let[t,l]=e.split("=");if("data-module"===t){n.module=Number.parseInt(l,10);continue}"data-range"===t&&(n.range=JSON.parse(decodeURIComponent(l)))}return n}n.d(t,{U1:()=>r,mJ:()=>l})},74227:function(e,t,n){function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Q:()=>r});class r{isEmpty(){return r.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber)&&!(t.lineNumber>e.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.column<e.startColumn))&&(t.lineNumber!==e.endLineNumber||!(t.column>e.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber)&&!(t.lineNumber>e.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.column<=e.startColumn))&&(t.lineNumber!==e.endLineNumber||!(t.column>=e.endColumn))}containsRange(e){return r.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber)&&!(t.endLineNumber<e.startLineNumber)&&!(t.startLineNumber>e.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumn<e.startColumn))&&(t.endLineNumber!==e.endLineNumber||!(t.endColumn>e.endColumn))}strictContainsRange(e){return r.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber)&&!(t.endLineNumber<e.startLineNumber)&&!(t.startLineNumber>e.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumn<=e.startColumn))&&(t.endLineNumber!==e.endLineNumber||!(t.endColumn>=e.endColumn))}plusRange(e){return r.plusRange(this,e)}static plusRange(e,t){let n,l,i,s;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,l=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,l=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,l=e.startColumn),t.endLineNumber>e.endLineNumber?(i=t.endLineNumber,s=t.endColumn):t.endLineNumber===e.endLineNumber?(i=t.endLineNumber,s=Math.max(t.endColumn,e.endColumn)):(i=e.endLineNumber,s=e.endColumn),new r(n,l,i,s)}intersectRanges(e){return r.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,l=e.startColumn,i=e.endLineNumber,s=e.endColumn,a=t.startLineNumber,o=t.startColumn,d=t.endLineNumber,c=t.endColumn;return(n<a?(n=a,l=o):n===a&&(l=Math.max(l,o)),i>d?(i=d,s=c):i===d&&(s=Math.min(s,c)),n>i||n===i&&l>s)?null:new r(n,l,i,s)}equalsRange(e){return r.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return r.getEndPosition(this)}static getEndPosition(e){return new i(e.endLineNumber,e.endColumn)}getStartPosition(){return r.getStartPosition(this)}static getStartPosition(e){return new i(e.startLineNumber,e.startColumn)}toString(){return`[${this.startLineNumber},${this.startColumn} -> ${this.endLineNumber},${this.endColumn}]`}setEndPosition(e,t){return new r(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r.collapseToStart(this)}static collapseToStart(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return r.collapseToEnd(this)}static collapseToEnd(e){return new r(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new r(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber)&&(e.endLineNumber!==t.startLineNumber||!(e.endColumn<t.startColumn))&&!(t.endLineNumber<e.startLineNumber)&&(t.endLineNumber!==e.startLineNumber||!(t.endColumn<e.startColumn))}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber)&&(e.endLineNumber!==t.startLineNumber||!(e.endColumn<=t.startColumn))&&!(t.endLineNumber<e.startLineNumber)&&(t.endLineNumber!==e.startLineNumber||!(t.endColumn<=e.startColumn))}static compareRangesUsingStarts(e,t){if(e&&t){let n=0|e.startLineNumber,l=0|t.startLineNumber;if(n===l){let n=0|e.startColumn,l=0|t.startColumn;if(n===l){let n=0|e.endLineNumber,l=0|t.endLineNumber;return n===l?(0|e.endColumn)-(0|t.endColumn):n-l}return n-l}return n-l}return!!e-!!t}static compareRangesUsingEnds(e,t){if(e.endLineNumber===t.endLineNumber)return e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn;return e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}constructor(e,t,n,r){l(this,"startLineNumber",void 0),l(this,"startColumn",void 0),l(this,"endLineNumber",void 0),l(this,"endColumn",void 0),e>n||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}}class i{with(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lineNumber,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.column;return e===this.lineNumber&&t===this.column?this:new i(e,t)}delta(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.with(this.lineNumber+e,this.column+t)}equals(e){return i.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return i.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return i.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){let n=0|e.lineNumber,l=0|t.lineNumber;return n===l?(0|e.column)-(0|t.column):n-l}clone(){return new i(this.lineNumber,this.column)}toString(){return`(${this.lineNumber},${this.column})`}static lift(e){return new i(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}constructor(e,t){l(this,"lineNumber",void 0),l(this,"column",void 0),this.lineNumber=e,this.column=t}}},26634:function(e,t,n){n.d(t,{$:()=>s});var l=n(65723),r=n(20772),i=n(81489);function s(){return(0,l.jsx)(r.A,{title:"Tree Shaking Analysis",bodyStyle:{paddingTop:0},className:"tree-shaking-page",children:(0,l.jsx)(i.A,{style:{marginTop:30}})})}},81972:function(e,t,n){n.d(t,{oK:()=>b});var l=n(65723),r=n(26316),i=n(31786),s=n(98204),a=n(98369),o=n(31448),d=n(8879),c=n(36643),u=n(98426),h=n(22155),p=n(57474),x=n.n(p),m=n(97255),f=n(67843),g=n(128);function j(e,t){if(!e)return(0,l.jsx)("div",{children:"Can not find declaration."});let{module:n}=e,s=n.isPreferSource?e.position.source:e.position.transformed;return(0,l.jsx)(r.A,{title:`${n.path}, line ${s.start.line}`,children:(0,l.jsx)(i.Ay,{type:"link",onClick:()=>t(n,[s],s.start.line),children:"Move To"})})}function v(e){let[t,n]=(0,h.useState)(""),[r,o]=(0,h.useState)(""),d=(0,h.useRef)(null),c=(e,t,l)=>{t(),n(e[0]),o(l)};return{filterDropdown:t=>{let{setSelectedKeys:r,selectedKeys:o,confirm:h,clearFilters:p,close:x}=t;return(0,l.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,l.jsx)(s.A,{ref:d,placeholder:`Search ${e}`,value:o[0],onChange:e=>r(e.target.value?[e.target.value]:[]),onPressEnter:()=>c(o,h,e),style:{marginBottom:8,display:"block"}}),(0,l.jsxs)(a.A,{children:[(0,l.jsx)(i.Ay,{type:"primary",onClick:()=>c(o,h,e),icon:(0,l.jsx)(u.A,{}),size:"small",style:{width:90},children:"Search"}),(0,l.jsx)(i.Ay,{onClick:()=>p&&void(p(),n("")),size:"small",style:{width:90},children:"Reset"}),(0,l.jsx)(i.Ay,{type:"link",size:"small",onClick:x,children:"close"})]})]})},filterIcon:e=>(0,l.jsx)(u.A,{style:{color:e?"#1890ff":void 0}}),onFilter:(t,n)=>n[e].toString().toLowerCase().includes(t.toLowerCase()),render:n=>r===e?(0,l.jsx)(x(),{highlightStyle:{backgroundColor:"#ffc069",padding:0},searchWords:[t],autoEscape:!0,textToHighlight:n?n.toString():""}):n}}let y=e=>{let{module:t,moduleGraph:n,setEditorData:s}=e,u=(0,h.useMemo)(()=>n.getModuleGraphModule(t).getSideEffects(),[t]),p=u.map((e,n)=>{let{variable:l,name:r,identifier:i}=e;return{key:n,name:r,identifier:t.isPreferSource?i.position.source:i.position.transformed,declaration:null==l?void 0:l.identifier}}).sort((e,t)=>e.name===t.name?e.identifier.start.line>t.identifier.start.line?1:-1:e.name>t.name?1:-1).reduce((e,t)=>{let n=e[e.length-1];return n&&n.name===t.name?(n.children||(n.children=[]),n.children.push(t)):e.push(t),e},[]),x=[{title:"Name",dataIndex:"name",key:"name",align:"center",...v("name")},{title:"SideEffect",dataIndex:"identifier",key:"identifier",align:"center",render:e=>(0,l.jsx)(r.A,{title:`Current File line ${e.start.line}`,children:(0,l.jsx)(i.Ay,{type:"link",onClick:()=>s(t,[e],e.start.line),children:"Move To"})})},{title:"Declaration",dataIndex:"declaration",key:"declaration",align:"center",render:e=>j(e,s)}],f=(0,l.jsx)(h.Fragment,{children:(0,l.jsxs)(a.A,{style:{fontWeight:400},children:["Import",(0,l.jsx)(o.A.Text,{strong:!0,children:p.length}),"variables",(0,l.jsx)(d.A,{type:"vertical"}),(0,l.jsx)(o.A.Text,{strong:!0,children:u.length}),"sideEffects"]})});return(0,l.jsx)(m.Zp,{style:{marginBottom:10},title:f,className:"tree-shaking-export-table",children:(0,l.jsx)(c.A,{size:"small",dataSource:p,columns:x,pagination:!1,scroll:{y:600}})})},A=e=>{let{module:t,moduleGraph:n,setEditorData:s}=e,u=(0,h.useMemo)(()=>n.getModuleGraphModule(t).getExports(),[t]),p=u.filter(e=>0===e.getSideEffects().length),x=(0,l.jsxs)(h.Fragment,{children:[(0,l.jsxs)(a.A,{style:{fontWeight:400},children:["Export",(0,l.jsx)(o.A.Text,{strong:!0,children:u.length})]}),u.length>0?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.A,{type:"vertical"}),(0,l.jsxs)(o.A.Text,{style:{fontWeight:400},code:!0,children:[(0,l.jsx)(o.A.Text,{children:"Unused"}),(0,l.jsx)(d.A,{type:"vertical"}),(0,l.jsx)(o.A.Text,{strong:!0,children:p.length})]}),(0,l.jsx)(d.A,{type:"vertical"}),(0,l.jsxs)(o.A.Text,{style:{fontWeight:400},code:!0,children:[(0,l.jsx)(o.A.Text,{children:"Used"}),(0,l.jsx)(d.A,{type:"vertical"}),(0,l.jsx)(o.A.Text,{strong:!0,children:u.length-p.length})]})]}):""]}),y=u.map((e,t)=>{let{variable:n}=e;return{key:t,name:e.name,declaration:null==n?void 0:n.identifier,used:e.getSideEffects().map(e=>{let{module:t,identifier:n}=e,l=(null==t?void 0:t.isPreferSource)?n.position.source:n.position.transformed;if(t&&l)return{module:t,range:l}}).filter(g.isDef)}}),A=[{title:"Name",dataIndex:"name",key:"name",align:"center",...v("name")},{title:"Declaration",dataIndex:"declaration",key:"declaration",align:"center",render:e=>j(e,s)},{title:"Info",dataIndex:"used",key:"used",align:"center",sorter:(e,t)=>e.used.length-t.used.length,sortDirections:["descend","ascend"],render:e=>(0,l.jsxs)("span",{children:["Used ",e.length," times"]})}];return(0,l.jsx)(m.Zp,{title:x,className:"tree-shaking-export-table",children:(0,l.jsx)(c.A,{size:"small",dataSource:y,columns:A,pagination:!1,scroll:{y:600},expandable:{expandedRowRender:e=>(0,l.jsxs)("div",{className:"tree-shaking-side-effect-list",children:[(0,l.jsx)(o.A.Text,{children:"List of SideEffect:"}),e.used.map(e=>{let{module:t,range:n}=e;return(0,l.jsx)(r.A,{title:`${t.path}:${n.start.line}`,children:(0,l.jsx)(i.Ay,{className:"tree-shaking-side-effect-list-item",type:"link",onClick:()=>{s(t,[n],n.start.line)},children:`${(0,f.jx)(t.path)}:${n.start.line}`})},t.id)})]}),rowExpandable:e=>e.used.length>0}})})},b=e=>"side-effect"===e.kind?(0,l.jsx)(y,{...e}):(0,l.jsx)(A,{...e})},67843:function(e,t,n){n.d(t,{EV:()=>g,L1:()=>y,jx:()=>v,ut:()=>j});var l=n(65723),r=n(80806),i=n(98369),s=n(64801),a=n(14696),o=n(13347),d=n(13078),c=n.n(d),u=n(22155),h=n(11953),p=n(72854),x=n(128),m=n(16815),f=n(74227);function g(e,t,n,a,o,d){return(0,u.useMemo)(()=>(0,x.createFileStructures)({files:e.map(e=>e.path),cwd:d,fileTitle(e,n){let a=t.getModules().find(t=>t.path===e&&t.kind===r.nV.kind.Normal),d=t.getModuleGraphModule(a),c=d.getExports().filter(e=>0===e.getSideEffects().length);return(0,l.jsxs)(i.A,{style:{wordBreak:"break-all"},children:[(0,l.jsx)(p.i,{text:n,keyword:e,onClick:()=>o(e)}),d.dynamic?(0,l.jsx)(s.A,{color:"cyan",children:"dynamic"}):"",c.length>0?(0,l.jsxs)(s.A,{color:"green",children:[c.length," Unused"]}):""]})}}),[n,a])}function j(e){return(0,x.mapFileKey)(e,3,e=>!((0,a.J)(e,"__RESOURCEPATH__").indexOf("/node_modules/")>-1))}function v(e){let t="",n=e;for(let e=0;e<3;e++)t=t?`${c().basename(n)}/${t}`:c().basename(n),n=c().dirname(n);return`...${t}`}function y(e,t){let n=t.getModuleGraphModule(e).getOwnExports(),l=n.map(e=>e.variable).filter(e=>!!e);if(0===n.length&&0===l.length)return[];let{isPreferSource:r}=e;return l.map(e=>{let t=r?e.identifier.position.source:e.identifier.position.transformed,n=t&&(0,h.qK)(t,f.Q);if(t&&n)return{range:n,options:{stickiness:1,inlineClassName:"tree-shaking-statement-declaration-identifier",isWholeLine:!1,showIfCollapsed:!0,hoverMessage:{supportHtml:!0,supportThemeIcons:!0,isTrusted:!0,value:function(e){let t=e.getExportInfo();if(!t)return"Can not find SideEffect info.";let n=t.getSideEffects();if(0===n.length)return"Have no sideEffect.";let l=`Used **${n.length}** times:
|
|
6
|
+
(2) If you use lite mode, there will not have source codes.`}),I=e=>{let{data:t}=e,[n,i]=(0,S.useState)(""),{t:s}=(0,P.useI18n)(),o={source:"Source Code",transformed:`Transformed Code(${s("After Compile")})`,parsedSource:`Bundled Code(${s("After Bundled")})`};if(!t)return null;let{path:d}=t;return(0,l.jsx)(N.hX,{text:"",buttonProps:{size:"small",icon:(0,l.jsx)(c.A,{content:"Open the Codes Box",children:(0,l.jsx)(r.A,{})}),type:"default"},buttonStyle:{padding:"0 4px"},drawerProps:{destroyOnClose:!0,title:`Code of "${d}"`},children:(0,l.jsx)(z.zW,{api:a.SDK.ServerAPI.API.GetModuleCodeByModuleId,body:{moduleId:t.id},children:e=>(0,l.jsx)(l.Fragment,{children:e.source||e.parsedSource||e.transformed?(0,l.jsx)(u.A,{className:"code-size-card",style:{width:"100%"},tabList:Object.keys((0,y.z)(e,e=>!e)).map(e=>({tab:e})).map(e=>({...e,tab:o[e.tab],key:e.tab})),defaultActiveTabKey:e.parsedSource?"parsedSource":"source",onTabChange:e=>i(e),tabBarExtraContent:(0,l.jsx)(c.A,{placement:"bottom",title:(0,l.jsx)(h.A.Title,{level:5,children:"Explain"}),content:(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",marginBottom:30},children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(h.A.Text,{strong:!0,children:"Source: "}),(0,l.jsx)(h.A.Text,{children:"source code"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(h.A.Text,{strong:!0,children:"Transformed:"}),(0,l.jsx)(h.A.Text,{children:"Transformed Code (After compile)"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)(h.A.Text,{strong:!0,children:"Bundled Source:"}),(0,l.jsx)(h.A.Text,{children:"Bundled Code (After bundle and tree-shaking)"})]}),(0,l.jsx)("br",{}),(0,l.jsx)(h.A.Text,{strong:!0,children:"More"}),(0,l.jsx)(h.A.Text,{children:s("CodeModeExplain")})]})}),trigger:"hover",children:(0,l.jsx)("a",{href:"#",children:"Explain"})}),styles:{body:{padding:0,overflow:"hidden"}},children:e.parsedSource||e.source||e.transformed?(0,l.jsx)(w.Cv,{isEmbed:!0,code:n?e[n]:e.parsedSource?e.parsedSource:e.source,filePath:d}):(0,l.jsx)(B,{})}):(0,l.jsx)(B,{})})})})},F=e=>{let{id:t,show:n,setShow:r,cwd:i}=e;return t?(0,l.jsx)(z.zW,{api:a.SDK.ServerAPI.API.GetAllModuleGraph,body:{},children:e=>(0,l.jsx)(R.u,{cwd:i,moduleId:t,modules:e,show:n,setShow:r})}):null},$="__RESOURCEPATH__",G=e=>{let{modules:t,chunks:n,filteredModules:r}=e,{sourceSize:s,parsedSize:a,filteredParsedSize:o,filteredSourceSize:d}=(0,S.useMemo)(()=>({sourceSize:(0,A.x)(t,e=>e.size.sourceSize),parsedSize:(0,A.x)(t,e=>e.size.parsedSize),filteredSourceSize:(0,A.x)(r,e=>e.size.sourceSize),filteredParsedSize:(0,A.x)(r,e=>e.size.parsedSize)}),[t,r]);return(0,l.jsxs)(p.A,{children:[(0,l.jsx)(x.A,{title:`total modules count is ${t.length}, the filtered modules count is ${r.length}`,children:(0,l.jsxs)(p.A,{children:[(0,l.jsxs)(h.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules: ",r.length," / ",t.length]}),(0,l.jsx)(i.A,{})]})}),(0,l.jsx)(m.A,{type:"vertical"}),(0,l.jsx)(x.A,{title:(0,l.jsxs)(p.A,{direction:"vertical",children:[(0,l.jsxs)(h.A.Text,{style:{color:"inherit"},children:["Total modules bundled size: ",(0,P.formatSize)(a)]}),(0,l.jsxs)(h.A.Text,{style:{color:"inherit"},children:["Total modules source size: ",(0,P.formatSize)(s)]}),(0,l.jsxs)(h.A.Text,{style:{color:"inherit"},children:["Filtered modules bundled size: ",(0,P.formatSize)(o)]}),(0,l.jsxs)(h.A.Text,{style:{color:"inherit"},children:["Filtered modules source size: ",(0,P.formatSize)(d)]})]}),children:(0,l.jsxs)(p.A,{children:[(0,l.jsxs)(h.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Modules Size:",o===a?(0,P.formatSize)(a):`${(0,P.formatSize)(o)} / ${(0,P.formatSize)(a)}`]}),(0,l.jsx)(i.A,{})]})}),(0,l.jsx)(m.A,{type:"vertical"}),(0,l.jsx)(x.A,{title:(0,l.jsxs)(p.A,{direction:"vertical",children:[(0,l.jsxs)(h.A.Text,{style:{color:"inherit"},children:["this asset includes ",n.length," chunks:"]}),n.map(e=>(0,l.jsx)(C.Ex,{label:"chunk",value:e.name},e.name))]}),children:(0,l.jsxs)(p.A,{children:[(0,l.jsxs)(h.A.Text,{type:"secondary",style:{fontSize:12,fontWeight:400},children:["Chunks: ",n.length]}),(0,l.jsx)(i.A,{})]})})]})},W=e=>{let{moduleCount:t}=e;return(0,l.jsx)(x.A,{title:(0,l.jsx)(p.A,{children:(0,l.jsxs)(h.A.Text,{style:{color:"inherit"},children:["This is a concatenated container module that includes ",t," ","modules"]})}),children:(0,l.jsx)(f.A,{color:"blue",style:_,children:"concatenated container"})})},H=e=>{let{size:t}=e;return(0,l.jsx)(x.A,{title:(0,l.jsx)(p.A,{children:(0,l.jsx)(h.A.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,l.jsx)(f.A,{style:_,color:"geekblue",children:`bundled size: ${(0,P.formatSize)(t)}`})})},V=e=>{let{size:t}=e;return(0,l.jsx)(x.A,{title:(0,l.jsx)(p.A,{children:(0,l.jsx)(h.A.Text,{style:{color:"inherit"},children:"The final output size of this file. If you enabled minification, this value shows the minified size."})}),children:(0,l.jsx)(f.A,{color:"geekblue",children:`bundled size: ${(0,P.formatSize)(t)}`})})},U=e=>{let{size:t}=e;return(0,l.jsx)(x.A,{title:(0,l.jsx)(p.A,{children:(0,l.jsx)(h.A.Text,{style:{color:"inherit"},children:"The compressed file size that users actually download, as most web servers use gzip compression."})}),children:(0,l.jsx)(f.A,{color:"orange",children:`gzipped: ${(0,P.formatSize)(t)}`})})},K=e=>{let{size:t}=e;return(0,l.jsx)(x.A,{title:(0,l.jsx)(p.A,{children:(0,l.jsx)(h.A.Text,{style:{color:"inherit"},children:"The total original size of all the files in this folder, before any transformations and minification."})}),children:(0,l.jsx)(f.A,{style:_,color:"cyan",children:`source size: ${(0,P.formatSize)(t)}`})})},q=e=>{let{size:t}=e;return(0,l.jsx)(x.A,{title:(0,l.jsx)(p.A,{children:(0,l.jsx)(h.A.Text,{style:{color:"inherit"},children:"The original size of this file, before any transformations and minification."})}),children:(0,l.jsx)(f.A,{color:"cyan",children:`source size: ${(0,P.formatSize)(t)}`})})},Q=e=>{let{asset:t,chunks:n,modules:r,moduleSizeLimit:i,height:o,root:y}=e,[w,C]=(0,S.useState)(""),[z,N]=(0,S.useState)(!1),[R,_]=(0,S.useState)([]),[B,Q]=(0,S.useState)(!1),J=(0,S.useMemo)(()=>{let e=r.slice();if(w){let t=RegExp(w,"i");e=e.filter(e=>t.test(e.path))}return i&&(e=e.filter(e=>e.size.parsedSize>=i)),e},[r,w,i]),Z=(0,S.useMemo)(()=>(0,P.createFileStructures)({files:J.map(e=>e.path).filter(Boolean),inlinedResourcePathKey:$,fileTitle(e,t){var n;let i=J.find(t=>t.path===e);if(!i)return t;let{parsedSize:s=0,sourceSize:o=0,gzipSize:d=0}=i.size,u=i.kind===a.SDK.ModuleKind.Concatenation,g=!u&&0===s&&r.filter(e=>e!==i&&e.modules&&e.modules.indexOf(i.id)>-1);return(0,l.jsxs)("div",{className:O.A["bundle-tree"],children:[(0,l.jsx)(c.A,{content:`Open the ${t}’s module reasons tree.`,placement:"bottom",children:(0,l.jsxs)("div",{className:O.A.box,onClick:()=>{_([i.id]),Q(!0)},children:[(0,l.jsx)("div",{className:O.A.keywords,children:(0,l.jsx)(M.i,{ellipsis:!0,text:t,keyword:""})}),(0,l.jsx)("div",{className:O.A.dividerDiv,children:(0,l.jsx)(m.A,{className:O.A.divider,dashed:!0})})]})}),(0,l.jsxs)(p.A,{children:[0!==s?(0,l.jsx)(l.Fragment,{children:"number"==typeof d?(0,l.jsx)(c.A,{placement:"bottom",content:(0,l.jsx)(q,{size:o}),children:(0,l.jsxs)(p.A,{direction:"horizontal",children:[(0,l.jsx)(V,{size:s}),(0,l.jsx)(U,{size:d})]})}):(0,l.jsxs)(p.A,{direction:"horizontal",children:[(0,l.jsx)(V,{size:s}),(0,l.jsx)(q,{size:o})]})}):0!==o?(0,l.jsx)(q,{size:o}):null,u?(0,l.jsx)(W,{moduleCount:(null==(n=i.modules)?void 0:n.length)||0}):null,g&&g.length?(0,l.jsx)(x.A,{title:(0,l.jsxs)(p.A,{direction:"vertical",children:[(0,l.jsx)(h.A.Text,{style:{color:"inherit"},children:"This module is concatenated into another container module:"}),g.map(e=>{let{id:t,path:n}=e;if((0,P.isJsDataUrl)(n))return(0,l.jsx)(h.A.Paragraph,{ellipsis:{rows:4},style:{color:"inherit",maxWidth:"100%"},code:!0,children:n},t);let r=(0,b.relative)((0,b.dirname)(i.path),n);return r.startsWith("javascript;charset=utf-8;base64,")?(0,l.jsx)(h.A.Text,{style:{color:"inherit",maxWidth:"100%"},code:!0,children:"."===r[0]?r:`./${r}`},t):(0,l.jsx)(h.A.Text,{style:{color:"inherit"},code:!0,children:"."===r[0]?r:`./${r}`},t)})]}),children:(0,l.jsx)(f.A,{color:"green",children:"concatenated"})}):null,(0,l.jsx)(I,{data:i})]})]})},dirTitle(e,t){let n=function e(t,n){return t.children&&t.children.forEach(t=>{t.isLeaf?n.push(t[$]):e(t,n)}),n}(e,[]);if(n.length){let e=n.map(e=>r.find(t=>t.path===e)),i=(0,A.x)(e,e=>{var t;return(null==(t=e.size)?void 0:t.parsedSize)||0}),s=(0,A.x)(e,e=>{var t;return(null==(t=e.size)?void 0:t.sourceSize)||0});return(0,l.jsxs)("div",{className:O.A["bundle-tree"],children:[(0,l.jsxs)("div",{className:O.A.box,children:[(0,l.jsx)("div",{className:O.A.keywords,children:(0,l.jsx)(M.i,{ellipsis:!0,text:t,keyword:""})}),(0,l.jsx)("div",{className:O.A.dividerDiv,children:(0,l.jsx)(m.A,{className:O.A.divider,dashed:!0})})]}),(0,l.jsx)(p.A,{children:i>0?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(H,{size:i}),(0,l.jsx)(K,{size:s})]}):(0,l.jsx)(K,{size:s})})]})}return t},page:"bundle"}),[J]);return(0,S.useEffect)(()=>{C(""),N(!1)},[t]),(0,S.useEffect)(()=>{N(!1)},[w]),(0,l.jsx)(E.C.Provider,{value:{moduleJumpList:R,setModuleJumpList:_},children:(0,l.jsxs)(u.A,{className:O.A.bundle,title:`Modules of "${t.path}"`,bodyStyle:{minHeight:o},size:"small",children:[r.length?(0,l.jsxs)(g.A,{children:[(0,l.jsx)(j.A,{span:24,children:(0,l.jsx)(G,{modules:r,chunks:n,filteredModules:J})}),(0,l.jsx)(j.A,{span:24,children:(0,l.jsxs)(p.A,{children:[(0,l.jsx)(k.E,{placeholder:"search module by keyword",onChange:e=>C(e)},t.path),(0,l.jsx)(v.Ay,{onClick:()=>N(!0),size:"small",icon:(0,l.jsx)(s.A,{})})]})}),(0,l.jsx)(j.A,{span:24,style:{marginTop:T.or.BasePadding},children:J.length?(0,l.jsx)(D,{selectable:!1,defaultExpandAll:z||J.length<=20,onExpand:e=>{L=e},defaultExpandParent:!0,defaultExpandedKeys:(null==L?void 0:L.length)?L:1===Z.length?[Z[0].key]:[],treeData:Z,rootStyle:{maxHeight:"500px",overflow:"auto",border:"1px solid rgba(235, 237, 241)",padding:"14px 20px"}},`tree_${w}_${z}_${t.path}`):(0,l.jsx)(d.A,{description:(0,l.jsx)(h.A.Text,{strong:!0,children:`"${w}" can't match any modules`})})})]}):(0,l.jsx)(d.A,{description:(0,l.jsx)(h.A.Text,{strong:!0,children:`"${t.path}" doesn't have any modules`})}),(0,l.jsx)(F,{id:(null==R?void 0:R.length)?R[R.length-1]:"",show:B,setShow:Q,cwd:y})]})})}},35410:function(e,t,n){n.d(t,{k:()=>O});var l=n(65723),r=n(22155),i=n(95587),s=n(88415),a=n(95154),o=n(28695),d=n(8879),c=n(83397),u=n(37622),h=n(59531),p=n(79740),x=n(128),m=n(49249),f=n(98369),g=n(6048),j=n(81489),v=n(20317),y=n(1361),A=n(22185),b=n(70054);let S="dataContainer-lJ0PuO",w="title-Gj8JxL",C="description-miJCbD",{DirectoryTree:k}=i.A,M=e=>{let{files:t,total:n,showProgress:i=!1,type:s}=e,a=s.toLocaleLowerCase(),o=(0,r.useMemo)(()=>(0,v.x)(t,e=>e.size),[t]);return(0,l.jsx)(b.zW,{api:c.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let r=a.includes("image")?"imgs":a,{treeData:s}=(0,A.oc)(e[r].total);return(0,l.jsxs)(f.A,{style:{height:100},align:"center",children:[(0,l.jsx)(g.A,{type:"circle",percent:+(o/n*100).toFixed(2),strokeColor:{"0%":"#108ee9","100%":"#108ee9"},strokeWidth:12,format:e=>(0,l.jsxs)("div",{className:"percentContainer-VJxs6L",children:[(0,l.jsxs)("span",{style:{marginTop:"10px"},children:[e,"%"]}),(0,l.jsxs)("span",{className:"percentDescription-ymSkb_",children:["total ",r]})]})}),(0,l.jsxs)("div",{style:{marginLeft:"10px"},children:[(0,l.jsxs)("div",{className:S,children:[(0,l.jsx)("div",{className:w,children:"Size"}),(0,l.jsx)("div",{className:C,children:(0,x.formatSize)(o)})]}),(0,l.jsx)(y.hX,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},drawerProps:{title:"Files"},text:(0,l.jsx)(f.A,{style:{textAlign:i?"left":"center"},align:"end",children:(0,l.jsx)(f.A,{direction:"vertical",children:(0,l.jsx)("div",{className:S,children:(0,l.jsxs)("div",{className:w,children:[(0,l.jsx)("span",{style:{marginRight:"5px"},children:"Files"}),(0,l.jsx)(u.A,{})]})})})}),children:s.length?(0,l.jsx)(k,{defaultExpandAll:!0,selectable:!1,treeData:s,rootStyle:{minHeight:"800px",border:"1px solid rgba(235, 237, 241)"}}):(0,l.jsx)("div",{style:{position:"relative",top:"50%",transform:"translateY(-50%)"},children:(0,l.jsx)(j.A,{style:{height:"100%"}})})}),(0,l.jsx)("div",{className:C,children:t.length})]})]})}})};var z=n(83819);let{DirectoryTree:N}=i.A,{useToken:T}=s.A,{innerWidth:P}=window,R=e=>{let{showProgress:t=!1,data:n,total:r,tagBgColor:i,type:s}=e,{token:a}=T(),o=i||a.colorPrimaryBorderHover;return(0,l.jsx)(M,{type:s,files:n.files,total:r,showProgress:t,tagBgColor:o})},E=e=>{let{titles:t,datas:n,bgColor:i,type:s}=e,[o,d]=(0,r.useState)(t[0]),c=(0,r.useMemo)(()=>t.indexOf(o),[t,o]),u=c>=0?c:0,h=s||o||t[0],p=u>=0&&u<n.length?n[u]:n[0]||{};return(0,l.jsx)(m.j,{title:(0,l.jsxs)("div",{className:"cardTitle-xNmEfV",children:[(0,l.jsx)("div",{className:"title-qIR7dd",children:h}),t.length>1?(0,l.jsx)(a.A,{defaultValue:t[0],options:t,onChange:e=>{d(e)},size:"small",style:{transition:"transform 0.3s ease"},value:o}):null]}),value:(0,l.jsx)(R,{type:h,...p,tagBgColor:null==i?void 0:i.tagBgColor}),boxProps:{style:{background:null==i?void 0:i.bgColor,width:P>1300?"80%":"95%"}}})},O=e=>{let{errors:t,summary:n}=e,r=(0,x.useDuplicatePackagesByErrors)(t),[i,s]=(0,x.formatSize)(n.all.total.size).split(" "),a=[(0,l.jsx)(E,{type:"JS",titles:["Total","Initial"],datas:[{data:n.js.total,total:n.all.total.size,showProgress:!0},{data:n.js.initial,total:n.all.total.size,showProgress:!0}]}),(0,l.jsx)(E,{type:"CSS",titles:["Total","Initial"],datas:[{data:n.css.total,total:n.all.total.size,showProgress:!0},{data:n.css.initial,total:n.all.total.size,showProgress:!0}]}),(0,l.jsx)(E,{titles:["Images","Fonts","Media"],datas:[{data:n.imgs.total,total:n.all.total.size,showProgress:!0},{data:n.fonts.total,total:n.all.total.size,showProgress:!0},{data:n.media.total,total:n.all.total.size,showProgress:!0}]}),(0,l.jsx)(E,{type:"HTML",titles:["HTML Files"],datas:[{data:n.html.total,total:n.all.total.size,showProgress:!0}]})];return(0,l.jsx)(b.zW,{api:c.SDK.ServerAPI.API.GetAssetsSummary,body:{withFileContent:!1},children:e=>{let{treeData:t}=(0,A.oc)(e.all.total);return(0,l.jsxs)("div",{className:"container-wODg_6",children:[(0,l.jsxs)("div",{className:"summary-zj0ygd",children:[(0,l.jsx)(z.h,{title:(0,l.jsx)(y.hX,{buttonProps:{size:"small"},buttonStyle:{fontSize:"inherit"},drawerProps:{title:"Files"},text:(0,l.jsxs)("div",{style:{color:"#000000a6"},children:[(0,l.jsx)("span",{style:{marginRight:"5px"},children:"Total Files"}),(0,l.jsx)(u.A,{})]}),children:(0,l.jsx)(N,{defaultExpandAll:!0,selectable:!1,treeData:t,rootStyle:{minHeight:"800px",border:"1px solid rgba(235, 237, 241)"}})}),description:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"description-o0ffpO",children:i}),(0,l.jsx)("span",{className:"unit-n5Yty6",children:s}),(0,l.jsxs)("div",{className:"totalNumber-UweUl8",children:[(0,l.jsx)("span",{style:{marginRight:"7px"},children:"Number of files"}),(0,l.jsx)("span",{style:{fontWeight:500},children:n.all.total.count})]})]}),icon:(0,l.jsx)(o.A,{style:{background:"#3874F6"},shape:"circle",icon:(0,l.jsx)(h.A,{style:{fontSize:"18px"}})}),style:{marginBottom:"12px",minWidth:"210px"}}),(0,l.jsx)(z.h,{style:{minWidth:"210px"},title:(0,l.jsx)("div",{style:{margin:"4px 0"},children:(0,l.jsx)("span",{style:{marginRight:"5px"},children:"Duplicate Packages"})}),description:r.length,icon:(0,l.jsx)(o.A,{style:{background:"#13C2C2"},shape:"circle",icon:(0,l.jsx)(p.A,{style:{fontSize:"18px"}})})})]}),(0,l.jsx)(d.A,{style:{height:"200px"},type:"vertical"}),(0,l.jsx)("div",{className:"chartsContainer-msRyOd",children:a.map((e,t)=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"chart-GmBMa_",children:e},t),t!==a.length-1?(0,l.jsx)(d.A,{style:{height:"200px"},type:"vertical"},`${t}-divider`):null]}))})]})}})}},89405:function(e,t,n){n.d(t,{A:()=>l});let l={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"}},14303:function(e,t,n){n.d(t,{s:()=>j});var l=n(65723),r=n(22155),i=n(98204),s=n(31786),a=n(92554),o=n(37080),d=n(81489),c=n(1836),u=n(64430),h=n(31448),p=n(79763),x=n(83397),m=n(89405),f=n(98426);let{Search:g}=i.A,j=e=>{let{onModuleClick:t,onClose:n,open:i,setOpen:c,isIcon:u=!1}=e,[h,j]=(0,r.useState)(!1),[y,A]=(0,r.useState)(""),[b,S]=(0,r.useState)(""),w=void 0!==i?i:h,C=c||j,k=(0,r.useCallback)(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[l,r]=t;A(l)},[]),M=()=>{C(!0)},z=()=>{C(!1),null==n||n()},N=()=>{C(!1),null==n||n()};return(0,l.jsxs)(l.Fragment,{children:[u?(0,l.jsx)(f.A,{onClick:M}):(0,l.jsx)(s.Ay,{className:m.A["search-btn"],color:"cyan",onClick:M,children:"Search Module"}),(0,l.jsx)(p.zW,{api:x.SDK.ServerAPI.API.GetSearchModules,body:{moduleName:String(y)},children:e=>{let r=Object.keys(e)[0];return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(a.A,{className:m.A.modal,title:"Search Modules",onOk:z,onCancel:N,open:w,width:"65rem",footer:"",children:[(0,l.jsx)(g,{placeholder:"input search module name",allowClear:!0,onSearch:k,style:{width:500}}),r?(0,l.jsx)(o.A,{defaultActiveKey:r,tabPosition:"top",onChange:e=>S(e),items:Object.keys(e).map((l,i)=>({label:e[l],key:l,children:v(y,b||r,e=>{null==t||t(e),C(!1),null==n||n()})}))}):(0,l.jsx)(d.A,{description:"No modules found."})]})})}})]})},v=(e,t,n)=>(0,l.jsx)(p.zW,{api:x.SDK.ServerAPI.API.GetSearchModuleInChunk,body:{moduleName:String(e),chunk:t},children:t=>(0,l.jsx)(l.Fragment,{children:(null==t?void 0:t.length)!==0?(0,l.jsx)(c.A,{className:m.A["search-modal-list"],loading:!t.length,itemLayout:"horizontal",pagination:{position:"bottom",align:"center"},dataSource:t,renderItem:t=>{let r=t.relativePath.split(e);return(0,l.jsx)(c.A.Item,{className:n?"search-list-item clickable":"search-list-item",onClick:n?()=>n(t):void 0,children:(0,l.jsx)(u.A,{avatar:!0,title:!1,loading:!t.path,active:!0,children:(0,l.jsx)(c.A.Item.Meta,{description:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(h.A.Text,{code:!0,children:"Module:"}),r.map((t,n)=>n<r.length-1?(0,l.jsxs)(h.A.Text,{style:{fontWeight:200},children:[t,(0,l.jsx)(h.A.Text,{strong:!0,style:{fontWeight:600},children:e},`${t}-${n}-strong`)]},`${t}-${n}`):(0,l.jsx)(h.A.Text,{style:{fontWeight:200},children:t}))]})},`${t.path}-${t.relativePath}-meta`)})},`${t.path}-${t.relativePath}`)}}):(0,l.jsx)(d.A,{})})})},3930:function(e,t,n){n.d(t,{C:()=>l});let l=(0,n(22155).createContext)({setModuleJumpList(e){},moduleJumpList:[]})},84141:function(e,t,n){n.d(t,{w:()=>L,u:()=>B});var l,r=n(65723),i=n(83397),s=n(81234),a=n(31448),o=n(20772),d=n(98369),c=n(28342),u=n(36147),h=n(63079),p=n(84585),x=n(22155),m=n(70054),f=n(128),g=n(3930),j=n(81489),v=n(64801),y=n(43928),A=n(82552),b=n(79002),S=n(32619),w=n(44644),C=n(96800);let k="file-tree-com",M=e=>{let{treeData:t,needJumpto:n=!1,defaultOpened:l=!1,defaultOpenFather:i=0}=e,{required:s,handlers:o}=(0,w.pk)({id:`${k}-tree`,data:t||[],defaultOpened:l,multipleSelect:!1,refreshAsyncNodes:!0}),u=(0,x.useCallback)(e=>{var t;let{node:l,onToggle:s}=e;i&&l.data.level<i&&l.setOpened(!0);let o=(0,C.C)(l.data.name);return(0,r.jsx)("div",{className:`${k}-titles-box`,children:(0,r.jsx)("div",{className:`${k}-titles`,children:(0,r.jsx)(d.A,{direction:"vertical",children:(0,r.jsx)("div",{className:`${k}-node-title`,children:(0,r.jsxs)(d.A,{children:[(0,r.jsx)("div",{onClick:s,children:(0,r.jsxs)(d.A,{children:[!l.options.opened&&(null==(t=l.data.children)?void 0:t.length)?(0,r.jsx)(A.A,{style:{color:"lightblue"}}):(0,r.jsx)(b.A,{style:{color:"lightblue"}}),o,(0,r.jsx)(c.A,{content:(0,r.jsx)(r.Fragment,{children:l.data.__RESOURCEPATH__?(0,r.jsx)(a.A.Text,{code:!0,children:l.data.__RESOURCEPATH__},`${l.data.name}-popover-path`):(0,r.jsx)(r.Fragment,{})}),title:"INFO",trigger:"hover",children:(0,r.jsx)(a.A.Text,{children:l.data.name})},`${l.data.name}popover`)]})}),(0,r.jsx)(d.A,{children:n&&(0,r.jsx)(g.C.Consumer,{children:e=>{let{moduleJumpList:t,setModuleJumpList:n}=e;return(0,r.jsx)(S.A,{onClick:()=>{let e=[...t];e.push(+l.id),n(e)}})}})})]})})})})},l.data.name)},[]);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(w.Ay,{...s,...o,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:u})})};i.Client.RsdoctorClientRoutes.ModuleAnalyze;let z="module-analyze";var N=n(32792);let T=(0,x.memo)(e=>{let{dependencies:t,cwd:n,module:l}=e,i=(0,x.useMemo)(()=>{let e=l.dependencies.map(e=>{let n=t.find(t=>t.id===e);if(n)return{__RESOURCEPATH__:n.resolvedRequest||"",id:n.dependency,key:n.resolvedRequest,name:(0,f.getShortPath)(n.resolvedRequest)||"",level:1,kind:n.kind,concatModules:void 0}});return N.AP.compact(e)},[l]);return(0,r.jsx)(h.A,{justify:"start",align:"middle",children:(0,r.jsx)(p.A,{span:24,children:i.length?(0,r.jsx)(M,{treeData:i,needJumpto:!0,cwd:n}):(0,r.jsx)(j.A,{})})})}),P=(e,t)=>{var n;if(null==e||null==(n=e.imported)?void 0:n.length){let n=e.imported.map(e=>t.find(t=>t.id===Number(e)));return N.AP.compact(n)}return[]},R=e=>{var t;let{curModule:n,modules:l,dependencies:i,cwd:s,activeTabKey:a,selectedChunk:o=""}=e,[d,u]=(0,x.useState)([]),{data:h}=(0,x.useMemo)(()=>d&&(null==d?void 0:d.length)?{data:N.AP.compact(null==d?void 0:d.map((e,t)=>({key:`0-${t}`,name:(0,f.getShortPath)(e.path),__RESOURCEPATH__:e.path,id:e.id,level:1,chunks:e.chunks,size:(0,f.formatSize)(e.size.parsedSize),kind:e.kind,concatModules:e.concatenationModules,fatherPath:(0,f.getShortPath)(n.path),dependencies:e.dependencies,getChildren:()=>(function e(t,n,l){let r=P(t,n);return null==r?void 0:r.map((r,i)=>({key:`0-${i}`,name:(0,f.getShortPath)(r.path),__RESOURCEPATH__:r.path,id:r.id,level:1,size:(0,f.formatSize)(r.size.parsedSize),kind:r.kind,chunks:r.chunks,concatModules:r.concatenationModules,fatherPath:(0,f.getShortPath)(l.path),dependencies:r.dependencies,getChildren:()=>e(r,n,t),children:r.imported}))})(e,l,n),children:e.imported})))}:{filterData:[],data:[]},[d,n]);return(0,x.useEffect)(()=>{u(P(n,l))},[n,l]),(0,r.jsx)(r.Fragment,{children:a===L[L.Reasons]?(0,r.jsx)(r.Fragment,{children:d?(0,r.jsx)(M,{cwd:s,treeData:h,needCode:!0,needShowAllTree:!0,needJumpto:!0,selectedChunk:o}):(0,r.jsx)(j.A,{className:`${z}-empty`})}):a===L[L.Dependencies]?(0,r.jsx)("div",{className:`${z}-file-tree`,style:{padding:y.or.BasePadding/2},children:(0,r.jsx)(p.A,{span:24,style:{marginTop:y.or.BasePadding/2},children:n?(0,r.jsx)(T,{module:n,dependencies:i,cwd:s}):(0,r.jsx)(j.A,{className:`${z}-empty`})})}):(0,r.jsx)("div",{children:null==(t=n.bailoutReason)?void 0:t.map(e=>(0,r.jsx)("div",{style:{marginBottom:10},children:(0,r.jsx)(v.A,{children:(0,r.jsx)(c.A,{content:e,children:(0,r.jsx)("span",{style:{display:"inline-block"},children:e.length>120?`${e.slice(0,120)}...`:e})})},e)}))})})};var E=n(30964),O=n(54377),D=n(21416),L=((l={})[l.Reasons=0]="Reasons",l[l.Dependencies=1]="Dependencies",l[l.BailoutReason=2]="BailoutReason",l);let _=[{key:L[0],label:L[0]},{key:L[1],label:L[1]},{key:L[2],label:L[2]}],B=e=>{let{modules:t,cwd:n,moduleId:l,show:j,setShow:v}=e,[A,b]=(0,x.useState)(""),[S,w]=(0,x.useState)(L[0]);return(0,r.jsx)(m.zW,{api:i.SDK.ServerAPI.API.GetModuleDetails,body:{moduleId:+l},children:e=>{let{module:l,dependencies:x}=e;return(0,r.jsx)(s.A,{title:(0,r.jsxs)("div",{className:"module-analyze-box",children:[(0,r.jsx)(a.A.Text,{children:(0,f.getShortPath)(l.path)}),(0,r.jsx)(a.A.Text,{style:{fontSize:12,color:"rgba(0, 0, 0, 0.45)"},children:`Current Module: ${l.path}`})]}),open:j,maskClosable:!0,width:.8*y.Y7,onClose:()=>v(!1),children:(0,r.jsx)(m.zW,{api:i.SDK.ServerAPI.API.GetAllChunkGraph,body:{},children:e=>(0,r.jsx)(g.C.Consumer,{children:e=>{let{moduleJumpList:i,setModuleJumpList:s}=e;return(0,r.jsx)(o.A,{style:{minHeight:400},tabList:_,activeTabKey:S,tabProps:{size:"small",style:{fontSize:12}},onTabChange:e=>w(e),styles:{title:{paddingTop:0}},title:(0,r.jsxs)(d.A,{style:{padding:"10px 0px"},children:[(0,r.jsx)(E.A,{onClick:()=>{s([...i.slice(0,-1)])}}),(0,r.jsx)(a.A.Text,{children:"Current Module Imported Reasons Tree"}),(0,r.jsx)(c.A,{content:(0,r.jsx)("div",{children:(0,r.jsxs)("div",{children:[(0,r.jsx)(u.A,{status:"success",text:" "}),(0,r.jsx)(O.A,{}),(0,r.jsx)(a.A.Text,{children:": Jump button, click to jump to the Module dependency analysis page of this module."})]})}),title:"Usage",children:(0,r.jsx)(D.A,{})})]}),children:(0,r.jsx)(h.A,{justify:"start",align:"middle",children:(0,r.jsx)(p.A,{span:24,children:(0,r.jsx)(R,{curModule:l,modules:t,dependencies:x,cwd:n,selectedChunk:A,activeTabKey:S})})})})}})})})}})}},14752:function(e,t,n){n.d(t,{A:()=>l});let l={overall:"overall-MGHzQh",layout:"layout-izKUgB",row:"row-RDk0Pl"}},23308:function(e,t,n){n.d(t,{X:()=>s});var l=n(65723),r=n(38238);n(22155);var i=n(14752);let s=e=>{let{children:t}=e;return(0,l.jsx)(r.A,{vertical:!0,className:i.A.layout,children:t.map(e=>(0,l.jsx)("div",{className:i.A.row,children:e}))})}},59229:function(e,t,n){n.d(t,{wE:()=>ej,YW:()=>ev});var l,r,i=n(65723),s=n(22155),a=n(75573),o=n(26316),d=n(98369),c=n(20772),u=n(31448),h=n(8879),p=n(31786),x=n(1661),m=n(37080),f=n(85189),g=n(31766),j=n(83397),v=n(43928),y=n(63079),A=n(84585),b=n(54352),S=n(128),w=n(1361),C=n(81489),k=n(46941),M=n(36643),z=n(55425),N=n(20317),T=n(64801),P=n(25659),R=n(10142),E=n(40056),O=n(95154),D=n(31465);let L=e=>{let{file:t,data:n}=e,[l,r]=(0,s.useState)(n[0].group),a=n.find(e=>e.group===l);return(0,i.jsxs)(y.A,{wrap:!0,gutter:[v.or.BasePadding,v.or.BasePadding],style:{height:"100%",alignContent:"flex-start"},children:[n.length>1?(0,i.jsx)(A.A,{span:24,children:(0,i.jsx)(O.A,{value:l,options:n.map(e=>e.group),onChange:e=>r(e)})}):null,a?(0,i.jsxs)(s.Fragment,{children:[(0,i.jsx)(A.A,{span:24,children:(0,i.jsxs)(u.A.Text,{strong:!0,children:[a.baselineTitle||"Baseline"," ⟷"," ",a.currentTitle||"Current"]})}),(0,i.jsx)(A.A,{span:24,children:(0,i.jsx)(D.Mh,{originalFilePath:t,modifiedFilePath:t,original:a.baseline||"",modified:a.current||""})})]},l):null]})},_=e=>{let{text:t="View Changes",...n}=e;return(0,i.jsx)(w.hX,{text:t,buttonProps:{size:"small",icon:(0,i.jsx)(E.A,{})},drawerProps:{destroyOnClose:!0,title:`Content diff for "${n.file}"`},children:(0,i.jsx)(L,{...n})})};var B=((l={}).New="New",l.Changed="Changed",l.Deleted="Deleted",l.NotChanged="Not Changed",l),I=((r={}).Name="Sorted by Name",r.Size="Sorted by Size",r.Delta="Sorted by Delta",r),F=n(42868),$=n(98426),G=n(98204),W=n(82443);let H=(e,t,n,l)=>(0,i.jsx)(i.Fragment,{children:t-e==0?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)(u.A.Text,{strong:!0,style:{color:n===j.Client.RsdoctorClientDiffState.Up?v.Q1.Red:v.Q1.Green,...l},children:[n===j.Client.RsdoctorClientDiffState.Up?"+":"-",(0,S.formatSize)(Math.abs(t-e))]})});var V=n(32792);let U=/[a-fA-F0-9]{20,}/,K=(e,t,n)=>{let l=n?(e,n)=>{var l,r,i,s;return((null==(l=e.current)?void 0:l.size[t])||0)-((null==(r=e.baseline)?void 0:r.size[t])||0)-((null==(i=n.current)?void 0:i.size[t])||0)+((null==(s=n.baseline)?void 0:s.size[t])||0)}:(n,l)=>{var r,i;return((null==(r=n[e])?void 0:r.size[t])||0)-((null==(i=l[e])?void 0:i.size[t])||0)};return{width:200,sorter:(e,t)=>l(e,t),render:(n,l)=>{var r,s;if(!l[e])return"-";let a=l[e].size[t];return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:(0,S.formatSize)(a)}),"current"===e?H((null==(r=l.baseline)?void 0:r.size[t])||0,a,((null==(s=l.baseline)?void 0:s.size[t])||0)>a?j.Client.RsdoctorClientDiffState.Down:j.Client.RsdoctorClientDiffState.Up):null]})}}},q=(e,t,n)=>{let[l,r]=(0,s.useState)(!1),a="baseline"===e;return{title:()=>{let l=a?t:n,r=(0,W.Z)(e),s=V.TS.diffSize(t,n);return(0,i.jsxs)("div",{children:[(0,i.jsx)(u.A.Text,{children:r}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsx)(o.A,{title:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:[r," modules is ",l]}),a?null:(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["Percent is ",(0,S.formatPercent)(s.percent)]})]}),children:(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400},children:l}),(0,i.jsx)(f.A,{})]})})]})},children:[{title:"Source Size",...K(e,"sourceSize",l)},{title:"Parsed Size",defaultSortOrder:a?void 0:"descend",...K(e,"parsedSize",l)}],filterSearch:!0,filters:[{text:"Show Changed",value:B.NotChanged},{text:"Show All",value:"All"}],onFilter:(e,t)=>(e===B.NotChanged?r(!0):r(!1),e!==B.NotChanged||J(t)!==e)}},Q=e=>{let{data:t,baseline:n,current:l}=e,{modules:r}=n.moduleGraph,{modules:a}=l.moduleGraph,{chunks:c}=n.chunkGraph,{chunks:x}=l.chunkGraph,m=n.root,g=l.root,[j,y]=(0,s.useState)(""),A=(0,s.useRef)(null),b=(e,t)=>{t(),y(e[0])},w="__is_baseline__",C=(0,s.useMemo)(()=>t.baseline?V.TS.getModulesByAsset(t.baseline,c,r).map(e=>({...e,[w]:!0})).filter(e=>{var t;return!(null==(t=e.concatenationModules)?void 0:t.length)}):[],[t,n]),k=(0,s.useMemo)(()=>t.current?V.TS.getModulesByAsset(t.current,x,a).map(e=>({...e,[w]:!1})).filter(e=>{var t;return!(null==(t=e.concatenationModules)?void 0:t.length)}):[],[t,l]),z=e=>(0,S.beautifyModulePath)(e.path,e.__is_baseline__?m:g),N=(0,s.useMemo)(()=>{let e=[...C,...k],t=new Map;return e.forEach(e=>{var n,l;let r=(null==(n=e.webpackId)?void 0:n.replace(U,""))||(null==(l=e.path)?void 0:l.replace(U,"")),i=t.get(r);i||(i={path:r}),e[w]?i.baseline=e:i.current=e,t.set(r,i)}),[...t.values()]},[C,k,j]),{bModulesCount:P,cModulesCount:R,totalCount:E}=(0,s.useMemo)(()=>{let e=e=>z(e).alias.indexOf(j)>-1,t=N.filter(e=>e.baseline),n=N.filter(e=>e.current),l=N.length;return j&&(t=t.filter(e),n=n.filter(e),l=N.filter(e).length),{bModulesCount:t.length,cModulesCount:n.length,totalCount:l}},[N,j]);return(0,i.jsx)(M.A,{dataSource:N,rowKey:e=>e.path,size:"small",pagination:{size:"small"},bordered:!0,scroll:{x:1500},columns:[{fixed:"left",title:()=>(0,i.jsxs)("div",{children:[(0,i.jsxs)(u.A.Text,{children:["Modules of ",`"${t.alias}"`]}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsxs)(o.A,{title:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["filtered modules: ",E]}),(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["total modules: ",N.length]})]}),children:[(0,i.jsxs)(u.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[E,"/",N.length]}),(0,i.jsx)(f.A,{})]})]}),filterDropdown(e){let{setSelectedKeys:t,selectedKeys:n,confirm:l,clearFilters:r}=e;return(0,i.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,i.jsx)(G.A,{ref:A,placeholder:"Search by file name",value:n[0],onChange:e=>t(e.target.value?[e.target.value]:[]),onPressEnter:()=>b(n,l),style:{marginBottom:8,display:"block"}}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(p.Ay,{type:"primary",onClick:()=>b(n,l),icon:(0,i.jsx)($.A,{}),size:"small",style:{width:90},children:"Search"}),(0,i.jsx)(p.Ay,{onClick:()=>{r&&(r(),y("")),t([]),b([],l)},size:"small",style:{width:90},children:"Reset"})]})]})},filterSearch:!0,filterIcon:e=>(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{type:j?void 0:"secondary",style:{fontWeight:400},children:j||"Search by file name"}),(0,i.jsx)($.A,{style:{color:e?v.Q1.Blue:void 0}})]}),onFilterDropdownOpenChange:e=>{e&&setTimeout(()=>{var e;return null==(e=A.current)?void 0:e.focus()},100)},onFilter:(e,t)=>z(t).alias.indexOf(e)>-1,render:(e,t)=>{let{alias:n,inNodeModules:l}=z(t);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(o.A,{title:t.path,children:(0,i.jsx)(u.A.Text,{copyable:{text:t.path},children:n})}),l?(0,i.jsx)(T.A,{color:"warning",children:"node_modules"}):null,(0,i.jsx)(Z,{type:J(t)})]})}},q("current",P,R),q("baseline",P,R),{title:"Actions",width:200,render:(e,t)=>{var r,s,a,o,c,u,h,p,x,m,f,g;return(0,i.jsx)(d.A,{direction:"vertical",style:{maxWidth:170},children:(0,i.jsx)(_,{text:"View Changes",file:t.path,data:[{baseline:null==(r=n.moduleCodeMap[null==(s=t.baseline)?void 0:s.id])?void 0:r.source,current:null==(a=l.moduleCodeMap[null==(o=t.current)?void 0:o.id])?void 0:a.source,group:"Source"},{baseline:null==(c=n.moduleCodeMap[null==(u=t.baseline)?void 0:u.id])?void 0:c.transformed,current:null==(h=l.moduleCodeMap[null==(p=t.current)?void 0:p.id])?void 0:h.transformed,group:"Transformed Source"},{baseline:null==(x=n.moduleCodeMap[null==(m=t.baseline)?void 0:m.id])?void 0:x.parsedSource,current:null==(f=l.moduleCodeMap[null==(g=t.current)?void 0:g.id])?void 0:f.parsedSource,group:"Parsed Source"}]})})}}]})};function J(e){if(e.baseline&&!e.current)return B.Deleted;if(!e.baseline&&e.current)return B.New;if(e.baseline&&e.current)return e.baseline.size.sourceSize===e.current.size.sourceSize&&e.baseline.size.parsedSize===e.current.size.parsedSize?B.NotChanged:B.Changed;throw Error("Update Type not match")}let Z=e=>{let{type:t}=e;return t===B.NotChanged?(0,i.jsx)(o.A,{title:"It hasn't changed between Baseline and Current",children:(0,i.jsx)(T.A,{color:"success",children:"Not Changed"})}):t===B.Changed?(0,i.jsx)(o.A,{title:"It has been changed between Baseline and Current",children:(0,i.jsx)(T.A,{color:"warning",children:"Changed"})}):t===B.New?(0,i.jsx)(o.A,{title:"It is created in Current",children:(0,i.jsx)(T.A,{color:"error",children:"New"})}):t===B.Deleted?(0,i.jsx)(o.A,{title:"It has been deleted in Current",children:(0,i.jsx)(T.A,{color:"error",children:"Deleted"})}):null},Y=e=>{let{baseline:t,current:n}=e,l=(0,s.useMemo)(()=>(0,S.useUniqModules)(t.moduleGraph.modules),[t]),r=(0,s.useMemo)(()=>(0,S.useUniqModules)(n.moduleGraph.modules),[n]),a=t.chunkGraph.chunks,c=n.chunkGraph.chunks,p=t.root,x=n.root,[m,g]=(0,s.useState)(),[j,b]=(0,s.useState)([]),w=(0,s.useMemo)(()=>{let e={};return l.forEach(t=>{var n,l;let r=(null==(n=t.webpackId)?void 0:n.replace(U,""))||(null==(l=t.path)?void 0:l.replace(U,""));e[r]?console.warn("[Baseline Module Exists]: ",t,e):e[r]={path:r,baseline:t}}),r.forEach(t=>{var n,l;let r=(null==(n=t.webpackId)?void 0:n.replace(U,""))||(null==(l=t.path)?void 0:l.replace(U,""));e[r]||(e[r]={path:r}),e[r].current=t}),Object.values(e)},[l,r]),C=(0,s.useMemo)(()=>{let e=w.slice();return m&&(e=e.filter(e=>e.path.indexOf(m)>-1)),j.length&&(e=e.filter(e=>j.includes(J(e)))),e},[w,m,j]),{bFilteredModulesLength:N,cFilteredModulesLength:E}=(0,s.useMemo)(()=>({bFilteredModulesLength:C.filter(e=>e.baseline).length,cFilteredModulesLength:C.filter(e=>e.current).length}),[C]);return(0,i.jsxs)(y.A,{gutter:[v.or.BasePadding,v.or.BasePadding],children:[(0,i.jsx)(A.A,{span:24,children:(0,i.jsxs)(d.A,{wrap:!0,children:[(0,i.jsx)(R.E,{icon:(0,i.jsx)(P.A,{}),label:"",labelStyle:{width:45},placeholder:"Search by name",onChange:e=>{g(e)}}),(0,i.jsx)(k.A,{mode:"multiple",placeholder:"Filter by changed type",style:{width:200},options:Object.values(B).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{b(e)}})]})}),(0,i.jsx)(A.A,{span:24,children:(0,i.jsx)(M.A,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},scroll:{x:1700},dataSource:C,rowKey:e=>e.path,columns:[{fixed:"left",title:(0,i.jsxs)(o.A,{title:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["filtered modules is ",C.length," (Current & Baseline)"]}),(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["total modules is ",w.length," (Current & Baseline)"]})]}),children:[(0,i.jsx)(u.A.Text,{strong:!0,children:"Modules"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsxs)(u.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[C.length,"/",w.length]}),(0,i.jsx)(f.A,{})]}),render:(e,t)=>{let{alias:n,inNodeModules:l}=(0,S.beautifyModulePath)(t.path,t.baseline?p:x);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(o.A,{title:t.path,children:(0,i.jsx)(u.A.Text,{copyable:{text:t.path},children:n})}),(0,i.jsx)(Z,{type:J(t)}),l?(0,i.jsx)(T.A,{color:"warning",children:"node_modules"}):null]})}},q("current",N,E),q("baseline",N,E),{title:"in Assets",render:(e,t)=>{let n=[],l=[];return(t.current&&V.TS.getChunksByModule(t.current,c).forEach(e=>e.assets.forEach(e=>l.push(e))),t.baseline&&V.TS.getChunksByModule(t.baseline,a).forEach(e=>e.assets.forEach(e=>n.push(e))),n.length||l.length)?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,z.s)(l).filter(Boolean).map(e=>(0,i.jsx)(F.Ex,{label:"Current",value:e},`c_${e}`)),(0,z.s)(n).filter(Boolean).map(e=>(0,i.jsx)(F.Ex,{label:"Baseline",value:e},`b_${e}`))]}):null}},{title:"Actions",width:200,render:(e,l)=>{var r,s,a,o,c,u,h,p,x,m,f,g,j,v,y,A;let b=J(l)===B.Changed;return(0,i.jsxs)(d.A,{direction:"vertical",style:{maxWidth:170},children:[b?(0,i.jsx)(_,{text:"View Changes",file:l.path,data:[{baseline:null==(r=t.moduleCodeMap[null==(s=l.baseline)?void 0:s.id])?void 0:r.source,current:null==(a=n.moduleCodeMap[null==(o=l.current)?void 0:o.id])?void 0:a.source,group:"Source"},{baseline:null==(c=t.moduleCodeMap[null==(u=l.baseline)?void 0:u.id])?void 0:c.transformed,current:null==(h=n.moduleCodeMap[null==(p=l.current)?void 0:p.id])?void 0:h.transformed,group:"Transformed Source"},{baseline:null==(x=t.moduleCodeMap[null==(m=l.baseline)?void 0:m.id])?void 0:x.parsedSource,current:null==(f=n.moduleCodeMap[null==(g=l.current)?void 0:g.id])?void 0:f.parsedSource,group:"Parsed Source"}]}):null,(null==l?void 0:l.current)?(0,i.jsx)(_,{text:"Current Result Viewer",file:l.path,data:[{baseline:null==(j=n.moduleCodeMap[l.current.id])?void 0:j.source,current:null==(v=n.moduleCodeMap[l.current.id])?void 0:v.transformed,baselineTitle:"Current Source",currentTitle:"Current Transformed Source",group:"Transformed Source"},{baseline:null==(y=n.moduleCodeMap[l.current.id])?void 0:y.source,current:null==(A=n.moduleCodeMap[l.current.id])?void 0:A.parsedSource,baselineTitle:"Current Source",currentTitle:"Current Parsed Source",group:"Parsed Source"}]}):null]})}}]})})]})},X=e=>e.baseline&&e.current?e.baseline.map(e=>e.version).sort().join()===e.current.map(e=>e.version).sort().join()?B.NotChanged:B.Changed:e.baseline||e.current?e.baseline&&!e.current?B.Deleted:B.New:B.NotChanged,ee=e=>X(e)!==B.NotChanged,et=e=>{let{dataSource:t}=e,{newCount:n,deleteCount:l,changedCount:r}=(0,s.useMemo)(()=>({newCount:t.filter(e=>e.updateType===B.New).length,deleteCount:t.filter(e=>e.updateType===B.Deleted).length,changedCount:t.filter(e=>e.updateType===B.Changed).length}),[t]);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(F.Ex,{label:"New",value:n,type:n>0?"error":"default",tooltip:`Current has ${n} packages which not found in Baseline`}),(0,i.jsx)(F.Ex,{label:"Deleted",value:l,type:l>0?"error":"default",tooltip:`Current delete ${l} packages than Baseline`}),(0,i.jsx)(F.Ex,{label:"Changed",value:r,type:r>0?"error":"default",tooltip:`Current has ${r} changed packages than Baseline`})]})},en=e=>{let{baseline:t,current:n}=e,{packages:l=[]}=t||{},{packages:r=[]}=n||{},i={},s=(e,t)=>{i[e.name]||(i[e.name]={name:e.name,updateType:B.NotChanged}),i[e.name][t]||(i[e.name][t]=[]),i[e.name][t].push(e)};l.forEach(e=>s(e,"baseline")),r.forEach(e=>s(e,"current"));let a=[],o=[];return Object.values(i).forEach(e=>{ee(e)?a.push(e):o.push(e)}),a.concat(o).map(e=>({...e,updateType:X(e)}))},el=e=>{let{baseline:t,current:n}=e,{packages:l=[]}=t||{},{packages:r=[]}=n||{};if(!l.length&&!r.length)return(0,i.jsx)(C.A,{});let a=(0,s.useMemo)(()=>(0,z.s)(l.concat(r).map(e=>e.name)),[l,r]),[c,p]=(0,s.useState)([]),[x,m]=(0,s.useState)([]),f=(0,s.useMemo)(()=>en({baseline:t,current:n}),[t,n]),g=(0,s.useMemo)(()=>f.filter(e=>x.length?x.indexOf(e.updateType)>-1:!c.length||c.indexOf(e.name)>-1),[f,c,x]);return(0,i.jsxs)(y.A,{gutter:[v.or.BasePadding,v.or.BasePadding],children:[(0,i.jsx)(A.A,{span:24,style:{marginTop:16},children:(0,i.jsxs)(d.A,{wrap:!0,children:[(0,i.jsx)(k.A,{mode:"multiple",placeholder:"Filter by package names",style:{width:400},options:a.map(e=>{let t=f.find(t=>t.name===e);return t&&ee(t)?{label:(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:e}),(0,i.jsx)(Z,{type:X(t)})]}),value:e}:{label:e,value:e}}),allowClear:!0,onChange:e=>{p(e)}}),(0,i.jsx)(k.A,{mode:"multiple",placeholder:"Filter by changed type",style:{width:200},options:Object.values(B).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{m(e)}})]})}),(0,i.jsx)(A.A,{span:24,children:(0,i.jsx)(M.A,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},dataSource:g,rowKey:e=>e.name,columns:[{title:()=>(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:"Package Name"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsx)(o.A,{title:`Filtered Package Count is ${g.length}, Total Package Count is ${f.length}`,children:(0,i.jsxs)(u.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400},children:[g.length," / ",f.length]})})]}),render:(e,t)=>t.updateType!==B.NotChanged?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:t.name}),(0,i.jsx)(Z,{type:t.updateType})]}):t.name},{title:()=>(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:"Current"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsx)(et,{dataSource:f})]}),children:[{title:"Version",render:(e,t)=>t.current?(0,i.jsx)(d.A,{direction:"vertical",children:t.current.map(e=>(0,i.jsx)(F.Ex,{label:"version",value:e.version,tooltip:e.root,type:t.updateType===B.Deleted?"error":t.updateType===B.Changed?"warn":"default"},e.version))}):null},{title:"Parsed Size",render:(e,t)=>{let n=(0,N.x)(t.current,e=>e.size.parsedSize),l=()=>(0,i.jsx)(b.vh,{baseline:(0,N.x)(t.baseline,e=>e.size.parsedSize),current:n});return t.current?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{strong:t.updateType!==B.NotChanged,children:(0,S.formatSize)(n)}),(0,i.jsx)(l,{})]}):(0,i.jsx)(l,{})}}]},{title:"Baseline",children:[{title:"Version",render:(e,t)=>t.baseline?(0,i.jsx)(d.A,{direction:"vertical",children:t.baseline.map(e=>(0,i.jsx)(F.Ex,{label:"version",value:e.version,tooltip:e.root,type:t.updateType===B.Deleted?"error":t.updateType===B.Changed?"warn":"default"},e.version))}):null},{title:"Parsed Size",render:(e,t)=>{if(t.baseline){let e=(0,N.x)(t.baseline,e=>e.size.parsedSize);return(0,i.jsx)(u.A.Text,{children:(0,S.formatSize)(e)})}return null}}]}]})})]})},er=e=>{let{baseline:t,current:n,assetsDiffResult:l}=e,r=(0,S.useUniqModules)(t.moduleGraph.modules),s=(0,S.useUniqModules)(n.moduleGraph.modules),a=(0,S.useDuplicatePackagesByErrors)(t.errors),o=(0,S.useDuplicatePackagesByErrors)(n.errors),c=(0,S.useModuleGraph)(t.moduleGraph),h=(0,S.useModuleGraph)(n.moduleGraph),p=t.root,x=n.root,m=en({baseline:t.packageGraph,current:n.packageGraph}),f=[{title:["Bundle Size"],value:[l.all.total]},{title:["Total JS","Initial JS"],value:[l.js.total,l.js.initial]},{title:["Total CSS","Initial CSS"],value:[l.css.total,l.css.initial]},{title:["Images","Fonts","Media"],value:[l.imgs.total,l.fonts.total,l.media.total]},{title:["HTML"],value:[l.html.total]},{title:["Others"],value:[l.others.total]}];return(0,i.jsxs)(y.A,{gutter:[v.or.BasePadding,v.or.BasePadding],wrap:!0,style:{marginBottom:v.or.BasePadding},children:[f.map(e=>(0,i.jsx)(A.A,{style:{minWidth:335},children:(0,i.jsx)(b.aq,{titles:e.title,datas:e.value,showPercentInTitle:!0})},e.title.join(","))),(0,i.jsx)(A.A,{style:{minWidth:335},children:(0,i.jsx)(b.aq,{titles:["Duplicate Packages"],datas:[{size:{baseline:a.length,current:o.length},count:{baseline:a.length,current:o.length},percent:0,state:j.Client.RsdoctorClientDiffState.Equal}],formatter:(e,l)=>(0,i.jsx)(w.P6,{duplicatePackages:"baseline"===l?a:o,moduleGraph:"baseline"===l?c:h,cwd:"baseline"===l?p:x,buttonProps:{size:"small"},moduleCodeMap:"baseline"===l?t.moduleCodeMap:n.moduleCodeMap})})}),(0,i.jsx)(A.A,{style:{minWidth:335},children:(0,i.jsx)(b.aq,{titles:["Modules"],datas:[{size:{baseline:r.length,current:s.length},count:{baseline:r.length,current:s.length},percent:0,state:j.Client.RsdoctorClientDiffState.Equal}],formatter:(e,t)=>{if("baseline"===t)return e;let n=V.TS.diffSize(r.length,s.length);return(0,i.jsxs)(d.A,{style:{fontSize:"inherit"},children:[(0,i.jsx)(u.A.Text,{style:{fontSize:"inherit"},children:e}),(0,i.jsx)(b.QE,{...n})]})}})}),(0,i.jsx)(A.A,{style:{minWidth:335},children:(0,i.jsx)(b.aq,{titles:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{style:{color:"inherit"},children:"Packages"}),(0,i.jsx)(et,{dataSource:m})]},"0")],datas:[{size:{baseline:m.filter(e=>e.baseline).length,current:m.filter(e=>e.current).length},count:{baseline:m.filter(e=>e.baseline).length,current:m.filter(e=>e.current).length},percent:0,state:j.Client.RsdoctorClientDiffState.Equal}],formatter:(e,t)=>"baseline"===t?e:(0,i.jsx)(d.A,{children:e})})})]})},ei=e=>{let{assetsDiffResult:t}=e,n=[{type:"JS",data:t.js},{type:"CSS",data:t.css},{type:"Imgs",data:t.imgs},{type:"Fonts",data:t.fonts},{type:"Media",data:t.media},{type:"HTML",data:t.html},{type:"Others",data:t.others}];return(0,i.jsx)(M.A,{bordered:!0,pagination:!1,dataSource:n,rowKey:e=>e.type,style:{marginTop:v.or.BasePadding-v.or.BasePadding/4},columns:[{title:"File Type",dataIndex:"type",key:"type",render:e=>(0,i.jsx)(u.A.Text,{strong:!0,children:e})},{title:"Size",dataIndex:"data",key:"size",children:[{title:"Current",dataIndex:"data",key:"csize",render:e=>{let t=(0,i.jsxs)(s.Fragment,{children:[(0,i.jsx)(u.A.Text,{strong:!0,children:(0,S.formatSize)(e.total.size.current)}),(0,i.jsx)(b.QE,{percent:e.total.percent,state:e.total.state}),H(e.total.size.baseline,e.total.size.current,e.total.state)]});return e.initial?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Total"}),t]}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Initial"}),(0,i.jsx)(u.A.Text,{strong:!0,children:(0,S.formatSize)(e.initial.size.current)}),(0,i.jsx)(b.QE,{percent:e.initial.percent,state:e.initial.state}),H(e.initial.size.baseline,e.initial.size.current,e.initial.state)]})]}):(0,i.jsx)(d.A,{children:t})}},{title:"Baseline",dataIndex:"data",key:"bsize",render:e=>{let t=(0,i.jsx)(u.A.Text,{children:(0,S.formatSize)(e.total.size.baseline)});return e.initial?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Total"}),t]}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Initial"}),(0,i.jsx)(u.A.Text,{children:(0,S.formatSize)(e.initial.size.baseline)})]})]}):t}}]},{title:"Count",dataIndex:"data",key:"count",children:[{title:"Current",dataIndex:"data",key:"ccount",render:e=>{let t=(0,i.jsx)(u.A.Text,{strong:!0,children:e.total.count.current});return e.initial?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Total"}),t]}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Initial"}),(0,i.jsx)(u.A.Text,{strong:!0,children:e.initial.count.current})]})]}):(0,i.jsx)(d.A,{children:t})}},{title:"Baseline",dataIndex:"data",key:"bcount",render:e=>{let t=(0,i.jsx)(u.A.Text,{children:e.total.count.baseline});return e.initial?(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Total"}),t]}),(0,i.jsxs)(d.A,{children:[(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"Initial"}),(0,i.jsx)(u.A.Text,{children:e.initial.count.baseline})]})]}):(0,i.jsx)(d.A,{children:t})}}]}]})};var es=n(46201),ea=n(12168),eo=n(12199),ed=n(68794),ec=n(52762);let eu={JS:[j.Constants.JSExtension],CSS:[j.Constants.CSSExtension],HTML:[j.Constants.HtmlExtension],Imgs:j.Constants.ImgExtensions,Fonts:j.Constants.FontExtensions,Media:j.Constants.MediaExtensions,Others:[]},eh=Object.values(eu).flat(),ep=e=>{let{data:t}=e,n=(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{strong:!0,children:t.alias}),(0,i.jsx)(o.A,{title:(0,i.jsxs)(d.A,{style:{color:"inherit"},direction:"vertical",children:[t.current?(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["Current realpath: ",t.current.path]}):null,t.baseline?(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["Baseline realpath: ",t.baseline.path]}):null]}),children:(0,i.jsx)(f.A,{})})]});return t.baseline&&!t.current?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(es.A,{style:{color:v.Q1.Red}}),n]}):!t.baseline&&t.current?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(ea.A,{style:{color:v.Q1.Green}}),n]}):t.baseline&&t.current?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(eo.A,{style:{color:v.Q1.Yellow}}),n]}):n},ex=e=>{let{baseline:t,current:n,outputFilename:l}=e,[r,a]=(0,s.useState)(),[c,x]=(0,s.useState)([]),[m,g]=(0,s.useState)([]),[w,C]=(0,s.useState)(I.Size),[z,E]=(0,s.useState)(null),[O,D]=(0,s.useState)(null),{assets:L}=t.chunkGraph,{assets:F}=n.chunkGraph,$=(0,s.useMemo)(()=>{let e={};return z&&O?e.choose={alias:`${z}
|
|
7
|
+
${O}`,current:F.find(e=>e.path===O),baseline:L.find(e=>e.path===z)}:(L.forEach(t=>{let n=V.TS.formatAssetName(t.path,l);e[n]?console.warn("[Baseline Asset Exists]: ",t,e):e[n]={alias:n,baseline:t}}),F.forEach(t=>{let n=V.TS.formatAssetName(t.path,l);e[n]||(e[n]={alias:n}),e[n].current=t})),Object.values(e)},[L,F,z,O]),G=(0,s.useMemo)(()=>{let e=$.slice();if(r&&(e=e.filter(e=>e.alias.indexOf(r)>-1)),c.length){let t=c.map(e=>eu[e]).flat(),n=c.indexOf("Others")>-1;e=e.filter(e=>{let l=e.baseline||e.current;return!!V.TS.isAssetMatchExtensions(l,t)||!!n&&!V.TS.isAssetMatchExtensions(l,eh)})}if(m.length&&(e=e.filter(e=>e.baseline&&!e.current?m.includes(B.Deleted):!e.baseline&&e.current?m.includes(B.New):!!e.baseline&&!!e.current&&(e.baseline.size===e.current.size?m.includes(B.NotChanged):m.includes(B.Changed)))),w)if(w===I.Name)e.sort((e,t)=>e.alias.localeCompare(t.alias));else{let{prev:r,others:i}=e.reduce((e,t)=>(t.current?t.baseline?e.prev.unshift(t):e.prev.push(t):e.others.push(t),e),{prev:[],others:[]});e=[...r.sort((e,r)=>{if(r.current&&e.current){if(w===I.Delta){let{percent:i}=V.TS.diffAssetsByExtensions(t.chunkGraph,n.chunkGraph,t=>V.TS.formatAssetName(t.path,l)===e.alias),{percent:s}=V.TS.diffAssetsByExtensions(t.chunkGraph,n.chunkGraph,e=>V.TS.formatAssetName(e.path,l)===r.alias);return s-i}return r.current.size-e.current.size}return -1}),...i]}return e},[$,r,c,m,w]),W=(0,s.useMemo)(()=>(0,N.x)(G,e=>e.current?e.current.size:0)||0,[G]),U=(0,s.useMemo)(()=>(0,N.x)(G,e=>e.baseline?e.baseline.size:0)||0,[G]);return(0,i.jsxs)(y.A,{gutter:[v.or.BasePadding,v.or.BasePadding],children:[(0,i.jsxs)(A.A,{span:24,children:[(0,i.jsxs)(d.A,{wrap:!0,children:[(0,i.jsx)(R.E,{icon:(0,i.jsx)(P.A,{}),label:"",labelStyle:{width:45},placeholder:"Search by file name",onChange:e=>{a(e)}}),(0,i.jsx)(k.A,{mode:"multiple",placeholder:"Filter by file type",style:{width:250},options:Object.keys(eu).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{x(e)}}),(0,i.jsx)(k.A,{mode:"multiple",placeholder:"Filter by file changed type",style:{width:200},options:Object.values(B).map(e=>({label:e,value:e})),allowClear:!0,onChange:e=>{g(e)}}),(0,i.jsx)(k.A,{suffixIcon:(0,i.jsx)(ed.A,{}),options:Object.values(I).map(e=>({label:e,value:e})),value:w,onChange:e=>{C(e)}})]}),(0,i.jsxs)(y.A,{style:{marginTop:10},gutter:[6,6],children:[(0,i.jsx)(A.A,{children:(0,i.jsx)(p.Ay,{children:"Select Baseline Asset and Current Asset to Diff "})}),(0,i.jsx)(A.A,{children:(0,i.jsx)(k.A,{allowClear:!0,placeholder:"select baseline assets",showSearch:!0,style:{width:300},options:Object.values(t.chunkGraph.assets).map(e=>({label:e.path,value:e.path})),onChange:e=>E(e)})}),(0,i.jsx)(A.A,{children:(0,i.jsx)(k.A,{allowClear:!0,placeholder:"select current assets",showSearch:!0,style:{width:300},options:Object.values(n.chunkGraph.assets).map(e=>({label:e.path,value:e.path})),onChange:e=>D(e)})})]})]}),(0,i.jsx)(A.A,{span:24,children:(0,i.jsx)(M.A,{bordered:!0,sticky:{offsetHeader:54},pagination:{pageSize:20,size:"small"},dataSource:G,rowKey:e=>e.alias,expandable:{expandedRowRender:e=>(0,i.jsx)("div",{style:{margin:v.or.BasePadding/3},children:(0,i.jsx)(Q,{data:e,baseline:t,current:n})}),columnTitle:(0,i.jsx)(o.A,{title:"Click to expand row to see the modules which the chunk contains",placement:"left",children:(0,i.jsx)(ec.A,{style:{cursor:"pointer"}})})},columns:[{title:(0,i.jsxs)(o.A,{title:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["filtered assets is ",G.length]}),(0,i.jsxs)(u.A.Text,{style:{color:"inherit"},children:["total assets is ",$.length]})]}),children:[(0,i.jsx)(u.A.Text,{strong:!0,children:"Assets"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsxs)(u.A.Text,{type:"secondary",style:{fontSize:10,fontWeight:400,marginRight:4},children:[G.length,"/",$.length]}),(0,i.jsx)(f.A,{})]}),render:(e,t)=>(0,i.jsx)(ep,{data:t})},{title:()=>{let e=(0,S.formatSize)(W),t=V.TS.diffSize(U,W);return(0,i.jsxs)(o.A,{title:`Current size is ${e}, Delta is ${(0,S.formatPercent)(t.percent)}`,children:[(0,i.jsx)(u.A.Text,{strong:!0,children:"Current"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsxs)(u.A.Text,{style:{fontSize:10,fontWeight:400,marginRight:4},children:[(0,i.jsx)(u.A.Text,{style:{fontSize:"inherit",marginRight:8},children:e}),(0,i.jsx)(b.vh,{fontSize:"inherit",baseline:U,current:W}),H(U,W,U>W?j.Client.RsdoctorClientDiffState.Down:j.Client.RsdoctorClientDiffState.Up,{fontSize:10,fontWeight:400,marginLeft:4})]}),(0,i.jsx)(f.A,{})]})},render:(e,r)=>{if(r.current){let{percent:e,state:s}=V.TS.diffAssetsByExtensions(t.chunkGraph,n.chunkGraph,e=>V.TS.formatAssetName(e.path,l)===r.alias),a=V.TS.isInitialAsset(r.current,n.chunkGraph.chunks);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:(0,S.formatSize)(r.current.size)}),(0,i.jsx)(b.QE,{percent:e,state:s}),a?(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"initial"}):null]})}return"-"}},{title:()=>{let e=(0,S.formatSize)(U);return(0,i.jsxs)(o.A,{title:`Baseline size is ${e}`,children:[(0,i.jsx)(u.A.Text,{strong:!0,children:"Baseline"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsx)(u.A.Text,{style:{fontSize:10,fontWeight:400,marginRight:4},children:e}),(0,i.jsx)(f.A,{})]})},render:(e,n)=>{if(n.baseline){let e=V.TS.isInitialAsset(n.baseline,t.chunkGraph.chunks);return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(u.A.Text,{children:(0,S.formatSize)(n.baseline.size)}),e?(0,i.jsx)(T.A,{color:v.Q1.Blue,children:"initial"}):null]})}return"-"}},{title:"Actions",key:"actions",render:(e,t)=>{var n,l;return(0,i.jsx)(_,{file:t.alias,data:[{baseline:null==(n=t.baseline)?void 0:n.content,current:null==(l=t.current)?void 0:l.content,group:"assets"}]})}}]})})]})};var em=n(70054);let ef=e=>{var t;let{api:n,body:l,children:r,manifests:s}=e,a=(0,S.useUrlQuery)(),o=window[j.Constants.WINDOW_RSDOCTOR_TAG];if((null==o?void 0:o.baseline)&&(null==o?void 0:o.current)){let e=JSON.parse(V.oG.decompressText(o.baseline)),t=JSON.parse(V.oG.decompressText(o.current));return(0,i.jsx)(i.Fragment,{children:r(e,t)})}if(null==s?void 0:s.length)return(0,i.jsx)(i.Fragment,{children:r(s[0].data,s[1].data)});let[d,c]=(null==(t=a[j.Client.RsdoctorClientUrlQuery.BundleDiffFiles])?void 0:t.split(","))||[];return(0,i.jsx)(em.zW,{api:n,body:l,manifestLoader:d?()=>(0,S.fetchManifest)(d):void 0,children:e=>(0,i.jsx)(em.zW,{api:n,body:l,manifestLoader:c?()=>(0,S.fetchManifest)(c):void 0,children:t=>r(e,t)})})},eg=e=>{let{manifests:t}=e;return(0,s.useEffect)(()=>{console.log("BundleDiff Manifests: ",t)},[t]),(0,i.jsx)(ef,{api:j.SDK.ServerAPI.API.GetBundleDiffSummary,manifests:t,children:(e,t)=>{let n=e.chunkGraph===t.chunkGraph,l=e.chunkGraph,r=n?l:t.chunkGraph,s=V.TS.getAssetsDiffResult(l,r);return(0,i.jsxs)("div",{children:[(0,i.jsxs)(a.A.Group,{children:[(0,i.jsx)(o.A,{placement:"leftBottom",title:(0,i.jsx)(d.A,{direction:"vertical",children:[{title:"Baseline",data:e},{title:"Current",data:t}].map(e=>{let{title:t,data:n}=e;return(0,i.jsx)(c.A,{size:"small",children:(0,i.jsxs)(d.A,{direction:"vertical",children:[(0,i.jsx)(u.A.Text,{strong:!0,children:t}),(0,i.jsxs)(d.A,{style:{fontSize:10},children:[(0,i.jsx)(u.A.Text,{style:{fontSize:"inherit",width:30,display:"inline-block"},children:"Hash"}),(0,i.jsx)(h.A,{type:"vertical"}),(0,i.jsx)(u.A.Text,{type:"secondary",style:{fontSize:"inherit"},children:n.hash||"-"})]}),n.cloudManifestUrl?(0,i.jsx)(p.Ay,{type:"link",size:"small",style:{padding:0,fontSize:10},onClick:()=>window.open(n.cloudManifestUrl),children:"Open File"}):null]})},t)})}),children:(0,i.jsx)(a.A,{icon:(0,i.jsx)(f.A,{})})}),(0,i.jsx)(x.A,{title:(0,i.jsxs)(u.A.Text,{children:["Are you sure to",(0,i.jsx)(u.A.Text,{strong:!0,children:" re-upload "}),"json files for bundle diff?"]}),onConfirm:()=>{},okText:"Yes",cancelText:"Cancel",placement:"topLeft",trigger:"hover",children:(0,i.jsx)(a.A,{icon:(0,i.jsx)(g.A,{})})}),(0,i.jsx)(a.A.BackTop,{})]}),(0,i.jsx)(er,{baseline:e,current:t,onlyBaseline:n,assetsDiffResult:s}),(0,i.jsx)(m.A,{defaultActiveKey:"Overview",tabBarStyle:{marginBottom:v.or.BasePadding/3},items:[{label:"Overview",key:"Overview",children:(0,i.jsx)(ei,{assetsDiffResult:s})},{label:"Assets",key:"Assets",children:(0,i.jsx)(ex,{outputFilename:e.outputFilename,baseline:e,current:t})},{label:"Modules",key:"Modules",children:(0,i.jsx)(Y,{baseline:e,current:t,onlyBaseline:n,assetsDiffResult:s})},{label:"Packages",key:"Packages",children:(0,i.jsx)(el,{baseline:e.packageGraph,current:t.packageGraph})}].map(e=>({...e,label:(0,i.jsx)(u.A.Text,{strong:!0,children:e.label})}))})]})}})},ej=j.Client.RsdoctorClientRoutes.BundleDiff,ev=()=>(0,i.jsx)(eg,{manifests:[]})},73311:function(e,t,n){n.d(t,{B:()=>v});var l=n(65723),r=n(85189),i=n(35730),s=n(16937),a=n(20772),o=n(26316),d=n(98369),c=n(31448),u=n(13078),h=n.n(u),p=n(22155),x=n(11953),m=n(16815),f=n(74227),g=n(67843);let j=(0,x.$N)();function v(e){let{module:t,moduleGraph:n,ranges:u,toLine:v,setEditorData:y,source:A}=e,b=(0,p.useRef)(),S=(0,p.useRef)([]),w=(0,p.useRef)([]),C=(0,p.useRef)(),k=(0,p.useRef)(!1),[M,z]=(0,p.useState)("");return((0,p.useEffect)(()=>{let{isPreferSource:e}=t;k.current=!0,z(A.source||e?A.source:A.transformed),setTimeout(()=>{var e,l;w.current=(null==(l=b.current)||null==(e=l.getModel())?void 0:e.deltaDecorations(w.current,(0,g.L1)(t,n)))??[]},200)},[t,A]),(0,p.useEffect)(()=>{function e(){var e;let t=null==(e=b.current)?void 0:e.getModel();t&&(S.current=t.deltaDecorations(S.current,u.map(e=>({range:(0,x.qK)(e,f.Q),options:{stickiness:1,inlineClassName:"tree-shaking-statement-side-effect",isWholeLine:!1,showIfCollapsed:!0}}))),b.current&&"number"==typeof v&&C.current!==v&&(C.current=v,b.current.revealLine(v,0)))}k?setTimeout(e,300):e(),k.current=!1},[u,v]),(0,p.useEffect)(()=>{let e=e=>{let t=(0,m.U1)(e.target);if(t){let e=n.getModuleById(t.module);e&&y(e,[t.range],t.range.start.line)}};return document.body.addEventListener("click",e),()=>{document.body.removeEventListener("click",e)}},[]),t)?(0,l.jsx)(a.A,{title:(0,l.jsx)(o.A,{title:t.path,children:(0,l.jsxs)(d.A,{children:[(0,l.jsx)(c.A.Text,{children:h().basename(t.path)}),(0,l.jsx)(r.A,{})]})}),className:"tree-shaking-editor",children:(0,l.jsx)(s.Ay,{theme:"vs-dark",language:(0,x.rZ)(t.path),value:M,loading:(0,l.jsx)(i.A,{style:{fontSize:30}}),options:j,onMount:e=>{b.current=e}})}):(0,l.jsx)("div",{children:"请选择要查看的模块"})}},16815:function(e,t,n){function l(e,t,n){return`<a data-href="data-module=${e}&data-range=${encodeURIComponent(JSON.stringify(t))}">${n}</a>`}function r(e){if("a"!==e.tagName.toLocaleLowerCase())return;let t=e.getAttribute("data-href")??"",n={module:-1,range:{start:{line:1,column:0},end:{line:1,column:0}}};for(let e of t.split("&")){let[t,l]=e.split("=");if("data-module"===t){n.module=Number.parseInt(l,10);continue}"data-range"===t&&(n.range=JSON.parse(decodeURIComponent(l)))}return n}n.d(t,{U1:()=>r,mJ:()=>l})},74227:function(e,t,n){function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Q:()=>r});class r{isEmpty(){return r.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber)&&!(t.lineNumber>e.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.column<e.startColumn))&&(t.lineNumber!==e.endLineNumber||!(t.column>e.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber)&&!(t.lineNumber>e.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.column<=e.startColumn))&&(t.lineNumber!==e.endLineNumber||!(t.column>=e.endColumn))}containsRange(e){return r.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber)&&!(t.endLineNumber<e.startLineNumber)&&!(t.startLineNumber>e.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumn<e.startColumn))&&(t.endLineNumber!==e.endLineNumber||!(t.endColumn>e.endColumn))}strictContainsRange(e){return r.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber)&&!(t.endLineNumber<e.startLineNumber)&&!(t.startLineNumber>e.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumn<=e.startColumn))&&(t.endLineNumber!==e.endLineNumber||!(t.endColumn>=e.endColumn))}plusRange(e){return r.plusRange(this,e)}static plusRange(e,t){let n,l,i,s;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,l=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,l=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,l=e.startColumn),t.endLineNumber>e.endLineNumber?(i=t.endLineNumber,s=t.endColumn):t.endLineNumber===e.endLineNumber?(i=t.endLineNumber,s=Math.max(t.endColumn,e.endColumn)):(i=e.endLineNumber,s=e.endColumn),new r(n,l,i,s)}intersectRanges(e){return r.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,l=e.startColumn,i=e.endLineNumber,s=e.endColumn,a=t.startLineNumber,o=t.startColumn,d=t.endLineNumber,c=t.endColumn;return(n<a?(n=a,l=o):n===a&&(l=Math.max(l,o)),i>d?(i=d,s=c):i===d&&(s=Math.min(s,c)),n>i||n===i&&l>s)?null:new r(n,l,i,s)}equalsRange(e){return r.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return r.getEndPosition(this)}static getEndPosition(e){return new i(e.endLineNumber,e.endColumn)}getStartPosition(){return r.getStartPosition(this)}static getStartPosition(e){return new i(e.startLineNumber,e.startColumn)}toString(){return`[${this.startLineNumber},${this.startColumn} -> ${this.endLineNumber},${this.endColumn}]`}setEndPosition(e,t){return new r(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r.collapseToStart(this)}static collapseToStart(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return r.collapseToEnd(this)}static collapseToEnd(e){return new r(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new r(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber)&&(e.endLineNumber!==t.startLineNumber||!(e.endColumn<t.startColumn))&&!(t.endLineNumber<e.startLineNumber)&&(t.endLineNumber!==e.startLineNumber||!(t.endColumn<e.startColumn))}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber)&&(e.endLineNumber!==t.startLineNumber||!(e.endColumn<=t.startColumn))&&!(t.endLineNumber<e.startLineNumber)&&(t.endLineNumber!==e.startLineNumber||!(t.endColumn<=e.startColumn))}static compareRangesUsingStarts(e,t){if(e&&t){let n=0|e.startLineNumber,l=0|t.startLineNumber;if(n===l){let n=0|e.startColumn,l=0|t.startColumn;if(n===l){let n=0|e.endLineNumber,l=0|t.endLineNumber;return n===l?(0|e.endColumn)-(0|t.endColumn):n-l}return n-l}return n-l}return!!e-!!t}static compareRangesUsingEnds(e,t){if(e.endLineNumber===t.endLineNumber)return e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn;return e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}constructor(e,t,n,r){l(this,"startLineNumber",void 0),l(this,"startColumn",void 0),l(this,"endLineNumber",void 0),l(this,"endColumn",void 0),e>n||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}}class i{with(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lineNumber,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.column;return e===this.lineNumber&&t===this.column?this:new i(e,t)}delta(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.with(this.lineNumber+e,this.column+t)}equals(e){return i.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return i.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return i.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){let n=0|e.lineNumber,l=0|t.lineNumber;return n===l?(0|e.column)-(0|t.column):n-l}clone(){return new i(this.lineNumber,this.column)}toString(){return`(${this.lineNumber},${this.column})`}static lift(e){return new i(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}constructor(e,t){l(this,"lineNumber",void 0),l(this,"column",void 0),this.lineNumber=e,this.column=t}}},26634:function(e,t,n){n.d(t,{$:()=>s});var l=n(65723),r=n(20772),i=n(81489);function s(){return(0,l.jsx)(r.A,{title:"Tree Shaking Analysis",bodyStyle:{paddingTop:0},className:"tree-shaking-page",children:(0,l.jsx)(i.A,{style:{marginTop:30}})})}},81972:function(e,t,n){n.d(t,{oK:()=>b});var l=n(65723),r=n(26316),i=n(31786),s=n(98204),a=n(98369),o=n(31448),d=n(8879),c=n(36643),u=n(98426),h=n(22155),p=n(57474),x=n.n(p),m=n(97255),f=n(67843),g=n(128);function j(e,t){if(!e)return(0,l.jsx)("div",{children:"Can not find declaration."});let{module:n}=e,s=n.isPreferSource?e.position.source:e.position.transformed;return(0,l.jsx)(r.A,{title:`${n.path}, line ${s.start.line}`,children:(0,l.jsx)(i.Ay,{type:"link",onClick:()=>t(n,[s],s.start.line),children:"Move To"})})}function v(e){let[t,n]=(0,h.useState)(""),[r,o]=(0,h.useState)(""),d=(0,h.useRef)(null),c=(e,t,l)=>{t(),n(e[0]),o(l)};return{filterDropdown:t=>{let{setSelectedKeys:r,selectedKeys:o,confirm:h,clearFilters:p,close:x}=t;return(0,l.jsxs)("div",{style:{padding:8},onKeyDown:e=>e.stopPropagation(),children:[(0,l.jsx)(s.A,{ref:d,placeholder:`Search ${e}`,value:o[0],onChange:e=>r(e.target.value?[e.target.value]:[]),onPressEnter:()=>c(o,h,e),style:{marginBottom:8,display:"block"}}),(0,l.jsxs)(a.A,{children:[(0,l.jsx)(i.Ay,{type:"primary",onClick:()=>c(o,h,e),icon:(0,l.jsx)(u.A,{}),size:"small",style:{width:90},children:"Search"}),(0,l.jsx)(i.Ay,{onClick:()=>p&&void(p(),n("")),size:"small",style:{width:90},children:"Reset"}),(0,l.jsx)(i.Ay,{type:"link",size:"small",onClick:x,children:"close"})]})]})},filterIcon:e=>(0,l.jsx)(u.A,{style:{color:e?"#1890ff":void 0}}),onFilter:(t,n)=>n[e].toString().toLowerCase().includes(t.toLowerCase()),render:n=>r===e?(0,l.jsx)(x(),{highlightStyle:{backgroundColor:"#ffc069",padding:0},searchWords:[t],autoEscape:!0,textToHighlight:n?n.toString():""}):n}}let y=e=>{let{module:t,moduleGraph:n,setEditorData:s}=e,u=(0,h.useMemo)(()=>n.getModuleGraphModule(t).getSideEffects(),[t]),p=u.map((e,n)=>{let{variable:l,name:r,identifier:i}=e;return{key:n,name:r,identifier:t.isPreferSource?i.position.source:i.position.transformed,declaration:null==l?void 0:l.identifier}}).sort((e,t)=>e.name===t.name?e.identifier.start.line>t.identifier.start.line?1:-1:e.name>t.name?1:-1).reduce((e,t)=>{let n=e[e.length-1];return n&&n.name===t.name?(n.children||(n.children=[]),n.children.push(t)):e.push(t),e},[]),x=[{title:"Name",dataIndex:"name",key:"name",align:"center",...v("name")},{title:"SideEffect",dataIndex:"identifier",key:"identifier",align:"center",render:e=>(0,l.jsx)(r.A,{title:`Current File line ${e.start.line}`,children:(0,l.jsx)(i.Ay,{type:"link",onClick:()=>s(t,[e],e.start.line),children:"Move To"})})},{title:"Declaration",dataIndex:"declaration",key:"declaration",align:"center",render:e=>j(e,s)}],f=(0,l.jsx)(h.Fragment,{children:(0,l.jsxs)(a.A,{style:{fontWeight:400},children:["Import",(0,l.jsx)(o.A.Text,{strong:!0,children:p.length}),"variables",(0,l.jsx)(d.A,{type:"vertical"}),(0,l.jsx)(o.A.Text,{strong:!0,children:u.length}),"sideEffects"]})});return(0,l.jsx)(m.Zp,{style:{marginBottom:10},title:f,className:"tree-shaking-export-table",children:(0,l.jsx)(c.A,{size:"small",dataSource:p,columns:x,pagination:!1,scroll:{y:600}})})},A=e=>{let{module:t,moduleGraph:n,setEditorData:s}=e,u=(0,h.useMemo)(()=>n.getModuleGraphModule(t).getExports(),[t]),p=u.filter(e=>0===e.getSideEffects().length),x=(0,l.jsxs)(h.Fragment,{children:[(0,l.jsxs)(a.A,{style:{fontWeight:400},children:["Export",(0,l.jsx)(o.A.Text,{strong:!0,children:u.length})]}),u.length>0?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.A,{type:"vertical"}),(0,l.jsxs)(o.A.Text,{style:{fontWeight:400},code:!0,children:[(0,l.jsx)(o.A.Text,{children:"Unused"}),(0,l.jsx)(d.A,{type:"vertical"}),(0,l.jsx)(o.A.Text,{strong:!0,children:p.length})]}),(0,l.jsx)(d.A,{type:"vertical"}),(0,l.jsxs)(o.A.Text,{style:{fontWeight:400},code:!0,children:[(0,l.jsx)(o.A.Text,{children:"Used"}),(0,l.jsx)(d.A,{type:"vertical"}),(0,l.jsx)(o.A.Text,{strong:!0,children:u.length-p.length})]})]}):""]}),y=u.map((e,t)=>{let{variable:n}=e;return{key:t,name:e.name,declaration:null==n?void 0:n.identifier,used:e.getSideEffects().map(e=>{let{module:t,identifier:n}=e,l=(null==t?void 0:t.isPreferSource)?n.position.source:n.position.transformed;if(t&&l)return{module:t,range:l}}).filter(g.isDef)}}),A=[{title:"Name",dataIndex:"name",key:"name",align:"center",...v("name")},{title:"Declaration",dataIndex:"declaration",key:"declaration",align:"center",render:e=>j(e,s)},{title:"Info",dataIndex:"used",key:"used",align:"center",sorter:(e,t)=>e.used.length-t.used.length,sortDirections:["descend","ascend"],render:e=>(0,l.jsxs)("span",{children:["Used ",e.length," times"]})}];return(0,l.jsx)(m.Zp,{title:x,className:"tree-shaking-export-table",children:(0,l.jsx)(c.A,{size:"small",dataSource:y,columns:A,pagination:!1,scroll:{y:600},expandable:{expandedRowRender:e=>(0,l.jsxs)("div",{className:"tree-shaking-side-effect-list",children:[(0,l.jsx)(o.A.Text,{children:"List of SideEffect:"}),e.used.map(e=>{let{module:t,range:n}=e;return(0,l.jsx)(r.A,{title:`${t.path}:${n.start.line}`,children:(0,l.jsx)(i.Ay,{className:"tree-shaking-side-effect-list-item",type:"link",onClick:()=>{s(t,[n],n.start.line)},children:`${(0,f.jx)(t.path)}:${n.start.line}`})},t.id)})]}),rowExpandable:e=>e.used.length>0}})})},b=e=>"side-effect"===e.kind?(0,l.jsx)(y,{...e}):(0,l.jsx)(A,{...e})},67843:function(e,t,n){n.d(t,{EV:()=>g,L1:()=>y,jx:()=>v,ut:()=>j});var l=n(65723),r=n(80806),i=n(98369),s=n(64801),a=n(14696),o=n(13347),d=n(13078),c=n.n(d),u=n(22155),h=n(11953),p=n(72854),x=n(128),m=n(16815),f=n(74227);function g(e,t,n,a,o,d){return(0,u.useMemo)(()=>(0,x.createFileStructures)({files:e.map(e=>e.path),cwd:d,fileTitle(e,n){let a=t.getModules().find(t=>t.path===e&&t.kind===r.nV.kind.Normal),d=t.getModuleGraphModule(a),c=d.getExports().filter(e=>0===e.getSideEffects().length);return(0,l.jsxs)(i.A,{style:{wordBreak:"break-all"},children:[(0,l.jsx)(p.i,{text:n,keyword:e,onClick:()=>o(e)}),d.dynamic?(0,l.jsx)(s.A,{color:"cyan",children:"dynamic"}):"",c.length>0?(0,l.jsxs)(s.A,{color:"green",children:[c.length," Unused"]}):""]})}}),[n,a])}function j(e){return(0,x.mapFileKey)(e,3,e=>!((0,a.J)(e,"__RESOURCEPATH__").indexOf("/node_modules/")>-1))}function v(e){let t="",n=e;for(let e=0;e<3;e++)t=t?`${c().basename(n)}/${t}`:c().basename(n),n=c().dirname(n);return`...${t}`}function y(e,t){let n=t.getModuleGraphModule(e).getOwnExports(),l=n.map(e=>e.variable).filter(e=>!!e);if(0===n.length&&0===l.length)return[];let{isPreferSource:r}=e;return l.map(e=>{let t=r?e.identifier.position.source:e.identifier.position.transformed,n=t&&(0,h.qK)(t,f.Q);if(t&&n)return{range:n,options:{stickiness:1,inlineClassName:"tree-shaking-statement-declaration-identifier",isWholeLine:!1,showIfCollapsed:!0,hoverMessage:{supportHtml:!0,supportThemeIcons:!0,isTrusted:!0,value:function(e){let t=e.getExportInfo();if(!t)return"Can not find SideEffect info.";let n=t.getSideEffects();if(0===n.length)return"Have no sideEffect.";let l=`Used **${n.length}** times:
|
|
8
8
|
|
|
9
9
|
<div data-code="tree-shaking-hover">
|
|
10
10
|
<li>`;for(let e of n){if(!e)continue;let{identifier:t,module:n}=e;if(!n)continue;let{id:r,isPreferSource:i}=n,s=t.getLineCode();l+=`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/client",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7-beta.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.9.2",
|
|
32
|
-
"@rsdoctor/
|
|
33
|
-
"@rsdoctor/
|
|
32
|
+
"@rsdoctor/components": "1.3.7-beta.1",
|
|
33
|
+
"@rsdoctor/types": "1.3.7-beta.1"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public",
|
|
@@ -1 +0,0 @@
|
|
|
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}.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}.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}}: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}.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}.text-QI6k9S{color:#000000d9;font-size:14px;font-weight:400}.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}.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%}.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}.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}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}
|